/* Lilach for Work — wireframe shared styles.
 * Imported by every phase mockup. Lavender brand, app shell, common
 * components (sidebar, topbar, page-head, cards, register tables, etc).
 * Phase-specific styles live inline in each phase HTML.
 */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,700;0,9..144,800;0,9..144,900;1,9..144,400&family=Inter+Tight:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600;700&display=swap');

:root {
  --ink: #2E1840; --paper: #F3ECFA; --cream: #FFF8F0;
  --purple: #A752AA; --purple-d: #7d3c80;
  --orange: #FF692A; --orange-d: #d44f0f;
  --lilac: #EAB7FE; --blush: #F8D4EB; --periw: #B8C5FF;
  --teal: #5E7E80; --teal-d: #3d5859;
  --green: #5F8F37; --amber: #C68A0A; --red: #B01212;
  --line: rgba(46, 24, 64, 0.10);
  --line-2: rgba(46, 24, 64, 0.05);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter Tight', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-body); color: var(--ink); background: var(--paper);
  font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: transparent; }
a { color: inherit; text-decoration: none; }

/* ─── Banner / nav strip ─── */
.wf-banner {
  background: var(--ink); color: var(--paper);
  padding: 10px 24px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em;
  display: flex; gap: 14px; justify-content: space-between; align-items: center;
  border-bottom: 4px solid var(--orange);
  flex-wrap: wrap;
}
.wf-banner em { color: var(--orange); font-style: normal; font-weight: 700; }
.wf-jump { display: flex; gap: 6px; flex-wrap: wrap; }
.wf-jump a {
  background: rgba(248,212,235,0.12); border: 1px solid rgba(248,212,235,0.25);
  padding: 3px 9px; border-radius: 999px;
  font-size: 10px; color: var(--lilac); cursor: pointer;
}
.wf-jump a:hover { background: rgba(248,212,235,0.22); color: var(--paper); }
.wf-phase-jump {
  display: flex; gap: 4px; padding: 6px 24px; background: var(--cream);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 10px;
  align-items: center; flex-wrap: wrap;
}
.wf-phase-jump strong {
  margin-right: 8px; color: var(--teal-d);
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 9.5px;
}
.wf-phase-jump a {
  padding: 3px 9px; border-radius: 999px;
  background: white; border: 1px solid var(--line);
  color: var(--ink); font-weight: 600;
}
.wf-phase-jump a.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.wf-phase-jump a:hover:not(.current) { border-color: var(--purple); color: var(--purple-d); }

/* ─── Scene separator ─── */
.scene {
  border-top: 1px dashed rgba(46,24,64,0.2);
  background: linear-gradient(180deg, transparent, rgba(255,105,42,0.04) 50%, transparent);
  padding: 24px 0; text-align: center;
}
.scene-label {
  display: inline-block;
  background: var(--ink); color: var(--paper);
  padding: 6px 16px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.scene-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: 26px; line-height: 1.15; letter-spacing: -0.02em;
  margin-top: 10px;
}
.scene-title em { font-style: italic; font-weight: 400; color: var(--purple); }
.scene-deck {
  font-family: var(--font-display); font-style: italic;
  font-size: 14px; opacity: 0.7;
  max-width: 64ch; margin: 4px auto 0;
}

/* ─── App shell ─── */
.app {
  max-width: 1400px; margin: 16px auto;
  display: grid; grid-template-columns: 248px 1fr;
  min-height: 700px;
  border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
  background: white;
  box-shadow: 0 8px 32px rgba(46, 24, 64, 0.06);
}
.sidebar {
  background: var(--ink); color: var(--paper);
  padding: 16px 0;
  display: flex; flex-direction: column; gap: 16px;
  border-right: 4px solid var(--orange);
}
.brand { padding: 0 18px; display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(135deg, var(--purple), var(--orange));
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 900; font-style: italic;
  font-size: 17px; color: white;
}
.brand-name {
  font-family: var(--font-display); font-weight: 900;
  font-size: 15px; line-height: 1.1; letter-spacing: -0.01em;
}
.brand-name em { font-style: italic; font-weight: 400; color: var(--lilac); }
.proj-picker {
  margin: 0 10px;
  background: rgba(248, 212, 235, 0.07);
  border: 1px solid rgba(248, 212, 235, 0.15);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex; flex-direction: column; gap: 1px;
}
.proj-picker-eyebrow {
  font-family: var(--font-mono); font-size: 8.5px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--lilac); opacity: 0.7;
}
.proj-picker-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 13px;
}
.proj-picker-name::after { content: ' ↓'; opacity: 0.5; font-family: var(--font-body); font-size: 10px; }

