:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #fbfbfd;
  --surface-2: #f5f5f7;
  --border: #d2d2d7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --accent: #0071e3;
  --accent-strong: #0077ed;
  --accent-wash: #e8f2fd;
  --danger: #d70015;
  --success: #1a7d3a;
  --warning: #b36b00;
  --line: var(--border);
  --dark-bg: #000000;
  --dark-surface: #1d1d1f;
  --dark-text: #f5f5f7;
  --dark-muted: #86868b;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", system-ui, Arial, sans-serif;
  --radius: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #000000;
    --surface: #1d1d1f;
    --surface-2: #161617;
    --border: #38383c;
    --text: #f5f5f7;
    --muted: #86868b;
    --accent: #2997ff;
    --accent-strong: #0a84ff;
    --accent-wash: #0f2942;
    --danger: #ff453a;
    --success: #30d158;
    --warning: #ffd60a;
    --line: var(--border);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000; --surface: #1d1d1f; --surface-2: #161617; --border: #38383c;
  --text: #f5f5f7; --muted: #86868b; --accent: #2997ff; --accent-strong: #0a84ff;
  --accent-wash: #0f2942; --danger: #ff453a; --success: #30d158; --warning: #ffd60a;
  --line: var(--border);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff; --surface: #fbfbfd; --surface-2: #f5f5f7; --border: #d2d2d7;
  --text: #1d1d1f; --muted: #6e6e73; --accent: #0071e3; --accent-strong: #0077ed;
  --accent-wash: #e8f2fd; --danger: #d70015; --success: #1a7d3a; --warning: #b36b00;
  --line: var(--border);
}

* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.47059;
  -webkit-font-smoothing: antialiased;
}

.page-overflow-guard { overflow-x: hidden; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 22px; }
.wrap-wide { max-width: 1200px; margin: 0 auto; padding: 0 22px; }

/* ---------- nav ---------- */
header.site {
  position: relative;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top, 0px);
}
header.site .bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(22px, env(safe-area-inset-right, 0px)) 0 max(22px, env(safe-area-inset-left, 0px));
  max-width: 1200px; margin: 0 auto; height: 48px;
}
.brand {
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  color: var(--text); text-decoration: none; letter-spacing: -0.01em;
}
.brand span { color: var(--accent); }
nav.main { display: flex; gap: 10px; align-items: center; }
nav.main a { color: var(--text); text-decoration: none; font-size: 12px; font-weight: 400; opacity: 0.8; }
nav.main a:hover { opacity: 1; color: var(--text); }
.header-login,
.header-logout button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 34px; padding: 0 14px; border-radius: 980px;
  background: var(--accent-wash); color: var(--accent-strong) !important;
  font-size: 13px; font-weight: 600; opacity: 1 !important;
  border: 0; cursor: pointer; font-family: inherit; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.header-logout { display: inline-flex; margin: 0; }

