/* Layout: follows sysology.co.uk. White page, navigation in a panel on the left (version 24), a slim top bar
   for the phase switcher and New request, one content column. Overview splits into a main and a side column of cards contributed by modules.
   Ink is near-black; colour comes from the butterfly and from status, never from decoration. */
:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #FAFAFA;
  --sunken: #F4F4F5;
  --ink: #09090B;
  --ink-2: #71717A;
  --line: #E4E4E7;
  --btn: #09090B;
  --btn-ink: #FFFFFF;
  --link: #2162AB;
  --good: #1D8437;  --good-soft: #E9F6EC;
  --warn: #9A6400;  --warn-soft: #FEF5DC;  --warn-dot: #FDB301;  --danger: #B42318;
  --info: #2162AB;  --info-soft: #EBF2FB;
  --you: #AB21A5;   --you-soft: #F9EAF7;  --you-ink: #FFFFFF;
  --wash-a: rgba(232, 102, 200, .10);
  --wash-b: rgba(253, 179, 1, .10);
  --wash-c: rgba(102, 184, 232, .12);
  --shadow: 0 1px 2px rgba(9, 9, 11, .04), 0 8px 24px rgba(9, 9, 11, .04);

  --font-display: "Plus Jakarta Sans", "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: 0.8125rem;
  --step-0: 0.9688rem;
  --step-1: 1.125rem;
  --step-2: 1.5rem;
  --step-3: 2.25rem;

  --r-card: 15px;
  --r-btn: 10px;
  --maxw: 1120px;
  --topbar-h: 64px;
  --sidebar-w: 244px;
  --tabbar-h: 64px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #09090B; --surface: #111113; --surface-2: #151518; --sunken: #1C1C20; --ink: #FAFAFA; --ink-2: #A1A1AA;
    --line: #27272A; --btn: #FAFAFA; --btn-ink: #09090B; --link: #66B8E8;
    --good: #72D08C; --good-soft: #0F2617; --warn: #FDB301; --warn-soft: #2A2108; --warn-dot: #FDB301; --danger: #F97066;
    --info: #66B8E8; --info-soft: #0D2132;
    --you: #E866C8; --you-soft: #2A1027; --you-ink: #09090B;
    --wash-a: rgba(232, 102, 200, .10); --wash-b: rgba(253, 179, 1, .06); --wash-c: rgba(102, 184, 232, .08);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #09090B; --surface: #111113; --surface-2: #151518; --sunken: #1C1C20; --ink: #FAFAFA; --ink-2: #A1A1AA;
  --line: #27272A; --btn: #FAFAFA; --btn-ink: #09090B; --link: #66B8E8;
  --good: #72D08C; --good-soft: #0F2617; --warn: #FDB301; --warn-soft: #2A2108; --warn-dot: #FDB301; --danger: #F97066;
  --info: #66B8E8; --info-soft: #0D2132;
  --you: #E866C8; --you-soft: #2A1027; --you-ink: #09090B;
  --wash-a: rgba(232, 102, 200, .10); --wash-b: rgba(253, 179, 1, .06); --wash-c: rgba(102, 184, 232, .08);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

[hidden] { display: none !important; }
html, body { min-height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(60% 340px at 50% -40px, var(--wash-a), transparent 70%),
                    radial-gradient(40% 260px at 22% 0, var(--wash-c), transparent 70%),
                    radial-gradient(40% 260px at 80% 0, var(--wash-b), transparent 70%);
  background-repeat: no-repeat;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 0; text-wrap: balance; }
h1 { font-size: var(--step-3); letter-spacing: -0.04em; line-height: 1.15; }
h2 { font-size: var(--step-2); letter-spacing: -0.03em; }
h3 { font-size: var(--step-1); letter-spacing: -0.02em; }
p { margin: 0; }
a { color: var(--link); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 6px; }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; letter-spacing: 0.01em; }
.muted { color: var(--ink-2); }
.eyebrow { font-size: var(--step--1); font-weight: 500; letter-spacing: 0.03em; color: var(--ink-2); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.upload { margin-top: 6px; }
.upload input:focus-visible + label { outline: 2px solid var(--link); outline-offset: 2px; }
.files { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 2px; font-size: var(--step--1); }
.files__name { font-weight: 500; overflow-wrap: anywhere; }
.lede { color: var(--ink-2); font-size: var(--step-1); max-width: 62ch; }

/* ---------- Top bar: floating pill, as on the website ---------- */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.topbar__inner {
  max-width: var(--maxw); margin: 0 auto; height: var(--topbar-h); box-sizing: border-box;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.navpill {
  display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 6px 6px 14px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 100px; box-shadow: var(--shadow);
}
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); padding-right: 6px; flex: none; }
.brand__mark { width: 28px; height: auto; display: block; }
.brand__word { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: -0.03em; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav a {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 100px;
  color: var(--ink); text-decoration: none; font-size: 0.875rem; font-weight: 500; letter-spacing: 0.03em; white-space: nowrap;
}
.nav a:hover { background: var(--sunken); }
.nav a[aria-current="page"] { background: var(--btn); color: var(--btn-ink); }
.badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 100px; display: inline-grid; place-items: center; box-sizing: border-box;
  background: var(--you); color: var(--you-ink); font-size: 0.7rem; font-weight: 600; letter-spacing: 0; font-variant-numeric: tabular-nums;
}
.topbar__right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.theme-toggle {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center; padding: 0; border-radius: 50%;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--ink);
  cursor: pointer; box-shadow: var(--shadow); backdrop-filter: blur(10px);
}
.theme-toggle:hover { background: var(--sunken); }
.theme-toggle .icon { width: 18px; height: 18px; }
.topbar__client { display: flex; align-items: center; gap: 10px; min-width: 0; }
.client-name { font-weight: 500; font-size: 0.875rem; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--sunken); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 0.78rem; box-sizing: border-box;
}

.main { outline: none; padding-block: 28px 72px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.page { max-width: var(--maxw); margin: 0 auto; display: grid; gap: 28px; }
.page__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; padding-top: 12px; }
.page__head > div:first-child { display: grid; gap: 10px; min-width: 0; }
.page__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.foot { border-top: 1px solid var(--line); }
.foot__inner {
  max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-block: 24px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  font-size: var(--step--1);
}

