.runs tr.latest-run td {
  font-weight: 600;
  background: color-mix(in oklab, var(--link) 6%, transparent);
}
.runs th:last-child,
.runs td:last-child {
  width: 1%;
  min-width: 0;
  white-space: nowrap;
  text-align: left;
  padding-left: 8px;
  padding-right: 8px;
}
.command-guide {
  white-space: pre-wrap;
  background: var(--code-bg);
  border: 1px solid var(--line);
  padding: 14px 52px 14px 14px;
  color: var(--code-text);
  margin: 12px 0 18px;
  overflow: auto;
  position: relative;
}
.command-example {
  text-align: left;
}
.command-guide-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  padding: 6px;
  color: var(--muted);
  background: var(--surface);
}
.command-guide-copy:hover,
.command-guide-copy.copied {
  color: var(--text);
}
.command-guide-copy.copied {
  border-color: var(--s-ok);
}
.command-guide-copied {
  position: absolute;
  top: 8px;
  right: 48px;
  border: 1px solid var(--line);
  padding: 5px 8px;
  color: var(--text);
  background: var(--surface);
  font: 12px/1.5 var(--font-sans);
  opacity: 0;
  pointer-events: none;
  transform: translateX(4px);
  transition:
    opacity 120ms ease,
    transform 120ms ease;
}
.command-guide.copied .command-guide-copied {
  opacity: 1;
  transform: translateX(0);
}
.command-guide-copy svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.identity-copy {
  position: static;
  width: 24px;
  height: 24px;
  padding: 4px;
  margin-left: 4px;
  vertical-align: middle;
}
.table-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: transparent;
}
.table-copy:hover,
.table-copy.copied {
  color: var(--text);
}
.table-copy.copied {
  border-color: var(--s-ok);
}
.table-copy svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.identity-line {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
}
.attempt-menu {
  display: inline-block;
  position: relative;
  vertical-align: middle;
}
.attempt-menu summary {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  list-style: none;
}
.attempt-menu summary::-webkit-details-marker {
  display: none;
}
.attempt-menu summary svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.attempt-options {
  position: absolute;
  z-index: 2;
  top: 28px;
  left: 0;
  min-width: 280px;
  padding: 4px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-pop);
}
.attempt-options button {
  display: block;
  width: 100%;
  padding: 6px 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
  font: 12px/1.4 var(--font-mono);
}
.attempt-options button:hover,
.attempt-options button.selected {
  background: var(--surface-2);
}
#disconnect-banner {
  display: none;
  background: var(--s-bad-bg);
  border: 1px solid var(--s-bad);
  color: var(--text);
  padding: 10px 14px;
  margin-bottom: 16px;
  border-radius: 4px;
  font-size: 14px;
}
#disconnect-banner.show {
  display: block;
}
#location {
  white-space: pre-line;
}
#location code {
  font: inherit;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font-sans);
}
main {
  max-width: 1340px;
  margin: 0 auto;
  padding: 36px 22px;
  display: flex;
  align-items: flex-start;
  gap: 28px;
}
.content {
  min-width: 0;
  flex: 1;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 24px;
}
h1 {
  margin: 0;
  font-size: 32px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 10px;
}
h2 {
  font-size: 18px;
  margin: 0 0 12px;
}
.meta {
  color: var(--muted);
  font-size: 13px;
}
.run-detail {
  text-align: left;
}
.toolbar {
  display: flex;
  gap: 8px;
}
button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  border-color: var(--muted);
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
input,
select {
  border: 1px solid var(--line);
  background: var(--surface-sunken);
  color: var(--text);
  padding: 7px 8px;
  min-width: 100px;
}
.dirty {
  border-color: var(--s-warn);
  background: var(--s-warn-bg);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--s-warn) 25%, transparent);
}
section {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 18px;
  margin-bottom: 20px;
}
.summary {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}
.runs {
  width: 100%;
  border-collapse: collapse;
}
.runs th,
.runs td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  vertical-align: middle;
}
.runs th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}
.runs th:last-child,
.runs td:last-child {
  white-space: nowrap;
  width: 1%;
  vertical-align: middle;
}
.runs td.latest-run {
  font-weight: 600;
  background: color-mix(in oklab, var(--link) 6%, transparent);
}
.latest-badge {
  color: var(--link);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-left: 6px;
}
.run-id {
  font-family: var(--font-mono);
  color: var(--link);
  cursor: pointer;
}
.log {
  white-space: pre-wrap;
  background: var(--code-bg);
  border: 1px solid var(--line);
  padding: 14px;
  min-height: 100px;
  max-height: 360px;
  overflow: auto;
  color: var(--code-text);
}
.empty {
  color: var(--muted);
  padding: 20px 0;
}
.output-modal {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 10;
}
.output-panel {
  display: flex;
  flex-direction: column;
  width: min(1100px, 96vw);
  height: min(760px, 90vh);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 18px;
  box-shadow: var(--shadow-pop);
}
.output-panel.compact {
  width: min(900px, 92vw);
  height: auto;
}
.output-panel header {
  margin: 0 0 12px;
  padding: 0 0 10px;
}
.orbit-game {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--overlay);
  backdrop-filter: blur(8px);
}
.orbit-game[hidden] {
  display: none;
}
.orbit-game-panel {
  width: min(420px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(
      ellipse at 50% 53%,
      color-mix(in oklab, var(--logo-red) 8%, transparent),
      transparent 54%
    ),
    var(--surface);
  box-shadow: var(--shadow-pop);
  text-align: center;
}
.orbit-game-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
}
.orbit-game-header h2 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
}
.orbit-game-eyebrow {
  margin: 0 0 4px;
  color: var(--logo-red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.orbit-game-help {
  max-width: 310px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.orbit-game-score {
  margin: 12px 0 0;
  color: var(--text);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.orbit-game-board {
  display: block;
  width: min(280px, 78vw);
  margin: 2px auto 0;
  overflow: visible;
  touch-action: none;
  user-select: none;
}
.orbit-game-track {
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  opacity: 0.52;
}
.orbit-game-node {
  fill: var(--logo-dot);
  stroke: var(--logo-ring);
  stroke-width: 1.4;
  pointer-events: none;
}
.orbit-game-player {
  fill: var(--logo-red);
  stroke: var(--logo-red);
  stroke-width: 1.2;
  cursor: grab;
  filter: drop-shadow(
    0 0 10px color-mix(in oklab, var(--logo-red) 38%, transparent)
  );
  outline: none;
}
.orbit-game-player:focus-visible {
  stroke: var(--text);
  stroke-width: 3;
}
.orbit-game-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
}
.orbit-game-controls button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: var(--surface);
  font-size: 22px;
  line-height: 1;
}
.orbit-game-controls button:hover {
  border-color: var(--logo-red);
  background: var(--surface-2);
}
.orbit-game-header button {
  padding: 7px 12px;
}
.orbit-game-over {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
  color: var(--s-bad);
}
.orbit-game-over[hidden] {
  display: none;
}
.orbit-game-over button {
  padding: 8px 12px;
}
.modal-config-paths {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
}
.modal-config-paths[hidden] {
  display: none;
}
.modal-config-path {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}
.modal-config-path > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.output-box {
  position: relative;
  flex: 1;
  min-height: 0;
}
.modal-copy-status {
  position: absolute;
  top: 8px;
  right: 48px;
  border: 1px solid var(--line);
  padding: 5px 8px;
  color: var(--text);
  background: var(--surface);
  font: 12px/1.5 var(--font-sans);
  opacity: 0;
  pointer-events: none;
  transform: translateX(4px);
  transition:
    opacity 120ms ease,
    transform 120ms ease;
}
.modal-copy-status.visible {
  opacity: 1;
  transform: translateX(0);
}
.output-box .modal-copy {
  position: absolute;
  top: 8px;
  right: 8px;
}
.output-panel .log {
  height: 100%;
  max-height: none;
  margin: 0;
  padding-top: 14px;
  padding-right: 52px;
}
.output-panel.compact .log {
  height: auto;
  max-height: 240px;
  min-height: 0;
}
.log.log-error {
  color: var(--s-bad);
  border-color: var(--s-bad);
}
.config-editor {
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: 12px;
}
.config-editor[hidden],
.config-generator[hidden] {
  display: none;
}
.config-editor textarea {
  flex: 1;
  min-height: 180px;
  resize: vertical;
  font: 13px/1.5 var(--font-mono);
}
.config-editor button {
  align-self: flex-end;
}
.config-generator {
  padding: 4px 0;
}

.notification-config-editor {
  display: grid;
  flex: 1;
  min-height: 0;
  align-content: start;
  gap: 12px;
  padding: 4px;
  overflow: auto;
}

.notification-config-editor[hidden] {
  display: none;
}

.notification-config-editor fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid var(--line);
  padding: 12px;
}

.notification-config-editor fieldset.dirty {
  border-color: var(--s-warn);
  background: color-mix(in oklab, var(--s-warn) 7%, transparent);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--s-warn) 25%, transparent);
}

