
  :root {
    --accent: #2563eb; --accent-d: #1d4ed8; --accent-l: #eff4ff; --accent-ring: #c7d7fe;
    --orange: #f2811d; --orange-l: #fff4e8;
    --green: #16a34a; --green-l: #ecfdf3; --red: #dc2626; --red-l: #fef2f2;
    --ink: #18181b; --ink-2: #52525b; --ink-3: #8b8b94; --line: #ececef; --line-2: #f4f4f5;
    --bg: #fafafa; --card: #fff; --r: 16px;
    --shadow: 0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.03);
  }
  * { box-sizing: border-box; }
  body { margin: 0; font: 14.5px/1.55 "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
  a { color: var(--accent); text-decoration: none; }
  h1 { font-size: 26px; line-height: 1.2; margin: 0 0 6px; font-weight: 650; letter-spacing: -0.02em; }
  h2 { font-size: 15.5px; margin: 0 0 12px; font-weight: 620; letter-spacing: -0.01em; }
  h3 { font-size: 14.5px; margin: 0 0 6px; font-weight: 620; }
  p { margin: 0 0 10px; }
  .sub { color: var(--ink-2); margin-bottom: 24px; }
  .muted { color: var(--ink-3); font-size: 13px; }
  .small { font-size: 13.5px; }
  svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

  /* review bar (hidden in screenshots) */
  .review { position: sticky; top: 0; z-index: 50; background: #18181b; color: #e4e4e7; display: flex; gap: 10px; align-items: center; padding: 6px 14px; font-size: 13px; flex-wrap: wrap; }
  .review b { color: #fdba74; }
  .review select, .review button { font: inherit; padding: 3px 9px; border-radius: 7px; border: 0; }
  .shot .review { display: none; }
  body.shotphone { width: 390px; overflow-x: hidden; }
  body.shotphone .tabs { right: auto; width: 390px; }

  /* shell */
  .app { display: grid; grid-template-columns: 264px 1fr; min-height: calc(100vh - 34px); }
  .shot .app { min-height: 100vh; }
  .side { background: #fff; border-right: 1px solid var(--line); padding: 18px 12px; }
  .brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 15.5px; padding: 2px 8px 16px; letter-spacing: -0.01em; }
  .logo { width: 30px; height: 30px; border-radius: 9px; letter-spacing: -0.03em; font-size: 12.5px; background: linear-gradient(135deg, var(--accent), #6d8dfa); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; }
  .group-pill { margin: 0 4px 10px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
  .group-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
  .nav-h { font-size: 11.5px; font-weight: 600; color: var(--ink-3); margin: 18px 10px 6px; }
  .nav a { display: flex; align-items: center; gap: 10px; color: var(--ink-2); padding: 7px 10px; border-radius: 9px; font-size: 14px; font-weight: 500; }
  .nav a svg.i { width: 17px; height: 17px; color: #a1a1aa; }
  .nav a.on { background: var(--accent-l); color: var(--accent-d); }
  .nav a.on svg.i { color: var(--accent); }
  .nav a .n { margin-left: auto; background: var(--orange-l); color: #c2570c; border-radius: 999px; font-size: 11.5px; font-weight: 600; padding: 0 7px; }
  .main { padding: 36px 44px 48px; max-width: 1120px; }
  .topbar, .tabs { display: none; }
  .app > div, .grid > *, .main, .card, .row > * { min-width: 0; }
  .main { overflow-wrap: anywhere; }

  /* components */
  .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
  .grid { display: grid; gap: 16px; }
  .g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
  .btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #e4e4e7; background: #fff; color: var(--ink); border-radius: 10px; padding: 7px 13px; font: inherit; font-size: 13.5px; font-weight: 550; cursor: pointer; margin: 2px 4px 2px 0; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
  .btn.p { background: var(--ink); color: #fff; border-color: var(--ink); }
  .btn.o { background: var(--accent); color: #fff; border-color: var(--accent); }
  .btn.g { background: #fff; color: var(--green); border-color: #bbf7d0; }
  .btn.big { padding: 11px 18px; font-size: 15px; }
  .btn[disabled] { opacity: .45; cursor: not-allowed; }
  .chip { display: inline-block; font-size: 12px; font-weight: 550; padding: 2px 9px; border-radius: 999px; background: var(--line-2); color: var(--ink-2); margin: 2px 4px 2px 0; white-space: nowrap; }
  .chip.o { background: var(--orange-l); color: #c2570c; } .chip.g { background: var(--green-l); color: #15803d; } .chip.r { background: var(--red-l); color: var(--red); } .chip.gr { background: transparent; color: var(--ink-3); border: 1px solid var(--line); }
  .note { border: 1px solid #fde3c4; background: var(--orange-l); padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; font-size: 14px; }
  .note.b { border-color: var(--accent-ring); background: var(--accent-l); }
  .note.g { border-color: #bbf7d0; background: var(--green-l); }
  table { width: 100%; border-collapse: collapse; font-size: 14px; }
  th { text-align: left; font-size: 12px; color: var(--ink-3); font-weight: 550; padding: 8px 10px; border-bottom: 1px solid var(--line); }
  td { padding: 11px 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
  tr:last-child td { border-bottom: 0; }
  .tw { overflow-x: auto; }
  input[type=text], input[type=email], input[type=tel], textarea, select.f { width: 100%; border: 1px solid #e4e4e7; border-radius: 10px; padding: 9px 12px; font: inherit; background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.03); }
  textarea { min-height: 84px; resize: vertical; }
  label.f { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 5px; }
  .stat { font-size: 26px; font-weight: 650; letter-spacing: -0.02em; margin-top: 2px; }
  .bar { height: 6px; background: var(--line-2); border-radius: 999px; overflow: hidden; margin: 10px 0 2px; }
  .bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
  .bar i.done { background: var(--green); }
  .row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
  .sp { flex: 1; }
  .av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 13.5px; flex: none; }
  .draft { background: #fcfcfd; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; white-space: pre-line; font-size: 14px; margin: 10px 0; }
  .missing { background: #fef9c3; border: 1px dashed #eab308; border-radius: 6px; padding: 0 6px; font-weight: 600; color: #854d0e; }
  .bubble { max-width: 560px; padding: 12px 16px; border-radius: 16px; margin: 8px 0; }
  .bubble.ai { background: var(--line-2); border-top-left-radius: 6px; }
  .bubble.me { background: var(--accent); color: #fff; margin-left: auto; border-top-right-radius: 6px; }
  .mic { width: 76px; height: 76px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; margin: 0 auto; box-shadow: 0 0 0 10px var(--accent-l); }
  .mic svg.i { width: 30px; height: 30px; }
  .steps { display: flex; gap: 6px; margin: 6px 0; flex-wrap: wrap; }
  .steps span { font-size: 12px; font-weight: 550; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-3); }
  .steps span.on { background: var(--green-l); border-color: transparent; color: #15803d; }
  .steps span.cur { background: var(--ink); border-color: var(--ink); color: #fff; }
  .lock { color: var(--ink-3); font-size: 13px; }
  .center { min-height: calc(100vh - 34px); display: grid; place-items: center; padding: 24px; background: radial-gradient(1200px 600px at 10% -10%, #e8efff 0%, transparent 60%), radial-gradient(900px 500px at 110% 110%, #fff1e3 0%, transparent 55%), #fafafa; }
  .shot .center { min-height: 100vh; }
  .center .card { width: 100%; max-width: 440px; padding: 32px; box-shadow: 0 10px 30px rgba(16,24,40,.07); }
  .pagewide { max-width: 760px; margin: 0 auto; padding: 40px 24px; }
  .partner { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 12px; background: #fff; box-shadow: var(--shadow); }
  .partner.ok { border-color: #bbf7d0; }
  .partner.skip { opacity: .55; box-shadow: none; background: transparent; }
  .rank { width: 30px; height: 30px; border-radius: 10px; background: var(--line-2); color: var(--ink-2); display: grid; place-items: center; font-weight: 650; font-size: 13px; flex: none; }
  .rank.top { background: var(--accent-l); color: var(--accent-d); }
  .kv { display: grid; grid-template-columns: 130px 1fr; gap: 6px 14px; font-size: 14px; margin: 12px 0; }
  .kv b { color: var(--ink-3); font-weight: 500; font-size: 13px; }
  .msg { display: flex; gap: 12px; margin: 14px 0; }
  .pin { background: var(--orange-l); border: 1px solid #fde3c4; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
  .toggle { width: 38px; height: 22px; border-radius: 11px; background: #e4e4e7; position: relative; flex: none; }
  .toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
  .toggle.on { background: var(--accent); } .toggle.on::after { left: 19px; }
  .pipe { display: flex; gap: 4px; font-size: 12px; font-weight: 550; }
  .pipe span { padding: 3px 10px; border-radius: 999px; background: var(--line-2); color: var(--ink-3); }
  .pipe span.on { background: var(--green-l); color: #15803d; }
  .hero { background: linear-gradient(120deg, #eef3ff 0%, #f6f2ff 55%, #fff4e8 100%); border: 1px solid #e3e9fb; }
  .score { display: inline-block; min-width: 38px; text-align: center; font-weight: 650; font-size: 12.5px; border-radius: 8px; padding: 2px 8px; }

  /* phone */
  @media (max-width: 760px) {
    body { overflow-x: hidden; }
    .app { grid-template-columns: minmax(0, 1fr); }
    .side { display: none; }
    .topbar { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: 12px 16px; font-weight: 620; position: sticky; top: 0; z-index: 5; }
    .topbar .menu { display: grid; }
    .tabs { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); z-index: 6; }
    .tabs a { display: grid; justify-items: center; gap: 2px; font-size: 11px; font-weight: 550; color: var(--ink-3); padding: 8px 2px 10px; }
    .tabs a svg.i { width: 21px; height: 21px; }
    .tabs a.on { color: var(--accent); }
    .main { padding: 20px 16px 96px; }
    h1 { font-size: 22px; }
    .g2, .g3, .g4 { grid-template-columns: 1fr; }
    .g4.keep, .g2.keep { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
    .stat { font-size: 22px; }
    .kv { grid-template-columns: 1fr; gap: 2px; }
    .kv b { margin-top: 6px; }
    .hide-phone { display: none; }
    .card { padding: 16px; }
    .center { min-height: 100vh; }
    td, th { overflow-wrap: normal; }
    .tw table { min-width: 600px; }
    .tw::after { content: "Swipe sideways to see the whole table →"; display: block; font-size: 12px; color: var(--ink-3); margin-top: 8px; }
  }

  /* --- app additions (step 1) --- */
  .testbar { background: #fef3c7; color: #92400e; font-size: 12px; font-weight: 600; text-align: center; padding: 3px 8px; letter-spacing: .02em; }
  .app { min-height: calc(100vh - 22px); }
  .side { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
  .nav a .soon { margin-left: auto; font-size: 10.5px; font-weight: 600; color: #a1a1aa; border: 1px solid var(--line); border-radius: 999px; padding: 0 6px; }
  .nav a.on .soon { color: var(--accent-d); border-color: var(--accent-ring); }
  .me { margin-top: auto; display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 14px 6px 2px; }
  .iconbtn { border: 0; background: transparent; color: var(--ink-3); cursor: pointer; padding: 6px; border-radius: 8px; display: grid; }
  .iconbtn:hover { background: var(--line-2); color: var(--ink); }
  .btn:hover { filter: brightness(.97); }
  .topbar .menu { color: var(--ink); }
  .center { min-height: calc(100vh - 22px); }
  @media (max-width: 760px) { .side { display: none; } }

  /* step 1 feedback: no badges in the menu; unbuilt items are lighter; names stay on 1 line */
  .nav a { white-space: nowrap; }
  .nav a.later { color: #a1a1aa; }
  .nav a.later svg.i { color: #d4d4d8; }
  .nav a.later.on { color: var(--accent-d); }
  /* home: setup checklist */
  .check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #d4d4d8; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; color: #fff; }
  .check.done { background: var(--green); border-color: var(--green); }
  .check.now { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-l); }

  /* phone: tables marked .stack become simple cards */
  @media (max-width: 760px) {
    .stackwrap { overflow: visible; }
    .stackwrap::after { content: none !important; }
    table.stack { min-width: 0 !important; }
    table.stack tr:first-child { display: none; }
    table.stack tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
    table.stack tr:last-child { border-bottom: 0; }
    table.stack td { display: block; border: 0; padding: 3px 0; }
    table.stack td.num { display: none; }
    table.stack td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; color: var(--ink-3); font-weight: 550; }
  }

  /* interview: chat box scrolls by itself, the page doesn't */
  .chat { max-height: max(220px, calc(100vh - 470px)); overflow-y: auto; padding: 4px 2px 8px; scroll-behavior: auto; }
  .chat .bubble:last-child { box-shadow: 0 0 0 2px var(--accent-ring); }
  .phone-only { display: none; }
  @media (max-width: 760px) {
    .phone-only { display: block; }
    .chat { max-height: max(200px, calc(100vh - 430px)); }
    .chat .bubble { max-width: 92%; }
  }

  /* interview on phones: leave room for the bottom menu bar; smaller mic */
  @media (max-width: 760px) {
    form[action="/interview"] { scroll-margin-bottom: 84px; }
    .chat { max-height: max(180px, calc(100vh - 560px)); }
    #mic-row { margin: 0 0 8px !important; }
    #mic-row .mic { width: 52px; height: 52px; box-shadow: 0 0 0 6px var(--accent-l); }
    #mic-row .mic svg.i { width: 22px; height: 22px; }
    #mic-label { margin-top: 6px !important; font-size: 12.5px; }
    #answer { min-height: 70px; }
  }

  /* menu: setup section on top until finished */
  .nav-h.setup-h { color: var(--accent-d); margin-top: 6px; }
  .nav a .tick { margin-left: auto; color: var(--green); font-weight: 700; font-size: 13px; }
  .nav a.done { color: var(--ink-3); }
  .nav a.next { color: var(--ink); font-weight: 600; }
  .nav a .nextdot { margin-left: auto; font-size: 11px; font-weight: 650; color: #fff; background: var(--accent); border-radius: 999px; padding: 1px 8px; }
  .nav a.on .nextdot { background: var(--accent-d); }

  /* title row with interview buttons */
  .titlerow { margin: 0 0 6px; align-items: center; }
  .titlebtns { gap: 6px; }
  .titlebtns .btn { font-size: 13px; padding: 6px 11px; }
  @media (max-width: 760px) { .titlerow .sp { display: none; } .titlebtns { width: 100%; margin-top: 4px; } }

/* ---------- Drafts: 5 sections, each with its own colour and look ---------- */
.k-first { --k: #2563eb; --k-l: #eff4ff; } .k-followup { --k: #ea7a12; --k-l: #fff4e8; } .k-intro { --k: #16a34a; --k-l: #ecfdf3; }
.k-post { --k: #0a66c2; --k-l: #eaf3fb; } .k-news { --k: #7c3aed; --k-l: #f4efff; }
.dtabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 0 0 16px; }
.dtab { display: flex; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); text-decoration: none; min-width: 0; }
.dtab:hover { border-color: var(--k); }
.dtab.on { border: 2px solid var(--k); background: var(--k-l); padding: 11px; }
.dtab.empty { opacity: .55; }
.dt-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--k-l); color: var(--k); display: grid; place-items: center; }
.dtab.on .dt-ic { background: var(--k); color: #fff; }
.dt-l { display: flex; flex-direction: column; min-width: 0; }
.dt-n { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt-c { font-size: 12.5px; color: var(--ink-3); }
.dtab.on .dt-c { color: var(--k); font-weight: 600; }
.dcard { border-left: 4px solid var(--k); }
.mail { border: 1px solid var(--line); border-radius: 12px; margin: 0 0 10px; background: #fff; overflow: hidden; }
.mail-head { background: var(--line-2); padding: 10px 16px; font-size: 13.5px; display: grid; gap: 4px; }
.mail-head .muted { display: inline-block; width: 58px; }
.mail-body { padding: 14px 16px; white-space: pre-line; font-size: 14px; }
.li-post { border: 1px solid #dfe3e8; border-radius: 12px; padding: 14px 16px; margin: 0 0 10px; background: #fff; }
.li-av { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--k); color: #fff; display: grid; place-items: center; font-weight: 600; }
.li-text { white-space: pre-line; font-size: 14px; margin-top: 10px; }
.nl { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 0 0 10px; background: #fff; }
.nl-head { background: var(--k-l); border-bottom: 3px solid var(--k); padding: 14px 18px; }
.nl-subj { font-size: 18px; font-weight: 650; margin-top: 2px; }
.nl-body { padding: 16px 18px; white-space: pre-line; font-size: 14px; line-height: 1.6; }
.dt-s { display: none; }
.note.khow { background: var(--k-l); border-color: transparent; border-left: 4px solid var(--k); }
@media (max-width: 1100px) and (min-width: 641px) { .dt-ic { display: none; } }
@media (max-width: 640px) {
  .dtabs { gap: 4px; }
  .dtab { flex-direction: column; gap: 4px; padding: 8px 2px; text-align: center; border-radius: 12px; }
  .dtab.on { padding: 7px 1px; }
  .dt-ic { width: 30px; height: 30px; }
  .dt-l { align-items: center; }
  .dt-n { display: none; } .dt-s { display: block; font-weight: 600; font-size: 11px; white-space: nowrap; }
  .dt-c { font-size: 11px; }
}

/* Home: compact "Needs you" box, each action right next to its text */
.card.needs { max-width: 460px; padding: 16px 18px; }
.card.needs h2 { margin: 0 0 6px; }
.need { display: flex; gap: 12px; align-items: center; padding: 7px 10px; margin: 0 -10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 14px; }
.need:hover { background: var(--accent-l); }
.need b { color: var(--accent); font-weight: 600; white-space: nowrap; }
@media (max-width: 640px) { .card.needs { max-width: none; } }
.need b { display: inline-block; padding: 3px 11px; border: 1px solid var(--accent-ring); border-radius: 8px; background: #fff; font-size: 13px; }
.need:hover b { background: var(--accent); color: #fff; border-color: var(--accent); }
/* My contacts: short columns never wrap mid-word; long website links wrap inside the Name column */
@media (min-width: 761px) {
  table.ctable th, table.ctable td { white-space: nowrap; }
  table.ctable th:first-child, table.ctable td:first-child { white-space: normal; width: 100%; min-width: 240px; }
  table.ctable td:first-child a { overflow-wrap: anywhere; }
  table.ctable td:nth-child(5) { white-space: normal; min-width: 120px; }
}

/* Sidebar (2026-12-04): the name + sign out stay pinned at the bottom; only the menu scrolls */
@media (min-width: 761px) {
  .side { overflow: hidden; }
  .side .nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin: 0 -6px; padding: 0 6px 12px; }
  .side .me { flex-shrink: 0; background: #fff; }
}
/* Folded menu sections (Partners, Share): tap the heading to open */
.nav-fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; border-radius: 8px; }
.nav-fold > summary::-webkit-details-marker { display: none; }
.nav-fold > summary:hover { color: var(--ink-2); }
.nav-fold > summary svg.i { width: 14px; height: 14px; margin-left: auto; color: #a1a1aa; transition: transform .15s; }
.nav-fold[open] > summary svg.i { transform: rotate(90deg); }
.nav-fold .later-tag { font-size: 10.5px; font-weight: 600; color: #a1a1aa; border: 1px solid var(--line); border-radius: 999px; padding: 0 6px; }
/* Test copy: the yellow bar above takes 22px, keep the pinned name fully on screen */
@media (min-width: 761px) { body:has(> .testbar) .side { height: calc(100vh - 22px); } }
/* Name at the bottom of the menu opens My profile */
.me-link { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; color: inherit; border-radius: 9px; padding: 4px; margin: -4px; }
.me-link:hover { background: var(--line-2); }
