/* The campaign desk (/campaign). Tokens from site.css, shell from
   file-surfaces.css. Measured values wear the mono; chrome wears the accent;
   neither borrows the other's colour. */

.cp-shell { max-width: 960px; }

.cp-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 22px;
}

.cp-picker select {
  flex: 1 1 260px;
  min-height: 48px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
}

/* Sections: one open at a time, each with a count. A grid, so every
   section is in view on a phone without a sideways scroll. All seven share
   one row from a 752px screen. */
.cp-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 6px;
  margin: 22px 0 14px;
}
/* On two, three or six columns Log sat alone under a full row; there it
   takes the row. */
@media (max-width: 433px), (min-width: 638px) and (max-width: 751px) {
  .cp-tab:last-child { grid-column: 1 / -1; }
}
.cp-tab {
  appearance: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 48px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.cp-tab-n {
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}
.cp-tab.is-on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.cp-tab.is-on .cp-tab-n { color: var(--ink); }

.cp-tele {
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  color: var(--ink);
}

.cp-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cp-row:last-child { border-bottom: 0; }
.cp-row.is-done .cp-row-title { color: var(--muted); text-decoration: line-through; }
.cp-row.is-overdue .cp-row-when { color: var(--accent-text); }
.cp-row-main { flex: 1 1 320px; min-width: 0; }
.cp-row-title { font-size: 15px; font-weight: 600; color: var(--ink); margin: 0 0 2px; }
.cp-row-sub { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; margin: 0; }
.cp-row-when {
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.cp-row-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.cp-btn, .cp-row-acts select {
  appearance: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 40px;
  padding: 8px 12px;
}
.cp-btn.is-primary { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.cp-btn.is-on { border-color: var(--accent); }
.cp-btn:disabled { opacity: 0.5; cursor: default; }
/* A status is a menu, so it wears a caret; without one it read as a label. */
.cp-row-acts select {
  color: var(--ink);
  background: var(--bg) no-repeat;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px;
  padding-right: 30px;
}

.cp-week {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 14px 18px;
  margin: 0 0 12px;
}
.cp-week.is-past { opacity: 0.85; }
/* A task's controls always sit under its text. Beside it they zigzagged:
   right on one row, under on the next, shifting with Copy template. */
.cp-week .cp-row-main { flex-basis: 100%; }
.cp-week-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; align-items: baseline; }
.cp-week-head h3 { margin: 0; font-size: 15.5px; }
.cp-week-theme { font-size: 13.5px; color: var(--ink-soft); margin: 4px 0 6px; }

.cp-gate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 999px;
  padding: 4px 9px;
}
.cp-gate.is-approved { border-style: solid; color: var(--ink); }
.cp-gate.is-declined { text-decoration: line-through; }

.cp-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 10px;
  margin: 0 0 6px;
}
/* One variant a row until all three fit side by side: on two columns C sat
   alone at half width. */
@media (max-width: 949px) {
  .cp-pair { grid-template-columns: minmax(0, 1fr); }
}
/* Side by side, the counts and buttons sit on the card's floor, the same
   in every card. */
.cp-variant {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--bg);
}
.cp-variant .cp-row-acts { margin-top: auto; }
.cp-variant .cp-tele { flex-basis: 100%; }
.cp-variant.is-picked { border-color: var(--accent); }
.cp-variant h4 { margin: 0 0 6px; font-size: 13.5px; }
.cp-variant p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); white-space: pre-wrap; }
/* The subject is the sentence a curator reads first, not a meta label: in the
   label's uppercase mono a long one ran five lines on a phone. */
.cp-variant .cp-variant-subject { font-weight: 600; color: var(--ink); }
.cp-hyp { font-size: 12.5px; color: var(--muted); margin: 0 0 10px; }

.cp-test-plan { margin: 8px 0 0; }
.cp-test-pair {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--ink-soft);
}
.cp-test-plan .cp-tele { margin: 0 0 6px; display: block; }
.cp-test-ready {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--ink);
}

