/* Profilog / Kronos line monitor - design system
   Tokens first, then base, components, screens. System fonts only, no inline styles (CSP). */

/* ------------------------------------------------------------ tokens */
:root {
  color-scheme: dark;
  /* type */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, Menlo, monospace;
  --fs-xs: .75rem; --fs-sm: .8125rem; --fs-base: .9375rem; --fs-md: 1.0625rem;
  --fs-lg: 1.25rem; --fs-xl: 1.5rem; --fs-2xl: 1.875rem;
  /* spacing, radius */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px;
  --r-1: 4px; --r-2: 8px; --r-3: 12px; --r-pill: 999px;
  --tap: 44px;
  /* motion */
  --t-fast: 120ms; --t-med: 200ms;
  /* colour: dark (default) */
  --bg: #0f141b; --surface: #171e27; --surface-2: #1e2733; --surface-3: #263243;
  --border: #2c3846; --border-strong: #3d4c5f;
  --text: #e8edf3; --muted: #9aa8b8;
  --accent: #5eb4ff; --accent-fg: #04121f; --accent-soft: #14304d; --focus: #7cc4ff;
  --value-bg: #0b1016; --value: #8fe3ff; --set: #ffd27a; --off: #5d6a7a;
  --zebra: rgba(255, 255, 255, .03); --hover: rgba(255, 255, 255, .06);
  --ok: #4cd48a; --ok-bg: #123524; --ok-fg: #8ff0b8;
  --warn: #f5b83d; --warn-bg: #3d2f0c; --warn-fg: #ffd479;
  --err: #ff6b6b; --err-bg: #4a1519; --err-fg: #ffb4b4;
  --info-bg: #14304d; --info-fg: #9fd0ff;
  --idle-bg: #263243; --idle-fg: #b6c2d0;
  --banner-err-bg: #b42329; --banner-err-fg: #ffffff;
  --banner-warn-bg: #f5b83d; --banner-warn-fg: #1a1200;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 18px rgba(0, 0, 0, .25);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --bg: #eef1f5; --surface: #ffffff; --surface-2: #f3f5f8; --surface-3: #e6ebf1;
    --border: #cdd5df; --border-strong: #a9b4c1;
    --text: #14202c; --muted: #4b5a6b;
    --accent: #0b63c5; --accent-fg: #ffffff; --accent-soft: #dbe9fa; --focus: #0b63c5;
    --value-bg: #f3f7fb; --value: #0a4a85; --set: #7a4a00; --off: #8c98a6;
    --zebra: rgba(20, 32, 44, .035); --hover: rgba(20, 32, 44, .06);
    --ok: #137a43; --ok-bg: #dcf4e6; --ok-fg: #0b5a31;
    --warn: #a86a00; --warn-bg: #fff0c9; --warn-fg: #6b4500;
    --err: #c62828; --err-bg: #fde0e0; --err-fg: #9b1c1c;
    --info-bg: #dbe9fa; --info-fg: #0a4a85;
    --idle-bg: #e6ebf1; --idle-fg: #3f4d5d;
    --shadow: 0 1px 2px rgba(20, 32, 44, .12), 0 6px 18px rgba(20, 32, 44, .08);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eef1f5; --surface: #ffffff; --surface-2: #f3f5f8; --surface-3: #e6ebf1;
  --border: #cdd5df; --border-strong: #a9b4c1;
  --text: #14202c; --muted: #4b5a6b;
  --accent: #0b63c5; --accent-fg: #ffffff; --accent-soft: #dbe9fa; --focus: #0b63c5;
  --value-bg: #f3f7fb; --value: #0a4a85; --set: #7a4a00; --off: #8c98a6;
  --zebra: rgba(20, 32, 44, .035); --hover: rgba(20, 32, 44, .06);
  --ok: #137a43; --ok-bg: #dcf4e6; --ok-fg: #0b5a31;
  --warn: #a86a00; --warn-bg: #fff0c9; --warn-fg: #6b4500;
  --err: #c62828; --err-bg: #fde0e0; --err-fg: #9b1c1c;
  --info-bg: #dbe9fa; --info-fg: #0a4a85;
  --idle-bg: #e6ebf1; --idle-fg: #3f4d5d;
  --shadow: 0 1px 2px rgba(20, 32, 44, .12), 0 6px 18px rgba(20, 32, 44, .08);
}
@media (min-width: 1800px) { html { font-size: 18px; } }
@media (min-width: 2400px) { html { font-size: 21px; } }

