.status-line {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4) var(--s-8);
  align-items: center;
  color: var(--text-2);
}

a.status-line:hover {
  text-decoration: none;
  color: var(--text-1);
}

.queue-block {
  display: grid;
  gap: var(--s-4);
  margin-top: var(--s-4);
  padding-left: var(--s-12);
  border-left: var(--ring) solid var(--border);
}

.queue {
  display: grid;
  gap: var(--s-2);
  margin: 0;
  padding-left: var(--s-16);
}

.queue li {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-8);
}

.queue-name {
  font-weight: 500;
}

.day {
  display: grid;
  gap: var(--s-4);
  padding: 0 var(--s-4);
}

.day-labels,
.day-track,
.day-ticks {
  position: relative;
}

.day-labels {
  height: calc(3 * var(--t-small-line));
}

.day-label,
.day-ticks span {
  position: absolute;
  top: 0;
  white-space: nowrap;
  color: var(--text-2);
  font-size: var(--t-small);
  line-height: var(--t-small-line);
}

.day-label {
  padding-left: var(--s-4);
  border-left: var(--line) solid var(--axis);
}

.day-label.row-1 {
  top: var(--t-small-line);
}

.day-label.row-2 {
  top: calc(2 * var(--t-small-line));
}

.day-label.end {
  transform: translateX(-100%);
  padding: 0 var(--s-4) 0 0;
  border-left: none;
  border-right: var(--line) solid var(--axis);
}

.day-track {
  height: var(--s-24);
  border-radius: var(--r-control);
  background: var(--sunk);
  box-shadow: inset 0 0 0 var(--line) var(--border);
}

.day-mark {
  position: absolute;
  top: var(--s-4);
  bottom: var(--s-4);
  border-radius: var(--s-2);
  background: var(--series-1);
}

.day-mark.bad {
  background: var(--bad);
}

.day-mark.neutral {
  background: var(--accent);
}

.day-ticks {
  height: var(--t-small-line);
}

.day-ticks span {
  transform: translateX(-50%);
}

.day-ticks span:first-child {
  transform: none;
}

.day-ticks span.end {
  transform: translateX(-100%);
}

.timers {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: var(--line) solid var(--border);
}

.timer-row {
  display: grid;
  grid-template-columns: 4em minmax(10em, 16em) minmax(0, 1fr);
  gap: var(--s-4) var(--s-16);
  align-items: baseline;
  padding: var(--s-8) 0;
  border-bottom: var(--line) solid var(--border);
}

.timer-row.run-row {
  grid-template-columns: 9em minmax(10em, 16em) minmax(0, 1fr);
}

.timer-at {
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.timer-name {
  font-weight: 500;
}

.timer-last {
  display: flex;
  align-items: baseline;
  gap: var(--s-8);
  color: var(--text-2);
}

.run-detail {
  grid-column: 2 / -1;
  margin: 0;
  color: var(--text-2);
  overflow-wrap: anywhere;
}

@media (max-width: 719px) {
  .timer-row {
    grid-template-columns: 4em minmax(0, 1fr);
  }
  .timer-row.run-row {
    grid-template-columns: 6em minmax(0, 1fr);
  }
  .timer-last,
  .run-detail {
    grid-column: 2;
  }
}

.health-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: var(--s-12);
  list-style: none;
  padding: 0;
  margin: 0;
}

.health-tiles > li {
  display: grid;
  min-width: 0;
}

.health-tile {
  display: grid;
  align-content: start;
  gap: var(--s-2);
  padding: var(--s-12);
  border: var(--line) solid var(--border);
  border-radius: var(--r-panel);
  background: var(--surface);
  color: var(--text-1);
  transition: border-color var(--fast) var(--ease);
}

.health-tile:hover {
  border-color: var(--axis);
  text-decoration: none;
}

.health-tile-label,
.health-tile-note {
  color: var(--text-2);
  font-size: var(--t-small);
  line-height: var(--t-small-line);
}

.health-tile-value {
  font-size: var(--t-title);
  line-height: var(--t-title-line);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.health-panel {
  gap: var(--s-32);
}

.health-hero,
.health-mark,
.health-chip,
.health-issue,
.health-tab {
  --tone: var(--text-2);
}

.health-hero.good,
.health-mark.good,
.health-chip.good,
.health-tab.good {
  --tone: var(--good);
}

.health-hero.warn,
.health-mark.warn,
.health-chip.warn,
.health-issue.warn,
.health-tab.warn {
  --tone: var(--warn);
}

.health-hero.bad,
.health-mark.bad,
.health-chip.bad,
.health-issue.bad,
.health-tab.bad {
  --tone: var(--bad);
}

.health-mark.neutral,
.health-chip.neutral {
  --tone: var(--text-1);
}

.health-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-12) var(--s-16);
  align-items: center;
  padding: var(--s-16) var(--s-24);
  border: var(--line) solid color-mix(in oklch, var(--tone) 35%, var(--border));
  border-radius: var(--r-panel);
  background: color-mix(in oklch, var(--tone) 7%, var(--surface));
}

