/* Pursue Outreach. "A quiet desk for relationships": warm paper surfaces,
   near-black ink, one pine accent for things you press, people as the color
   (avatar hues, stage dots). Dense like a good mail client. Light first. */

:root {
  --canvas: #f5f5f2; --surface: #ffffff; --surface-2: #fafaf8; --sunk: #efefeb; --col: #f0f0ec;
  --ink: #151a18; --ink-2: #3a4440; --muted: #5c6762; --line: #e3e4df; --line-strong: #858f8a;
  --accent: #0f6b5f; --accent-hover: #0b5a50; --accent-ink: #ffffff; --accent-soft: #e3f0ec; --accent-line: #9cc9bf;
  --danger: #b42318; --danger-soft: #fdecea; --warn: #85560a; --warn-soft: #fbf1de; --ok: #1d7a45; --ok-soft: #e3f4ea;
  --bubble-me: #e9f2ef; --bubble-them: #ffffff;
  --e1: 0 1px 2px rgb(20 26 24 / 6%);
  --e2: 0 1px 2px rgb(20 26 24 / 6%), 0 10px 28px -6px rgb(20 26 24 / 18%);
  --e3: 0 2px 4px rgb(20 26 24 / 8%), 0 22px 48px -10px rgb(20 26 24 / 32%);
  --r-sm: 6px; --r: 10px; --r-lg: 14px;
  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Instrument Serif", ui-serif, Georgia, serif;
  --av-l: 88%; --av-s: 42%; --av-ink-l: 26%;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --slate: #64748b; --slate-soft: #eef1f5; --slate-ink: #3c4859;
  --blue: #2563eb; --blue-soft: #e8effd; --blue-ink: #1c4bb4;
  --violet: #7c3aed; --violet-soft: #f1eafd; --violet-ink: #5a2ab0;
  --amber: #c27803; --amber-soft: #fbf1dc; --amber-ink: #7f4d00;
  --green: #16834a; --green-soft: #e3f4ea; --green-ink: #13663a;
  --gray: #8b8f8c; --gray-soft: #f0f1ef; --gray-ink: #4a4f4c;
  --teal: #0f8a7d; --teal-soft: #e0f3f0; --teal-ink: #0b5e55;
  --pink: #c2306f; --pink-soft: #fbe8f0; --pink-ink: #8e1f50;
  --orange: #c4541a; --orange-soft: #fcebe0; --orange-ink: #8a3a10;
  --red: #c0352b; --red-soft: #fcebe9; --red-ink: #8f2119;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #0e1211; --surface: #161b1a; --surface-2: #1a201f; --sunk: #0b0e0d; --col: #121716;
    --ink: #e8edeb; --ink-2: #c3ccc8; --muted: #9aa6a1; --line: #29312f; --line-strong: #6b7873;
    --accent: #5cc2b2; --accent-hover: #74d0c1; --accent-ink: #06110f; --accent-soft: #143029; --accent-line: #2f6b60;
    --danger: #ff8a7a; --danger-soft: #3a1714; --warn: #f0b75a; --warn-soft: #2f2410; --ok: #63c587; --ok-soft: #142a1d;
    --bubble-me: #17302a; --bubble-them: #1b2120;
    --e1: 0 1px 2px rgb(0 0 0 / 40%); --e2: 0 1px 2px rgb(0 0 0 / 40%), 0 12px 32px -6px rgb(0 0 0 / 60%); --e3: 0 2px 4px rgb(0 0 0 / 50%), 0 24px 52px -10px rgb(0 0 0 / 75%);
    --av-l: 30%; --av-s: 30%; --av-ink-l: 88%;
    --slate: #94a3b8; --slate-soft: #1e242c; --slate-ink: #c6d0de;
    --blue: #6b9bff; --blue-soft: #17223a; --blue-ink: #aec7ff;
    --violet: #a78bfa; --violet-soft: #241b39; --violet-ink: #cdbcff;
    --amber: #e0a33a; --amber-soft: #2e2410; --amber-ink: #f1c878;
    --green: #4cc282; --green-soft: #12291c; --green-ink: #93ddb2;
    --gray: #8d938f; --gray-soft: #1f2321; --gray-ink: #c2c8c4;
    --teal: #4fc3b4; --teal-soft: #102b27; --teal-ink: #93e0d5;
    --pink: #f07cad; --pink-soft: #33141f; --pink-ink: #f7b6d0;
    --orange: #f0915a; --orange-soft: #33190c; --orange-ink: #f7bf9c;
    --red: #ff8a7a; --red-soft: #3a1714; --red-ink: #ffc0b6;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --canvas: #0e1211; --surface: #161b1a; --surface-2: #1a201f; --sunk: #0b0e0d; --col: #121716;
  --ink: #e8edeb; --ink-2: #c3ccc8; --muted: #9aa6a1; --line: #29312f; --line-strong: #6b7873;
  --accent: #5cc2b2; --accent-hover: #74d0c1; --accent-ink: #06110f; --accent-soft: #143029; --accent-line: #2f6b60;
  --danger: #ff8a7a; --danger-soft: #3a1714; --warn: #f0b75a; --warn-soft: #2f2410; --ok: #63c587; --ok-soft: #142a1d;
  --bubble-me: #17302a; --bubble-them: #1b2120;
  --e1: 0 1px 2px rgb(0 0 0 / 40%); --e2: 0 1px 2px rgb(0 0 0 / 40%), 0 12px 32px -6px rgb(0 0 0 / 60%); --e3: 0 2px 4px rgb(0 0 0 / 50%), 0 24px 52px -10px rgb(0 0 0 / 75%);
  --av-l: 30%; --av-s: 30%; --av-ink-l: 88%;
  --slate: #94a3b8; --slate-soft: #1e242c; --slate-ink: #c6d0de;
  --blue: #6b9bff; --blue-soft: #17223a; --blue-ink: #aec7ff;
  --violet: #a78bfa; --violet-soft: #241b39; --violet-ink: #cdbcff;
  --amber: #e0a33a; --amber-soft: #2e2410; --amber-ink: #f1c878;
  --green: #4cc282; --green-soft: #12291c; --green-ink: #93ddb2;
  --gray: #8d938f; --gray-soft: #1f2321; --gray-ink: #c2c8c4;
  --teal: #4fc3b4; --teal-soft: #102b27; --teal-ink: #93e0d5;
  --pink: #f07cad; --pink-soft: #33141f; --pink-ink: #f7b6d0;
  --orange: #f0915a; --orange-soft: #33190c; --orange-ink: #f7bf9c;
  --red: #ff8a7a; --red-soft: #3a1714; --red-ink: #ffc0b6;
  color-scheme: dark;
}

