/* Inter (variable, subset) — локально, без внешних запросов */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/static/fonts/Inter-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/static/fonts/Inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/static/fonts/Inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/static/fonts/Inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =====================================================================
   Slidee UI — единая дизайн-система интерфейса.
   Старые таблицы подключены в слое legacy: всё, что описано ниже, всегда
   важнее них. Слайды (.slide, .family-slide, --s-*) здесь не меняются.
   ===================================================================== */
@layer legacy;
@layer legacy {
/* =========================================================
   slidecraft.ai — premium prototype
   ========================================================= */
:root {
  --bg: #f6f7fb;
  --bg-soft: #eef0f8;
  --surface: #ffffff;
  --surface-2: #f8f9ff;
  --ink: #0b0d17;
  --ink-soft: #2b3042;
  --muted: #6b7280;
  --line: rgba(11, 13, 23, .09);
  --line-strong: rgba(11, 13, 23, .16);
  --accent: #6d5bff;
  --accent-2: #19c6e6;
  --accent-soft: rgba(109, 91, 255, .12);
  --danger: #e5484d;
  --shadow-lg: 0 30px 80px rgba(24, 28, 60, .16);
  --shadow: 0 16px 44px rgba(24, 28, 60, .10);
  --shadow-sm: 0 6px 18px rgba(24, 28, 60, .07);
  --r: 20px;
  --r-sm: 12px;
  --max: 1200px;
}
[data-theme="dark"] {
  --bg: #080a12;
  --bg-soft: #0d1120;
  --surface: #12172a;
  --surface-2: #0f1424;
  --ink: #f2f4ff;
  --ink-soft: #d8dcf0;
  --muted: #98a2c4;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .18);
  --accent: #8b7cff;
  --accent-2: #22d3ee;
  --accent-soft: rgba(139, 124, 255, .16);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, .5);
  --shadow: 0 16px 44px rgba(0, 0, 0, .4);
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, .3);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: -12vh -10vw; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40vw 40vw at 86% 4%, rgba(109, 91, 255, .16), transparent 62%),
    radial-gradient(44vw 44vw at 2% 96%, rgba(25, 198, 230, .13), transparent 64%),
    radial-gradient(30vw 30vw at 66% 104%, rgba(255, 100, 160, .09), transparent 66%);
}
[data-theme="dark"] body::before {
  background:
    radial-gradient(40vw 40vw at 86% 4%, rgba(139, 124, 255, .24), transparent 62%),
    radial-gradient(44vw 44vw at 2% 96%, rgba(34, 211, 238, .16), transparent 64%),
    radial-gradient(30vw 30vw at 66% 104%, rgba(255, 100, 160, .10), transparent 66%);
}
#site, #app { position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.row { display: flex; gap: 12px; }
.row .field { flex: 1; }

