/* Signals' new app: the style guide (docs/style-guide.md, approved 24 Nov 2026), direction B "Deep water" (DEC-0037).
   Every colour is a token with a light and a dark value; dark mode follows the device. */
:root {
  --bg: #f2f4fa; --surface: #ffffff; --ink: #10123a; --text: #2e3450; --muted: #5b6280; --line: #dde1ee; --line-soft: #eceff6;
  --nav-bg: linear-gradient(180deg, #0e04a1 0%, #150d86 55%, #1a1470 100%); --nav-ink: #c8d4f8; --nav-on-bg: rgba(255, 255, 255, .13); --nav-sep: rgba(255, 255, 255, .14);
  --glow: linear-gradient(135deg, #ff0295, #ee5a24); --glow-v: linear-gradient(180deg, #ff0295, #ee5a24);
  --link: #0255ef; --primary: #0255ef; --primary-hover: #0146c7; --primary-ink: #ffffff; --sec-bd: #c3c9dc;
  --up: #047857; --down: #b91c1c; --good-bg: #e7f8ef; --good-ink: #065f46; --warn-bg: #fff6e0; --warn-ink: #8a3c00; --info-bg: #e8edff; --info-ink: #2d1f8a;
  --chip: #eef1f8; --hl-bg: #fbf7ff; --hl-bd: #eadcf6; --field: #f7f8fc; --avatar-bg: #10123a; --avatar-ink: #ffffff;
  --d1-bg: #0255ef; --d1-ink: #ffffff; --d2-bg: #e8edff; --d2-ink: #2d1f8a; --d3-ink: #5b6280;
  --shadow: 0 1px 2px rgba(16, 18, 58, .05);
  --r-card: 12px; --r-btn: 10px; --pad: 18px; --gap: 16px; --row: 44px;
  --display: "Poppins", system-ui, sans-serif; --body: "Figtree", system-ui, sans-serif;
  --panel: 400px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070a1f; --surface: #0f1431; --ink: #eef1ff; --text: #c8cee6; --muted: #959dbd; --line: #232a4e; --line-soft: #1a2042;
    --nav-bg: linear-gradient(180deg, #05061a, #0b0e2e); --nav-ink: #aab3d6; --nav-on-bg: rgba(255, 255, 255, .08); --nav-sep: rgba(255, 255, 255, .10);
    --link: #8fb2ff; --primary: #8fb2ff; --primary-hover: #b3cbff; --primary-ink: #070a1f; --sec-bd: #39416b;
    --up: #34d399; --down: #fca5a5; --good-bg: #0b3b2c; --good-ink: #6ee7b7; --warn-bg: #3a2a0a; --warn-ink: #fcd34d; --info-bg: #1d2463; --info-ink: #c8d4f8;
    --chip: #171d40; --hl-bg: #161a40; --hl-bd: #2f2f6a; --field: #0b1028; --avatar-bg: #232a4e; --avatar-ink: #ffffff;
    --d1-bg: #8fb2ff; --d1-ink: #070a1f; --d2-bg: #1d2463; --d2-ink: #c8d4f8; --d3-ink: #959dbd;
    --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #070a1f; --surface: #0f1431; --ink: #eef1ff; --text: #c8cee6; --muted: #959dbd; --line: #232a4e; --line-soft: #1a2042;
  --nav-bg: linear-gradient(180deg, #05061a, #0b0e2e); --nav-ink: #aab3d6; --nav-on-bg: rgba(255, 255, 255, .08); --nav-sep: rgba(255, 255, 255, .10);
  --link: #8fb2ff; --primary: #8fb2ff; --primary-hover: #b3cbff; --primary-ink: #070a1f; --sec-bd: #39416b;
  --up: #34d399; --down: #fca5a5; --good-bg: #0b3b2c; --good-ink: #6ee7b7; --warn-bg: #3a2a0a; --warn-ink: #fcd34d; --info-bg: #1d2463; --info-ink: #c8d4f8;
  --chip: #171d40; --hl-bg: #161a40; --hl-bd: #2f2f6a; --field: #0b1028; --avatar-bg: #232a4e; --avatar-ink: #ffffff;
  --d1-bg: #8fb2ff; --d1-ink: #070a1f; --d2-bg: #1d2463; --d2-ink: #c8d4f8; --d3-ink: #959dbd;
  --shadow: none; color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--body); font-size: 14.5px; line-height: 1.5; font-weight: 500; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); letter-spacing: -.01em; margin: 0; text-wrap: balance; }
a { color: var(--link); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
button, input, select { font: inherit; color: inherit; }
.n, .fig { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; background: var(--surface); color: var(--link); padding: 8px 12px; border-radius: var(--r-btn); border: 1px solid var(--line); }
.skip:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Shell: side nav | (top bar, page) | Assistant panel. The panel sits outside #shell, so it stays open across screens. */
.frame { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100vh; }
.frame.with-panel { grid-template-columns: minmax(0, 1fr) var(--panel); }
#shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-width: 0; }
.side { background: var(--nav-bg); padding: 18px 12px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 9px; padding: 2px 8px; }
.brand img { width: 30px; height: 30px; flex: none; }
.brand .wm { font-family: var(--display); font-weight: 700; font-size: 19px; color: #ffffff; line-height: 1; display: block; }
.brand .by { display: block; font-weight: 600; font-size: 11px; color: var(--nav-ink); letter-spacing: .02em; margin-top: 3px; }
.progsel { margin: 0 4px; padding: 8px 10px; border-radius: 6px; color: #ffffff; font-weight: 700; font-size: 13.5px; background: var(--nav-on-bg); }
.progsel select { width: 100%; background: transparent; border: 0; color: #ffffff; font-weight: 700; }
.progsel option { color: #10123a; }
.side nav { display: grid; gap: 2px; }
.side nav a, .side nav span.off { position: relative; color: var(--nav-ink); font-weight: 600; padding: 9px 12px 9px 14px; border-radius: 6px; font-size: 14px; }
.side nav span.off { opacity: .55; cursor: not-allowed; }
.side nav a[aria-current="page"] { background: var(--nav-on-bg); color: #ffffff; }
.side nav a[aria-current="page"]::before { content: ""; position: absolute; left: 4px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--glow-v); }
.side nav .sep { height: 1px; background: var(--nav-sep); margin: 8px 6px; }
.mainc { display: flex; flex-direction: column; min-width: 0; }
.topb { display: flex; align-items: center; gap: 10px; padding: 11px 24px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topb .grow { flex: 1; }
.topb form { display: contents; }
.btn { font-weight: 700; font-size: 13.5px; border-radius: var(--r-btn); padding: 8px 14px; min-height: 36px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; white-space: nowrap; color: var(--text); background: transparent; cursor: pointer; }
.btn.pri { background: var(--primary); color: var(--primary-ink); }
.btn.pri:hover { background: var(--primary-hover); }
.btn.sec { border-color: var(--sec-bd); color: var(--ink); background: var(--surface); }
.btn.field, select.field, input.field { background: var(--field); border: 1px solid var(--line); border-radius: var(--r-btn); min-height: 36px; padding: 7px 12px; font-weight: 600; font-size: 13.5px; color: var(--ink); }
.btn.sm { font-size: 12.5px; min-height: 30px; padding: 4px 10px; }
.btn svg { width: 16px; height: 16px; }
.btn[disabled], .field[disabled] { opacity: .6; cursor: not-allowed; }
.srch { min-width: 260px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.pbrand { display: none; }
.abtn[aria-pressed="true"] { background: var(--hl-bg); color: var(--link); border-color: var(--hl-bd); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; font-size: 12px; background: var(--avatar-bg); color: var(--avatar-ink); flex: none; }
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.menu > summary::-webkit-details-marker { display: none; }
.menu .pop { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: 0 8px 24px rgba(16, 18, 58, .14); padding: 10px; min-width: 280px; z-index: 30; display: grid; gap: 4px; }
.menu .pop h2 { font-size: 13px; color: var(--muted); font-family: var(--body); font-weight: 700; padding: 4px 6px; }
.menu .pop button { text-align: left; background: transparent; border: 0; border-radius: 6px; padding: 8px 6px; cursor: pointer; display: grid; }
.menu .pop button:hover { background: var(--chip); }
.menu .pop .sub { font-size: 12px; color: var(--muted); }
.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; background: var(--warn-bg); color: var(--warn-ink); border-radius: var(--r-card); padding: 10px 14px; font-weight: 700; }
.banner .btn { color: var(--warn-ink); border-color: currentColor; }

.pg { padding: 22px 28px 64px; display: grid; gap: var(--gap); align-content: start; max-width: 1180px; width: 100%; }
.ph { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: end; }
.ph .crumbs { grid-column: 1 / -1; font-size: 13px; font-weight: 600; color: var(--muted); }
.ph .crumbs a { color: var(--muted); }
.ph h1 { font-size: 28px; font-weight: 700; line-height: 1.15; }
.ph h1:focus { outline: none; }
.ph .acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.ph .q { grid-column: 1 / -1; margin: 0; color: var(--muted); font-weight: 600; }
.ph .viewbar { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.ph .viewbar input[type="search"] { min-width: 240px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--pad); box-shadow: var(--shadow); min-width: 0; display: grid; gap: 10px; align-content: start; }
.cardhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.cardhead h2, .card > h2 { font-size: 16px; font-weight: 600; }
.m { color: var(--muted); font-weight: 600; font-size: 12.5px; }
p.m { margin: 0; }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.tile .l { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.tile .v { font-family: var(--display); font-size: 26px; font-weight: 600; color: var(--ink); line-height: 1.15; display: block; }
.tile .d { font-size: 12.5px; }
.up { color: var(--up); font-weight: 700; }
.down { color: var(--down); font-weight: 700; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--muted); font-weight: 600; }
.seg { display: inline-flex; gap: 4px; background: var(--chip); padding: 4px; border-radius: var(--r-btn); }
.seg button { border: 0; background: transparent; padding: 5px 12px; border-radius: 6px; font-size: 13px; font-weight: 700; color: var(--text); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .10); }
.seg a { padding: 5px 12px; border-radius: 6px; font-size: 13px; font-weight: 700; color: var(--text); text-decoration: none; }
.seg a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .10); }
.ph .viewbar .filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
table.etable td { vertical-align: top; }
table.etable td:last-child { white-space: nowrap; }
table.etable .sub a { text-decoration: underline; }
.chart { position: relative; height: 240px; }

/* Tables: names bold ink, figures right-aligned in same-width digits; the first column stays put on phones. */
.tw { overflow-x: auto; }
.tw.card { padding: 6px 8px; }
table.dt { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.dt th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); padding: 6px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface); }
table.dt th button { all: unset; cursor: pointer; display: inline-flex; gap: 4px; }
table.dt th button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
table.dt th[aria-sort="ascending"], table.dt th[aria-sort="descending"] { color: var(--ink); }
table.dt td { padding: 8px 10px; border-bottom: 1px solid var(--line-soft); height: var(--row); vertical-align: middle; }
table.dt tr:last-child td { border-bottom: 0; }
table.dt .n { text-align: right; white-space: nowrap; }
table.dt th.n button { justify-content: flex-end; }
table.dt .c { text-align: center; white-space: nowrap; }
table.dt .t { color: var(--ink); font-weight: 700; }
table.dt td.t a { color: var(--ink); }
table.dt td .sub { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
table.dt .item { max-width: 360px; }
table.dt .item span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; background: var(--chip); color: var(--text); vertical-align: middle; }
.chip.good { background: var(--good-bg); color: var(--good-ink); }
.chip.warn { background: var(--warn-bg); color: var(--warn-ink); }
.chip.info { background: var(--info-bg); color: var(--info-ink); }
.chip.out { background: transparent; border: 1px solid var(--line); }
.deg { display: inline-block; min-width: 34px; text-align: center; font-size: 11.5px; font-weight: 700; padding: 2px 6px; border-radius: 6px; }
.deg.d1 { background: var(--d1-bg); color: var(--d1-ink); }
.deg.d2 { background: var(--d2-bg); color: var(--d2-ink); }
.deg.d3 { border: 1px dashed var(--line); color: var(--d3-ink); }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.pager .grow { flex: 1; }
.relmap th.col, .relmap td.col { min-width: 92px; }
.relmap tbody tr.hit td { background: var(--hl-bg); }
.relmap .colon { background: var(--hl-bg); }
.relmap th:first-child, .relmap td:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; }

/* The Assistant (R7): a right-hand panel below the top bar, about 400 px; over the screen's edge below 1,280 px;
   full screen on phones. */
#assistant { border-left: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; height: 100vh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; }
[x-cloak] { display: none !important; }
.ahead { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.ahead h2 { font-size: 16px; font-weight: 600; flex: 1; }
.alog { overflow-y: auto; padding: 14px 16px; display: grid; gap: 12px; align-content: start; }
.alog .q { justify-self: end; background: var(--chip); color: var(--ink); border-radius: 12px 12px 2px 12px; padding: 8px 12px; max-width: 90%; }
.alog .a { white-space: pre-wrap; color: var(--text); }
.alog .based { font-size: 12px; color: var(--muted); }
.aform { border-top: 1px solid var(--line); padding: 12px 16px; display: grid; gap: 8px; }
.aform textarea { width: 100%; min-height: 64px; resize: vertical; border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--field); padding: 8px 10px; font: inherit; color: var(--ink); }
.aform .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ai-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--glow); display: inline-block; }

