/* NEO Console, in the Passenger layout (brand/design-system.md): black and white, mono for the data, heavy sans caps for
   labels, titles and the big numbers, red only where something is wrong. No boxes, no extra colours. */
:root {
  --ink: #0A0A0A; --paper: #FFFFFF; --rule: #D8D8D8; --muted: #7A7A7A; --signal: #E4002B;
  --mono: "Courier New", Courier, monospace;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14px/1.5 var(--mono); }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
a:hover, a:focus-visible { text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* the bar */
.top { display: flex; align-items: center; gap: 28px; padding: 18px 40px; border-bottom: 1px solid var(--ink); flex-wrap: wrap; }
.mark { display: inline-flex; text-decoration: none; }
.mark img { height: 20px; width: auto; display: block; }
.sub, .label, .stat-name, th, nav a, .me .role, footer, .tabs a, .pipeline, dt, label, summary, button, .button {
  font-family: var(--sans); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px;
}
.sub { margin-left: -16px; color: var(--muted); }
nav { display: flex; gap: 22px; flex: 1; }
nav a { text-decoration: none; color: var(--muted); padding: 4px 0; border-bottom: 2px solid transparent; }
nav a:hover { color: var(--ink); }
nav a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }
.me { display: flex; align-items: center; gap: 12px; }
.me .role { color: var(--muted); }
.me form { margin: 0; }
.trial { margin: 0; padding: 8px 40px; background: var(--ink); color: var(--paper); font-size: 12px; }

main { padding: 28px 40px 64px; max-width: 1440px; }
footer { display: flex; justify-content: space-between; padding: 18px 40px; border-top: 1px solid var(--rule); color: var(--muted); }

.label { margin: 40px 0 12px; }
main > .label:first-child { margin-top: 0; }
h1 { font: 700 34px/1.1 var(--sans); text-transform: uppercase; letter-spacing: -0.02em; margin: 0 0 6px; }
.lead { margin: 0 0 12px; }
.muted, .quiet, .fresh, .sm, .hid { color: var(--muted); }
.fresh { margin-top: 40px; font-size: 12px; }
.bad { color: var(--signal); }
.note { font-style: italic; }
code { font-family: var(--mono); background: none; }

/* the figures: one hero, then a row, no boxes */
.figures { display: flex; gap: 64px; align-items: flex-end; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--rule); }
.stats { display: flex; gap: 48px; flex-wrap: wrap; }
.stat-name { margin: 0 0 6px; color: var(--muted); }
.hero-value { font: 700 64px/1 var(--sans); letter-spacing: -0.02em; margin: 0; }
.stat-value { font: 700 28px/1.1 var(--sans); letter-spacing: -0.01em; margin: 0; }
.stat-note { margin: 6px 0 0; color: var(--muted); font-size: 12px; }

