/* ==========================================================================
   Контент-завод — общий материал Liquid Glass (лендинг, кабинет, документы)
   Та же система, что у панели Контент-завода: ночь, золото и фиолет, стекло с бликом.
   ========================================================================== */

@font-face {
  font-family: "Playfair Display";
  src: url("/static/fonts/playfair.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #07060b;
  --text: rgba(255, 255, 255, .95);
  --text-2: rgba(255, 255, 255, .70);
  --text-3: rgba(255, 255, 255, .50);
  --text-4: rgba(255, 255, 255, .32);
  --hair: rgba(255, 255, 255, .13);
  --hair-2: rgba(255, 255, 255, .07);
  --glass-fill: rgba(255, 255, 255, .065);
  --field-fill: rgba(8, 8, 14, .38);
  --accent: #d8b46a;
  --accent-2: #9b7bff;
  --on-accent: #140f06;
  --gold-hi: #fff1cf;
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #ff5a6e;
  --glow: color-mix(in srgb, var(--accent) 55%, transparent);
  --glow-soft: color-mix(in srgb, var(--accent) 22%, transparent);

  --r-xl: 34px;
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 13px;

  --ease: cubic-bezier(.22, .9, .25, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-brand: "Playfair Display", "Didot", "Bodoni 72", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
::selection { background: color-mix(in srgb, var(--accent) 45%, transparent); }
svg { display: block; }
img, video { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 80%, white); outline-offset: 3px; }
.rub { font-family: var(--font); font-weight: 600; }

/* ── живой фон ────────────────────────────────────────────────────────────── */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background:
  radial-gradient(120% 90% at 50% -10%, rgba(42, 31, 85, .45), transparent 60%),
  radial-gradient(90% 80% at 110% 110%, rgba(90, 42, 74, .5), transparent 60%),
  var(--bg); }
.orb { position: absolute; border-radius: 50%; will-change: transform; mix-blend-mode: screen; opacity: .55; }
.orb.o1 { width: 62vmax; height: 62vmax; left: -20vmax; top: -24vmax;
  background: radial-gradient(closest-side, rgba(107, 75, 214, .78), transparent 72%); animation: drift-a 30s ease-in-out infinite alternate; }
.orb.o2 { width: 50vmax; height: 50vmax; right: -18vmax; top: 4vmax;
  background: radial-gradient(closest-side, rgba(216, 180, 106, .62), transparent 72%); animation: drift-b 36s ease-in-out infinite alternate; }
.orb.o3 { width: 56vmax; height: 56vmax; left: 10vmax; bottom: -36vmax;
  background: radial-gradient(closest-side, rgba(42, 31, 85, .9), transparent 72%); animation: drift-c 42s ease-in-out infinite alternate; opacity: .75; }
@keyframes drift-a { to { transform: translate3d(12vmax, 8vmax, 0) scale(1.12); } }
@keyframes drift-b { to { transform: translate3d(-10vmax, 14vmax, 0) scale(.92); } }
@keyframes drift-c { to { transform: translate3d(8vmax, -10vmax, 0) scale(1.08); } }
.grain { position: absolute; inset: -50%; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.vignette { position: absolute; inset: 0; background: radial-gradient(130% 100% at 50% 40%, transparent 55%, rgba(0,0,0,.55)); }
@media (prefers-reduced-motion: reduce) { .orb { animation: none; } }
.wave, .wave-ring { position: fixed; left: 0; top: 0; width: 40vmax; height: 40vmax; margin: -20vmax 0 0 -20vmax;
  border-radius: 50%; pointer-events: none; will-change: transform, opacity; z-index: -1; }
.wave { background: radial-gradient(circle, color-mix(in srgb, var(--accent) 60%, transparent) 0, color-mix(in srgb, var(--accent-2) 30%, transparent) 35%, transparent 62%); mix-blend-mode: screen; }
.wave-ring { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 70%, transparent), 0 0 60px 10px color-mix(in srgb, var(--accent) 45%, transparent); }

/* ── стекло ───────────────────────────────────────────────────────────────── */
.glass {
  position: relative;
  background:
    linear-gradient(160deg, rgba(255,255,255,.13) 0%, rgba(255,255,255,.045) 38%, rgba(255,255,255,.03) 62%, rgba(255,255,255,.07) 100%),
    var(--glass-fill);
  -webkit-backdrop-filter: blur(26px) saturate(175%);
  backdrop-filter: blur(26px) saturate(175%);
  border-radius: var(--r-lg);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.30),
    inset 0 -1px 0 rgba(255,255,255,.05),
    inset 0 0 0 1px rgba(255,255,255,.06),
    0 24px 60px -24px rgba(0,0,0,.7),
    0 2px 10px rgba(0,0,0,.18);
  isolation: isolate;
}
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: linear-gradient(135deg, rgba(255,255,255,.62), rgba(255,255,255,.10) 26%, rgba(255,255,255,0) 48%, rgba(255,255,255,.06) 72%, rgba(255,255,255,.34));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, -40%), rgba(255,255,255,.10), transparent 42%);
  opacity: 0; transition: opacity .45s var(--ease);
}
.glass.lit::after { opacity: 1; }
.glass > * { position: relative; z-index: 3; }
.glass--strong { background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.06) 45%, rgba(255,255,255,.09)), rgba(22,20,32,.46); }
.glass--dark { background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02) 50%), rgba(6,6,12,.58); }
body.rim-flash .glass::before { animation: rim-flash .9s var(--ease); }
@keyframes rim-flash { 30% { filter: drop-shadow(0 0 6px var(--glow)); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 90%, white), rgba(255,255,255,.12) 30%, transparent 50%, rgba(255,255,255,.1) 72%, color-mix(in srgb, var(--accent-2) 80%, white)); } }

