/* =====================================================================
   SkillMesh v2 — Spatial Editorial Broadsheet × 35mm Analog Cinema
   Токены строго по DESIGN.md + интерактивная физика emil-design-eng.
   Шрифты: Playfair Display (400–500, без italic, lining-nums) + Inter.
   ===================================================================== */

:root {
  /* Тёмные киносцены */
  --midnight-ink: #0B0806;
  --cylinder-bg: #050404;
  --pipeline-bg: #0E0C0A;
  --obsidian: #111111;
  --obsidian-deep: #030304;

  /* Светлая хлопковая бумага (Broadsheet) */
  --paper-canvas: #F3F1EB;
  --bone-white: #FAFAFB;
  --paper-recessed: #F4F2EC;
  --paper-line: #DDD8CE;
  --paper-line-strong: #C5BFB3;

  /* Двухтональный текст */
  --dark-h1: #FAFAFB;
  --dark-h2: #ACA497;
  --dark-body: rgba(250, 250, 251, 0.76);
  --dark-dim: rgba(250, 250, 251, 0.52);

  --deep-coal: #1D1D1C;
  --light-h2: #7C776E;
  --ink-body: #2E2C29;
  --stone-label: #59554E;

  /* Единственный световой акцент: 35mm Amber + Warm Titanium */
  --amber-solid: #E09C52;
  --amber-bright: #F4C88C;
  --amber-rim: rgba(224, 156, 82, 0.34);
  --amber-halo: rgba(196, 134, 72, 0.14);
  --titanium-rim: rgba(255, 224, 182, 0.56);
  --titanium-hair: rgba(255, 248, 236, 0.16);
  --glass-bg: rgba(18, 14, 10, 0.56);
  --glass-strong: rgba(12, 9, 7, 0.88);
  --glass-border: rgba(250, 250, 251, 0.22);

  --danger-muted: #C2534A;

  /* Типографика */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Кривые движения (Emil Kowalski) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --shadow-cinema: 0 32px 90px rgba(0, 0, 0, 0.65);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--midnight-ink);
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.56;
  letter-spacing: -0.008em;
  color: var(--dark-body);
  background: var(--midnight-ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea {
  font-family: inherit;
}

:where(a, button, input, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--amber-bright);
  outline-offset: 2px;
}

.hidden {
  display: none !important;
}

/* Живой 35mm аналоговый слой зерна (нативный 1px тайл 256x256, 12 fps, soft-light, opacity 0.16) */
.film-grain {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 95;
  opacity: 0.16;
  mix-blend-mode: soft-light;
}

/* ---------- Типографика: Playfair Display (прямой, lining-nums) ---------- */

.display-h1 {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(42px, 4.5vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.022em;
  font-variant-numeric: lining-nums proportional-nums;
}

.display-h2 {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(36px, 4.0vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-variant-numeric: lining-nums proportional-nums;
}

.display-h3 {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums proportional-nums;
}

.display-metric {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(34px, 2.8vw, 38px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
}

/* Двухтональный заголовок: 2 строки блок под блоком */
.duo-title > span {
  display: block;
}

.duo-dark > span:first-child { color: var(--dark-h1); }
.duo-dark > span:last-child { color: var(--dark-h2); }

.duo-light > span:first-child { color: var(--deep-coal); }
.duo-light > span:last-child { color: var(--light-h2); }

.tabular {
  font-variant-numeric: tabular-nums;
}

/* ---------- Кнопки-пилюли (строго border-radius: 999px) ---------- */

.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 24px;
  min-height: 46px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  user-select: none;
  white-space: nowrap;
  transition:
    transform 150ms var(--ease-out),
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 200ms var(--ease-out),
    opacity 160ms ease;
}

.pill-btn:active:not(:disabled) {
  transform: scale(0.97);
}

.pill-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Главная костяно-белая пилюля */
.pill-bone {
  background: var(--bone-white);
  color: var(--obsidian);
  border-color: var(--bone-white);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.36);
}

/* Стеклянная тёмная пилюля */
.pill-glass {
  background: var(--glass-bg);
  color: var(--bone-white);
  border-color: var(--glass-border);
  backdrop-filter: blur(14px);
}

/* Янтарная титановая пилюля (режим создателя) */
.pill-amber {
  background: linear-gradient(135deg, #F0B672 0%, #D99246 100%);
  color: var(--obsidian-deep);
  border-color: var(--titanium-rim);
  box-shadow: 0 10px 30px rgba(224, 156, 82, 0.28);
}

/* Тёмная пилюля на бумаге */
.pill-coal {
  background: var(--deep-coal);
  color: var(--bone-white);
  border-color: var(--deep-coal);
}

.pill-sm {
  min-height: 36px;
  padding: 7px 16px;
  font-size: 13.5px;
}

/* Hold-to-Delete (Emil clip-path: 1.35s linear удержание, 180ms быстрый отскок) */
.pill-hold-delete {
  position: relative;
  overflow: hidden;
  background: rgba(194, 83, 74, 0.1);
  border-color: rgba(194, 83, 74, 0.42);
  color: #E8A39D;
  touch-action: none;
}

.pill-hold-delete .hold-fill {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #A93830;
  color: var(--bone-white);
  font-weight: 500;
  pointer-events: none;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 180ms var(--ease-out);
}

.pill-hold-delete.is-holding .hold-fill {
  clip-path: inset(0 0 0 0);
  transition: clip-path 1350ms linear;
}

.pill-hold-delete.is-holding {
  transform: scale(0.97);
}

/* ---------- Навигация главной ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 18px 28px;
  pointer-events: none;
}

.site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-bar {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(14, 11, 8, 0.78);
  border: 1px solid rgba(255, 224, 182, 0.22);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
  pointer-events: auto;
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-style: normal;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--bone-white);
  white-space: nowrap;
}

.brand-sigil {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid var(--titanium-rim);
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 35%, rgba(224, 156, 82, 0.32), rgba(11, 8, 6, 0.9));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-h2);
}

.nav-links a {
  transition: color 160ms ease;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

/* =====================================================================
   СЦЕНА 1: HERO (Full-Bleed 3D Architectural Vault + Live Routing Stage)
   ===================================================================== */

.hero-cinema {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--midnight-ink);
  overflow: hidden;
  padding: 102px 28px 30px;
}

.hero-webgl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
}

/* Мягкая виньетка под текстом слева, справа 3D-архитектура светится чисто */
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 8, 6, 0.9) 0%, rgba(11, 8, 6, 0.66) 36%, rgba(11, 8, 6, 0.14) 64%, rgba(11, 8, 6, 0.28) 100%),
    linear-gradient(180deg, rgba(11, 8, 6, 0.36) 0%, transparent 18%, transparent 82%, rgba(5, 4, 4, 0.96) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1280px;
  width: 100%;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 500px) minmax(0, 1fr);
  align-items: center;
  gap: 44px;
}

