:root {
  --bg: #0b0f15;
  --bg2: #0f151d;
  --panel: #131b25;
  --panel2: #18222e;
  --line: #233042;
  --grid: #1c2735;
  --text: #dfe6ef;
  --muted: #8a96a8;
  --accent: #3ddc97;
  --accent2: #4da3ff;
  --ok: #3ddc97;
  --warn: #f5b83d;
  --bad: #ff5c5c;
  --teamA: #4da3ff;
  --teamB: #ff7a59;
  --radius: 10px;
  --shadow: 0 8px 30px rgba(0, 0, 0, .35);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  background: radial-gradient(1200px 600px at 80% -10%, #12324033, transparent), var(--bg);
  color: var(--text);
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  display: flex; flex-direction: column; min-height: 100vh;
  -webkit-text-size-adjust: 100%;
}
[hidden] { display: none !important; }
a { color: var(--accent2); }
code { font-family: var(--mono); background: #0003; padding: 1px 5px; border-radius: 4px; font-size: .92em; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: .01em; }
h2 { font-size: 20px; }
h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: #b9c4d3; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.tiny { font-size: 12px; }
.center { text-align: center; }
.right { text-align: right; display: block; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.accent { color: var(--accent); }
.bad-text { color: var(--bad); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #000; padding: 6px 10px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }

/* ---------- buttons & inputs ---------- */
.btn {
  appearance: none; border: 1px solid var(--line); background: var(--panel2); color: var(--text);
  padding: 8px 14px; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer;
  transition: background .15s, border-color .15s, transform .05s; white-space: nowrap;
  min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none;
}
.btn:hover:not(:disabled) { border-color: #3a4c63; background: #1d2937; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: linear-gradient(180deg, #43e3a0, #2fbf80); border-color: #2fbf80; color: #04150d; }
.btn.primary:hover:not(:disabled) { background: linear-gradient(180deg, #55eaab, #35cc8a); }
.btn.danger { background: #3a1518; border-color: #6b2228; color: #ffb3b3; }
.btn.danger:hover:not(:disabled) { background: #4d1a1f; border-color: #8c2c33; }
.btn.warn { background: #3a2c10; border-color: #6b5220; color: #ffd98a; }
.btn.ghost { background: transparent; }
.btn.sm { padding: 4px 10px; min-height: 30px; font-size: 12.5px; }
.btn.block { width: 100%; }
.link { background: none; border: 0; color: var(--accent2); cursor: pointer; font: inherit; padding: 0 2px; text-decoration: underline; }

input[type=text], input[type=url], input[type=password], input[type=number], input[type=search], input[type=email], input[type=datetime-local], select, textarea {
  width: 100%; background: var(--bg2); color: var(--text); border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; font: inherit; min-height: 38px;
}
textarea { resize: vertical; min-height: 70px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent2); outline: none; box-shadow: 0 0 0 3px #4da3ff33; }
[aria-invalid="true"] { border-color: var(--bad) !important; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; min-width: 0; }
.field > span { font-weight: 600; font-size: 12.5px; color: #b9c4d3; }
.field.compact { margin: 0; }
.field.inline { flex-direction: row; align-items: center; gap: 6px; }
.field.inline select { width: auto; min-height: 32px; padding: 4px 8px; }
.field-error { color: var(--bad); min-height: 0; }
.field-error:empty { display: none; }
.form-error { background: #3a1518; border: 1px solid #6b2228; color: #ffb3b3; padding: 8px 10px; border-radius: 8px; margin-bottom: 12px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.check.sm { font-size: 12.5px; }
.grow { flex: 1 1 200px; }
.row { display: flex; align-items: center; flex-wrap: wrap; }
.row.gap { gap: 10px; }
.row.end { justify-content: flex-end; }
.with-unit { position: relative; }
.with-unit input { padding-right: 70px; }
.with-unit .unit { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 12px; pointer-events: none; }
.pw { display: flex; gap: 6px; }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; min-height: 38px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .slider { width: 42px; height: 24px; border-radius: 12px; background: #2a3747; position: relative; transition: background .2s; }
.switch .slider::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #c8d2df; transition: transform .2s; }
.switch input:checked + .slider { background: var(--accent); }
.switch input:checked + .slider::after { transform: translateX(18px); background: #fff; }
.switch input:focus-visible + .slider { outline: 2px solid var(--accent2); outline-offset: 2px; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .05em; background: #223043; color: #b9c4d3; text-transform: uppercase; }
.badge.warn { background: #3a2c10; color: var(--warn); }
.badge.bad { background: #3a1518; color: var(--bad); }
.badge.info { background: #10263d; color: var(--accent2); }

/* ---------- login ---------- */
.login { flex: 1; display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: 100%; max-width: 420px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 28px; box-shadow: var(--shadow); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand.big { margin-bottom: 22px; }
.brand.big h1 { font-size: 22px; }
.brand.big p { margin: 2px 0 0; }
.logo { width: 30px; height: 30px; border-radius: 8px; flex: none; background:
  linear-gradient(var(--accent), var(--accent)) 3px 17px / 24px 8px no-repeat,
  linear-gradient(var(--accent), var(--accent)) 8px 11px / 12px 7px no-repeat,
  linear-gradient(var(--accent), var(--accent)) 18px 13px / 11px 3px no-repeat,
  #0f1a14; border: 1px solid #1f3a2c; }
.brand.big .logo { width: 42px; height: 42px; background-size: 34px 11px, 17px 10px, 15px 4px; background-position: 4px 24px, 11px 15px, 25px 18px; }

/* ---------- shell ---------- */
.app { flex: 1; display: grid; grid-template-columns: 220px 1fr; grid-template-rows: auto 1fr; grid-template-areas: "top top" "nav main"; }
.topbar { grid-area: top; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; background: #0d131bf5; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar strong { font-size: 16px; }
.topbar-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.conn { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.conn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.conn.ok .dot { background: var(--ok); animation: pulse 2s ease-in-out infinite; }
.conn.bad .dot { background: var(--bad); }
.conn.bad { color: var(--bad); }
@keyframes pulse { 50% { opacity: .35; } }

.tabs { grid-area: nav; display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; border-right: 1px solid var(--line); background: #0d131b88; position: sticky; top: 53px; align-self: start; height: calc(100vh - 53px); }
.tabs [role=tab] { appearance: none; background: none; border: 0; color: var(--muted); text-align: left; padding: 10px 12px; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; display: flex; gap: 10px; align-items: center; border-left: 3px solid transparent; }
.tab-ico { width: 18px; display: inline-grid; place-items: center; font-size: 17px; }
.tabs [role=tab]:hover { background: #ffffff08; color: var(--text); }
.tabs [role=tab][aria-selected=true] { background: #3ddc9714; color: var(--text); border-left-color: var(--accent); }

main { grid-area: main; padding: 18px 22px 28px; min-width: 0; outline: none; }
.panel { animation: fade .18s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--text); }
.crumbs h2.mono { font-size: 18px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.grid-2 > .card { margin-bottom: 0; }
.grid-2 { margin-bottom: 16px; }
.grid-2.wide-left { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.grid-2.wide-left > .card:last-child { align-self: start; }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; position: relative; overflow: hidden; min-width: 0; }
.kpi-wide { grid-column: span 2; }
.kpi-label { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.kpi-val { font-size: 26px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-kpi=uptime] .kpi-val { font-size: 22px; padding-top: 3px; }
[data-kpi=build] .kpi-val { font-family: var(--mono); font-size: 20px; padding-top: 4px; }
.kpi-sub { font-size: 12px; margin-top: 2px; }
.kpi .spark { position: absolute; right: 10px; top: 14px; width: 48%; height: 46px; }
.skeleton { display: inline-block; width: 70%; height: 22px; border-radius: 6px; background: linear-gradient(90deg, #1c2735, #26354a, #1c2735); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

svg.ico { vertical-align: -0.14em; flex: none; }
.kpi-label svg.ico { font-size: 14px; margin-right: 2px; }
.btn svg.ico { font-size: 15px; }
.wx { display: inline-flex; align-items: center; gap: 6px; }
.wx svg.ico { font-size: 16px; color: #9fb4cc; }
.wx-clear svg.ico { color: #f5d33d; } .wx-partly svg.ico { color: #f5c26b; } .wx-rain svg.ico, .wx-storm svg.ico { color: #6fb6ff; } .wx-snow svg.ico { color: #e6f3ff; } .wx-live svg.ico { color: var(--accent); }
.state-ico svg.ico { font-size: 28px; }
.talking { color: var(--accent); }
.talking svg.ico { font-size: 16px; }
th svg.ico { font-size: 14px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 8px; border-bottom: 1px solid #1a2431; vertical-align: middle; white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table.clickable tbody tr { cursor: pointer; }
.table tbody tr:hover { background: #ffffff06; }
.table tbody tr:focus-visible { outline: 2px solid var(--accent2); outline-offset: -2px; }
.table td.actions { text-align: right; white-space: nowrap; }
.table td.actions > .btn + .btn { margin-left: 6px; }
.cap { display: flex; align-items: center; gap: 8px; }
.capbar { width: 60px; height: 6px; background: #223043; border-radius: 3px; overflow: hidden; }
.capbar i { display: block; height: 100%; background: var(--accent2); }
.hp { position: relative; width: 90px; height: 16px; background: #223043; border-radius: 4px; overflow: hidden; }
.hp i { display: block; height: 100%; }
.hp i.ok { background: linear-gradient(90deg, #2fbf80, #3ddc97); }
.hp i.warn { background: linear-gradient(90deg, #d39a25, #f5b83d); }
.hp i.bad { background: linear-gradient(90deg, #d93f3f, #ff5c5c); }
.hp span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px #000a; }
.ping.ok { color: var(--ok); } .ping.warn { color: var(--warn); } .ping.bad { color: var(--bad); }
.team { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; font-size: 11px; font-weight: 800; background: #223043; }
.team-A { background: #10263d; color: var(--teamA); }
.team-B { background: #3a1d14; color: var(--teamB); }
.talking { display: inline-block; animation: talk 1s infinite; }
@keyframes talk { 50% { transform: scale(1.2); opacity: .7; } }

/* ---------- room detail ---------- */
.room-info { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: flex-end; }
.info-item { display: flex; flex-direction: column; gap: 2px; min-width: 110px; }
.info-item strong { font-size: 15px; }
.info-item select { min-width: 190px; }

.log { max-height: 340px; overflow-y: auto; font-size: 13px; background: var(--bg2); border: 1px solid #1a2431; border-radius: 8px; padding: 6px; }
.log.tall { max-height: 62vh; }
.log .line { padding: 4px 6px; border-radius: 5px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.log .line + .line { border-top: 1px solid #ffffff05; }
.log .line time { font-family: var(--mono); font-size: 11.5px; flex: none; }
.log .who { font-weight: 700; }
.log .who.sys { color: var(--warn); }
.log .line.sys { background: #f5b83d0d; }
.log .line.flagged { background: #ff5c5c14; box-shadow: inset 3px 0 0 var(--bad); }
.log .txt { flex: 1 1 200px; word-break: break-word; }
.log .scope { font-size: 10.5px; text-transform: uppercase; background: #10263d; color: var(--accent2); padding: 0 5px; border-radius: 4px; }
.log .state { padding: 24px; }
mark { background: #ff5c5c33; color: #ffb3b3; border-radius: 3px; padding: 0 2px; font-weight: 700; }
.evt { font-size: 10.5px; text-transform: uppercase; font-weight: 700; padding: 0 6px; border-radius: 4px; background: #223043; color: #b9c4d3; flex: none; }
.evt-kill { background: #3a1d14; color: var(--teamB); }
.evt-join { background: #0f2a1e; color: var(--ok); }
.evt-leave, .evt-kick, .evt-ban { background: #3a1518; color: var(--bad); }
.evt-weather, .evt-notice { background: #10263d; color: var(--accent2); }
.room-link { color: var(--muted); text-decoration: none; }
.room-link:hover { color: var(--accent2); }

/* ---------- chat moderation ---------- */
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.toolbar .field { margin: 0; }
.toolbar.tight { gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; min-height: 30px; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: #3a1518; color: #ffb3b3; border: 1px solid #6b2228; border-radius: 999px; padding: 2px 4px 2px 10px; font-size: 12.5px; font-weight: 600; }
.chip button { background: none; border: 0; color: inherit; cursor: pointer; font-size: 15px; line-height: 1; width: 22px; height: 22px; border-radius: 50%; }
.chip button:hover { background: #ffffff1a; }
.chip-btn { background: var(--bg2); border: 1px dashed var(--line); color: var(--muted); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 12.5px; cursor: pointer; }
.chip-btn:hover { color: var(--text); border-color: #3a4c63; }

/* ---------- broadcast ---------- */
.templates { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.preview { display: flex; gap: 10px; align-items: center; padding: 10px 12px; margin-bottom: 12px; border-radius: 8px; background: linear-gradient(90deg, #f5b83d1f, transparent); border: 1px solid #6b522055; font-weight: 600; min-height: 42px; word-break: break-word; }
.preview-tag { background: var(--warn); color: #1a1205; font-size: 10.5px; font-weight: 800; padding: 1px 6px; border-radius: 4px; flex: none; }
.hist { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow-y: auto; }
.hist li { padding: 10px 0; border-bottom: 1px solid #1a2431; }
.hist li:last-child { border: 0; }
.hist li.failed .hist-text { color: #ffb3b3; }
.hist-text { font-weight: 600; margin-bottom: 2px; word-break: break-word; }
blockquote { margin: 8px 0 0; padding: 8px 12px; border-left: 3px solid var(--warn); background: #f5b83d10; border-radius: 4px; word-break: break-word; }

/* ---------- settings / bans ---------- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 18px; }
.settings { max-width: 980px; }
.sticky-actions { position: sticky; bottom: 0; background: var(--panel); padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--line); }
.form-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.form-row .field { margin-bottom: 0; }
.form-row .field:first-child { flex: 0 0 150px; }
.bn-form .field-error { display: block; margin-top: 8px; }

/* ---------- monitoring ---------- */
.charts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.charts .card { margin: 0; min-width: 0; }
.chart { width: 100%; max-width: 100%; height: 220px; display: block; }

/* ---------- states ---------- */
.state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 34px 12px; color: var(--muted); text-align: center; }
.state-ico { font-size: 26px; opacity: .6; }
.state.err { color: #ffb3b3; }
.spinner { width: 22px; height: 22px; border: 3px solid #2a3747; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.health { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 8px; background: var(--bg2); margin-bottom: 12px; }
.health-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.health.ok .health-dot { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.health.warn .health-dot { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.health.bad .health-dot { background: var(--bad); box-shadow: 0 0 10px var(--bad); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-all; }

/* ---------- toasts & modal ---------- */
#toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 200; max-width: min(380px, calc(100vw - 32px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; background: #1a2532; border: 1px solid var(--line); border-left: 4px solid var(--accent2); padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow); opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }
.toast.in { opacity: 1; transform: none; }
.toast-ok { border-left-color: var(--ok); } .toast-ok .toast-ico { color: var(--ok); }
.toast-error { border-left-color: var(--bad); } .toast-error .toast-ico { color: var(--bad); }
.modal-back { position: fixed; inset: 0; background: #000a; display: grid; place-items: center; z-index: 150; padding: 16px; animation: fade .15s; }
.modal { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; width: 100%; max-width: 440px; box-shadow: var(--shadow); }
.modal h3 { text-transform: none; letter-spacing: 0; font-size: 17px; color: var(--text); margin-bottom: 8px; }
.modal-body p { margin: 0 0 12px; color: #c3cdd9; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }

.remember-help { display: block; margin: 4px 0 14px 24px; }
.footer { text-align: center; padding: 14px; color: var(--muted); font-size: 12.5px; border-top: 1px solid var(--line); background: #0b0f15; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid-2, .grid-2.wide-left, .charts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; grid-template-areas: "top" "nav" "main"; }
  .tabs { flex-direction: row; height: auto; position: sticky; top: 53px; z-index: 15; overflow-x: auto; padding: 6px 8px; border-right: 0; border-bottom: 1px solid var(--line); background: #0d131bf0; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs [role=tab] { flex: none; border-left: 0; border-bottom: 3px solid transparent; border-radius: 6px 6px 0 0; padding: 8px 10px; white-space: nowrap; }
  .tabs [role=tab][aria-selected=true] { border-bottom-color: var(--accent); }
  main { padding: 14px 12px 24px; }
}
@media (max-width: 520px) {
  .topbar { padding: 8px 12px; }
  .topbar strong { font-size: 15px; }
  #env-badge { display: none; }
  .conn-txt { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kpi-wide { grid-column: span 2; }
  .kpi-val { font-size: 21px; }
  .card { padding: 12px; }
  .login-card { padding: 20px; }
  .form-row .field:first-child { flex: 1 1 100%; }
  .form-row .btn { width: 100%; }
  .info-item select { min-width: 0; }
  .room-info { gap: 12px 18px; }
  .chart { height: 190px; }
  h2 { font-size: 18px; }
  .panel-head .toolbar { width: 100%; }
}

/* ---------- v2: scale ---------- */
.ok-text { color: var(--ok); } .warn-text { color: var(--warn); }
.hero-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.hero-row > .card { margin: 0; }
.hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: stretch;
  background: radial-gradient(500px 220px at 0% 0%, #3ddc9722, transparent), linear-gradient(180deg, var(--panel2), var(--panel)); }
.hero-main { display: flex; flex-direction: column; justify-content: center; min-width: 170px; }
.hero-val { font-size: 54px; line-height: 1.05; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: 6px 0 4px; color: #f2fff8; text-shadow: 0 0 24px #3ddc9733; }
.hero-val .skeleton { width: 200px; height: 48px; }
.hero-chart { min-width: 0; display: flex; }
.hero-chart .chart { height: 160px; align-self: center; }
.delta { font-weight: 700; font-size: 13px; color: var(--muted); }
.delta.up { color: var(--ok); } .delta.down { color: var(--bad); }
.scene-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: var(--c, var(--accent)); }
.table .num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table.scenes td:last-child { display: flex; align-items: center; gap: 8px; min-width: 110px; }
.table.scenes td, .table.scenes th { padding-left: 6px; padding-right: 6px; }
@media (max-width: 1300px) { .table.scenes th:nth-child(4), .table.scenes td:nth-child(4) { display: none; } }
.share { flex: 1; min-width: 50px; height: 8px; background: #223043; border-radius: 4px; overflow: hidden; }
.share i { display: block; height: 100%; border-radius: 4px; }
.capbar.full i { background: var(--ok); }
.kpis { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

.search-form { display: flex; gap: 8px; align-items: center; flex: 0 1 380px; }
.search-err { display: block; margin: -6px 0 10px; text-align: right; }
.scene-tabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 14px; }
.scene-btn { appearance: none; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; color: var(--text); font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 2px; border-top: 3px solid var(--c); }
.scene-btn:hover { background: var(--panel2); }
.scene-btn[aria-checked=true] { background: linear-gradient(180deg, color-mix(in srgb, var(--c) 16%, transparent), var(--panel)); border-color: var(--c); }
.scene-name { font-weight: 700; }
.scene-btn .scene-dot { background: var(--c); }
.scene-meta { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.center-row { justify-content: center; margin-top: 12px; }

.security h3 { display: flex; align-items: center; gap: 6px; }
.sec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-bottom: 14px; }
.sec-group { background: var(--bg2); border: 1px solid #1a2431; border-radius: 8px; padding: 10px 12px; min-width: 0; }
.sec-group h4 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.sec-group .card-head { margin-bottom: 6px; }
.sec-group .card-head h4 { margin: 0; }
.kv.sec { font-size: 13px; gap: 5px 12px; }
.kv.sec dd { word-break: normal; }
.ban-mini { list-style: none; margin: 0; padding: 0; }
.ban-mini li { padding: 6px 0; border-bottom: 1px solid #1a2431; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.ban-mini li:last-child { border: 0; }
.charts .card:first-child { grid-column: 1 / -1; }

@media (max-width: 1100px) {
  .hero-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hero-val { font-size: 44px; }
  .hero-chart .chart { height: 130px; }
  .search-form { flex: 1 1 100%; }
  .scene-tabs { grid-template-columns: 1fr 1fr; gap: 8px; }
  .scene-btn { padding: 8px 10px; }
  .table.scenes th:nth-child(4), .table.scenes td:nth-child(4) { display: none; }
  .table.scenes td:last-child { min-width: 64px; }
  .table.scenes td:last-child .small { display: none; }
  .table .c-mode, .table .c-created { display: none; }
  .sec-grid { grid-template-columns: minmax(0, 1fr); }
}


/* ---------- v2.2: accounts, revenue, cheats ---------- */
.kpi-val .per { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 2px; }
[data-kpi=revenue] .kpi-sub .badge { margin-right: 4px; }
.kpi-sub { line-height: 1.5; }
.badge.plan { letter-spacing: .04em; }
.plan-free { background: #223043; color: #b9c4d3; }
.plan-pro { background: linear-gradient(90deg, #3a2c10, #4a3510); color: #ffd36b; box-shadow: inset 0 0 0 1px #6b5220; }
.plan-trial { background: #10263d; color: var(--accent2); box-shadow: inset 0 0 0 1px #1d4470; }
.plan-pastdue { background: #3a1518; color: #ff9c9c; box-shadow: inset 0 0 0 1px #6b2228; }
.kind-uid { background: #1f1a3a; color: #b9a6ff; }
.kind-ip { background: #10263d; color: var(--accent2); }
.badge.sus { text-transform: none; letter-spacing: 0; display: inline-flex; align-items: center; gap: 3px; vertical-align: 1px; margin-left: 4px; }
.badge.rule { background: #26203a; color: #cbb8ff; text-transform: none; letter-spacing: 0; }
.uid { display: inline-block; max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
div.uid { display: block; max-width: 180px; margin-top: 1px; }
.table.players td:first-child { min-width: 150px; }
.provs { display: inline-flex; gap: 6px; align-items: center; }
.prov { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #e9eef5; font-size: 14px; }
.prov-apple { background: #f2f2f2; color: #000; }
.prov-email { background: #223043; color: #b9c4d3; }
.table.accounts td.email { color: #b9c4d3; }
.table.accounts td.email.revealed { color: var(--warn); }
.table tbody tr.sel { background: #3ddc9712; box-shadow: inset 3px 0 0 var(--accent); }
.table.cheats td.wrap { white-space: normal; min-width: 170px; }
.table.cheats .uid { max-width: 130px; }
.table.cheats td, .table.cheats th { padding-left: 6px; padding-right: 6px; }
.chip-btn.on { border-style: solid; border-color: var(--accent2); color: var(--text); background: #10263d; }
.chip-btn b { color: var(--text); margin-left: 3px; }
.notice { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; margin: -4px 0 12px; }
.notice.warn { background: #3a2c1055; border: 1px solid #6b5220; color: #ffd98a; }
.btn.warn[aria-pressed=true] { background: #3a2c10; }
.icon-btn { width: 34px; padding: 0; }

.drawer-back { position: fixed; inset: 0; background: #0009; z-index: 120; display: flex; justify-content: flex-end; animation: fade .15s; }
.drawer { width: min(520px, 100vw); height: 100%; background: var(--panel); border-left: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; outline: none; animation: slidein .2s ease; }
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { text-transform: none; letter-spacing: 0; font-size: 18px; color: var(--text); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.drawer-head .uid { max-width: 100%; margin-top: 4px; }
.drawer-body { padding: 4px 18px 24px; overflow-y: auto; flex: 1; }
.drawer-body section { padding: 14px 0; border-bottom: 1px solid #1a2431; }
.drawer-body section:last-child { border-bottom: 0; }
.drawer-body h4 { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.drawer-body .kv dd { word-break: break-word; }
.comp-form { margin-top: 12px; align-items: flex-end; }
.comp-form .with-unit input { width: 150px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { background: var(--bg2); border: 1px solid #1a2431; border-radius: 8px; padding: 8px 10px; min-width: 0; }
.stat-v { font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-l { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.stat-s { font-size: 11.5px; }
.stat-txt { font-size: 14px; white-space: normal; line-height: 1.25; display: block; }
.stat-v:has(.stat-txt) { white-space: normal; }
.danger-zone .btn { margin-top: 4px; }
@media (max-width: 520px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .drawer-head, .drawer-body { padding-left: 14px; padding-right: 14px; }
  .uid { max-width: 140px; }
}


/* ---------- v2.3: owner dashboard parity ---------- */
:root { --map-land: #1a2532; --map-fill0: #1b2a22; --sea: #0c1620; }
.tabs { overflow-y: auto; }
.tab-group { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: #5f6d80; padding: 12px 12px 4px; font-weight: 700; }
.tab-group:first-child { padding-top: 2px; }
.tabs [role=tab] { padding: 8px 12px; }
.tab-cnt { margin-left: auto; background: var(--bad); color: #fff; font-size: 10.5px; font-weight: 800; border-radius: 999px; padding: 0 6px; min-width: 18px; text-align: center; }
.who { font-size: 12.5px; color: #c9d4e1; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; }
.who.token { color: var(--warn); border-color: #6b5220; }
.badge.ok { background: #0f2a1e; color: var(--ok); }
.badge.plan-pro, .badge.plan-trial, .badge.plan-free { text-transform: uppercase; }
.cc { display: inline-block; font: 700 10.5px/1 var(--mono); padding: 3px 4px; border-radius: 4px; background: #223043; color: #c9d4e1; letter-spacing: .04em; vertical-align: 1px; }
.block { display: block; }
.mt { margin-top: 12px; }
.grow { flex: 1 1 auto; }

/* login */
.g-box { padding: 4px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.g-title { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #b9c4d3; margin-bottom: 10px; }
.gbtn { min-height: 44px; display: flex; align-items: center; }
.gbtn:empty { min-height: 0; }
.login { grid-template-columns: minmax(0, 420px); justify-content: center; }
.login-card { min-width: 0; }
.btn.block { white-space: normal; }
.g-msg { margin: 8px 0; min-height: 1em; }
.token-box { margin-bottom: 12px; }
.token-box summary { cursor: pointer; color: var(--muted); font-size: 13px; padding: 4px 0 10px; }
.token-box summary:hover { color: var(--text); }
.token-box[open] summary { color: var(--text); }

/* section headings, KPI rows */
.sechd { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 6px 0 10px; display: flex; align-items: center; gap: 10px; }
.kpis.kpis-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpis.kpis-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.kpis.kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.big-kpi .kpi-val { font-size: 30px; }
.big-kpi .spark { position: static; width: 100%; height: 34px; margin-top: 4px; display: block; }
.kpi.neg { border-color: #6b2228; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.grid-3 > .card { margin: 0; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.stack > .card { margin: 0; }
.map-row { align-items: start; }

/* segmented buttons */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg.wrap { flex-wrap: wrap; }
.seg .btn { border: 0; border-radius: 0; background: transparent; color: var(--muted); }
.seg .btn + .btn { border-left: 1px solid var(--line); }
.seg .btn[aria-pressed=true] { background: #3ddc971c; color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.mapbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.notice.info { background: #10263d66; border: 1px solid #1d4470; color: #a9cff5; margin: 0 0 10px; }

/* map + globe */
.map-box { position: relative; width: 100%; border-radius: 8px; overflow: hidden; background: var(--sea); min-height: 200px; }
.map-box:has(> canvas.flat), .map-box:has(> svg) { min-height: 0; }
.map-box svg { display: block; width: 100%; height: auto; cursor: grab; }
.map-box canvas { display: block; max-width: 100%; }
.globe-box { height: min(520px, 62vw); background: radial-gradient(circle at 50% 45%, #0e1d2b, #05090d 70%); }
.globe-box canvas { cursor: grab; }
.map-box .sea { fill: var(--sea); }
.map-box .grat { fill: none; stroke: #1b2a3a; stroke-width: .5; }
.map-box .c { stroke: #0b0f15; stroke-width: .4; }
.map-box .c:hover { stroke: #dfe6ef; stroke-width: .8; }
.map-box circle.p { fill-opacity: .72; stroke: #0b0f15; stroke-width: .6; }
.map-box path.arc { fill: none; stroke: rgba(255, 122, 89, .6); }
.map-box g.bf circle { fill: #ff5c5c; stroke: #fff; stroke-width: 2; }
.map-box g.bf text { fill: #ffd0c4; font: 600 11px system-ui, sans-serif; paint-order: stroke; stroke: #0b0f15; stroke-width: 3px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 12px; color: var(--muted); margin-top: 8px; }
.legend .grad { width: 90px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--map-fill0), var(--c, var(--accent))); }
.legend .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: 0; }
.legend .dot.bf { background: #ff5c5c; box-shadow: 0 0 0 2px #fff inset; }
.legend .arc { display: inline-block; width: 18px; height: 2px; background: #ff7a59; margin-right: 5px; vertical-align: 3px; }
.legend .hint { margin-left: auto; }
#geo-tip, .gtip { position: fixed; z-index: 300; pointer-events: none; background: #0b0f15ee; border: 1px solid var(--line); border-radius: 6px; padding: 6px 9px; font-size: 12.5px; color: var(--text); box-shadow: var(--shadow); display: none; max-width: 260px; }
.gtip { position: static; display: block; }
.toplist { list-style: none; margin: 0; padding: 0; }
.toplist li { display: grid; grid-template-columns: auto minmax(0, 1fr) 70px auto; gap: 8px; align-items: center; padding: 5px 0; font-size: 13px; border-bottom: 1px solid #1a2431; }
.toplist li:last-child { border: 0; }
.tl-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-bar { height: 6px; border-radius: 3px; background: #223043; overflow: hidden; }
.tl-bar i { display: block; height: 100%; }
.joins { list-style: none; margin: 0; padding: 0; }
.joins li { display: flex; align-items: center; gap: 6px; padding: 4px 0; font-size: 13px; border-bottom: 1px solid #1a2431; }
.joins li:last-child { border: 0; }

/* heat map */
.heat-wrap { overflow-x: auto; }
.heat { display: grid; grid-template-columns: 34px repeat(24, minmax(14px, 1fr)) 48px; gap: 3px; min-width: 560px; font-size: 11px; color: var(--muted); }
.heat i { display: block; height: 20px; border-radius: 3px; background: var(--accent); }
.heat .h { text-align: left; }
.heat .d { align-self: center; }
.heat .t { text-align: right; align-self: center; color: #b9c4d3; }
.hsum { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.hsum b { color: var(--text); }

/* charts */
.chart.donut { height: 240px; }
.chart-card.nodata canvas { display: none; }
.chart-card .nodata-msg { display: none; margin: 30px 0; text-align: center; }
.chart-card.nodata .nodata-msg { display: block; }
.ret-row { display: grid; grid-template-columns: 60px minmax(0, 1fr) 54px; gap: 10px; align-items: center; margin: 12px 0; font-size: 13px; }
.ret-bar { height: 14px; border-radius: 7px; background: #223043; overflow: hidden; }
.ret-bar i { display: block; height: 100%; background: linear-gradient(90deg, #2fbf80, #3ddc97); }

/* drawers & detail */
.drawer { width: min(620px, 100vw); }
.drawer-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 18px; border-bottom: 1px solid var(--line); background: #0f151d; }
.table.mini { font-size: 12.5px; }
.table.mini td, .table.mini th { padding: 5px 6px; }
.table td.wrap { white-space: normal; }
.notes, .devices { list-style: none; margin: 8px 0 0; padding: 0; }
.notes li { background: var(--bg2); border: 1px solid #1a2431; border-left: 3px solid var(--warn); border-radius: 6px; padding: 8px 10px; margin-bottom: 6px; }
.notes p { margin: 0 0 3px; white-space: pre-wrap; }
.devices li { font-size: 13px; padding: 3px 0; }
.btn.danger.ghost { background: transparent; }

/* dialogs */
.modal.wide { max-width: 640px; }
.modal .form-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 14px; }
.modal .form-cols .field textarea { min-height: 80px; }
.modal .form-cols > .check { grid-column: 1 / -1; margin: 2px 0 12px; }
.modal .form-cols > .field:has(textarea) { grid-column: 1 / -1; }
.modal { max-height: calc(100vh - 32px); overflow-y: auto; }
.secret { display: flex; gap: 8px; align-items: center; background: var(--bg2); border: 1px dashed var(--accent); border-radius: 8px; padding: 10px 12px; margin: 8px 0; }
.secret code { font-size: 16px; font-weight: 700; letter-spacing: .06em; background: none; color: #eafff4; flex: 1; user-select: all; word-break: break-all; }
.tall-scroll { max-height: 50vh; overflow: auto; }

/* health & cost */
.warns { list-style: none; margin: 0; padding: 0; }
.warns li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 6px; margin-bottom: 6px; font-size: 13.5px; }
.warns .wi { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.warn-bad { background: #3a151855; border: 1px solid #6b2228; } .warn-bad .wi { background: var(--bad); color: #fff; }
.warn-warn { background: #3a2c1055; border: 1px solid #6b5220; } .warn-warn .wi { background: var(--warn); color: #1a1205; }
.warn-info { background: #10263d55; border: 1px solid #1d4470; } .warn-info .wi { background: var(--accent2); color: #04121f; }
.warn-ok { background: #0f2a1e55; border: 1px solid #1f5a3f; } .warn-ok .wi { background: var(--ok); color: #04150d; }
.chk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; }
.chk { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; background: var(--bg2); border: 1px solid #1a2431; min-width: 0; }
.chk .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chk-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.chk.ok .chk-dot { background: var(--ok); } .chk.bad .chk-dot { background: var(--bad); }
.chk-s { margin-left: auto; font-size: 11px; color: var(--muted); }
.chk.bad .chk-s { color: var(--bad); font-weight: 700; }
.table.cost tfoot th, .table.cost tfoot td { border-top: 1px solid var(--line); padding-top: 8px; }
.share-cell { display: inline-block; width: 50px; height: 6px; background: #223043; border-radius: 3px; overflow: hidden; margin-right: 6px; vertical-align: 1px; }
.share-cell i { display: block; height: 100%; background: var(--warn); }

/* log / versions */
.table.log tr.row-err td { background: #ff5c5c0d; }
.table.versions tr.live td { background: #3ddc970d; }
.table.versions tr.live td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.deploy .card-head h3 { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.card-head h3 .mono { text-transform: none; letter-spacing: 0; }
input[type=datetime-local]::-webkit-calendar-picker-indicator { filter: invert(.8); }
@media (max-width: 1500px) { .table.users .c-platform, .table.users .c-created { display: none; } }
@media (max-width: 1250px) { .table.users .c-battles, .table.users .c-via { display: none; } }

@media (max-width: 1200px) {
  .kpis.kpis-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpis.kpis-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .tab-group { display: none; }
  .tabs { overflow-y: visible; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .kpis.kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .kpis.kpis-5, .kpis.kpis-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis.kpis-5 > .kpi:first-child { grid-column: 1 / -1; }
  .big-kpi .kpi-val { font-size: 24px; }
  .who { display: none; }
  .legend .hint { margin-left: 0; }
  .mapbar .seg { flex-wrap: wrap; width: 100%; }
  .mapbar .seg .btn { flex: 1 1 auto; }
  .mapbar .grow { display: none; }
  .globe-box { height: 340px; }
  .chart.donut { height: 250px; }
  .drawer-actions { padding: 8px 14px; }
  .table .c-via, .table .c-renew, .table .c-battles, .table .c-platform { display: none; }
  .modal .form-cols { grid-template-columns: minmax(0, 1fr); }
  .table.cost th:nth-child(3), .table.cost td:nth-child(3), .table.cost th:nth-child(6), .table.cost td:nth-child(6) { display: none; }
  .table.cost td:first-child { white-space: normal; min-width: 130px; }
}

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