/* ===== Base ===== */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 14px/1.45 var(--font); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; overflow: hidden; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; text-wrap: balance; }
h2 { font-size: 16px; font-weight: 600; letter-spacing: -0.005em; line-height: 1.3; }
h3 { font-size: 14px; font-weight: 600; }
h1:focus { outline: none; }
.display { font: 400 34px/1.1 var(--display); letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.strong { font-weight: 600; }
.grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.row.wrap { flex-wrap: wrap; }
.stack-4 { display: grid; gap: 4px; } .stack-8 { display: grid; gap: 8px; } .stack-16 { display: grid; gap: 16px; align-content: start; min-width: 0; }
svg.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
svg.i.filled { fill: currentColor; }
svg.i.tick { color: var(--accent); margin-left: auto; }
.i-space { width: 16px; flex: none; }
kbd { font: 500 11px/1 var(--font); color: var(--muted); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 2px 5px; background: var(--surface); }

/* Colors for stages and lists, always paired with a name */
.c-slate { --sd: var(--slate); --soft: var(--slate-soft); --sink: var(--slate-ink); }
.c-blue { --sd: var(--blue); --soft: var(--blue-soft); --sink: var(--blue-ink); }
.c-violet { --sd: var(--violet); --soft: var(--violet-soft); --sink: var(--violet-ink); }
.c-amber { --sd: var(--amber); --soft: var(--amber-soft); --sink: var(--amber-ink); }
.c-green { --sd: var(--green); --soft: var(--green-soft); --sink: var(--green-ink); }
.c-gray { --sd: var(--gray); --soft: var(--gray-soft); --sink: var(--gray-ink); }
.c-teal { --sd: var(--teal); --soft: var(--teal-soft); --sink: var(--teal-ink); }
.c-pink { --sd: var(--pink); --soft: var(--pink-soft); --sink: var(--pink-ink); }
.c-orange { --sd: var(--orange); --soft: var(--orange-soft); --sink: var(--orange-ink); }
.c-red { --sd: var(--red); --soft: var(--red-soft); --sink: var(--red-ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sd, var(--muted)); flex: none; display: inline-block; }

/* ===== Controls ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 500; font-size: 13px; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .12s var(--ease); }
.btn:hover { background: var(--surface-2); color: var(--ink); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn.quiet { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn.quiet:hover { background: var(--sunk); }
.btn.danger { color: var(--danger); }
.btn.on { background: var(--accent-soft); border-color: var(--accent-line); }
.btn.on svg { color: var(--accent); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12px; }
.btn:disabled { opacity: .55; cursor: default; }
.btn kbd { margin-left: 2px; }
.icon-btn { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: var(--r-sm); border: 0; background: transparent; color: var(--muted); cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--sunk); color: var(--ink); }
.linkish { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; font-size: inherit; }
.input, select, textarea { height: 32px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); padding: 0 10px; min-width: 0; color: var(--ink); }
textarea { height: auto; padding: 8px 10px; resize: vertical; line-height: 1.45; }
.input.inline { border-color: transparent; background: transparent; padding: 0 6px; margin-left: -6px; width: calc(100% + 6px); }
.input.inline:hover { border-color: var(--line); }
.input.inline:focus { border-color: var(--line-strong); background: var(--surface); }
.search { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--muted); min-width: 0; }
.search input { border: 0; outline: 0; background: transparent; min-width: 0; width: 100%; color: var(--ink); height: 30px; padding: 0; }
.search:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--ink-2); white-space: nowrap; cursor: pointer; }
.chip:hover { border-color: var(--line-strong); }
.chip.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--ink); font-weight: 500; }
.chip.dashed { border-style: dashed; border-color: var(--line-strong); color: var(--muted); }
.chip .n { color: var(--muted); font-weight: 500; }
.chip svg.i { width: 14px; height: 14px; }
.chip.stage-chip.on { background: var(--soft); border-color: var(--sd); color: var(--sink); }
.chip-input { height: 28px; width: 150px; border-radius: 999px; }
.stage { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--soft); color: var(--sink); }
.stage::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sd); }
.due { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.due svg { width: 13px; height: 13px; }
.due.today { color: var(--accent); }
.due.over { color: var(--danger); }
.turn { font-size: 12px; font-weight: 600; color: var(--warn); white-space: nowrap; }
.touch { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lchips { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.lchip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-2); padding: 1px 8px 1px 6px; border-radius: 999px; background: var(--sunk); white-space: nowrap; }
.lchip .dot { width: 6px; height: 6px; }
.select-btn { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; padding: 2px 4px 2px 0; border-radius: 6px; cursor: pointer; color: var(--muted); font-size: 12px; }
.plain-add { border: 1px dashed var(--line-strong); border-radius: 999px; height: 22px; padding: 0 8px; font-size: 12px; color: var(--muted); background: transparent; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.plain-add svg { width: 12px; height: 12px; }
.plain-add.wide { height: 32px; border-radius: var(--r); width: 100%; justify-content: center; }
.ai-tag { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .02em; }

/* Avatars: a steady hue per person */
.av { --size: 32px; position: relative; flex: none; width: var(--size); height: var(--size); border-radius: 50%; display: inline-grid; place-items: center; font-size: calc(var(--size) * 0.36); font-weight: 600; letter-spacing: 0.01em; background: hsl(var(--h, 160) var(--av-s) var(--av-l)); color: hsl(var(--h, 160) 45% var(--av-ink-l)); }
.av.sm { --size: 26px; } .av.lg { --size: 40px; } .av.xl { --size: 56px; } .av.xxl { --size: 72px; }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.av .ch { position: absolute; right: -3px; bottom: -3px; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--surface); font: 700 8px/1 var(--font); color: #fff; }
.av .ch.li { background: #0a66c2; }
.av .ch.gm { background: #b4541f; }
.av .ch svg { width: 9px; height: 9px; stroke-width: 2.5; }
.av .st { position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--surface); background: var(--muted); }
.av .st.ok { background: var(--ok); } .av .st.warn { background: var(--warn); } .av .st.bad { background: var(--danger); }
.stack-av { --h: 160; }

/* ===== Shell ===== */
.app { display: grid; grid-template-columns: 232px minmax(0, 1fr); height: 100dvh; }
.side { background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; padding: 14px 10px; min-height: 0; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 9px; padding: 4px 8px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.mark { width: 24px; height: 24px; border-radius: 7px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font: 400 17px/1 var(--display); }
.jump { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; margin: 0 2px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-size: 13px; cursor: pointer; text-align: left; }
.jump span { flex: 1; }
.nav { display: grid; gap: 1px; }
.nav a { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border-radius: var(--r-sm); color: var(--ink-2); font-weight: 500; min-width: 0; }
.nav a:hover { background: var(--sunk); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--sunk); color: var(--ink); font-weight: 600; }
.nav a[aria-current="page"] svg { color: var(--accent); }
.nav .count { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--muted); flex: none; }
.nav .count.hot { color: var(--accent); }
.side-label { padding: 0 10px; font-size: 12px; font-weight: 600; color: var(--muted); display: flex; justify-content: space-between; align-items: center; height: 24px; }
.side-label .icon-btn { width: 24px; height: 24px; }
.side-empty { padding: 0 10px; font-size: 12px; color: var(--muted); }
.side-foot { margin-top: auto; display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: var(--r); border: 0; background: transparent; cursor: pointer; text-align: left; width: 100%; }
.side-foot:hover { background: var(--sunk); }
.side-foot div { display: grid; line-height: 1.25; min-width: 0; flex: 1; }
.side-foot b { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot > svg { color: var(--muted); }
.topbar, .tabbar { display: none; }
.main { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.banner { padding: 8px 16px; font-size: 12px; color: var(--ink-2); background: var(--warn-soft); border-bottom: 1px solid var(--line); }
.banner.demo { background: var(--accent-soft); }
.view { flex: 1; min-height: 0; display: flex; flex-direction: column; outline: none; }
.page { flex: 1; min-height: 0; overflow-y: auto; padding: 28px 32px 48px; }

/* ===== Today ===== */
.today-page { display: grid; gap: 28px; align-content: start; max-width: 860px; width: 100%; margin: 0 auto; }
.today-head { display: grid; gap: 6px; }
.sect-block { display: grid; gap: 10px; }
.sect-head { display: flex; align-items: center; gap: 8px; }
.sect-head h2 { font-size: 15px; }
.see-all { margin-left: auto; font-size: 13px; color: var(--accent); font-weight: 500; }
.count-badge { font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 1px 8px; }
.count-badge.over { color: var(--danger); background: var(--danger-soft); }
.rows { list-style: none; margin: 0; padding: 0; display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.rows > li { border-bottom: 1px solid var(--line); }
.rows > li:last-child { border-bottom: 0; }
.row-card { display: flex; align-items: center; gap: 12px; padding: 10px 14px; min-width: 0; color: var(--ink); }
a.row-card:hover { background: var(--surface-2); color: var(--ink); }
.row-card.overdue { box-shadow: inset 3px 0 0 var(--danger); }
.two-line { display: grid; line-height: 1.35; }
.two-line > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-actions { display: flex; gap: 6px; align-items: center; flex: none; }
.empty-line { color: var(--muted); font-size: 13px; padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: 12px; }
.coming summary { cursor: pointer; font-size: 13px; color: var(--muted); font-weight: 500; padding: 4px 0 8px; }
.attn { display: grid; gap: 6px; }
.attn-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--warn-soft); font-size: 13px; color: var(--ink); }

/* ===== People ===== */
.people-page { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 14px; padding: 22px 24px 0; }
.page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-head .title { display: flex; align-items: baseline; gap: 10px; margin-right: auto; min-width: 0; }
.page-head .title .muted { font-size: 13px; }
.switch { display: inline-flex; padding: 2px; border-radius: 8px; background: var(--sunk); border: 1px solid var(--line); }
.switch button { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 6px; color: var(--muted); font-size: 13px; font-weight: 500; cursor: pointer; border: 0; background: transparent; }
.switch button:hover { color: var(--ink); }
.switch button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--e1); }
.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filters .search { width: 240px; }
.filters .sep { width: 1px; height: 20px; background: var(--line); }
.views { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.v-board { display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; padding: 2px 2px 20px; flex: 1; min-height: 0; align-items: stretch; scroll-snap-type: x proximity; }
.col { flex: 0 0 264px; display: flex; flex-direction: column; gap: 8px; background: var(--col); border: 1px solid var(--line); border-radius: 12px; padding: 8px; min-height: 0; overflow-y: auto; position: relative; scroll-snap-align: start; }
.col-head { display: flex; align-items: center; gap: 8px; padding: 4px 6px 2px; position: sticky; top: -8px; background: var(--col); z-index: 1; min-height: 30px; }
.col-head h2 { font-size: 13px; font-weight: 600; }
.col-head .n { font-size: 12px; color: var(--muted); }
.col-head .icon-btn { margin-left: auto; width: 26px; height: 26px; }
.col.collapsed { flex: 0 0 48px; align-items: center; padding: 10px 0; cursor: pointer; }
.col.collapsed .col-head { flex-direction: column; writing-mode: vertical-rl; padding: 0; gap: 10px; position: static; }
.col-empty { border: 1px dashed var(--line-strong); border-radius: var(--r); padding: 18px 14px; text-align: center; color: var(--muted); font-size: 13px; display: grid; gap: 4px; }
.col-empty b { color: var(--ink-2); font-weight: 600; }
.pcard { position: relative; flex: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 10px 10px 12px; display: grid; gap: 9px; box-shadow: var(--e1); transition: border-color .12s, box-shadow .12s, opacity .12s; touch-action: pan-y; user-select: none; }
.pcard:hover { border-color: var(--line-strong); }
.pcard:focus-within { border-color: var(--accent-line); }
.pc-top { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.pc-id { min-width: 0; flex: 1; display: grid; gap: 1px; }
.pc-id h3 a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.pc-id h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.pc-id h3 a:focus-visible { outline: 0; }
.pcard:has(h3 a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.pc-id p { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-more { position: relative; z-index: 2; width: 26px; height: 26px; margin: -3px -4px 0 0; opacity: 0; }
.pcard:hover .pc-more, .pcard:focus-within .pc-more { opacity: 1; }
.pc-foot { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pc-foot .lists { margin-left: auto; display: flex; gap: 3px; align-items: center; flex: none; }
.pc-foot .lists .dot { width: 7px; height: 7px; }
.pc-foot .lists .more { font-size: 11px; color: var(--muted); margin-left: 2px; }
.pcard.overdue { box-shadow: inset 3px 0 0 var(--danger), var(--e1); }
.pcard.placeholder { opacity: .35; }
.pcard.held { outline: 2px dashed var(--accent); outline-offset: 2px; box-shadow: var(--e3); }
.pcard.dragging { position: fixed; z-index: 50; box-shadow: var(--e3); border-color: var(--line-strong); transform: scale(1.02) rotate(.4deg); cursor: grabbing; pointer-events: none; margin: 0; }
.drop-slot { height: 64px; flex: none; border: 1.5px dashed var(--sd); background: var(--soft); border-radius: var(--r); display: grid; place-items: center; font-size: 12px; color: var(--sink); font-weight: 500; }
.v-list { overflow: auto; flex: 1; min-height: 0; padding-bottom: 72px; position: relative; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.tbl th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 0 12px; height: 36px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th:first-child { border-top-left-radius: 12px; } .tbl th:last-child { border-top-right-radius: 12px; }
.th-btn { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.th-btn svg { width: 12px; height: 12px; }
.tbl td { padding: 0 12px; height: 52px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 13px; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td, .tbl tr.selected td { background: var(--surface-2); }
.tbl .sel { width: 36px; padding-right: 0; }
.tbl input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who div { display: grid; min-width: 0; line-height: 1.3; }
.who a { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bulk-bar { position: sticky; bottom: 12px; margin: 12px auto 0; width: fit-content; max-width: 100%; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--e2); border-radius: 12px; padding: 8px 10px 8px 14px; font-size: 13px; }
.v-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; overflow-y: auto; flex: 1; min-height: 0; padding: 2px 2px 24px; align-content: start; }
.gcard { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 12px; box-shadow: var(--e1); align-content: start; }
.gcard:hover { border-color: var(--line-strong); }
.gcard.overdue { box-shadow: inset 3px 0 0 var(--danger), var(--e1); }
.gcard .head { display: flex; gap: 12px; align-items: center; min-width: 0; }
.gcard .head div { display: grid; min-width: 0; line-height: 1.3; }
.gcard .head span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gcard h3 a { color: var(--ink); }
.gcard h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.gcard .meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.gtouch { display: grid; gap: 2px; font-size: 13px; }
.gnote { font-size: 12px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty-state { display: grid; gap: 6px; justify-items: center; text-align: center; color: var(--muted); padding: 32px 18px; font-size: 13px; }
.empty-state b { color: var(--ink); font-size: 14px; }
.empty-state.big { margin: 48px auto; max-width: 420px; }
.empty-state .btn { margin-top: 8px; }

/* ===== Inbox ===== */
.inbox { display: grid; grid-template-columns: 340px minmax(0, 1fr) 292px; flex: 1; min-height: 0; }
.ilist { border-right: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; min-height: 0; }
.ilist-head { padding: 14px 14px 10px; display: grid; gap: 10px; border-bottom: 1px solid var(--line); }
.ilist-head h1 { margin-right: auto; }
.ilist-controls { display: grid; gap: 10px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); padding: 2px; border-radius: 8px; background: var(--sunk); border: 1px solid var(--line); }
.seg button { height: 28px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--e1); }
.seg .n { font-size: 12px; color: var(--muted); }
.ifilters { display: flex; gap: 6px; flex-wrap: wrap; }
.ifilters .chip { height: 26px; font-size: 12px; padding: 0 9px; }
.archived-bar { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; padding: 2px 0; }
.ichats { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.group { padding: 12px 14px 6px; font-size: 12px; font-weight: 600; color: var(--muted); display: flex; justify-content: space-between; }
.group.due-group { color: var(--danger); }
.crow { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 10px 14px 10px 12px; border-left: 2px solid transparent; cursor: pointer; position: relative; }
.crow:hover { background: var(--surface-2); }
.crow:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.crow[aria-current="true"] { background: var(--accent-soft); border-left-color: var(--accent); }
.crow .body { min-width: 0; display: grid; gap: 2px; }
.crow .l1 { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.crow .name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crow.unread .name { font-weight: 700; }
.crow .time { margin-left: auto; font-size: 12px; color: var(--muted); flex: none; }
.crow.unread .time { color: var(--accent); font-weight: 600; }
.crow .snip { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crow.unread .snip { color: var(--ink-2); }
.crow .l3 { display: flex; align-items: center; gap: 10px; margin-top: 3px; min-width: 0; overflow: hidden; }
.crow .flag { color: var(--accent); display: inline-flex; }
.crow .flag svg { width: 13px; height: 13px; }
.crow .acct { margin-left: auto; }
.unread-dot { position: absolute; left: 4px; top: 24px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.crow.skeleton { cursor: default; }
.crow.skeleton .av { background: var(--sunk); }
.bar { display: block; height: 10px; border-radius: 4px; background: var(--sunk); margin: 4px 0; }
.bar.w60 { width: 60%; } .bar.w90 { width: 90%; }
.more-row { padding: 12px; text-align: center; }
.thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--canvas); position: relative; }
.thread-empty { margin: auto; display: grid; gap: 8px; text-align: center; padding: 24px; max-width: 360px; }
.thead { background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px 18px; display: grid; gap: 8px; }
.thead .row1 { display: flex; align-items: center; gap: 12px; min-width: 0; }
.thead .who-t { min-width: 0; flex: 1; display: grid; line-height: 1.3; }
.thead .who-t h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thead .who-t span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.back { display: none; }
.actions { display: flex; gap: 6px; align-items: center; flex: none; }
.verdict { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.verdict .v { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-weight: 600; }
.verdict .v::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.verdict.v-unsure .v::before { background: var(--warn); }
.verdict.v-noise .v::before { background: var(--muted); }
.remind { margin: 12px 18px 0; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: inset 3px 0 0 var(--accent); flex-wrap: wrap; }
.remind > svg { color: var(--accent); }
.remind.over { box-shadow: inset 3px 0 0 var(--danger); }
.remind.over > svg, .remind.over .txt b { color: var(--danger); }
.remind .txt { flex: 1; min-width: 180px; font-size: 13px; }
.remind .txt b { font-weight: 600; color: var(--accent); }
.msgs { list-style: none; margin: 0; padding: 18px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.day { align-self: center; font-size: 12px; color: var(--muted); padding: 6px 0; }
.msg { max-width: min(600px, 80%); padding: 9px 13px; border-radius: 14px; background: var(--bubble-them); border: 1px solid var(--line); font-size: 14px; }
.msg.me { align-self: flex-end; background: var(--bubble-me); border-color: transparent; border-bottom-right-radius: 4px; }
.msg.them { border-bottom-left-radius: 4px; }
.msg.held { background: transparent; border-style: dashed; }
.msg-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-subject { font-weight: 600; margin-bottom: 4px; }
.msg .meta { font-size: 11px; color: var(--muted); margin-top: 4px; }
.composer { margin: 0 18px 18px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; padding: 10px 12px; display: grid; gap: 8px; box-shadow: var(--e1); }
.composer:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.composer textarea { border: 0; outline: 0; resize: none; background: transparent; min-height: 44px; padding: 0; }
.composer .row .muted { font-size: 12px; margin-right: auto; }
.kbd-hint { display: inline-flex; gap: 3px; }
.ai-draft { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); }
.ppanel { border-left: 1px solid var(--line); background: var(--surface); overflow-y: auto; padding: 18px 16px; display: grid; gap: 18px; align-content: start; }
.ppanel .id { display: grid; gap: 8px; justify-items: start; }
.ppanel .id h2 { font-size: 17px; }
.ppanel .id p { font-size: 13px; color: var(--muted); line-height: 1.35; }
.prop { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px 10px; align-items: center; font-size: 13px; margin: 0; }
.prop dt { color: var(--muted); }
.prop dd { margin: 0; min-width: 0; display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.notes-prop { grid-template-columns: minmax(0, 1fr); }
.notes-prop dt { display: none; }
.notes-prop dd { display: grid; }
.sect { display: grid; gap: 8px; }
.sect h3 { font-size: 12px; font-weight: 600; color: var(--muted); }
.fu { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; display: grid; gap: 6px; background: var(--surface-2); justify-items: start; }
.fu.over { box-shadow: inset 3px 0 0 var(--danger); }
.fu p { font-size: 13px; }
.mails { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.mails li { display: grid; line-height: 1.3; overflow-wrap: anywhere; }
.mails span { font-size: 12px; color: var(--muted); }
.also { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 0; color: var(--ink); border-bottom: 1px solid var(--line); }
.also span:last-child { color: var(--muted); font-size: 12px; white-space: nowrap; }
.notes { width: 100%; min-height: 72px; }

/* ===== Profile page ===== */
.profile { display: grid; gap: 20px; align-content: start; max-width: 1100px; width: 100%; margin: 0 auto; }
.back-link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); justify-self: start; }
.profile-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.profile-head .role { font-size: 15px; color: var(--ink-2); }
.profile-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 12px; min-width: 0; grid-template-columns: minmax(0, 1fr); }
.card-title { display: flex; align-items: baseline; gap: 8px; justify-content: space-between; }
.card-title h2 { font-size: 14px; }
.conv-list { list-style: none; margin: 0; padding: 0; display: grid; }
.conv { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.conv-list li:last-child .conv { border-bottom: 0; }
.conv .grow { display: grid; }
.conv-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv > svg { color: var(--muted); }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.plain-list li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.timeline li { display: flex; justify-content: space-between; gap: 8px; }
.timeline li.off { color: var(--muted); }
.timeline .when { font-size: 12px; color: var(--muted); }

/* ===== Popovers, menus, dialogs, palette, toasts ===== */
#pop-root .pop { position: fixed; z-index: 40; width: 360px; max-width: calc(100vw - 24px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--e2); padding: 14px; display: grid; gap: 14px; animation: rise .14s var(--ease); max-height: calc(100dvh - 24px); overflow-y: auto; }
#pop-root .pop.menu-pop { width: 240px; padding: 6px; gap: 0; }
#pop-root .pop.sheet { left: 0 !important; right: 0; bottom: 0; top: auto !important; width: 100%; max-width: none; border-radius: 16px 16px 0 0; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.pop-head { display: flex; align-items: center; gap: 8px; }
.pop-head > svg { color: var(--accent); }
.pop-head h2 { font-size: 14px; margin-right: auto; }
.pop-head .linkish { color: var(--muted); font-size: 12px; }
.pop fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 7px; min-width: 0; }
.pop legend { font-size: 12px; font-weight: 600; color: var(--muted); padding: 0; margin-bottom: 7px; }
.pop form h2 { font-size: 14px; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.note { width: 100%; }
.pop-foot { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.pop-foot .muted { font-size: 12px; margin-right: auto; display: flex; gap: 6px; align-items: center; }
.pop-foot > span:first-child:empty { margin-right: auto; }
.menu-items { display: grid; }
.menu-item { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; text-align: left; font-size: 13px; color: var(--ink); width: 100%; }
.menu-item:hover, .menu-item:focus-visible { background: var(--sunk); outline: none; }
.menu-item svg.i:first-child { color: var(--muted); }
.menu-item.danger { color: var(--danger); }
.menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.menu-head { font-size: 12px; font-weight: 600; color: var(--muted); padding: 6px 10px 4px; }
.modal-back { position: fixed; inset: 0; background: rgb(10 16 14 / 45%); display: grid; place-items: center; padding: 16px; z-index: 60; }
.modal { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--e3); width: min(540px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 22px; display: grid; gap: 16px; animation: rise .16s var(--ease); }
.modal.wide { width: min(720px, 100%); }
.modal-steps { display: flex; gap: 6px; }
.modal-steps span { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.modal-steps span.on { background: var(--accent); }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.modal.palette { padding: 0; gap: 0; width: min(560px, 100%); align-self: start; margin-top: 12vh; overflow: hidden; }
.palette-head { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--line); color: var(--muted); }
.palette-input { border: 0; outline: 0; background: transparent; height: 52px; flex: 1; font-size: 15px; color: var(--ink); min-width: 0; }
.palette-list { max-height: min(420px, 60dvh); overflow-y: auto; padding: 6px; }
.palette-group { font-size: 12px; font-weight: 600; color: var(--muted); padding: 8px 10px 4px; }
.palette-item { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.palette-item[aria-selected="true"] { background: var(--accent-soft); }
.keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.keys h3 { font-size: 13px; margin-bottom: 8px; }
.keys dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: 13px; align-items: center; }
.keys dt { display: flex; gap: 3px; align-items: center; color: var(--muted); }
.keys dd { margin: 0; }
#toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 12px); opacity: 0; pointer-events: none; transition: opacity .16s var(--ease), transform .16s var(--ease); z-index: 70; background: var(--ink); color: var(--canvas); border-radius: 10px; padding: 8px 8px 8px 14px; display: flex; align-items: center; gap: 12px; font-size: 13px; box-shadow: var(--e2); max-width: calc(100vw - 32px); }
#toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#toast span { min-height: 20px; display: flex; align-items: center; }
#toast button { border: 0; background: transparent; color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; padding: 4px 6px; }

/* ===== Older pages: connections, accounts, campaigns (restyled) ===== */
.legacy { display: grid; gap: 20px; align-content: start; }
.legacy > * { min-width: 0; max-width: 1100px; width: 100%; margin-inline: auto; }
.legacy .page-head { align-items: flex-end; justify-content: space-between; }
.legacy .page-head .sub { color: var(--muted); margin-top: 4px; }
.legacy h1 { font-size: 22px; }
.legacy .back { display: inline-flex; font-size: 13px; color: var(--muted); }
.card-head { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.section-title { display: grid; gap: 2px; }
.section-title h2 { font-size: 15px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px 16px; }
.field { display: grid; gap: 4px; min-width: 0; align-content: start; }
.field > label, .label { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea, .modal input:not([type=checkbox]):not([type=radio]), .modal select, .modal textarea { width: 100%; }
.legacy input:not([type=checkbox]):not([type=radio]):not(.inline), .modal input:not([type=checkbox]):not([type=radio]) { height: 34px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); padding: 0 10px; }
.hint { font-size: 12px; color: var(--muted); }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--accent); }
.stack { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.between { justify-content: space-between; }
.eyebrow { font-size: 12px; font-weight: 600; color: var(--muted); }
.sub { font-size: 12px; color: var(--muted); }
.charcount { font-size: 11px; color: var(--muted); text-align: right; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; padding: 1px 9px; border-radius: 999px; background: var(--sunk); color: var(--ink-2); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.plain::before { display: none; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--danger-soft); color: var(--danger); }
.pill.accent { background: var(--accent-soft); color: var(--accent); }
.chips { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.acct-who { display: flex; gap: 12px; align-items: center; min-width: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.legacy table { width: 100%; border-collapse: collapse; }
.legacy th, .legacy td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.legacy tr:last-child td { border-bottom: 0; }
.legacy th { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface-2); white-space: nowrap; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--surface-2); }
.progress-line { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
.steps-mini { display: flex; gap: 3px; }
.steps-mini span { width: 14px; height: 6px; border-radius: 3px; background: var(--line); }
.steps-mini span.done { background: var(--ok); }
.account-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; }
.checklist li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist .mark { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; font-size: 11px; font-weight: 700; background: none; color: inherit; font-family: var(--font); }
.checklist li.done .mark { border-color: var(--ok); background: var(--ok); color: var(--surface); }
.checklist li.done .what { color: var(--muted); }
.checklist li.next .mark { border-color: var(--accent); }
.checklist .what { flex: 1; min-width: 0; }
.presets { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.preset { position: relative; border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 12px; cursor: pointer; display: grid; gap: 2px; background: var(--surface); }
.preset:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.preset input { position: absolute; opacity: 0; pointer-events: none; }
.preset:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.preset.off { opacity: .55; cursor: default; }
.preset strong { font-size: 13px; }
.preset span { font-size: 12px; color: var(--muted); }
.legacy .people { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.legacy .people li { display: flex; gap: 10px; align-items: center; }
.linkbox { display: flex; gap: 8px; }
.inbox-list-rows { list-style: none; margin: 0; padding: 0; display: grid; }
.inbox-row { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.inbox-list-rows li:last-child { border-bottom: 0; }
.inbox-row > .grow { flex: 1 1 150px; }
.meter { display: grid; gap: 4px; }
.meter .bar { height: 6px; border-radius: 99px; background: var(--sunk); overflow: hidden; margin: 0; }
.meter .bar span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.notice { font-size: 13px; padding: 8px 11px; border-radius: 8px; background: var(--warn-soft); border-left: 3px solid var(--warn); }
.notice.bad { background: var(--danger-soft); border-left-color: var(--danger); }
.activity { list-style: none; margin: 0; padding: 0; display: grid; }
.act { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.act:last-child { border-bottom: 0; }
.act-title { font-weight: 600; font-size: 13px; }
.act.sys .act-title { font-weight: 500; color: var(--muted); }
.act.failed .act-title { color: var(--danger); }
.act .when { font-size: 12px; color: var(--muted); white-space: nowrap; }
.act blockquote { margin: 0; padding: 6px 10px; border-left: 2px solid var(--line); color: var(--muted); font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.emails { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.emails li { display: flex; gap: 6px; align-items: center; overflow-wrap: anywhere; }
.campaign-list { display: grid; gap: 10px; }
.campaign-row { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(5, minmax(64px, .5fr)) auto; gap: 12px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); }
.campaign-row:hover { border-color: var(--line-strong); color: var(--ink); }
.campaign-row .stat { display: grid; }
.campaign-row .stat .n { font-weight: 600; font-size: 15px; }
.campaign-row .stat .l { font-size: 11px; color: var(--muted); }
.group-head { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; }
.tile .n { font-weight: 600; font-size: 22px; line-height: 1.15; }
.tile .l { font-size: 12px; color: var(--muted); }
.tile .r { font-size: 11px; color: var(--accent); }
.campaign-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.preview-msg { background: var(--bubble-me); border-radius: 12px; padding: 10px 13px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; }
.preview-msg.missing { background: var(--warn-soft); }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.empty { padding: 28px 18px; color: var(--muted); text-align: center; display: grid; gap: 6px; }
.login { max-width: 380px; margin: 12vh auto; display: grid; gap: 14px; padding: 0 16px; }
.login form { display: grid; gap: 10px; }
.login input { height: 36px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 0 10px; background: var(--surface); }

/* ===== Responsive ===== */
@media (max-width: 1180px) {
  .inbox { grid-template-columns: 300px minmax(0, 1fr); }
  .ppanel { display: none; }
  .profile-body, .account-layout, .campaign-layout { grid-template-columns: minmax(0, 1fr); }
  .campaign-row { grid-template-columns: minmax(0, 1fr) repeat(3, auto); }
  .campaign-row .stat.extra { display: none; }
}
@media (max-width: 760px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .topbar { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 8px 0 max(16px, env(safe-area-inset-left, 0px)); background: var(--surface); border-bottom: 1px solid var(--line); flex: none; }
  .topbar .brand { padding: 0; margin-right: auto; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); flex: none; }
  .tabbar a { position: relative; display: grid; justify-items: center; gap: 2px; font-size: 11px; font-weight: 500; color: var(--muted); padding: 4px 0; border-radius: 8px; min-height: 44px; align-content: center; }
  .tabbar a svg { width: 20px; height: 20px; }
  .tabbar a[aria-current="page"] { color: var(--accent); }
  .tabbar .tab-n { position: absolute; top: 2px; left: calc(50% + 6px); font-size: 10px; font-weight: 700; color: var(--accent-ink); background: var(--accent); border-radius: 999px; padding: 0 5px; line-height: 16px; }
  .tabbar .tab-n:empty { display: none; }
  .page { padding: 18px max(16px, env(safe-area-inset-right, 0px)) 32px max(16px, env(safe-area-inset-left, 0px)); }
  .display { font-size: 28px; }
  .people-page { padding: 16px max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
  .page-head .title { width: 100%; }
  .switch { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
  .switch button { justify-content: center; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; }
  .filters .search { width: 180px; flex: none; }
  .v-board { margin: 0 -16px; padding: 2px 16px 16px; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; }
  .col { flex-basis: 82%; }
  .col.collapsed { flex-basis: 48px; }
  .tbl .hide-sm { display: none; }
  .tbl .who .av { display: none; }
  .tbl td, .tbl th { padding: 0 8px; }
  .v-gallery { grid-template-columns: minmax(0, 1fr); }
  .inbox { grid-template-columns: minmax(0, 1fr); }
  .inbox .thread { display: none; }
  .inbox.has-thread .ilist { display: none; }
  .inbox.has-thread .thread { display: flex; }
  .back { display: inline-grid; margin-left: -8px; }
  .thead { padding: 10px 12px; }
  .thead .row1 { flex-wrap: wrap; }
  .thead .who-t { flex: 1 1 160px; }
  .actions { width: 100%; }
  .actions .btn { flex: 1; }
  .btn kbd, .kbd-hint { display: none; }
  .remind { margin: 10px 12px 0; }
  .msgs { padding: 14px 12px; }
  .msg { max-width: 88%; }
  .composer { margin: 0 12px 12px; }
  .row-card { flex-wrap: wrap; }
  .row-card .row-actions { width: 100%; justify-content: flex-end; }
  .profile-head { gap: 14px; }
  .legacy .campaign-row { grid-template-columns: minmax(0, 1fr) auto; }
  .legacy .campaign-row .stat { display: none; }
  #toast { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { *, *::before { transition: none !important; animation: none !important; } .pcard.dragging { transform: none; } }

/* ===== Self-organizing pipeline ===== */
.organized { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.organized b { color: var(--ink); font-weight: 600; }
.organized .btn .n { color: var(--muted); font-weight: 600; }
.org-mark { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.sig { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11px; font-weight: 600; background: var(--sunk); color: var(--ink-2); white-space: nowrap; }
.sig.strong { background: var(--accent-soft); color: var(--accent); }
.sig.cold { background: var(--warn-soft); color: var(--warn); }
.sigs { display: flex; gap: 4px; flex-wrap: wrap; }
.reason { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reason.strong { color: var(--accent); font-weight: 600; }
.reason.cold { color: var(--warn); font-weight: 500; }
.reason svg { width: 12px; height: 12px; }
.pc-reason { display: flex; min-width: 0; margin-top: -3px; }
.auto-tag { font-size: 10px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; line-height: 15px; white-space: nowrap; }
.pc-foot .auto-tag { margin-left: auto; }
.pc-foot .auto-tag + .lists { margin-left: 6px; }
.pcard.opp { border-color: var(--accent-line); }
.col-opps { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; color: var(--accent); }
.col-opps svg { width: 11px; height: 11px; }
.tbl td.why { max-width: 240px; }
.tbl tr.opp td:nth-child(2) { box-shadow: inset 2px 0 0 var(--accent); }
.gcard.opp { border-color: var(--accent-line); }
.gcard blockquote { margin: 0; font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.45; padding-left: 10px; border-left: 2px solid var(--line); }
.opp-mark { margin-left: auto; color: var(--accent); align-self: flex-start; }
.review-list { list-style: none; margin: 0; padding: 0; display: grid; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.review-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.review-list li:last-child { border-bottom: 0; }
.review-list li.undone { opacity: .55; }
.review-list .when { font-size: 12px; color: var(--muted); white-space: nowrap; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.why-list li { display: grid; gap: 2px; justify-items: start; }
.why-list.compact li { gap: 1px; }

/* Profile */
.profile-head { gap: 14px; }
.ph-main { display: flex; gap: 20px; align-items: center; min-width: 0; }
.stage-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.opp-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--ink); font-size: 13px; }
.opp-line svg { color: var(--accent); }
.timeline-card .card-title { flex-wrap: wrap; align-items: center; }
.tl-seg { grid-template-columns: repeat(4, auto); }
.tl-seg button { padding: 0 10px; }
.timeline-list { list-style: none; margin: 0; padding: 0; display: grid; }
.tl-day { font-size: 12px; font-weight: 600; color: var(--muted); padding: 14px 0 6px; }
.tl { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 8px 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 13px; top: 34px; bottom: -8px; width: 1px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl-icon { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--sunk); color: var(--muted); }
.tl.msg-item.them .tl-icon { background: var(--accent-soft); color: var(--accent); }
.tl.sys.auto .tl-icon { background: var(--accent-soft); color: var(--accent); }
.tl-icon svg { width: 14px; height: 14px; }
.tl-body { min-width: 0; display: grid; gap: 3px; }
.tl-head { display: flex; align-items: baseline; gap: 4px; font-size: 13px; min-width: 0; }
.tl-head .when { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.tl-subject { font-weight: 600; font-size: 13px; }
.tl-text { font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.tl.sys .tl-head { color: var(--ink-2); }
.tl-link { font-size: 12px; color: var(--accent); }
.about { font-size: 13px; color: var(--ink-2); white-space: pre-wrap; }
.about.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.li-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.li-list li { display: grid; gap: 1px; font-size: 13px; }
@media (max-width: 760px) {
  .ph-main { align-items: flex-start; }
  .tl-seg { width: 100%; grid-template-columns: repeat(4, 1fr); }
}

/* ===== Lead briefs, sources and review feedback ===== */
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 34px; padding: 3px 4px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); cursor: text; }
.tags:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.tags > input.tag-entry:not([type=checkbox]):not([type=radio]) { flex: 1; min-width: 120px; width: auto; height: 26px; border: 0; padding: 0 6px; background: transparent; outline: 0; }
.tag { display: inline-flex; align-items: center; gap: 2px; height: 24px; padding: 0 2px 0 9px; border-radius: 6px; background: var(--accent-soft); color: var(--ink); font-size: 13px; font-weight: 500; max-width: 100%; }
.tag button { border: 0; background: transparent; color: var(--muted); width: 22px; height: 22px; border-radius: 5px; cursor: pointer; font-size: 15px; line-height: 1; }
.tag button:hover { background: var(--surface); color: var(--ink); }
.tag.soft { background: var(--surface); border: 1px solid var(--line); padding: 0 9px; font-weight: 500; color: var(--ink-2); }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-row .chip svg.i { width: 12px; height: 12px; color: var(--accent); }
.leave-out { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 12px; margin: 0; display: grid; gap: 8px; }
.leave-out legend { padding: 0 4px; }
details.leave-out summary, .suggest-more summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-2); }
details.leave-out:not([open]) { padding-bottom: 10px; }
.suggest-more summary { color: var(--accent); }
.suggest-more[open] summary { margin-bottom: 8px; }
.suggest { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.suggest .btn { flex: none; }
.notice.soft { background: var(--accent-soft); border-left-color: var(--accent); }
.or { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.modal.nc { width: min(920px, 100%); }
.preset.source { grid-template-columns: 36px minmax(0, 1fr); align-items: center; column-gap: 12px; padding: 12px 14px; }
.preset.source .src-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--sunk); color: var(--ink-2); }
.preset.source:has(input:checked) .src-icon { background: var(--surface); color: var(--accent); }
.preset.source .src-text { display: grid; gap: 2px; color: var(--muted); }
.preset.source .src-text strong { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; flex-wrap: wrap; }
.preset.source .pill { font-size: 11px; }
.nc-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 18px; align-items: start; }
.apollo-results { position: sticky; top: 0; display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); min-height: 120px; align-content: start; transition: opacity .15s var(--ease); }
.apollo-results.loading { opacity: .55; }
.sample { list-style: none; margin: 0; padding: 0; display: grid; }
.sample li { display: flex; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.sample li:last-child { border-bottom: 0; }
.sample .nm { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sample .sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sample .meta { text-align: right; font-size: 12px; color: var(--ink-2); white-space: nowrap; flex: none; max-width: 40%; }
.sample li.excluded .nm, .sample li.excluded .grow .sub { text-decoration: line-through; color: var(--muted); }
.post-pick { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.post-pick li { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.post-pick li:has(input:checked) { border-color: var(--accent-line); background: var(--accent-soft); }
.post-pick .grow { display: grid; gap: 4px; font-weight: 400; }
.post-text { font-size: 13px; color: var(--ink); }
table.mini { width: 100%; border-collapse: collapse; font-size: 13px; }
table.mini th, table.mini td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); }
table.mini th { font-size: 12px; color: var(--muted); font-weight: 600; background: var(--surface-2); }
table.mini tr:last-child td { border-bottom: 0; }

.source-line { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.source-line svg { width: 14px; height: 14px; color: var(--muted); flex: none; }
.feedback .fb-n { display: grid; }
.feedback .fb-n .n { font-size: 20px; font-weight: 600; line-height: 1.15; }
.feedback .fb-n .l { font-size: 12px; color: var(--muted); }
.reason-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.reason-bars li { display: grid; grid-template-columns: 130px minmax(0, 1fr) 24px; gap: 8px; align-items: center; font-size: 12px; }
.reason-bars .rl { color: var(--ink-2); }
.reason-bars .bar { height: 6px; border-radius: 99px; background: var(--sunk); overflow: hidden; }
.reason-bars .bar span { display: block; height: 100%; border-radius: 99px; background: var(--warn); }
.reason-bars .num { text-align: right; color: var(--muted); }
.sug-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sug { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--accent-line); background: var(--accent-soft); font-size: 13px; }
.sug .btn { flex: none; }

.review-modal { width: min(600px, 100%); }
.review-progress { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.review-progress span { display: block; height: 100%; background: var(--accent); transition: width .2s var(--ease); }
.review-person { display: flex; gap: 16px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); min-height: 148px; }
.review-person h3 { font-size: 18px; }
.review-actions { display: grid; gap: 14px; }
.review-actions > .btn { height: 40px; font-size: 14px; }
.review-actions .chip .n { font-size: 11px; }
@media (max-width: 760px) {
  .nc-split { grid-template-columns: minmax(0, 1fr); }
  .apollo-results { position: static; }
  .reason-bars li { grid-template-columns: 110px minmax(0, 1fr) 24px; }
  .suggest { flex-wrap: wrap; }
  .suggest .btn { width: 100%; }
}

/* ===== Account setup and launch ===== */
.modal.setup { width: min(760px, 100%); }
.setup-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.setup-steps li { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.setup-steps .bar { height: 4px; border-radius: 2px; background: var(--line); }
.setup-steps li.done .bar, .setup-steps li.on .bar { background: var(--accent); }
.setup-steps li.on { color: var(--ink); font-weight: 600; }
.setup-steps .sl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.check.consent { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.check.consent:has(input:checked) { border-color: var(--accent-line); background: var(--accent-soft); }
.connect-status { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; border: 1px dashed var(--line-strong); }
.connect-status.connected { border: 1px solid var(--accent-line); background: var(--accent-soft); }
.pulse { flex: none; width: 10px; height: 10px; margin: 5px 4px 0; border-radius: 50%; background: var(--warn); animation: pulse 1.4s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }
.done-mark { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.done-mark.warn { background: var(--warn); color: var(--surface); }
.done-mark svg { width: 14px; height: 14px; }
.setup-scroll { max-height: min(52dvh, 520px); overflow-y: auto; padding: 2px 4px 2px 2px; margin: 0 -4px 0 -2px; }
.launch-preview { margin: 0; padding: 0; list-style: none; counter-reset: lp; display: grid; gap: 10px; }
.launch-preview li { counter-increment: lp; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 10px; font-size: 13px; color: var(--ink-2); }
.launch-preview li::before { content: counter(lp); grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 12px; }
.launch-preview strong { color: var(--ink); font-size: 14px; }
.sn-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.launch-card { border-color: var(--accent-line); }
.launch-card .card-head .btn svg { width: 14px; height: 14px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 20px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.checks .mark { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; font-size: 12px; font-weight: 700; background: none; color: inherit; font-family: var(--font); }
.checks .mark svg { width: 12px; height: 12px; }
.checks li.ok .mark { border-color: var(--ok); background: var(--ok); color: var(--surface); }
.checks li.ok .cl { color: var(--muted); }
.checks li.warn .mark { border-color: var(--warn); color: var(--warn); }
.checks li.auto .mark { border-style: dashed; }
.checks li.todo .mark { border-color: var(--accent); }
.checks .cl { font-size: 13px; font-weight: 500; }
.checks .btn { flex: none; }
@media (max-width: 760px) {
  .setup-steps .sl { display: none; }
  .setup-steps li.on .sl { display: block; position: absolute; }
  .setup-steps { position: relative; padding-bottom: 18px; }
  .setup-steps li.on .sl { left: 0; top: 10px; }
  .launch-card .card-head .btn { width: 100%; }
}
.empty-start { justify-items: start; padding: 24px; }
.empty-start h2 { font-size: 17px; }

/* ===== LinkedIn sign-in on our own screen ===== */
.li-signin { display: grid; gap: 16px; max-width: 460px; width: 100%; margin: 0 auto; }
.li-head { display: grid; gap: 6px; justify-items: center; text-align: center; }
.li-head h2 { font-size: 20px; }
.li-marks { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.li-p, .li-in { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.li-p { background: var(--accent); color: var(--accent-ink); font-family: var(--display); font-weight: 400; font-size: 24px; }
.li-in { background: #0a66c2; color: #fff; font-size: 17px; letter-spacing: -.02em; }
.li-link { color: var(--muted); display: grid; place-items: center; }
.li-link svg { width: 16px; height: 16px; }
.li-form .btn.li-go, .li-signin .btn.li-go { height: 42px; font-size: 15px; width: 100%; }
.li-signin input:not([type=checkbox]) { height: 42px !important; font-size: 15px; }
.li-pass { position: relative; }
.li-pass input { padding-right: 64px !important; }
.li-reveal { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.li-code { text-align: center; letter-spacing: .4em; font-size: 22px !important; font-variant-numeric: tabular-nums; }
.li-facts { list-style: none; margin: 0; padding: 12px 14px; display: grid; gap: 8px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.li-facts li { display: flex; gap: 8px; align-items: flex-start; }
.li-facts svg { width: 14px; height: 14px; margin-top: 3px; color: var(--accent); flex: none; }
.li-alt { text-align: center; }
.li-busy, .li-wait { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 14px; border-radius: 12px; background: var(--surface-2); font-size: 13px; color: var(--ink-2); }
.li-wait .pulse { margin: 0; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.li-steps { margin: 0; padding: 0; list-style: none; counter-reset: ls; display: grid; gap: 12px; }
.li-steps li { counter-increment: ls; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 10px; font-size: 13px; color: var(--muted); }
.li-steps li::before { content: counter(ls); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.li-steps strong { color: var(--ink); font-size: 14px; }
.li-signin > .row { justify-content: center; }
.done-mark.big { width: 48px; height: 48px; margin-bottom: 6px; }
.done-mark.big svg { width: 24px; height: 24px; }
.modal.li-modal { width: min(560px, 100%); padding: 28px 24px 18px; }
.seg.two { grid-template-columns: repeat(2, 1fr); }
.invite-card { padding: 14px; border: 1px solid var(--line); border-radius: 12px; gap: 10px; }
details.more summary { cursor: pointer; font-size: 13px; color: var(--accent); font-weight: 600; }
details.more[open] { display: grid; gap: 8px; }
.view-welcome { overflow-y: auto; }
.welcome { max-width: 1040px; margin: 0 auto; padding: 48px 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 40px; align-items: start; }
.welcome-intro { display: grid; gap: 16px; padding-top: 24px; }
.welcome-card { padding: 28px 24px; }
@media (max-width: 860px) {
  .welcome { grid-template-columns: minmax(0, 1fr); padding: 24px 16px; gap: 24px; }
  .welcome-intro { padding-top: 0; }
}
.connect-status:empty { display: none; }
.li-signin input:not([type=checkbox]):not([type=radio]) { width: 100%; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); padding: 0 12px; }
.li-number { display: grid; justify-items: center; gap: 2px; padding: 12px; border-radius: 12px; background: var(--accent-soft); }
.li-number strong { font-size: 34px; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--accent); }

/* ===== Network ===== */
.net-page { display: grid; gap: 16px; align-content: start; max-width: 1100px; margin: 0 auto; width: 100%; }
.net-progress { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; }
.net-meters { display: grid; grid-template-columns: minmax(0, 320px) auto; gap: 16px; align-items: end; }
.net-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.net-tab { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 13px; font-weight: 500; cursor: pointer; }
.net-tab .n { font-size: 12px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.net-tab.on { background: var(--ink); border-color: var(--ink); color: var(--canvas); }
.net-tab.on .n { color: var(--canvas); opacity: .75; }
.net-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.net-search { height: 34px; width: 260px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 0 10px; background: var(--surface); }
.net-level { height: 34px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 0 8px; background: var(--surface); }
.net-row { align-items: flex-start; padding: 12px 14px; }
.net-row.opp { box-shadow: inset 3px 0 0 var(--accent); }
.net-who { display: grid; gap: 3px; }
.net-name { font-weight: 600; color: var(--ink); font-size: 14px; }
.net-headline { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.net-last { font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.net-side { display: grid; justify-items: end; gap: 8px; flex: none; }
.net-side .when { font-size: 12px; color: var(--muted); white-space: nowrap; }
.net-actions .btn svg { width: 14px; height: 14px; }
.net-more { display: flex; justify-content: center; }
@media (max-width: 760px) {
  .net-search { width: 100%; }
  .net-bar .grow { flex-basis: 100%; }
  .net-meters { grid-template-columns: minmax(0, 1fr); }
  .net-row { flex-wrap: wrap; }
  .net-side { width: 100%; grid-auto-flow: column; justify-content: space-between; align-items: center; }
}
