/* Хаб — общее оформление. Светлая/тёмная тема через токены; mobile-first. */
:root {
  --bg: #f6f1e9;
  --bg-2: #efe7da;
  --card: #fffdf9;
  --card-2: #f9f4ec;
  --line: #e4d9c8;
  --line-2: #d6c7b0;
  --ink: #2a2118;
  --ink-2: #5e5143;
  --ink-3: #8b7c69;
  --accent: #c2410c;
  --accent-ink: #fff;
  --accent-soft: #fbe3d3;
  --good: #3f7d4e;
  --good-soft: #dcefdf;
  --warn: #a16207;
  --warn-soft: #fbefcf;
  --bad: #b42318;
  --bad-soft: #fde2df;
  --violet: #6d4fc2;
  --violet-soft: #e9e2fb;
  --blue: #2f6db3;
  --blue-soft: #dde9f8;
  --shadow: 0 1px 2px rgb(60 40 20 / .06), 0 4px 16px rgb(60 40 20 / .07);
  --shadow-lift: 0 2px 4px rgb(60 40 20 / .08), 0 12px 32px rgb(60 40 20 / .14);
  --radius: 14px;
  --radius-sm: 9px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15120e; --bg-2: #1d1914; --card: #211c16; --card-2: #2a241c; --line: #352d24; --line-2: #473d31;
    --ink: #f3ebdf; --ink-2: #c9bba7; --ink-3: #93846f;
    --accent: #f08a4b; --accent-ink: #1b120a; --accent-soft: #4a2a17;
    --good: #7cc48d; --good-soft: #1f3a26; --warn: #e8b24a; --warn-soft: #3d3016; --bad: #f2877c; --bad-soft: #45201c;
    --violet: #b39cf5; --violet-soft: #2f2648; --blue: #8ab8ee; --blue-soft: #1d2d42;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 4px 16px rgb(0 0 0 / .3);
    --shadow-lift: 0 2px 4px rgb(0 0 0 / .5), 0 12px 32px rgb(0 0 0 / .45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #15120e; --bg-2: #1d1914; --card: #211c16; --card-2: #2a241c; --line: #352d24; --line-2: #473d31;
  --ink: #f3ebdf; --ink-2: #c9bba7; --ink-3: #93846f;
  --accent: #f08a4b; --accent-ink: #1b120a; --accent-soft: #4a2a17;
  --good: #7cc48d; --good-soft: #1f3a26; --warn: #e8b24a; --warn-soft: #3d3016; --bad: #f2877c; --bad-soft: #45201c;
  --violet: #b39cf5; --violet-soft: #2f2648; --blue: #8ab8ee; --blue-soft: #1d2d42;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 4px 16px rgb(0 0 0 / .3);
  --shadow-lift: 0 2px 4px rgb(0 0 0 / .5), 0 12px 32px rgb(0 0 0 / .45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font);
  min-height: 100vh; overflow-x: hidden;
}
a { color: inherit; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; margin: 0; }
h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .6em; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }

/* ---------- каркас ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.topbar-in { max-width: 1180px; margin: 0 auto; padding: 10px 16px 0; }
.topbar-row { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 1rem; }
@media (max-width: 600px) { .crumb.page { display: none; } .crumb.page-sep { display: none; } }
.crumb { color: var(--ink-3); font-size: .95rem; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spacer { flex: 1; }
.iconbtn {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid transparent; background: transparent;
  display: grid; place-items: center; cursor: pointer; color: var(--ink-2); flex: none;
}
.iconbtn:hover { background: var(--card); border-color: var(--line); color: var(--ink); }
.iconbtn svg { width: 20px; height: 20px; }
.subnav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 8px 0 10px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a {
  text-decoration: none; white-space: nowrap; padding: 6px 12px; border-radius: 999px; font-size: .92rem; color: var(--ink-2);
}
.subnav a:hover { background: var(--card); color: var(--ink); }
.subnav a.on { background: var(--ink); color: var(--bg); }
main { max-width: 1180px; margin: 0 auto; padding: 20px 16px 96px; }
.page-head { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-bottom: 18px; }
.page-head .grow { flex: 1; min-width: 200px; }
.page-head p { margin: 4px 0 0; color: var(--ink-3); }

/* ---------- кнопки, поля ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink); cursor: pointer; text-decoration: none;
  font-weight: 550; font-size: .95rem; min-height: 40px; transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { border-color: var(--ink-3); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.06); color: var(--accent-ink); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--card); border-color: var(--line); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { border-color: var(--bad); }
.btn.sm { padding: 5px 10px; min-height: 32px; font-size: .86rem; border-radius: 8px; }
.btn svg { width: 18px; height: 18px; }
.btn:disabled { opacity: .55; cursor: default; }
.input, select.input, textarea.input {
  width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card);
  min-height: 42px; outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea.input { min-height: 96px; resize: vertical; line-height: 1.45; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.field { display: flex; flex-direction: column; gap: 5px; }
.field > label { font-size: .84rem; color: var(--ink-2); font-weight: 550; }
.field .hint { font-size: .78rem; color: var(--ink-3); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px 14px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-grid.compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; min-height: 42px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.seg { display: inline-flex; background: var(--bg-2); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 6px 10px; border-radius: 8px; cursor: pointer; font-size: .88rem; color: var(--ink-2); }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }

/* ---------- чипы и бейджи ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .82rem;
  background: var(--bg-2); color: var(--ink-2); border: 1px solid transparent; white-space: nowrap;
}
button.chip { cursor: pointer; }
button.chip:hover { border-color: var(--line-2); }
button.chip.on { background: var(--ink); color: var(--bg); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; font-size: .76rem; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
.st-owned { background: var(--good-soft); color: var(--good); }
.st-wishlist { background: var(--accent-soft); color: var(--accent); }
.st-known { background: var(--blue-soft); color: var(--blue); }
.st-researched { background: var(--violet-soft); color: var(--violet); }
.st-sold, .st-not_mine, .st-unknown { background: var(--bg-2); color: var(--ink-3); }
.st-unknown { outline: 1px dashed var(--line-2); }
.lvl-wants { background: var(--accent-soft); color: var(--accent); }
.lvl-interested { background: var(--good-soft); color: var(--good); }
.lvl-curious { background: var(--blue-soft); color: var(--blue); }
.lvl-not_for_me { background: var(--bg-2); color: var(--ink-3); }
.res-win, .res-coop_win { background: var(--good-soft); color: var(--good); }
.res-loss, .res-coop_loss { background: var(--bad-soft); color: var(--bad); }
.res-draw, .res-unfinished, .res-n\/a { background: var(--bg-2); color: var(--ink-2); }

/* ---------- карточки ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 16px; }
.section { margin-top: 26px; }
.section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.section-head h2 { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.empty { padding: 28px 16px; text-align: center; color: var(--ink-3); border: 1.5px dashed var(--line-2); border-radius: var(--radius); }

/* главная */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.tile {
  position: relative; display: block; text-decoration: none; padding: 18px; overflow: hidden; min-height: 180px;
  transition: transform .15s, box-shadow .15s;
}
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); color: inherit; }
.tile .t-icon { font-size: 2rem; line-height: 1; }
.tile h2 { margin: 10px 0 4px; }
.tile .t-stats { display: flex; gap: 18px; margin: 14px 0 10px; }
.tile .t-stat b { display: block; font-size: 1.5rem; font-family: var(--font-display); line-height: 1.1; }
.tile .t-stat span { font-size: .8rem; color: var(--ink-3); }
.tile .t-lines { font-size: .88rem; color: var(--ink-2); }
.tile::after { content: ''; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--tile-accent, var(--accent)); opacity: .09; }
.tile.soon { opacity: .6; border-style: dashed; box-shadow: none; }
.tile.soon:hover { transform: none; }

