/* ═══════════════════════════════════════════════════════════════
   BLUEPRINT — COMPONENTS v2.0
   Единая система UI компонентов. Логика Apple:
   минимум типов, максимум модификаторов.

   СТРУКТУРА:
   1.  RESET + BASE
   2.  TYPOGRAPHY UTILITIES
   3.  CARDS          .card / .card--raised / .card--hero
   4.  BUTTONS        .btn / .btn--primary / --ghost / --icon / --text
   5.  INPUT          .input / .input--textarea
   6.  CHIP           .chip / .chip--active / .chip--gift / .chip--animated
   7.  SKELETON       .skeleton-line
   8.  LOADER         брендовый (орб, кольца, шаги)
   9.  GATE           gate-overlay + gate-card
   10. RESTORE BANNER
   11. SYS SHEET      sys-sheet + sys-card
   12. SYNTH CARDS    synth-card + states + collapse
   13. Q&A            question-zone + inline qa
   14. INSIGHTS       insight-card + actions + note
   15. NAVIGATION     sticky-nav + hero chips + share + domain
   16. ANIMATIONS     все @keyframes
   17. RESPONSIVE     @media + @container
   ═══════════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────────────────────
   1. RESET + BASE
───────────────────────────────────────────────────────────────*/
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: contain;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration:        0.01ms !important;
    animation-iteration-count: 1      !important;
    transition-duration:       0.01ms !important;
  }
}

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }


/* ─────────────────────────────────────────────────────────────
   2. TYPOGRAPHY UTILITIES
───────────────────────────────────────────────────────────────*/
.bp-section-heading {
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: 10px;
}
.bp-section-heading::before {
  content: '';
  display: block;
  width: 20px; height: 1px;
  background: var(--gold);
  opacity: 0.5;
  flex-shrink: 0;
}

.bp-param-row   { display: flex; flex-direction: column; gap: 3px; }
.bp-param-label {
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: var(--lh-label);
}
.bp-param-value {
  font-family: var(--font-serif);
  font-size: var(--t-value);
  color: var(--text);
  line-height: var(--lh-title);
}
.bp-param-value--num { font-style: italic; color: var(--gold); font-size: var(--t-hero); }
.bp-param-sub {
  font-family: var(--font-sans);
  font-size: var(--t-meta);
  color: var(--text-muted);
  line-height: var(--lh-meta);
  margin-top: 1px;
}

.bp-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--card2-border) 30%, var(--card2-border) 70%, transparent);
  margin: var(--space-xl) 0;
  border: none;
}

.bp-container {
  width: 100%; max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-pad);
  box-sizing: border-box;
}
.bp-container--reading { max-width: var(--reading-max); }


/* ─────────────────────────────────────────────────────────────
   3. CARDS
   Три уровня. Все остальные карточки строятся на этих примитивах.
───────────────────────────────────────────────────────────────*/
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  padding: var(--card-pad);
  backdrop-filter: var(--el-1-blur);
  -webkit-backdrop-filter: var(--el-1-blur);
  transition: border-color var(--duration-normal) var(--ease-out),
              box-shadow   var(--duration-normal) var(--ease-out);
}
.card--raised {
  background: var(--card2-bg);
  border-color: var(--card2-border);
  border-radius: var(--card2-radius);
  padding: var(--card2-pad);
  backdrop-filter: var(--el-2-blur);
  -webkit-backdrop-filter: var(--el-2-blur);
  box-shadow: var(--el-2-shadow);
}
.card--hero {
  background: var(--card3-bg);
  border-color: var(--card3-border);
  border-radius: var(--card3-radius);
  padding: var(--card3-pad);
  box-shadow: var(--card3-glow);
}

/* Алиасы для обратной совместимости — удалить после обновления render.ts */
.bp-card      { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--card-radius); padding: var(--card-pad); backdrop-filter: var(--el-1-blur); -webkit-backdrop-filter: var(--el-1-blur); }
.bp-card-2    { background: var(--card2-bg); border: 1px solid var(--card2-border); border-radius: var(--card2-radius); padding: var(--card2-pad); }
.bp-card-hero { background: var(--card3-bg); border: 1px solid var(--card3-border); border-radius: var(--card3-radius); padding: var(--card3-pad); box-shadow: var(--card3-glow); }


/* ─────────────────────────────────────────────────────────────
   4. BUTTONS
   Один базовый .btn, четыре варианта через модификаторы.
───────────────────────────────────────────────────────────────*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--r);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: opacity var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none !important; }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Primary — gold fill */
.btn--primary {
  background: var(--gold);
  color: var(--bg);
  font-weight: 600;
  padding: 13px 24px;
  min-height: 48px;
}
.btn--primary:hover:not(:disabled)  { opacity: .9; transform: translateY(-1px); }
.btn--primary:active:not(:disabled) { opacity: .95; transform: translateY(0); }

/* Ghost — outline */
.btn--ghost {
  background: var(--card-bg);
  border: 1px solid var(--card2-border);
  border-radius: 100px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}
.btn--ghost:hover:not(:disabled) { border-color: var(--card-border); color: var(--text-2); background: var(--card2-bg); }
.btn--ghost.btn--gold { border-color: var(--color-gold-20); color: var(--gold); background: var(--color-gold-5); opacity: .7; }
.btn--ghost.btn--gold:hover:not(:disabled) { opacity: 1; border-color: var(--color-gold-40); background: var(--color-gold-10); }

/* Icon — квадратная иконка */
.btn--icon {
  width: 44px; height: 44px;
  padding: 0;
  border-radius: var(--r-sm);
  background: var(--card-bg);
  border: 1px solid var(--card2-border);
  color: var(--text-muted);
}
.btn--icon:hover:not(:disabled) { border-color: var(--card-border); color: var(--text-2); }
.btn--icon.btn--gold { border-color: var(--color-gold-20); color: var(--gold); opacity: .7; }
.btn--icon.btn--gold:hover:not(:disabled) { opacity: 1; border-color: var(--color-gold-50); }

/* Text — без фона, только цвет */
.btn--text {
  background: none;
  border: none;
  padding: 8px 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  border-radius: var(--r-sm);
}
.btn--text:hover:not(:disabled) { color: var(--text-2); }
.btn--text.btn--gold { color: var(--gold); }

/* Size modifier */
.btn--sm { padding: 6px 14px; min-height: 32px; font-size: var(--t-meta); }

/* Generate — специальная кнопка с shimmer эффектом */
.btn-generate {
  width: 100%; min-height: 52px; padding: 14px 24px;
  background: var(--gold);
  color: var(--bg);
  border: none; border-radius: var(--r);
  font-family: var(--font-sans); font-size: var(--t-body); font-weight: 600;
  cursor: pointer; position: relative; overflow: hidden;
  transition: opacity var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn-generate::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--color-white-20), transparent);
  transform: skewX(-20deg);
  transition: left var(--duration-deliberate) var(--ease-out);
}
.btn-generate:hover:not(:disabled)::after { left: 150%; }
.btn-generate:hover:not(:disabled)  { opacity: .93; transform: translateY(-1px); }
.btn-generate:active:not(:disabled) { transform: translateY(0); opacity: .95; }
.btn-generate:disabled { opacity: .35; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-generate.ready {
  box-shadow: 0 0 20px var(--gold-dim), 0 4px 12px var(--color-gold-22);
  animation: pulse 2.4s var(--ease-in-out) infinite;
}

/* Алиасы для обратной совместимости */
.bp-btn-primary { background: var(--gold); color: var(--bg); border: none; border-radius: var(--r); padding: 13px 24px; min-height: 48px; font-family: var(--font-sans); font-size: var(--t-body); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: opacity var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out); -webkit-tap-highlight-color: transparent; white-space: nowrap; }
.bp-btn-primary:hover:not(:disabled)  { opacity: .9; transform: translateY(-1px); }
.bp-btn-primary:active:not(:disabled) { opacity: .95; transform: translateY(0); }
.bp-btn-primary:disabled { opacity: .4; cursor: not-allowed; transform: none; }

.bp-btn-ghost { background: var(--card-bg); border: 1px solid var(--card2-border); border-radius: 100px; color: var(--text-muted); font-family: var(--font-mono); font-size: var(--t-label); letter-spacing: var(--ls-label); text-transform: uppercase; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; min-height: 44px; white-space: nowrap; transition: border-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out); -webkit-tap-highlight-color: transparent; }
.bp-btn-ghost:hover { border-color: var(--card-border); color: var(--text-2); background: var(--card2-bg); }
.bp-btn-ghost--gold { border-color: var(--color-gold-20); color: var(--gold); background: var(--color-gold-5); opacity: .7; }
.bp-btn-ghost--gold:hover { opacity: 1; border-color: var(--color-gold-40); background: var(--color-gold-10); }

