/* Черновик — оформление. Мобильный-first, три темы, без внешних шрифтов. */

/* ── токены ─────────────────────────────────────────────────────── */
:root {
  color-scheme: light;
  --paper: #fdf1f4;
  --paper-deep: #f8e1e9;
  --surface: #fffbfc;
  --surface-2: #fbe8ef;
  --ink: #2b1a22;
  --ink-soft: #573943;
  --muted: #97727e;
  --line: rgba(43, 26, 34, .12);
  --line-strong: rgba(43, 26, 34, .22);
  --accent: #c22f6d;
  --accent-ink: #a5215b;
  --accent-soft: rgba(194, 47, 109, .10);
  --gold: #c08a2e;
  --danger: #b0233c;
  --ok: #2e6b52;
  --star: rgba(194, 47, 109, .62);
  --star-2: rgba(192, 138, 46, .55);
  --shadow-1: 0 1px 2px rgba(96, 22, 50, .06), 0 8px 22px -14px rgba(126, 30, 64, .34);
  --shadow-2: 0 2px 6px rgba(96, 22, 50, .08), 0 22px 48px -22px rgba(126, 30, 64, .38);
  --radius: 14px;
  --radius-sm: 10px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --reading-size: 1.075rem;
  --header-h: 62px;
}



@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="sepia"]) {
    color-scheme: dark;
    --paper: #170e13;
    --paper-deep: #100a0e;
    --surface: #20131a;
    --surface-2: #2b1a23;
    --ink: #f6e5ec;
    --ink-soft: #dcc2ce;
    --muted: #ac8794;
    --line: rgba(246, 229, 236, .13);
    --line-strong: rgba(246, 229, 236, .26);
    --accent: #ef83ae;
    --accent-ink: #ffa8ca;
    --accent-soft: rgba(239, 131, 174, .15);
    --gold: #e6c384;
    --danger: #f2708b;
    --ok: #7fc0a0;
    --star: rgba(255, 200, 224, .85);
    --star-2: rgba(230, 195, 132, .8);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .5), 0 10px 26px -16px rgba(70, 12, 34, .95);
    --shadow-2: 0 2px 8px rgba(0, 0, 0, .5), 0 26px 54px -26px rgba(70, 12, 34, 1);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #170e13;
  --paper-deep: #100a0e;
  --surface: #20131a;
  --surface-2: #2b1a23;
  --ink: #f6e5ec;
  --ink-soft: #dcc2ce;
  --muted: #ac8794;
  --line: rgba(246, 229, 236, .13);
  --line-strong: rgba(246, 229, 236, .26);
  --accent: #ef83ae;
  --accent-ink: #ffa8ca;
  --accent-soft: rgba(239, 131, 174, .15);
  --gold: #e6c384;
  --danger: #f2708b;
  --ok: #7fc0a0;
  --star: rgba(255, 200, 224, .85);
  --star-2: rgba(230, 195, 132, .8);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .5), 0 10px 26px -16px rgba(70, 12, 34, .95);
  --shadow-2: 0 2px 8px rgba(0, 0, 0, .5), 0 26px 54px -26px rgba(70, 12, 34, 1);
}

:root[data-theme="sepia"] {
  color-scheme: light;
  --paper: #f7e6e4;
  --paper-deep: #eed4d3;
  --surface: #fdf2f1;
  --surface-2: #f2dbd8;
  --ink: #3a2126;
  --ink-soft: #563439;
  --muted: #8b676c;
  --line: rgba(58, 33, 38, .16);
  --line-strong: rgba(58, 33, 38, .28);
  --accent: #ac3a5f;
  --accent-ink: #8f2c4d;
  --accent-soft: rgba(172, 58, 95, .13);
  --gold: #b8862f;
  --star: rgba(172, 58, 95, .55);
}