/* полка */
.filters { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.filters .row > * { flex: none; }
.filters .selects { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filters .selects .input { width: 100% !important; max-width: none !important; min-width: 0; }
@media (min-width: 760px) { .filters .selects { display: flex; flex-wrap: wrap; } .filters .selects .input { width: auto !important; } }
.search { position: relative; flex: 1 1 220px !important; }
.search svg { position: absolute; left: 11px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
.search .input { padding-left: 36px; }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 170px), 1fr)); gap: 14px; }
@media (min-width: 700px) { .shelf { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; } }
.gcard { display: flex; flex-direction: column; text-decoration: none; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.gcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); color: inherit; }
.cover {
  position: relative; aspect-ratio: 1 / 1; background: var(--bg-2); overflow: hidden; display: flex; align-items: flex-end;
}
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover.gen { background: linear-gradient(150deg, hsl(var(--h) 52% 46%), hsl(calc(var(--h) + 38) 48% 26%)); color: #fff8ee; }
:root[data-theme="dark"] .cover.gen { background: linear-gradient(150deg, hsl(var(--h) 40% 34%), hsl(calc(var(--h) + 38) 40% 17%)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cover.gen { background: linear-gradient(150deg, hsl(var(--h) 40% 34%), hsl(calc(var(--h) + 38) 40% 17%)); } }
.cover.gen::before {
  content: ''; position: absolute; inset: 0; opacity: .16;
  background: radial-gradient(circle at 20% 20%, #fff 0 2px, transparent 3px) 0 0 / 22px 22px;
}
.cover.gen .cover-mono { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 14vw, 5.2rem); letter-spacing: -.02em; opacity: .9; text-shadow: 0 2px 18px rgb(0 0 0 / .25); }
.thumb.cover.gen .cover-mono { font-size: 1.3rem; }
.cover .cover-title {
  position: relative; padding: 12px; font-family: var(--font-display); font-weight: 650; font-size: 1.12rem; line-height: 1.15;
  text-shadow: 0 1px 8px rgb(0 0 0 / .25); overflow-wrap: anywhere;
}
.cover .cover-glyph { position: absolute; right: 10px; top: 6px; font-family: var(--font-display); font-size: 4.2rem; font-weight: 700; opacity: .18; line-height: 1; }
.cover .badge { position: absolute; left: 8px; top: 8px; box-shadow: 0 1px 3px rgb(0 0 0 / .15); }
.gcard .g-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.gcard .g-title { font-weight: 650; line-height: 1.25; }
.gcard .g-sub { font-size: .8rem; color: var(--ink-3); }
.gcard .g-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .8rem; color: var(--ink-2); margin-top: auto; padding-top: 4px; }
.gcard .g-verdict { font-size: .84rem; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* карточка игры */
.hero { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .hero { grid-template-columns: 260px 1fr; gap: 26px; } }
.hero-cover { position: relative; align-self: start; width: min(200px, 100%); }
@media (min-width: 760px) { .hero-cover { width: 100%; } }
.hero .cover { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.hero .cover-actions { position: absolute; right: 8px; bottom: 8px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 140px), 1fr)); gap: 8px; margin: 14px 0; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px; }
.fact .k { font-size: .74rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.fact .v { font-weight: 600; min-height: 1.5em; }
.verdict { font-family: var(--font-display); font-size: 1.15rem; font-style: italic; color: var(--ink-2); margin: 8px 0; }
.pc-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .pc-grid { grid-template-columns: 1fr 1fr; } }
.pc-grid .card { padding: 14px 16px; }
.pc-grid h3 { font-size: .9rem; font-family: var(--font); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.pros h3 { color: var(--good); }
.cons h3 { color: var(--bad); }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin: 28px 0 16px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; background: none; padding: 10px 14px; cursor: pointer; color: var(--ink-3); border-bottom: 2.5px solid transparent; white-space: nowrap; font-weight: 550; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--accent); }
.tabs .count { font-size: .76rem; color: var(--ink-3); margin-left: 3px; }

/* правка на месте */
.ed { cursor: text; border-radius: 6px; transition: background .12s; outline: 1px dashed transparent; outline-offset: 2px; min-width: 2ch; }
.ed:hover { background: color-mix(in srgb, var(--accent) 7%, transparent); outline-color: var(--line-2); }
.ed.empty-val { color: var(--ink-3); font-style: italic; font-weight: 400; }
.ed-wrap { display: flex; flex-direction: column; gap: 6px; }
.ed-actions { display: flex; gap: 6px; justify-content: flex-end; }

/* список записей (партии, экземпляры…) */
.item { padding: 12px 14px; display: flex; gap: 12px; align-items: flex-start; }
.item + .item { border-top: 1px solid var(--line); }
.item .grow { flex: 1; min-width: 0; }
.item .i-title { font-weight: 600; }
.item .i-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .84rem; color: var(--ink-2); margin-top: 2px; }
.item .i-actions { display: flex; gap: 2px; flex: none; }
.thumb { width: 44px; height: 44px; border-radius: 9px; flex: none; overflow: hidden; }
.thumb.cover { aspect-ratio: auto; }
.thumb .cover-glyph { font-size: 1.7rem; right: 5px; top: 3px; opacity: .45; }
.month-head { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 18px 4px 8px; font-weight: 650; }

