/* Control room: exceptions first, receipts over schedules. States never rely on colour alone. */
body[data-view='control'] #schedule-strip {
  display: none;
}
.control-room {
  --cr-ink: #172f2a;
  --cr-muted: #56655d;
  --cr-line: #d9e0da;
  --cr-card: #fff;
  --cr-wash: #f3f5ef;
  --tone-good: #206242;
  --tone-good-soft: #e6f1e7;
  --tone-warn: #7d4e1b;
  --tone-warn-soft: #fbf0d8;
  --tone-bad: #9b3a36;
  --tone-bad-soft: #f9e7e5;
  --tone-pending: #35596b;
  --tone-pending-soft: #e5eef2;
  --tone-neutral: #56655d;
  --tone-neutral-soft: #edf0ea;
  color: var(--cr-ink);
  display: grid;
  gap: 40px;
  padding-bottom: 24px;
}
.control-room h2,
.control-room h3,
.control-room h4 {
  color: var(--cr-ink);
}
.cr-intro {
  max-width: 880px;
  padding: clamp(8px, 3vw, 36px) 0 0;
}
.cr-intro h1 {
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  font-weight: 600;
  margin: 14px 0 16px;
  text-wrap: balance;
}
.cr-intro > p {
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.55;
  color: var(--cr-muted);
  max-width: 640px;
  margin: 0;
}
.cr-status-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--cr-muted);
}
.cr-status-line > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cr-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  background: var(--tone-neutral);
  flex-shrink: 0;
}
.cr-dot.tone-good {
  background: var(--tone-good);
}
.cr-dot.tone-pending {
  background: var(--tone-pending);
}

/* Tones shared by chips, pills and exceptions. */
.control-room .tone-good {
  --t: var(--tone-good);
  --t-soft: var(--tone-good-soft);
}
.control-room .tone-warn {
  --t: var(--tone-warn);
  --t-soft: var(--tone-warn-soft);
}
.control-room .tone-bad {
  --t: var(--tone-bad);
  --t-soft: var(--tone-bad-soft);
}
.control-room .tone-pending {
  --t: var(--tone-pending);
  --t-soft: var(--tone-pending-soft);
}
.control-room .tone-neutral {
  --t: var(--tone-neutral);
  --t-soft: var(--tone-neutral-soft);
}
.cr-chip,
.cr-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  font: 650 12px/1.3 var(--font-body);
  color: var(--t);
  background: var(--t-soft);
  border: 1px solid color-mix(in srgb, var(--t) 22%, transparent);
  white-space: nowrap;
}
.cr-chip.is-scheduled,
.cr-chip.is-open {
  background: transparent;
  border-style: dashed;
}
.cr-chip.is-missing,
.cr-chip.is-inaccessible {
  border-style: dashed;
  border-width: 1.5px;
}
.cr-chip.is-failed {
  background: var(--tone-bad);
  color: #fff;
}
.cr-muted,
.cr-unknown {
  color: var(--cr-muted);
}
.cr-unknown {
  font-style: italic;
}
.cr-source {
  font-size: 12px;
  color: var(--cr-muted);
}