/* ── база ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  padding-bottom: calc(70px + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.18; letter-spacing: -.012em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: var(--accent-ink); text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent-soft); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
code, pre { font-family: var(--mono); font-size: .92em; }
.icon { flex: none; display: inline-block; vertical-align: -3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 0 0 10px 0; }
.skip-link:focus { left: 0; }

.wrap { width: min(1140px, 100% - 34px); margin-inline: auto; }
@media (min-width: 700px) { .wrap { width: min(1140px, 100% - 56px); } }

.bg-decor {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60rem 34rem at 12% -12%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%),
    radial-gradient(48rem 30rem at 105% 6%, color-mix(in srgb, var(--gold) 10%, transparent), transparent 65%),
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--paper-deep) 85%, transparent) 82%);
}

/* ── полоса прогресса чтения ────────────────────────────────────── */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: var(--progress, 0%);
  background: linear-gradient(90deg, var(--accent), var(--gold));
  z-index: 60; transition: width .08s linear; opacity: 0;
}
.page-reader .progress-bar { opacity: 1; }

/* ── шапка ──────────────────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.4) blur(12px);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; gap: 10px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--accent), color-mix(in srgb, var(--gold) 60%, var(--accent)));
  color: #fff8f2; box-shadow: var(--shadow-1);
}
.brand-name { font-family: var(--serif); font-size: 1.32rem; letter-spacing: -.015em; }
.brand-name em { font-style: italic; color: var(--accent-ink); }

.main-nav { display: none; gap: 2px; margin-left: 14px; }
@media (min-width: 900px) { .main-nav { display: flex; } }
.nav-link {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px;
  color: var(--ink-soft); text-decoration: none; font-size: .93rem; font-weight: 500;
  transition: background .16s, color .16s;
}
.nav-link:hover { background: var(--surface-2); color: var(--ink); }
.nav-link.is-active { background: var(--accent-soft); color: var(--accent-ink); }

.head-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.head-search { display: none; position: relative; align-items: center; }
@media (min-width: 640px) { .head-search { display: flex; } }
.head-search .icon { position: absolute; left: 11px; color: var(--muted); pointer-events: none; }
.head-search input {
  width: 190px; padding: 8px 12px 8px 34px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); transition: width .2s ease, border-color .16s, box-shadow .16s;
}
.head-search input:focus { width: 250px; outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); cursor: pointer;
  transition: background .16s, color .16s, transform .16s; font-size: .82rem; font-weight: 600;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); transform: translateY(-1px); }
.theme-btn { position: relative; overflow: hidden; }
.theme-ico { position: absolute; display: grid; place-items: center; transition: transform .28s ease, opacity .2s; }
.theme-ico-moon, .theme-ico-sepia { opacity: 0; transform: translateY(140%); }
:root[data-theme="dark"] .theme-ico-sun { opacity: 0; transform: translateY(-140%); }
:root[data-theme="dark"] .theme-ico-moon { opacity: 1; transform: none; }
:root[data-theme="sepia"] .theme-ico-sun { opacity: 0; transform: translateY(-140%); }
:root[data-theme="sepia"] .theme-ico-sepia { opacity: 1; transform: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="sepia"]) .theme-ico-sun { opacity: 0; transform: translateY(-140%); }
  :root:not([data-theme="light"]):not([data-theme="sepia"]) .theme-ico-moon { opacity: 1; transform: none; }
}

.head-auth { display: flex; gap: 6px; }
@media (max-width: 479px) { .head-auth .btn-ghost { display: none; } }
.user-chip-link {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px;
  border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink);
  background: var(--surface); transition: box-shadow .16s, border-color .16s;
}
.user-chip-link:hover { border-color: var(--line-strong); box-shadow: var(--shadow-1); }
.user-chip-name { font-size: .88rem; font-weight: 600; }
@media (max-width: 420px) { .user-chip-name { display: none; } .user-chip-link { padding-right: 4px; } }

/* ── кнопки ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 17px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  font-size: .93rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform .14s ease, box-shadow .16s, background .16s, border-color .16s, color .16s;
}
.btn:active { transform: translateY(1px) scale(.995); }
.btn-primary { background: var(--accent); color: #fff8f4; box-shadow: var(--shadow-1); }
.btn-primary:hover { background: var(--accent-ink); color: #fff; box-shadow: var(--shadow-2); }
.btn-plain { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-plain:hover { background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 12%, transparent); }
.btn-sm { padding: 6px 12px; font-size: .84rem; }
.btn-lg { padding: 13px 24px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .6; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font-size: .8rem; cursor: pointer; text-decoration: underline; }
.link-btn:hover { color: var(--danger); }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ── аватар, чипы, статистика ───────────────────────────────────── */
.avatar { border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-family: var(--sans); border: 1px solid var(--line); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.chip {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-soft); text-decoration: none;
  font-size: .78rem; font-weight: 600; border: 1px solid var(--line); transition: background .16s, color .16s;
}
.chip:hover { background: var(--accent-soft); color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.stat { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.badge { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.badge-draft { background: color-mix(in srgb, var(--gold) 20%, transparent); color: var(--gold); }
.hint { color: var(--muted); font-size: .84rem; }
.hint-box { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; }

/* ── уведомления и тосты ────────────────────────────────────────── */
.notice {
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 12px 16px;
  border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1);
}
.notice-success .icon, .notice-info .icon { color: var(--ok); }
.notice-error { border-color: color-mix(in srgb, var(--danger) 40%, transparent); background: color-mix(in srgb, var(--danger) 8%, var(--surface)); }
.notice-error .icon { color: var(--danger); }
.toast-zone { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 80; display: grid; gap: 8px; width: min(420px, calc(100% - 28px)); }
@media (min-width: 900px) { .toast-zone { bottom: 26px; } }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px;
  background: var(--ink); color: var(--paper); box-shadow: var(--shadow-2); font-size: .9rem;
  animation: toast-in .28s cubic-bezier(.2, .9, .3, 1.2);
}
.toast-error { background: var(--danger); color: #fff; }
.toast.is-out { animation: toast-out .22s forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px) scale(.98); } }

