/* Ingrained: the console.
 *
 * The same paper, ink and green as ingrained.dev, from
 * site-assets/ingrained-logo/brand-tokens.css, and the same typefaces, served
 * from here. Where the public site moves, this is still: it is a tool people
 * return to, so the page keeps its shape and only what was acted on changes.
 *
 * A column of sections on the left, in the order people need them: what is
 * waiting for a decision first, then everything the team's agents are told,
 * then who and what can reach it. Settings are switches, changed in place.
 *
 * Green means verified or on. Amber and red exist only as states of an
 * entry: needs review, and held or dangerous.
 */
@font-face { font-family: "Bricolage Grotesque"; src: url(/fonts/bricolage.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/fonts/inter.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url(/fonts/source-serif.woff2) format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Spline Sans Mono"; src: url(/fonts/spline-sans-mono.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --paper: #f4f3f0;
  --sheet: #ffffff;
  --ink: #141516;
  --muted: #6b6b66;
  --rule: #dedcd6;
  --hover: #faf9f7;
  --accent: #2f9a10;
  --verified: #2a7a12;
  --review: #9a5b00;
  --retired: #8a8a84;
  --danger: #a3271f;
  --display: "Bricolage Grotesque", "Inter", "Helvetica Neue", Arial, sans-serif;
  --interface: "Inter", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;   /* what an agent is told: entry statements only */
  --mono: "Spline Sans Mono", "SF Mono", Menlo, Consolas, monospace;   /* what gets run: commands only */
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1012; --sheet: #17191c; --ink: #f4f3f0; --muted: #8a8a84; --rule: #26282c; --hover: #1c1f22;
    --accent: #8cf545; --verified: #8cf545; --review: #e7a53c; --retired: #6f6f6a; --danger: #ff7a6e;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f1012; --sheet: #17191c; --ink: #f4f3f0; --muted: #8a8a84; --rule: #26282c; --hover: #1c1f22;
  --accent: #8cf545; --verified: #8cf545; --review: #e7a53c; --retired: #6f6f6a; --danger: #ff7a6e;
  color-scheme: dark;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 var(--interface);
}

a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: #8cf545; color: #141516; }

h1 { font: 600 clamp(2rem, 4vw, 2.75rem)/1 var(--display); font-stretch: 88%; margin: 0 0 0.75rem; letter-spacing: -0.035em; }
h2 { font: 550 1.2rem/1.25 var(--display); font-stretch: 94%; margin: 0 0 0.6rem; letter-spacing: -0.015em; }
code { font: 0.875em var(--mono); background: var(--paper); border: 1px solid var(--rule); padding: 0.1em 0.4em; border-radius: 5px; }

.lede { color: var(--muted); max-width: 62ch; margin: 0 0 1.25rem; }
.fine { color: var(--muted); font-size: 0.875rem; max-width: 62ch; margin: 0.25rem 0 0; }
.problem { color: var(--danger); font-weight: 500; max-width: 62ch; }
.notice { color: var(--verified); font-weight: 500; max-width: 62ch; }
.problem:empty, .lede:empty, .notice:empty { display: none; }
.empty { color: var(--muted); max-width: 62ch; padding: 2rem 0; }

/* ---- buttons: the primary one is solid ink */
button, .button {
  font: 500 0.9375rem/1 var(--interface);
  padding: 0.7rem 1.05rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--sheet);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.15s, transform 0.15s, opacity 0.15s;
}
button:hover:not(:disabled), .button:hover { border-color: var(--ink); }
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { opacity: 0.45; cursor: default; }
button.primary, .button.primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
button.primary:hover, .button.primary:hover { opacity: 0.86; }
button.danger { background: var(--danger); border-color: var(--danger); color: var(--paper); }
button.quiet { border-color: transparent; background: none; color: var(--muted); padding-inline: 0.6rem; }
button.quiet:hover:not(:disabled) { color: var(--ink); background: var(--hover); border-color: transparent; }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem 0.9rem; align-items: center; margin: 1.25rem 0 0; }

/* ---- a switch: on or off, changed where it is shown */
.switch {
  flex: none; width: 46px; height: 26px; padding: 0; border-radius: 999px; position: relative;
  background: var(--rule); border: 1px solid transparent; transition: background-color 0.2s;
}
.switch::before {
  content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--sheet); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.22s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"]::before { transform: translateX(20px); }
