/* ICE dashboards: global, company and manager views.

   Layout: a quiet page with one bold element, the green summary band that
   states the headline. Sections sit directly on the page; white panels are
   kept for charts and tables. Always light, so screen and paper match. */

:root {
  --brand: #05932e;            /* The Other Mind green */
  --brand-deep: #046b22;
  --forest: #0b3d20;           /* the summary band */
  --lime: #a5d456;             /* the logo's light ring, for small accents on the band */

  --ink: #15201a;              /* text; neutrals lean slightly green */
  --ink-2: #44514a;
  --muted: #6a766f;
  --rule: #dbe1dd;
  --rule-strong: #a9b3ad;
  --page: #f1f4f1;
  --surface: #ffffff;
  --tint: #edf5ee;
  --track: #e1e7e3;

  --series-baseline: #7dbf8d;  /* Baseline */
  --series-followup: #046b22;  /* ICE 1-3 */
  --part-background: #a8b1ab;  /* Background questions: neutral, the mix moves away from it */
  --part-other: #dfe5e1;

  --good-bg: #dff2e2;
  --good-ink: #0a5d24;
  --warn-bg: #fcefd2;
  --warn-ink: #7a4b00;

  --display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --radius: 12px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

button, select, textarea { font: inherit; color: inherit; }

button:focus-visible,
a:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--brand-deep);
  outline-offset: 2px;
}

/* ----------------------------------------------------------------- appbar */

.appbar { background: var(--surface); border-bottom: 1px solid var(--rule); }

.appbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.logo { height: 46px; width: auto; display: block; }

.views { display: flex; gap: 2px; padding: 3px; background: var(--page); border-radius: 10px; }
.views button {
  border: none;
  background: none;
  padding: 7px 16px;
  border-radius: 8px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
}
.views button:hover { color: var(--ink); }
.views button[aria-current="page"] {
  background: var(--surface);
  color: var(--brand-deep);
  box-shadow: 0 1px 2px rgba(21, 32, 26, 0.12);
}

.appbar-link { margin-left: auto; color: var(--ink-2); font-weight: 600; text-decoration: none; }
.appbar-link:hover { color: var(--brand-deep); text-decoration: underline; }