/* ── герой ──────────────────────────────────────────────────────── */
.hero { padding: 40px 0 30px; position: relative; }
@media (min-width: 800px) { .hero { padding: 74px 0 46px; } }
.hero-kicker { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 18px; padding: 5px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; }
.hero-kicker .icon { color: var(--gold); }
.hero-title { font-size: clamp(2.3rem, 8.4vw, 4.6rem); line-height: 1.02; margin: 0 0 .32em; max-width: 16ch; }
.hero-title em { font-style: italic; color: var(--accent-ink); }
.hero-text { max-width: 54ch; color: var(--ink-soft); font-size: clamp(1rem, 2.5vw, 1.12rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 26px; }
.hero-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 26px; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--line); }
.hero-stats li { display: flex; flex-direction: column-reverse; }
.hero-stats b { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; }
.hero-stats span { color: var(--muted); font-size: .82rem; }

/* ── лента ──────────────────────────────────────────────────────── */
.main { padding: 22px 0 60px; min-height: 50vh; }
.page-feed .main { padding-top: 6px; }
.feed-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 14px 0 14px; }
.feed-title { font-size: 1.7rem; margin: 0; }
.feed-sub { margin: 0; color: var(--muted); font-size: .92rem; }
.page-head { margin: 26px 0 20px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.page-head h1 { display: flex; align-items: center; gap: 10px; font-size: clamp(1.7rem, 5vw, 2.3rem); margin: 0; }
.page-head h1 .icon { color: var(--accent-ink); }
.section-title { display: flex; align-items: center; gap: 9px; font-size: 1.22rem; margin: 30px 0 14px; }
.section-title .icon { color: var(--accent-ink); }

.segmented { display: inline-flex; gap: 3px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.segmented::-webkit-scrollbar { display: none; }
.seg {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px;
  color: var(--ink-soft); text-decoration: none; font-size: .86rem; font-weight: 600; white-space: nowrap;
  transition: background .16s, color .16s, box-shadow .16s; cursor: pointer;
}
.seg:hover { color: var(--ink); }
.seg.is-on { background: var(--surface); color: var(--accent-ink); box-shadow: var(--shadow-1); }
.segmented-block { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: var(--radius-sm); }
.segmented-block .seg { justify-content: center; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }

.story-grid { display: grid; gap: 18px; grid-template-columns: 1fr; margin-bottom: 26px; }
@media (min-width: 620px) { .story-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .story-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.card-wide { grid-column: 1 / -1; }
@media (min-width: 760px) {
  .card-wide { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: stretch; }
  .card-wide .card-cover { aspect-ratio: auto; min-height: 268px; }
  .card-wide .card-main { padding: 26px 28px; }
  .card-wide .card-title { font-size: 1.85rem; }
  .card-wide .card-excerpt { font-size: 1rem; }
}

.card {
  position: relative; display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-1); transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.card-cover { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); position: relative; }
.card-cover .cover-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.card:hover .card-cover .cover-img { transform: scale(1.04); }
.cover-fallback {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 4px; overflow: hidden;
  background:
    repeating-linear-gradient(0deg, transparent 0 27px, color-mix(in srgb, var(--line) 55%, transparent) 27px 28px),
    linear-gradient(140deg, color-mix(in srgb, var(--accent) 14%, var(--surface-2)), color-mix(in srgb, var(--gold) 14%, var(--surface-2)));
  color: color-mix(in srgb, var(--accent) 55%, var(--muted));
}
.cover-word { font-family: var(--serif); font-style: italic; font-size: 1.15rem; text-align: center; padding-inline: 14px; }
.cover-fallback .icon { opacity: .5; }
.card-main { display: flex; flex-direction: column; gap: 9px; padding: 15px 16px 17px; flex: 1; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-author { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: var(--muted); font-size: .82rem; font-weight: 600; }
.card-author:hover { color: var(--accent-ink); }
.card-title { font-size: 1.28rem; margin: 0; line-height: 1.22; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card:hover .card-title a { color: var(--accent-ink); }
.card-excerpt { margin: 0; color: var(--ink-soft); font-size: .92rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); color: var(--muted); font-size: .78rem; }
.card-meta time { font-size: .78rem; }

.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 10px 0 24px; }
.page-link { min-width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: .9rem; }
.page-link:hover { border-color: var(--line-strong); background: var(--surface-2); }
.page-link.is-current { background: var(--accent); border-color: var(--accent); color: #fff8f4; }
.page-gap { align-self: center; color: var(--muted); }

.empty { text-align: center; padding: 54px 22px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 55%, transparent); }
.empty-art { width: 74px; height: 74px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.empty h2 { font-size: 1.4rem; margin-bottom: .3em; }
.empty p { color: var(--muted); max-width: 44ch; margin: 0 auto 18px; }

/* ── читалка ────────────────────────────────────────────────────── */
.reader { max-width: 47rem; margin: 0 auto; }
.reader-bar {
  position: sticky; top: var(--header-h); z-index: 40; display: flex; align-items: center; gap: 12px;
  height: 54px; margin: 0 -12px 6px; padding: 0 12px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s;
}
.reader-bar.is-stuck { border-color: var(--line); }
.rb-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: .86rem; flex: none; }
.rb-link:hover { color: var(--accent-ink); }
.rb-title { flex: 1; min-width: 0; font-family: var(--serif); font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity .2s; }
.rb-tools { display: flex; gap: 6px; flex: none; }
@media (max-width: 560px) { .rb-hide { display: none; } }

.reader-head { padding: 12px 0 6px; }
.reader-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.reader-title { font-size: clamp(2rem, 6.2vw, 3.3rem); line-height: 1.06; margin: 0 0 .28em; letter-spacing: -.02em; }
.reader-lede { font-family: var(--serif); font-size: clamp(1.06rem, 2.6vw, 1.24rem); font-style: italic; color: var(--ink-soft); line-height: 1.5; border-left: 3px solid var(--accent); padding-left: 15px; margin: 0 0 26px; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding: 4px 0 22px; border-bottom: 1px solid var(--line); }
.byline-author { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.byline-author:hover .byline-name b { color: var(--accent-ink); }
.byline-name { display: flex; flex-direction: column-reverse; line-height: 1.2; }
.byline-name b { font-family: var(--serif); font-size: 1.02rem; }
.byline-name span { font-size: .74rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.byline-stats { display: flex; flex-wrap: wrap; gap: 7px 14px; color: var(--muted); font-size: .82rem; }
.byline-stats span { display: inline-flex; align-items: center; gap: 5px; }

.reader-cover { margin: 0 0 34px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.reader-cover img { width: 100%; display: block; }

.prose { font-family: var(--serif); font-size: var(--reading-size); line-height: 1.78; color: var(--ink); overflow-wrap: break-word; }
.prose > p:first-of-type::first-letter {
  float: left; font-size: 3.5em; line-height: .82; padding: .06em .09em 0 0; color: var(--accent-ink); font-weight: 600;
}
.prose p { margin: 0 0 1.15em; }
.prose .md-h { font-size: 1.42em; margin: 1.9em 0 .6em; }
.prose h3.md-h { font-size: 1.2em; }
.prose .md-quote { margin: 1.6em 0; padding: .3em 0 .3em 1.2em; border-left: 3px solid var(--gold); font-style: italic; color: var(--ink-soft); }
.prose .md-list { margin: 0 0 1.2em; padding-left: 1.4em; }
.prose .md-list li { margin-bottom: .35em; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose code { background: var(--surface-2); padding: .12em .38em; border-radius: 5px; border: 1px solid var(--line); }
.prose .md-code { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; overflow-x: auto; line-height: 1.6; font-size: .86em; }
.prose .md-code code { background: none; border: 0; padding: 0; }
.prose .md-figure { margin: 1.9em 0; }
.prose .md-figure figcaption { font-family: var(--sans); font-size: .82rem; color: var(--muted); text-align: center; margin-top: .6em; }
.prose .md-img { width: 100%; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); cursor: zoom-in; transition: filter .2s; }
.prose .md-img:hover { filter: saturate(1.06) contrast(1.02); }
.scene-break { text-align: center; letter-spacing: .7em; color: var(--muted); margin: 2.1em 0; font-size: .8rem; text-indent: .7em; }

.story-foot { margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--line); }
.react-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.react-form { display: inline-flex; }
.react-btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-soft);
  cursor: pointer; font-size: .9rem; font-weight: 600; text-decoration: none;
  transition: transform .16s, background .18s, color .18s, border-color .18s;
}
.react-btn:hover { transform: translateY(-1px); color: var(--ink); border-color: var(--accent); }
.react-count { font-variant-numeric: tabular-nums; }
.react-form.is-on .react-btn { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent-ink); }
.react-form.is-on .icon { fill: currentColor; }
.react-label { display: none; }
@media (min-width: 480px) { .react-label { display: inline; } }
.story-foot-note { margin: 16px 0 0; color: var(--muted); font-size: .88rem; font-family: var(--sans); }
.react-pop { animation: pop .34s cubic-bezier(.2, .9, .3, 1.5); }
@keyframes pop { 40% { transform: scale(1.22); } }

/* ── отзывы ─────────────────────────────────────────────────────── */
.comments { margin-top: 46px; }
.comment-form { margin-bottom: 22px; }
.comment-form textarea { width: 100%; resize: vertical; min-height: 84px; }
.comment-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.comment-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.comment { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.comment-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.comment-author { font-weight: 700; font-size: .9rem; color: var(--ink); text-decoration: none; }
.comment-author:hover { color: var(--accent-ink); }
.comment-head time { color: var(--muted); font-size: .78rem; }
.comment-text { font-size: .95rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.comment-body { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.also { margin-top: 48px; }

/* ── поля ввода ─────────────────────────────────────────────────── */
.field { display: block; margin-bottom: 16px; }
.field-label { display: block; font-size: .79rem; font-weight: 700; text-transform: uppercase; letter-spacing: .075em; color: var(--muted); margin-bottom: 7px; }
input[type="text"], input[type="search"], input[type="password"], textarea, select {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); transition: border-color .16s, box-shadow .16s, background .16s;
}
input[type="text"]:focus, input[type="search"]:focus, input[type="password"]:focus, textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 78%, transparent); }
textarea { resize: vertical; line-height: 1.6; }
.slug-hint { display: block; margin-top: 6px; font-family: var(--mono); font-size: .76rem; color: var(--muted); overflow-wrap: anywhere; }

/* ── редактор ───────────────────────────────────────────────────── */
.editor { padding-top: 10px; }
.editor-head { display: grid; gap: 14px; margin-bottom: 18px; }
@media (min-width: 760px) { .editor-head { grid-template-columns: 1.6fr 1fr; } }
.field-title input { font-family: var(--serif); font-size: 1.42rem; padding: 14px 16px; }
.editor-columns { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 980px) { .editor-columns { grid-template-columns: minmax(0, 1fr) 300px; } .editor-main { order: 1; } .editor-side { order: 2; position: sticky; top: calc(var(--header-h) + 14px); } }
.editor-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-1); }
.editor-main { min-width: 0; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; position: sticky; top: var(--header-h); z-index: 20; }
.tool-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--ink-soft); cursor: pointer; font-size: .84rem; font-weight: 600; }
.tool-btn:hover { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.tool-btn-image { background: var(--accent-soft); color: var(--accent-ink); }
.tool-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.tool-hint { flex: 1 1 200px; text-align: right; color: var(--muted); font-size: .76rem; }
.writer {
  font-family: var(--serif); font-size: 1.045rem; line-height: 1.78; min-height: 58vh; resize: vertical;
  border-radius: 0 0 var(--radius) var(--radius); background: var(--surface); padding: 20px 22px;
}
.cover-box { display: flex; flex-direction: column; gap: 9px; }
.cover-preview {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px dashed var(--line-strong); background: var(--surface-2); display: grid; place-items: center; gap: 4px;
  color: var(--muted); font-size: .8rem;
}
.cover-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-preview.is-empty span { margin-top: -4px; }
.cover-clear { position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(20, 16, 12, .72); color: #fff; display: grid; place-items: center; cursor: pointer; }
.cover-clear:hover { background: var(--danger); }
.file-btn { cursor: pointer; }
.side-stats { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: .82rem; margin: 4px 0 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.side-stats b { font-family: var(--serif); font-size: 1.02rem; color: var(--ink); }
.autosave-note { flex: 1 1 100%; font-size: .76rem; color: var(--muted); font-style: italic; }
.autosave-note.is-on { color: var(--ok); }
.side-actions { display: grid; gap: 8px; }
.inline-form { display: none; }
.preview { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-top: 14px; }
.preview.hidden, .hidden { display: none; }
.preview .prose { font-size: var(--reading-size); }
.is-uploading { opacity: .55; }
.upload-bar { height: 3px; background: var(--accent); width: 0; transition: width .2s; border-radius: 3px; }

/* ── вход и регистрация ─────────────────────────────────────────── */
.auth-shell { display: grid; gap: 26px; grid-template-columns: 1fr; align-items: start; max-width: 1000px; margin: 20px auto 0; }
@media (min-width: 900px) { .auth-shell { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 44px; } }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow-2); }
.auth-card h1 { font-size: 1.9rem; margin-bottom: .28em; }
.auth-sub { color: var(--muted); margin-bottom: 22px; }
.auth-form .field:last-of-type { margin-bottom: 20px; }
.auth-switch { margin: 18px 0 0; color: var(--muted); font-size: .9rem; text-align: center; }
.quote-card { background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 9%, var(--surface)), var(--surface)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-1); }
.quote-card .icon { color: var(--gold); margin-bottom: 8px; }
.quote-card p { font-family: var(--serif); font-size: 1.1rem; font-style: italic; line-height: 1.6; margin: 0 0 12px; }
.quote-sign { color: var(--muted); font-size: .84rem; }
.auth-points { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 11px; }
.auth-points li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); font-size: .91rem; }
.auth-points .icon { color: var(--accent-ink); margin-top: 3px; }