/* A brief is a card like the cards beside it, and its format line is the
   same small meta line as everywhere else on the desk. */
.cp-brief { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 20px 22px; margin: 0 0 12px; }
.cp-brief h3 { margin: 0 0 6px; font-size: 15.5px; }
.cp-brief ul { margin: 6px 0 8px 18px; padding: 0; font-size: 13.5px; color: var(--ink-soft); }
.cp-brief p { margin: 0 0 6px; line-height: 1.5; }
.cp-brief p:not(.cp-row-when) { font-size: 13.5px; color: var(--ink-soft); }
.cp-hook {
  display: inline-block;
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 8px;
  margin: 0 0 8px;
}
a.cp-hook {
  text-decoration: underline;
  text-underline-offset: 2px;
}
a.cp-hook:hover { border-color: var(--ink-soft); }

.cp-fit {
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  color: var(--ink);
  min-width: 56px;
}
.cp-fresh {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.45;
  margin: 2px 0 0;
}
.cp-fit-math { margin: 8px 0 0; }
.cp-fit-math > summary {
  cursor: pointer;
  list-style: none;
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  color: var(--ink);
  min-height: 40px;
  display: flex;
  align-items: center;
}
.cp-fit-math > summary::-webkit-details-marker { display: none; }
.cp-reasons {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.cp-reasons li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  color: var(--ink-soft);
  line-height: 1.45;
  padding: 2px 0;
}
.cp-reasons .cp-tele { flex: none; min-width: 2.6em; }
/* The lead card's small type, one declaration for the fit math and the check. */
.cp-reasons li, .cp-check { font-size: 12.5px; }
/* The pre-send check on a lead (pitch pipeline spec, section 2), with the
   queue's rules: a fix takes the warning ink and says Fix in words, so colour
   is never the only sign; a pass is muted. */
.cp-check { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; min-width: 0; line-height: 1.45; }
.cp-check li { overflow-wrap: anywhere; min-width: 0; }
.cp-check li.is-ok { color: var(--muted); }
.cp-check li.is-fix { color: var(--heat-ember); }
/* A lead the artist marked do not contact: the reason, and no copy or queue. */
.cp-block-line { flex: 1 1 100%; margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.cp-owner-note {
  font-size: 13px;
  color: var(--ink);
  margin: 8px 0 0;
}
.cp-disagree {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  width: 100%;
}
/* The row that holds the note spans its card, so the field reaches the edge. */
.cp-row-acts:has(> .cp-disagree) { width: 100%; }
.cp-disagree input {
  flex: 1 1 180px;
  min-width: 0;
  min-height: 40px;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
}
.cp-tag-group { display: inline-flex; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cp-tag-group .cp-btn { border: 0; border-radius: 0; min-height: 40px; }
.cp-tag-group .cp-btn.is-on { color: var(--on-accent); background: var(--accent); }

.cp-flag { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--ink-soft); }
.cp-flag:last-child { border-bottom: 0; }
.cp-flag b { color: var(--ink); }
.cp-sev {
  flex: none;
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 48px;
  padding-top: 2px;
}
.cp-sev.is-block { color: var(--accent-text); }

.cp-note {
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  white-space: pre-wrap;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 10px;
  overflow-x: auto;
}
a.cp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}
.cp-digest-acts {
  margin: 0 0 10px;
}
.cp-digest-acts .cp-btn {
  min-height: 44px;
}

.cp-audit { font-size: 12.5px; color: var(--ink-soft); }
.cp-audit li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.cp-audit li:last-child { border-bottom: 0; }
.cp-audit-kind {
  flex: none;
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
}
.cp-audit-reason { flex: 1 1 100%; }

@media (max-width: 720px) {
  .cp-audit li { flex-direction: column; align-items: flex-start; gap: 4px; }
}