/* ------------------------------------------------------------ base */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text);
  font: var(--fs-base)/1.45 var(--font); -webkit-font-smoothing: antialiased; }
body.app { height: 100vh; height: 100dvh; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-1); }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--sp-2); top: -60px; z-index: 50; padding: var(--sp-2) var(--sp-3);
  background: var(--accent); color: var(--accent-fg); border-radius: var(--r-2); font-weight: 600; }
.skip:focus { top: var(--sp-2); }
a { color: var(--accent); }

/* ------------------------------------------------------------ buttons, inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 40px; padding: 0 var(--sp-4); border: 1px solid var(--border-strong); border-radius: var(--r-2);
  background: var(--surface-2); color: var(--text); font-weight: 600; font-size: var(--fs-sm);
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast); }
.btn:hover:not(:disabled) { background: var(--surface-3); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn-primary:hover:not(:disabled) { background: var(--accent); filter: brightness(1.1); }
.btn-danger { background: var(--err-bg); border-color: var(--err); color: var(--err-fg); }
.btn-danger:hover:not(:disabled) { background: var(--err-bg); filter: brightness(1.15); }
.btn-ghost { background: transparent; border-color: var(--border); }
.btn-sm { min-height: 32px; padding: 0 var(--sp-3); }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 1px solid var(--border); border-radius: var(--r-2); background: var(--surface-2); color: var(--text);
  font-size: 1.05rem; line-height: 1; transition: background var(--t-fast); }
.icon-btn:hover { background: var(--surface-3); }
@media (pointer: coarse) { .btn { min-height: var(--tap); } .btn-sm { min-height: 38px; } .icon-btn { width: var(--tap); height: var(--tap); } }

input, textarea, select { width: 100%; min-height: 40px; padding: var(--sp-2) var(--sp-3); background: var(--value-bg);
  color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--r-2);
  transition: border-color var(--t-fast), box-shadow var(--t-fast); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .85; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
input[type="checkbox"] { width: 1.1rem; min-height: 0; height: 1.1rem; accent-color: var(--accent); padding: 0; }
textarea { resize: vertical; min-height: 7rem; line-height: 1.45; }
label { font-weight: 600; font-size: var(--fs-sm); }
.field { display: grid; gap: var(--sp-1); }
.help { color: var(--muted); font-size: var(--fs-xs); }

/* ------------------------------------------------------------ header */
.top { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); padding: var(--sp-2) var(--sp-4);
  background: var(--surface); border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; }