.bp-btn-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--card-bg); border: 1px solid var(--card2-border); border-radius: var(--r-sm); color: var(--text-muted); cursor: pointer; transition: border-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out); -webkit-tap-highlight-color: transparent; flex-shrink: 0; }
.bp-btn-icon:hover { border-color: var(--card-border); color: var(--text-2); }
.bp-btn-icon--gold { border-color: var(--color-gold-20); color: var(--gold); opacity: .7; }
.bp-btn-icon--gold:hover { opacity: 1; border-color: var(--color-gold-50); }
.bp-btn-sm { padding: 5px 12px; min-height: 30px; font-size: var(--t-meta); }


/* ─────────────────────────────────────────────────────────────
   5. INPUT
   Один компонент, два варианта.
───────────────────────────────────────────────────────────────*/
.input {
  width: 100%;
  padding: 12px 16px;
  min-height: 48px;
  box-sizing: border-box;
  background: var(--color-white-4);
  border: 1px solid var(--border2);
  border-radius: var(--r);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow   var(--duration-fast) var(--ease-out);
}
.input:focus {
  border-color: var(--color-gold-40);
  box-shadow: 0 0 0 3px var(--gold-faint);
}
.input::placeholder { color: var(--text-muted); opacity: .5; }

.input--textarea {
  min-height: 80px;
  resize: vertical;
  line-height: var(--lh-body);
}


/* ─────────────────────────────────────────────────────────────
   6. CHIP
   Один компонент, модификаторы для вариантов.
───────────────────────────────────────────────────────────────*/
.chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  border: 1px solid var(--card2-border);
  color: var(--text-muted);
  background: var(--card-bg);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--duration-fast) var(--ease-out),
              color        var(--duration-fast) var(--ease-out),
              background   var(--duration-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.chip:hover    { border-color: var(--color-gold-25); color: var(--text-2); background: var(--color-gold-4); }
.chip--active  { border-color: var(--gold); color: var(--gold); }

/* Gift — serif, без uppercase */
.chip--gift {
  background: var(--color-gold-8);
  border-color: var(--color-gold-22);
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: var(--t-meta);
  letter-spacing: 0;
  text-transform: none;
  padding: 6px 14px;
  border-radius: var(--r-sm);
}
.chip--shadow {
  background: transparent;
  border-color: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: var(--t-meta);
  letter-spacing: 0;
  text-transform: none;
  padding: 4px 0;
  border-radius: 0;
}

/* Large question chip — sans, readable */
.chip--question {
  padding: 12px 16px;
  border-radius: var(--r);
  min-height: 44px;
  align-items: flex-start;
  background: var(--color-white-4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: var(--color-white-9);
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  line-height: 1.5;
  box-shadow: 0 2px 8px var(--color-dark-45), inset 0 1px 0 var(--color-white-4);
}
.chip--question:hover {
  border-color: var(--color-gold-35);
  color: var(--text);
  background: var(--color-white-7);
  box-shadow: 0 4px 20px var(--color-gold-8), inset 0 1px 0 var(--color-white-6);
}

/* More chip — dashed, secondary */
.chip--more {
  background: none;
  border: 1px dashed var(--border2);
  color: var(--text-muted);
  font-style: italic;
  opacity: .8;
}
.chip--more:hover:not(:disabled) { opacity: 1; border-color: var(--gold-dim); color: var(--gold); }
.chip--more:disabled { opacity: .4; cursor: default; }

/* Animated — liquid border (question chip v2) */
.chip--animated {
  position: relative;
  background: var(--color-white-4);
  border: none;
  font-family: var(--font-sans);
  font-size: var(--t-small);
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-muted);
  padding: 10px 16px;
  border-radius: var(--r);
  min-height: 44px;
  overflow: hidden;
}
.chip--animated::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--angle, 0deg),
    transparent 0%,
    var(--color-gold-40) 10%,
    transparent 20%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .5;
  animation: liquid-spin 3s linear infinite;
}
.chip--animated::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: var(--color-white-4);
  z-index: -1;
}
.chip--animated:hover { color: var(--text); }
.chip--animated:hover::before { opacity: .85; animation-duration: 1.5s; }
.chip--animated:nth-child(1)::before { animation-delay: 0s;    animation-duration: 3.2s; }
.chip--animated:nth-child(2)::before { animation-delay: -1.1s; animation-duration: 3.7s; }
.chip--animated:nth-child(3)::before { animation-delay: -2.3s; animation-duration: 2.8s; }
.chip--animated:nth-child(4)::before { animation-delay: -0.7s; animation-duration: 4.0s; }
.chip--animated:nth-child(5)::before { animation-delay: -1.8s; animation-duration: 3.4s; }

/* Алиасы */
.bp-chip         { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 100px; font-family: var(--font-mono); font-size: var(--t-label); letter-spacing: var(--ls-label); text-transform: uppercase; border: 1px solid var(--card2-border); color: var(--text-muted); background: var(--card-bg); }
.bp-chip--active { border-color: var(--gold); color: var(--gold); }
.bp-chip--gift   { background: var(--color-gold-8); border-color: var(--color-gold-22); color: var(--gold); font-family: var(--font-sans); font-size: var(--t-meta); letter-spacing: 0; text-transform: none; padding: 6px 14px; border-radius: var(--r-sm); }
.card-chip { display: inline-flex; align-items: center; padding: 7px 16px; border-radius: 100px; font-family: var(--font-sans); font-size: var(--t-meta); color: var(--text-muted); background: var(--card-bg); border: 1px solid var(--card2-border); cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent; transition: border-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out); }
.card-chip:hover { border-color: var(--color-gold-25); color: var(--text-2); background: var(--color-gold-4); }
.question-chip-v2 { position: relative; background: var(--color-white-4); border: none; font-family: var(--font-sans); font-size: var(--t-small); color: var(--text-muted); padding: 10px 16px; border-radius: var(--r); min-height: 44px; display: inline-flex; align-items: center; overflow: hidden; cursor: pointer; transition: color var(--duration-fast) var(--ease-out); -webkit-tap-highlight-color: transparent; }
.question-chip-v2::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--angle, 0deg), transparent 0%, var(--color-gold-40) 10%, transparent 20%); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .5; animation: liquid-spin 3s linear infinite; }
.question-chip-v2:hover { color: var(--text); }
.question-chip-v2:hover::before { opacity: .85; animation-duration: 1.5s; }
.question-chip-v2:nth-child(1)::before { animation-delay: 0s;    animation-duration: 3.2s; }
.question-chip-v2:nth-child(2)::before { animation-delay: -1.1s; animation-duration: 3.7s; }
.question-chip-v2:nth-child(3)::before { animation-delay: -2.3s; animation-duration: 2.8s; }
.question-chip-v2:nth-child(4)::before { animation-delay: -0.7s; animation-duration: 4.0s; }
.question-chip-v2:nth-child(5)::before { animation-delay: -1.8s; animation-duration: 3.4s; }


/* ─────────────────────────────────────────────────────────────
   7. SKELETON
   Один паттерн для всех loading states.
───────────────────────────────────────────────────────────────*/
.skeleton-line {
  height: 13px;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    var(--color-white-4)  0%,
    var(--color-white-8) 40%,
    var(--color-white-4) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer var(--duration-deliberate) var(--ease-linear) infinite;
}
.skeleton-line--short { width: 55%; }
.skeleton-line--mid   { width: 78%; }


/* ─────────────────────────────────────────────────────────────
   8. LOADER
───────────────────────────────────────────────────────────────*/
.loader-orb-wrap {
  position: relative; width: 160px; height: 160px;
  display: flex; align-items: center; justify-content: center;
}
.loader-orb {
  width: 44px; height: 44px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--gold-hi), var(--gold) 50%, oklch(50% 0.12 68));
  box-shadow: 0 0 24px var(--gold-glow), 0 0 48px var(--gold-dim);
  animation: pulse 2.4s var(--ease-in-out) infinite;
}
.loader-ring {
  position: absolute; border-radius: 50%; border: 1px solid;
}
.loader-ring.r2 { width: 72px;  height: 72px;  border-color: var(--color-gold-22); }
.loader-ring.r3 { width: 100px; height: 100px; border-color: var(--color-gold-10); }
.loader-ring.r4 { width: 136px; height: 136px; border-color: var(--color-gold-8); }
.loader-dot {
  position: absolute; top: 50%; left: 50%;
  width: 5px; height: 5px; border-radius: 50%;
  margin: -2.5px 0 0 -2.5px;
}
.loader-dot.ld1 { background: var(--gold);   animation: orbit1 5s linear infinite; }
.loader-dot.ld2 { background: var(--astro);  animation: orbit2 7s linear infinite; }
.loader-dot.ld3 { background: var(--matrix); animation: orbit3 9s linear infinite; }