/* Founder view */
.cr-founder {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 16px;
}
.cr-panel {
  border: 1px solid var(--cr-line);
  border-radius: 22px;
  background: linear-gradient(150deg, #fff, #f6f8f3);
  padding: 22px 24px;
}
.cr-yours {
  background: var(--green-dark, #123c2e);
  border-color: transparent;
  color: #eef4ee;
}
.cr-yours h3,
.cr-yours strong {
  color: #fff;
}
.cr-yours p,
.cr-yours small,
.cr-yours .cr-footnote {
  color: #cbdacd;
}
.cr-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.cr-panel-head h3 {
  font-size: 18px;
  margin: 0;
}
.cr-count {
  font: 700 13px/1 var(--font-body);
  min-width: 28px;
  padding: 6px 9px;
  text-align: center;
  border-radius: 999px;
  background: var(--cr-wash);
  color: var(--cr-ink);
}
.cr-yours .cr-count {
  background: #ffffff1f;
  color: #fff;
}
.cr-exceptions,
.cr-decisions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.cr-exceptions li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: start;
  padding: 11px 12px;
  border-radius: 14px;
  background: var(--t-soft);
  border-left: 3px solid var(--t);
}
.cr-exc-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--t);
}
.cr-exceptions strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}
.cr-exceptions small {
  display: block;
  color: var(--cr-muted);
  font-size: 12.5px;
  line-height: 1.5;
  margin-top: 2px;
}
.cr-decisions li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #ffffff1f;
}
.cr-decisions li:first-child {
  border-top: 0;
  padding-top: 0;
}
.cr-decision-n {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold, #efd994);
  color: #1f3a2f;
  font: 800 13px/1 var(--font-heading);
}
.cr-decisions strong {
  font-size: 15px;
}
.cr-decisions p {
  margin: 4px 0;
  font-size: 13.5px;
  line-height: 1.5;
}
.cr-decisions small {
  font-size: 12.5px;
  line-height: 1.5;
  display: block;
}
.cr-calm {
  margin: 0;
  color: var(--cr-muted);
}
.cr-footnote {
  font-size: 12px;
  line-height: 1.55;
  color: var(--cr-muted);
  margin: 12px 0 0;
}

/* Section headings */
.cr-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 16px;
}
.cr-section-head h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.035em;
  margin: 0 0 6px;
}
.cr-section-head p {
  margin: 0;
  color: var(--cr-muted);
  font-size: 14px;
  line-height: 1.55;
  max-width: 640px;
}

/* Today timeline */
.cr-today-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}
.cr-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.cr-timeline::before {
  content: '';
  position: absolute;
  left: 78px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--cr-line);
}
.cr-slot {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 32px;
  padding: 6px 0;
  position: relative;
}
.cr-slot::before {
  content: '';
  position: absolute;
  left: 73px;
  top: 20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--tone-neutral);
}
.cr-slot:is(.is-done, .is-late)::before {
  background: var(--tone-good);
  border-color: var(--tone-good);
}
.cr-slot:is(.is-missing, .is-inaccessible, .is-unverified)::before {
  border-color: var(--tone-warn);
  border-style: dashed;
}
.cr-slot.is-failed::before {
  background: var(--tone-bad);
  border-color: var(--tone-bad);
}
.cr-slot.is-awaiting::before {
  border-color: var(--tone-pending);
}
.cr-slot-time {
  font: 700 14px/1.2 var(--font-heading);
  text-align: right;
  padding-top: 16px;
  color: var(--cr-ink);
  font-variant-numeric: tabular-nums;
}
.cr-slot-body {
  background: var(--cr-card);
  border: 1px solid var(--cr-line);
  border-radius: 16px;
  padding: 10px 16px 6px;
}
.cr-slot-top h3 small {
  margin-left: 8px;
}
.cr-slot.is-scheduled .cr-slot-body {
  background: transparent;
  border-style: dashed;
}
.cr-slot-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 12px;
}
.cr-slot-top h3 {
  font-size: 15.5px;
  margin: 0;
}
.cr-lane {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cr-muted);
}
.cr-receipt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--tone-good);
}
.cr-receipt.is-none {
  color: var(--cr-muted);
}
.cr-slot-more {
  margin-top: 0;
  font-size: 13px;
}
.cr-slot-more summary,
.cr-more summary {
  cursor: pointer;
  color: var(--cr-muted);
  font-weight: 600;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
}
.cr-slot-more dl {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 6px 14px;
  margin: 8px 0;
  font-size: 13px;
  line-height: 1.5;
}
.cr-slot-more dd {
  color: var(--cr-ink);
}
.cr-slot-more dt {
  color: var(--cr-muted);
}
.cr-slot-more dd {
  margin: 0;
}
.cr-slot-src {
  font-size: 12px;
  color: var(--cr-muted);
}
.cr-now {
  position: relative;
  padding: 6px 0 6px 96px;
}
.cr-now::before {
  content: '';
  position: absolute;
  left: 60px;
  right: 0;
  top: 50%;
  border-top: 2px solid var(--copper, #965134);
}
.cr-now span {
  position: relative;
  background: var(--paper, #f8f8f3);
  color: var(--copper, #965134);
  font: 700 12px/1 var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
}
.cr-next-col {
  display: grid;
  gap: 12px;
}
.cr-next {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--cr-line);
  border-radius: 18px;
  background: #fff;
}
.cr-next strong {
  font: 700 18px/1.3 var(--font-heading);
  letter-spacing: -0.02em;
}
.cr-next span:not(.eyebrow) {
  font-size: 14px;
}
.cr-next small {
  color: var(--cr-muted);
}
.cr-legend {
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--cr-wash);
}
.cr-legend ul {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.cr-legend li {
  display: grid;
  gap: 4px;
  justify-items: start;
}
.cr-legend small {
  font-size: 12px;
  line-height: 1.45;
  color: var(--cr-muted);
}

/* Board */
.cr-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cr-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--cr-line);
  background: #fff;
  color: var(--cr-ink);
  font: 650 14px/1 var(--font-body);
  cursor: pointer;
}
.cr-filter span {
  font-size: 12px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--cr-wash);
}
.cr-filter[aria-pressed='true'] {
  background: var(--green, #174737);
  border-color: var(--green, #174737);
  color: #fff;
}
.cr-filter[aria-pressed='true'] span {
  background: #ffffff26;
}
.cr-filter:focus-visible,
.control-room summary:focus-visible,
.control-room button:focus-visible,
.control-room a:focus-visible {
  outline: 3px solid var(--focus, #965134);
  outline-offset: 2px;
}
.cr-filter-status {
  font-size: 13px;
  color: var(--cr-muted);
  margin: 12px 0;
}
.cr-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 12px;
  align-items: start;
}
.cr-next-step {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cr-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--cr-line);
  border-left-width: 4px;
  border-radius: 14px;
}
.cr-item[data-bucket='due'] {
  border-left-color: var(--tone-pending);
}
.cr-item[data-bucket='done'] {
  border-left-color: var(--tone-good);
}
.cr-item[data-bucket='blocked'] {
  border-left-color: var(--tone-bad);
}
.cr-item[data-bucket='attention'] {
  border-left-color: var(--tone-warn);
  border-left-style: dashed;
}
.cr-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.cr-kind {
  font: 700 10.5px/1.3 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cr-muted);
}
.cr-item h3 {
  font-size: 15px;
  line-height: 1.35;
  margin: 2px 0 0;
}
.cr-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}
.cr-when,
.cr-recorded {
  color: var(--cr-muted);
}
.cr-next-step {
  color: var(--cr-ink);
}
.cr-item-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 12px;
  margin-top: auto;
  padding-top: 8px;
  font-size: 12px;
  color: var(--cr-muted);
}
.cr-empty {
  color: var(--cr-muted);
  padding: 12px 0;
}