.music-fav-heart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  text-decoration: none;
  opacity: 1 !important;
  color: inherit;
  background: color-mix(in srgb, #ff2d55 14%, var(--surface, #fff));
  box-shadow:
    0 1px 0 color-mix(in srgb, #fff 55%, transparent) inset,
    0 6px 16px color-mix(in srgb, #ff2d55 28%, transparent);
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.music-fav-heart svg {
  display: block;
  filter: drop-shadow(0 1px 1px rgba(176, 20, 50, .25));
}
.music-fav-heart:hover {
  transform: scale(1.06);
  background: color-mix(in srgb, #ff2d55 18%, var(--surface, #fff));
}
.music-fav-heart:active {
  transform: scale(.94);
}
@media (prefers-color-scheme: dark) {
  .music-fav-heart {
    background: color-mix(in srgb, #ff2d55 22%, #1d1d1f);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, .08) inset,
      0 8px 18px rgba(255, 45, 85, .28);
  }
}

/* ---------- Insta-style bottom tabs ---------- */
.insta-tabs {
  --insta-tabs-count: 3;
  position: fixed;
  left: 64px;
  right: 64px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  /* Above sheet (50) and backdrop (45) so Приложения/Ещё stay tappable while a sheet is open */
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(var(--insta-tabs-count), 1fr);
  height: 56px;
  padding: 5px;
  background: rgba(249, 249, 249, .76);
  border: 1px solid rgba(255, 255, 255, .84);
  border-radius: 28px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, .16), inset 0 1px 0 rgba(255, 255, 255, .94);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  overflow: hidden;
}
.insta-tabs-admin {
  left: 48px;
  right: 48px;
}
@media (prefers-color-scheme: dark) {
  .insta-tabs {
    background: rgba(28, 28, 30, .72);
    border-color: rgba(255, 255, 255, .14);
    box-shadow: 0 14px 36px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .08);
  }
}
:root[data-theme="dark"] .insta-tabs {
  background: rgba(28, 28, 30, .72);
  border-color: rgba(255, 255, 255, .14);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.insta-tabs > a,
.insta-tabs > button {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  min-width: 0;
  border: 0;
  border-radius: 23px;
  color: #8e8e93;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .18s ease, color .18s ease;
}
.insta-tabs > .is-active,
.insta-tabs > [aria-current="page"] {
  color: var(--accent-strong);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.insta-tabs .insta-ico {
  display: inline-flex;
  width: 26px; height: 26px;
  align-items: center; justify-content: center;
}
.insta-tabs svg { width: 24px; height: 24px; display: block; }
.insta-tabs .icon-filled { display: none; }
.insta-tabs > .is-active .icon-outline,
.insta-tabs > [aria-current="page"] .icon-outline { display: none; }
.insta-tabs > .is-active .icon-filled,
.insta-tabs > [aria-current="page"] .icon-filled { display: block; }
.insta-tabs .label { display: none; font-size: 11px; font-weight: 600; letter-spacing: -0.01em; }

@media (min-width: 760px) {
  .insta-tabs {
    left: 50%;
    right: auto;
    bottom: 14px;
    width: min(540px, 92vw);
    transform: translateX(-50%);
  }
  .insta-tabs > .is-active .label,
  .insta-tabs > [aria-current="page"] .label { display: inline; }
}

/* ---------- Apps / More sheets ---------- */
.nav-sheet-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0;
  /* Leave the Insta capsule free — otherwise taps on Ещё/Приложения hit the dimmer */
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  z-index: 45;
  background: rgba(0, 0, 0, .36);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.nav-sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.nav-sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  max-height: min(78vh, 720px);
  padding: 8px 18px calc(88px + env(safe-area-inset-bottom, 0px));
  border-radius: 24px 24px 0 0;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--border);
  border-bottom: 0;
  box-shadow: 0 -18px 48px rgba(0, 0, 0, .18);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  transform: translateY(110%);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-sheet:not(.open) { pointer-events: none; }
.nav-sheet.open { transform: translateY(0); pointer-events: auto; }
.nav-sheet-handle {
  width: 36px; height: 5px; margin: 4px auto 10px;
  border-radius: 999px; background: color-mix(in srgb, var(--muted) 45%, transparent);
}
.nav-sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.nav-sheet-head h2 {
  margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.03em;
}
.nav-sheet-head-close-only {
  justify-content: flex-end;
  margin-bottom: 4px;
}
.nav-sheet-close {
  appearance: none; border: 0; width: 34px; height: 34px; border-radius: 50%;
  background: color-mix(in srgb, var(--muted) 14%, transparent);
  color: var(--text); font-size: 14px; cursor: pointer;
}
.app-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 10px;
  padding: 4px 2px 8px;
}
.app-tile {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-decoration: none; color: var(--text);
  -webkit-tap-highlight-color: transparent;
}
.app-tile-icon {
  width: 62px; height: 62px; border-radius: 16px; overflow: hidden;
  background: var(--surface-2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}
.app-tile-icon img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.app-tile-label {
  font-size: 11px; font-weight: 500; line-height: 1.15;
  text-align: center; max-width: 74px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.more-sections { display: grid; gap: 18px; }
.more-title {
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.more-link {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 12px; margin: 0 -4px; border-radius: 14px;
  text-decoration: none; color: var(--text);
}
.more-link:hover { background: var(--surface-2); }
.more-link span { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.more-link small { font-size: 12px; color: var(--muted); }
body.nav-sheet-open { overflow: hidden; }

@media (min-width: 760px) {
  .app-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px 14px; }
  .nav-sheet {
    left: 50%; right: auto; width: min(560px, 94vw);
    transform: translate(-50%, 110%);
    border-radius: 24px;
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    max-height: min(70vh, 680px);
  }
  .nav-sheet.open { transform: translate(-50%, 0); }
}

.passkey-modal-backdrop {
  position: fixed; inset: 0; z-index: 80;
  background: color-mix(in srgb, var(--dark-bg, #000) 30%, transparent);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.passkey-modal { max-width: 380px; width: 100%; text-align: left; }
.passkey-modal h3 { margin-top: 0; }

main { padding: 0 0 calc(104px + env(safe-area-inset-bottom, 0px)); }
main.page { padding: 28px 0 calc(104px + env(safe-area-inset-bottom, 0px)); }

/* ---------- type ---------- */
h1 {
  font-family: var(--sans); font-size: clamp(32px, 8vw, 56px); font-weight: 600; letter-spacing: -0.015em;
  margin: 0 0 8px; text-wrap: balance; line-height: 1.07; overflow-wrap: break-word;
}
h2 {
  font-family: var(--sans); font-size: clamp(24px, 6vw, 32px); font-weight: 600; letter-spacing: -0.01em;
  margin: 0 0 12px; text-wrap: balance; line-height: 1.1; overflow-wrap: break-word;
}
h3 { font-family: var(--sans); font-size: 20px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.005em; }
p.lead { color: var(--muted); font-size: 21px; line-height: 1.38; max-width: 42ch; font-weight: 400; }

/* ---------- hero ---------- */
.hero {
  text-align: center;
  padding: 88px 22px 64px;
  max-width: 900px;
  margin: 0 auto;
}
.hero .eyebrow {
  font-size: 19px; font-weight: 600; color: var(--accent); margin-bottom: 6px;
}
.hero h1 { font-size: clamp(34px, 10vw, 64px); }
.hero p.lead { margin: 0 auto 32px; text-align: center; max-width: 46ch; font-size: 24px; }
.hero .actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-visual {
  height: 320px; border-radius: 28px; margin: 0 auto 8px; max-width: 980px;
  background:
    radial-gradient(60% 100% at 30% 20%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 60%),
    radial-gradient(50% 90% at 75% 70%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 65%),
    #000;
  position: relative;
  overflow: hidden;
}
.hero-visual::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.14) 1px, transparent 0);
  background-size: 22px 22px;
  mix-blend-mode: overlay;
}

/* ---------- music landing ---------- */
.music-hero { padding: 64px 0 72px; overflow: hidden; background: linear-gradient(145deg, #0b0b0d 0%, #17151f 55%, #21162c 100%); color: #fff; }
.music-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); align-items: center; gap: 64px; }
.music-kicker { margin: 0 0 12px; color: #b892ff; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.music-hero h1 { max-width: 720px; margin: 0 0 20px; font-size: clamp(42px, 6vw, 72px); line-height: .98; letter-spacing: -.045em; }
.music-hero p.lead { max-width: 610px; margin: 0; color: rgba(255,255,255,.72); font-size: clamp(18px, 2vw, 22px); text-align: left; }
.music-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.music-hero .btn.secondary { border-color: rgba(255,255,255,.42); color: #fff; }
.music-hero .btn.secondary:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.music-proof { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 26px; color: rgba(255,255,255,.58); font-size: 14px; }
.music-proof strong { color: #fff; font-weight: 600; }
.music-cover-stack { position: relative; min-height: 480px; }
.music-cover-stack img { position: absolute; width: min(78%, 390px); aspect-ratio: 1; object-fit: cover; border-radius: 22px; box-shadow: 0 32px 70px rgba(0,0,0,.48); }
.music-cover-stack img:nth-child(1) { z-index: 3; top: 7%; left: 2%; transform: rotate(-4deg); }
.music-cover-stack img:nth-child(2) { z-index: 2; top: 1%; right: 0; transform: rotate(8deg) scale(.88); opacity: .82; }
.music-cover-stack img:nth-child(3) { z-index: 1; bottom: 0; right: 4%; transform: rotate(-10deg) scale(.76); opacity: .55; }
.music-listen-now { position: relative; z-index: 4; margin-top: -38px; padding-bottom: 74px; }
.music-preview-card {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: center;
  max-width: 920px; margin: 0 auto; padding: 22px; border: 1px solid var(--border); border-radius: 24px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  color: var(--text);
  box-shadow: 0 24px 70px -38px rgba(0,0,0,.65);
}
.music-preview-card > img { display: block; width: 100%; aspect-ratio: 1; border-radius: 16px; object-fit: cover; }
.music-preview-copy h2 { margin: 0 0 4px; text-align: left; font-size: clamp(28px, 4vw, 40px); }
.music-preview-copy .music-kicker { margin-bottom: 7px; }
.music-preview-album { margin: 0 0 18px; color: var(--muted); }
.music-preview-copy audio { display: block; width: 100%; min-height: 44px; }
.music-preview-note { max-width: 64ch; margin: 14px 0 8px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.music-text-link { color: var(--accent); font-weight: 600; text-decoration: none; }
.music-share-toast { position:fixed; left:50%; bottom:max(24px,env(safe-area-inset-bottom)); z-index:1000; max-width:calc(100vw - 32px); padding:11px 16px; border-radius:999px; background:rgba(20,20,24,.94); color:#fff; font-size:14px; opacity:0; transform:translate(-50%,12px); pointer-events:none; transition:opacity .18s ease,transform .18s ease; }
.music-share-toast.is-visible { opacity:1; transform:translate(-50%,0); }
.music-catalog-preview { padding-bottom: 48px; }
.music-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.music-section-heading h2 { margin: 0; text-align: left; }
.music-section-heading a { flex: none; color: var(--accent); text-decoration: none; }
.music-album-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.music-album-card { color: var(--text); font-size: 16px; font-weight: 600; text-decoration: none; }
.music-album-card img { display: block; width: 100%; aspect-ratio: 1; margin-bottom: 12px; border-radius: 16px; object-fit: cover; box-shadow: 0 12px 30px -18px rgba(0,0,0,.5); transition: transform 160ms ease, box-shadow 160ms ease; }
.music-album-card:hover img { transform: translateY(-3px); box-shadow: 0 18px 36px -18px rgba(0,0,0,.6); }
@media (max-width: 820px) {
  .music-hero { padding: 44px 0 52px; }
  .music-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .music-cover-stack { min-height: 330px; }
  .music-cover-stack img { width: min(70%, 310px); }
  .music-listen-now { margin-top: -24px; padding-bottom: 54px; }
  .music-preview-card { grid-template-columns: 150px minmax(0, 1fr); gap: 22px; }
  .music-album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .music-hero h1 { font-size: 42px; }
  .music-cover-stack { min-height: 270px; }
  .music-preview-card { grid-template-columns: 1fr; padding: 16px; }
  .music-preview-card > img { max-width: 180px; }
  .music-actions .btn { width: 100%; }
  .music-proof { justify-content: space-between; gap: 10px; }
  .music-album-grid { gap: 12px; }
  .music-album-card { font-size: 14px; }
}

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section.dark {
  background: var(--dark-bg); color: var(--dark-text);
  --text: var(--dark-text);
  --muted: var(--dark-muted);
  --surface: var(--dark-surface);
  --surface-2: #2c2c2e;
  --border: #38383c;
  --line: #38383c;
  --success: #30d158;
  --danger: #ff453a;
  --warning: #ffd60a;
  --accent: #2997ff;
  --accent-strong: #0a84ff;
  --accent-wash: #0f2942;
}
.section.dark .muted { color: var(--dark-muted); }
.section.alt { background: var(--surface-2); }
.section h2 { text-align: center; margin: 0 auto 16px; max-width: 30ch; }
.section p.lead { text-align: center; margin: 0 auto 48px; }

.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  background: var(--border); border-radius: var(--radius); overflow: hidden;
}
.section.dark .feature-grid { background: #2c2c2e; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  background: var(--surface); padding: 40px 32px;
}
.section.dark .feature { background: #000; }
.section.dark .card {
  --surface: var(--dark-surface);
  --surface-2: #2c2c2e;
  --border: #38383c;
  --line: #38383c;
  --text: var(--dark-text);
  --muted: var(--dark-muted);
  --success: #30d158;
  --danger: #ff453a;
}
.feature h3 { font-size: 22px; }
.feature p { color: var(--muted); font-size: 15px; line-height: 1.5; margin: 0; }

/* ---------- card / grid ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; margin-bottom: 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px -12px rgba(0,0,0,0.10);
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--sans); font-weight: 400; font-size: 17px;
  padding: 10px 22px; border-radius: 980px; border: 1px solid var(--accent);
  background: var(--accent); color: #fff; text-decoration: none; cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}
.btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.btn.secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn.secondary:hover { background: var(--accent-wash); }
.btn.danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn.danger:hover { background: color-mix(in srgb, var(--danger) 12%, transparent); }

/* ---------- pricing card ---------- */
.plan-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 24px;
  padding: 36px 32px; text-align: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px -12px rgba(0,0,0,0.10);
}
.plan-card .price {
  font-family: var(--sans); font-size: 48px; font-weight: 600; letter-spacing: -0.02em;
  margin: 8px 0 4px;
}
.plan-card .period { color: var(--muted); font-size: 15px; margin-bottom: 24px; }

/* ---------- status / table (unchanged structure, restyled) ---------- */
.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  padding: 4px 12px; border-radius: 980px; background: var(--surface-2);
}
.status-pill.pending { color: var(--warning); }
.status-pill.confirmed, .status-pill.live { color: var(--success); }
.status-pill.rejected { color: var(--danger); }
.status-pill.soon { color: var(--muted); }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pill.soon::before { display: none; }

/* ---------- storefront catalog ---------- */
.home-hero {
  padding: 72px 0 68px;
  color: var(--text);
  background: linear-gradient(145deg, #f5f8ff 0%, #fff 48%, #f4f0ff 100%);
  border-bottom: 1px solid var(--border);
}
.home-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); align-items: center; gap: 72px; }
.home-eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.home-hero h1 {
  max-width: 830px; margin: 0 0 20px;
  color: var(--text);
  font-size: clamp(42px, 5.5vw, 62px); line-height: 1.02; letter-spacing: -.045em;
}
.home-hero p.lead { max-width: 720px; margin: 0; text-align: left; font-size: clamp(18px, 2vw, 22px); }
.home-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.home-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; color: var(--muted); font-size: 14px; }
.home-proof span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.home-proof span::before {
  content: "";
  width: 0.55em;
  height: 0.9em;
  margin-right: 0;
  flex: 0 0 auto;
  border-right: 2px solid var(--success);
  border-bottom: 2px solid var(--success);
  transform: rotate(45deg) translateY(-0.08em);
}
.home-router {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  box-shadow: 0 24px 70px -45px rgba(0,0,0,.45);
}
.home-router-title { margin: 6px 10px 10px; color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.home-router a { display: block; padding: 18px; border-radius: 16px; color: var(--text); text-decoration: none; transition: background 120ms ease, transform 120ms ease; }
.home-router a:hover { background: var(--accent-wash); transform: translateX(2px); }
.home-router a + a { border-top: 1px solid var(--border); }
.home-router strong, .home-router span { display: block; }
.home-router strong { font-size: 17px; color: var(--text); }
.home-router span { margin-top: 5px; color: var(--muted); font-size: 14px; line-height: 1.4; }

@media (prefers-color-scheme: dark) {
  .home-hero {
    background:
      radial-gradient(circle at 18% -10%, rgba(41, 151, 255, 0.22), transparent 42%),
      radial-gradient(circle at 88% 0%, rgba(48, 209, 88, 0.12), transparent 36%),
      linear-gradient(180deg, #0b0d12 0%, var(--bg) 72%);
  }
  .home-router {
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    box-shadow: 0 24px 70px -45px rgba(0,0,0,.8);
  }
}
:root[data-theme="dark"] .home-hero {
  background:
    radial-gradient(circle at 18% -10%, rgba(41, 151, 255, 0.22), transparent 42%),
    radial-gradient(circle at 88% 0%, rgba(48, 209, 88, 0.12), transparent 36%),
    linear-gradient(180deg, #0b0d12 0%, var(--bg) 72%);
}
:root[data-theme="dark"] .home-router {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 24px 70px -45px rgba(0,0,0,.8);
}
:root[data-theme="light"] .home-hero {
  background: linear-gradient(145deg, #f5f8ff 0%, #fff 48%, #f4f0ff 100%);
}
:root[data-theme="light"] .home-router {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  box-shadow: 0 24px 70px -45px rgba(0,0,0,.45);
}
.home-catalog { scroll-margin-top: 64px; }
.herald-feature {
  padding: 72px 0;
  color: #f5f7ff;
  background:
    radial-gradient(circle at 78% 18%, rgba(63, 124, 255, .26), transparent 32%),
    linear-gradient(135deg, #080c17 0%, #111a31 58%, #0a1020 100%);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.herald-feature-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr); gap: 70px; align-items: center; }
.herald-feature .home-eyebrow { color: #84a9ff; }
.herald-feature .status-pill { margin-bottom: 18px; background: rgba(48, 209, 88, .12); color: #5ee482; }
.herald-feature-copy h2 { max-width: 650px; margin: 0 0 18px; color: #fff; text-align: left; font-size: clamp(34px, 4vw, 52px); line-height: 1.02; letter-spacing: -.035em; }
.herald-lead { max-width: 650px; margin: 0; color: #bdc5d8; font-size: 18px; line-height: 1.6; }
.herald-benefits { display: grid; gap: 10px; margin: 24px 0 30px; padding: 0; list-style: none; }
.herald-benefits li { position: relative; padding-left: 28px; color: #eef2ff; }
.herald-benefits li::before { content: "✓"; position: absolute; left: 0; color: #5ee482; font-weight: 800; }
.herald-monitor { padding: 20px; border: 1px solid rgba(139, 174, 255, .24); border-radius: 28px; background: rgba(10, 15, 29, .78); box-shadow: 0 30px 90px -45px rgba(37, 100, 255, .85); backdrop-filter: blur(12px); }
.herald-monitor-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 2px 2px 18px; }
.herald-orbit { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(132, 169, 255, .55); border-radius: 50%; color: #fff; background: linear-gradient(145deg, #315fc7, #121a31); font-weight: 800; }
.herald-monitor-head strong, .herald-monitor-head span { display: block; }
.herald-monitor-head strong { color: #fff; font-size: 18px; }
.herald-monitor-head div span { margin-top: 2px; color: #7f8aa3; font-size: 13px; }
.herald-live { color: #5ee482; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.herald-live i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.herald-signal { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: center; padding: 16px; border-top: 1px solid rgba(255,255,255,.09); }
.herald-signal span { width: fit-content; padding: 5px 9px; border-radius: 999px; color: #98b5ff; background: rgba(68, 115, 224, .16); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.herald-signal strong { color: #edf1fc; font-size: 15px; line-height: 1.4; }
.herald-monitor-foot { margin: 14px 4px 2px; color: #707b94; font-size: 12px; }
.home-section-heading { max-width: 800px; margin-bottom: 28px; }
.home-section-heading h2 { max-width: 760px; margin: 0 0 10px; text-align: left; font-size: clamp(28px, 4vw, 42px); line-height: 1.08; }
.home-section-heading > p:last-child { margin: 0; color: var(--muted); font-size: 17px; }
.home-partners { overflow: hidden; }
.partner-grid { display: grid; gap: 24px; }
.partner-feature {
  display: grid; grid-template-columns: minmax(280px, .8fr) 1.2fr;
  min-height: 520px; overflow: hidden; border: 1px solid var(--border);
  border-radius: 28px; background: var(--surface); color: var(--text);
  box-shadow: 0 24px 70px rgba(31, 25, 18, .09);
  text-decoration: none; transition: transform .25s ease, box-shadow .25s ease;
}
.partner-feature:hover { transform: translateY(-4px); box-shadow: 0 30px 80px rgba(31, 25, 18, .14); }
.partner-feature-image { min-height: 520px; overflow: hidden; background: #ded7cd; }
.partner-feature-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .6s ease; }
.partner-feature:hover .partner-feature-image img { transform: scale(1.025); }
.partner-feature-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(34px, 6vw, 76px); }
.partner-feature-role { margin: 28px 0 8px; color: var(--accent); font-size: 14px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.partner-feature-copy h3 { margin: 0 0 22px; font-size: clamp(38px, 5vw, 64px); line-height: 1; letter-spacing: -.035em; }
.partner-feature-copy > p:not(.partner-feature-role) { max-width: 540px; margin: 0; color: var(--muted); font-size: clamp(17px, 2vw, 20px); line-height: 1.6; }
.partner-feature-link { margin-top: 34px; color: var(--accent-strong); font-weight: 750; font-size: 17px; }
.partner-feature-link span { display: inline-block; margin-left: 6px; transition: transform .2s ease; }
.partner-feature:hover .partner-feature-link span { transform: translateX(5px); }
.partner-invite { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; padding: 26px 30px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); }
.partner-invite strong, .partner-invite span { display: block; }
.partner-invite strong { margin-bottom: 5px; font-size: 19px; }
.partner-invite span { color: var(--muted); }
@media (max-width: 760px) {
  .partner-feature { grid-template-columns: 1fr; min-height: 0; border-radius: 22px; }
  .partner-feature-image { min-height: 0; aspect-ratio: 4 / 3; }
  .partner-feature-image img { object-position: center 22%; }
  .partner-feature-copy { padding: 30px 24px 34px; }
  .partner-feature-role { margin-top: 22px; }
  .partner-feature-copy h3 { font-size: 40px; }
  .partner-feature-link { margin-top: 26px; }
  .partner-invite { align-items: flex-start; flex-direction: column; padding: 24px; }
  .partner-invite .btn { width: 100%; text-align: center; }
}
@media (max-width: 860px) {
  .home-hero { padding: 50px 0; }
  .home-hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .herald-feature-grid { grid-template-columns: 1fr; gap: 38px; }
}
@media (max-width: 480px) {
  .home-hero { padding: 38px 0 42px; }
  .home-hero h1 { font-size: 40px; }
  .home-actions .btn { width: 100%; min-height: 48px; }
  .home-proof { display: grid; gap: 8px; }
  .home-router { padding: 8px; }
  .home-router a { padding: 16px 12px; min-height: 48px; }
  .herald-feature { padding: 48px 0; }
  .herald-feature-copy h2 { font-size: 36px; }
  .herald-monitor { padding: 14px; border-radius: 22px; }
  .herald-signal { grid-template-columns: 1fr; gap: 8px; padding: 14px 8px; }
}
.catalog-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px;
}
.catalog-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0 26px 26px; text-decoration: none; color: inherit; overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px -12px rgba(0,0,0,0.10);
  transition: border-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}
a.catalog-card:hover {
  border-color: var(--accent); transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.06), 0 16px 32px -14px rgba(0,0,0,0.16);
}
.catalog-card-img {
  margin: 0 -26px; aspect-ratio: 16 / 9; overflow: hidden; background: #0a0a0a;
}
.catalog-card-img img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
.catalog-card h3 { margin: 12px 0 0; font-size: 20px; }
.catalog-card .status-pill { margin-top: 18px; }
.catalog-card .tagline { color: var(--muted); font-size: 14px; margin: 0; flex: 1; }
.catalog-card-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px;
}
.catalog-card-foot .price-block { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.catalog-card-foot .price { font-family: var(--sans); font-weight: 600; font-size: 22px; }
.catalog-card-cta {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  padding: 9px 18px; border-radius: 980px; background: var(--accent); color: #fff;
  white-space: nowrap; transition: background 120ms ease; margin-left: auto;
}
a.catalog-card:hover .catalog-card-cta { background: var(--accent-strong); }
.catalog-card-soon { opacity: 0.55; }
.catalog-card-soon h3 { color: var(--muted); }

.product-photo {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px -12px rgba(0,0,0,0.10);
}
.product-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 720px) { .product-photo { margin-top: 24px; } }

/* ---------- media gallery (карточка "как на Wildberries": видео + фото, свайп) ---------- */
.gallery-hero-wrap { padding-top: 56px; }
@media (max-width: 720px) { .gallery-hero-wrap { padding-top: 0; } }

.media-gallery {
  position: relative;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px -12px rgba(0,0,0,0.10);
  background: #000;
}
.media-gallery-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  height: 100%;
}
.media-gallery-track::-webkit-scrollbar { display: none; }
.media-slide {
  position: relative; flex: 0 0 100%; scroll-snap-align: center;
  aspect-ratio: 4 / 5; background: #000; cursor: pointer;
}
.media-slide img, .media-slide .media-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-play {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; padding: 0;
  border-radius: 50%; border: none; cursor: pointer;
  background: rgba(0,0,0,0.45); color: #fff;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.media-play::before { content: ""; margin-left: 4px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.media-play.is-hidden { display: none; }
.media-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; padding: 0; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(0,0,0,0.35); color: #fff; font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.media-nav-prev { left: 10px; }
.media-nav-next { right: 10px; }
.media-counter {
  position: absolute; top: 12px; right: 12px; padding: 3px 10px; border-radius: 980px;
  background: rgba(0,0,0,0.4); color: #fff; font-size: 12px; font-variant-numeric: tabular-nums;
}
.media-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }
.media-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.45); transition: background 120ms, width 120ms; }
.media-dot.active { background: #fff; width: 16px; border-radius: 3px; }

.media-gallery--wide .media-slide { aspect-ratio: 16 / 9; }
@media (max-width: 720px) { .media-gallery--wide .media-slide { aspect-ratio: 16 / 9; height: auto; } .media-gallery.media-gallery--wide { height: auto; order: 0; } }

.media-lightbox {
  display: none; position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,0.92);
  align-items: center; justify-content: center; padding: 24px; cursor: zoom-out;
}
.media-lightbox.open { display: flex; }
.media-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }

@media (max-width: 720px) {
  .media-gallery {
    width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
    height: calc(100dvh - 48px); border-radius: 0; border-left: none; border-right: none;
    order: -1; margin-bottom: 20px;
  }
  .media-slide { aspect-ratio: auto; height: 100%; }
  .media-play { width: 72px; height: 72px; }
}

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); }
.table-wrap { overflow-x: auto; }

.auth-alt-methods {
  display: flex; flex-direction: column; align-items: stretch; gap: 14px;
}
.auth-alt-method { display: flex; justify-content: center; width: 100%; }
.auth-alt-method .btn { min-height: 48px; }

@media (max-width: 700px) {
  .responsive-table table, .responsive-table thead, .responsive-table tbody,
  .responsive-table th, .responsive-table td, .responsive-table tr {
    display: block;
  }
  .responsive-table thead { display: none; }
  .responsive-table tr {
    border: 1px solid var(--border); border-radius: 12px;
    padding: 14px; margin-bottom: 12px;
  }
  .responsive-table td {
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; padding: 7px 0; border: none; text-align: right;
  }
  .responsive-table td[data-label]:before {
    content: attr(data-label); color: var(--muted); font-size: 12px;
    text-align: left; flex-shrink: 0;
  }
  .responsive-table td[data-label=""]:before { content: none; }
  .responsive-table td[data-label=""] { justify-content: flex-start; flex-wrap: wrap; gap: 8px; padding-top: 12px; }
}

.mono { font-family: var(--mono); }
.muted { color: var(--muted); }

.field { margin-bottom: 16px; text-align: left; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.terms-row {
  display: flex; align-items: flex-start; gap: 8px; margin: 0 0 10px;
  font-size: 13px; font-weight: 400; cursor: pointer; color: var(--text);
}
.terms-row input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex-shrink: 0;
  width: 18px; height: 18px; margin: 1px 0 0; border-radius: 5px;
  border: 1.5px solid var(--border); background: var(--surface);
  cursor: pointer; position: relative;
}
.terms-row input[type="checkbox"]:checked {
  background: var(--accent); border-color: var(--accent);
}
.terms-row input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 5px; top: 1px;
  width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.terms-row input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font-family: var(--sans); font-size: 16px;
}
.field textarea { resize: vertical; min-height: 90px; }

.art-subscribe-form { display: flex; gap: 10px; flex-wrap: wrap; }
.art-subscribe-form input { flex: 1 1 240px; }
.art-subscribe-form button { flex: 1 1 240px; }
.art-subscribe-form input {
  padding: 11px 14px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font-family: var(--sans); font-size: 16px;
}
.art-subscribe-form input:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent);
}
@media (max-width: 480px) {
  .art-subscribe-form input, .art-subscribe-form button { flex-basis: 100%; }
}

.password-field-wrap { position: relative; }
.password-field-wrap input { padding-right: 44px; }
.password-field-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border: none; background: transparent; cursor: pointer;
  font-size: 16px; opacity: 0.5; border-radius: 8px;
}
.password-field-toggle:hover { opacity: 0.8; background: var(--border); }
.password-field-toggle.showing { opacity: 0.9; }

.pay-box {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px; font-family: var(--mono); font-size: 14px; text-align: left;
}
.pay-box dt { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 10px; }
.pay-box dd { margin: 2px 0 0; }

.qr-frame { background: #fff; padding: 12px; border-radius: 16px; border: 1px solid var(--border); display: inline-block; }
.qr-frame img { display: block; width: 156px; height: 156px; }

/* ---------- custom date picker (replaces visible native type="date" on iOS Safari) ---------- */
input[type="date"] { cursor: pointer; }
input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.15s;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }

.date-native-hidden { display: none; }

.date-field { position: relative; }

.date-display-btn {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  padding: 11px 14px;
  text-align: left;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
}

.date-display-btn:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-wash);
}

.date-calendar {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 40;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  padding: 12px;
}

.date-calendar[hidden] { display: none; }

.date-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.date-calendar-head span {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  text-transform: capitalize;
}

.date-calendar-nav {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 8px;
}

.date-calendar-nav:hover { background: var(--surface-2); }

.date-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}

.date-calendar-weekday {
  font-size: 11px;
  color: var(--muted);
  padding: 4px 0;
}

.date-calendar-day {
  appearance: none;
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 8px 0;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}

.date-calendar-day:hover { background: var(--surface-2); }

.date-calendar-day.is-muted {
  color: var(--muted);
  opacity: 0.5;
}

.date-calendar-day.is-selected {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.date-calendar-day.is-today:not(.is-selected) {
  box-shadow: inset 0 0 0 1px var(--accent);
}

footer.site {
  border-top: 1px solid var(--border);
  padding: 28px 0 calc(28px + 72px + env(safe-area-inset-bottom, 0px));
  background: var(--surface-2);
}
footer.site .wrap { color: var(--muted); font-size: 12px; }

/* Pull-to-refresh indicator (standalone PWA only, see base.html) */
.ptr-indicator {
  position: fixed;
  top: 10px;
  left: 50%;
  margin-left: -18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50px);
}
.ptr-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--accent-strong);
}
.ptr-indicator.ptr-spin .ptr-spinner { animation: ptr-rotate .6s linear infinite; }
@keyframes ptr-rotate { to { transform: rotate(360deg); } }