.health-hero-icon {
  display: grid;
  place-items: center;
  width: var(--s-48);
  height: var(--s-48);
  border-radius: var(--r-dot);
  color: var(--tone);
  background: color-mix(in oklch, var(--tone) 16%, var(--surface));
}

.health-hero-icon .icon {
  width: var(--s-24);
  height: var(--s-24);
  stroke-width: 2;
}

.health-headline {
  font-size: var(--t-page);
  line-height: var(--t-page-line);
  font-weight: 600;
}

.health-doing {
  color: var(--text-2);
  font-size: var(--t-body);
  line-height: var(--t-body-line);
  max-width: 72ch;
}

.health-mark {
  display: inline-flex;
  align-items: center;
  gap: var(--s-4);
  color: var(--tone);
  min-width: 0;
}

.health-mark .icon {
  stroke-width: 2;
}

.timer-last .health-mark,
.item-lineage .health-mark {
  color: var(--text-2);
  align-items: baseline;
}

.timer-last .health-mark .icon,
.item-lineage .health-mark .icon {
  color: var(--tone);
  align-self: center;
}

.health-tab {
  display: inline-flex;
  align-items: center;
  gap: var(--s-4);
}

.health-tab .icon {
  color: var(--tone);
  stroke-width: 2;
}

.health-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-2) var(--s-8);
  border: var(--line) solid color-mix(in oklch, var(--tone) 35%, var(--border));
  border-radius: var(--r-control);
  background: color-mix(in oklch, var(--tone) 10%, var(--surface));
  color: var(--tone);
  font-size: var(--t-small);
  line-height: var(--t-small-line);
  font-weight: 500;
  white-space: nowrap;
}

.health-chip .icon {
  width: var(--s-12);
  height: var(--s-12);
  stroke-width: 2;
}

.health-attention {
  display: grid;
  gap: var(--s-8);
  list-style: none;
  padding: 0;
  margin: 0;
}

.health-issue {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--s-4) var(--s-12);
  align-items: baseline;
  padding: var(--s-12) var(--s-16);
  border: var(--line) solid var(--border);
  border-left: var(--s-4) solid var(--tone);
  border-radius: var(--r-panel);
  background: var(--surface);
  color: var(--text-1);
  transition: border-color var(--fast) var(--ease);
}

.health-issue:hover {
  border-color: var(--axis);
  border-left-color: var(--tone);
  text-decoration: none;
}

.health-issue > .icon {
  color: var(--tone);
  stroke-width: 2;
  align-self: center;
}

.health-issue-text {
  font-size: var(--t-body);
  line-height: var(--t-body-line);
  max-width: 80ch;
}

.health-issue-go {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--accent);
  font-size: var(--t-small);
  line-height: var(--t-small-line);
  font-weight: 500;
  white-space: nowrap;
}

.build-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: var(--line) solid var(--border);
}

.build-list > li {
  border-bottom: var(--line) solid var(--border);
}

.build-row > summary {
  display: grid;
  grid-template-columns: 10em 8em minmax(0, 1fr) auto;
  gap: var(--s-4) var(--s-16);
  align-items: center;
  padding: var(--s-12) 0;
  cursor: pointer;
  list-style: none;
}

.build-row > summary::-webkit-details-marker {
  display: none;
}

.build-row > summary:hover .build-reason {
  color: var(--text-1);
}

.build-when {
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.build-reason {
  min-width: 0;
}

.build-took {
  display: inline-flex;
  align-items: center;
  gap: var(--s-8);
  color: var(--text-2);
  font-size: var(--t-small);
  line-height: var(--t-small-line);
  white-space: nowrap;
}

.build-took .icon {
  transition: transform var(--fast) var(--ease);
}

.build-row[open] .build-took .icon {
  transform: rotate(90deg);
}

.build-detail {
  display: grid;
  gap: var(--s-12);
  padding: 0 0 var(--s-16) calc(10em + var(--s-16));
}

.build-facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: var(--s-4) var(--s-16);
  align-items: start;
  margin: 0;
  font-size: var(--t-small);
  line-height: var(--t-small-line);
}

.build-facts dt {
  padding-top: var(--s-4);
  color: var(--text-2);
}

.build-facts dd {
  display: grid;
  gap: var(--s-4);
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.code.health-raw {
  padding: var(--s-4) var(--s-8);
  border-radius: var(--r-control);
  font-size: var(--t-small);
  line-height: var(--t-small-line);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  overflow-x: visible;
  min-width: 0;
}

.health-raw-row {
  display: flex;
  align-items: flex-start;
  gap: var(--s-8);
  min-width: 0;
}

.health-raw-row > .code.health-raw {
  flex: 1 1 auto;
}

.btn.health-copy {
  flex: none;
  height: auto;
  padding: var(--s-4) var(--s-8);
  font-size: var(--t-small);
  line-height: var(--t-small-line);
  gap: var(--s-4);
}

.btn.health-copy .icon {
  width: var(--s-12);
  height: var(--s-12);
}

.health-tabbar {
  position: sticky;
  top: calc(var(--header) + var(--line));
  z-index: 10;
  margin-top: calc(-1 * var(--s-16));
  background: var(--bg);
}

.health-rows,
.source-list,
.health-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.health-rows,
.source-list {
  border-top: var(--line) solid var(--border);
}

.health-rows > li,
.source-list > li {
  border-bottom: var(--line) solid var(--border);
}

.health-row > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: var(--s-4) var(--s-16);
  align-items: center;
  padding: var(--s-12) 0;
  cursor: pointer;
  list-style: none;
}