.hero-copy h1 {
  margin-bottom: 20px;
  overflow-wrap: break-word;
}

.hero-lead {
  font-size: 16px;
  line-height: 1.56;
  color: var(--dark-body);
  max-width: 465px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-jump {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 430px;
  padding: 5px 5px 5px 18px;
  border-radius: 999px;
  background: rgba(18, 14, 10, 0.68);
  border: 1px solid var(--titanium-hair);
  backdrop-filter: blur(14px);
}

.hero-jump-host {
  font-size: 13px;
  font-weight: 500;
  color: var(--dark-h2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hero-jump input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: var(--bone-white);
  font-size: 14px;
}

.hero-jump input::placeholder {
  color: rgba(172, 164, 151, 0.56);
}

/* Пространственная 3D-витрина маршрутизации агентов в Hero */
.hero-stage-wrap {
  perspective: 1400px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.hero-stage-3d {
  transform: rotateY(-4.5deg) rotateX(1.6deg);
  transform-style: preserve-3d;
  transition: transform 280ms var(--ease-out);
  will-change: transform;
}

.hero-stage-3d.is-updating .hs-agent-card,
.hero-stage-3d.is-updating .hs-answer-card {
  animation: hs-reveal 260ms var(--ease-out) both;
}

@keyframes hs-reveal {
  from { opacity: 0.72; transform: translate3d(0, 4px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.hs-card {
  border-radius: 22px;
  padding: 16px 20px;
  background: rgba(14, 11, 8, 0.84);
  border: 1px solid rgba(255, 224, 182, 0.18);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.55);
}

.hs-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.hs-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--dark-h2);
}

.hs-label-amber {
  color: var(--amber-bright);
}

.hs-meta-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hs-slug {
  font-size: 12px;
  color: var(--dark-dim);
}

.hs-speed {
  font-size: 12px;
  font-weight: 500;
  color: var(--amber-bright);
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(224, 156, 82, 0.14);
  border: 1px solid rgba(255, 224, 182, 0.26);
}

.hs-query-text {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.24;
  letter-spacing: -0.015em;
  color: var(--bone-white);
  font-variant-numeric: lining-nums proportional-nums;
}

/* Векторные лучи маршрутизации между слоями 3D-витрины */
.hs-rails {
  height: 30px;
  padding: 0 18px;
}

.hs-rails-merge {
  height: 24px;
}

.hs-rails svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.hs-rail {
  fill: none;
  stroke: rgba(255, 224, 182, 0.22);
  stroke-width: 1.25;
}

.hs-rail-primary {
  stroke: var(--amber-bright);
  stroke-width: 1.85;
  filter: drop-shadow(0 0 6px rgba(224, 156, 82, 0.55));
}

/* 3 карточки найденных регламентов-агентов */
.hs-agents-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hs-agent-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 13px 14px 12px;
  background: rgba(15, 11, 8, 0.8);
  border: 1px solid rgba(255, 248, 236, 0.12);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.44);
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

/* Единственный доминантный световой акцент на лидере (beam-glow-states) */
.hs-agent-card.is-winner {
  background: linear-gradient(160deg, rgba(34, 24, 15, 0.92) 0%, rgba(14, 11, 8, 0.9) 100%);
  border-color: rgba(255, 224, 182, 0.52);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6), 0 0 28px rgba(224, 156, 82, 0.16);
}

.hs-agent-card.is-winner::before {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 60%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--amber-bright), var(--bone-white), transparent);
  animation: hs-beam-sweep 3.4s var(--ease-in-out) infinite;
  pointer-events: none;
}

@keyframes hs-beam-sweep {
  0% { transform: translateX(0); opacity: 0.2; }
  50% { opacity: 1; }
  100% { transform: translateX(280%); opacity: 0.2; }
}

.hs-agent-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

.hs-agent-idx {
  font-size: 11.5px;
  color: var(--dark-dim);
}

.hs-agent-pct {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark-h2);
}

.hs-agent-card.is-winner .hs-agent-pct {
  color: var(--amber-bright);
}

.hs-agent-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--bone-white);
  line-height: 1.24;
}

.hs-agent-snippet {
  font-size: 12px;
  line-height: 1.38;
  color: var(--dark-h2);
  flex: 1;
}

.hs-meter {
  height: 2.5px;
  border-radius: 999px;
  background: rgba(255, 248, 236, 0.1);
  overflow: hidden;
  margin-top: 4px;
}

.hs-meter span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: rgba(255, 224, 182, 0.42);
}

.hs-agent-card.is-winner .hs-meter span {
  background: linear-gradient(90deg, var(--amber-solid), var(--amber-bright));
}

/* Нижний слой 3D-витрины: итоговый ответ сотруднику */
.hs-answer-card {
  border-color: rgba(255, 224, 182, 0.26);
  background: rgba(12, 9, 7, 0.9);
}

.hs-badge-done {
  font-size: 12px;
  color: var(--dark-dim);
  white-space: nowrap;
}

.hs-steps {
  list-style: decimal;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  line-height: 1.46;
  color: var(--dark-body);
}

.hs-steps li::marker {
  color: var(--amber-bright);
  font-weight: 600;
}

/* Переключатель живых примеров под витриной */
.hero-stage-switcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 4px;
}

.hs-switch-label {
  font-size: 12.5px;
  color: var(--dark-h2);
  white-space: nowrap;
}

.hero-pulse-pills {
  display: flex;
  flex-wrap: nowrap;
  gap: 7px;
}

.pulse-chip {
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  background: rgba(250, 250, 251, 0.05);
  border: 1px solid rgba(255, 248, 236, 0.16);
  color: var(--dark-body);
  cursor: pointer;
  transition: transform 140ms var(--ease-out), border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.pulse-chip:active {
  transform: scale(0.96);
}

.pulse-chip.active {
  background: rgba(224, 156, 82, 0.18);
  border-color: var(--titanium-rim);
  color: var(--bone-white);
}

/* Нижняя редакционная полоса метрик в Hero */
.hero-metrics {
  position: relative;
  z-index: 3;
  max-width: 1280px;
  width: 100%;
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--titanium-hair);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.hero-metric-item .display-metric {
  color: var(--bone-white);
  margin-bottom: 4px;
}

.hero-metric-item span {
  font-size: 13px;
  color: var(--dark-h2);
}

/* =====================================================================
   СЦЕНА 2: 3D-ПАНОРАМА ЖИВОГО ГРАФА (#050404 Cylinder Deep Obsidian)
   ===================================================================== */

.scene-panorama {
  background:
    radial-gradient(ellipse 65% 45% at 50% 45%, var(--amber-halo), transparent 72%),
    var(--cylinder-bg);
  padding: 104px 28px;
  border-top: 1px solid var(--titanium-hair);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

.scene-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 38px;
  flex-wrap: wrap;
}

.scene-head-row p {
  max-width: 420px;
  font-size: 15.5px;
  color: var(--dark-body);
}

.panorama-frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: var(--cylinder-bg);
  border: 1px solid rgba(255, 224, 182, 0.22);
  box-shadow: var(--shadow-cinema), 0 0 80px rgba(224, 156, 82, 0.08);
}

