/* OneNine pipeline dashboard
   Follows oneninenordic.com: warm cream page, white cards, warm near-black ink,
   dark slate header with pill navigation, Instrument Serif headings, Inter Tight
   text, JetBrains Mono labels, pale-yellow pill as the primary action. */

:root {
  color-scheme: light;
  --page: #fefaed;          /* site --surface-2 */
  --surface: #ffffff;       /* site --card */
  --surface-2: #fdf8ec;
  --surface-3: #f3eee0;     /* site --muted */
  --hairline: #1a15121f;    /* site --hairline */
  --hairline-strong: #1a151238;

  --ink: #15110d;           /* site --foreground */
  --ink-2: #3b342e;
  --muted: #534b45;         /* site --muted-foreground */

  --slate: #2e3a46;         /* site header / dark sections */
  --slate-2: #3a4855;
  --link: #2e3a46;
  --focus: #cb6700;         /* site --ring */

  /* data series: validated with the dataviz palette checker (CVD ΔE 18.3, contrast ≥ 3:1 on white cards) */
  --won: #2a7a4b;
  --won-wash: #d5e8dc;
  --open: #5b88cc;
  --open-wash: #dce7f5;
  --exposure: #3b342e;

  /* pale yellow: primary action and meeting input (site --accent) */
  --accent: #fff2bd;
  --note: #fff4c2;
  --note-edge: #e9cf6a;
  --note-ink: #4d3d00;

  /* status (icon + label always) */
  --good: #2f8a3b;
  --warn: #a8670f;
  --warn-wash: #fcefd8;
  --critical: #cc272e;      /* site --destructive */
  --critical-wash: #fbe8e7;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(21, 17, 13, .04), 0 6px 20px -8px rgba(21, 17, 13, .10);
  --font: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
[hidden] { display: none !important; }

/* --- header: dark slate with pill navigation, like the website ---------------------- */

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--slate); color: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .2);
}
.topbar-inner {
  max-width: var(--max); margin: 0 auto; padding: 12px 24px 6px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 14px; margin-right: auto; }
.wordmark { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; font-size: 19px; letter-spacing: -.03em; color: #fff; }
.wordmark .mark { font-weight: 700; letter-spacing: -.12em; margin-right: 4px; }
.brand-title { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .65); }