.notification-config-editor fieldset > legend {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.output-box.notification-config-output {
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}

.notification-channel-description {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.notification-setting-group {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px 12px;
  align-items: center;
}

.notification-setting-group h3 {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.notification-max-jobs {
  display: flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.notification-max-jobs input[type="number"] {
  width: 96px;
  min-width: 96px;
}

.notification-config-editor input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 0;
  min-height: 0;
  margin: 0 6px 0 0;
  padding: 0;
  vertical-align: middle;
}

.notification-field-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 6px;
}

.notification-webhook-settings,
.notification-config-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.notification-webhook-settings input[name="webhook-url"] {
  min-width: min(320px, 100%);
}
.notification-webhook-url-label,
.notification-webhook-format-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.config-generator p {
  margin: 0 0 16px;
}
.config-target-options {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 8px;
}
.config-target-options button {
  overflow-wrap: anywhere;
  text-align: left;
}
@media (max-width: 650px) {
  header {
    display: block;
  }
  .toolbar {
    margin-top: 14px;
  }
  .summary {
    flex-wrap: wrap;
    gap: 10px;
  }
  .runs:not(.run-jobs) th:nth-child(3),
  .runs:not(.run-jobs) td:nth-child(3) {
    display: none;
  }
}
.matrix-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 18px;
  margin: 16px 0 20px;
}
.matrix-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}
.matrix-heading h2 {
  margin: 0;
}
.matrix-summary {
  margin-left: auto;
}
.matrix-content {
  margin-top: 12px;
}
.matrix-slice-label {
  text-align: left;
}
.matrix-axes {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
  color: var(--muted);
}
.matrix-grid {
  border-collapse: collapse;
  margin: 4px 0 10px;
}
.matrix-grid th,
.matrix-grid td {
  border: 1px solid var(--line);
  padding: 4px 10px;
  text-align: center;
  white-space: nowrap;
}
.matrix-grid th {
  color: var(--muted);
  font-weight: 400;
}
.matrix-cell {
  cursor: pointer;
  min-width: 56px;
  transition:
    background 0.12s,
    box-shadow 0.12s;
}
.matrix-cell:not(.matrix-missing):hover {
  position: relative;
  z-index: 1;
  color: var(--text);
}
td.matrix-success:hover {
  background: color-mix(in oklab, var(--s-ok) 55%, transparent);
  box-shadow:
    0 0 0 1px var(--s-ok),
    0 0 18px 2px color-mix(in oklab, var(--s-ok) 85%, transparent);
}
td.matrix-failed:hover {
  background: color-mix(in oklab, var(--s-bad) 60%, transparent);
  box-shadow:
    0 0 0 1px var(--s-bad),
    0 0 18px 2px color-mix(in oklab, var(--s-bad) 85%, transparent);
}
td.matrix-running:hover {
  background: color-mix(in oklab, var(--s-run) 50%, transparent);
  box-shadow:
    0 0 0 1px var(--s-run),
    0 0 18px 2px color-mix(in oklab, var(--s-run) 85%, transparent);
}
td.matrix-blocked:hover {
  background: color-mix(in oklab, var(--s-warn) 50%, transparent);
  box-shadow:
    0 0 0 1px var(--s-warn),
    0 0 18px 2px color-mix(in oklab, var(--s-warn) 85%, transparent);
}
td.matrix-pending:hover {
  box-shadow: 0 0 12px 1px color-mix(in oklab, var(--muted) 70%, transparent);
}
.matrix-success {
  background: color-mix(in oklab, var(--s-ok) 22%, transparent);
  color: var(--s-ok);
}
.matrix-failed {
  background: color-mix(in oklab, var(--s-bad) 25%, transparent);
  color: var(--s-bad);
}
.matrix-running {
  background: color-mix(in oklab, var(--s-run) 18%, transparent);
  color: var(--s-run);
}
.matrix-blocked {
  background: color-mix(in oklab, var(--s-warn) 18%, transparent);
  color: var(--s-warn);
}
.matrix-pending,
.matrix-missing {
  color: var(--muted);
}
.matrix-missing {
  cursor: default;
}
.runs tr.matrix-focus td {
  background: color-mix(in oklab, var(--link) 16%, transparent);
}
.matrix-actions {
  position: absolute;
  z-index: 20;
  min-width: 220px;
  max-width: 420px;
  padding: 10px 36px 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-pop);
}
.matrix-actions-close {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 2px 8px;
}
.matrix-actions-job + .matrix-actions-job {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.matrix-actions-heading {
  margin-bottom: 6px;
}
.matrix-actions-heading span {
  background: none;
  font-size: 12px;
}
.matrix-actions-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cell-clamp-toggle {
  cursor: pointer;
  border-radius: 3px;
}
.cell-clamp-toggle:hover,
.cell-clamp-toggle:focus-visible {
  background: color-mix(in oklab, var(--link) 8%, transparent);
}
.cell-clamp.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

pre,
code,
kbd,
samp,
textarea {
  font-family: var(--font-mono);
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.55 var(--font-sans);
  letter-spacing: 0.005em;
}

main {
  width: 100%;
  max-width: 1680px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0;
  gap: 0;
}

.content {
  padding: 30px clamp(22px, 3.1vw, 48px) 56px;
}

.content > header {
  align-items: center;
  min-height: 74px;
  margin: 0 0 28px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--line);
}

