/* ZPanel — board, not dashboard.
   Rows, rules and tabular figures instead of cards and glows. */

:root {
  color-scheme: dark;
  --paper: #050505;
  --paper-2: #0c0c0c;
  --paper-3: #121212;
  --ink: #edeae3;
  --ink-2: #9c9c9c;
  --ink-3: #6a6a6a;
  --rule: #1b1b1b;
  --rule-2: #262626;
  --amber: #e7a33c;
  --ok: #63bf8e;
  --warn: #e5c05d;
  --bad: #e1705f;
  --busy: #b9b9b9;
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100vh; }

a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.inline { display: inline; }

/* ---------------- masthead ---------------- */
.masthead {
  display: flex;
  align-items: baseline;
  gap: 32px;
  padding: 22px 40px 20px;
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  font-family: var(--display);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: 0.13em;
  color: var(--ink);
}
.wordmark span { color: var(--amber); }
.masthead nav { display: flex; gap: 22px; }
.nav-link {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--amber); border-bottom-color: var(--amber); }
.masthead-side { margin-left: auto; display: flex; align-items: baseline; gap: 18px; }
.host {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--ink-3);
}
.linkish {
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  cursor: pointer;
}
.linkish:hover { color: var(--bad); }

/* ---------------- page ---------------- */
.page { max-width: 1240px; margin: 0 auto; padding: 44px 40px 80px; }