/* ── марка ────────────────────────────────────────────────────────────────── */
.wordmark {
  font: 700 22px/1 var(--font-brand); letter-spacing: .02em; text-decoration: none; white-space: nowrap;
  background: linear-gradient(100deg, #fff6df 0%, #e7c98b 30%, #b8904a 55%, #fff1cf 75%, #d8b46a 100%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gold-sheen 9s ease-in-out infinite;
}
@keyframes gold-sheen { 50% { background-position: 100% 0; } }
@media (prefers-reduced-motion: reduce) { .wordmark { animation: none; } }

/* ── верхняя панель ───────────────────────────────────────────────────────── */
.topbar {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 40;
  width: min(1200px, calc(100% - 28px)); height: 62px; padding: 0 8px 0 22px;
  display: flex; align-items: center; gap: 14px; border-radius: 999px;
}
.topbar .grow { flex: 1; min-width: 0; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--text-2); font-size: 14.5px; font-weight: 560; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: rgba(255,255,255,.07); }

/* ── кнопки ───────────────────────────────────────────────────────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 20px;
  border: 0; border-radius: 999px; font-weight: 650; font-size: 15px; white-space: nowrap; color: var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.06));
  -webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.32), inset 0 0 0 1px var(--hair), 0 8px 20px -10px rgba(0,0,0,.6);
  transition: transform .35s var(--spring), box-shadow .3s var(--ease), background .3s, opacity .3s; overflow: hidden; isolation: isolate;
  text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.08)); }
.btn:active { transform: scale(.955); }
.btn:disabled { opacity: .42; cursor: not-allowed; transform: none; }
.btn--sm { height: 38px; padding: 0 15px; font-size: 14px; }
.btn--sm svg { width: 16px; height: 16px; }
.btn--primary {
  height: 56px; padding: 0 28px; font-size: 16.5px; font-weight: 720; color: var(--on-accent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 78%, white) 0%, var(--accent) 48%, color-mix(in srgb, var(--accent) 80%, var(--accent-2)) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65), inset 0 -2px 6px rgba(0,0,0,.18), 0 14px 34px -12px var(--glow), 0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent);
}
.btn--primary:hover { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 65%, white) 0%, var(--accent) 52%, color-mix(in srgb, var(--accent) 72%, var(--accent-2)) 100%); }
.btn--primary::after { content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); width: 40%; }
.btn--primary:not(:disabled):hover::after { animation: gloss 1.1s var(--ease); }
@keyframes gloss { to { transform: translateX(360%) skewX(-20deg); } }
.btn--primary.btn--sm { height: 40px; font-size: 14.5px; padding: 0 18px; }
.btn--accent { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 30%, rgba(255,255,255,.08)), color-mix(in srgb, var(--accent) 16%, rgba(255,255,255,.03)));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent), 0 10px 26px -14px var(--glow); }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--hair-2); -webkit-backdrop-filter: none; backdrop-filter: none; }
.btn--ghost:hover { background: rgba(255,255,255,.06); }
.btn--danger { color: #ffd2d8; box-shadow: inset 0 0 0 1px rgba(255,90,110,.4); background: rgba(255,90,110,.1); }
.btn--wide { width: 100%; }
.btn .spin { display: none; }
.btn[aria-busy="true"] { pointer-events: none; }
.btn[aria-busy="true"] .spin { display: inline-block; }
.btn[aria-busy="true"] .ico { display: none; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; opacity: .9; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.link { background: none; border: 0; padding: 0; color: color-mix(in srgb, var(--accent) 75%, white); font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); text-underline-offset: 3px; }
.link:hover { text-decoration-color: currentColor; }

/* ── поля ─────────────────────────────────────────────────────────────────── */
.label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 4px 8px; font-size: 14px; font-weight: 620; color: var(--text-2); }
.label small { font-weight: 500; color: var(--text-4); font-variant-numeric: tabular-nums; }
.field {
  width: 100%; border: 0; outline: none; border-radius: var(--r-md); padding: 14px 16px; resize: vertical;
  background: var(--field-fill); color: var(--text); font-size: 16px; line-height: 1.55;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.35), inset 0 0 0 1px var(--hair-2), 0 1px 0 rgba(255,255,255,.06);
  transition: box-shadow .3s var(--ease), background .3s;
}
.field::placeholder { color: var(--text-4); }
.field:focus { background: rgba(8,8,14,.55); box-shadow: inset 0 1px 2px rgba(0,0,0,.35), inset 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent), 0 0 0 4px var(--glow-soft); }
textarea.field { min-height: 120px; }
.field.big { font-size: 22px; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.hint { margin: 8px 4px 0; font-size: 13.5px; color: var(--text-3); }
.err { margin: 10px 4px 0; font-size: 14px; color: #ffb3bd; }

/* флажок */
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); cursor: pointer;
  background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px var(--hair-2); font-size: 14.5px; color: var(--text-2); line-height: 1.45; }