/* ---------- базовые элементы ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  padding: 11px 18px; border-radius: 12px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: transform .16s, box-shadow .16s, background .16s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-primary {
  border: 0; color: #fff;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 26px rgba(109, 91, 255, .30);
}
.btn-primary:hover { box-shadow: 0 16px 34px rgba(109, 91, 255, .38); }
.btn-ghost { background: transparent; }
.btn-lg { padding: 15px 24px; font-size: 15.5px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; font-size: 16px; line-height: 1;
  transition: transform .15s, background .15s;
}
.icon-btn:hover { transform: translateY(-1px); background: var(--surface-2); }

.chip {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); background: var(--accent-soft);
  padding: 7px 12px; border-radius: 999px;
}
.step { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.grad { background: linear-gradient(95deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.field { display: flex; flex-direction: column; gap: 7px; text-align: left; }
.field > span { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); background: var(--surface-2);
  border-radius: 12px; padding: 12px 14px; font-size: 14.5px; outline: none;
  transition: border-color .15s, box-shadow .15s; resize: vertical;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.hint { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ======================= NAV ======================= */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px clamp(18px, 4vw, 40px);
  background: rgba(246, 247, 251, .78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
[data-theme="dark"] .nav { background: rgba(8, 10, 18, .78); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-size: 18px; font-weight: 800;
  box-shadow: 0 8px 20px rgba(109, 91, 255, .3);
}
.brand-name { font-size: 17px; }
.brand-name .dim { color: var(--muted); font-weight: 500; }
.beta {
  font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 999px; color: var(--accent); background: var(--accent-soft);
}
.nav-links { display: flex; gap: 26px; font-size: 14px; color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ======================= HERO ======================= */
.hero {
  max-width: var(--max); margin: 0 auto; padding: clamp(36px, 6vw, 84px) clamp(18px, 4vw, 40px) 30px;
  display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.hero h1 { font-size: clamp(38px, 5.2vw, 64px); line-height: 1.02; margin: 20px 0 18px; font-weight: 800; }
.lead { font-size: clamp(15px, 1.5vw, 18px); line-height: 1.6; color: var(--muted); max-width: 520px; }
.hero-cta { display: flex; gap: 12px; margin: 28px 0 30px; flex-wrap: wrap; }
.trust { display: flex; gap: 38px; }
.trust div { display: flex; flex-direction: column; gap: 2px; }
.trust b { font-size: 24px; letter-spacing: -.02em; }
.trust span { font-size: 12px; color: var(--muted); }

.hero-visual { position: relative; }
.mockup {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow-lg); overflow: hidden; transform: perspective(1200px) rotateY(-4deg) rotateX(1deg);
}
.mockup-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot.red { background: #ff5f57; } .dot.yellow { background: #febc2e; } .dot.green { background: #28c840; }
.mockup-url { margin-left: 10px; font-size: 11.5px; color: var(--muted); }
.mockup-body { display: flex; }
.mockup-side { width: 52px; border-right: 1px solid var(--line); background: var(--surface-2); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 0; }
.ms-logo { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.ms-item { width: 20px; height: 6px; border-radius: 4px; background: var(--line-strong); }
.ms-item.active { background: var(--accent); }
.ms-item.short { width: 13px; }
.mockup-canvas { flex: 1; padding: 18px; }
.mini-slide { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; padding: 20px 22px;
  background: linear-gradient(160deg, #f3f0ff, #e8f9ff); border: 1px solid rgba(11,13,23,.06); }
[data-theme="dark"] .mini-slide { background: linear-gradient(160deg, #191a33, #102636); border-color: rgba(255,255,255,.08); }
.mini-chip { font-size: 8px; font-weight: 700; letter-spacing: .16em; color: #6d5bff; }
.mini-title { margin-top: 10px; font-size: clamp(15px, 1.7vw, 21px); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; color: #0b0d17; }
[data-theme="dark"] .mini-title { color: #f2f4ff; }
.mini-lines { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; width: 58%; }
.mini-lines i { height: 5px; border-radius: 4px; background: rgba(11,13,23,.16); }
[data-theme="dark"] .mini-lines i { background: rgba(255,255,255,.2); }
.mini-art { position: absolute; right: 16px; top: 30px; width: 30%; height: 62%; border-radius: 10px;
  background: radial-gradient(60% 70% at 70% 20%, rgba(255,255,255,.5), transparent 60%), linear-gradient(135deg, #6d5bff, #19c6e6); }
.mini-thumbs { display: flex; gap: 8px; margin-top: 12px; }
.mt { flex: 1; height: 26px; border-radius: 7px; background: var(--line-strong); opacity: .5; }
.mt.active { opacity: 1; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.float-card {
  position: absolute; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 11px 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px;
  animation: floaty 7s ease-in-out infinite;
}
.float-card b { font-size: 12.5px; }
.float-card span { font-size: 11px; color: var(--muted); }
.fc1 { left: -18px; top: 16%; }
.fc2 { right: -10px; bottom: 8%; animation-delay: -3s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- полоса «подходит для» ---------- */
.logos { max-width: var(--max); margin: 20px auto 0; padding: 22px clamp(18px, 4vw, 40px);
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap; border-top: 1px solid var(--line); }
.logos > span { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.logo-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--ink-soft); }
.logo-row b { font-size: 15px; font-weight: 700; }
.logo-row i { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }

/* ---------- секции ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 7vw, 92px) clamp(18px, 4vw, 40px) 0; }
.section-head { max-width: 640px; margin-bottom: 34px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 40px); margin: 16px 0 12px; font-weight: 800; }
.section-head p { color: var(--muted); font-size: 16px; line-height: 1.55; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.fi {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-size: 18px; margin-bottom: 16px;
}
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { font-size: 13.5px; line-height: 1.55; color: var(--muted); }

.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tpl-card {
  border: 1px solid var(--line); border-radius: var(--r); padding: 14px;
  display: flex; flex-direction: column; gap: 3px; box-shadow: var(--shadow-sm);
}
.tpl-card b { font-size: 14px; margin-top: 8px; }
.tpl-card > span { font-size: 12px; color: var(--muted); }
.tpl-mini { position: relative; aspect-ratio: 16/9; border-radius: 12px; padding: 16px; overflow: hidden; }
.tpl-light .tpl-mini { background: linear-gradient(160deg, #efeaff, #e6f8ff); }
.tpl-dark .tpl-mini { background: linear-gradient(160deg, #1a1633, #10233a); }
.tpl-plain .tpl-mini { background: #fff; border: 1px solid #e8eaf2; }
.tm-chip { display: block; width: 34px; height: 6px; border-radius: 4px; background: #6d5bff; }
.tm-title { display: block; width: 66%; height: 14px; border-radius: 5px; background: rgba(11,13,23,.22); margin-top: 12px; }
.tpl-dark .tm-title { background: rgba(255,255,255,.5); }
.tm-line { display: block; width: 82%; height: 6px; border-radius: 4px; background: rgba(11,13,23,.14); margin-top: 8px; }
.tm-line.short { width: 48%; }
.tpl-dark .tm-line { background: rgba(255,255,255,.16); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow-sm); }
.step-num { font-size: 13px; font-weight: 800; color: var(--accent); letter-spacing: .1em; }
.step-card h3 { font-size: 17px; margin: 10px 0 8px; }
.step-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 20px; }
.price-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 30px; box-shadow: var(--shadow-sm); }
.price-card.featured { border-color: transparent; box-shadow: var(--shadow-lg); background: linear-gradient(180deg, var(--surface), var(--surface-2)); }
.price-badge { position: absolute; top: -12px; right: 24px; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; padding: 6px 12px; border-radius: 999px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.price-name { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.price-value { font-size: 46px; font-weight: 800; letter-spacing: -.03em; margin: 8px 0 4px; }
.price-value small { font-size: 15px; color: var(--muted); font-weight: 600; }
.price-sub { font-size: 13px; color: var(--muted); }
.price-card ul { list-style: none; padding: 0; margin: 20px 0 24px; display: flex; flex-direction: column; gap: 10px; }
.price-card li { font-size: 13.5px; padding-left: 24px; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

.faq { display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 14.5px; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin-top: 10px; font-size: 13.5px; color: var(--muted); line-height: 1.6; }

.cta { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 7vw, 92px) clamp(18px, 4vw, 40px) 0; }
.cta-inner {
  border-radius: 28px; padding: clamp(30px, 5vw, 60px); text-align: center; color: #fff;
  background: radial-gradient(120% 160% at 10% 0%, rgba(255,255,255,.22), transparent 55%), linear-gradient(120deg, #6d5bff, #19c6e6);
  box-shadow: 0 30px 70px rgba(109, 91, 255, .35);
}
.cta-inner h2 { font-size: clamp(24px, 3vw, 38px); margin-bottom: 10px; }
.cta-inner p { opacity: .85; margin-bottom: 24px; }
.cta-inner .btn { background: #fff; color: #0b0d17; box-shadow: 0 12px 30px rgba(0,0,0,.18); }

.footer { max-width: var(--max); margin: 0 auto; padding: 60px clamp(18px, 4vw, 40px) 40px; display: grid;
  grid-template-columns: 1.2fr 2fr; gap: 30px; border-top: 1px solid var(--line); margin-top: 70px; }
.foot-brand { display: flex; gap: 12px; align-items: flex-start; }
.foot-brand div { display: flex; flex-direction: column; gap: 3px; }
.foot-brand b { font-size: 15px; }
.foot-brand span { font-size: 12px; color: var(--muted); }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.foot-cols div { display: flex; flex-direction: column; gap: 8px; }
.foot-cols b { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.foot-cols a, .foot-cols span { font-size: 13.5px; }
.foot-cols a:hover { color: var(--accent); }
.foot-note { grid-column: 1 / -1; font-size: 11.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; }

/* ======================= APP ======================= */
.app { display: grid; grid-template-columns: 262px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 14px;
  padding: 20px 16px; background: var(--surface); border-right: 1px solid var(--line);
}
.side-brand { padding: 0 6px 10px; }
.side-new { width: 100%; margin-bottom: 6px; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-link {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  border: 0; background: transparent; padding: 10px 12px; border-radius: 11px;
  font-size: 13.5px; font-weight: 500; color: var(--muted); cursor: pointer;
}
.side-link:hover { background: var(--surface-2); color: var(--ink); }
.side-link.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.side-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.user-card { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); cursor: pointer; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; flex: 0 0 auto; }
.avatar.sm { width: 30px; height: 30px; font-size: 12px; }
.user-meta { display: flex; flex-direction: column; line-height: 1.2; }
.user-meta b { font-size: 12.5px; }
.user-meta span { font-size: 11px; color: var(--muted); }

.app-main { display: flex; flex-direction: column; min-width: 0; }
.app-topbar {
  position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center;
  padding: 14px clamp(16px, 3vw, 34px); border-bottom: 1px solid var(--line);
  background: rgba(246, 247, 251, .8); backdrop-filter: blur(14px);
}
[data-theme="dark"] .app-topbar { background: rgba(8, 10, 18, .8); }
.crumb { font-size: 14px; font-weight: 600; }
.top-right { display: flex; align-items: center; gap: 10px; }
.plan-pill { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); }
.plan-pill.pro { color: #fff; border: 0; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.app-view { padding: clamp(20px, 3vw, 40px); max-width: 1200px; width: 100%; margin: 0 auto; }

/* dashboard */
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.dash-head h2 { font-size: clamp(22px, 2.6vw, 30px); margin-top: 6px; }
.dash-tools { display: flex; gap: 10px; align-items: center; }
.search { border: 1px solid var(--line); background: var(--surface); border-radius: 11px; padding: 10px 14px; font-size: 13.5px; outline: none; width: 220px; }
.search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.deck-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.deck-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 8px; box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .16s, box-shadow .16s; }
.deck-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.deck-thumb { position: relative; aspect-ratio: 16/9; border-radius: 11px; overflow: hidden; }
.deck-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 6px 4px; }
.deck-meta b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deck-meta span { font-size: 11px; color: var(--muted); white-space: nowrap; }
.deck-actions { display: flex; gap: 6px; padding: 0 6px 6px; }
.deck-actions .btn { padding: 7px 10px; font-size: 12px; border-radius: 9px; }
.icon-plain { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.icon-plain:hover { background: var(--surface-2); color: var(--ink); }
.empty { text-align: center; padding: 70px 20px; border: 1px dashed var(--line-strong); border-radius: 20px; background: var(--surface); }
.empty-ico { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 18px; display: grid; place-items: center; font-size: 26px; color: var(--accent); background: var(--accent-soft); }
.empty h3 { font-size: 19px; margin-bottom: 8px; }
.empty p { color: var(--muted); font-size: 13.5px; margin-bottom: 20px; }

/* wizard */
.wizard { max-width: 860px; margin: 0 auto; }
.stepper { display: flex; gap: 8px; margin-bottom: 22px; }
.stepper-dot { flex: 1; height: 5px; border-radius: 99px; background: var(--line); }
.stepper-dot.done { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.stepper-dot.active { background: var(--accent); }
.wizard-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow); }
.wizard-card h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 6px; }
.wizard-card .sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.field-lg input { font-size: 17px; padding: 15px 16px; border-radius: 14px; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { min-width: 46px; padding: 9px 12px; border-radius: 10px; cursor: pointer; border: 1px solid var(--line); background: var(--surface-2); font-size: 13.5px; font-weight: 600; color: var(--muted); }
.seg button:hover { border-color: var(--accent); color: var(--ink); }
.seg button.is-active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; color: #fff; }
.tpl-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tpl-opt { border: 1px solid var(--line); background: var(--surface-2); border-radius: 13px; padding: 8px; cursor: pointer; display: flex; flex-direction: column; gap: 8px; }
.tpl-opt.is-active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tpl-opt .tpl-mini { padding: 12px; border-radius: 9px; }
.tpl-opt span { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.wizard-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.wizard-actions .btn-primary { margin-left: auto; }
.progress { margin: 20px 0 4px; }
.progress-bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .4s ease; }
.progress-steps { display: flex; justify-content: space-between; margin-top: 10px; font-size: 11.5px; color: var(--muted); gap: 8px; }
.progress-steps span.done { color: var(--accent); }

.struct-list { display: flex; flex-direction: column; gap: 8px; }
.struct-row { display: flex; align-items: center; gap: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; }
.struct-num { width: 28px; height: 28px; border-radius: 9px; flex: 0 0 auto; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: var(--accent); }
.struct-input { flex: 1; border: 0; background: transparent; outline: none; font-size: 14.5px; padding: 6px 2px; border-bottom: 1px dashed transparent; }
.struct-input:focus { border-bottom-color: var(--accent); }
.struct-del { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 15px; padding: 4px 8px; border-radius: 8px; }
.struct-del:hover { background: rgba(229, 72, 77, .1); color: var(--danger); }
.add-row { border: 1px dashed var(--line-strong); background: transparent; color: var(--muted); padding: 12px; border-radius: 12px; width: 100%; cursor: pointer; font-size: 13.5px; }
.add-row:hover { border-color: var(--accent); color: var(--accent); }

/* deck view */
.deck-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.deck-head h2 { font-size: clamp(22px, 2.6vw, 30px); margin-top: 6px; }
.deck-actions-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.slides-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.thumb { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .16s, box-shadow .16s; }
.thumb:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.thumb-stage { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: 9px; }
.thumb-caption { display: flex; justify-content: space-between; align-items: center; padding: 9px 4px 3px; gap: 8px; }
.thumb-caption b { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thumb-caption span { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; flex: 0 0 auto; }

/* ======================= МОДАЛКИ ======================= */
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8, 10, 18, .55); backdrop-filter: blur(7px); }
.modal-card {
  position: relative; width: min(460px, 96vw); background: var(--surface); border-radius: 20px;
  padding: 26px; box-shadow: var(--shadow-lg); z-index: 1; display: flex; flex-direction: column; gap: 14px;
}
.modal-card.narrow { width: min(400px, 96vw); }
.modal-card h3 { font-size: 21px; }
.modal-x { position: absolute; top: 12px; right: 14px; border: 0; background: transparent; color: var(--muted); font-size: 16px; cursor: pointer; }
.pay-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.viewer-card { width: min(1120px, 96vw); padding: 16px; }
.viewer-layout { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; }
.viewer-stage-wrap { display: flex; flex-direction: column; gap: 10px; }
.viewer-stage { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: 12px; background: var(--surface-2); }
.viewer-nav { display: flex; justify-content: center; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); }
.viewer-panel { display: flex; flex-direction: column; gap: 10px; padding: 6px 4px; }
.viewer-panel .field textarea { font-size: 13.5px; }
.panel-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.panel-actions .btn { padding: 9px 12px; font-size: 13px; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 90;
  background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 12px; font-size: 13.5px; box-shadow: var(--shadow); }

/* ======================= СЛАЙД (1280x720) ======================= */
.slide-host { position: absolute; inset: 0; overflow: hidden; }
.slide {
  width: 1280px; height: 720px; position: relative; overflow: hidden;
  font-family: "Segoe UI", system-ui, Arial, sans-serif; color: var(--s-ink);
  transform-origin: top left;
}
.slide .mesh { position: absolute; inset: 0; }
.slide .art-card { position: absolute; border-radius: 24px; background: var(--s-surface); box-shadow: 0 18px 40px rgba(15, 18, 34, .16); }
.slide .art { position: absolute; border-radius: 22px; overflow: hidden; }
.slide .chip { position: absolute; display: inline-flex; align-items: center; justify-content: center;
  background: var(--s-accent); color: #fff; border-radius: 999px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.slide .title { position: absolute; font-weight: 800; line-height: .98; letter-spacing: -1.6px; color: var(--s-ink); }
.slide .subtitle { position: absolute; color: var(--s-muted); }
.slide .kicker { position: absolute; color: var(--s-accent); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.slide .head { position: absolute; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.slide .row { position: absolute; display: flex; align-items: flex-start; gap: 18px; }
.slide .row-num { width: 42px; height: 42px; border-radius: 50%; background: var(--s-accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: 0 0 auto; }
.slide .row-text { font-size: 22px; line-height: 1.28; color: var(--s-ink); }
.slide .num-big { position: absolute; font-weight: 800; color: var(--s-accent); letter-spacing: -3px; line-height: 1; }
.slide .sec-title { position: absolute; font-weight: 800; letter-spacing: -1px; }
.slide .s-footer { position: absolute; color: var(--s-muted); font-size: 13px; }
.slide .cards { position: absolute; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.slide .card { background: var(--s-surface); border-radius: 18px; padding: 24px; box-shadow: 0 14px 34px rgba(15, 18, 34, .10); display: flex; flex-direction: column; gap: 14px; }
.slide .card-num { width: 40px; height: 40px; border-radius: 50%; background: var(--s-accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.slide .card-text { font-size: 19px; line-height: 1.3; color: var(--s-ink); }
.slide .stats { position: absolute; display: grid; grid-template-columns: repeat(3, 1fr); }
.slide .stat-value { font-size: 64px; font-weight: 800; letter-spacing: -2px; color: var(--s-accent); line-height: 1; }
.slide .stat-label { font-size: 16px; line-height: 1.3; color: var(--s-muted); margin-top: 14px; }
.slide .stat + .stat { border-left: 1px solid rgba(107, 114, 128, .3); padding-left: 26px; }
.slide .quote-card { position: absolute; background: var(--s-surface); border-radius: 26px; box-shadow: 0 22px 48px rgba(15, 18, 34, .14); }
.slide .quote-mark { position: absolute; font-weight: 800; color: var(--s-accent); line-height: 1; }
.slide .quote-text { position: absolute; font-weight: 800; letter-spacing: -1px; line-height: 1.1; color: var(--s-ink); }
.slide .quote-chip { position: absolute; display: inline-flex; align-items: center; justify-content: center; background: var(--s-accent); color: #fff; border-radius: 999px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.slide .close-title { position: absolute; font-weight: 800; letter-spacing: -1.4px; line-height: 1; color: var(--s-ink); }
.slide .close-sub { position: absolute; color: var(--s-muted); }

/* ======================= АДАПТИВ ======================= */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 560px; }
  .feature-grid, .steps, .tpl-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; align-items: center; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); }
  .side-brand { padding: 0; }
  .side-new { width: auto; }
  .side-nav { flex-direction: row; }
  .side-bottom { margin-left: auto; }
  .viewer-layout { grid-template-columns: 1fr; }
  .feature-grid, .steps, .tpl-grid { grid-template-columns: 1fr; }
  .trust { gap: 22px; }
  .float-card { display: none; }
}

/* ---------- живые примеры на лендинге ---------- */
.live-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.live-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 8px;
  box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .18s, box-shadow .18s; }
.live-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.live-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 11px; }
.live-caption { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 8px 4px; }
.live-caption b { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-caption span { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.live-actions { margin-top: 18px; text-align: center; }
.viewer-card.wide { width: min(980px, 96vw); }
.viewer-card.wide .viewer-layout { grid-template-columns: 1fr; }

/* ---------- скелетоны загрузки ---------- */
.sk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.sk-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px; }
.sk-thumb, .sk-line { position: relative; overflow: hidden; background: var(--surface-2); border-radius: 10px; }
.sk-thumb { aspect-ratio: 16 / 9; margin-bottom: 10px; }
.sk-line { height: 10px; margin: 8px 2px; border-radius: 6px; }
.sk-line.short { width: 55%; }
.sk-thumb::after, .sk-line::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.55) 50%, transparent 80%);
  animation: shimmer 1.4s infinite;
}
[data-theme="dark"] .sk-thumb::after, [data-theme="dark"] .sk-line::after {
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.10) 50%, transparent 80%);
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@media (max-width: 860px) { .live-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .hero-visual { display: none; }
  .nav-actions .btn-ghost { display: none; }
  .trust { flex-wrap: wrap; }
  .modal-card { padding: 20px; }
}

/* ---------- V2: плашка тарифа в сайдбаре ---------- */
.side-plan { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--surface-2); display: flex; flex-direction: column; gap: 9px; }
.side-plan-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.side-plan-top b { font-size: 13px; }
.side-plan-top span { font-size: 11px; color: var(--muted); }
.side-plan-btn { padding: 9px 10px; font-size: 12.5px; border-radius: 10px; }

/* ---------- V2: статистика кабинета ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stat-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 2px; }
.stat-tile b { font-size: 22px; letter-spacing: -.02em; }
.stat-tile span { font-size: 11.5px; color: var(--muted); }
.tabs-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.fav { position: absolute; top: 12px; right: 12px; z-index: 2; border: 0; background: rgba(255,255,255,.8); color: var(--muted);
  width: 28px; height: 28px; border-radius: 9px; cursor: pointer; font-size: 15px; line-height: 1; backdrop-filter: blur(6px); }
.fav.on { color: #f5a623; }
[data-theme="dark"] .fav { background: rgba(0,0,0,.35); }
.deck-card { position: relative; }
.deck-sub { font-size: 11px; color: var(--muted); padding: 0 6px 8px; }

/* ---------- V2: страница аккаунта ---------- */
.account-wrap { display: flex; flex-direction: column; gap: 18px; }
.account-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow-sm); }
.account-id { display: flex; align-items: center; gap: 16px; }
.avatar.lg { width: 56px; height: 56px; font-size: 22px; border-radius: 18px; }
.account-id h2 { font-size: 22px; margin-bottom: 4px; }
.account-id p { font-size: 13px; }
.account-actions { display: flex; gap: 10px; }
.account-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.account-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px; }
.account-card h3 { font-size: 16px; }
.account-card p { font-size: 13px; line-height: 1.5; }
.account-card .btn { align-self: flex-start; }
.plan-state { font-size: 12.5px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; align-self: flex-start; }
.account-card.danger { border-color: rgba(229, 72, 77, .25); }
.danger-btn { color: var(--danger); border-color: rgba(229, 72, 77, .3); }
@media (max-width: 900px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .account-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   V3: UX-полировка (desktop + mobile), меню, доступность
   ========================================================= */
:root { --nav-h: 64px; }
html { scroll-padding-top: 80px; }
section[id] { scroll-margin-top: 84px; }
body.locked { overflow: hidden; }

/* фокус и доступность */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline-offset: 2px; }
.btn, .icon-btn, .tab, .side-link, .tpl, .tpl-opt, .seg button { -webkit-tap-highlight-color: transparent; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* навигация: состояние при скролле */
.nav { height: var(--nav-h); transition: box-shadow .2s, background .2s; }
.nav.scrolled { box-shadow: 0 8px 30px rgba(11, 13, 23, .08); }
[data-theme="dark"] .nav.scrolled { box-shadow: 0 8px 30px rgba(0, 0, 0, .5); }

/* бургер и мобильное меню */
.burger { display: none; font-size: 18px; }
.mobile-menu {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 45;
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 4px;
  box-shadow: 0 24px 50px rgba(11, 13, 23, .18);
  animation: menuDown .18s ease;
}
@keyframes menuDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mobile-menu a:not(.btn) { padding: 13px 10px; border-radius: 10px; font-size: 15px; font-weight: 500; }
.mobile-menu a:not(.btn):hover { background: var(--surface-2); }
.mobile-menu .btn { margin-top: 8px; min-height: 46px; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 44; background: rgba(8, 10, 18, .45); backdrop-filter: blur(3px); }
.only-mobile { display: none; }

/* приложение: drawer на мобиле */
.sidebar-backdrop { position: fixed; inset: 0; z-index: 44; background: rgba(8, 10, 18, .45); backdrop-filter: blur(2px); }
.app-topbar { min-height: 60px; }
.top-left { display: flex; align-items: center; gap: 10px; }
.sidebar { transition: transform .22s ease; }

/* тач-таргеты */
@media (pointer: coarse) {
  .btn, .side-link, .seg button, .tab { min-height: 44px; }
  .icon-btn, .modal-x { min-width: 44px; min-height: 44px; }
  .outline-item input, .struct-input { min-height: 40px; }
  .fav { width: 34px; height: 34px; }
}

/* адаптив: планшет и мобила */
@media (max-width: 1024px) {
  .hero { gap: 32px; }
  .price-grid { grid-template-columns: 1fr; max-width: 520px; }
}
@media (max-width: 860px) {
  :root { --nav-h: 58px; }
  .burger { display: inline-flex; align-items: center; justify-content: center; }
  .only-mobile { display: inline-flex; }
  .nav { padding: 10px 16px; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn-ghost { display: none; }
  .nav-actions .btn-primary { padding: 10px 14px; font-size: 13px; }

  /* кабинет: сайдбар как drawer */
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; top: 0; bottom: 0; left: 0; width: min(86vw, 310px);
    height: 100vh; z-index: 50; transform: translateX(-105%);
    border-right: 1px solid var(--line); box-shadow: 0 0 60px rgba(0, 0, 0, .3);
    overflow-y: auto;
  }
  .app.drawer-open .sidebar { transform: none; }
  .app-topbar { padding: 10px 16px; }
  .app-view { padding: 16px; }

  /* лендинг: секции плотнее */
  .section { padding-top: 44px; }
  .hero { padding-top: 24px; }
  .trust { gap: 18px; }
  .live-grid { grid-template-columns: 1fr; }
  .footer { padding: 40px 18px 28px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }

  /* визард: кнопки на всю ширину и липкие */
  .wizard-actions { position: sticky; bottom: 0; background: linear-gradient(180deg, transparent, var(--surface) 35%);
    padding: 12px 0 4px; margin-top: 18px; }
  .wizard-actions .btn { flex: 1; min-height: 46px; }
  .tpl-pick { grid-template-columns: 1fr 1fr; }
  .seg { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }

  /* результат: липкая панель действий */
  .deck-head { gap: 12px; }
  .deck-actions-row { width: 100%; }
  .deck-actions-row .seg { flex: 1 1 100%; }
  .deck-actions-row .btn { flex: 1; min-height: 44px; }
  .slides-grid { grid-template-columns: 1fr 1fr; }

  /* модалки: почти на весь экран */
  .modal { padding: 10px; }
  .modal-card { width: 100%; max-height: 92vh; overflow: auto; }
  .viewer-card { width: 100%; max-height: 96vh; }
  .viewer-layout { grid-template-columns: 1fr; }
  .viewer-stage-wrap { position: static; }
  .viewer-panel { padding-bottom: 8px; }
}
@media (max-width: 560px) {
  .modal { padding: 0; }
  .modal-card { border-radius: 16px 16px 0 0; align-self: end; max-height: 94vh; }
  .modal-card.viewer-card { border-radius: 0; min-height: 100vh; max-height: 100vh; }
  .viewer-stage-wrap { position: sticky; top: 0; background: var(--surface); z-index: 2; padding-top: 6px; }
  .slides-grid { grid-template-columns: 1fr; }
  .deck-meta { flex-wrap: wrap; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .search { width: 100%; }
  .dash-tools { width: 100%; flex-wrap: wrap; }
  .dash-tools .search { flex: 1; min-width: 0; }
  .tabs-row { flex-direction: column; align-items: stretch; }
  .tabs-row .btn { width: 100%; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .price-value { font-size: 38px; }
  .account-head { padding: 16px; }
  .account-actions { width: 100%; }
  .account-actions .btn { flex: 1; }
  .footer { margin-top: 44px; }
  .mobile-menu { padding: 10px 14px 16px; }
}

/* модалки: анимация появления */
.modal:not(.hidden) .modal-card { animation: modalIn .18s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.995); } to { opacity: 1; transform: none; } }

/* тост: не перекрывает кнопки */
.toast { max-width: min(520px, calc(100vw - 32px)); text-align: center; }

/* V3.1: узкие экраны — топбар не переполняется */
@media (max-width: 560px) {
  .app-topbar .plan-pill { display: none; }
  .crumb { font-size: 13px; max-width: 46vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav-actions .icon-btn { width: 34px; height: 34px; }
  .brand-name { font-size: 15px; }
  .beta { display: none; }
}
/* =========================================================
   V4: меню действий, шаги визарда, порядок слайдов
   ========================================================= */
/* размеченный степпер */
.stepper.labeled { display: flex; gap: 10px; background: transparent; margin-bottom: 20px; }
.stepper-item { flex: 1; display: flex; align-items: center; gap: 9px; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-sm); }
.stepper-item i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-style: normal; font-size: 11.5px; font-weight: 800; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); flex: 0 0 auto; }
.stepper-item span { font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stepper-item.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.stepper-item.active i { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; }
.stepper-item.active span { color: var(--ink); }
.stepper-item.done i { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.stepper-item.done span { color: var(--ink); }

/* меню «⋯» на карточке */
.deck-card { overflow: visible; }
.deck-actions { position: relative; }
.dropdown { position: absolute; right: 8px; bottom: 38px; z-index: 12; min-width: 190px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 6px; display: flex; flex-direction: column; gap: 2px;
  animation: menuDown .14s ease; }
.dropdown button { border: 0; background: transparent; text-align: left; padding: 10px 12px;
  border-radius: 8px; font-size: 13px; cursor: pointer; color: var(--ink); }
.dropdown button:hover { background: var(--surface-2); }
.dropdown button.danger { color: var(--danger); }
.dropdown button.danger:hover { background: rgba(229, 72, 77, .1); }

/* перемещение слайдов */
.struct-move { border: 0; background: transparent; color: var(--muted); cursor: pointer;
  width: 30px; height: 30px; border-radius: 8px; font-size: 14px; flex: 0 0 auto; }
.struct-move:hover { background: var(--accent-soft); color: var(--accent); }

@media (max-width: 860px) {
  .stepper.labeled { gap: 6px; }
  .stepper-item { padding: 8px; justify-content: center; }
  .stepper-item span { display: none; }
  .stepper-item i { width: 26px; height: 26px; font-size: 12px; }
  .stepper-item.active i { box-shadow: none; }
  .dropdown { position: fixed; left: 12px; right: 12px; bottom: 12px; top: auto; min-width: 0;
    padding: 10px; border-radius: 16px; }
  .dropdown button { padding: 14px 12px; font-size: 14.5px; }
}
/* =========================================================
   V5: защита от horizontal overflow и премиальная типографика
   ========================================================= */
/* сетки не должны раздуваться от содержимого */
.live-grid, .deck-grid, .slides-grid, .feature-grid, .steps, .tpl-grid, .price-grid, .account-grid { min-width: 0; }
.live-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.deck-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.slides-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.live-card, .deck-card, .thumb, .live-stage, .deck-thumb, .thumb-stage, .slide-host { min-width: 0; max-width: 100%; }
.live-card, .deck-card, .thumb { overflow: hidden; }
.live-caption b, .deck-meta b, .thumb-caption b { min-width: 0; }
.slide-host { contain: layout paint; }
@media (max-width: 860px) {
  .live-grid { grid-template-columns: minmax(0, 1fr); }
  .deck-grid { grid-template-columns: minmax(0, 1fr); }
  .slides-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 861px) and (max-width: 1180px) {
  .slides-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deck-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* hero-мокап: аккуратные пропорции */
.mockup { transform: perspective(1400px) rotateY(-2deg); }
.mini-title { font-size: clamp(13px, 1.25vw, 17px); line-height: 1.1; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mini-slide { padding: 16px 18px; }
.fc1 { left: -26px; bottom: 16%; top: auto; }
.fc2 { right: -22px; top: 12%; bottom: auto; }
@media (max-width: 1180px) { .fc1, .fc2 { display: none; } }

/* степпер: компактный, с линией */
.stepper.labeled { display: flex; align-items: center; gap: 0; margin: 0 auto 22px; max-width: 760px; }
.stepper-item { flex: 1 1 0; display: flex; align-items: center; gap: 10px; padding: 0;
  border: 0; background: transparent; box-shadow: none; min-width: 0; }
.stepper-item:not(:last-child)::after { content: ""; flex: 1 1 auto; height: 2px; border-radius: 2px;
  background: var(--line); margin: 0 12px; min-width: 18px; }
.stepper-item i { width: 26px; height: 26px; }
.stepper-item span { font-size: 12.5px; }
.stepper-item.active { box-shadow: none; }
.stepper-item.active i { box-shadow: 0 6px 16px rgba(109, 91, 255, .35); }

/* превью шаблонов: компактные карточки */
.tpl-pick .tpl-opt { padding: 10px; gap: 10px; }
.tpl-pick .tpl-mini { aspect-ratio: auto; height: 86px; padding: 12px 12px; border-radius: 10px; }
.tpl-pick .tm-chip { width: 28px; height: 5px; }
.tpl-pick .tm-title { height: 9px; margin-top: 9px; width: 62%; }
.tpl-pick .tm-line { height: 5px; margin-top: 6px; width: 78%; }
.tpl-pick .tm-line.short { width: 44%; }
.tpl-opt > span:last-child { text-align: center; }

/* дашборд: компактнее и собраннее */
.stat-row { gap: 10px; }
.stat-tile { padding: 12px 14px; border-radius: 13px; }
.stat-tile b { font-size: 19px; }
.dash-head { margin-bottom: 18px; align-items: center; }
.dash-head h2 { font-size: clamp(22px, 2.2vw, 27px); }
.dash-tools { flex-wrap: nowrap; }
.tabs-row { margin-top: 4px; }
.tabs-row .btn-primary { box-shadow: 0 8px 20px rgba(109, 91, 255, .25); }
/* =========================================================
   V6: компактный кабинет, живые превью шаблонов
   ========================================================= */
/* стат-строка вместо больших плиток */
.stat-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.stat-chip { display: inline-flex; align-items: baseline; gap: 7px; padding: 8px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow-sm); }
.stat-chip b { font-size: 15px; letter-spacing: -.01em; }
.stat-chip span { font-size: 11.5px; color: var(--muted); }

/* тулбар: вкладки + поиск/сортировка */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar-right { display: flex; gap: 8px; align-items: center; }
.toolbar .search { width: 230px; height: 40px; }
.toolbar .select { width: 168px; height: 40px; padding-right: 30px; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 17px, calc(100% - 11px) 17px; background-size: 5px 5px; background-repeat: no-repeat; }
.dash-head .btn-primary { box-shadow: 0 10px 24px rgba(109, 91, 255, .28); }

/* плотнее карточки презентаций */
.deck-grid { grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 16px; }
.deck-card { border-radius: 15px; }
.deck-actions .btn { padding: 8px 12px; }

/* живые превью шаблонов в визарде */
.tpl-pick .tpl-mini.tpl-thumb { height: auto; padding: 0; overflow: hidden; position: relative;
  aspect-ratio: 16/9; border-radius: 10px; border: 1px solid var(--line); }
.tpl-pick .tpl-thumb .slide-host { position: absolute; inset: 0; overflow: hidden; }
.tpl-opt { position: relative; }
.tpl-opt.is-active::after { content: "✓"; position: absolute; top: 8px; right: 8px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--accent); color: #fff; font-size: 11px; display: grid; place-items: center; z-index: 3; }

/* hero: чуть компактнее заголовок */
.hero h1 { font-size: clamp(34px, 4.6vw, 58px); }
.hero-visual .mockup { box-shadow: 0 30px 70px rgba(24, 28, 60, .16); }

/* мобильный кабинет: тулбар в столбик */
@media (max-width: 860px) {
  .toolbar { align-items: stretch; }
  .toolbar-right { width: 100%; }
  .toolbar .search { flex: 1; width: auto; }
  .toolbar .select { width: 46%; }
}
/* мобильный экран презентации: одна прокручиваемая строка действий */
@media (max-width: 860px) {
  .deck-actions-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .deck-actions-row::-webkit-scrollbar { display: none; }
  .deck-actions-row > * { flex: 0 0 auto; }
  .deck-actions-row .seg { flex: 0 0 auto; }
  .deck-actions-row .btn { min-height: 42px; }
}
/* =========================================================
   V7: premium human — Inter, нейтральная палитра, сдержанность
   ========================================================= */
:root {
  --bg: #f6f6f3;
  --bg-soft: #efefea;
  --surface: #ffffff;
  --surface-2: #f7f7f4;
  --ink: #111114;
  --ink-soft: #2c2c31;
  --muted: #6d6d74;
  --line: rgba(17, 17, 20, .10);
  --line-strong: rgba(17, 17, 20, .18);
  --accent: #4f46e5;
  --accent-2: #6d28d9;
  --accent-soft: rgba(79, 70, 229, .10);
  --danger: #c93a3a;
  --shadow-lg: 0 24px 60px rgba(17, 17, 20, .14);
  --shadow: 0 10px 30px rgba(17, 17, 20, .08);
  --shadow-sm: 0 1px 2px rgba(17, 17, 20, .06);
  --r: 16px;
}
[data-theme="dark"] {
  --bg: #0b0b0d;
  --bg-soft: #111114;
  --surface: #141416;
  --surface-2: #19191c;
  --ink: #f4f4f5;
  --ink-soft: #d9d9dd;
  --muted: #9b9ba4;
  --line: rgba(255, 255, 255, .10);
  --line-strong: rgba(255, 255, 255, .20);
  --accent: #8b87ff;
  --accent-2: #a78bfa;
  --accent-soft: rgba(139, 135, 255, .14);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .6);
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
}
body { font-family: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif; letter-spacing: -.006em; }
h1, h2, h3, .head, .title, .sec-title, .price-value, .stat-value { letter-spacing: -.032em; font-weight: 700; }
.nav { background: rgba(246, 246, 243, .82); }
[data-theme="dark"] .nav { background: rgba(11, 11, 13, .82); }

/* фон: почти нейтральный, лёгкое тёплое свечение */
body::before { opacity: .55; }
[data-theme="dark"] body::before { opacity: .7; }

/* иконки */
.ic { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.icon-btn .ic { width: 17px; height: 17px; }
.side-link .ic { width: 17px; height: 17px; opacity: .8; }
.side-link.is-active .ic { opacity: 1; color: var(--accent); }
.side-new .ic { width: 16px; height: 16px; margin-right: 2px; }
.burger .ic { width: 19px; height: 19px; }

/* кнопки: сдержанные, без «градиентного ИИ» */
.btn { border-radius: 10px; font-weight: 600; font-size: 13.5px; letter-spacing: -.005em; }
.btn-primary { background: var(--ink); color: var(--bg); box-shadow: none; }
[data-theme="dark"] .btn-primary { background: #f4f4f5; color: #111114; }
.btn-primary:hover { box-shadow: 0 6px 18px rgba(17, 17, 20, .18); transform: translateY(-1px); }
[data-theme="dark"] .btn-primary:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .5); }
.btn-ghost { background: var(--surface); border-color: var(--line); }
.btn-lg { border-radius: 12px; padding: 14px 22px; font-size: 15px; }
.icon-btn { border-radius: 10px; }
.nav-actions .btn { min-height: 38px; }
.brand-mark { background: linear-gradient(135deg, #4f46e5, #7c3aed); box-shadow: 0 4px 12px rgba(79, 70, 229, .25); }

/* чипы и бейджи: нейтральные */
.chip { background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 10.5px; letter-spacing: .12em; padding: 6px 11px; }
.beta { background: var(--accent-soft); color: var(--accent); }

/* герой: строгая типографика, без градиентного текста */
.hero h1 { font-size: clamp(38px, 4.6vw, 60px); line-height: 1.0; letter-spacing: -.04em; font-weight: 700; }
.hero h1 .grad { background: none; -webkit-text-fill-color: currentColor; color: var(--ink); position: relative; }
.hero h1 .grad::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .09em;
  background: var(--accent); opacity: .35; border-radius: 2px; }
.lead { font-size: 16.5px; line-height: 1.65; color: var(--muted); }
.trust b { font-size: 22px; font-weight: 700; }
.trust span { font-size: 11.5px; }
.section-head h2 { font-size: clamp(26px, 2.9vw, 38px); letter-spacing: -.035em; }
.section-head p { font-size: 15px; }

/* карточки: тонкая рамка вместо теней */
.feature-card, .step-card, .price-card, .tpl-card, .faq details, .deck-card, .thumb, .live-card, .wizard-card, .modal-card {
  box-shadow: var(--shadow-sm); border-color: var(--line);
}
.feature-card:hover, .deck-card:hover, .thumb:hover, .live-card:hover { box-shadow: var(--shadow); }
.feature-card h3, .step-card h3 { font-size: 16px; letter-spacing: -.02em; }
.fi { background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); }
.price-card.featured { box-shadow: var(--shadow); border: 1px solid var(--line-strong); background: var(--surface); }
.price-badge { background: var(--ink); color: var(--bg); letter-spacing: .08em; }
.cta-inner { background: #141416; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.08); }
.cta-inner .btn { background: #fff; color: #111; }

/* приложение: чистая белая панель, нейтральный активный пункт */
.sidebar { background: var(--surface); }
.side-link { font-size: 13px; gap: 11px; padding: 9px 11px; border-radius: 9px; }
.side-link.is-active { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.side-new { background: var(--ink); }
[data-theme="dark"] .side-new { background: #f4f4f5; color: #111114; }
.app-topbar { background: rgba(246, 246, 243, .82); }
[data-theme="dark"] .app-topbar { background: rgba(11, 11, 13, .82); }
.deck-card { border-radius: 14px; padding: 7px; }
.deck-card .deck-actions .btn { font-size: 12.5px; }
.stat-chip { background: var(--surface); box-shadow: none; }
.search, .select { background: var(--surface); border-radius: 9px; font-size: 13px; }
.deck-meta b { font-size: 12.5px; font-weight: 600; }
.deck-meta span, .deck-sub { font-size: 10.5px; }
.stepper-item i { box-shadow: none; }
.stepper-item.active i { background: var(--ink); box-shadow: none; }
[data-theme="dark"] .stepper-item.active i { background: #f4f4f5; color: #111; }
.stepper-item.done i { background: var(--surface-2); color: var(--ink); border-color: var(--line); }

/* аккаунт-чип в шапке */
.nav-account { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; }
.nav-avatar { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--bg); font-size: 11.5px; font-weight: 700; }
#navAccountName { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }

/* поля и фокус */
.field input, .field textarea, .field select { background: var(--surface); border-radius: 10px; }
:focus-visible { outline-color: var(--accent); }
.modal-card { border: 1px solid var(--line); }
.viewer-card { box-shadow: var(--shadow-lg); }
/* V9: шаблоны, справка, тарифы в кабинете */
.tpl-big-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.tpl-big { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px; box-shadow: var(--shadow-sm); }
.tpl-big-stage { position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: 10px; }
.tpl-big-foot { display: flex; flex-direction: column; gap: 8px; padding: 12px 4px 4px; }
.tpl-big-foot b { font-size: 14px; }
.tpl-big-foot span { font-size: 11.5px; color: var(--muted); }
.tpl-big-foot .btn { margin-top: 4px; }
.faq-app { max-width: 820px; }
.app-prices { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1100px; }
.or-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
@media (max-width: 1000px) { .app-prices { grid-template-columns: 1fr; } }/* V11: папки и пейджер */
.folders-row { display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.folders-scroll { display:flex; gap:8px; overflow-x:auto; flex:1; scrollbar-width:none; }
.folders-scroll::-webkit-scrollbar { display:none; }
.chip-btn { border:1px solid var(--line); background:var(--surface); border-radius:999px; padding:7px 12px; font-size:12.5px; font-weight:600; color:var(--muted); cursor:pointer; white-space:nowrap; }
.chip-btn.is-active { background:var(--ink); color:var(--bg); border-color:var(--ink); }
.chip-add { color:var(--accent); border-style:dashed; }
.folder-chip { position:absolute; top:12px; right:44px; font-size:10px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; background:var(--surface); border:1px solid var(--line); color:var(--muted); padding:4px 8px; border-radius:999px; z-index:2; }
.pager { display:flex; align-items:center; justify-content:center; gap:14px; margin-top:22px; font-size:12.5px; color:var(--muted); }/* шаблоны: реальные превью без раздувания сетки */
.tpl-big-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); min-width: 0; }
.tpl-big { min-width: 0; overflow: hidden; }
.tpl-big-stage { min-width: 0; position: relative; contain: layout paint; }
.tpl-big-stage .slide-host { position: absolute; inset: 0; overflow: hidden; }/* шаблоны: 5 в ряд на десктопе */
.tpl-big-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
/* переключатель тем в шапке презентации не ломает строку */
.deck-actions-row .seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.deck-actions-row .seg::-webkit-scrollbar { display: none; }/* пять шаблонов в один ряд на широком экране */
@media (min-width: 1240px) {
  .tpl-big-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Release interface: one quiet shell; deck previews carry the theme colour. */
:root { --bg: #f6f6f8; --surface-2: #f7f7f9; --muted: #63636d; }
[data-theme="dark"] { --bg: #101012; --surface: #171719; --surface-2: #202023; --muted: #aaaab5; }
body::before { display: none; }
body.locked { overflow: hidden; }
button { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
h1[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: 8px; left: 12px; z-index: 200; padding: 12px 18px; background: var(--surface); border: 2px solid var(--accent); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.nav, [data-theme="dark"] .nav { background: var(--bg); backdrop-filter: none; }
.brand-mark { background: var(--accent); box-shadow: none; }
.app-topbar, [data-theme="dark"] .app-topbar { background: var(--bg); backdrop-filter: none; min-height: 64px; }
.app .btn-primary, .app .btn-primary:hover { box-shadow: none; }
.app-view h1 { font-size: 26px; line-height: 1.2; margin: 0 0 8px; letter-spacing: -.035em; }
.app-view h2 { font-size: 18px; }
.dash-head > div, .deck-head > div { min-width: 0; }
.dash-head p, .deck-head p { font-size: 14px; line-height: 1.6; }
.crumb { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-left { min-width: 0; }
.top-right { flex: 0 0 auto; }
.plan-pill { font-size: 12px; font-weight: 500; text-transform: none; letter-spacing: 0; white-space: nowrap; }
.side-plan { box-shadow: none; background: var(--surface-2); }
.side-plan-top { align-items: flex-start; flex-direction: column; gap: 6px; }
.side-plan-top span { font-size: 12px; }
.side-link { min-height: 40px; font-size: 14px; }
.user-card { width: 100%; text-align: left; }
.drawer-close { position: absolute; top: 14px; right: 12px; }
.user-meta { min-width: 0; }
.user-meta b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 152px; }
.user-meta span { font-size: 11px; }
.avatar { background: var(--ink); color: var(--bg); }
.stat-strip { display: flex; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.stat-chip { flex: 1; border: 0; border-radius: 0; padding: 16px 20px; }
.stat-chip + .stat-chip { border-left: 1px solid var(--line); }
.stat-chip b { font-variant-numeric: tabular-nums; font-size: 24px; font-weight: 500; }
.stat-chip span { font-size: 12px; }
.stat-chip.stat-text b { font-size: 16px; }
.toolbar { margin: 20px 0 12px; }
.toolbar-right { min-width: 0; }
.seg button.is-active, .seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); border-color: var(--line-strong); }
.folder-toolbar { display: flex; align-items: center; gap: 8px; margin: 0 0 20px; flex-wrap: wrap; }
.folders-scroll { min-width: 0; gap: 6px; padding: 4px 2px; }
.folder-actions { display: flex; gap: 8px; }
.folder-toolbar > .btn, .folder-actions .btn { padding: 8px 10px; }
.chip-btn.is-active { background: var(--surface-2); color: var(--ink); border-color: var(--line-strong); }
.deck-card { position: relative; overflow: visible; box-shadow: none; cursor: default; display: flex; flex-direction: column; min-width: 0; }
.deck-card:hover, .thumb:hover, .live-card:hover { transform: none; box-shadow: none; border-color: var(--line-strong); }
.deck-thumb, .thumb-stage, .live-stage { display: block; }
.deck-thumb { flex: none; }
.deck-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 7px 5px; }
.deck-meta b { font-size: 14px; max-width: 100%; }
.deck-meta b a { display: block; overflow: hidden; text-overflow: ellipsis; }
.deck-meta span, .deck-sub { font-size: 12px; }
.deck-sub { line-height: 1.5; padding: 0 7px 8px; }
.deck-folder { color: var(--muted); font-size: 12px; padding: 0 7px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deck-actions { padding-top: 7px; margin-top: auto; align-items: center; }
.deck-actions .btn { min-height: 36px; }
.deck-actions .icon-plain { margin-left: auto; min-height: 36px; min-width: 36px; }
.fav { width: 36px; height: 36px; }
.dropdown { overflow: hidden; }
.dropdown button { font-size: 14px; min-height: 40px; }
.loading-state { padding: 32px 0; color: var(--muted); font-size: 14px; }
.inline-error { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; border: 1px solid var(--line-strong); border-left: 3px solid var(--danger); border-radius: 10px; padding: 16px; margin: 12px 0; background: var(--surface); }
.inline-error p { flex: 1 1 240px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
#globalError:not(.hidden) { position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 160; margin: 0 auto; max-width: 900px; }
.empty { padding: 48px 20px; border-style: solid; border-color: var(--line); border-radius: 12px; }
.empty h2 { margin-bottom: 10px; }
.empty p { max-width: 460px; margin: 0 auto 20px; }
.sk-thumb, .sk-line { background: var(--surface-2); animation: none; }
.wizard-card { box-shadow: none; border-radius: 16px; }
.wizard-card h1 { margin-bottom: 10px; }
.wizard-card > .field { margin-top: 24px; }
.field > span, .theme-fieldset legend { font-size: 14px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--ink-soft); }
.field input, .field textarea, .field select { font-size: 14px; min-height: 40px; border-color: var(--line-strong); }
.field input::placeholder, .field textarea::placeholder, .search::placeholder { color: var(--muted); opacity: 1; }
.hint { font-size: 12px; line-height: 1.6; }
.mode-notice { padding: 16px 18px; margin: 16px 0 24px; background: var(--surface-2); border-radius: 10px; font-size: 14px; line-height: 1.5; }
.mode-notice b { font-weight: 600; }
.mode-notice p { color: var(--muted); margin: 4px 0 8px; font-size: 13px; }
.mode-notice a { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.source-import { margin: 24px 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
.source-import input[type="file"] { width: 100%; min-width: 0; padding: 9px; }
.source-import input[type="file"]::file-selector-button { border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 6px; padding: 7px 10px; margin-right: 8px; cursor: pointer; font: inherit; }
.source-status, .source-summary { font-size: 13px; color: var(--muted); line-height: 1.6; margin-top: 10px; overflow-wrap: anywhere; }
.source-details { margin-top: 12px; }
.source-details summary { font-size: 14px; cursor: pointer; padding: 8px 0; }
.source-details .field { margin: 8px 0; }
.source-footer { display: flex; align-items: center; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
.source-footer .btn { min-height: 36px; padding: 7px 10px; font-size: 12px; }
.slide-count-field input { width: 140px; font-variant-numeric: tabular-nums; }
.theme-fieldset { border: 0; padding: 0; margin: 24px 0 0; min-width: 0; }
.theme-fieldset legend { margin-bottom: 12px; }
.tpl-pick { grid-template-columns: repeat(3,minmax(0,1fr)); }
.tpl-opt { min-width: 0; box-shadow: none; }
.tpl-opt > span:last-child { color: var(--ink-soft); font-size: 12px; }
.tpl-opt.is-active { box-shadow: none; outline: 1px solid var(--accent); }
.tpl-pick .tpl-mini.tpl-thumb { display: block; height: auto; aspect-ratio: 16/9; width: 100%; }
.draft-note { font-size: 13px; color: var(--muted); line-height: 1.6; margin-top: 18px; }
.text-btn { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.stepper { list-style: none; padding: 0; }
.stepper-item span { font-size: 13px; }
.struct-row { gap: 8px; padding: 9px; }
.struct-input { min-width: 0; }
.struct-move, .struct-del { min-width: 32px; min-height: 36px; }
.struct-move:disabled, .struct-del:disabled { opacity: .4; }
.struct-num { background: transparent; color: var(--muted); width: 24px; }
.struct-row .struct-del .ic { width: 15px; }
.add-row { margin-top: 12px; }
.generation-status { display: flex; align-items: center; gap: 12px; background: var(--surface-2); padding: 16px; border-radius: 10px; margin-top: 18px; font-size: 14px; line-height: 1.5; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--line-strong); border-top-color: var(--ink); border-radius: 50%; animation: busy-spin 1s linear infinite; flex: none; }
@keyframes busy-spin { to { transform: rotate(360deg); } }
.back-link { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.deck-head h1 { max-width: 780px; overflow-wrap: anywhere; }
.deck-info { color: var(--muted); margin: 0 0 6px; }
.deck-controls { display: flex; align-items: end; gap: 16px; justify-content: space-between; flex-wrap: wrap; margin-bottom: 24px; }
.theme-select { min-width: 200px; }
.deck-secondary-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.deck-secondary-actions .btn { padding: 9px 12px; }
.thumb { text-align: left; width: 100%; box-shadow: none; }
.thumb-caption span { font-size: 11px; letter-spacing: 0; text-transform: none; }
.thumb-caption b { font-size: 13px; }
.modal { padding: 20px; }
.modal-backdrop { backdrop-filter: none; }
.modal-card { max-height: calc(100dvh - 40px); overflow: auto; }
.modal-x { min-width: 36px; min-height: 36px; display: grid; place-items: center; z-index: 4; background: var(--surface); border-radius: 8px; }
.viewer-card { padding-top: 56px; }
.viewer-layout, .viewer-stage-wrap, .viewer-panel { min-width: 0; }
.viewer-stage-wrap { position: static; padding: 0; }
.viewer-panel .step { font-size: 12px; text-transform: none; letter-spacing: 0; }
.viewer-card.wide { min-height: 0; }
.viewer-card.wide .viewer-stage { max-width: 880px; }
.panel-actions { flex-wrap: wrap; }
.action-modal { z-index: 100; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
#actionFields, #profileForm { display: flex; flex-direction: column; gap: 18px; }
.danger-btn { color: var(--danger); }
.btn-primary.danger-btn { background: var(--danger); color: #fff; }
.settings-stack { margin-top: 26px; }
.settings-section { display: grid; grid-template-columns: minmax(220px,.8fr) minmax(300px,1.2fr); gap: 32px; padding: 28px 0; border-top: 1px solid var(--line); align-items: start; }
.settings-description h2 { font-size: 16px; font-weight: 600; margin: 6px 0 10px; }
.settings-description p { font-size: 14px; line-height: 1.6; color: var(--muted); margin-bottom: 12px; }
.settings-panel { display: flex; flex-direction: column; gap: 18px; background: var(--surface); border-radius: 12px; padding: 22px; min-width: 0; }
.settings-panel > .btn { align-self: flex-start; }
.settings-panel .seg button { min-height: 40px; }
.tpl-big { box-shadow: none; }
.tpl-big-foot h2 { font-size: 16px; }
.tpl-big-grid { grid-template-columns: repeat(auto-fill,minmax(230px,1fr)); }
.price-card { box-shadow: none; }
.price-card h2, .price-card h3 { font-size: 21px; }
.price-card .price-sub { margin-top: 12px; }
.app-prices { grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 24px; }
.modes-footnote { margin-top: 20px; }
.live-card { padding: 0; text-align: left; box-shadow: none; }
.live-caption { display: flex; }
.trust { flex-wrap: wrap; }
.trust b { font-size: 20px; }
.trust > div:first-child { min-width: 160px; }
@media (max-width: 1100px) and (min-width: 861px) {
  .deck-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .settings-section { grid-template-columns: 1fr; gap: 12px; }
  .toolbar { flex-wrap: wrap; }
}
@media (max-width: 860px) {
  .app-topbar { min-height: 56px; }
  .app-view h1 { font-size: 24px; }
  .top-right { gap: 6px; }
  .plan-pill { display: none; }
  .sidebar { max-height: 100dvh; height: 100dvh; display: flex; flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
  .side-nav { flex-direction: column; width: 100%; }
  .side-bottom { width: 100%; margin-top: auto; }
  .app-view { padding: 20px 16px; }
  .dash-head { align-items: flex-start; }
  .dash-head > .btn { min-height: 44px; }
  .stat-chip { padding: 14px; }
  .stat-chip b { font-size: 22px; }
  .toolbar { align-items: stretch; flex-wrap: wrap; gap: 12px; }
  .toolbar-right { display: flex; flex: 1 1 100%; gap: 8px; }
  .toolbar-right .search { width: 50%; min-width: 0; }
  .folder-toolbar { gap: 8px; }
  .folder-toolbar .folders-scroll { flex: 1 1 calc(100% - 110px); }
  .folder-actions { flex: 1 1 100%; }
  .settings-section { grid-template-columns: 1fr; gap: 10px; }
  .settings-panel { padding: 18px; }
  .wizard-card { padding: 24px 20px; }
  .wizard-actions { position: static; background: var(--surface); flex-wrap: wrap; }
  .wizard-actions .btn { white-space: normal; }
  .tpl-pick { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .deck-actions-row { flex-wrap: wrap; overflow: visible; gap: 8px; }
  .deck-actions-row > .btn { flex: 1 1 auto; }
  .deck-controls { gap: 14px; }
  .deck-secondary-actions { width: 100%; }
  .deck-secondary-actions .btn { min-height: 44px; }
  .viewer-card { padding: 54px 16px 20px; max-height: calc(100dvh - 20px); }
  .modal { padding: 10px; }
  .modal-card { max-height: calc(100dvh - 20px); }
  .modal-card.viewer-card { min-height: 0; max-height: 100dvh; }
  .viewer-stage-wrap { position: static; }
  .app-prices { grid-template-columns: 1fr; }
  .btn, .icon-btn, .icon-plain, .chip-btn, .fav, .side-link { min-height: 44px; }
  .icon-btn, .fav { min-width: 44px; }
  .struct-row { gap: 4px; padding: 8px 5px; }
  .struct-move, .struct-del { min-width: 36px; min-height: 44px; padding: 4px; }
}
@media (max-width: 560px) {
  .app-topbar .crumb { max-width: calc(100vw - 160px); }
  .stat-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .stat-chip { padding: 14px 10px; }
  .stat-chip b { font-size: 22px; }
  .stat-chip span { font-size: 11px; }
  .stat-chip.stat-text b { font-size: 12px; }
  .deck-grid { grid-template-columns: 1fr; }
  .deck-actions .btn { flex: 1; }
  .wizard-card { padding: 20px 14px; }
  .wizard-card h1 { font-size: 23px; }
  .source-import { padding: 12px; }
  .source-import input[type="file"] { font-size: 12px; }
  .stepper-item span { font-size: 12px; }
  .struct-input { font-size: 14px; }
  .struct-num { width: 20px; }
  .modal { padding: 8px; }
  .modal-card, .modal-card.narrow { border-radius: 16px; align-self: center; width: 100%; }
  .modal-card.viewer-card { border-radius: 12px; width: 100%; max-height: calc(100dvh - 16px); padding: 54px 12px 16px; }
  .modal-card h2 { font-size: 21px; }
  .modal-card p { font-size: 14px; line-height: 1.5; }
  .viewer-layout { gap: 18px; }
  .viewer-panel .panel-actions .btn { flex: 1; }
  .dialog-actions { flex-wrap: wrap; }
  .dialog-actions .btn { flex: 1; white-space: normal; }
  .stat-chip.stat-text { display: flex; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Public account and billing modules share the workspace's surfaces and controls. */
.auth-screen { max-width: 460px; margin: 12px auto 32px; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 30px; }
.auth-heading p { font-size: 14px; line-height: 1.6; margin: 10px 0 24px; }
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.password-toggle { align-self: flex-start; font-size: 13px; margin-top: -8px; color: var(--muted); }
.auth-links { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.auth-links .text-btn { color: var(--ink); }
.auth-status { font-size: 14px; padding: 16px; line-height: 1.6; border-radius: 10px; background: var(--surface-2); }
.public-auth-modal { z-index: 110; }
.public-auth-modal .modal-card { padding-top: 54px; }
.public-auth-modal h2 { font-size: 22px; }
.modal-card h2 { overflow-wrap: anywhere; }
.public-plans { display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 18px; margin-top: 24px; }
.public-plan { display: flex; flex-direction: column; background: var(--surface); padding: 26px; border: 1px solid var(--line); border-radius: 16px; }
.public-plan.current { border-color: var(--line-strong); }
.public-plan h2 { font-size: 20px; }
.public-plan .plan-price { font-size: 32px; font-variant-numeric: tabular-nums; letter-spacing: -.04em; line-height: 1.25; margin: 22px 0 8px; }
.public-plan ul { color: var(--muted); font-size: 14px; line-height: 1.7; padding-left: 18px; margin: 24px 0; }
.public-plan .btn { margin-top: auto; }
.billing-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.billing-summary > div { display: flex; flex-direction: column; padding: 18px; gap: 10px; }
.billing-summary > div + div { border-left: 1px solid var(--line); }
.billing-summary span { font-size: 12px; color: var(--muted); }
.billing-summary b { font-size: 20px; font-weight: 500; font-variant-numeric: tabular-nums; }
.payment-status { margin-top: 28px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.payment-status h2 { margin-bottom: 14px; }
.payment-status p { font-size: 14px; line-height: 1.6; }
.payment-status > .btn { margin-top: 18px; }
@media (max-width: 600px) {
  .auth-screen { margin-top: 0; }
  .auth-card { padding: 24px 18px; }
  .public-plans { grid-template-columns: 1fr; }
  .billing-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .billing-summary > div:nth-child(3) { border-left: 0; }
  .billing-summary > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Visible fields for numeric slide content. */
.editor-stats-row { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(0, 2fr); gap: 10px; }

}
@layer legacy {
/* Landing grid: a single content frame owns every outer edge. */
:root { --site-max: 1360px; --site-gutter: 32px; --site-header-height: 80px; }
#site { --site-text: var(--ink); --site-secondary: var(--ink-soft); background: var(--bg); }
#site .site-frame { width: min(calc(100% - var(--site-gutter) * 2),var(--site-max)); max-width: none; margin-inline: auto; padding-inline: 0; }
#site .nav { position: sticky; top: 0; z-index: 46; height: auto; padding: 0; border: 0; background: var(--bg); box-shadow: none; backdrop-filter: none; } /* taste-skill-ignore: reset inherited shadow and blur. */
#site .nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 80px; }
#site .brand { flex: none; }
#site .brand-mark { background: var(--accent); border-radius: 8px; box-shadow: none; } /* taste-skill-ignore: reset inherited shadow. */
#site .brand-name { font-size: 20px; }
#site .nav-links { display: flex; align-items: center; gap: 24px; color: var(--ink-soft); font-size: 14px; white-space: nowrap; }
#site .nav-links a { padding-block: 12px; }
#site .nav-links a:hover, #site .nav-links a[aria-current="location"] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
#site .nav-actions { gap: 10px; flex: none; }
#site .btn { min-height: 44px; padding: 11px 18px; border-radius: 8px; font-size: 14px; box-shadow: none; transition: background .16s,color .16s,transform .16s; } /* taste-skill-ignore: reset inherited shadow. */
#site .btn:hover { transform: translateY(-1px); box-shadow: none; } /* taste-skill-ignore: reset inherited shadow. */
#site .btn-primary { background: var(--ink); color: var(--bg); border: 0; }
#site .btn-ghost { background: var(--surface); border-color: transparent; }
#site .icon-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 0; border-radius: 8px; background: var(--surface); }
#site #siteBurger { display: none; }
#site a, #site button, #site textarea { -webkit-tap-highlight-color: transparent; }
#site h1, #site h2, #site h3, #site p { margin: 0; }
#site h1 { font-size: clamp(40px,4.1vw,58px); line-height: 1.02; letter-spacing: -.05em; font-weight: 650; }
#site h2 { font-size: clamp(30px,3.2vw,44px); line-height: 1.08; letter-spacing: -.045em; font-weight: 600; }
#site h3 { font-size: 22px; line-height: 1.25; letter-spacing: -.025em; font-weight: 600; }
#site p { font-size: 17px; line-height: 1.6; color: var(--site-secondary); }
#site .hero { display: grid; grid-template-columns: minmax(300px,.65fr) minmax(0,1.35fr); gap: 48px; align-items: center; padding-top: 40px; padding-bottom: 24px; }
#site .hero-copy { min-width: 0; }
#site .hero-copy .lead { font-size: 18px; line-height: 1.55; margin-top: 24px; max-width: 470px; color: var(--ink-soft); }
#site .hero-form { margin-top: 24px; }
#site .hero-form > label { display: block; margin-bottom: 10px; color: var(--ink); font-size: 15px; font-weight: 500; }
#site .hero-form textarea { display: block; width: 100%; min-height: 106px; resize: vertical; padding: 18px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 17px; line-height: 1.5; color: var(--ink); }
#site .hero-form textarea::placeholder { color: var(--muted); }
#site .hero-form-actions { display: flex; margin-top: 12px; }
#site .hero-form-actions .btn { min-height: 50px; padding-inline: 22px; }
#site .hero-access-note { margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--muted); }
#site .hero-mode-note { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--muted); }
#site .topic-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 24px; font-size: 13px; line-height: 1.5; }
#site .topic-examples > span { flex-basis: 100%; color: var(--muted); }
#site .topic-examples button { padding: 4px 0; border: 0; background: none; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; font-size: 13px; }
#site .hero-visual { display: block; min-width: 0; order: initial; max-width: none; }
#site .preview-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
#site .preview-heading .text-btn { font-size: 13px; color: var(--ink); white-space: nowrap; }
#site .hero-preview-stage { position: relative; overflow: hidden; width: 100%; aspect-ratio: 16/9; border-radius: 10px; background: var(--surface); }
#site .hero-cover { display:block; width:100%; height:100%; object-fit:contain; }
#site .hero-preview-controls { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
#site .hero-preview-controls .icon-btn { min-width: 36px; min-height: 36px; width: 36px; height: 36px; }
#site .hero-preview-controls .preview-caption { margin-left: auto; font-size: 13px; text-align: right; }
#site .preview-note { font-size: 13px; color: var(--muted); margin-top: 12px; }
#site .section { padding-top: 112px; }
#site .section-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 32px; }
#site .section-heading > div { max-width: 700px; }
#site .section-heading p, #site .section-intro p { margin-top: 20px; }
#site .section-heading > .text-btn { flex: none; font-size: 15px; line-height: 1.5; margin-bottom: 2px; }
#site .text-link { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink); margin-top: 24px; text-decoration: underline; text-underline-offset: 5px; }
#site .process-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 96px; }
#site .process-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 32px; }
#site .process-list li { padding: 0; }
#site .process-list p { margin-top: 10px; max-width: 560px; }
#site .live-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
#site .live-card { border: 0; background: none; padding: 0; border-radius: 0; box-shadow: none; transform: none; } /* taste-skill-ignore: reset inherited shadow. */
#site .live-stage { border-radius: 8px; }
#site .live-caption { padding: 16px 0 0; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
#site .live-caption b { font-size: 17px; font-weight: 500; white-space: normal; }
#site .live-caption span { font-size: 13px; }
#site .live-card:hover .live-caption b { text-decoration: underline; text-underline-offset: 4px; }
#site .landing-themes { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; }
#site .landing-theme { min-width: 0; padding: 0; display: flex; flex-direction: column; align-items: stretch; gap: 12px; border: 0; background: none; cursor: pointer; text-align: left; color: var(--ink-soft); font-size: 15px; }
#site .landing-theme-stage { display: block; position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: 8px; }
#site .landing-theme[aria-pressed="true"] > span:last-child { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; color: var(--ink); }
#site .theme-choice { font-size: 14px; color: var(--muted); margin-top: 24px; }
#site .landing-plans { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
#site .landing-plan { display: flex; flex-direction: column; gap: 16px; background: var(--surface); border: 0; border-radius: 12px; padding: 32px; min-width: 0; }
#site .landing-plan .landing-price { font-size: 44px; line-height: 1.05; letter-spacing: -.045em; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; margin-top: 12px; }
#site .landing-plan .landing-period { font-size: 14px; margin-top: -10px; }
#site .landing-plan ul { margin: 4px 0 16px; padding: 0 0 0 20px; font-size: 16px; line-height: 1.8; color: var(--ink-soft); }
#site .landing-plan .btn { align-self: flex-start; margin-top: auto; }
#site .pricing-note { font-size: 14px; margin-top: 20px; max-width: 800px; }
#site .questions-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 96px; }
#site .faq { display: flex; flex-direction: column; gap: 8px; }
#site .faq details { background: var(--surface); border: 0; border-radius: 8px; box-shadow: none; padding: 0 24px; } /* taste-skill-ignore: reset inherited shadow. */
#site .faq summary { min-height: 72px; display: flex; align-items: center; gap: 20px; font-size: 18px; font-weight: 500; line-height: 1.4; padding: 20px 0; color: var(--ink); }
#site .faq details p { padding: 0 0 24px; font-size: 16px; }
#site .final-section { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding-bottom: 96px; }
#site .final-section h2 { font-size: clamp(36px,4vw,54px); }
#site .final-section p { margin-bottom: 24px; }
#site .footer { padding-top: 40px; padding-bottom: 40px; margin-top: 0; border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 32px 64px; }
#site .foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
#site .foot-brand p, #site .foot-note { font-size: 14px; color: var(--muted); }
#site .footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; font-size: 15px; align-self: start; }
#site .footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
#site .foot-note { grid-column: 1/-1; padding: 0; border: 0; text-align: left; }
#site [id] { scroll-margin-top: calc(var(--site-header-height) + 28px); }
#site h2[tabindex="-1"]:focus { outline: none; }
#site .mobile-menu { z-index: 45; position: fixed; top: var(--site-header-height); left: 0; right: 0; border-radius: 0; padding: 0; background: var(--surface); max-height: calc(100dvh - var(--site-header-height)); overflow-y: auto; box-shadow: 0 20px 40px rgba(0,0,0,.12); animation: none; } /* taste-skill-ignore: this menu floats over the page. */
#site .mobile-menu-inner { display: flex; flex-direction: column; align-items: stretch; padding-block: 20px 28px; }
#site .mobile-menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
#site .mobile-menu-inner > a { min-height: 52px; padding: 14px 0; font-size: 18px; border: 0; }
#site .mobile-menu-inner > .btn { align-self: flex-start; margin-top: 20px; }
#site .drawer-backdrop { background: rgba(0,0,0,.32); backdrop-filter: none; } /* taste-skill-ignore: reset inherited blur. */
#site .reveal-once.is-revealed { animation: landing-arrive .55s both; }
@keyframes landing-arrive { from { opacity:.7; transform:translateY(12px); } to { opacity:1; transform:none; } }
@media (max-width: 1280px) { #site .hero { gap: 40px; } #site .nav-inner { gap: 22px; } #site .nav-links { gap: 20px; } }
@media (max-width: 1024px) {
  #site .nav-links { display: none; }
  #site #siteBurger { display: inline-flex; }
  #site .hero { grid-template-columns: minmax(280px,.65fr) minmax(0,1.35fr); gap: 32px; padding-top: 40px; }
  #site h1 { font-size: 48px; }
  #site .hero-copy .lead { font-size: 17px; }
  #site .process-section, #site .questions-section { gap: 48px; }
  #site .section { padding-top: 88px; }
}
@media (max-width: 860px) {
  :root { --site-gutter: 24px; }
  #site .nav-inner { min-height: 72px; }
  #site .nav-actions .btn-ghost { display: inline-flex; }
  #site .hero { grid-template-columns: 1fr; gap: 40px; }
  #site .hero-copy { max-width: 640px; }
  #site .hero-copy .lead { max-width: 600px; }
  #site h1 { font-size: 56px; }
  #site .hero-visual { width: 100%; max-width: 680px; justify-self: center; }
  #site .hero-form textarea { min-height: 96px; }
  #site .process-section, #site .questions-section { grid-template-columns: 1fr; gap: 32px; }
  #site .section-intro { max-width: 620px; }
  #site .section-heading { align-items: flex-start; flex-direction: column; gap: 20px; }
  #site .live-grid { grid-template-columns: 1fr 1fr; }
  #site .live-card:last-child { display: block; }
  #site .landing-themes { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px 16px; }
  #site .landing-plan { padding: 24px; }
  #site .final-section { gap: 32px; }
}
@media (max-width: 560px) {
  :root { --site-gutter: 20px; }
  #site .nav-inner { gap: 12px; min-height: 68px; }
  #site .brand-name { font-size: 17px; }
  #site .brand { gap: 8px; }
  #site .brand-mark { width: 30px; height: 30px; font-size: 16px; }
  #site .nav-actions { gap: 8px; }
  #site .nav-start, #site #themeToggle { display: none; }
  #site .nav-actions .btn-ghost { background: none; padding-inline: 6px; }
  #site .hero { padding-top: 32px; padding-bottom: 0; gap: 36px; }
  #site h1 { font-size: 44px; }
  #site h2 { font-size: 32px; }
  #site h3 { font-size: 20px; }
  #site p { font-size: 16px; }
  #site .hero-copy .lead { font-size: 17px; margin-top: 20px; }
  #site .hero-form { margin-top: 28px; }
  #site .hero-form textarea { font-size: 16px; min-height: 106px; padding: 14px; }
  #site .hero-form-actions .btn { width: 100%; }
  #site .hero-access-note { font-size: 13px; }
  #site .topic-examples { margin-top: 20px; gap: 8px 16px; }
  #site .topic-examples button { min-height: 36px; }
  #site .preview-heading { gap: 12px; }
  #site .preview-heading .text-btn { font-size: 13px; }
  #site .preview-caption { display: none; }
  #site .hero-preview-controls .icon-btn { width: 44px; height: 44px; }
  #site .preview-note { font-size: 13px; }
  #site .section { padding-top: 72px; }
  #site .process-list { gap: 26px; }
  #site .live-grid { grid-template-columns: 1fr; gap: 28px; }
  #site .live-card:last-child { display: block; }
  #site .landing-themes { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #site .landing-theme { font-size: 14px; }
  #site .landing-plans { grid-template-columns: 1fr; gap: 16px; }
  #site .landing-plan { padding: 28px 24px; }
  #site .landing-plan .landing-price { font-size: 38px; }
  #site .faq details { padding-inline: 20px; }
  #site .faq summary { font-size: 17px; }
  #site .final-section { grid-template-columns: 1fr; gap: 20px; padding-bottom: 64px; }
  #site .final-section h2 { font-size: 36px; }
  #site .footer { grid-template-columns: 1fr; padding-block: 24px 32px; gap: 28px; }
  #site .footer-links { gap: 16px; font-size: 14px; }
}
@media (max-width: 860px) {
  #site #demoBtn,
  #site .section-heading > .text-btn,
  #site .text-link,
  #site .footer-links > a { display: inline-flex; align-items: center; min-height: 44px; }
  #site .topic-examples button { min-height: 44px; }
  #site .hero-preview-controls .icon-btn { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { #site .reveal-once.is-revealed { animation:none; } }

/* A real presentation is the main working stage. */
#site .hero-supplement { grid-column:1/-1;display:flex;flex-wrap:wrap;gap:16px 32px;align-items:center; }
#site .hero-supplement .hero-mode-note { flex-basis:100%;margin:0;font-size:14px; }
#site .hero-supplement .topic-examples { margin:0;flex:1; }
#site .hero-output-links { display:flex;flex-wrap:wrap;gap:12px 24px; }
#site .hero-output-links a { display:flex;align-items:center;min-height:44px;font-size:14px;text-decoration:underline;text-underline-offset:4px; }
#site .hero-example-label { display:flex;align-items:center;gap:12px;width:100%;color:var(--ink); }
#site .hero-example-label select { min-width:0;width:100%;min-height:44px;border:0;background:var(--surface);color:var(--ink);padding:8px 12px;font:inherit;border-radius:8px; }
#site .preview-heading #demoBtn { min-height:44px; }
#site .hero-preview-controls .icon-btn { width:44px;height:44px;min-width:44px;min-height:44px; }
#site .hero-preview-stage { border-radius:4px; }
#site .hero-preview-controls .preview-caption { max-width:65%; }
#site .preview-note { font-size:14px; }
#site .live-grid { grid-template-columns:repeat(2,minmax(0,1fr));gap:40px 28px; }
#site .landing-catalog-card { min-width:0; }
#site .landing-catalog-card h3 { margin-top:12px;max-width:30ch; }
#site .landing-catalog-card .catalog-card-meta { margin-top:14px; }
#site .landing-style { display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,.7fr);gap:40px;align-items:start; }
#site .landing-style-stage { position:relative;aspect-ratio:16/9;width:100%;overflow:hidden;background:var(--surface);border-radius:4px; }
#site .landing-style-controls .field { margin:0 0 24px; }
#site .landing-style-controls select { min-height:48px; }
#site .style-control-label { font-size:15px;color:var(--ink);margin-bottom:12px; }
#site .landing-themes { display:flex;flex-wrap:wrap;gap:8px; }
#site .landing-theme { display:inline-flex;justify-content:center;align-items:center;padding:10px 14px;min-height:44px;border-radius:8px;background:var(--surface);font-size:14px;color:var(--ink); }
#site .landing-theme[aria-pressed="true"] { background:var(--accent);color:#fff; }
#site .landing-style-controls>.btn { margin-top:24px; }
#site .landing-plan-pro { background:var(--accent-soft); }
#site .landing-plan ul { font-size:15px;line-height:1.65; }
#site .landing-plan li+li { margin-top:6px; }
#site .pricing-explanation { margin-top:16px;font-size:14px; }
#site .landing-plan .btn[disabled] { opacity:1;color:var(--muted);background:var(--surface-2);cursor:not-allowed; }
#site .nav-links a,#site .footer-links a { display:inline-flex;align-items:center;min-height:44px; }
#site .topic-examples button { min-height:44px; }
@media(max-width:1023px) { #site .landing-plans { grid-template-columns:1fr; } }
@media(max-width:860px) { #site .landing-style { grid-template-columns:1fr;gap:24px; } #site .landing-style-controls .field { max-width:400px; } }
@media(max-width:560px) {
 #site .hero { padding-top:20px;gap:20px; }
 #site h1 { font-size:38px; }
 #site .hero-copy .lead { font-size:16px;margin-top:12px;line-height:1.5; }
 #site .hero-form { margin-top:16px; }
 #site .hero-form>label { margin-bottom:8px; }
 #site .hero-form textarea { min-height:68px;height:68px;padding:12px; }
 #site .hero-access-note { font-size:13px;margin-top:10px; }
 #site .hero-form-actions .btn { min-height:46px; }
 #site .preview-heading { margin-bottom:8px; }
 #site .hero-example-label { gap:8px;font-size:13px; }
 #site .hero-example-label select { font-size:14px; }
 #site .preview-heading #demoBtn { font-size:13px; }
 #site .hero-preview-controls { margin-top:8px; }
 #site .hero-supplement { gap:12px; }
 #site .hero-supplement .hero-mode-note { font-size:13px; }
 #site .hero-output-links { gap:4px 16px; }
 #site .live-grid { grid-template-columns:1fr; }
 #site .section { padding-top:80px; }
 #site .section-heading { margin-bottom:24px; }
 #site .landing-style-controls>.btn { width:100%; }
}
@media(prefers-reduced-motion:reduce) { #site *,#site *::before,#site *::after { animation:none!important;transition:none!important;scroll-behavior:auto!important; } }

#site .catalog-example-title {font-size:20px;font-weight:600;line-height:1.35;color:var(--ink);margin-top:12px;}

@media(min-width:861px) and (max-width:1100px){#site h1{font-size:40px;}}

#site #liveExamples.live-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
@media(max-width:560px){#site #liveExamples.live-grid{grid-template-columns:1fr;}}

#site .landing-theme[aria-pressed="true"]{background:var(--ink);color:var(--bg);}
#site .footer-legal-links>a{font-size:14px;}
#site .pricing-note,#site .pricing-explanation,#site .hero-supplement .hero-mode-note{max-width:75ch;}
#site .landing-catalog-card .catalog-example-title{font-size:20px;font-weight:600;line-height:1.35;color:var(--ink);}

#site .brand,#site .text-link{min-height:44px;}

}
@layer legacy {
.guest-intro { margin: 0 0 22px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.guest-intro p { font-size: 14px; line-height: 1.6; }
.guest-next-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.guest-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.guest-check { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px; margin-bottom: 20px; background: var(--surface-2); border-radius: 10px; }
.guest-check p { font-size: 14px; line-height: 1.6; flex: 1 1 180px; }
.guest-check .text-btn { font-size: 14px; }
#guestTurnstile { flex: 1 1 100%; }
.guest-result { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 24px; border-radius: 12px; background: var(--surface-2); margin: 0 0 24px; }
.guest-result b { font-size: 15px; font-weight: 600; }
.guest-result p { margin-top: 6px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.guest-result > .btn { flex: none; }
@media (max-width: 650px) { .guest-result { flex-direction: column; align-items: flex-start; padding: 20px; gap: 16px; } .guest-result > .btn { width: 100%; } }

}
@layer legacy {
.reviews-page { padding-block: 64px 80px; min-height: 60vh; }
#site .reviews-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:48px; padding-bottom:40px; }
#site .reviews-heading h1 { font-size:48px; line-height:1.1; margin-top:20px; }
#site .reviews-heading p { max-width:660px; margin-top:20px; }
#reviewsSummary { display:flex; flex-direction:column; flex:none; gap:10px; padding-top:44px; }
#reviewsSummary>b { font-size:48px; line-height:1; font-weight:500; font-variant-numeric:tabular-nums; }
#reviewsSummary small { font-size:20px; color:var(--muted); }
#reviewsSummary>span { font-size:13px; color:var(--muted); }
.reviews-list { display:grid; grid-template-columns:1fr 1fr; gap:0 48px; }
.review-entry { min-width:0; padding-block:28px; border-top:1px solid var(--line); }
.review-entry-head { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; }
.review-entry-head>div { display:flex; flex-direction:column; gap:8px; min-width:0; }
.review-entry-head b { font-size:16px; font-weight:500; overflow-wrap:anywhere; }
.review-entry-head>div>span { font-size:12px; color:var(--muted); }
.review-rating { display:inline-flex; align-items:center; flex:none; gap:2px; color:var(--muted); }
.review-rating .ic { width:14px; height:14px; }
.review-rating .filled { fill:var(--ink); stroke:var(--ink); }
.review-rating>span { margin-left:8px; font-size:12px; white-space:nowrap; font-variant-numeric:tabular-nums; }
#site p.review-body,.review-body { margin-top:20px; color:var(--ink-soft); font-size:16px; line-height:1.7; white-space:pre-wrap; overflow-wrap:anywhere; }
#site .reviews-policy { max-width:760px; margin-top:40px; color:var(--muted); font-size:13px; }
.reviews-empty { grid-column:1/-1; background:var(--surface); border-radius:12px; padding:40px; }
#site .reviews-empty h2 { font-size:28px; }
#site .reviews-empty p { margin:16px 0 24px; max-width:650px; }
.feedback-modal .modal-card { width:min(560px,100%); padding:48px 32px 28px; }
.feedback-lead { margin:16px 0 24px; font-size:14px; line-height:1.65; color:var(--ink-soft); }
.feedback-existing { background:var(--surface-2); padding:12px 14px; border-radius:8px; font-size:13px; line-height:1.5; margin-bottom:20px; }
#feedbackForm { display:flex; flex-direction:column; gap:20px; }
.rating-field { margin:0; padding:0; border:0; }
.rating-field legend { font-size:14px; margin-bottom:12px; }
.rating-options { display:flex; gap:10px; }
.rating-options label { flex:1; position:relative; cursor:pointer; }
.rating-options input { position:absolute; width:1px; height:1px; opacity:0; }
.rating-options label>span { display:flex; justify-content:center; align-items:center; gap:8px; min-height:52px; border:1px solid var(--line-strong); border-radius:8px; color:var(--ink-soft); }
.rating-options b { font-size:15px; font-weight:500; }
.rating-options .ic { width:18px; height:18px; }
.rating-options input:checked+span { background:var(--ink); color:var(--bg); border-color:var(--ink); }
.rating-options input:checked+span .ic { fill:currentColor; }
.rating-options input:focus-visible+span { outline:2px solid var(--accent); outline-offset:3px; }
.feedback-consent { display:flex; align-items:flex-start; gap:12px; font-size:13px; line-height:1.55; cursor:pointer; }
.feedback-consent input { width:18px; height:18px; flex:none; margin-top:2px; accent-color:var(--ink); }
.feedback-consent small { display:block; color:var(--muted); margin-top:5px; font-size:12px; }
.feedback-actions { display:flex; justify-content:flex-end; align-items:center; flex-wrap:wrap; gap:10px; margin-top:4px; }
.feedback-withdraw { align-self:flex-start; color:var(--muted); font-size:13px; }
@media(max-width:860px) { #site .reviews-heading { flex-direction:column; gap:24px; } #reviewsSummary { padding-top:0; } .reviews-list { gap:0 28px; } }
@media(max-width:560px) { .reviews-page { padding-block:32px 48px; } #site .reviews-heading h1 { font-size:36px; } .reviews-list { grid-template-columns:1fr; } .review-entry-head { flex-wrap:wrap; gap:14px; } .reviews-empty { padding:28px 22px; } .feedback-modal .modal-card { padding:48px 20px 24px; } .rating-options { gap:6px; } .rating-options label>span { flex-direction:column; gap:4px; min-height:58px; } .feedback-actions .btn { flex:1; } }

}
@layer legacy {
.admin-page { min-width:0; }
.admin-heading { display:flex; justify-content:space-between; align-items:center; gap:24px; margin-bottom:24px; }
.admin-scope { font-size:12px; color:var(--muted); margin-bottom:8px; }
.admin-nav { display:flex; flex-wrap:wrap; gap:8px 24px; border-bottom:1px solid var(--line); margin-bottom:28px; }
.admin-nav a { min-height:46px; display:inline-flex; align-items:center; font-size:14px; color:var(--ink-soft); border-bottom:2px solid transparent; }
.admin-nav a[aria-current] { color:var(--ink); border-bottom-color:var(--ink); }
.admin-summary { display:flex; flex-wrap:wrap; gap:28px 44px; padding:0 0 28px; }
.admin-summary>div { display:flex; flex-direction:column; gap:10px; min-width:108px; }
.admin-summary span { font-size:12px; color:var(--muted); }
.admin-summary b { font-size:30px; line-height:1.15; font-weight:500; font-variant-numeric:tabular-nums; }
.admin-columns { display:grid; grid-template-columns:1.25fr 1fr; gap:24px; }
.admin-panel { min-width:0; background:var(--surface); border:1px solid var(--line); border-radius:10px; padding:22px; }
.admin-panel>.hint { margin-top:18px; line-height:1.6; }
.admin-section-head { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; }
.admin-section-head h2 { font-size:16px; font-weight:600; margin:0; }
.admin-section-head a { font-size:13px; color:var(--muted); white-space:nowrap; }
.admin-service { display:flex; justify-content:space-between; align-items:center; gap:20px; min-height:52px; padding-block:10px; border-top:1px solid var(--line); }
.admin-service>div { display:flex; flex-direction:column; gap:5px; min-width:0; }
.admin-service b { font-size:13px; font-weight:500; }
.admin-service>div>span { font-size:12px; color:var(--muted); overflow-wrap:anywhere; }
.service-state { display:inline-flex; align-items:center; gap:7px; flex:none; font-size:12px; color:var(--muted); }
.service-state:before { content:""; width:6px; height:6px; border-radius:50%; background:var(--muted); }
.service-state.ready { color:var(--ink-soft); }
.service-state.ready:before { background:#478067; }
.admin-queue-number { font-size:44px; font-weight:500; line-height:1.2; margin:22px 0 16px; font-variant-numeric:tabular-nums; }
.admin-panel>.muted { font-size:14px; line-height:1.65; margin-bottom:24px; max-width:420px; }
.admin-recent { margin-top:24px; }
.admin-recent .admin-table { min-width:0; }
.admin-table-wrap { width:100%; overflow:auto; border-radius:6px; }
.admin-table { width:100%; border-collapse:collapse; font-size:13px; min-width:640px; }
.admin-table th { text-align:left; color:var(--muted); font-weight:400; font-size:12px; padding:10px 14px 14px 0; white-space:nowrap; }
.admin-table td { padding:14px 14px 14px 0; border-top:1px solid var(--line); vertical-align:middle; line-height:1.45; }
.admin-table td:last-child,.admin-table th:last-child { padding-right:0; }
.admin-table b { font-weight:500; }
.admin-table .numeric { text-align:right; font-variant-numeric:tabular-nums; }
.table-secondary { display:block; font-size:12px; color:var(--muted); margin-top:5px; }
.admin-empty { padding:32px; background:var(--surface); border-radius:10px; }
.admin-empty h2 { font-size:20px; line-height:1.3; margin-bottom:12px; }
.admin-empty p,.admin-empty-note { color:var(--muted); font-size:14px; line-height:1.7; }
.admin-empty .btn { margin-top:20px; }
.admin-search { display:flex; align-items:end; gap:12px; max-width:640px; }
.admin-search .field { flex:1; min-width:0; }
.admin-search .btn { min-height:44px; }
.admin-search .text-btn { align-self:center; margin-top:22px; }
.admin-list-count { font-size:13px; color:var(--muted); margin:24px 0 12px; }
.admin-review-filter { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:20px; }
.admin-review-filter .field { min-width:220px; }
.admin-review-filter>span { font-size:13px; color:var(--muted); padding-bottom:12px; }
.admin-review-list { margin-top:24px; max-width:900px; }
.admin-review-item { border-top:1px solid var(--line); padding:24px 0; }
.admin-review-item .review-entry { border:0; padding:0; }
.admin-moderation-actions { display:flex; gap:10px; margin-top:20px; }
.review-status { margin-top:16px; }
.admin-settings .settings-section:first-child { padding-top:0; border-top:0; }
.admin-settings-footer { display:flex; align-items:center; justify-content:space-between; gap:24px; padding-top:20px; }
.admin-settings-footer .hint { max-width:570px; line-height:1.65; }
.admin-settings-footer .btn { flex:none; }
.admin-billing>.admin-panel { margin-bottom:24px; }
.admin-billing>.admin-section-head { align-items:flex-start; }
.admin-billing>.admin-section-head .hint { max-width:660px; line-height:1.6; }
.admin-billing .admin-section-head>span { font-size:13px; white-space:nowrap; }
.admin-billing .admin-summary { gap:24px 36px; }
.admin-billing .admin-summary>div { flex:1 1 180px; max-width:300px; }
.admin-billing .admin-summary span { line-height:1.5; }
.admin-billing-table { min-width:820px; table-layout:fixed; }
.admin-billing-table th:first-child { width:24%; }
.admin-billing-table th:last-child { width:34%; }
.admin-billing-table td { vertical-align:top; overflow-wrap:anywhere; }
.admin-billing-id { overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.admin-billing-health {display:grid;grid-template-columns:repeat(auto-fit,minmax(126px,1fr));gap:12px;margin:14px 0 0;}
.admin-billing-health>div {min-width:0;padding:12px;border:1px solid var(--line);border-radius:8px;}
.admin-billing-health dt {color:var(--muted);font-size:13px;line-height:1.4;}
.admin-billing-health dd {margin:6px 0 0;color:var(--ink);font-weight:700;line-height:1.3;}
.admin-billing-health .is-problem {border-color:var(--ink-soft);}
.admin-payment-table {min-width:950px;table-layout:fixed;}
.admin-payment-table th:first-child {width:27%;}
.admin-payment-table th:nth-child(2) {width:17%;}
.admin-payment-table th:nth-child(3) {width:23%;}
.admin-payment-table td {vertical-align:top;overflow-wrap:anywhere;}
.admin-payment-list .admin-section-head {margin-bottom:12px;}
.admin-payment-list .admin-section-head .hint {margin:6px 0 0;}
.admin-payment-list>p.hint {max-width:75ch;line-height:1.6;margin-bottom:16px;}
.admin-payment-list [data-payments-status]:empty {display:none;}
.admin-payment-list [data-payments-refresh],.admin-payment-pager>.btn {min-height:44px;}
.admin-payment-test {display:inline-block;margin-left:8px;padding:2px 7px;border:1px solid var(--line-strong);border-radius:5px;font-size:11px;line-height:1.5;color:var(--ink-soft);}
.admin-payment-pager {gap:12px;}
.admin-npd-print {display:inline-flex;align-items:center;min-height:44px;max-width:100%;font-size:13px;text-decoration:underline;text-underline-offset:3px;}
.admin-npd-print:focus-visible {outline:2px solid var(--accent);outline-offset:2px;border-radius:2px;}
.admin-billing-note { white-space:pre-wrap; overflow-wrap:anywhere; }
.admin-billing-action summary { display:flex; align-items:center; min-height:44px; cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
.admin-billing-action summary::before { content:"+"; margin-right:8px; }
.admin-billing-action[open] summary::before { content:"−"; }
.admin-billing-action summary:focus-visible { outline:2px solid var(--ink); outline-offset:2px; border-radius:2px; }
.admin-billing-action form { display:grid; gap:14px; padding-top:10px; }
.admin-billing-action .field { min-width:0; margin:0; }
.admin-billing-action .field>span { font-size:13px; }
.admin-billing-action textarea,.admin-billing-action select { width:100%; min-height:44px; font-size:14px; }
.admin-billing-action textarea { resize:vertical; }
.admin-billing-action textarea[readonly] { color:var(--ink-soft); }
.admin-billing-action .hint { font-size:12px; line-height:1.6; }
.admin-billing-action .btn,.admin-billing>.admin-section-head .btn { min-height:44px; }
.admin-billing-feedback { margin:0; font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
.admin-billing-feedback.is-error { border-left:2px solid currentColor; padding-left:10px; }
@media(max-width:640px) {
  .admin-billing>.admin-section-head,.admin-billing .admin-panel>.admin-section-head { flex-wrap:wrap; gap:12px; }
  .admin-payment-table {min-width:0;display:block;font-size:14px;}
  .admin-payment-table thead {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}
  .admin-payment-table tbody {display:block;}
  .admin-payment-table tr {display:grid;gap:16px;padding:18px 0;border-top:1px solid var(--line);}
  /* admin.css is imported into legacy; these two resets must beat unlayered table cells. */
  .admin-payment-list .admin-payment-table td {display:block;padding:0!important;border:0!important;text-align:left;}
  .admin-payment-table td::before {content:attr(data-label);display:block;margin-bottom:6px;color:var(--muted);font-size:12px;}
  .admin-payment-pager {display:flex;flex-wrap:wrap;justify-content:flex-start;}
  .admin-billing .admin-summary { gap:20px; }
  .admin-billing .admin-summary>div { flex-basis:100%; max-width:none; }
  .admin-billing .admin-summary span,.admin-billing-action .field>span { font-size:14px; }
  .admin-billing-table { min-width:0; display:block; font-size:14px; }
  .admin-billing-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .admin-billing-table tbody { display:block; }
  .admin-billing-table tr { display:grid; padding:18px 0; border-top:1px solid var(--line); gap:16px; }
  .admin-billing-table td { display:block; border:0; padding:0; }
  .admin-billing-table td::before { content:attr(data-label); display:block; margin-bottom:6px; color:var(--muted); font-size:12px; }
  .admin-billing-table .table-secondary { font-size:12px; }
  .admin-billing-action form { max-width:none; }
  .admin-billing-action .btn { width:100%; }
}
@media(min-width:1101px) {
  .admin-overview { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); gap:24px; }
  .admin-overview>.admin-summary { grid-column:1/-1; padding-bottom:0; }
  .admin-overview>.admin-columns { display:contents; }
  .admin-overview>.admin-columns>.admin-panel:first-child { grid-column:1; grid-row:2/span 2; align-self:start; }
  .admin-overview>.admin-columns>.admin-panel:last-child { grid-column:2; grid-row:2; align-self:start; }
  .admin-overview>.admin-recent { grid-column:2; grid-row:3; align-self:start; margin:0; }
}
@media(max-width:1100px) { .admin-columns { grid-template-columns:1fr; gap:16px; } .admin-panel { padding:20px; } }
@media(max-width:768px) { .admin-columns { grid-template-columns:1fr; } .admin-summary { gap:24px 32px; } .admin-settings-footer { flex-direction:column; align-items:flex-start; } .admin-heading { align-items:flex-start; } }
@media(max-width:560px) { .admin-heading { flex-direction:column; gap:10px; } .admin-nav { gap:0 20px; margin-bottom:24px; } .admin-nav a { font-size:13px; } .admin-summary { gap:24px; } .admin-summary>div { flex:1 1 36%; } .admin-summary b { font-size:28px; } .admin-review-filter { flex-wrap:wrap; gap:12px; } .admin-search { flex-wrap:wrap; } .admin-search .field { flex-basis:100%; } .admin-search .text-btn { margin:0; } .admin-service { gap:12px; } .service-state { font-size:11px; } .admin-empty { padding:24px; } }
.admin-ai-costs { grid-column:1/-1; margin-top:24px; }
.admin-ai-costs h3 { margin:0 0 12px; font-size:15px; font-weight:600; line-height:1.45; }
.admin-ai-costs .hint { line-height:1.6; overflow-wrap:anywhere; }
.admin-ai-costs>.admin-section-head { align-items:flex-start; flex-wrap:wrap; }
.admin-ai-costs>.admin-section-head .hint { margin-top:8px; font-size:12px; }
.admin-ai-costs.admin-panel .btn,.admin-ai-costs input { min-height:44px; }
.admin-ai-costs [data-cost-status] { margin-bottom:16px; }
.admin-ai-costs [data-cost-error]:not(.hidden) { margin-bottom:20px; }
.admin-ai-costs .admin-cost-payers { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.admin-ai-costs .admin-cost-payer { min-width:0; padding-bottom:18px; border-bottom:1px solid var(--line); }
.admin-ai-costs .admin-cost-unclassified { grid-column:1/-1; }
.admin-ai-costs .admin-cost-payer dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 24px; margin:18px 0; }
.admin-ai-costs .admin-cost-payer dt { color:var(--muted); font-size:12px; line-height:1.5; }
.admin-ai-costs .admin-cost-payer dd { margin:6px 0 0; font-size:22px; line-height:1.3; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.admin-ai-costs .admin-cost-average { margin-top:24px; }
.admin-ai-costs .admin-cost-average>p { line-height:1.6; font-size:14px; margin-top:10px; }
.admin-ai-costs .admin-cost-average b { font-size:22px; font-weight:500; font-variant-numeric:tabular-nums; }
.admin-cost-calculator { margin:24px 0; padding-block:22px; border-block:1px solid var(--line); }
.admin-cost-calculator .admin-cost-inputs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin:18px 0 12px; }
.admin-cost-calculator .field { min-width:0; margin:0; }
.admin-cost-calculator .field>span { min-height:40px; font-size:13px; line-height:1.45; }
.admin-cost-calculator input { width:100%; }
.admin-cost-calculator [data-cost-result] { margin-top:16px; font-size:14px; line-height:1.65; font-variant-numeric:tabular-nums; }
.admin-ai-costs .admin-cost-stages { margin-bottom:24px; }
.admin-ai-costs .admin-cost-stages>summary { display:list-item; min-height:44px; padding-block:12px; cursor:pointer; font-size:14px; }
.admin-ai-costs .admin-cost-stage-table { min-width:640px; }
.admin-ai-costs .admin-cost-journal { min-width:840px; table-layout:fixed; }
.admin-ai-costs .admin-cost-journal td { vertical-align:top; overflow-wrap:anywhere; }
.admin-ai-costs .admin-cost-journal .table-secondary { line-height:1.55; }
.admin-ai-costs .admin-cost-pager { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:12px; margin-top:18px; }
.admin-ai-costs .admin-cost-pager>span { margin-right:auto; }
@media(min-width:1101px) { .admin-ai-costs { margin-top:0; } }
@media(max-width:860px) {
  .admin-cost-calculator .admin-cost-inputs { grid-template-columns:1fr; }
  .admin-cost-calculator .field>span { min-height:0; }
}
@media(max-width:640px) {
  .admin-ai-costs .admin-cost-payers { grid-template-columns:1fr; gap:20px; }
  .admin-ai-costs .admin-cost-payer dd { font-size:20px; }
  .admin-ai-costs .admin-cost-journal,.admin-ai-costs .admin-cost-stage-table { min-width:0; display:block; font-size:14px; }
  .admin-ai-costs .admin-cost-journal thead,.admin-ai-costs .admin-cost-stage-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .admin-ai-costs .admin-cost-journal tbody,.admin-ai-costs .admin-cost-stage-table tbody { display:block; }
  .admin-ai-costs .admin-cost-journal tr,.admin-ai-costs .admin-cost-stage-table tr { display:grid; gap:14px; padding:18px 0; border-top:1px solid var(--line); }
  .admin-ai-costs .admin-cost-journal td,.admin-ai-costs .admin-cost-stage-table td { display:block; padding:0; border:0; text-align:left; }
  .admin-ai-costs .admin-cost-journal td::before,.admin-ai-costs .admin-cost-stage-table td::before { content:attr(data-label); display:block; color:var(--muted); font-size:12px; margin-bottom:5px; }
}

}
@layer legacy {
.viewer-photo-heading { display:flex; justify-content:space-between; gap:16px; align-items:center; }
.viewer-photo-heading b { font-size:13px; font-weight:500; }
.viewer-photo-heading .text-btn { font-size:13px; text-decoration:underline; text-underline-offset:3px; }
.slide-photo-panel { padding-block:16px 4px; border-top:1px solid var(--line); margin-top:4px; }
.slide-photo-panel>.hint { font-size:12px; margin-top:10px; line-height:1.6; }
.photo-credit { font-size:11px; color:var(--muted); line-height:1.65; overflow-wrap:anywhere; }
.photo-credit a { text-decoration:underline; text-underline-offset:3px; }
.slide-photo-panel .photo-credit { margin-top:10px; }
.photo-remove { font-size:12px; margin-top:10px; color:var(--muted); }
.photo-modal-header { flex:none; padding:20px 24px 14px; border-bottom:1px solid var(--line); }
.photo-modal-title { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
.photo-close { flex:none; min-height:44px; }
.photo-close span { display:none; }
.photo-modal-scroll { min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:16px 24px 22px; }
.photo-modal-header .photo-quick .text-btn { min-height:32px; }
.photo-modal-header #photoError:not(.hidden) { margin-top:8px; max-height:125px; overflow-y:auto; }
.photo-context { color:var(--muted); font-size:14px; line-height:1.5; margin:12px 0 24px; max-width:800px; }
.photo-search-form { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; align-items:end; }
.photo-search-form .btn { min-height:44px; }
.photo-search-status { margin:6px 0 0; font-size:13px; color:var(--muted); }
.photo-search-status:empty { display:none; }
.photo-results { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px 18px; }
.photo-option { min-width:0; display:flex; flex-direction:column; }
.photo-option-image { width:100%; aspect-ratio:4/3; overflow:hidden; border-radius:8px; background:var(--surface-2); display:grid; place-items:center; }
.photo-option-image img { width:100%; height:100%; object-fit:cover; display:block; }
.photo-option-body { padding-top:12px; display:flex; flex:1; flex-direction:column; align-items:flex-start; gap:10px; }
.photo-option-body>.btn { min-height:40px; font-size:12px; margin-top:auto; }
.photo-more { display:flex; justify-content:center; margin-top:28px; }
.photo-more:empty { display:none; }
.s-photo { position:absolute; overflow:hidden; }
.s-photo>img { display:block; width:100%; height:100%; object-fit:cover; object-position:center; }
.s-photo-credit { position:absolute; font-size:11px; line-height:1.4; }
.content-slide .cs-text,.content-slide .cs-card { position:absolute; }
.content-slide { font-family:"Slidecraft Inter",Arial,sans-serif; font-synthesis:none; letter-spacing:0; }
.content-slide .cs-text { white-space:pre; letter-spacing:0; }
@media(max-width:860px) { .photo-results { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:560px) {
  .photo-modal-header,.photo-modal-scroll { padding-inline:14px; }
  .photo-modal-header { padding-block:8px; }
  .photo-close span { display:inline; }
  .photo-search-form input { font-size:16px; }
  .photo-results { grid-template-columns:1fr; gap:22px; }
  .photo-option-body>.btn { align-self:stretch; min-height:44px; }
}

}
@layer legacy {
.viewer-image-actions { display:flex; flex-wrap:wrap; gap:8px 16px; margin-top:10px; }
.image-generation-modal .modal-card { width:min(720px,calc(100vw - 40px)); max-height:calc(100dvh - 40px); overflow:auto; }
.image-generation-quota { font-size:12px; line-height:1.5; color:var(--muted); margin:12px 0 16px; }
#imageGenerationForm { display:grid; gap:16px; margin-top:22px; }
#imageGenerationForm .hint { margin:0; }
#imageGenerationSubmit { justify-self:start; }
#imageGenerationStatus:not(:empty) { font-size:13px; line-height:1.5; margin:20px 0; }
.image-generation-preview { margin:16px 0 12px; }
.image-generation-preview img { display:block; width:100%; max-height:min(340px,calc(100dvh - 430px)); min-height:140px; object-fit:contain; border-radius:8px; background:var(--surface2); }
.image-generation-preview figcaption { font-size:12px; line-height:1.5; color:var(--muted); margin-top:10px; }
.image-generation-actions { position:sticky; bottom:-1px; display:flex; flex-wrap:wrap; gap:10px; padding:16px 0 4px; background:var(--surface); }
.image-generation-options { margin-top:20px; }
.image-generation-options>summary { width:fit-content; font-size:13px; cursor:pointer; padding:8px 0; }
@media(max-width:560px) { .image-generation-modal .modal-card { padding:48px 18px 24px; } .image-generation-actions>.btn { width:100%; } #imageGenerationSubmit { width:100%; } }

}
@layer legacy {
/* One working system: shared neutral surfaces, visible actions, readable output. */
:root { --bg:#f7f7f9; --bg-soft:#ededf0; --surface:#fff; --surface-2:#f3f3f6; --ink:#141418; --ink-soft:#414149; --muted:#666670; --line:rgba(20,20,24,.1); --line-strong:rgba(20,20,24,.23); }
:root[data-theme="dark"] { --bg:#101012; --bg-soft:#19191c; --surface:#1b1b1e; --surface-2:#252529; --ink:#f4f4f6; --ink-soft:#d3d3da; --muted:#aaaab5; --line:rgba(255,255,255,.11); --line-strong:rgba(255,255,255,.25); }
body { font-family:Inter,system-ui,sans-serif; }
body::before { display:none; }
.brand-slidee {min-height:44px;}
.brand-slidee .brand-logo {display:block;width:123px;height:32px;max-width:none;}
.brand-slidee .brand-logo-dark {display:none;}
:root[data-theme="dark"] .brand-slidee .brand-logo-light {display:none;}
:root[data-theme="dark"] .brand-slidee .brand-logo-dark {display:block;}
#siteFooter .brand-slidee .brand-logo {width:92.25px;height:24px;}
.app .btn,.modal .btn { border-radius:8px; min-height:42px; box-shadow:none; } /* taste-skill-ignore: remove inherited decoration. */
.app .public-plans .btn { min-height:44px; }
.app .btn:hover,.modal .btn:hover { box-shadow:none; transform:none; } /* taste-skill-ignore: remove inherited decoration. */
.app .btn-primary,.modal .btn-primary { background:var(--ink); color:var(--bg); border-color:var(--ink); }
.app .btn-primary:hover,.modal .btn-primary:hover { background:var(--ink-soft); color:var(--bg); }
.app .btn-ghost,.modal .btn-ghost { background:var(--surface); }
.app .side-link.is-active { background:var(--accent-soft); color:var(--ink); border-color:transparent; }
.app .side-link.is-active>.ic { color:var(--accent); }
.app .side-plan { border-radius:10px; background:var(--accent-soft); }
.app .sidebar { background:var(--bg); }
.app .app-view { max-width:1440px; margin-inline:auto; }
.app[data-new-loading] :is(#appView, #appFooter) { visibility:hidden; }
.wizard-compact { max-width:850px; margin-inline:auto; }
.wizard-compact .stepper { margin:0 0 20px; }
.wizard-compact .wizard-card { padding:28px 32px 20px; border-radius:12px; }
.wizard-compact .wizard-card h1 { margin:0 0 8px; }
.wizard-compact .sub { margin:0 0 18px; font-size:14px; line-height:1.6; }
.wizard-compact .mode-notice { margin:0 0 14px; padding:0; border:0; border-radius:0; background:none; color:var(--muted); font-size:12px; line-height:1.6; }
.wizard-compact .mode-notice b { font-size:12px; margin-right:7px; color:var(--ink-soft); }
.wizard-compact .mode-notice p { display:inline; margin:0; font-size:12px; color:var(--muted); }
.wizard-compact .mode-notice a { font-size:12px; margin-left:7px; }
.wizard-compact .guest-intro { margin-bottom:14px; }
.wizard-illustration { margin:0 0 18px; }
.wizard-illustration>label { display:flex; align-items:center; gap:10px; min-height:44px; font-size:14px; cursor:pointer; }
.wizard-illustration input { width:18px; height:18px; margin:0; accent-color:var(--ink); flex:none; }
.wizard-illustration>.hint { margin:5px 0 0 28px; font-size:12px; line-height:1.5; }
.generation-notice { margin:0 0 20px; max-width:820px; font-size:14px; line-height:1.6; color:var(--ink-soft); }
.wizard-compact .guest-intro p { font-size:12px; line-height:1.6; }
.wizard-compact .wizard-card>.field { margin-top:0; }
.wizard-compact .field-lg input { min-height:48px; font-size:15px; }
.wizard-defaults { display:flex; align-items:flex-start; gap:40px; margin-top:20px; }
.wizard-defaults .slide-count-field { display:grid; grid-template-columns:84px auto; align-items:center; column-gap:12px; row-gap:6px; }
.wizard-defaults .slide-count-field>span:first-child { grid-column:1/-1; }
.wizard-defaults .slide-count-field input { width:84px; min-height:44px; }
.wizard-defaults .hint { font-size:12px; font-weight:400; }
.wizard-theme-current { display:grid; grid-template-columns:auto auto; column-gap:18px; align-items:center; min-height:70px; }
.wizard-theme-current>span { grid-column:1/-1; font-size:14px; color:var(--ink-soft); font-weight:500; }
.wizard-theme-current>b { font-size:14px; font-weight:400; }
.wizard-theme-current .text-btn { font-size:12px; }
.wizard-theme-current #showThemeOptions { min-height:44px;padding:8px 12px;white-space:nowrap; }
.wizard-defaults #limitHint {white-space:nowrap;}
.wizard-material {margin-top:24px;}
.wizard-material>summary {min-height:44px;display:list-item;cursor:pointer;font-size:16px;font-weight:600;padding-block:12px;}
.wizard-material h2 {margin:0;font-size:16px;line-height:1.5;}
.wizard-material .source-import {margin:12px 0 0;padding:0;background:none;border:0;}
.wizard-material .source-details {margin-top:16px;}
.wizard-material .source-details>summary {min-height:44px;padding-block:10px;cursor:pointer;}
.wizard-material .source-details .field {margin-top:8px;}
.wizard-material .source-footer {flex-wrap:wrap;gap:10px;}
.draft-recovery {margin-top:20px;padding-top:16px;border-top:1px solid var(--line);}
.draft-recovery>summary {min-height:44px;padding-block:10px;cursor:pointer;font-size:14px;}
.draft-recovery-list {display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;}
.draft-recovery-list>.btn {max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:left;}
.feedback-invite {display:flex;align-items:center;justify-content:space-between;gap:16px;margin:16px 0;padding:14px 0;border-block:1px solid var(--line);}
.feedback-invite b {font-size:14px;}
.feedback-invite p {margin:4px 0 0;font-size:13px;color:var(--muted);}
.feedback-invite-actions {display:flex;flex-wrap:wrap;gap:8px;}
.wizard-compact .wizard-actions { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:24px; padding:0; position:static; background:none; }
.wizard-compact .wizard-actions .btn { min-height:46px; }
.wizard:not(.wizard-compact) .mode-notice { margin:14px 0; padding:10px 14px; }
.wizard:not(.wizard-compact) .mode-notice p { margin:3px 0 0; }
.wizard:not(.wizard-compact) .mode-notice a { margin-top:4px; }
.wizard:not(.wizard-compact) .wizard-actions { position:sticky; bottom:0; z-index:3; background:var(--surface); border-top:1px solid var(--line); padding:14px 0 0; }
.struct-row textarea.struct-input {display:block;min-width:0;max-width:100%;width:100%;min-height:36px;box-sizing:border-box;resize:none;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;line-height:1.5;}
.struct-controls {display:flex;flex:none;align-items:center;gap:0;}
#wizardError.inline-error>.hint {flex:0 0 100%;margin:0;}
#wizardError button:focus {outline:2px solid var(--accent);outline-offset:2px;}
#actionModal .dialog-actions {flex-wrap:wrap;min-width:0;align-items:stretch;}
#actionModal .dialog-actions>.btn {flex:1 1 auto;box-sizing:border-box;min-width:0;max-width:100%;min-height:44px;white-space:normal;overflow-wrap:anywhere;}
.wizard-options { margin-top:24px; border-top:1px solid var(--line); }
.wizard-options>summary { cursor:pointer; padding:18px 0 0; font-size:13px; line-height:1.5; color:var(--ink-soft); }
.wizard-options .source-import { margin:24px 0; background:var(--surface-2); border:0; border-radius:8px; padding:20px; }
.wizard-options .theme-fieldset { margin-top:20px; scroll-margin-top:90px; }
.wizard-options .tpl-pick { grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.wizard-options .tpl-opt { border-radius:8px; background:var(--surface); padding:8px; }
.wizard-options .tpl-opt.is-active { outline-color:var(--ink); }
.deck-head { display:flex; justify-content:space-between; align-items:flex-start; gap:28px; margin-bottom:24px; }
.deck-head>div:first-child { flex:1; }
.deck-head h1 { font-size:28px; line-height:1.25; max-width:850px; }
.deck-head .back-link { margin-bottom:16px; }
.deck-head .muted { font-size:13px; margin-top:8px; }
.deck-head .deck-info { font-size:12px; margin-top:12px; }
.deck-head .deck-actions-row { display:flex; flex-direction:column; align-items:stretch; flex:none; gap:8px; width:auto; min-width:170px; overflow:visible; }
.deck-head .deck-actions-row>.btn { flex:none; justify-content:center; min-height:44px; }
.export-font-link {display:inline-flex;align-items:center;min-height:32px;max-width:100%;font-size:13px;line-height:1.5;color:var(--muted);text-decoration:underline;text-underline-offset:3px;}
.export-font-link:hover {color:var(--ink);}
.export-font-note {flex-basis:100%;margin:0;}
.legal-links {display:flex;flex-wrap:wrap;gap:0 20px;min-width:0;}
.legal-links>a {display:inline-flex;align-items:center;min-height:44px;max-width:100%;font-size:12px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere;text-decoration:underline;text-underline-offset:3px;}
.legal-links>a:hover {color:var(--ink);}
.footer-legal-links {grid-column:1/-1;}
.app-footer {margin-top:auto;padding:12px clamp(20px,3vw,40px);border-top:1px solid var(--line);}
.auth-legal-links {gap:0 16px;}
.deck-controls { padding:12px 0; margin-bottom:0; border-block:1px solid var(--line); align-items:center; flex-wrap:nowrap; }
.deck-controls .theme-select { flex:none; margin:0; display:flex; flex-direction:row; align-items:center; gap:12px; }
.deck-controls .theme-select>span { font-size:12px; }
.deck-controls .theme-select select { width:190px; min-height:40px; }
.deck-toolbar-right { display:flex; align-items:center; gap:24px; }
.deck-toolbar-right>.text-btn { font-size:13px; white-space:nowrap; min-height:44px; padding-block:10px; }
.deck-actions-holder { position:relative; }
.deck-actions-holder>.btn { display:inline-flex; align-items:center; gap:8px; }
.deck-controls .deck-actions-holder>.btn { min-height:44px; }
.deck-controls .deck-secondary-actions { position:absolute; z-index:12; top:calc(100% + 8px); left:auto; right:0; bottom:auto; width:220px; display:flex; flex-direction:column; flex-wrap:nowrap; gap:0; padding:6px; background:var(--surface); border:1px solid var(--line-strong); border-radius:8px; }
.deck-secondary-actions>button { min-height:44px; padding:10px 12px; text-align:left; background:none; border:0; border-radius:4px; font-size:13px; color:var(--ink); }
.deck-secondary-actions>button:hover { background:var(--surface-2); }
.deck-secondary-actions>.danger { color:var(--danger); }
.deck-slides-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:20px 0 16px; }
.deck-slides-heading h2 { font-size:16px; margin:0; }
.deck-slides-heading h2>span { margin-left:8px; font-size:13px; font-weight:400; color:var(--muted); }
.deck-slides-heading>span { font-size:12px; color:var(--muted); }
.slides-grid { grid-template-columns:1fr; gap:32px 24px; }
.slides-grid .thumb { padding:0; border:0; border-radius:8px; background:none; overflow:visible; }
.slides-grid .thumb-stage { border-radius:8px; overflow:hidden; background:var(--surface); }
.slides-grid .thumb-caption { padding:14px 0 0; gap:6px; }
.slides-grid .thumb-caption b { font-size:14px; font-weight:500; line-height:1.45; white-space:normal; text-overflow:clip; overflow-wrap:anywhere; }
.slides-grid .thumb-caption span { font-size:11px; }
.guest-result { margin:16px 0 0; padding:14px 16px; border-radius:8px; }
.guest-result b { font-size:14px; }
.guest-result p { font-size:12px; }
.viewer-card { width:min(1440px,calc(100vw - 40px)); }
.viewer-layout { grid-template-columns:minmax(0,1.75fr) minmax(300px,.85fr); gap:28px; }
.viewer-panel .field>span { font-size:13px; }
.viewer-panel .field input,.viewer-panel .field textarea { font-size:14px; }
#accName,#accEmail,#editTitle { min-height:44px; }
.email-verification-panel p {margin:0 0 12px;line-height:1.6;overflow-wrap:anywhere;}
.email-verification-actions {display:flex;flex-wrap:wrap;align-items:center;gap:12px;}
.email-verification-actions .btn,.email-confirmation-content>.btn,.email-correction .btn {min-height:44px;white-space:normal;overflow-wrap:anywhere;max-width:100%;}
.email-verification-actions .text-link {display:inline-flex;align-items:center;min-height:44px;max-width:100%;overflow-wrap:anywhere;}
.email-correction {margin-top:20px;}
.email-correction>summary {min-height:44px;padding-block:12px;cursor:pointer;font-weight:600;}
.email-correction .field input,.auth-screen .auth-form .field input,#publicAuthModal .auth-form .field input {min-height:44px;}
.email-confirmation-content {display:flex;flex-direction:column;align-items:stretch;gap:16px;margin-top:20px;}
.email-confirmation-content p {margin:0;line-height:1.6;overflow-wrap:anywhere;}
.viewer-panel>.panel-actions { position:sticky; bottom:0; z-index:5; background:var(--surface); border-top:1px solid var(--line); padding:12px 0 4px; margin-top:auto; }
.modal .viewer-panel>.panel-actions .btn { min-height:44px; }
.owner-intro { margin:20px 0; font-size:14px; line-height:1.65; }
.owner-invite-email { margin:16px 0 8px; font-size:15px; overflow-wrap:anywhere; }
.owner-setup .auth-form { margin-top:24px; }
@media(max-width:1179px) { .slides-grid { grid-template-columns:1fr; } .deck-head { gap:20px; } .deck-controls { flex-wrap:wrap; } .deck-toolbar-right { gap:16px; margin-left:auto; } }
@media(max-width:1024px) { .viewer-layout { grid-template-columns:1fr; } .viewer-stage-wrap { max-width:900px; width:100%; margin-inline:auto; } .viewer-panel { display:grid; grid-template-columns:1fr 1fr; gap:16px 24px; } .viewer-panel>.step,.viewer-panel>.panel-actions,.viewer-panel>#viewerError,.viewer-panel>#viewerGenerateNote,.viewer-panel>#editorStatus,.viewer-panel>#viewerPhoto { grid-column:1/-1; } }
@media(min-width:1680px) { .slides-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:860px) { .wizard-compact .wizard-card { padding:24px; } .deck-head .deck-actions-row { flex-direction:row; } .deck-head { flex-direction:column; } .deck-head h1 { font-size:26px; } .deck-controls { flex-wrap:wrap; gap:16px; } .deck-toolbar-right { margin-left:auto; } .viewer-card { width:100%; } }
@media(max-width:640px) { .wizard-compact .wizard-card { padding:22px 18px 18px; } .wizard-compact .wizard-actions { flex-direction:column-reverse; align-items:stretch; gap:12px; } .wizard-compact .wizard-actions .btn { flex:none; } .wizard-defaults { gap:28px; } .wizard-options .tpl-pick { grid-template-columns:1fr 1fr; } .wizard-options .source-import { padding:14px; } .deck-controls .theme-select { width:100%; justify-content:space-between; } .deck-controls .theme-select select { width:auto; flex:1; max-width:220px; } .deck-toolbar-right { width:100%; justify-content:space-between; } .deck-head .deck-actions-row { width:100%; } .deck-head .deck-actions-row>.btn { flex:1; } .deck-slides-heading>span { display:none; } .slides-grid { grid-template-columns:1fr; gap:28px; } .viewer-panel { display:flex; flex-direction:column; } }
@media(max-width:640px) { .app .btn,.modal .btn,.deck-secondary-actions>button { min-height:44px; } }
@media(max-width:640px) {
  #actionModal .modal-card {max-width:100%;}
  #actionModal .dialog-actions {display:grid;grid-template-columns:minmax(0,1fr);}
  #actionModal .dialog-actions>.btn {width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;}
  .struct-row {display:grid;grid-template-columns:20px minmax(0,1fr);align-items:start;gap:4px 8px;}
  .struct-row .struct-num {margin-top:8px;}
  .struct-row textarea.struct-input {min-height:44px;}
  .struct-row .struct-controls {grid-column:2;justify-self:end;gap:4px;}
  .struct-row .struct-move,.struct-row .struct-del {width:44px;height:44px;min-width:44px;min-height:44px;}
  .wizard-defaults {flex-direction:column;align-items:stretch;gap:16px;}
  .wizard-theme-current {grid-template-columns:minmax(0,1fr) auto;column-gap:12px;min-height:0;}
  .wizard-theme-current>b {min-width:0;overflow-wrap:anywhere;line-height:1.5;}
  .wizard-material .source-import input[type="file"] {max-width:100%;}
  .feedback-invite {align-items:flex-start;flex-direction:column;}
  .deck-head .deck-actions-row {flex-wrap:wrap;}
  .deck-head .deck-actions-row>.export-font-link {flex-basis:100%;}
  .export-font-link {min-height:44px;}
}

/* Keep destructive text readable without lightening filled danger buttons. */
:root[data-theme="dark"] { --danger-text:#ff9292; }
:root[data-theme="dark"] .danger-btn:not(.btn-primary),
:root[data-theme="dark"] .dropdown button.danger,
:root[data-theme="dark"] .deck-secondary-actions>.danger,
:root[data-theme="dark"] .struct-del:hover { color:var(--danger-text); }
.checkout-docs { margin-top:16px; }
.checkout-docs .legal-links { gap:0 16px; }
.checkout-docs .legal-links>a { font-size:13px; }
@media(max-width:860px) {
  .app .avatar.sm,
  .app .icon-plain,
  .app .fav { width:44px; height:44px; min-width:44px; min-height:44px; }
  .app .deck-actions .btn,
  .app .chip-btn,
  .app .text-btn,
  .modal .text-btn,
  .app .source-footer .btn,
  .app .dropdown>button,
  .app .deck-secondary-actions>button { min-height:44px; min-width:44px; }
  .app .text-btn,.modal .text-btn { display:inline-flex; align-items:center; justify-content:center; }
  .modal .modal-x { width:44px; height:44px; min-width:44px; min-height:44px; }
  .app .deck-controls .theme-select select { min-height:44px; }
  .app .folder-chip { right:64px; }
}

@media(max-width:640px) {
 .wizard .stepper.labeled { gap:8px; margin-bottom:16px; }
 .wizard .stepper-item { position:relative; display:flex; flex-direction:column; gap:6px; min-width:0; align-items:center; }
 .wizard .stepper-item span { display:block; white-space:normal; overflow:visible; text-overflow:clip; font-size:12px; line-height:1.35; text-align:center; }
 .wizard .stepper-item:not(:last-child)::after { position:absolute; left:calc(50% + 20px); width:calc(100% - 32px); top:12px; }
 .wizard-compact .wizard-card { padding:20px 16px; }
 .wizard-compact .guest-intro p,.wizard-compact .mode-notice p { font-size:13px; }
 .wizard-compact .sub { margin-bottom:12px; }
 .wizard-defaults { margin-top:16px; }
 .wizard-material { margin-top:16px; }
}

.wizard .stepper-item span {display:block;}

}
@layer legacy {
/* Public catalog follows the existing Slidecraft frame and uses actual slide canvases. */
#site .catalog-page {padding-block:48px 96px;min-height:65vh;}
#site .catalog-heading {display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:32px;}
#site .catalog-heading h1 {font-size:clamp(30px,3.1vw,44px);line-height:1.12;letter-spacing:-.035em;}
#site .catalog-heading p {max-width:700px;margin-top:16px;}
#site .catalog-detail-heading {display:block;max-width:980px;margin-top:24px;}
#site .catalog-detail-heading h1 {margin-top:12px;}
#site .catalog-heading .catalog-card-meta {margin:0;}
#site .catalog-detail-heading h1~.catalog-card-meta {margin-top:8px;}
#site .catalog-detail-heading>.btn {margin-top:16px;}
.catalog-search {max-width:640px;margin-bottom:20px;}
.catalog-search label {display:block;margin-bottom:8px;font-size:15px;}
.catalog-search>div {display:flex;gap:10px;}
.catalog-search input {min-width:0;flex:1;padding:12px 14px;background:var(--surface);border:1px solid var(--line-strong);border-radius:8px;color:var(--ink);font:inherit;}
.catalog-filters {display:flex;flex-wrap:wrap;gap:8px;margin-block:16px;}
.catalog-filters button {min-height:44px;padding:10px 16px;border:0;border-radius:6px;background:transparent;color:var(--ink-soft);font:inherit;cursor:pointer;}
.catalog-filters button:hover {background:var(--surface);}
.catalog-filters button[aria-pressed="true"] {background:var(--surface-2,var(--surface));color:var(--ink);box-shadow:inset 0 -2px var(--ink);}
#site .catalog-status {font-size:14px;margin:20px 0;color:var(--muted);}
.catalog-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:40px 32px;}
.catalog-card {min-width:0;}
.catalog-grid-single {grid-template-columns:1fr;}
.catalog-grid-single .catalog-card {display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:32px;align-items:start;}
.catalog-grid-single .catalog-card-copy {padding-top:0;}
.catalog-card-preview {display:block;background:var(--surface);border-radius:8px;overflow:hidden;}
.catalog-stage {display:block;min-width:0;aspect-ratio:16/9;overflow:hidden;position:relative;}
.catalog-card-copy {padding-top:18px;}
#site .catalog-card-meta {font-size:13px;line-height:1.5;color:var(--muted);}
#site .catalog-card h2 {font-size:24px;line-height:1.25;letter-spacing:-.025em;margin-top:8px;}
#site .catalog-card-copy>p:not(.catalog-card-meta) {font-size:16px;margin-top:12px;}
.catalog-card-copy>.text-link {display:inline-block;margin-top:16px;}
.catalog-card h2 a:hover {text-decoration:underline;text-underline-offset:4px;}
.catalog-empty {max-width:640px;padding-block:40px;}
#site .catalog-empty h2 {font-size:26px;}
#site .catalog-empty p {margin-block:12px 20px;}
.catalog-pagination,.catalog-downloads {display:flex;flex-wrap:wrap;align-items:center;gap:12px;}
.catalog-pagination {margin-top:36px;}
.catalog-downloads {margin-bottom:32px;}
.catalog-slide-tools {display:flex;align-items:center;gap:16px;margin-bottom:16px;}
.catalog-reader {display:grid;grid-template-columns:minmax(0,2fr) minmax(240px,1fr);gap:28px;align-items:start;}
.catalog-reader>div {min-width:0;}
.catalog-detail-stage {position:relative;width:100%;min-width:0;aspect-ratio:16/9;overflow:hidden;background:var(--surface);border-radius:8px;}
.catalog-filmstrip {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:12px;}
.catalog-slide-choice {display:block;min-width:0;padding:3px;background:transparent;color:var(--ink);border:2px solid transparent;border-radius:5px;cursor:pointer;font:inherit;}
.catalog-slide-choice[aria-current="true"] {border-color:var(--ink);}
.catalog-stage img,.catalog-detail-stage img {display:block;width:100%;height:100%;object-fit:contain;}
.catalog-transcript {margin-top:24px;}
.catalog-transcript-slide {padding-block:10px;}
.catalog-transcript-slide img {display:block;max-width:100%;height:auto;margin-block:12px;}
.catalog-slide-choice>span:last-child {display:block;font-size:13px;line-height:1.6;}
.catalog-slide-choice .catalog-stage {width:100%;border-radius:2px;}
.catalog-slide-copy {font-size:16px;line-height:1.6;min-width:0;}
#site .catalog-slide-copy h2 {font-size:18px;letter-spacing:-.02em;line-height:1.35;margin-bottom:12px;}
.catalog-visible-text {margin-bottom:24px;}
.catalog-visible-text summary {min-height:44px;cursor:pointer;padding-block:8px;}
.catalog-visible-text h2 {margin-top:12px;}
#site .catalog-slide-copy p,.catalog-slide-copy li {font-size:16px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;}
.catalog-slide-copy li {margin-bottom:8px;}
.catalog-source {margin-top:56px;max-width:880px;}
#site .catalog-source h2 {font-size:26px;}
.catalog-source dl {margin-top:24px;}
.catalog-source dt {font-weight:600;margin-top:20px;}
.catalog-source dd {margin:8px 0 0;line-height:1.7;}
.catalog-source-text {white-space:pre-wrap;overflow-wrap:anywhere;}
#site .catalog-provenance {font-size:14px;margin-top:24px;}
#site .landing-catalog-card {display:grid;grid-template-columns:minmax(0,1fr);gap:20px;align-content:start;min-width:0;}
#site .landing-catalog-card h3 {margin-top:10px;font-size:22px;}
#site .landing-catalog-card p {margin-top:12px;font-size:15px;line-height:1.6;}
#site .landing-catalog-card .catalog-card-meta {margin-top:0;font-size:13px;}
#site .landing-catalog-card .catalog-card-preview {min-width:0;width:100%;}
#site .landing-catalog-card .catalog-stage {width:100%;}
#site .landing-catalog-card .text-link {display:inline-block;margin-top:20px;}
#site .examples-section .live-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:24px;}
@media(max-width:900px){.catalog-reader{grid-template-columns:minmax(0,1fr);}.catalog-slide-copy{max-width:720px;}}
@media(max-width:600px){#site .catalog-page{padding-block:28px 64px;}.catalog-grid,.catalog-grid-single .catalog-card{grid-template-columns:1fr;gap:24px;}#site .catalog-heading{margin-bottom:24px;}#site .catalog-card h2{font-size:22px;}.catalog-filters{gap:0;}.catalog-filters button{padding-inline:12px;}.catalog-downloads .btn-primary{flex-basis:100%;}.catalog-filmstrip{gap:4px;}.catalog-reader{gap:20px;}}
@media(max-width:600px) {
  .catalog-breadcrumbs>span[aria-current="page"] {flex-basis:100%;overflow-wrap:anywhere;}
  .catalog-breadcrumbs>span[aria-hidden]:nth-last-child(2) {display:none;}
}
@media (max-width:860px) {
  #site .catalog-page .back-link,
  #site .catalog-card-copy>.text-link,
  #site .landing-catalog-card .text-link {display:inline-flex;align-items:center;min-height:44px;}
}
@media(prefers-reduced-motion:reduce){.catalog-page *{scroll-behavior:auto;transition:none;}}

}
@layer legacy {
/* Composition choices share the application's existing surfaces and type. */
.family-fieldset {min-width:0;border:0;padding:0;margin:24px 0;}
.family-fieldset legend {font-size:14px;font-weight:600;margin-bottom:12px;}
.family-pick {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.family-choice {position:relative;min-width:0;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:10px;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--surface);cursor:pointer;}
.family-choice.is-active,.family-choice:has(input:checked) {border-color:var(--ink);}
.family-choice:focus-within {outline:2px solid var(--ink);outline-offset:3px;}
.family-choice input {width:16px;height:16px;margin:0;accent-color:var(--ink);}
.family-name {font-size:14px;font-weight:500;}
.family-preview-pair {grid-column:1/-1;display:grid;gap:6px;min-width:0;}
.family-preview {display:block;position:relative;min-width:0;aspect-ratio:16/9;overflow:hidden;border-radius:5px;background:var(--surface-2);}
.family-legacy {display:flex;align-items:center;gap:10px;margin:16px 0;font-size:14px;}
.family-legacy input {width:16px;height:16px;accent-color:var(--ink);}
#tplGrid {grid-template-columns:repeat(3,minmax(0,1fr));}
#tplGrid .tpl-big-stage {position:relative;}
@media(max-width:1000px) {#tplGrid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:600px) {.family-pick,#tplGrid{grid-template-columns:1fr;}.family-preview-pair{grid-template-columns:repeat(2,minmax(0,1fr));}}

}

/* ---------- 1. Токены ---------- */
:root {
  color-scheme: light;
  --bg: #f7f5f0; --bg-soft: #f0ede5; --surface: #ffffff; --surface-2: #f7f5f0; --surface-3: #ece8df; --surface2: var(--surface-2);
  --ink: #171613; --ink-soft: #3a3833; --muted: #67645b;
  --line: rgba(23, 22, 19, .11); --line-strong: rgba(23, 22, 19, .24);
  --accent: #14574b; --accent-2: #0e4439; --accent-fill: #14574b; --accent-fill-hover: #0e4439; --on-accent: #ffffff;
  --accent-soft: rgba(20, 87, 75, .09); --accent-line: rgba(20, 87, 75, .32);
  --pop: #f4cf7a; --pop-hover: #eec263; --on-pop: #171613;
  --brand-block: #134a40; --brand-block-2: #0c322b; --on-brand: #ffffff; --on-brand-soft: rgba(255, 255, 255, .78); --brand-line: rgba(255, 255, 255, .22);
  --danger: #bf2d2d; --danger-text: #a82424; --danger-soft: rgba(191, 45, 45, .08);
  --success: #12734a; --success-soft: rgba(18, 115, 74, .10); --warn: #84560a; --warn-soft: rgba(190, 130, 20, .13);
  --shadow-sm: 0 1px 2px rgba(23, 22, 19, .06);
  --shadow: 0 10px 28px -12px rgba(23, 22, 19, .18), 0 2px 6px -2px rgba(23, 22, 19, .06);
  --shadow-lg: 0 32px 72px -20px rgba(23, 22, 19, .3), 0 8px 20px -10px rgba(23, 22, 19, .1);
  --r: 20px; --r-md: 14px; --r-sm: 11px; --r-xs: 8px;
  --max: 1240px; --site-max: 1240px; --site-gutter: clamp(16px, 4vw, 40px);
  --font: Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --focus: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1211; --bg-soft: #131817; --surface: #171d1b; --surface-2: #1e2523; --surface-3: #29312e; --surface2: var(--surface-2);
  --ink: #f3f4f1; --ink-soft: #d5d8d2; --muted: #a1a8a2;
  --line: rgba(255, 255, 255, .11); --line-strong: rgba(255, 255, 255, .24);
  --accent: #8ad4bf; --accent-2: #b3e5d6; --accent-fill: #1c7563; --accent-fill-hover: #238a75; --on-accent: #ffffff;
  --accent-soft: rgba(138, 212, 191, .14); --accent-line: rgba(138, 212, 191, .4);
  --brand-block: #154a40; --brand-block-2: #0d332c;
  --danger: #ff8080; --danger-text: #ff9c9c; --danger-soft: rgba(255, 120, 120, .12);
  --success: #5fd3a0; --success-soft: rgba(95, 211, 160, .13); --warn: #e8bd6a; --warn-soft: rgba(232, 189, 106, .13);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow: 0 10px 28px -12px rgba(0, 0, 0, .7), 0 2px 6px -2px rgba(0, 0, 0, .4);
  --shadow-lg: 0 32px 72px -20px rgba(0, 0, 0, .85), 0 8px 20px -10px rgba(0, 0, 0, .5);
}

/* ---------- 2. Основа ---------- */
html { background: var(--bg); scroll-padding-top: calc(var(--site-header-height, 72px) + 16px); }
body { font-family: var(--font); font-size: 16px; line-height: 1.5; background: var(--bg); color: var(--ink); font-feature-settings: "cv11", "ss03"; text-rendering: optimizeLegibility; }
body::before, body::after { content: none; display: none; }
::selection { background: var(--pop); color: var(--on-pop); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-sun { display: none; }
[data-theme="dark"] .ic-sun { display: block; }
[data-theme="dark"] .ic-moon { display: none; }
.site-frame { width: 100%; max-width: calc(var(--site-max) + 2 * var(--site-gutter)); margin-inline: auto; padding-inline: var(--site-gutter); }
.muted { color: var(--muted); }
.hint { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 300; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r-sm); }
a { text-underline-offset: 3px; }

/* ---------- 3. Кнопки и ссылки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font-size: 14.5px; font-weight: 600; line-height: 1.2; letter-spacing: -.005em; white-space: nowrap; cursor: pointer; box-shadow: none; transform: none; transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s var(--ease); }
.btn:hover { background: var(--surface-2); border-color: var(--ink); box-shadow: none; transform: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn-primary { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); box-shadow: 0 1px 2px rgba(10, 40, 34, .25), inset 0 1px 0 rgba(255, 255, 255, .1); }
.btn-primary:hover { background: var(--accent-fill-hover); border-color: var(--accent-fill-hover); color: var(--on-accent); box-shadow: 0 8px 20px -8px rgba(14, 68, 57, .6), inset 0 1px 0 rgba(255, 255, 255, .1); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--ink); }
.btn-pop { background: var(--pop); border-color: var(--pop); color: var(--on-pop); }
.btn-pop:hover { background: var(--pop-hover); border-color: var(--pop-hover); color: var(--on-pop); }
.btn-lg { min-height: 52px; padding: 13px 24px; font-size: 16px; border-radius: 13px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"], button:disabled.btn { background: var(--surface-3); border-color: transparent; color: var(--muted); opacity: 1; cursor: not-allowed; box-shadow: none; transform: none; }
.danger-btn, .btn.danger { color: var(--danger-text); border-color: var(--danger); background: transparent; }
.danger-btn:hover, .btn.danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); cursor: pointer; transition: background .15s, border-color .15s; }
.icon-btn:hover { background: var(--surface-2); border-color: var(--line-strong); }
.icon-btn:disabled { opacity: .4; cursor: not-allowed; }
.icon-plain { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--muted); cursor: pointer; }
.icon-plain:hover { background: var(--surface-2); color: var(--ink); }
.text-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 2px; border: 0; background: none; color: var(--accent); font-size: 14.5px; font-weight: 600; cursor: pointer; text-decoration: none; }
.text-btn:hover { color: var(--accent-2); text-decoration: underline; }
.text-btn:disabled { color: var(--muted); cursor: not-allowed; text-decoration: none; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 15px; text-decoration: none; border: 0; }
.text-link:hover { color: var(--accent-2); text-decoration: underline; }
.section-intro p .text-link { display: inline; font-size: inherit; }
.back-link { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; color: var(--muted); font-size: 14px; font-weight: 500; }
.back-link:hover { color: var(--ink); }
.back-link .ic { width: 16px; height: 16px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13.5px; }
.legal-links a { color: var(--muted); min-height: 32px; display: inline-flex; align-items: center; text-decoration: none; }
.legal-links a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- 4. Поля ---------- */
.field { display: grid; gap: 7px; margin: 0 0 16px; min-width: 0; }
.field > span, .field-label { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.field input, .field textarea, .field select, .search, .struct-input, .hero-form textarea, select, textarea, input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="number"], input[type="url"] {
  width: 100%; min-height: 44px; padding: 10px 13px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background-color: var(--surface); color: var(--ink); font-size: 15px; line-height: 1.45; box-shadow: none; transition: border-color .15s, box-shadow .15s, background-color .15s; }
textarea { resize: vertical; }
select { appearance: none; -webkit-appearance: none; padding-right: 38px; text-overflow: ellipsis; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23807e8d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .85; }
input:hover, textarea:hover, select:hover, .search:hover { border-color: var(--muted); }
input:focus, textarea:focus, select:focus, .search:focus, .struct-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; min-height: 18px; padding: 0; accent-color: var(--accent-fill); }
.field-lg input { min-height: 52px; font-size: 17px; padding-inline: 16px; }
details > summary { cursor: pointer; }
input[type="file"] { padding: 6px 8px; min-height: 44px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--muted); font-size: 14px; max-width: 100%; }
input[type="file"]::file-selector-button { min-height: 30px; margin-right: 10px; padding: 4px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface-2); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }

/* ---------- 5. Уведомления и состояния ---------- */
.mode-notice, .inline-notice, .generation-notice, .draft-note { padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.mode-notice b { display: block; font-size: 14.5px; color: var(--ink); margin-bottom: 2px; }
.mode-notice p { margin: 0; color: var(--muted); }
.generation-notice { max-width: none; background: var(--accent-soft); border-color: var(--accent-line); color: var(--ink); margin-bottom: 16px; }
.inline-error { padding: 14px 16px; border: 1px solid var(--danger); border-radius: var(--r-md); background: var(--danger-soft); color: var(--danger-text); font-size: 14.5px; line-height: 1.5; }
.inline-error .btn { margin-top: 10px; }
.loading-state { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 180px; padding: 32px; color: var(--muted); font-size: 15px; text-align: center; }
.loading-state::before { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--line-strong); border-top-color: var(--accent); animation: ui-spin .8s linear infinite; flex: none; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--line-strong); border-top-color: var(--accent); animation: ui-spin .8s linear infinite; display: inline-block; flex: none; }
.btn .spinner, .btn-primary .spinner { border-color: rgba(255, 255, 255, .35); border-top-color: currentColor; }
@keyframes ui-spin { to { transform: rotate(360deg); } }
@keyframes ui-appear { from { opacity: 0; } to { opacity: 1; } }
/* A slide that is still fetching its font or picture: a calm spinner above the text. */
.family-slide-loading::before { content: ""; width: 56px; height: 56px; border-radius: 50%; border: 5px solid currentColor; border-top-color: transparent; opacity: .55; animation: ui-spin .9s linear infinite; }
/* Something on screen is being replaced: keep it visible, dim it and show a spinner.
   The overlay appears after a short delay so fast loads do not flash. */
.is-loading { position: relative; }
.is-loading::before { content: ""; position: absolute; inset: 0; z-index: 4; background: rgba(15, 18, 28, .28); pointer-events: none; animation: ui-appear .2s ease .15s both; }
.is-loading::after { content: ""; position: absolute; inset: 0; z-index: 5; width: 40px; height: 40px; margin: auto; border-radius: 50%; border: 3.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; pointer-events: none; animation: ui-spin .8s linear infinite, ui-appear .2s ease .15s both; }
.btn[aria-busy="true"]::before, .icon-btn[aria-busy="true"]::before { content: ""; display: inline-block; flex: none; width: 14px; height: 14px; margin-right: 8px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; vertical-align: -2px; animation: ui-spin .8s linear infinite; }
.btn[aria-busy="true"] { cursor: progress; }
@media (prefers-reduced-motion: reduce) { .family-slide-loading::before, .is-loading::after, .btn[aria-busy="true"]::before { animation-duration: 2.4s; } }
.sk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.sk-card { border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; background: var(--surface); }
.sk-thumb, .sk-line { background: linear-gradient(100deg, var(--surface-2) 30%, var(--surface-3) 50%, var(--surface-2) 70%); background-size: 240% 100%; animation: ui-shimmer 1.4s linear infinite; border-radius: var(--r-xs); }
.sk-thumb { aspect-ratio: 16 / 9; }
.sk-line { height: 12px; margin-top: 12px; width: 70%; }
@keyframes ui-shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.empty, .reviews-empty, .catalog-empty, .admin-empty { display: grid; justify-items: center; gap: 10px; padding: clamp(36px, 7vw, 72px) 24px; border: 1.5px dashed var(--line-strong); border-radius: var(--r); background: transparent; text-align: center; color: var(--muted); }
.empty h2, .reviews-empty h2, .catalog-empty h2 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); margin: 0; }
.empty p, .reviews-empty p, .catalog-empty p { max-width: 46ch; margin: 0; font-size: 15px; line-height: 1.55; }
.empty .btn, .reviews-empty .btn, .catalog-empty .btn { margin-top: 10px; }
.toast-action { margin-left: 10px; padding: 2px 10px; border: 1px solid currentColor; border-radius: 999px; background: transparent; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.toast-action:hover, .toast-action:focus-visible { background: color-mix(in srgb, currentColor 16%, transparent); }
.toast { position: fixed; left: 50%; right: auto; bottom: 24px; transform: translateX(-50%); z-index: 240; max-width: min(460px, calc(100vw - 32px)); width: max-content; padding: 12px 18px; border-radius: var(--r-sm); background: var(--ink); color: var(--bg); font-size: 14.5px; font-weight: 500; line-height: 1.4; box-shadow: var(--shadow-lg); text-align: center; animation: ui-toast .22s var(--ease); }
@keyframes ui-toast { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
/* In the slide editor the toast would cover «Новый вариант» and «Сохранить»: show it at the top. */
body:has(#viewer:not(.hidden)) .toast { top: 24px; bottom: auto; }

/* ---------- 6. Шапка сайта ---------- */
#site .nav, .nav { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; box-shadow: none; transition: border-color .2s; }
[data-theme="dark"] .nav { background: color-mix(in srgb, var(--bg) 86%, transparent); }
.nav.scrolled, .nav.is-scrolled { border-bottom-color: var(--line); box-shadow: none; }
.nav-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; height: auto; padding-block: 0; }
.brand, .brand-slidee { display: inline-flex; align-items: center; flex: none; min-height: 44px; }
.brand-logo { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 13px; border-radius: var(--r-sm); color: var(--ink-soft); font-size: 14.5px; font-weight: 500; text-decoration: none; transition: background .15s, color .15s; }
.nav-links a:hover { background: var(--line); color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: 0; flex: none; }
.nav-actions #themeToggle { border-color: transparent; background: transparent; }
.nav-actions #themeToggle:hover { background: var(--line); }
.nav-actions #loginBtn { border-color: transparent; background: transparent; padding-inline: 14px; }
.nav-actions #loginBtn:hover { background: var(--line); }
.nav-account { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 6px; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; max-width: 200px; }
.nav-account:hover { background: var(--line); }
.nav-account span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-avatar, .avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; border: 0; background: var(--accent-fill); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.avatar.sm { width: 36px; height: 36px; }
.burger { display: none; }
.drawer-backdrop, .sidebar-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(14, 18, 17, .5); backdrop-filter: blur(2px); }
.mobile-menu, #site .mobile-menu { position: fixed; inset: 0 0 0 auto; z-index: 80; width: min(360px, 100vw); height: 100dvh; max-height: none; padding: 0; border-radius: 0; background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow-y: auto; animation: ui-drawer .22s var(--ease); }
@keyframes ui-drawer { from { transform: translateX(24px); opacity: .4; } to { transform: none; opacity: 1; } }
.mobile-menu-inner { display: flex; flex-direction: column; gap: 2px; padding: 12px 20px 28px; max-width: none; }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; min-height: 56px; margin-bottom: 6px; }
.mobile-menu-head b { font-size: 16px; }
.mobile-menu-inner > a { display: flex; align-items: center; min-height: 50px; padding: 0 2px; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 550; text-decoration: none; }
.mobile-menu-inner > .btn { margin-top: 16px; align-self: stretch; width: 100%; }

/* ---------- 7. Главная: герой ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 12fr) minmax(0, 13fr); grid-template-areas: "copy visual" "facts facts"; gap: 40px clamp(28px, 4vw, 64px); align-items: center; min-height: 0; padding-block: clamp(20px, 3vw, 40px) clamp(32px, 4vw, 56px); background: none; }
.hero-copy { grid-area: copy; min-width: 0; max-width: none; padding: 0; }
.hero-kicker, .section-kicker { margin: 0 0 14px; color: var(--accent); font-size: 14px; font-weight: 650; letter-spacing: -.005em; }
.hero h1 { margin: 0; font-size: clamp(38px, 4vw, 60px); line-height: 1.03; letter-spacing: -.042em; font-weight: 750; color: var(--ink); }
.hl { position: relative; white-space: normal; background: linear-gradient(transparent 62%, var(--pop) 62%, var(--pop) 94%, transparent 94%); box-decoration-break: clone; -webkit-box-decoration-break: clone; padding-inline: .04em; }
[data-theme="dark"] .hl { background: linear-gradient(transparent 66%, rgba(244, 207, 122, .38) 66%, rgba(244, 207, 122, .38) 94%, transparent 94%); }
.hero .lead { margin: 20px 0 0; max-width: 56ch; font-size: clamp(16.5px, 1.35vw, 18.5px); line-height: 1.5; color: var(--ink-soft); }
.hero-form { display: block; margin: 26px 0 0; padding: 14px 14px 14px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); transition: box-shadow .18s var(--ease), border-color .18s; }
.hero-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow); }
.hero-form label { display: block; margin: 2px 4px 6px; font-size: 14px; font-weight: 650; color: var(--ink); }
.hero-form textarea { display: block; width: 100%; min-height: 60px; padding: 4px; border: 0; border-radius: 6px; background: transparent; font-size: 17px; line-height: 1.4; resize: none; box-shadow: none; }
.hero-form textarea:focus, .hero-form textarea:hover { box-shadow: none; border: 0; }
.hero-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 8px 0 0; }
.hero-access-note { flex: 1; margin: 0 0 0 4px; font-size: 13.5px; line-height: 1.35; color: var(--muted); }
.topic-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.topic-examples span { margin-right: 4px; }
.topic-examples button { min-height: 36px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--ink-soft); font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.topic-examples button:hover { background: var(--surface); border-color: var(--ink); color: var(--ink); }
.topic-examples .more-ideas { display: inline-flex; align-items: center; gap: 6px; border-style: dashed; color: var(--muted); }
.topic-examples .more-ideas .ic { width: 15px; height: 15px; }
/* The topic field breathes until the visitor starts typing. */
@keyframes hero-invite { 0% { box-shadow: 0 0 0 0 var(--accent-line), var(--shadow); } 70%, 100% { box-shadow: 0 0 0 12px transparent, var(--shadow); } }
.hero-form.is-inviting { border-color: var(--accent-line); animation: hero-invite 2.6s var(--ease) infinite; }
.hero-form.is-inviting label { color: var(--accent); }

.hero-visual { grid-area: visual; min-width: 0; padding: clamp(14px, 1.8vw, 22px); border-radius: 26px; background: linear-gradient(155deg, var(--brand-block) 0%, var(--brand-block-2) 100%); color: var(--on-brand); box-shadow: var(--shadow-lg); }
.preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 12px; min-height: 44px; }
.hero-example-label { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; margin: 0; color: var(--on-brand-soft); font-size: 13.5px; font-weight: 500; }
.hero-example-label > span { flex: none; }
.hero-example-label select { flex: 1; min-width: 0; width: auto; max-width: 100%; min-height: 40px; border-color: var(--brand-line); border-radius: 10px; background-color: rgba(255, 255, 255, .1); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); color: #fff; font-size: 13.5px; font-weight: 500; }
.hero-example-label select option { color: #15141d; background: #fff; }
.hero-example-label select:hover { border-color: rgba(255, 255, 255, .55); }
.hero-example-label select:focus { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }
#demoBtn { flex: none; color: #fff; font-size: 14px; }
#demoBtn:disabled { color: var(--on-brand-soft); }
.hero-preview-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 0; max-height: none; border: 0; border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, .1); box-shadow: 0 18px 44px -14px rgba(3, 20, 16, .75); }
.hero-preview-stage .loading-state { min-height: 100%; height: 100%; color: var(--on-brand-soft); }
.hero-preview-stage .loading-state::before { border-color: rgba(255, 255, 255, .3); border-top-color: #fff; }
.hero-preview-controls { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; color: #fff; font-size: 14px; font-variant-numeric: tabular-nums; }
.hero-preview-controls .icon-btn { background: rgba(255, 255, 255, .1); border-color: var(--brand-line); color: #fff; }
.hero-preview-controls .icon-btn:hover:not(:disabled) { background: rgba(255, 255, 255, .22); }
.hero-preview-controls .icon-btn:disabled { opacity: .4; }
.slide-counter {display:inline-grid;place-items:center;flex:0 0 4rem;inline-size:4rem;min-block-size:1.5rem;white-space:nowrap;font-variant-numeric:tabular-nums;}
.slide-counter[data-loading]::before {content:"";inline-size:13px;block-size:13px;border:1px solid currentColor;border-inline-end-color:transparent;border-radius:50%;animation:slide-counter-spin .8s linear infinite;}
@keyframes slide-counter-spin {to {transform:rotate(1turn);}}
@media(prefers-reduced-motion:reduce){.slide-counter[data-loading]::before {animation:none;}}
.preview-caption { flex: 1; min-width: 0; margin-left: 8px; color: var(--on-brand-soft); font-size: 13.5px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-note { min-height: 74px; margin: 12px 0 0; padding: 11px 14px; border-radius: 12px; background: rgba(255, 255, 255, .1); border: 1px solid var(--brand-line); }
.hero-visual .hero-note {block-size:86px;overflow:hidden;}
.hero-note[data-empty] {visibility:hidden;}
.hero-note b { display: block; margin-bottom: 3px; font-size: 12.5px; font-weight: 650; color: var(--pop); }
.hero-note p { margin: 0; font-size: 13.5px; line-height: 1.45; color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.preview-note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.hero-visual .preview-note { color: var(--on-brand-soft); font-size: 12.5px; min-block-size:2lh; }
.family-slide svg text[data-role="stat-value"],.content-slide .cs-stat-value,.catalog-stat-value {white-space:nowrap;}
.hero-supplement { grid-area: facts; min-width: 0; max-width: none; padding: 0; margin: 0; }
.hero-facts { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; border-block: 1px solid var(--line); }
.hero-facts li { padding: 18px 20px; border-left: 1px solid var(--line); min-width: 0; }
.hero-facts li:first-child { border-left: 0; padding-left: 0; }
.hero-facts a { display: block; color: inherit; text-decoration: none; }
.hero-facts a:hover b { color: var(--accent); }
.hero-facts b { display: block; margin-bottom: 3px; font-size: 15.5px; font-weight: 650; letter-spacing: -.01em; transition: color .15s; }
.hero-facts span { display: block; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.hero-mode-note { min-height: 20px; margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }

/* ---------- 8. Главная: секции ---------- */
.section { padding-block: clamp(48px, 7vw, 96px); border: 0; background: none; }
.section-intro, .section-heading { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; max-width: none; margin: 0 0 clamp(26px, 3.4vw, 44px); }
.section-intro { display: block; max-width: 760px; }
.section-heading > div { max-width: 760px; }
.section h2 { margin: 0; font-size: clamp(30px, 3.7vw, 50px); line-height: 1.08; letter-spacing: -.035em; font-weight: 740; color: var(--ink); text-wrap: balance; }
.section-intro p:not(.section-kicker), .section-heading p:not(.section-kicker) { margin: 14px 0 0; max-width: 60ch; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.5; color: var(--muted); }
.section-kicker { margin-bottom: 10px; }
.reveal-once { opacity: 1; transform: none; }
.process-section { display: block; }
.process-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; counter-reset: step; border: 0; }
.process-list > li { counter-increment: step; display: flex; flex-direction: column; padding: 14px 14px 24px; margin: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.process-list h3 { margin: 18px 10px 8px; font-size: 20px; line-height: 1.25; letter-spacing: -.02em; font-weight: 680; }
.process-list h3::before { content: counter(step); display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 9px; border-radius: 50%; background: var(--accent-fill); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0; vertical-align: 2px; }
.process-list p { margin: 0 10px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.process-visual { display: flex; flex-direction: column; gap: 9px; height: 208px; padding: 16px; border-radius: 13px; background: var(--surface-2); overflow: hidden; }
.mini-label { font-size: 12px; font-weight: 650; color: var(--muted); }
.mini-input { display: block; padding: 11px 13px; border: 1.5px solid var(--accent-fill); border-radius: 10px; background: var(--surface); color: var(--ink); font-size: 14.5px; line-height: 1.4; box-shadow: 0 0 0 3px var(--accent-soft); }
.mini-attach { display: inline-flex; align-items: center; align-self: flex-start; gap: 6px; padding: 6px 11px; border: 1px dashed var(--line-strong); border-radius: 8px; font-size: 12.5px; color: var(--muted); }
.mini-attach .ic { width: 13px; height: 13px; }
.mini-outline { list-style: none; counter-reset: o; display: grid; gap: 5px; margin: 0; padding: 0; }
.mini-outline li { counter-increment: o; display: flex; align-items: center; gap: 9px; min-width: 0; padding: 5px 10px; border-radius: 7px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; line-height: 1.3; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-outline li::before { content: counter(o); color: var(--accent); font-weight: 700; flex: none; }
.process-visual-result { position: relative; padding: 16px 16px 0; }
.mini-slide { position: relative; width: 100%; border-radius: 8px 8px 0 0; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); flex: none; }
.mini-files { position: absolute; right: 26px; bottom: 14px; display: flex; gap: 6px; }
.mini-files span { padding: 5px 11px; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: 12.5px; font-weight: 700; box-shadow: var(--shadow); }
.mini-files span:last-child { background: var(--pop); color: var(--on-pop); }
.audience-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.audience-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: transparent; color: var(--ink); text-align: left; cursor: pointer; font: inherit; transition: background .15s, border-color .15s, transform .18s var(--ease); }
.audience-card:hover { background: var(--surface); border-color: var(--ink); transform: translateY(-2px); }
.audience-card b { font-size: 19px; font-weight: 680; letter-spacing: -.018em; }
.audience-card span { flex: 1; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.audience-card em { margin-top: 8px; font-size: 13.5px; font-style: normal; font-weight: 600; color: var(--accent); }
.audience-card em::after { content: " →"; }
.live-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.landing-catalog-card, .catalog-card { display: flex; flex-direction: column; min-width: 0; padding: 12px 12px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: none; transition: border-color .15s, box-shadow .2s, transform .2s var(--ease); }
.landing-catalog-card:hover, .catalog-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.catalog-card-preview { display: block; border-radius: 11px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.catalog-stage { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; }
.landing-catalog-card > div:last-child, .catalog-card-copy { padding: 16px 8px 0; display: block; }
.catalog-card-meta { margin: 0 0 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.catalog-example-title, .catalog-card h2 { margin: 0 0 7px; font-size: 19px; line-height: 1.28; font-weight: 660; letter-spacing: -.016em; color: var(--ink); }
.catalog-card h2 a { color: inherit; text-decoration: none; }
.landing-catalog-card p:not(.catalog-card-meta):not(.catalog-example-title), .catalog-card-copy p:not(.catalog-card-meta) { margin: 0 0 10px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.landing-card-placeholder > div:last-child { min-height: 168px; }
.landing-plans:has(> .loading-state) { min-height: 720px; }
.landing-style { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: clamp(20px, 3vw, 44px); align-items: start; padding: clamp(14px, 2vw, 24px); border-radius: 26px; background: var(--surface); border: 1px solid var(--line); }
.landing-style-preview { min-width: 0; }
.landing-style-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow); }
/* Three real pages of one deck: the cover above, an interior slide and a slide with a picture below. */
.landing-style-deck { display: grid; gap: 12px; }
.landing-style-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.landing-style-row .landing-style-stage { border-radius: 9px; box-shadow: var(--shadow-sm); }
.landing-families .landing-family { display: flex; flex-direction: column; align-items: stretch; gap: 2px; min-height: 0; padding: 6px 6px 10px; border: 1px solid var(--line-strong); border-radius: 12px; background: transparent; color: var(--ink); text-align: left; }
.landing-families .landing-family:hover { border-color: var(--ink); }
.landing-families .landing-family[aria-pressed="true"] { border-color: var(--accent-fill); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-fill); }
.landing-family-thumb { position: relative; display: block; aspect-ratio: 16 / 9; margin-bottom: 6px; border-radius: 7px; overflow: hidden; background: var(--surface-2); }
.landing-family b { padding: 0 4px; font-size: 14px; font-weight: 650; }
.landing-family small { padding: 0 4px; font-size: 12px; line-height: 1.3; font-weight: 500; color: var(--muted); }
.landing-swatch { display: inline-flex; flex: none; width: 30px; height: 22px; margin-right: 10px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line-strong); }
.landing-swatch i { flex: 2; }
.landing-swatch i + i { flex: 1; }
.landing-theme > span:last-child { text-decoration: none; min-width: 0; overflow-wrap: normal; word-break: normal; hyphens: auto; -webkit-hyphens: auto; }
.catalog-card-preview { position: relative; }
.card-slide-count { position: absolute; right: 12px; bottom: 12px; padding: 2px 8px; border-radius: 999px; background: rgba(12, 14, 13, .62); color: #fff; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; pointer-events: none; }
.carousel-dots { display: none; }
.landing-style-controls { display: flex; flex-direction: column; gap: 0; min-width: 0; padding-block: 6px; }
.style-control-label { margin: 0 0 9px; font-size: 14px; font-weight: 650; color: var(--ink); }
.landing-families { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 22px; }
.landing-families button { min-height: 44px; padding: 0 8px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-soft); font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.landing-families button:hover { color: var(--ink); }
.landing-families button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.landing-themes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 0 0 14px; border: 0; padding: 0; }
.landing-theme { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; text-decoration: none; gap: 0; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: transparent; color: var(--ink); font-size: 14px; font-weight: 500; text-align: left; cursor: pointer; opacity: 1; transform: none; transition: border-color .15s, background .15s; }
.landing-theme:hover { border-color: var(--ink); }
.landing-theme[aria-pressed="true"] { border-color: var(--accent-fill); background: var(--accent-soft); color: var(--ink); font-weight: 650; box-shadow: inset 0 0 0 1px var(--accent-fill); }
.theme-choice { margin: 0 0 16px; font-size: 13.5px; color: var(--muted); }
.landing-style-controls .btn { width: 100%; }
.landing-style-controls .preview-note { margin-top: 10px; }
.trust-section { padding-block: clamp(36px, 5vw, 64px); }
.trust-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; margin: 0; padding: 0; }
.trust-grid li { padding-top: 16px; border-top: 2px solid var(--ink); min-width: 0; }
.trust-grid b { display: block; margin-bottom: 7px; font-size: 17.5px; font-weight: 670; letter-spacing: -.015em; line-height: 1.28; }
.trust-grid p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.trust-links { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 26px 0 0; }
.trust-links .text-link { font-size: 14.5px; min-height: 32px; }

/* ---------- 9. Тарифы ---------- */
.landing-plans, .public-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.landing-plan, .public-plan, .price-card { display: flex; flex-direction: column; min-width: 0; padding: 26px 24px 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: none; }
.landing-plan-pro { background: var(--brand-block); border-color: var(--brand-block); color: var(--on-brand); }
.landing-plan h3, .public-plan h2, .price-card h2 { margin: 0; font-size: 18px; font-weight: 680; letter-spacing: -.015em; }
.landing-plan .landing-price, .public-plan .plan-price { margin: 12px 0 2px; font-size: clamp(34px, 3.1vw, 44px); line-height: 1.05; font-weight: 750; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.landing-period { margin: 4px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.landing-plan-pro .landing-period { color: var(--on-brand-soft); }
.landing-plan ul, .public-plan ul, .price-card ul { list-style: none; display: grid; gap: 8px; margin: 18px 0 0; padding: 0; font-size: 14.5px; line-height: 1.42; }
.landing-plan li, .public-plan li, .price-card li { position: relative; padding-left: 24px; color: inherit; }
.landing-plan > ul:first-of-type li:first-child, .public-plan > ul:first-of-type li:first-child { font-weight: 650; }
.plan-tagline { margin: 3px 0 0; color: var(--muted); }
.landing-plan-pro .plan-tagline { color: var(--on-brand-soft); }
.landing-plan-pro h3, .landing-plan-pro .landing-price, .landing-plan-pro b, .landing-plan-pro ul, .landing-plan-pro li { color: #fff; }
.landing-plan .plan-tagline, .public-plan .plan-tagline { margin: 3px 0 0; font-size: 14px; }
.landing-plan .landing-period, .public-plan .plan-price + .hint { margin: 4px 0 0; }
.landing-plan p.hint, .public-plan p.hint { margin: 14px 0 0; }
.landing-plan p.hint + ul, .public-plan p.hint + ul { margin-top: 8px; }
.landing-plan li::before, .public-plan li::before, .price-card li::before { content: ""; position: absolute; left: 2px; top: .33em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg) scale(.86); transform-origin: center; }
.landing-plan-pro li::before { border-color: var(--pop); }
.landing-plan p, .public-plan p { font-size: 13.5px; line-height: 1.45; }
.landing-plan > p.hint, .public-plan > p.hint { margin: 14px 0 0; color: var(--muted); }
.landing-plan > p.landing-period, .public-plan > .plan-price + p.hint { margin-top: 4px; }
.landing-plan-pro > p.hint { color: var(--on-brand-soft); }
.landing-plan b, .public-plan b, .landing-plan strong, .public-plan strong { font-weight: 650; }
.landing-plan > .btn, .public-plan > .btn { margin-top: auto; width: 100%; }
.landing-plan > ul:last-of-type, .public-plan > ul:last-of-type { margin-bottom: 14px; }
.landing-plan-pro .btn[disabled] { background: rgba(255, 255, 255, .13); color: var(--on-brand-soft); }
.landing-plan-pro .btn:not([disabled]) { background: var(--pop); border-color: var(--pop); color: var(--on-pop); }
.plan-tagline { font-weight: 500; }
.plan-warning { padding: 9px 11px; border-radius: 9px; background: var(--warn-soft); color: var(--ink-soft) !important; }
.landing-plan-pro .plan-warning { background: rgba(255, 255, 255, .12); color: #fff !important; }
.plan-more { margin: 14px 0 22px; border-top: 1px solid var(--line); }
.landing-plan-pro .plan-more { border-top-color: var(--brand-line); }
.plan-more > summary, .plan-rules > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; font-size: 14px; font-weight: 600; list-style: none; }
.plan-more > summary::-webkit-details-marker, .plan-rules > summary::-webkit-details-marker { display: none; }
.plan-more > summary::after, .plan-rules > summary::after { content: "+"; flex: none; font-size: 18px; font-weight: 400; line-height: 1; }
.plan-more[open] > summary::after, .plan-rules[open] > summary::after { content: "−"; }
.landing-plan .plan-more ul, .public-plan .plan-more ul { margin: 2px 0 8px; font-size: 13.5px; }
.landing-plan .plan-more li, .public-plan .plan-more li { font-weight: 400; }
.plan-rules { margin: 14px 0 0; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.plan-rules p { margin: 0 0 10px; max-width: 88ch; font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.pricing-note { max-width: none; margin: 18px 0 0; padding: 12px 16px; border-radius: var(--r-md); background: var(--surface-3); color: var(--ink-soft); font-size: 14.5px; line-height: 1.5; }
.pricing-explanation, .modes-footnote { margin: 10px 0 0; max-width: 92ch; font-size: 13px; line-height: 1.55; color: var(--muted); }
.public-plan.current { border-color: var(--accent-fill); box-shadow: inset 0 0 0 1px var(--accent-fill); }
.checkout-docs { margin: 12px 0 16px; }
.checkout-docs .legal-links { font-size: 13px; }

/* ---------- 10. FAQ, финал, подвал ---------- */
.questions-section { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 24px clamp(28px, 5vw, 72px); align-items: start; }
.questions-section .section-intro { margin: 0; position: sticky; top: calc(var(--site-header-height, 72px) + 24px); }
.faq { display: block; max-width: none; border-top: 1px solid var(--line-strong); }
.faq details { border: 0; border-bottom: 1px solid var(--line); background: none; border-radius: 0; padding: 0; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 60px; padding: 14px 0; list-style: none; font-size: 17px; font-weight: 600; line-height: 1.32; letter-spacing: -.012em; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-3); color: var(--ink); font-size: 19px; font-weight: 400; line-height: 1; transition: transform .2s var(--ease), background .15s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent-fill); color: #fff; }
.faq summary:hover { color: var(--accent); }
.faq details p { margin: 0 44px 20px 0; font-size: 15.5px; line-height: 1.58; color: var(--ink-soft); }
.final-section { padding-block: 12px clamp(40px, 6vw, 72px); display: block; }
.final-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding: clamp(32px, 5vw, 64px); border-radius: 28px; background: linear-gradient(155deg, var(--brand-block) 0%, var(--brand-block-2) 100%); color: var(--on-brand); }
.final-card h2 { flex: 1 1 480px; color: #fff; font-size: clamp(28px, 3.5vw, 46px); }
.footer { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 28px 40px; padding-block: 44px 28px; margin-top: 0; border-top: 1px solid var(--line); background: none; align-items: start; }
.foot-brand p { margin: 10px 0 0; font-size: 14.5px; color: var(--muted); }
.foot-brand, .footer-links, .footer-legal-links { grid-column: auto; grid-row: auto; margin: 0; }
.footer-links, .footer-legal-links { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 2px; font-size: 14.5px; }
.foot-title { margin-bottom: 8px; font-size: 13.5px; font-weight: 650; color: var(--ink); }
.footer-links a, .footer-legal-links a { display: inline-flex; align-items: center; min-height: 34px; color: var(--muted); font-size: 14.5px; text-decoration: none; }
.footer-links a:hover, .footer-legal-links a:hover { color: var(--ink); text-decoration: underline; }
.foot-note { grid-column: 1 / -1; margin: 12px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ---------- 11. Кабинет: каркас ---------- */
.app { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100dvh; background: var(--bg); }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; gap: 0; width: auto; height: 100dvh; padding: 18px 14px 14px; border-right: 1px solid var(--line); background: var(--surface); overflow-y: auto; z-index: 75; }
.side-brand { margin: 0 6px 16px; }
.side-new { width: 100%; margin: 0 0 16px; }
.side-nav { display: flex; flex-direction: column; gap: 1px; }
.side-divider { display: block; height: 1px; margin: 9px 10px; background: var(--line); }
.side-link { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 42px; padding: 8px 11px; border: 0; border-radius: 10px; background: none; color: var(--ink-soft); font-size: 14.5px; font-weight: 500; text-align: left; text-decoration: none; cursor: pointer; transition: background .13s, color .13s; }
.side-link .ic { color: var(--muted); }
.side-link:hover { background: var(--surface-2); color: var(--ink); }
.side-link.active, .side-link.is-active, .side-link[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 620; }
.side-link.active .ic, .side-link.is-active .ic, .side-link[aria-current="page"] .ic { color: var(--accent); }
.side-bottom { display: flex; flex-direction: column; gap: 4px; margin-top: auto; padding-top: 16px; }
.side-plan { display: block; margin: 0 0 6px; padding: 13px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.side-plan-top { display: grid; gap: 2px; margin-bottom: 10px; }
.side-plan-top b { font-size: 14px; font-weight: 650; }
.side-plan-top span { font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.side-plan-btn { width: 100%; min-height: 38px; padding-block: 7px; font-size: 13.5px; background: var(--surface); }
.user-card { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 7px 9px; border: 0; border-radius: 11px; background: none; color: var(--ink); text-align: left; cursor: pointer; }
.user-card:hover { background: var(--surface-2); }
.user-card .avatar { pointer-events: none; }
.user-meta { display: grid; min-width: 0; line-height: 1.25; }
.user-meta b { font-size: 13.5px; font-weight: 620; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-meta span { font-size: 12px; color: var(--muted); }
.app-main { display: flex; flex-direction: column; min-width: 0; min-height: 100dvh; margin: 0; }
.app-topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; height: auto; padding: 8px clamp(16px, 3vw, 36px); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
.top-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.top-right { display: flex; align-items: center; gap: 8px; flex: none; }
.crumb { min-width: 0; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-pill { display: none; }
.top-right #topTheme { border-color: transparent; background: transparent; }
.top-right #topTheme:hover { background: var(--line); }
.app-view { flex: 1; width: 100%; max-width: 1240px; margin-inline: auto; padding: clamp(20px, 3.2vw, 40px) clamp(16px, 3vw, 36px) 48px; min-width: 0; }
.app-footer { padding: 14px clamp(16px, 3vw, 36px); border-top: 1px solid var(--line); background: none; }
.email-verification-reminder { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; margin: -6px 0 20px; padding: 6px 14px; border: 1px solid var(--line); border-left: 3px solid var(--warn); border-radius: var(--r-sm); background: var(--surface); }
.email-verification-reminder p { margin: 0; font-size: 13.5px; line-height: 1.45; }
.email-verification-reminder a { display: inline-flex; align-items: center; min-height: 44px; flex-shrink: 0; font-size: 13.5px; }
.email-verification-panel b { font-size: 14.5px; font-weight: 650; }
.email-verification-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 10px; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; margin: 0 0 22px; }
.dash-head h1, .deck-head h1, .admin-heading h1, .auth-card h1, .wizard-card h1, .catalog-heading h1, .reviews-heading h1 { margin: 0; font-size: clamp(27px, 3vw, 38px); line-height: 1.12; font-weight: 740; letter-spacing: -.032em; color: var(--ink); text-wrap: balance; }
.dash-head .muted { margin: 7px 0 0; font-size: 15.5px; line-height: 1.45; }
.dash-head h1:focus, .deck-head h1:focus { outline: none; }

/* ---------- 12. Библиотека ---------- */
.stat-strip { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 22px; padding: 0; border: 0; background: none; }
.stat-chip { display: inline-flex; align-items: baseline; gap: 7px; padding: 0; border: 0; background: none; box-shadow: none; flex: none; min-width: 0; }
.stat-chip b { font-size: 24px; font-weight: 720; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat-chip span { font-size: 14px; color: var(--muted); }
.toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 0 0 12px; }
.toolbar-right { display: flex; align-items: center; gap: 8px; flex: 1 1 300px; justify-content: flex-end; min-width: 0; }
.seg { display: inline-flex; width: fit-content; max-width: 100%; gap: 2px; padding: 3px; border: 0; border-radius: 12px; background: var(--surface-3); }
.seg button { min-height: 38px; padding: 0 15px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-soft); font-size: 14px; font-weight: 600; cursor: pointer; }
.seg button.is-active, .seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.search { width: 100%; max-width: 280px; min-width: 0; }
.search.select { max-width: 190px; }
.folder-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 20px; min-width: 0; }
.folders-scroll { display: flex; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chip-btn { flex: none; min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink-soft); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.chip-btn:hover { border-color: var(--line-strong); color: var(--ink); }
.chip-btn.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); font-weight: 600; }
#addFolder { flex: none; min-height: 38px; border-color: transparent; color: var(--accent); }
#addFolder:hover { background: var(--accent-soft); }
.deck-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 20px; }
.deck-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 10px 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); box-shadow: none; transition: border-color .15s, box-shadow .2s, transform .2s var(--ease); }
.deck-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.deck-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--surface-2); }
.fav { position: absolute; top: 16px; right: 16px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--muted); cursor: pointer; box-shadow: var(--shadow-sm); }
.fav:hover { color: var(--ink); }
.fav.is-active, .fav[aria-pressed="true"] { color: #d99a00; }
.fav.is-active .ic, .fav[aria-pressed="true"] .ic { fill: currentColor; }
.deck-meta { display: grid; gap: 2px; padding: 12px 6px 0; }
.deck-meta b { font-size: 15.5px; font-weight: 640; line-height: 1.3; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.deck-meta b a { color: inherit; text-decoration: none; }
.deck-meta b a:hover { color: var(--accent); }
.deck-meta span { font-size: 13.5px; color: var(--muted); }
.deck-sub, .deck-folder { padding: 3px 6px 0; font-size: 13px; color: var(--muted); }
.deck-actions { display: flex; align-items: center; gap: 6px; margin-top: auto; padding: 12px 2px 0; min-width: 0; }
.deck-actions .btn { min-height: 40px; padding: 8px 12px; font-size: 13.5px; flex: 0 1 auto; }
.deck-actions > a.btn:first-child { flex: 1; background: var(--ink); border-color: var(--ink); color: var(--bg); }
.deck-actions > a.btn:first-child:hover { background: var(--ink-soft); border-color: var(--ink-soft); }
.deck-actions .icon-plain { margin-left: auto; min-height: 40px; min-width: 40px; }
.dropdown { position: absolute; z-index: 90; min-width: 210px; padding: 5px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); box-shadow: var(--shadow-lg); }
.dropdown button, .dropdown a { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 44px; padding: 8px 11px; border: 0; border-radius: 8px; background: none; color: var(--ink); font-size: 14.5px; text-align: left; text-decoration: none; cursor: pointer; }
.dropdown button:hover, .dropdown a:hover { background: var(--surface-2); }
.dropdown .danger, .dropdown button.danger { color: var(--danger-text); }
.pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 24px 0 0; font-size: 14px; color: var(--muted); }
.pager:empty { display: none; }
.guest-intro { margin: 0 0 18px; padding: 13px 16px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--ink-soft); font-size: 14.5px; line-height: 1.5; }
.guest-intro p { margin: 0; }
.guest-result { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin: 0 0 20px; padding: 16px 18px; border: 1px solid var(--accent-line); border-radius: var(--r-md); background: var(--accent-soft); font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.guest-result p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }
.guest-result p.hint { margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.guest-result > div:first-child { flex: 1 1 340px; min-width: 0; }
.guest-next-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.guest-check { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: var(--r-md); background: var(--surface-2); font-size: 14.5px; }
.draft-recovery { padding: 16px 18px; margin: 0 0 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }

/* ---------- 13. Мастер создания ---------- */
.wizard { max-width: 780px; margin: 0 auto; }
.wizard-compact { max-width: 780px; }
.stepper, .stepper.labeled { list-style: none; display: flex; align-items: center; justify-content: center; gap: 0; margin: 0 0 22px; padding: 0; }
.stepper-item { display: flex; flex-direction: row; align-items: center; gap: 9px; flex: 0 1 auto; width: auto; min-width: 0; text-align: left; color: var(--muted); font-size: 14px; font-weight: 550; }
.stepper-item:not(:last-child)::after { content: ""; display: block; position: static; width: clamp(20px, 7vw, 64px); height: 1.5px; margin-inline: 12px; background: var(--line-strong); }
.stepper-item i { display: grid; place-items: center; width: 28px; height: 28px; border: 1.5px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--muted); font-size: 13px; font-style: normal; font-weight: 700; flex: none; }
.stepper-item.active { color: var(--ink); font-weight: 650; }
.stepper-item.active i { background: var(--accent-fill); border-color: var(--accent-fill); color: #fff; }
.stepper-item.done { color: var(--ink-soft); }
.stepper-item.done i { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.stepper-item.done::after { background: var(--accent-fill); }
.stepper-item i .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.wizard-card { padding: clamp(20px, 3.4vw, 36px); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.wizard-card h1 { font-size: clamp(25px, 2.8vw, 34px); }
.wizard-card .sub { margin: 8px 0 18px; font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.audience-field { display: grid; gap: 7px; margin: 0 0 16px; }
.audience-field .seg { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.audience-field .seg button { min-height: 44px; padding-inline: 6px; }
.audience-field .hint { margin: 0; }
.wizard-illustration { margin: 16px 0 0; }
.wizard-illustration .seg { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wizard-illustration .seg button:disabled { opacity: .55; cursor: not-allowed; }
.facts-notice { max-width: none; }
.wizard-defaults { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px 32px; margin: 0 0 8px; }
.wizard-defaults .slide-count-field { display: grid; grid-template-columns: 88px auto; align-items: center; column-gap: 12px; row-gap: 7px; margin: 0; }
.wizard-defaults .slide-count-field > span:first-child { grid-column: 1 / -1; }
.wizard-defaults .slide-count-field input { width: 88px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.wizard-theme-current { display: grid; grid-template-columns: auto auto; justify-content: start; align-items: center; column-gap: 12px; row-gap: 7px; min-width: 0; }
.wizard-theme-current > :first-child { grid-column: 1 / -1; }
.wizard-theme-current span { font-size: 14px; font-weight: 600; }
.wizard-theme-current b { font-size: 15px; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }
.wizard-material, .wizard-options, .source-details { margin: 14px 0 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.wizard-material > summary, .wizard-options > summary, .source-details > summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 16px; font-size: 15px; font-weight: 600; line-height: 1.3; list-style: none; border-radius: var(--r-md); }
.wizard-material > summary::-webkit-details-marker, .wizard-options > summary::-webkit-details-marker, .source-details > summary::-webkit-details-marker { display: none; }
.wizard-material > summary::after, .wizard-options > summary::after, .source-details > summary::after { content: ""; flex: none; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform .18s var(--ease); }
.wizard-material[open] > summary::after, .wizard-options[open] > summary::after, .source-details[open] > summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.wizard-material > summary:hover, .wizard-options > summary:hover { background: var(--surface-2); }
.wizard-material > :not(summary), .wizard-options > :not(summary) { margin-inline: 16px; }
.wizard-material[open], .wizard-options[open] { padding-bottom: 16px; }
.source-details { margin-top: 10px; background: var(--surface-2); }
.source-details > summary { min-height: 44px; font-size: 14px; }
.source-details > :not(summary) { margin-inline: 14px; margin-bottom: 12px; }
.source-status { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); }
.wizard-actions { position: static; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); background: none; box-shadow: none; }
.wizard-actions .btn-primary { min-height: 50px; padding-inline: 24px; font-size: 15.5px; }
.source-actions, .handoff-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.source-picker { position: relative; }
.source-picker:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.source-picker input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.source-import .source-status:empty, .source-footer[hidden], .no-source-switch[hidden], #pasteInstead[hidden] { display: none; }
.wizard-handoff { margin: 0 0 14px; padding-block: 4px; }
.wizard-handoff summary { color: var(--accent); cursor: pointer; min-height: 44px; align-content: center; }
.wizard-handoff .field { margin-top: 12px; }
#handoffQr img { display: block; margin-block: 12px; border: 1px solid var(--line); border-radius: 8px; }
.billing-compare-note, .pricing-source-examples { margin-block: 12px; }
@media (max-width: 640px) {
  .source-actions .btn { flex: 1 1 125px; }
  #sourceText[rows="8"] { height: clamp(148px, 23svh, 200px); min-height: 148px; }
  #wizardForm .wizard-actions { flex-direction: column; }
}
.wizard-question { margin: 18px 0 0; padding: 0; border: 0; }
.wizard-question legend { margin-bottom: 8px; padding: 0; font-weight: 650; font-size: 15.5px; }
.seg.seg-wrap { flex-wrap: wrap; width: auto; }
.seg.seg-wrap button { min-height: 40px; text-align: left; }
.wizard-start-modes,.hero-start-modes { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; gap:6px; }
.wizard-start-modes { margin-top:14px; }
.wizard-start-modes button,.hero-start-modes .btn { min-height:44px; white-space:normal; padding:8px; line-height:1.3; text-align:center; }
.hero-start-modes { margin-bottom:10px; }
@media (max-width: 480px) {
  .wizard-question { min-inline-size:0; }
  .wizard-question .seg.seg-wrap { display:grid; grid-template-columns:minmax(0,1fr); gap:6px; padding:0; background:transparent; }
  .wizard-question .seg.seg-wrap button { min-height:48px; width:100%; border:1px solid var(--line-strong); padding:10px 12px; overflow-wrap:anywhere; }
  .wizard-question .seg.seg-wrap button[aria-pressed="true"] { border-color:var(--accent); background:var(--accent-soft); }
  .wizard-questions .wizard-actions .btn { min-height:44px; white-space:normal; }
}
.wizard-question-count { display: grid; grid-template-columns: 88px auto; align-items: center; column-gap: 12px; row-gap: 7px; margin: 22px 0 0; }
.wizard-question-count > span:first-child { grid-column: 1 / -1; font-weight: 650; font-size: 15.5px; }
.wizard-question-count input { width: 88px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.wizard-actions-end { display: flex; flex-wrap: wrap; gap: 10px; margin-left: auto; }
@media (max-width: 480px) { .wizard-actions-end { width: 100%; } .wizard-actions-end .btn { flex: 1; } }
.family-fieldset, .theme-fieldset { min-width: 0; margin: 14px 0 0; padding: 0; border: 0; }
.family-fieldset legend, .theme-fieldset legend { margin-bottom: 10px; padding: 0; font-size: 14px; font-weight: 650; }
.family-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.family-choice { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px; min-width: 0; padding: 10px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.family-choice:hover { border-color: var(--line-strong); }
.family-choice.is-active, .family-choice:has(input:checked) { border-color: var(--accent-fill); background: var(--accent-soft); }
.family-choice:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.family-name { font-size: 14px; font-weight: 600; }
.family-preview { border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); }
.tpl-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tpl-mini, .tpl-pick > button { display: grid; gap: 7px; min-width: 0; padding: 7px 7px 9px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font-size: 13.5px; font-weight: 550; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.tpl-mini:hover, .tpl-pick > button:hover { border-color: var(--line-strong); }
.tpl-mini[aria-pressed="true"], .tpl-pick > button[aria-pressed="true"], .tpl-mini.is-active { border-color: var(--accent-fill); background: var(--accent-soft); }
.tpl-thumb { border-radius: 6px; overflow: hidden; }
.struct-list { display: grid; gap: 7px; margin: 16px 0 10px; }
.struct-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 7px 6px 11px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); transition: border-color .15s, background .15s; }
.struct-row:focus-within { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-soft); }
.struct-num { display: block; font-size: 14px; font-weight: 700; color: var(--accent); text-align: center; font-variant-numeric: tabular-nums; }
.struct-input { min-height: 40px; padding: 8px 6px; border: 0; background: transparent; font-size: 15px; font-weight: 500; resize: none; overflow: hidden; }
.struct-input:focus, .struct-input:hover { border: 0; box-shadow: none; }
.struct-controls { display: flex; gap: 1px; flex: none; }
.struct-move, .struct-del { display: grid; place-items: center; width: 34px; height: 40px; min-height: 40px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; font-size: 15px; }
.struct-move:hover:not(:disabled), .struct-del:hover:not(:disabled) { background: var(--surface-3); color: var(--ink); }
.struct-move:disabled, .struct-del:disabled { opacity: .3; cursor: not-allowed; }
.struct-del:hover:not(:disabled) { color: var(--danger-text); background: var(--danger-soft); }
.add-row { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 46px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-sm); background: none; color: var(--accent); font-size: 14.5px; font-weight: 600; cursor: pointer; }
.add-row:hover { background: var(--accent-soft); border-color: var(--accent); }
.add-row:disabled { color: var(--muted); cursor: not-allowed; }
/* Live previews from the actual layout renderer. */
.gen-progress { scroll-margin-top: 72px; }
.wizard-card .sub { overflow-wrap:anywhere; }
.gen-progress-head { display: flex; align-items: center; gap: 10px; min-height: 24px; margin: 0; color: var(--ink); }
.gen-pulse { position: relative; width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--accent); }
.gen-pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: gen-ping 1.6s var(--ease) infinite; }
@keyframes gen-ping { 0% { transform: scale(.4); opacity: .7; } 100% { transform: scale(1.3); opacity: 0; } }
.gen-previews { margin-top: 16px; }
#genLead { max-width: 760px; margin-inline: auto; }
#genSlides { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 148px), 1fr)); gap: 8px; margin-top: 8px; }
.gen-slide-stage { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 8px; background: var(--bg-soft); box-shadow: 0 0 0 1px var(--line); }
.gen-tip { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); }
.gen-previews:has(.gen-slide-stage) + .gen-tip { display: none; }
.generation-status { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; padding: 14px 16px; border-radius: var(--r-md); background: var(--accent-soft); font-size: 14.5px; line-height: 1.45; }

/* ---------- 14. Страница презентации ---------- */
.deck-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px 28px; margin: 0 0 18px; }
.deck-head > div:first-child { flex: 1 1 380px; min-width: 0; }
.deck-head h1 { margin-top: 6px; font-size: clamp(25px, 2.7vw, 34px); }
.deck-info { margin: 7px 0 0; font-size: 14px; color: var(--muted); }
.deck-actions-row { display: grid; grid-template-columns: auto auto; justify-content: end; gap: 8px; flex: none; max-width: 100%; width: auto; }
.export-font-link { grid-column: 1 / -1; text-align: right; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; min-height: 28px; }
.export-font-link:hover { color: var(--ink); }
.export-font-note { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.deck-actions-row .export-font-note { grid-column: 1 / -1; max-width: 34ch; justify-self: end; text-align: right; line-height: 1.45; }
.deck-actions-row .export-font-note a { display: inline; }
.deck-controls { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin: 0 0 20px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.deck-controls .field { margin: 0; flex: 0 1 190px; }
.deck-controls .field > span { font-size: 13px; color: var(--muted); font-weight: 550; }
.theme-select { margin: 0; }
.deck-toolbar-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.deck-actions-holder { position: relative; }
.deck-actions-holder .dropdown { right: 0; top: calc(100% + 6px); }
.deck-slides-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 14px; font-size: 13.5px; color: var(--muted); }
.deck-slides-heading h2 { font-size: 19px; font-weight: 680; letter-spacing: -.015em; color: var(--ink); margin: 0; }
.deck-slides-heading h2 span { color: var(--muted); font-weight: 500; margin-left: 4px; }
.deck-slides {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "heading tools" "slides slides";
  align-items: center;
  gap: 12px 16px;
  min-width: 0;
  margin-top: 18px;
}
.deck-slides .deck-slides-heading { grid-area: heading; margin: 0; justify-content: flex-start; align-items: center; }
.deck-slides .slides-grid { grid-area: slides; }
.deck-slide-tools { grid-area: tools; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; min-width: 0; }
.deck-slide-tools .btn { min-height: 44px; }
.deck-slide-tools #deckSlideError { flex-basis: 100%; }
.deck-slides + .deck-controls { margin-top: 20px; }
.deck-result-notes { margin-top: 20px; }
.deck-head h1 { overflow-wrap: anywhere; }
.wizard-compact #wTopic { field-sizing: content; min-height: 80px; line-height: 1.5; resize: vertical; }
.slides-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; max-width: none; }
.thumb { position: relative; display: block; width: 100%; min-width: 0; padding: 0; border: 0; background: none; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.thumb-stage { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s var(--ease), border-color .15s; }
.thumb:focus-visible .thumb-stage { border-color: var(--accent-fill); box-shadow: 0 0 0 2px var(--accent-fill), var(--shadow); transform: translateY(-2px); }
.thumb::after { content: "Редактировать"; position: absolute; top: 10px; right: 10px; padding: 6px 11px; border-radius: 8px; background: var(--accent-fill); color: #fff; font-size: 13px; font-weight: 600; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .18s var(--ease); pointer-events: none; }
.thumb.is-readonly::after { content: "Посмотреть"; }
.thumb:focus-visible::after { opacity: 1; transform: none; }
@media (hover: hover) {
  .thumb:hover .thumb-stage { border-color: var(--accent-fill); box-shadow: 0 0 0 2px var(--accent-fill), var(--shadow); transform: translateY(-2px); }
  .thumb:hover::after { opacity: 1; transform: none; }
}
.thumb-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 2px 0; }
.thumb-caption b { min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb-caption span { flex: none; font-size: 12.5px; color: var(--muted); }
.feedback-invite { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 18px; margin: 0 0 16px; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); font-size: 14.5px; }
.feedback-invite-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- 15. Модальные окна ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; overflow-y: auto; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(14, 18, 17, .56); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.modal-card { position: relative; z-index: 1; width: 100%; max-width: 620px; max-height: none; padding: clamp(20px, 3vw, 30px); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-lg); animation: ui-pop .22s var(--ease); }
@keyframes ui-pop { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-card.narrow { max-width: 460px; }
.modal-card h2 { margin: 0 34px 8px 0; font-size: 23px; line-height: 1.2; font-weight: 720; letter-spacing: -.024em; }
.modal-card > .muted, .modal-card > form > .muted { margin: 0 0 16px; font-size: 14.5px; line-height: 1.5; }
.modal-x { position: absolute; top: 10px; right: 10px; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.modal-x:hover { background: var(--surface-2); color: var(--ink); }
.photo-modal .modal-card { display: flex; flex-direction: column; width: min(1000px, 100%); max-width: 1000px; max-height: calc(100dvh - 40px); padding: 0; overflow: hidden; }
.photo-modal-title h2, .photo-search-form .field { margin: 0; }
@media(max-width:560px) {
  .photo-modal.modal { padding: 0; }
  .photo-modal .modal-card { width: 100%; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; animation: none; }
}
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.btn.danger-action, .dialog-actions .btn-primary.danger { background: var(--danger); border-color: var(--danger); color: #fff; }

/* редактор слайда */
.modal-card.viewer-card { width: min(1560px, 100%); max-width: none; height: min(960px, calc(100dvh - 32px)); padding: 0; overflow: hidden; }
#viewer { padding: 16px; }
.viewer-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 0; height: 100%; min-height: 0; }
.viewer-stage-wrap { display: flex; flex-direction: column; justify-content: center; gap: 14px; min-width: 0; min-height: 0; padding: clamp(14px, 2vw, 28px); background: var(--bg-soft); }
.viewer-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line); }
.viewer-nav { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.viewer-tools-toggle { display: none; }
.viewer-toolbar #closeViewer { background: var(--surface); }
.viewer-photo-status { margin: 0; text-align: center; color: var(--ink-soft); }
.viewer-photo-status:empty { display: none; }
.viewer-tools .slide-variants + .slide-order { margin-top: 8px; }
.editor-dialog-header { display: flex; align-items: start; }
.editor-dialog-header h2 { margin-block: 0 12px; }
.editor-dialog-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
#actionForm { display: flex; flex-direction: column; max-height: calc(100dvh - 40px); }
#actionForm .editor-dialog-scroll > .muted { margin: 0 0 14px; }
.image-generation-modal .modal-card { display: flex; flex-direction: column; max-height: calc(100dvh - 40px); overflow: hidden; }
.image-generation-modal .editor-dialog-scroll { padding-top: 4px; }
.image-generation-modal .editor-dialog-close { position: absolute; top: 0; right: 0; z-index: 3; }
.image-generation-modal .editor-dialog-close .modal-x { top: 6px; right: 6px; background: var(--surface); }
.slide-variants { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; font-size: 14px; font-variant-numeric: tabular-nums; }
.slide-variants.hidden { display: none; }
.deck-images-status { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); color: var(--ink-soft); font-size: 14px; animation: ui-appear .2s ease-out; }
.deck-images-status::before { content: ""; flex: none; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ui-spin .8s linear infinite; }
@media (prefers-reduced-motion: reduce) { .deck-images-status::before { animation: none; } }
.slide-actions { margin: 6px 0 4px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.slide-actions.hidden, .slide-action-form.hidden { display: none; }
.slide-actions-title { margin: 0 0 8px; font-weight: 650; font-size: 14px; }
.slide-actions-row { display: flex; flex-wrap: wrap; gap: 6px; }
.slide-actions .hint { margin: 8px 0 0; }
.slide-action-form { margin-top: 10px; }
.slide-action-form .field { margin: 0; }
.slide-action-form-row { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.slide-variants-caption { color: var(--muted); }
.slide-variants-label { min-width: 13em; text-align: center; font-weight: 600; }
@media (max-width: 480px) { .slide-variants { gap: 6px; } .slide-variants-label { min-width: 0; flex: 1; } }
.viewer-panel { display: flex; flex-direction: column; min-height: 0; padding: 20px 20px 0; overflow-y: auto; border-left: 1px solid var(--line); background: var(--surface); }
.viewer-panel .step { margin: 0 44px 16px 0; font-size: 18px; font-weight: 700; letter-spacing: -.016em; text-transform: none; color: var(--ink); }
.viewer-panel .field { margin-bottom: 13px; }
.viewer-panel .field > span { font-size: 13.5px; }
.viewer-panel textarea, .viewer-panel input { font-size: 14.5px; }
.slide-photo-panel { padding: 14px 0 6px; margin: 2px 0 8px; border-top: 1px solid var(--line); }
.viewer-photo-heading b { font-size: 13.5px; font-weight: 600; }
.viewer-image-actions { display: flex; flex-wrap: wrap; gap: 0 16px; margin-top: 2px; }
.photo-restore { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 2px; padding: 6px 12px; border: 1px solid var(--accent-line); border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.photo-restore:hover { border-color: var(--accent); }
.photo-restore .ic { width: 15px; height: 15px; }
.photo-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 4px 0 18px; padding: 0 0 18px; border-bottom: 1px solid var(--line); }
.photo-modal-header .photo-quick { margin: 8px 0 0; padding: 0; border: 0; }
.photo-quick .btn { display: inline-flex; align-items: center; gap: 7px; }
.photo-quick .ic { width: 16px; height: 16px; }
.photo-quick-hint { font-size: 13px; color: var(--muted); }
/* Admin analytics. */
.an-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 16px; }
.an-toolbar .hint { margin: 0; max-width: 560px; }
.an-periods { display: flex; gap: 6px; }
.chip-link { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink-soft); font-size: 14px; font-weight: 500; text-decoration: none; }
.chip-link[aria-current="page"] { border-color: var(--accent-fill); background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.an-funnel { list-style: none; display: grid; gap: 12px; margin: 0; padding: 0; }
.an-step-head { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.an-step-head span { font-weight: 700; font-variant-numeric: tabular-nums; }
.an-step-bar { height: 10px; margin: 6px 0 4px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.an-step-bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent-fill); }
.an-funnel p { margin: 0; font-size: 12.5px; color: var(--muted); }
.an-stalls, .an-comments { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.an-stalls li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.an-stalls li small { display: block; color: var(--muted); font-size: 12.5px; }
.an-stalls b { font-variant-numeric: tabular-nums; }
.an-comments li { display: grid; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.an-subhead { margin: 18px 0 8px; font-size: 15px; }
.an-daily { display: flex; align-items: stretch; gap: 3px; height: 160px; padding-top: 8px; overflow-x: auto; }
.an-day { flex: 1 0 14px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 14px; }
.an-day-bar { position: relative; display: flex; align-items: flex-end; width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--accent-line); overflow: hidden; }
.an-day-bar i { display: block; width: 100%; background: var(--accent-fill); }
.an-day small { font-size: 10.5px; color: var(--muted); }
.an-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; }
.an-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--accent-line); }
.an-legend i.is-deck { background: var(--accent-fill); }
.an-failed td { background: rgba(196, 64, 48, .06); }
.an-experiment { margin-bottom: 14px; }
.consent-check, .consent-toggle { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-soft); cursor: pointer; }
.consent-check input, .consent-toggle input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--accent-fill); }
.consent-toggle { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); }
.deck-retention { display: block; margin: 6px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }
.deck-retention .ic { width: 15px; height: 15px; color: var(--accent); }
.deck-feedback { margin: 14px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.feedback-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.feedback-actions { display: flex; gap: 8px; }
.feedback-actions .btn[aria-pressed="true"] { border-color: var(--accent-fill); background: var(--accent-soft); color: var(--accent); }
.feedback-more { display: grid; gap: 10px; margin-top: 12px; }
.feedback-more .hint { margin: 0; }
.feedback-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.feedback-chips .chip-btn { min-height: 36px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--ink-soft); font-size: 13.5px; cursor: pointer; }
.feedback-chips .chip-btn[aria-pressed="true"] { border-color: var(--accent-fill); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.feedback-more .btn-primary { justify-self: start; }
.feedback-thanks { margin: 0; font-size: 14.5px; color: var(--ink-soft); }
.panel-actions { position: sticky; bottom: 0; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: auto -20px 0; padding: 12px 20px 16px; border-top: 1px solid var(--line); background: var(--surface); }
#editorStatus { margin: 4px 0 2px; font-size: 13px; }
#viewerGenerateNote { margin: 0 0 10px; font-size: 12.5px; }

/* вход и подтверждение email */
.auth-screen { display: grid; justify-items: center; align-content: start; gap: 14px; padding-block: clamp(8px, 4vh, 44px); max-width: none; }
.auth-screen > .back-link { width: min(460px, 100%); }
.auth-card { width: min(460px, 100%); padding: clamp(22px, 3.4vw, 34px); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.auth-heading { margin: 0 0 18px; }
.auth-card h1 { font-size: 27px; }
.auth-heading .muted, .auth-card .muted { margin: 7px 0 0; font-size: 14.5px; line-height: 1.5; }
.auth-form { display: grid; gap: 0; }
.auth-form .field { margin-bottom: 12px; }
.auth-form > .btn-primary { min-height: 50px; margin-top: 8px; font-size: 15.5px; }
.password-toggle { justify-self: start; min-height: 36px; margin: -8px 0 6px; font-size: 13.5px; font-weight: 550; }
.auth-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 14px; margin-top: 12px; padding-top: 8px; font-size: 14.5px; }
.auth-legal-links { margin-top: 12px; font-size: 13px; }
.auth-status { font-size: 14px; margin: 6px 0; }
#publicAuthContent h2, #publicAuthContent h1 { font-size: 24px; margin-right: 34px; }
.email-confirmation-content { display: grid; gap: 12px; margin-top: 10px; font-size: 15px; line-height: 1.5; }
.email-confirmation-content p { margin: 0; }
.email-correction { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 4px; }
.email-correction > summary { min-height: 44px; display: flex; align-items: center; font-size: 14.5px; font-weight: 600; color: var(--accent); }

/* ---------- 16. Профиль, тарифы в кабинете, шаблоны, помощь ---------- */
.settings-stack { display: grid; gap: 14px; }
.settings-section { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 14px 32px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.settings-description h2 { margin: 0 0 5px; font-size: 18px; font-weight: 680; letter-spacing: -.015em; }
.settings-description p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.settings-panel { min-width: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.settings-panel .field:last-of-type { margin-bottom: 14px; }
.billing-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 0 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.billing-summary > div { display: grid; gap: 4px; padding: 14px 18px; border-left: 1px solid var(--line); min-width: 0; }
.billing-summary > div:first-child { border-left: 0; }
.billing-summary span { font-size: 13px; color: var(--muted); }
.billing-summary b { font-size: 20px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
#billingUsageDetails { display: grid; gap: 2px; margin: 0 0 4px; }
#billingContent > .mode-notice { margin: 14px 0; }
.public-plans { margin-top: 16px; }
.public-plan .hint { margin-top: 2px; }
.public-plan h2 { font-size: 19px; }
.public-plan .plan-price { font-size: 36px; }
.price-grid, .app-prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.faq-app { border-top: 1px solid var(--line-strong); }
.tpl-big-grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.tpl-big { display: flex; flex-direction: column; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); box-shadow: none; }
.tpl-big-stage { border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
#tplPalette, .tpl-palette select { max-width: 320px; }
.tpl-big-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 4px 2px; font-weight: 600; }

/* ---------- 17. Каталог и отзывы ---------- */
.catalog-page, .reviews-page { padding-block: clamp(28px, 5vw, 56px) clamp(48px, 7vw, 80px); }
.catalog-heading, .reviews-heading { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px 28px; margin: 0 0 24px; }
.catalog-heading h1, .reviews-heading h1 { font-size: clamp(32px, 4vw, 52px); letter-spacing: -.038em; }
.catalog-heading p, .reviews-heading p { margin: 10px 0 0; max-width: 62ch; font-size: 16.5px; line-height: 1.5; color: var(--muted); }
.catalog-detail-heading { display: block; }
.catalog-detail-heading h1 { font-size: clamp(27px, 3.3vw, 44px); margin: 2px 0 0; }
.catalog-search { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 0 0 12px; max-width: 620px; }
.catalog-search label { flex: 1 1 280px; display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.catalog-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.catalog-filters button { min-height: 40px; padding: 0 15px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--ink-soft); font-size: 14px; font-weight: 500; cursor: pointer; }
.catalog-filters button:hover { border-color: var(--ink); color: var(--ink); }
.catalog-filters button[aria-pressed="true"], .catalog-filters button.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); font-weight: 600; }
.catalog-status { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.catalog-downloads { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 22px; }
.catalog-downloads .export-font-note { flex: 1 0 100%; }
.catalog-presentation { padding: clamp(12px, 2vw, 22px); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.catalog-slide-tools { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.catalog-reader { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr); gap: clamp(16px, 2.6vw, 32px); align-items: start; }
.catalog-detail-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); }
.catalog-filmstrip { display: flex; gap: 8px; margin: 12px 0 0; padding: 2px; overflow-x: auto; scrollbar-width: thin; }
.catalog-slide-choice { flex: 0 0 112px; display: grid; gap: 3px; padding: 3px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; }
.catalog-slide-choice:hover { border-color: var(--line-strong); }
.catalog-slide-choice[aria-current], .catalog-slide-choice.is-active, .catalog-slide-choice[aria-pressed="true"] { border-color: var(--accent-fill); color: var(--accent); }
.catalog-slide-copy { min-width: 0; font-size: 14.5px; line-height: 1.55; }
.catalog-visible-text { margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.catalog-visible-text > summary { min-height: 40px; display: flex; align-items: center; font-weight: 600; }
.catalog-visible-text h2 { font-size: 17px; margin: 4px 0; letter-spacing: -.01em; }
.catalog-notes h2, .catalog-notes h3 { font-size: 15px; font-weight: 650; margin: 0 0 6px; color: var(--accent); }
.catalog-source { margin: 22px 0 0; padding: 20px; border-radius: var(--r-md); background: var(--surface-2); font-size: 14.5px; line-height: 1.55; }
.catalog-source dl { margin: 0; display: grid; gap: 4px; }
.catalog-source dt { margin-top: 8px; font-weight: 650; }
.catalog-source dd { margin: 0; color: var(--ink-soft); }
.catalog-provenance { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.reviews-list { display: grid; gap: 12px; }
.review-entry { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.reviews-policy { margin: 20px 0 0; font-size: 13.5px; color: var(--muted); }
.feedback-modal .rating-options { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- 18. Управление сервисом ---------- */
.admin-page { max-width: none; }
.admin-heading { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; }
.admin-scope { margin: 0 0 4px; font-size: 13.5px; font-weight: 600; color: var(--accent); text-transform: none; letter-spacing: 0; }
.admin-nav { display: flex; gap: 2px; margin: 0 0 20px; padding: 3px; border-radius: 12px; background: var(--surface-3); overflow-x: auto; scrollbar-width: none; width: fit-content; max-width: 100%; border: 0; }
.admin-nav a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 9px; border: 0; color: var(--ink-soft); font-size: 14px; font-weight: 550; text-decoration: none; white-space: nowrap; }
.admin-nav a:hover { color: var(--ink); }
.admin-nav a[aria-current], .admin-nav a.active, .admin-nav a.is-active { background: var(--surface); color: var(--ink); font-weight: 650; box-shadow: var(--shadow-sm); border: 0; }
.admin-panel { padding: 18px 20px; margin: 0 0 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); box-shadow: none; }
.admin-section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.admin-section-head h2, .admin-panel h2 { margin: 0; font-size: 17px; font-weight: 670; letter-spacing: -.012em; }
.admin-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 0 0 14px; }
.admin-metrics .admin-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .admin-metrics .admin-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.admin-summary > * { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.admin-table-wrap { overflow-x: auto; border-radius: 8px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { padding: 9px 12px; border-bottom: 1px solid var(--line-strong); color: var(--muted); font-size: 12.5px; font-weight: 600; text-align: left; white-space: nowrap; text-transform: none; letter-spacing: 0; background: none; }
.admin-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: var(--surface-2); }

/* ---------- 19. Адаптив ---------- */
.only-mobile { display: none; }
@media (max-width: 1180px) {
  .nav-links a { padding-inline: 9px; font-size: 14px; }
  .nav-start { display: none; }
  .audience-grid, .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .trust-grid { gap: 22px 24px; }
}
@media (600px <= width <= 1100px) {
  .deck-head { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; justify-content: stretch; }
  .deck-head .deck-actions-row { display: flex; flex-flow: row wrap; align-items: center; justify-content: flex-start; width: 100%; }
  .deck-actions-row .export-font-note, .deck-actions-row .deck-export-status {
    flex-basis: 100%; max-width: none; text-align: left;
  }
  .deck-slides { grid-template-columns: minmax(0, 1fr); grid-template-areas: "heading" "tools" "slides"; }
}
@media (600px <= width <= 1180px) {
  .admin-overview-summary { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .admin-overview-summary > * { grid-column: span 2; min-width: 0; }
  .admin-overview-summary > :nth-child(n + 4) { grid-column: span 3; }
}
@media (860px < width <= 1100px) {
  .viewer-stage-wrap { justify-content: flex-start; }
  #appBurger { display: none; }
}
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .nav-start { display: inline-flex; }
  .burger { display: inline-grid; }
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "visual" "facts"; gap: 30px; }
  .hero h1 { font-size: clamp(38px, 7.6vw, 64px); }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-facts li { border-left: 0; padding: 14px 16px 14px 0; }
  .process-list { grid-template-columns: minmax(0, 1fr); }
  .process-visual { height: 180px; }
  .process-visual-result { height: 210px; }
  .landing-style { grid-template-columns: minmax(0, 1fr); }
  .landing-plans, .public-plans { grid-template-columns: minmax(0, 1fr); max-width: 620px; }
  .questions-section { grid-template-columns: minmax(0, 1fr); }
  .questions-section .section-intro { position: static; }
  .catalog-reader { grid-template-columns: minmax(0, 1fr); }
  .landing-card-placeholder > div:last-child { min-height: 186px; }
  .viewer-layout { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 860px) {
  .app { display: block; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(304px, 88vw); height: 100dvh; transform: translateX(-102%); transition: transform .24s var(--ease); box-shadow: none; }
  .app.drawer-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
  .only-mobile { display: inline-grid; }
  .drawer-close { position: absolute; top: 12px; right: 10px; z-index: 2; }
  .settings-section { grid-template-columns: minmax(0, 1fr); }
  .billing-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .billing-summary > div:first-child { grid-column: 1 / -1; }
  .billing-summary > div:nth-child(2) { border-left: 0; }
  .billing-summary > div:nth-child(n + 2) { border-top: 1px solid var(--line); }
  #viewer { padding: 0; align-items: stretch; }
  .modal-card.viewer-card { width: 100%; height: 100dvh; border: 0; border-radius: 0; animation: none; overflow: hidden; }
  body:has(#viewer:not(.hidden)) .toast { top: auto; bottom: 76px; }
  .viewer-layout { grid-template-columns: minmax(0,1fr); grid-template-rows: auto minmax(0,1fr); }
  .viewer-stage-wrap { position: relative; z-index: 2; padding: 2px 10px 8px; gap: 4px; border-bottom: 1px solid var(--line); }
  .viewer-toolbar { order: -1; display: flex; align-items: center; justify-content: space-between; gap: 4px; }
  .viewer-toolbar #closeViewer { position: static; flex: 0 0 44px; }
  .viewer-toolbar .viewer-nav { margin-inline-end: auto; gap: 2px; }
  .viewer-toolbar .viewer-nav .slide-counter { inline-size: 3rem; flex-basis: 3rem; }
  .viewer-tools-toggle:not([hidden]) { display: inline-flex; min-height: 44px; }
  .viewer-tools { display: none; position: absolute; top: 48px; inset-inline: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-lg); }
  .viewer-tools.is-open { display: block; }
  .viewer-nav .icon-btn { width: 40px; height: 40px; min-width: 40px; min-height: 40px; }
  .viewer-panel { padding: 10px 14px 0; overflow-y: auto; border-left: 0; min-height: 0; }
  .viewer-panel #viewerPhoto { order: -1; padding: 0 0 8px; margin: 0 0 10px; border: 0; border-bottom: 1px solid var(--line); }
  .viewer-panel #viewerPhoto>.hint { display: none; }
  .viewer-panel #viewerPhoto .text-btn { min-height: 44px; }
  .viewer-panel .step { margin: 0 0 12px; }
  .panel-actions { margin: 8px -16px 0; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); }
  .modal-x { top: 6px; right: 6px; }
}
@media (max-width: 620px) {
  .nav-inner { min-height: 60px; gap: 6px; }
  .brand-logo { height: 27px; }
  .nav-start { display: none; }
  .nav-actions #loginBtn { padding-inline: 10px; }
  .hero { padding-top: 10px; }
  .hero-form-actions { flex-direction: column-reverse; align-items: stretch; gap: 10px; }
  .hero-form-actions .btn { width: 100%; }
  .hero-access-note { margin: 0; text-align: center; }
  .hero-form { padding: 12px; }
  .preview-heading { flex-wrap: wrap; gap: 4px 10px; }
  .hero-example-label { flex-basis: 100%; }
  .hero-example-label > span { display: none; }
  .hero-example-label select { width: 100%; }
  .hero-visual { border-radius: 20px; }
  .preview-caption { display: none; }
  .hero-preview-controls { justify-content: center; }
  .hero-visual .hero-note { block-size:104px; }
  .landing-card-placeholder > div:last-child { min-height: 188px; }
  .hero-note p { -webkit-line-clamp: 3; }
  .hero-mode-note { min-height: 60px; }
  .landing-plans:has(> .loading-state) { min-height: 2100px; }
  .hero-facts { grid-template-columns: minmax(0, 1fr); }
  .hero-facts li { padding: 12px 0; border-top: 1px solid var(--line); }
  .hero-facts li:first-child { border-top: 0; }
  .audience-grid { grid-template-columns: minmax(0, 1fr); }
  .trust-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .live-grid { grid-template-columns: minmax(0, 1fr); }
  /* Long rows of cards become swipeable strips, so the page stays short. */
  .process-list[data-carousel], .audience-grid[data-carousel], .live-grid[data-carousel], .trust-grid[data-carousel] { display: flex; gap: 12px; margin-inline: calc(-1 * var(--site-gutter)); padding: 4px var(--site-gutter) 6px; flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--site-gutter); overscroll-behavior-x: contain; scrollbar-width: none; }
  [data-carousel]::-webkit-scrollbar { display: none; }
  [data-carousel] > * { flex: 0 0 84%; min-width: 0; scroll-snap-align: start; }
  .live-grid[data-carousel] > * { flex-basis: 88%; }
  .trust-grid[data-carousel] > li { flex-basis: 74%; }
  .carousel-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
  .carousel-dots span { width: 7px; height: 7px; border-radius: 999px; background: var(--line-strong); cursor: pointer; transition: width .2s var(--ease), background .2s; }
  .carousel-dots span.is-active { width: 20px; background: var(--accent); }
  .landing-family small { display: none; }
  .landing-theme { padding: 8px 10px; font-size: 13.5px; }
  .landing-swatch { width: 24px; height: 18px; margin-right: 8px; }
  .landing-style-row, .landing-style-deck { gap: 8px; }
  .landing-families .landing-family { padding: 5px 5px 8px; }
  .final-card { border-radius: 22px; }
  .final-card .btn { width: 100%; }
  .footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .toolbar-right { flex-basis: 100%; }
  .search, .search.select { max-width: none; flex: 1; }
  .deck-head, .guest-result { flex-direction: column; align-items: stretch; }
  .deck-head > div:first-child, .guest-result > div:first-child { flex: none; }
  .deck-actions-row { width: 100%; grid-template-columns: repeat(2,minmax(0,1fr)); justify-content: stretch; }
  .deck-actions-row > .btn { min-width:0; white-space:normal; overflow-wrap:anywhere; text-align:center; }
  .catalog-grid { grid-template-columns: minmax(0, 1fr); }
  .export-font-link { text-align: left; }
  .deck-actions-row .export-font-note { justify-self: start; text-align: left; }
  .deck-controls .field { flex: 1 1 40%; }
  .deck-toolbar-right { width: 100%; margin-left: 0; justify-content: space-between; }
  .slides-grid { grid-template-columns: minmax(0, 1fr); }
  .stepper-item span { display: none; }
  .stepper-item.active span { display: inline; }
  .stepper-item:not(:last-child)::after { width: 18px; margin-inline: 8px; }
  .wizard-actions { flex-direction: column-reverse; align-items: stretch; }
  .wizard-actions .btn { width: 100%; }
  .family-pick { grid-template-columns: minmax(0, 1fr); }
  .family-preview-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tpl-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .struct-row { grid-template-columns: 24px minmax(0, 1fr); padding: 6px 8px; }
  .struct-controls { grid-column: 1 / -1; justify-content: flex-end; }
  .struct-move, .struct-del { width: 44px; height: 44px; min-height: 44px; }
  .settings-section { padding: 18px 16px; }
  .deck-card .deck-actions { flex-wrap: wrap; }
  .modal { padding: 12px; }
  .modal-card { padding: 20px 16px; }
  .dialog-actions .btn { flex: 1 1 auto; }
  .catalog-downloads .btn { flex: 1 1 100%; }
  .toast { bottom: 16px; }
}
@media (max-width: 1100px) {
  .settings-section { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 380px) {
  .nav-inner { gap: 2px; }
  .nav-actions { gap: 0; }
  .brand-logo { height: 24px; }
  .nav-actions #loginBtn { padding-inline: 6px; font-size: 14px; }
}
/* Сенсорные экраны и узкие окна: все цели нажатия не меньше 44 px. */
@media (pointer: coarse), (max-width: 860px) {
  .seg button, .chip-btn, #addFolder, .side-plan-btn, .side-link, .topic-examples button, .catalog-filters button, .landing-theme, .deck-actions .btn, .deck-actions .icon-plain, .struct-move, .struct-del, .fav, .admin-nav a, .back-link, .password-toggle, .hero-example-label select, .legal-links a, .footer-links a, .footer-legal-links a, .trust-links .text-link, .text-link, .viewer-nav .icon-btn { min-height: 44px; }
  .export-font-link { display: inline-flex; align-items: center; min-height: 44px; }
  .deck-actions .icon-plain, .fav, .struct-move, .struct-del, .viewer-nav .icon-btn { min-width: 44px; width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gen-pulse::after { animation: none; }
  .gen-steps li.is-active .gen-dot { animation-duration: 2.4s; }
  .hero-form.is-inviting { animation: none; }
  .deck-card:hover, .thumb:hover .thumb-stage, .audience-card:hover, .landing-catalog-card:hover, .catalog-card:hover { transform: none; }
}

/* быстрый вход: Яндекс ID, VK ID, код из письма */
.auth-quick { display: grid; gap: 10px; margin: 0 0 6px; }
.auth-quick .btn { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 10px; min-height: 48px; font-size: 15px; font-weight: 600; text-decoration: none; }
.auth-provider-mark { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 12px; font-weight: 800; color: #fff; flex: none; }
.auth-provider-yandex .auth-provider-mark { background: #fc3f1d; }
.auth-provider-vk .auth-provider-mark { background: #0077ff; font-size: 10px; }
.auth-code-btn { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); }
.auth-code-btn:hover { background: var(--accent-fill-hover); }
.auth-quick-hint { margin: 0; text-align: center; font-size: 13px; }
.auth-divider { display: flex; flex-direction: row; align-items: center; gap: 12px; margin: 8px 0 10px; color: var(--muted); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-code-input { font-size: 22px; letter-spacing: .35em; font-variant-numeric: tabular-nums; text-align: center; }
.auth-form [data-code-change], .auth-form [data-code-resend] { justify-self: start; min-height: 36px; margin: -6px 0 8px; font-size: 13.5px; }
.auth-oauth-error { margin: 0 0 12px; }
.deck-expiry { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.deck-expiry-soon, .deck-retention-soon { color: #a3470f; font-weight: 600; }
.deck-expiry-expired { color: #a3470f; }
.deck-retention-soon { padding: 8px 10px; border-radius: 10px; background: rgba(214, 112, 30, .1); }
:root[data-theme="dark"] .deck-expiry-soon, :root[data-theme="dark"] .deck-retention-soon, :root[data-theme="dark"] .deck-expiry-expired { color: #f0a46a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .deck-expiry-soon, :root:not([data-theme="light"]) .deck-retention-soon, :root:not([data-theme="light"]) .deck-expiry-expired { color: #f0a46a; } }
/* порядок слайдов в редакторе */
.slide-order { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.slide-order .btn { min-height: 38px; padding: 6px 12px; font-size: 13.5px; }
.slide-order .slide-order-remove { color: #a3341f; }
.slide-order-hint { margin: 6px 0 0; text-align: center; font-size: 13px; }
.deck-slide-limit { margin-left: auto; font-size: 13.5px; color: var(--muted); }
:root[data-theme="dark"] .slide-order .slide-order-remove { color: #f08a72; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .slide-order .slide-order-remove { color: #f08a72; } }
.deck-add-slide { min-height: 36px; font-size: 14px; }
@media (max-width: 640px) {
  .deck-head { gap: 12px; }
  .deck-head h1 { font-size: 23px; line-height: 1.25; }
  .deck-head .back-link { margin-bottom: 8px; }
  .deck-head .deck-slides {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "heading" "tools" "slides";
    width: 100%;
    margin-top: 0;
  }
  .deck-slides .deck-slides-heading { justify-content: space-between; align-items: center; }
  .deck-head .deck-slides .slides-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 88%;
    gap: 12px;
    overflow-x: auto;
    padding: 3px 3px 8px;
    scroll-snap-type: x proximity;
  }
  .deck-slides .thumb { align-self: start; scroll-snap-align: start; }
  .deck-slide-tools .deck-slide-limit { flex: 1; margin-left: 0; }
  .wizard-compact #wTopic { font-size: 16px; }
}
@media (max-width: 520px) { .slide-order { gap: 4px; } .slide-order .btn { padding: 6px 9px; font-size: 13px; } }

/* Owner-only site availability; all rules apply only to these new blocks. */
.site-maintenance-control {display:flex;align-items:center;justify-content:space-between;gap:24px;}
.site-maintenance-control b {font-size:15px;font-weight:600;}
.site-maintenance-control p {margin:7px 0 0;font-size:13px;line-height:1.6;color:var(--muted);}
.site-maintenance-switch {display:grid;place-items:center;flex:none;width:60px;min-height:44px;padding:0;border:0;border-radius:8px;background:transparent;cursor:pointer;}
.site-maintenance-switch>span {position:relative;display:block;width:48px;height:28px;border-radius:16px;background:var(--surface-3);border:1px solid var(--line-strong);transition:background .16s ease-out;}
.site-maintenance-switch>span::after {content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:var(--surface);box-shadow:0 1px 3px rgba(0,0,0,.15);transition:transform .16s ease-out;}
.site-maintenance-switch[aria-checked="true"]>span {background:var(--accent-fill);border-color:var(--accent-fill);}
.site-maintenance-switch[aria-checked="true"]>span::after {transform:translateX(20px);background:#fff;}
.site-maintenance-switch:disabled {cursor:default;opacity:.55;}
.site-maintenance-switch[data-status="unknown"]>span {background:var(--surface-3);border-style:dashed;}
.site-maintenance-switch:focus-visible {outline:2px solid var(--accent);outline-offset:3px;}
.site-maintenance-status {margin:20px 0 10px;font-size:14px;line-height:1.6;}
.site-maintenance-settings [data-maintenance-refresh] {display:inline-flex;align-items:center;min-height:44px;}
.site-maintenance-notice {position:fixed;z-index:160;bottom:16px;left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:space-between;gap:16px;width:max-content;max-width:calc(100% - 32px);padding:8px 16px;border:1px solid var(--accent-line);border-radius:12px;background:var(--surface);color:var(--ink);box-shadow:var(--shadow);font-size:13px;line-height:1.5;}
.site-maintenance-notice[hidden] {display:none;}
.site-maintenance-notice>span {max-width:48ch;}
.site-maintenance-notice>a {display:inline-flex;align-items:center;min-height:44px;flex:none;font-weight:600;color:var(--accent);text-decoration:underline;}
body.site-maintenance-owner {padding-bottom:104px;}
.site-maintenance-auth .sidebar,.site-maintenance-auth .app-topbar,.site-maintenance-auth #emailVerificationNotice {display:none;}
.site-maintenance-auth .app {grid-template-columns:minmax(0,1fr);}
.site-maintenance-auth .app-view {width:100%;}
.site-maintenance-auth .auth-screen>.back-link {display:inline-flex;align-items:center;min-height:44px;}
.site-maintenance-auth #appFooter a[href="/about"] {display:none;}
@media(max-width:640px) {.site-maintenance-notice {align-items:flex-start;font-size:12px;gap:12px;}.site-maintenance-notice>span {padding-top:6px;}.site-maintenance-control {gap:16px;}}
@media(prefers-reduced-motion:reduce) {.site-maintenance-switch>span,.site-maintenance-switch>span::after {transition:none;}}

/* Text edited right on the slide in the editor (slide-inline-edit.js). */
.viewer-stage.inline-edit-pointer { cursor: text; }
.inline-edit-hover { position: absolute; z-index: 6; border: 2px dashed var(--accent); border-radius: 6px; pointer-events: none; }
.inline-editor { position: absolute; z-index: 7; box-sizing: border-box; margin: 0; padding: 2px 4px; border: 2px solid var(--accent); border-radius: 6px; outline: none; resize: none; overflow: hidden; font-family: "Slidecraft Inter", Inter, sans-serif; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent), 0 10px 28px rgba(0, 0, 0, .22); }
.inline-edit-hint { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }

/* Прозрачная цена: what the next button spends, right above it. */
.price-line { margin: 14px 0 0; padding: 10px 14px; border-radius: var(--r-sm); background: var(--surface-2); font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); }
.price-line a { color: var(--accent); font-weight: 600; }
.price-line.is-empty { background: var(--warn-soft); }
.price-line > p, .price-offer p { margin: 0; }
.price-offer { margin-top: 4px; }
.price-offer summary { display: flex; align-items: center; gap: 8px; min-height: 44px; width: fit-content; cursor: pointer; color: var(--accent); font-weight: 600; }
.price-offer summary::after { content: "+"; }
.price-offer[open] summary::after { content: "−"; }
.price-offer[open] summary { margin-bottom: 6px; }
#viewerGenerateNote.is-empty { color: var(--warn); }
.wizard-question-count + .price-line, .wizard-questions .price-line { margin-top: 12px; }

/* Catalog discovery controls share the current UI tokens outside the legacy layer. */
.catalog-browser {display:grid;grid-template-columns:210px minmax(0,1fr);grid-template-areas:"categories search" "categories results";column-gap:32px;align-items:start;}
#site .catalog-browser .catalog-search {grid-area:search;display:block;max-width:none;margin:0 0 20px;}
#site .catalog-browser .catalog-search label {display:block;margin:0 0 8px;font-size:14px;font-weight:600;}
.catalog-browser .catalog-search>div {display:flex;gap:10px;}
.catalog-browser .catalog-search input {min-width:0;flex:1;min-height:48px;padding:12px 14px;background:var(--surface);border:1px solid var(--line-strong);border-radius:8px;color:var(--ink);font:inherit;}
.catalog-categories {grid-area:categories;position:sticky;top:96px;}
#site .catalog-categories h2 {margin:0 0 12px;padding-inline:12px;font-size:16px;line-height:1.5;font-weight:650;letter-spacing:0;}
.catalog-categories nav {display:grid;gap:4px;}
.catalog-categories a {display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:10px 12px;border:1px solid transparent;border-radius:8px;color:var(--ink-soft);font-size:14px;}
.catalog-categories a:hover {background:var(--surface);}
.catalog-categories a[aria-current="page"] {background:var(--accent-soft);border-color:var(--accent);color:var(--accent);font-weight:650;}
.catalog-category-count {font-variant-numeric:tabular-nums;font-weight:500;color:var(--muted);}
.catalog-categories a[aria-current="page"] .catalog-category-count {color:inherit;}
.catalog-browser-results {grid-area:results;min-width:0;}
.catalog-browser .catalog-card-preview {width:100%;flex-shrink:0;}
.catalog-result-heading {display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:16px;}
#site .catalog-browser .catalog-status {margin:0;font-size:14px;}
.catalog-result-heading a {font-size:14px;}
.catalog-breadcrumbs {display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px;font-size:13px;color:var(--muted);}
.catalog-breadcrumbs a {text-decoration:underline;text-underline-offset:3px;}
.catalog-browser .catalog-pagination a,.catalog-browser .catalog-pagination>span {display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:10px 14px;border:1px solid var(--line-strong);border-radius:8px;font-size:14px;color:var(--ink);}
.catalog-browser .catalog-pagination a:hover {border-color:var(--accent);background:var(--surface);}
.catalog-browser .catalog-pagination a[aria-current="page"] {background:var(--accent);border-color:var(--accent);color:var(--bg);font-weight:650;}
.catalog-browser .catalog-pagination>span {border-color:transparent;color:var(--muted);}
@media(max-width:900px){
  .catalog-browser {grid-template-columns:minmax(0,1fr);grid-template-areas:"search" "categories" "results";}
  .catalog-categories {position:static;margin-bottom:24px;}
  .catalog-categories nav {display:flex;flex-wrap:wrap;gap:6px;}
  .catalog-categories a {min-height:44px;border-color:var(--line-strong);}
  #site .catalog-categories h2 {padding:0;margin-bottom:8px;}
}
@media(max-width:600px){.catalog-categories a{padding:8px 12px;gap:12px;}}

.deck-export-status {grid-column:1/-1;max-width:34ch;}
.deck-slide-limit a,#slideLimitHint a {color:var(--accent);text-decoration:underline;text-underline-offset:3px;}
.wizard-skip-questions {margin:0 0 16px;min-height:44px;}
.hero-supplement > .topic-examples {flex:1 1 100%;}
.catalog-reader .catalog-downloads {margin:14px 0 0;}
.catalog-reader .catalog-downloads .export-font-note {flex-basis:100%;}

#site #landingPlans:has(.billing-comparison) {display:block;}
.billing-comparison {width:100%;table-layout:fixed;border-spacing:0;border:1px solid var(--line);border-radius:var(--r-md);background:var(--surface);overflow:hidden;}
.billing-comparison th,.billing-comparison td {padding:12px;text-align:center;border-bottom:1px solid var(--line);overflow-wrap:anywhere;}
.billing-comparison thead th {font-weight:750;}
.billing-comparison th:first-child {width:28%;text-align:left;}
.billing-comparison tbody th {color:var(--muted);font-weight:500;}
.billing-comparison tbody tr:first-child td {font-size:1.15em;font-weight:750;}
.billing-comparison tbody tr:last-child :is(th,td) {border-bottom:0;}
.billing-comparison .is-selected {background:var(--accent-soft);}
.billing-comparison .btn,#site .billing-comparison .btn {min-height:44px;padding:7px 8px;white-space:normal;line-height:1.25;}
.billing-compare-note {margin:10px 0 20px;}
.billing-package-details > div {display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px 20px;}
.billing-package-details section > :is(ul,p) {margin-top:6px;}
.billing-package-details ul {padding-inline-start:20px;}
.checkout-email-step {margin-bottom:20px;padding:16px;border:1px solid var(--line);border-radius:var(--r-md);background:var(--surface);}
.checkout-email-step h2 {margin:0 0 4px;font-size:20px;}
.checkout-email-step > .btn {margin-top:8px;}

@media(max-width:600px) {
  .hero {row-gap:16px;}
  .hero-kicker {margin-bottom:10px;}
  .hero-copy .lead {margin-top:12px;font-size:16px;}
  .hero-form {margin-top:16px;}
  .hero-form textarea {min-height:68px;}
  .preview-heading {flex-wrap:nowrap;margin-bottom:8px;}
  .hero-example-label {flex-basis:0;}
  .hero-example-label select {min-width:0;}
  #site .catalog-page {padding-top:24px;}
  #site .catalog-heading {gap:12px;margin-bottom:16px;}
  #site .catalog-heading p {margin-top:8px;}
  #site .catalog-heading .catalog-card-meta {margin-top:0;}
  #site .catalog-browser .catalog-search {margin-bottom:8px;}
  #site .catalog-browser .catalog-search label,#site .catalog-categories h2 {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
  #site .catalog-browser .catalog-search input {min-height:44px;padding-block:8px;}
  .catalog-categories {margin-bottom:10px;}
  .catalog-categories nav {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;}
  .catalog-categories a {justify-content:center;padding:4px 2px;text-align:center;font-size:12px;line-height:1.2;}
  .catalog-category-count {display:none;}
  .catalog-result-heading {margin-bottom:8px;}
  .catalog-reader .catalog-downloads {gap:8px;}
  .catalog-reader .catalog-downloads .btn:not(.btn-primary) {flex:1;}
  .deck-export-status {flex-basis:100%;max-width:none;}
  .billing-comparison th,.billing-comparison td {padding:8px 3px;font-size:13px;line-height:1.25;}
  .billing-comparison th:first-child {width:27%;padding-left:7px;}
  .billing-comparison tbody tr:first-child td {font-size:14px;}
  .billing-comparison .btn,#site .billing-comparison .btn {font-size:12px;padding:5px 2px;}
}

/* Reading pages share the service frame, typography and theme tokens. */
body { font-family: Inter, "Segoe UI", sans-serif; }
#site .legal-layout { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 64px; align-items: start; padding-block: 56px 88px; }
#site .legal-sidebar { position: sticky; top: 112px; }
#site .legal-nav-label { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
#site .legal-sidebar nav { display: grid; gap: 4px; }
#site .legal-sidebar nav a { display: block; min-height: 44px; padding: 12px; border-radius: 8px; font-size: 14px; line-height: 1.4; }
#site .legal-sidebar nav a:hover { background: var(--surface); }
#site .legal-sidebar nav a[aria-current] { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
#site .legal-contents { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 12px; }
#site .legal-contents summary { cursor: pointer; min-height: 44px; padding-block: 12px; font-size: 14px; }
#site .legal-contents nav a { color: var(--ink-soft); }
#site .legal-reader { min-width: 0; }
#site .legal-version { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
#site .legal-reader h1 { font-size: clamp(32px, 3.5vw, 48px); line-height: 1.12; letter-spacing: -.035em; }
#site .legal-intro { margin-top: 24px; font-size: 19px; line-height: 1.6; }
#site .legal-section { scroll-margin-top: 112px; margin-top: 40px; }
#site .legal-section h2 { font-size: 24px; line-height: 1.3; letter-spacing: -.02em; margin-bottom: 16px; }
#site .legal-section p { font-size: 16px; line-height: 1.75; margin-top: 12px; overflow-wrap: anywhere; }
#site #optionalAnalytics a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
#site #optionalAnalytics .legal-actions { margin-top: 12px; }
#site #optionalAnalytics button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
#site .legal-preview { margin-top: 28px; padding: 20px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 8px 8px 0; }
#site .legal-preview p { font-size: 14px; margin-top: 8px; }
#site .legal-operator { border-top: 1px solid var(--line-strong); padding-top: 32px; }
#site .legal-operator dl { margin: 0; display: grid; gap: 16px; }
#site .legal-operator dl > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; }
#site .legal-operator dt { color: var(--muted); font-size: 14px; line-height: 1.6; }
#site .legal-operator dd { margin: 0; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
#site .legal-operator dd a { text-decoration: underline; text-underline-offset: 4px; }
#site .legal-quick-links { display: flex; gap: 24px; align-items: center; font-size: 14px; }
#site .legal-quick-links a { display: inline-flex; align-items: center; min-height: 44px; }
#site .legal-menu { display: none; position: relative; }
#site .legal-menu > summary { list-style: none; cursor: pointer; }
#site .legal-menu > summary::-webkit-details-marker { display: none; }
#site .legal-menu-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; display: grid; min-width: 220px; padding: 8px; border: 1px solid var(--line, rgba(0,0,0,.12)); border-radius: var(--r-sm, 12px); background: var(--bg, #fff); box-shadow: var(--shadow-lg, 0 12px 32px rgba(0,0,0,.16)); }
#site .legal-menu-panel a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; font-size: 15px; }
#site .legal-menu-panel a:hover, #site .legal-menu-panel a:focus-visible { background: color-mix(in srgb, currentColor 8%, transparent); }
@media (max-width: 1080px) {
  #site .legal-quick-links { display: none; }
  #site .legal-menu { display: block; }
}
@media (max-width: 640px) {
  #site .legal-login { display: none; }
}
#site .legal-menu-start { display: none !important; font-weight: 600; }
@media (max-width: 480px) {
  #site .legal-start { display: none; }
  #site .legal-menu-start { display: flex !important; }
}
#site .legal-footer { display: grid; grid-template-columns: auto 1fr; gap: 24px; padding-block: 32px; border-top: 1px solid var(--line); }
#site .legal-footer nav { grid-column: 2; }
#site .legal-footer nav { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px 24px; align-items: center; }
#site .legal-footer nav a { font-size: 13px; min-height: 44px; display: inline-flex; align-items: center; }
#site .legal-footer .foot-note { grid-column: 1 / -1; font-size: 12px; }
#site a:focus-visible, #site button:focus-visible, #site summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
/* «О сервисе»: страница о продукте, а не текст договора. */
#site .legal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }
#site .legal-about { display: block; max-width: calc(var(--site-max) + 2 * var(--site-gutter)); padding-block: 28px 80px; }
#site .legal-about .legal-sidebar { position: static; margin: 0 0 clamp(28px, 4vw, 44px); }
#site .legal-about .legal-nav-label, #site .legal-about .legal-contents { display: none; }
#site .legal-about .legal-sidebar > nav { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 12px; background: var(--surface-3); }
#site .legal-about .legal-sidebar > nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 9px; color: var(--ink-soft); font-size: 14px; font-weight: 550; text-decoration: none; }
#site .legal-about .legal-sidebar > nav a:hover { background: transparent; color: var(--ink); }
#site .legal-about .legal-sidebar > nav a[aria-current] { background: var(--surface); color: var(--ink); font-weight: 650; box-shadow: var(--shadow-sm); }
#site .legal-about .legal-reader { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
#site .legal-about .legal-reader > .legal-version, #site .legal-about .legal-reader > h1, #site .legal-about .legal-reader > .legal-intro, #site .legal-about .legal-reader > .legal-actions, #site .legal-about .legal-reader > .legal-preview, #site .legal-about .legal-operator { grid-column: 1 / -1; }
#site .legal-about .legal-reader > h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.05; letter-spacing: -.04em; font-weight: 750; }
#site .legal-about .legal-intro { max-width: 34em; margin-top: 16px; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.45; color: var(--ink-soft); }
#site .legal-about .legal-version { order: 90; grid-column: 1 / -1; margin: 8px 0 0; }
#site .legal-about .legal-preview { margin: 8px 0 clamp(14px, 2vw, 24px); padding: 13px 16px; border: 1px solid var(--line); border-left: 3px solid var(--pop); border-radius: var(--r-md); background: var(--surface); }
#site .legal-about .legal-preview p { margin-top: 2px; color: var(--muted); }
#site .legal-about .legal-section { margin: 0; padding: clamp(20px, 2.4vw, 30px); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); scroll-margin-top: 96px; }
#site .legal-about .legal-section h2 { margin-bottom: 10px; font-size: 21px; letter-spacing: -.02em; font-weight: 680; }
#site .legal-about .legal-section p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
#site .legal-about .legal-section:has(+ .legal-operator) { grid-column: 1 / -1; }
#site .legal-about .legal-operator { margin-top: 0; padding: clamp(24px, 3.4vw, 40px); border: 0; border-radius: 26px; background: linear-gradient(155deg, var(--brand-block), var(--brand-block-2)); color: #fff; }
#site .legal-about .legal-operator h2 { margin-bottom: 18px; font-size: clamp(24px, 2.6vw, 32px); color: #fff; }
#site .legal-about .legal-operator dl { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px 28px; }
#site .legal-about .legal-operator dl > div { display: block; }
#site .legal-about .legal-operator dt { margin-bottom: 2px; color: rgba(255, 255, 255, .7); font-size: 13px; }
#site .legal-about .legal-operator dd, #site .legal-about .legal-operator dd a { color: #fff; font-size: 15.5px; font-weight: 550; }
@media (max-width: 720px) {
  #site .legal-about .legal-reader { grid-template-columns: minmax(0, 1fr); }
  #site .legal-about .legal-sidebar > nav { display: flex; width: 100%; }
  #site .legal-about .legal-sidebar > nav a { flex: 1 1 auto; justify-content: center; min-height: 44px; padding: 4px 8px; font-size: 13px; text-align: center; }
  #site .legal-actions .btn { flex: 1 1 100%; }
}
@media (max-width: 900px) {
  #site .legal-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 640px) {
  #site .nav-inner { gap: 12px; min-height: 72px; }
  #site .nav-actions { gap: 8px; }
  #site .nav-actions .btn { padding-inline: 12px; }
  #site .legal-quick-links { display: none; }
  #site .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 28px 48px; }
  #site .legal-sidebar { position: static; }
  #site .legal-sidebar > nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  #site .legal-sidebar > nav a { padding: 10px 6px; font-size: 12px; }
  #site .legal-contents { margin-top: 12px; }
  #site .legal-intro { font-size: 17px; }
  #site .legal-section { margin-top: 32px; scroll-margin-top: 88px; }
  #site .legal-section h2 { font-size: 22px; }
  #site .legal-operator dl > div { grid-template-columns: 1fr; gap: 3px; }
  #site .legal-footer { grid-template-columns: 1fr; gap: 16px; }
  #site .legal-footer nav { display: grid; justify-content: start; gap: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.product-consent {
  position: fixed;
  inset: auto 0 0;
  z-index: 90;
  background: var(--surface);
  color: var(--ink);
  border-top: 1px solid var(--line-strong);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.product-consent[hidden], .product-consent[inert], [inert] > .product-consent { display: none; }
.product-consent-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; padding: 6px clamp(16px, 3vw, 32px); }
.product-consent p { margin: 0; font-size: .88rem; line-height: 1.4; }
.product-consent p a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.product-consent-actions { display: flex; align-items: center; gap: 8px; }
.product-consent-actions .btn { min-height: 36px; border-radius: 8px; padding: 6px 14px; white-space: nowrap; }
.product-consent-actions .consent-decline { padding-inline: 8px; color: var(--ink); background: transparent; border-color: transparent; text-decoration: underline; text-underline-offset: 2px; }
html:has(.product-consent:not([hidden], [inert])) { --consent-space: var(--consent-height, 0px); scroll-padding-bottom: var(--consent-space); }
body::after { content: ""; display: block; height: var(--consent-space, 0px); }
.wizard:not(.wizard-compact) .wizard-actions { bottom: var(--consent-space, 0px); }
#viewer:has(> .product-consent:not([hidden])) { padding-bottom: calc(16px + var(--consent-space, 0px)); }
#viewer:has(> .product-consent:not([hidden])) .viewer-card { height: min(960px, calc(100dvh - 32px - var(--consent-space, 0px))); }
@media (max-width: 860px) {
  #viewer:has(> .product-consent:not([hidden])) { padding-bottom: var(--consent-space, 0px); }
  #viewer:has(> .product-consent:not([hidden])) .viewer-card { height: calc(100dvh - var(--consent-space, 0px)); }
}
@media (max-width: 699px) {
  .product-consent-inner { justify-content: space-between; gap: 2px 10px; padding-block: 8px 4px; }
  .product-consent-actions .btn { min-height: 44px; }
}
@media (max-width: 640px) {
  /* A tap can blur the text field before the form receives the release. */
  body:has(:is(textarea, input:not([type]), input:is([type="text"], [type="email"], [type="password"], [type="search"], [type="number"], [type="url"], [type="tel"]), [contenteditable="true"]):focus, #wizardForm:active) .product-consent { display: none; }
}
.product-question {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}
.product-question-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.product-question { width: min(100%, 540px); margin: 0 0 18px; }
.product-question-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-question h2 { font-size: 1.1rem; margin: 0; }
.product-question form { display: grid; gap: 12px; margin-top: 12px; }
.product-question-options { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.product-question-options label { display: inline-flex; min-height: 44px; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.product-question-options label:has(:checked) { background: var(--accent-soft); border-color: var(--accent); }
.product-question-options input { margin: 0; accent-color: var(--accent); }
.product-question textarea { width: 100%; }
.product-question-comment summary { color: var(--accent); cursor: pointer; width: fit-content; }
.product-question-comment .field { margin-top: 8px; }
.product-admin { display: grid; gap: 18px; margin-bottom: 24px; }
.product-admin h2, .product-admin h3 { margin: 0; }
.product-admin h3 { font-size: 1rem; }
.product-admin .admin-summary { padding: 0; }
.product-admin .admin-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.product-admin-periods, .product-path { display: flex; flex-wrap: wrap; gap: 8px; }
.product-admin-periods a { min-height: 44px; align-content: center; }
.product-funnel { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.product-funnel li { display: grid; gap: 4px; }
.product-funnel li > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.product-funnel progress { appearance: none; width: 100%; height: 5px; background: var(--surface-3); border: 0; border-radius: 3px; }
.product-funnel progress::-webkit-progress-bar { background: var(--surface-3); border-radius: 3px; }
.product-funnel progress::-webkit-progress-value { background: var(--accent); border-radius: 3px; }
.product-funnel progress::-moz-progress-bar { background: var(--accent); border-radius: 3px; }
.product-funnel small, .product-history small { color: var(--muted); }
.product-history { list-style: none; padding: 0; margin: 12px 0 0; }
.product-history li { padding: 12px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.product-path { padding: 4px 0; align-items: baseline; }
.product-path span:not(:last-child)::after { content: " →"; color: var(--muted); }
.product-breakdown { width: 100%; border-collapse: collapse; font-size: .88rem; }
.product-breakdown th, .product-breakdown td { padding: 8px 5px; border-bottom: 1px solid var(--line); text-align: right; }
.product-breakdown th:first-child, .product-breakdown td:first-child { text-align: left; overflow-wrap: anywhere; }
@media (max-width: 880px) {
  .product-admin .admin-columns { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .admin-page:has(#adminProductAnalytics) .admin-heading { align-items: flex-start; }
  .product-admin .admin-panel { padding: 14px; }
  .product-breakdown { font-size: .76rem; }
}