.button-main {
  border: none;
  border-radius: 8px;
  background: var(--brand-deep);
  color: #fff;
  font-weight: 600;
  padding: 9px 16px;
  cursor: pointer;
  white-space: nowrap;
}
.button-main:hover { background: #03571b; }

/* ------------------------------------------------------------------- main */

main { max-width: 1240px; margin: 0 auto; padding: 24px 24px 56px; }

.masthead { margin-bottom: 16px; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; min-height: 24px; font-size: 0.875rem; }
.crumbs button {
  border: none;
  background: none;
  padding: 2px 0;
  color: var(--brand-deep);
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.crumbs button:hover { color: #03571b; }
.crumbs .here { color: var(--ink-2); font-weight: 500; }
.crumbs .sep { color: var(--rule-strong); }
.crumbs .jump {
  margin-left: auto;
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  padding: 6px 12px;
}
.crumbs .jump:hover { background: var(--tint); color: var(--ink); }

h1 {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: 2.125rem;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.meta { margin: 4px 0 0; color: var(--muted); font-size: 0.875rem; }

/* ---------------------------------------------------------------- filters */

.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.filter { display: flex; flex-direction: column; gap: 4px; flex: 1 1 150px; min-width: 0; max-width: 230px; }
.filter label { font-size: 0.75rem; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
.filter select {
  width: 100%;
  min-height: 38px;
  padding: 7px 10px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
}
.filter select:hover:not(:disabled) { border-color: var(--rule-strong); }
.filter select:disabled { background: transparent; color: var(--muted); }

.button-quiet {
  min-height: 38px;
  padding: 7px 12px;
  border: none;
  background: none;
  color: var(--brand-deep);
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
}
.button-quiet:hover { background: var(--tint); }

.flag {
  margin: 0 0 16px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--warn-bg);
  color: var(--warn-ink);
  font-size: 0.875rem;
  font-weight: 600;
}

/* ------------------------------------------------------------ summary band */

.story {
  background: var(--forest);
  color: #fff;
  border-radius: 16px;
  padding: 28px 30px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px 32px;
  align-items: center;
}

.story-eyebrow {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--lime);
}
.story-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.875rem;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.story-sub { margin: 10px 0 0; color: rgba(255, 255, 255, 0.82); max-width: 52ch; }

.mix-card { background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: 16px 18px; }
.mix-card h2 { margin: 0 0 10px; font-size: 0.875rem; font-weight: 600; color: var(--ink-2); }
.strip-row { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 10px; align-items: center; margin-bottom: 8px; }
.strip-label { font-size: 0.8125rem; font-weight: 600; }
.strip { display: flex; gap: 2px; height: 28px; }
.strip-part {
  min-width: 0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding-left: 7px;
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  white-space: nowrap;
}
.strip-part.b { background: var(--part-background); color: var(--ink); }
.strip-part.gr { background: var(--series-baseline); color: var(--ink); }
.strip-part.een { background: var(--series-followup); color: #fff; }
.strip-part.other { background: var(--part-other); color: var(--ink-2); }
.strip-part:hover, .strip-part:focus { filter: brightness(0.94); }
.strip-empty { font-size: 0.8125rem; color: var(--muted); }

.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 0.8125rem; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 6px; }
.swatch { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.swatch.tick { height: 2px; width: 16px; border-radius: 0; background: var(--ink); }

.figures {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 18px;
}
.figure { padding: 0 18px; border-left: 1px solid rgba(255, 255, 255, 0.18); }
.figure:first-child { padding-left: 0; border-left: none; }
.figure-value { font-family: var(--display); font-size: 2.25rem; font-weight: 500; line-height: 1.05; }
.figure-label { margin-top: 2px; font-weight: 600; font-size: 0.875rem; }
.figure-detail { font-size: 0.8125rem; color: rgba(255, 255, 255, 0.7); }

/* --------------------------------------------------------------- sections */

.section { margin-top: 36px; }
.section-head { margin-bottom: 12px; }
h2.section-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.lede { margin: 2px 0 0; color: var(--ink-2); max-width: 75ch; }

.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.cols.wide-left { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }

.panel { background: var(--surface); border-radius: var(--radius); padding: 18px 20px; min-width: 0; }
.panel h3 { margin: 0; font-size: 0.9375rem; font-weight: 600; }
.panel .sub { margin: 2px 0 12px; font-size: 0.8125rem; color: var(--muted); }
.panel h3 + .legend, .panel h3 + .meters, .panel h3 + .dumbbells, .panel h3 + .gaps, .panel h3 + .table-scroll { margin-top: 12px; }
.empty-note { color: var(--muted); margin: 10px 0 0; }

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

.chart { display: block; width: 100%; height: auto; overflow: visible; margin-top: 4px; }
.grid-line { stroke: var(--rule); stroke-width: 1; }
.axis-line { stroke: var(--rule-strong); stroke-width: 1; }
.tick-text { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.category-text { fill: var(--ink-2); font-size: 12px; font-weight: 600; }
.bar-hit { fill: transparent; }
.bar-group:hover .bar,
.bar-hit:focus ~ .bar { opacity: 0.8; }
.mark-halo { stroke: var(--surface); stroke-width: 5; }
.mark-tick { stroke: var(--ink); stroke-width: 2; }

.viz-tooltip {
  position: fixed;
  z-index: 20;
  pointer-events: none;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 0.8125rem;
  line-height: 1.4;
  max-width: 300px;
  box-shadow: 0 6px 20px rgba(21, 32, 26, 0.25);
}
.viz-tooltip-title { font-weight: 600; margin-bottom: 3px; }
.viz-tooltip-row { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.viz-tooltip-row strong { font-weight: 600; }
.viz-tooltip-row span:last-child { color: #cdd6d0; }
.viz-key { width: 10px; height: 3px; flex: none; }

/* --------------------------------------------------- meters and dumbbells */

.meters { display: grid; grid-template-columns: max-content minmax(60px, 1fr) max-content; gap: 10px 12px; align-items: center; }
.meter-label { font-weight: 500; }
.meter-value { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--muted); font-size: 0.875rem; }
.meter-value strong { color: var(--ink); font-size: 1rem; font-weight: 600; margin-right: 4px; }
.meter-track { height: 10px; border-radius: 5px; background: var(--track); overflow: hidden; }
.meter-fill { height: 100%; border-radius: 5px; background: var(--series-followup); }
.meter-fill.baseline { background: var(--series-baseline); }
.meters .divider { grid-column: 1 / -1; border-top: 1px solid var(--rule); }

.dumbbells { display: grid; gap: 6px; }
.dumbbell-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 10px; }
.dumbbell-head .meter-label { margin-right: auto; }
.dumbbell-track { position: relative; height: 18px; }
.dumbbell-track::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: var(--track); }
.dumbbell-link { position: absolute; top: 7px; height: 4px; background: var(--rule-strong); }
.dumbbell-dot { position: absolute; top: 2px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; border: 2px solid var(--surface); }
.dumbbell-dot.baseline { background: var(--series-baseline); }
.dumbbell-dot.followup { background: var(--series-followup); }
.dumbbell-values { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink-2); }
.scale-note { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--muted); }

.pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  background: var(--track);
  color: var(--ink-2);
}
.pill.good { background: var(--good-bg); color: var(--good-ink); }
.pill.warn { background: var(--warn-bg); color: var(--warn-ink); }

.gaps { margin: 0; padding: 0; list-style: none; counter-reset: gap; }
.gaps li { display: grid; grid-template-columns: 26px 1fr max-content; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.gaps li:last-child { border-bottom: none; padding-bottom: 0; }
.gaps li::before {
  counter-increment: gap;
  content: counter(gap);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--brand-deep);
  font-weight: 600;
  font-size: 0.8125rem;
  display: grid;
  place-items: center;
}
.gaps .gap-name { font-weight: 500; }
.gaps strong { font-family: var(--display); font-size: 1.25rem; font-weight: 500; }

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

.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
th {
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 10px;
  border-bottom: 1px solid var(--rule-strong);
  vertical-align: bottom;
}
th.group { text-align: left; border-bottom: none; padding-bottom: 0; color: var(--ink-2); }
td { padding: 10px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
td.num { white-space: nowrap; }
tr.total td { font-weight: 600; border-top: 1px solid var(--rule-strong); }
tr.benchmark td { background: var(--page); font-weight: 500; }
tr.clickable:hover td { background: var(--tint); }
td.heat { text-align: right; font-variant-numeric: tabular-nums; }

.row-button {
  border: none;
  background: none;
  padding: 0;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.row-button::after { content: "\203a"; color: var(--brand-deep); font-size: 1.1em; line-height: 1; }
.row-button[aria-expanded="true"]::after { transform: rotate(90deg); }
.row-button:hover { color: var(--brand-deep); }

.shift { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.shift .from { color: var(--muted); }

.cell-meter { display: inline-grid; grid-template-columns: 38px 64px; gap: 8px; align-items: center; font-variant-numeric: tabular-nums; }
.cell-meter .mini-track { height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; }
.cell-meter .mini-fill { display: block; height: 100%; border-radius: 3px; background: var(--brand); }

.chip { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--page); font-size: 0.8125rem; font-weight: 500; white-space: nowrap; }

tr.detail td { background: var(--page); padding: 6px 12px 12px 22px; }
.report-list { margin: 0; padding: 0; list-style: none; }
.report-list li { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 6px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.report-list li:last-child { border-bottom: none; }
.report-list strong { color: var(--ink); min-width: 92px; }
.report-list a { color: var(--brand-deep); font-weight: 600; margin-left: auto; }

details.table-view { margin-top: 10px; }
details.table-view summary,
details.notes summary { cursor: pointer; color: var(--brand-deep); font-weight: 600; font-size: 0.875rem; width: max-content; }
details.table-view[open] summary { margin-bottom: 8px; }
details.notes { margin-top: 36px; }
details.notes dl { margin: 10px 0 0; max-width: 80ch; }
details.notes dt { font-weight: 600; margin-top: 10px; }
details.notes dd { margin: 2px 0 0; color: var(--ink-2); }
details.notes h3 { margin: 16px 0 4px; font-size: 0.9375rem; }
details.notes ul { margin: 4px 0 0; padding-left: 20px; color: var(--ink-2); max-width: 80ch; }

.commentary {
  width: 100%;
  min-height: 120px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--surface);
  resize: vertical;
}
.print-commentary { display: none; white-space: pre-wrap; }

/* ----------------------------------------------------------- small screens */

@media screen and (max-width: 900px) {
  main { padding: 16px 16px 40px; }
  .appbar-inner { padding: 10px 16px; gap: 12px; }
  .appbar-link { margin-left: 0; }
  h1 { font-size: 1.625rem; }
  .story { grid-template-columns: minmax(0, 1fr); padding: 22px 20px; }
  .story-title { font-size: 1.5rem; }
  .figure { padding: 0 12px; }
  .figure-value { font-size: 1.75rem; }
  .cols, .cols.wide-left { grid-template-columns: minmax(0, 1fr); }
  .filter { max-width: none; flex-basis: 45%; }
}

/* ------------------------------------------------------------------ print */

@page {
  size: A4 portrait;
  margin: 11mm 11mm 14mm;
  @bottom-left { content: "In-Call Effectiveness"; font-family: "Inter", "Segoe UI", Arial, sans-serif; font-size: 8pt; color: #6a766f; }
  @bottom-right { content: "Page " counter(page) " of " counter(pages); font-family: "Inter", "Segoe UI", Arial, sans-serif; font-size: 8pt; color: #6a766f; }
}

@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: #fff; font-size: 9.5pt; }
  .no-print, .viz-tooltip { display: none !important; }
  .appbar { border-bottom: 2px solid var(--brand); }
  .appbar-inner, main { max-width: none; padding-left: 0; padding-right: 0; }
  main { padding-top: 10px; padding-bottom: 0; }
  h1 { font-size: 20pt; }
  .crumbs button { color: var(--ink-2); text-decoration: none; }

  /* The band is too much ink on paper: same content, outlined. */
  .story { background: #fff; color: var(--ink); border: 1.5px solid var(--brand-deep); padding: 14px 16px; gap: 12px 20px; }
  .story-eyebrow { color: var(--brand-deep); }
  .story-title { font-size: 16pt; }
  .story-sub, .figure-detail { color: var(--ink-2); }
  .figures, .figure { border-color: var(--rule); }
  .figure-value { font-size: 18pt; }
  .mix-card { border: 1px solid var(--rule); }

  .section { margin-top: 14px; }
  .section-head { break-after: avoid; }
  .panel { border: 1px solid var(--rule); padding: 10px 12px; break-inside: avoid; }
  .panel.long { break-inside: auto; }
  .cols { gap: 8px; }
  tr { break-inside: avoid; }
  thead { display: table-header-group; }
  .row-button::after { content: none; }
  .table-scroll { overflow: visible; }
  details.table-view summary { display: none; }
  .commentary { display: none; }
  .print-commentary { display: block; min-height: 30mm; border: 1px solid var(--rule-strong); border-radius: 6px; padding: 8px 10px; }
  .cell-meter { grid-template-columns: 30px 40px; }
}

.muted { color: var(--muted); }

/* On paper, a panel that prints its table needs the full width; the panel
   beside it moves to its own row. */
@media print {
  .cols { grid-auto-flow: dense; }
  .cols .print-wide { grid-column: 1 / -1; }
  .print-wide .chart { max-height: 62mm; }
}

/* On paper, keep a section's heading with its panels. Sections holding a
   long table are allowed to run over a page break. */
@media print {
  .section-head { break-inside: avoid; }
  .section:not(:has(.panel.long)) { break-inside: avoid; }
}

/* ------------------------------------------------- signed-in person, forms */

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.user-area { display: flex; align-items: center; gap: 14px; font-size: 0.875rem; }
.user-area:empty { display: none; }
.user-area .user-name { color: var(--ink-2); font-weight: 500; }
.user-area a { color: var(--brand-deep); font-weight: 600; text-decoration: none; }
.user-area a:hover { text-decoration: underline; }
.user-area button { border: none; background: none; padding: 0; color: var(--ink-2); font-weight: 600; cursor: pointer; }
.user-area button:hover { color: var(--ink); text-decoration: underline; }
.appbar-link.back { margin-left: 0; margin-right: auto; }

.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field label, fieldset legend { font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); }
.field input, .pick input[type="search"] {
  font: inherit;
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}
.field-help, .form-help { margin: 0; font-size: 0.8125rem; color: var(--muted); }
.form-error { margin: 0 0 12px; padding: 8px 11px; border-radius: 8px; background: var(--warn-bg); color: var(--warn-ink); font-size: 0.875rem; font-weight: 600; }
.button-main:disabled { opacity: 0.6; cursor: default; }

/* ----------------------------------------------------------- sign-in page */

.signin-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.signin { width: 100%; max-width: 400px; background: var(--surface); border-radius: 16px; padding: 32px 30px; }
.signin-logo { height: 64px; width: auto; display: block; margin: 0 0 18px -4px; }
.signin .story-eyebrow { color: var(--brand-deep); margin-bottom: 4px; }
.signin h1 { font-size: 1.75rem; margin: 0 0 4px; }
.signin .lede { margin-bottom: 20px; }
.signin-form .button-main { width: 100%; min-height: 44px; margin-bottom: 14px; }
.signin .flag { margin: 8px 0 0; font-weight: 500; }
.signin .flag a { color: inherit; font-weight: 600; }

/* ------------------------------------------------------------- admin area */

.masthead.with-action { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.section.first { margin-top: 8px; }

#people td { vertical-align: top; }
#people tr.off td { color: var(--muted); }
.person-name { font-weight: 600; }
.row-actions { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: flex-end; }
.link-button { border: none; background: none; padding: 0; color: var(--brand-deep); font-weight: 600; font-size: 0.8125rem; cursor: pointer; white-space: nowrap; }
.link-button:hover { text-decoration: underline; }
.log-panel { margin-top: 12px; }

dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  border: none;
  border-radius: 16px;
  padding: 26px 28px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(21, 32, 26, 0.3);
}
dialog::backdrop { background: rgba(11, 61, 32, 0.45); }
dialog h2 { margin: 0 0 14px; font-family: var(--display); font-size: 1.375rem; font-weight: 600; }
dialog h3 { margin: 0 0 6px; font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); }
dialog .lede { margin: 0 0 14px; }
fieldset { border: none; margin: 0 0 14px; padding: 0; }
fieldset legend { padding: 0; margin-bottom: 6px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 9px 11px; border: 1px solid var(--rule); border-radius: 8px; margin-bottom: 6px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--brand-deep); background: var(--tint); }
.choice input { margin-top: 3px; accent-color: var(--brand-deep); }
.choice span { color: var(--ink-2); font-size: 0.875rem; }
.choice strong { display: block; color: var(--ink); font-size: 0.9375rem; }
.chosen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 10px; }
.pick input[type="search"] { min-height: 36px; padding: 6px 10px; margin-bottom: 6px; }
.checklist { border: 1px solid var(--rule); border-radius: 8px; padding: 6px 10px; max-height: 150px; overflow-y: auto; }
.checklist.tall { max-height: 108px; }
.check { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; font-size: 0.875rem; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--brand-deep); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.secret-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.secret-row code {
  flex: 1;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 1.125rem;
  letter-spacing: 0.04em;
  padding: 11px 14px;
  border-radius: 8px;
  background: var(--page);
  user-select: all;
}

@media screen and (max-width: 600px) {
  .chosen { grid-template-columns: minmax(0, 1fr); }
  dialog { padding: 20px 18px; }
}