.icon { width: 22px; height: 22px; flex: none; display: inline-grid; }
.icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.tabbar { display: none; }
@media (max-width: 700px) {
  :root { --topbar-h: 64px; }
  .navpill__nav { display: none; }
  .navpill { padding-right: 14px; }
  h1 { font-size: 1.75rem; }
  .main { padding-block: 16px calc(var(--tabbar-h) + 48px + env(safe-area-inset-bottom, 0px)); }
  .foot { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
  .tabbar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: var(--surface); border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left: max(6px, env(safe-area-inset-left, 0px)); padding-right: max(6px, env(safe-area-inset-right, 0px));
  }
  .tabbar__list { list-style: none; margin: 0; padding: 0; display: flex; height: var(--tabbar-h); }
  .tabbar__list li { flex: 1 1 0; min-width: 0; }
  .tabbar__list a {
    height: 100%; display: grid; place-items: center; align-content: center; gap: 2px; position: relative;
    color: var(--ink-2); text-decoration: none; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.02em;
  }
  .tabbar__list .nav__label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabbar__list a[aria-current="page"] { color: var(--ink); }
  .tabbar__list a[aria-current="page"] .icon { background: var(--sunken); border-radius: 100px; box-shadow: 0 0 0 5px var(--sunken); }
  .tabbar__list .badge { position: absolute; top: 7px; left: calc(50% + 7px); }
}
@media (max-width: 420px) { .client-name { display: none; } }

/* ---------- View as (Sysology staff) ---------- */
.viewas-slot:empty { display: none; }
.viewas-slot { position: sticky; top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px)); z-index: 15;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.viewas {
  max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding: 10px 14px; border-radius: var(--r-btn); background: var(--btn); color: var(--btn-ink); font-size: 0.9rem;
}
.viewas .btn { background: transparent; color: var(--btn-ink); border-color: color-mix(in srgb, var(--btn-ink) 40%, transparent); }
.viewas .btn:hover { background: color-mix(in srgb, var(--btn-ink) 12%, transparent); }
.avatar--staff { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.readonly-note { font-size: var(--step--1); color: var(--ink-2); padding: 12px 14px; border: 1px dashed var(--line); border-radius: var(--r-btn); }

/* ---------- Phase switcher ---------- */
.phasewrap { max-width: var(--maxw); margin: 0 auto 4px; display: grid; gap: 12px; }
.phasebar { max-width: var(--maxw); margin: 0 auto; display: flex; overflow-x: auto; }
.phasewrap .phasebar { margin: 0; }
.main > .phasebar { margin-bottom: 4px; }
.phasebar__seg { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 100px; background: var(--surface); }
.phasebar__btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px; border: 0; border-radius: 100px; white-space: nowrap;
  background: none; color: var(--ink); font: inherit; font-size: var(--step--1); font-weight: 500; letter-spacing: 0.02em; cursor: pointer;
}
.phasebar__btn:hover { background: var(--sunken); }
.phasebar__btn[aria-pressed="true"] { background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line); }
.phasebar__state { font-size: 0.72rem; color: var(--ink-2); }
.phasebar__state--active { color: var(--good); }
.phasebar__state--proposed { color: var(--warn); }
@media (max-width: 480px) {
  .phasebar__seg { flex-wrap: wrap; border-radius: 18px; }
  .phasebar__btn { padding: 0 10px; gap: 6px; }
}
.phasenote {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  padding: 12px 16px; border-radius: var(--r-btn); background: var(--info-soft); color: var(--ink); font-size: 0.9rem;
}
.linkline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: var(--step--1); }

/* ---------- Overview: modules contribute cards ----------
   Desktop: a main and a side column, each stacking its own cards, so switching a module off
   never leaves a hole. Phone: one column, cards in their declared order. */