.loader-overlay {
  position: fixed; inset: 0;
  background: oklch(4% 0 0 / 92%);
  backdrop-filter: blur(var(--blur-xl)); -webkit-backdrop-filter: blur(var(--blur-xl));
  z-index: var(--z-loader);
  display: none; flex-direction: column;
  align-items: center; justify-content: center;
  gap: var(--space-lg); padding: 24px;
}
.loader-overlay.active { display: flex; }

.loader-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-meta); letter-spacing: 0.35em;
  color: var(--text-muted); text-transform: uppercase; opacity: .5;
}
.loader-name {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 5vw, 2rem);
  font-weight: 400; font-style: italic;
  color: var(--text); text-align: center;
  letter-spacing: -0.01em; line-height: 1.2;
}
.loader-name em { color: var(--gold); font-style: italic; }
.loader-sub {
  font-family: var(--font-mono);
  font-size: var(--t-meta); letter-spacing: var(--ls-meta);
  color: var(--text-muted); text-align: center; opacity: .6;
}

.loader-steps {
  display: flex; flex-direction: column;
  width: 100%; max-width: 300px;
  background: var(--color-white-4);
  backdrop-filter: blur(var(--blur-md)); -webkit-backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--color-white-8);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--el-2-shadow), inset 0 1px 0 var(--color-white-5);
}
.loader-step {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--color-white-5);
  font-family: var(--font-mono);
  font-size: var(--t-label); letter-spacing: var(--ls-label);
  color: var(--text-muted); text-transform: uppercase;
  transition: color var(--duration-slow) var(--ease-out),
              background var(--duration-slow) var(--ease-out);
}
.loader-step:last-child { border-bottom: none; }
.loader-step .indicator {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-white-18); flex-shrink: 0;
  transition: background var(--duration-slow) var(--ease-out);
}
.loader-step .label  { flex: 1; line-height: 1.3; }
.loader-step .status { font-size: 8px; letter-spacing: .1em; opacity: .5; }
.loader-step.active  { color: var(--text-2); background: var(--color-white-4); }
.loader-step.active .indicator { background: var(--gold); box-shadow: 0 0 6px var(--gold-dim); animation: indicator-pulse 1.5s var(--ease-in-out) infinite; }
.loader-step.active .status    { color: var(--gold); opacity: .7; }
.loader-step.done   { color: var(--text-muted); opacity: .7; }
.loader-step.done .indicator   { background: var(--hd); }
.loader-step.done .status      { color: var(--hd); opacity: .8; }

.loader-question {
  width: 100%; max-width: 300px;
  background: var(--color-white-4);
  border: 1px solid var(--color-white-8);
  border-radius: var(--r-lg);
  padding: var(--space-lg) var(--space-xl);
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-2); line-height: 1.55;
  text-align: center;
  box-shadow: var(--el-1-shadow);
}


/* ─────────────────────────────────────────────────────────────
   9. GATE
───────────────────────────────────────────────────────────────*/
.gate-overlay {
  position: relative;
  z-index: var(--z-raised);
  display: none;
  margin: 0 0 var(--space-xl);
}
.gate-overlay.active { display: block; }
.gate-overlay.active ~ .synth-card-slot {
  opacity: 0.3;
  pointer-events: none;
  user-select: none;
  transition: opacity var(--duration-slow) var(--ease-out);
}

.gate-card {
  margin: 0 auto;
  background: oklch(8% 0.01 260 / 96%);
  border: 1px solid var(--color-gold-15);
  border-radius: var(--r-xl);
  width: 100%; max-width: 480px;
  box-shadow: 0 0 60px var(--color-gold-8), var(--el-4-shadow), inset 0 1px 0 var(--color-white-4);
  animation: gate-rise var(--duration-normal) var(--ease-spring);
}
.gate-eyebrow {
  display: flex; align-items: center; gap: 8px;
  padding: var(--space-xl) var(--space-xl) 0;
  font-family: var(--font-mono); font-size: var(--t-label);
  letter-spacing: var(--ls-label); text-transform: uppercase;
  color: var(--text-muted); opacity: .6;
}
.gate-eyebrow-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); opacity: .7; flex-shrink: 0;
}
.gate-cta {
  padding: var(--space-lg) var(--space-xl) var(--space-xl);
  display: flex; flex-direction: column; gap: var(--space-md);
}
.gate-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 400;
  color: var(--text); margin: 0; line-height: 1.2;
}
.gate-desc {
  font-family: var(--font-sans);
  font-size: var(--t-body); color: var(--text-muted);
  line-height: 1.6; margin: 0;
}
.gate-input-wrap { position: relative; }
.gate-input {
  width: 100%; padding: 13px 16px; box-sizing: border-box;
  background: var(--color-white-4);
  border: 1px solid var(--color-white-10); border-radius: var(--r);
  color: var(--text); font-size: var(--t-body); font-family: var(--font-sans);
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow   var(--duration-fast) var(--ease-out);
  min-height: 52px;
}
.gate-input:focus {
  border-color: var(--color-gold-40);
  box-shadow: 0 0 0 3px var(--color-gold-8);
}
.gate-input::placeholder { color: var(--text-muted); opacity: .5; }
.gate-note {
  font-size: var(--t-meta); font-family: var(--font-mono);
  letter-spacing: var(--ls-meta); color: var(--text-muted);
  text-align: center; opacity: .5;
}
.gate-skip {
  position: absolute; bottom: var(--space-lg); left: 50%; transform: translateX(-50%);
  background: none; border: none; cursor: pointer;
  font-family: var(--font-sans); font-size: var(--t-meta);
  color: var(--text-muted); min-height: 44px; padding: 0 20px; white-space: nowrap;
  transition: color var(--duration-fast) var(--ease-out);
}
.gate-skip:hover { color: var(--text-2); }


/* ─────────────────────────────────────────────────────────────
   10. RESTORE BANNER
───────────────────────────────────────────────────────────────*/
.restore-banner {
  margin: 0 0 var(--space-lg);
  animation: restore-in var(--duration-normal) var(--ease-spring) both;
}
.restore-banner-inner {
  display: flex; align-items: center; gap: var(--space-md);
  padding: 10px 14px;
  background: var(--color-gold-8);
  border: 1px solid var(--color-gold-22);
  border-radius: var(--r);
  min-height: 48px;
}
.restore-banner-icon { display: none; }
.restore-banner-copy { flex: 1; min-width: 0; }
.restore-banner-title { display: none; }
.restore-banner-meta {
  font-family: var(--font-mono);
  font-size: var(--t-meta); letter-spacing: var(--ls-meta);
  color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.restore-banner-actions {
  display: flex; align-items: center; gap: var(--space-sm); flex-shrink: 0;
}
.restore-banner-btn-primary {
  padding: 8px 16px; min-height: 36px;
  background: var(--gold); color: var(--bg);
  border: none; border-radius: var(--r-sm);
  font-family: var(--font-sans); font-size: var(--t-meta); font-weight: 600;
  cursor: pointer;
  transition: opacity var(--duration-fast) var(--ease-out);
}
.restore-banner-btn-primary:hover { opacity: .88; }
.restore-banner-btn-primary::after { content: none; }
.restore-banner-btn-dismiss {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--color-white-8);
  border-radius: var(--r-sm); color: var(--text-muted);
  font-size: 14px; cursor: pointer;
  position: relative;
  transition: border-color var(--duration-fast) var(--ease-out),
              color         var(--duration-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.restore-banner-btn-dismiss:hover { border-color: var(--color-gold-30); color: var(--gold); }
.restore-banner-btn-dismiss[data-tooltip]::after {
  content: "Create new";
  position: absolute; bottom: calc(100% + 6px); right: 0;
  background: var(--surface2); border: 1px solid var(--card2-border);
  border-radius: var(--r-sm); padding: 4px 8px;
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: .08em; color: var(--text-muted);
  white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity var(--duration-fast) var(--ease-out);
  text-transform: uppercase;
}
.restore-banner-btn-dismiss[data-tooltip]:hover::after { opacity: 1; }


/* ─────────────────────────────────────────────────────────────
   11. SYS SHEET
───────────────────────────────────────────────────────────────*/
.sys-sheet-backdrop {
  position: fixed; inset: 0; z-index: var(--z-sheet);
  background: oklch(4% 0 0 / 65%);
  backdrop-filter: blur(var(--blur-sm)); -webkit-backdrop-filter: blur(var(--blur-sm));
  opacity: 0; pointer-events: none;
  transition: opacity var(--duration-slow) var(--ease-out);
}
.sys-sheet-backdrop.active { opacity: 1; pointer-events: all; }

.sys-sheet {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: var(--z-sheet);
  background: var(--surface2);
  border-top: 1px solid var(--border2);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  max-height: 90vh; overflow-y: auto;
  transform: translateY(100%);
  transition: transform var(--duration-slow) var(--ease-spring);
  -webkit-overflow-scrolling: touch;
}
.sys-sheet.active { transform: translateY(0); }

.sys-sheet-handle {
  width: 40px; height: 4px; border-radius: 2px;
  background: var(--color-white-18);
  margin: 12px auto 0; flex-shrink: 0;
}

.sys-sheet-header {
  display: flex; align-items: center; gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl) var(--space-md);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: var(--z-raised);
  background: var(--surface2);
}
.sys-sheet-title-block { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.sys-sheet-icon { width: 20px; height: 20px; flex-shrink: 0; opacity: .8; }
.sys-sheet-label {
  font-family: var(--font-mono); font-size: var(--t-label);
  letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--text-muted);
}
.sys-sheet-title-left { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sys-sheet-main {
  font-family: var(--font-serif);
  font-size: var(--t-title); color: var(--text); line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sys-sheet-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--color-white-6); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 16px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background var(--duration-fast) var(--ease-out),
              color      var(--duration-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.sys-sheet-close:hover { background: var(--color-white-10); color: var(--text); }

.sys-sheet-params {
  padding: var(--space-lg) var(--space-xl);
  display: flex; flex-direction: column; gap: var(--space-md);
}
.sys-sheet-params-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr));
  gap: var(--space-md);
}
.sys-sheet-params-list { display: flex; flex-direction: column; gap: var(--space-sm); }