h1 {
  gap: 11px;
  font-size: clamp(23px, 2vw, 29px);
  font-weight: 670;
  letter-spacing: -0.04em;
}

.header-home {
  display: inline-flex;
  align-items: center;
  gap: inherit;
  color: inherit;
  text-decoration: none;
}

.header-home:hover {
  color: var(--text);
  text-decoration: none;
}

.meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.toolbar {
  align-items: center;
  gap: 9px;
}

button,
input,
select {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    transform 140ms ease,
    box-shadow 140ms ease;
}

button {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 590;
}

button:hover {
  border-color: var(--muted);
  background: var(--surface-2);
}

button:active {
  transform: translateY(1px);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--accent) 85%, transparent);
  outline-offset: 2px;
}

input,
select {
  min-height: 36px;
  padding: 6px 10px;
  background: var(--surface-sunken);
}

.job-selection,
#select-all-jobs {
  width: 16px;
  height: 16px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-radius: 3px;
  accent-color: var(--accent);
  vertical-align: middle;
}

a {
  color: var(--link);
  text-decoration-color: color-mix(in oklab, var(--link) 38%, transparent);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--link-hover);
  text-decoration-color: currentColor;
}

section {
  margin-bottom: 18px;
  padding: 19px 21px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

section h2 {
  margin-bottom: 13px;
  color: var(--text);
  font-size: 16px;
  font-weight: 630;
  letter-spacing: -0.02em;
}

.summary {
  flex-wrap: wrap;
  gap: 9px;
  color: var(--text-2);
  font-size: 12px;
}

.summary > span {
  padding: 6px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: var(--surface-sunken);
}

#app {
  min-width: 0;
  overflow-x: auto;
  scrollbar-color: var(--line) transparent;
}

#app > section {
  margin-top: 17px;
}

.runs {
  min-width: 760px;
  border: 1px solid var(--line);
  border-radius: 11px;
  border-spacing: 0;
  background: var(--surface);
  overflow: hidden;
}

.runs th,
.runs td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}

.runs th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
  font-weight: 690;
  letter-spacing: 0.09em;
}

.runs th[data-sort] {
  cursor: pointer;
}

.runs th[data-sort]:hover {
  color: var(--text-2);
}

.runs tbody tr {
  transition: background 120ms ease;
}

.runs tbody tr:hover td {
  background: var(--highlight);
}

.runs tbody tr:last-child td {
  border-bottom: 0;
}