.widgets { display: flex; flex-direction: column; gap: 20px; }
.widgets__col { display: contents; }
@media (min-width: 1001px) {
  .widgets { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
  .widgets__col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
  .widgets > .span-full { grid-column: 1 / -1; }
}

/* ---------- Components ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow);
  padding: 22px; display: grid; gap: 18px; align-content: start; min-width: 0;
}
.card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card--attention { border: 1.5px solid var(--you); box-shadow: 0 0 0 5px color-mix(in srgb, var(--you) 13%, transparent), var(--shadow); }
.card--attention .card__head h3 { color: var(--you); }
.card--hero { padding: 28px; gap: 20px; }
.textlink, .linkbtn {
  font-size: var(--step--1); font-weight: 500; letter-spacing: 0.02em; color: var(--ink); text-decoration: underline;
  text-decoration-color: var(--line); text-underline-offset: 4px; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit;
}
.textlink:hover, .linkbtn:hover { text-decoration-color: currentColor; }

.rows { list-style: none; margin: 0; padding: 0; display: grid; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding-block: 14px; border-top: 1px solid var(--line); align-items: start; }
.row:first-child { border-top: 0; padding-top: 0; }
.row:last-child { padding-bottom: 0; }
.row__main { display: grid; gap: 3px; min-width: 0; }
.row__title { font-weight: 600; }
.row__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--step--1); color: var(--ink-2); }
.row__side { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; }
@media (max-width: 560px) {
  .row { grid-template-columns: minmax(0, 1fr); }
  .row__side { justify-content: flex-start; }
}
button.row { width: 100%; background: none; border: 0; border-top: 1px solid var(--line); font: inherit; color: inherit; text-align: left; cursor: pointer; }
button.row:first-child { border-top: 0; }
button.row:hover .row__title { text-decoration: underline; text-underline-offset: 4px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.02em; line-height: 1; padding: 6px 10px; border-radius: 100px;
  background: var(--sunken); color: var(--ink-2);
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--good { background: var(--good-soft); color: var(--good); }
.pill--warn { background: var(--warn-soft); color: var(--warn); }
.pill--warn::before { background: var(--warn-dot); }
.pill--info { background: var(--info-soft); color: var(--info); }
.pill--you { background: var(--you-soft); color: var(--you); }

.tag { display: inline-block; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.03em; color: var(--ink-2); border: 1px solid var(--line); border-radius: 100px; padding: 2px 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; box-sizing: border-box;
  border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: inherit; font-size: 0.875rem; font-weight: 500; letter-spacing: 0.03em; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--sunken); }
.btn--primary { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.btn--primary:hover { background: color-mix(in srgb, var(--btn) 84%, var(--ink-2)); }
.btn--small { min-height: 34px; padding: 0 13px; font-size: var(--step--1); }
.btn .icon { width: 16px; height: 16px; }

.meter { height: 6px; border-radius: 100px; background: var(--sunken); overflow: hidden; }
.meter__fill { height: 100%; border-radius: 100px; background: var(--ink); }
.stat { display: grid; gap: 2px; }
.stat__value { font-family: var(--font-display); font-size: 2rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-row { display: flex; flex-wrap: wrap; gap: 16px 36px; }

.empty { padding: 18px 20px; border: 1px dashed var(--line); border-radius: var(--r-card); color: var(--ink-2); display: grid; gap: 4px; }
.empty strong { color: var(--ink); font-weight: 600; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 2px 12px; counter-increment: step; }
.steps li::before {
  content: counter(step); grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); font-size: 0.78rem; font-weight: 600;
}
.steps li.is-now::before { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.steps strong { font-weight: 600; }
.steps span { color: var(--ink-2); font-size: var(--step--1); }

/* ---------- Priority summary ---------- */
.prio { display: grid; gap: 14px; }
.prio__row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.prio__row strong { font-weight: 600; }
.prio__count { font-size: var(--step--1); color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) {
  .prio__row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .prio__row .meter { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- Requirements ---------- */
.group { display: grid; gap: 14px; }
.group__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.group__head > div { display: grid; gap: 4px; }
.group__note { font-size: var(--step--1); color: var(--ink-2); }
.reqs { display: grid; gap: 12px; }
.req { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); min-width: 0; }
.req > details > summary { list-style: none; cursor: pointer; padding: 18px 20px; display: grid; gap: 10px; border-radius: var(--r-card); }
.req > details > summary::-webkit-details-marker { display: none; }
.req > details > summary:hover { background: var(--surface-2); }
.req__top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; }
.req__ref { font-size: var(--step--1); font-weight: 500; color: var(--ink-2); letter-spacing: 0.03em; font-variant-numeric: tabular-nums; }
.req__title { font-family: var(--font-display); font-weight: 600; font-size: 1.06rem; letter-spacing: -0.02em; min-width: 0; }
.req__summary { color: var(--ink-2); max-width: 72ch; }
.req__progress { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: var(--step--1); color: var(--ink-2); }
.req__progress .meter { width: 220px; max-width: 100%; flex: none; }
.req__tickets { color: var(--warn); font-weight: 600; }
.req__toggle { margin-left: auto; font-weight: 500; color: var(--ink); }
.req__toggle::after { content: " +"; }
.req > details[open] .req__toggle::after { content: " \2212"; }
.req__body { padding: 4px 20px 20px; display: grid; gap: 18px; border-top: 1px solid var(--line); padding-top: 18px; margin: 0 0 0; }
.req__body h4 { margin: 0 0 8px; font-size: var(--step--1); font-weight: 600; letter-spacing: 0.03em; color: var(--ink-2); }
.done-when { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.tasks { list-style: none; margin: 0; padding: 0; display: grid; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.task { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 16px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--surface-2); }
.task:first-child { border-top: 0; }
.task__title { font-weight: 500; min-width: 0; }
.task__meta { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: var(--step--1); color: var(--ink-2); }
.task__who { font-size: var(--step--1); color: var(--ink-2); white-space: nowrap; }
.task--you .task__who { color: var(--you); font-weight: 600; }
.ref { font-size: 0.72rem; color: var(--ink-2); border: 1px dashed var(--ink-2); border-radius: 4px; padding: 0 5px; }
.req__actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 640px) {
  .req__top { grid-template-columns: minmax(0, 1fr) auto; }
  .req__ref { grid-column: 1 / -1; }
  .req__progress .meter { width: 100%; }
  .task { grid-template-columns: minmax(0, 1fr) auto; }
  .task__who { grid-column: 1; grid-row: 2; }
}

/* ---------- Drill-down: task lists, detail pages ---------- */
.tasklist { list-style: none; margin: 0; padding: 0; display: grid; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tasklist > li + li { border-top: 1px solid var(--line); }
.tasklink {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 16px; align-items: center; padding: 12px 14px;
  background: var(--surface-2); color: var(--ink); text-decoration: none;
}
.tasklink:hover { background: var(--sunken); }
.tasklink:hover .task__title { text-decoration: underline; text-underline-offset: 4px; }
.tasklist--plain { border: 0; border-radius: 0; }
.tasklist--plain .tasklink { background: none; padding-inline: 0; grid-template-columns: minmax(0, 1fr) auto; }
.tasklist--plain .tasklink:hover { background: none; }
.req__title { color: var(--ink); text-decoration: none; }
.req__title:hover { text-decoration: underline; text-underline-offset: 4px; }
.req__body { padding: 0 20px 20px; border-top: 0; }

.page__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.backbtn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px 0 10px;
  border: 1px solid var(--line); border-radius: 100px; background: var(--surface); color: var(--ink);
  font: inherit; font-size: var(--step--1); font-weight: 500; cursor: pointer;
}
.backbtn:hover { border-color: var(--ink-2); }
.backbtn:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.backbtn__arrow { font-size: 1.05em; line-height: 1; }
.richtext { display: grid; gap: 10px; }
.richtext p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.ticket-desc { display: grid; gap: 6px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-btn); }
.brand__product { font-weight: 500; color: var(--ink-2); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: var(--step--1); color: var(--ink-2); }
.crumbs a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.crumbs a:hover { text-decoration-color: currentColor; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.detail__main, .detail__aside { display: grid; gap: 20px; min-width: 0; }
.detail__aside { position: sticky; top: calc(var(--topbar-h) + 12px + env(safe-area-inset-top, 0px)); }
.card--you { border: 1.5px solid var(--you); box-shadow: 0 0 0 5px color-mix(in srgb, var(--you) 13%, transparent), var(--shadow); }
.card--you .card__head h3 { color: var(--you); }
.stack { display: grid; gap: 10px; }
.stack .btn { width: 100%; }
@media (max-width: 1000px) {
  .detail { grid-template-columns: minmax(0, 1fr); }
  .detail__aside { position: static; order: -1; }
}
@media (max-width: 640px) {
  .tasklink { grid-template-columns: minmax(0, 1fr) auto; }
  .tasklink .task__who { grid-column: 1; grid-row: 2; }
}

/* ---------- Comments with images ---------- */
.composer { position: relative; }
.composer.is-dragging textarea { border-color: var(--you); box-shadow: 0 0 0 4px color-mix(in srgb, var(--you) 15%, transparent); }
.composer__note { font-size: var(--step--1); color: var(--ink-2); margin-top: -6px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumbs:empty { display: none; }
.thumb { position: relative; width: 84px; height: 64px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--sunken); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb__remove {
  position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; padding: 0;
  background: var(--btn); color: var(--btn-ink); font-size: 14px; line-height: 22px; cursor: pointer;
}
.msg__images { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.msg__img { padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; width: 140px; height: 100px; background: var(--surface); cursor: zoom-in; }
.msg__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(9, 9, 11, .72);
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.lightbox figure { margin: 0; display: grid; gap: 10px; max-width: min(1100px, 100%); }
.lightbox img { max-width: 100%; max-height: 78vh; border-radius: 10px; background: var(--surface); }
.lightbox figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #FAFAFA; font-size: var(--step--1); }

/* ---------- Proposal document ---------- */
.proposal { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.proposal__aside { position: sticky; top: calc(var(--topbar-h) + 12px + env(safe-area-inset-top, 0px)); display: grid; gap: 16px; }
.doc { font-size: 1.03rem; line-height: 1.7; max-width: 68ch; }
.doc section { padding-block: 26px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.doc section:first-child { border-top: 0; padding-top: 4px; }
.doc ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.facts { display: grid; gap: 12px; margin: 0; }
.facts div { display: grid; gap: 2px; }
.facts dt { font-size: var(--step--1); color: var(--ink-2); }
.facts dd { margin: 0; font-weight: 600; }
.toc { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 0.875rem; }
.toc a:hover { background: var(--sunken); }
@media (max-width: 1000px) {
  .proposal { grid-template-columns: minmax(0, 1fr); }
  .proposal__aside { position: static; order: -1; }
  .toc-card { display: none; }
}

/* ---------- Support ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 36px; padding: 0 14px; border-radius: 100px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font: inherit; font-size: var(--step--1); font-weight: 500; letter-spacing: 0.02em; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.thread { display: grid; gap: 12px; }
.msg { padding: 14px 16px; border-radius: 14px; background: var(--sunken); display: grid; gap: 6px; max-width: 64ch; }
.msg--client { background: var(--info-soft); justify-self: end; }
.msg__who { font-size: var(--step--1); color: var(--ink-2); }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: var(--step--1); letter-spacing: 0.02em; }
.field input, .field textarea, .field select {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-btn);
  padding: 10px 12px; width: 100%; box-sizing: border-box;
}
.field textarea { min-height: 110px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--step--1); }
.check input { margin-top: 3px; }
.form__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Layout controls (Sysology only, mockup) ---------- */
.preview-toggle {
  position: fixed; z-index: 40;
  right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  min-height: 38px; padding: 0 14px; border-radius: 100px; border: 1px dashed var(--ink-2);
  background: var(--surface); color: var(--ink-2); font: inherit; font-size: var(--step--1); font-weight: 500; cursor: pointer; box-shadow: var(--shadow);
}
.preview-panel {
  position: fixed; z-index: 40; width: min(320px, calc(100vw - 32px)); max-height: calc(100vh - 150px); overflow: auto; box-sizing: border-box;
  right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  background: var(--surface); border: 1px dashed var(--ink-2); border-radius: var(--r-card); padding: 16px; display: grid; gap: 14px; box-shadow: var(--shadow);
}
.preview-panel fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 7px; }
.preview-panel legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.preview-panel label { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.preview-panel .note { font-size: var(--step--1); color: var(--ink-2); }
.preview-panel .dataset-select {
  width: 100%; min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-btn);
  background: var(--surface); color: var(--ink); font: inherit;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 700px) {
  .preview-toggle { bottom: calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom, 0px)); }
  .preview-panel { bottom: calc(var(--tabbar-h) + 62px + env(safe-area-inset-bottom, 0px)); max-height: calc(100vh - 230px); }
}

.toast {
  position: fixed; z-index: 50; left: 50%; transform: translateX(-50%);
  bottom: calc(24px + env(safe-area-inset-bottom, 0px)); max-width: calc(100vw - 32px); box-sizing: border-box;
  background: var(--btn); color: var(--btn-ink); padding: 12px 16px; border-radius: var(--r-btn); font-size: var(--step--1); box-shadow: var(--shadow);
}
@media (max-width: 700px) { .toast { bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom, 0px)); } }

