/* SelfVPN admin — монохром, сайдбар, Manrope, радиус 16, кастомные контролы */

:root {
  --bg: #050505;
  --ink: #f2f2f0;
  --ink-dim: #9a9a94;
  --line: #26262a;
  --line-soft: #1a1a1d;
  --panel: #0d0d0f;
  --panel-2: #131316;
  --accent: #ffffff;
  --ok: #4dd07c;
  --err: #ff4d4d;
  --r: 16px;          /* базовый радиус */
  --r-sm: 12px;
  --sidebar-w: 244px;
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 50% -10%, #1d1d22 0%, rgba(29,29,34,0) 60%),
    radial-gradient(900px 500px at 90% 110%, #151519 0%, rgba(21,21,25,0) 55%),
    linear-gradient(180deg, #0a0a0c 0%, var(--bg) 40%, #030303 100%);
  background-attachment: fixed;
  font: 15px/1.6 var(--font);
  letter-spacing: 0.01em;
}

a { color: var(--ink); text-decoration: none; }
code {
  font: 13px/1.4 "JetBrains Mono", Consolas, monospace;
  background: var(--panel-2);
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 8px;
}
hr { border: none; border-top: 1px solid var(--line); margin: 22px 0; }
h1 { font-size: 25px; font-weight: 800; letter-spacing: -0.02em; margin: 4px 0 20px; }
h2 {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--ink-dim); margin: 34px 0 14px;
}
.muted { color: var(--ink-dim); }
.ico { vertical-align: -3px; }

/* ===================== Сайдбар ===================== */

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(14px);
  border-right: 1px solid var(--line);
  padding: 22px 14px 18px;
  z-index: 40;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 22px; }
.brand-mark {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 30%, #fff 0%, #d9d9d4 45%, #6a6a70 100%);
  color: #0a0a0c;
  box-shadow: 0 0 26px rgba(255, 255, 255, 0.22);
}
.brand-text { font-weight: 800; font-size: 15.5px; letter-spacing: 0.02em; line-height: 1.2; }
.brand-text small {
  display: block; color: var(--ink-dim); font-weight: 600;
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
}

