/* FullFocus CS2 — tactical HUD console.
   Near-black surfaces, one orange signal color, sharp 3px corners, corner brackets on panels,
   Russo One for headings and big numbers, Onest for text, JetBrains Mono for data. */

@font-face { font-family: "Russo One"; src: url("/static/RussoOne-Regular.ttf") format("truetype"); font-display: swap; }

:root {
  --bg: #09090a;
  --bg-2: #0e0e10;
  --panel: #131315;
  --panel-2: #19191c;
  --panel-3: #202024;
  --line: #242428;
  --line-2: #323238;
  --text: #f4f4f1;
  --muted: #a3a3ab;
  --dim: #74747c;
  --accent: #ff7a00;
  --accent-hi: #ff9433;
  --accent-ink: #140900;
  --accent-wash: rgba(255, 122, 0, .1);
  --ok: #3ddc84;
  --bad: #ff5a5a;
  --warn: #ffc24a;
  --r: 3px;
  --display: "Russo One", "Arial Black", system-ui, sans-serif;
  --font: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); }
code, .mono { font-family: var(--mono); font-size: .92em; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.3; }
p { margin: 0; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.up { color: var(--ok); }
.down { color: var(--bad); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ─── controls ─────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel-2); color: var(--text);
  font: 600 14px/1 var(--font); cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s, transform .12s var(--ease); }