.switch:hover:not(:disabled) { border-color: var(--ink); }
.switch[aria-busy="true"] { opacity: 0.6; }
:root[data-theme="dark"] .switch::before { background: #0f1012; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .switch::before { background: #0f1012; } }
@media (prefers-reduced-motion: reduce) { .switch::before, button, .button { transition: none; } }

.setting { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; padding: 1rem 0; border-top: 1px solid var(--rule); }
.setting-text strong { font-weight: 500; }
.setting-text .fine { margin-top: 0.2rem; }
.card > .setting:last-child { padding-bottom: 0; }

/* ---- the wordmark: the etched mark beside the name, lowercase as on the logo */
.wordmark {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font: 500 1.125rem/1 var(--interface); letter-spacing: -0.01em; text-transform: lowercase;
  text-decoration: none; color: var(--ink); margin: 0 0 2.5rem;
}
.wordmark::before {
  content: ""; width: 1.4rem; height: 1.4rem; background: currentColor;
  -webkit-mask: url(/mark.svg) center / contain no-repeat; mask: url(/mark.svg) center / contain no-repeat;
}

/* ---- signed-out screens */
.door { max-width: 34rem; margin: 12vh auto; padding: 0 1.5rem; }
.door h1 { font-size: clamp(2.2rem, 6vw, 3.25rem); line-height: 0.98; margin-bottom: 1rem; }
.door .button.primary { margin: 0 0.6rem 0.6rem 0; padding: 0.9rem 1.3rem; }
.dev { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); display: grid; gap: 0.4rem; }
.dev .warning { color: var(--review); font-weight: 500; margin: 0 0 0.5rem; }
.dev button { justify-self: start; margin-top: 0.75rem; }

label { font-weight: 500; font-size: 0.9rem; margin-top: 0.75rem; display: block; }
input, textarea {
  font: 1rem/1.4 var(--interface);
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--sheet);
  color: var(--ink);
  width: 100%;
}
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
textarea { font-size: 1.1rem; line-height: 1.5; resize: vertical; }
/* The statement being edited is what agents will be told, so it is in the serif. */
textarea#statement { font: 1.25rem/1.45 var(--serif); }

/* ---- signed in: sections on the left, the work on the right */
.shell { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: 0; align-self: start; height: 100vh;
  display: flex; flex-direction: column; gap: 0.25rem;
  padding: 1.5rem 1rem 1.25rem; border-right: 1px solid var(--rule);
}
.side .wordmark { margin: 0 0.6rem 0.35rem; }
.side .team { margin: 0 0.6rem 1.5rem; color: var(--muted); font-size: 0.9rem; }
.side nav { display: grid; gap: 2px; }
.nav-item {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  padding: 0.55rem 0.7rem; border-radius: 10px; text-decoration: none; color: var(--muted);
}
.nav-item:hover { color: var(--ink); background: var(--hover); }
.nav-item.current { color: var(--ink); background: var(--sheet); box-shadow: inset 0 0 0 1px var(--rule); font-weight: 500; }
.badge {
  min-width: 1.4rem; padding: 0.1rem 0.4rem; border-radius: 999px; text-align: center;
  font: 500 0.75rem/1.3 var(--mono); background: var(--review); color: var(--paper);
}
.side .me { margin-top: auto; display: grid; gap: 0.5rem; padding: 1rem 0.6rem 0; border-top: 1px solid var(--rule); }
.side .who { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .mode { display: flex; align-items: center; justify-content: space-between; margin: 0; font-weight: 400; color: var(--muted); }
.side .me button.quiet { justify-self: start; margin-left: -0.6rem; }

.shell > main { max-width: 56rem; width: 100%; padding: 2.75rem clamp(1rem, 4vw, 3.5rem) 5rem; }

@media (max-width: 52rem) {
  .shell { grid-template-columns: 1fr; }
  .side {
    position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem;
    padding: 0.9rem 1rem 0; border-right: 0; border-bottom: 1px solid var(--rule);
  }
  .side .wordmark, .side .team { margin: 0; }
  .side nav { order: 5; width: 100%; display: flex; gap: 0.25rem; overflow-x: auto; padding-bottom: 0.6rem; scrollbar-width: none; }
  .nav-item { white-space: nowrap; }
  .side .me { margin: 0 0 0 auto; padding: 0; border: 0; display: flex; align-items: center; gap: 0.75rem; }
  .side .who { display: none; }
  .side .mode span { display: none; }
  .shell > main { padding-top: 1.75rem; }
}

/* ---- a section of a screen */
.sections { display: grid; gap: 1.25rem; margin-top: 1.75rem; }
.card { background: var(--sheet); border: 1px solid var(--rule); border-radius: 16px; padding: 1.5rem; }
.card > .lede { margin-bottom: 1rem; }

.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; align-items: center; padding: 0.8rem 0; border-top: 1px solid var(--rule); }
.rows li:last-child { padding-bottom: 0; }
.rows .label { font-weight: 500; }
.rows .detail { color: var(--muted); }
.rows li > :last-child:not(.label):not(.detail), .rows .row-actions { margin-left: auto; }
.rows .revoked { color: var(--muted); }
.rows .revoked .label { font-weight: 400; text-decoration: line-through; text-decoration-thickness: 1px; }
.rows .empty { padding: 0.9rem 0 0; display: block; }
.row-actions { display: flex; gap: 0.4rem; }
.invite-link { word-break: break-all; margin: 0.9rem 0 0; }
.invite-link:empty { display: none; }
.invite-link code { display: block; padding: 0.7rem 0.85rem; margin-bottom: 0.4rem; border-radius: 10px; }