.panorama-top {
  position: absolute;
  top: 16px;
  left: 18px;
  right: 18px;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.panorama-badge {
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--titanium-hair);
  backdrop-filter: blur(14px);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--bone-white);
  font-variant-numeric: tabular-nums;
}

.panorama-status {
  color: var(--amber-bright);
  border-color: rgba(255, 224, 182, 0.34);
}

.panorama-viewport {
  position: relative;
  height: 540px;
  width: 100%;
  background: var(--cylinder-bg);
}

.panorama-viewport canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.panorama-bottom {
  position: relative;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px 22px;
  border-top: 1px solid var(--titanium-hair);
  background: rgba(11, 8, 6, 0.88);
}

.panorama-scenarios {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.panorama-hint {
  font-size: 12.5px;
  color: var(--dark-h2);
}

/* 3D Projected Typography Labels (единые для Панорамы и Workspace) */
.g3d-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 6;
}

.g3d-label {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
  white-space: nowrap;
  will-change: transform, opacity;
  transition: opacity 140ms ease;
}

.g3d-name {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(250, 250, 251, 0.82);
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(5, 4, 4, 0.78);
  border: 1px solid rgba(255, 248, 236, 0.12);
}

.g3d-label.is-lit .g3d-name {
  color: var(--bone-white);
  border-color: rgba(255, 224, 182, 0.42);
  background: rgba(14, 11, 8, 0.9);
}

.g3d-label-pipeline .g3d-name {
  font-weight: 600;
  color: var(--bone-white);
  border-color: rgba(255, 224, 182, 0.5);
  background: rgba(16, 12, 9, 0.92);
}

.g3d-meta {
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--dark-h2);
}

.g3d-meta:not(:empty) {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(5, 4, 4, 0.86);
  border: 1px solid rgba(255, 248, 236, 0.1);
}

.g3d-meta.is-amber {
  color: var(--amber-bright);
  border-color: rgba(255, 224, 182, 0.24);
}

.g3d-meta.is-bright {
  color: var(--bone-white);
  border-color: rgba(255, 224, 182, 0.28);
}

/* =====================================================================
   СЦЕНА 3: СВЕТЛАЯ ГАЗЕТНАЯ БУМАГА BROADSHEET (#F3F1EB)
   ===================================================================== */

.scene-broadsheet {
  background: var(--paper-canvas);
  color: var(--ink-body);
  padding: 108px 28px;
}

.broadsheet-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--paper-line);
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.broadsheet-head p {
  max-width: 440px;
  font-size: 16px;
  color: var(--ink-body);
}

.broadsheet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 68px;
}

.editorial-card {
  background: var(--bone-white);
  border: 1px solid var(--paper-line);
  border-radius: 26px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.card-kicker {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--stone-label);
  background: var(--paper-recessed);
  border: 1px solid var(--paper-line);
  font-variant-numeric: tabular-nums;
}

.editorial-card h3 {
  color: var(--deep-coal);
  margin: 16px 0 12px;
}

.editorial-card > div > p {
  color: var(--ink-body);
  font-size: 15.5px;
}

.paper-proof-box {
  background: var(--paper-recessed);
  border: 1px solid var(--paper-line);
  border-radius: 18px;
  padding: 20px 22px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.paper-proof-box li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-body);
  line-height: 1.5;
}

.proof-index {
  font-family: var(--font-display);
  font-variant-numeric: lining-nums tabular-nums;
  font-size: 15px;
  color: var(--stone-label);
}

.paper-proof-box b {
  color: var(--deep-coal);
  font-weight: 600;
}

/* 3 полосы запуска в стиле печатной газеты (без лишних коробок) */
.broadsheet-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--paper-line-strong);
  border-bottom: 1px solid var(--paper-line-strong);
}

.step-column {
  padding: 34px 28px 34px 0;
  border-right: 1px solid var(--paper-line);
}

.step-column:nth-child(2) {
  padding-left: 28px;
}

.step-column:last-child {
  padding-left: 28px;
  padding-right: 0;
  border-right: none;
}

.step-column .display-metric {
  color: var(--deep-coal);
  margin-bottom: 14px;
}

.step-column h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.15;
  color: var(--deep-coal);
  margin-bottom: 10px;
}

.step-column p {
  font-size: 14.8px;
  color: var(--stone-label);
}

/* =====================================================================
   СЦЕНА 4: ТЕХНОЛОГИИ И СОЗДАНИЕ ОРГАНИЗАЦИИ (#0E0C0A Pipeline Dark)
   ===================================================================== */

.scene-pipeline {
  background:
    radial-gradient(ellipse 52% 48% at 84% 28%, var(--amber-halo), transparent 72%),
    var(--pipeline-bg);
  padding: 108px 28px 116px;
}

.pipeline-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 470px);
  gap: 56px;
  align-items: start;
}

.spec-ledger {
  margin-top: 38px;
  border-top: 1px solid var(--titanium-hair);
}

.ledger-row {
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--titanium-hair);
  align-items: baseline;
}

.ledger-key {
  font-size: 13px;
  font-weight: 500;
  color: var(--amber-bright);
  font-variant-numeric: tabular-nums;
}

.ledger-val h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 21px;
  color: var(--bone-white);
  margin-bottom: 6px;
}

.ledger-val p {
  font-size: 14.5px;
  color: var(--dark-h2);
}

/* Форма старта организации (обсидиановое стекло + титановый кант) */
.launch-monolith {
  background: rgba(15, 11, 8, 0.86);
  border: 1px solid rgba(255, 224, 182, 0.28);
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--shadow-cinema);
  backdrop-filter: blur(18px);
}

.pill-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(5, 4, 4, 0.72);
  border: 1px solid var(--titanium-hair);
  margin-bottom: 24px;
}

.pill-tab {
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--dark-h2);
  font-size: 13.5px;
  font-weight: 500;
  padding: 10px 14px;
  cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 180ms ease, color 180ms ease;
}