.bottombar { display: none; }
@media (max-width: 1279px) {
  .frame.with-panel { grid-template-columns: minmax(0, 1fr); }
  #assistant { position: fixed; right: 0; top: 0; width: min(var(--panel), 100vw); z-index: 40; box-shadow: -8px 0 24px rgba(16, 18, 58, .18); }
}
@media (max-width: 767px) {
  #shell { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 45; }
  .side.open { display: flex; }
  .topb { flex-wrap: wrap; padding: 8px 12px; gap: 8px; }
  .pbrand { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 16px; }
  .topb .srch { min-width: 0; flex: 1; display: block; }
  .topb .grow { display: none; }
  .topb .menu { order: 2; }
  .topb #period { order: 3; flex: 1 0 100%; }
  .topb form { display: contents; }
  .topb .help, .topb .abtn { display: none; }
  .pg { padding: 16px 12px 96px; }
  .ph h1 { font-size: 22px; }
  .ph { grid-template-columns: minmax(0, 1fr); }
  .ph .acts { justify-content: flex-start; }
  .ph .viewbar input[type="search"] { min-width: 0; width: 100%; }
  .tile .v { font-size: 20px; }
  table.dt td { height: 46px; }
  table.dt th:first-child, table.dt td:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; }
  table.dt .item { max-width: 180px; }
  #assistant { width: 100vw; }
  .bottombar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .bottombar a, .bottombar button, .bottombar span { display: grid; place-items: center; min-height: 52px; font-size: 12px; font-weight: 700; color: var(--text); background: transparent; border: 0; }
  .bottombar [aria-current="page"] { color: var(--link); }
  .bottombar span.off { opacity: .55; }
}

