:root{
  --bg:#F6F4EF; --surface:#FFFFFF; --surface-2:#F0EEE7; --border:#DEDAD0;
  --text:#1C1B18; --text-muted:#6B6862; --accent:#B9701F; --accent-ink:#FFFFFF;
  --accent-soft:#B9701F1a; --ok:#2E8B57; --err:#C6394A; --info:#2464C4; --warn:#A57C00;
  --radius:5px;
  --font-display:"Bahnschrift SemiBold","Bahnschrift","Segoe UI Semibold","Arial Narrow",sans-serif;
  --font-body:"Segoe UI",-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
  --font-mono:"Cascadia Code","Consolas","SF Mono",ui-monospace,"Courier New",monospace;
}
@media (prefers-color-scheme: dark){
  :root{
    --bg:#12151A; --surface:#1B2027; --surface-2:#171B21; --border:#2A3038;
    --text:#E9EBEE; --text-muted:#8A93A0; --accent:#D98E3E; --accent-ink:#171308;
    --accent-soft:#D98E3E26; --ok:#3FB878; --err:#DB5461; --info:#2D8CFF; --warn:#E0B23D;
  }
}
:root[data-theme="dark"]{
  --bg:#12151A; --surface:#1B2027; --surface-2:#171B21; --border:#2A3038;
  --text:#E9EBEE; --text-muted:#8A93A0; --accent:#D98E3E; --accent-ink:#171308;
  --accent-soft:#D98E3E26; --ok:#3FB878; --err:#DB5461; --info:#2D8CFF; --warn:#E0B23D;
}
:root[data-theme="light"]{
  --bg:#F6F4EF; --surface:#FFFFFF; --surface-2:#F0EEE7; --border:#DEDAD0;
  --text:#1C1B18; --text-muted:#6B6862; --accent:#B9701F; --accent-ink:#FFFFFF;
  --accent-soft:#B9701F1a; --ok:#2E8B57; --err:#C6394A; --info:#2464C4; --warn:#A57C00;
}

*{box-sizing:border-box;}
body{
  margin:0; background:var(--bg); color:var(--text);
  font-family:var(--font-body); font-size:15px; line-height:1.55;
}
h1,h2,h3{ font-family:var(--font-display); text-wrap:balance; margin:0; letter-spacing:.2px; }
a{ color:inherit; }
button{ font-family:inherit; }
.mono{ font-family:var(--font-mono); font-variant-numeric:tabular-nums; }
.eyebrow{
  font-family:var(--font-display); text-transform:uppercase; letter-spacing:1.6px;
  font-size:11.5px; color:var(--accent); display:flex; align-items:center; gap:8px;
}
.eyebrow::before{ content:""; width:14px; height:2px; background:var(--accent); display:inline-block; }