/* Lane cards */
.cr-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.cr-card {
  border: 1px solid var(--cr-line);
  border-radius: 22px;
  background: linear-gradient(150deg, #fff, #f6f8f3);
  padding: 20px 22px;
  min-width: 0;
}
#cr-compute {
  grid-column: 1 / -1;
}
.cr-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 14px;
}
.cr-card-head h3 {
  font-size: 18px;
  margin: 0;
}
.cr-rows {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  font-size: 13.5px;
  line-height: 1.5;
}
.cr-rows dd {
  color: var(--cr-ink);
}
.cr-rows > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--cr-line);
  font-size: 13.5px;
  line-height: 1.5;
}
.cr-rows dt {
  color: var(--cr-muted);
}
.cr-rows dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.cr-rows dd small {
  display: block;
  color: var(--cr-muted);
  font-size: 12px;
  margin-top: 3px;
}
.cr-x-lanes {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}
.cr-x-lane {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border-radius: 14px;
  background: var(--cr-wash);
}
.cr-x-part {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff;
  font: 800 13px/1 var(--font-heading);
}
.cr-x-lane strong {
  font-size: 14px;
}
.cr-x-lane small {
  display: block;
  color: var(--cr-muted);
  font-size: 12px;
  margin-top: 4px;
}
.cr-stages {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.cr-stages span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px dashed var(--border-strong, #b9c6b9);
  color: var(--cr-muted);
}
.cr-stages span.is-reached {
  border-style: solid;
  background: var(--tone-good-soft);
  color: var(--tone-good);
}
.cr-subtle {
  padding: 10px 0 4px;
  font-size: 13px;
}
.cr-subtle p {
  margin: 6px 0 0;
  line-height: 1.5;
}
.cr-subtle small {
  color: var(--cr-muted);
}
.cr-bignum {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}
.cr-bignum strong {
  font: 600 48px/1 var(--font-heading);
  letter-spacing: -0.05em;
}
.cr-bignum span {
  color: var(--cr-muted);
  font-size: 13px;
}
.cr-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 10px;
}
.cr-mini-grid > div {
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 10px;
  border-radius: 12px;
  background: var(--cr-wash);
}
.cr-mini-grid strong,
.cr-mini-grid .cr-unknown {
  font: 700 20px/1.1 var(--font-heading);
}
.cr-mini-grid .cr-unknown {
  font-size: 15px;
}
.cr-mini-grid span:not(.cr-unknown) {
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--cr-muted);
}
.cr-compute-lanes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.cr-compute-lanes section {
  padding: 14px;
  border-radius: 14px;
  background: var(--cr-wash);
  display: grid;
  gap: 8px;
  align-content: start;
}
.cr-compute-lanes h4 {
  margin: 0;
  font-size: 14px;
}
.cr-compute-lanes p {
  margin: 0;
  font-size: 13.5px;
}
.cr-compute-lanes small {
  font-size: 12px;
  line-height: 1.5;
  color: var(--cr-muted);
}
.cr-acct {
  font-size: 13px;
}
.cr-acct span {
  color: var(--cr-muted);
}
.cr-acct small {
  display: block;
}
.cr-unknowns {
  margin-top: 14px;
}
.cr-unknowns ul {
  margin: 8px 0 0;
  padding-left: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 20px;
  font-size: 13px;
  color: var(--cr-muted);
}
.cr-more {
  margin-top: 10px;
  font-size: 13px;
}
.cr-more ul {
  margin: 8px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}
