:root {
  --bg: #ffffff;
  --bg-subtle: #f6f8fa;
  --bg-hover: #eaeef2;
  --border: #d0d7de;
  --border-muted: #d8dee4;
  --fg: #1f2328;
  --fg-muted: #656d76;
  --accent: #0969da;
  --folder: #54aeff;
  --sel: #ddf4ff;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1117; --bg-subtle: #161b22; --bg-hover: #21262d;
    --border: #30363d; --border-muted: #21262d;
    --fg: #e6edf3; --fg-muted: #8d96a0; --accent: #4493f8;
    --folder: #54aeff; --sel: #121d2f;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1117; --bg-subtle: #161b22; --bg-hover: #21262d;
  --border: #30363d; --border-muted: #21262d;
  --fg: #e6edf3; --fg-muted: #8d96a0; --accent: #4493f8;
  --folder: #54aeff; --sel: #121d2f;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font); font-size: 14px; line-height: 1.5;
  color: var(--fg); background: var(--bg);
  display: flex; flex-direction: column;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
svg { fill: currentColor; flex: none; }

/* Top bar */
.topbar {
  height: 56px; padding: 0 16px; display: flex; align-items: center; gap: 12px;
  background: var(--bg-subtle); border-bottom: 1px solid var(--border);
}
.burger { display: none; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--fg); font-size: 15px; }
.brand:hover { text-decoration: none; }
.spacer { flex: 1; }
.icon-btn {
  width: 32px; height: 32px; display: inline-grid; place-items: center;
  background: transparent; border: 1px solid transparent; border-radius: 6px;
  color: var(--fg-muted); cursor: pointer;
}
.icon-btn:hover:not(:disabled) { background: var(--bg-hover); color: var(--fg); }
.icon-btn:disabled { opacity: .4; cursor: default; }

/* Layout */
.layout { flex: 1; display: flex; min-height: 0; }
.sidebar {
  width: 256px; flex: none; padding: 16px 8px; overflow-y: auto;
  border-right: 1px solid var(--border); background: var(--bg);
}
.nav-link {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px; margin-bottom: 2px;
  border-radius: 6px; color: var(--fg); position: relative;
}
.nav-link:hover { background: var(--bg-hover); text-decoration: none; }
.nav-link svg { color: var(--fg-muted); }
.nav-link.active { background: var(--bg-hover); font-weight: 600; }
.nav-link.active::before {
  content: ""; position: absolute; left: -8px; top: 6px; bottom: 6px; width: 4px;
  border-radius: 6px; background: #fd8c73;
}
.nav-link.active svg { color: var(--fg); }
.nav-sep { height: 1px; background: var(--border-muted); margin: 8px 8px 12px; }
.main { flex: 1; min-width: 0; overflow-y: auto; }
.page { max-width: 1012px; margin: 0 auto; padding: 24px 32px 48px; }

/* Home */
.home h1 { font-size: 32px; font-weight: 600; margin: 8px 0 8px; padding-bottom: 12px; border-bottom: 1px solid var(--border-muted); }
.home p.lead { color: var(--fg-muted); font-size: 16px; margin: 16px 0 24px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.tile {
  display: flex; flex-direction: column; gap: 4px; padding: 16px;
  border: 1px solid var(--border); border-radius: 6px; color: var(--fg);
}
.tile:hover { background: var(--bg-subtle); text-decoration: none; border-color: var(--fg-muted); }
.tile .t-title { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent); }
.tile .t-desc { color: var(--fg-muted); font-size: 12px; }

/* Explorer-style address bar */
.explorer-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.nav-btns { display: flex; gap: 2px; }
.address {
  flex: 1 1 320px; min-width: 0; height: 34px; display: flex; align-items: center; position: relative;
  border: 1px solid var(--border); border-radius: 6px; background: var(--bg-subtle); padding: 0 2px 0 4px; cursor: text;
}
.address:hover { border-color: var(--fg-muted); }
.address.editing { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: -1px; background: var(--bg); }
.address.bad { border-color: #cf222e; outline: 2px solid #cf222e; outline-offset: -1px; }
.addr-track { flex: 1; min-width: 0; display: flex; align-items: center; overflow: hidden; white-space: nowrap; }
.address.editing .addr-track, .address.editing .addr-pencil { display: none; }
.seg { display: inline-flex; align-items: center; flex: none; }
.seg.last { flex: 0 1 auto; min-width: 4.5em; }
.crumb {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px;
  border-radius: 4px; background: transparent; border: 0; cursor: pointer; color: var(--fg); font: inherit;
}
.crumb:hover { background: var(--bg-hover); text-decoration: none; }
.crumb.current { font-weight: 600; cursor: text; display: block; line-height: 26px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.crumb.current:hover { background: transparent; }
.chev { color: var(--fg-muted); display: inline-grid; place-items: center; padding: 0 1px; flex: none; }
button.chev { width: 20px; height: 26px; border: 0; border-radius: 4px; background: transparent; cursor: pointer; padding: 0; }
button.chev:hover, button.chev.open { background: var(--bg-hover); color: var(--fg); }
button.chev svg { transition: transform .12s; }
button.chev.open svg { transform: rotate(90deg); }
.addr-pencil { width: 28px; height: 26px; flex: none; display: grid; place-items: center; border: 0; border-radius: 4px; background: transparent; color: var(--fg-muted); cursor: pointer; }
.addr-pencil:hover { background: var(--bg-hover); color: var(--fg); }
.addr-edit { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--fg); font: inherit; padding: 0 8px; outline: none; }
[hidden] { display: none !important; }
.search {
  width: 220px; height: 34px; padding: 0 12px 0 32px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--bg-subtle) no-repeat 10px center;
  color: var(--fg); font: inherit;
}
.search::placeholder { color: var(--fg-muted); }
.search:focus { outline: 2px solid var(--accent); outline-offset: -1px; background-color: var(--bg); }
.search-wrap { position: relative; }
.search-wrap svg { position: absolute; left: 10px; top: 10px; color: var(--fg-muted); pointer-events: none; }
.search { background-image: none; }