nav.side-nav { display: flex; flex-direction: column; padding: 0 6px; }
.nav-group-label {
  font-family: var(--font-mono); font-size: 8.5px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--lilac); opacity: 0.55;
  padding: 12px 12px 4px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 7px;
  font-size: 13px; font-weight: 500; color: var(--paper);
  opacity: 0.78; cursor: pointer; position: relative;
}
.nav-item:hover { background: rgba(248, 212, 235, 0.08); opacity: 1; }
.nav-item.active {
  background: rgba(255, 105, 42, 0.12); color: white; opacity: 1; font-weight: 700;
}
.nav-item.active::before {
  content: ''; position: absolute; left: -6px; top: 6px; bottom: 6px;
  width: 3px; background: var(--orange); border-radius: 0 3px 3px 0;
}
.nav-icon {
  font-family: var(--font-mono); font-size: 12px;
  width: 16px; text-align: center; opacity: 0.85;
}
.nav-count {
  margin-left: auto;
  background: rgba(248, 212, 235, 0.18);
  color: var(--paper);
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 700;
  padding: 1px 6px; border-radius: 999px;
}
.nav-item.active .nav-count { background: var(--orange); color: white; }
.nav-stub-tag {
  margin-left: auto;
  font-family: var(--font-mono); font-size: 8px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  opacity: 0.5;
}
.nav-item.capture {
  margin: 4px 0 0;
  background: linear-gradient(135deg, rgba(167, 82, 170, 0.25), rgba(255, 105, 42, 0.18));
  border: 1px solid rgba(255, 105, 42, 0.35);
  opacity: 1; font-weight: 700; padding: 9px 12px;
}
.nav-badge {
  margin-left: auto;
  font-family: var(--font-mono); font-size: 7.5px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: rgba(255, 255, 255, 0.18); color: white;
  padding: 1px 6px; border-radius: 999px;
}
.sidebar-foot {
  margin-top: auto; padding: 12px 18px;
  border-top: 1px solid rgba(248, 212, 235, 0.12);
  font-family: var(--font-mono); font-size: 9.5px;
  color: var(--lilac); opacity: 0.5;
  display: flex; justify-content: space-between;
}

main { display: flex; flex-direction: column; background: var(--paper);
  background-image:
    radial-gradient(circle at 18% 0%, rgba(234, 183, 254, 0.18), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(255, 105, 42, 0.05), transparent 40%);
  min-width: 0;
}
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 22px;
  background: white; border-bottom: 1px solid var(--line);
}
.topbar-search {
  flex: 1; max-width: 380px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: 12.5px; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.topbar-search input { border: 0; background: transparent; outline: none; flex: 1; }
.topbar-user { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; }
.topbar-user .avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--orange));
  display: grid; place-items: center;
  color: white; font-family: var(--font-display);
  font-weight: 900; font-style: italic; font-size: 12px;
}

.page-head {
  padding: 22px 22px 14px;
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px;
}
.page-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: 26px; line-height: 1.05; letter-spacing: -0.025em;
}
.page-title em { font-style: italic; font-weight: 400; color: var(--purple); }
.page-deck {
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: 13.5px; color: var(--ink); opacity: 0.7;
  margin-top: 4px;
}
.page-actions { display: flex; gap: 6px; flex-shrink: 0; }
.btn {
  padding: 7px 13px; border-radius: 7px;
  font-size: 11.5px; font-weight: 700;
  font-family: var(--font-mono); letter-spacing: 0.06em;
  background: white; color: var(--ink); border: 1px solid var(--line);
}
.btn:hover { border-color: var(--purple); }
.btn.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.primary:hover { background: var(--orange); border-color: var(--orange); }
.btn.ghost { border-color: transparent; }
.btn.small { padding: 5px 10px; font-size: 10.5px; }
.btn.danger { background: var(--red); color: white; border-color: var(--red); }

.page-body { padding: 6px 22px 36px; }

/* ─── Register table ─── */
.register-toolbar {
  display: flex; gap: 8px; align-items: center;
  margin-bottom: 12px; flex-wrap: wrap;
}
.register-search {
  background: white; border: 1px solid var(--line);
  border-radius: 7px; padding: 6px 10px; font-size: 12px;
  width: 240px; outline: none;
}
.filter-chip {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.06em;
  background: white; border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 10px;
  cursor: pointer;
}
.filter-chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filter-chip:hover:not(.active) { border-color: var(--purple); }
.register-wrap {
  background: white; border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden;
}
table.register {
  width: 100%; border-collapse: collapse;
}
table.register thead th {
  background: var(--ink); color: var(--paper);
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 10px 14px; text-align: left;
}
table.register tbody td {
  padding: 11px 14px; font-size: 12.5px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: top;
}
table.register tbody tr { cursor: pointer; }
table.register tbody tr:hover { background: var(--cream); }
table.register tbody tr:last-child td { border-bottom: 0; }
.cell-id {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  color: var(--purple-d); letter-spacing: 0.04em;
}
.cell-title { font-weight: 600; }
.cell-sub {
  font-family: var(--font-mono); font-size: 10.5px;
  color: var(--teal-d); margin-top: 2px;
}
.pill {
  display: inline-block;
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px;
}
.pill.crit { background: rgba(176, 18, 18, 0.1); color: var(--red); }
.pill.high { background: rgba(255, 105, 42, 0.14); color: var(--orange-d); }
.pill.med { background: rgba(198, 138, 10, 0.14); color: var(--amber); }
.pill.low { background: rgba(95, 143, 55, 0.14); color: var(--green); }
.pill.open { background: var(--lilac); color: var(--purple-d); }
.pill.closed { background: rgba(95, 143, 55, 0.12); color: var(--green); }
.score-cell {
  font-family: var(--font-display); font-weight: 800;
  font-size: 17px; text-align: right;
}
.score-cell.bad { color: var(--red); }
.score-cell.warn { color: var(--orange-d); }
.score-cell.ok { color: var(--green); }
.money-cell {
  font-family: var(--font-mono); font-weight: 700; text-align: right;
  white-space: nowrap; font-variant-numeric: tabular-nums;
}