.sys-sheet-planets-label {
  font-family: var(--font-mono); font-size: var(--t-meta);
  letter-spacing: var(--ls-label); text-transform: uppercase;
  color: var(--text-muted); opacity: .6;
  margin-bottom: var(--space-sm);
}
.sys-sheet-planets { display: flex; flex-direction: column; gap: 6px; }
.sys-sheet-planet  { display: flex; align-items: baseline; gap: 8px; }
.sys-sheet-planet-name {
  font-family: var(--font-mono); font-size: var(--t-meta);
  letter-spacing: var(--ls-meta); color: var(--text-muted); min-width: 70px;
}
.sys-sheet-planet-val {
  font-family: var(--font-serif); font-size: var(--t-value); color: var(--text);
}

.sys-sheet-insight {
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-sans); font-size: var(--t-body);
  line-height: var(--lh-body); color: var(--text-2);
  border-top: 1px solid var(--border);
}

.sys-sheet-footer {
  padding: var(--space-md) var(--space-xl) calc(var(--space-xl) + var(--safe-bottom));
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border);
}
.sys-sheet-footer-meta {
  font-family: var(--font-mono); font-size: var(--t-meta);
  letter-spacing: var(--ls-meta); color: var(--text-muted); opacity: .5;
}
.sys-sheet-detail-btn {
  font-family: var(--font-mono); font-size: var(--t-label);
  letter-spacing: var(--ls-label); text-transform: uppercase;
  color: var(--gold); background: none; border: none;
  cursor: pointer; display: flex; align-items: center; gap: 6px;
  opacity: .7;
  transition: opacity var(--duration-fast) var(--ease-out);
  min-height: 44px;
}
.sys-sheet-detail-btn:hover { opacity: 1; }
.sys-sheet-loading { color: var(--text-muted); opacity: .5; font-style: italic; font-size: var(--text-sm); }

/* Sys cards в results */
.sys-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg); overflow: hidden;
  transition: border-color var(--duration-normal) var(--ease-out);
  cursor: pointer;
}
.sys-card:hover { border-color: var(--card2-border); }
.sys-card-summary {
  display: flex; align-items: center; gap: var(--space-md);
  padding: var(--space-lg); min-height: 64px;
}
.sys-card-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.sys-card-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sys-card-name {
  font-family: var(--font-mono); font-size: var(--t-label);
  letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--text-muted);
}
.sys-card-main {
  font-family: var(--font-serif); font-size: var(--t-value); color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sys-card-sub {
  font-family: var(--font-sans); font-size: var(--t-meta); color: var(--text-muted);
}
.sys-card-chevron {
  color: var(--text-muted); opacity: .4; flex-shrink: 0;
  transition: transform var(--duration-fast) var(--ease-out),
              opacity   var(--duration-fast) var(--ease-out);
}
.sys-card:hover .sys-card-chevron { opacity: .7; transform: translateX(2px); }

.sys-card-params { padding: 0 var(--space-lg) var(--space-lg); display: none; flex-direction: column; gap: var(--space-sm); border-top: 1px solid var(--border); padding-top: var(--space-md); }
.sys-card-params--2col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm) var(--space-lg); }
.sys-card-text { font-family: var(--font-sans); font-size: var(--t-body); line-height: var(--lh-body); color: var(--text-2); max-width: var(--reading-max); }
.sys-card-actions { display: flex; gap: var(--space-sm); margin-top: var(--space-md); flex-wrap: wrap; }
.sys-card-details-btn {
  font-family: var(--font-mono); font-size: var(--t-label);
  letter-spacing: var(--ls-label); text-transform: uppercase;
  color: var(--text-muted); background: none; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  opacity: .6;
  transition: opacity var(--duration-fast) var(--ease-out),
              color   var(--duration-fast) var(--ease-out);
  min-height: 44px;
}
.sys-card-details-btn:hover { opacity: 1; color: var(--text-2); }
.sys-tile-insight {
  font-family: var(--font-sans); font-size: var(--t-meta);
  line-height: 1.5; color: var(--text-muted);
  margin-top: var(--space-sm); opacity: .8;
}


/* ─────────────────────────────────────────────────────────────
   12. SYNTH CARDS
───────────────────────────────────────────────────────────────*/
.synth-cards-section { padding: var(--space-xl) 0 0; container-type: inline-size; container-name: cards; }
.synth-card-slot     { margin-bottom: var(--space-lg); }

.synth-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
  padding: var(--space-xl);
  backdrop-filter: var(--el-1-blur);
  -webkit-backdrop-filter: var(--el-1-blur);
  contain: content;
}
.synth-card-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: var(--space-lg);
}
.synth-card-icon { width: 18px; height: 18px; color: var(--text-muted); opacity: .6; flex-shrink: 0; }
.synth-card-icon svg { width: 18px; height: 18px; }
.synth-card-title {
  font-family: var(--font-mono); font-size: var(--t-label);
  letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--text-muted);
}
.synth-card-body {
  font-family: var(--font-sans); font-size: var(--t-body);
  line-height: var(--lh-card); color: var(--text-2);
  max-width: var(--reading-max); overflow: visible;
}
.synth-card-body p { margin: 0 0 0.8em; }
.synth-card-body p:last-child { margin-bottom: 0; }
.synth-card-body strong { font-weight: 600; color: var(--text); }

.synth-card-actions { display: flex; gap: 8px; margin-top: var(--space-lg); flex-wrap: wrap; }

/* Confidence */
.card-confidence {
  display: flex; align-items: center; gap: 7px;
  margin-top: var(--space-md); padding-top: var(--space-md);
  border-top: 1px solid var(--color-white-5);
}
.cconf-dots { display: flex; gap: 3px; letter-spacing: -0.05em; }
.cconf-dot  { font-size: 0.55rem; color: var(--color-white-15); transition: color var(--duration-normal) var(--ease-out); }
.cconf-dot--on { color: var(--color-gold-55); }
.cconf-label {
  font-family: var(--font-mono); font-size: var(--t-meta);
  letter-spacing: var(--ls-meta); color: var(--text-muted); opacity: .45;
}

/* Like + ask */
.card-like-btn {
  margin-left: auto; background: none; border: none; cursor: pointer;
  font-size: var(--t-meta); color: var(--text-muted);
  opacity: .4; padding: 6px 14px; min-height: 32px;
  transition: opacity var(--duration-fast) var(--ease-out),
              color   var(--duration-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.card-like-btn:hover     { opacity: .8; }
.card-like-btn--active   { color: var(--gold); opacity: 1; }
.card-ask-btn  { font-size: var(--t-meta); padding: 6px 14px; min-height: 32px; opacity: .6; transition: opacity var(--duration-fast) var(--ease-out); }
.card-ask-btn:hover { opacity: 1; }

/* Loading state */
.synth-card--loading { border-color: var(--color-white-4); }
.synth-card-skeleton { display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }

/* Locked state */
.synth-card--locked { position: relative; overflow: hidden; cursor: default; }
.synth-card-body--blurred { filter: blur(7px); user-select: none; pointer-events: none; }
.card-locked-line { height: 14px; border-radius: 6px; background: var(--color-white-12); margin: 10px 0; display: block; }
.synth-card--locked::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 0%, var(--color-dark-45) 50%, var(--color-dark-72) 100%);
  border-radius: inherit; pointer-events: none;
}