/* ── профиль и настройки ────────────────────────────────────────── */
.profile-head { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; padding: 26px 0 8px; }
.profile-info { flex: 1 1 260px; min-width: 0; }
.profile-info h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); margin: 0 0 .2em; }
.profile-bio { color: var(--ink-soft); margin: 0 0 12px; max-width: 62ch; }
.profile-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 20px 28px; margin: 0; padding: 0; }
.profile-stats li { display: flex; flex-direction: column-reverse; }
.profile-stats b { font-family: var(--serif); font-size: 1.24rem; }
.profile-stats span { color: var(--muted); font-size: .79rem; }
.dash-block { margin-bottom: 30px; }
.settings-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .settings-grid { grid-template-columns: 1.15fr 1fr; align-items: start; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-1); }
.panel .section-title { margin-top: 0; }
.avatar-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.logout-form { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ── справка и ошибки ───────────────────────────────────────────── */
.prose-doc { max-width: 62ch; }
.doc-table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .92rem; margin: 18px 0; }
.doc-table th { text-align: left; width: 44%; padding: 9px 12px 9px 0; vertical-align: top; border-bottom: 1px solid var(--line); font-weight: 400; }
.doc-table td { padding: 9px 0; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.doc-table code { white-space: nowrap; }
@media (max-width: 520px) { .doc-table, .doc-table tbody, .doc-table tr, .doc-table th, .doc-table td { display: block; width: 100%; } .doc-table tr { border-bottom: 1px solid var(--line); padding: 8px 0; } .doc-table th, .doc-table td { border: 0; padding: 2px 0; } }
.error-shell { max-width: 560px; margin: 40px auto; text-align: center; }
.error-code { font-family: var(--serif); font-size: clamp(4.4rem, 22vw, 8rem); line-height: 1; margin: 0; color: var(--accent); opacity: .26; letter-spacing: -.04em; }
.error-shell h1 { font-size: 1.7rem; margin-bottom: .3em; }
.error-shell p { color: var(--muted); margin-bottom: 24px; }
.error-shell .row-actions { justify-content: center; }

/* ── подвал ─────────────────────────────────────────────────────── */
.site-foot { border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 55%, transparent); padding: 32px 0 40px; margin-top: 20px; }
.foot-inner { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .foot-inner { grid-template-columns: 1.4fr 1fr auto; align-items: start; } }
.foot-about p { color: var(--muted); font-size: .88rem; margin: 8px 0 0; max-width: 46ch; }
.foot-nav { display: flex; flex-direction: column; gap: 8px; }
.foot-nav a { color: var(--ink-soft); text-decoration: none; font-size: .9rem; }
.foot-nav a:hover { color: var(--accent-ink); text-decoration: underline; }
.foot-note { color: var(--muted); font-size: .8rem; }