.period { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.period label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .65); }
.period .muted { color: rgba(255, 255, 255, .6); }
.select, .input, .period select {
  height: 34px; padding: 0 10px; border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm); background: var(--surface);
}
.period select { border-radius: 999px; padding: 0 12px; border-color: rgba(255, 255, 255, .25); background: var(--slate-2); color: #fff; }
.period select option { color: var(--ink); background: #fff; }
.period select:focus, .select:focus, .input:focus, .note-field:focus, .chip:focus-visible, .btn:focus-visible, .chapter:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 2px;
}

.freshness { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255, 255, 255, .72); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: #7fd18b; }
.stale-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: #f4c46a; color: #2b1d00; font-weight: 600; font-size: 12.5px; }

.btn {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--hairline-strong);
  background: var(--surface); cursor: pointer; font-weight: 500; white-space: nowrap; text-decoration: none; color: var(--ink);
}
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--accent); color: #000; border-color: #000; }
.btn.primary:hover { background: #ffe98f; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface-3); }
.btn.small { height: 30px; padding: 0 12px; font-size: 13px; }
.btn[disabled] { opacity: .55; cursor: progress; }

.chapters {
  max-width: var(--max); margin: 0 auto; padding: 6px 24px 12px;
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
}
.chapters::-webkit-scrollbar { display: none; }
.chapter {
  display: flex; align-items: center; gap: 8px; padding: 6px 14px;
  color: rgba(255, 255, 255, .78); text-decoration: none; white-space: nowrap; font-size: 14px; font-weight: 500;
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px;
}
.chapter b { font-weight: 500; }
.chapter .step { font-family: var(--mono); font-size: 11px; opacity: .7; }
.chapter .time { font-size: 12px; opacity: .6; }
.chapter:hover { border-color: rgba(255, 255, 255, .6); color: #fff; }
.chapter.active { background: var(--accent); color: #000; border-color: var(--accent); }
.chapter.active .step, .chapter.active .time { opacity: .75; }
.chapter.aside { margin-left: auto; border-color: transparent; }
.chapter.aside:hover { border-color: rgba(255, 255, 255, .4); }
.chapter.aside.active { border-color: var(--accent); }

/* --- layout ----------------------------------------------------------------------- */

.view { max-width: var(--max); margin: 0 auto; padding: 28px 24px 80px; outline: none; }
.view.loading { opacity: .55; transition: opacity .2s; }

.lede { max-width: 760px; margin-bottom: 28px; }
.eyebrow { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.lede h1 { font-family: var(--serif); font-weight: 400; font-size: 48px; line-height: 1.02; letter-spacing: -.025em; }
.lede p { margin: 8px 0 0; color: var(--ink-2); font-size: 16px; }

.section { margin-top: 36px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1; letter-spacing: -.02em; }
.section-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 20px 22px; }

.grid-2 { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; align-items: start; }
@media (max-width: 960px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }

/* Advisory · Core · Samlet, side by side within each group */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 1020px) { .grid-3 { grid-template-columns: minmax(0, 1fr); } }
.scope-card { display: flex; flex-direction: column; overflow: hidden; }
.scope-card.total { border-color: var(--hairline-strong); }
.scope-head { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-bottom: 1px solid var(--hairline); background: var(--surface-2); }
.scope-card.total .scope-head { background: var(--surface-3); }
.scope-name { font-weight: 650; font-size: 14px; }
.scope-hero { padding: 16px 18px 12px; display: flex; flex-direction: column; gap: 8px; }
.scope-value { font-size: 32px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.scope-split { display: flex; gap: 14px; flex-wrap: wrap; color: var(--ink-2); }
.scope-split > span { display: inline-flex; align-items: center; gap: 4px; }
.mini-table { font-size: 13px; }
.mini-table th, .mini-table td { padding: 6px 10px; }
.mini-table th:first-child, .mini-table td:first-child { padding-left: 18px; }
.mini-table th:last-child, .mini-table td:last-child { padding-right: 18px; }
.mini-table .strong { font-weight: 650; }
.chart-pad { padding: 8px 12px 4px 4px; }
.recon { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; color: var(--ink-2); margin: 12px 0 0; }
.ranked.compact li { padding: 8px 4px; }
.ranked.compact .name { font-size: 14px; }
.history { margin-top: 4px; font-size: 12.5px; }
.history summary { cursor: pointer; color: var(--muted); }
.history ul { margin: 6px 0 0; padding-left: 16px; }
.history li { margin: 2px 0; }
.chapter.aside + .chapter.aside { margin-left: 0; }

/* Overblik headline: Samlet first, then the three-column groups */
.headline-strip { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; padding: 26px 28px; margin-top: 8px; }
@media (max-width: 900px) { .headline-strip { grid-template-columns: minmax(0, 1fr); } }
.hl-main { display: flex; flex-direction: column; gap: 8px; }
.hl-main .change-line { margin: 4px 0 0; }
.hl-side { display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.hl-split { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.hl-split > div { display: flex; align-items: center; gap: 8px; }
.hl-split b { font-weight: 600; font-variant-numeric: tabular-nums; }
.hl-units { color: var(--muted); border-top: 1px solid var(--hairline); padding-top: 10px; }
.empty-actions { display: flex; align-items: center; gap: 14px; padding-top: 14px; padding-bottom: 14px; }
.empty-actions .spacer { flex: 1; }
.freshness .saved { color: rgba(255, 255, 255, .6); }
.btn.outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn.outline-light:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }

/* Ændringer: change split into causes; bars grow left (down) or right (up) from a centre line */
.bridge { list-style: none; margin: 0; padding: 0; }
.bridge li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--hairline); font-size: 13.5px; }
.bridge li:first-child { border-top: 0; }
.b-bar { position: relative; height: 10px; }
.b-bar::before { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--hairline-strong); }
.b-bar .pos, .b-bar .neg { position: absolute; top: 0; height: 100%; }
.b-bar .pos { left: 50%; background: var(--won); border-radius: 0 3px 3px 0; }
.b-bar .neg { right: 50%; background: var(--critical); border-radius: 3px 0 0 3px; }
.b-val { text-align: right; font-weight: 600; white-space: nowrap; }
.pick { display: inline-flex; align-items: center; gap: 8px; }
.pick .select { max-width: 320px; }
.field-changes { list-style: none; margin: 4px 0 0; padding: 0; font-size: 13px; }
.field-changes li { margin: 1px 0; }
.change-line { margin: -12px 0 24px; color: var(--ink-2); }

/* --- headline figures -------------------------------------------------------------- */

.headline { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 2fr); gap: 20px; }
@media (max-width: 960px) { .headline { grid-template-columns: minmax(0, 1fr); } }
.hero { padding: 24px 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.hero-label { color: var(--ink-2); font-weight: 550; }
.hero-value { font-size: 56px; font-weight: 600; letter-spacing: -.04em; line-height: 1; margin-top: 4px; }
.hero-value small { font-size: 22px; font-weight: 600; color: var(--ink-2); letter-spacing: -.01em; margin-left: 4px; }
.hero-story { color: var(--ink-2); margin: 0; }
.composition { display: flex; height: 10px; gap: 2px; border-radius: 3px; overflow: hidden; }
.composition span { display: block; height: 100%; }
.composition-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); margin-top: 8px; }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
@media (max-width: 640px) { .tiles { grid-template-columns: minmax(0, 1fr); } }
.tile { padding: 22px 22px; border-left: 1px solid var(--hairline); }
.tile:first-child { border-left: 0; }
@media (max-width: 640px) { .tile { border-left: 0; border-top: 1px solid var(--hairline); } .tile:first-child { border-top: 0; } }
.tile-label { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 14px; font-weight: 550; }
.tile-value { font-size: 28px; font-weight: 650; letter-spacing: -.02em; margin-top: 6px; }
.tile-note { font-size: 13px; color: var(--muted); margin-top: 4px; }
.key { width: 10px; height: 10px; border-radius: 2px; display: inline-block; flex: none; }
.key.line { height: 2px; width: 14px; border-radius: 1px; }