/* Chips row */
.synth-card-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 var(--space-lg); }
.synth-card-chips:has(.card-question) { display: block; padding: 0; }

/* Card domain tags */
.card-domain-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--space-md); }
.card-domain-tag {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: 100px;
  font-family: var(--font-mono); font-size: var(--t-meta); letter-spacing: var(--ls-mono);
  color: var(--text-muted); background: transparent;
  border: 1px solid var(--color-white-8); cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-out),
              color        var(--duration-fast) var(--ease-out),
              background   var(--duration-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.card-domain-tag:hover { border-color: var(--color-gold-30); color: var(--gold); background: var(--color-gold-4); }

/* Card question (inline под карточкой) */
.card-question {
  width: 100%; padding: var(--space-md) var(--space-lg);
  border-left: 2px solid var(--color-gold-35);
  margin: 4px 0 var(--space-xl);
  animation: card-question-in var(--duration-normal) var(--ease-spring) both;
}
.card-question-text {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1rem, 2.2vw, 1.15rem); line-height: 1.5;
  color: var(--text-2); margin-bottom: var(--space-md);
}
.card-question-actions { display: flex; align-items: center; gap: 8px; }
.card-question-refresh { opacity: .45; transition: opacity var(--duration-fast) var(--ease-out); }
.card-question-refresh:hover { opacity: .9; }

/* Synthesis collapse */
.synth-eyebrow {
  font-family: var(--font-mono); font-size: var(--t-meta); letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--text-muted); opacity: .5;
  margin-bottom: var(--space-md);
}
.synth-text { font-family: var(--font-sans); font-size: var(--t-body); line-height: var(--lh-body); color: var(--text-2); }
.synth-section { margin-bottom: var(--space-xl); }
.synth-section-title {
  font-family: var(--font-mono); font-size: var(--t-label);
  letter-spacing: var(--ls-label); text-transform: uppercase;
  color: var(--gold); opacity: .7; margin-bottom: var(--space-sm);
}
.synth-section-body { font-family: var(--font-sans); font-size: var(--t-body); line-height: var(--lh-body); color: var(--text-2); max-width: var(--reading-max); }
.synth-section-body p { margin-bottom: 10px; }
.synth-section-body p:last-child { margin-bottom: 0; }
.synth-source { font-size: 0.85em; opacity: .5; font-style: italic; }
.synth-lang-notice {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; margin-bottom: 14px;
  background: var(--gold-faint); border: 1px solid var(--gold-dim);
  border-radius: var(--r-sm); font-size: 12px; color: var(--text-muted); line-height: 1.4; flex-wrap: wrap;
}

.synth-preview { overflow: hidden; transition: max-height var(--duration-deliberate) var(--ease-out); }
.synth-preview--collapsed {
  max-height: 18em;
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
  mask-image:         linear-gradient(to bottom, black 55%, transparent 100%);
}
.synth-preview--expanded { max-height: none; -webkit-mask-image: none; mask-image: none; }

.synthesis-block {
  width: 100%; box-sizing: border-box; max-width: 820px;
  margin: var(--space-3xl) auto var(--space-2xl);
  padding: var(--space-xl);
  border-top: 1px solid var(--card-border);
  background: var(--color-white-4);
  backdrop-filter: blur(var(--blur-md)); -webkit-backdrop-filter: blur(var(--blur-md));
  border-radius: var(--r-lg);
  box-shadow: var(--el-1-shadow);
}
.synthesis-expand-btn {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; background: none; border: none;
  padding: var(--space-lg) 0; width: 100%; text-align: left;
  color: var(--text-muted); font-family: var(--font-mono);
  font-size: var(--t-label); letter-spacing: var(--ls-label); text-transform: uppercase;
  transition: color var(--duration-fast) var(--ease-out);
}
.synthesis-expand-btn:hover { color: var(--text-2); }
.synthesis-expand-btn .expand-icon { transition: transform var(--duration-slow) var(--ease-out); opacity: .6; font-size: .8em; }
.synthesis-expand-btn.expanded .expand-icon { transform: rotate(90deg); }
.synthesis-expand-btn .expand-spinner {
  width: 10px; height: 10px;
  border: 1.5px solid var(--color-white-20); border-top-color: var(--gold);
  border-radius: 50%; animation: spin var(--duration-slow) linear infinite; display: none;
}
.synthesis-expand-btn.loading .expand-spinner { display: block; }
.synthesis-expand-btn.loading .expand-icon   { display: none; }

.synthesis-body-collapse { overflow: hidden; max-height: 0; opacity: 0; transition: max-height var(--duration-deliberate) var(--ease-out), opacity var(--duration-slow) var(--ease-out); }
.synthesis-body-collapse.open { max-height: 9999px; opacity: 1; }

#synth-expand-btn {
  display: flex; align-items: center; gap: 8px;
  margin-top: var(--space-lg); cursor: pointer;
  background: none; border: none; padding: 8px 0;
  color: var(--text-muted); font-family: var(--font-mono);
  font-size: var(--t-label); letter-spacing: var(--ls-label); text-transform: uppercase;
  opacity: .7;
  transition: opacity var(--duration-fast) var(--ease-out),
              color   var(--duration-fast) var(--ease-out);
}
#synth-expand-btn:hover { opacity: 1; color: var(--gold); }
.synth-expand-icon { transition: transform var(--duration-slow) var(--ease-out); display: inline-block; }
#synth-expand-btn[aria-expanded="true"] .synth-expand-icon { transform: rotate(180deg); }

/* Synth loading */
.synth-loading { display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
.synth-loading-dot {
  height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--color-white-4) 0%, var(--color-white-8) 40%, var(--color-white-4) 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer var(--duration-deliberate) linear infinite;
}
.synth-loading-dot::before { display: none; }
.synth-loading-dot::after  { display: none; }
.synth-loading-hint {
  font-size: 12px; color: var(--text-muted); font-family: var(--font-mono);
  letter-spacing: .06em; line-height: 1.5; animation: fadeIn var(--duration-slow) var(--ease-out);
  margin-top: 4px;
}
.synth-loading-wrap { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-lg) 0; }
.synth-loading-dots { display: flex; gap: 5px; }
.synth-loading-dots span {
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
  animation: synthDot 1.2s var(--ease-in-out) infinite;
}
.synth-loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.synth-loading-dots span:nth-child(3) { animation-delay: 0.4s; }

.synth-cta-wrap  { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-md); padding: var(--space-lg) 0; }
.synth-cta-hint  { font-size: var(--text-sm); color: var(--text-muted); font-style: italic; margin: 0; }

.synth-cursor { display: inline-block; animation: blink 1s step-end infinite; }


/* ─────────────────────────────────────────────────────────────
   13. Q&A
───────────────────────────────────────────────────────────────*/
.question-zone {
  width: 100%; box-sizing: border-box; max-width: 820px;
  margin: 0 auto var(--space-xl);
  padding: var(--space-xl) var(--content-pad);
  display: flex; flex-direction: column; gap: var(--space-md);
  background: var(--color-white-4);
  backdrop-filter: blur(var(--blur-md)); -webkit-backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--color-white-8);
  border-radius: var(--card-radius);
  box-shadow: var(--el-2-shadow), inset 0 1px 0 var(--color-white-5);
}
.question-heading {
  font-family: var(--font-mono); font-size: var(--t-label);
  letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--text-muted);
  opacity: .6;
}
.question-suggestions        { display: flex; flex-wrap: wrap; gap: 8px; }
.question-suggestions-spoiler { }
.question-suggestions-toggle {
  display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none;
  font-family: var(--font-mono); font-size: var(--t-label);
  letter-spacing: var(--ls-label); text-transform: uppercase;
  color: var(--text-muted); opacity: .7;
  transition: color var(--duration-fast) var(--ease-out);
  min-height: 44px;
}
.question-suggestions-toggle:hover { color: var(--text-2); }
.question-suggestions-toggle::marker,
.question-suggestions-toggle::-webkit-details-marker { display: none; }
.question-suggestions-toggle::before { content: '▸  '; }
.question-suggestions-spoiler[open] .question-suggestions-toggle::before { content: '▾  '; }