.search { display: flex; gap: 0.5rem; margin: 1.25rem 0 1.5rem; }
.search input { flex: 1; border-radius: 8px; padding-inline: 1rem; }

.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0 0 1rem; }
.chips .fine { margin: 0 0 0 auto; }
.chip { padding: 0.4rem 0.8rem; border-radius: 6px; border: 1px solid var(--rule); text-decoration: none; font-size: 0.875rem; color: var(--muted); }
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip.current { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.status.wait i { background: var(--review); box-shadow: 0 0 0 4px color-mix(in srgb, var(--review) 20%, transparent); }
.status + .share, h1 + .share { margin-top: 0.75rem; }
.share + .search, .status + .search { margin-top: 1.5rem; }
.card.first { margin-top: 1.5rem; }
.nav-gap { display: block; height: 0.9rem; }
@media (max-width: 52rem) { .nav-gap { display: none; } }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 1.25rem; }
.pager .fine { margin: 0 auto 0 0; }
.pager .off { opacity: 0.4; cursor: default; }
.pager .off:hover { border-color: var(--rule); }
.fine.count { margin: -0.5rem 0 1rem; }

/* ---- the ledger */
.ledger { list-style: none; margin: 0; padding: 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; }
.row + .row { border-top: 1px solid var(--rule); }
.row a { display: block; padding: 1.05rem 1.35rem; text-decoration: none; transition: background-color 0.12s; }
.row a:hover { background: var(--hover); }
.row .statement { display: block; }
/* What agents are told: the serif, here and wherever a statement appears. */
.statement { font: 1.1875rem/1.42 var(--serif); }
.meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin-top: 0.4rem; color: var(--muted); font-size: 0.875rem; }
/* An entry's state is a mark and a word, in the state's colour. The mark is
   a small slab, the logo's own shape. It is empty until the entry is
   verified, then fills with the green in five steps as the number of
   sessions it has worked in grows. Needing review is an amber disc and held
   is a red diamond, so the three differ in shape as well as colour. */
.state { font-weight: 500; display: inline-flex; align-items: center; gap: 0.45rem; }
.mark { flex: none; display: inline-block; width: 10px; height: 10px; border-radius: 3px; border: 1.25px solid currentColor; background: transparent; }
.mark[data-step="1"] { background: color-mix(in srgb, var(--accent) 22%, var(--sheet)); }
.mark[data-step="2"] { background: color-mix(in srgb, var(--accent) 42%, var(--sheet)); }
.mark[data-step="3"] { background: color-mix(in srgb, var(--accent) 62%, var(--sheet)); }
.mark[data-step="4"] { background: color-mix(in srgb, var(--accent) 82%, var(--sheet)); }
.mark[data-step="5"] { background: var(--accent); border-color: var(--accent); }
.state-active .state { color: var(--verified); }
.state-needs_recheck .state { color: var(--review); }
.state-needs_recheck .mark { background: var(--review); border-color: var(--review); border-radius: 50%; }
.state-retired .state { color: var(--retired); }
.state-retired .mark { background: transparent; }
.state.is-held { color: var(--danger); }
.mark.held, .state-retired .mark.held { background: transparent; border: 2px solid var(--danger); border-radius: 0; transform: rotate(45deg) scale(0.8); }
.meter { display: inline-flex; gap: 3px; margin-left: 0.9rem; vertical-align: middle; }
.meter i { display: block; width: 14px; height: 5px; border-radius: 1.5px; background: var(--rule); }
.meter i.on { background: var(--accent); }
.state-retired .statement { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--retired); text-decoration-thickness: 1px; }