.side-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.side-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  border-radius: var(--r);
  color: var(--ink-dim);
  font-weight: 600; font-size: 14px;
  transition: all 0.15s ease;
}
.side-nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.side-nav a.active {
  color: #050505;
  background: linear-gradient(135deg, #ffffff, #cfcfc8);
  box-shadow: 0 6px 22px rgba(255, 255, 255, 0.14);
}
.side-nav a .dot { margin-left: auto; }

.side-bottom { border-top: 1px solid var(--line-soft); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.side-status {
  display: flex; align-items: center; gap: 9px;
  color: var(--ink-dim); font-size: 12.5px; padding: 0 10px;
}
.side-logout {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--r);
  color: var(--ink-dim); font-size: 13.5px; font-weight: 600;
  transition: all 0.15s ease;
}
.side-logout:hover { color: #ff8a8a; background: rgba(255, 77, 77, 0.08); }

.sidebar-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: 35;
}
.sidebar-backdrop.show { display: block; }

/* ===================== Топбар (мобайл) ===================== */

.topbar {
  display: none;
  position: sticky; top: 0; z-index: 30;
  align-items: center; gap: 14px;
  padding: 12px 16px;
  background: rgba(8, 8, 10, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.burger {
  width: 40px; height: 40px; padding: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  background: transparent; border: 1px solid var(--line); border-radius: 12px;
}
.burger span { width: 17px; height: 2px; background: var(--ink); border-radius: 2px; }
.burger:hover { background: var(--panel-2); box-shadow: none; }
.topbar-title { font-weight: 700; font-size: 15px; flex: 1; }
.topbar-status { display: flex; align-items: center; gap: 7px; color: var(--ink-dim); font-size: 12.5px; }

/* ===================== Контент ===================== */

main.content, main {
  margin-left: var(--sidebar-w);
  max-width: 1120px;
  padding: 34px 34px 80px;
}

.flash {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px; border-radius: var(--r);
  margin-bottom: 20px; font-size: 14px;
  border: 1px solid var(--line); background: var(--panel);
}
.flash.ok { border-color: rgba(77, 208, 124, 0.35); color: #c9f2d8; }
.flash.err { border-color: rgba(255, 77, 77, 0.4); color: #ffc9c9; }

/* ===================== Карточки ===================== */

.cards { display: flex; flex-wrap: wrap; gap: 14px; margin: 4px 0 8px; }
.card {
  flex: 1 1 160px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 18px 15px;
  display: flex; flex-direction: column; gap: 4px;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: #3a3a40; transform: translateY(-2px); }
.card b { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.card span { color: var(--ink-dim); font-size: 12.5px; }

/* ===================== Таблицы ===================== */

.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: auto;
  background: var(--panel);
}
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
th {
  background: var(--panel-2); color: var(--ink-dim);
  font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  position: sticky; top: 0;
}
tr:last-child td { border-bottom: none; }
tbody tr { transition: background 0.12s ease; }
tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
td.actions { display: flex; gap: 8px; }
td.actions form { margin: 0; }

/* ===================== Статусы ===================== */

.st { font-weight: 700; font-size: 13px; }
.st::before { content: "●"; margin-right: 7px; }
.st-open { color: #fff; } .st-open::before { color: var(--err); }
.st-progress { color: #fff; } .st-progress::before { color: #ffc94d; }
.st-closed { color: var(--ink-dim); } .st-closed::before { color: var(--ok); }

.dot, .bigdot { display: inline-block; border-radius: 50%; flex: none; }
.dot { width: 8px; height: 8px; }
.bigdot { width: 16px; height: 16px; }
.dot-on, .bigdot.dot-on { background: var(--ok); box-shadow: 0 0 10px rgba(77, 208, 124, 0.8); }
.dot-off, .bigdot.dot-off { background: #5c5c64; }
.dot-err, .bigdot.dot-err { background: var(--err); box-shadow: 0 0 10px rgba(255, 77, 77, 0.8); }

/* ===================== Табы ===================== */

.tabs { display: flex; gap: 8px; margin: 6px 0 20px; flex-wrap: wrap; }
.tab {
  padding: 9px 18px;
  border: 1px solid var(--line); border-radius: var(--r);
  color: var(--ink-dim); background: transparent;
  font-size: 13.5px; font-weight: 600;
  transition: all 0.15s ease;
}
.tab:hover { color: var(--ink); border-color: #3a3a40; }
.tab.active { color: #050505; background: var(--accent); border-color: var(--accent); }

/* ===================== Кнопки ===================== */

button {
  appearance: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #050505;
  padding: 11px 22px;
  border-radius: var(--r);
  cursor: pointer;
  font: 700 14px/1 var(--font);
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
button:hover { background: #dededa; box-shadow: 0 6px 20px rgba(255, 255, 255, 0.12); }
button:active { transform: translateY(1px); }
button:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid #fff; outline-offset: 2px;
}
button.danger { background: transparent; border-color: #59282d; color: #ff8a8a; }
button.danger:hover { background: #2a1416; border-color: #8a4046; box-shadow: none; }
button.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
button.ghost:hover { border-color: #3a3a40; background: var(--panel-2); box-shadow: none; }
button.sm { padding: 8px 14px; font-size: 13px; border-radius: 12px; }

/* ===================== Формы ===================== */

input, textarea, select {
  width: 100%;
  background: #0a0a0c;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: var(--r);
  padding: 12px 15px;
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input::placeholder, textarea::placeholder { color: #5c5c58; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #4a4a52;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06);
}
textarea { resize: vertical; min-height: 46px; }
input[type="file"] { padding: 11px; }
input[type="file"]::file-selector-button {
  appearance: none;
  margin-right: 14px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 9px 16px;
  border-radius: 12px;
  cursor: pointer;
  font: 600 13px var(--font);
  transition: border-color 0.15s ease;
}
input[type="file"]::file-selector-button:hover { border-color: #3a3a40; }

/* Кастомный чекбокс */

.check { display: inline-flex; align-items: center; gap: 11px; cursor: pointer; user-select: none; color: var(--ink); font-size: 14px; font-weight: 600; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check .box {
  width: 22px; height: 22px; flex: none;
  border-radius: 7px;
  border: 1.5px solid #3a3a40;
  background: #0a0a0c;
  display: grid; place-items: center;
  transition: all 0.15s ease;
}
.check .box svg { width: 13px; height: 13px; stroke: #050505; stroke-width: 3; opacity: 0; transform: scale(0.5); transition: all 0.15s ease; }
.check input:checked + .box { background: #fff; border-color: #fff; }
.check input:checked + .box svg { opacity: 1; transform: scale(1); }
.check input:focus-visible + .box { outline: 2px solid #fff; outline-offset: 2px; }
.check:hover .box { border-color: #55555d; }

.stack { display: flex; flex-direction: column; gap: 16px; margin: 10px 0; }
.stack > label {
  display: flex; flex-direction: column; gap: 8px;
  color: var(--ink-dim); font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
}
.stack > label.check { flex-direction: row; align-items: center; }
.stack > label.check .box { margin-bottom: 0; }
.inline-row { flex-direction: row; align-items: center; flex-wrap: wrap; }
.inline-row input { width: auto; flex: 0 1 260px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 860px) { .grid2, .grid4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .grid2, .grid4 { grid-template-columns: 1fr; } }

.settings-form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.label-inline { margin: 0; }

/* ===================== Страница бота ===================== */

.bot-status-card {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-left: 3px solid #5c5c64;
  border-radius: var(--r);
  padding: 22px 24px;
}
.bot-status-card.state-running { border-left-color: var(--ok); }
.bot-status-card.state-error { border-left-color: var(--err); }
.bot-status-left { display: flex; align-items: center; gap: 16px; }
.bot-state-title { font-size: 18px; font-weight: 800; }
.bot-state-sub { font-size: 13px; margin-top: 2px; }
.bot-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.warn-banner {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(180deg, #2a1013, #1c0b0d);
  border: 1px solid #6e2a30;
  border-left: 3px solid var(--err);
  border-radius: var(--r);
  padding: 14px 18px;
  margin: 14px 0;
  color: #ffc9c9; font-size: 14px;
}
.warn-banner::before { content: "⚠"; font-size: 17px; color: var(--err); }
.warn-banner a { color: #fff; text-decoration: underline; }

/* ===================== Диалог тикета ===================== */

.ticket-head {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px 24px;
}
.ticket-head p { margin: 4px 0; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; margin-top: 22px; }
.panel h2 { margin-top: 0; }

.dialog { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 6px; }
.msg {
  max-width: 76%;
  border-radius: var(--r);
  padding: 11px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.msg-head { font-size: 11.5px; color: var(--ink-dim); margin-bottom: 4px; letter-spacing: 0.04em; }
.msg-body { white-space: pre-wrap; word-break: break-word; font-size: 14.5px; }
.msg-user { align-self: flex-start; border-left: 2px solid #5c5c64; }
.msg-admin { align-self: flex-end; background: #17171b; border: 1px solid #2e2e34; border-right: 2px solid #fff; }
.msg-system { align-self: center; font-size: 12.5px; color: var(--ink-dim); max-width: 95%; border-style: dashed; }

/* ===================== База знаний ===================== */

.kb-forms details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 13px 20px;
  margin-bottom: 10px;
  transition: border-color 0.15s ease;
}
.kb-forms details[open] { border-color: #3a3a40; padding-bottom: 20px; }
.kb-forms summary { cursor: pointer; font-weight: 700; font-size: 14px; padding: 4px 0; user-select: none; }
.kb-forms summary::marker { color: var(--ink-dim); }
.kb-forms .stack { margin-top: 12px; }

/* Кнопка-глазик */
.icon-btn {
  appearance: none;
  width: 38px; height: 38px; padding: 0;
  display: inline-grid; place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s ease;
}
.icon-btn:hover { border-color: #4a4a52; background: var(--panel-2); box-shadow: none; }
.icon-btn.danger { color: #ff8a8a; border-color: #59282d; }
.icon-btn.danger:hover { background: #2a1416; border-color: #8a4046; }

/* ===================== Модальное окно ===================== */

.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center; justify-content: center;
  z-index: 100;
  padding: 18px;
}
.modal-overlay.open { display: flex; }
.modal {
  width: 760px; max-width: 100%;
  max-height: 88vh;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #141417, #0c0c0e);
  border: 1px solid #2e2e34;
  border-radius: var(--r);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.modal-title { font-weight: 800; font-size: 16px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-close {
  width: 36px; height: 36px; padding: 0; flex: none;
  display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line);
  border-radius: 11px; color: var(--ink-dim);
}
.modal-close:hover { background: var(--panel-2); color: var(--ink); box-shadow: none; }
.modal-body { padding: 18px 22px; overflow-y: auto; }
.modal-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 22px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.modal-foot .spacer { flex: 1; }
.modal-status { font-size: 13px; color: var(--ink-dim); }
.modal-status.dirty { color: #ffc94d; }
.modal-status.saved { color: var(--ok); }

/* ===================== Диаграммы ===================== */

.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
@media (max-width: 820px) { .charts { grid-template-columns: 1fr; } }
.chart-box {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 20px;
}
.chart-box h3 {
  margin: 0 0 12px;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--ink-dim);
}
.chart-wrap { position: relative; height: 220px; }

/* ===================== Состояние сервера ===================== */

.server-wrap {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 20px 20px;
  position: relative;
  overflow: hidden;
}
.srv-head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; margin-bottom: 16px;
}
.live-title {
  display: flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--ink-dim);
}
.live-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #4dd07c;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(77, 208, 124, 0.9); }
  50% { opacity: 0.35; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.srv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line);
  background: #0a0a0c;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12.5px; color: var(--ink-dim);
}
.chip b { color: var(--ink); font-weight: 700; }

.srv-body { display: grid; grid-template-columns: minmax(300px, 44%) minmax(0, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 980px) { .srv-body { grid-template-columns: 1fr; } }

.srv-gauges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-content: center; min-width: 0; }
.gauge {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.02);
  padding: 12px 8px 10px;
  overflow: hidden;
}
.gauge-wrap { position: relative; height: 104px; }
.g-label {
  margin-top: 6px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--ink-dim);
}
.gauge-sub { font-size: 11.5px; color: #6f6f6a; margin-top: 2px; }

.srv-live {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.02);
  min-height: 224px;
  min-width: 0;
  overflow: hidden;
}
.srv-live .chart-wrap {
  position: absolute;
  inset: 12px 14px 8px;
  width: auto;
  height: auto;
}
.subhead { font-size: 14px; font-weight: 700; margin: 18px 0 10px; }

/* Радио-вариант чекбокса (режим доступа) — квадрат с галочкой тоже смотрится ок,
   подсветим выбранный элемент меткой */
label.check { color: var(--ink); }

/* ===================== Логин ===================== */

.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-card {
  background: linear-gradient(180deg, #101013, #0a0a0c);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 40px 42px 36px;
  width: 400px; max-width: calc(100vw - 32px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.login-card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 120px;
  background: radial-gradient(400px 120px at 50% 0%, rgba(255, 255, 255, 0.09), transparent 70%);
  pointer-events: none;
}
.login-card h1 {
  font-size: 20px; text-transform: uppercase; letter-spacing: 0.18em; margin: 8px 0 2px;
}
.login-card > .muted { font-size: 13px; margin-top: 0; }
.login-card .tg-login { margin: 26px 0 10px; }
.login-card hr { margin: 24px 0 20px; }
.login-card .stack button { width: 100%; }
.login-card > h1::before {
  content: "";
  display: block; width: 46px; height: 46px;
  margin: 0 auto 18px;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 30%, #fff 0%, #d9d9d4 45%, #6a6a70 100%);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.25);
}

/* ===================== Подвал ===================== */

footer {
  margin-left: var(--sidebar-w);
  text-align: center; color: #55555a; font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 24px 0 34px;
}

/* ===================== Мобильная адаптация ===================== */

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    width: 270px;
  }
  .sidebar.open { transform: translateX(0); box-shadow: 30px 0 60px rgba(0, 0, 0, 0.5); }
  .topbar { display: flex; }
  main.content, main, footer { margin-left: 0; }
  main.content, main { padding: 20px 16px 90px; }
  .bot-status-card { flex-direction: column; align-items: stretch; }
  .bot-actions button, .bot-actions form { width: 100%; }
  .msg { max-width: 92%; }
  .charts { grid-template-columns: 1fr; }
  .card { flex: 1 1 130px; }
  td.actions { flex-direction: column; }
}
@media (max-width: 540px) {
  .cards { gap: 10px; }
  .card b { font-size: 24px; }
  h1 { font-size: 21px; }
  .flash { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