/* ── мобильные вкладки ──────────────────────────────────────────── */
.mobile-tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(14px) saturate(1.4); border-top: 1px solid var(--line);
}
@media (min-width: 900px) { .mobile-tabs { display: none; } }
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px; border-radius: 12px; color: var(--muted); text-decoration: none; font-size: .68rem; font-weight: 600; transition: color .16s, background .16s; }
.tab.is-active { color: var(--accent-ink); background: var(--accent-soft); }
.tab-write { justify-content: center; }
.tab-write-inner {
  width: 46px; height: 46px; margin-top: -22px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--accent), color-mix(in srgb, var(--gold) 55%, var(--accent)));
  color: #fff8f4; box-shadow: var(--shadow-2); border: 3px solid var(--paper); transition: transform .18s;
}
.tab-write:active .tab-write-inner { transform: scale(.93); }

/* ── лайтбокс ───────────────────────────────────────────────────── */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(10, 8, 6, .92); display: grid; place-items: center; padding: 18px; cursor: zoom-out; animation: fade .2s ease; }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 10px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); }
.lightbox-close { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.3rem; cursor: pointer; }
@keyframes fade { from { opacity: 0; } }

/* ── мелкие состояния ───────────────────────────────────────────── */
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -400% 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-head, .mobile-tabs, .site-foot, .reader-bar, .story-foot, .comments, .also, .bg-decor, .progress-bar { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  .reader { max-width: none; }
  .prose { font-size: 12pt; }
}