.question-chip { /* Алиас → используй .chip--question */ }
.question-chip-more {
  background: none; border: 1px dashed var(--border2);
  color: var(--text-muted); font-family: var(--font-mono);
  font-size: var(--t-label); letter-spacing: var(--ls-label); text-transform: uppercase;
  font-style: italic; opacity: .8; cursor: pointer;
  display: inline-flex; align-items: center; padding: 5px 12px;
  border-radius: 100px; min-height: 44px;
  transition: opacity var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.question-chip-more:hover:not(:disabled) { opacity: 1; border-color: var(--gold-dim); color: var(--gold); }
.question-chip-more:disabled { opacity: .4; cursor: default; }

.question-input-row { display: flex; gap: 8px; align-items: center; }
.question-input {
  flex: 1; min-height: 48px; padding: 12px 16px;
  background: var(--color-white-4);
  border: 1px solid var(--border2); border-radius: var(--r);
  color: var(--text); font-size: var(--text-base); font-family: var(--font-sans);
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow   var(--duration-fast) var(--ease-out);
}
.question-input:focus { border-color: var(--color-gold-50); box-shadow: 0 0 0 3px var(--gold-faint); }
.question-input::placeholder { color: var(--text-muted); }

.question-submit {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
  background: var(--gold); color: var(--bg);
  font-size: 18px; font-weight: 700; cursor: pointer; border: none;
  display: flex; align-items: center; justify-content: center;
  transition: opacity var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}
.question-submit:hover:not(:disabled)  { opacity: .9; transform: scale(1.05); }
.question-submit:disabled { opacity: .35; cursor: default; }

.question-answer-block {
  max-width: 820px; margin: 0 auto var(--space-xl);
  padding: 0 var(--content-pad);
  display: flex; flex-direction: column; gap: var(--space-md);
}
.question-answer {
  background: var(--color-white-4);
  backdrop-filter: blur(var(--blur-md)); -webkit-backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--color-white-8);
  border-radius: var(--r-lg);
  padding: var(--space-lg) var(--space-xl);
  box-shadow: var(--el-1-shadow), inset 0 1px 0 var(--color-white-5);
  position: relative;
  animation: fadeInUp var(--duration-normal) var(--ease-spring) both;
}
.question-answer-block .q-label {
  font-family: var(--font-mono); font-size: 9px; color: var(--gold);
  text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: var(--space-sm); opacity: .8;
  padding-right: 44px; line-height: 1.4;
}
.qa-heart-btn {
  position: absolute; top: var(--space-md); right: var(--space-md);
  width: 36px; height: 36px; min-height: 44px; min-width: 44px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); opacity: .4;
  transition: opacity var(--duration-fast) var(--ease-out),
              color    var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
  border-radius: 50%;
}
.qa-heart-btn:hover { opacity: .8; transform: scale(1.1); }
.qa-heart-btn.active { color: var(--color-error); opacity: 1; }
.qa-heart-btn.active svg { fill: var(--color-error); }
.qa-heart-btn svg { width: 16px; height: 16px; transition: fill var(--duration-fast) var(--ease-out); }

/* Inline Q&A под карточкой */
.card-inline-qa {
  margin: 0 0 var(--space-xl);
  border-left: 2px solid var(--color-gold-25);
  padding-left: var(--space-lg);
  animation: card-question-in var(--duration-normal) var(--ease-spring) both;
}
.ciq-thread { display: flex; flex-direction: column; gap: var(--space-lg); margin-bottom: var(--space-md); }
.ciq-item   { display: flex; flex-direction: column; gap: 8px; }
.ciq-q {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(0.95rem, 2vw, 1.08rem); color: var(--text-2); line-height: 1.5;
}
.ciq-a          { font-size: var(--t-body); line-height: var(--lh-card); color: var(--text-2); }
.ciq-a--loading { color: var(--text-muted); font-style: italic; opacity: .6; }
.ciq-a--error   { color: var(--text-muted); opacity: .5; }
.ciq-followup   { display: flex; gap: 8px; align-items: center; margin-top: var(--space-sm); }
.ciq-input {
  flex: 1; background: var(--color-white-4);
  border: 1px solid var(--color-white-10); border-radius: var(--r);
  padding: 8px 12px; font-family: var(--font-sans); font-size: var(--t-small);
  color: var(--text); outline: none;
  transition: border-color var(--duration-fast) var(--ease-out);
}
.ciq-input::placeholder { color: var(--text-muted); opacity: .5; }
.ciq-input:focus { border-color: var(--color-gold-40); }
.ciq-send { color: var(--gold); opacity: .7; background: none; border: none; cursor: pointer; transition: opacity var(--duration-fast) var(--ease-out); }
.ciq-send:hover { opacity: 1; }
.ciq-save-btn {
  display: inline-block; margin-top: 6px;
  background: none; border: none; cursor: pointer;
  font-size: 0.95rem; color: var(--text-muted); opacity: .35; padding: 2px 0;
  transition: opacity var(--duration-fast) var(--ease-out),
              color   var(--duration-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.ciq-save-btn:hover      { opacity: .7; }
.ciq-save-btn--active    { color: var(--gold); opacity: 1; }


/* ─────────────────────────────────────────────────────────────
   14. INSIGHTS
───────────────────────────────────────────────────────────────*/
.bp-section { width: 100%; box-sizing: border-box; }
.bp-section .bp-container { padding: 0 var(--content-pad); }

.bp-section-divider { display: flex; align-items: center; gap: var(--space-md); margin: var(--space-2xl) 0 var(--space-xl); }
.bp-section-divider-line { flex: 1; height: 1px; background: var(--border); }
.bp-section-divider-label {
  font-family: var(--font-mono); font-size: var(--t-meta);
  letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--text-muted); opacity: .5;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: var(--space-md);
}
.insights-filter {
  display: flex; gap: var(--space-sm); overflow-x: auto; padding-bottom: 4px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.insights-filter::-webkit-scrollbar { display: none; }
.insights-content { display: flex; flex-direction: column; gap: var(--space-xl); }

.filter-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 100px; min-height: 36px;
  font-family: var(--font-mono); font-size: var(--t-meta);
  letter-spacing: var(--ls-label); text-transform: uppercase;
  color: var(--text-muted); border: 1px solid var(--border);
  background: transparent; cursor: pointer; white-space: nowrap;
  transition: border-color var(--duration-fast) var(--ease-out),
              color        var(--duration-fast) var(--ease-out),
              background   var(--duration-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.filter-pill:hover  { border-color: var(--border2); color: var(--text-2); background: var(--color-white-4); }
.filter-pill--active{ border-color: var(--color-gold-30); color: var(--gold); background: var(--color-gold-4); }

.insight-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
  padding: var(--space-lg) var(--space-xl);
  transition: border-color var(--duration-normal) var(--ease-out),
              background   var(--duration-normal) var(--ease-out);
}
.insight-card:hover          { background: var(--card2-bg); border-color: var(--card2-border); }
.insight-card--temporal      { border-color: var(--color-gold-22); }
.insight-card--temporal:hover{ border-color: var(--color-gold-40); }

.insight-card-header { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-sm); }
.insight-category {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); opacity: .6;
}
.insight-text {
  font-family: var(--font-sans); font-size: var(--t-body);
  line-height: var(--lh-body); color: var(--text-2);
}
.insight-text strong { color: var(--gold); font-weight: 500; }

.insight-systems { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--space-sm); }
.insight-sys-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 100px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--border); color: var(--text-muted); background: transparent;
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-out),
              color        var(--duration-fast) var(--ease-out);
}
.insight-sys-badge:hover { border-color: var(--color-gold-25); color: var(--gold); }

.insight-badges  { display: flex; gap: 6px; flex-wrap: wrap; margin-top: var(--space-sm); align-items: center; }
.insight-domain  {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-white-20); background: var(--color-white-4);
  border: 1px solid var(--border); border-radius: 4px; padding: 2px 6px; flex-shrink: 0;
}

.badge-temporal {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 100px;
  background: var(--color-gold-8); border: 1px solid var(--color-gold-22);
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); white-space: nowrap;
}
.badge-temporal::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); opacity: .8; flex-shrink: 0;
  animation: live-blink 2s step-end infinite;
}