.runs td.latest-run,
.runs tr.latest-run td {
  background: color-mix(in oklab, var(--accent) 6%, transparent);
}

.latest-badge {
  color: var(--accent-text);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.run-id {
  color: var(--link);
  font-size: 12px;
  text-decoration: underline;
}

.latest-run .run-id {
  color: var(--accent-text);
}

.empty {
  padding: 32px 20px;
  border: 1px dashed var(--line);
  border-radius: 11px;
  color: var(--muted);
  text-align: center;
}

.matrix-panel,
.output-panel,
.matrix-actions,
.attempt-options {
  border-color: var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-pop);
}

.matrix-panel {
  padding: 12px 18px;
  margin: 10px 0 12px;
}

pre,
.log {
  border-color: var(--line);
  border-radius: 9px;
  background: var(--code-bg);
  color: var(--code-text);
}

#disconnect-banner {
  border-radius: 9px;
}

@media (max-width: 760px) {
  main {
    display: block;
  }

  .content {
    padding: 23px 18px 40px;
  }

  .content > header {
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 520px) {
  .content > header {
    display: flex;
    flex-direction: column;
  }

  .toolbar {
    margin-top: 6px;
  }

  section {
    padding: 15px;
  }

  .summary > span {
    padding: 5px 8px;
  }
}

.history-search-page {
  max-width: 1180px;
}

.history-search-intro,
.history-search-detail,
.history-search-empty {
  color: var(--muted);
}

.history-search-form fieldset {
  min-width: 0;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.history-search-form legend {
  padding: 0 6px;
  color: var(--text);
  font-weight: 650;
}

.history-search-scope-help {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
}

.history-search-scope-row {
  display: grid;
  grid-template-columns:
    minmax(180px, 1fr) minmax(150px, 0.85fr) minmax(170px, 1fr)
    34px;
  gap: 8px;
  margin-bottom: 8px;
}

.history-search-scope-row select {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  background: var(--surface-sunken);
}

.history-search-scope-row select:disabled {
  color: var(--muted);
  opacity: 0.72;
}

.history-search-scope-remove {
  min-width: 34px;
  padding: 0;
  color: var(--muted);
  font-size: 20px;
}

.history-search-scope-remove[hidden] {
  display: none;
}

.history-search-add-scope {
  min-height: 34px;
}

.history-search-condition {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 2fr) 92px 34px;
  gap: 8px;
  margin-bottom: 8px;
}

.history-search-condition select,
.history-search-condition input,
.history-search-time-row select,
.history-search-custom-range input {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  background: var(--surface-sunken);
}

.history-search-condition [hidden] {
  display: none;
}

.history-search-condition .history-search-remove {
  box-sizing: border-box;
  grid-column: 4;
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  justify-self: start;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 20px;
}

.history-search-add {
  min-height: 34px;
}

.history-search-match-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  min-height: 36px;
  margin: 0 0 12px;
}

.history-search-match-options label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.history-search-match-options input {
  box-sizing: border-box;
  width: 13px;
  height: 13px;
  min-width: 13px;
  min-height: 13px;
  margin: 0;
  padding: 0;
  flex: 0 0 13px;
}

.history-search-result-target {
  display: flex;
  width: min(100%, 320px);
  flex: 0 1 320px;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.history-search-controls-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.history-search-result-target select {
  flex: 1;
  min-width: 0;
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  background: var(--surface-sunken);
}

/* The search page's one primary action. */
.history-search-form button.primary {
  border-color: var(--text);
  background: var(--text);
  color: var(--surface);
}
.history-search-form button.primary:hover {
  border-color: var(--text-2);
  background: var(--text-2);
}
.history-search-time-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin: 12px 0 18px;
}

.history-search-time-row > label,
.history-search-custom-range label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}

.history-search-time-row select:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px
    color-mix(in oklab, var(--accent) 85%, transparent);
}