.pill-tab:active {
  transform: scale(0.97);
}

.pill-tab.active {
  background: var(--bone-white);
  color: var(--obsidian);
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--dark-h2);
  margin-bottom: 7px;
}

.field input, .field textarea {
  width: 100%;
  background: rgba(5, 4, 4, 0.78);
  border: 1px solid var(--titanium-hair);
  border-radius: 14px;
  color: var(--bone-white);
  padding: 12px 15px;
  font-size: 15px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field input:focus, .field textarea:focus {
  border-color: var(--titanium-rim);
  box-shadow: 0 0 0 3px rgba(224, 156, 82, 0.16);
}

.url-preview {
  margin-top: 7px;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  color: var(--amber-bright);
  word-break: break-all;
}

.form-note {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--dark-dim);
  line-height: 1.5;
}

.form-error {
  margin-top: 10px;
  font-size: 13px;
  color: #E8968F;
  min-height: 18px;
}

.site-footer {
  background: var(--midnight-ink);
  border-top: 1px solid var(--titanium-hair);
  padding: 28px;
  font-size: 13px;
  color: var(--dark-dim);
}

.site-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* =====================================================================
   РАБОЧЕЕ ПРОСТРАНСТВО (`/{username}`) — FULL-VIEWPORT 3D OBSERVATORY
   ===================================================================== */

.workspace-page {
  height: 100dvh;
  width: 100vw;
  overflow: hidden;
  position: relative;
  background: var(--cylinder-bg);
}

.ws-webgl-stage {
  position: fixed;
  inset: 0;
  z-index: 1;
}

.ws-webgl-stage canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Тёплый янтарный контровой ореол по краю экрана в режиме создателя */
.ws-amber-wash {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 45% at 50% 100%, rgba(224, 156, 82, 0.22), transparent 68%);
  opacity: 0;
  transition: opacity 380ms var(--ease-out);
}

body[data-mode="create"] .ws-amber-wash {
  opacity: 1;
}

/* Origin-aware Node Tooltip с skip-delay (Emil) */
.node-tooltip {
  position: fixed;
  z-index: 24;
  pointer-events: none;
  max-width: 280px;
  background: rgba(12, 9, 7, 0.94);
  border: 1px solid rgba(255, 224, 182, 0.34);
  border-radius: 18px;
  padding: 13px 16px;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  transform-origin: bottom center;
  transform: translate(-50%, calc(-100% - 14px)) scale(0.96);
  opacity: 0;
  visibility: hidden;
  transition: opacity 135ms var(--ease-out), transform 135ms var(--ease-out), visibility 0ms linear 135ms;
}

.node-tooltip.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, calc(-100% - 18px)) scale(1);
  transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out), visibility 0ms linear 0ms;
}

.node-tooltip[data-instant] {
  transition-duration: 0ms !important;
}

.node-tooltip h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 17px;
  color: var(--bone-white);
  margin-bottom: 4px;
}

.node-tooltip p {
  font-size: 12.5px;
  color: var(--dark-h2);
  margin-bottom: 8px;
  line-height: 1.45;
}

.tooltip-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--amber-bright);
}

/* Верхний HUD рабочего пространства */
.ws-topbar {
  position: fixed;
  top: 16px;
  left: 18px;
  right: 18px;
  z-index: 28;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.ws-topbar-left, .ws-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  min-width: 0;
}

.hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  min-height: 40px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  color: var(--bone-white);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: transform 150ms var(--ease-out), border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.hud-pill:not(.static):active {
  transform: scale(0.97);
}

.hud-pill.static {
  cursor: default;
  border-color: var(--titanium-hair);
  color: var(--dark-h2);
}

.hud-pill.owner-active {
  border-color: var(--titanium-rim);
  background: rgba(224, 156, 82, 0.16);
  color: var(--amber-bright);
}

.hud-slug {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--amber-bright);
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(224, 156, 82, 0.14);
}

.org-title-text {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Левые кнопки 3D-камеры */
.graph-controls {
  position: fixed;
  left: 18px;
  top: 74px;
  z-index: 22;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ctrl-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--titanium-hair);
  background: var(--glass-bg);
  color: var(--dark-body);
  backdrop-filter: blur(14px);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 140ms var(--ease-out), border-color 160ms ease, color 160ms ease;
}

.ctrl-btn:active {
  transform: scale(0.94);
}

/* Легенда 3D-артефактов */
.graph-legend {
  position: fixed;
  left: 18px;
  bottom: 22px;
  z-index: 18;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px 15px;
  border-radius: 18px;
  background: rgba(11, 8, 6, 0.72);
  border: 1px solid var(--titanium-hair);
  backdrop-filter: blur(12px);
  font-size: 11.5px;
  color: var(--dark-h2);
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.legend-mark {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
}

.legend-mark.sphere {
  border-radius: 999px;
  border: 1.5px solid var(--titanium-rim);
  background: var(--obsidian-deep);
}

.legend-mark.octa {
  transform: rotate(45deg);
  border-radius: 1px;
  background: var(--amber-solid);
}

.legend-mark.orbit {
  border-radius: 999px;
  background: var(--bone-white);
}

/* Живая строка стадий пайплайна */
.pipeline-bar {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--glass-strong);
  border: 1px solid rgba(255, 224, 182, 0.34);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  max-width: calc(100vw - 32px);
}

.pipe-step {
  font-size: 12px;
  font-weight: 500;
  color: var(--dark-dim);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.pipe-step.active {
  color: var(--obsidian-deep);
  background: var(--amber-bright);
}

.pipe-step.done {
  color: var(--bone-white);
}

.pipe-sep {
  color: rgba(255, 248, 236, 0.25);
  font-size: 11px;
}

/* Пустое / новое пространство */
.empty-overlay {
  position: fixed;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -55%);
  z-index: 20;
  width: min(500px, calc(100vw - 32px));
  text-align: center;
  background: var(--glass-strong);
  border: 1px solid rgba(255, 224, 182, 0.26);
  border-radius: 26px;
  padding: 34px 30px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-cinema);
}

.empty-overlay h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.12;
  color: var(--bone-white);
  margin-bottom: 12px;
}

.empty-overlay p {
  font-size: 14.5px;
  color: var(--dark-h2);
  margin-bottom: 22px;
}

/* Правая панель консенсусного ответа (Vaul drawer curve, тёмное обсидиановое стекло) */
.answer-drawer {
  position: fixed;
  top: 72px;
  right: 18px;
  bottom: 132px;
  width: min(460px, calc(100vw - 36px));
  z-index: 26;
  display: flex;
  flex-direction: column;
  background: rgba(11, 8, 6, 0.9);
  border: 1px solid rgba(255, 224, 182, 0.24);
  border-radius: 26px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-cinema);
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  opacity: 1;
  transition: transform 360ms var(--ease-drawer), opacity 240ms var(--ease-out);
}

