/* Deadlock. The accent marks the thing this machine is about and nothing else.

   Everything above the first machine-specific rule is the floor every page on
   this studio needs, and it is generated rather than remembered: four separate
   gates caught all four of these missing on all five machines built on
   2026-08-17, and every one of them is invisible in a screenshot. */

:root { --accent: var(--la-instrument); }

/* Leaving the background out is the invisible one: the browser paints a dark
   canvas from color-scheme, so the page looks right while having no background
   colour at all, and a contrast checker then measures against white and is
   correct to fail it. */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--la-font-ui);
  background: var(--la-page);
  color: var(--la-ink);
  line-height: var(--la-leading-body);
  -webkit-font-smoothing: antialiased;
}

/* No .dl-sr here on purpose. The shared shell declares [class$="-sr"] once,
   because forty-five machines each carrying their own copy is how five of them
   came to be missing it entirely -- see logical-art.css. */

.dl-steplabel { margin: var(--la-space-5) 0 var(--la-space-2); font-weight: 600; color: var(--la-ink); }
.dl-stepno {
  display: inline-block; min-width: 1.6rem; margin-right: 0.5rem;
  padding: 0.05rem 0.5rem; border: 1px solid var(--la-hairline-strong);
  border-radius: 999px; font-family: var(--la-font-mono);
  font-size: var(--la-text-xs); color: var(--la-ink-dim); text-align: center;
}
.dl-hint { margin: 0 0 var(--la-space-3); color: var(--la-ink-dim); }

.dl-knob { margin: var(--la-space-3) 0; }
.dl-knob label { display: block; margin-bottom: 0.35rem; color: var(--la-ink-dim); font-size: var(--la-text-sm); }
.dl-value { color: var(--accent); font-family: var(--la-font-mono); }
.dl-range { width: 100%; max-width: 24rem; accent-color: var(--accent); }
.dl-input {
  width: 100%; max-width: 30rem; padding: 0.45rem 0.6rem;
  border: 1px solid var(--la-hairline-strong); border-radius: var(--la-radius-sm, 4px);
  background: var(--la-sunken); color: var(--la-ink);
  font-family: var(--la-font-mono); font-size: var(--la-text-sm);
}
.dl-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.dl-presets { display: flex; flex-wrap: wrap; gap: var(--la-space-2); margin: var(--la-space-3) 0; }
.dl-btn {
  padding: 0.45rem 0.9rem; border: 1px solid var(--la-hairline-strong);
  border-radius: var(--la-radius-sm, 4px); background: var(--la-raised);
  color: var(--la-ink); font-family: var(--la-font-mono); font-size: var(--la-text-sm);
  cursor: pointer;
}
.dl-btn:hover { border-color: var(--accent); }
.dl-btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.dl-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.dl-table { width: 100%; border-collapse: collapse; font-size: var(--la-text-sm); }
.dl-table th, .dl-table td {
  text-align: left; padding: 0.35rem 0.6rem; border-bottom: 1px solid var(--la-hairline);
}
.dl-table thead th {
  font-size: var(--la-text-xs); letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--la-ink-dim); font-weight: 600;
}
.dl-table tbody th, .dl-table td {
  font-family: var(--la-font-mono); font-size: 0.8rem; color: var(--la-ink-dim); font-weight: 400;
}
/* The row that matters, marked by a rule and by a word in its own cell as well
   as by colour, so it survives forced colours and a monochrome print. */
.dl-table tr[data-mark="yes"] td { color: var(--accent); }
.dl-table tr[data-mark="yes"] th {
  border-left: 3px solid var(--accent); padding-left: 0.45rem; color: var(--accent);
}

.dl-readout { margin: var(--la-space-4) 0 0; }
.dl-row {
  display: flex; justify-content: space-between; gap: var(--la-space-3);
  padding: 0.4rem 0; border-bottom: 1px solid var(--la-hairline);
}
.dl-row dt { color: var(--la-ink-dim); font-size: var(--la-text-sm); }
.dl-num { font-family: var(--la-font-mono); color: var(--la-ink); margin: 0; word-break: break-all; }
.dl-row.dl-strong dd { color: var(--accent); }

.dl-verdict { margin: var(--la-space-3) 0 0; color: var(--la-ink-dim); font-size: var(--la-text-sm); }
.dl-verdict[data-mark="yes"] { border-left: 3px solid var(--accent); padding-left: 0.7rem; }

/* Four things every machine built since has needed, added here after the
   fifth one hand-wrote its own copy of rules the floor already emitted:
   a caption above a table, a warning line that styles itself only when it has
   something to say, a disabled control, and the pass/fail marks a load-time
   verification table uses. Written once so the next machine does not write
   them a sixth time slightly differently. */
.dl-caption { margin: var(--la-space-4) 0 var(--la-space-2); color: var(--la-ink-dim); font-size: var(--la-text-sm); }

.dl-warn { margin: var(--la-space-3) 0 0; color: var(--la-ink); font-size: var(--la-text-sm); }
.dl-warn:empty { display: none; }
.dl-warn:not(:empty) { border-left: 3px solid var(--accent); padding-left: 0.7rem; }

.dl-btn:disabled { opacity: 0.45; cursor: default; }
.dl-btn:hover:not(:disabled) { border-color: var(--accent); }

.dl-table tr[data-mark="bad"] td { color: var(--accent); }
.dl-table tr[data-mark="bad"] th { border-left: 3px solid var(--accent); padding-left: 0.45rem; }
.dl-table tr[data-mark="here"] { background: var(--la-raised); }

/* A bit has no step labels, so nothing separates one panel from the next and
   the last line of one runs into the first line of the other. */
.dl-step + .dl-step { margin-top: var(--la-space-6); }

/* The drawing, which every machine has and every machine has styled itself. */
.dia .dia-lede { fill: var(--la-ink); font-size: 16px; }

/* ---- the table, which is a real table with forks on it ---------------------
 * Named -seats rather than -table because the floor already declares -table
 * for the tabular kind, and one page cannot mean both by one word.
 */
.dl-seats { display: flex; flex-wrap: wrap; gap: var(--la-space-1); margin: var(--la-space-2) 0; }

.dl-seat {
  display: flex; flex-direction: column; gap: 0.15rem;
  padding: 0.5rem 0.7rem; border-radius: 0.3rem;
  background: var(--la-raised); border: 1px solid var(--la-hairline);
  min-width: 9rem;
}
/* A philosopher who is holding one fork and waiting for the other. The border
   carries it as well as the word in the seat, so it survives forced colours. */
.dl-seat[data-waiting="yes"] { border-color: var(--accent); }
.dl-who { color: var(--la-ink); font-size: var(--la-text-sm); }
.dl-forks { font-family: var(--la-font-mono); font-size: var(--la-text-xs); color: var(--la-ink-dim); }

.dl-knob select {
  font-family: var(--la-font-mono); background: var(--la-sunken); color: var(--la-ink);
  border: 1px solid var(--la-hairline-strong); border-radius: var(--la-radius-sm, 4px);
  padding: 0.4rem 0.6rem; min-height: 2.75rem;
}