@media (prefers-reduced-motion: no-preference) {
  .page { animation: rise .25s ease-out both; }
  @keyframes rise { from { transform: translateY(6px); } to { transform: none; } }
}

/* ---------- Added in mock-up v11: journey strip, wish list ranking, two-door requests, invoices ---------- */
.small { font-size: var(--step--1); }
.pill--later { background: var(--sunken); color: var(--ink-2); border: 1px dashed var(--line); }
.banner-note { padding: 10px 14px; border-radius: var(--r-btn); background: var(--info-soft); font-size: var(--step--1); }
.bullets { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.note-line { font-size: var(--step--1); color: var(--ink-2); font-style: italic; }
.quote { margin: 4px 0 0; padding: 10px 14px; border-left: 3px solid var(--you); background: var(--you-soft); border-radius: 0 var(--r-btn) var(--r-btn) 0; font-weight: 500; display: grid; gap: 4px; }
.quote span { font-weight: 400; font-size: var(--step--1); color: var(--ink-2); }
.amount { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.newreq .icon { width: 16px; height: 16px; }
@media (max-width: 720px) { .newreq span:not(.icon) { display: none; } .newreq { padding-inline: 9px; } }

.journey { list-style: none; margin: 0; padding: 4px 0 2px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(96px, 1fr); gap: 0; overflow-x: auto; scrollbar-width: thin; }
.journey li { position: relative; display: grid; gap: 2px; justify-items: center; text-align: center; padding: 0 4px; min-width: 0; }
.journey li::before { content: ""; position: absolute; top: 9px; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.journey li:first-child::before { display: none; }
.journey li.is-done::before, .journey li.is-now::before { background: var(--good); }
.journey__dot { position: relative; z-index: 1; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); }
.journey li.is-done .journey__dot { background: var(--good); border-color: var(--good); }
.journey li.is-now .journey__dot { border-color: var(--you); background: var(--you); box-shadow: 0 0 0 4px var(--you-soft); }
.journey__label { font-weight: 600; font-size: var(--step--1); margin-top: 6px; }
.journey li.is-now .journey__label { color: var(--you); }
.journey__sub { font-size: 0.75rem; color: var(--ink-2); line-height: 1.3; }
.journey li:not(.is-done):not(.is-now) .journey__label { color: var(--ink-2); font-weight: 500; }

.outcomes { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-weight: 500; }
.ranklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rank { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--surface); cursor: grab; }
.rank:active { cursor: grabbing; }
.rank--below { background: var(--surface-2); opacity: .8; }
.rank__n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: var(--step--1); font-weight: 600; background: var(--sunken); }
.rank__main { display: grid; gap: 2px; min-width: 0; }
.rank__move { display: flex; gap: 4px; }
.rank-line { display: flex; align-items: center; gap: 10px; color: var(--you); font-size: var(--step--1); font-weight: 600; margin: 6px 0; }
.rank-line::before, .rank-line::after { content: ""; flex: 1; height: 2px; background: var(--you); border-radius: 2px; }

.hours { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hours li { display: grid; grid-template-columns: minmax(0, 1fr) 90px 48px; gap: 10px; align-items: center; font-size: var(--step--1); }
.hours__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hours__bar { height: 8px; border-radius: 100px; background: var(--sunken); overflow: hidden; }
.hours__bar i { display: block; height: 100%; background: var(--ink-2); border-radius: 100px; }
.hours__value { text-align: right; font-variant-numeric: tabular-nums; }

.modal { position: fixed; inset: 0; z-index: 60; background: rgba(9, 9, 11, .45); display: grid; place-items: center; padding: 16px; }
.modal__box { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); color: var(--ink); border-radius: var(--r-card); border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); padding: 20px; display: grid; gap: 16px; }
.modal__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal__head h2 { font-size: var(--step-1); }
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 520px) { .doors { grid-template-columns: minmax(0, 1fr); } }
.door { display: grid; gap: 6px; align-content: start; text-align: left; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface-2); color: var(--ink); font: inherit; cursor: pointer; }
.door:hover, .door:focus-visible { border-color: var(--you); background: var(--you-soft); }
.door .icon { width: 26px; height: 26px; color: var(--you); }
.door span { color: var(--ink-2); font-size: var(--step--1); }