/* Foundations (S2.2.2): the period with "Choose dates…", "Updated", the account menu's links, the sign-in page. */
.topb .period { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.topb .period .dates { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.topb .updated { white-space: nowrap; }
.menu .pop .sub { display: block; padding: 0 10px 6px; }
.menu .pop a.item { display: block; padding: 8px 10px; border-radius: 6px; color: var(--ink); }
.menu .pop a.item:hover { background: var(--chip); text-decoration: none; }
body.bare { display: grid; place-items: start center; padding: 48px 16px; }
.onecard { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px; display: grid; gap: 14px; }
.onecard h1 { font-size: 24px; }
.onecard p { margin: 0; }
.brand.on-light .wm { color: var(--ink); }
.brand.on-light .by { color: var(--muted); }
@media (max-width: 767px) {
  .bottombar { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }
  .topb .period { order: 3; flex: 1 0 100%; }
  .topb .period select { flex: 1; }
  .topb .updated { order: 4; }
}

/* Connect your LinkedIn (S2.2.6 B3): the secure browser's live view. */
.onecard.wide { width: min(1280px, 100%); }
.connect { display: grid; gap: 12px; }
.secure { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--field); }
.secure .bar2 { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--surface); }
.secure .body { display: grid; place-items: center; min-height: 360px; }
.secure .wait { color: var(--muted); font-weight: 700; }
.secure img.live { display: block; width: 100%; height: auto; cursor: default; outline: none; }
.secure img.live:focus-visible { box-shadow: inset 0 0 0 3px var(--primary); }
.banner.good { background: var(--good-bg); color: var(--good-ink); justify-content: space-between; }
.banner.good .btn.pri { background: var(--primary); color: var(--primary-ink); border-color: transparent; }
.notconnected { display: grid; gap: 8px; border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px; }
.notconnected .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }

/* Sign-up (S2.2.3): round 3's onboarding shell (navy bar with the step count, one card, what happens next beside it). */
body.onb { min-height: 100vh; background: var(--bg); display: grid; grid-template-rows: auto 1fr; }
.onbtop { display: flex; align-items: center; gap: 12px; padding: 14px 28px; background: var(--nav-bg); color: #ffffff; }
.onbtop .wm { font-family: var(--display); font-weight: 700; font-size: 19px; }
.onbtop .grow { flex: 1; }
.onbtop .steps { display: inline-flex; gap: 4px; }
.onbtop .steps i { width: 22px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .22); }
.onbtop .steps i.y { background: var(--glow); }
.onbtop .stepl { font-size: 13px; font-weight: 700; color: var(--nav-ink); }
.onbtop .help { color: #ffffff; border: 1px solid rgba(255, 255, 255, .3); }
.onbbody { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 420px); gap: 48px; justify-content: center; align-items: start; padding: 64px 28px; }
.onbbody.one { grid-template-columns: minmax(0, 560px); }
.onbcard { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px; display: grid; gap: 16px; box-shadow: 0 10px 30px rgba(16, 18, 58, .08); }
.onbcard h1 { font-size: 28px; font-weight: 700; line-height: 1.2; }
.onbcard p { margin: 0; }
.onbcard .btn.pri { justify-content: center; min-height: 46px; font-size: 15px; }
.onbform { display: grid; gap: 16px; }
.fgrp { display: grid; gap: 6px; }
.fgrp label { font-weight: 700; color: var(--ink); font-size: 13.5px; }
.fgrp .field { min-height: 44px; font-size: 15px; }
.tzc summary { cursor: pointer; list-style: none; }
.tzc summary::-webkit-details-marker { display: none; }
.tzc .lnk { color: var(--link); font-weight: 700; font-size: 12.5px; }
.tzc[open] { display: grid; gap: 12px; }
.plans { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.plans legend { font-family: var(--display); font-size: 16px; font-weight: 600; color: var(--ink); padding: 0; margin-bottom: 2px; }
.plan { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; border: 1px solid var(--line); border-radius: var(--r-card); padding: 12px 14px; cursor: pointer; }
.plan > span { display: grid; gap: 2px; }
.plan b { color: var(--ink); }
.plan:has(input:checked) { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.plan.ask { grid-template-columns: minmax(0, 1fr); cursor: auto; border-style: dashed; }
.check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; font-size: 13.5px; align-items: start; }
.check input, .plan input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--primary); }
.err { color: var(--down); font-weight: 700; font-size: 13.5px; }
.preview { display: grid; gap: 12px; padding-top: 8px; }
.preview h2 { font-size: 18px; font-weight: 600; }
.preview ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.preview li::marker { color: var(--muted); font-weight: 700; }
@media (max-width: 900px) {
  .onbbody { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px 16px; }
  .onbtop { padding: 12px 16px; }
  .onbtop .steps { display: none; }
  .onbcard { padding: 22px; }
}

