:root {
  --bg: #F3F3F5; --surface: #FFFFFF; --surface-2: #EBEBEF; --text: #121214; --muted: #6C6C76; --line: #E2E2E7;
  --accent: #FF6B2C; --accent-hover: #F2581A; --on-accent: #1A0A03; --accent-soft: rgba(255, 107, 44, .12); --accent-text: #C2410C; --danger: #C9302C;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A0A0B; --surface: #151517; --surface-2: #1E1E22; --text: #EDEDF0; --muted: #8B8B95; --line: #26262B;
    --accent: #FF7A3D; --accent-hover: #FF8F5C; --on-accent: #160A03; --accent-soft: rgba(255, 122, 61, .14); --accent-text: #FF8F5C; --danger: #FF6369;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A0A0B; --surface: #151517; --surface-2: #1E1E22; --text: #EDEDF0; --muted: #8B8B95; --line: #26262B;
  --accent: #FF7A3D; --accent-hover: #FF8F5C; --on-accent: #160A03; --accent-soft: rgba(255, 122, 61, .14); --accent-text: #FF8F5C; --danger: #FF6369;
  color-scheme: dark;
}
html { scroll-padding-top: env(safe-area-inset-top, 0px); -webkit-text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: inherit; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 400 15px/1.5 var(--font); }
/* Подвал всегда внизу экрана, даже если на странице мало содержимого.
   svh, а не dvh: высота не прыгает, когда на телефоне при прокрутке прячется адресная строка */
body { display: flex; flex-direction: column; min-height: calc(100vh - env(safe-area-inset-top, 0px)); min-height: calc(100svh - env(safe-area-inset-top, 0px)); }
body > main { flex: 1 0 auto; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* Шапка */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-inner { max-width: 1240px; height: 60px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 6px; }
.logo { margin-right: 14px; font-size: 21px; font-weight: 800; letter-spacing: -.04em; }
.logo b { color: var(--accent); }
.tab { padding: 7px 12px; border-radius: 6px; color: var(--muted); font-weight: 600; }
.tab:hover { color: var(--text); background: var(--surface-2); }
.tab[aria-current] { color: var(--text); }
.spacer { flex: 1; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; position: relative; overflow: hidden; }
.icon-btn:hover { color: var(--text); background: var(--surface-2); }
.theme-btn .i { position: absolute; transition: transform .45s ease, opacity .3s ease; }
.theme-btn .moon { opacity: 0; transform: rotate(-90deg) scale(.6); }
:root[data-theme="dark"] .theme-btn .sun { opacity: 0; transform: rotate(90deg) scale(.6); }
:root[data-theme="dark"] .theme-btn .moon { opacity: 1; transform: none; }
.me-unused { width: 32px; height: 32px; margin-left: 4px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 700; font-size: 13px; }
@media (max-width: 600px) { .logo { margin-right: 4px; font-size: 19px; } .btn-new span { display: none; } .btn-new { width: 38px; padding: 0; } .me { display: none; } }

/* Кнопки, поля, переключатель */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s; }
.btn:hover { background: var(--surface-2); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost-danger { border-color: transparent; background: transparent; color: var(--danger); }
.btn-ghost-danger:hover { background: color-mix(in srgb, var(--danger) 12%, transparent); }
.btn-lg { height: 46px; padding: 0 20px; font-size: 15px; }
.field, .form input:not([type=checkbox]):not([type=radio]) { width: 100%; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); font: 400 15px var(--font); }
.field:focus, .form input:focus { outline: none; border-color: var(--accent); }
.label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; }
.switch b { display: block; font-weight: 600; }
.switch small { display: block; color: var(--muted); font-size: 13px; }
.switch input { position: absolute; opacity: 0; }
.switch .track { position: relative; width: 42px; height: 24px; flex: none; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); transition: background-color .2s, border-color .2s; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: transform .2s; }
.switch input:checked + .track { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }
.errorlist { margin: 6px 0 0; padding-left: 18px; color: var(--danger); font-size: 14px; }

/* Кнопка загрузки в шапке */
.add-btn { margin-left: 6px; background: var(--accent); color: var(--on-accent); }
.add-btn:hover { background: var(--accent-hover); color: var(--on-accent); }
.add-btn .i { width: 20px; height: 20px; stroke-width: 2.6; transition: transform .35s cubic-bezier(.3, .7, .4, 1.6); }
.add-btn:active .i, .add-btn[aria-expanded="true"] .i { transform: rotate(135deg); }