.cr-more small {
  color: var(--cr-muted);
}

/* Receipts feed */
.cr-feed-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--cr-line);
}
.cr-feed-item {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--cr-line);
}
.cr-feed-item time {
  font-size: 12.5px;
  color: var(--cr-muted);
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
}
.cr-feed-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}
.cr-feed-top strong {
  font-size: 14.5px;
}
.cr-feed-item p {
  margin: 4px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
}
.cr-feed-item .cr-kind {
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--cr-wash);
}
.cr-feed-item.kind-deployment .cr-kind,
.cr-feed-item.kind-hosted-check .cr-kind {
  background: var(--tone-pending-soft);
  color: var(--tone-pending);
}
.cr-feed-item.kind-completed .cr-kind {
  background: var(--tone-good-soft);
  color: var(--tone-good);
}
.cr-feed-item.kind-blocked .cr-kind {
  background: var(--tone-bad-soft);
  color: var(--tone-bad);
}
.cr-feed > button {
  margin-top: 14px;
}
.cr-readme {
  max-width: 780px;
}
.cr-readme .prose p {
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 1100px) {
  .cr-today-grid {
    grid-template-columns: 1fr;
  }
  .cr-next-col {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}
@media (max-width: 860px) {
  .cr-founder,
  .cr-card-grid {
    grid-template-columns: 1fr;
  }
  .cr-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .control-room {
    gap: 30px;
  }
  .cr-panel,
  .cr-card {
    padding: 16px;
    border-radius: 18px;
  }
  .cr-timeline::before {
    left: 50px;
  }
  .cr-slot {
    grid-template-columns: 40px 1fr;
    gap: 22px;
  }
  .cr-slot::before {
    left: 45px;
  }
  .cr-slot-time {
    font-size: 12.5px;
    text-align: left;
  }
  .cr-now {
    padding-left: 64px;
  }
  .cr-now::before {
    left: 40px;
  }
  .cr-slot-more dl,
  .cr-rows > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .cr-feed-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .cr-items {
    grid-template-columns: 1fr;
  }
  .cr-unknowns ul {
    grid-template-columns: 1fr;
  }
  .cr-chip {
    white-space: normal;
  }
}

.cr-feed-item .cr-item-foot {
  padding-top: 6px;
}