/* GitHub-style file table */
.box { border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.box-head {
  display: flex; align-items: center; gap: 8px; padding: 10px 16px;
  background: var(--bg-subtle); border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.box-head .count { margin-left: auto; font-weight: 400; color: var(--fg-muted); font-size: 12px; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
th {
  text-align: left; font-weight: 400; font-size: 12px; color: var(--fg-muted);
  padding: 8px 16px; border-bottom: 1px solid var(--border-muted); background: var(--bg);
}
td { padding: 8px 16px; border-top: 1px solid var(--border-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
tbody tr:first-child td { border-top: 0; }
tbody tr:hover { background: var(--bg-subtle); }
.col-name { width: auto; }
.col-size { width: 110px; text-align: right; }
.col-date { width: 160px; text-align: right; color: var(--fg-muted); }
td.col-size { color: var(--fg-muted); font-size: 12px; }
th.col-size, th.col-date { text-align: right; }
.name { display: inline-flex; align-items: center; gap: 12px; color: var(--fg); max-width: 100%; }
.name:hover { color: var(--accent); text-decoration: underline; }
.name .ico-folder { color: var(--folder); }
.name .ico-file { color: var(--fg-muted); }
.empty { padding: 48px 16px; text-align: center; color: var(--fg-muted); }
.empty svg { width: 32px; height: 32px; margin-bottom: 8px; }
.empty .path { font-family: var(--mono); font-size: 12px; background: var(--bg-subtle); padding: 2px 6px; border-radius: 6px; }
.hint { margin-top: 16px; color: var(--fg-muted); font-size: 12px; }

@media (max-width: 800px) {
  .burger { display: inline-grid; }
  .sidebar {
    position: fixed; z-index: 10; top: 56px; bottom: 0; left: 0; transform: translateX(-100%);
    transition: transform .15s ease; box-shadow: 0 8px 24px rgba(1,4,9,.3);
  }
  body.menu-open .sidebar { transform: none; }
  .page { padding: 16px; }
  .col-date { display: none; }
  .nav-btns { order: 1; }
  .search-wrap { order: 2; flex: 1 1 140px; }
  .search { width: 100%; }
  .address { order: 3; flex: 1 0 100%; }
  .home h1 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .sidebar { transition: none; } }

.name .ico-link { color: var(--accent); }

/* ---------- Просмотр репозитория ---------- */
.box + .box { margin-top: 16px; }
.box-head .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.box-head a.btn {
  padding: 2px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 12px;
  font-weight: 500; color: var(--fg); background: var(--bg);
}
.box-head a.btn:hover { background: var(--bg-hover); text-decoration: none; }
.file-body { padding: 16px; }
.file-body img { max-width: 100%; }
pre.code {
  margin: 0; padding: 16px; overflow: auto; font: 12px/1.5 var(--mono);
  background: var(--bg); tab-size: 4;
}
.markdown-body { padding: 24px 32px; font-size: 16px; line-height: 1.5; word-wrap: break-word; }
.markdown-body > :first-child { margin-top: 0 !important; }
.markdown-body > :last-child { margin-bottom: 0 !important; }
.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4, .markdown-body h5, .markdown-body h6 {
  margin: 24px 0 16px; font-weight: 600; line-height: 1.25;
}
.markdown-body h1 { font-size: 2em; padding-bottom: .3em; border-bottom: 1px solid var(--border-muted); }
.markdown-body h2 { font-size: 1.5em; padding-bottom: .3em; border-bottom: 1px solid var(--border-muted); }
.markdown-body h3 { font-size: 1.25em; }
.markdown-body h4 { font-size: 1em; }
.markdown-body h5, .markdown-body h6 { font-size: .875em; }
.markdown-body h6 { color: var(--fg-muted); }
.markdown-body p, .markdown-body ul, .markdown-body ol, .markdown-body blockquote,
.markdown-body pre, .markdown-body table, .markdown-body details { margin: 0 0 16px; }
.markdown-body ul, .markdown-body ol { padding-left: 2em; }
.markdown-body li + li { margin-top: .25em; }
.markdown-body li > p { margin-top: 16px; }
.markdown-body blockquote { padding: 0 1em; color: var(--fg-muted); border-left: .25em solid var(--border); }
.markdown-body code {
  padding: .2em .4em; font: 85% var(--mono); background: var(--bg-hover); border-radius: 6px;
}
.markdown-body pre { padding: 16px; overflow: auto; font-size: 85%; line-height: 1.45; background: var(--bg-subtle); border-radius: 6px; }
.markdown-body pre code { padding: 0; font-size: 100%; background: transparent; white-space: pre; }
.markdown-body hr { height: .25em; padding: 0; margin: 24px 0; background: var(--border); border: 0; }
.markdown-body img { max-width: 100%; height: auto; }
.markdown-body table { display: block; width: max-content; max-width: 100%; overflow: auto; table-layout: auto; border-collapse: collapse; }
.markdown-body th, .markdown-body td {
  padding: 6px 13px; border: 1px solid var(--border); white-space: normal; overflow: visible; text-overflow: clip;
}
.markdown-body th { font-size: inherit; font-weight: 600; color: var(--fg); background: transparent; text-align: left; }
.markdown-body tbody tr:nth-child(2n) { background: var(--bg-subtle); }
.markdown-body tbody tr:hover { background: var(--bg-subtle); }
.markdown-body tbody tr:nth-child(2n):hover { background: var(--bg-subtle); }
.markdown-body tbody tr:first-child td { border-top: 1px solid var(--border); }
.markdown-body summary { cursor: pointer; }
@media (max-width: 800px) { .markdown-body { padding: 16px; } }
#readme:not(:empty) { margin-top: 16px; }

/* ---------- Плеер ---------- */
.player-body { background: #000; }
.player-body video { display: block; width: 100%; max-height: 78vh; background: #000; }
.player-body.audio { background: var(--bg-subtle); padding: 24px 16px; }
.player-body audio { display: block; width: 100%; }
.player-error { display: none; padding: 12px 16px; border-top: 1px solid var(--border); color: #cf222e; background: var(--bg-subtle); }
.help { margin-top: 16px; border: 1px solid var(--border); border-radius: 6px; }
.help summary { padding: 10px 16px; cursor: pointer; font-weight: 600; background: var(--bg-subtle); border-radius: 6px; }
.help[open] summary { border-bottom: 1px solid var(--border); border-radius: 6px 6px 0 0; }
.help .help-body { padding: 12px 16px; color: var(--fg-muted); }
.help pre.code { border: 1px solid var(--border-muted); border-radius: 6px; margin: 4px 0 12px; background: var(--bg-subtle); }

/* ---------- Устройства (запоминание позиции) ---------- */
.devices { margin-top: 16px; }
.devices[hidden] { display: none; }
.dev-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--border-muted); }
.dev-row:first-child { border-top: 0; }
.dev-info { flex: 1; min-width: 0; }
.muted { color: var(--fg-muted); font-size: 12px; }
.dev-row button.btn {
  padding: 4px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 12px; font-weight: 500;
  color: var(--fg); background: var(--bg); cursor: pointer; white-space: nowrap;
}
.dev-row button.btn:hover { background: var(--bg-hover); }

/* ---------- Выпадающие меню пути ---------- */
.menu {
  position: fixed; z-index: 50; min-width: 200px; max-width: min(360px, 92vw); max-height: min(60vh, 360px); overflow: auto;
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 4px; box-shadow: 0 8px 24px rgba(1,4,9,.25);
}
.menu-item { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 6px; color: var(--fg); white-space: nowrap; }
.menu-item span { overflow: hidden; text-overflow: ellipsis; }
.menu-item:hover { background: var(--bg-hover); text-decoration: none; }
.menu-item.current { font-weight: 600; background: var(--sel); }
.menu-item svg { color: var(--fg-muted); }
.menu-item .ico-folder { color: var(--folder); }
.menu-empty { padding: 8px 12px; color: var(--fg-muted); font-size: 12px; }

/* ---------- Поиск ---------- */
.home-search { display: block; margin: 16px 0 0; }
.home-search .search { width: 100%; height: 40px; font-size: 16px; padding-left: 38px; }
.home-search svg { top: 13px; left: 12px; }
.where { display: block; margin: 0 0 0 28px; font-size: 12px; line-height: 1.3; color: var(--fg-muted); overflow: hidden; text-overflow: ellipsis; }
.where:hover { color: var(--accent); }
mark { background: rgba(255, 212, 0, .35); color: inherit; border-radius: 2px; }
.box-head .scope { margin-left: auto; font-weight: 400; font-size: 12px; color: var(--fg-muted); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }
.search-more { padding: 8px 16px; margin: 0; border-top: 1px solid var(--border-muted); }

/* тень у скрытого бокового меню на телефоне не должна просвечивать по краю */
@media (max-width: 800px) {
  .sidebar { box-shadow: none; }
  body.menu-open .sidebar { box-shadow: 0 8px 24px rgba(1,4,9,.3); }
}

/* ===== Новое оформление: тёмно-синяя палитра, скруглённые карточки, широкая сетка ===== */
:root { --bg:#f6f8fc; --bg-subtle:#fff; --bg-hover:#e9effa; --border:#dbe3f0; --border-muted:#e6ecf5; --fg:#12192b; --fg-muted:#5f6b85; --accent:#1a6fe0; --tile:#e3eeff; --r:12px; --serif:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg:#060b17; --bg-subtle:#0e1527; --bg-hover:#16203a; --border:#1b2540; --border-muted:#141d35; --fg:#e8edf7; --fg-muted:#8b96b0; --accent:#6cb6ff; --tile:#14203d; } }
:root[data-theme="dark"] { --bg:#060b17; --bg-subtle:#0e1527; --bg-hover:#16203a; --border:#1b2540; --border-muted:#141d35; --fg:#e8edf7; --fg-muted:#8b96b0; --accent:#6cb6ff; --tile:#14203d; }
.topbar { height:60px; padding:0 20px; gap:16px; background:var(--bg); }
.topbar .spacer { display:none; }
.brand { font-family:var(--serif); font-size:20px; }
.brand svg { width:34px; height:34px; padding:6px; border-radius:10px; background:var(--accent); color:var(--bg); }
.top-search { position:relative; flex:1; max-width:760px; margin:0 auto; }
.top-search svg { position:absolute; left:12px; top:11px; color:var(--fg-muted); pointer-events:none; }
.top-search input { width:100%; height:38px; padding:0 14px 0 38px; border:1px solid var(--border); border-radius:12px; background:var(--bg-subtle); color:var(--fg); font:inherit; }
.top-search input:focus { outline:2px solid var(--accent); outline-offset:-1px; }
.theme-seg { display:flex; gap:2px; padding:3px; border:1px solid var(--border); border-radius:12px; background:var(--bg-subtle); }
.theme-seg button { width:30px; height:30px; display:grid; place-items:center; border:0; border-radius:9px; background:transparent; color:var(--fg-muted); cursor:pointer; }
.theme-seg button.on { background:var(--bg-hover); color:var(--accent); }
.sidebar { width:236px; padding:16px 12px; background:var(--bg); }
.nav-link { padding:9px 12px; border-radius:12px; }
.nav-link.active { color:var(--accent); }
.nav-link.active::before { display:none; }
.nav-link.active svg { color:var(--accent); }
.nav-label { margin:18px 12px 6px; font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:var(--fg-muted); }
.page { max-width:1680px; padding:28px 36px 56px; }
.home h1 { margin:0 0 4px; padding:0; border:0; font-family:var(--serif); font-size:34px; font-weight:600; }
.home p.lead { margin:0 0 24px; font-size:14px; }
.tiles { grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:16px; }
.tile { min-height:132px; padding:18px; gap:6px; border-radius:var(--r); background:var(--bg-subtle); }
.tile:hover { background:var(--bg-hover); border-color:var(--border); }
.t-ico { display:grid; place-items:center; flex:none; width:44px; height:44px; margin-bottom:auto; border-radius:12px; background:var(--tile); color:var(--accent); }
.tile .t-title { color:var(--fg); font-size:16px; }
.sec-head { display:flex; justify-content:space-between; align-items:baseline; margin:32px 0 10px; }
.sec-head h2 { margin:0; font-size:14px; font-weight:500; color:var(--fg-muted); }
.recent-row { display:flex; align-items:center; gap:14px; padding:10px 16px; color:var(--fg); border-top:1px solid var(--border-muted); }
.recent-row:first-child { border-top:0; }
.recent-row:hover { background:var(--bg-hover); text-decoration:none; }
.recent-row .t-ico { width:38px; height:38px; margin:0; border-radius:10px; }
.r-info { display:flex; flex-direction:column; min-width:0; }
.r-info b { font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.box { border-radius:var(--r); background:var(--bg-subtle); }
.box-head { background:transparent; }
.address, .search { border-radius:10px; }
@media (max-width: 800px) {
  .brand { font-size:0; } .theme-seg { display:none; } .page { padding:16px; }
  .top-search { margin:0; max-width:none; }
}

/* ===== Дашборд: палитра «Home Server», сетка с правой колонкой ===== */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg:#07112b; --bg-subtle:#0b1a3a; --bg-hover:#10264f; --border:#17305c; --border-muted:#112548; --accent:#22d3ee; --tile:#0f2a57; } }
:root[data-theme="dark"] { --bg:#07112b; --bg-subtle:#0b1a3a; --bg-hover:#10264f; --border:#17305c; --border-muted:#112548; --accent:#22d3ee; --tile:#0f2a57; }
.page { max-width:1900px; }
.dash { display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:24px; align-items:start; }
.stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:14px; }
.stat { display:flex; flex-direction:column; gap:4px; padding:16px; border:1px solid var(--border); border-radius:var(--r); background:var(--bg-subtle); color:var(--fg); }
a.stat:hover { background:var(--bg-hover); text-decoration:none; }
.stat .t-ico { margin-bottom:6px; } .s-name { color:var(--accent); font-size:13px; } .s-num { font-size:24px; font-weight:600; }
.bar { height:6px; margin:4px 0; border-radius:6px; background:var(--border); overflow:hidden; } .bar i { display:block; height:100%; width:0; background:var(--accent); transition:width .4s; }
.media-row { display:flex; gap:14px; overflow-x:auto; padding-bottom:8px; scroll-snap-type:x proximity; }
.poster { flex:none; width:150px; display:flex; flex-direction:column; gap:4px; color:var(--fg); scroll-snap-align:start; }
.poster:hover { text-decoration:none; } .poster:hover .p-art { filter:brightness(1.2); }
.poster b { font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.p-art { display:grid; place-items:center; aspect-ratio:2/3; border-radius:var(--r); border:1px solid var(--border); color:rgba(255,255,255,.85); transition:filter .15s; }
.cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:12px; }
.card { display:flex; align-items:center; gap:12px; padding:12px; border:1px solid var(--border); border-radius:var(--r); background:var(--bg-subtle); color:var(--fg); min-width:0; }
.card:hover, .qlink:hover { background:var(--bg-hover); text-decoration:none; }
.card .t-ico, .qlink .t-ico { width:38px; height:38px; margin:0; border-radius:10px; }
.panel { padding:16px; margin-bottom:16px; border:1px solid var(--border); border-radius:var(--r); background:var(--bg-subtle); }
.panel-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; font-size:15px; }
.badge { padding:2px 10px; border-radius:20px; font-size:12px; color:#34d399; background:rgba(52,211,153,.15); } .badge.warn { color:#fbbf24; background:rgba(251,191,36,.15); }
.sys-row { display:flex; justify-content:space-between; gap:12px; padding:7px 0; color:var(--fg); } .sys-row b { font-weight:500; text-align:right; }
.qlink { display:flex; align-items:center; gap:12px; padding:8px; border-radius:10px; color:var(--fg); }
@media (max-width: 1200px) { .dash { grid-template-columns:1fr; } }
#stat-disk { grid-column: span 2; } #disk-num { font-size: 18px; }
.stats { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
@media (max-width: 800px) { #stat-disk { grid-column: 1 / -1; } .stats { grid-template-columns: repeat(2, 1fr); } }

/* ===== Телефон: без горизонтальной прокрутки, компактные карточки ===== */
.dash-main, .dash-side, .stats > *, .card, .qlink, .r-info { min-width: 0; }
@media (max-width: 1200px) { .dash { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 800px) {
  .topbar { height: 56px; padding: 0 12px; gap: 10px; }
  .theme-seg { display: flex; padding: 2px; } .theme-seg button:not(.on) { display: none; }
  .page { padding: 14px 12px 40px; }
  .home h1 { font-size: 26px; } .home p.lead { margin-bottom: 16px; font-size: 13px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 12px; } .stat .t-ico { width: 34px; height: 34px; } .s-num { font-size: 20px; }
  .s-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #stat-disk { grid-column: 1 / -1; } #disk-num { font-size: 15px; }
  .poster { width: 118px; } .cards { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: 14px; } .nav-link { padding: 12px; } .sec-head { margin: 22px 0 8px; }
  .box-head { padding: 10px 12px; } td, th { padding: 8px 10px; } .col-size { width: 80px; }
  .recent-row, .dev-row { padding: 10px 12px; }
}

img.p-art { width:100%; object-fit:cover; display:block; background:var(--bg-hover); }
.poster .muted { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
/* ---------- Аудиоплеер (ap-* / aq-*) ---------- */
.ap { --trk: color-mix(in srgb, var(--fg) 14%, transparent); --buf: color-mix(in srgb, var(--fg) 28%, transparent);
  position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: var(--r, 12px); background: var(--bg-subtle); }
.ap-bg { position: absolute; inset: -60px; background-size: cover; background-position: center; filter: blur(50px) saturate(1.5);
  opacity: .38; transform: scale(1.15); pointer-events: none; transition: background-image .4s; }
.ap-in { position: relative; display: flex; gap: 32px; padding: 28px; align-items: center; }
.ap-cover { flex: none; width: clamp(150px, 22vw, 260px); aspect-ratio: 1; border-radius: 14px; overflow: hidden; display: grid; place-items: center;
  color: rgba(255,255,255,.85); background: var(--bg-hover); box-shadow: 0 14px 36px rgba(0,0,0,.38); transform: scale(.95); transition: transform .3s; }
.ap.is-playing .ap-cover { transform: scale(1); }
.ap-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ap-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ap-kicker { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); }
.ap-title { margin: 2px 0 0; font-family: var(--serif); font-size: clamp(22px, 3vw, 34px); font-weight: 600; line-height: 1.2;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.ap-artist { font-size: 16px; }
.ap-album { font-size: 13px; color: var(--fg-muted); min-height: 1.5em; }
.ap-seek { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.ap-time { flex: none; width: 44px; font-size: 12px; color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.ap-time.r { text-align: right; }
.ap input[type=range] { -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; height: 18px; margin: 0; background: transparent; cursor: pointer; --p: 0%; --b: 0%; }
.ap input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--accent) var(--p), var(--buf) var(--p) var(--b), var(--trk) var(--b)); }
.ap input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--accent) var(--p), var(--buf) var(--p) var(--b), var(--trk) var(--b)); }
.ap input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4px; border: 0; border-radius: 50%; background: var(--fg); transform: scale(0); transition: transform .12s; }
.ap input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--fg); transform: scale(0); transition: transform .12s; }
.ap input[type=range]:hover::-webkit-slider-thumb, .ap input[type=range]:focus-visible::-webkit-slider-thumb { transform: scale(1); }
.ap input[type=range]:hover::-moz-range-thumb, .ap input[type=range]:focus-visible::-moz-range-thumb { transform: scale(1); }
@media (hover: none) { .ap input[type=range]::-webkit-slider-thumb { transform: scale(1); } .ap input[type=range]::-moz-range-thumb { transform: scale(1); } }
.ap-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 8px; }
.ap-mc, .ap-side { display: flex; align-items: center; gap: 6px; }
.ap-side { margin-left: auto; }
.ap-b { position: relative; width: 40px; height: 40px; display: inline-grid; place-items: center; border: 0; border-radius: 50%;
  background: transparent; color: var(--fg-muted); cursor: pointer; transition: background .12s, color .12s, transform .08s; }
.ap-b:hover { background: var(--bg-hover); color: var(--fg); text-decoration: none; }
.ap-b:active { transform: scale(.92); }
.ap-b.on { color: var(--accent); }
.ap-b.on::after { content: ""; position: absolute; bottom: 3px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.ap-b .one { position: absolute; top: 7px; right: 7px; font-size: 9px; font-weight: 700; line-height: 1; }
.ap-play { width: 58px; height: 58px; margin: 0 4px; background: var(--accent); color: var(--bg); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 40%, transparent); }
.ap-play:hover { background: var(--accent); color: var(--bg); filter: brightness(1.1); }
.ap-rate { width: auto; min-width: 48px; padding: 0 12px; border-radius: 20px; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ap-vol { display: flex; align-items: center; gap: 2px; }
.ap-vol input { flex: none; width: 92px; }
.ap-keys { position: relative; padding: 0 28px 16px; font-size: 12px; color: var(--fg-muted); }
.ap .player-error { position: relative; }
@media (hover: none) { .ap-keys { display: none; } }

.aq { margin-top: 16px; }
.aq-head .count { margin-left: 0; }
.aq-filter { width: 180px; height: 28px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--fg); font: inherit; font-weight: 400; }
.aq-filter:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.aq-list { position: relative; max-height: min(60vh, 560px); overflow: auto; }
.aq-item { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 8px 16px;
  border: 0; border-top: 1px solid var(--border-muted); background: transparent; color: var(--fg); text-align: left; cursor: pointer; font: inherit; }
.aq-item:first-child { border-top: 0; }
.aq-item:hover { background: var(--bg-hover); }
.aq-n { display: grid; place-items: center; height: 24px; color: var(--fg-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.aq-n .eq, .aq-n .pp { display: none; }
.aq-item:not(.current):hover .num { display: none; }
.aq-item:not(.current):hover .pp { display: inline-grid; color: var(--fg); }
.aq-item.current .num { display: none; }
.aq-item.current .eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq b { width: 3px; height: 14px; border-radius: 2px; background: var(--accent); transform-origin: bottom; transform: scaleY(.35); animation: aq-eq 1s ease-in-out infinite; animation-play-state: paused; }
.eq b:nth-child(2) { animation-delay: -.4s; } .eq b:nth-child(3) { animation-delay: -.7s; }
.aq.is-playing .eq b { animation-play-state: running; }
@keyframes aq-eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.aq-t { display: flex; flex-direction: column; min-width: 0; }
.aq-t b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aq-t span { font-size: 12px; color: var(--fg-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 1.5em; }
.aq-item.current .aq-t b { color: var(--accent); font-weight: 600; }
.aq-s { font-size: 12px; color: var(--fg-muted); }
@media (prefers-reduced-motion: reduce) { .eq b, .ap-cover { animation: none; transition: none; } }
@media (max-width: 800px) {
  .ap-in { flex-direction: column; padding: 20px 16px 8px; gap: 18px; text-align: center; }
  .ap-cover { width: min(72vw, 300px); }
  .ap-info { width: 100%; }
  .ap-ctrl { justify-content: center; }
  .ap-mc, .ap-side { width: 100%; justify-content: center; margin: 0; }
  .ap-vol { display: none; }
  .aq-item { padding: 10px 12px; } .aq-s { display: none; } .aq-filter { width: 130px; }
}

/* ---------- Карточка сериала: на весь экран ---------- */
.modal { position: fixed; inset: 0; z-index: 60; overflow-y: auto; overscroll-behavior: contain; background: var(--bg); color: var(--fg); isolation: isolate; }
.sc-bg { position: fixed; inset: 0; z-index: -1; background-size: cover; background-position: center; filter: blur(72px) saturate(1.5); opacity: .34; transform: scale(1.2); pointer-events: none; }
.sc-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, var(--bg) 88%); }
.sc-top { position: sticky; top: 0; z-index: 5; padding: 12px 28px; background: color-mix(in srgb, var(--bg) 58%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.sc-top-in { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.sc-back { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 18px 0 12px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--fg) 10%, transparent);
  color: var(--fg); font: inherit; font-weight: 500; cursor: pointer; }
.sc-back:hover, .modal-x:hover { background: color-mix(in srgb, var(--fg) 20%, transparent); }
.sc-back svg, .modal-x svg { display: block; flex: none; }
.modal-x { width: 38px; height: 38px; padding: 0; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%;
  background: color-mix(in srgb, var(--fg) 10%, transparent); color: var(--fg); cursor: pointer; }
.sc-wrap { max-width: 1100px; margin: 0 auto; padding: 14px 28px 72px; }
.sc-hero { display: flex; gap: 36px; padding-bottom: 8px; }
.sc-art { flex: none; align-self: flex-start; width: 260px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 18px; display: grid; place-items: center;
  color: rgba(255, 255, 255, .85); background: var(--bg-hover); box-shadow: 0 22px 54px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .08); }
.sc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.sc-kicker { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.sc-info h2 { margin: -8px 0 0; font-family: var(--serif); font-size: clamp(30px, 5vw, 48px); font-weight: 600; line-height: 1.1; word-break: break-word; }
.sc-sub { margin-top: -8px; color: var(--fg-muted); font-size: 16px; }
.sc-chips, .sc-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-chip { padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 500; background: color-mix(in srgb, var(--fg) 10%, transparent); }
.sc-tag { padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 500; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); color: var(--accent); }
.sc-prog { display: flex; flex-direction: column; gap: 8px; max-width: 460px; }
.sc-prog-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-size: 13px; }
.sc-bar { height: 6px; border-radius: 6px; background: color-mix(in srgb, var(--fg) 14%, transparent); overflow: hidden; }
.sc-bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--accent); transition: width .5s; }
.sc-nextbox { display: flex; align-items: center; gap: 12px; width: fit-content; max-width: 100%; padding: 10px 16px 10px 12px; border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.sc-nx-ico { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--bg); }
.sc-nextbox div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sc-nextbox b { font-weight: 600; }
.sc-nextbox span { font-size: 13px; color: var(--fg-muted); }
.sc-variant { display: inline-flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; padding: 6px 14px; border: 1px dashed var(--border); border-radius: 999px;
  background: transparent; color: var(--fg); font: inherit; font-size: 13px; cursor: pointer; }
.sc-variant:hover { background: color-mix(in srgb, var(--fg) 8%, transparent); }
.sc-variant span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg-muted); }
.sc-variant u { color: var(--accent); text-decoration: none; font-weight: 600; flex: none; }
.sc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }
.sc-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 22px; border-radius: 999px; background: var(--accent); color: var(--bg); font-weight: 600;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.sc-btn:hover { filter: brightness(1.1); text-decoration: none; }
.sc-btn.ghost { background: color-mix(in srgb, var(--fg) 10%, transparent); color: var(--fg); box-shadow: none; font-weight: 500; }
.sc-btn.ghost:hover { background: color-mix(in srgb, var(--fg) 18%, transparent); }
.sc-sec { margin-top: 34px; }
.sc-h { margin: 0 0 12px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); font-weight: 600; }
.sc-alert { margin-top: 28px; padding: 12px 16px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.sc-alert.err { background: rgba(248, 81, 73, .14); border-color: rgba(248, 81, 73, .45); color: #f85149; }
.sc-cands { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.sc-cand { position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding: 12px; text-align: left; border: 1px solid var(--border); border-radius: 16px;
  background: color-mix(in srgb, var(--fg) 5%, transparent); color: var(--fg); font: inherit; cursor: pointer; transition: background .12s, border-color .12s; }
.sc-cand:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); border-color: var(--accent); }
.sc-cand.cur { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.sc-cand img, .sc-cand-ph { width: 92px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; background: var(--bg-hover); display: grid; place-items: center; color: rgba(255, 255, 255, .8); }
.sc-cand-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sc-cand-t b { font-weight: 600; }
.sc-cand-t span { font-size: 12px; color: var(--fg-muted); }
.sc-cand-t .sc-cand-d { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sc-cand-t em { margin-top: auto; font-style: normal; font-size: 12px; font-weight: 600; color: var(--accent); }
.modal.busy .sc-cands { opacity: .5; pointer-events: none; }
.sc-descr { margin: 0; max-width: 820px; font-size: 15px; line-height: 1.65; color: color-mix(in srgb, var(--fg) 88%, transparent); white-space: pre-line; }
.sc-descr.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.sc-more { margin-top: 8px; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }
.sc-tabs { display: flex; gap: 6px; margin-bottom: 4px; overflow-x: auto; scrollbar-width: thin; }
.sc-tab { position: relative; flex: none; height: 36px; padding: 0 18px; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--fg-muted); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.sc-tab:hover { color: var(--fg); background: color-mix(in srgb, var(--fg) 8%, transparent); }
.sc-tab.on { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.sc-dot { position: absolute; top: 5px; right: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.sc-tab.on .sc-dot { background: var(--bg); }
.sc-pane .sc-h { margin-top: 20px; }
.sc-eps { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-ep { min-width: 42px; height: 38px; padding: 0 10px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 11px; font-size: 13px; font-variant-numeric: tabular-nums;
  background: color-mix(in srgb, var(--fg) 6%, transparent); color: var(--fg); }
.sc-ep.seen { color: var(--fg-muted); opacity: .6; }
.sc-ep.up { border-style: dashed; color: var(--fg-muted); background: transparent; opacity: .55; }
a.sc-ep.play { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); font-weight: 600; opacity: 1; }
a.sc-ep.play:hover { background: color-mix(in srgb, var(--accent) 26%, transparent); text-decoration: none; }
.sc-files { display: flex; flex-direction: column; gap: 8px; }
.sc-file { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 14px;
  background: color-mix(in srgb, var(--fg) 5%, transparent); color: var(--fg); transition: background .12s, border-color .12s; }
.sc-file:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); border-color: var(--accent); text-decoration: none; }
.sc-file.seen { opacity: .6; }
.sc-fi { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--bg); }
.sc-ft { display: flex; flex-direction: column; min-width: 0; }
.sc-ft b { font-weight: 600; }
.sc-ft span { font-size: 12px; color: var(--fg-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-fs { font-size: 12px; color: var(--fg-muted); white-space: nowrap; }
.poster .warn { color: var(--accent); }
@media (max-width: 800px) {
  .sc-top { padding: 10px 14px; }
  .sc-wrap { padding: 10px 16px 56px; }
  .sc-hero { flex-direction: column; align-items: center; gap: 20px; text-align: center; }
  .sc-art { align-self: center; width: 170px; }
  .sc-info { width: 100%; align-items: center; }
  .sc-chips, .sc-tags, .sc-actions { justify-content: center; }
  .sc-prog { width: 100%; }
  .sc-nextbox { text-align: left; }
  .sc-cands { grid-template-columns: 1fr; }
  .sc-fs { display: none; }
  .sc-file { grid-template-columns: 34px minmax(0, 1fr); }
}

/* ---------- Тема «по времени года» (кнопка с сезоном в верхней панели) ---------- */
#season-fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 40; pointer-events: none; }
/* Иллюстрация фиксирована относительно окна и лежит под интерфейсом. */
:root[data-theme="season"][data-season] body {
  isolation: isolate;
}
:root[data-theme="season"][data-season] body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--season-glow), var(--season-shade), var(--season-scene);
  background-position: center, center, var(--season-scene-position, center);
  background-size: cover, cover, var(--season-scene-size, cover);
  background-repeat: no-repeat;
}
:root[data-theme="season"][data-season] {
  --season-shade: linear-gradient(100deg,
    color-mix(in srgb, var(--bg) 79%, transparent),
    color-mix(in srgb, var(--bg) 64%, transparent) 57%,
    color-mix(in srgb, var(--bg) 42%, transparent));
}
@media (max-width: 800px) {
  :root[data-theme="season"][data-season] {
    --season-scene-position: 86% center;
    --season-shade: linear-gradient(
      color-mix(in srgb, var(--bg) 62%, transparent),
      color-mix(in srgb, var(--bg) 78%, transparent) 44%,
      color-mix(in srgb, var(--bg) 55%, transparent));
  }
  :root[data-theme="season"][data-season="spring"] {
    --season-scene-position: left center;
  }
}
@media (max-width: 800px) and (orientation: portrait) {
  :root[data-theme="season"][data-season="winter"] {
    --season-scene-position: 94% top;
    --season-scene-size: auto 112%;
  }
}
@media print {
  #season-fx, :root[data-theme="season"][data-season] body::before { display: none; }
}
:root[data-theme="season"] .topbar { border-bottom: 1px solid transparent; border-image: linear-gradient(90deg, var(--accent), var(--accent2) 55%, transparent) 1; }
:root[data-theme="season"] ::selection { background: color-mix(in srgb, var(--accent2) 42%, transparent); }
:root[data-theme="season"] .bar i, :root[data-theme="season"] .sc-bar i { background: linear-gradient(90deg, var(--accent), var(--accent2)); }

/* зима: морозная ночь — синий, голубой, белый, красный */
:root[data-theme="season"][data-season="winter"] {
  --season-scene: url("season-backgrounds/winter.webp");
  color-scheme: dark;
  --bg: #071426; --bg-subtle: #0c1f38; --bg-hover: #13294a; --border: #1d3a63; --border-muted: #142b4b;
  --fg: #eaf4ff; --fg-muted: #8fb0d3; --accent: #8fd3ff; --accent2: #ff5a6a; --folder: #8fd3ff; --sel: #12294a; --tile: #123057;
  --season-glow: radial-gradient(900px 520px at 88% -8%, rgba(143, 211, 255, .16), transparent 70%), radial-gradient(760px 460px at 6% 112%, rgba(255, 90, 106, .09), transparent 70%);
}
/* весна: свежая зелень и цветущая вишня */
:root[data-theme="season"][data-season="spring"] {
  --season-scene: url("season-backgrounds/spring.webp");
  color-scheme: light;
  --bg: #f4f9f1; --bg-subtle: #ffffff; --bg-hover: #e6f2e1; --border: #d4e5cf; --border-muted: #e2eedd;
  --fg: #1f2d1c; --fg-muted: #587053; --accent: #237a3e; --accent2: #e8789a; --folder: #6fb36d; --sel: #e0f0dc; --tile: #dcefd6;
  --season-glow: radial-gradient(900px 520px at 90% -10%, rgba(232, 120, 154, .16), transparent 70%), radial-gradient(760px 460px at 4% 112%, rgba(111, 179, 109, .18), transparent 70%);
}
/* лето: тёмный лес — листва и кора */
:root[data-theme="season"][data-season="summer"] {
  --season-scene: url("season-backgrounds/summer.webp");
  color-scheme: dark;
  --bg: #0f1a10; --bg-subtle: #172316; --bg-hover: #22301c; --border: #35452b; --border-muted: #263420;
  --fg: #eaf3e4; --fg-muted: #9db89a; --accent: #8fd36a; --accent2: #b3814b; --folder: #c08a55; --sel: #1d2c1a; --tile: #2a3a22;
  --season-glow: radial-gradient(900px 520px at 90% -10%, rgba(143, 211, 106, .13), transparent 70%), radial-gradient(760px 460px at 4% 112%, rgba(179, 129, 75, .13), transparent 70%);
}
/* осень: тёплые жёлтые, красные и коричневые тона */
:root[data-theme="season"][data-season="autumn"] {
  --season-scene: url("season-backgrounds/autumn.webp");
  color-scheme: dark;
  --bg: #1a0f0a; --bg-subtle: #251610; --bg-hover: #32201a; --border: #4a3024; --border-muted: #35231a;
  --fg: #f6e9da; --fg-muted: #c4a58b; --accent: #f2a03d; --accent2: #d9503a; --folder: #e0a35a; --sel: #2e1c14; --tile: #3a2418;
  --season-glow: radial-gradient(900px 520px at 90% -10%, rgba(242, 160, 61, .14), transparent 70%), radial-gradient(760px 460px at 4% 112%, rgba(217, 80, 58, .12), transparent 70%);
}


/* Главная архива */
:root:where(.archive-home-layout) {
  color-scheme: light;
  --bg: #f2f5fa; --bg-subtle: #fff; --bg-hover: #e9eff9;
  --border: #d7e0ef; --border-muted: #e1e7f0;
  --fg: #18263b; --fg-muted: #52627a; --accent: #225abe;
  --tile: #eaf0fc; --sel: #dfeafa;
  --surface: #fff; --rail: #f8fafd; --top: #fff;
  --blue: #255dbc; --green: #097458; --gold: #855500; --purple: #6848b9;
  --blue-tint: #e7efff; --green-tint: #def6eb; --gold-tint: #fff1d7; --purple-tint: #eee8ff;
  --font: Inter, 'Segoe UI', system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:where(.archive-home-layout):not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b111d; --bg-subtle: #101a2a; --bg-hover: #182640;
    --border: #24334c; --border-muted: #202e44;
    --fg: #f0f4fd; --fg-muted: #a2aec4; --accent: #91b7ff; --sel: #182947;
    --tile: #192944; --surface: #111b2c; --rail: #0d1523; --top: #0e1726;
    --blue: #91b9ff; --green: #75e3bd; --gold: #f2c77a; --purple: #c6aaff;
    --blue-tint: #1b2d4c; --green-tint: #15352f; --gold-tint: #352c25; --purple-tint: #2c2546;
  }
}
:root:where(.archive-home-layout)[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b111d; --bg-subtle: #101a2a; --bg-hover: #182640;
  --border: #24334c; --border-muted: #202e44;
  --fg: #f0f4fd; --fg-muted: #a2aec4; --accent: #91b7ff; --sel: #182947;
  --tile: #192944; --surface: #111b2c; --rail: #0d1523; --top: #0e1726;
  --blue: #91b9ff; --green: #75e3bd; --gold: #f2c77a; --purple: #c6aaff;
  --blue-tint: #1b2d4c; --green-tint: #15352f; --gold-tint: #352c25; --purple-tint: #2c2546;
}
:where(.archive-home-layout) body { background: var(--bg); }
:where(.archive-home-layout) .topbar { height: 65px; padding: 0 26px; background: var(--top); }
:where(.archive-home-layout) .topbar .spacer { display: block; flex: 1; }
:where(.archive-home-layout) body[data-section=""]:not([data-page]) .topbar .spacer { display: none; }
:where(.archive-home-layout) .topbar .brand { margin-right: auto; gap: 11px; font: 650 1.08rem var(--font); letter-spacing: -.025em; white-space: nowrap; }
:where(.archive-home-layout) .brand img { width: 35px; height: 35px; border-radius: 10px; }
:where(.archive-home-layout) .topbar .icon-btn { border: 1px solid var(--border); border-radius: 10px; width: 38px; height: 38px; }
:where(.archive-home-layout) .topbar .icon-btn.burger { border-color: transparent; }
:where(.archive-home-layout) .theme-seg { background: var(--rail); }
:where(.archive-home-layout) .theme-seg button.on { background: var(--sel); }
:where(.archive-home-layout) .sidebar { width: 216px; padding: 24px 14px; background: var(--rail); }
:where(.archive-home-layout) .nav-link { gap: 12px; min-height: 43px; margin-bottom: 4px; font-size: .88rem; color: var(--fg-muted); }
:where(.archive-home-layout) .nav-link.active { background: var(--sel); color: var(--accent); }
:where(.archive-home-layout) .nav-label { font-size: .75rem; letter-spacing: .08em; font-weight: 650; margin: 26px 12px 9px; }
:where(.archive-home-layout) .page { max-width: 1470px; padding: 27px clamp(18px, 3vw, 43px) 56px; }
:where(.archive-home-layout) .preview-tag { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 10px; border: 1px solid var(--border); border-radius: 20px; color: var(--fg-muted); font-size: .76rem; white-space: nowrap; }

:where(.archive-home-layout) .archive-hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  min-height: 272px;
  display: flex;
  align-items: center;
  padding: 32px clamp(24px, 4.1vw, 61px);
  background: radial-gradient(ellipse at 77% 85%, #234a81 0, transparent 52%), linear-gradient(112deg,#142844 0%,#17345e 58%,#1b4374 100%);
  border: 1px solid #375989;
  border-radius: 23px;
  color: #f5f8ff;
}
:where(.archive-home-layout) .hero-content { position: relative; z-index: 2; width: min(100%, 510px); }
:where(.archive-home-layout) .archive-hero h1 { margin: 0; font: 720 clamp(2.35rem, 5vw, 4rem)/1.03 var(--font); letter-spacing: -.065em; }
:where(.archive-home-layout) .archive-hero p { max-width: 400px; margin: 14px 0 23px; color: #d1def4; font-size: 1.03rem; line-height: 1.55; }
:where(.archive-home-layout) .archive-hero .top-search { display: flex; margin: 0; max-width: 436px; }
:where(.archive-home-layout) .archive-hero .top-search svg { left: 15px; top: 17px; color: #a6bad8; }
:where(.archive-home-layout) .archive-hero .top-search input { height: 50px; padding-left: 43px; padding-right: 51px; background: #102341; border: 1px solid #5575a2; border-radius: 11px; color: #fff; font-size: .94rem; color-scheme: dark; }
:where(.archive-home-layout) .archive-hero .top-search input::placeholder { color: #c4d2e8; opacity: 1; }
:where(.archive-home-layout) .archive-hero .top-search kbd { position: absolute; inset: 12px 13px 12px auto; display: grid; place-items: center; width: 25px; border-radius: 5px; color: #b7c8e2; border: 1px solid #49618a; background: #1e365b; font: .8rem var(--mono); pointer-events: none; }
:where(.archive-home-layout) .archive-hero .top-search:focus-within kbd { display: none; }
:where(.archive-home-layout) .hero-art { z-index: 1; position: absolute; inset: 0 0 0 48%; pointer-events: none; }
:where(.archive-home-layout) .hero-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(#96baff1e 1px,transparent 1px),linear-gradient(90deg,#96baff1e 1px,transparent 1px); background-size: 31px 31px; mask-image: radial-gradient(ellipse at 61% 51%,#000 0%,transparent 74%); }
:where(.archive-home-layout) .art-scene { position: absolute; width: 352px; height: 234px; top: 50%; left: 57%; transform: translate(-50%,-50%); }
:where(.archive-home-layout) .art-orbit { position: absolute; inset: 10px 19px; border: 1px solid #a3c7ff29; border-radius: 50%; transform: rotate(-20deg); }
:where(.archive-home-layout) .art-orbit::after { content: ""; position: absolute; inset: 17px -22px; border: 1px solid #a3c7ff20; border-radius: 50%; }
:where(.archive-home-layout) .art-folder { position: absolute; width: 183px; height: 132px; top: 72px; left: 82px; transform: rotate(-10deg); }
:where(.archive-home-layout) .folder-back { position: absolute; inset: 8px 2px 6px; border-radius: 12px; background: linear-gradient(140deg,#739fff,#345fc2); box-shadow: 0 18px 43px #091c49aa; }
:where(.archive-home-layout) .folder-back::before { content: ""; position: absolute; width: 65px; height: 25px; left: 0; top: -12px; border-radius: 11px 12px 0 0; transform: skewX(10deg); transform-origin: bottom left; background: #75a1ff; }
:where(.archive-home-layout) .folder-paper { position: absolute; width: 98px; height: 123px; left: 56px; top: -34px; border-radius: 10px; border: 1px solid #f9fbff; background: linear-gradient(155deg,#edf5ff,#a9c9ff); box-shadow: 0 5px 14px #173b9a54; transform: rotate(14deg); }
:where(.archive-home-layout) .folder-paper::before { content: ""; display: block; margin: 19px 15px 8px; width: 24px; height: 24px; border-radius: 6px; background: #98b9fb; }
:where(.archive-home-layout) .folder-paper::after { content: ""; display: block; width: 62px; height: 15px; margin-left: 15px; background: repeating-linear-gradient(to bottom,#81a9eb 0 2px,transparent 2px 7px); }
:where(.archive-home-layout) .folder-paper.behind { transform: rotate(-13deg); left: 25px; top: -18px; background: linear-gradient(150deg,#c9dfff,#90aff6); }
:where(.archive-home-layout) .folder-paper.behind::before, :where(.archive-home-layout) .folder-paper.behind::after { display: none; }
:where(.archive-home-layout) .folder-front { position: absolute; inset: 29px -7px 0 6px; border-radius: 13px; background: linear-gradient(155deg,#acccff 0,#759fff 51%,#517be4 100%); border: 1px solid #b6d5ff; box-shadow: 0 10px 17px #1228595c, inset 0 1px 1px #fff6; transform: skewX(-9deg); }
:where(.archive-home-layout) .folder-front::after { content: ""; position: absolute; width: 38px; height: 12px; border: 1px solid #d3e3ff99; border-radius: 4px; left: 16px; bottom: 17px; background: #bbd4ff65; }
:where(.archive-home-layout) .art-chip { position: absolute; display: grid; place-items: center; width: 49px; height: 49px; border-radius: 13px; box-shadow: 0 7px 20px #081a3b66; }
:where(.archive-home-layout) .art-chip.book { top: 16px; right: 30px; color: #eee4ff; background: #7656c1; border: 1px solid #a990ec; transform: rotate(11deg); }
:where(.archive-home-layout) .art-chip.play { left: 17px; bottom: 30px; color: #c7ffe9; background: #21766e; border: 1px solid #55ad9e; transform: rotate(-11deg); }
:where(.archive-home-layout) .art-chip.doc { right: 19px; bottom: 24px; width: 38px; height: 38px; color: #fde3b7; background: #88663c; border: 1px solid #be9d67; transform: rotate(13deg); }
:where(.archive-home-layout) .art-spark { position: absolute; color: #bad5ff; font-size: 23px; line-height: 1; }
:where(.archive-home-layout) .art-spark.first { top: 22px; left: 30px; } :where(.archive-home-layout) .art-spark.second { top: 92px; right: 1px; font-size: 15px; }

:where(.archive-home-layout) .archive-dashboard { display: grid; gap: 29px; margin-top: 25px; }
:where(.archive-home-layout) .archive-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; min-height: 30px; }
:where(.archive-home-layout) .archive-heading h2 { margin: 0; color: var(--fg); font-size: 1.21rem; font-weight: 650; letter-spacing: -.025em; }
:where(.archive-home-layout) .archive-sections { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 14px; }
:where(.archive-home-layout) .archive-card { min-width: 0; min-height: 147px; border: 1px solid var(--border); border-radius: 16px; padding: 15px; display: flex; flex-direction: column; align-items: flex-start; background: var(--surface); color: var(--fg); transition: border-color .16s, background .16s; }
:where(.archive-home-layout) .archive-card:hover { text-decoration: none; background: var(--bg-hover); border-color: var(--accent); }
:where(.archive-home-layout) .archive-card strong { margin-top: 11px; font-size: .96rem; font-weight: 650; line-height: 1.26; }
:where(.archive-home-layout) .archive-card .category-meta { margin-top: auto; padding-top: 7px; color: var(--fg-muted); font-size: .81rem; line-height: 1.35; }
:where(.archive-home-layout) .category-icon { width: 43px; height: 43px; flex: none; display: grid; place-items: center; border-radius: 12px; color: var(--blue); background: var(--blue-tint); }
:where(.archive-home-layout) [data-category="library"] .category-icon { color: var(--purple); background: var(--purple-tint); }
:where(.archive-home-layout) [data-category="other"] .category-icon { color: var(--gold); background: var(--gold-tint); }
:where(.archive-home-layout) [data-category="downloads"] .category-icon { color: var(--green); background: var(--green-tint); }
:where(.archive-home-layout) [data-category="github"] .category-icon { color: var(--fg); background: var(--bg-hover); }

:where(.archive-home-layout) .archive-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(245px, .36fr); gap: 21px; align-items: start; }
:where(.archive-home-layout) .archive-columns > * { min-width: 0; }
:where(.archive-home-layout) .archive-list { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
:where(.archive-home-layout) .archive-file, :where(.archive-home-layout) .archive-list-labels { display: grid; grid-template-columns: minmax(0,1fr) minmax(98px,.35fr) 76px; align-items: center; gap: 13px; padding: 0 15px; }
:where(.archive-home-layout) .archive-list-labels { min-height: 41px; color: var(--fg-muted); font-size: .77rem; background: var(--rail); border-bottom: 1px solid var(--border-muted); }
:where(.archive-home-layout) .archive-file { min-height: 55px; color: var(--fg); }
:where(.archive-home-layout) .archive-file + .archive-file { border-top: 1px solid var(--border-muted); }
:where(.archive-home-layout) .archive-file:hover { text-decoration: none; background: var(--bg-hover); }
:where(.archive-home-layout) .archive-file:focus-visible { outline-offset: -3px; }
:where(.archive-home-layout) .archive-file-name { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: .89rem; font-weight: 550; }
:where(.archive-home-layout) .archive-file-name b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: inherit; }
:where(.archive-home-layout) .archive-file .category-icon { width: 31px; height: 31px; border-radius: 8px; }
:where(.archive-home-layout) .archive-file-meta { color: var(--fg-muted); font-size: .8rem; line-height: 1.3; }
:where(.archive-home-layout) .archive-file-size { text-align: right; white-space: nowrap; }
:where(.archive-home-layout) .archive-dashboard .linkbtn { border: 1px solid var(--border); border-radius: 8px; padding: 3px 10px; min-height: 31px; text-decoration: none; font-size: .8rem; }
:where(.archive-home-layout) .archive-dashboard .linkbtn:hover { background: var(--bg-hover); }
:where(.archive-home-layout) .archive-empty { color: var(--fg-muted); font-size: .89rem; padding: 15px; margin: 0; }
:where(.archive-home-layout) .archive-panel { border: 1px solid var(--border); border-radius: 16px; padding: 15px; background: var(--surface); margin-bottom: 13px; }
:where(.archive-home-layout) .archive-panel .panel-head { justify-content: flex-start; gap: 10px; margin: 0 0 12px; color: var(--fg); font-size: .93rem; }
:where(.archive-home-layout) .archive-panel .panel-head > svg { color: var(--accent); }
:where(.archive-home-layout) .archive-panel .panel-head .badge { margin-left: auto; }
:where(.archive-home-layout) .archive-panel .bar { margin: 10px 0 0; }
:where(.archive-home-layout) .archive-panel .sys-row { padding: 5px 0; font-size: .83rem; }
:where(.archive-home-layout) .archive-panel .muted { font-size: .84rem; }
:where(.archive-home-layout) .storage-line { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 5px 12px; }
:where(.archive-home-layout) #disk-num { font-size: 1.12rem; letter-spacing: -.03em; }
:where(.archive-home-layout) #sresults:not([hidden]) { margin-top: 23px; }
:where(.archive-home-layout) .archive-dashboard .media-row img { object-fit: cover; width: 100%; }
:where(.archive-home-layout) .archive-dashboard [hidden], :where(.archive-home-layout) .archive-home [hidden] { display: none !important; }
:where(.archive-home-layout) .archive-notice { max-width: 640px; padding: 25px; border: 1px solid var(--border); border-radius: 17px; background: var(--surface); }
:where(.archive-home-layout) .archive-notice h1 { margin: 0 0 10px; font-size: 1.6rem; }
:where(.archive-home-layout) .archive-notice p { margin: 0 0 18px; color: var(--fg-muted); font-size: 1rem; }

@media (max-width: 1150px) {
  :where(.archive-home-layout) .sidebar { width: 191px; }
  :where(.archive-home-layout) .archive-columns { grid-template-columns: minmax(0, 1fr) minmax(205px, .38fr); gap: 14px; }
  :where(.archive-home-layout) .art-scene { left: 61%; transform: translate(-50%,-50%) scale(.83); }
  :where(.archive-home-layout) .hero-content { width: min(62%, 490px); }
  :where(.archive-home-layout) .archive-card { padding: 13px; }
}
@media (max-width: 980px) {
  :where(.archive-home-layout) .archive-columns { grid-template-columns: minmax(0,1fr); }
  :where(.archive-home-layout) .archive-info { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  :where(.archive-home-layout) .archive-info .archive-heading { grid-column: 1 / -1; margin-bottom: 0; }
  :where(.archive-home-layout) .archive-info .archive-panel { margin: 0; }
  :where(.archive-home-layout) .archive-sections { grid-template-columns: repeat(3,minmax(0,1fr)); }
  :where(.archive-home-layout) .archive-card { min-height: 133px; }
}
@media (max-width: 800px) {
  :where(.archive-home-layout) .topbar { height: 58px; padding: 0 12px; gap: 8px; flex: none; }
  :where(.archive-home-layout) .sidebar { top: 58px; width: min(260px, 82vw); visibility: hidden; padding: 15px 11px; }
  :where(.archive-home-layout) body.menu-open .sidebar { visibility: visible; }
  :where(.archive-home-layout) .page { padding: 16px 14px 40px; }
  :where(.archive-home-layout) .archive-hero { min-height: 238px; }
  :where(.archive-home-layout) .archive-hero .top-search input { font-size: 1rem; }
  :where(.archive-home-layout) .archive-heading h2 { scroll-margin-top: 16px; }
  :where(.archive-home-layout) .archive-sections { gap: 11px; }
}
@media (max-width: 560px) {
  :where(.archive-home-layout) .brand img { width: 29px; height: 29px; border-radius: 8px; }
  :where(.archive-home-layout) .topbar .brand { gap: 6px; font-size: .9rem; }
  :where(.archive-home-layout) .topbar .icon-btn { width: 32px; height: 34px; }
  :where(.archive-home-layout) .theme-seg { background: transparent; }
  :where(.archive-home-layout) .preview-tag { font-size: .70rem; padding: 2px 6px; }
  :where(.archive-home-layout) body:not([data-section=""]) .topbar .brand span { display: none; }
  :where(.archive-home-layout) .topbar .spacer { display: none; }
  :where(.archive-home-layout) .archive-hero { min-height: 228px; padding: 25px 18px; border-radius: 17px; }
  :where(.archive-home-layout) .archive-hero h1 { font-size: 2.52rem; }
  :where(.archive-home-layout) .archive-hero p { margin: 12px 0 18px; max-width: 230px; font-size: .92rem; }
  :where(.archive-home-layout) .hero-content { width: 100%; }
  :where(.archive-home-layout) .art-scene { transform: translate(-50%,-61%) scale(.48); left: 67%; opacity: .48; }
  :where(.archive-home-layout) .archive-hero .top-search kbd { display: none; }
  :where(.archive-home-layout) .archive-hero .top-search input { padding-right: 12px; }
  :where(.archive-home-layout) .archive-dashboard { margin-top: 19px; gap: 23px; }
  :where(.archive-home-layout) .archive-sections { grid-template-columns: repeat(2,minmax(0,1fr)); }
  :where(.archive-home-layout) .archive-card strong { font-size: .88rem; }
  :where(.archive-home-layout) .archive-card .category-meta { font-size: .75rem; }
  :where(.archive-home-layout) .archive-file, :where(.archive-home-layout) .archive-list-labels { grid-template-columns: minmax(0,1fr) 54px; padding: 0 10px; gap: 7px; }
  :where(.archive-home-layout) .archive-file .file-section, :where(.archive-home-layout) .archive-list-labels .file-section { display: none; }
  :where(.archive-home-layout) .archive-file-name { font-size: .81rem; gap: 8px; }
  :where(.archive-home-layout) .archive-info { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  :where(.archive-home-layout) .archive-card, :where(.archive-home-layout) .archive-panel .bar i { transition: none; }
}

@media (min-width: 801px) { :where(.archive-home-layout) .topbar .burger { display: none; } }
@media (max-width: 370px) { :where(.archive-home-layout) .topbar .brand span { display: none; } }


:where(.archive-home-layout) #disk-meter { display: block; width: 100%; accent-color: var(--blue); }
:where(.archive-home-layout) #disk-meter[hidden] { display: none; }
:where(.archive-home-layout) #disk-meter { appearance: none; border: 0; }
:where(.archive-home-layout) #disk-meter::-webkit-progress-bar { background: var(--border); }
:where(.archive-home-layout) #disk-meter::-webkit-progress-value { background: var(--blue); }
:where(.archive-home-layout) #disk-meter::-moz-progress-bar { background: var(--blue); }
:where(.archive-home-layout) .archive-panel .panel-head .badge { white-space: nowrap; }

.topbar .archive-cinema-link {
  display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 6px;
  padding: 5px 11px; min-height: 35px; border: 1px solid var(--border, #364861); border-radius: 9px;
  color: var(--accent, #9bc3ff); background: var(--bg-subtle, #121c2d);
  font-size: 13px; font-weight: 650; white-space: nowrap;
}
.archive-cinema-link:hover { background: var(--bg-hover, #233756); text-decoration: none; }
.archive-cinema-link svg { fill: currentColor; }
@media (max-width: 430px) {
  .topbar .archive-cinema-link { padding-inline: 7px; gap: 4px; font-size: 12px; }
}

:root[data-theme="season"][data-season] {
  --surface: var(--bg-subtle);
  --rail: var(--bg);
  --top: var(--bg-subtle);
  --blue: var(--accent);
  --purple: var(--accent2);
  --green: var(--folder);
  --gold: var(--fg);
  --blue-tint: var(--tile);
  --purple-tint: var(--bg-hover);
  --green-tint: var(--tile);
  --gold-tint: var(--bg-hover);
}
:root[data-theme="season"] .archive-hero {
  background: linear-gradient(115deg, color-mix(in srgb, var(--accent) 22%, #12161c), color-mix(in srgb, var(--accent2) 37%, #141d25));
  border-color: var(--border);
}
.sc-full .sc-wrap { padding-bottom: max(72px, env(safe-area-inset-bottom)); }
.sc-full .sc-pick[hidden] { display: none; }
.sc-full :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