.health-row > summary::-webkit-details-marker {
  display: none;
}

.health-row > summary > .icon {
  color: var(--text-2);
  transition: transform var(--fast) var(--ease);
}

.health-row[open] > summary > .icon {
  transform: rotate(90deg);
}

.health-row-main {
  display: grid;
  gap: var(--s-2);
  min-width: 0;
}

.health-row-name {
  font-weight: 500;
  font-size: var(--t-body);
  line-height: var(--t-body-line);
}

.health-row-text {
  max-width: 80ch;
}

.health-row-meta {
  color: var(--text-2);
  font-size: var(--t-small);
  line-height: var(--t-small-line);
}

.health-row-detail {
  display: grid;
  gap: var(--s-8);
  padding: 0 0 var(--s-16);
  min-width: 0;
}

.health-checklist {
  display: grid;
  gap: var(--s-8);
}

.health-checklist li {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  align-items: baseline;
  gap: var(--s-4) var(--s-12);
}

.health-checklist .health-chip {
  justify-self: start;
}

.source-line {
  display: grid;
  grid-template-columns: minmax(10em, 1fr) minmax(12em, 20em) 7em;
  grid-template-areas:
    "name age state"
    "quiet quiet quiet";
  gap: var(--s-4) var(--s-16);
  align-items: center;
  padding: var(--s-12) 0;
}

.source-name {
  grid-area: name;
  font-weight: 500;
  font-size: var(--t-body);
  line-height: var(--t-body-line);
}

.source-age {
  grid-area: age;
  display: grid;
  gap: var(--s-4);
  font-variant-numeric: tabular-nums;
}

.source-state {
  grid-area: state;
  justify-self: end;
}

.source-quiet {
  grid-area: quiet;
  color: var(--text-2);
  font-size: var(--t-small);
  line-height: var(--t-small-line);
}

@media (max-width: 719px) {
  .health-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-8);
  }
  .health-tile-note {
    display: none;
  }
  .health-tabbar {
    top: calc(var(--header) + var(--tabs-row) + 2 * var(--line));
  }
  .source-line {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name state"
      "age age"
      "quiet quiet";
  }
  .health-row > summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .health-row-chip {
    grid-column: 1;
    grid-row: 2;
  }
  .health-checklist li {
    grid-template-columns: minmax(0, 1fr);
  }
  .health-hero {
    align-items: start;
    padding: var(--s-16);
  }
  .health-hero-icon {
    width: var(--s-32);
    height: var(--s-32);
  }
  .health-hero-icon .icon {
    width: var(--s-16);
    height: var(--s-16);
  }
  .health-headline {
    font-size: var(--t-title);
    line-height: var(--t-title-line);
  }
  .health-issue {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .health-issue-go {
    grid-column: 2;
  }
  .build-row > summary {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .build-reason {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .build-took {
    grid-column: 3;
    grid-row: 1;
  }
  .build-detail {
    padding-left: 0;
  }
}

.age-bar {
  position: relative;
  height: var(--s-8);
  max-width: 480px;
  border-radius: var(--r-dot);
  background: var(--sunk);
  box-shadow: inset 0 0 0 var(--line) var(--border);
}

.age-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: var(--r-dot);
  background: var(--good);
}

.age-bar.late .age-fill {
  background: var(--warn);
}

.age-promise {
  position: absolute;
  top: calc(-1 * var(--s-2));
  bottom: calc(-1 * var(--s-2));
  width: var(--ring);
  background: var(--text-1);
}

.move-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
  align-items: start;
  gap: var(--s-16);
}

.move-card {
  display: grid;
  gap: var(--s-8);
  align-content: start;
}

.move-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-8);
}

.subsection-title {
  font-size: var(--t-body);
  line-height: var(--t-body-line);
  font-weight: 600;
}

.move-title {
  font-size: var(--t-body);
  line-height: var(--t-body-line);
  font-weight: 600;
}

.move-title a {
  color: var(--text-1);
}

.receipt-mark {
  color: var(--text-2);
  font-size: var(--t-body);
}

.move-change {
  color: var(--text-2);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.move-chart {
  display: grid;
  gap: var(--s-4);
  margin-top: var(--s-8);
}

.move-chart .plot {
  height: 168px;
}

.ops.panel {
  display: grid;
  padding: 0;
}

.ops-row .status-line {
  max-width: none;
}

.ops-row {
  display: grid;
  gap: var(--s-8);
  padding: var(--s-16);
}

.ops-row + .ops-row {
  border-top: var(--line) solid var(--border);
}

.ops-folds {
  display: grid;
  gap: var(--s-8);
}