.cp-empty { font-size: 14px; color: var(--muted); margin: 0; }

.cp-footer { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }

@media (max-width: 720px) {
  .cp-row-main { flex-basis: 100%; }
  .cp-row-acts { width: 100%; }
  /* Approve and Decline stay a pair; the gate's state follows them rather
     than pushing Decline onto a line of its own. */
  .cp-row-acts .cp-gate { order: 2; }
  /* A brief's controls fill their lines here: its status, alone on the
     first, reads as a field, and a wrapped button is not left short. */
  .cp-brief > .cp-row-acts > * { flex-grow: 1; }
}

/* The four rooms, the same doors as the studio, so /campaign is not a
   second product. Reach is where the campaign lives. */
.project-strip.cp-rooms {
  margin: 0 0 22px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}
.cp-rooms .ps-goals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.cp-rooms .ps-goals a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 8px; border-radius: 10px;
  color: var(--ink-soft); text-decoration: none;
  font: 600 13.5px/1 "Hanken Grotesk", sans-serif;
}
.cp-rooms .ps-goals a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.cp-rooms .ps-goals a[aria-current="page"] {
  color: var(--ink);
  background: color-mix(in srgb, var(--accent) 16%, var(--surface));
  box-shadow: inset 0 0 0 1px var(--accent);
}

/* The micro tokens live in frame.css, which these pages do not load; each
   use names its 11px, or the label grew to the body size. */