.board-head { margin-bottom: 34px; }
.eyebrow {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.board-head h1 {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.ticker {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: baseline;
}
.ticker b { color: var(--ink); font-weight: 500; }
.ticker .sep { color: var(--rule-2); }

/* ---------------- layout: rail + content ---------------- */
.layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.rail {
  position: sticky;
  top: 26px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.rail-block { display: flex; flex-direction: column; gap: 8px; }
.rail-label {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.rail-link {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 8px 0 8px 12px;
  border-left: 1px solid var(--rule-2);
  transition: color .15s, border-color .15s;
}
.rail-link:hover { color: var(--ink); }
.rail-link.active { color: var(--ink); border-left-color: var(--amber); }
.rail .btn { width: 100%; }
.rail form { width: 100%; }
.rail .back { margin-bottom: 0; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 22px; }
  .rail { position: static; gap: 12px; }
  /* на узком экране навигация живёт в шапке, дубль в рельсе убираем */
  .rail-nav-block { display: none; }
  .rail-block { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; }
  .rail-label { width: auto; margin-bottom: 0; }
  .rail .btn { width: auto; }
  .rail .rail-stats { display: none; }
  .masthead .host { display: none; }
}

/* ---------------- buttons ----------------
   shadcn/ui model: one base class + variants + sizes.
   h-9 / h-8 / h-10, rounded-md, ring on focus-visible, shadow-xs. */

.btn {
  --btn-h: 38px;
  --btn-px: 18px;
  --btn-fs: 13.5px;
  --btn-ring: rgba(231, 163, 60, 0.42);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  height: var(--btn-h);
  padding: 0 var(--btn-px);
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--btn-fs);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: none;
  transition: background-color .16s ease, border-color .16s ease,
              color .16s ease, box-shadow .16s ease, transform .07s ease;
}
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn:focus-visible {
  outline: 2px solid var(--btn-ring);
  outline-offset: 2px;
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn:disabled, .btn.is-busy {
  pointer-events: none;
  opacity: .45;
}

/* primary — solid amber, the one action that matters on the screen */
.btn-primary {
  background: var(--amber);
  color: #1a1409;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22),
              0 1px 2px rgba(0, 0, 0, .55);
}
.btn-primary:hover {
  background: #f2b153;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28),
              0 2px 8px rgba(231, 163, 60, .22);
}
.btn-primary:active {
  background: #dd9a35;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .3);
}

/* secondary — raised surface, pairs with primary without shouting */
.btn-secondary {
  background: #151515;
  border-color: #2b2b2b;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
}
.btn-secondary:hover {
  background: #1c1c1c;
  border-color: #383838;
}
.btn-secondary:active { background: #121212; }

/* outline — border only, quiet default */
.btn-outline {
  border-color: #333;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}
.btn-outline:hover {
  background: #141414;
  border-color: #454545;
}
.btn-outline:active { background: #101010; }

/* ghost — no chrome until hover */
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover {
  background: #141414;
  color: var(--ink);
}
.btn-ghost:active { background: #101010; }

/* destructive — solid, only for the final confirmation */
.btn-destructive {
  background: #d2594a;
  color: #1a0d0a;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18),
              0 1px 2px rgba(0, 0, 0, .5);
}
.btn-destructive:hover { background: #e2695a; }
.btn-destructive:active { background: #b94c3e; }

/* destructive outline — the entry point in a rail or toolbar */
.btn-destructive-outline {
  border-color: rgba(225, 112, 95, .38);
  color: var(--bad);
}
.btn-destructive-outline:hover {
  background: rgba(225, 112, 95, .1);
  border-color: rgba(225, 112, 95, .62);
}
.btn-destructive-outline:active { background: rgba(225, 112, 95, .16); }

/* sizes */
.btn-sm { --btn-h: 32px; --btn-px: 13px; --btn-fs: 12.5px; border-radius: 7px; }
.btn-lg { --btn-h: 44px; --btn-px: 24px; --btn-fs: 14.5px; border-radius: 9px; }

.wide { width: 100%; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* legacy aliases kept so older markup still renders */
.primary { background: var(--amber); color: #1a1409; font-weight: 600; }
.ghost { color: var(--ink-2); }
.danger { border-color: rgba(225, 112, 95, .38); color: var(--bad); }

/* ---------------- board ---------------- */
.board { border-top: 1px solid var(--rule-2); }
.board-row-head,
.row {
  display: grid;
  grid-template-columns: 40px minmax(100px, 1.5fr) minmax(100px, 1fr) minmax(110px, 1.15fr) 112px 56px 112px;
  gap: 12px;
  align-items: center;
  padding: 0 10px;
}
.board-row-head {
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.row {
  min-height: 78px;
  border-bottom: 1px solid var(--rule);
  border-left: 2px solid transparent;
  transition: background .14s, border-left-color .14s;
}
.row:hover { background: var(--paper-2); border-left-color: var(--amber); }
.row:focus-visible { outline: 1px solid var(--amber); outline-offset: -1px; }

.cell-index {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.cell-node { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.node-name {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.node-country {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cell-address, .cell-versions, .cell-sessions {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.cell-versions { display: flex; flex-direction: column; gap: 2px; font-size: 11.5px; }
.cell-versions span { color: var(--ink-3); }
.cell-sessions { color: var(--ink); }

/* route: the signature element */
.route { display: flex; align-items: center; gap: 7px; }
.route-node {
  width: 7px; height: 7px;
  border: 1px solid var(--ink-2);
  flex: 0 0 7px;
}
.route-node.is-entry { background: var(--ink-2); }
.route-node.is-exit { border-color: var(--amber); background: transparent; }
.route-node.is-dead { border-color: var(--bad); background: transparent; }
.route-line {
  height: 1px;
  flex: 1 1 auto;
  min-width: 22px;
  background: linear-gradient(90deg, var(--rule-2), var(--ink-3));
  position: relative;
}
.route-line::after {
  content: "";
  position: absolute;
  right: -1px; top: -2px;
  border-left: 4px solid var(--ink-3);
  border-top: 2.5px solid transparent;
  border-bottom: 2.5px solid transparent;
}
.route-label {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}

/* status */
.status { display: flex; align-items: center; gap: 9px; }
.lamp {
  width: 9px; height: 9px;
  background: var(--ink-3);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
  flex: 0 0 9px;
}
.lamp.ok { background: var(--ok); }
.lamp.bad { background: var(--bad); }
.lamp.warn { background: var(--warn); }
.lamp.busy { background: var(--busy); animation: breath 1.6s ease-in-out infinite; }
.lamp.idle { background: var(--ink-3); }
@keyframes breath { 50% { opacity: 0.3; } }
.status-word {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.status-word.ok { color: var(--ok); }
.status-word.bad { color: var(--bad); }
.status-word.warn { color: var(--warn); }
.status-word.busy { color: var(--busy); }

.row-error {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--bad);
  padding: 0 0 14px 72px;
  margin-top: -8px;
}

/* --------------- rail stats --------------- */
.rail-stats { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.rail-stats div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-top: 1px solid var(--rule); padding-top: 10px; }
.rail-stats dt {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
}
.rail-stats dd {
  margin: 0;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.rail-stats dd.ok { color: var(--ok); }
.rail-stats dd.bad { color: var(--bad); }

/* --------------- detail page --------------- */
.page-head {
  display: block;
  margin-bottom: 30px;
}
.page-head h1 {
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.page-head .actions { margin-top: 22px; }
.back {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.back svg { width: 13px; height: 13px; flex-shrink: 0; transition: transform .16s ease; }
.back:hover svg { transform: translateX(-2px); }
.back:hover { color: var(--amber); }

.detail-bar {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  border-top: 1px solid var(--rule-2);
  padding: 14px 0;
  margin-bottom: 34px;
}
.detail-bar .meta {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.detail-bar .meta b { color: var(--ink-3); font-weight: 500; margin-right: 7px; letter-spacing: 0.1em; text-transform: uppercase; font-size: 10px; }

.detail-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.panel { border-top: 1px solid var(--rule-2); padding-top: 18px; }
.panel h2 {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.panel-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.panel-head h2 { margin: 0; }

.kv { display: grid; grid-template-columns: 150px 1fr; gap: 11px 20px; margin: 0; }
.kv dt {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 2px;
}
.kv dd { margin: 0; font-family: var(--mono); font-size: 12.5px; color: var(--ink); word-break: break-all; }

.log {
  margin: 0;
  min-height: 320px;
  max-height: 620px;
  overflow: auto;
  background: #0c1116;
  border: 1px solid var(--rule);
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.65;
  color: #a9b6c2;
  white-space: pre-wrap;
  word-break: break-word;
}

/* --------------- forms --------------- */
.form-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 22px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field small { color: var(--ink-3); font-size: 12px; font-family: var(--sans); }
input[type="text"], input[type="password"], input[type="number"], input[type="search"] {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  background: #0b0b0b;
  border: 1px solid #262626;
  border-radius: 8px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13.5px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .55);
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
input[type="text"]:hover:not(:disabled),
input[type="password"]:hover:not(:disabled),
input[type="number"]:hover:not(:disabled) { border-color: #373737; }
input:focus {
  outline: none;
  background: #0e0e0e;
  border-color: rgba(231, 163, 60, .72);
  box-shadow: 0 0 0 3px rgba(231, 163, 60, .16), inset 0 1px 2px rgba(0, 0, 0, .55);
}
input::placeholder { color: #4c4c4c; }
input:disabled {
  opacity: .55;
  cursor: not-allowed;
  background: #080808;
  border-style: dashed;
  border-color: #242424;
}
.upper { text-transform: uppercase; }

.check {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
}
.check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  margin: 0;
  flex-shrink: 0;
  display: grid;
  place-content: center;
  background: #0b0b0b;
  border: 1px solid #4c4c4c;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.check input[type="checkbox"]::before {
  content: "";
  width: 9px;
  height: 9px;
  transform: scale(0);
  transition: transform .12s ease;
  background: #17120a;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 84% 0%, 50% 68%);
}
.check input[type="checkbox"]:hover { border-color: #6e6e6e; }
.check input[type="checkbox"]:checked {
  background: var(--amber);
  border-color: var(--amber);
}
.check input[type="checkbox"]:checked::before { transform: scale(1); }
.check input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(231, 163, 60, .3);
  outline-offset: 1px;
}

.steps h2 {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--rule-2);
}

.steps ol {
  margin: 0 0 18px;
  padding-left: 0;
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
}
.steps li::before {
  content: counter(step);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber);
  padding-top: 2px;
}

/* --------------- alerts --------------- */
.alert {
  border-left: 2px solid var(--rule-2);
  padding: 11px 0 11px 16px;
  font-size: 14px;
  margin-bottom: 26px;
  font-family: var(--sans);
  color: var(--ink-2);
}
.alert.bad { border-left-color: var(--bad); color: #f0b3a9; }
.alert.warn { border-left-color: var(--warn); color: #ecd39a; }

.empty {
  border-top: 1px solid var(--rule-2);
  border-bottom: 1px solid var(--rule);
  padding: 64px 0;
  text-align: center;
}
.empty h3 { font-family: var(--display); font-size: 26px; margin-bottom: 10px; }
.empty p { color: var(--ink-2); font-family: var(--sans); font-size: 13.5px; margin-bottom: 26px; }

/* --------------- login --------------- */
body.auth .page { max-width: none; padding: 0; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; }
.login-card form { border-top: 1px solid var(--rule-2); padding-top: 26px; }
.login-card { width: 100%; max-width: 360px; }
.login-head { margin-bottom: 26px; }
.login-head .wordmark { font-size: 26px; display: block; margin-bottom: 14px; }
.login-head h1 { font-family: var(--display); font-size: 32px; letter-spacing: -0.02em; margin-bottom: 8px; }
.login-head p { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }

/* --------------- dialog --------------- */
.dialog {
  border: 1px solid #2a2a2a;
  background: #0a0a0a;
  color: var(--ink);
  padding: 26px 26px 20px;
  width: min(440px, calc(100vw - 32px));
  border-radius: 12px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.dialog::backdrop { background: rgba(3, 3, 3, .68); backdrop-filter: blur(3px); }
.dialog h3 { font-family: var(--display); font-size: 23px; letter-spacing: -0.015em; margin-bottom: 10px; }
.dialog p { font-family: var(--sans); font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

@media (max-width: 1080px) {
  .masthead { padding: 18px 20px; gap: 18px; flex-wrap: wrap; }
  .page { padding: 30px 20px 60px; }
  .detail-grid, .form-layout { grid-template-columns: 1fr; gap: 32px; }
  .board-row-head { display: none; }
  .row {
    grid-template-columns: 34px 1fr auto;
    grid-template-areas:
      "index node status"
      ". address status"
      ". route sessions";
    gap: 6px 14px;
    padding: 16px 6px;
    min-height: 0;
    align-items: start;
  }
  .cell-index { grid-area: index; font-size: 17px; padding-top: 2px; }
  .cell-node { grid-area: node; }
  .cell-address { grid-area: address; }
  .route { grid-area: route; }
  .cell-sessions { grid-area: sessions; text-align: right; }
  .cell-versions { display: none; }
  .status { grid-area: status; justify-content: flex-end; }
  .cell-sessions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
  }
  .cell-sessions::before {
    content: "сессий";
    font-family: var(--sans);
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-3);
  }
  .row-error { padding-left: 48px; }
  .kv { grid-template-columns: 120px 1fr; }
}

@media (max-width: 560px) {
  .masthead { padding: 14px 16px; gap: 14px; }
  .masthead .wordmark { font-size: 21px; }
  .masthead nav { gap: 16px; }
  .masthead-side { gap: 12px; }
  .page { padding: 24px 16px 56px; }
  .board-head { margin-bottom: 24px; }
  .page-head h1 { font-size: 30px; }
  .row { padding: 14px 2px; }
  .ticker { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}