/* markdown */
.md { overflow-wrap: anywhere; }
.md > :last-child { margin-bottom: 0; }
.md ul, .md ol { margin: 0 0 .6em; padding-left: 1.3em; }
.md h1, .md h2, .md h3, .md h4 { font-size: 1.05rem; margin: .8em 0 .3em; font-family: var(--font); font-weight: 700; }
.md code { background: var(--bg-2); padding: 1px 5px; border-radius: 5px; font-size: .9em; }
.md blockquote { margin: 0 0 .6em; padding-left: 12px; border-left: 3px solid var(--line-2); color: var(--ink-2); }
.md a { color: var(--accent); }

/* модальное окно (снизу на телефоне) */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgb(20 14 8 / .45); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
@media (min-width: 700px) { .overlay { align-items: center; padding: 24px; } }
.sheet {
  background: var(--card); width: 100%; max-width: 640px; max-height: 92vh; overflow: auto; border-radius: 18px 18px 0 0;
  box-shadow: var(--shadow-lift); padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); animation: up .2s ease-out;
}
@media (min-width: 700px) { .sheet { border-radius: 18px; padding: 22px; } }
.sheet-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.sheet-head h2 { flex: 1; }
.sheet-foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.sheet-foot .left { margin-right: auto; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(24px); opacity: .6; } }

.toast {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); translate: -50% 0; z-index: 60; max-width: calc(100% - 32px);
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; box-shadow: var(--shadow-lift); font-size: .92rem;
  animation: up .2s ease-out;
}
.toast.err { background: var(--bad); color: #fff; }

.fab {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30; width: 56px; height: 56px; border-radius: 18px;
  background: var(--accent); color: var(--accent-ink); border: 0; box-shadow: var(--shadow-lift); display: grid; place-items: center; cursor: pointer;
}
.fab svg { width: 26px; height: 26px; }
@media (min-width: 900px) { .fab { display: none; } }

/* статистика */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 150px), 1fr)); gap: 10px; }
.kpi { padding: 14px; }
.kpi b { display: block; font-family: var(--font-display); font-size: 1.7rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi span { font-size: .8rem; color: var(--ink-3); }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 160px; padding: 10px 0 0; border-bottom: 1px solid var(--line-2); position: relative; }
.bars .b { flex: 1; min-width: 6px; max-width: 42px; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; position: relative; cursor: default; }
.bars .b i { display: block; background: var(--accent); border-radius: 4px 4px 0 0; }
.bars .b i.nz { min-height: 3px; }
.bars .b:hover i { filter: brightness(1.12); }
.bars .b .tip {
  position: absolute; bottom: calc(100% + 4px); left: 50%; translate: -50% 0; background: var(--ink); color: var(--bg); font-size: .78rem;
  padding: 4px 8px; border-radius: 7px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .1s; z-index: 2;
}
.bars .b:hover .tip { opacity: 1; }
.bar-labels { display: flex; gap: 2px; font-size: .72rem; color: var(--ink-3); margin-top: 4px; }
.bar-labels span { flex: 1; min-width: 6px; max-width: 42px; text-align: center; overflow: hidden; white-space: nowrap; }
.rank { width: 100%; border-collapse: collapse; font-size: .92rem; }
.rank td { padding: 7px 4px; border-top: 1px solid var(--line); vertical-align: middle; }
.rank tr:first-child td { border-top: 0; }
.rank .n { width: 1%; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.rank .meter { width: 34%; }
.rank .meter i { display: block; height: 6px; border-radius: 3px; background: var(--accent); opacity: .85; }
.grid2 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .grid2 { grid-template-columns: 1fr 1fr; } }

/* звёзды приоритета */
.prio { color: var(--accent); letter-spacing: 1px; font-size: .9rem; }
.prio .off { color: var(--line-2); }

/* вход */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login { width: 100%; max-width: 360px; padding: 26px 22px; }
.login h1 { font-size: 1.6rem; margin: 12px 0 4px; }
.login .err { color: var(--bad); font-size: .9rem; margin-top: 10px; }

.skeleton { color: var(--ink-3); padding: 40px 0; text-align: center; }
details > summary { cursor: pointer; color: var(--ink-2); }
.linklike { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