/* ── звёзды ────────────────────────────────────────────────── */
/* Россыпь мерцающих звёзд: позиции заданы классами, инлайн-стилей нет. */
.starfield { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.starfield i {
  position: absolute; display: block; background: var(--star);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  opacity: .25; animation: twinkle 5s ease-in-out infinite;
}
.starfield i:nth-child(3n) { background: var(--star-2); }
@keyframes twinkle {
  0%, 100% { opacity: .1;  transform: scale(.6) rotate(-8deg); }
  45%      { opacity: .85; transform: scale(1.1) rotate(8deg); }
  70%      { opacity: .3;  transform: scale(.85) rotate(3deg); }
}
.starfield i:nth-child(1) { left: 4%; top: 10%; width: 9px; height: 9px; animation-duration: 3.6s; animation-delay: -0s; }
.starfield i:nth-child(2) { left: 12%; top: 26%; width: 6px; height: 6px; animation-duration: 4.3s; animation-delay: -1.3s; }
.starfield i:nth-child(3) { left: 22%; top: 8%; width: 12px; height: 12px; animation-duration: 5s; animation-delay: -2.6s; }
.starfield i:nth-child(4) { left: 31%; top: 34%; width: 7px; height: 7px; animation-duration: 5.7s; animation-delay: -3.9s; }
.starfield i:nth-child(5) { left: 44%; top: 16%; width: 10px; height: 10px; animation-duration: 6.4s; animation-delay: -0.5s; }
.starfield i:nth-child(6) { left: 55%; top: 30%; width: 5px; height: 5px; animation-duration: 7.1s; animation-delay: -1.8s; }
.starfield i:nth-child(7) { left: 63%; top: 12%; width: 13px; height: 13px; animation-duration: 7.8s; animation-delay: -3.1s; }
.starfield i:nth-child(8) { left: 72%; top: 22%; width: 8px; height: 8px; animation-duration: 8.5s; animation-delay: -4.4s; }
.starfield i:nth-child(9) { left: 84%; top: 36%; width: 6px; height: 6px; animation-duration: 9.2s; animation-delay: -1s; }
.starfield i:nth-child(10) { left: 91%; top: 20%; width: 11px; height: 11px; animation-duration: 9.9s; animation-delay: -2.3s; }
.starfield i:nth-child(11) { left: 8%; top: 44%; width: 7px; height: 7px; animation-duration: 10.6s; animation-delay: -3.6s; }
.starfield i:nth-child(12) { left: 18%; top: 52%; width: 9px; height: 9px; animation-duration: 11.3s; animation-delay: -0.2s; }
.starfield i:nth-child(13) { left: 28%; top: 48%; width: 5px; height: 5px; animation-duration: 12s; animation-delay: -1.5s; }
.starfield i:nth-child(14) { left: 40%; top: 58%; width: 12px; height: 12px; animation-duration: 12.7s; animation-delay: -2.8s; }
.starfield i:nth-child(15) { left: 50%; top: 46%; width: 8px; height: 8px; animation-duration: 13.4s; animation-delay: -4.1s; }
.starfield i:nth-child(16) { left: 68%; top: 54%; width: 6px; height: 6px; animation-duration: 14.1s; animation-delay: -0.7s; }
.starfield i:nth-child(17) { left: 78%; top: 42%; width: 10px; height: 10px; animation-duration: 14.8s; animation-delay: -2s; }
.starfield i:nth-child(18) { left: 88%; top: 50%; width: 7px; height: 7px; animation-duration: 15.5s; animation-delay: -3.3s; }
.hero { overflow: hidden; }
.hero > :not(.starfield) { position: relative; z-index: 1; }
.empty-art { position: relative; }
.empty-art .starfield { inset: -30px; }
.empty-art .starfield i { width: 6px; height: 6px; }
.foot-note { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.foot-note .starfield { position: static; display: inline-flex; gap: 6px; }
.foot-note .starfield i { position: static; width: 7px; height: 7px; }
.scene-break { color: var(--accent); opacity: .7; letter-spacing: .42em; }
.hero-kicker .icon { color: var(--accent-ink); }

/* ── музыка ────────────────────────────────────────────────── */
.reader-track {
  margin: 0 0 26px; padding: 14px 16px 16px; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow-1);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
}
.track-caption {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
  font-size: .76rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-ink);
}
.track-caption .icon { color: var(--gold); }
audio { display: block; width: 100%; max-width: 100%; height: 40px; border-radius: 999px; }
.md-figure-audio {
  margin: 1.7em 0; padding: 13px 15px 14px; border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: var(--radius-sm); background: var(--surface-2);
}
.md-figure-audio figcaption { margin-top: 9px; font-size: .85rem; color: var(--muted); font-style: italic; }
.badge-audio { display: inline-flex; align-items: center; gap: 4px; background: var(--accent-soft); color: var(--accent-ink); }
.badge-audio .icon { width: 12px; height: 12px; }
.track-box { display: grid; gap: 9px; }
.track-preview {
  position: relative; display: grid; place-items: center; gap: 6px; min-height: 68px; padding: 9px;
  border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-2);
  color: var(--muted); font-size: .8rem;
}
.track-preview audio { margin-top: 3px; }
.track-clear {
  position: absolute; right: 8px; top: 8px; width: 26px; height: 26px; border-radius: 50%; border: 0;
  background: rgba(43, 26, 34, .72); color: #fff; display: grid; place-items: center; cursor: pointer;
  font-size: 15px; line-height: 1;
}
.track-clear:hover { background: var(--danger); }
.tool-btn-audio .icon { color: var(--accent-ink); }

@media (prefers-reduced-motion: reduce) {
  .starfield i { animation: none; opacity: .45; }
}