.brand-mark { width: 32px; height: 32px; flex: none; color: var(--accent); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo { font-weight: 800; letter-spacing: .14em; font-size: var(--fs-md); text-transform: uppercase; }
.sub { font-size: var(--fs-xs); color: var(--muted); }
.screen-title { flex: 1 1 12rem; margin: 0; text-align: center; font-size: var(--fs-lg); font-weight: 650; letter-spacing: -.005em; }
.status { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: var(--sp-2); }
.clock { font: 600 var(--fs-md) var(--mono); font-variant-numeric: tabular-nums; min-width: 5.6em; text-align: right; }
.user { display: flex; align-items: center; gap: var(--sp-2); padding-left: var(--sp-3); border-left: 1px solid var(--border); }
.user-name { font-weight: 600; font-size: var(--fs-sm); max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* chips: colour + glyph + text */
.chip { display: inline-flex; align-items: center; gap: .4em; padding: 2px 10px; border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .02em; background: var(--idle-bg); color: var(--idle-fg);
  border: 1px solid transparent; white-space: nowrap; --glyph: "\25CB"; }
.chip::before { content: var(--glyph); font-size: .9em; line-height: 1; }
.chip.ok { background: var(--ok-bg); color: var(--ok-fg); border-color: var(--ok); --glyph: "\2713"; }
.chip.warn { background: var(--warn-bg); color: var(--warn-fg); border-color: var(--warn); --glyph: "\25B2"; }
.chip.err { background: var(--err-bg); color: var(--err-fg); border-color: var(--err); --glyph: "\2715"; }
.chip.info { background: var(--info-bg); color: var(--info-fg); border-color: transparent; --glyph: "\25CF"; }
.chip.plain::before { content: none; }
.chip.role { text-transform: uppercase; font-size: .68rem; }

.alarm-count { display: inline-flex; align-items: center; gap: .4em; min-width: 48px; justify-content: center;
  padding: 4px 12px; border: 1px solid var(--border-strong); border-radius: var(--r-2);
  font: 700 var(--fs-md) var(--mono); background: var(--surface-2); color: var(--text); }
.alarm-count.active { background: var(--banner-err-bg); border-color: var(--banner-err-bg); color: var(--banner-err-fg);
  animation: pulse 1.8s ease-in-out infinite; }
.alarm-count.active::before { content: "\25B2"; font-size: .8em; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, .55); } 50% { box-shadow: 0 0 0 6px rgba(255, 107, 107, 0); } }

/* alarm banner */
.banner-wrap { background: var(--surface); border-bottom: 1px solid var(--border); }
.banner { display: flex; align-items: center; gap: var(--sp-3); width: 100%; padding: var(--sp-2) var(--sp-4); border: 0; border-radius: 0;
  background: var(--surface-2); color: var(--muted); font-weight: 600; text-align: left; min-height: 38px;
  transition: background var(--t-med), color var(--t-med); }
.banner::before { content: "\2713"; flex: none; width: 1.4em; text-align: center; color: var(--ok); }
.banner-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.banner-sev { font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; padding: 1px 8px; border-radius: var(--r-pill);
  border: 1px solid currentColor; flex: none; }
.banner.error { background: var(--banner-err-bg); color: var(--banner-err-fg); }
.banner.warning { background: var(--banner-warn-bg); color: var(--banner-warn-fg); }
.banner.error::before, .banner.warning::before { content: "\25B2"; color: inherit; }
.banner:focus-visible { outline-offset: -3px; border-radius: 0; }

/* ------------------------------------------------------------ main + nav */
main { overflow: auto; padding: var(--sp-4); scroll-behavior: smooth; }
main:focus { outline: none; }
main.enter > * { animation: rise var(--t-med) ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.fkeys { background: var(--surface); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); }
.fkeys-inner { display: flex; gap: var(--sp-1); padding: var(--sp-2); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.fkey { position: relative; flex: 1 0 auto; min-width: 5.6rem; min-height: var(--tap); display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 1px; padding: var(--sp-1) var(--sp-3); scroll-snap-align: center;
  border: 1px solid var(--border); border-radius: var(--r-2); background: var(--surface-2); color: var(--text);
  font-size: var(--fs-sm); font-weight: 600; line-height: 1.15; transition: background var(--t-fast), border-color var(--t-fast); }
.fkey:hover { background: var(--surface-3); }
.fkey .k { font: 600 .65rem var(--mono); color: var(--muted); letter-spacing: .06em; }
.fkey.sel { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.fkey.sel .k { color: inherit; opacity: .85; }
.fkey .badge { position: absolute; top: -6px; right: -4px; min-width: 20px; padding: 0 6px; border-radius: var(--r-pill);
  background: var(--banner-err-bg); color: #fff; border: 2px solid var(--surface); font: 700 .7rem/1.5 var(--mono); text-align: center; }
.fkey.admin { border-style: dashed; }
@media (min-width: 1100px) { .fkey { flex: 1 1 0; } }

/* ------------------------------------------------------------ cards, overview */
.flow { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: var(--sp-3); align-items: start; }
.stage-title { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--sp-3); margin: var(--sp-3) 0 0;
  color: var(--muted); font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }
.stage-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.stage-title:first-child { margin-top: 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-3); overflow: hidden; box-shadow: var(--shadow);
  transition: border-color var(--t-med); }
.card h3 { margin: 0; }
.card-head { display: flex; align-items: center; gap: var(--sp-2); width: 100%; padding: var(--sp-3); border: 0; border-bottom: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font-size: var(--fs-base); font-weight: 650; text-align: left;
  transition: background var(--t-fast); }
.card-head:hover { background: var(--surface-3); }
.card-head:focus-visible { outline-offset: -3px; border-radius: 0; }
.card-head .sp { flex: 1; min-width: 0; }
.card.alarm { border-color: var(--err); box-shadow: 0 0 0 1px var(--err) inset, var(--shadow); }
.led { width: 12px; height: 12px; border-radius: 50%; background: var(--off); flex: none; }
.led.on { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); }
.led.err { background: var(--err); box-shadow: 0 0 0 3px var(--err-bg); }
.kv { display: grid; grid-template-columns: 1fr auto; gap: var(--sp-1) var(--sp-3); margin: 0; padding: var(--sp-3); align-items: center; }
.kv dt { color: var(--muted); font-size: var(--fs-sm); }
.kv dd { margin: 0; justify-self: end; }