/* Окно загрузки: снизу на телефоне, по центру на компьютере */
.sheet { width: min(560px, calc(100% - 32px)); max-width: none; max-height: calc(100% - 32px); margin: auto; padding: 0; border: 0; background: transparent; color: var(--text); overflow: visible; }
.sheet::backdrop { background: rgba(0, 0, 0, .55); animation: fade-in .25s ease; }
.sheet-inner { max-height: calc(100vh - 32px); overflow-y: auto; padding: 16px 18px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); animation: sheet-in .35s cubic-bezier(.2, .9, .3, 1.1); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sheet-head h2 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.sheet.closing .sheet-inner { animation: sheet-out .22s ease-in forwards; }
.sheet.closing::backdrop { animation: fade-out .22s ease-in forwards; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes sheet-out { to { opacity: 0; transform: translateY(12px) scale(.97); } }
@media (max-width: 600px) {
  .sheet { width: 100%; max-height: 100%; margin: auto 0 0; }
  .sheet-inner { max-height: 92vh; border-radius: 18px 18px 0 0; border-bottom: 0; padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); animation-name: sheet-up; }
  .sheet.closing .sheet-inner { animation-name: sheet-down; }
  @keyframes sheet-up { from { transform: translateY(100%); } }
  @keyframes sheet-down { to { transform: translateY(100%); } }
}
body:has(.sheet[open]) { overflow: hidden; }
.uploader { display: grid; gap: 12px; }
.uploader .drop { min-height: 220px; }
.uploader:not(.picked) .after-pick { display: none; }
.after-pick { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); animation: reveal .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes reveal { from { opacity: 0; transform: translateY(-6px); } }
.uploader.picked .drop { min-height: 240px; }
.drop-text .big { display: block; }
.drop-text strong { display: block; font-size: 17px; }
.drop-text span { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }
.drop-text u { color: var(--accent-text); text-decoration: none; font-weight: 600; }
.drop-text .paste { display: inline; margin: 0; }
@media (hover: none) { .drop-text .paste { display: none; } }
.tabs { display: flex; gap: 4px; margin: 0 0 14px; border-bottom: 1px solid var(--line); }
.tabs .tab { border-radius: 6px 6px 0 0; padding: 9px 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; }
.tabs .tab[aria-current] { border-bottom-color: var(--accent); }
.tabs .tab span { color: var(--muted); font-weight: 500; }
.back { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 14px -4px; color: var(--muted); font-size: 14px; font-weight: 600; transition: color .15s; }
.back:hover { color: var(--text); }
.post-solo { max-width: 860px; margin: 0 auto; }
@media (min-width: 980px) { .post-solo { grid-template-columns: 1fr; } }
.tabs .tab-mod b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 2px; border-radius: 10px; background: var(--danger); color: #fff; font-size: 12px; }
.badge-reports { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 6px; border-radius: 6px; background: var(--danger); color: #fff; font-size: 12px; font-weight: 700; }
.badge-reports .i { width: 13px; height: 13px; }
.badge-reports.is-hidden { background: rgba(0, 0, 0, .7); }
.box-mod { border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.mod-stat { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.mod-stat b { color: var(--text); }
.auth { max-width: 380px; margin: 9vh auto 48px; }
.auth h1 { margin: 0 0 6px; font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.auth > p { margin: 0 0 22px; color: var(--muted); }
.form-error { margin: 0 0 14px !important; padding: 10px 12px; border-radius: 8px; background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger) !important; font-size: 14px; }
.manage { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }

/* Заголовок ленты */
.intro { padding: 36px 0 24px; }
.intro h1 { margin: 0; font-size: clamp(32px, 6vw, 52px); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; }
.intro p { margin: 12px 0 0; color: var(--muted); max-width: 52ch; }
.section-title { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; font-size: 15px; font-weight: 700; }
.section-title span { color: var(--muted); font-weight: 500; }

/* Карточки как в Imgur */
.grid { columns: 2; column-gap: 12px; }
@media (min-width: 700px) { .grid { columns: 3; } }
@media (min-width: 980px) { .grid { columns: 4; column-gap: 14px; } }
@media (min-width: 1220px) { .grid { columns: 5; } }
.card { display: block; break-inside: avoid; margin: 0 0 12px; border-radius: 8px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: border-color .15s; }
.card:hover { border-color: var(--muted); }
.card-media { position: relative; display: block; }
.card img, .card .shot { display: block; width: 100%; height: auto; background: var(--surface-2); }
.badge-video { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px 3px 5px; border-radius: 6px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.badge-video .i { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.processing { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 16px; background: var(--surface-2); color: var(--muted); font-size: 13px; text-align: center; }
.big-processing { aspect-ratio: 16 / 9; gap: 12px; font-size: 15px; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.card-body { padding: 10px 11px 11px; }
.card-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 8px; font-size: 14px; font-weight: 600; line-height: 1.35; }
.card-meta { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.stat { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stat .i { width: 13px; height: 13px; opacity: .8; }
.card-meta { flex-wrap: wrap; gap: 4px 10px; }
.byline .stat .i { width: 15px; height: 15px; }
.card-meta .ava { width: 18px; height: 18px; font-size: 10px; }
.card-meta .lock { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--accent-text); font-weight: 600; }
.card-meta .lock .i { width: 13px; height: 13px; }
.ava { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-weight: 700; font-size: 12px; }
.empty { padding: 60px 16px; text-align: center; border: 1px dashed var(--line); border-radius: 10px; }
.empty h2 { margin: 0 0 6px; font-size: 18px; }
.empty p { margin: 0 0 18px; color: var(--muted); }
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 26px 0; color: var(--muted); }

/* Пост */
.post { display: grid; gap: 20px; padding: 24px 0 40px; }
@media (min-width: 980px) { .post { grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; } }
.post-head h1 { margin: 0 0 10px; font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; }
.byline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 14px; }
.byline strong { color: var(--text); font-weight: 600; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-text); font-size: 12px; font-weight: 700; }
.pill .i { width: 13px; height: 13px; }
.photo { margin: 16px 0 0; border-radius: 10px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.photo video { display: block; width: 100%; height: auto; max-height: 82vh; background: #000; }
.photo img, .photo .shot { display: block; width: 100%; height: auto; max-height: 82vh; object-fit: contain; background: var(--surface-2); }
.share { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.side { display: grid; gap: 14px; }
.manage p { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.share-inline { display: flex; gap: 8px; }
.share .btn, .share-inline .btn { flex: none; }
.report { margin-top: 12px; color: var(--muted); font-size: 13px; }
.pill-danger { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.hint { margin: 0; color: var(--muted); font-size: 13px; }
@media (min-width: 980px) { .side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 76px); } }
.box { padding: 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.box h2 { margin: 0 0 14px; font-size: 15px; font-weight: 700; }
.stack { display: grid; gap: 14px; }
.box-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; }

/* Загрузка */
.upload { max-width: 640px; margin: 0 auto; padding: 32px 0 48px; display: grid; gap: 16px; }
.upload h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.drop { position: relative; display: grid; place-items: center; min-height: 300px; padding: 24px; text-align: center; border: 2px dashed var(--line); border-radius: 12px; background: var(--surface); transition: border-color .15s, background-color .15s; }
.drop.is-over { border-color: var(--accent); background: var(--accent-soft); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2; }
.drop .big { width: 52px; height: 52px; margin: 0 auto 12px; color: var(--muted); stroke-width: 1.5; }
.drop strong { display: block; font-size: 18px; }
.drop p { margin: 6px 0 16px; color: var(--muted); font-size: 14px; }
.drop kbd { padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; font: 600 12px var(--font); }
.drop .preview { pointer-events: none; position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain; background: var(--surface); border-radius: 10px; }
.drop .change { position: absolute; z-index: 3; right: 10px; bottom: 10px; pointer-events: none; display: none; }
.drop.has-file .change { display: inline-flex; }

/* Вход */

/* Подвал и уведомление */
.foot { position: sticky; bottom: 0; z-index: 20; margin-top: 16px; background: var(--bg); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; padding-bottom: env(safe-area-inset-bottom, 0px); }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; }
.foot form { margin: 0; }
.made a { color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; transition: color .15s; }
.made a:hover { color: var(--accent-text); }
.linkish { border: 0; padding: 0; background: none; color: inherit; cursor: pointer; }
.linkish:hover { color: var(--text); }
.toast { position: fixed; left: 50%; bottom: calc(60px + env(safe-area-inset-bottom, 0px)); z-index: 50; translate: -50% 0; padding: 11px 16px; border-radius: 8px; background: var(--text); color: var(--bg); font-weight: 600; font-size: 14px; animation: toast 3.6s ease forwards; }
@keyframes toast { 0% { opacity: 0; transform: translateY(10px); } 8%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; visibility: hidden; } }

/* Анимации нажатия: у каждой кнопки сжатие с пружинкой и волна от пальца */
.btn, .icon-btn, .tab { position: relative; overflow: hidden; -webkit-tap-highlight-color: transparent; transition: background-color .15s, border-color .15s, color .15s, transform .25s cubic-bezier(.3, .7, .4, 1.6); }
.btn:active, .icon-btn:active, .tab:active { transform: scale(.94); transition-duration: .08s; }
.linkish { transition: transform .25s cubic-bezier(.3, .7, .4, 1.6), color .15s; -webkit-tap-highlight-color: transparent; }
.linkish:active { transform: scale(.92); transition-duration: .08s; }
.card { transition: border-color .15s, transform .25s cubic-bezier(.3, .7, .4, 1.4); -webkit-tap-highlight-color: transparent; }
.card:active { transform: scale(.975); transition-duration: .1s; }
.ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .22; pointer-events: none; transform: scale(0); animation: ripple .6s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
.switch .track::after { transition: transform .25s cubic-bezier(.3, .7, .4, 1.4), width .15s; }
.switch:active .track::after { width: 23px; }
.switch:active input:checked + .track::after { transform: translateX(13px); }
.btn .i { transition: transform .3s cubic-bezier(.3, .7, .4, 1.6); }
.btn-new:active .i { transform: rotate(90deg); }
.btn.is-done { color: var(--accent-text); border-color: var(--accent); }
.btn.is-done .i { animation: pop .45s cubic-bezier(.3, .7, .4, 1.8); }
@keyframes pop { 0% { transform: scale(.3); } 100% { transform: scale(1); } }
.btn.is-loading { pointer-events: none; opacity: .9; background-image: linear-gradient(90deg, rgba(0, 0, 0, .14) var(--progress, 0%), transparent var(--progress, 0%)); }
.client-error { margin: 0; padding: 10px 12px; border-radius: 8px; background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); font-size: 14px; }
.btn.is-loading::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }

/* Логотип и ссылка Juspear чуть приподнимаются при наведении — видно, что они кликабельные */
.logo, .made a { display: inline-block; transition: transform .2s ease, color .15s; }
@media (hover: hover) {
  .logo:hover, .made a:hover { transform: translateY(-2px); }
}

/* Фото крупно */
.zoomable { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
.zoom-hint { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: rgba(0, 0, 0, .55); color: #fff; opacity: .85; transition: opacity .15s, transform .2s; }
.zoom-hint .i { width: 17px; height: 17px; }
@media (hover: hover) { .zoomable:hover .zoom-hint { opacity: 1; transform: scale(1.08); } }
.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden; }
.lightbox::backdrop { background: rgba(0, 0, 0, .96); animation: fade-in .2s ease; }
.lightbox.closing::backdrop { animation: fade-out .2s ease forwards; }
.lb-stage { width: 100%; height: 100%; display: grid; place-items: center; padding: calc(12px + env(safe-area-inset-top, 0px)) 12px calc(12px + env(safe-area-inset-bottom, 0px)); cursor: zoom-out; touch-action: none; }
.lb-media { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 6px; animation: lb-in .25s cubic-bezier(.2, .8, .2, 1); transition: transform .2s ease, opacity .2s ease; }
.lightbox.closing .lb-media { opacity: 0; transform: scale(.96); }
@keyframes lb-in { from { opacity: 0; transform: scale(.94); } }
.lb-close { position: fixed; z-index: 2; top: calc(10px + env(safe-area-inset-top, 0px)); right: 10px; background: rgba(255, 255, 255, .14); color: #fff; }
.lb-close:hover { background: rgba(255, 255, 255, .24); color: #fff; }

/* Плавная смена темы */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .4s; animation-timing-function: ease; }
.theme-fade, .theme-fade * { transition: background-color .4s ease, color .4s ease, border-color .4s ease !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