.history-search-custom-range {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.history-search-custom-range[hidden] {
  display: none;
}

.history-search-message {
  margin: 10px 0;
  color: var(--muted);
}

.history-search-table {
  width: 100%;
  min-width: 640px;
  border: 1px solid var(--line);
  border-radius: 11px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.history-search-table tbody tr:last-child td {
  border-bottom: 0;
}
.history-search-command {
  max-width: 72ch;
  margin-top: 2px;
  overflow: hidden;
  color: var(--text-2);
  font: 12px/1.45 var(--font-mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.history-search-time {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.history-search-table th,
.history-search-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

.history-search-table th {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.history-search-table a {
  color: var(--text);
  font-weight: 650;
}

.history-search-kind {
  display: inline-block;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--link);
  font-size: 11px;
}

.history-search-detail {
  max-width: 600px;
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: 12px;
}

#app table.runs tr.history-search-job-match > td {
  background: color-mix(in oklab, var(--s-warn) 18%, transparent);
  box-shadow:
    inset 0 1px color-mix(in oklab, var(--s-warn) 60%, transparent),
    inset 0 -1px color-mix(in oklab, var(--s-warn) 60%, transparent);
}

.history-search-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 18px 0;
}

.history-search-pagination[hidden] {
  display: none;
}

@media (max-width: 760px) {
  .history-search-scope-row {
    grid-template-columns: minmax(0, 1fr) 34px;
  }

  .history-search-scope-row select {
    grid-column: 1 / 2;
  }

  .history-search-scope-remove {
    grid-column: 2;
    grid-row: 1 / 4;
  }

  .history-search-condition {
    grid-template-columns: minmax(0, 1fr) minmax(95px, 1fr) 34px;
  }

  .history-search-field {
    grid-column: 1 / 3;
    grid-row: 1;
  }

  .history-search-word {
    grid-column: 1;
    grid-row: 2;
  }

  .history-search-join {
    grid-column: 2;
    grid-row: 2;
  }

  .history-search-remove {
    grid-column: 3;
    grid-row: 1 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.markdown-view {
  overflow: auto;
  height: 100%;
  box-sizing: border-box;
  /* Room on the right for the modal's copy button. */
  padding: 0.25rem 52px 0.75rem 0.75rem;
  line-height: 1.5;
}
.markdown-view h1 {
  font-size: 1.35rem;
  margin: 0.5rem 0 0.75rem;
}
.markdown-view h2 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--line);
}
.markdown-view h3 {
  font-size: 1rem;
  margin: 1rem 0 0.4rem;
}
.markdown-view p,
.markdown-view ul,
.markdown-view ol,
.markdown-view blockquote {
  margin: 0.4rem 0;
}
.markdown-view ul,
.markdown-view ol {
  padding-left: 1.5rem;
}
.markdown-view blockquote {
  padding-left: 0.75rem;
  border-left: 3px solid var(--line);
  color: var(--muted);
}
.markdown-view code {
  font-family: var(--font-mono);
  font-size: 0.85em;
}
.markdown-view pre {
  overflow: auto;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  white-space: pre;
}
.markdown-view .markdown-table {
  overflow-x: auto;
  margin: 0.5rem 0;
}
.markdown-view table {
  border-collapse: collapse;
  font-size: 0.9em;
}
.markdown-view th,
.markdown-view td {
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}
.artifact-view {
  overflow: auto;
  max-height: 75vh;
  /* Room on the right for the modal's copy button. */
  padding: 0.5rem 52px 0.5rem 0.5rem;
}
.artifact-view .artifact-open {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.artifact-preview {
  margin-top: 1rem;
}
.artifact-image {
  max-width: 100%;
  height: auto;
  background: var(--image-bg);
}
.artifact-table-scroll {
  overflow: auto;
  max-height: 60vh;
}
.artifact-text {
  max-height: 60vh;
  overflow: auto;
}
.artifact-media {
  display: block;
  max-width: 100%;
  max-height: 60vh;
}
.artifact-values {
  height: auto;
  max-height: 12rem;
  overflow: auto;
}

/* A table's row actions, first in each row (actionsCell in web_app_core.js). */
.runs th.actions,
.runs td.actions {
  width: max-content;
  min-width: 0;
  white-space: normal;
  text-align: left;
  vertical-align: middle;
}
.action-buttons {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 4px;
}
.action-buttons button {
  width: auto;
  margin: 0;
  vertical-align: top;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* A run's jobs table (runJobsHTML in web_app_core.js): the command under
   the job name, short IDs, and the row's actions last. */
.table-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 18px 0 8px;
}
.table-bar h2 {
  margin: 0 8px 0 0;
  font-size: 16px;
}
.table-bar > .meta {
  font-size: 12.5px;
}
/* The project page's queue and runs: their tables are the cards. */
#app > section.web-queue-commands,
#app > section.project-runs-section {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.project-runtime .table-bar {
  margin-top: 0;
}
.web-queue-jobs td:has(.command-input) {
  width: 40%;
}
.web-queue-jobs .command-input {
  width: 100%;
  min-width: 24ch;
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.queue-source {
  margin: 0 0 8px;
}
.table-bar .columns-menu {
  margin-left: auto;
}
/* The run page's selection buttons and toolbar (runSelectionHTML,
   runActionsHTML): one row each, compact, wrapping on narrow screens. */
.run-selection,
.run-toolbar {
  flex-wrap: wrap;
  gap: 6px;
}
.run-toolbar {
  margin: 0 0 10px;
}
.run-selection button,
.run-toolbar button {
  min-height: 30px;
  padding: 4px 11px;
  font-size: 12.5px;
}
.selection-count {
  margin-left: 4px;
  font-size: 12.5px;
}
.toolbar-gap {
  flex: 1;
}
.run-toolbar .delete-run:not(:disabled) {
  color: var(--s-bad);
}
.run-jobs th,
.run-jobs td {
  white-space: nowrap;
}
.run-jobs th,
.run-jobs td {
  padding: 9px 8px;
}
.run-jobs button {
  min-height: 0;
}
.run-jobs th.selection,
.run-jobs td.selection {
  width: 1%;
  padding-right: 0;
}
.run-jobs td.job-cell {
  min-width: 22ch;
  max-width: 60ch;
  white-space: normal;
}
.job-title strong {
  color: var(--text);
  font-weight: 600;
}
.job-title {
  display: flex;
  align-items: center;
  gap: 2px;
}
.job-command {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  margin-top: 2px;
  color: var(--text-2);
  font: 12px/1.45 var(--font-mono);
  overflow-wrap: anywhere;
}
.job-command .cell-clamp.collapsed {
  -webkit-line-clamp: 2;
}
.run-jobs .identity-copy {
  flex: none;
  width: 20px;
  height: 20px;
  padding: 3px;
  margin-left: 2px;
  opacity: 0;
}
.run-jobs tr:hover .identity-copy,
.run-jobs .identity-copy:focus-visible,
.run-jobs .identity-copy.copied {
  opacity: 1;
}
.run-jobs .mono,
.run-jobs td.id-cell {
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.run-jobs td.time-cell {
  font-variant-numeric: tabular-nums;
}
.runs th {
  white-space: nowrap;
}
.queue-overview .project-name {
  font-weight: 600;
}
.queue-overview td.time-cell {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.project-runs .run-cell {
  white-space: nowrap;
}
.project-runs .run-name {
  font-weight: 600;
}
.project-runs .run-id {
  margin-top: 2px;
  text-decoration: none;
  color: var(--muted);
  font: 12px/1.45 var(--font-mono);
}
.project-runs .identity-copy {
  width: 20px;
  height: 20px;
  min-height: 0;
  padding: 3px;
  opacity: 0;
}
.project-runs tr:hover .identity-copy,
.project-runs .identity-copy:focus-visible,
.project-runs .identity-copy.copied {
  opacity: 1;
}
.project-runs td.time-cell {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.queue-overview td.actions .action-buttons,
.project-runs td.actions .action-buttons,
.run-jobs td.actions .action-buttons {
  display: flex;
  align-items: center;
  gap: 4px;
}
.run-jobs td.actions .row-menu {
  margin-left: auto;
}
.queue-overview td.actions button,
.project-runs td.actions button,
.run-jobs td.actions button {
  min-height: 28px;
  padding: 3px 9px;
  font-size: 12.5px;
}

/* A popup menu in a table or above one (popupMenuAttributes). */
.popup-menu {
  position: relative;
  display: inline-block;
}
.popup-menu[open] > div {
  z-index: 30;
}
.popup-menu > summary {
  list-style: none;
  cursor: pointer;
}
.popup-menu > summary::-webkit-details-marker {
  display: none;
}
.row-menu > summary,
.columns-menu > summary {
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  font-size: 12.5px;
  line-height: 1.4;
}
.row-menu > summary {
  border-color: transparent;
  background: none;
  color: var(--text-2);
  font-weight: 600;
}
.row-menu > summary:hover,
.row-menu[open] > summary {
  background: var(--surface-2);
}
.columns-menu > summary::after {
  content: " ▾";
  color: var(--muted);
}
.popup-menu-items {
  position: absolute;
  z-index: 3;
  right: 0;
  top: calc(100% + 4px);
  display: flex;
  flex-direction: column;
  min-width: 160px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  box-shadow: var(--shadow-pop);
  white-space: nowrap;
}
.popup-menu-items button {
  width: 100%;
  margin: 0;
  border: 0;
  background: transparent;
  font-weight: 500;
  text-align: left;
}
.popup-menu-items button:hover:not(:disabled) {
  background: var(--surface-2);
}
.columns-menu .popup-menu-items {
  min-width: 240px;
}
.columns-menu .popup-menu-items p {
  margin: 4px 8px 6px;
  white-space: normal;
}
.columns-menu input {
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0;
}
.columns-menu label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
}
.columns-menu label:hover {
  background: var(--surface-2);
}
.columns-menu label .meta {
  margin-left: auto;
  font-size: 11.5px;
}

/* Run page sections, drawn whole by renderRunGraphics (web_app_charts.js). */
#app section.run-graphic {
  margin: 10px 0 12px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.run-graphic.collapsed > :not(.graphic-heading) {
  display: none;
}
.graphic-heading {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}
.output-word-cloud .graphic-heading {
  gap: 0;
}
.graphic-heading h2 {
  margin: 0;
}
.graphic-heading > .graphic-note {
  margin-left: auto;
}
.graphic-toggle {
  margin-right: 8px;
}
.graphic-legend {
  margin-top: 10px;
}
.graphic-legend > span {
  display: inline-flex;
  margin-right: 4px;
  padding-right: 8px;
  padding-left: 10px;
  border-left: 3px solid;
  white-space: nowrap;
}
/* The job timeline's lanes (jobTimelineSection in web_app_charts.js). */
.lane-chart {
  display: grid;
  gap: 4px;
  margin-top: 12px;
}
.lane-row {
  display: grid;
  grid-template-columns: minmax(80px, 180px) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
.lane-label {
  min-height: 0;
  padding: 1px 0;
  overflow: hidden;
  border: 0;
  background: none;
  color: var(--text-2);
  font: 12.5px/1.4 var(--font-sans);
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lane-label:hover {
  background: none;
  color: var(--link);
  text-decoration: underline;
}
.lane-track {
  position: relative;
  height: min(18px, 100%);
  border-radius: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--line-soft) 0 1px,
    transparent 1px 25%
  );
}
.lane-bar {
  position: absolute;
  top: 3px;
  bottom: 3px;
  min-width: 3px;
  border-radius: 3px;
}
/* A job that recorded no finish: its span is drawn faint and open-ended. */
.lane-bar.open {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  opacity: 0.45;
}
.lane-bar.tone-ok,
.lane-swatch.tone-ok {
  background: var(--s-ok);
}
.lane-bar.tone-bad,
.lane-swatch.tone-bad {
  background: var(--s-bad);
}
.lane-bar.tone-run,
.lane-swatch.tone-run {
  background: var(--s-run);
}
.lane-bar.tone-warn,
.lane-swatch.tone-warn {
  background: var(--s-warn);
}
.lane-bar.tone-off,
.lane-swatch.tone-off {
  background: var(--s-off);
}
.lane-note {
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 18px;
}
.lane-axis {
  position: relative;
  height: 18px;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.lane-axis > span {
  position: absolute;
  top: 2px;
  transform: translateX(-50%);
  white-space: nowrap;
}
.lane-axis > span:first-child {
  transform: none;
}
.lane-axis > span:last-child {
  transform: translateX(-100%);
}
/* Many jobs: thin unlabelled lanes in one SVG of bounded height. */
.lane-dense {
  align-items: stretch;
}
.lane-ends {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
}
.lane-ends > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lane-plot {
  position: relative;
  min-width: 0;
}
.lane-plot svg {
  display: block;
  width: 100%;
  cursor: pointer;
}
.lane-grid {
  fill: var(--line-soft);
}
.lane-hover {
  fill: var(--link);
  opacity: 0.18;
}
.lane-rect.tone-ok {
  fill: var(--s-ok);
}
.lane-rect.tone-bad {
  fill: var(--s-bad);
}
.lane-rect.tone-run {
  fill: var(--s-run);
}
.lane-rect.tone-warn {
  fill: var(--s-warn);
}
.lane-rect.tone-off {
  fill: var(--s-off);
}
.lane-rect.open {
  opacity: 0.45;
}
.lane-tip {
  position: absolute;
  z-index: 3;
  right: 0;
  min-width: 220px;
  max-width: 320px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  box-shadow: var(--shadow-pop);
  font-size: 12px;
  pointer-events: none;
}
.lane-tip-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
}
.lane-tip-row > span:nth-child(2) {
  overflow: hidden;
  font-family: var(--font-mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lane-tip-row > span:last-child {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.lane-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 6px;
  color: var(--text-2);
  font-size: 12px;
}
.lane-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 2px;
  vertical-align: -1px;
}
.load-timeline {
  margin-top: 16px;
  overflow-x: auto;
}
.load-legend {
  display: flex;
  gap: 20px;
  margin-bottom: 8px;
}
.load-timeline svg {
  display: block;
  width: 100%;
  min-width: 520px;
}
.output-word-cloud-content {
  margin: 10px -4px 0;
  text-align: center;
}
.output-word-cloud-content > span {
  display: inline-block;
  margin: 4px 7px;
  line-height: 1.15;
}

/* Paging below a long table (paginateTable); shown only when needed. */
.table-pagination {
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 13px;
}
.project-runtime .runtime-details {
  margin-top: 10px;
}

/* A page's facts line (fact in web_app_core.js): "Label: value" entries. */
.facts .fact {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.facts .fact-label {
  margin-right: 3px;
  color: var(--muted);
}
.facts code {
  font-size: 12px;
}
.facts .identity-copy {
  width: 22px;
  height: 22px;
  min-height: 0;
  margin: 0;
  padding: 3px;
  border-color: transparent;
  background: transparent;
}

/* A run's own notes, above its command and cards. */
.run-notes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 14px;
}
.run-note {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--link);
  border-radius: 8px;
  background: var(--surface);
  text-align: left;
}
.run-note-meta {
  color: var(--muted);
  font-size: 12px;
}
.run-note-body > :first-child {
  margin-top: 2px;
}
.run-note-body > :last-child {
  margin-bottom: 0;
}

/* Four cards summarising a run (runCardsHTML). */
.run-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
  text-align: left;
}
.run-card {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.run-card-label {
  color: var(--muted);
  font-size: 12px;
}
.run-card-value {
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.run-card-value small {
  color: var(--text-2);
  font-size: 13px;
  font-weight: 400;
}
.run-card-bar {
  display: flex;
  gap: 2px;
  height: 6px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 3px;
}
.run-card-bar .tone-ok {
  background: var(--s-ok);
}
.run-card-bar .tone-bad {
  background: var(--s-bad);
}
.run-card-bar .tone-warn {
  background: var(--s-warn);
}
.run-card-bar .tone-run {
  background: var(--s-run);
}
.run-card-bar .tone-off {
  background: var(--s-off);
}
@media (max-width: 760px) {
  .run-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* The Activity page (web_app_activity.js): a month calendar, one day's
   timeline, and the projects worked on, across registered basedirs. */
.activity-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.activity-page > section {
  margin: 0;
}
.activity-problems {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.activity-problems:empty {
  display: none;
}
.activity-notice {
  padding: 8px 12px;
  border: 1px solid color-mix(in oklab, var(--link) 40%, var(--line));
  border-radius: 8px;
  background: color-mix(in oklab, var(--link) 8%, var(--surface));
  color: var(--text-2);
  font-size: 13px;
}
.activity-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.activity-toolbar h2 {
  min-width: 9.5em;
  margin: 0;
  font-size: 18px;
  text-align: center;
}
.activity-page button {
  min-height: 0;
  padding: 4px 11px;
  font-size: 12.5px;
}
.activity-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.activity-dow {
  padding: 0 6px 2px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.activity-page .activity-cell {
  display: flex;
  min-width: 0;
  min-height: 84px;
  flex-direction: column;
  gap: 3px;
  padding: 5px 7px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
}
.activity-cell.heat-1 {
  background: color-mix(in oklab, var(--link) 8%, var(--surface));
}
.activity-cell.heat-2 {
  background: color-mix(in oklab, var(--link) 15%, var(--surface));
}
.activity-cell.heat-3 {
  background: color-mix(in oklab, var(--link) 23%, var(--surface));
}
.activity-cell.heat-4 {
  background: color-mix(in oklab, var(--link) 32%, var(--surface));
}
.activity-cell.heat-5 {
  background: color-mix(in oklab, var(--link) 42%, var(--surface));
}
.activity-cell.outside {
  opacity: 0.45;
}
.activity-page .activity-cell:disabled {
  opacity: 0.35;
  cursor: default;
}
.activity-cell:not(:disabled):hover {
  border-color: var(--muted);
}
.activity-cell.selected {
  border-color: var(--link);
  box-shadow: 0 0 0 1px var(--link);
}
.activity-cell-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px;
}
.activity-day-number {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.activity-cell.today .activity-day-number {
  padding: 0 6px;
  border-radius: 999px;
  background: var(--text);
  color: var(--surface);
}
.activity-count {
  color: var(--text-2);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.activity-dots {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
}
.activity-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.activity-marks {
  display: flex;
  gap: 8px;
  margin-top: auto;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.activity-mark-bad {
  color: var(--s-bad);
}
.activity-mark-run {
  color: var(--s-run);
}
.activity-calendar-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: 12px;
  font-size: 12px;
}
.activity-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
}
.activity-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.activity-heat-key {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.activity-heat-key i {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
}
.activity-heat-key i.heat-1 {
  background: color-mix(in oklab, var(--link) 8%, var(--surface));
}
.activity-heat-key i.heat-2 {
  background: color-mix(in oklab, var(--link) 15%, var(--surface));
}
.activity-heat-key i.heat-3 {
  background: color-mix(in oklab, var(--link) 23%, var(--surface));
}
.activity-heat-key i.heat-4 {
  background: color-mix(in oklab, var(--link) 32%, var(--surface));
}
.activity-heat-key i.heat-5 {
  background: color-mix(in oklab, var(--link) 42%, var(--surface));
}
.activity-day-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 10px;
}
.activity-day-head h2 {
  margin: 0;
  font-size: 16px;
}
.activity-day-controls,
.activity-zoom {
  display: flex;
  align-items: center;
  gap: 6px;
}
.activity-zoom button[aria-pressed="true"] {
  border-color: var(--text);
  background: var(--text);
  color: var(--surface);
}
.activity-key {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-bottom: 8px;
  font-size: 12px;
}
.activity-key i {
  display: inline-block;
  width: 14px;
  height: 9px;
  margin-right: 5px;
  border-radius: 2px;
  vertical-align: middle;
}
.activity-key i.tone-ok,
.activity-bar.tone-ok {
  background: var(--s-ok);
}
.activity-key i.tone-bad,
.activity-bar.tone-bad {
  background: var(--s-bad);
}
.activity-key i.tone-warn,
.activity-bar.tone-warn {
  background: var(--s-warn);
}
.activity-key i.tone-run,
.activity-bar.tone-run {
  background: var(--s-run);
}
.activity-bar.tone-off {
  background: var(--s-off);
}
.activity-timeline-scroll {
  overflow-x: auto;
}
.activity-timeline {
  min-width: 640px;
}
.activity-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
}
.activity-track {
  position: relative;
  height: 28px;
}
.activity-lane .activity-track {
  border-bottom: 1px solid var(--line-soft);
}
.activity-axis .activity-track {
  height: 20px;
}
.activity-tick {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line-soft);
}
.activity-axis .activity-tick {
  background: none;
}
.activity-tick span,
.activity-now span {
  position: absolute;
  top: 2px;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.activity-tick.first span {
  transform: none;
}
.activity-tick.last span {
  transform: translateX(-100%);
}
.activity-now {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--link);
}
.activity-now span {
  left: 4px;
  transform: none;
  color: var(--link);
}
.activity-page .activity-basedir {
  display: flex;
  width: 100%;
  align-items: baseline;
  gap: 8px;
  padding: 10px 0 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: none;
  color: var(--text);
  text-align: left;
}
.activity-caret {
  display: inline-block;
  width: 1em;
  color: var(--muted);
  transition: transform 120ms;
}
.activity-basedir[aria-expanded="false"] .activity-caret {
  transform: rotate(-90deg);
}
.activity-lane-label,
.activity-project-name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  padding-right: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.activity-chip {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.activity-bar {
  position: absolute;
  z-index: 1;
  top: 5px;
  height: 18px;
  min-width: 4px;
  overflow: hidden;
  padding: 0 6px;
  border-radius: 4px;
  box-shadow: 0 0 0 2px var(--surface);
  color: var(--surface);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 18px;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.activity-bar:hover {
  z-index: 3;
  filter: brightness(1.1);
}
.activity-bar.running {
  background: repeating-linear-gradient(
    135deg,
    var(--s-run) 0 8px,
    color-mix(in oklab, var(--s-run) 70%, var(--surface)) 8px 16px
  );
}
.activity-bar.cut-start {
  padding-left: 12px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.activity-bar.cut-start::before {
  content: "‹";
  position: absolute;
  left: 3px;
}
.activity-bar.cut-end {
  padding-right: 12px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.activity-bar.cut-end::after {
  content: "›";
  position: absolute;
  right: 3px;
}
.activity-actor {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: var(--muted);
  font-size: 12.5px;
}
.activity-actor-mark {
  margin-right: 3px;
  font-size: 10px;
}
.activity-more {
  margin-top: 10px;
}
.activity-empty {
  padding: 18px 4px;
}
.activity-table-scroll {
  overflow-x: auto;
}
.activity-project-table tbody tr {
  cursor: pointer;
}
.activity-project-table td {
  vertical-align: top;
}
.activity-mono {
  font-family: var(--font-mono);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.activity-last-run,
.activity-runs {
  white-space: nowrap;
}
.activity-runs {
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.activity-card {
  position: fixed;
  z-index: 40;
  max-width: min(360px, calc(100vw - 24px));
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  box-shadow: var(--shadow-pop);
  font-size: 13px;
  pointer-events: none;
}
.activity-card h3 {
  margin: 0 0 4px;
  font-size: 14px;
}
.activity-card dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 10px;
  margin: 6px 0 0;
}
.activity-card dt {
  color: var(--muted);
}
.activity-card dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.activity-card-note {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}
@media (max-width: 640px) {
  .activity-page .activity-cell {
    min-height: 58px;
    padding: 4px 5px;
  }
  .activity-count-unit,
  .activity-more-dots {
    display: none;
  }
  .activity-cell-head {
    flex-wrap: wrap;
  }
  .activity-row {
    grid-template-columns: 120px minmax(0, 1fr);
  }
}
