/* Hallmark · shape: app screen · genre: playful · theme: Werkstatt (shared with unit2-aloha, deal manual) · redesign: full
 * nav: top bar, wordmark left, the one-line subject right · signature: the router's queue drawn tick by tick against its buffer limit, with the five approaches scored on the same traffic beside it · states: policy selected, scenario switched, overloaded, calm, no-script · werkstatt: putty
 * axes: mid/geometric-sans/cool · posture: full-palette · contrast: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V3 · weakest: V, same system as the other tools on purpose; the signature is the queue chart and the scoreboard */
@import url("./tokens.css");
@import url("./base.css");
.container { max-width: 1180px; }
.bar { border-bottom: var(--rule-bar) solid var(--color-ink); }
.bar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-sm); padding-block: var(--space-md); }
.bar b { font-family: var(--font-display); font-size: var(--text-lg); text-transform: uppercase; letter-spacing: var(--tracking-display); }
.bar span { color: var(--color-muted); font-weight: 600; font-size: var(--text-sm); }
main { padding-block: var(--space-xl) var(--space-3xl); display: grid; gap: var(--space-lg); }
h1 { font-size: var(--text-3xl); text-transform: uppercase; max-width: none; }
h2 { text-transform: uppercase; font-size: var(--text-xl); }
.intro { display: grid; gap: var(--space-xs); }
.intro p { color: var(--color-muted); max-width: 62ch; }

.sheet { border: var(--rule-box) solid var(--color-ink); background: var(--color-paper-3); display: grid; }
.sheet > * + * { border-top: var(--rule-box) solid var(--color-ink); }
.cell { padding: var(--space-md) var(--space-lg); display: grid; gap: var(--space-sm); }
.cell > h2 { margin-bottom: var(--space-2xs); }


.field { display: grid; gap: var(--space-xs); }
.field > label, .field > span { font-weight: 600; font-size: var(--text-sm); color: var(--color-muted); }
.pf { flex-direction: column; gap: var(--space-2xs); padding: var(--space-xs) 0; min-height: 52px; line-height: 1; }
.pf small { font-size: var(--text-xs); font-weight: 600; text-transform: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 var(--space-md); border: var(--rule-bar) solid var(--color-ink); border-radius: 0; background: transparent; color: var(--color-ink); font: 600 var(--text-sm)/1 var(--font-body); text-transform: uppercase; cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-paper-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, input:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.row { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
input[type=text], input[type=number] { min-height: 44px; padding: 0 var(--space-sm); border: var(--rule-bar) solid var(--color-ink); border-radius: 0; background: var(--color-paper); color: var(--color-ink); font: 600 var(--text-md)/1 var(--font-body); width: 100%; font-variant-numeric: tabular-nums; }
.msg { min-height: 3.2em; font-weight: 600; }
.msg.bad { color: var(--color-accent-2-deep); }
.msg.good { color: var(--color-accent); }






.controls { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); }
.controls > * { padding: var(--space-md) var(--space-lg); }
.controls > * + * { border-left: var(--rule-bar) solid var(--color-ink); }
select { height: 44px; align-self: start; min-height: 44px; padding: 0 var(--space-sm); border: var(--rule-bar) solid var(--color-ink); border-radius: 0; background: var(--color-paper); color: var(--color-ink); font: 600 var(--text-md)/1 var(--font-body); width: 100%; }
select:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.seg { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-xs); }
.seg .btn { padding: var(--space-xs); min-height: 56px; line-height: 1.1; text-align: center; }
.seg .btn[aria-pressed=true] { background: var(--color-accent-3); box-shadow: inset 0 0 0 2px var(--color-ink); }
.about { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.about > div { padding: var(--space-md) var(--space-lg); display: grid; gap: var(--space-xs); align-content: start; }
.about > div + div { border-left: var(--rule-bar) solid var(--color-ink); }
.about h2 { font-size: var(--text-xl); }
.about small { color: var(--color-muted); font-weight: 600; font-size: var(--text-sm); }
.charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--color-paper); }
.charts > * + * { border-left: var(--rule-bar) solid var(--color-ink); }
.chart { padding: var(--space-md); display: grid; gap: var(--space-xs); }
.chart h2 { font-size: var(--text-lg); padding-inline: var(--space-xs); }
.chart canvas { width: 100%; height: auto; }
.legend { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); padding: var(--space-sm) var(--space-lg); font-size: var(--text-sm); font-weight: 600; color: var(--color-muted); }
.legend span { display: inline-flex; align-items: center; gap: var(--space-xs); }
.legend i { width: 16px; height: 16px; border: var(--rule-bar) solid var(--color-ink); background: var(--color-paper-3); }
.legend .k-q { background: var(--color-accent); } .legend .k-d { background: var(--color-accent-2-deep); }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; border-top: var(--rule-bar) solid var(--color-ink); font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: var(--space-sm) var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); white-space: nowrap; }
th { font-size: var(--text-sm); font-weight: 600; color: var(--color-muted); }
td:first-child { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; }
tr.sel td { background: var(--color-accent-3); }
.tiny { color: var(--color-muted); font-size: var(--text-sm); }
.note { padding: var(--space-md) var(--space-lg); }
.note p { max-width: 75ch; }
@media (max-width: 60rem) {
  .controls, .about, .charts { grid-template-columns: 1fr; }
  .controls > * + *, .about > div + div, .charts > * + * { border-left: 0; border-top: var(--rule-bar) solid var(--color-ink); }
  .seg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :root { --text-3xl: 1.728rem; }
}