.insight-actions { display: flex; align-items: center; gap: 6px; margin-top: var(--space-md); flex-wrap: wrap; }
.insight-actions .btn-insight-save,
.insight-actions .btn-insight-pos,
.insight-actions .btn-insight-zero {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; min-height: 32px; border-radius: 100px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--border); color: var(--text-muted); background: transparent;
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-out),
              color        var(--duration-fast) var(--ease-out),
              background   var(--duration-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.insight-actions .btn-insight-save:hover   { border-color: var(--color-gold-30); color: var(--gold); background: var(--color-gold-4); }
.insight-actions .btn-insight-pos:hover    { border-color: var(--color-success-30, var(--border2)); color: var(--color-success); background: var(--color-white-4); }
.insight-actions .btn-insight-zero:hover   { border-color: var(--border2); color: var(--text-2); background: var(--color-white-4); }
.insight-actions .btn-insight-save--saved  { border-color: var(--color-gold-30); color: var(--gold); background: var(--color-gold-4); }
.insight-actions .btn-insight-pos--active  { border-color: var(--color-success); color: var(--color-success); }

.insight-note-wrap     { margin-top: var(--space-sm); display: none; }
.insight-note-textarea {
  width: 100%; min-height: 80px; resize: vertical;
  background: var(--color-white-4); border: 1px solid var(--border2);
  border-radius: var(--r-sm); padding: 10px 12px;
  font-family: var(--font-sans); font-size: var(--t-body);
  color: var(--text); line-height: var(--lh-body);
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-out);
}
.insight-note-textarea:focus       { border-color: var(--color-gold-40); }
.insight-note-textarea::placeholder{ color: var(--text-dim); }
.insight-note-actions  { display: flex; gap: var(--space-sm); margin-top: 6px; }
.insight-note-save     { color: var(--gold); border-color: var(--border-gold); }
.insight-note-save:hover{ background: var(--gold-faint); }
.insight-note-close    { color: var(--text-muted); }
.insight-note-close:hover{ color: var(--text-2); border-color: var(--border3); }

.related-insights       { margin-top: var(--space-lg); padding-top: var(--space-md); border-top: 1px solid var(--border); }
.related-insights-label {
  font-family: var(--font-mono); font-size: var(--t-meta); letter-spacing: var(--ls-label);
  text-transform: uppercase; color: var(--text-muted); opacity: .5; margin-bottom: var(--space-sm);
}
.related-link {
  display: flex; align-items: flex-start; gap: 8px;
  font-family: var(--font-sans); font-size: var(--t-meta);
  color: var(--text-muted); line-height: 1.5; cursor: pointer;
  padding: 4px 0;
  transition: color var(--duration-fast) var(--ease-out);
}
.related-link:hover       { color: var(--gold); }
.related-link-icon        { color: var(--text-muted); font-size: 10px; }

.insight-deep-wrap        { overflow: hidden; max-height: 0; transition: max-height var(--duration-deliberate) var(--ease-out); }
.insight-deep-wrap--open  { max-height: 600px; }
.insight-deep-content     { padding-top: var(--space-md); font-family: var(--font-sans); font-size: var(--t-body); line-height: var(--lh-body); color: var(--text-2); }

.btn-insight-deep {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: var(--t-meta); letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-muted); background: none;
  border: none; cursor: pointer; padding: 4px 0; margin-top: var(--space-sm);
  opacity: .6;
  transition: opacity var(--duration-fast) var(--ease-out),
              color   var(--duration-fast) var(--ease-out);
}
.btn-insight-deep:hover { color: var(--text-2); opacity: 1; }

.btn-insight-ask-main {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .1em;
  color: var(--text-2); background: none; border: 1px solid var(--border2);
  border-radius: var(--r-sm); padding: 6px 14px; cursor: pointer; margin-top: var(--space-sm);
  transition: color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
}
.btn-insight-ask-main:hover { color: var(--gold); border-color: var(--border-gold); }

.btn-more-insights {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px; min-height: 52px;
  background: var(--color-white-4); border: 1px solid var(--border);
  border-radius: var(--r-lg); color: var(--text-muted);
  font-family: var(--font-mono); font-size: var(--t-label); letter-spacing: var(--ls-label); text-transform: uppercase;
  cursor: pointer; position: relative; overflow: hidden;
  transition: border-color var(--duration-fast) var(--ease-out),
              color        var(--duration-fast) var(--ease-out),
              background   var(--duration-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn-more-insights:hover:not(:disabled)   { border-color: var(--border2); color: var(--text-2); background: var(--color-white-6); }
.btn-more-insights:disabled { opacity: .4; cursor: default; }


/* ─────────────────────────────────────────────────────────────
   15. NAVIGATION + SHARE + DOMAIN
───────────────────────────────────────────────────────────────*/
.bp-sticky-nav {
  position: sticky; top: 0; z-index: var(--z-sticky);
  padding: 6px var(--content-pad);
  width: 100%; box-sizing: border-box;
  opacity: 0; pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out);
}
.bp-sticky-nav--visible { opacity: 1; pointer-events: all; }
.bp-sticky-nav-inner {
  display: flex; align-items: center; gap: var(--space-sm);
  max-width: var(--content-max); margin: 0 auto;
  background: var(--color-white-4);
  backdrop-filter: blur(var(--blur-md)); -webkit-backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--color-gold-12, var(--border));
  border-radius: var(--r); padding: 6px 12px; box-sizing: border-box;
  box-shadow: var(--el-1-shadow), inset 0 1px 0 var(--color-gold-5);
  height: 44px;
}
.bp-nav-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: var(--color-white-18); border: none; cursor: pointer; padding: 0;
  transition: background var(--duration-fast) var(--ease-out),
              width      var(--duration-fast) var(--ease-out);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.bp-nav-dot:hover { background: var(--color-white-35); }
.bp-nav-dot--active { background: var(--gold); }
.bp-nav-dot-label {
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: var(--surface2); border: 1px solid var(--border2);
  border-radius: var(--r-sm); padding: 3px 8px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted); white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity var(--duration-fast) var(--ease-out);
}
.bp-nav-dot--active .bp-nav-dot-label,
.bp-nav-dot:hover   .bp-nav-dot-label { opacity: 1; }

/* Hero fingerprint chips */
.hero-chip-gift,
.hero-chip-shadow {
  display: block; padding: 6px 0;
  font-family: var(--font-sans); font-size: var(--t-meta);
  line-height: 1.45; border-radius: 0; color: var(--text-muted);
}
.hero-card-fp-chips    { display: flex; flex-direction: column; gap: var(--space-sm); }
.hero-fp-tension       { display: flex; flex-direction: column; gap: 4px; padding: var(--space-sm) 0; border-top: 1px solid var(--border); }
.hero-fp-tension-label {
  font-family: var(--font-mono); font-size: var(--t-meta);
  letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--text-muted); opacity: .5;
}
.hero-fp-params        { display: flex; flex-direction: column; gap: 8px; margin-top: var(--space-sm); }
.hero-fp-param-item    { display: flex; flex-direction: column; gap: 2px; }
.hero-fp-param-label   { font-family: var(--font-mono); font-size: var(--t-meta); letter-spacing: var(--ls-meta); color: var(--text-muted); opacity: .6; }
.hero-fp-param-value   { font-family: var(--font-serif); font-size: var(--t-value); color: var(--text); }

/* Share */
.share-section  { max-width: var(--content-max); margin: 0 auto var(--space-3xl); padding: var(--space-2xl) var(--content-pad) 0; }
.share-card-wrap{ display: flex; flex-direction: column; align-items: center; gap: var(--space-lg); }
.share-card     { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--r-lg); padding: var(--space-xl); max-width: 400px; width: 100%; text-align: center; }
.share-eyebrow  { font-family: var(--font-mono); font-size: var(--t-meta); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--text-muted); opacity: .5; margin-bottom: var(--space-sm); }
.share-name     { font-family: var(--font-serif); font-size: var(--t-hero); font-style: italic; color: var(--gold); line-height: 1.1; margin-bottom: 4px; }
.share-date     { font-family: var(--font-mono); font-size: var(--t-meta); color: var(--text-muted); opacity: .5; margin-bottom: var(--space-lg); }
.share-sig      { font-family: var(--font-mono); font-size: var(--t-meta); letter-spacing: .15em; text-transform: uppercase; color: var(--text-muted); opacity: .35; margin-top: var(--space-lg); }
.share-params   { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
.share-param    { display: flex; flex-direction: column; gap: 2px; padding: var(--space-sm); background: var(--color-white-4); border-radius: var(--r-sm); }
.btn-share-main {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; min-height: 48px;
  background: var(--color-gold-8); border: 1px solid var(--color-gold-22);
  border-radius: 100px; color: var(--gold);
  font-family: var(--font-mono); font-size: var(--t-label); letter-spacing: var(--ls-label); text-transform: uppercase;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn-share-main:hover { background: var(--color-gold-20); border-color: var(--color-gold-50); }

/* Domain selector */
.domain-selector      { display: flex; flex-direction: column; align-items: center; gap: var(--space-md); }
.domain-selector-hint { font-family: var(--font-sans); font-size: var(--t-body); color: var(--text-muted); text-align: center; line-height: 1.6; max-width: 520px; }
.domain-pills         { display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: center; }
.domain-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; min-height: 44px; border-radius: 100px;
  font-family: var(--font-sans); font-size: var(--t-body);
  color: var(--text-muted); background: var(--color-white-4);
  border: 1px solid var(--border); cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-out),
              color        var(--duration-fast) var(--ease-out),
              background   var(--duration-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.domain-pill:hover { border-color: var(--border2); color: var(--text-2); background: var(--color-white-6); }
.domain-pill--selected { border-color: var(--color-gold-40); color: var(--gold); background: var(--color-gold-8); }

.btn-generate-insights {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; min-height: 52px;
  background: var(--gold); color: var(--bg);
  border: none; border-radius: var(--r);
  font-family: var(--font-sans); font-size: var(--t-body); font-weight: 600;
  cursor: pointer;
  transition: opacity var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn-generate-insights::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--color-white-20), transparent);
  transform: skewX(-20deg);
  transition: left var(--duration-deliberate) var(--ease-out);
}
.btn-generate-insights:hover:not(:disabled)::after { left: 150%; }
.btn-generate-insights:hover:not(:disabled)  { opacity: .93; transform: translateY(-1px); }
.btn-generate-insights:active:not(:disabled) { transform: translateY(0); opacity: .95; }
.btn-generate-insights:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn-generate-insights.loading  { opacity: .7; cursor: default; transform: none; }