.val { display: inline-block; min-width: 6.5em; padding: 2px 8px; border-radius: var(--r-1); background: var(--value-bg); color: var(--value);
  border: 1px solid var(--border); font: 600 var(--fs-base) var(--mono); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.val.set { color: var(--set); }
.val.none { color: var(--off); font-weight: 400; }
.u { color: var(--muted); font: 400 var(--fs-xs) var(--font); margin-left: 4px; }
.val .u { margin-left: 4px; }
.bool { display: inline-block; min-width: 3.4em; padding: 1px 8px; border-radius: var(--r-pill); border: 1px solid var(--border-strong);
  font: 700 var(--fs-xs) var(--mono); text-align: center; background: var(--idle-bg); color: var(--idle-fg); }
.bool.on { background: var(--ok-bg); color: var(--ok-fg); border-color: var(--ok); }
.stale { opacity: .5; }
.val.stale::before, .bool.stale::before { content: "\25CC"; margin-right: .4em; font-weight: 400; }

/* ------------------------------------------------------------ tables */
.section { margin-bottom: var(--sp-4); min-width: 0; }
.section h2 { margin: 0 0 var(--sp-2); font-size: var(--fs-sm); color: var(--accent); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.table-wrap { overflow: auto; max-height: 72vh; max-height: max(14rem, calc(100dvh - 15rem)); min-height: 0; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-3); box-shadow: var(--shadow); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
th, td { padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); color: var(--muted); font-weight: 700; font-size: var(--fs-xs);
  text-transform: uppercase; letter-spacing: .06em; box-shadow: 0 1px 0 var(--border); border-bottom: 0; white-space: nowrap; }
tbody tr:nth-child(even) td { background: var(--zebra); }
tbody tr:hover td { background: var(--hover); }
.num { text-align: right; }
td.addr { font: var(--fs-xs) var(--mono); color: var(--muted); white-space: nowrap; }
td .u { display: block; margin: 0; }
td.k { color: var(--muted); width: 30%; }
tr.on td { background: var(--err-bg); }
tr.on:hover td { background: var(--err-bg); filter: brightness(1.1); }
tr.sev-error td:first-child { box-shadow: inset 4px 0 0 var(--err); }
tr.sev-warning td:first-child { box-shadow: inset 4px 0 0 var(--warn); }
tr.sev-info td:first-child { box-shadow: inset 4px 0 0 var(--off); }
td.empty-cell { padding: var(--sp-5); text-align: center; color: var(--muted); }
.msg-cell { overflow-wrap: anywhere; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.toolbar input[type="search"], .toolbar input[type="text"] { flex: 1 1 14rem; max-width: 26rem; width: auto; }
.toolbar label { display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: 500; }
.toolbar .u { margin: 0; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: var(--sp-4); }

/* hints, empty states */
.hint { display: flex; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); background: var(--info-bg); color: var(--info-fg);
  border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--r-2); margin-bottom: var(--sp-4); }