.answer-drawer.collapsed {
  transform: translate3d(calc(100% + 28px), 0, 0);
  opacity: 0;
  pointer-events: none;
  transition: transform 220ms var(--ease-out), opacity 180ms ease;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--titanium-hair);
  background: rgba(16, 12, 9, 0.72);
}

.drawer-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  color: var(--bone-white);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 224, 182, 0.24) transparent;
}

.drawer-body::-webkit-scrollbar,
.kb-sheet-list::-webkit-scrollbar,
.modal-card::-webkit-scrollbar {
  width: 6px;
}

.drawer-body::-webkit-scrollbar-track,
.kb-sheet-list::-webkit-scrollbar-track,
.modal-card::-webkit-scrollbar-track {
  background: transparent;
}

.drawer-body::-webkit-scrollbar-thumb,
.kb-sheet-list::-webkit-scrollbar-thumb,
.modal-card::-webkit-scrollbar-thumb {
  background: rgba(255, 224, 182, 0.22);
  border-radius: 999px;
}

.drawer-body::-webkit-scrollbar-thumb:hover,
.kb-sheet-list::-webkit-scrollbar-thumb:hover,
.modal-card::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 224, 182, 0.4);
}

.query-echo {
  font-size: 13px;
  color: var(--dark-h2);
  padding-bottom: 13px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--titanium-hair);
}

.query-echo b {
  color: var(--bone-white);
  font-weight: 500;
}

/* Редакционный Markdown ответа */
.md {
  font-size: 15px;
  line-height: 1.62;
  color: var(--dark-body);
}

.md p { margin-bottom: 12px; }
.md p:last-child { margin-bottom: 0; }
.md h1, .md h2, .md h3, .md h4 {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 400;
  color: var(--bone-white);
  margin: 16px 0 9px;
  line-height: 1.18;
}
.md h1:first-child, .md h2:first-child, .md h3:first-child { margin-top: 0; }
.md h1 { font-size: 22px; }
.md h2 { font-size: 20px; }
.md h3 { font-size: 17.5px; }
.md ul, .md ol { margin: 0 0 13px; padding-left: 20px; }
.md li { margin: 6px 0; }
.md li::marker { color: var(--amber-bright); }
.md strong { color: var(--bone-white); font-weight: 600; }
.md code {
  font-size: 0.9em;
  background: rgba(255, 224, 182, 0.1);
  border: 1px solid var(--titanium-hair);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--amber-bright);
}
.md blockquote {
  border-left: 2px solid var(--amber-solid);
  padding: 4px 14px;
  margin: 0 0 12px;
  color: var(--dark-h2);
  background: rgba(224, 156, 82, 0.06);
  border-radius: 0 10px 10px 0;
}

.newborn-banner {
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: 16px;
  background: rgba(224, 156, 82, 0.12);
  border: 1px solid rgba(255, 224, 182, 0.36);
  font-size: 13px;
  color: var(--amber-bright);
}

.agents-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--titanium-hair);
}

.agents-section-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--dark-h2);
  margin-bottom: 10px;
}

.agent-result-card {
  width: 100%;
  text-align: left;
  background: rgba(250, 250, 251, 0.035);
  border: 1px solid var(--titanium-hair);
  border-radius: 16px;
  padding: 11px 14px;
  margin-bottom: 8px;
  color: var(--bone-white);
  cursor: pointer;
  transition: transform 140ms var(--ease-out), border-color 160ms ease, background-color 160ms ease;
  animation: emil-stagger-in 240ms var(--ease-out) both;
}

.agent-result-card:nth-child(2) { animation-delay: 0ms; }
.agent-result-card:nth-child(3) { animation-delay: 45ms; }
.agent-result-card:nth-child(4) { animation-delay: 80ms; }
.agent-result-card:nth-child(5) { animation-delay: 110ms; }
.agent-result-card:active { transform: scale(0.985); }

.agent-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.agent-card-name {
  font-size: 13.5px;
  font-weight: 500;
}

.agent-card-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.badge-score {
  color: var(--amber-bright);
  background: rgba(224, 156, 82, 0.16);
  padding: 2px 9px;
  border-radius: 999px;
}

.badge-sim {
  color: var(--dark-h2);
  background: rgba(250, 250, 251, 0.06);
  padding: 2px 9px;
  border-radius: 999px;
}

.score-bar-track {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 248, 236, 0.12);
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber-solid), var(--bone-white));
}

.judge-note {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--dark-h2);
  line-height: 1.5;
  padding: 11px 14px;
  background: rgba(5, 4, 4, 0.55);
  border-radius: 14px;
  border: 1px solid var(--titanium-hair);
}

.feedback-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--titanium-hair);
  background: rgba(8, 6, 5, 0.9);
}

.fb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  min-height: 36px;
  border-radius: 999px;
  background: rgba(250, 250, 251, 0.06);
  border: 1px solid var(--titanium-hair);
  color: var(--bone-white);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 140ms var(--ease-out), border-color 160ms ease, background-color 160ms ease;
}

.fb-btn:active:not(:disabled) { transform: scale(0.96); }
.fb-btn:disabled { opacity: 0.4; cursor: default; }

.fb-status {
  font-size: 12px;
  color: var(--dark-dim);
  margin-left: auto;
}

.reopen-answer-btn {
  position: fixed;
  right: 18px;
  top: 74px;
  z-index: 25;
}

/* =====================================================================
   НИЖНИЙ КОМПОЗЕР + VAUL-ФИЗИКА СВАЙПА ВЛЕВО
   ===================================================================== */

.composer-dock {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: min(720px, calc(100vw - 28px));
  z-index: 29;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.quick-suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.suggestion-chip {
  background: var(--glass-bg);
  border: 1px solid var(--titanium-hair);
  color: var(--dark-body);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: transform 150ms var(--ease-out), border-color 160ms ease, color 160ms ease;
  animation: emil-stagger-in 240ms var(--ease-out) both;
}

.suggestion-chip:nth-child(1) { animation-delay: 0ms; }
.suggestion-chip:nth-child(2) { animation-delay: 45ms; }
.suggestion-chip:nth-child(3) { animation-delay: 80ms; }
.suggestion-chip:active { transform: scale(0.97); }

.composer-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: rgba(14, 11, 8, 0.9);
  border: 1px solid rgba(250, 250, 251, 0.2);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.72);
  transition: transform 220ms var(--ease-out), border-color 220ms ease, box-shadow 220ms ease;
  touch-action: pan-y;
  will-change: transform;
}