.navpill__nav { min-width: 0; overflow-x: auto; scrollbar-width: none; }
.navpill__nav::-webkit-scrollbar { display: none; }
.nav a { padding: 0 11px; }
@media (max-width: 1240px) { .topbar__client .client-name { display: none; } }

/* ---------- Overview v13: equal With you and With us, a glance row, H of GatHer ---------- */
.hmark { color: var(--you); font-weight: 800; }
.journey li.is-now .hmark, .journey__label .hmark { color: var(--you); }
.pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: stretch; margin-bottom: 20px; }
@media (min-width: 900px) { .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pair > .card { margin: 0; }
.card--us { border-top: 3px solid var(--ink); }
.page > .card.span-full { margin-bottom: 20px; }
.rowlink { text-decoration: none; color: inherit; }
.rowlink:hover .row__title { text-decoration: underline; }
.due { color: var(--you); font-weight: 600; }
.done-line { font-size: var(--step--1); color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 12px; margin: 4px 0 0; }
.done-line strong { color: var(--ink); font-weight: 600; }
.glance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
@media (min-width: 900px) { .glance { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.glance__tile { display: grid; gap: 4px; align-content: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.glance__tile:hover { border-color: var(--ink-2); }
.glance__value { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); letter-spacing: -0.02em; }
.journey-card { padding-bottom: 14px; }
.journey li { align-content: start; }
.card > .linkbtn { justify-self: start; }

/* Three categories: Promised, Bonus, Not this time */
.band-head { display: flex; gap: 10px; align-items: baseline; padding: 6px 2px 0; font-size: var(--step--1); color: var(--ink-2); }
.band-head strong { color: var(--ink); font-size: var(--step-0); }
.band-head--promised strong { color: var(--good); }
.rank--promised { border-left: 3px solid var(--good); }
.rank--bonus { border-left: 3px dashed var(--info); }
.rank--later { background: var(--surface-2); opacity: .8; }
.band { font-size: 0.72rem; font-weight: 600; padding: 1px 8px; border-radius: 100px; }
.band--promised { background: var(--good-soft); color: var(--good); }
.band--bonus { background: var(--info-soft); color: var(--info); }
.band--later { background: var(--sunken); color: var(--ink-2); }

/* Sections with more than one view: Scope (This phase, Wish list) and Account (Documents, Invoices, People) */
.subnav { display: inline-flex; gap: 4px; padding: 4px; margin: 4px 0 20px; border: 1px solid var(--line); border-radius: 100px; background: var(--surface); box-shadow: var(--shadow); max-width: 100%; overflow-x: auto; }
.subnav a { padding: 7px 14px; border-radius: 100px; color: var(--ink); text-decoration: none; font-size: 0.875rem; font-weight: 500; white-space: nowrap; }
.subnav a:hover { background: var(--sunken); }
.subnav a[aria-current="page"] { background: var(--btn); color: var(--btn-ink); }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.toolbar .chips { margin: 0; }
.page > .card + .card { margin-top: 16px; }
.subnav { justify-self: start; width: max-content; margin: 0 0 18px; }

/* Scope as the agreement interface (D18) */
.req__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.changes { display: grid; gap: 6px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); font-size: var(--step--1); }

/* ---------- Estimates (Blueprint D20). Always hours, shown as a range. ---------- */
.summary-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: var(--step--1); color: var(--ink-2); }
.summary-line > span:first-child { color: var(--ink); font-weight: 600; }
.summary-line .meter { width: 160px; flex: none; }
.req__est { color: var(--ink); font-variant-numeric: tabular-nums; }
.est { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.est__bar { width: 120px; height: 6px; border-radius: 100px; background: var(--sunken); overflow: hidden; flex: none; }
.est__bar i { display: block; height: 100%; border-radius: 100px; background: var(--ink); }
.est--over-mid .est__bar i { background: var(--warn); }
.est--over-high .est__bar i { background: var(--danger, #c0392b); }
.est__label { font-size: var(--step--1); color: var(--ink-2); }
.est__flag { font-size: var(--step--1); font-weight: 600; color: var(--danger, #c0392b); }
.est__big { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; margin: 0 0 8px; }
.est-table { width: 100%; border-collapse: collapse; font-size: var(--step--1); margin-top: 12px; font-variant-numeric: tabular-nums; }
.est-table th, .est-table td { text-align: right; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.est-table th:first-child, .est-table td:first-child { text-align: left; }
.est-row--over td { color: var(--danger, #c0392b); font-weight: 600; }
details.changes > summary { cursor: pointer; font-size: var(--step--1); font-weight: 600; margin-top: 10px; }
details.changes ul { margin-top: 6px; }
@media (max-width: 640px) { .summary-line .meter, .est__bar { width: 100%; } .est { flex-wrap: wrap; width: 100%; } }
.req__yours { color: var(--you, var(--accent)); font-weight: 600; }

/* ---------- Inbox: every person's actions, all visible ---------- */
.inbox { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
.folders ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.folders__gap { height: 10px; }
.folder { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--step--1); }
.folder--sub { font-weight: 400; padding-left: 24px; color: var(--ink-2); }
.folder:hover { background: var(--surface-2); }
.folder.is-current { background: var(--btn); color: var(--btn-ink); }
.folder__n { font-variant-numeric: tabular-nums; font-size: var(--step--1); }
.folder__n--zero { opacity: 0.45; }
.inbox__row { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
.inbox__kind { min-width: 64px; justify-content: center; }
.row__side { display: flex; align-items: center; gap: 10px; }
.avatar--small { width: 28px; height: 28px; font-size: 0.7rem; }
@media (max-width: 760px) {
  .inbox { grid-template-columns: minmax(0, 1fr); }
  .inbox > * { min-width: 0; }
  .folders ul { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
  .folders__gap { display: none; }
  .folder, .folder--sub { white-space: nowrap; padding: 6px 12px; border: 1px solid var(--line); }
  .inbox__row { grid-template-columns: minmax(0, 1fr) auto; }
  .inbox__kind { grid-column: 1 / -1; justify-self: start; }
}

/* ---------- Version 21: weekly note and document sources ---------- */
.card--note { gap: 16px; }
.note { display: grid; gap: 14px; }
.note__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.note__who { display: grid; gap: 2px; flex: 1 1 200px; min-width: 0; }
.note__headline { font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; letter-spacing: -0.015em; line-height: 1.4; margin: 0; max-width: 64ch; text-wrap: pretty; }
.note__cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 760px) { .note__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.note__col { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-btn); padding: 14px 16px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.note__col ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: var(--step--1); }
.note__label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; }
.note__label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-2); }
.note__col--done .note__label::before { background: var(--good); }
.note__col--next .note__label::before { background: var(--info); }
.note__col--you { background: var(--you-soft); border-color: color-mix(in srgb, var(--you) 30%, var(--line)); }
.note__col--you .note__label { color: var(--you); }
.note__col--you .note__label::before { background: var(--you); }
.note-draft { display: grid; gap: 12px; padding: 16px; border: 1.5px dashed var(--warn-dot); border-radius: var(--r-card); background: var(--warn-soft); }
.note-draft .note__col { background: var(--surface); }
.note-draft__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.note-history { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.note-history li { border-bottom: 1px solid var(--line); }
.note-history summary { cursor: pointer; display: flex; gap: 12px; flex-wrap: wrap; padding: 12px 0; font-size: var(--step--1); }
.note-history summary .muted { flex: 1 1 260px; min-width: 0; }
.note-history details[open] { padding-bottom: 14px; }
.row__desc { color: var(--ink-2); font-size: var(--step--1); max-width: 62ch; }
.row__shared { font-size: var(--step--1); color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.row__shared::before { content: ""; width: 14px; height: 14px; flex: none; background: currentColor; opacity: .7;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20a6.5 6.5 0 0 1 13 0'/%3E%3Cpath d='M16 4.5a3.5 3.5 0 0 1 0 7M18 14.5a6.5 6.5 0 0 1 3.5 5.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20a6.5 6.5 0 0 1 13 0'/%3E%3Cpath d='M16 4.5a3.5 3.5 0 0 1 0 7M18 14.5a6.5 6.5 0 0 1 3.5 5.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.srctag { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--sunken); color: var(--ink-2); }
.srctag--artifact { background: linear-gradient(90deg, var(--wash-a), var(--wash-c)); color: var(--you); }
.srctag--zoho_sign { background: var(--good-soft); color: var(--good); }
.srctag--learn, .srctag--workdrive { background: var(--info-soft); color: var(--info); }

/* ---------- Reviews and case studies (later release) ---------- */
.stories { display: grid; gap: 20px; }
.story { display: grid; gap: 14px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-card); background: linear-gradient(135deg, var(--wash-a), transparent 45%, var(--wash-c)); }
.story__prov { margin: 0; font-size: var(--step--1); color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.story__title { font-family: var(--font-display); font-size: var(--step-2); letter-spacing: -0.03em; line-height: 1.2; margin: 0; max-width: 30ch; text-wrap: balance; }
.story__sec { display: grid; gap: 4px; max-width: 64ch; }
.story__sec p { margin: 0; }
.story__quote { margin: 4px 0 0; padding: 14px 18px; border-left: 3px solid var(--you); background: var(--surface); border-radius: 0 var(--r-btn) var(--r-btn) 0; }
.story__quote p { margin: 0 0 6px; font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; letter-spacing: -0.015em; }
.story__quote cite { font-style: normal; font-size: var(--step--1); color: var(--ink-2); }
.story__where { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.story__where legend { font-weight: 500; font-size: var(--step--1); letter-spacing: 0.02em; margin-bottom: 4px; padding: 0; }
.story__done { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: var(--step--1); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn--ghost:hover { color: var(--ink); background: var(--sunken); }

/* ---------- Layout v24: navigation on the left, slim top bar for page controls ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }
.content { min-width: 0; display: flex; flex-direction: column; }
.content > .main { flex: 1 0 auto; }

.sidebar {
  position: sticky; top: env(safe-area-inset-top, 0px); height: calc(100vh - env(safe-area-inset-top, 0px)); box-sizing: border-box;
  display: flex; flex-direction: column; gap: 22px; overflow-y: auto;
  padding: 20px 14px 16px max(14px, env(safe-area-inset-left, 0px));
  border-right: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 78%, transparent); backdrop-filter: blur(10px);
}
.sidebar .brand { padding: 4px 10px; }
.sidenav { flex: 1 1 auto; }
.sidenav__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sidenav__list a {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 40px; padding: 0 12px;
  border-radius: var(--r-btn); color: var(--ink); text-decoration: none; font-size: 0.9rem; font-weight: 500; letter-spacing: 0.02em;
}
.sidenav__list a .icon { width: 20px; height: 20px; color: var(--ink-2); }
.sidenav__list a:hover { background: var(--sunken); }
.sidenav__list a[aria-current="page"] { background: var(--btn); color: var(--btn-ink); }
.sidenav__list a[aria-current="page"] .icon { color: var(--btn-ink); }
.sidebar__foot { border-top: 1px solid var(--line); padding-top: 14px; }
.whoami {
  display: flex; align-items: center; gap: 10px; padding: 6px; min-width: 0; width: 100%;
  background: none; border: 0; border-radius: var(--r-btn); color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.whoami:hover, .whoami[aria-expanded="true"] { background: var(--sunken); }
.topbar__avatar { background: none; border: 0; padding: 0; border-radius: 50%; cursor: pointer; }
.accountmenu__scrim { position: fixed; inset: 0; z-index: 30; }
.accountmenu {
  position: fixed; min-width: 220px; max-width: calc(100vw - 16px); background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-btn); box-shadow: var(--shadow); padding: 6px;
}
.accountmenu__who { display: grid; gap: 2px; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.accountmenu__name { font-weight: 600; font-size: 0.875rem; }
.accountmenu__client { font-size: var(--step--1); color: var(--ink-2); }
.accountmenu__item {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 10px;
  background: none; border: 0; border-radius: 8px; color: var(--ink); font: inherit; font-size: 0.875rem; cursor: pointer; text-align: left;
}
.accountmenu__item:hover, .accountmenu__item:focus-visible { background: var(--sunken); outline: none; }
.accountmenu__item .icon { width: 18px; height: 18px; }
.whoami__text { display: grid; min-width: 0; line-height: 1.3; }
.whoami__name { font-weight: 600; font-size: 0.875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whoami__client { font-size: var(--step--1); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar__inner { max-width: none; height: var(--topbar-h); gap: 16px; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.topbar__context { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; }
.topbar__title { font-family: var(--font-display); font-weight: 600; font-size: var(--step-0); letter-spacing: -0.01em; }
.topbar__actions { display: flex; align-items: center; gap: 10px; }
.topbar__avatar { display: none; }
.brand--compact { display: none; }
.theme-toggle { box-shadow: none; width: 36px; height: 36px; }
.phasebar--top { margin: 0; }
.phasebar--top .phasebar__seg { padding: 3px; }
.phasebar--top .phasebar__btn { height: 32px; }
.main > .phasebar--inline { display: none; }
.phasewrap > .phasebar--inline { display: none; }
.main { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.foot__inner { max-width: var(--maxw); }

@media (max-width: 700px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .brand--compact { display: inline-flex; }
  .topbar__context { display: none; }
  .topbar__avatar { display: inline-flex; }
  .topbar__inner { justify-content: space-between; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .main { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .main > .phasebar--inline, .phasewrap > .phasebar--inline { display: flex; }
}

/* ---------- Meetings ---------- */
.datebox { width: 56px; flex: none; display: grid; justify-items: center; align-content: center; gap: 0; padding: 8px 0; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); line-height: 1.1; }
.datebox__day, .datebox__mon { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.datebox__num { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.faces { display: flex; align-items: center; }
.faces .avatar + .avatar { margin-left: -6px; box-shadow: 0 0 0 2px var(--surface); }
.meets { display: grid; gap: 12px; }
.meet { display: flex; gap: 16px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-card); }
.meet--next { background: linear-gradient(135deg, var(--wash-c), transparent 60%); border-color: color-mix(in srgb, var(--info) 30%, var(--line)); }
.meet--next .datebox { border-color: var(--info); }
.meet__body { display: grid; gap: 8px; min-width: 0; flex: 1; }
.meet__body h3 { margin: 0; }
.meet__eyebrow { color: var(--info); font-weight: 600; }
.meet__agenda ol { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 3px; font-size: var(--step--1); }
.reqchips { display: flex; flex-wrap: wrap; gap: 6px; }
.reqchip { font-size: 0.72rem; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: var(--sunken); color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.reqchip:hover { background: var(--line); }
.pastmeets { list-style: none; margin: 0; padding: 0; }
.pastmeet { border-top: 1px solid var(--line); }
.pastmeet:first-child { border-top: 0; }
.pastmeet__head { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0;
  background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.pastmeet__head .datebox { width: 48px; padding: 6px 0; background: var(--surface-2); }
.pastmeet__head .datebox__num { font-size: 1.1rem; }
.pastmeet__main { display: grid; gap: 2px; min-width: 0; }
.pastmeet__main .row__meta span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 52ch; }
.pastmeet__side { display: inline-flex; align-items: center; gap: 10px; }
.pastmeet__side .icon { width: 18px; height: 18px; color: var(--ink-2); transition: transform .2s; }
.pastmeet__head[aria-expanded="true"] .pastmeet__side .icon { transform: rotate(90deg); }
.pastmeet__detail { display: grid; gap: 14px; padding: 0 0 18px 62px; }
.msum { display: grid; gap: 12px; }
.msum--draft { padding: 16px; border: 1.5px dashed var(--warn-dot); border-radius: var(--r-card); background: var(--warn-soft); }
.msum--draft .note__col { background: var(--surface); }
.msum__prov { margin: 0; font-size: var(--step--1); color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
@media (min-width: 760px) { .note__cols--two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nextmeet { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 14px 18px;
  border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow); color: inherit; text-decoration: none; }
.nextmeet:hover { border-color: var(--ink-2); }
.nextmeet__main { display: grid; gap: 2px; min-width: 0; }
.nextmeet__main .eyebrow { color: var(--info); font-weight: 600; }
.nextmeet > .icon { width: 18px; height: 18px; color: var(--ink-2); }
@media (max-width: 560px) {
  .nextmeet { grid-template-columns: auto minmax(0, 1fr); }
  .nextmeet .faces, .nextmeet > .icon { display: none; }
  .meet { flex-direction: column; }
  .pastmeet__detail { padding-left: 0; }
  .pastmeet__head { grid-template-columns: auto minmax(0, 1fr); }
  .pastmeet__side { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { .pastmeet__side .icon { transition: none; } }

/* ---------- Tablets (701 to 1100px): the left panel becomes an icon rail ---------- */
@media (min-width: 701px) and (max-width: 1100px) {
  :root { --sidebar-w: 76px; }
  .sidebar { padding-inline: 12px; align-items: stretch; }
  .sidebar .brand { justify-content: center; padding: 4px 0; }
  .sidebar .brand__word, .sidenav__list .nav__label, .whoami__text { display: none; }
  .sidenav__list a { grid-template-columns: 1fr; justify-items: center; padding: 0; min-height: 48px; position: relative; }
  .sidenav__list a .icon { width: 22px; height: 22px; }
  .sidenav__list .badge { position: absolute; top: 4px; right: 6px; min-width: 16px; height: 16px; font-size: 0.62rem; padding: 0 4px; }
  .whoami { justify-content: center; padding: 0; }
  .topbar__inner { padding-inline: 20px; }
  .main { padding-left: 20px; padding-right: 20px; }
}

/* ---------- Version 26: the dream features ---------- */
/* Phone tab bar: More */
@media (max-width: 700px) {
  .tabbar__list .tabbar__more { width: 100%; height: 100%; display: grid; place-items: center; align-content: center; gap: 2px; position: relative;
    background: none; border: 0; font: inherit; color: var(--ink-2); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.02em; cursor: pointer; }
  .tabbar__more[aria-current="page"], .tabbar__more[aria-expanded="true"] { color: var(--ink); }
  .tabbar__more[aria-current="page"] .icon { background: var(--sunken); border-radius: 100px; box-shadow: 0 0 0 5px var(--sunken); }
  .searchbtn > span:not(.icon), .searchbtn kbd { display: none; }
  .searchbtn { width: 36px; padding: 0; justify-content: center; }
  .viewtoggle { width: 100%; }
}
.badge--dot { min-width: 8px; width: 8px; height: 8px; padding: 0; }
.tabbar__list .badge--dot { top: 10px; left: calc(50% + 9px); }
.moresheet__scrim { position: fixed; inset: 0; z-index: 25; background: rgba(9, 9, 11, .35); }
.moresheet { position: fixed; left: 8px; right: 8px; bottom: calc(var(--tabbar-h) + 8px + env(safe-area-inset-bottom, 0px)); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: 0 16px 40px rgba(0, 0, 0, .2); padding: 8px; }
.moresheet .sidenav__list a { min-height: 48px; }

/* Search */
.searchbtn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 12px; border-radius: var(--r-btn);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: inherit; font-size: var(--step--1); cursor: pointer; }
.searchbtn:hover { color: var(--ink); border-color: var(--ink-2); }
.searchbtn .icon { width: 17px; height: 17px; }
kbd { font-family: inherit; font-size: 0.68rem; font-weight: 600; padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line); background: var(--sunken); color: var(--ink-2); }
.modal--top { place-items: start center; padding-top: max(10vh, 24px); }
.search { width: min(640px, 100%); gap: 10px; }
.search__bar { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.search__bar .icon { width: 20px; height: 20px; color: var(--ink-2); }
.search__bar input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: var(--step-1); color: var(--ink); outline: none; }
.search__results { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.search__hit { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px; border-radius: var(--r-btn); color: var(--ink); text-decoration: none; }
.search__hit:hover, .search__hit:focus-visible { background: var(--sunken); }
.search__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.search__empty { padding: 10px; }

/* Your system */
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.app { display: grid; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow); align-content: start; }
.app__name { font-family: var(--font-display); font-weight: 600; }
.app__lic { display: grid; gap: 4px; margin-top: 4px; }
.srctag--kind { background: var(--sunken); color: var(--ink); }
.srctag--meeting { background: var(--info-soft); color: var(--info); }
.srctag--agreement { background: var(--good-soft); color: var(--good); }
.srctag--comment { background: var(--you-soft); color: var(--you); }
.healthhero { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--r-card); border: 1px solid color-mix(in srgb, var(--good) 35%, var(--line)); background: var(--good-soft); }
.healthhero strong { display: block; font-family: var(--font-display); font-size: var(--step-1); }
.healthhero__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 6px color-mix(in srgb, var(--good) 20%, transparent); flex: none; }
.healthhero--warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn-dot) 45%, var(--line)); }
.healthhero--warn .healthhero__dot { background: var(--warn-dot); box-shadow: 0 0 0 6px color-mix(in srgb, var(--warn-dot) 25%, transparent); }
.changelog { list-style: none; margin: 0; padding: 0; display: grid; }
.changelog li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.changelog li:first-child { border-top: 0; }
.changelog__date { font-size: var(--step--1); color: var(--ink-2); font-variant-numeric: tabular-nums; padding-top: 2px; }
.changelog__body { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: baseline; }
.changelog__body p { flex: 1 1 260px; min-width: 0; margin: 0; }
.chtag { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; }
.chtag--new { background: var(--good-soft); color: var(--good); }
.chtag--changed { background: var(--info-soft); color: var(--info); }
.chtag--fix { background: var(--warn-soft); color: var(--warn); }

/* Value tracker */
.valuehero { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 24px 26px; border-radius: var(--r-card); border: 1px solid var(--line);
  background: linear-gradient(120deg, var(--wash-a), var(--wash-b) 50%, var(--wash-c)); }
.valuehero__num { font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.valuehero strong { display: block; font-size: var(--step-1); }
.values { display: grid; gap: 14px; }
.values--compact { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.value { display: grid; gap: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); min-width: 0; }
.value--met { border-color: color-mix(in srgb, var(--good) 40%, var(--line)); }
.value__top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.value__what { display: grid; gap: 4px; min-width: 0; flex: 1 1 240px; }
.value__what strong { font-family: var(--font-display); font-size: var(--step-1); letter-spacing: -0.015em; line-height: 1.3; }
.value__nums { display: flex; align-items: flex-end; gap: 10px 22px; flex-wrap: wrap; }
.value__nums > div { display: grid; gap: 2px; }
.value__label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.value__num { font-family: var(--font-display); font-size: var(--step-2); font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.value__num--before { color: var(--ink-2); text-decoration: line-through; text-decoration-thickness: 1.5px; text-decoration-color: color-mix(in srgb, var(--ink-2) 50%, transparent); }
.value__num--target { color: var(--good); }
.value__arrow { color: var(--ink-2); font-size: var(--step-1); padding-bottom: 4px; }
.value__nums .spark { margin-left: auto; }
.value--compact .value__num { font-size: var(--step-1); }
.value--compact .value__what strong { font-size: var(--step-0); }
.value__bar { height: 8px; border-radius: 99px; background: var(--sunken); overflow: hidden; }
.value__bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--info), var(--good)); }
.value__src { margin: 0; font-size: var(--step--1); color: var(--ink-2); }
.spark svg { display: block; overflow: visible; }
.spark__area { fill: color-mix(in srgb, var(--info) 14%, transparent); }
.spark__line { fill: none; stroke: var(--info); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spark__end { fill: var(--surface); stroke: var(--info); stroke-width: 2; }

/* Roadmap */
.roadmap { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.lane { display: grid; gap: 12px; align-content: start; padding: 16px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.lane__head { display: grid; gap: 2px; }
.lane__head h3 { margin-top: 4px; }
.lane__state { justify-self: start; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--sunken); color: var(--ink-2); }
.lane--closed .lane__state { background: var(--good-soft); color: var(--good); }
.lane--active { border: 1.5px solid var(--you); box-shadow: 0 0 0 4px color-mix(in srgb, var(--you) 10%, transparent); }
.lane--active .lane__state { background: var(--you-soft); color: var(--you); }
.lane--proposed .lane__state { background: var(--info-soft); color: var(--info); }
.lane--later { background: var(--surface-2); border-style: dashed; }
.lane__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lane__items a { display: block; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: var(--step--1); }
.lane__items a:hover { border-color: var(--ink-2); }
.lane--closed .lane__items a { color: var(--ink-2); }

/* Decisions */
.decisions__search input { font-size: var(--step-0); }
.decisions__results { display: grid; gap: 16px; }

/* Sponsor view */
.viewtoggle { justify-content: flex-end; }
.sponsorhero { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding: 20px 24px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.sponsorhero__status { display: flex; align-items: center; gap: 14px; margin-right: auto; }
.sponsorhero__status strong { display: block; font-family: var(--font-display); font-size: var(--step-2); letter-spacing: -0.03em; }
.sponsorhero__dot { width: 16px; height: 16px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 7px color-mix(in srgb, var(--good) 18%, transparent); }
.sponsorhero__dot--red { background: var(--danger); box-shadow: 0 0 0 7px color-mix(in srgb, var(--danger) 18%, transparent); }
.sponsorhero__stat { display: grid; justify-items: start; }
.sponsorhero__num { font-family: var(--font-display); font-size: var(--step-2); font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.risks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.risk { display: flex; gap: 12px; align-items: flex-start; }
.risk > div { display: grid; gap: 2px; }
.risk__dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--warn-dot); }
.risk--red .risk__dot { background: var(--danger); }
.risk--green .risk__dot { background: var(--good); }

/* Pulse */
.pulse { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.pulse__btn { display: grid; gap: 2px; justify-items: center; padding: 10px 4px; border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.pulse__btn:hover { border-color: var(--you); background: var(--you-soft); }
.pulse__num { font-family: var(--font-display); font-size: var(--step-1); font-weight: 700; }
.pulse__label { font-size: 0.72rem; color: var(--ink-2); text-align: center; }

/* Feature list table */
.table { overflow-x: auto; }
.table table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); }