.check input { appearance: none; -webkit-appearance: none; margin: 1px 0 0; width: 22px; height: 22px; flex: none; border-radius: 7px; cursor: pointer;
  background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px var(--hair); display: grid; place-items: center; transition: background .2s; }
.check input:checked { background: var(--accent); box-shadow: 0 0 14px -3px var(--glow); }
.check input:checked::after { content: ""; width: 6px; height: 11px; border: solid var(--on-accent); border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.check a { color: color-mix(in srgb, var(--accent) 75%, white); }

/* переключатель */
.toggle { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-md); cursor: pointer; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--hair-2); }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.switch { position: relative; width: 50px; height: 30px; flex: none; border-radius: 999px; background: rgba(255,255,255,.12); box-shadow: inset 0 1px 3px rgba(0,0,0,.4), inset 0 0 0 1px var(--hair-2); transition: background .35s var(--ease); }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(180deg, #fff, #dcdce6); box-shadow: 0 3px 8px rgba(0,0,0,.35); transition: transform .45s var(--spring); }
.toggle input:checked + .switch { background: var(--accent); }
.toggle input:checked + .switch::after { transform: translateX(20px); }
.toggle input:focus-visible + .switch { outline: 2px solid color-mix(in srgb, var(--accent) 80%, white); outline-offset: 3px; }
.toggle-text { flex: 1; min-width: 0; }
.toggle-text b { display: block; font-weight: 650; }
.toggle-text span { color: var(--text-3); font-size: 13.5px; }

/* ── жидкий переключатель (линза) ─────────────────────────────────────────── */
.lseg { position: relative; display: flex; padding: 5px; border-radius: 999px; user-select: none; -webkit-user-select: none; touch-action: pan-y;
  background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--hair-2); }
.lseg-item {
  position: relative; z-index: 1; flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--text-3);
  font-weight: 620; font-size: 14.5px; white-space: nowrap; transition: color .35s var(--ease); -webkit-tap-highlight-color: transparent; outline: none;
}
.lseg-item:hover { color: var(--text-2); }
.lseg-item:focus-visible { box-shadow: 0 0 0 2px var(--glow); }
.lseg-item svg { width: 18px; height: 18px; flex: none; }
.lseg-lens {
  position: absolute; z-index: 2; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; overflow: hidden; pointer-events: none;
  transform-origin: 50% 50%; will-change: transform, width;
  background:
    radial-gradient(120% 130% at 50% 118%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.17), rgba(255,255,255,.035) 55%, rgba(255,255,255,.08));
  -webkit-backdrop-filter: blur(6px) saturate(210%); backdrop-filter: blur(6px) saturate(210%);
  box-shadow: inset 0 1px .5px rgba(255,255,255,.9), inset 0 -1px 1px rgba(255,255,255,.28), inset 0 0 0 1px rgba(255,255,255,.13),
    inset 0 -12px 20px -12px color-mix(in srgb, var(--accent) 75%, transparent), 0 12px 30px -12px var(--glow), 0 2px 8px rgba(0,0,0,.3);
}
.lseg-lens::after { content: ""; position: absolute; left: 1px; right: 1px; top: 1px; height: 60%; border-radius: inherit;
  background: radial-gradient(75% 95% at 50% 0%, rgba(255,255,255,.30), rgba(255,255,255,.06) 55%, rgba(255,255,255,0) 75%); }