.studio-who {
  display: none; align-items: center; gap: 10px; min-width: 0; margin-right: auto;
}
.studio-crest {
  flex: none; width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--surface-2) 80%, var(--accent));
  color: var(--accent-text-raised);
  font: 600 11px/1 "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
}
.studio-who-copy { min-width: 0; }
.studio-who-name {
  margin: 0; font: 600 14px/1.2 "Hanken Grotesk", sans-serif;
  color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.studio-who-meta {
  margin: 2px 0 0; font-size: var(--micro-lg, 11px); color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cp-guest {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin: 0 0 22px;
}
.cp-guest-copy, .cp-guest-still { min-width: 0; }
.cp-guest-still {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 16px 16px 14px;
}
.cp-guest-kicker {
  margin: 0 0 8px;
  font-size: var(--micro, 11px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.cp-guest-name {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.cp-guest-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.cp-guest-list li {
  font-size: 13.5px;
  color: var(--ink-soft);
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
}
.cp-guest-foot { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
@media (min-width: 900px) {
  .cp-guest { grid-template-columns: minmax(0, 1.15fr) minmax(200px, 0.85fr); gap: 32px; }
}
@media (max-width: 699px) {
  .cp-guest { grid-template-columns: minmax(0, 1fr); }
}
body.studio-os .cp-guest { display: block; margin: 0; }
body.studio-os .cp-guest-still { display: none; }
body.studio-os .studio-who { display: flex; }
body.studio-os #navLinks { display: none; }
body.studio-os .nav-toggle { display: none; }
body.studio-os .site-nav { border-bottom-color: color-mix(in srgb, var(--accent) 22%, var(--line)); }
body.studio-os .nav-logo span { letter-spacing: 0.12em; }
/* The bar keeps the desk's frame, 960px and 22px in, so the logo and the
   page share a left edge. */
@media (min-width: 901px) {
  .nav-inner { max-width: 960px; padding-inline: 22px; }
}

.campaign-rebuild {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.campaign-rebuild-kicker {
  margin: 0 0 6px;
  font-size: var(--micro, 11px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.campaign-rebuild-line {
  margin: 0 0 12px;
  font: 500 14px/1.45 "Hanken Grotesk", sans-serif;
  color: var(--ink);
}
.campaign-rebuild .fs-btn,
.campaign-rebuild-act {
  min-height: 44px;
}

.cp-dry a,
a.cp-dry {
  color: var(--accent-text);
  text-underline-offset: 3px;
}

.cp-dry-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: dry;
}
.cp-dry-steps li {
  counter-increment: dry;
  position: relative;
  padding: 12px 0 12px 36px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.cp-dry-steps li:last-child { border-bottom: 0; }
.cp-dry-steps li::before {
  content: counter(dry);
  position: absolute;
  left: 0;
  top: 12px;
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  color: var(--ink);
}
.cp-dry-steps b { color: var(--ink); font-weight: 600; }

/* Every paragraph in a card is body text here, fine print included, so each
   spans the card: the second stopped at 52ch beside a full first. */
.cp-dry-page .fs-card > p {
  margin: 0 0 10px;
  max-width: none;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.cp-dry-page .fs-card > p:last-child { margin-bottom: 0; }

/* Decision 074: who does a task, release week by day, pitch forms, and the
   paid test. Same tokens; measurements wear the mono, chrome the accent. */
.cp-who { display: flex; }
.cp-who input {
  width: 150px;
  min-height: 40px;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
}

.cp-days {
  list-style: none;
  margin: 8px 0 10px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.cp-day {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  padding: 8px 10px;
  min-width: 0;
}
.cp-day.is-open { border-style: dashed; }
.cp-day.is-release { border-color: var(--accent); }
.cp-day .cp-row-when { display: block; margin: 0 0 4px; }
.cp-day-item { margin: 0 0 4px; font-size: 13px; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }

.cp-form { border-top: 1px solid var(--line); padding: 12px 0 4px; }
.cp-form:first-child { border-top: 0; padding-top: 0; }
.cp-row.is-missing .cp-row-sub { color: var(--muted); font-style: italic; }
.cp-field-value { white-space: pre-wrap; overflow-wrap: anywhere; }

.cp-paid-block { color: var(--accent-text); font-weight: 600; margin: 0 0 12px; }

@media (max-width: 720px) {
  .cp-days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-who { flex: 1 1 140px; min-width: 0; }
  .cp-who input { width: 100%; }
}

/* ---------- the overview: one next step, four numbers, the week ---------- */

.cp-picker-label { flex: 0 0 100%; font-size: 13px; font-weight: 600; color: var(--muted); }

.cp-empty-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  margin: 0 0 18px;
}
.cp-empty-card h2 { margin: 0 0 6px; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.cp-empty-card p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.cp-empty-card .cp-dry { margin: 14px 0 0; }

.cp-next {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  border-radius: 18px;
  padding: 20px 20px 18px 24px;
  margin: 0 0 12px;
}
.cp-next::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
}
.cp-next-kicker {
  margin: 0 0 8px;
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text-raised);
}
.cp-next-title {
  margin: 0 0 8px;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.22;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.cp-next-line { margin: 0 0 14px; font-size: 15px; line-height: 1.5; color: var(--ink-soft); max-width: 62ch; }
.cp-next-preview {
  margin: 0 0 14px;
  padding: 10px 12px;
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow-wrap: anywhere;
}
.cp-next-acts { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.cp-btn.cp-next-go { min-height: 48px; padding: 12px 22px; font-size: 15px; }
.cp-link {
  appearance: none;
  cursor: pointer;
  min-height: 44px;
  padding: 10px 2px;
  font: 600 14px/1.2 inherit;
  font-family: inherit;
  color: var(--accent-text-raised);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cp-board {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  margin: 0 0 12px;
}
.cp-numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cp-number { min-width: 0; padding: 2px 12px; border-left: 1px solid var(--line); }
.cp-number:first-child { padding-left: 0; border-left: 0; }
.cp-number b {
  display: block;
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink);
}
.cp-number span { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.3; color: var(--muted); }
.cp-number.is-you b { color: var(--accent-text-raised); }
.cp-progress { margin: 16px 0 0; }
.cp-bar {
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: color-mix(in srgb, var(--line) 85%, transparent);
}
.cp-bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width 0.5s var(--ease, ease); }
.cp-progress-line { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }

.cp-thisweek {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px 12px;
  margin: 0;
}
.cp-thisweek h2 { margin: 0 0 12px; font-size: 15px; font-weight: 600; }
/* Today is always the first day, and its label is the longest. On a narrow
   phone its column takes the room the label needs, with a little air, so
   "Today" no longer runs into the cell's border; the other days share the
   rest. Wider, the days are equal as before. */
.cp-strip {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: minmax(max-content, 1fr);
  grid-auto-columns: minmax(0, 1fr);
  gap: 4px;
}
.cp-strip li { min-width: 0; }
.cp-strip-day {
  appearance: none;
  cursor: pointer;
  width: 100%;
  min-height: 66px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 0;
  font-family: inherit;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
}
.cp-strip-day:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.cp-strip-dow {
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}
.cp-strip-num {
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.1;
}
.cp-strip-dots { display: flex; gap: 3px; height: 6px; align-items: center; }
.cp-strip-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-soft); }
.cp-strip-dots i.is-late { background: var(--accent); }
.cp-strip-day.is-today { padding-inline: 5px; }
.cp-strip-day.is-today .cp-strip-dow { color: var(--accent-text-raised); }
.cp-strip-day.is-release .cp-strip-num { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.cp-strip-day[aria-pressed="true"] { background: var(--bg); border-color: var(--accent); }

.cp-day-head {
  margin: 0 0 8px;
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.cp-day-list .cp-empty { margin: 0 0 8px; font-size: 14px; }
.cp-day-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  margin: 0 0 6px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  text-decoration: none;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
}
button.cp-day-row, a.cp-day-row { appearance: none; cursor: pointer; }
.cp-day-row.is-go:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.cp-day-row.is-go::after { content: "\203A"; font-size: 20px; line-height: 1; color: var(--muted); }
.cp-kind {
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
}
.cp-day-title { min-width: 0; overflow-wrap: anywhere; }
.cp-late {
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--accent-text);
}
.cp-note-fold { margin: 6px 0 4px; }
.cp-note-fold > summary,
.cp-details > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cp-note-fold > summary::-webkit-details-marker,
.cp-details > summary::-webkit-details-marker { display: none; }
.cp-note-fold > summary::after,
.cp-details > summary::after,
.cp-shell .fs-fold > summary::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s var(--ease, ease);
}
.cp-note-fold[open] > summary::after,
.cp-details[open] > summary::after,
.cp-shell .fs-fold[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.cp-note-fold > summary {
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}
.cp-note-fold .cp-note { margin: 4px 0 10px; }
.cp-note-fold .cp-digest-acts { margin: 0 0 8px; }

.cp-details {
  margin: 22px 0 14px;
  padding: 0 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.cp-details > summary {
  min-height: 52px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.cp-details[open] { padding-bottom: 14px; }
/* The desk's other folds (What Thermal read, Provenance) are one fold with
   Details: the same box, height and chevron. */
.cp-shell .fs-fold { border-radius: 14px; padding: 0 18px; }
.cp-shell .fs-fold[open] { padding-bottom: 14px; }
.cp-shell .fs-fold > summary { min-height: 52px; padding: 0; }
.cp-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 0 24px;
  margin: 0;
}
.cp-fact { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.cp-fact dt { font-size: 13.5px; color: var(--ink-soft); }
.cp-fact dd {
  margin: 0;
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 13.5px;
  color: var(--ink);
}
.cp-health-kicker { margin: 16px 0 2px; font-size: 13px; font-weight: 600; color: var(--muted); }

.cp-danger { margin: 6px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); }
.cp-danger h2 { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: var(--ink); }
.cp-danger p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.fs-ghost.cp-delete { color: var(--ink-soft); }
.cp-fine { margin: 22px 0 0; }

.cp-panel, [data-task-key] { scroll-margin-top: 84px; }
.cp-row.is-flash { animation: cp-flash 1.8s var(--ease, ease); border-radius: 10px; }
@keyframes cp-flash {
  0%, 30% { background: color-mix(in srgb, var(--accent) 20%, transparent); }
  100% { background: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .cp-row.is-flash { animation: none; outline: 2px solid var(--accent); outline-offset: 2px; }
  .cp-bar span { transition: none; }
}

@media (max-width: 560px) {
  .cp-next { padding: 18px 16px 16px 20px; }
  .cp-board, .cp-thisweek { padding-left: 12px; padding-right: 12px; }
  .cp-number { padding: 2px 8px; }
  .cp-day-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
  .cp-day-row .cp-kind { grid-column: 1; justify-self: start; }
  .cp-day-row .cp-day-title { grid-column: 1; }
  .cp-day-row .cp-late { grid-column: 1; justify-self: start; }
  .cp-day-row.is-go::after { grid-column: 2; grid-row: 1 / span 3; }
}

/* The release clock's lane chart (spec 2026-09-25, section 3). One row per
   lane, day -56 to +28. Marks are ink; the state is written in words. */
.cp-clock { margin: 0 0 18px; }
.cp-clock-title { font-size: 15px; margin: 0 0 8px; }
.cp-clock-axis { position: relative; height: 32px; margin-left: 120px; font-size: 11px; line-height: 14px; color: var(--muted); }
.cp-clock-axis span { position: absolute; bottom: 2px; transform: translateX(-50%); white-space: nowrap; }
.cp-clock-axis .cp-clock-today { bottom: auto; top: 0; color: var(--ink); }
.cp-clock-axis .is-start { transform: none; }
.cp-clock-axis .is-end { transform: translateX(-100%); }
.cp-clock-body { position: relative; }
.cp-clock-row { display: grid; grid-template-columns: 120px 1fr; align-items: start; padding: 6px 0; border-top: 1px solid var(--line); }
.cp-clock-lane { font-size: 13px; font-weight: 600; padding-top: 2px; }
.cp-clock-track { position: relative; height: 16px; margin-top: 1px; }
.cp-clock-words { grid-column: 2; font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.cp-clock-mark { position: absolute; top: 4px; height: 8px; min-width: 8px; padding: 0; border: 0; border-radius: 4px; background: var(--ink); opacity: .78; cursor: pointer; }
.cp-clock-mark::before { content: ""; position: absolute; inset: -4px -4px; }
.cp-clock-mark.is-dot { width: 8px; transform: translateX(-4px); }
.cp-clock-mark.is-done { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
.cp-clock-mark:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.cp-clock-line { position: absolute; top: -6px; bottom: -4px; width: 0; border-left: 1px solid var(--ink); pointer-events: none; }
.cp-clock-line.is-release { border-left: 1px dashed var(--muted); }
.cp-clock-outside { font-size: 12px; color: var(--muted); margin: 8px 0 0 120px; }
.cp-clock-list { margin-top: 10px; }
.cp-clock-list h3 { font-size: 12px; color: var(--muted); margin: 10px 0 2px; font-weight: 600; }
.cp-clock-item { display: block; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 8px 0; font: inherit; font-size: 13px; color: var(--ink); cursor: pointer; }
.cp-clock-item span { color: var(--muted); }
.cp-clock-detail { border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin-top: 10px; font-size: 13px; }
.cp-clock-detail p { margin: 4px 0; }
.cp-clock-detail .cp-clock-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .cp-clock-chart { display: none; }
  .cp-clock-item { min-height: 44px; }
}
/* On a touch screen the chart is a picture and the list under it is the
   control. Its marks are 8px bars and dots in 16px rows, placed by date, and
   on a tablet upright a finger could not pick one from its neighbours; the
   list carries every step, one 44px row each, and opens the same detail. */
@media (pointer: coarse) {
  .cp-clock-mark { pointer-events: none; }
  .cp-clock-item { min-height: 44px; }
}