.hint::before { content: "i"; flex: none; display: grid; place-items: center; width: 1.4em; height: 1.4em; border-radius: 50%;
  border: 1.5px solid currentColor; font: 700 .8rem var(--font); margin-top: 2px; }
.hint b { color: var(--text); }
.hint p { margin: 0; }
.empty { display: grid; justify-items: center; gap: var(--sp-1); padding: var(--sp-6) var(--sp-4); text-align: center; color: var(--muted);
  background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--r-3); }
.empty-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2);
  color: var(--accent); font-size: 1.4rem; margin-bottom: var(--sp-2); }
.empty.ok .empty-ico { color: var(--ok); background: var(--ok-bg); }
.empty-title { margin: 0; color: var(--text); font-weight: 650; font-size: var(--fs-md); }
.empty-text { margin: 0; max-width: 44ch; }

/* ------------------------------------------------------------ commands screen */
.cmd { display: grid; gap: var(--sp-4); max-width: 60rem; margin: 0 auto; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-3); padding: var(--sp-4); box-shadow: var(--shadow); }
.panel h2 { margin: 0 0 var(--sp-2); font-size: var(--fs-md); display: flex; align-items: center; gap: var(--sp-2); }
.panel > p { margin: 0 0 var(--sp-3); color: var(--muted); }
.cmd form { display: grid; gap: var(--sp-3); }
.cmd-row { display: flex; align-items: flex-end; flex-wrap: wrap; gap: var(--sp-3); }
.cmd-row .field { flex: 1 1 14rem; max-width: 22rem; }
.counter { justify-self: end; color: var(--muted); font: var(--fs-xs) var(--mono); font-variant-numeric: tabular-nums; }
.counter.warn { color: var(--warn); }
.formmsg { min-height: 1.4em; font-weight: 600; font-size: var(--fs-sm); }
.formmsg.ok { color: var(--ok); } .formmsg.err { color: var(--err); }
.formmsg.ok::before { content: "\2713  "; } .formmsg.err::before { content: "\2715  "; }
.cmd-list { display: grid; gap: var(--sp-3); }
.cmd-card { border: 1px solid var(--border); border-radius: var(--r-2); background: var(--surface-2); padding: var(--sp-3); display: grid; gap: var(--sp-2); }
.cmd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); color: var(--muted); font-size: var(--fs-sm); }
.cmd-meta .chip { margin-left: auto; }
.cmd-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.cmd-note { margin: 0; color: var(--muted); font-size: var(--fs-sm); border-left: 3px solid var(--border-strong); padding-left: var(--sp-3); overflow-wrap: anywhere; }
.cmd-actions { display: flex; align-items: center; gap: var(--sp-2); }
.cmd-actions .ask { font-weight: 600; font-size: var(--fs-sm); margin-right: var(--sp-1); }
details.panel summary { cursor: pointer; font-weight: 650; font-size: var(--fs-md); padding: var(--sp-1) 0; }
details.panel[open] summary { margin-bottom: var(--sp-3); }
.cmd-card.done { background: var(--surface); }
.chip.working { --glyph: "\25B6"; background: var(--info-bg); color: var(--info-fg); }

/* ------------------------------------------------------------ narrow screens */
@media (max-width: 900px) {
  .screen-title { order: 3; flex-basis: 100%; text-align: left; font-size: var(--fs-md); }
  .status { margin-left: auto; }
}
@media (max-width: 560px) {
  .top { padding: var(--sp-2) var(--sp-3); gap: var(--sp-2) var(--sp-3); }
  .sub, .user-name { display: none; }
  .user { padding-left: var(--sp-2); }
  .clock { min-width: 0; font-size: var(--fs-base); }
  main { padding: var(--sp-3); }
  .kv { padding: var(--sp-2) var(--sp-3); }
  .fkey { min-width: 4.8rem; }
  .th-hide, td.addr { display: none; }
  .panel { padding: var(--sp-3); }
}

/* ------------------------------------------------------------ motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print { .fkeys, .top .status { display: none; } }