/* An entry not yet given to the team. A held one is for a person to decide,
   so it takes the danger colour whatever its state. */
.audience { font-weight: 500; }
.row.held .audience { color: var(--danger); }
.held-list { margin: 1.75rem 0 2.5rem; }
.held-list + h2 { margin-top: 2.5rem; }
.held-notice { max-width: 62ch; margin: 0 0 1.5rem; padding: 0.9rem 1.1rem; border: 1px solid color-mix(in srgb, var(--danger) 45%, var(--rule)); background: color-mix(in srgb, var(--danger) 6%, var(--sheet)); border-radius: 12px; }
.held-notice strong { color: var(--danger); }

/* ---- one entry */
.back { display: inline-block; color: var(--muted); font-size: 0.9rem; margin-bottom: 1.5rem; text-decoration-color: var(--rule); }
.statement.big { font: 400 clamp(1.6rem, 3vw, 2.125rem)/1.24 var(--serif); letter-spacing: -0.01em; margin: 0 0 1rem; max-width: 30ch; }
.steps { margin: 0 0 1.5rem; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.55rem 1.75rem; margin: 1.5rem 0; padding: 1.4rem 1.5rem; background: var(--sheet); border: 1px solid var(--rule); border-radius: 16px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.anchor { display: block; }
.confirm-retire { padding: 1rem 1.25rem; border: 1px solid color-mix(in srgb, var(--danger) 45%, var(--rule)); background: color-mix(in srgb, var(--danger) 6%, var(--sheet)); border-radius: 12px; margin: 1.25rem 0 1.5rem; }
.confirm-retire p { margin: 0 0 0.75rem; }
.edit { max-width: 40rem; }

.history { margin-top: 2.75rem; }
.history h2 { margin-top: 2rem; }
.history ol { list-style: none; margin: 0; padding: 0; }
.history li { display: grid; grid-template-columns: 12rem 1fr; gap: 1rem; padding: 0.55rem 0; border-top: 1px solid var(--rule); }
.history time { color: var(--muted); font-size: 0.875rem; padding-top: 0.15rem; }

@media (max-width: 40rem) {
  .history li { grid-template-columns: 1fr; gap: 0; }
  .facts { grid-template-columns: 1fr; gap: 0.1rem; }
  .facts dd { margin-bottom: 0.75rem; }
  .setting { gap: 1rem; }
}

/* ---- choosing a team */
.choices { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.choices button { width: 100%; text-align: left; padding: 1rem 1.1rem; font-size: 1.05rem; border-radius: 12px; }

/* ---- figures: a number with a name. Pointing at one, or reaching it with
   the keyboard, shows a line that says what it means. */
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin: 0.9rem 0 0.25rem; }
.figures.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.figures.second { margin-top: 1.5rem; padding-top: 1.4rem; border-top: 1px solid var(--rule); }
@media (max-width: 44rem) { .figures, .figures.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.figure { position: relative; display: grid; gap: 0.3rem; align-content: start; border-radius: 8px; }
.figure strong { font: 600 2.5rem/1 var(--display); font-stretch: 88%; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.figure strong a { text-decoration: none; }
.figure strong a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.figures.second .figure strong { font-size: 1.75rem; }
.figure-label { color: var(--muted); font-size: 0.875rem; }
.figure.has-tip:not(:has(a)) { cursor: help; }
.tip {
  position: absolute; z-index: 20; top: calc(100% + 8px); left: 0;
  width: max-content; max-width: min(17rem, 70vw); padding: 0.6rem 0.75rem; border-radius: 10px;
  background: var(--ink); color: var(--paper); font: 400 0.8125rem/1.4 var(--interface); letter-spacing: 0; text-align: left;
  opacity: 0; pointer-events: none; transform: translateY(-4px); transition: opacity 0.15s, transform 0.15s;
}
.figure:hover .tip, .figure:focus-visible .tip, .figure:focus-within .tip { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .tip { transition: none; } }

/* ---- a bar split into named parts */
.share { margin-top: 1.4rem; }
.share-bar { display: flex; gap: 3px; height: 12px; border-radius: 999px; overflow: hidden; background: var(--rule); }
.share-bar i { display: block; min-width: 6px; }
.share-key { list-style: none; margin: 0.8rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; font-size: 0.875rem; color: var(--muted); }
.share-key li { display: inline-flex; align-items: center; gap: 0.45rem; }
.share-key i { width: 9px; height: 9px; border-radius: 50%; }
.share-key b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.share .ok { background: var(--accent); }
.share .person { background: var(--ink); }
.share .new { background: var(--retired); }
.share .wait { background: var(--review); }

/* ---- overview */
.attention { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.attention > div { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: baseline; }
.attention .count { font: 600 3.25rem/0.9 var(--display); font-stretch: 88%; letter-spacing: -0.04em; grid-row: span 2; color: var(--review); }
.attention h2 { margin: 0; }
.attention .fine { grid-column: 2; }
/* How things stand, in one line: a dot and a sentence, not a box. */
.status { display: flex; align-items: baseline; gap: 0.75rem; padding: 0.25rem 0.1rem; }
.status i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--retired); transform: translateY(-1px); }
.status.ok i { background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
.status p { margin: 0; max-width: 62ch; }
.status strong { font-weight: 500; }
.status span { color: var(--muted); }
h2.loose { margin: 0.75rem 0 0.75rem; }
.checklist { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.checklist li { display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.75rem; padding: 0.9rem 0; border-top: 1px solid var(--rule); }
.checklist li:last-child { padding-bottom: 0; }
.checklist strong { font-weight: 500; }
.checklist .fine { margin-top: 0.25rem; }
.checklist .check { width: 1.35rem; height: 1.35rem; border-radius: 50%; border: 1.5px solid var(--rule); margin-top: 0.1rem; position: relative; }
.checklist .done .check { background: var(--accent); border-color: var(--accent); }
.checklist .done .check::after { content: ""; position: absolute; left: 0.42rem; top: 0.2rem; width: 0.3rem; height: 0.6rem; border: solid var(--sheet); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.checklist .done strong { color: var(--muted); }

/* ---- sign-in providers */
.provider-icon { width: 1.15rem; height: 1.15rem; flex: none; }
.button.provider { display: inline-flex; align-items: center; gap: 0.6rem; }
.providers { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.5rem 0 0.9rem; }
.providers .button { padding: 0.85rem 1.2rem; }
.with-icon { display: inline-flex; align-items: center; gap: 0.55rem; }

/* ---- impact */
.headline { font: 550 clamp(1.5rem, 3.2vw, 2.25rem)/1.15 var(--display); font-stretch: 92%; letter-spacing: -0.03em; max-width: 26ch; margin: 0 0 0.5rem; text-wrap: balance; }
.footnote { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--rule); max-width: none; }
.state.proved { color: var(--verified); }
.weeks { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0.6rem; align-items: end; height: 9.5rem; margin: 1rem 0 0.4rem; }
.week { display: grid; grid-template-rows: 1.2rem 1fr 1.2rem; height: 100%; gap: 0.3rem; text-align: center; min-width: 0; }
.week .n { font: 500 0.8125rem/1.2rem var(--mono); color: var(--ink); }
.week .d { font-size: 0.75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.week .col { display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; border-bottom: 1px solid var(--rule); }
.week .col i { display: block; border-radius: 4px 4px 0 0; min-height: 0; }
.week .col i + i { border-radius: 0; }
.week .ok { background: var(--accent); }
.week .new { background: var(--retired); }
.card .share-key { margin-top: 0.9rem; }
.share-key .ok { background: var(--accent); }
.share-key .new { background: var(--retired); }
.share-key .person { background: var(--ink); }
.share-key .wait { background: var(--review); }
details.admin > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1rem; }
details.admin > summary::-webkit-details-marker { display: none; }
details.admin > summary h2 { margin: 0; }
details.admin > summary h2::after { content: ""; display: inline-block; width: 0.45rem; height: 0.45rem; margin-left: 0.6rem; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-3px); transition: transform 0.15s; }
details.admin[open] > summary h2::after { transform: rotate(-135deg) translateY(-2px); }
details.admin[open] > summary { margin-bottom: 1.25rem; }
details.admin h3 { font: 500 1rem/1.3 var(--interface); margin: 1.75rem 0 0.4rem; }
details.admin .export { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
details.admin .export .fine { margin: 0; }

/* ---- usage */
/* ---- usage */
.verdict { font: 500 1.125rem/1.4 var(--interface); letter-spacing: -0.01em; max-width: 48ch; margin: 0.25rem 0 0; }
.export { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.export h2 { margin: 0; display: inline-flex; align-items: center; }
.facts .source { word-break: break-all; }
