/* Kinesis Roles. Kinesis paper edition: cream ground, ink edges, hard offset shadows, highlighter type.
   Fonts are served from ./fonts (no network). Tokens match the Kinesis decision shell. */
@font-face { font-family: 'Public Sans'; font-weight: 400; font-display: swap; src: url('fonts/PublicSans-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Public Sans'; font-weight: 400; font-display: swap; src: url('fonts/PublicSans-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Public Sans'; font-weight: 600; font-display: swap; src: url('fonts/PublicSans-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Public Sans'; font-weight: 700; font-display: swap; src: url('fonts/PublicSans-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo Black'; font-weight: 400; font-display: swap; src: url('fonts/ArchivoBlack-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo Black'; font-weight: 400; font-display: swap; src: url('fonts/ArchivoBlack-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Patrick Hand'; font-weight: 400; font-display: swap; src: url('fonts/PatrickHand-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Kinesis Paper from the shared tokens (tokens.css, generated from ~/Design/verseui-ds; never edit that copy).
     --ink, --ink-soft, --paper, --yellow and --magenta come from it under their own names. */
  --cream: var(--paper-raised);
  --sand: var(--paper-sunk);
  --red: var(--error);
  --green: var(--success);
  --muted: var(--ink-muted);
  --link: var(--cyan-ink);
  --link-hover: var(--magenta-ink);
  --display: var(--font-display);
  --body: var(--font-sans);
  --hand: var(--font-hand);
  --shadow: var(--plate-xl);
  --shadow-sm: var(--plate);
  /* Roles' own, with no token yet. --cyan and --sage are Roles' highlighters, lighter than the tokens' process cyan
     and module sage, so they stay here and win over tokens.css. */
  --cyan: #75C9ED;
  --sage: #B5D7B3;
  --orange: #FF9F45;
  --done: #49A86A;
  --rule: #b9b29c;
  --on-accent: #131313;
  --frost: rgba(255, 253, 246, .86);
}
@media (prefers-color-scheme: dark) {
  [data-theme="auto"] {
    --cyan: #5BB8E0;
    --sage: #5d8a5f;
    --orange: #E8873A;
    --done: #3f9a5e;
    --rule: #4a4435;
    --frost: rgba(32, 29, 23, .9);
  }
  .hl, .hl.cyan, .hl.magenta { background: var(--yellow); color: #131313; padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; text-shadow: none; }
  .hl.cyan { background: var(--cyan); }
  .hl.sage { background: var(--sage); color: #fff; }
  .hl.orange { background: var(--orange); }
  .hl.magenta { background: var(--magenta); color: #fff; }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink);
  font: 400 16px/1.5 var(--body); overflow-wrap: break-word; isolation: isolate;
}
::selection { background: var(--yellow); color: var(--on-accent); }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--link-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul, ol { padding-left: 1.2em; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Ambient paper: drifting shapes and a halftone floor. Never takes pointer input. */
body::before, body::after { content: ""; position: fixed; z-index: -1; pointer-events: none; }
body::before {
  inset: -40px;
  background:
    radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--cyan) 42%, transparent) 0 120px, transparent 121px),
    radial-gradient(circle at 12% 86%, color-mix(in srgb, var(--sage) 50%, transparent) 0 170px, transparent 171px),
    linear-gradient(118deg, transparent 72%, color-mix(in srgb, var(--yellow) 26%, transparent) 72% 80%, transparent 80%);
  animation: drift 26s ease-in-out infinite alternate;
}
body::after {
  inset: 58% 0 0;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 16%, transparent) .9px, transparent 1.1px);
  background-size: 7px 7px;
  mask-image: linear-gradient(transparent, #000 70%);
}
@keyframes drift { to { transform: translate3d(22px, -26px, 0) rotate(1.5deg); } }

/* ------------------------------------------------------------------ type */
.display {
  font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: -.02em; line-height: .98;
  text-shadow: 2px 2px 0 var(--cream), 4px 4px 0 var(--ink);
}
.hl { background: linear-gradient(transparent 56%, var(--yellow) 56% 92%, transparent 92%); color: inherit; padding: 0 .08em; }
.hl.magenta { background: linear-gradient(transparent 56%, color-mix(in srgb, var(--magenta) 55%, var(--cream)) 56% 92%, transparent 92%); }
.hl.cyan { background: linear-gradient(transparent 56%, var(--cyan) 56% 92%, transparent 92%); }
.hl.sage { background: linear-gradient(transparent 56%, var(--sage) 56% 92%, transparent 92%); }
.hl.orange { background: linear-gradient(transparent 56%, var(--orange) 56% 92%, transparent 92%); }
h2.section { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 22px; letter-spacing: -.01em; line-height: 1.1; margin: 36px 0 14px; }
h3 { font-size: 17px; font-weight: 700; line-height: 1.3; }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.45; }
.tiny { font-size: 12.5px; line-height: 1.4; }
.hand { font-family: var(--hand); font-size: 1.25em; line-height: 1.1; }
.measure { max-width: 68ch; }

/* ------------------------------------------------------------------ chrome */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 10px max(16px, env(safe-area-inset-left)); background: var(--frost); backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--ink);
}
.brand { font-family: var(--display); text-transform: uppercase; font-size: 20px; letter-spacing: -.02em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand b { color: var(--magenta); font-weight: 400; }
.brand span { font-family: var(--body); font-weight: 700; text-transform: none; font-size: 14px; letter-spacing: 0; margin-left: 6px; color: var(--muted); }
.topbar .spacer { flex: 1; }
.viewing { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.me-chip { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
@media (max-width: 699px) {
  .topbar { position: static; gap: 10px; }
  .topbar .spacer { display: none; }
  .brand { flex: 1; }
  .viewing { order: 5; width: 100%; flex-wrap: nowrap; overflow-x: auto; padding: 2px 4px 6px 0; scrollbar-width: none; }
  .viewing::-webkit-scrollbar { display: none; }
  .viewing .btn { flex: none; }
}

.shell { display: grid; grid-template-columns: 1fr; min-height: calc(100vh - 60px); }
.rail {
  display: flex; gap: 6px; overflow-x: auto; padding: 10px 16px; border-bottom: 2px solid var(--ink);
  background: color-mix(in srgb, var(--paper) 92%, transparent); scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail a {
  flex: none; display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 7px 12px; border: 2px solid transparent;
  color: var(--muted); font-weight: 700; text-decoration: none; white-space: nowrap;
}
.rail a:hover { color: var(--ink); border-color: var(--ink); background: var(--cream); }
.rail a[aria-current="page"] { background: var(--yellow); color: var(--on-accent); border-color: var(--ink); box-shadow: var(--shadow-sm); }
.rail .count { min-width: 20px; height: 20px; padding: 0 5px; display: inline-grid; place-items: center; font-size: 12px; background: var(--red); color: #fff; border: 1.5px solid var(--ink); }
.main { min-width: 0; padding: 22px 16px 80px; }
@media (min-width: 980px) {
  .shell { grid-template-columns: 220px minmax(0, 1fr); }
  .rail { flex-direction: column; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 26px 12px 26px 16px; border-bottom: 0; border-right: 2px solid var(--ink); position: sticky; top: var(--topbar, 60px); align-self: start; height: calc(100vh - var(--topbar, 60px)); height: calc(100dvh - var(--topbar, 60px)); }
  .main { padding: 30px 32px 96px; }
}
.page { max-width: 1240px; }
.cols { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1240px) { .cols { grid-template-columns: minmax(0, 1fr) 320px; } .cols .side { position: sticky; top: 84px; } }

/* ------------------------------------------------------------------ surfaces */
.card { background: var(--cream); border: 2px solid var(--ink); border-radius: 2px; box-shadow: var(--shadow); padding: 20px; }
.card + .card { margin-top: 22px; }
:is(.grid2, .grid3) > .card { margin-top: 0; }
.card.flat { box-shadow: none; }
.card.inverse { background: var(--ink); color: var(--paper); }
.card.inverse .muted { color: color-mix(in srgb, var(--paper) 75%, var(--ink)); }
.card.inverse > h2.section { margin-top: 0; color: var(--yellow); }
/* In dark the inverted card turns cream, so its heading becomes a highlighter label, as .hl does in dark. */
@media (prefers-color-scheme: dark) { .card.inverse > h2.section { display: inline-block; padding: 2px 6px; color: #131313; background: var(--yellow); } }
.stack > * + * { margin-top: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grid2 { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.grid3 { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
hr.rule { border: 0; border-top: 1.5px dashed var(--rule); margin: 18px 0; }

/* Frosted legend with ink header and perimeter dots (the tally rail). */
.legend { background: var(--frost); border: 2px solid var(--ink); box-shadow: var(--shadow); position: relative; }
.legend::before { content: ""; position: absolute; inset: 5px; pointer-events: none; background:
  radial-gradient(circle, var(--ink) 1.2px, transparent 1.6px) top / 9px 9px repeat-x,
  radial-gradient(circle, var(--ink) 1.2px, transparent 1.6px) bottom / 9px 9px repeat-x; opacity: .35; }
.legend > header { background: var(--ink); color: var(--paper); padding: 9px 14px; font-family: var(--display); text-transform: uppercase; font-size: 15px; letter-spacing: .01em; }
.legend > .body { padding: 14px 16px 18px; }
.legend .body > * + * { margin-top: 16px; }
.stat { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.stat b { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1; }

/* ------------------------------------------------------------------ hero */
.hero { display: grid; gap: 18px; margin-bottom: 26px; container-type: inline-size; }
.hero h1 { font-size: clamp(30px, 9.6vw, 96px); font-size: clamp(30px, 9cqi, 96px); }
.who { font-family: var(--display); text-transform: uppercase; font-size: clamp(18px, 3vw, 26px); letter-spacing: -.01em; }
.hero-row { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .hero-row { grid-template-columns: auto minmax(0, 1fr); align-items: stretch; } }
.now-plate { background: var(--red); color: #fff; border: 2px solid var(--ink); box-shadow: var(--shadow); padding: 12px 16px; min-width: 210px; }
.now-plate .label { font-family: var(--display); text-transform: uppercase; font-size: 28px; line-height: 1; text-shadow: 2px 2px 0 var(--ink); }
.now-plate p { font-weight: 700; margin-top: 6px; }
.phase-banner { background: var(--cream); border: 2px solid var(--ink); box-shadow: var(--shadow); padding: 12px 16px; border-left: 12px solid var(--accent, var(--yellow)); }
.phase-banner h3 { font-size: 18px; }
.weeknav { display: flex; align-items: center; gap: 6px; }
.weeknav .range { font-weight: 700; padding: 0 6px; white-space: nowrap; }

/* ------------------------------------------------------------------ controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 7px 14px;
  border: 2px solid var(--ink); border-radius: 1px; background: var(--cream); color: var(--ink); font-weight: 700; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: transform 90ms steps(2), box-shadow 90ms steps(2); text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--yellow); color: var(--on-accent); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { cursor: not-allowed; opacity: .55; transform: none; box-shadow: none; background: var(--sand); }
.btn.primary { background: var(--yellow); color: var(--on-accent); }
.btn.danger:hover { background: var(--red); color: #fff; }
.btn.small { min-height: 32px; padding: 3px 10px; font-size: 14px; box-shadow: 2px 2px 0 var(--ink); }
.btn.icon { min-width: 40px; padding: 7px 10px; }
.btn.ghost { box-shadow: none; border-color: transparent; background: transparent; }
.btn.ghost:hover { border-color: var(--ink); background: var(--cream); box-shadow: none; transform: none; }
.seg { display: inline-flex; flex-wrap: wrap; border: 2px solid var(--ink); box-shadow: var(--shadow-sm); background: var(--cream); }
.seg button { border: 0; border-right: 2px solid var(--ink); background: transparent; padding: 6px 12px; font-weight: 700; font-size: 14px; cursor: pointer; min-height: 36px; }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--yellow); color: var(--on-accent); }
.seg button[data-s="done"][aria-pressed="true"] { background: var(--done); color: #fff; }
.seg button[data-s="blocked"][aria-pressed="true"] { background: var(--red); color: #fff; }
.seg button:hover:not([aria-pressed="true"]) { background: var(--sand); }
.seg button:disabled { cursor: not-allowed; opacity: .5; }

label.field { display: grid; gap: 5px; font-weight: 700; font-size: 14px; }
label.field > span.hint { font-weight: 400; color: var(--muted); }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  width: 100%; min-height: 40px; padding: 8px 10px; background: var(--cream); border: 2px solid var(--ink); border-radius: 1px; font-size: 16px; font-weight: 400;
}
textarea { min-height: 84px; resize: vertical; line-height: 1.45; }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; accent-color: var(--ink); margin: 0; flex: none; }
input:disabled, select:disabled, textarea:disabled { background: var(--sand); color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.form-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid .wide { grid-column: 1 / -1; } }

/* ------------------------------------------------------------------ chips, pips */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px; border: 2px solid var(--ink); border-radius: 999px; background: var(--cream); font-weight: 700; font-size: 12.5px; line-height: 1.5; white-space: nowrap; }
.pill.SOP { background: var(--cyan); color: var(--on-accent); }
.pill.KPI { background: var(--sage); color: var(--on-accent); }
.pill.OPS { background: var(--yellow); color: var(--on-accent); }
.pill.ROLE { background: color-mix(in srgb, var(--magenta) 28%, var(--cream)); }
.pill.red { background: var(--red); color: #fff; }
.pill.green { background: var(--done); color: #fff; }
.pill.yellow { background: var(--yellow); color: var(--on-accent); }
.pill.ink { background: var(--ink); color: var(--paper); }
.pill.soft { border-width: 1.5px; font-weight: 600; background: transparent; }
.pip { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--ink); background: var(--cream); flex: none; vertical-align: -2px; }
.pip.doing, .pip.warn { background: var(--yellow); }
.pip.blocked, .pip.bad, .pip.late { background: var(--red); }
.pip.done, .pip.good { background: var(--done); }
.pip.excused { background: repeating-linear-gradient(45deg, var(--sand) 0 3px, var(--rule) 3px 5px); }
.pip.none { background: transparent; border-style: dashed; }
.pips { display: flex; flex-wrap: wrap; gap: 4px; }
.accent-yellow { --accent: var(--yellow); }
.accent-magenta { --accent: var(--magenta); }
.accent-cyan { --accent: var(--cyan); }
.accent-ink { --accent: var(--ink); }
.accent-sage { --accent: var(--sage); }
.accent-orange { --accent: var(--orange); }
.avatar { width: 30px; height: 30px; display: inline-grid; place-items: center; border: 2px solid var(--ink); background: var(--accent); color: var(--on-accent); font-family: var(--display); font-size: 14px; flex: none; }
.accent-magenta .avatar, .avatar.accent-magenta { color: #fff; }
.accent-ink .avatar, .avatar.accent-ink { color: var(--paper); }

/* ------------------------------------------------------------------ requirement feed */
.day { margin-top: 26px; }
.day:first-child { margin-top: 0; }
.day > h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 16px; }
.day > h3::after { content: ""; flex: 1; border-top: 2px dotted var(--rule); }
.req { position: relative; background: var(--cream); border: 2px solid var(--ink); box-shadow: var(--shadow-sm); padding-left: 12px; }
.req + .req { margin-top: 12px; }
.req::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: var(--cream); border-right: 2px solid var(--ink); }
.req[data-s="doing"]::before { background: var(--yellow); }
.req[data-s="blocked"]::before { background: var(--red); }
.req[data-s="done"]::before { background: var(--done); }
.req[data-s="excused"]::before { background: repeating-linear-gradient(45deg, var(--sand) 0 4px, var(--rule) 4px 7px); }
.req[data-s="done"] .req-title { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: color-mix(in srgb, var(--ink) 45%, transparent); }
.req > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 12px 14px; align-items: start; }
.req > summary::-webkit-details-marker { display: none; }
.req-title { font-weight: 700; font-size: 16.5px; line-height: 1.3; }
.req-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; align-items: center; }
.req-side { display: flex; align-items: center; gap: 8px; }
.req-body { padding: 4px 16px 16px 14px; border-top: 1.5px dashed var(--rule); }
.req-body > * + * { margin-top: 12px; }
.dod { background: color-mix(in srgb, var(--yellow) 18%, var(--cream)); border-left: 5px solid var(--ink); padding: 8px 12px; margin-top: 12px; }
.chev { width: 26px; height: 26px; display: grid; place-items: center; border: 2px solid var(--ink); font-weight: 700; transition: transform 120ms; }
details[open] > summary .chev { transform: rotate(90deg); }

/* ------------------------------------------------------------------ tables, lists */
.table-wrap { overflow-x: auto; border: 2px solid var(--ink); box-shadow: var(--shadow); background: var(--cream); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; background: var(--sand); font-size: 13px; font-weight: 700; padding: 9px 12px; border-bottom: 2px solid var(--ink); white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td input { min-width: 90px; }
.spark { display: inline-flex; gap: 2px; align-items: flex-end; height: 26px; }
.spark i { display: block; width: 7px; background: var(--ink); min-height: 2px; }
.spark i.good { background: var(--done); } .spark i.warn { background: var(--yellow); outline: 1px solid var(--ink); } .spark i.bad { background: var(--red); } .spark i.none { background: transparent; border-bottom: 2px dotted var(--rule); }

/* Team on-time completion (the team's headline KPI): a big number marked underneath in its status colour, and one
   bar per person with the target dashed across them all. */
.ontime { margin-bottom: 26px; }
.ontime-grid { display: grid; gap: 18px 32px; grid-template-columns: minmax(0, 1fr); margin-top: 14px; }
@media (min-width: 760px) { .ontime-grid { grid-template-columns: minmax(200px, auto) minmax(0, 1fr); align-items: center; } }
.ot-num { font-family: var(--display); font-size: clamp(60px, 11vw, 92px); line-height: 1; letter-spacing: -.03em; }
.ot-num span { box-shadow: inset 0 -.14em 0 var(--status, transparent); }
.ot-num.good { --status: var(--done); } .ot-num.warn { --status: var(--yellow); } .ot-num.bad { --status: var(--red); }
.ot-num.none { font-size: 28px; color: var(--muted); }
.ot-bars { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content; gap: 10px 12px; align-items: center; }
.ot-name { font-weight: 700; font-size: 14px; }
.ot-track { position: relative; height: 18px; border: 2px solid var(--ink); background: var(--paper); }
.ot-track > i { display: block; height: 100%; background: var(--accent, var(--ink)); border-right: 2px solid var(--ink); }
.ot-track::after { content: ""; position: absolute; top: -6px; bottom: -6px; left: var(--target); border-left: 2px dashed var(--ink); }
.ot-track.none { border-style: dashed; border-color: var(--rule); }
.ot-count { font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; text-align: right; }

.rowcard { background: var(--cream); border: 2px solid var(--ink); box-shadow: var(--shadow-sm); }
.rowcard + .rowcard { margin-top: 10px; }
.rowcard > summary { list-style: none; cursor: pointer; padding: 11px 14px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.rowcard > summary::-webkit-details-marker { display: none; }
.rowcard > .edit { padding: 14px; border-top: 1.5px dashed var(--rule); }
.rowcard.archived { opacity: .6; }
.rowcard .title { font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; align-items: center; }
.filters button { border: 2px solid var(--ink); border-radius: 999px; background: var(--cream); padding: 3px 12px; font-weight: 700; font-size: 14px; cursor: pointer; min-height: 32px; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.empty { border: 2px dashed var(--ink); padding: 18px; background: color-mix(in srgb, var(--cream) 70%, transparent); }
.score-badge { font-family: var(--display); font-size: 20px; min-width: 52px; text-align: center; padding: 4px 6px; border: 2px solid var(--ink); background: var(--yellow); color: var(--on-accent); }
.score-badge.none { background: var(--sand); color: var(--muted); font-size: 14px; }

/* ------------------------------------------------------------------ plan */
.phase { border: 2px solid var(--ink); box-shadow: var(--shadow); background: var(--cream); }
.phase + .phase { margin-top: 22px; }
.phase > header { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 14px 16px; border-bottom: 2px solid var(--ink); background: color-mix(in srgb, var(--accent) 22%, var(--cream)); }
.phase.current > header { background: var(--accent); color: var(--on-accent); }
.accent-magenta .phase.current > header, .accent-ink .phase.current > header { color: var(--paper); }
.accent-magenta .phase.current > header { color: #fff; }
.phase .num { font-family: var(--display); font-size: 40px; line-height: .9; }
.phase .weeks { display: grid; grid-template-columns: minmax(0, 1fr); }
.phase .wk { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.phase .wk:last-child { border-bottom: 0; }
.phase .wk.now { background: color-mix(in srgb, var(--red) 9%, var(--cream)); }
.phase .wk .wn { font-family: var(--display); text-transform: uppercase; font-size: 14px; }
.phase .wk ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.phase .wk li { display: flex; gap: 8px; align-items: flex-start; }

/* ------------------------------------------------------------------ ladder */
.ladder { display: grid; gap: 6px; }
.rung { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px 8px; border: 2px solid transparent; }
.rung .n { width: 28px; height: 28px; display: grid; place-items: center; border: 2px solid var(--ink); font-family: var(--display); font-size: 13px; background: var(--cream); }
.rung.on { border-color: var(--ink); background: var(--yellow); color: var(--on-accent); box-shadow: var(--shadow-sm); }
.rung.on.l2, .rung.on.l3 { background: var(--red); color: #fff; }
.rung.on .n { background: var(--ink); color: var(--paper); }

/* ------------------------------------------------------------------ Ideal Week */
.iw-wrap { box-shadow: var(--shadow); }
.iw-grid { display: grid; grid-template-columns: 34px repeat(7, minmax(92px, 1fr)); grid-template-rows: 32px repeat(34, 22px); min-width: 720px; position: relative; background: var(--cream); }
.iw-head { grid-row: 1; display: grid; place-items: center; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-bottom: 2px solid var(--ink); background: var(--sand); }
.iw-line { grid-column: 1 / -1; border-top: 1px solid var(--rule); }
.iw-line.half { border-top-style: dotted; opacity: .6; }
.iw-hour { grid-column: 1; font-size: 11px; color: var(--muted); padding: 2px 6px 0 0; text-align: right; }
.iw-block { margin: 1px 2px; padding: 2px 6px; border: 2px solid var(--ink); font-size: 12px; font-weight: 700; line-height: 1.2; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; z-index: 1; }
.k-ritual { background: var(--sage); color: var(--on-accent); }
.k-focus { background: var(--yellow); color: var(--on-accent); }
.k-meet { background: var(--cyan); color: var(--on-accent); }
.k-admin { background: var(--sand); }
.k-personal { background: color-mix(in srgb, var(--magenta) 30%, var(--cream)); }
.k-rest { background: color-mix(in srgb, var(--sage) 45%, var(--cream)); }
.iw-key { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--ink); vertical-align: -2px; }

/* ------------------------------------------------------------------ letter */
.letter { max-width: 760px; margin: 0 auto; background: var(--cream); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); padding: clamp(22px, 5vw, 56px); position: relative; }
.letter::after { content: ""; position: absolute; right: 18px; bottom: 18px; width: 64px; height: 64px; background: radial-gradient(circle, var(--magenta) 2px, transparent 2.4px) 0 0 / 8px 8px; opacity: .55; pointer-events: none; }
.letter .company { font-family: var(--display); text-transform: uppercase; font-size: 28px; }
.letter .company b { color: var(--magenta); font-weight: 400; }
.letter h1 { font-size: clamp(36px, 7vw, 64px); margin: 18px 0 6px; }
.letter h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 18px; margin: 30px 0 10px; letter-spacing: .01em; }
.letter p, .letter li { max-width: 66ch; }
.letter p + p { margin-top: 10px; }
.letter li + li { margin-top: 6px; }
.letter dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 10px 0 12px; }
.letter dt { font-weight: 700; }
.letter .scope { border-left: 6px solid var(--ink); padding: 2px 0 2px 14px; margin-top: 14px; }
.letter .scope h3 { font-size: 17px; }
.letter .pillars { display: grid; gap: 6px; margin: 8px 0; }
.letter .pillars div { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: start; }
/* SOP documents, read in the letter sheet */
.letter.doc h1 { font-size: clamp(30px, 5vw, 46px); margin: 0 0 14px; }
.letter.doc h3 { margin: 22px 0 8px; }
.letter.doc ul, .letter.doc ol { margin: 8px 0 12px; }
.letter.doc li ul { margin: 6px 0 0; }
.letter.doc .table-wrap { margin: 12px 0 18px; box-shadow: none; }
.letter.doc td, .letter.doc th { white-space: normal; }
.letter code { font-size: .92em; background: var(--sand); padding: 0 4px; }
.sigpad { position: relative; border: 2px solid var(--ink); background: var(--cream); box-shadow: var(--shadow-sm); height: 170px; touch-action: none; }
.sigpad canvas { width: 100%; height: 100%; display: block; cursor: crosshair; }
.sigpad::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: 40px; border-bottom: 2px dotted var(--ink); pointer-events: none; }
.sigpad .x { position: absolute; left: 10px; bottom: 44px; font-family: var(--display); font-size: 18px; pointer-events: none; }
.sigblock { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); margin-top: 26px; }
@media (min-width: 700px) { .sigblock { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sigblock .sig { border-bottom: 2px solid var(--ink); min-height: 92px; display: flex; align-items: flex-end; }
.sigblock .sig img { max-height: 90px; max-width: 100%; }
.sign-panel { max-width: 760px; margin: 28px auto 0; }

/* Hard-edges addendums: riders under the agreement, smaller than the letter, each with a yellow tab for its number. */
.addenda { max-width: 760px; margin: 36px auto 0; }
.addenda > h2.section { margin-top: 0; }
.letter.addendum { margin-top: 22px; box-shadow: 5px 5px 0 var(--ink); padding-left: clamp(40px, 7vw, 66px); }
.letter.addendum::after { content: none; }
.letter.addendum::before { content: attr(data-tab); position: absolute; left: -2px; top: 26px; writing-mode: vertical-rl; transform: rotate(180deg); background: var(--yellow); color: var(--on-accent); border: 2px solid var(--ink); font-family: var(--display); text-transform: uppercase; font-size: 13px; letter-spacing: .02em; padding: 12px 5px; }
.letter.addendum.waiting::before, .letter.addendum.draft::before { background: var(--cream); color: var(--ink); }
.letter.addendum.draft { border-style: dashed; box-shadow: none; }
.letter.addendum h1 { font-size: clamp(28px, 5vw, 42px); }
.letter.addendum:focus-visible { outline: 3px solid var(--magenta); outline-offset: 4px; }
.edge-status { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; margin-top: 16px; padding-top: 12px; border-top: 2px dashed var(--ink); }
.edge-days { border: 0; padding: 0; margin: 0; min-width: 0; }
.edge-days legend { font-weight: 700; font-size: 14px; padding: 0; margin-bottom: 6px; }
.edge-decline > summary, .addenda-closed > summary { list-style: none; cursor: pointer; display: inline-flex; }
.edge-decline > summary::-webkit-details-marker, .addenda-closed > summary::-webkit-details-marker { display: none; }
.addenda-closed { margin-top: 22px; }
.addenda-closed > summary::before { content: "+"; font-family: var(--display); margin-right: 8px; }
.addenda-closed[open] > summary::before { content: "−"; }
@media print { .addenda-closed:not([open]) { display: none; } }
.stamp { display: inline-block; transform: rotate(-4deg); border: 3px solid var(--done); color: var(--done); font-family: var(--display); text-transform: uppercase; padding: 4px 12px; font-size: 18px; }

/* ------------------------------------------------------------------ team trip
   A ticket the team punches once per trip week; the tiers are the ringed holes. Team numbers only. */
.trip-ticket { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); background: var(--cream); border: 2px solid var(--ink); box-shadow: var(--shadow); }
.trip-stub { padding: 18px 20px; background: var(--yellow); color: var(--on-accent); border-bottom: 2px dashed var(--on-accent); }
.trip-stub .hand { font-size: 20px; }
.trip-q { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 26px; line-height: 1; letter-spacing: -.02em; margin-top: 6px; white-space: nowrap; }
.trip-tally { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; }
.trip-tally b { font-family: var(--display); font-weight: 400; font-size: 56px; line-height: .9; font-variant-numeric: tabular-nums; }
.trip-tally span { font-family: var(--hand); font-size: 20px; }
.trip-body { padding: 22px 20px 16px; min-width: 0; align-self: center; }
.trip-punches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.trip-punches li { position: relative; display: grid; place-items: center; }
.trip-punches .hole { width: min(100%, 34px); aspect-ratio: 1; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--ink) 40%, var(--cream)); }
.trip-punches .on .hole { border: 2px solid var(--ink); background: var(--paper); box-shadow: inset 3px 3px 0 color-mix(in srgb, var(--ink) 28%, transparent); }
.trip-punches .stop .hole { border: 2px solid var(--ink); box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px var(--ink); }
.trip-punches .stop.on .hole { box-shadow: inset 3px 3px 0 color-mix(in srgb, var(--ink) 28%, transparent), 0 0 0 3px var(--yellow), 0 0 0 5px var(--ink); }
.stop-label { display: none; position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-family: var(--hand); font-size: 17px; line-height: 1; }
.trip-punches .up .stop-label { top: auto; bottom: calc(100% + 12px); }
.trip-punches li:last-child .stop-label { left: auto; right: 0; transform: none; }
.trip-legend { margin-top: 14px; }
@keyframes punch-in { 0% { transform: scale(1.8); opacity: 0; } 60% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1); } }
.trip-punches .fresh .hole { animation: punch-in .5s cubic-bezier(.2, .8, .3, 1.2) .2s both; }
@media (min-width: 760px) {
  .trip-ticket { grid-template-columns: 210px minmax(0, 1fr); }
  .trip-stub { border-bottom: 0; border-right: 2px dashed var(--on-accent); }
  /* notches where the stub tears off */
  .trip-ticket::before, .trip-ticket::after { content: ""; position: absolute; left: 197px; width: 24px; height: 24px; border: 2px solid var(--ink); border-radius: 50%; background: var(--paper); }
  .trip-ticket::before { top: -13px; clip-path: inset(50% -4px -4px -4px); }
  .trip-ticket::after { bottom: -13px; clip-path: inset(-4px -4px 50% -4px); }
  .trip-punches { padding: 30px 0; }
  .stop-label { display: block; }
  .trip-legend { margin-top: 4px; }
}
.trip-tier { display: flex; flex-direction: column; }
.trip-tier.earned { box-shadow: var(--shadow); }
.trip-tier > :last-child { margin-top: auto; padding-top: 10px; }
.trip-at { font-family: var(--hand); font-size: 18px; line-height: 1; }
.trip-at b { font-family: var(--display); font-weight: 400; font-size: 30px; margin-right: 4px; }
.trip-tier h3 { margin-top: 8px; }
.trip-tier .stamp { font-size: 15px; }
.trip-proposed { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; border: 2px dashed var(--ink); padding: 12px 14px; margin-bottom: 18px; background: color-mix(in srgb, var(--yellow) 16%, var(--cream)); }
.trip-weeks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 620px) { .trip-weeks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .trip-weeks { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.trip-weeks li { display: grid; gap: 2px; align-content: start; padding: 10px 12px; border: 2px solid var(--ink); background: var(--cream); }
.trip-weeks b { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.15; min-height: 1.15em; font-variant-numeric: tabular-nums; }
.trip-weeks .met { box-shadow: var(--shadow-sm); }
.trip-weeks .met b span { background: linear-gradient(transparent 52%, var(--yellow) 52% 90%, transparent 90%); padding: 0 .06em; }
@media (prefers-color-scheme: dark) { .trip-weeks .met b span { background: var(--yellow); color: #131313; } } /* as .hl does in dark */
.trip-weeks .under { background: transparent; }
.trip-weeks .now { border-style: dashed; }
.trip-weeks .later { border: 2px dotted var(--rule); background: transparent; color: var(--muted); }
.trip-part { margin-top: 26px; }
.trip-part h2.section { margin-top: 0; }
.trip-rule h3 { margin-bottom: 6px; }
.trip-rule p + p { margin-top: 8px; }
.trip-footer { margin-top: 16px; padding-top: 12px; border-top: 2px dashed var(--rule); }
@media (prefers-reduced-motion: reduce) { .trip-punches .fresh .hole { animation: none; } }
@media print { .trip-ticket, .trip-weeks .met, .trip-tier.earned { box-shadow: none; } }

/* ------------------------------------------------------------------ sign-in */
.gate { max-width: 980px; margin: 0 auto; padding: 40px 16px 80px; }
.gate h1 { font-size: clamp(48px, 11vw, 120px); }
.gate .lede { font-size: 19px; max-width: 52ch; margin-top: 18px; }
.code-out { font-family: var(--display); font-size: clamp(20px, 3vw, 28px); white-space: nowrap; letter-spacing: .06em; background: var(--yellow); color: var(--on-accent); border: 2px solid var(--ink); padding: 8px 14px; display: inline-block; user-select: all; }

/* ------------------------------------------------------------------ thought menu
   Right-click edits, in the Kinesis app's thought cloud (drawn on the canvas under the menu by app.js): bumps round
   the rim, an ink line, cream paper, a magenta halftone shadow and a trail of bubbles. The row under the pointer or
   the keyboard sits on a yellow puff, which is also its focus mark. */
.thought-layer { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.thought-cloud { position: fixed; display: block; }
.thought {
  position: fixed; left: 0; top: 0; pointer-events: auto; width: min(284px, calc(100vw - 16px)); overflow: auto; overscroll-behavior: contain;
  color: var(--ink); padding: 25px 18px 21px; scrollbar-width: thin;
}
.thought.asking { width: min(376px, calc(100vw - 16px)); padding: 27px 30px 24px; }
.thought-head { font-weight: 700; font-size: 16px; line-height: 1.25; padding: 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.thought-sub { font-size: 12.5px; line-height: 1.35; color: var(--muted); padding: 2px 12px 0; }
.thought.asking .thought-head, .thought.asking .thought-sub { padding-left: 0; padding-right: 0; }
.thought.asking .thought-head { -webkit-line-clamp: 3; }
.thought-items { display: grid; margin-top: 6px; }
.thought-items button {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 8px 14px; border: 0; border-radius: 0;
  background: transparent; color: inherit; text-align: left; font-weight: 700; font-size: 14px; line-height: 1.25; cursor: pointer;
}
.thought-items button:focus, .thought-go:focus { outline: none; }
.thought-items button[class~="danger"] { color: var(--red); }
.thought-items button.quiet { font-weight: 400; color: var(--muted); }
.thought-items button.lit .pip, .thought-items button.lit { color: var(--on-accent); }
.thought-items button:disabled { cursor: progress; opacity: .55; }
.thought-items .pip { width: 10px; height: 10px; border-width: 1.5px; }
.thought-sep { height: 6px; }
.thought-form { display: grid; gap: 12px; margin-top: 12px; }
.thought-form textarea { min-height: 64px; }
.thought-go { min-height: 46px; padding: 10px 22px; border: 0; background: transparent; color: var(--on-accent); font-weight: 700; font-size: 15px; cursor: pointer; }
.thought-go:disabled, .thought-back:disabled { cursor: progress; opacity: .6; }
.thought-back { border: 0; background: transparent; color: var(--ink); font-weight: 700; padding: 8px 6px; cursor: pointer; text-underline-offset: 3px; }
.thought-back:hover, .thought-back:focus-visible { text-decoration: underline; outline: none; }
@media (forced-colors: active) { .thought-items button:focus, .thought-go:focus { outline: 2px solid CanvasText; } .thought { background: Canvas; border: 2px solid CanvasText; } }
.thought-layer.pop > * { animation: think-in 160ms cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes think-in { from { opacity: 0; transform: scale(.86); } }
tr[data-ctx]:focus-visible { outline: 3px solid var(--link); outline-offset: -3px; }
.ctx-target { border-radius: 2px; }
@media (pointer: coarse) {
  [data-ctx] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
  [data-ctx] :is(input, textarea, select) { -webkit-user-select: text; user-select: text; } /* iOS will not focus a field that cannot be selected */
}
.rail-tip { display: none; }
@media (min-width: 980px) { .rail::-webkit-scrollbar { display: block; width: 6px; } .rail::-webkit-scrollbar-thumb { background: var(--rule); } }
@media (min-width: 980px) { .rail-tip { display: block; margin-top: auto; padding: 16px 6px 0; color: var(--muted); max-width: 190px; } }
.dod.drift { border-left-color: var(--orange); background: color-mix(in srgb, var(--orange) 16%, var(--cream)); }

/* ------------------------------------------------------------------ Point of Accountability
   A Daily Standup of name plates, each with a rubber tier stamp: Set inked plain, Achieved in the "Day won" green,
   Exceeded on highlighter yellow over a magenta halftone. Leaders' plates carry an ink tab. */
.poa-hero h1 { font-size: clamp(24px, 6.4vw, 80px); font-size: clamp(24px, 6.6cqi, 80px); overflow-wrap: normal; }
.poa-premise { font-size: 18px; }
.side > * + * { margin-top: 22px; }
.tier { display: inline-block; position: relative; transform: rotate(-5deg); flex: none; }
.tier-stamp { position: relative; z-index: 1; display: inline-block; border: 3px solid var(--ink); background: var(--cream); color: var(--ink); font-family: var(--display); text-transform: uppercase; font-size: 17px; line-height: 1.1; letter-spacing: .02em; padding: 5px 12px 4px; white-space: nowrap; }
.t-achieved .tier-stamp { border-color: var(--done); color: var(--done); }
.t-exceeded { transform: rotate(-7deg); }
.t-exceeded .tier-stamp { background: var(--yellow); color: var(--on-accent); border-color: var(--ink); }
.t-exceeded::before { content: ""; position: absolute; inset: 6px -7px -7px 6px; background: radial-gradient(circle, var(--magenta) 1.5px, transparent 1.9px) 0 0 / 6px 6px; }
.tier.xs { transform: rotate(-3deg); }
.tier.xs .tier-stamp { font-size: 11.5px; border-width: 2px; padding: 1px 6px; }
.tier.xs::before { inset: 3px -4px -4px 3px; background-size: 4px 4px; }
.poa-tabs { margin-top: 30px; }
.seg a { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 16px; border-right: 2px solid var(--ink); font-weight: 700; font-size: 14px; color: var(--ink); text-decoration: none; }
.seg a:last-child { border-right: 0; }
.seg a:hover:not([aria-current]) { background: var(--sand); color: var(--ink); }
.seg a[aria-current] { background: var(--yellow); color: var(--on-accent); }
.poa-what { margin: 12px 0 22px; max-width: 80ch; }
.roll + .roll { margin-top: 30px; }
.roll-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 12px; }
.roll-head h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 16px; }
.plates { list-style: none; padding: 0; display: grid; gap: 14px; }
.plate { background: var(--cream); border: 2px solid var(--ink); border-left: 12px solid var(--accent, var(--ink)); box-shadow: var(--shadow-sm); }
.plate-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; width: 100%; padding: 14px 20px 14px 14px; background: transparent; border: 0; color: inherit; text-align: left; font: inherit; }
button.plate-row { cursor: pointer; }
button.plate-row:hover { background: color-mix(in srgb, var(--yellow) 14%, transparent); }
.plate-who, .plate-line, .plate-praise { display: block; }
.plate-items { border-top: 1.5px dashed var(--rule); padding: 12px 20px 16px 68px; }
.plate > .plate-three { padding: 0 20px 14px 68px; }
.plate.lead { box-shadow: var(--shadow); }
.plate .avatar { width: 40px; height: 40px; font-size: 18px; }
.plate-name { font-family: var(--display); text-transform: uppercase; font-size: clamp(22px, 4.2vw, 34px); line-height: 1; letter-spacing: -.01em; }
.plate-lead { display: inline-block; vertical-align: .45em; margin-left: 6px; background: var(--ink); color: var(--paper); font-weight: 700; font-size: 12.5px; line-height: 1.4; padding: 2px 8px; white-space: nowrap; }
.plate-praise { color: var(--muted); margin-top: 4px; }
.plate-three { margin-top: 8px; }
@media (max-width: 520px) {
  .plate { grid-template-columns: auto minmax(0, 1fr); }
  .plate-row { grid-template-columns: auto minmax(0, 1fr); }
  .plate-row > .tier { grid-column: 2; justify-self: start; margin-top: 2px; }
  .plate-items, .plate > .plate-three { padding-left: 14px; }
}
.roll.fresh .tier { animation: stamp-in 260ms cubic-bezier(.3, 1.4, .5, 1) both; }
.roll.fresh .plate:nth-child(2) .tier { animation-delay: 90ms; }
.roll.fresh .plate:nth-child(3) .tier { animation-delay: 180ms; }
.roll.fresh .plate:nth-child(n+4) .tier { animation-delay: 270ms; }
@keyframes stamp-in { from { opacity: 0; transform: scale(1.7) rotate(-14deg); } }
.roll-next { border: 2px dashed var(--ink); background: color-mix(in srgb, var(--cream) 70%, transparent); padding: 14px 16px; }
.roll-next + .roll { margin-top: 30px; }
.standup { margin-top: 4px; border-top: 10px solid var(--ink); }
.rc-sec { margin-top: 16px; }
.rc-sec + .rc-sec { padding-top: 14px; border-top: 1.5px dashed var(--rule); }
.rc-sec h3 { font-size: 15px; }
.rc-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 8px; }
.rc-label { font-size: 13px; font-weight: 700; color: var(--muted); min-width: 120px; }
.rc-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; }
button.rc-name { min-height: 36px; padding: 4px 10px; margin: -4px 0; border: 2px solid transparent; background: transparent; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
button.rc-name:hover, button.rc-name[aria-expanded="true"] { border-color: var(--ink); background: var(--cream); }
.rc-items { margin-top: 12px; padding: 10px 14px; border: 2px solid var(--ink); background: var(--paper); }
/* The Lead view (the COO's; Zackory's while the seat is open): today's Big 3 per person, the tiers side by side, previews and Ideal Weeks folded per person. */
.lead-card { border-left: 10px solid var(--accent, var(--ink)); }
.lead-card .b3-items { margin-top: 10px; }
.lead-sub { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 20px 0 10px; font-size: 15px; }
.lead-tiers { margin-top: 22px; align-items: start; }
.lead-tiers .plate-name { font-size: clamp(18px, 2.4vw, 24px); }
/* The Team tab: a card per person, their Big 3 at every level and what they got done. */
.goals { margin-top: 4px; }
.goal { border-left: 12px solid var(--accent, var(--ink)); }
.goal-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.goal-top .avatar { width: 40px; height: 40px; font-size: 18px; }
.goal-who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.goal .plate-name { font-size: clamp(18px, 2.2vw, 24px); }
.goal-top > .tier { margin-right: 4px; }
.goal .plate-lead { margin-left: 0; vertical-align: 0; }
.goal-sec { margin-top: 14px; padding-top: 12px; border-top: 1.5px dashed var(--rule); }
.goal-h { font-size: 13.5px; font-weight: 700; }
.goal-toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; min-height: 36px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.goal-toggle .chev { transition: transform 120ms; }
.goal-toggle[aria-expanded="true"] .chev { transform: rotate(90deg); }
.goal-list, .goal-got { list-style: none; padding: 0; display: grid; gap: 6px; margin-top: 6px; font-size: 14.5px; }
.goal-list li, .goal-got li { display: flex; gap: 8px; align-items: flex-start; }
.goal-list .pip { margin-top: 3px; }
.goal-k { flex: none; min-width: 92px; font-size: 12.5px; font-weight: 700; color: var(--muted); padding-top: 1px; }
.goal-when { margin-top: 10px; }
.goal-when:first-of-type { margin-top: 6px; }
.goal-wins { margin: 12px 0 0; padding: 8px 12px; border-left: 5px solid var(--accent, var(--ink)); background: color-mix(in srgb, var(--yellow) 14%, var(--cream)); }
.goal-wins .hand { white-space: pre-line; margin-top: 4px; }
/* A day's Big 3 opened from a name: one row per item, a square to mark it for those who may. */
.b3-items { list-style: none; padding: 0; display: grid; gap: 8px; margin-top: 6px; }
.b3-item { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.b3-text { flex: 1; min-width: 0; } /* a long task wraps beside its square, not under it */
.b3-item.done .b3-text { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: color-mix(in srgb, var(--ink) 45%, transparent); }
.b3-mark { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 2px solid var(--ink); background: var(--cream); box-shadow: 2px 2px 0 var(--ink); cursor: pointer; flex: none; }
.b3-mark:hover { background: var(--yellow); }
.b3-mark .pip { width: 16px; height: 16px; }
.rc-three { margin-top: 6px; }
.standup-text { margin: 0; white-space: pre-wrap; font: 400 13px/1.5 var(--body); background: var(--paper); border: 1.5px dashed var(--rule); padding: 10px 12px; max-height: 320px; overflow: auto; }
.tier-rules thead th { text-align: center; padding: 12px; }
.tier-rules tbody th { background: var(--cream); border-bottom: 1px solid var(--rule); white-space: normal; font-size: 15px; vertical-align: top; }
.tier-rules tbody th .tiny { display: block; font-weight: 400; }
.tier-rules tr:last-child th { border-bottom: 0; }
.tier-rules td { min-width: 170px; }
.standup-banner { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; margin-bottom: 26px; padding: 0 16px 0 0; background: var(--cream); border: 2px solid var(--ink); box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none; }
.standup-banner:hover { background: color-mix(in srgb, var(--yellow) 30%, var(--cream)); color: var(--ink); }
.standup-banner-tab { align-self: stretch; display: grid; place-items: center; padding: 8px 12px; background: var(--ink); color: var(--paper); font-family: var(--display); text-transform: uppercase; font-size: 13px; }
.standup-banner > span:last-child { padding: 10px 0; }

/* ------------------------------------------------------------------ team calendar
   One calendar under a Day / Week / Month / Quarter / Year selector. Booked things are ink on cream with a stripe for
   their kind; a proposal is a dashed proof in its verdict color (red conflict, yellow unsure, green aligned) with a
   stamp. Person columns carry their hard edges (hatched) and Ideal Week (tinted) behind. */
.cal-cols { display: grid; gap: 26px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.cal-side { order: -1; display: grid; gap: 18px; }
.cal-side > .card + .card { margin-top: 0; }
@media (min-width: 1240px) { .cal-cols { grid-template-columns: minmax(0, 1fr) 340px; } .cal-side { order: 0; } }
.cal-bar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-bottom: 12px; }
.cal-range { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(17px, 2.2vw, 22px); letter-spacing: -.01em; line-height: 1.1; }
.seg a { border-right: 2px solid var(--ink); padding: 6px 12px; font-weight: 700; font-size: 14px; min-height: 36px; display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.seg a:last-child { border-right: 0; }
.seg a[aria-current="true"] { background: var(--yellow); color: var(--on-accent); }
.seg a:hover:not([aria-current="true"]) { background: var(--sand); }
.filters a { border: 2px solid var(--ink); border-radius: 999px; background: var(--cream); padding: 3px 12px; font-weight: 700; font-size: 14px; min-height: 32px; display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.filters a[aria-current="true"] { background: var(--ink); color: var(--paper); }
.cal-who { margin-bottom: 8px; }
.cal-shows { margin-bottom: 12px; max-width: 80ch; }
.cal-wrap { background: var(--cream); }

.cal-grid { display: grid; grid-template-columns: 50px repeat(var(--cols), minmax(98px, 1fr)); min-width: calc(50px + var(--cols) * 98px); }
.cal-head { position: sticky; top: 0; z-index: 4; padding: 7px 8px; background: var(--sand); border-bottom: 2px solid var(--ink); border-left: 1px solid var(--rule); font-size: 13px; font-weight: 700; line-height: 1.25; }
.cal-head a { color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 6px; }
.cal-head a:hover { text-decoration: underline; }
.cal-head .avatar { width: 24px; height: 24px; font-size: 12px; }
.cal-head.today { background: var(--yellow); color: var(--on-accent); }
.cal-corner { background: var(--sand); border-bottom: 2px solid var(--ink); padding: 7px 6px; color: var(--muted); align-self: stretch; }
.cal-strip { min-height: 34px; padding: 4px; border-bottom: 2px solid var(--ink); border-left: 1px solid var(--rule); background: color-mix(in srgb, var(--sand) 45%, var(--cream)); }
.cal-hours { position: relative; }
.cal-hours span { position: absolute; right: 6px; transform: translateY(-50%); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cal-col { position: relative; border-left: 1px solid var(--rule); background: linear-gradient(var(--rule) 1px, transparent 1px) 0 0 / 100% 66px; } /* an hour at 1.1px a minute */
.cal-off { position: absolute; left: 0; right: 0; z-index: 0; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink) 16%, transparent) 0 2px, transparent 2px 8px); pointer-events: none; }
.cal-off span, .cal-iw span { position: absolute; top: 2px; left: 4px; font-size: 10.5px; font-weight: 700; color: var(--muted); }
.cal-iw { position: absolute; left: 0; right: 0; z-index: 0; opacity: .32; pointer-events: none; border-top: 1px dashed var(--ink); }
.cal-iw span { color: var(--ink); opacity: 1; }
.cal-ev {
  position: absolute; z-index: 2; left: calc(var(--lane) * 100% / var(--lanes) + 2px); width: calc(100% / var(--lanes) - 4px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 2px 5px 2px 9px; overflow: hidden; text-align: left; cursor: pointer;
  background: var(--cream); color: var(--ink); border: 2px solid var(--ink); border-radius: 1px; box-shadow: 2px 2px 0 var(--ink); font-size: 12px; line-height: 1.2;
}
.cal-ev::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--kind, var(--sand)); border-right: 1.5px solid var(--ink); }
.cal-ev b { font-weight: 700; }
.cal-ev .t { color: var(--muted); font-size: 11px; }
.cal-ev:hover { z-index: 5; background: color-mix(in srgb, var(--yellow) 22%, var(--cream)); }
.ck-meeting { --kind: var(--cyan); } .ck-one-on-one { --kind: var(--sage); } .ck-client { --kind: var(--magenta); }
.ck-event { --kind: var(--orange); } .ck-focus { --kind: var(--sand); } .ck-deadline { --kind: var(--ink); }
/* The growth move's block is protected: a halftone screen, not a verdict color. */
.cal-ev.src-growth { background: radial-gradient(color-mix(in srgb, var(--ink) 30%, transparent) 1px, transparent 1.4px) 0 0 / 6px 6px, var(--cream); }
.cal-ev.src-growth b { background: var(--cream); padding: 0 2px; }
.cal-ev.src-growth.swapped { border-style: dashed; }
.cal-ev.sel, .cal-chip.sel, .cal-point.sel { outline: 3px solid var(--magenta); outline-offset: 1px; z-index: 6; }
/* Proposals: the proof. */
.tone-red { --tone: var(--red); --tone-fill: color-mix(in srgb, var(--red) 13%, var(--cream)); }
.tone-yellow { --tone: var(--yellow-ink); --tone-fill: color-mix(in srgb, var(--yellow) 42%, var(--cream)); }
.tone-green { --tone: var(--done); --tone-fill: color-mix(in srgb, var(--done) 15%, var(--cream)); }
.cal-ev.ghost { z-index: 3; background: var(--tone-fill); border: 2px dashed var(--tone); box-shadow: none; padding-top: 16px; }
.cal-ev.ghost::before { display: none; }
.cal-ev.ghost .cal-stamp { position: absolute; top: 2px; right: 3px; }
.cal-ev.moving { opacity: .6; border-style: dotted; }
.cal-ev.cancelling, .cal-chip.cancelling { background: repeating-linear-gradient(135deg, var(--tone-fill) 0 6px, var(--cream) 6px 12px); border-color: var(--tone); }
.cal-ev.cancelling b, .cal-chip.cancelling .t { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--tone); }
.cal-stamp { display: inline-block; transform: rotate(-4deg); border: 2px solid var(--tone, var(--ink)); color: var(--tone, var(--ink)); background: var(--cream); font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 11px; line-height: 1.2; letter-spacing: .02em; padding: 1px 5px 0; white-space: nowrap; }
.tone-yellow .cal-stamp, .cal-stamp.tone-yellow { background: var(--yellow); color: var(--on-accent); border-color: var(--ink); }
.cal-point { position: absolute; z-index: 2; left: 0; right: 0; height: 0; border: 0; border-top: 2px solid var(--ink); background: none; padding: 0; cursor: pointer; text-align: left; }
.cal-point span { position: absolute; top: -9px; left: 4px; max-width: calc(100% - 8px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10.5px; font-weight: 700; background: var(--cream); border: 1.5px solid var(--ink); padding: 0 4px; line-height: 15px; }
.cal-point.ghost { border-top: 2px dashed var(--tone); }
.cal-point.ghost span { border-color: var(--tone); background: var(--tone-fill); }
.cal-now { position: absolute; z-index: 4; left: 0; right: 0; border-top: 2px solid var(--magenta); pointer-events: none; }
.cal-now::before { content: ""; position: absolute; left: -4px; top: -5px; width: 8px; height: 8px; background: var(--magenta); border-radius: 50%; }
.who { display: inline-flex; gap: 2px; margin-top: 2px; }
.who i { font-style: normal; width: 15px; height: 15px; display: inline-grid; place-items: center; font-size: 9.5px; font-weight: 700; background: var(--accent); color: var(--on-accent); border: 1px solid var(--ink); }
.who i.accent-magenta, .who i.accent-ink { color: #fff; }
.who.all { font-size: 10px; font-weight: 700; border: 1px solid var(--ink); padding: 0 4px; border-radius: 999px; }
.cal-chip { position: relative; display: flex; align-items: center; gap: 5px; width: 100%; margin: 0 0 3px; padding: 2px 5px 2px 9px; text-align: left; font-size: 12px; line-height: 1.25; cursor: pointer; background: var(--cream); color: var(--ink); border: 1.5px solid var(--ink); overflow: hidden; }
.cal-chip::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--kind, var(--sand)); }
.cal-chip .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.cal-chip .d { font-weight: 700; white-space: nowrap; }
.cal-chip .who { margin-top: 0; }
.cal-chip.ghost { border: 1.5px dashed var(--tone); background: var(--tone-fill); }
.cal-chip.ghost::before { display: none; }
.cal-chip .mark { color: var(--tone); font-weight: 700; }
.cal-chip.anchor { border-style: dashed; border-color: var(--rule); color: var(--muted); background: transparent; }
.cal-chip:hover { background: color-mix(in srgb, var(--yellow) 22%, var(--cream)); }
.cal-month { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); min-width: 840px; }
.cal-month .cal-head { position: static; }
.cal-cell { min-height: 116px; padding: 4px; border-left: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.cal-cell.today { box-shadow: inset 0 4px 0 var(--yellow); }
.cal-date { display: inline-block; font-weight: 700; font-size: 13px; color: var(--ink); text-decoration: none; margin: 0 0 4px 2px; }
.cal-date:hover { text-decoration: underline; }
.cal-more { display: block; color: var(--muted); padding-left: 2px; }
.cal-rows { list-style: none; padding: 0; margin: 0; }
.cal-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 10px 12px; background: var(--cream); border: 2px solid var(--ink); box-shadow: var(--shadow-sm); }
.cal-row + .cal-row { margin-top: 8px; }
.cal-row.today { border-left: 10px solid var(--yellow); }
@media (min-width: 640px) { .cal-row { grid-template-columns: 150px minmax(0, 1fr); align-items: start; } }
.cal-rowlabel { display: grid; color: var(--ink); text-decoration: none; }
.cal-rowlabel:hover b { text-decoration: underline; }
.cal-row .chips .cal-chip { width: auto; max-width: 100%; margin: 0; }
.cal-qhead h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 16px; margin: 18px 0 8px; }
.cal-qhead:first-child h3 { margin-top: 0; }

.cal-review > h2.section { margin-top: 0; display: flex; align-items: center; gap: 10px; }
.prop { position: relative; background: var(--cream); border: 2px solid var(--ink); border-left: 10px solid var(--tone); box-shadow: var(--shadow-sm); padding: 12px 14px; }
.prop + .prop { margin-top: 14px; }
.prop.sel { outline: 3px solid var(--magenta); outline-offset: 2px; }
.prop > header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.prop h3 { margin-top: 8px; }
.prop > * + * { margin-top: 8px; }
.linkish { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.linkish:hover { text-decoration: underline; }
.why { list-style: none; padding: 0; font-size: 13.5px; line-height: 1.4; }
.why li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 6px; }
.why li + li { margin-top: 5px; }
.why b { font-weight: 700; text-align: center; }
.why .w-red b { color: var(--red); } .why .w-yellow b { color: var(--yellow-ink); } .why .w-green b { color: var(--done); } .why .w-info { color: var(--muted); }
.agent-note { padding: 6px 10px; border-left: 3px solid var(--rule); background: color-mix(in srgb, var(--sand) 50%, var(--cream)); }
.agent-note .hand { display: block; font-size: 1.2em; }
.needs .yes { font-weight: 700; color: var(--done); }
.prop .reject input { flex: 1; min-width: 150px; min-height: 32px; font-size: 14px; padding: 4px 8px; }
.verdict { padding: 10px 12px; border: 2px dashed var(--tone); background: var(--tone-fill); }
.verdict .cal-stamp { margin-bottom: 8px; }
.cal-detail { position: relative; padding-right: 64px; }
.cal-close { position: absolute; top: 10px; right: 10px; }
.cal-book > summary { list-style: none; cursor: pointer; }
.cal-book > summary::-webkit-details-marker { display: none; }
.cal-book > summary h2.section { margin: 0; }
.cal-book[open] > summary { margin-bottom: 12px; }
.cal-key p + p { margin-top: 6px; }
.cal-decided ul { margin-top: 8px; }
.cal-decided li + li { margin-top: 4px; }
.code-out.long { white-space: normal; word-break: break-all; font-family: var(--body); font-weight: 700; font-size: 15px; letter-spacing: 0; }

/* ------------------------------------------------------------------ growth queue
   The one move leads the page as a ticket: a yellow stub with the roadmap stage and its six-step ladder, and the
   move in display type. Ideas wait under it as row cards. Each of the five answers keeps one colour everywhere. */
.quick-idea-btn > span { font-size: 18px; line-height: 1; margin-top: -2px; }
dialog.quick-idea {
  width: min(520px, calc(100vw - 32px)); margin: 76px 16px auto auto; padding: 0; border: 2px solid var(--ink); border-radius: 2px;
  background: var(--cream); color: var(--ink); box-shadow: var(--shadow);
}
dialog.quick-idea > form { padding: 18px 20px 20px; }
dialog.quick-idea::backdrop { background: color-mix(in srgb, var(--ink) 30%, transparent); }
@media (max-width: 699px) {
  dialog.quick-idea { width: 100vw; max-width: 100vw; margin: auto 0 0; border-width: 2px 0 0; }
  dialog.quick-idea > form { padding-bottom: max(20px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: no-preference) { dialog.quick-idea[open] { animation: idea-in .18s steps(3) both; } }
@keyframes idea-in { from { transform: translateY(-10px); opacity: 0; } }
.idea-why > summary { width: fit-content; cursor: pointer; color: var(--link); font-weight: 700; }
.idea-why > summary:hover { color: var(--link-hover); }
.idea-why[open] > summary { margin-bottom: 8px; }
:is(fieldset.kinds, .triage fieldset) { border: 0; padding: 0; margin: 0; min-width: 0; }
:is(fieldset.kinds, .triage fieldset) > legend { padding: 0; margin-bottom: 6px; }
.seg.radios label { position: relative; display: inline-flex; border-right: 2px solid var(--ink); cursor: pointer; }
.seg.radios label:last-child { border-right: 0; }
.seg.radios input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg.radios span { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; font-weight: 700; font-size: 14px; }
.seg.radios label:hover span { background: var(--sand); }
.seg.radios input:checked + span { background: var(--yellow); color: var(--on-accent); }
.seg.radios input:focus-visible + span { outline: 3px solid var(--link); outline-offset: -4px; }
.answers-seg .a-do input:checked + span { background: var(--done); color: #fff; }
.answers-seg .a-dabble input:checked + span { background: var(--cyan); color: var(--on-accent); }
.answers-seg .a-devise input:checked + span { background: var(--sage); color: var(--on-accent); }
.answers-seg .a-delete input:checked + span { background: var(--ink); color: var(--paper); }
.pill.a-do { background: var(--done); color: #fff; }
.pill.a-dabble { background: var(--cyan); color: var(--on-accent); }
.pill.a-defer { background: var(--yellow); color: var(--on-accent); }
.pill.a-devise { background: var(--sage); color: var(--on-accent); }
.pill.a-delete { background: var(--sand); }

.move-card { display: grid; grid-template-columns: minmax(0, 1fr); margin-bottom: 22px; background: var(--cream); border: 2px solid var(--ink); box-shadow: var(--shadow); }
.move-stub { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 14px; align-items: end; padding: 14px 18px; background: var(--yellow); color: var(--on-accent); border-bottom: 2px solid var(--on-accent); }
.move-stub .hand { grid-column: 1 / -1; font-size: 19px; }
.move-n { font-family: var(--display); font-size: 76px; line-height: .86; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.move-stage { font-family: var(--display); text-transform: uppercase; font-size: 18px; line-height: 1.05; padding-bottom: 4px; }
.move-ladder { grid-column: 1 / -1; list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.move-ladder li { height: 10px; border: 2px solid var(--on-accent); }
.move-ladder li.past { background: color-mix(in srgb, var(--on-accent) 35%, var(--yellow)); }
.move-ladder li.now { background: var(--on-accent); }
.move-body { padding: 16px 22px 20px; min-width: 0; }
.move-body > .hand { font-size: 19px; }
.move-what { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(22px, 3.2vw, 34px); line-height: 1.04; letter-spacing: -.01em; margin-top: 4px; text-wrap: balance; }
.move-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 12px; }
.move-rule { margin-top: 14px; padding-top: 10px; border-top: 1.5px dashed var(--rule); max-width: 68ch; }
@media (min-width: 760px) {
  .move-card { grid-template-columns: 200px minmax(0, 1fr); }
  .move-stub { display: block; border-bottom: 0; border-right: 2px dashed var(--on-accent); }
  .move-n { margin-top: 6px; }
}

.idea-send { margin-bottom: 4px; }
.idea-checks { display: grid; gap: 8px; }
.idea-checks .check { font-weight: 400; }
.idea > summary { grid-template-columns: auto minmax(0, 1fr) auto; }
.idea .chips { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.idea .chips .avatar { width: 22px; height: 22px; font-size: 11px; border-width: 1.5px; }
.idea-due { display: grid; justify-items: center; min-width: 64px; padding: 3px 6px; border: 2px solid var(--ink); background: var(--paper); line-height: 1.15; }
.idea-due span { font-size: 11.5px; font-weight: 700; }
.idea-due b { font-family: var(--display); font-weight: 400; font-size: 15px; white-space: nowrap; }
.idea-due.late { background: var(--red); color: #fff; }
.idea-why-text { white-space: pre-wrap; }
.idea-answer { display: grid; gap: 6px; padding: 10px 12px; border: 1.5px dashed var(--rule); }
.idea-note { font-size: 20px; white-space: pre-wrap; }
.filter-asks { list-style: none; margin: 0; padding: 9px 12px; display: grid; gap: 3px; background: color-mix(in srgb, var(--yellow) 16%, var(--cream)); border-left: 5px solid var(--ink); }
.triage-what { margin-top: 8px; max-width: 68ch; }
.triage :is(.f-to, .f-owner, .f-until, .f-need), .triage-what > span, .f-until > span { display: none; }
.triage[data-a="do"] .f-owner, .triage[data-a="dabble"] :is(.f-owner, .f-until), .triage[data-a="defer"] .f-until,
.triage[data-a="devise"] .f-to, .triage[data-a="devise"][data-to="actions"] :is(.f-owner, .f-until) { display: grid; }
.triage:is([data-a="devise"], [data-a="delete"]) .f-kind { display: none; }
.triage[data-a="delete"] .f-need, .triage[data-a="dabble"] .l-dabble, .triage[data-a="defer"] .l-defer, .triage[data-a="devise"] .l-devise { display: inline; }
.triage[data-a=""] .triage-what > [data-for=""], .triage[data-a="do"] .triage-what > [data-for="do"], .triage[data-a="dabble"] .triage-what > [data-for="dabble"],
.triage[data-a="defer"] .triage-what > [data-for="defer"], .triage[data-a="devise"] .triage-what > [data-for="devise"], .triage[data-a="delete"] .triage-what > [data-for="delete"] { display: inline; }
.answer-slip { position: relative; display: grid; gap: 8px; justify-items: start; padding: 14px 16px 14px 26px; background: var(--cream); border: 2px solid var(--ink); box-shadow: var(--shadow-sm); }
.answer-slip + .answer-slip { margin-top: 12px; }
.answer-slip::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; border-right: 2px solid var(--ink); background: var(--slip, var(--cream)); }
.answer-slip.a-do { --slip: var(--done); } .answer-slip.a-dabble { --slip: var(--cyan); } .answer-slip.a-defer { --slip: var(--yellow); }
.answer-slip.a-devise { --slip: var(--sage); } .answer-slip.a-delete { --slip: var(--sand); }
.answer-slip .title { font-weight: 700; }
.standup-banner + .idea-banner { margin-top: -14px; }
@media print { .move-card { box-shadow: none; } }

/* ------------------------------------------------------------------ toasts */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 70; display: grid; gap: 10px; max-width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--cream); border: 2px solid var(--ink); box-shadow: var(--shadow-sm); padding: 10px 14px; font-weight: 600; }
.toast.ok { background: color-mix(in srgb, var(--sage) 70%, var(--cream)); }
.toast.err { background: color-mix(in srgb, var(--red) 16%, var(--cream)); border-color: var(--red); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  .btn, .chev { transition: none; }
  .thought-layer.pop > * { animation: none; }
  .roll.fresh .tier { animation: none; }
}
@media print {
  body::before, body::after, .topbar, .rail, .no-print, .toasts, .thought-layer { display: none !important; }
  body { background: #fff; color: #000; }
  .shell { display: block; }
  .main { padding: 0; }
  .letter { box-shadow: none; border: 0; padding: 0; max-width: none; }
  .letter::after { display: none; }
  .display { text-shadow: none; }
}