/* needs attention */
.attention { list-style: none; margin: 0; padding: 0; }
.attention li { display: flex; gap: 24px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.attention li a { min-width: 220px; }
.attention li:first-child { border-top: 1px solid var(--rule); }

/* the pipeline */
.pipeline { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.pipeline li { flex: 1; min-width: 110px; }
.pipeline a { display: block; padding: 12px 16px 12px 0; text-decoration: none; color: var(--muted); }
.pipeline a:hover { color: var(--ink); }
.pipeline .n { display: block; font-size: 28px; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 2px; }

/* tables */
.wide { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th { text-align: left; color: var(--muted); padding: 8px 16px 8px 0; border-bottom: 1px solid var(--ink); white-space: nowrap; }
td { padding: 10px 16px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.r { text-align: right; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
td .sm { display: block; font-size: 12px; margin-top: 2px; }
table.list td:first-child a { white-space: nowrap; }
td.sm-cell { font-size: 12px; max-width: 420px; }
td.sig { width: 24px; font-family: var(--sans); }
table.compact td { padding: 7px 16px 7px 0; }
tbody tr:hover td { background: #FAFAFA; }

.tabs { display: flex; gap: 22px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.tabs a { text-decoration: none; color: var(--muted); padding-bottom: 3px; border-bottom: 2px solid transparent; }
.tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }
.chip { font-family: var(--sans); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.chip a { text-decoration: none; margin-left: 4px; }

/* one client */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; }
dl.kv { display: grid; grid-template-columns: 200px 1fr; margin: 0; }
dl.kv dt { color: var(--muted); padding: 8px 0; border-bottom: 1px solid var(--rule); }
dl.kv dd { margin: 0; padding: 7px 0; border-bottom: 1px solid var(--rule); }
.history { list-style: none; margin: 0; padding: 0; font-size: 12px; }
.history li { padding: 6px 0; border-bottom: 1px solid var(--rule); }
.history .num { color: var(--muted); margin-right: 8px; }

/* forms */
details.edit { margin-top: 14px; }
details.edit summary { cursor: pointer; color: var(--muted); list-style: none; }
details.edit summary::before { content: "+ "; }
details.edit[open] summary::before { content: "− "; }
details.edit form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; padding: 16px 0; }
label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
input, select { font: 14px var(--mono); color: var(--ink); background: var(--paper); border: 0; border-bottom: 1px solid var(--ink); padding: 6px 0; border-radius: 0; }
input:focus, select:focus { outline: none; border-bottom-width: 2px; padding-bottom: 5px; }
button, .button { background: var(--ink); color: var(--paper); border: 0; padding: 10px 18px; cursor: pointer; text-decoration: none; display: inline-block; justify-self: start; align-self: end; }
.me button { background: none; color: var(--muted); padding: 4px 0; }
.me button:hover { color: var(--ink); }

/* sign in */
.door { max-width: 380px; margin: 48px auto; display: flex; flex-direction: column; gap: 18px; }
.wide-door { max-width: 520px; }
.door h1 { font-size: 28px; }
.door p { margin: 0; }
.qr { width: 200px; height: 200px; image-rendering: pixelated; }
.key code { font-size: 16px; letter-spacing: 0.05em; }

@media (max-width: 900px) {
  .top, main, footer, .trial { padding-left: 20px; padding-right: 20px; }
  nav { order: 3; flex-basis: 100%; overflow-x: auto; }
  .cols { grid-template-columns: 1fr; }
  .figures { gap: 32px; }
  .hero-value { font-size: 48px; }
  dl.kv { grid-template-columns: 140px 1fr; }
  details.edit form { grid-template-columns: 1fr; }
  .attention li { flex-direction: column; gap: 2px; }
}
@media print { .top nav, .me, details.edit, .button { display: none; } }

/* the workshop: forms to make agents and builds, the push queue, the matrix. Same rules, no boxes, red only where wrong */
textarea { font: 14px var(--mono); color: var(--ink); background: var(--paper); border: 0; border-bottom: 1px solid var(--ink);
  padding: 6px 0; border-radius: 0; resize: vertical; min-height: 56px; }
textarea:focus { outline: none; border-bottom-width: 2px; padding-bottom: 5px; }
input[readonly] { color: var(--muted); border-bottom-style: dotted; }
form.make { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px; max-width: 1000px; margin-top: 16px; }
form.make .full { grid-column: 1 / -1; }
form.make p.label { margin: 16px 0 0; }
.hint { color: var(--muted); font: 12px var(--sans); text-transform: none; letter-spacing: 0; font-weight: 400; }
fieldset.ticks { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 20px; }
fieldset.ticks legend { font: 700 11px var(--sans); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 0 0 8px; }
label.tick { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0 8px; color: var(--ink); text-transform: none; letter-spacing: 0;
  font: 13px var(--mono); padding: 4px 0; }
label.tick .sm { flex-basis: 100%; padding-left: 22px; }
form.inline { display: flex; gap: 16px; align-items: end; flex-wrap: wrap; margin: 8px 0; }
form.inline label { min-width: 180px; }
.quiet-button { background: none; color: var(--muted); padding: 10px 0; }
.quiet-button:hover { color: var(--ink); }
ul.plain { list-style: none; padding: 0; margin: 0 0 16px; }
ul.plain li { padding: 7px 0; border-bottom: 1px solid var(--rule); }
ul.plain li .sm { display: block; }
ul.queue { list-style: none; padding: 0; margin: 0 0 24px; }
ul.queue li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
ul.queue li p { margin: 0 0 4px; }
table.matrix th.c, table.matrix td.c { text-align: center; padding-left: 6px; padding-right: 6px; }
table.matrix th.c a { text-decoration: none; }
table.matrix th.c .sm { display: block; text-transform: none; letter-spacing: 0; font-weight: 400; }
@media (max-width: 900px) {
  form.make { grid-template-columns: 1fr; }
  form.inline { flex-direction: column; align-items: stretch; }
}
.cols > div { min-width: 0; }
dl.kv dd { min-width: 0; overflow-wrap: anywhere; }