.composer-shell.is-dragging {
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.composer-shell:focus-within {
  border-color: var(--titanium-rim);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.78), 0 0 42px rgba(224, 156, 82, 0.16);
}

body[data-mode="create"] .composer-shell {
  border-color: var(--titanium-rim);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 48px rgba(224, 156, 82, 0.24);
}

.swipe-curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--amber-bright), var(--bone-white), var(--amber-bright), transparent);
  box-shadow: 0 0 28px 8px rgba(224, 156, 82, 0.5);
  opacity: 0;
  transform: translate3d(-12px, 0, 0);
  pointer-events: none;
  z-index: 9;
  will-change: transform, opacity;
}

.composer-mode-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 16px 8px;
  border-bottom: 1px solid var(--titanium-hair);
  background: rgba(5, 4, 4, 0.45);
}

.mode-pills {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(5, 4, 4, 0.72);
  border: 1px solid var(--titanium-hair);
  border-radius: 999px;
  padding: 3px;
}

.mode-pill {
  border: none;
  background: transparent;
  color: var(--dark-h2);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 180ms ease, color 180ms ease;
}

.mode-pill:active { transform: scale(0.96); }

.mode-pill.active-chat {
  background: var(--bone-white);
  color: var(--obsidian);
}

.mode-pill.active-create {
  background: var(--amber-solid);
  color: var(--obsidian-deep);
}

.swipe-hint-track {
  font-size: 11.5px;
  color: var(--dark-dim);
  user-select: none;
}

.composer-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 12px 12px 12px 20px;
}

.composer-textarea {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  resize: none;
  color: var(--bone-white);
  font-size: 15.5px;
  line-height: 1.5;
  max-height: 180px;
  min-height: 26px;
}

.composer-textarea::placeholder {
  color: rgba(172, 164, 151, 0.56);
}

.send-circle {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: var(--bone-white);
  color: var(--obsidian);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 150ms var(--ease-out), opacity 160ms ease;
}

body[data-mode="create"] .send-circle {
  background: var(--amber-solid);
  color: var(--obsidian-deep);
}

.send-circle:active:not(:disabled) { transform: scale(0.94); }
.send-circle:disabled { opacity: 0.32; cursor: default; }

/* Режим создания знания */
.create-panel {
  padding: 15px 18px 17px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inline-auth {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.inline-auth-row {
  display: flex;
  gap: 8px;
}

.inline-auth input {
  flex: 1;
  background: rgba(5, 4, 4, 0.85);
  border: 1px solid rgba(255, 224, 182, 0.34);
  border-radius: 999px;
  color: var(--bone-white);
  padding: 10px 18px;
  font-size: 14.5px;
  outline: none;
}

.inline-auth input:focus {
  border-color: var(--titanium-rim);
}

.template-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.tpl-chip {
  background: rgba(224, 156, 82, 0.1);
  border: 1px solid rgba(255, 224, 182, 0.24);
  color: var(--amber-bright);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 160ms ease;
}

.tpl-chip:active { transform: scale(0.96); }

.draft-box {
  background: rgba(5, 4, 4, 0.65);
  border: 1px solid rgba(255, 224, 182, 0.28);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: emil-stagger-in 220ms var(--ease-out) both;
}

.draft-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 10px;
}

.draft-input {
  width: 100%;
  background: rgba(14, 11, 8, 0.9);
  border: 1px solid var(--titanium-hair);
  border-radius: 12px;
  color: var(--bone-white);
  padding: 9px 13px;
  font-size: 13.5px;
  outline: none;
  transition: border-color 160ms ease;
}

.draft-input:focus { border-color: var(--titanium-rim); }

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-pill {
  border: 1px solid var(--titanium-hair);
  background: rgba(18, 14, 10, 0.85);
  color: var(--dark-h2);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: transform 140ms var(--ease-out), border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.tag-pill:active { transform: scale(0.95); }

.tag-pill.on {
  border-color: var(--titanium-rim);
  background: rgba(224, 156, 82, 0.18);
  color: var(--amber-bright);
}

.create-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* =====================================================================
   МОДАЛЬНЫЕ ОКНА, ШТОРКА БАЗЫ ЗНАНИЙ И SONNER TOAST
   ===================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(5, 4, 4, 0.76);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms var(--ease-out), visibility 0ms linear 160ms;
}

.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 220ms var(--ease-out), visibility 0ms linear 0ms;
}

.modal-card {
  width: min(520px, 100%);
  max-height: 88dvh;
  overflow-y: auto;
  background: #120E0B;
  border: 1px solid rgba(255, 224, 182, 0.28);
  border-radius: 26px;
  padding: 28px;
  box-shadow: var(--shadow-cinema);
  transform-origin: center;
  transform: scale(0.96) translateY(8px);
  opacity: 0;
  transition: transform 160ms var(--ease-out), opacity 140ms ease;
}

.modal-backdrop.is-open .modal-card {
  transform: scale(1) translateY(0);
  opacity: 1;
  transition: transform 240ms var(--ease-out), opacity 200ms var(--ease-out);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.modal-head h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  color: var(--bone-white);
}

.icon-close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--titanium-hair);
  background: rgba(250, 250, 251, 0.05);
  color: var(--dark-h2);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 140ms var(--ease-out), border-color 150ms ease, color 150ms ease;
}

.icon-close:active { transform: scale(0.94); }

/* Шторка базы знаний */
.kb-sheet {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(520px, 100vw);
  z-index: 55;
  background: #0F0C09;
  border-left: 1px solid rgba(255, 224, 182, 0.22);
  display: flex;
  flex-direction: column;
  box-shadow: -28px 0 70px rgba(0, 0, 0, 0.78);
  transform: translate3d(100%, 0, 0);
  visibility: hidden;
  pointer-events: none;
  transition: transform 220ms var(--ease-out), visibility 0ms linear 220ms;
}

.kb-sheet.is-open {
  transform: translate3d(0, 0, 0);
  visibility: visible;
  pointer-events: auto;
  transition: transform 360ms var(--ease-drawer), visibility 0ms linear 0ms;
}

.kb-sheet-head {
  padding: 20px 22px;
  border-bottom: 1px solid var(--titanium-hair);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.kb-sheet-head h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  color: var(--bone-white);
}

.kb-sheet-search {
  padding: 12px 22px;
  border-bottom: 1px solid var(--titanium-hair);
}