/* --- charts ------------------------------------------------------------------------ */

.chart { width: 100%; display: block; overflow: visible; }
.chart text { fill: var(--muted); font-size: 12px; font-family: var(--font); }
.chart .value-label { fill: var(--ink); font-weight: 600; font-size: 12.5px; }
.chart .grid { stroke: var(--hairline); stroke-width: 1; }
.chart .baseline { stroke: var(--hairline-strong); stroke-width: 1; }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .hit:hover + g .seg, .chart g.hover .seg { filter: brightness(1.08); }
.chart-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); margin: 4px 0 8px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.story-note { display: flex; gap: 10px; align-items: flex-start; background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 14px; color: var(--ink-2); font-size: 14px; margin-top: 12px; }

.tooltip {
  position: fixed; z-index: 60; pointer-events: none; min-width: 180px; max-width: 320px;
  background: var(--ink); color: #fff; border-radius: 8px; padding: 10px 12px; font-size: 13px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
.tooltip .tt-title { color: rgba(255, 255, 255, .72); font-size: 12px; margin-bottom: 6px; }
.tooltip .tt-row { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.tooltip .tt-row + .tt-row { margin-top: 3px; }
.tooltip .tt-row b { font-weight: 650; font-variant-numeric: tabular-nums; }
.tooltip .tt-name { display: inline-flex; align-items: center; gap: 7px; color: rgba(255, 255, 255, .8); }
.tooltip .tt-sep { border-top: 1px solid rgba(255, 255, 255, .18); margin: 6px 0; }

/* --- ranked bars ------------------------------------------------------------------- */

.ranked { list-style: none; margin: 0; padding: 0; }
.ranked li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 6px; border-top: 1px solid var(--hairline); cursor: pointer; border-radius: 6px; }
.ranked li:first-child { border-top: 0; }
.ranked li:hover { background: var(--surface-2); }
.ranked .rank { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.ranked .name { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranked .meta { grid-column: 2; display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.ranked .val { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.ranked .val small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.ranked .bar { grid-column: 2 / 4; height: 8px; position: relative; }
.ranked .bar .track { position: absolute; inset: 0 auto 0 0; background: var(--open-wash); border-radius: 0 3px 3px 0; }
.ranked .bar .fill { position: absolute; inset: 0 auto 0 0; background: var(--open); border-radius: 0 3px 3px 0; }

/* --- chips, badges ----------------------------------------------------------------- */

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--hairline-strong); background: var(--surface);
  font-size: 13px; cursor: pointer; color: var(--ink-2);
}
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .count { font-variant-numeric: tabular-nums; opacity: .75; }
.stage { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); font-size: 12px; white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 550; white-space: nowrap; padding: 1px 8px 1px 6px; border-radius: 999px; }
.badge svg { flex: none; }
.badge.good { color: var(--good); background: #e8f4ea; }
.badge.warn { color: var(--warn); background: var(--warn-wash); }
.badge.critical { color: var(--critical); background: var(--critical-wash); }
.badge.neutral { color: var(--ink-2); background: var(--surface-3); }
.badge.note { color: var(--note-ink); background: var(--note); }

/* --- exclusions -------------------------------------------------------------------- */

.excl { list-style: none; margin: 0; padding: 0; }
.excl li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 12px 0; border-top: 1px solid var(--hairline); }
.excl li:first-child { border-top: 0; padding-top: 0; }
.excl .label { font-weight: 550; }
.excl .count { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.excl .sub { grid-column: 1 / 3; font-size: 13px; color: var(--muted); }
.excl .meter { grid-column: 1 / 3; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; margin-top: 4px; }
.excl .meter span { display: block; height: 100%; background: var(--warn); border-radius: 0 3px 3px 0; }
.callout { background: var(--warn-wash); border-radius: var(--radius-sm); padding: 12px 14px; color: #6b4a0f; font-size: 14px; margin-bottom: 14px; display: flex; gap: 10px; }

/* --- tables ------------------------------------------------------------------------ */

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--hairline); vertical-align: middle; }
th { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: none; white-space: nowrap; position: sticky; top: 0; background: var(--surface); z-index: 1; }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--ink); }
th .arrow { opacity: .7; margin-left: 2px; }
td.r, th.r { text-align: right; }
tbody tr.clickable { cursor: pointer; }
tbody tr.clickable:hover td { background: var(--surface-2); }
tfoot td { font-weight: 650; border-bottom: 0; border-top: 1px solid var(--hairline-strong); }
.cell-name { font-weight: 550; min-width: 220px; max-width: 340px; }
.cell-name .sub { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.empty-row td { text-align: center; color: var(--muted); padding: 36px; }

.matrix td.heat { text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; padding: 8px 10px; border-left: 2px solid var(--surface); }
.matrix th.month { text-align: right; }
.share-bar { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.share-bar .track { width: 72px; height: 6px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.share-bar .track span { display: block; height: 100%; background: var(--won); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters .input { min-width: 220px; }
.filters .spacer { flex: 1; }

.timeline { display: block; }

/* --- actions (meeting) --------------------------------------------------------------- */

.actions-table td { padding: 8px 10px; }
.note-field {
  width: 100%; border: 1px solid transparent; border-radius: var(--radius-sm); padding: 6px 8px;
  background: transparent; resize: vertical; min-height: 34px;
}
.note-field:hover { border-color: var(--hairline-strong); }
.note-field.yellow, select.status { background: var(--note); border-color: var(--note-edge); color: var(--note-ink); }
select.status { height: 32px; border-radius: 999px; padding: 0 10px; border: 1px solid var(--note-edge); font-weight: 600; font-size: 13px; }
select.status.done { background: #e8f4ea; border-color: #b9dcc0; color: var(--good); }
select.status.dropped { background: var(--surface-3); border-color: var(--hairline-strong); color: var(--muted); }
.saved { font-size: 12px; color: var(--muted); }
.icon-btn { border: 0; background: transparent; cursor: pointer; color: var(--muted); width: 30px; height: 30px; border-radius: 6px; display: inline-grid; place-items: center; }
.icon-btn:hover { background: var(--surface-3); color: var(--critical); }

/* --- drawer -------------------------------------------------------------------------- */

.drawer { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(31, 42, 55, .22); opacity: 0; transition: opacity .2s; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100vw);
  background: var(--surface); box-shadow: -12px 0 40px rgba(31, 42, 55, .14);
  transform: translateX(102%); transition: transform .24s ease; overflow-y: auto; padding: 24px 26px 40px;
}
.drawer.open { pointer-events: auto; }
.drawer.open .drawer-scrim { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; letter-spacing: -.02em; margin: 8px 0 4px; }
.drawer .facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin: 18px 0; }
.drawer .facts dt { font-size: 12px; color: var(--muted); }
.drawer .facts dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.drawer .block { border-top: 1px solid var(--hairline); padding-top: 16px; margin-top: 18px; }
.drawer .block h3 { font-size: 14px; margin-bottom: 8px; }
.meeting-box { background: var(--note); border: 1px solid var(--note-edge); border-radius: var(--radius); padding: 14px 16px; }
.meeting-box label { display: block; font-size: 12px; font-weight: 600; color: var(--note-ink); margin: 10px 0 4px; }
.meeting-box label:first-of-type { margin-top: 0; }
.meeting-box .input, .meeting-box textarea { width: 100%; background: #fffdf3; border: 1px solid var(--note-edge); border-radius: var(--radius-sm); }
.meeting-box textarea { padding: 8px 10px; min-height: 70px; resize: vertical; }
.meeting-box .row { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 10px; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.next-step { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; color: var(--ink-2); white-space: pre-wrap; }

/* --- misc ------------------------------------------------------------------------------ */

.banner { max-width: var(--max); margin: 16px auto 0; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--critical-wash); color: var(--critical); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 70; font-size: 14px; box-shadow: var(--shadow); }
/* --- sign-in page and account in the header ------------------------------------------- */

.signin-page .topbar-inner { padding-bottom: 12px; }
.signin { display: grid; place-items: center; padding: 72px 16px; }
.signin-card { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px 32px; }
.signin-card h1 { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.1; margin-bottom: 12px; }
.signin-card p { margin: 0 0 20px; }
.signin-error { background: var(--critical-wash); color: var(--critical); border-radius: var(--radius-sm); padding: 10px 12px; }
.signin-btn { width: 100%; justify-content: center; }
.account { display: inline-flex; align-items: center; gap: 8px; padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .2); }
.account-email { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn.link-light { background: transparent; border-color: transparent; color: #fff; padding: 0 6px; text-decoration: underline; text-underline-offset: 3px; }
.btn.link-light:hover { background: rgba(255, 255, 255, .08); }
@media (max-width: 1280px) { .account-email { display: none; } }  /* address stays in the tooltip */

.empty { text-align: center; padding: 72px 24px; }
.empty h1 { font-family: var(--serif); font-weight: 400; font-size: 36px; margin-bottom: 8px; }
.empty p { color: var(--ink-2); max-width: 520px; margin: 0 auto 20px; }
.method { font-size: 13px; color: var(--muted); margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--hairline); display: flex; gap: 20px; flex-wrap: wrap; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--hairline); }
.checks li:first-child { border-top: 0; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
  .topbar { position: static; }
  .topbar-inner, .chapters, .view { padding-left: 16px; padding-right: 16px; }
  .hero-value { font-size: 42px; }
  .lede h1 { font-size: 34px; }
  .chapter .time { display: none; }
  .filters .input { min-width: 0; flex: 1 1 100%; }
}

@media print {
  .topbar, .drawer, .btn, .filters, .icon-btn { display: none !important; }
  .card { box-shadow: none; }
  .view { padding: 0; }
  select.status, .note-field { border: 0; appearance: none; }
}
.cell-badges { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