/* Error + empty states */
.error-block { display: flex; flex-direction: column; align-items: center; gap: var(--space-md); padding: var(--space-2xl); text-align: center; }
.error-icon  { font-size: 2rem; opacity: .4; }
.error-msg   { font-family: var(--font-sans); font-size: var(--t-body); color: var(--text-muted); line-height: 1.6; }
.error-retry { font-family: var(--font-mono); font-size: var(--t-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--gold); background: none; border: 1px solid var(--border-gold); border-radius: 100px; padding: 8px 20px; cursor: pointer; min-height: 44px; transition: background var(--duration-fast) var(--ease-out); }
.error-retry:hover { background: var(--gold-faint); }

/* Toast */
.toast {
  position: fixed; bottom: calc(20px + var(--safe-bottom)); left: 50%; transform: translateX(-50%);
  z-index: var(--z-toast);
  background: var(--surface2); border: 1px solid var(--border2);
  border-radius: var(--r); padding: 12px 20px;
  font-family: var(--font-sans); font-size: var(--t-body); color: var(--text);
  box-shadow: var(--el-2-shadow);
  opacity: 0; pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out);
}
.toast.active { opacity: 1; pointer-events: all; }


/* ─────────────────────────────────────────────────────────────
   15b. RESULTS TOP BAR (rtb)
   Sticky bar в results page — имя, мета, экшны.
───────────────────────────────────────────────────────────────*/
.results-top-bar-v2 {
  position: sticky; top: 0; z-index: var(--z-nav);
  padding: 6px var(--content-pad);
  width: 100%; box-sizing: border-box;
  background: oklch(4% 0 0 / 60%);
  backdrop-filter: blur(var(--blur-lg));
  -webkit-backdrop-filter: blur(var(--blur-lg));
}
.rtb-inner {
  display: flex; flex-direction: column; gap: 0;
  max-width: var(--content-max);
  margin: 0 auto;
  background: var(--color-white-4);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--color-gold-10);
  border-radius: var(--r);
  padding: 0 12px;
  box-sizing: border-box;
  box-shadow: 0 2px 20px oklch(0% 0 0 / 30%), inset 0 1px 0 var(--color-gold-5);
  height: 44px;
}

.rtb-row       { display: flex; align-items: center; width: 100%; }
.rtb-row--main { min-height: 44px; gap: 8px; }
.rtb-row--sub  { border-top: 1px solid var(--color-white-5); min-height: 26px; padding-left: 36px; }

.rtb-back-btn {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-white-6);
  border: 1px solid var(--color-white-10);
  border-radius: var(--r-sm);
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: border-color var(--duration-fast) var(--ease-out),
              color       var(--duration-fast) var(--ease-out),
              background  var(--duration-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.rtb-back-btn::after { content: ''; position: absolute; inset: -8px; }
.rtb-back-btn:hover  { color: var(--text-2); border-color: var(--color-white-20); background: var(--color-white-10); }

.rtb-name {
  font-family: var(--font-serif);
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-style: italic; font-weight: 500;
  color: var(--gold);
  white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; flex-shrink: 0;
  letter-spacing: 0.02em;
}
.rtb-dot {
  color: var(--text-muted); opacity: .35; flex-shrink: 0;
  font-size: var(--t-meta); line-height: 1;
}
.rtb-identity {
  display: flex; align-items: baseline;
  gap: 5px; flex: 1; min-width: 0; overflow: hidden;
}
.rtb-meta {
  font-family: var(--font-mono);
  font-size: var(--t-meta); letter-spacing: var(--ls-meta);
  color: var(--text-muted); opacity: .55;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 1; min-width: 0;
}
.rtb-right {
  display: flex; align-items: center;
  gap: 2px; flex-shrink: 0;
}
.rtb-date {
  font-family: var(--font-mono);
  font-size: var(--t-meta); letter-spacing: var(--ls-meta);
  color: var(--text-muted); white-space: nowrap;
  margin-right: 6px; opacity: .7;
}
.rtb-icon-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r-sm); color: var(--text-muted);
  cursor: pointer; flex-shrink: 0; position: relative;
  transition: border-color var(--duration-fast) var(--ease-out),
              color       var(--duration-fast) var(--ease-out),
              background  var(--duration-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.rtb-icon-btn::after    { content: ''; position: absolute; inset: -6px; }
.rtb-icon-btn:hover     { border-color: var(--color-white-10); color: var(--text-2); background: var(--color-white-6); }
.rtb-icon-btn--gold     { color: var(--gold); opacity: .7; }
.rtb-icon-btn--gold:hover { opacity: 1; border-color: var(--color-gold-30); background: var(--color-gold-8); }


/* ─────────────────────────────────────────────────────────────
   16. ANIMATIONS
───────────────────────────────────────────────────────────────*/
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 20px var(--gold-glow), 0 0 40px var(--gold-dim); }
  50%      { box-shadow: 0 0 36px var(--gold-glow), 0 0 72px var(--gold-dim); }
}
@keyframes indicator-pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: .4; }
}
@keyframes orbit1 { from { transform: rotate(0deg)   translateX(50px); } to { transform: rotate(360deg) translateX(50px); } }
@keyframes orbit2 { from { transform: rotate(120deg) translateX(66px); } to { transform: rotate(480deg) translateX(66px); } }
@keyframes orbit3 { from { transform: rotate(240deg) translateX(82px); } to { transform: rotate(600deg) translateX(82px); } }
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes gate-rise {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
@keyframes restore-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes card-question-in {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn    { from { opacity: 0; transform: translateY(4px); }  to { opacity: 1; transform: none; } }
@keyframes fadeInUp  { from { opacity: 0; transform: translateY(8px); }  to { opacity: 1; transform: translateY(0); } }
@keyframes blink     { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes live-blink{ 0%,100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes synthDot  { 0%,80%,100% { opacity: .2; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }
@keyframes liquid-spin { to { --angle: 360deg; } }
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }


/* ─────────────────────────────────────────────────────────────
   17. RESPONSIVE
───────────────────────────────────────────────────────────────*/
/* Container Queries для компонентов */

@container cards (max-width: 400px) {
  .synth-card { padding: var(--space-md); }
  .synth-card-title { font-size: var(--t-small); }
}

/* Global layout breakpoints */
@media (max-width: 640px) {
  .chip--question:not(.chip--more) {
    width: 100%; text-align: left; white-space: normal; line-height: 1.4; padding: 10px 14px;
  }
  .question-chip:not(.question-chip-more) {
    width: 100%; text-align: left; white-space: normal; line-height: 1.4; padding: 10px 14px;
  }
  .question-chip-more { align-self: flex-start; }
  .synth-section-body { font-size: 16px; line-height: 1.75; }
  .synth-section-title{ font-size: 10px; letter-spacing: .25em; }
  .domain-pills       { gap: 8px; }
  .domain-pill        { padding: 6px 14px; font-size: 10px; }
  .btn-generate-insights { width: 100%; justify-content: center; }
}

@media (min-width: 768px) {
  .sys-sheet { left: auto; right: 0; max-width: 480px; border-radius: var(--r-xl) 0 0 var(--r-xl); max-height: 100vh; border-top: none; border-left: 1px solid var(--border2); }
  .insights-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .insights-grid { grid-template-columns: repeat(3, 1fr); }
}