.kb-sheet-search input {
  width: 100%;
  background: rgba(5, 4, 4, 0.85);
  border: 1px solid var(--titanium-hair);
  border-radius: 999px;
  color: var(--bone-white);
  padding: 10px 16px;
  font-size: 14px;
  outline: none;
  transition: border-color 160ms ease;
}

.kb-sheet-search input:focus { border-color: var(--titanium-rim); }

.kb-sheet-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kb-item {
  background: rgba(250, 250, 251, 0.03);
  border: 1px solid var(--titanium-hair);
  border-radius: 18px;
  padding: 16px 18px;
  transition: border-color 160ms ease;
}

.kb-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.kb-item h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  color: var(--bone-white);
}

.kb-origin {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}

.kb-origin.manual {
  background: rgba(250, 250, 251, 0.08);
  color: var(--dark-h2);
}

.kb-origin.auto {
  background: rgba(224, 156, 82, 0.18);
  color: var(--amber-bright);
}

.kb-item p {
  font-size: 13px;
  color: var(--dark-h2);
  margin-bottom: 10px;
}

.kb-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}

.kb-tag {
  font-size: 11px;
  color: var(--dark-dim);
  background: rgba(5, 4, 4, 0.65);
  border: 1px solid var(--titanium-hair);
  border-radius: 999px;
  padding: 2px 9px;
}

.kb-item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--dark-dim);
}

/* Sonner Toast (правый нижний угол на десктопе — строго в свободной зоне под шторкой ответа) */
.toast {
  position: fixed;
  bottom: 20px;
  right: 18px;
  transform: translate3d(0, 140%, 0) scale(0.96);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 85;
  padding: 10px 16px;
  border-radius: 18px;
  background: rgba(16, 12, 9, 0.96);
  border: 1px solid rgba(255, 224, 182, 0.38);
  color: var(--bone-white);
  font-size: 12.5px;
  line-height: 1.38;
  font-weight: 500;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  max-width: min(332px, calc(100vw - 36px));
  transition: transform 400ms var(--ease-out), opacity 280ms ease, visibility 0ms linear 400ms;
}

.toast.is-open {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: transform 400ms var(--ease-out), opacity 280ms ease, visibility 0ms linear 0ms;
}

.toast.amber {
  border-color: var(--titanium-rim);
  color: var(--amber-bright);
}

@keyframes emil-stagger-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =====================================================================
   HOVER ТОЛЬКО НА УСТРОЙСТВАХ С КУРСОРОМ (Emil + DESIGN.md)
   ===================================================================== */

@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--bone-white); }
  .pill-bone:hover {
    background: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(224, 156, 82, 0.2);
  }
  .pill-glass:hover {
    border-color: var(--titanium-rim);
    background: rgba(24, 19, 14, 0.72);
  }
  .pill-amber:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 36px rgba(224, 156, 82, 0.36);
  }
  .pulse-chip:hover {
    border-color: var(--titanium-rim);
    color: var(--bone-white);
  }
  .hud-pill:not(.static):hover {
    border-color: var(--titanium-rim);
    background: rgba(24, 18, 14, 0.78);
  }
  .ctrl-btn:hover {
    border-color: var(--titanium-rim);
    color: var(--bone-white);
  }
  .suggestion-chip:hover {
    border-color: var(--titanium-rim);
    color: var(--bone-white);
    transform: translateY(-1px);
  }
  .send-circle:hover:not(:disabled) {
    transform: scale(1.05);
  }
  .tpl-chip:hover {
    background: rgba(224, 156, 82, 0.22);
  }
  .icon-close:hover {
    border-color: var(--titanium-rim);
    color: var(--bone-white);
  }
  .kb-item:hover {
    border-color: rgba(255, 224, 182, 0.38);
  }
  .agent-result-card:hover {
    border-color: rgba(255, 224, 182, 0.4);
    background: rgba(250, 250, 251, 0.06);
  }
  .fb-btn:hover:not(:disabled) {
    border-color: var(--titanium-rim);
    background: rgba(224, 156, 82, 0.14);
  }
}

/* =====================================================================
   АДАПТИВНОСТЬ (Планшеты и Мобильные 390px)
   ===================================================================== */

.hero-content > *, .broadsheet-grid > *, .broadsheet-steps > *, .pipeline-layout > * {
  min-width: 0;
}

@media (max-width: 980px) {
  .hero-content,
  .broadsheet-grid,
  .broadsheet-steps,
  .pipeline-layout {
    grid-template-columns: 1fr;
  }
  .hero-stage-3d {
    transform: none !important;
  }
  .hero-pulse-pills {
    flex-wrap: wrap;
  }
  .nav-links {
    display: none;
  }
  .step-column,
  .step-column:nth-child(2),
  .step-column:last-child {
    padding: 26px 0;
    border-right: none;
    border-bottom: 1px solid var(--paper-line);
  }
  .step-column:last-child {
    border-bottom: none;
  }
}