.lseg-ghosts { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.lseg-ghost { position: absolute; display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff;
  font-weight: 680; font-size: 14.5px; white-space: nowrap; text-shadow: 0 1px 10px rgba(0,0,0,.25); }
.lseg-ghost svg { width: 18px; height: 18px; color: var(--accent); filter: drop-shadow(0 0 8px var(--glow)); }
.lseg--sm .lseg-item, .lseg--sm .lseg-ghost { height: 36px; font-size: 13.5px; padding: 0 13px; }
.lseg--sm { padding: 4px; }
.lseg--sm .lseg-lens { top: 4px; bottom: 4px; }

/* ── шторка и всплывашки ──────────────────────────────────────────────────── */
.sheet-wrap { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(3,3,8,.5);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: fade-in .3s var(--ease-out); }
.sheet { width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 24px; border-radius: var(--r-xl);
  animation: sheet-in .5s var(--ease-out); overscroll-behavior: contain; }
.sheet--wide { width: min(860px, 100%); }
/* пример формата в шторке: ролик слева, описание справа; на телефоне — друг под другом */
.pv { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 24px; align-items: start; }
.pv-media { position: relative; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #000;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 24px 60px -30px rgba(0,0,0,.9); }
.pv-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.pv-body { display: grid; gap: 10px; align-content: start; min-width: 0; }
.pv-body .sheet-head { margin-bottom: 4px; }
.pv-about { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.55; }
.pv-best { margin: 0; color: var(--text-3); font-size: 14px; line-height: 1.5; }
.pv-pick { margin-top: 10px; justify-self: start; }
@media (max-width: 640px) {
  .pv { grid-template-columns: 1fr; gap: 16px; }
  .pv-media { width: min(100%, calc(56dvh * 9 / 16)); justify-self: center; }
  .pv-body .sheet-head { order: -1; }
  .pv-pick { justify-self: stretch; }
}
.sheet h3 { margin: 0 0 4px; font-size: 21px; font-weight: 720; letter-spacing: -.01em; }
.sheet-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.sheet-head .grow { flex: 1; min-width: 0; }
.sheet-head p { margin: 2px 0 0; color: var(--text-3); font-size: 14.5px; }
.icon-btn { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(255,255,255,.07);
  box-shadow: inset 0 0 0 1px var(--hair); color: var(--text-2); }
.icon-btn:hover { color: var(--text); background: rgba(255,255,255,.12); }
.icon-btn svg { width: 18px; height: 18px; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px) scale(.98); filter: blur(6px); } }
@media (prefers-reduced-motion: reduce) { .sheet, .sheet-wrap { animation: none; } }

.toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 90; display: grid; gap: 10px; width: min(440px, calc(100% - 28px)); pointer-events: none; }
.toast { padding: 14px 18px; border-radius: 18px; font-size: 14.5px; pointer-events: auto; display: flex; gap: 10px; align-items: flex-start;
  animation: toast-in .45s var(--ease-out); }
.toast.ok { box-shadow: inset 0 0 0 1px rgba(52,211,153,.4), 0 18px 40px -18px rgba(0,0,0,.7); }
.toast.bad { box-shadow: inset 0 0 0 1px rgba(255,90,110,.45), 0 18px 40px -18px rgba(0,0,0,.7); }
.toast.out { animation: toast-out .35s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px) scale(.98); } }

/* ── мелочи ───────────────────────────────────────────────────────────────── */
.muted { color: var(--text-3); }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 650;
  background: color-mix(in srgb, var(--accent) 16%, transparent); color: color-mix(in srgb, var(--accent) 70%, white);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); white-space: nowrap; }
.tag--plain { background: rgba(255,255,255,.06); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--hair-2); }
.tag--ok { background: rgba(52,211,153,.12); color: #8ef0c6; box-shadow: inset 0 0 0 1px rgba(52,211,153,.35); }
.tag--bad { background: rgba(255,90,110,.12); color: #ffb3bd; box-shadow: inset 0 0 0 1px rgba(255,90,110,.35); }
.num { font-variant-numeric: tabular-nums; }

/* уведомление о cookie: только технические, без настроек и согласий */
.cookie-note { position: fixed; left: 16px; bottom: 16px; z-index: 70; max-width: 380px; padding: 14px 16px; border-radius: 18px;
  display: flex; gap: 12px; align-items: center; font-size: 13.5px; color: var(--text-2); line-height: 1.45; animation: toast-in .45s var(--ease-out); }
.cookie-note a { color: color-mix(in srgb, var(--accent) 75%, white); }
.cookie-note .btn { flex: none; }
@media (max-width: 760px) {
  .cookie-note { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: none; }
  .tabbar:not([hidden]) ~ .cookie-note { bottom: calc(92px + env(safe-area-inset-bottom)); }   /* над нижними вкладками */
}
