/* Zado family dashboard — base: structure and states, lo-fi. Colours and fonts come from theme.css tokens. */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 1rem; line-height: 1.4; }
.app { max-width: 40rem; margin: 0 auto; padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
h1, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
h1 { font-size: 1.4rem; line-height: 1.15; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
h1:focus { outline: none; }
.view, .orders { display: grid; gap: 12px; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.brand { font-weight: 700; }
.rule, .summary, .empty, .pay { color: var(--muted); font-size: 0.9rem; }
.etat { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 10px 12px; background: var(--fill); font-weight: 600; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 14px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper); color: var(--ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn-main, .btn-choice[aria-pressed="true"], .btn[data-action="pause"][aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.btn[disabled] { opacity: 0.4; }
.link { border: 0; background: none; padding: 0; min-height: 48px; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; }
.filters, .tools, .row { display: flex; flex-wrap: wrap; gap: 8px; }
.field { display: grid; gap: 4px; }
.field label { font-weight: 600; }
.field input { width: 100%; min-height: 48px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem; }
.field input[data-field="code"] { text-transform: uppercase; } /* the personal code only: a relay's name keeps its own letters */
.error { color: var(--danger); font-size: 0.9rem; font-weight: 600; }
.order { display: grid; gap: 6px; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.order-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ref { font-size: 1.15rem; letter-spacing: 0.06em; }
.tag { border: 1.5px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: 0.85rem; font-weight: 600; }
.order[data-status="declaree"] .tag { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