@media (max-width: 720px) {
  .site-header { padding: 12px 14px; }
  .header-bar { padding: 6px 14px; gap: 12px; }
  .hero-cinema { padding: 86px 16px 32px; }
  .display-h1 { font-size: 36px; line-height: 1.08; }
  .display-h2 { font-size: 32px; line-height: 1.08; }
  .hero-lead { font-size: 15px; margin-bottom: 22px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .pill-btn { width: 100%; }
  .hero-jump { max-width: 100%; padding: 5px 5px 5px 12px; }
  .hero-jump-host { max-width: 108px; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
  .hs-card { padding: 14px 15px; border-radius: 18px; }
  .hs-rails { display: none; }
  .hs-agents-row { grid-template-columns: 1fr; gap: 8px; margin: 10px 0; }
  .hs-agent-card { padding: 11px 13px; }
  .hero-metrics { grid-template-columns: 1fr; gap: 16px; }
  .scene-panorama, .scene-broadsheet, .scene-pipeline { padding: 64px 16px; }
  .panorama-viewport { height: 390px; }
  .editorial-card, .launch-monolith { padding: 24px 20px; }
  .ledger-row { grid-template-columns: 1fr; gap: 6px; }

  .ws-topbar { top: 10px; left: 10px; right: 10px; gap: 6px; }
  .ws-topbar-left, .ws-topbar-right { gap: 5px; }
  .hud-pill { padding: 6px 10px; font-size: 12px; min-height: 36px; gap: 6px; }
  .org-title-text, .hide-mobile { display: none; }
  .graph-controls { left: 10px; top: 58px; }
  .graph-legend { display: none; }
  .pipeline-bar { top: 58px; padding: 6px 10px; overflow-x: auto; }
  .answer-drawer {
    top: auto;
    left: 10px;
    right: 10px;
    bottom: 124px;
    width: auto;
    height: 54dvh;
  }
  .answer-drawer.collapsed {
    transform: translate3d(0, 100%, 0);
  }
  .composer-dock { bottom: 10px; width: calc(100vw - 20px); }
  .toast { bottom: auto; top: 58px; right: 10px; left: 10px; max-width: none; text-align: center; transform: translate3d(0, -140%, 0) scale(0.96); }
  .composer-textarea { font-size: 16px; }
  .swipe-hint-track { display: none; }
  .draft-grid { grid-template-columns: 1fr; }
  .inline-auth-row { flex-direction: column; }
}

/* =====================================================================
   3D KNOWLEDGE FORGE, SPECTRUM 768d, TEAM QR MODAL И DUAL-SWIPE DEMO
   ===================================================================== */

.g3d-label-forge .g3d-name {
  font-weight: 600;
  color: var(--amber-bright);
  border-color: rgba(255, 224, 182, 0.58);
  background: rgba(20, 14, 9, 0.94);
  box-shadow: 0 8px 24px rgba(224, 156, 82, 0.22);
}

/* Спектральный индикатор 768d в строке пайплайна */
.vec-spectrum {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 15px;
  padding-right: 6px;
}

.vec-spectrum span {
  width: 2.5px;
  height: var(--bar-h, 60%);
  border-radius: 999px;
  background: linear-gradient(to top, var(--amber-solid), var(--bone-white));
  animation: vec-pulse 680ms ease-in-out infinite alternate;
  transform-origin: bottom center;
}

@keyframes vec-pulse {
  from { transform: scaleY(0.35); opacity: 0.5; }
  to { transform: scaleY(1); opacity: 1; }
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.forge-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.voice-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-color: rgba(255, 224, 182, 0.36);
}

.voice-btn.is-recording {
  background: rgba(224, 156, 82, 0.32);
  border-color: var(--amber-bright);
  color: var(--bone-white);
}

.forge-magnet-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 12px;
  background: rgba(224, 156, 82, 0.1);
  border: 1px solid rgba(255, 224, 182, 0.24);
  font-size: 12px;
  color: var(--amber-bright);
}

.forge-magnet-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--amber-bright);
  box-shadow: 0 0 10px var(--amber-solid);
  flex-shrink: 0;
}

.history-item {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

/* Модальное окно доступа для команды + сканируемый QR-код */
.share-modal-card {
  width: min(560px, 100%);
}

.share-qr-layout {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.share-qr-frame {
  width: 164px;
  height: 164px;
  padding: 10px;
  border-radius: 18px;
  background: var(--bone-white);
  border: 1px solid rgba(255, 224, 182, 0.42);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.48);
}

.share-qr-frame svg {
  width: 100%;
  height: 100%;
  display: block;
}

.share-qr-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.share-url-pill {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(5, 4, 4, 0.85);
  border: 1px solid var(--titanium-hair);
  color: var(--amber-bright);
  font-size: 13px;
  word-break: break-all;
}

.share-qr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Интерактивный тренажёр свайпа в Broadsheet на главной */
.dual-swipe-stage {
  margin: 28px 0 42px;
  padding: 24px 26px;
  border-radius: 26px;
  background: var(--obsidian);
  border: 1px solid rgba(255, 224, 182, 0.22);
  color: var(--bone-white);
  box-shadow: 0 24px 60px rgba(17, 17, 17, 0.14);
}

.ds-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.ds-title {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 400;
  color: var(--bone-white);
  line-height: 1.15;
}

.ds-sub {
  font-size: 13.5px;
  color: var(--dark-h2);
  margin-top: 3px;
}

.ds-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(5, 4, 4, 0.72);
  border: 1px solid var(--titanium-hair);
}

.ds-tab {
  border: none;
  background: transparent;
  color: var(--dark-h2);
  font-size: 12.5px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 160ms ease, color 160ms ease;
}

.ds-tab:active { transform: scale(0.97); }

.ds-tab.active[data-side="ask"] {
  background: var(--bone-white);
  color: var(--obsidian);
}

.ds-tab.active[data-side="create"] {
  background: var(--amber-solid);
  color: var(--obsidian-deep);
}

.ds-composer {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 18px 20px;
  background: rgba(5, 4, 4, 0.76);
  border: 1px solid var(--titanium-hair);
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  transition: transform 200ms var(--ease-out), border-color 220ms ease, box-shadow 220ms ease;
}

.dual-swipe-stage[data-side="create"] .ds-composer {
  border-color: var(--titanium-rim);
  box-shadow: 0 0 40px rgba(224, 156, 82, 0.18);
}

.ds-curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--amber-bright), var(--bone-white), var(--amber-bright), transparent);
  box-shadow: 0 0 24px 8px rgba(224, 156, 82, 0.48);
  opacity: 0;
  pointer-events: none;
}

.ds-bar-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.ds-role-badge {
  font-size: 12px;
  font-weight: 500;
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(250, 250, 251, 0.08);
  color: var(--bone-white);
}

.ds-role-badge.is-amber {
  background: rgba(224, 156, 82, 0.2);
  color: var(--amber-bright);
}

.ds-drag-hint {
  font-size: 12px;
  color: var(--dark-dim);
}

.ds-prompt-preview {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.26;
  color: var(--bone-white);
  margin-bottom: 14px;
}

.ds-prompt-preview.is-amber {
  color: #FFF4E4;
}

.ds-result-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--titanium-hair);
  font-size: 13.5px;
  color: var(--dark-body);
}

.ds-chip-ok, .ds-chip-amber {
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.ds-chip-ok {
  background: rgba(250, 250, 251, 0.08);
  color: var(--bone-white);
}

.ds-chip-amber {
  background: rgba(224, 156, 82, 0.16);
  border: 1px solid rgba(255, 224, 182, 0.3);
  color: var(--amber-bright);
}

@media (max-width: 720px) {
  .share-qr-layout { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .share-qr-actions { justify-content: center; }
  .dual-swipe-stage { padding: 18px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .vec-spectrum span { animation: none !important; }
  .hero-stage-3d,
  .answer-drawer, .answer-drawer.collapsed,
  .kb-sheet, .kb-sheet.is-open,
  .modal-card, .modal-backdrop.is-open .modal-card,
  .node-tooltip, .node-tooltip.is-open,
  .toast, .toast.is-open {
    transform: none !important;
    transition: opacity 180ms ease, visibility 0ms linear 180ms !important;
  }
  .suggestion-chip, .agent-result-card, .draft-box,
  .hs-agent-card.is-winner::before,
  .hero-stage-3d.is-updating .hs-agent-card,
  .hero-stage-3d.is-updating .hs-answer-card { animation: none !important; }
}
