/* Nebexa Lisans Merkezi — güvenlik odası OSD dili */

@font-face { font-family: "Barlow Semi Condensed"; font-weight: 400; font-display: swap;
  src: url(/static/fonts/barlow-latin-ext-400.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 400; font-display: swap;
  src: url(/static/fonts/barlow-latin-400.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 500; font-display: swap;
  src: url(/static/fonts/barlow-latin-ext-500.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 500; font-display: swap;
  src: url(/static/fonts/barlow-latin-500.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 600; font-display: swap;
  src: url(/static/fonts/barlow-latin-ext-600.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 600; font-display: swap;
  src: url(/static/fonts/barlow-latin-600.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-weight: 100 800; font-display: swap;
  src: url(/static/fonts/jbmono-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-weight: 100 800; font-display: swap;
  src: url(/static/fonts/jbmono-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: dark;
  /* tek nötr skala (soğuk grafit) + tek kromatik vurgu (sodyum amber) */
  --z0: oklch(0.135 0.008 205);
  --z1: oklch(0.168 0.009 205);
  --z2: oklch(0.205 0.010 205);
  --z3: oklch(0.255 0.011 205);
  --z4: oklch(0.34 0.012 205);
  --ink: oklch(0.95 0.004 205);
  --ink-dim: oklch(0.76 0.008 205);
  --ink-faint: oklch(0.64 0.010 205);

  --amber: oklch(0.82 0.15 78);
  --amber-ink: oklch(0.2 0.03 78);
  --ok: oklch(0.80 0.17 152);
  --bad: oklch(0.72 0.18 27);

  --font: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --rail: 232px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --z0: oklch(0.925 0.008 165);
  --z1: oklch(0.955 0.006 165);
  --z2: oklch(0.985 0.004 165);
  --z3: oklch(0.88 0.008 165);
  --z4: oklch(0.74 0.010 165);
  --ink: oklch(0.2 0.012 205);
  --ink-dim: oklch(0.38 0.012 205);
  --ink-faint: oklch(0.47 0.012 205);
  --amber: oklch(0.5 0.13 66);
  --amber-ink: oklch(0.98 0.01 80);
  --ok: oklch(0.45 0.14 152);
  --bad: oklch(0.5 0.19 27);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--z1); color: var(--ink);
  font: 400 15px/1.45 var(--font); font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration-color: color-mix(in oklch, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--amber); text-decoration-color: currentColor; }
::selection { background: var(--amber); color: var(--amber-ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.mono { font-family: var(--mono); font-size: 0.9em; letter-spacing: -0.01em; }
.faint { color: var(--ink-faint); }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--amber-ink); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* özel kaydırma çubukları */
* { scrollbar-width: thin; scrollbar-color: var(--z4) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--z4); border: 2px solid var(--z1); }

/* ---------- yerleşim ---------- */
.shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100vh; }
.rail {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 24px;
  padding: 20px 14px; background: var(--z0); border-right: 1px solid var(--z3);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.mark { width: 34px; height: 34px; color: var(--amber); flex: none; }
.brand-t { display: grid; line-height: 1.1; }
.brand-t b { font-weight: 600; letter-spacing: 0.22em; font-size: 17px; }
.brand-t i { font-style: normal; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin-top: 3px; }
.nav { display: grid; gap: 2px; }
.nav-i {
  display: flex; align-items: center; gap: 12px; padding: 9px 10px; text-decoration: none;
  color: var(--ink-dim); font-weight: 500; letter-spacing: 0.01em; position: relative;
  transition: background 120ms, color 120ms;
}
.nav-i:hover { background: var(--z2); color: var(--ink); }
.nav-i[aria-current="page"] { color: var(--ink); background: var(--z2); }
.nav-i[aria-current="page"]::before {
  content: ""; position: absolute; left: -14px; top: 6px; bottom: 6px; width: 3px; background: var(--amber);
}
.ic { width: 20px; height: 20px; flex: none; }
.rail-foot { margin-top: auto; display: grid; gap: 12px; }
.who { display: flex; align-items: center; justify-content: space-between; padding: 0 8px; color: var(--ink-dim); font-size: 14px; }
.who form { margin: 0; }
.link { background: none; border: 0; padding: 0; color: var(--ink-dim); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link:hover { color: var(--amber); }

.stage { min-width: 0; display: flex; flex-direction: column; }
.osd {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  height: 44px; padding: 0 28px; border-bottom: 1px solid var(--z3); background: var(--z0);
  font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim);
}
.osd-c { color: var(--ink-faint); }
.osd-r { justify-self: end; color: var(--amber); font-variant-numeric: tabular-nums; }
.rec { display: inline-block; width: 8px; height: 8px; margin-right: 10px; background: var(--ok); }
main { padding: 28px 28px 64px; max-width: 1480px; width: 100%; }

.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
h1 { font-size: 30px; font-weight: 600; letter-spacing: 0.005em; line-height: 1.1; text-wrap: balance; }
.actions { display: flex; gap: 8px; }
.notice {
  margin-bottom: 18px; padding: 10px 14px; background: var(--z2); color: var(--ink);
  border: 1px solid var(--z4); font-weight: 500;
}
.notice::before { content: "●"; color: var(--amber); margin-right: 10px; }

/* ---------- vizör çerçevesi ---------- */
.frame {
  --c: var(--ink-dim); --l: 16px; --t: 2px;
  position: relative; background: var(--z2); border: 1px solid var(--z3); margin-bottom: 20px;
}
.frame::before {
  content: ""; position: absolute; inset: -1px; pointer-events: none;
  animation: lock 420ms var(--ease) backwards;
  background:
    linear-gradient(var(--c), var(--c)) 0 0 / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) 0 0 / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 0 / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 0 / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) 0 100% / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) 0 100% / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 100% / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 100% / var(--t) var(--l) no-repeat;
}
@keyframes lock {
  from { opacity: 0; inset: -9px; }
  to { opacity: 1; inset: -1px; }
}
.frame-h {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 16px; border-bottom: 1px solid var(--z3);
}
.frame-h h2 { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim); }
.readout { font: 500 12px/1 var(--mono); color: var(--amber); letter-spacing: 0.06em; }
.frame-b { padding: 16px; }
.frame-b:has(> .tscroll) { padding: 0; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.col { min-width: 0; }

/* ---------- durum okuması ---------- */
.statusline { padding: 0; }
.readouts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.readouts li { flex: 1 1 auto; border-right: 1px solid var(--z3); }
.readouts li:last-child { border-right: 0; }
.readouts a {
  display: flex; align-items: baseline; gap: 10px; padding: 14px 18px; text-decoration: none; white-space: nowrap;
  transition: background 120ms;
}
.readouts a:hover { background: var(--z3); color: var(--ink); }
.readouts .k { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; color: var(--ink-faint); }
.readouts .v { font: 500 18px/1 var(--mono); color: var(--ink); }
.dot { display: inline-block; width: 8px; height: 8px; flex: none; align-self: center; background: var(--ink-faint); }
.dot-ok { background: var(--ok); } .dot-warn { background: var(--amber); } .dot-bad { background: var(--bad); }
.dot-hold { background: repeating-linear-gradient(45deg, var(--ink-dim) 0 2px, transparent 2px 4px); outline: 1px solid var(--ink-dim); outline-offset: -1px; }
.dot-idle { background: var(--ink-faint); }

/* ---------- tablolar ---------- */
.tscroll { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th {
  text-align: left; padding: 10px 16px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-faint); border-bottom: 1px solid var(--z3); white-space: nowrap; background: var(--z2);
}
.tbl td { padding: 11px 16px; border-bottom: 1px solid color-mix(in oklch, var(--z3) 60%, transparent); vertical-align: middle; }
.tbl tbody tr { transition: background 100ms; }
.tbl tbody tr:hover { background: var(--z3); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .key { font-weight: 500; letter-spacing: 0.02em; white-space: nowrap; }
.tbl tr.struck td { color: var(--ink-faint); }
.tbl tr.struck td:first-child .strong { text-decoration: line-through; }
.tbl form { margin: 0; display: inline; }

/* ---------- durum çipleri ---------- */
.st { display: inline-flex; align-items: center; gap: 8px; font: 600 11.5px/1 var(--mono); letter-spacing: 0.08em; white-space: nowrap; }
.st-ok { color: var(--ok); } .st-ok .dot { background: var(--ok); }
.st-warn { color: var(--amber); } .st-warn .dot { background: var(--amber); }
.st-bad { color: var(--bad); } .st-bad .dot { background: var(--bad); }
.st-idle { color: var(--ink-dim); }
.st-hold { color: var(--ink-dim); }
.st-hold .dot { background: repeating-linear-gradient(45deg, var(--ink-dim) 0 2px, transparent 2px 4px); outline: 1px solid var(--ink-dim); outline-offset: -1px; }

.sigcell { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.sig { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.sig i { width: 3px; background: var(--z4); }
.sig i:nth-child(1) { height: 4px; } .sig i:nth-child(2) { height: 7px; }
.sig i:nth-child(3) { height: 10px; } .sig i:nth-child(4) { height: 14px; }
.sig[data-level="1"] i:nth-child(-n+1), .sig[data-level="2"] i:nth-child(-n+2),
.sig[data-level="3"] i:nth-child(-n+3), .sig[data-level="4"] i { background: var(--ok); }
.sig[data-level="1"] i:nth-child(-n+1) { background: var(--amber); }
.sig[data-level="0"] i { background: repeating-linear-gradient(45deg, var(--z4) 0 2px, transparent 2px 4px); }

/* ---------- olay akışı ---------- */
.log { list-style: none; margin: 0; padding: 0; display: grid; }
.log li { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; padding: 9px 0; border-bottom: 1px solid color-mix(in oklch, var(--z3) 60%, transparent); }
.log li:last-child { border-bottom: 0; }
.log time { grid-row: span 2; color: var(--amber); font-size: 12px; line-height: 1.6; }
.log .act { font-weight: 500; }
.log .tgt { color: var(--ink-faint); font-size: 12px; overflow-wrap: anywhere; }
.more { display: inline-block; margin-top: 10px; font-weight: 500; color: var(--ink-dim); }

/* ---------- boş durum ("sinyal yok") ---------- */
.empty { padding: 36px 16px; display: grid; justify-items: center; gap: 6px; text-align: center; }
.empty-bars { display: flex; margin-bottom: 10px; }
.empty-bars i { width: 14px; height: 22px; background: repeating-linear-gradient(135deg, var(--z4) 0 2px, transparent 2px 5px); }
.empty-bars i:nth-child(odd) { opacity: 0.6; }
.empty-t { font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 13px; }
.empty-h { color: var(--ink-dim); max-width: 46ch; }

/* ---------- düğmeler, formlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 14px; font: 600 14px/1.2 var(--font); letter-spacing: 0.03em; color: var(--ink);
  background: transparent; border: 1px solid var(--z4); cursor: pointer; text-decoration: none;
  transition: background 120ms, border-color 120ms, color 120ms;
}
.btn:hover { background: var(--z3); color: var(--ink); border-color: var(--ink-faint); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber); color: var(--amber-ink); border-color: var(--amber); }
.btn-primary:hover { background: color-mix(in oklch, var(--amber) 88%, white); color: var(--amber-ink); border-color: transparent; }
.btn-danger { color: var(--bad); border-color: color-mix(in oklch, var(--bad) 50%, transparent); }
.btn-danger:hover { background: color-mix(in oklch, var(--bad) 16%, transparent); color: var(--bad); border-color: var(--bad); }
.btn-ghost { border-color: transparent; color: var(--ink-dim); justify-content: flex-start; }
.btn-ghost:hover { border-color: transparent; }
.btn-sm { padding: 5px 10px; font-size: 13px; }
.btn-wide { width: 100%; padding: 11px; }
.btn .ic { width: 16px; height: 16px; }
#theme .ic { width: 20px; height: 20px; }

.form { display: grid; gap: 14px; }
.grid2 { grid-template-columns: 1fr 1fr; }
.span2 { grid-column: 1 / -1; }
.form label { display: grid; gap: 6px; }
.form label > span, legend { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
input, select, textarea {
  width: 100%; padding: 9px 11px; background: var(--z0); color: var(--ink); caret-color: var(--amber);
  border: 1px solid var(--z4); border-radius: 0; font: 400 15px/1.3 var(--font);
}
input[type="date"], input[type="number"] { font-family: var(--mono); font-size: 14px; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber); }
textarea { resize: vertical; }
input::placeholder { color: var(--ink-faint); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-dim) 50%), linear-gradient(135deg, var(--ink-dim) 50%, transparent 50%); background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
fieldset { border: 0; padding: 0; margin: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.checks legend { margin-bottom: 8px; padding: 0; }
.check { display: flex !important; grid-template: none; align-items: center; gap: 9px !important; cursor: pointer; }
.check span { font: 500 14.5px var(--font) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--ink) !important; }
input[type="checkbox"] { appearance: none; width: 18px; height: 18px; padding: 0; display: grid; place-content: center; cursor: pointer; }
input[type="checkbox"]::after { content: ""; width: 8px; height: 8px; background: var(--amber); transform: scale(0); transition: transform 100ms; }
input[type="checkbox"]:checked::after { transform: scale(1); }
input[type="checkbox"]:checked { border-color: var(--amber); }
.form-err { color: var(--bad); font-weight: 500; }
.form-actions { display: flex; gap: 8px; }
.hint { color: var(--ink-dim); margin-bottom: 12px; max-width: 62ch; }
.hint code { color: var(--ink); }

.search { display: flex; gap: 8px; margin-bottom: 18px; max-width: 460px; }
.toolbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar .search { margin: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--z4); }
.tab { padding: 8px 14px; text-decoration: none; font-weight: 500; color: var(--ink-dim); border-right: 1px solid var(--z4); }
.tab:last-child { border-right: 0; }
.tab:hover { background: var(--z3); color: var(--ink); }
.tab[aria-current="true"] { background: var(--amber); color: var(--amber-ink); }

/* ---------- lisans ayrıntı ---------- */
.keyhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.crumb { color: var(--ink-faint); font-size: 14px; margin-bottom: 8px; }
.keytitle { font-size: 28px; }
.keytitle .mono { font-size: 1em; letter-spacing: 0.04em; font-weight: 500; }
.keyside { display: flex; align-items: center; gap: 14px; }
.actionbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; padding: 10px 14px;
  background: var(--z0); border: 1px solid var(--z3);
}
.actionbar form { margin: 0; }
.actionbar-l { font: 600 11.5px var(--mono); letter-spacing: 0.1em; color: var(--ink-faint); margin-right: 4px; }
.actionbar-sp { flex: 1; }
.keybox { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--z0); border: 1px solid var(--z3); margin-bottom: 14px; }
.keybox code { flex: 1; overflow-wrap: anywhere; font-size: 13px; color: var(--amber); }

/* ---------- giriş ---------- */
.login-body { min-height: 100vh; display: grid; place-items: center; background: var(--z0); padding: 24px; }
.login { width: min(400px, 100%); display: grid; gap: 18px; }
.login-frame { padding: 28px; margin: 0; }
.login-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.login-brand span { display: grid; line-height: 1.1; }
.login-brand b { font-weight: 600; letter-spacing: 0.22em; font-size: 20px; }
.login-brand i { font-style: normal; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin-top: 3px; }
.login-brand .mark { width: 40px; height: 40px; }
.bars { display: flex; height: 10px; opacity: 0.85; }
.bars i { flex: 1; }
.bars i:nth-child(1) { background: oklch(0.8 0.01 205); } .bars i:nth-child(2) { background: oklch(0.8 0.13 95); }
.bars i:nth-child(3) { background: oklch(0.75 0.11 200); } .bars i:nth-child(4) { background: oklch(0.75 0.15 150); }
.bars i:nth-child(5) { background: oklch(0.65 0.18 330); } .bars i:nth-child(6) { background: oklch(0.6 0.2 27); }
.bars i:nth-child(7) { background: oklch(0.5 0.17 265); }
.login-foot { text-align: center; color: var(--ink-faint); font-size: 13px; }

/* ---------- dar ekran ---------- */
@media (max-width: 1100px) { .grid-main { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 820px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--z3); }
  .brand-t i { display: none; }
  .nav { display: flex; order: 3; width: 100%; overflow-x: auto; gap: 0; }
  .nav-i { padding: 8px 12px; white-space: nowrap; }
  .nav-i[aria-current="page"]::before { left: 0; right: 0; top: auto; bottom: 0; width: auto; height: 3px; }
  .nav-i .ic { display: none; }
  .rail-foot { margin: 0 0 0 auto; display: flex; align-items: center; gap: 8px; flex: none; }
  .who-n { display: none; }
  .btn-ghost span { display: none; }
  .osd { padding: 0 16px; grid-template-columns: 1fr auto; }
  .osd-c { display: none; }
  main { padding: 20px 16px 48px; }
  .grid2 { grid-template-columns: 1fr; }
  h1 { font-size: 26px; }
  .readouts li { flex: 1 1 50%; border-bottom: 1px solid var(--z3); }
  .keytitle { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .frame::before { animation: none; }
  .btn:active { transform: none; }
}