.btn:hover { border-color: #4a4a52; color: var(--text); background: var(--panel-3); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); color: var(--accent-ink); }
.btn-ghost { background: transparent; }
.btn-danger { color: var(--bad); }
.btn-danger:hover { border-color: rgba(255, 90, 90, .5); color: var(--bad); background: rgba(255, 90, 90, .06); }
td .btn-danger { color: var(--muted); }
td .btn-danger:hover { color: var(--bad); }
.btn-ok { color: var(--ok); }
.btn-sm { min-height: 32px; padding: 0 11px; font-size: 13px; }
.btn-icon { width: 32px; min-height: 32px; padding: 0; }

input, select, textarea { width: 100%; min-height: 40px; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--bg-2); color: var(--text); font: 14px/1.4 var(--font); transition: border-color .15s, background-color .15s; }
input:hover, select:hover, textarea:hover { border-color: #45454d; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); background: #0b0b0c; outline: none; }
input::placeholder, textarea::placeholder { color: var(--dim); }
textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
label { display: grid; gap: 7px; font-size: 13px; color: var(--muted); }
.check { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 14px; cursor: pointer; }
.check input { width: 18px; min-height: 18px; height: 18px; accent-color: var(--accent); }

/* ─── public pages (landing, connect, login) ───────────────────────────── */
.hero { min-height: 100vh; display: grid; place-items: center; padding: 40px 16px; position: relative; overflow: hidden;
  background: radial-gradient(800px 480px at 12% 0%, rgba(255, 122, 0, .13), transparent 60%), var(--bg); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px;
  mask-image: radial-gradient(circle at 30% 20%, #000 0%, transparent 70%); }
.card { position: relative; width: min(560px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 34px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 400 19px/1 var(--display); color: var(--text); }
.brand b { color: var(--accent); font-weight: 400; }
.brand svg { width: 26px; height: 26px; color: var(--accent); }
.connect-title { margin: 22px 0 8px; font-size: 28px; }
.server-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 0; }
.server-meta div { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.server-meta b { display: block; font: 400 19px/1.3 var(--display); }
.server-meta span { font-size: 12px; color: var(--muted); }
.addr { display: flex; gap: 8px; align-items: center; margin-top: 14px; }
.addr code { flex: 1; padding: 11px 13px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); font-size: 15px; overflow-x: auto; white-space: nowrap; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.actions .btn { flex: 1 1 200px; min-height: 48px; font-size: 15px; }
.hint { margin-top: 18px; font-size: 13px; color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 24px 0; }
.features div { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; font-size: 14px; }
.alert { padding: 12px 14px; border-radius: var(--r); border: 1px solid rgba(255, 90, 90, .45); background: rgba(255, 90, 90, .06); color: #ff9a9a; margin: 14px 0; font-size: 14px; }
.notice { padding: 12px 14px; border-radius: var(--r); border: 1px solid rgba(61, 220, 132, .4); background: rgba(61, 220, 132, .06); color: #8ff0bb; margin-bottom: 18px; font-size: 14px; }
.qr { background: #fff; border-radius: var(--r); padding: 12px; width: 220px; margin-top: 16px; }
.qr svg { width: 100%; height: auto; display: block; }

/* status dot */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--dim); margin-right: 7px; vertical-align: 1px; }
.dot.on { background: var(--ok); animation: beat 2.4s ease-in-out infinite; }
@keyframes beat { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* ─── console shell ────────────────────────────────────────────────────── */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh;
  background: linear-gradient(90deg, var(--bg-2) 247px, var(--line) 247px 248px, var(--bg) 248px); }
.nav { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 2px; padding: 22px 14px 16px;
  background: var(--bg-2); overflow-y: auto; }
.nav > a.brand { padding: 2px 10px 22px; font-size: 19px; font-weight: 400; color: var(--text); }
.nav > a.brand:hover { background: none; }
.nav-group { margin: 14px 10px 6px; font-size: 11px; font-weight: 600; color: var(--dim); letter-spacing: .08em; text-transform: uppercase; }
.nav > a { position: relative; display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: var(--r); color: var(--muted); font-weight: 500; font-size: 14.5px;
  transition: background-color .15s, color .15s; }
.nav > a svg { width: 18px; height: 18px; flex: none; opacity: .8; }
.nav > a:hover { background: var(--panel); color: var(--text); }
.nav > a.on { background: var(--accent-wash); color: var(--text); }
.nav > a.on svg { color: var(--accent); opacity: 1; }
.nav > a.on::before { content: ""; position: absolute; left: -14px; top: 7px; bottom: 7px; width: 3px; background: var(--accent); }
.nav .count { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 2px; background: var(--accent); color: var(--accent-ink); font: 600 12px/1.5 var(--mono); text-align: center; }
.me-card { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 10px 4px; border-top: 1px solid var(--line); }
.avatar { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: var(--r); background: var(--panel-3); border: 1px solid var(--line-2);
  font: 400 14px/1 var(--display); color: var(--accent); }
.me-card .who { min-width: 0; font-size: 12.5px; line-height: 1.45; color: var(--dim); }
.me-card .who b { display: block; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-card .who a { color: var(--dim); }
.me-card .who a:hover { color: var(--accent); }

.workspace { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px 36px; background: rgba(9, 9, 10, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar h1 { font-size: 24px; }
.topbar .sub { margin-top: 2px; font-size: 13px; color: var(--muted); }
.topbar .tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.content { padding: 28px 36px 56px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-content: start; }
.content > *, .grid-2 > *, .grid-even > * { min-width: 0; }

/* HUD panel: thin border + orange corner brackets */
.panel { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.panel::before, .panel::after { content: ""; position: absolute; width: 12px; height: 12px; pointer-events: none; }
.panel::before { top: -1px; left: -1px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.panel::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--line-2); border-right: 2px solid var(--line-2); }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.panel-head h2 { font-size: 17px; }
.panel-head .muted { font-size: 13px; }
.flush { padding: 0; }
.flush .panel-head { padding: 18px 20px 0; }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; }
.grid-even { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
@media (min-width: 1380px) { .kpis { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.kpi { position: relative; padding: 16px 18px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; width: 26px; height: 2px; background: var(--line-2); }
.kpi.hot::before { background: var(--accent); width: 100%; }
.kpi span { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi span svg { width: 15px; height: 15px; color: var(--dim); }
.kpi b { display: block; margin-top: 10px; font: 400 34px/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.kpi small { display: block; margin-top: 8px; font-size: 12px; color: var(--dim); }
.kpi.hot b { color: var(--accent); }
.kpi .bar { margin-top: 12px; height: 4px; background: var(--panel-3); }
.kpi .bar i { display: block; height: 100%; background: var(--ok); }

/* bar chart (CSS, data from the server) */
.chart { display: grid; grid-template-columns: repeat(14, 1fr); align-items: end; gap: 6px; height: 170px; padding-top: 10px; }
.chart .col { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.chart .col i { display: block; min-height: 2px; background: linear-gradient(180deg, var(--accent), #b85700); border-radius: 2px 2px 0 0;
  transform-origin: bottom; animation: grow .7s var(--ease) both; }
.chart .col.zero i { background: var(--panel-3); }
.chart .col:hover i { background: var(--accent-hi); }
.chart .col em { position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%); font: 600 11px var(--mono); color: var(--text);
  opacity: 0; transition: opacity .15s; pointer-events: none; }
.chart .col:hover em { opacity: 1; }
.chart-x { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; margin-top: 8px; font: 11px var(--mono); color: var(--dim); text-align: center; }
.chart-x span:nth-child(even) { visibility: hidden; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* horizontal meters (servers by mode) */
.meters { display: grid; gap: 12px; }
.meter { display: grid; grid-template-columns: 110px minmax(0, 1fr) 64px; align-items: center; gap: 12px; font-size: 13.5px; }
.meter .track { height: 8px; background: var(--panel-3); border-radius: 1px; overflow: hidden; }
.meter .track i { display: block; height: 100%; background: var(--accent); transform-origin: left; animation: grow-x .8s var(--ease) both; }
.meter .val { text-align: right; font-family: var(--mono); color: var(--muted); font-size: 12.5px; }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { position: sticky; top: 0; background: var(--panel); font-size: 11.5px; font-weight: 600; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
tbody tr { transition: background-color .12s; }
tbody tr:hover td { background: rgba(255, 255, 255, .018); }
tbody tr:last-child td { border-bottom: 0; }
td .sub { display: block; font-size: 12.5px; color: var(--dim); }
td a.num { color: var(--text); }
td a.num:hover { color: var(--accent); }
.person { display: flex; align-items: center; gap: 11px; }
.person .avatar { width: 30px; height: 30px; font-size: 12px; }

/* tags */
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 2px; font-size: 12px; font-weight: 600;
  background: var(--panel-3); border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.tag.ok { color: var(--ok); border-color: rgba(61, 220, 132, .35); background: rgba(61, 220, 132, .06); }
.tag.bad { color: var(--bad); border-color: rgba(255, 90, 90, .35); background: rgba(255, 90, 90, .06); }
.tag.acc { color: var(--accent); border-color: rgba(255, 122, 0, .4); background: var(--accent-wash); }
.tag.role-owner { color: var(--accent); border-color: rgba(255, 122, 0, .4); }
.tag.role-admin { color: var(--text); border-color: #4a4a52; }

.row-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.row-actions form { display: contents; }
.inline-form { display: flex; gap: 6px; align-items: center; }
.inline-form select, .inline-form input { min-height: 32px; padding: 4px 10px; font-size: 13px; width: auto; }

/* toolbar: search + filters */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search { position: relative; min-width: 260px; flex: 1 1 260px; max-width: 420px; }
.search svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--dim); }
.search input { padding-left: 38px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--line); border-radius: var(--r); color: var(--muted);
  font-size: 13.5px; font-weight: 500; transition: border-color .15s, color .15s, background-color .15s; }
.tabs a:hover { color: var(--text); border-color: var(--line-2); }
.tabs a.on { color: var(--text); border-color: var(--accent); background: var(--accent-wash); }
.tabs a b { font: 600 11.5px var(--mono); color: var(--dim); }
.tabs a.on b { color: var(--accent); }

/* forms */
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-section + .form-section { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.form-section h3 { font-size: 15px; margin-bottom: 14px; }
.form-foot { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.fieldnote { font-size: 12.5px; color: var(--dim); }

/* lineups */
.lineup-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.lineup { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  transition: border-color .15s, transform .2s var(--ease); }
.lineup:hover { border-color: var(--line-2); transform: translateY(-2px); }
.lineup video { width: 100%; aspect-ratio: 16 / 9; background: #000; display: block; }
.lineup .noimg { aspect-ratio: 16 / 9; display: grid; place-items: center; gap: 6px; background:
  repeating-linear-gradient(135deg, var(--panel-2) 0 10px, var(--panel) 10px 20px); color: var(--dim); font-size: 13px; text-align: center; }
.lineup .noimg svg { width: 28px; height: 28px; color: var(--line-2); }
.lineup .body { padding: 14px 16px 16px; display: grid; gap: 10px; flex: 1; align-content: start; }
.lineup .body h3 { font: 600 15.5px/1.4 var(--font); }
.lineup .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.lineup .foot { margin-top: auto; display: grid; gap: 8px; }

/* telegram message preview (broadcasts) */
.tg-preview { background: #0e1621; border-radius: var(--r); padding: 18px; min-height: 160px; }
.tg-bubble { max-width: 420px; padding: 9px 12px 7px; border-radius: 12px 12px 12px 4px; background: #182533; color: #e9eef3; font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.tg-bubble .meta { display: block; text-align: right; font-size: 11px; color: #6d8ba5; margin-top: 4px; }
.tg-bubble:empty::before { content: "Текст появится здесь"; color: #6d8ba5; }

/* emoji */
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.emoji-item { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r); }
.emoji-item .glyph { display: grid; place-items: center; width: 52px; height: 52px; font-size: 26px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); position: relative; }
.emoji-item .glyph.premium::after { content: "P"; position: absolute; right: -5px; top: -5px; width: 16px; height: 16px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font: 700 10px/1 var(--mono); border-radius: 2px; }
.emoji-item .meta { display: grid; gap: 6px; min-width: 0; }
.emoji-item .meta b { font: 600 13px var(--mono); }
.emoji-item .meta span { font-size: 12px; color: var(--dim); }
.emoji-item .fields { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 6px; }
.emoji-item input { min-height: 32px; padding: 5px 9px; font-size: 13px; }

/* logs */
pre.log { margin: 0; white-space: pre-wrap; word-break: break-word; font: 12px/1.5 var(--mono); color: var(--muted); }
.empty { padding: 44px 20px; text-align: center; color: var(--dim); font-size: 14px; }
.empty svg { width: 34px; height: 34px; display: block; margin: 0 auto 10px; color: var(--line-2); }

/* entrance */
.reveal { animation: rise .55s var(--ease) both; }
.reveal:nth-child(2) { animation-delay: .05s; }
.reveal:nth-child(3) { animation-delay: .1s; }
.reveal:nth-child(4) { animation-delay: .15s; }
.reveal:nth-child(5) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* mobile */
.nav-toggle { display: none; }
@media (max-width: 1100px) {
  .grid-2, .grid-even { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .shell { background: var(--bg); }
  .nav { position: fixed; z-index: 20; inset: 0 auto 0 0; width: 260px; border-right: 1px solid var(--line); transform: translateX(-100%); transition: transform .25s var(--ease); }
  .nav.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .6); }
  .nav-toggle { display: inline-flex; }
  .topbar { padding: 14px 16px; }
  .content { padding: 18px 16px 40px; }
  .server-meta, .features { grid-template-columns: 1fr 1fr; }
  .card { padding: 22px; }
  .meter { grid-template-columns: 84px minmax(0, 1fr) 54px; }
  .search { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.nav > a.brand svg { width: 24px; height: 24px; opacity: 1; color: var(--accent); }

/* chip pickers (radio buttons): map / side / grenade in one click */
.picker { display: grid; gap: 8px; }
.picker > span { font-size: 13px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips label { display: block; position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips label b { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--bg-2); color: var(--muted); font: 600 13.5px/1 var(--font); transition: border-color .12s, color .12s, background-color .12s; }
.chips label:hover b { color: var(--text); border-color: #4a4a52; }
.chips input:checked + b { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.chips input:focus-visible + b { outline: 2px solid var(--accent); outline-offset: 2px; }
.chips.side input[value="T"]:checked + b { background: #e8a33c; border-color: #e8a33c; }
.chips.side input[value="CT"]:checked + b { background: #5b9cff; border-color: #5b9cff; color: #04122b; }
.chips .auto b { border-style: dashed; }

/* video drop zone */
.drop { position: relative; display: grid; place-items: center; gap: 6px; min-height: 140px; padding: 18px; border: 1.5px dashed var(--line-2); border-radius: var(--r);
  background: var(--bg-2); color: var(--muted); text-align: center; font-size: 14px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-wash); color: var(--text); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop svg { width: 26px; height: 26px; color: var(--accent); }
.drop video { max-width: 100%; max-height: 260px; border-radius: var(--r); }
.autofill { font-size: 12.5px; color: var(--ok); min-height: 18px; }
.kbd { display: inline-block; padding: 1px 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 3px; font: 600 11.5px var(--mono); color: var(--muted); }
details > summary::-webkit-details-marker { display: none; }
details .tog::after { content: "· развернуть ▾"; color: var(--accent); margin-left: 4px; }
details[open] .tog::after { content: "· свернуть ▴"; }
.logo { display: block; width: 230px; height: auto; margin: -6px 0 0 -10px; }
.nav > a.brand { padding: 0 4px 14px; }
.nav > a.brand img { display: block; width: 190px; height: auto; }