/* ─── Acceptance checklist (INTERACTIVE) ─── */
.acceptance {
  max-width: 1400px; margin: 24px auto 50px;
  background: white; border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: 14px; padding: 22px 26px;
}
.acceptance h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: 22px; letter-spacing: -0.015em;
  margin-bottom: 4px;
}
.acceptance h2 em { font-style: italic; font-weight: 400; color: var(--purple); }
.acceptance .deck {
  font-family: var(--font-display); font-style: italic;
  color: var(--ink); opacity: 0.7; margin-bottom: 12px; font-size: 13.5px;
}
.ac-progress {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--orange-d);
  margin-bottom: 14px;
  display: flex; gap: 12px; align-items: center;
}
.ac-progress .bar {
  flex: 1; max-width: 400px;
  height: 8px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
}
.ac-progress .bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--orange));
  width: 0%; transition: width .25s ease;
}
.ac-progress button {
  margin-left: auto;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.06em; padding: 4px 9px; border-radius: 6px;
  background: var(--paper); color: var(--teal-d); border: 1px solid var(--line);
}
.ac-progress button:hover { background: var(--lilac); color: var(--purple-d); }
.ac-list {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px;
}
.ac-list li label {
  display: flex; gap: 10px; align-items: start;
  font-size: 13px; line-height: 1.5; cursor: pointer;
  padding: 5px 8px; border-radius: 6px;
  transition: background .12s;
}
.ac-list li label:hover { background: var(--paper); }
.ac-list input[type=checkbox] {
  accent-color: var(--orange);
  margin-top: 3px; flex-shrink: 0;
  width: 16px; height: 16px;
}
.ac-list input:checked + span {
  text-decoration: line-through;
  opacity: 0.55;
}
.ac-list .blocker { color: var(--red); font-weight: 700; }

/* ─── Generic card ─── */
.card {
  background: white; border: 1px solid var(--line);
  border-radius: 12px; padding: 18px 20px;
}
.card-eyebrow {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange);
  margin-bottom: 4px;
}
.card-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: 18px; letter-spacing: -0.01em; margin-bottom: 10px;
}
.card-title em { font-style: italic; font-weight: 400; color: var(--purple); }

/* ─── Field/form primitives ─── */
.field { display: flex; flex-direction: column; gap: 4px; }
.field-label {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-d);
}
.field input, .field textarea, .field select {
  border: 1px solid var(--line); background: white;
  border-radius: 7px; padding: 8px 11px;
  font-size: 13px; outline: none; font-family: inherit;
}
.field input.blank, .field textarea.blank {
  border-style: dashed; background: rgba(46,24,64,0.02);
}

/* ─── Modal ─── */
.modal-backdrop {
  background: rgba(46, 24, 64, 0.55);
  padding: 30px 20px 40px;
}
.modal {
  background: white; border-radius: 16px;
  max-width: 720px; margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(46, 24, 64, 0.3);
}
.modal-head {
  padding: 20px 24px 14px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--purple-d) 100%);
  color: var(--paper);
}
.modal-eyebrow {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--lilac); margin-bottom: 4px;
}
.modal-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: 22px; line-height: 1.15; letter-spacing: -0.02em;
}
.modal-title em { font-style: italic; font-weight: 400; color: var(--orange); }
.modal-body { padding: 16px 24px; max-height: 64vh; overflow-y: auto; }
.modal-foot {
  padding: 14px 24px;
  background: var(--paper);
  display: flex; gap: 10px; align-items: center;
  border-top: 1px solid var(--line);
}
.modal-foot .grow { flex: 1; }

/* ─── Common phase strip — links between phase mockups ─── */
.phase-strip {
  display: flex; gap: 8px; padding: 12px 24px;
  background: var(--cream); border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 10px;
  align-items: center; justify-content: center;
}
.phase-strip a {
  padding: 6px 14px; border-radius: 6px;
  background: white; border: 1px solid var(--line);
  color: var(--teal-d); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.phase-strip a.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.phase-strip a:hover:not(.current) { border-color: var(--purple); color: var(--purple-d); }