.topbar{
  position:sticky; top:0; z-index:20; display:flex; align-items:center; gap:22px;
  padding:0 22px; height:56px; background:var(--surface); border-bottom:1px solid var(--border);
}
.nav-toggle{
  display:none; margin-left:8px; width:36px; height:36px; align-items:center; justify-content:center;
  background:var(--surface-2); border:1px solid var(--border); border-radius:var(--radius);
  color:var(--text); font-size:16px; cursor:pointer;
}
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; }
.brand-mark{
  width:26px; height:26px; border-radius:3px;
  background:conic-gradient(from 220deg, var(--accent), #7a4c1e, var(--accent));
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-size:13px; color:var(--accent-ink); font-weight:700;
}
.brand-text{ display:flex; flex-direction:column; line-height:1.1; }
.brand-text b{ font-family:var(--font-display); font-size:16px; letter-spacing:.5px; }
.brand-text span{ font-size:10px; color:var(--text-muted); letter-spacing:1.2px; text-transform:uppercase; }

nav{ display:flex; gap:4px; margin-left:8px; }
nav a{
  display:block; text-decoration:none; color:var(--text-muted); font-size:13px;
  padding:8px 13px; border-radius:var(--radius);
}
nav a:hover{ color:var(--text); background:var(--surface-2); }
nav a.active{ color:var(--text); background:var(--surface-2); border:1px solid var(--border); }

.top-right{ margin-left:auto; display:flex; align-items:center; gap:10px; }
.btn{
  font-size:13px; padding:9px 16px; border-radius:var(--radius); cursor:pointer;
  border:1px solid var(--border); background:var(--surface-2); color:var(--text); text-decoration:none; display:inline-flex; align-items:center; gap:6px;
}
.btn:hover{ border-color:var(--accent); }
.btn.primary{ background:var(--accent); border-color:var(--accent); color:var(--accent-ink); font-weight:600; }
.btn.primary:hover{ filter:brightness(1.08); }
.btn.ghost{ background:transparent; }
.btn.sm{ padding:6px 11px; font-size:12px; }
form.inline{ display:inline; }

main{ max-width:1080px; margin:0 auto; padding:0 22px 80px; }

.hero{ display:grid; grid-template-columns:1.15fr .85fr; gap:48px; padding:64px 0 44px; align-items:center; }
.hero h1{ font-size:42px; line-height:1.08; margin:14px 0 16px; }
.hero h1 em{ color:var(--accent); font-style:normal; }
.hero p{ color:var(--text-muted); font-size:15.5px; max-width:52ch; }
.hero-actions{ display:flex; gap:10px; margin-top:26px; }

.gauge-card{
  background-color:var(--surface);
  background-image:radial-gradient(var(--border) 1.1px, transparent 1.4px);
  background-size:20px 20px; background-position:-4px -4px;
  border:1px solid var(--border); border-radius:var(--radius); padding:22px;
}
.pinout-legend{ display:grid; gap:7px; margin-top:14px; }
.pinout-legend div{ display:flex; align-items:center; gap:9px; font-size:12px; color:var(--text-muted); }
.pinout-legend i{ width:8px; height:8px; border-radius:2px; flex:none; display:inline-block; }
.pinout-legend b{ color:var(--text); font-family:var(--font-mono); font-weight:500; }

/* Тонкий скроллбар в цвет темы вместо системного серого — везде, где что-то
   скроллится вбок (карусели на главной, широкие таблицы в админке). */
.thin-scroll, .stats, .features, .table-wrap{
  scrollbar-width:thin; scrollbar-color:var(--border) transparent;
}
.thin-scroll::-webkit-scrollbar, .stats::-webkit-scrollbar,
.features::-webkit-scrollbar, .table-wrap::-webkit-scrollbar{
  height:6px; width:6px;
}
.thin-scroll::-webkit-scrollbar-track, .stats::-webkit-scrollbar-track,
.features::-webkit-scrollbar-track, .table-wrap::-webkit-scrollbar-track{
  background:transparent;
}
.thin-scroll::-webkit-scrollbar-thumb, .stats::-webkit-scrollbar-thumb,
.features::-webkit-scrollbar-thumb, .table-wrap::-webkit-scrollbar-thumb{
  background:var(--border); border-radius:3px;
}
.thin-scroll::-webkit-scrollbar-thumb:hover, .stats::-webkit-scrollbar-thumb:hover,
.features::-webkit-scrollbar-thumb:hover, .table-wrap::-webkit-scrollbar-thumb:hover{
  background:var(--accent);
}

/* И плашки, и статистика могут разрастись до любого числа — вместо переноса
   на новый ряд (который либо ломает раскладку, либо требует знать заранее,
   сколько будет карточек) обе полосы едут вбок одним рядом, как карусель.
   flex-shrink:0 у элементов + overflow-x:auto у дорожки: помещается — тянутся
   и заполняют ряд, не помещается — ряд скроллится, а не переносится. */
.carousel{ position:relative; display:flex; align-items:stretch; gap:8px; }
.carousel.stats-carousel{ margin-bottom:56px; }
.carousel.features-carousel{ margin-bottom:20px; }
.carousel-btn{
  flex:none; width:30px; border:1px solid var(--border); background:var(--surface-2); color:var(--text-muted);
  border-radius:var(--radius); cursor:pointer; font-size:16px; line-height:1;
}
.carousel-btn:hover{ color:var(--text); border-color:var(--accent); }

.stats{
  display:flex; flex:1; overflow-x:auto; gap:1px; background:var(--border);
  border:1px solid var(--border); border-radius:var(--radius);
  scroll-snap-type:x mandatory;
}
.stats div{ background:var(--surface); padding:18px 20px; flex:1 0 200px; scroll-snap-align:start; }
.stats b{ display:block; font-family:var(--font-display); font-size:22px; }
.stats span{ font-size:11.5px; color:var(--text-muted); text-transform:uppercase; letter-spacing:.6px; }

.features{
  display:flex; flex:1; overflow-x:auto; gap:14px;
  scroll-snap-type:x mandatory; padding-bottom:4px;
}
.feature{ flex:1 0 240px; scroll-snap-align:start; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:18px; }
.feature .ico{ width:30px; height:30px; border-radius:4px; background:var(--accent-soft); color:var(--accent);
  display:flex; align-items:center; justify-content:center; font-family:var(--font-mono); font-size:13px; margin-bottom:12px; }
.feature h3{ font-size:14.5px; margin-bottom:6px; }
.feature p{ font-size:12.8px; color:var(--text-muted); margin:0; }

.block{ margin-bottom:56px; }
.block > h2{ font-size:22px; margin-bottom:4px; }
.block > .sub{ color:var(--text-muted); font-size:13.5px; margin-bottom:24px; }

.news-item{ display:grid; grid-template-columns:96px 1fr; gap:22px; padding:22px 0; border-top:1px solid var(--border); }
.news-item:last-child{ border-bottom:1px solid var(--border); }
.news-date{ color:var(--text-muted); font-size:12px; font-family:var(--font-mono); padding-top:3px; }
.news-ver{ display:inline-block; font-family:var(--font-mono); font-size:11px; background:var(--accent-soft);
  color:var(--accent); padding:2px 7px; border-radius:3px; margin-bottom:8px; }
.news-item h3{ font-size:16px; margin-bottom:8px; }
.news-item .body{ color:var(--text-muted); font-size:13.5px; white-space:pre-line; }

.faq-item{ border-top:1px solid var(--border); padding:16px 0; }
.faq-item:last-of-type{ border-bottom:1px solid var(--border); }
.faq-item summary{ cursor:pointer; font-family:var(--font-display); font-size:14.5px; list-style:none; }
.faq-item summary::-webkit-details-marker{ display:none; }

.pc-details summary{ list-style:none; }
.pc-details summary::-webkit-details-marker{ display:none; }
.faq-item summary::before{ content:"+"; color:var(--accent); display:inline-block; width:18px; font-family:var(--font-mono); }
.faq-item[open] summary::before{ content:"–"; }
.faq-answer{ color:var(--text-muted); font-size:13.5px; margin:10px 0 0 18px; white-space:pre-line; }

.release{
  display:grid; grid-template-columns:1fr auto auto auto; gap:18px; align-items:center;
  padding:16px 18px; border:1px solid var(--border); border-radius:var(--radius); background:var(--surface);
  margin-bottom:10px;
}
.release .name{ display:flex; align-items:center; gap:10px; }
.release .name b{ font-family:var(--font-mono); font-size:14px; }
.release .notes{ grid-column:1/2; color:var(--text-muted); font-size:12.5px; margin-top:4px; }
.release .meta{ font-size:12.5px; color:var(--text-muted); font-family:var(--font-mono); white-space:nowrap; }
.lock-note{ display:flex; align-items:center; gap:8px; font-size:12px; color:var(--text-muted);
  background:var(--surface-2); border:1px solid var(--border); padding:9px 12px; border-radius:var(--radius); margin-top:16px; }

.cab-grid{ display:grid; grid-template-columns:280px 1fr; gap:22px; }
.panel{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:20px; }
.panel h3{ font-size:13px; text-transform:uppercase; letter-spacing:.8px; color:var(--text-muted); margin-bottom:16px; font-family:var(--font-display); }
.kv{ display:grid; grid-template-columns:auto 1fr; gap:9px 14px; font-size:13px; margin-top:6px; }
.kv dt{ color:var(--text-muted); }
.kv dd{ margin:0; font-family:var(--font-mono); text-align:right; }
.pill{ display:inline-flex; align-items:center; gap:6px; font-size:11.5px; padding:3px 9px; border-radius:20px;
  font-family:var(--font-display); text-transform:uppercase; letter-spacing:.5px; }
.pill.ok{ background:color-mix(in srgb, var(--ok) 16%, transparent); color:var(--ok); }
.pill.warn{ background:color-mix(in srgb, var(--err) 16%, transparent); color:var(--err); }
.pill::before{ content:""; width:6px; height:6px; border-radius:50%; background:currentColor; }

/* Ползунок-переключатель вместо системного чекбокса — тот же <input type="checkbox">,
   просто перерисован через appearance:none, так что форма и семантика не меняются. */
.switch{
  appearance:none; -webkit-appearance:none; flex:none;
  width:38px; height:22px; margin:0; position:relative;
  background:var(--surface-2); border:1px solid var(--border); border-radius:11px;
  cursor:pointer; transition:background .15s ease, border-color .15s ease;
}
.switch::before{
  content:""; position:absolute; top:2px; left:2px; width:16px; height:16px;
  border-radius:50%; background:var(--text-muted); transition:transform .15s ease, background .15s ease;
}
.switch:checked{ background:var(--accent-soft); border-color:var(--accent); }
.switch:checked::before{ transform:translateX(16px); background:var(--accent); }
.switch:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
.switch:disabled{ opacity:.5; cursor:not-allowed; }

.login-wrap{ display:flex; justify-content:center; padding:50px 0; }
.login-card{ width:340px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:28px; }
.login-card h2{ font-size:19px; margin-bottom:4px; }
.login-card .sub{ color:var(--text-muted); font-size:12.5px; margin-bottom:20px; }
.field{ display:flex; flex-direction:column; gap:6px; margin-bottom:14px; }
.field label{ font-size:11.5px; color:var(--text-muted); text-transform:uppercase; letter-spacing:.5px; }
.field input, .field textarea{
  background:var(--surface-2); border:1px solid var(--border); border-radius:4px; padding:10px 11px;
  color:var(--text); font-size:13.5px; font-family:var(--font-mono); width:100%;
}
.field textarea{ font-family:var(--font-body); min-height:160px; resize:vertical; }
.login-card .btn{ width:100%; margin-top:6px; justify-content:center; }
.login-alt{ text-align:center; margin-top:16px; font-size:12.5px; color:var(--text-muted); }
.login-alt a{ color:var(--accent); text-decoration:none; }
.form-error{ background:color-mix(in srgb, var(--err) 14%, transparent); color:var(--err); border:1px solid var(--err);
  border-radius:var(--radius); padding:9px 12px; font-size:12.5px; margin-bottom:14px; }

.divider{ display:flex; align-items:center; gap:10px; margin:18px 0 14px; color:var(--text-muted); font-size:11px; text-transform:uppercase; letter-spacing:.6px; }
.divider::before, .divider::after{ content:""; flex:1; height:1px; background:var(--border); }
.oauth-row{ display:flex; flex-direction:column; gap:8px; }
.oauth-btn{
  display:flex; align-items:center; gap:10px; width:100%; padding:9px 12px;
  border:1px solid var(--border); border-radius:var(--radius); background:var(--surface-2); color:var(--text);
  font-size:13px; cursor:pointer; text-decoration:none;
}
.oauth-btn:hover{ border-color:var(--accent); }
.oauth-badge{ width:22px; height:22px; border-radius:5px; display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-size:11px; font-weight:700; color:#fff; flex:none; }
.oauth-badge.vk{ background:#0077FF; }
.oauth-badge.ya{ background:#FC3F1D; }
.oauth-badge.go{ background:#FFFFFF; color:#4285F4; box-shadow:inset 0 0 0 1px #DADCE0; }

.wire-tag{
  display:inline-flex; align-items:center; font-family:var(--font-mono); font-size:10px;
  padding:2px 7px; border-radius:2px; letter-spacing:.3px; transform:rotate(-1deg);
}
.wire-tag.t-locks{ background:#3d5a80; color:#eaf1fb; }
.wire-tag.t-mirrors{ background:var(--accent); color:var(--accent-ink); }
.wire-tag.t-alarm{ background:#8a3b3b; color:#fbe9e9; }
.wire-tag.t-profiles{ background:#4a6b4f; color:#eaf3ea; }

.admin-shell{ display:grid; grid-template-columns:180px 1fr; gap:22px; }
.admin-nav{ display:flex; flex-direction:column; gap:3px; }
.admin-nav a{
  text-decoration:none; display:block; color:var(--text-muted);
  padding:9px 12px; border-radius:var(--radius); font-size:13px; border:1px solid transparent;
}
.admin-nav a:hover{ background:var(--surface-2); color:var(--text); }
.admin-nav a.active{ background:var(--surface-2); color:var(--text); border-color:var(--border); font-weight:600; }
.admin-toolbar{ display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; gap:12px; }
table.admin-table{ width:100%; border-collapse:collapse; font-size:12.8px; }
table.admin-table th{ text-align:left; font-family:var(--font-display); text-transform:uppercase; letter-spacing:.5px;
  font-size:10.5px; color:var(--text-muted); padding:0 10px 8px; border-bottom:1px solid var(--border); font-weight:600; }
table.admin-table td{ padding:10px; border-bottom:1px solid var(--border); vertical-align:middle; }
table.admin-table tr:last-child td{ border-bottom:none; }
.row-actions{ display:flex; gap:6px; justify-content:flex-end; }
.table-wrap{ overflow-x:auto; }

footer{ border-top:1px solid var(--border); padding:22px; text-align:center; font-size:11.5px; color:var(--text-muted); }

/* ── Карта дампа (/cabinet/dumps/{id}) ────────────────────────────────────── */
.dump-stats{ display:grid; grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap:10px; margin:20px 0; }
.dump-stat{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:14px 16px; }
.dump-stat b{ display:block; font-family:var(--font-mono); font-variant-numeric:tabular-nums; font-size:22px; line-height:1.1; }
.dump-stat span{ display:block; font-size:11px; color:var(--text-muted); margin-top:4px; text-transform:uppercase; letter-spacing:.5px; }
.dump-stat.known b{ color:var(--ok); }
.dump-stat.partial b{ color:var(--warn); }
.dump-stat.hypothesis b{ color:var(--info); }
.dump-stat.unknown b{ color:var(--text-muted); }

.dump-legend{ display:flex; flex-wrap:wrap; gap:16px; align-items:center; padding:10px 14px; background:var(--surface-2);
  border:1px solid var(--border); border-radius:var(--radius); margin-bottom:20px; font-size:12.5px; color:var(--text-muted); }
.dump-legend .sw{ display:inline-flex; align-items:center; gap:7px; }
.dump-legend i{ width:12px; height:12px; border-radius:3px; border:1px solid var(--border); display:inline-block; }
.dump-legend i.known{ background:color-mix(in srgb, var(--ok) 22%, var(--surface)); border-color:var(--ok); }
.dump-legend i.partial{ background:color-mix(in srgb, var(--warn) 22%, var(--surface)); border-color:var(--warn); }
.dump-legend i.hypothesis{ background:color-mix(in srgb, var(--info) 22%, var(--surface)); border-color:var(--info); }
.dump-legend i.unknown{ background:transparent; }

.dump-layout{ display:grid; grid-template-columns:1fr 300px; gap:18px; align-items:start; }
.hexwrap{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); overflow:auto; max-height:74vh; }
table.hexgrid{ border-collapse:collapse; font-family:var(--font-mono); font-size:12px; font-variant-numeric:tabular-nums; white-space:pre; }
table.hexgrid th{ position:sticky; top:0; background:var(--surface-2); color:var(--text-muted); font-weight:600;
  padding:7px 6px; border-bottom:1px solid var(--border); z-index:2; }
table.hexgrid th.off{ left:0; z-index:3; text-align:left; padding-left:12px; }
table.hexgrid td{ padding:2px 5px; text-align:center; color:var(--text); }
table.hexgrid td.off{ position:sticky; left:0; background:var(--surface-2); color:var(--text-muted); text-align:left;
  padding-left:12px; padding-right:10px; border-right:1px solid var(--border); }
table.hexgrid td.byte{ border-radius:3px; }
table.hexgrid td.byte.known{ background:color-mix(in srgb, var(--ok) 18%, var(--surface)); color:var(--ok); }
table.hexgrid td.byte.partial{ background:color-mix(in srgb, var(--warn) 18%, var(--surface)); color:var(--warn); }
table.hexgrid td.byte.hypothesis{ background:color-mix(in srgb, var(--info) 18%, var(--surface)); color:var(--info); }
table.hexgrid td.byte.unknown{ color:var(--text-muted); opacity:.55; }
table.hexgrid td.byte.clickable{ cursor:pointer; }
table.hexgrid td.byte.clickable:hover{ outline:1px solid currentColor; outline-offset:-1px; }
table.hexgrid td.ascii{ text-align:left; padding-left:12px; color:var(--text-muted); border-left:1px solid var(--border); }
table.hexgrid td.ascii span.known{ color:var(--ok); }
table.hexgrid td.ascii span.partial{ color:var(--warn); }
table.hexgrid td.ascii span.hypothesis{ color:var(--info); }
table.hexgrid td.ascii span.unknown{ color:var(--text-muted); opacity:.5; }
table.hexgrid tr.hit{ outline:2px solid var(--accent); outline-offset:-2px; }

.dump-dict{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); max-height:74vh; overflow:auto; }
.dump-dict h3{ font-size:11px; text-transform:uppercase; letter-spacing:.6px; color:var(--text-muted); margin:0; padding:12px 14px 8px; font-family:var(--font-display); }
.dump-field{ display:block; width:100%; text-align:left; background:none; border:none; border-top:1px solid var(--border);
  padding:10px 14px; cursor:pointer; font:inherit; color:var(--text); }
.dump-field:hover{ background:var(--surface-2); }
.dump-field .off{ font-family:var(--font-mono); font-size:10.5px; color:var(--accent); display:block; margin-bottom:2px; }
.dump-field.partial .off{ color:var(--warn); }
.dump-field.hypothesis .off{ color:var(--info); }
.dump-field .name{ font-size:12.5px; font-weight:600; }
.dump-field .desc{ font-size:11.5px; color:var(--text-muted); margin-top:2px; line-height:1.4; }
.dump-field.hit{ background:var(--surface-2); outline:2px solid var(--accent); outline-offset:-2px; }

@media (max-width: 860px){
  .hero{ grid-template-columns:1fr; }
  .cab-grid{ grid-template-columns:1fr; }
  .admin-shell{ grid-template-columns:1fr; }
  .release{ grid-template-columns:1fr; }
  .dump-layout{ grid-template-columns:1fr; }

  .topbar{ position:relative; gap:10px; padding:0 14px; }
  .brand-text b{ font-size:14px; }
  .nav-toggle{ display:flex; }
  nav{
    display:none; flex-direction:column; gap:2px; position:absolute; left:0; right:0; top:56px;
    margin:0; padding:8px; background:var(--surface); border-bottom:1px solid var(--border);
    box-shadow:0 8px 16px rgba(0,0,0,.12); z-index:19;
  }
  nav.open{ display:flex; }
  nav a{ padding:12px 14px; font-size:14px; }
}


/* ── Карточки актуальных сборок на /downloads и в админке ────────────────── */
.manifest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 16px 0 8px;
}
.manifest-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--surface-2);
}
.manifest-card.is-debug { border-style: dashed; }
.manifest-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.manifest-badge {
  font-size: 11.5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1px 8px;
  color: var(--text-muted);
  white-space: nowrap;
}
.manifest-version { font-size: 18px; margin-bottom: 2px; }
.manifest-warn { color: var(--text-muted); margin-top: 6px; }
.manifest-notes {
  margin-top: 8px;
  max-height: 8.5em;
  overflow: auto;
  white-space: pre-wrap;
  font-size: 12.5px;
}
.manifest-editor { margin-bottom: 10px; }
.manifest-editor summary { cursor: pointer; }
.manifest-editor textarea,
.manifest-editor input[type=text] {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 8px;
  color: var(--text);
  font-size: 12.5px;
}
.manifest-editor textarea { min-height: 140px; font-family: inherit; }
.manifest-editor label { display: block; margin: 6px 0 2px; font-size: 12px; color: var(--text-muted); }

/* Выбор сборки: список слева, кнопка справа; на узком экране - друг под другом. */
.download-pick { margin: 4px 0 18px; }
.download-pick-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.download-pick select {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px;
  padding: 9px 11px; color: var(--text); font-size: 14px; min-width: 260px;
}
.download-pick .meta { margin-top: 8px; }
.manifest-debug { margin-top: 18px; }
.manifest-debug summary { cursor: pointer; color: var(--text-muted); }
.manifest-debug .manifest-grid { margin-top: 12px; }