/* Home before the first data (S2.2.3): "Get set up". */
.setup .ch { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.setup ol.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.setup ol.steps li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.setup .tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: inline-grid; place-items: center; font-size: 13px; font-weight: 800; flex: none; }
.setup li.done .tick { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.setup li.done > span:not(.m):not(.tick):not(.vh) { color: var(--muted); }
.setup li.opt { color: var(--muted); }
.onbbody.wide { grid-template-columns: minmax(0, 1280px); padding-top: 32px; }

/* Who should Signals track? (S2.2.4) and Join your team. */
.people { list-style: none; margin: 0; padding: 0; display: grid; border: 1px solid var(--line); border-radius: var(--r-card); }
.people li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 12px 14px; border-top: 1px solid var(--line-soft); }
.people li:first-child { border-top: 0; }
.people .who { flex: 1 1 220px; display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.people .who b { color: var(--ink); }
.people .seat { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.people form { margin: 0; }
.people .more summary { list-style: none; cursor: pointer; padding: 2px 8px; border-radius: 6px; font-weight: 800; }
.people .more summary::-webkit-details-marker { display: none; }
.people .more[open] { display: flex; gap: 8px; align-items: center; }
.invite { display: grid; gap: 12px; }
.invite summary { cursor: pointer; color: var(--link); font-weight: 700; list-style: none; }
.invite summary::-webkit-details-marker { display: none; }
.invite[open] summary { margin-bottom: 4px; }
.notice { background: var(--info-bg); color: var(--info-ink); border-radius: var(--r-btn); padding: 10px 12px; font-weight: 600; font-size: 13.5px; }
.joinfacts { display: grid; gap: 12px; }
.joinfacts h2 { font-size: 15px; font-weight: 600; }
/* Keeping your LinkedIn safe: a wider single card for reading. */
.onecard:has(.faq) { width: min(640px, 100%); }
.faq { margin: 0; display: grid; gap: 6px; }
.faq dt { font-weight: 700; margin-top: 10px; }
.faq dd { margin: 0; }
.linklike { background: none; border: 0; padding: 0; color: var(--link); font-weight: 700; cursor: pointer; font-size: 12.5px; }
.setup ul.invitees { flex-basis: 100%; list-style: none; margin: 2px 0 0 32px; padding: 0; display: grid; gap: 4px; font-size: 13px; }
form.inline { display: inline; margin: 0; }
.planbox { display: grid; gap: 4px; border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px; }
.planbox b { color: var(--ink); }
/* Sign-up reordered (SPT, 30 Nov): the team's price as people are added, the trial's summary, and the invitations sent. */
.tag { font-size: 12.5px; font-weight: 700; color: var(--d2-ink); background: var(--d2-bg); border-radius: 999px; padding: 2px 10px; }
.addperson { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.addperson .err { flex-basis: 100%; }
.addperson .fgrp.grow { flex: 1 1 240px; }
.addperson .fgrp:not(.grow) { flex: 0 1 150px; }
.addperson .btn { min-height: 44px; }
.pricebox { display: grid; gap: 4px; background: var(--hl-bg); border: 1px solid var(--hl-bd); border-radius: var(--r-card); padding: 14px 16px; }
.pricebox .top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; color: var(--ink); font-weight: 700; }
.pricebox .amt { font-family: var(--display); font-size: 22px; }
.pricebox .amt span { font-family: var(--body); font-size: 13.5px; font-weight: 600; color: var(--muted); }
dl.summary { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; border: 1px solid var(--line); border-radius: var(--r-card); }
dl.summary dt, dl.summary dd { margin: 0; padding: 11px 14px; border-top: 1px solid var(--line-soft); }
dl.summary dt { color: var(--muted); }
dl.summary dd { text-align: right; color: var(--ink); }
dl.summary dt:first-of-type, dl.summary dd:first-of-type { border-top: 0; }
dl.summary .total { border-top: 2px solid var(--line); color: var(--ink); font-weight: 700; }
dl.summary dd.total { display: grid; justify-items: end; }
dl.summary dd.total b { font-family: var(--display); font-size: 18px; }
ul.plain { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; }
.good { background: var(--good-bg); color: var(--good-ink); border-radius: var(--r-btn); padding: 10px 12px; font-weight: 700; }
.sentbox { display: grid; gap: 8px; border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px 16px; }
.sentbox b { color: var(--ink); }
.sentbox ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.sentbox li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; overflow-wrap: anywhere; }
.onbcard a.later { justify-self: center; font-size: 14px; }

/* Billing (S2.2.5): the trial bar above the top bar (design round 4), Settings' tabs, the plan's key-value table. */
.trialbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; background: var(--info-bg); color: var(--info-ink); border-bottom: 1px solid var(--line); padding: 6px 16px; font-size: 13px; font-weight: 600; }
.trialbar a { color: var(--link); font-weight: 700; }
.trialbar .linklike { font-size: 13px; }
.banner.ended { background: var(--info-bg); color: var(--info-ink); }
.banner.ended .btn { color: var(--info-ink); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); width: 100%; }
.tabs .tab { padding: 8px 12px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs .tab[aria-current="page"] { color: var(--ink); border-bottom-color: var(--primary); }
.tabs .tab.off { opacity: .6; cursor: default; }
table.kv th[scope="row"] { width: 110px; vertical-align: top; padding-top: 12px; }

/* Plan and billing: the monthly fees total (SPT, 30 Nov). */
.dt tr.total td { border-top: 2px solid var(--line); border-bottom: 0; }

/* Team (S2.2.4; design round 2, confirmed on a mockup with SPT, 30 Nov): the list, the row menu, removing asks first. */
.teamcard { padding: 6px 8px; }
table.teamlist td { vertical-align: top; }
table.teamlist td b { color: var(--ink); display: block; }
table.teamlist td .m { display: inline; }
table.teamlist td[data-label="Name"] .m { display: block; }
table.teamlist .acts-cell { width: 56px; text-align: right; }
.rowmenu > summary { min-width: 40px; justify-content: center; font-weight: 800; }
.rowmenu .pop { min-width: 260px; text-align: left; }
.rowmenu .pop form { margin: 0; }
.rowmenu .pop button { width: 100%; font: inherit; font-weight: 600; color: var(--ink); }
.rowmenu .pop a.danger { display: block; padding: 8px 6px; border-radius: 6px; color: var(--down); font-weight: 700; }
.rowmenu .pop a.danger:hover { background: var(--chip); text-decoration: none; }
.rolepick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 8px 6px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.rolepick label { flex-basis: 100%; font-size: 12px; font-weight: 700; color: var(--muted); }
.rowmenu .pop .rolepick button { width: auto; }
.btn.danger { background: var(--down); color: #ffffff; }
.card.confirm { border: 2px solid var(--ink); max-width: 680px; scroll-margin-top: 96px; }
.teamsum { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin: 0; font-size: 14px; }
.teamsum b { color: var(--ink); }
@media (max-width: 760px) {
  table.teamlist thead { display: none; }
  table.teamlist tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 6px; border-bottom: 1px solid var(--line-soft); }
  table.teamlist td { display: block; border: 0; padding: 0; height: auto; }
  table.teamlist td[data-label="Name"] { grid-column: 1; }
  table.teamlist .acts-cell { grid-column: 2; grid-row: 1; }
  table.teamlist td[data-label="Role"]::before, table.teamlist td[data-label="Charge"]::before { content: attr(data-label) ": "; color: var(--muted); font-size: 12.5px; }
  table.teamlist td:not([data-label="Name"]):not(.acts-cell) { grid-column: 1 / -1; font-size: 13px; }
  .rowmenu .pop { right: 0; }
}
table.teamlist th a.sorter { color: inherit; font-weight: inherit; text-decoration: none; display: inline-flex; gap: 4px; }
table.teamlist th a.sorter:hover { color: var(--ink); }
table.teamlist th[aria-sort] a.sorter { color: var(--ink); }
.teamresults { display: grid; gap: var(--gap); }

/* Settings: Program (S2.2.4): the program's fields, and a setting's row with its button. */
.stack { display: grid; gap: var(--gap); }
.setgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.setrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.setrow > span { display: grid; gap: 2px; }
.setrow b { color: var(--ink); }
.btn.dangerline { color: var(--down); border-color: var(--down); }

/* Team (1 Dec): the list first; "+ Add a person" below it, with a quieter "+ Add a Page" beside it (SPT). */
.teamadd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.teamadd .btn { min-height: 44px; }
.teamadd .addlink { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-weight: 700; text-decoration: none; }
.teamadd .m { font-size: 13.5px; }
.addpage .fgrp:not(.grow) { flex: 1 1 190px; }
#add, #addpage { scroll-margin-top: 96px; }

/* The marketing view (S2.2.8): tiles with their trend, rows of items and people, the team table, the daily chart. */
.tile { display: grid; gap: 4px; align-content: start; }
.tile svg.spark { width: 100%; height: 30px; display: block; margin-top: 4px; }
svg.spark polyline { fill: none; stroke: var(--primary); stroke-width: 1.8; vector-effect: non-scaling-stroke; }
svg.spark circle { fill: var(--primary); }
.rows { display: grid; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.row:last-child { border-bottom: 0; }
.row .t { color: var(--ink); font-weight: 700; display: block; }
.row .m { display: block; }
.row .chip { margin-top: 4px; }
.row .acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.row .rate { font-family: var(--display); font-weight: 600; color: var(--ink); }
table.dt tbody th { font-size: 13.5px; color: var(--text); white-space: normal; background: transparent; border-bottom: 1px solid var(--line-soft); padding: 8px 10px; font-weight: 500; }
table.dt tbody th .name { color: var(--ink); font-weight: 700; }
table.dt tbody th .sub { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
table.dt tr.typical th, table.dt tr.typical td { border-top: 2px solid var(--line); border-bottom: 0; }
table.dt td .up, table.dt td .down { font-size: 12px; }
.chart.daily { height: 220px; }
details.astable summary { cursor: pointer; color: var(--link); font-weight: 600; font-size: 13px; width: fit-content; }
details.astable[open] summary { margin-bottom: 8px; }
@media (max-width: 760px) {
  table.dt tbody th { position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 150px; }
}

/* The period report and Who you reach (S2.2.8 PR 5) */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--gap); align-items: start; }
.card.hl { background: var(--hl-bg); border-color: var(--hl-bd); }
.hlhead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.hlhead h2 { font-size: 16px; font-weight: 600; }
.hlhead .grow { flex: 1; }
.card.hl textarea { width: 100%; font: inherit; }
.card.hl .acts { display: flex; gap: 8px; margin-top: 8px; }
.linkbtn { background: none; border: 0; padding: 0; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.banner.info { background: var(--info-bg); color: var(--info-ink); }
.banner .field { flex: 1 1 280px; min-width: 0; font-weight: 500; }
.reach { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px 24px; margin-top: 10px; }
.reachcat h3 { font-size: 13.5px; font-weight: 700; margin: 0 0 6px; }
.reachcat ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.reachcat li { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(50px, 1fr) 44px; gap: 8px; align-items: center; font-size: 13px; }
.rbar { height: 8px; background: var(--chip); border-radius: 4px; overflow: hidden; }
.rbar i { display: block; height: 100%; background: var(--primary); }
.rp { text-align: right; }
body.shared { background: var(--bg); margin: 0; }
.sharedmain { max-width: 1040px; margin: 0 auto; padding: 32px 20px 48px; display: grid; gap: var(--gap); }
.sharedmain h1 { margin: 0; }
