:root {
  --bg-0: #f4efe4;
  --bg-1: #fbf8f1;
  --ink-0: #182536;
  --ink-1: #314459;
  --ink-2: #5f7388;
  --line: rgba(28, 42, 61, 0.14);
  --line-strong: rgba(28, 42, 61, 0.24);
  --card: rgba(255, 255, 255, 0.72);
  --card-strong: rgba(255, 255, 255, 0.9);
  --red: #bf1f24;
  --red-soft: #dd5650;
  --gold: #bf8d31;
  --gold-soft: #e5bc6a;
  --ok: #2d8b61;
  --vote-favor: #0f766e;
  --vote-contra: #6d28d9;
  --radius: 22px;
  --shadow-s: 0 10px 22px rgba(19, 31, 46, 0.08);
  --shadow-m: 0 20px 50px rgba(16, 28, 42, 0.13);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Avenir Next", "Montserrat", "Segoe UI", sans-serif;
  color: var(--ink-0);
  background:
    radial-gradient(1200px 700px at -10% -20%, rgba(191, 141, 49, 0.3), transparent 60%),
    radial-gradient(1200px 700px at 110% 0%, rgba(191, 31, 36, 0.16), transparent 62%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
  line-height: 1.45;
}

body.auth-on {
  background:
    radial-gradient(1200px 760px at -10% -30%, rgba(26, 63, 119, 0.34), transparent 62%),
    radial-gradient(1200px 760px at 115% 0%, rgba(191, 31, 36, 0.24), transparent 64%),
    linear-gradient(180deg, #edf2f9 0%, #e5edf8 100%);
}

.spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  background: radial-gradient(300px 300px at var(--mx, 30%) var(--my, 20%), rgba(255, 255, 255, 0.4), transparent 70%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -5;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(33, 50, 70, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(33, 50, 70, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.38;
}

.mesh {
  position: fixed;
  border-radius: 999px;
  filter: blur(56px);
  pointer-events: none;
  z-index: -4;
  opacity: 0.34;
  animation: mesh-drift 16s ease-in-out infinite;
  will-change: transform;
}

.mesh-a {
  width: 360px;
  height: 360px;
  top: 12%;
  left: -90px;
  background: rgba(191, 31, 36, 0.33);
}

.mesh-b {
  width: 410px;
  height: 410px;
  right: -120px;
  bottom: -140px;
  background: rgba(191, 141, 49, 0.35);
  animation-delay: -4s;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.08;
  background-image: radial-gradient(circle at 1px 1px, #000 1px, transparent 0);
  background-size: 4px 4px;
}

@keyframes mesh-drift {
  0%,
  100% {
    transform: translateY(0px) translateX(0px);
  }
  50% {
    transform: translateY(-26px) translateX(12px);
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px 14px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 246, 238, 0.86);
  backdrop-filter: blur(10px);
}

body.auth-on .topbar {
  background: rgba(238, 244, 252, 0.9);
  border-bottom-color: rgba(28, 42, 61, 0.22);
}

.topbar-menu-btn {
  display: none;
  width: 46px;
  height: 44px;
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-1);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 8px 18px rgba(18, 31, 47, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.topbar-menu-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(18, 31, 47, 0.16);
  border-color: rgba(191, 31, 36, 0.28);
}

.topbar-menu-btn span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2.6px;
  border-radius: 999px;
  background: currentColor;
  display: block;
  transform-origin: center;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.topbar-menu-btn span:nth-child(1) {
  top: 14px;
}

.topbar-menu-btn span:nth-child(2) {
  top: 20px;
}

.topbar-menu-btn span:nth-child(3) {
  top: 26px;
}

.topbar.menu-open .topbar-menu-btn span:nth-child(1) {
  top: 20px;
  transform: rotate(45deg);
}

.topbar.menu-open .topbar-menu-btn span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.2);
}

.topbar.menu-open .topbar-menu-btn span:nth-child(3) {
  top: 20px;
  transform: rotate(-45deg);
}

.topbar.menu-open .topbar-menu-btn {
  background: linear-gradient(120deg, #bf1f24, #de4f49);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(191, 31, 36, 0.25);
}

.topbar-flyout {
  display: contents;
}

.brand {
  min-width: 0;
  justify-self: start;
}

.brand-title {
  margin: 0;
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 2rem;
  line-height: 1;
  color: var(--ink-0);
}

.brand-title span {
  color: var(--red);
}

.brand-sub {
  margin-top: 2px;
  color: var(--ink-2);
  font-size: 0.86rem;
  font-weight: 600;
}

.nav {
  grid-column: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 6px;
  scrollbar-width: thin;
}

.nav-btn {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink-1);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nav-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(191, 141, 49, 0.45);
  background: rgba(255, 255, 255, 0.9);
}

.nav-btn.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(95deg, var(--red), #d84e49);
  box-shadow: none;
}

.topbar .nav .nav-btn.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(95deg, var(--red), #d84e49);
  box-shadow: none;
}

.session {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  min-width: 0;
  gap: 10px;
  flex-wrap: nowrap;
}

.session .btn,
.session .pill {
  white-space: nowrap;
}

.pill {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-1);
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 700;
}

.views {
  width: min(1400px, 95vw);
  margin: 20px auto 36px;
}

.view {
  display: none;
}

.view.active {
  display: block;
  animation: view-in 0.3s cubic-bezier(0.24, 0.72, 0.26, 1);
}

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

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-s);
}

.reveal {
  opacity: 0;
  transform: translateY(8px);
}

.reveal.visible {
  animation: reveal-in 0.5s cubic-bezier(0.2, 0.75, 0.2, 1) forwards;
  animation-delay: var(--reveal-delay, 0s);
}

.delay-1.visible {
  animation-delay: 0.13s;
}

@keyframes reveal-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.kicker {
  margin: 0;
  color: var(--gold);
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 900;
}

.hero {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "copy stage"
    "kpis kpis";
  gap: 18px;
  padding: 24px;
  transform-style: preserve-3d;
  transition: transform 0.2s ease;
  position: relative;
  overflow: hidden;
  align-items: start;
  will-change: transform;
}

.hero-copy-wrap {
  grid-area: copy;
}

.hero::before {
  content: "";
  position: absolute;
  right: -100px;
  top: -100px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(191, 141, 49, 0.25), transparent 72%);
  pointer-events: none;
  display: none;
}

.hero h1,
.hero-title {
  margin: 8px 0 12px;
  font-size: clamp(2.2rem, 5.3vw, 4.2rem);
  line-height: 0.99;
  letter-spacing: -0.035em;
  max-width: 13.9ch;
  text-wrap: balance;
}

.hero-title {
  color: var(--ink-0);
  position: relative;
  overflow: visible;
}

.hero-line {
  display: block;
}

.hero-line-accent {
  background: linear-gradient(95deg, #bf1f24 0%, #de4f49 48%, #c4871f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 24px rgba(191, 31, 36, 0.14);
  filter: saturate(1.05);
}

.hero-line:first-child {
  color: #14263f;
}

.hero-title::after {
  content: "";
  position: absolute;
  left: -14%;
  top: -46%;
  width: 64%;
  height: 210%;
  transform: skewX(-14deg) translateX(-140%);
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.52), rgba(255,255,255,0));
  pointer-events: none;
  animation: title-sheen 6.4s ease-in-out infinite;
  filter: blur(2px);
}

.hero-copy {
  margin: 0;
  max-width: 64ch;
  color: var(--ink-1);
  font-size: 1.08rem;
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-actions .btn {
  position: relative;
  overflow: hidden;
}

.hero-actions .btn::after {
  content: "";
  position: absolute;
  left: -40%;
  top: -20%;
  width: 22%;
  height: 140%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.34), rgba(255,255,255,0));
  animation: btn-sheen 4.8s ease-in-out infinite;
}

.hero-kpis {
  grid-area: kpis;
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-kpis article {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  padding: 10px;
  display: grid;
  gap: 4px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  animation: kpi-breathe 4.6s ease-in-out infinite;
}

.hero-kpis article:nth-child(2) { animation-delay: -1.4s; }
.hero-kpis article:nth-child(3) { animation-delay: -2.8s; }

.hero-kpis article:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(35, 73, 116, 0.14);
}

.hero-kpis strong {
  color: var(--red);
  font-size: 1.18rem;
  line-height: 1;
}

.hero-kpis span {
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.85rem;
}

.hero-stage {
  grid-area: stage;
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(48, 65, 85, 0.2);
  background:
    radial-gradient(240px 170px at 22% 78%, rgba(47, 108, 168, 0.22), transparent 70%),
    radial-gradient(230px 160px at 78% 24%, rgba(183, 138, 42, 0.24), transparent 70%),
    radial-gradient(220px 150px at 54% 46%, rgba(191, 31, 36, 0.14), transparent 74%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(251, 245, 233, 0.9));
  min-height: 320px;
  height: auto;
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
  --sx: 50%;
  --sy: 50%;
}

.hero-empty-slot {
  grid-area: stage;
  position: relative;
  min-height: 100%;
  pointer-events: auto;
}

.hero-empty-slot .hero-iberia-real {
  position: absolute;
  right: -114px;
  top: -142px;
  width: min(156%, 1220px);
  height: auto;
  transform: rotate(-3.5deg);
  transform-origin: 60% 50%;
  opacity: 0.66;
  contain: layout paint;
  overflow: visible;
}

.hero-empty-slot .hero-iberia-real .iberia-context {
  display: block;
  pointer-events: none;
}

.hero-empty-slot .hero-iberia-real .iberia-context-north {
  opacity: 1;
}

.hero-empty-slot .hero-iberia-real .iberia-context-south {
  opacity: 1;
}

.hero-empty-slot .hero-iberia-real .iberia-context-shape {
  fill: rgba(191, 31, 36, 0.104);
  stroke: rgba(171, 18, 32, 0.58);
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
  shape-rendering: geometricPrecision;
}

.hero-empty-slot .hero-iberia-real .iberia-fill {
  fill: rgba(191, 31, 36, 0.104);
}

.hero-empty-slot .hero-iberia-real .iberia-canary-fill {
  fill: rgba(191, 31, 36, 0.092);
}

.hero-empty-slot .hero-iberia-real .iberia-spain-focus {
  fill: rgba(191, 31, 36, 0.24);
  stroke: rgba(194, 21, 30, 0.85);
  stroke-width: 1.9;
  stroke-linejoin: round;
  stroke-linecap: round;
  pointer-events: visiblePainted;
  transition: transform 0.26s cubic-bezier(0.2, 0.84, 0.2, 1), fill 0.22s ease, stroke 0.22s ease, stroke-width 0.22s ease;
  transform-box: fill-box;
  transform-origin: center;
  cursor: pointer;
}

.hero-empty-slot .hero-iberia-real.spain-territory-hover .iberia-spain-focus {
  fill: rgba(191, 31, 36, 0.34);
  stroke: rgba(194, 21, 30, 0.96);
  stroke-width: 2.32;
  transform: scale(1.03);
}

.hero-empty-slot .hero-iberia-real .iberia-stroke {
  fill: none;
  stroke: rgba(171, 18, 32, 0.58);
  stroke-width: 1.8;
}

.hero-empty-slot .hero-iberia-real .iberia-dotfield circle {
  opacity: var(--dot-opacity, 0.84);
  fill: rgba(178, 28, 40, 0.62);
  transform-box: fill-box;
  transform-origin: center;
  --dot-scale: 1;
  animation-name: iberia-dot-orbit, iberia-dot-fade;
  animation-duration: var(--dur, 10.2s), var(--fade-dur, 4.6s);
  animation-timing-function: linear, ease-in-out;
  animation-iteration-count: infinite, infinite;
  animation-delay: var(--delay, 0s), var(--fade-delay, 0s);
  transition: fill 0.16s ease, opacity 0.16s ease, stroke 0.16s ease;
  pointer-events: none;
  cursor: default;
  will-change: transform, opacity;
}

.hero-empty-slot .hero-iberia-real .iberia-dotfield circle.iberia-dot-focus {
  pointer-events: auto;
  cursor: pointer;
}

.hero-empty-slot .hero-iberia-real .iberia-dotfield-context circle {
  fill: rgba(178, 28, 40, 0.62);
  opacity: 0.88;
}

.hero-empty-slot .hero-iberia-real .iberia-dotfield circle.is-near {
  fill: rgba(210, 37, 48, 0.95);
  opacity: 1;
  stroke: rgba(255, 220, 174, 0.55);
  stroke-width: 0.52;
  --dot-scale: 1.32;
  animation-name: iberia-dot-orbit, iberia-dot-near-pulse;
  animation-duration: var(--dur, 10.2s), 0.86s;
  animation-timing-function: linear, ease-in-out;
  animation-iteration-count: infinite, infinite;
  animation-delay: var(--delay, 0s), 0s;
  filter: drop-shadow(0 0 1px rgba(207, 38, 52, 0.26));
}

.hero-empty-slot .hero-iberia-real .iberia-dotfield circle.is-near-strong {
  fill: rgba(229, 58, 66, 0.99);
  stroke: rgba(255, 232, 188, 0.72);
  stroke-width: 0.66;
  --dot-scale: 1.58;
  filter: drop-shadow(0 0 2px rgba(232, 67, 75, 0.36));
}

.hero-empty-slot .hero-iberia-real .iberia-dotfield circle.iberia-dot-focus:hover,
.hero-empty-slot .hero-iberia-real .iberia-dotfield circle.iberia-dot-focus.is-hovered {
  fill: rgba(191, 31, 36, 0.98);
  opacity: 1;
  --dot-scale: 1.74;
  stroke: rgba(255, 229, 182, 0.78);
  stroke-width: 0.72;
  animation-name: iberia-dot-orbit, iberia-dot-magic;
  animation-duration: var(--dur, 10.2s), 0.74s;
  animation-timing-function: linear, ease-out;
  animation-iteration-count: infinite, 1;
  animation-delay: var(--delay, 0s), 0s;
  filter: drop-shadow(0 0 2px rgba(229, 62, 70, 0.4));
}

.hero-empty-slot .hero-iberia-real.spain-territory-hover .iberia-dotfield circle.iberia-dot-focus {
  fill: rgba(197, 35, 44, 0.88);
  opacity: 0.95;
}

.hero-empty-slot .hero-iberia-real .iberia-hover-fx {
  pointer-events: none;
}

.hero-empty-slot .hero-iberia-real .iberia-hover-core {
  fill: rgba(255, 209, 150, 0.88);
  animation: iberia-hover-core 0.5s ease-out forwards;
}

.hero-empty-slot .hero-iberia-real .iberia-hover-wave {
  fill: none;
  stroke: rgba(255, 152, 166, 0.72);
  stroke-width: 1.05;
  animation: iberia-hover-wave 0.66s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-empty-slot .hero-iberia-real .iberia-spark-core {
  fill: rgba(255, 214, 148, 0.95);
  animation: iberia-spark-core 0.62s ease-out forwards;
}

.hero-empty-slot .hero-iberia-real .iberia-spark-ring {
  fill: none;
  stroke: rgba(255, 131, 145, 0.86);
  stroke-width: 1.05;
  animation: iberia-spark-ring 0.62s ease-out forwards;
}

.hero-empty-slot .hero-iberia-real .iberia-spark-particle {
  fill: rgba(255, 143, 176, 0.92);
  animation: iberia-spark-particle 0.6s cubic-bezier(0.22, 0.7, 0.24, 0.96) forwards;
}

@keyframes iberia-dot-orbit {
  0% {
    transform: translate3d(var(--q1x, 0px), var(--q1y, 0px), 0) scale(var(--dot-scale, 1));
  }
  25% {
    transform: translate3d(var(--q2x, 0px), var(--q2y, 0px), 0) scale(var(--dot-scale, 1));
  }
  50% {
    transform: translate3d(var(--q3x, 0px), var(--q3y, 0px), 0) scale(var(--dot-scale, 1));
  }
  75% {
    transform: translate3d(var(--q4x, 0px), var(--q4y, 0px), 0) scale(var(--dot-scale, 1));
  }
  100% {
    transform: translate3d(var(--q1x, 0px), var(--q1y, 0px), 0) scale(var(--dot-scale, 1));
  }
}

@keyframes iberia-dot-fade {
  0%,
  100% {
    opacity: calc(var(--dot-opacity, 0.84) - 0.08);
  }
  50% {
    opacity: var(--dot-opacity, 0.84);
  }
}

@keyframes iberia-dot-magic {
  0%,
  100% {
    r: 1.26;
  }
  50% {
    r: 2.22;
  }
}

@keyframes iberia-dot-near-pulse {
  0%,
  100% {
    opacity: 0.92;
  }
  50% {
    opacity: 1;
  }
}

@keyframes iberia-hover-core {
  0% {
    opacity: 0.95;
    transform: scale(0.5);
  }
  100% {
    opacity: 0;
    transform: scale(1.8);
  }
}

@keyframes iberia-hover-wave {
  0% {
    opacity: 0.78;
    stroke-width: 1.15;
    r: 1;
  }
  100% {
    opacity: 0;
    stroke-width: 0.25;
    r: 26;
  }
}

@keyframes iberia-spark-core {
  0% {
    opacity: 0.9;
    transform: scale(0.6);
  }
  100% {
    opacity: 0;
    transform: scale(2.1);
  }
}

@keyframes iberia-spark-ring {
  0% {
    opacity: 0.82;
    stroke-width: 1.3;
    r: 1.2;
  }
  100% {
    opacity: 0;
    stroke-width: 0.35;
    r: 9.4;
  }
}

@keyframes iberia-spark-particle {
  0% {
    opacity: 0.9;
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--tx, 6px), var(--ty, 6px), 0) scale(0.3);
  }
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 14px;
  border: 1px dashed rgba(48, 65, 85, 0.18);
}

.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(35, 73, 116, 0.025) 0px,
      rgba(35, 73, 116, 0.025) 1px,
      transparent 1px,
      transparent 12px
    );
  opacity: 0.45;
  pointer-events: none;
  animation: stage-scan 9s linear infinite;
}

.stage-cursor {
  position: absolute;
  width: 210px;
  height: 210px;
  left: var(--sx);
  top: var(--sy);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 108, 168, 0.16), rgba(183, 138, 42, 0.1) 48%, transparent 70%);
  filter: blur(9px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
  transition: left 0.12s linear, top 0.12s linear, opacity 0.2s ease;
}

.stage-hud {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 4;
  border: 1px solid rgba(35, 73, 116, 0.26);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  padding: 7px 10px;
  display: grid;
  gap: 2px;
  min-width: 132px;
}

.stage-hud-label {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: #5d7186;
}

#stage-hud-value {
  font-size: 0.94rem;
  color: #19324f;
}

.stage-aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(24px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.52;
}

.aurora-a {
  width: 180px;
  height: 180px;
  left: 8%;
  top: 34%;
  background: radial-gradient(circle, rgba(47, 108, 168, 0.66), transparent 70%);
  animation: aurora-drift-a 8s ease-in-out infinite;
}

.aurora-b {
  width: 170px;
  height: 170px;
  right: 10%;
  top: 26%;
  background: radial-gradient(circle, rgba(183, 138, 42, 0.62), transparent 70%);
  animation: aurora-drift-b 9s ease-in-out infinite;
}

.aurora-c {
  width: 150px;
  height: 150px;
  left: 40%;
  bottom: 16%;
  background: radial-gradient(circle, rgba(191, 31, 36, 0.34), transparent 70%);
  animation: aurora-drift-c 7.5s ease-in-out infinite;
}

.stage-core {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
}

.stage-field {
  position: absolute;
  inset: 14px;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.sf {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2f6ca8;
  opacity: 0;
  box-shadow: 0 0 10px rgba(47, 108, 168, 0.45);
  animation: sf-float 6.8s linear infinite;
}

.sf2, .sf5, .sf7 {
  background: #b78a2a;
  box-shadow: 0 0 10px rgba(183, 138, 42, 0.42);
}

.sf1 { left: 10%; top: 68%; animation-delay: -0.3s; }
.sf2 { left: 22%; top: 36%; animation-delay: -1.2s; }
.sf3 { left: 34%; top: 62%; animation-delay: -2.0s; }
.sf4 { left: 48%; top: 28%; animation-delay: -2.8s; }
.sf5 { left: 58%; top: 72%; animation-delay: -3.6s; }
.sf6 { left: 70%; top: 42%; animation-delay: -4.4s; }
.sf7 { left: 82%; top: 62%; animation-delay: -5.2s; }
.sf8 { left: 90%; top: 34%; animation-delay: -6.0s; }

.core-ripple {
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 1px solid rgba(35, 73, 116, 0.2);
  opacity: 0;
  transform: scale(0.85);
  animation: ripple-ping 4.8s ease-out infinite;
}

.ripple-b {
  animation-delay: -1.6s;
  border-color: rgba(183, 138, 42, 0.22);
}

.ripple-c {
  animation-delay: -3.2s;
  border-color: rgba(191, 31, 36, 0.2);
}

.core-scan {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg,
      rgba(47, 108, 168, 0) 0deg,
      rgba(47, 108, 168, 0.28) 26deg,
      rgba(47, 108, 168, 0) 72deg,
      rgba(183, 138, 42, 0) 180deg,
      rgba(183, 138, 42, 0.2) 206deg,
      rgba(183, 138, 42, 0) 250deg,
      rgba(47, 108, 168, 0) 360deg);
  filter: blur(0.2px);
  animation: core-scan-spin 10s linear infinite;
  opacity: 0.84;
}

.stage-core-inner {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 1px solid rgba(191, 31, 36, 0.42);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.98), rgba(255, 241, 230, 0.94));
  display: grid;
  place-items: center;
  text-align: center;
  box-shadow: inset 0 0 22px rgba(191, 31, 36, 0.08);
  position: relative;
  animation: core-breath 4.2s ease-in-out infinite;
}

.stage-core-inner::before,
.stage-core-inner::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(191, 31, 36, 0.28);
  animation: core-ring 3.4s ease-out infinite;
}

.stage-core-inner::after {
  inset: -16px;
  border-color: rgba(35, 73, 116, 0.3);
  animation-delay: -1.7s;
}

.stage-core-inner strong {
  display: block;
  color: var(--ink-0);
  font-size: 1.05rem;
}

.stage-core-inner span {
  color: var(--ink-2);
  font-weight: 700;
  font-size: 0.82rem;
}

.stage-node {
  position: absolute;
  min-width: 108px;
  padding: 9px 12px;
  border-radius: 999px;
  text-align: center;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink-1);
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(24, 37, 54, 0.12);
  animation: node-float 5s ease-in-out infinite, node-glow 3.2s ease-in-out infinite;
  z-index: 3;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.node-a {
  top: 38px;
  left: 40px;
  border-color: rgba(47, 108, 168, 0.42);
  box-shadow: 0 8px 18px rgba(47, 108, 168, 0.22);
}

.node-b {
  top: 38px;
  right: 40px;
  animation-delay: -1.2s;
  border-color: rgba(183, 138, 42, 0.45);
  box-shadow: 0 8px 18px rgba(183, 138, 42, 0.2);
}

.node-c {
  bottom: 38px;
  left: 40px;
  animation-delay: -2.1s;
  border-color: rgba(183, 138, 42, 0.45);
  box-shadow: 0 8px 18px rgba(183, 138, 42, 0.2);
}

.node-d {
  bottom: 38px;
  right: 40px;
  animation-delay: -3.1s;
  border-color: rgba(47, 108, 168, 0.42);
  box-shadow: 0 8px 18px rgba(47, 108, 168, 0.22);
}

.stage-node:hover {
  transform: translateY(-3px) scale(1.03);
  background: rgba(255, 255, 255, 1);
}

@keyframes node-float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes node-glow {
  0%,
  100% {
    box-shadow: 0 8px 18px rgba(24, 37, 54, 0.12);
  }
  50% {
    box-shadow: 0 10px 22px rgba(35, 73, 116, 0.24), 0 0 0 4px rgba(35, 73, 116, 0.05);
  }
}

@keyframes core-breath {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

@keyframes core-ring {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  20% {
    opacity: 0.65;
  }
  100% {
    opacity: 0;
    transform: scale(1.16);
  }
}

@keyframes core-scan-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes ripple-ping {
  0% {
    opacity: 0;
    transform: scale(0.86);
  }
  18% {
    opacity: 0.45;
  }
  100% {
    opacity: 0;
    transform: scale(1.16);
  }
}

@keyframes stage-scan {
  from { background-position: 0 0; }
  to { background-position: 0 180px; }
}

@keyframes aurora-drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(14px, -10px) scale(1.08); }
}

@keyframes aurora-drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-12px, 12px) scale(1.05); }
}

@keyframes aurora-drift-c {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-8px, -12px) scale(1.1); }
}

.stage-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.network-hud {
  transform-origin: 50% 50%;
  animation: network-spin 16s linear infinite;
}

.network-hud circle {
  fill: none;
  stroke: rgba(35, 73, 116, 0.2);
  stroke-width: 0.28;
}

.network-hud circle:nth-child(2) {
  stroke: rgba(191, 31, 36, 0.2);
  stroke-dasharray: 1.2 1.6;
}

.network-hud circle:nth-child(3) {
  stroke: rgba(191, 141, 49, 0.24);
  stroke-dasharray: 0.9 2.1;
}

@keyframes network-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.network-links path {
  fill: none;
  stroke-width: 0.56;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.network-links path[id^="p-"] {
  stroke: rgba(35, 73, 116, 0.16);
}

.network-links .link-blue {
  stroke: url(#linkA);
  stroke-dasharray: 1.9 2.9;
  animation: link-dash 2.3s linear infinite, link-breathe 2.2s ease-in-out infinite;
  stroke-width: 0.72;
}

.network-links .link-gold {
  stroke: url(#linkB);
  stroke-dasharray: 1.9 2.9;
  animation: link-dash 2.3s linear infinite, link-breathe 2.2s ease-in-out infinite;
  animation-delay: -0.8s;
  stroke-width: 0.72;
}

.hero-stage[data-channel="ideas"] .link-ideas,
.hero-stage[data-channel="auditoria"] .link-auditoria {
  stroke-width: 1.05;
  filter: drop-shadow(0 0 3px rgba(47, 108, 168, 0.34));
}

.hero-stage[data-channel="debate"] .link-debate,
.hero-stage[data-channel="voto"] .link-voto {
  stroke-width: 1.05;
  filter: drop-shadow(0 0 3px rgba(183, 138, 42, 0.34));
}

.hero-stage[data-channel="ideas"] .pulse-ideas,
.hero-stage[data-channel="auditoria"] .pulse-auditoria,
.hero-stage[data-channel="debate"] .pulse-debate,
.hero-stage[data-channel="voto"] .pulse-voto {
  transform-origin: center;
  filter: drop-shadow(0 0 4px rgba(191, 31, 36, 0.32));
}

.hero-stage[data-channel="ideas"] .end-ideas,
.hero-stage[data-channel="debate"] .end-debate,
.hero-stage[data-channel="voto"] .end-voto,
.hero-stage[data-channel="auditoria"] .end-auditoria {
  transform: scale(1.45);
  opacity: 1;
}

.hero-stage[data-channel="ideas"] #stage-hud-value,
.hero-stage[data-channel="auditoria"] #stage-hud-value {
  color: #1f4f85;
}

.hero-stage[data-channel="debate"] #stage-hud-value,
.hero-stage[data-channel="voto"] #stage-hud-value {
  color: #9b6a16;
}

.network-links .pulse {
  opacity: 0;
  filter: drop-shadow(0 0 2px rgba(44, 96, 153, 0.34));
}

.network-links .pulse-out {
  opacity: 0;
  transform-origin: center;
  filter: drop-shadow(0 0 2px rgba(44, 96, 153, 0.28));
}

.network-links .pulse-blue {
  fill: #2f6ca8;
}

.network-links .pulse-gold {
  fill: #b78a2a;
  filter: drop-shadow(0 0 2px rgba(183, 138, 42, 0.3));
}

.network-endpoints .end {
  transform-origin: center;
  animation: endpoint-pulse 2.1s ease-in-out infinite;
}

.network-endpoints .end.blue {
  fill: #2f6ca8;
  filter: drop-shadow(0 0 2px rgba(47, 108, 168, 0.3));
}

.network-endpoints .end.gold {
  fill: #b78a2a;
  filter: drop-shadow(0 0 2px rgba(183, 138, 42, 0.3));
}

.network-endpoints .e2 { animation-delay: -0.7s; }
.network-endpoints .e3 { animation-delay: -1.4s; }
.network-endpoints .e4 { animation-delay: -2.1s; }

.hero-stage.stage-hot {
  box-shadow: 0 18px 34px rgba(35, 73, 116, 0.17), inset 0 0 0 1px rgba(191, 141, 49, 0.18);
}

.hero-stage.stage-hot .network-links .link-blue,
.hero-stage.stage-hot .network-links .link-gold {
  animation-duration: 1.2s, 1.4s;
}

.hero-stage.stage-hot .stage-cursor {
  opacity: 1;
}

/* Hero stage v2 */
.hero-stage {
  background:
    radial-gradient(280px 190px at 22% 78%, rgba(47, 108, 168, 0.22), transparent 72%),
    radial-gradient(280px 190px at 78% 24%, rgba(195, 142, 37, 0.24), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(251, 245, 233, 0.93));
}

.stage-backdrop {
  position: absolute;
  inset: 8%;
  border-radius: 18px;
  background:
    radial-gradient(220px 150px at var(--sx, 50%) var(--sy, 50%), rgba(47, 108, 168, 0.16), transparent 68%),
    radial-gradient(200px 140px at calc(100% - var(--sx, 50%)) calc(100% - var(--sy, 50%)), rgba(195, 142, 37, 0.16), transparent 70%);
  border: 1px dashed rgba(35, 73, 116, 0.16);
  z-index: 0;
  transition: background 0.2s ease;
}

.stage-aura {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: multiply;
}

.stage-aura.aura-blue {
  background: radial-gradient(circle, rgba(47, 108, 168, 0.28), rgba(47, 108, 168, 0));
  left: 10%;
  top: 42%;
  animation: aura-drift-blue 8.5s ease-in-out infinite;
}

.stage-aura.aura-gold {
  background: radial-gradient(circle, rgba(195, 142, 37, 0.3), rgba(195, 142, 37, 0));
  right: 8%;
  top: 16%;
  animation: aura-drift-gold 9.5s ease-in-out infinite;
}

.stage-diagram {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.diagram-rings circle {
  fill: none;
  stroke: rgba(35, 73, 116, 0.2);
  stroke-width: 0.26;
}

.diagram-rings circle:nth-child(2) {
  stroke: rgba(195, 142, 37, 0.26);
  stroke-dasharray: 1.2 1.6;
  animation: ring-rotate-a 10s linear infinite;
  transform-origin: 50% 50%;
}

.diagram-rings circle:nth-child(3) {
  stroke: rgba(191, 31, 36, 0.24);
  stroke-dasharray: 0.9 1.8;
  animation: ring-rotate-b 12s linear infinite;
  transform-origin: 50% 50%;
}

.diagram-arcs path {
  fill: none;
  stroke-width: 0.95;
  stroke-linecap: round;
}

.diagram-arcs .arc-blue {
  stroke: url(#softBlueArc);
  animation: arc-sweep 2.2s ease-in-out infinite;
}

.diagram-arcs .arc-gold {
  stroke: url(#softGoldArc);
  animation: arc-sweep 2.2s ease-in-out infinite;
  animation-delay: -1.1s;
}

.diagram-lines path[id^="line-"] {
  fill: none;
  stroke: rgba(35, 73, 116, 0.16);
  stroke-width: 0.34;
}

.diagram-lines .line {
  fill: none;
  stroke-width: 0.72;
  stroke-linecap: round;
  stroke-dasharray: 2.2 3.3;
  animation: line-flow 2s linear infinite, line-breathe 2.4s ease-in-out infinite;
}

.diagram-lines .line.blue {
  stroke: url(#pipeBlue);
}

.diagram-lines .line.gold {
  stroke: url(#pipeGold);
  animation-delay: -0.7s;
}

.diagram-packets .packet {
  opacity: 0.95;
}

.diagram-packets .packet.blue {
  fill: #2f6ca8;
  filter: drop-shadow(0 0 3px rgba(47, 108, 168, 0.35));
}

.diagram-packets .packet.gold {
  fill: #c38e25;
  filter: drop-shadow(0 0 3px rgba(195, 142, 37, 0.35));
}

.diagram-packets .packet.soft {
  opacity: 0.62;
}

.diagram-sparks circle {
  fill: rgba(35, 73, 116, 0.35);
  animation: spark-blink 2.4s ease-in-out infinite;
}

.diagram-sparks circle:nth-child(2) { animation-delay: -0.4s; }
.diagram-sparks circle:nth-child(3) { animation-delay: -0.9s; }
.diagram-sparks circle:nth-child(4) { animation-delay: -1.3s; }
.diagram-sparks circle:nth-child(5) { animation-delay: -1.8s; }

.hero-stage .stage-core {
  z-index: 2;
}

.hero-stage .stage-core-inner {
  width: 172px;
  height: 172px;
  border-color: rgba(191, 31, 36, 0.44);
  box-shadow:
    inset 0 0 22px rgba(191, 31, 36, 0.12),
    0 0 0 10px rgba(35, 73, 116, 0.04),
    0 0 0 18px rgba(195, 142, 37, 0.04);
}

.hero-stage .stage-core-inner strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.hero-stage .stage-core-inner span {
  font-size: 0.84rem;
}

.hero-stage .stage-node {
  z-index: 3;
  min-width: 144px;
  padding: 10px 14px;
  border-radius: 18px;
  display: grid;
  gap: 1px;
  text-align: left;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 243, 236, 0.9));
  box-shadow: 0 12px 22px rgba(21, 38, 60, 0.12);
}

.hero-stage .stage-node strong {
  font-size: 1.02rem;
  line-height: 1.1;
}

.hero-stage .stage-node span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-2);
}

.hero-stage .node-a { top: 34px; left: 36px; }
.hero-stage .node-b { top: 34px; right: 36px; }
.hero-stage .node-c { bottom: 34px; left: 36px; }
.hero-stage .node-d { bottom: 34px; right: 36px; }

.stage-status {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(88%, 360px);
  z-index: 4;
  pointer-events: none;
}

.status-pill {
  flex: 1 1 0;
  border-radius: 999px;
  border: 1px solid rgba(35, 73, 116, 0.22);
  background: rgba(255, 255, 255, 0.8);
  padding: 4px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  box-shadow: 0 8px 16px rgba(35, 73, 116, 0.12);
  animation: status-pulse 2.8s ease-in-out infinite;
}

.status-pill:nth-child(2) { animation-delay: -0.5s; }
.status-pill:nth-child(3) { animation-delay: -1s; }
.status-pill:nth-child(4) { animation-delay: -1.5s; }

.status-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(180deg, #2f6ca8, #c38e25);
  box-shadow: 0 0 8px rgba(47, 108, 168, 0.45);
}

.status-pill span {
  font-size: 0.64rem;
  font-weight: 800;
  color: var(--ink-1);
  letter-spacing: 0.02em;
}

.status-pill strong {
  font-size: 0.68rem;
  color: var(--ink-0);
}

.hero-stage:hover {
  box-shadow: 0 18px 32px rgba(35, 73, 116, 0.2);
}

.hero-stage:hover .diagram-lines .line {
  animation-duration: 1.2s, 1.3s;
  stroke-width: 0.9;
}

.hero-stage:hover .diagram-packets .packet {
  filter: drop-shadow(0 0 4px rgba(191, 31, 36, 0.36));
}

.hero-stage:hover .stage-node {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 26px rgba(21, 38, 60, 0.2);
}

@keyframes ring-rotate-a {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes ring-rotate-b {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes line-flow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -20; }
}

@keyframes line-breathe {
  0%, 100% { opacity: 0.74; }
  50% { opacity: 1; }
}

@keyframes pulse-bars {
  0%, 100% { transform: scaleX(0.72); opacity: 0.45; }
  50% { transform: scaleX(1); opacity: 1; }
}

@keyframes aura-drift-blue {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.42; }
  50% { transform: translate3d(16px, -10px, 0) scale(1.1); opacity: 0.58; }
}

@keyframes aura-drift-gold {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.46; }
  50% { transform: translate3d(-14px, 12px, 0) scale(1.08); opacity: 0.6; }
}

@keyframes arc-sweep {
  0%, 100% { stroke-opacity: 0.36; stroke-dasharray: 2 7; }
  50% { stroke-opacity: 1; stroke-dasharray: 4 5; }
}

@keyframes spark-blink {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 0.95; transform: scale(1.3); }
}

@keyframes status-pulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.hero-stage.stage-hot .pulse {
  filter: drop-shadow(0 0 7px rgba(47, 108, 168, 0.62));
}

.hero-stage.stage-hot .stage-node {
  box-shadow: 0 14px 24px rgba(35, 73, 116, 0.26), 0 0 0 6px rgba(35, 73, 116, 0.07);
}

.hero-stage.stage-hot .stage-backdrop {
  background:
    radial-gradient(220px 150px at var(--sx, 50%) var(--sy, 50%), rgba(47, 108, 168, 0.22), transparent 64%),
    radial-gradient(220px 150px at calc(100% - var(--sx, 50%)) calc(100% - var(--sy, 50%)), rgba(195, 142, 37, 0.24), transparent 66%);
}

.hero-stage.stage-hot .diagram-lines .line {
  stroke-width: 1.02;
}

.hero-stage.stage-hot .stage-aura.aura-blue {
  opacity: 0.62;
}

.hero-stage.stage-hot .stage-aura.aura-gold {
  opacity: 0.66;
}

/* Hero stage flow v3 */
.hero-stage--flow {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 12px;
  padding: 14px;
  overflow: hidden;
  height: 470px;
  background:
    radial-gradient(460px 260px at 18% 82%, rgba(47, 108, 168, 0.12), transparent 72%),
    radial-gradient(420px 240px at 84% 20%, rgba(195, 142, 37, 0.16), transparent 74%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 244, 233, 0.9));
}

.hero-stage--flow .stage-flow-backdrop {
  position: absolute;
  inset: 14px;
  border-radius: 18px;
  border: 1px dashed rgba(35, 73, 116, 0.18);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0)),
    radial-gradient(280px 180px at var(--sx, 40%) var(--sy, 46%), rgba(47, 108, 168, 0.14), transparent 72%),
    radial-gradient(280px 180px at calc(100% - var(--sx, 40%)) calc(100% - var(--sy, 46%)), rgba(195, 142, 37, 0.16), transparent 74%);
  transition: background 0.25s ease;
  pointer-events: none;
}

.hero-stage--flow .stage-flow-svg {
  position: absolute;
  inset: 22px;
  width: calc(100% - 44px);
  height: calc(100% - 44px);
  pointer-events: none;
  z-index: 1;
}

.hero-stage--flow .flow-link {
  fill: none;
  stroke-width: 0.46;
  stroke-linecap: round;
  stroke-dasharray: 1.8 2.6;
  animation: flow-line 1.8s linear infinite;
}

.hero-stage--flow .flow-link.blue {
  stroke: url(#flowPathA);
}

.hero-stage--flow .flow-link.gold {
  stroke: url(#flowPathB);
  animation-delay: -0.7s;
}

.hero-stage--flow .flow-packet {
  opacity: 0.95;
}

.hero-stage--flow .flow-packet.blue {
  fill: #2f6ca8;
  filter: drop-shadow(0 0 6px rgba(47, 108, 168, 0.48));
}

.hero-stage--flow .flow-packet.gold {
  fill: #c38e25;
  filter: drop-shadow(0 0 6px rgba(195, 142, 37, 0.48));
}

.hero-stage--flow .flow-col {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(35, 73, 116, 0.16);
  border-radius: 16px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.66));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  min-height: 0;
  overflow: hidden;
}

.hero-stage--flow .flow-col h4 {
  margin: 0 0 10px;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-1);
}

.hero-stage--flow .flow-col-left,
.hero-stage--flow .flow-col-right {
  display: grid;
  align-content: start;
  gap: 9px;
}

.hero-stage--flow .flow-card {
  border: 1px solid rgba(35, 73, 116, 0.18);
  border-radius: 12px;
  padding: 10px 11px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 16px rgba(35, 73, 116, 0.11);
  animation: flow-card-float 3.8s ease-in-out infinite;
}

.hero-stage--flow .flow-card strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.1;
  margin-bottom: 2px;
  color: var(--ink-0);
}

.hero-stage--flow .flow-card span {
  font-size: 0.78rem;
  color: var(--ink-2);
  font-weight: 700;
}

.hero-stage--flow .flow-card.c2 { animation-delay: -1.2s; }
.hero-stage--flow .flow-card.c3 { animation-delay: -2.4s; }

.hero-stage--flow .flow-col-center {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-content: start;
}

.hero-stage--flow .flow-core {
  position: relative;
  min-height: 270px;
  border-radius: 16px;
  border: 1px solid rgba(35, 73, 116, 0.16);
  background:
    radial-gradient(170px 120px at 50% 50%, rgba(191, 31, 36, 0.08), transparent 76%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(246, 248, 251, 0.82));
  overflow: hidden;
}

.hero-stage--flow .flow-core-ring {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  border: 2px solid rgba(191, 31, 36, 0.28);
  box-shadow:
    0 0 0 14px rgba(47, 108, 168, 0.08),
    0 0 0 28px rgba(195, 142, 37, 0.08);
  animation: flow-ring-pulse 3s ease-in-out infinite;
}

.hero-stage--flow .flow-core-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(29, 50, 76, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(29, 50, 76, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.26;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.05) 78%);
  animation: flow-grid-shift 9s linear infinite;
}

.hero-stage--flow .flow-core-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: min(85%, 220px);
}

.hero-stage--flow .flow-core-label strong {
  display: block;
  font-size: 1.42rem;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink-0);
  margin-bottom: 6px;
}

.hero-stage--flow .flow-core-label span {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-2);
  font-weight: 700;
}

.hero-stage--flow .flow-bars {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.hero-stage--flow .flow-bars span {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(47, 108, 168, 0.2), rgba(191, 31, 36, 0.42), rgba(195, 142, 37, 0.4));
  animation: flow-bars 1.9s ease-in-out infinite;
}

.hero-stage--flow .flow-bars span:nth-child(2) { animation-delay: -0.3s; }
.hero-stage--flow .flow-bars span:nth-child(3) { animation-delay: -0.6s; }
.hero-stage--flow .flow-bars span:nth-child(4) { animation-delay: -0.9s; }
.hero-stage--flow .flow-bars span:nth-child(5) { animation-delay: -1.2s; }

.hero-stage--flow .flow-log {
  border: 1px solid rgba(35, 73, 116, 0.16);
  border-radius: 12px;
  padding: 10px;
  height: 230px;
  background: rgba(255, 255, 255, 0.84);
  overflow: hidden;
}

.hero-stage--flow .flow-log-track {
  display: grid;
  gap: 8px;
  animation: flow-log-scroll 10s linear infinite;
}

.hero-stage--flow .flow-log p {
  margin: 0;
  border: 1px solid rgba(35, 73, 116, 0.16);
  border-radius: 9px;
  padding: 7px 8px;
  font-size: 0.77rem;
  color: var(--ink-1);
  background: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.hero-stage--flow .flow-log b {
  color: #1f4f83;
}

.hero-stage--flow .flow-chips {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-stage--flow .flow-chips span {
  border: 1px solid rgba(35, 73, 116, 0.18);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.72rem;
  color: var(--ink-1);
  background: rgba(255, 255, 255, 0.9);
  font-weight: 800;
}

.hero-stage--flow:hover {
  box-shadow: 0 22px 36px rgba(35, 73, 116, 0.18);
}

.hero-stage--flow:hover .flow-card {
  box-shadow: 0 12px 20px rgba(35, 73, 116, 0.16);
}

.hero-stage--flow:hover .flow-link {
  animation-duration: 1s;
  stroke-width: 0.6;
}

.hero-stage--flow.stage-hot .stage-flow-backdrop {
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0)),
    radial-gradient(280px 180px at var(--sx, 40%) var(--sy, 46%), rgba(47, 108, 168, 0.2), transparent 68%),
    radial-gradient(280px 180px at calc(100% - var(--sx, 40%)) calc(100% - var(--sy, 46%)), rgba(195, 142, 37, 0.22), transparent 70%);
}

.hero-stage--flow.stage-hot .flow-core-ring {
  box-shadow:
    0 0 0 16px rgba(47, 108, 168, 0.1),
    0 0 0 34px rgba(195, 142, 37, 0.1);
}

@keyframes flow-line {
  from { stroke-dashoffset: 0; opacity: 0.75; }
  to { stroke-dashoffset: -16; opacity: 1; }
}

@keyframes flow-card-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes flow-ring-pulse {
  0%, 100% { transform: scale(0.98); opacity: 0.8; }
  50% { transform: scale(1.02); opacity: 1; }
}

@keyframes flow-grid-shift {
  from { transform: translateX(0) translateY(0); }
  to { transform: translateX(22px) translateY(22px); }
}

@keyframes flow-bars {
  0%, 100% { transform: scaleX(0.7); opacity: 0.5; }
  50% { transform: scaleX(1); opacity: 1; }
}

@keyframes flow-log-scroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-48%); }
}

/* Hero stage matrix v4 */
.hero-stage--matrix {
  position: relative;
  height: 470px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 1.05fr 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  overflow: hidden;
  background:
    radial-gradient(360px 220px at 18% 18%, rgba(47, 108, 168, 0.14), transparent 70%),
    radial-gradient(360px 220px at 84% 82%, rgba(195, 142, 37, 0.16), transparent 72%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.94), rgba(248, 242, 232, 0.9));
}

.hero-stage--matrix .stage-matrix-bg {
  position: absolute;
  inset: 14px;
  border-radius: 18px;
  border: 1px dashed rgba(35, 73, 116, 0.18);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0)),
    radial-gradient(250px 170px at var(--sx, 50%) var(--sy, 50%), rgba(47, 108, 168, 0.16), transparent 72%),
    radial-gradient(250px 170px at calc(100% - var(--sx, 50%)) calc(100% - var(--sy, 50%)), rgba(195, 142, 37, 0.18), transparent 74%);
  pointer-events: none;
  transition: background 0.24s ease;
}

.hero-stage--matrix .matrix-topbar {
  grid-column: 1 / -1;
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 8px;
  border: 1px solid rgba(35, 73, 116, 0.2);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
  color: var(--ink-1);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-stage--matrix .matrix-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, #2f6ca8, #c38e25);
  box-shadow: 0 0 10px rgba(47, 108, 168, 0.55);
  animation: matrix-live 1.6s ease-in-out infinite;
}

.hero-stage--matrix .stage-matrix-svg {
  position: absolute;
  inset: 24px;
  width: calc(100% - 48px);
  height: calc(100% - 48px);
  pointer-events: none;
  z-index: 1;
}

.hero-stage--matrix .mx-link {
  fill: none;
  stroke-width: 0.52;
  stroke-linecap: round;
  stroke-dasharray: 2.2 2.8;
  animation: matrix-link-flow 1.8s linear infinite;
}

.hero-stage--matrix .mx-link.blue {
  stroke: url(#matrixBlue);
}

.hero-stage--matrix .mx-link.gold {
  stroke: url(#matrixGold);
  animation-delay: -0.8s;
}

.hero-stage--matrix .mx-packet.blue {
  fill: #2f6ca8;
  filter: drop-shadow(0 0 6px rgba(47, 108, 168, 0.48));
}

.hero-stage--matrix .mx-packet.gold {
  fill: #c38e25;
  filter: drop-shadow(0 0 6px rgba(195, 142, 37, 0.48));
}

.hero-stage--matrix .matrix-col {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(35, 73, 116, 0.16);
  border-radius: 16px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.62));
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 0;
  overflow: hidden;
}

.hero-stage--matrix .matrix-card,
.hero-stage--matrix .matrix-log {
  border: 1px solid rgba(35, 73, 116, 0.18);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.9);
  padding: 9px 10px;
  box-shadow: 0 8px 16px rgba(35, 73, 116, 0.1);
}

.hero-stage--matrix .matrix-card strong {
  display: block;
  font-size: 0.99rem;
  line-height: 1.1;
  color: var(--ink-0);
  margin-bottom: 3px;
}

.hero-stage--matrix .matrix-card span {
  font-size: 0.77rem;
  color: var(--ink-2);
  font-weight: 700;
}

.hero-stage--matrix .matrix-log {
  font-size: 0.79rem;
  color: var(--ink-1);
  font-weight: 700;
  animation: matrix-log-bob 4s ease-in-out infinite;
}

.hero-stage--matrix .matrix-col-right .matrix-log:nth-child(2) { animation-delay: -1.2s; }
.hero-stage--matrix .matrix-col-right .matrix-log:nth-child(3) { animation-delay: -2.4s; }

.hero-stage--matrix .matrix-log b {
  color: #1f4f83;
}

.hero-stage--matrix .matrix-core {
  position: relative;
  z-index: 2;
  place-self: stretch;
  border: 1px solid rgba(35, 73, 116, 0.16);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(246, 248, 251, 0.74));
  overflow: hidden;
  transform: none !important;
}

.hero-stage--matrix .matrix-core-shell {
  position: absolute;
  inset: 12px;
  display: grid;
  place-items: center;
}

.hero-stage--matrix .matrix-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(35, 73, 116, 0.14);
}

.hero-stage--matrix .matrix-ring.r1 {
  width: 210px;
  height: 210px;
  border-color: rgba(191, 31, 36, 0.28);
  animation: matrix-ring-1 7s linear infinite;
}

.hero-stage--matrix .matrix-ring.r2 {
  width: 250px;
  height: 250px;
  border-color: rgba(47, 108, 168, 0.2);
  border-style: dashed;
  animation: matrix-ring-2 10s linear infinite;
}

.hero-stage--matrix .matrix-ring.r3 {
  width: 292px;
  height: 292px;
  border-color: rgba(195, 142, 37, 0.2);
  border-style: dashed;
  animation: matrix-ring-3 12s linear infinite;
}

.hero-stage--matrix .matrix-core-text {
  text-align: center;
  width: min(84%, 220px);
}

.hero-stage--matrix .matrix-core-text strong {
  display: block;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.04;
  color: var(--ink-0);
  margin-bottom: 6px;
}

.hero-stage--matrix .matrix-core-text span {
  font-size: 0.83rem;
  color: var(--ink-2);
  font-weight: 700;
}

.hero-stage--matrix .matrix-footer {
  grid-column: 1 / -1;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.hero-stage--matrix .matrix-footer div {
  border: 1px solid rgba(35, 73, 116, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  padding: 6px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--ink-1);
  font-weight: 800;
}

.hero-stage--matrix .matrix-footer strong {
  color: var(--ink-0);
}

.hero-stage--matrix:hover .mx-link {
  animation-duration: 1.05s;
  stroke-width: 0.66;
}

.hero-stage--matrix:hover .matrix-card,
.hero-stage--matrix:hover .matrix-log {
  transform: translateY(-2px);
}

.hero-stage--matrix.stage-hot .stage-matrix-bg {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0)),
    radial-gradient(260px 180px at var(--sx, 50%) var(--sy, 50%), rgba(47, 108, 168, 0.22), transparent 68%),
    radial-gradient(260px 180px at calc(100% - var(--sx, 50%)) calc(100% - var(--sy, 50%)), rgba(195, 142, 37, 0.24), transparent 70%);
}

@keyframes matrix-live {
  0%, 100% { opacity: 0.45; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes matrix-link-flow {
  from { stroke-dashoffset: 0; opacity: 0.76; }
  to { stroke-dashoffset: -16; opacity: 1; }
}

@keyframes matrix-log-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes matrix-ring-1 {
  from { transform: rotate(0deg) scale(0.98); }
  to { transform: rotate(360deg) scale(1.02); }
}

@keyframes matrix-ring-2 {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes matrix-ring-3 {
  0%, 100% { transform: rotate(0deg); opacity: 0.65; }
  50% { transform: rotate(180deg); opacity: 1; }
}

/* Hero stage pulse v5 */
.hero-stage--pulse {
  position: relative;
  height: 470px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  grid-template-rows: 1fr auto;
  gap: 12px;
  overflow: hidden;
  background:
    radial-gradient(360px 220px at 16% 20%, rgba(47, 108, 168, 0.16), transparent 72%),
    radial-gradient(360px 220px at 86% 84%, rgba(195, 142, 37, 0.18), transparent 74%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 242, 233, 0.9));
}

.hero-stage--pulse .pulse-bg {
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(35, 73, 116, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(260px 180px at var(--sx, 50%) var(--sy, 50%), rgba(47, 108, 168, 0.14), transparent 72%),
    radial-gradient(260px 180px at calc(100% - var(--sx, 50%)) calc(100% - var(--sy, 50%)), rgba(195, 142, 37, 0.17), transparent 74%);
  transition: background 0.22s ease;
  pointer-events: none;
}

.hero-stage--pulse .pulse-svg {
  position: absolute;
  inset: 24px;
  width: calc(100% - 48px);
  height: calc(100% - 48px);
  pointer-events: none;
  z-index: 1;
}

.hero-stage--pulse .pulse-link {
  fill: none;
  stroke-width: 0.52;
  stroke-linecap: round;
  stroke-dasharray: 2.1 2.8;
  animation: pulse-link-flow 1.8s linear infinite;
}

.hero-stage--pulse .pulse-link.blue { stroke: url(#pulseBlue); }
.hero-stage--pulse .pulse-link.gold { stroke: url(#pulseGold); animation-delay: -0.9s; }

.hero-stage--pulse .pulse-packet.blue {
  fill: #2f6ca8;
  filter: drop-shadow(0 0 6px rgba(47, 108, 168, 0.5));
}

.hero-stage--pulse .pulse-packet.gold {
  fill: #c38e25;
  filter: drop-shadow(0 0 6px rgba(195, 142, 37, 0.5));
}

.hero-stage--pulse .pulse-lane {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(35, 73, 116, 0.16);
  border-radius: 16px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.87), rgba(255, 255, 255, 0.64));
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 0;
  overflow: hidden;
}

.hero-stage--pulse .pulse-lane span {
  border: 1px solid rgba(35, 73, 116, 0.17);
  border-radius: 11px;
  padding: 8px 10px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ink-1);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 16px rgba(35, 73, 116, 0.1);
  animation: pulse-lane-float 3.8s ease-in-out infinite;
}

.hero-stage--pulse .pulse-lane span:nth-child(2) { animation-delay: -0.8s; }
.hero-stage--pulse .pulse-lane span:nth-child(3) { animation-delay: -1.6s; }
.hero-stage--pulse .pulse-lane span:nth-child(4) { animation-delay: -2.4s; }

.hero-stage--pulse .pulse-hub {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(35, 73, 116, 0.17);
  border-radius: 16px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(170px 130px at 50% 50%, rgba(191, 31, 36, 0.09), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 248, 251, 0.74));
}

.hero-stage--pulse .hub-radial {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(35, 73, 116, 0.16);
}

.hero-stage--pulse .hub-radial.h1 {
  width: 210px;
  height: 210px;
  border-color: rgba(191, 31, 36, 0.3);
  animation: pulse-ring-a 8s linear infinite;
}

.hero-stage--pulse .hub-radial.h2 {
  width: 250px;
  height: 250px;
  border-color: rgba(47, 108, 168, 0.22);
  border-style: dashed;
  animation: pulse-ring-b 11s linear infinite;
}

.hero-stage--pulse .hub-radial.h3 {
  width: 290px;
  height: 290px;
  border-color: rgba(195, 142, 37, 0.22);
  border-style: dashed;
  animation: pulse-ring-c 13s linear infinite;
}

.hero-stage--pulse .hub-core {
  text-align: center;
  width: min(82%, 240px);
}

.hero-stage--pulse .hub-core strong {
  display: block;
  font-size: 1.48rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink-0);
  margin-bottom: 6px;
}

.hero-stage--pulse .hub-core span {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-2);
  font-weight: 700;
}

.hero-stage--pulse .pulse-bottom {
  grid-column: 1 / -1;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(35, 73, 116, 0.18);
  border-radius: 14px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.85);
}

.hero-stage--pulse .pulse-wave {
  height: 26px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 5% 50%, rgba(47, 108, 168, 0.5) 0 6px, transparent 7px) 0 0 / 120px 26px repeat-x,
    radial-gradient(circle at 24% 50%, rgba(195, 142, 37, 0.46) 0 6px, transparent 7px) 0 0 / 120px 26px repeat-x;
  opacity: 0.74;
  animation: pulse-wave-loop 2.6s linear infinite;
}

.hero-stage--pulse .pulse-kpis {
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.hero-stage--pulse .pulse-kpis b {
  border: 1px solid rgba(35, 73, 116, 0.19);
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-1);
  font-size: 0.72rem;
  text-align: center;
}

.hero-stage--pulse:hover .pulse-link {
  animation-duration: 1.05s;
  stroke-width: 0.68;
}

.hero-stage--pulse:hover .pulse-lane span {
  box-shadow: 0 12px 20px rgba(35, 73, 116, 0.14);
}

.hero-stage--pulse.stage-hot .pulse-bg {
  background:
    radial-gradient(280px 180px at var(--sx, 50%) var(--sy, 50%), rgba(47, 108, 168, 0.22), transparent 68%),
    radial-gradient(280px 180px at calc(100% - var(--sx, 50%)) calc(100% - var(--sy, 50%)), rgba(195, 142, 37, 0.24), transparent 70%);
}

@keyframes pulse-link-flow {
  from { stroke-dashoffset: 0; opacity: 0.74; }
  to { stroke-dashoffset: -18; opacity: 1; }
}

@keyframes pulse-lane-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes pulse-ring-a {
  from { transform: rotate(0deg) scale(0.98); }
  to { transform: rotate(360deg) scale(1.02); }
}

@keyframes pulse-ring-b {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes pulse-ring-c {
  0%, 100% { transform: rotate(0deg); opacity: 0.65; }
  50% { transform: rotate(180deg); opacity: 1; }
}

@keyframes pulse-wave-loop {
  from { background-position: 0 0, 0 0; }
  to { background-position: -120px 0, -120px 0; }
}

/* Hero stage chamber v6 */
.hero-stage--chamber {
  position: relative;
  height: 470px;
  padding: 14px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  background:
    radial-gradient(380px 220px at 50% 95%, rgba(47, 108, 168, 0.18), transparent 72%),
    radial-gradient(420px 230px at 88% 8%, rgba(195, 142, 37, 0.18), transparent 74%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(249, 243, 233, 0.9));
}

.hero-stage--chamber .chamber-bg {
  position: absolute;
  inset: 14px;
  border-radius: 18px;
  border: 1px dashed rgba(35, 73, 116, 0.18);
  background:
    radial-gradient(250px 170px at var(--sx, 50%) var(--sy, 52%), rgba(47, 108, 168, 0.14), transparent 72%),
    radial-gradient(250px 170px at calc(100% - var(--sx, 50%)) calc(100% - var(--sy, 52%)), rgba(195, 142, 37, 0.16), transparent 74%);
  pointer-events: none;
  transition: background 0.24s ease;
}

.hero-stage--chamber .chamber-head {
  position: relative;
  z-index: 2;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(35, 73, 116, 0.2);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.86);
  font-size: 0.75rem;
  color: var(--ink-1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 800;
}

.hero-stage--chamber .chamber-head i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, #2f6ca8, #c38e25);
  box-shadow: 0 0 10px rgba(47, 108, 168, 0.5);
  animation: chamber-live 1.5s ease-in-out infinite;
}

.hero-stage--chamber .chamber-floor {
  position: relative;
  z-index: 2;
  align-self: stretch;
  display: grid;
  place-items: end center;
  padding: 6px 12px 44px;
}

.hero-stage--chamber .chamber-arc {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-top-left-radius: 999px;
  border-top-right-radius: 999px;
  border: 1px solid rgba(35, 73, 116, 0.16);
  border-bottom: none;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  padding-top: 8px;
}

.hero-stage--chamber .chamber-arc span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(35, 73, 116, 0.2);
  animation: seat-twinkle 2.6s ease-in-out infinite;
}

.hero-stage--chamber .chamber-arc span:nth-child(odd) { animation-delay: -0.5s; }
.hero-stage--chamber .chamber-arc span:nth-child(3n) { animation-delay: -1s; }
.hero-stage--chamber .chamber-arc span:nth-child(4n) { animation-delay: -1.5s; }

.hero-stage--chamber .arc-1 {
  width: 44%;
  height: 34%;
  bottom: 18%;
}

.hero-stage--chamber .arc-2 {
  width: 58%;
  height: 44%;
  bottom: 14%;
}

.hero-stage--chamber .arc-3 {
  width: 72%;
  height: 54%;
  bottom: 9%;
}

.hero-stage--chamber .arc-4 {
  width: 86%;
  height: 64%;
  bottom: 4%;
}

.hero-stage--chamber .arc-1 span { background: rgba(191, 31, 36, 0.38); }
.hero-stage--chamber .arc-2 span { background: rgba(47, 108, 168, 0.34); }
.hero-stage--chamber .arc-3 span { background: rgba(195, 142, 37, 0.36); }
.hero-stage--chamber .arc-4 span { background: rgba(35, 73, 116, 0.3); }

.hero-stage--chamber .chamber-podium {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: min(55%, 300px);
  height: 170px;
}

.hero-stage--chamber .podium-ring {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 1px solid rgba(191, 31, 36, 0.28);
  box-shadow:
    0 0 0 10px rgba(47, 108, 168, 0.08),
    0 0 0 18px rgba(195, 142, 37, 0.08);
  animation: podium-pulse 3.2s ease-in-out infinite;
}

.hero-stage--chamber .podium-core {
  position: absolute;
  inset: 12px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
}

.hero-stage--chamber .podium-core strong {
  display: block;
  font-size: 1.34rem;
  line-height: 1.06;
  color: var(--ink-0);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.hero-stage--chamber .podium-core span {
  font-size: 0.8rem;
  color: var(--ink-2);
  font-weight: 700;
  max-width: 92%;
}

.hero-stage--chamber .chamber-streams {
  position: absolute;
  inset: 22px;
  width: calc(100% - 44px);
  height: calc(100% - 44px);
  pointer-events: none;
  z-index: 1;
}

.hero-stage--chamber .stream-line {
  fill: none;
  stroke-width: 0.58;
  stroke-linecap: round;
  stroke-dasharray: 2.2 2.9;
  animation: stream-drift 1.9s linear infinite;
}

.hero-stage--chamber .stream-line.blue { stroke: url(#streamBlue); }
.hero-stage--chamber .stream-line.gold { stroke: url(#streamGold); animation-delay: -0.8s; }

.hero-stage--chamber .stream-dot.blue {
  fill: #2f6ca8;
  filter: drop-shadow(0 0 6px rgba(47, 108, 168, 0.5));
}

.hero-stage--chamber .stream-dot.gold {
  fill: #c38e25;
  filter: drop-shadow(0 0 6px rgba(195, 142, 37, 0.5));
}

.hero-stage--chamber .chamber-foot {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.hero-stage--chamber .foot-pill {
  border: 1px solid rgba(35, 73, 116, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  color: var(--ink-1);
  font-weight: 800;
}

.hero-stage--chamber .foot-pill b {
  color: var(--ink-0);
}

.hero-stage--chamber:hover .stream-line {
  animation-duration: 1.05s;
  stroke-width: 0.7;
}

.hero-stage--chamber:hover .chamber-arc span {
  transform: scale(1.15);
}

.hero-stage--chamber.stage-hot .chamber-bg {
  background:
    radial-gradient(280px 180px at var(--sx, 50%) var(--sy, 52%), rgba(47, 108, 168, 0.2), transparent 68%),
    radial-gradient(280px 180px at calc(100% - var(--sx, 50%)) calc(100% - var(--sy, 52%)), rgba(195, 142, 37, 0.22), transparent 70%);
}

@keyframes chamber-live {
  0%, 100% { opacity: 0.5; transform: scale(0.86); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes seat-twinkle {
  0%, 100% { opacity: 0.36; transform: translateY(0) scale(0.86); }
  50% { opacity: 1; transform: translateY(-2px) scale(1.12); }
}

@keyframes podium-pulse {
  0%, 100% { transform: scale(0.98); }
  50% { transform: scale(1.02); }
}

@keyframes stream-drift {
  from { stroke-dashoffset: 0; opacity: 0.74; }
  to { stroke-dashoffset: -18; opacity: 1; }
}

/* Hero stage radar v7 */
.hero-stage--radar {
  position: relative;
  height: 430px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 10px;
  overflow: hidden;
  background:
    radial-gradient(340px 220px at 12% 18%, rgba(47, 108, 168, 0.16), transparent 72%),
    radial-gradient(340px 220px at 88% 82%, rgba(195, 142, 37, 0.18), transparent 74%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(249, 243, 233, 0.9));
}

.hero-stage--radar .radar-bg {
  position: absolute;
  inset: 14px;
  border-radius: 18px;
  border: 1px dashed rgba(35, 73, 116, 0.18);
  background:
    radial-gradient(250px 170px at var(--sx, 50%) var(--sy, 52%), rgba(47, 108, 168, 0.14), transparent 72%),
    radial-gradient(250px 170px at calc(100% - var(--sx, 50%)) calc(100% - var(--sy, 52%)), rgba(195, 142, 37, 0.16), transparent 74%);
  transition: background 0.24s ease;
  pointer-events: none;
}

.hero-stage--radar .radar-links {
  position: absolute;
  inset: 24px;
  width: calc(100% - 48px);
  height: calc(100% - 48px);
  pointer-events: none;
  z-index: 1;
}

.hero-stage--radar .rline {
  fill: none;
  stroke-width: 0.55;
  stroke-linecap: round;
  stroke-dasharray: 2.2 2.9;
  animation: rline-flow 1.9s linear infinite;
}

.hero-stage--radar .rline.blue { stroke: url(#radarBlue); }
.hero-stage--radar .rline.gold { stroke: url(#radarGold); animation-delay: -0.8s; }

.hero-stage--radar .rdot.blue {
  fill: #2f6ca8;
  filter: drop-shadow(0 0 6px rgba(47, 108, 168, 0.5));
}

.hero-stage--radar .rdot.gold {
  fill: #c38e25;
  filter: drop-shadow(0 0 6px rgba(195, 142, 37, 0.5));
}

.hero-stage--radar .radar-col {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(35, 73, 116, 0.16);
  border-radius: 16px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.66));
  display: grid;
  align-content: start;
  gap: 8px;
  overflow: hidden;
}

.hero-stage--radar .radar-col h4 {
  margin: 0 0 6px;
  font-size: 0.78rem;
  color: var(--ink-1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-stage--radar .radar-meter {
  border: 1px solid rgba(35, 73, 116, 0.18);
  border-radius: 11px;
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.92);
}

.hero-stage--radar .radar-meter span {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-1);
  font-weight: 800;
  margin-bottom: 6px;
}

.hero-stage--radar .radar-meter i {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(47, 108, 168, 0.22), rgba(195, 142, 37, 0.5));
  transform-origin: left center;
  animation: meter-pulse 2.1s ease-in-out infinite;
}

.hero-stage--radar .radar-meter:nth-child(3) i { animation-delay: -0.5s; }
.hero-stage--radar .radar-meter:nth-child(4) i { animation-delay: -1s; }
.hero-stage--radar .radar-meter:nth-child(5) i { animation-delay: -1.5s; }

.hero-stage--radar .radar-center {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(35, 73, 116, 0.16);
  border-radius: 16px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 248, 251, 0.74));
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
}

.hero-stage--radar .radar-disc {
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(35, 73, 116, 0.14);
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(191, 31, 36, 0.09), transparent 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(245, 248, 252, 0.72));
}

.hero-stage--radar .radar-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.hero-stage--radar .radar-ring.rg1 {
  width: 160px;
  height: 160px;
  border: 2px solid rgba(191, 31, 36, 0.3);
}

.hero-stage--radar .radar-ring.rg2 {
  width: 210px;
  height: 210px;
  border: 2px dashed rgba(47, 108, 168, 0.24);
  animation: radar-spin-a 10s linear infinite;
}

.hero-stage--radar .radar-ring.rg3 {
  width: 262px;
  height: 262px;
  border: 2px dashed rgba(195, 142, 37, 0.24);
  animation: radar-spin-b 12s linear infinite;
}

.hero-stage--radar .radar-sweep {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 240px;
  height: 240px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(47, 108, 168, 0.26), rgba(47, 108, 168, 0), rgba(195, 142, 37, 0.24), rgba(195, 142, 37, 0));
  filter: blur(0.2px);
  opacity: 0.7;
  animation: radar-sweep-rotate 5.5s linear infinite;
}

.hero-stage--radar .radar-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: min(84%, 220px);
}

.hero-stage--radar .radar-core strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.05;
  color: var(--ink-0);
  margin-bottom: 6px;
}

.hero-stage--radar .radar-core span {
  display: block;
  font-size: 0.79rem;
  color: var(--ink-2);
  font-weight: 700;
}

.hero-stage--radar .radar-mini-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.hero-stage--radar .radar-mini-kpis b {
  border: 1px solid rgba(35, 73, 116, 0.18);
  border-radius: 999px;
  padding: 6px 7px;
  text-align: center;
  font-size: 0.69rem;
  color: var(--ink-1);
  background: rgba(255, 255, 255, 0.9);
}

.hero-stage--radar .radar-feed {
  display: grid;
  gap: 7px;
}

.hero-stage--radar .radar-feed p {
  margin: 0;
  border: 1px solid rgba(35, 73, 116, 0.18);
  border-radius: 11px;
  padding: 8px 9px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.76rem;
  color: var(--ink-1);
  font-weight: 700;
  animation: feed-float 3.8s ease-in-out infinite;
}

.hero-stage--radar .radar-feed p:nth-child(2) { animation-delay: -0.95s; }
.hero-stage--radar .radar-feed p:nth-child(3) { animation-delay: -1.9s; }
.hero-stage--radar .radar-feed p:nth-child(4) { animation-delay: -2.85s; }

.hero-stage--radar .radar-feed b {
  color: #1f4f83;
}

.hero-stage--radar .radar-integrity {
  margin-top: 4px;
  border: 1px solid rgba(35, 73, 116, 0.2);
  border-radius: 999px;
  padding: 6px 9px;
  text-align: center;
  font-size: 0.72rem;
  color: var(--ink-1);
  font-weight: 900;
  background: rgba(255, 255, 255, 0.9);
}

.hero-stage--radar:hover {
  box-shadow: 0 18px 30px rgba(35, 73, 116, 0.16);
}

.hero-stage--radar:hover .radar-disc {
  box-shadow: inset 0 0 0 1px rgba(35, 73, 116, 0.12), 0 12px 20px rgba(35, 73, 116, 0.12);
}

.hero-stage--radar.stage-hot .radar-bg {
  background:
    radial-gradient(270px 180px at var(--sx, 50%) var(--sy, 52%), rgba(47, 108, 168, 0.2), transparent 68%),
    radial-gradient(270px 180px at calc(100% - var(--sx, 50%)) calc(100% - var(--sy, 52%)), rgba(195, 142, 37, 0.22), transparent 70%);
}

@keyframes rline-flow {
  from { stroke-dashoffset: 0; opacity: 0.74; }
  to { stroke-dashoffset: -18; opacity: 1; }
}

@keyframes meter-pulse {
  0%, 100% { transform: scaleX(0.62); opacity: 0.55; }
  50% { transform: scaleX(1); opacity: 1; }
}

@keyframes radar-spin-a {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes radar-spin-b {
  from { transform: translate(-50%, -50%) rotate(360deg); }
  to { transform: translate(-50%, -50%) rotate(0deg); }
}

@keyframes radar-sweep-rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes feed-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Hero stage route v8 */
.hero-stage--route {
  position: relative;
  height: 430px;
  padding: 14px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  background:
    radial-gradient(340px 210px at 18% 82%, rgba(47, 108, 168, 0.16), transparent 72%),
    radial-gradient(340px 210px at 84% 16%, rgba(195, 142, 37, 0.18), transparent 74%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(249, 243, 233, 0.9));
}

.hero-stage--route .route-bg {
  position: absolute;
  inset: 14px;
  border-radius: 18px;
  border: 1px dashed rgba(35, 73, 116, 0.18);
  background:
    radial-gradient(260px 170px at var(--sx, 50%) var(--sy, 52%), rgba(47, 108, 168, 0.14), transparent 72%),
    radial-gradient(260px 170px at calc(100% - var(--sx, 50%)) calc(100% - var(--sy, 52%)), rgba(195, 142, 37, 0.16), transparent 74%);
  pointer-events: none;
  transition: background 0.24s ease;
}

.hero-stage--route .route-head {
  position: relative;
  z-index: 2;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(35, 73, 116, 0.2);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.86);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-1);
}

.hero-stage--route .route-head i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, #2f6ca8, #c38e25);
  box-shadow: 0 0 10px rgba(47, 108, 168, 0.5);
  animation: route-live 1.5s ease-in-out infinite;
}

.hero-stage--route .route-svg {
  position: absolute;
  inset: 22px;
  width: calc(100% - 44px);
  height: calc(100% - 44px);
  z-index: 1;
  pointer-events: none;
}

.hero-stage--route .route-line {
  fill: none;
  stroke-width: 0.62;
  stroke-linecap: round;
  stroke-dasharray: 2.3 3;
  animation: route-flow 2s linear infinite;
}

.hero-stage--route .route-line.blue { stroke: url(#routeBlue); }
.hero-stage--route .route-line.gold { stroke: url(#routeGold); animation-delay: -0.9s; }

.hero-stage--route .route-dot.blue {
  fill: #2f6ca8;
  filter: drop-shadow(0 0 6px rgba(47, 108, 168, 0.5));
}

.hero-stage--route .route-dot.gold {
  fill: #c38e25;
  filter: drop-shadow(0 0 6px rgba(195, 142, 37, 0.5));
}

.hero-stage--route .route-stage {
  position: absolute;
  z-index: 2;
  width: 170px;
  border: 1px solid rgba(35, 73, 116, 0.18);
  border-radius: 12px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 18px rgba(35, 73, 116, 0.11);
}

.hero-stage--route .route-stage strong {
  display: block;
  font-size: 0.88rem;
  line-height: 1.1;
  color: var(--ink-0);
  margin-bottom: 2px;
}

.hero-stage--route .route-stage span {
  font-size: 0.73rem;
  color: var(--ink-2);
  font-weight: 700;
}

.hero-stage--route .stage-idea { left: 26px; top: 94px; }
.hero-stage--route .stage-debate { left: 196px; top: 52px; }
.hero-stage--route .stage-vote { right: 196px; top: 184px; }
.hero-stage--route .stage-audit { right: 26px; top: 130px; }

.hero-stage--route .stage-idea,
.hero-stage--route .stage-vote { animation: route-card-float-a 4s ease-in-out infinite; }
.hero-stage--route .stage-debate,
.hero-stage--route .stage-audit { animation: route-card-float-b 4.5s ease-in-out infinite; }

.hero-stage--route .route-console {
  position: relative;
  z-index: 2;
  align-self: end;
  border: 1px solid rgba(35, 73, 116, 0.19);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.88);
}

.hero-stage--route .route-core {
  border: 1px solid rgba(35, 73, 116, 0.16);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 243, 234, 0.88));
}

.hero-stage--route .route-core strong {
  display: block;
  font-size: 1.24rem;
  line-height: 1.04;
  color: var(--ink-0);
  margin-bottom: 4px;
}

.hero-stage--route .route-core span {
  font-size: 0.78rem;
  color: var(--ink-2);
  font-weight: 700;
}

.hero-stage--route .route-kpis {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.hero-stage--route .route-kpis b {
  border: 1px solid rgba(35, 73, 116, 0.18);
  border-radius: 999px;
  padding: 5px 7px;
  text-align: center;
  font-size: 0.69rem;
  color: var(--ink-1);
  background: rgba(255, 255, 255, 0.92);
}

.hero-stage--route:hover {
  box-shadow: 0 18px 30px rgba(35, 73, 116, 0.16);
}

.hero-stage--route:hover .route-core {
  box-shadow: 0 10px 20px rgba(35, 73, 116, 0.12);
}

.hero-stage--route.stage-hot .route-bg {
  background:
    radial-gradient(280px 180px at var(--sx, 50%) var(--sy, 52%), rgba(47, 108, 168, 0.2), transparent 68%),
    radial-gradient(280px 180px at calc(100% - var(--sx, 50%)) calc(100% - var(--sy, 52%)), rgba(195, 142, 37, 0.22), transparent 70%);
}

@keyframes route-live {
  0%, 100% { opacity: 0.5; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes route-flow {
  from { stroke-dashoffset: 0; opacity: 0.72; }
  to { stroke-dashoffset: -19; opacity: 1; }
}

@keyframes route-card-float-a {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes route-card-float-b {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* Hero stage signal v9 */
.hero-stage--signal {
  position: relative;
  height: 445px;
  padding: 14px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  overflow: hidden;
  background:
    radial-gradient(300px 170px at 14% 84%, rgba(47, 108, 168, 0.14), transparent 72%),
    radial-gradient(300px 170px at 86% 16%, rgba(195, 142, 37, 0.16), transparent 74%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 243, 233, 0.9));
}

.hero-stage--signal .signal-bg {
  position: absolute;
  inset: 14px;
  border-radius: 18px;
  border: 1px dashed rgba(35, 73, 116, 0.18);
  background:
    radial-gradient(250px 170px at var(--sx, 50%) var(--sy, 52%), rgba(47, 108, 168, 0.14), transparent 72%),
    radial-gradient(250px 170px at calc(100% - var(--sx, 50%)) calc(100% - var(--sy, 52%)), rgba(195, 142, 37, 0.16), transparent 74%);
  transition: background 0.22s ease;
}

.hero-stage--signal .signal-head {
  z-index: 2;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(35, 73, 116, 0.2);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.88);
  font-size: 0.74rem;
  color: var(--ink-1);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-stage--signal .signal-head i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, #2f6ca8, #c38e25);
  box-shadow: 0 0 10px rgba(47, 108, 168, 0.52);
  animation: route-live 1.5s ease-in-out infinite;
}

.hero-stage--signal .signal-svg {
  position: absolute;
  inset: 22px;
  width: calc(100% - 44px);
  height: calc(100% - 44px);
  z-index: 1;
  pointer-events: none;
}

.hero-stage--signal .signal-line {
  fill: none;
  stroke-width: 0.68;
  stroke-linecap: round;
  stroke-dasharray: 2.3 3;
}

.hero-stage--signal .signal-line.main {
  stroke: url(#signalBlue);
  animation: route-flow 2s linear infinite;
}

.hero-stage--signal .signal-line.echo {
  stroke: url(#signalGold);
  animation: route-flow 2.2s linear infinite reverse;
}

.hero-stage--signal .signal-dot.blue {
  fill: #2f6ca8;
  filter: drop-shadow(0 0 6px rgba(47, 108, 168, 0.5));
}

.hero-stage--signal .signal-dot.gold {
  fill: #c38e25;
  filter: drop-shadow(0 0 6px rgba(195, 142, 37, 0.5));
}

.hero-stage--signal .signal-station {
  position: absolute;
  z-index: 2;
  width: 164px;
  border: 1px solid rgba(35, 73, 116, 0.18);
  border-radius: 12px;
  padding: 8px 9px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 10px 18px rgba(35, 73, 116, 0.1);
}

.hero-stage--signal .signal-station b {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  font-size: 0.72rem;
  background: linear-gradient(140deg, rgba(47, 108, 168, 0.2), rgba(195, 142, 37, 0.22));
  color: var(--ink-0);
  margin-right: 6px;
}

.hero-stage--signal .signal-station strong {
  font-size: 0.85rem;
  color: var(--ink-0);
}

.hero-stage--signal .signal-station span {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--ink-2);
  font-weight: 700;
}

.hero-stage--signal .st1 { left: 24px; top: 102px; }
.hero-stage--signal .st2 { left: 210px; top: 74px; }
.hero-stage--signal .st3 { left: 394px; top: 98px; }
.hero-stage--signal .st4 { right: 24px; top: 126px; }

.hero-stage--signal .st1,
.hero-stage--signal .st3 { animation: route-card-float-a 4s ease-in-out infinite; }
.hero-stage--signal .st2,
.hero-stage--signal .st4 { animation: route-card-float-b 4.4s ease-in-out infinite; }

.hero-stage--signal .signal-footer {
  z-index: 2;
  border: 1px solid rgba(35, 73, 116, 0.19);
  border-radius: 14px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.9);
  align-self: end;
}

.hero-stage--signal .signal-core {
  border: 1px solid rgba(35, 73, 116, 0.16);
  border-radius: 12px;
  padding: 8px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 243, 234, 0.9));
}

.hero-stage--signal .signal-core strong {
  display: block;
  font-size: 1.16rem;
  color: var(--ink-0);
  margin-bottom: 2px;
}

.hero-stage--signal .signal-core span {
  font-size: 0.74rem;
  color: var(--ink-2);
  font-weight: 700;
}

.hero-stage--signal .signal-kpis {
  margin-top: 7px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.hero-stage--signal .signal-kpis b {
  border: 1px solid rgba(35, 73, 116, 0.18);
  border-radius: 999px;
  padding: 5px 7px;
  font-size: 0.69rem;
  text-align: center;
  color: var(--ink-1);
  background: rgba(255, 255, 255, 0.92);
}

.hero-stage--signal:hover {
  box-shadow: 0 18px 30px rgba(35, 73, 116, 0.16);
}

.hero-stage--signal:hover .signal-footer {
  box-shadow: 0 10px 18px rgba(35, 73, 116, 0.1);
}

.hero-stage--signal.stage-hot .signal-bg {
  background:
    radial-gradient(280px 180px at var(--sx, 50%) var(--sy, 52%), rgba(47, 108, 168, 0.2), transparent 68%),
    radial-gradient(280px 180px at calc(100% - var(--sx, 50%)) calc(100% - var(--sy, 52%)), rgba(195, 142, 37, 0.22), transparent 70%);
}

/* Route v2 override */
.hero-stage--route.route-v2 {
  height: 455px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  padding: 14px;
  background:
    radial-gradient(320px 180px at 18% 82%, rgba(47, 108, 168, 0.14), transparent 72%),
    radial-gradient(320px 180px at 84% 18%, rgba(195, 142, 37, 0.16), transparent 74%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 243, 233, 0.9));
}

.hero-stage--route.route-v2 .route2-bg {
  position: absolute;
  inset: 14px;
  border-radius: 18px;
  border: 1px dashed rgba(35, 73, 116, 0.18);
  background:
    radial-gradient(260px 170px at var(--sx, 50%) var(--sy, 52%), rgba(47, 108, 168, 0.14), transparent 72%),
    radial-gradient(260px 170px at calc(100% - var(--sx, 50%)) calc(100% - var(--sy, 52%)), rgba(195, 142, 37, 0.16), transparent 74%);
}

.hero-stage--route.route-v2 .route2-head {
  z-index: 2;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(35, 73, 116, 0.2);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.88);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-1);
}

.hero-stage--route.route-v2 .route2-head i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, #2f6ca8, #c38e25);
  box-shadow: 0 0 10px rgba(47, 108, 168, 0.5);
  animation: route-live 1.5s ease-in-out infinite;
}

.hero-stage--route.route-v2 .route2-svg {
  position: absolute;
  inset: 24px;
  width: calc(100% - 48px);
  height: calc(100% - 48px);
  z-index: 1;
  pointer-events: none;
}

.hero-stage--route.route-v2 .route2-line {
  fill: none;
  stroke-width: 0.68;
  stroke-linecap: round;
  stroke-dasharray: 2.3 3;
  animation: route-flow 2s linear infinite;
}

.hero-stage--route.route-v2 .route2-line.blue { stroke: url(#route2Blue); }
.hero-stage--route.route-v2 .route2-line.gold { stroke: url(#route2Gold); animation-delay: -0.9s; }

.hero-stage--route.route-v2 .route2-dot.blue {
  fill: #2f6ca8;
  filter: drop-shadow(0 0 6px rgba(47, 108, 168, 0.52));
}

.hero-stage--route.route-v2 .route2-dot.gold {
  fill: #c38e25;
  filter: drop-shadow(0 0 6px rgba(195, 142, 37, 0.52));
}

.hero-stage--route.route-v2 .route2-track {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-self: center;
}

.hero-stage--route.route-v2 .route2-step {
  border: 1px solid rgba(35, 73, 116, 0.18);
  border-radius: 12px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 10px 18px rgba(35, 73, 116, 0.11);
  animation: route-card-float-a 4s ease-in-out infinite;
}

.hero-stage--route.route-v2 .route2-step.s2 { animation-delay: -0.8s; }
.hero-stage--route.route-v2 .route2-step.s3 { animation-delay: -1.6s; }
.hero-stage--route.route-v2 .route2-step.s4 { animation-delay: -2.4s; }

.hero-stage--route.route-v2 .route2-step strong {
  display: block;
  font-size: 0.86rem;
  color: var(--ink-0);
  margin-bottom: 2px;
}

.hero-stage--route.route-v2 .route2-step span {
  font-size: 0.72rem;
  color: var(--ink-2);
  font-weight: 700;
}

.hero-stage--route.route-v2 .route2-footer {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(35, 73, 116, 0.19);
  border-radius: 14px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.9);
}

.hero-stage--route.route-v2 .route2-core {
  border: 1px solid rgba(35, 73, 116, 0.16);
  border-radius: 12px;
  padding: 8px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 243, 234, 0.9));
}

.hero-stage--route.route-v2 .route2-core strong {
  display: block;
  font-size: 1.18rem;
  color: var(--ink-0);
  margin-bottom: 2px;
}

.hero-stage--route.route-v2 .route2-core span {
  font-size: 0.75rem;
  color: var(--ink-2);
  font-weight: 700;
}

.hero-stage--route.route-v2 .route2-kpis {
  margin-top: 7px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.hero-stage--route.route-v2 .route2-kpis b {
  border: 1px solid rgba(35, 73, 116, 0.18);
  border-radius: 999px;
  padding: 5px 7px;
  font-size: 0.69rem;
  text-align: center;
  color: var(--ink-1);
  background: rgba(255, 255, 255, 0.92);
}

.hero-stage--route.route-v2:hover {
  box-shadow: 0 18px 30px rgba(35, 73, 116, 0.16);
}

.hero-stage--route.route-v2:hover .route2-step {
  transform: translateY(-2px);
  box-shadow: 0 14px 22px rgba(35, 73, 116, 0.14);
}

.hero-stage--route.route-v2.stage-hot .route2-bg {
  background:
    radial-gradient(280px 180px at var(--sx, 50%) var(--sy, 52%), rgba(47, 108, 168, 0.2), transparent 68%),
    radial-gradient(280px 180px at calc(100% - var(--sx, 50%)) calc(100% - var(--sy, 52%)), rgba(195, 142, 37, 0.22), transparent 70%);
}

@keyframes link-dash {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -22; }
}

@keyframes title-sheen {
  0%, 70%, 100% { transform: skewX(-14deg) translateX(-140%); opacity: 0; }
  76% { opacity: 0.9; }
  90% { transform: skewX(-14deg) translateX(230%); opacity: 0.25; }
}

@keyframes btn-sheen {
  0%, 78%, 100% { transform: translateX(0) rotate(18deg); opacity: 0; }
  84% { opacity: 0.8; }
  98% { transform: translateX(480%) rotate(18deg); opacity: 0; }
}

@keyframes kpi-breathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@keyframes sf-float {
  0% {
    transform: translate3d(0, 0, 0) scale(0.8);
    opacity: 0;
  }
  18% { opacity: 0.85; }
  100% {
    transform: translate3d(10px, -22px, 0) scale(1.25);
    opacity: 0;
  }
}

@keyframes link-breathe {
  0%,
  100% { opacity: 0.75; }
  50% { opacity: 1; }
}

@keyframes endpoint-pulse {
  0%,
  100% {
    opacity: 0.58;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.28);
  }
}

.ticker-wrap {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
}

.ticker-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 10px 0;
  animation: ticker 24s linear infinite;
}

.ticker-track span {
  font-weight: 800;
  color: var(--ink-1);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.overview-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.overview-card {
  padding: 16px;
  background: rgba(255, 255, 255, 0.8);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.overview-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-m);
}

.overview-mark {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(191, 141, 49, 0.35);
  color: #9b6d18;
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.overview-card h3 {
  margin: 0 0 6px;
  font-size: 1.28rem;
}

.overview-card p {
  margin: 0;
  color: var(--ink-2);
}

.process {
  margin-top: 12px;
  padding: 20px;
}

.process-head h2 {
  margin: 5px 0 4px;
  font-size: clamp(1.6rem, 2.7vw, 2.2rem);
}

.muted {
  color: var(--ink-2);
}

.process-tabs {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.step-btn {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-1);
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.step-btn span {
  min-width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(191, 141, 49, 0.35);
  color: #946615;
  background: rgba(191, 141, 49, 0.12);
  font-size: 0.74rem;
}

.step-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(24, 37, 54, 0.1);
}

.step-btn.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(95deg, var(--red), var(--red-soft));
  box-shadow: 0 10px 24px rgba(191, 31, 36, 0.3);
}

.step-btn.active span {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.process-rail {
  margin-top: 12px;
  position: relative;
  height: 34px;
}

.process-rail::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 15px;
  height: 4px;
  border-radius: 999px;
  background: rgba(49, 68, 89, 0.18);
}

.process-progress {
  position: absolute;
  left: 0;
  top: 15px;
  height: 4px;
  width: 20%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transition: width 0.32s ease;
}

.process-dots {
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.process-dots i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(49, 68, 89, 0.34);
  background: #fff;
  justify-self: center;
}

.process-layout {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
}

.process-panel {
  border: 1px solid rgba(49, 68, 89, 0.2);
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(250, 244, 235, 0.9));
  min-height: 220px;
}

.process-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.process-badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(191, 31, 36, 0.35);
  background: rgba(191, 31, 36, 0.08);
  color: #8f1b1f;
  font-size: 0.84rem;
  font-weight: 800;
}

.process-step-counter {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.84rem;
  font-weight: 700;
}

.process-panel h3 {
  margin: 12px 0 8px;
  font-size: 1.55rem;
}

.process-panel p {
  margin: 0;
  color: var(--ink-1);
}

.process-bullets {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--ink-1);
  display: grid;
  gap: 8px;
}

.process-visual {
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  min-height: 220px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.92), rgba(240, 248, 255, 0.88));
  position: relative;
  overflow: hidden;
}

.pv-lab {
  position: relative;
  inset: auto;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 10px;
  padding: 12px;
  min-height: 100%;
}

.pv-lab::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(220px 120px at 20% 85%, rgba(47, 108, 168, 0.16), transparent 72%),
    radial-gradient(220px 120px at 82% 20%, rgba(183, 138, 42, 0.16), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.pv-lab-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}

#pv-chip {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(95deg, #2f6ca8, #3b7db8);
  box-shadow: 0 6px 12px rgba(47, 108, 168, 0.22);
}

#pv-title {
  font-size: 1rem;
  color: var(--ink-0);
}

.pv-stream {
  position: relative;
  z-index: 2;
  height: 16px;
}

.pv-stream-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 7px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(47, 108, 168, 0.2), rgba(183, 138, 42, 0.26), rgba(47, 108, 168, 0.2));
}

.pv-dot {
  position: absolute;
  top: 3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2f6ca8;
  box-shadow: 0 0 8px rgba(47, 108, 168, 0.45);
  animation: pv-travel 2.8s linear infinite;
}

.pv-dot.d2 { background: #b78a2a; animation-delay: -0.7s; }
.pv-dot.d3 { background: #2f6ca8; animation-delay: -1.4s; }
.pv-dot.d4 { background: #b78a2a; animation-delay: -2.1s; }

.pv-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pv-cell {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.94);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  animation: pv-cell-breathe 4.2s ease-in-out infinite;
}

#pv-cell-a,
#pv-cell-b,
#pv-cell-c,
#pv-cell-d {
  border-color: var(--line-strong);
}

.pv-grid .pv-cell:nth-child(2) { animation-delay: -1.1s; }
.pv-grid .pv-cell:nth-child(3) { animation-delay: -2.2s; }
.pv-grid .pv-cell:nth-child(4) { animation-delay: -3.3s; }

.pv-cell h5 {
  margin: 0 0 4px;
  font-size: 1rem;
  color: var(--ink-0);
}

.pv-cell p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-2);
  line-height: 1.35;
}

.pv-cell:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(35, 73, 116, 0.14);
}

@keyframes pv-travel {
  from { left: 0; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  to { left: calc(100% - 9px); opacity: 0; }
}

@keyframes pv-cell-breathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1.5px); }
}

.pv-lab[data-phase="1"] #pv-chip {
  background: linear-gradient(95deg, #2f6ca8, #3b7db8);
}
.pv-lab[data-phase="2"] #pv-chip {
  background: linear-gradient(95deg, #9a3d14, #cf6a2a);
}
.pv-lab[data-phase="3"] #pv-chip {
  background: linear-gradient(95deg, #5b3a9f, #7d54ca);
}
.pv-lab[data-phase="4"] #pv-chip {
  background: linear-gradient(95deg, #8e2340, #c64067);
}
.pv-lab[data-phase="5"] #pv-chip {
  background: linear-gradient(95deg, #0f6b67, #1b8d87);
}

.pv-lab[data-phase="1"] .pv-stream-line { background: linear-gradient(90deg, rgba(47,108,168,.2), rgba(183,138,42,.26), rgba(47,108,168,.2)); }
.pv-lab[data-phase="2"] .pv-stream-line { background: linear-gradient(90deg, rgba(154,61,20,.2), rgba(207,106,42,.3), rgba(154,61,20,.2)); }
.pv-lab[data-phase="3"] .pv-stream-line { background: linear-gradient(90deg, rgba(91,58,159,.2), rgba(125,84,202,.3), rgba(91,58,159,.2)); }
.pv-lab[data-phase="4"] .pv-stream-line { background: linear-gradient(90deg, rgba(142,35,64,.2), rgba(198,64,103,.3), rgba(142,35,64,.2)); }
.pv-lab[data-phase="5"] .pv-stream-line { background: linear-gradient(90deg, rgba(15,107,103,.2), rgba(27,141,135,.3), rgba(15,107,103,.2)); }

.pulse-in {
  animation: panel-swap 0.3s ease;
}

@keyframes panel-swap {
  from {
    opacity: 0.62;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.command-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ecosystem-board,
.simulator {
  padding: 18px;
}

.ecosystem-board h2,
.simulator h2 {
  margin: 5px 0 7px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.module-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.module-card {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  padding: 12px;
  position: relative;
  overflow: hidden;
}

.module-card::after {
  content: "";
  position: absolute;
  right: -35px;
  top: -35px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(191, 141, 49, 0.18), transparent 70%);
}

.module-card h3 {
  margin: 0 0 6px;
}

.module-card p {
  margin: 0;
  color: var(--ink-2);
}

.module-core {
  margin-top: 12px;
  border-radius: 12px;
  border: 1px dashed rgba(49, 68, 89, 0.35);
  background: linear-gradient(90deg, rgba(191, 31, 36, 0.08), rgba(191, 141, 49, 0.12));
  padding: 11px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}

.module-core strong {
  color: var(--ink-0);
}

.module-core span {
  color: var(--ink-1);
  font-weight: 700;
}

.sim-layout {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 12px;
  align-items: start;
}

.sim-gauge-wrap {
  display: flex;
  justify-content: center;
}

.sim-gauge {
  width: 178px;
  height: 178px;
  border-radius: 50%;
  background: conic-gradient(var(--red) 0deg, var(--red) 223deg, rgba(49, 68, 89, 0.15) 223deg, rgba(49, 68, 89, 0.15) 360deg);
  display: grid;
  place-items: center;
  position: relative;
  transition: background 0.36s ease;
}

.sim-gauge::before {
  content: "";
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.96);
}

.sim-gauge-center {
  position: absolute;
  text-align: center;
}

.sim-gauge-center strong {
  display: block;
  font-size: 2rem;
  color: var(--ink-0);
  line-height: 1;
}

.sim-gauge-center small {
  color: var(--ink-2);
  font-weight: 700;
}

.sim-controls {
  display: grid;
  gap: 10px;
}

.sim-controls label {
  display: grid;
  gap: 8px;
  color: var(--ink-1);
  font-size: 1.05rem;
  font-weight: 700;
}

.sim-controls input[type="range"] {
  width: 100%;
  accent-color: var(--red);
}

.sim-bars {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  padding: 12px;
  display: grid;
  gap: 8px;
}

.sim-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-1);
  font-weight: 700;
}

.bar-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(49, 68, 89, 0.14);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width 0.42s ease;
}

.bar-fill.red {
  background: linear-gradient(90deg, var(--red), var(--red-soft));
}

.bar-fill.gold {
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
}

.sim-zones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 4px;
}

.z {
  border-radius: 999px;
  text-align: center;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 6px;
  color: var(--ink-2);
}

.z.low { background: rgba(191, 31, 36, 0.08); }
.z.mid { background: rgba(191, 141, 49, 0.12); }
.z.high { background: rgba(45, 139, 97, 0.1); }

.sim-result {
  margin-top: 6px;
  border-top: 1px dashed rgba(49, 68, 89, 0.35);
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.sim-result strong {
  color: var(--ink-0);
}

.metrics {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metric {
  padding: 16px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(255, 246, 235, 0.74));
  border: 1px solid var(--line);
  transition: transform 0.2s ease;
}

.metric:hover {
  transform: translateY(-2px);
}

.metric-value {
  font-size: clamp(1.9rem, 2.8vw, 3rem);
  font-weight: 900;
  line-height: 1;
  color: var(--red);
  letter-spacing: 0.02em;
}

.metric p {
  margin: 8px 0 0;
  color: var(--ink-1);
  font-size: 1.02rem;
}

.insight-cards {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.insight {
  padding: 16px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.insight::after {
  content: "";
  position: absolute;
  inset: auto -20% -70% auto;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(191, 141, 49, 0.2), transparent 68%);
  pointer-events: none;
}

.ins-icon {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  border: 1px solid rgba(191, 31, 36, 0.3);
  background: rgba(191, 31, 36, 0.08);
  color: #8e2025;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.insight h3 {
  margin: 10px 0 6px;
  font-size: 1.35rem;
}

.insight p {
  margin: 0;
  color: var(--ink-1);
}

.lenses {
  margin-top: 12px;
  padding: 18px;
}

.lenses h2 {
  margin: 5px 0 10px;
}

.lens-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.lens-btn {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-1);
  padding: 9px 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.lens-btn:hover {
  transform: translateY(-1px);
}

.lens-btn.active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(95deg, #24364a, #3b4f64);
}

.lens-stage {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 12px;
}

.lens-visual {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.9), rgba(246, 239, 228, 0.7));
  min-height: 150px;
  display: grid;
  align-content: center;
  gap: 9px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.lv-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(49, 68, 89, 0.14);
  overflow: hidden;
  position: relative;
}

.lv-bar::after {
  content: "";
  position: absolute;
  left: -40%;
  top: 0;
  bottom: 0;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(191, 31, 36, 0.85), rgba(191, 141, 49, 0.85));
  animation: lv-scan 4s linear infinite;
}

.lv-2::after { animation-delay: -1.2s; }
.lv-3::after { animation-delay: -2.4s; }

.lv-dot {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(191, 31, 36, 0.35);
  animation: lv-pulse 2.1s ease-in-out infinite;
}

@keyframes lv-scan {
  0% { left: -40%; }
  100% { left: 110%; }
}

@keyframes lv-pulse {
  0%,
  100% { box-shadow: 0 0 0 0 rgba(191, 31, 36, 0.35); }
  50% { box-shadow: 0 0 0 12px rgba(191, 31, 36, 0); }
}

.lens-body {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  padding: 14px;
  min-height: 150px;
}

.lens-body h3 {
  margin-top: 0;
  font-size: 1.45rem;
}

.lens-body p {
  margin-bottom: 0;
  color: var(--ink-1);
}

.faq {
  margin-top: 12px;
  padding: 18px;
}

.faq h2 {
  margin: 5px 0 10px;
}

.faq-list {
  display: grid;
  gap: 8px;
}

.faq details {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  padding: 10px 12px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.faq summary {
  font-weight: 800;
  cursor: pointer;
  color: var(--ink-0);
}

.faq details[open] {
  border-color: rgba(191, 141, 49, 0.5);
  background: rgba(255, 255, 255, 0.95);
}

.faq p {
  margin: 8px 0 0;
  color: var(--ink-1);
}

.final-cta {
  margin-top: 12px;
  padding: 20px;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.9), rgba(255, 244, 232, 0.88));
}

.final-cta h2 {
  margin: 0 0 6px;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
}

.final-cta p {
  margin: 0;
  color: var(--ink-1);
}

/* Portada visual uplift (sin cambiar estructura) */
.overview-card,
.process,
.process-panel,
.process-visual,
.ecosystem-board,
.simulator,
.module-card,
.sim-bars,
.metric,
.insight,
.lenses,
.lens-visual,
.lens-body,
.faq details,
.final-cta {
  position: relative;
  isolation: isolate;
}

.overview-card::before,
.module-card::before,
.metric::before,
.insight::before,
.faq details::before,
.final-cta::before {
  content: "";
  position: absolute;
  left: -40%;
  top: 0;
  width: 44%;
  height: 100%;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
  transform: skewX(-18deg);
  transition: transform 0.8s ease, opacity 0.8s ease;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.overview-card:hover::before,
.module-card:hover::before,
.metric:hover::before,
.insight:hover::before,
.faq details:hover::before,
.final-cta:hover::before {
  transform: translateX(300%) skewX(-18deg);
  opacity: 1;
}

.overview-grid {
  gap: 14px;
}

.process,
.command-grid,
.metrics,
.insight-cards,
.lenses,
.faq,
.final-cta {
  content-visibility: auto;
  contain-intrinsic-size: 1px 540px;
}

.overview-card {
  padding: 20px;
  border-color: rgba(28, 42, 61, 0.18);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(252, 245, 233, 0.84)),
    radial-gradient(300px 170px at 100% 0%, rgba(191, 31, 36, 0.11), transparent 72%);
  box-shadow: 0 14px 30px rgba(19, 30, 45, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.overview-card:hover {
  transform: translateY(-6px);
  border-color: rgba(191, 31, 36, 0.35);
  box-shadow: 0 24px 42px rgba(191, 31, 36, 0.14);
}

.overview-card h3 {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.overview-card p {
  line-height: 1.56;
  color: var(--ink-1);
}

.process {
  border-color: rgba(28, 42, 61, 0.16);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(251, 247, 238, 0.86)),
    radial-gradient(500px 240px at 100% 0%, rgba(191, 141, 49, 0.11), transparent 72%);
  box-shadow: 0 20px 44px rgba(16, 30, 46, 0.1);
  will-change: transform;
}

.process::after {
  content: none;
}

.process.visible .step-btn {
  animation: step-pop-in 0.42s ease both;
}

.process.visible .step-btn:nth-child(2) { animation-delay: 0.06s; }
.process.visible .step-btn:nth-child(3) { animation-delay: 0.12s; }
.process.visible .step-btn:nth-child(4) { animation-delay: 0.18s; }
.process.visible .step-btn:nth-child(5) { animation-delay: 0.24s; }

.step-btn {
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.step-btn::after {
  content: "";
  position: absolute;
  inset: auto -20% -120% auto;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(191, 141, 49, 0.28), rgba(191, 141, 49, 0));
  transition: transform 0.35s ease;
  transform: scale(0.8);
}

.step-btn:hover::after {
  transform: scale(1.08);
}

.step-btn.active {
  transform: translateY(-2px);
}

.process-panel,
.process-visual {
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  will-change: transform;
}

.process:hover .process-panel,
.process:hover .process-visual {
  transform: translateY(-2px);
}

.command-grid {
  gap: 14px;
}

.ecosystem-board,
.simulator {
  border-color: rgba(28, 42, 61, 0.16);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.94), rgba(248, 244, 236, 0.84)),
    radial-gradient(420px 220px at 100% 0%, rgba(191, 31, 36, 0.08), transparent 74%);
  box-shadow: 0 16px 34px rgba(19, 32, 48, 0.1);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.ecosystem-board:hover,
.simulator:hover {
  transform: translateY(-4px);
  border-color: rgba(191, 31, 36, 0.28);
  box-shadow: 0 26px 44px rgba(191, 31, 36, 0.13);
}

.module-card {
  border-color: rgba(28, 42, 61, 0.16);
  background: rgba(255, 255, 255, 0.93);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.module-card:hover {
  transform: translateY(-5px);
  border-color: rgba(191, 31, 36, 0.28);
  box-shadow: 0 16px 28px rgba(25, 38, 57, 0.11);
}

.sim-gauge {
  box-shadow: 0 0 0 1px rgba(191, 31, 36, 0.16), 0 18px 32px rgba(191, 31, 36, 0.16);
}

.sim-gauge::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px dashed rgba(191, 31, 36, 0.34);
  animation: gauge-orbit 8s linear infinite;
  pointer-events: none;
}

.sim-bars {
  border-color: rgba(28, 42, 61, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.metrics {
  gap: 14px;
}

.metric {
  padding: 20px 16px;
  border-color: rgba(28, 42, 61, 0.16);
  box-shadow: 0 14px 30px rgba(18, 33, 50, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.metric:hover {
  transform: translateY(-6px);
  border-color: rgba(191, 31, 36, 0.34);
  box-shadow: 0 24px 44px rgba(191, 31, 36, 0.15);
}

.metric-value {
  background: linear-gradient(110deg, #bf1f24 0%, #de5f48 52%, #bf8d31 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric p {
  line-height: 1.45;
  font-weight: 650;
}

.insight-cards {
  gap: 14px;
}

.insight {
  padding: 18px;
  border-color: rgba(28, 42, 61, 0.16);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(250, 246, 239, 0.84)),
    radial-gradient(280px 160px at 100% 0%, rgba(191, 31, 36, 0.1), transparent 72%);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.insight:hover {
  transform: translateY(-6px);
  border-color: rgba(191, 31, 36, 0.32);
  box-shadow: 0 22px 38px rgba(191, 31, 36, 0.12);
}

.insight h3 {
  margin-top: 11px;
  letter-spacing: -0.01em;
}

.lenses {
  border-color: rgba(28, 42, 61, 0.16);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.94), rgba(248, 242, 233, 0.88)),
    radial-gradient(420px 180px at 0% 0%, rgba(191, 141, 49, 0.1), transparent 74%);
  box-shadow: 0 16px 34px rgba(19, 32, 48, 0.1);
}

.lens-btn.active {
  box-shadow: 0 12px 22px rgba(36, 54, 74, 0.26);
}

.lens-stage {
  gap: 14px;
}

.lens-visual,
.lens-body {
  border-color: rgba(28, 42, 61, 0.16);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.lenses:hover .lens-visual,
.lenses:hover .lens-body {
  transform: translateY(-3px);
}

.faq {
  border-color: rgba(28, 42, 61, 0.16);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.93), rgba(249, 245, 236, 0.88));
  box-shadow: 0 16px 34px rgba(19, 32, 48, 0.1);
}

.faq details {
  border-color: rgba(28, 42, 61, 0.18);
  padding: 12px 14px;
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.faq details:hover {
  transform: translateY(-2px);
}

.faq details p {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  margin: 0;
  transition: max-height 0.34s ease, opacity 0.24s ease, transform 0.24s ease, margin 0.24s ease;
}

.faq details[open] {
  border-color: rgba(191, 141, 49, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.faq details[open] p {
  max-height: 120px;
  opacity: 1;
  transform: translateY(0);
  margin: 9px 0 0;
}

.final-cta {
  border-color: rgba(28, 42, 61, 0.16);
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.94), rgba(255, 245, 232, 0.9), rgba(247, 240, 228, 0.94));
  background-size: 200% 200%;
  animation: cta-breath 13s ease-in-out infinite;
  box-shadow: 0 18px 36px rgba(20, 33, 48, 0.1);
  overflow: hidden;
}

.final-cta:hover {
  box-shadow: 0 28px 46px rgba(191, 31, 36, 0.15);
}

@keyframes step-pop-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes gauge-orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes cta-breath {
  0%,
  100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes aura-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 0.6;
  }
  50% {
    transform: translate3d(-20px, 16px, 0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .process::after,
  .sim-gauge::after,
  .final-cta,
  .process.visible .step-btn {
    animation: none !important;
  }

  .overview-card::before,
  .module-card::before,
  .metric::before,
  .insight::before,
  .faq details::before,
  .final-cta::before {
    display: none;
  }
}

.section-head {
  margin-bottom: 10px;
}

.section-head h2 {
  margin: 0 0 4px;
}

.section-head p {
  margin: 0;
  color: var(--ink-2);
}

.spectator-shell,
.spectator-view,
.ideas-layout,
.profile-layout {
  display: grid;
  gap: 12px;
}

.spectator-view {
  display: none;
}

.spectator-view.active {
  display: grid;
}

.spectator-view > .card {
  padding: 16px;
}

.spectator-sections-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.spectator-sections-copy {
  display: grid;
  gap: 4px;
  min-width: 240px;
}

.spectator-sections-head h3 {
  margin: 0;
}

.spectator-sections-copy p {
  margin: 0;
}

.spectator-sections-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.spectator-summary-card h3,
.spectator-sections-card h3 {
  margin: 0 0 4px;
}

.spectator-section-grid {
  margin-top: 8px;
}

.spectator-topbar h4 {
  position: static;
  transform: none;
  width: 100%;
  max-width: none;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  text-align: center;
  font-size: 1.8rem;
  line-height: 1.1;
}

.spectator-sort-label {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin: 0;
}

.spectator-sort-label select {
  min-width: 200px;
}

.spectator-sort-row {
  margin: 12px 0 10px;
  display: flex;
  justify-content: center;
}

.spectator-insights {
  margin-top: 8px;
}

.spectator-proposal-grid {
  margin-top: 0;
  max-height: min(58vh, 620px);
  min-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0;
  padding-bottom: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.spectator-proposal-grid::-webkit-scrollbar {
  width: 0;
  height: 0;
}

#spectator-view-section {
  --spectator-insights-cut: 44px;
  --spectator-list-entry-gap: 10px;
  --spectator-list-fade-top: 12px;
  --spectator-list-bottom-gap: 10px;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 0;
  min-height: 0;
  overflow: hidden;
}

#spectator-view-section .spectator-list-card {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  padding-bottom: 0;
  gap: 0;
  position: relative;
  isolation: isolate;
  background: rgba(246, 241, 233, 1);
}

#spectator-view-section .spectator-topbar {
  min-height: 0;
  align-items: center;
}

#spectator-view-section .spectator-insights {
  margin: 2px 0 0;
  z-index: 4;
  isolation: auto;
  overflow: visible;
  background: transparent;
  border-radius: 0;
}

#spectator-view-section .spectator-insights article {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: rgba(251, 253, 255, 1);
}

#spectator-view-section .spectator-insights::after {
  display: none;
  content: none;
}

#spectator-view-section .spectator-proposal-grid {
  max-height: none;
  min-height: 0;
  height: calc(100% + var(--spectator-insights-cut));
  margin-top: calc(var(--spectator-insights-cut) * -1);
  margin-bottom: 0;
  padding-top: calc(var(--spectator-insights-cut) + var(--spectator-list-entry-gap));
  padding-right: 0;
  padding-bottom: var(--spectator-list-bottom-gap);
  scroll-padding-top: calc(var(--spectator-insights-cut) + var(--spectator-list-entry-gap) + 8px);
  position: relative;
  z-index: 1;
  overflow-x: hidden;
  overflow-y: auto;
  align-content: start;
  gap: 8px;
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) var(--spectator-list-fade-top),
    rgba(0, 0, 0, 1) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) var(--spectator-list-fade-top),
    rgba(0, 0, 0, 1) 100%
  );
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

#spectator-view-section .spectator-proposal-grid::before {
  display: none;
  content: none;
}

.spectator-proposal-card {
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  overflow: visible;
}

.spectator-proposal-card.active {
  border-color: rgba(191, 31, 36, 0.42);
  box-shadow: 0 12px 22px rgba(191, 31, 36, 0.14);
}

.spectator-proposal-card h4 {
  margin: 0;
  width: 100%;
  line-height: 1.2;
  overflow-wrap: anywhere;
  min-height: calc(1.2em * 3);
  max-height: calc(1.2em * 3);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.spectator-proposal-meta {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 0.76rem;
  font-weight: 700;
}

.spectator-proposal-copy {
  display: none;
}

.spectator-proposal-card .vote-tags {
  margin-top: auto;
  padding-top: 6px;
}

.spectator-readonly-pill {
  border-radius: 999px;
  border: 1px solid rgba(35, 73, 116, 0.3);
  background: rgba(35, 73, 116, 0.08);
  color: #224974;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 10px;
}

.spectator-detail-meta {
  margin-top: 8px;
  font-size: 0.88rem;
  font-weight: 700;
}

#spectator-view-detail .spectator-detail-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  padding: 16px 16px 0;
}

#spectator-view-detail .spectator-mirror {
  margin-top: 8px;
  min-height: 0;
  overflow: hidden;
}

.spectator-mirror .debate-side {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.spectator-mirror #spectator-favor-list.stack.compact,
.spectator-mirror #spectator-contra-list.stack.compact {
  margin-top: 8px;
  max-height: min(34vh, 340px);
  min-height: 120px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.spectator-mirror #spectator-favor-list.stack.compact::-webkit-scrollbar,
.spectator-mirror #spectator-contra-list.stack.compact::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.section-chip.active {
  border-color: rgba(191, 31, 36, 0.46);
  box-shadow: 0 16px 26px rgba(191, 31, 36, 0.14);
}

@media (max-width: 900px) {
  .spectator-topbar {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 8px;
  }

  .spectator-topbar h4 {
    text-align: left;
    font-size: 1.45rem;
  }

  .spectator-sort-row {
    margin: 12px 0 12px;
  }

  .spectator-sort-row .spectator-sort-label {
    width: clamp(190px, 52%, 320px);
  }

  .spectator-sort-row .spectator-sort-label select {
    min-width: 0;
    width: 100%;
  }

  .spectator-readonly-pill {
    width: fit-content;
  }

  .spectator-proposal-grid {
    max-height: none;
  }

  #spectator-view-section .spectator-list-card {
    overflow: visible;
    padding-bottom: 16px;
  }

  #spectator-view-section .spectator-insights::after,
  #spectator-view-section .spectator-proposal-grid::before {
    display: none;
    content: none;
  }

  #spectator-view-section .spectator-proposal-grid {
    margin-top: 0;
    height: auto;
    padding-top: 0;
    padding-right: 0;
    scroll-padding-top: 12px;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .spectator-mirror #spectator-favor-list.stack.compact,
  .spectator-mirror #spectator-contra-list.stack.compact {
    max-height: none;
  }

  #spectator-detail-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "back jump"
      "title title"
      "state state";
    row-gap: 10px;
  }

  #spectator-detail-topbar h4 {
    text-align: left;
    width: 100%;
    max-width: none;
    padding: 0;
    line-height: 1.12;
    text-wrap: pretty;
  }

  #spectator-detail-author {
    max-width: min(58vw, 250px);
  }

  #ideas-detail-author {
    max-width: min(58vw, 250px);
  }

  #spectator-detail-meta {
    margin-top: 10px;
  }

  #proposal-detail {
    margin-top: 8px;
    margin-bottom: 14px;
  }

  #spectator-view-detail .detail {
    margin-top: 8px;
  }

  #ideas-view-detail .detail {
    margin-top: 8px;
  }

  #spectator-view-detail .idea-metrics {
    margin-top: 16px;
  }

  #ideas-view-detail .idea-metrics {
    margin-top: 16px;
  }
}

.ideas-layout {
  grid-template-columns: 1fr 1fr;
}

.profile-layout {
  grid-template-columns: 1fr 1fr;
}

.workspace,
.profile-layout > .card,
.ideas-layout .card {
  padding: 16px;
}

.profile-main-card {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.96), rgba(235, 244, 255, 0.9));
  border-color: rgba(35, 73, 116, 0.2);
}

.profile-main-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-main-head h2 {
  margin: 0;
}

.profile-main-head p {
  margin: 2px 0 0;
}

.profile-avatar {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: linear-gradient(135deg, #244b79, #bf1f24);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  box-shadow: 0 10px 20px rgba(29, 53, 83, 0.26);
}

.profile-card-content {
  margin-top: 12px;
  border: 1px solid rgba(35, 73, 116, 0.26);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  padding: 12px;
  display: grid;
  gap: 8px;
}

.profile-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: baseline;
}

.profile-row small {
  color: var(--ink-2);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.profile-row strong {
  color: var(--ink-0);
  font-size: 0.96rem;
}

.profile-kpis {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.profile-kpis article {
  border: 1px solid rgba(35, 73, 116, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px;
  display: grid;
  gap: 4px;
}

.profile-kpis span {
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 700;
}

.profile-kpis strong {
  color: #224974;
  font-size: 1.22rem;
  line-height: 1;
}

.profile-auth-card {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.96), rgba(247, 243, 235, 0.9));
}

.profile-auth-status {
  margin-top: 10px;
}

.profile-mode {
  border-radius: 14px;
}

.workspace-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  min-height: 0;
}

.workspace-head small {
  display: none;
}

.platform-workspace .workspace-head h3 {
  margin: 0;
  min-height: 0;
  font-size: 0;
  line-height: 0;
}

.platform-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 12px;
  padding-bottom: 12px;
}

.platform-side,
.platform-workspace {
  padding: 16px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.88), rgba(234, 241, 251, 0.78));
}

.platform-side {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 0;
  overflow: auto;
}

.platform-side-head h3 {
  margin: 4px 0 0;
}

.platform-nav-list {
  display: grid;
  gap: 8px;
}

.platform-nav-btn {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink-1);
  font-weight: 800;
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.platform-nav-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(191, 141, 49, 0.55);
}

.platform-nav-btn.active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(95deg, #223b62, #315482);
  box-shadow: 0 10px 22px rgba(35, 59, 98, 0.28);
}

.platform-mini-kpis {
  display: grid;
  gap: 6px;
}

.platform-mini-kpis .kpi-pill {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  padding: 9px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.platform-mini-kpis span {
  color: var(--ink-2);
  font-size: 0.8rem;
  font-weight: 700;
}

.kpi-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.kpi-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(46, 91, 141, 0.3);
  background: rgba(46, 91, 141, 0.1);
}

.kpi-icon svg {
  width: 14px;
  height: 14px;
  stroke: #2e5b8d;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kpi-label.sections .kpi-icon {
  border-color: rgba(148, 102, 21, 0.36);
  background: rgba(191, 141, 49, 0.14);
}

.kpi-label.sections .kpi-icon svg {
  stroke: #946615;
}

.kpi-label.rooms .kpi-icon {
  border-color: rgba(31, 122, 77, 0.35);
  background: rgba(45, 139, 97, 0.14);
}

.kpi-label.rooms .kpi-icon svg {
  stroke: #1f7a4d;
}

.kpi-label.people .kpi-icon {
  border-color: rgba(134, 53, 143, 0.34);
  background: rgba(134, 53, 143, 0.12);
}

.kpi-label.people .kpi-icon svg {
  stroke: #86358f;
}

.platform-mini-kpis strong {
  color: #224974;
  font-size: 1rem;
  line-height: 1;
}

.platform-side-note {
  border: 1px dashed rgba(49, 68, 89, 0.35);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  padding: 10px 11px;
}

.platform-side-note p {
  margin: 0;
  color: var(--ink-1);
}

.platform-workspace {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  padding-bottom: 6px;
  position: relative;
  min-height: 0;
}

.platform-panel {
  display: none;
  min-height: 0;
}

.platform-panel.active {
  display: block;
  height: 100%;
  min-height: 0;
}

.panel-scroll {
  height: 100%;
  overflow: auto;
  padding: 0 4px 16px 2px;
  display: grid;
  gap: 10px;
  min-height: 0;
}

.panel-scroll.ideas-home-active {
  overflow: hidden !important;
  padding-bottom: 0;
}

.platform-loading {
  position: absolute;
  inset: 12px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(233, 240, 251, 0.8);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(35, 73, 116, 0.2);
  z-index: 8;
}

.platform-loading-box {
  width: min(460px, 88%);
  border-radius: 16px;
  border: 1px solid rgba(35, 73, 116, 0.24);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 30px rgba(26, 43, 63, 0.2);
  padding: 14px 16px;
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.platform-loading-spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid rgba(35, 73, 116, 0.2);
  border-top-color: #264f80;
  animation: platform-spin 0.9s linear infinite;
}

.platform-loading-box strong {
  color: #1a3658;
}

.platform-loading-box small {
  color: var(--ink-2);
  font-weight: 700;
}

@keyframes platform-spin {
  to {
    transform: rotate(360deg);
  }
}

.ideas-view,
.chats-view {
  display: none;
}

.ideas-view.active,
.chats-view.active {
  display: grid;
  gap: 12px;
  align-content: start;
}

#panel-ideas .ideas-view.active,
#panel-chats .chats-view.active {
  min-height: 0;
  height: 100%;
}

#panel-ideas .panel-scroll {
  overflow: hidden;
  min-height: 0;
  height: 100%;
  padding: 10px 8px 0 5px;
}

.ideas-hero h4 {
  margin: 0 0 6px;
  font-size: 1.8rem;
}

.ideas-hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.ideas-hero-head h4 {
  margin: 0;
}

.ideas-hero p {
  margin: 0;
}

#ideas-view-home .ideas-actions-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border-top: 1px dashed rgba(49, 68, 89, 0.24);
  padding-top: 12px;
  align-items: stretch;
}

#ideas-view-home .ideas-go-btn.btn.ghost {
  min-width: 0;
  width: 100%;
  max-width: none;
  min-height: 96px;
  border-radius: 18px;
  border: 1px solid rgba(35, 73, 116, 0.24);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(236, 246, 255, 0.95));
  box-shadow: 0 10px 20px rgba(35, 73, 116, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 14px 54px 14px 14px;
  color: var(--ink-1);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

#ideas-view-home .ideas-go-btn.btn.ghost::before {
  content: "";
  position: absolute;
  right: -54px;
  bottom: -52px;
  width: 170px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(191, 31, 36, 0.2) 0%, rgba(191, 31, 36, 0) 72%);
  z-index: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

#ideas-view-home .ideas-go-btn.btn.ghost::after {
  content: "→";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(35, 73, 116, 0.28);
  background: rgba(255, 255, 255, 0.9);
  color: #234974;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.98rem;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(35, 73, 116, 0.14);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  z-index: 1;
}

#ideas-view-home .ideas-go-btn.btn.ghost > * {
  position: relative;
  z-index: 1;
}

#ideas-view-home .ideas-go-btn.btn.ghost:hover {
  transform: translateY(-2px);
  filter: none;
  border-color: rgba(35, 73, 116, 0.38);
  box-shadow: 0 14px 24px rgba(35, 73, 116, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

#ideas-view-home .ideas-go-btn.btn.ghost:hover::before {
  transform: translateY(-6px) scale(1.04);
  opacity: 0.9;
}

#ideas-view-home .ideas-go-btn.btn.ghost:hover::after {
  transform: translateY(-50%) translateX(2px);
  border-color: rgba(35, 73, 116, 0.42);
}

#ideas-view-home .ideas-go-btn.btn.ghost:active {
  transform: translateY(0);
}

#ideas-view-home .ideas-go-btn[data-ideas-screen="create"].btn.ghost {
  border-color: rgba(191, 31, 36, 0.32);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(255, 241, 238, 0.96));
}

#ideas-view-home .ideas-go-btn[data-ideas-screen="mine"].btn.ghost {
  border-color: rgba(35, 73, 116, 0.3);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(236, 245, 255, 0.96));
}

#ideas-view-home .ideas-go-btn[data-ideas-screen="summary"].btn.ghost {
  border-color: rgba(148, 102, 21, 0.34);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 235, 0.96));
}

#ideas-view-home .ideas-go-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  border: 1px solid rgba(35, 73, 116, 0.3);
  background: linear-gradient(165deg, rgba(35, 73, 116, 0.16), rgba(191, 31, 36, 0.2));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#ideas-view-home .ideas-go-btn[data-ideas-screen="create"] .ideas-go-icon {
  border-color: rgba(191, 31, 36, 0.38);
  background: linear-gradient(165deg, rgba(191, 31, 36, 0.22), rgba(230, 98, 84, 0.18));
}

#ideas-view-home .ideas-go-btn[data-ideas-screen="mine"] .ideas-go-icon {
  border-color: rgba(35, 73, 116, 0.36);
  background: linear-gradient(165deg, rgba(35, 73, 116, 0.24), rgba(77, 125, 176, 0.18));
}

#ideas-view-home .ideas-go-btn[data-ideas-screen="summary"] .ideas-go-icon {
  border-color: rgba(148, 102, 21, 0.36);
  background: linear-gradient(165deg, rgba(191, 141, 49, 0.24), rgba(243, 186, 88, 0.16));
}

#ideas-view-home .ideas-go-btn.btn.ghost:hover .ideas-go-icon {
  transform: translateY(-1px) scale(1.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74), 0 8px 14px rgba(35, 73, 116, 0.18);
}

#ideas-view-home .ideas-go-icon svg {
  width: 21px;
  height: 21px;
  stroke: #234974;
  fill: none;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#ideas-view-home .ideas-go-copy {
  display: grid;
  gap: 3px;
}

#ideas-view-home .ideas-go-copy strong {
  color: var(--ink-0);
  font-size: 1.08rem;
  line-height: 1.18;
  letter-spacing: 0.01em;
}

#ideas-view-home .ideas-go-copy small {
  color: var(--ink-2);
  font-size: 0.81rem;
  font-weight: 700;
  line-height: 1.32;
}

.ideas-topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  position: relative;
  min-height: 56px;
}

.ideas-topbar h4 {
  margin: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 1.6rem;
  width: max-content;
  max-width: 68%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ideas-topbar-right {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ideas-topbar-right label {
  margin: 0;
}

.ideas-topbar-right select {
  min-width: 190px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink-1);
  font-weight: 800;
  padding: 0 38px 0 12px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #224974 50%),
    linear-gradient(135deg, #224974 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 17px,
    calc(100% - 12px) 17px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

#ideas-view-home {
  align-content: stretch;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  overflow: hidden;
}

#ideas-view-home .ideas-hero {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: start;
  overflow: hidden;
  position: relative;
}

#ideas-view-home .section-grid {
  --home-grid-fade-top: 14px;
  --home-grid-fade: 34px;
  margin-top: 0;
  max-height: none;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 6px 34px 0;
  align-content: start;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
  z-index: 1;
  scroll-padding-bottom: 34px;
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) var(--home-grid-fade-top),
    rgba(0, 0, 0, 1) calc(100% - var(--home-grid-fade)),
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) var(--home-grid-fade-top),
    rgba(0, 0, 0, 1) calc(100% - var(--home-grid-fade)),
    rgba(0, 0, 0, 0) 100%
  );
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

#ideas-view-home .section-grid::-webkit-scrollbar {
  width: 0;
  height: 0;
}

#ideas-view-home .section-grid::before {
  content: "";
  grid-column: 1 / -1;
  height: 10px;
}

#ideas-view-home .ideas-hero::after {
  display: none;
  content: none;
}

#ideas-view-section {
  --section-insights-cut: 44px;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 0;
  min-height: 0;
  overflow: hidden;
}

#ideas-section-topbar {
  grid-template-columns: auto 1fr auto;
  min-height: 0;
  align-items: center;
  margin-bottom: 10px;
}

#ideas-section-topbar h4 {
  position: static;
  transform: none;
  width: 100%;
  max-width: none;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  text-align: center;
  font-size: 2rem;
  line-height: 1.1;
}

.section-insights {
  margin: 2px 0 2px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  position: relative;
  z-index: 3;
}

#ideas-view-section .section-insights {
  margin: 2px 0 0;
  z-index: 4;
  isolation: auto;
  overflow: visible;
  background: transparent;
  border-radius: 0;
}

#ideas-view-section .section-insights::after {
  display: none;
  content: none;
}

#ideas-view-section .section-insights article {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: rgba(251, 253, 255, 1);
}

.section-insights article {
  border: 1px solid rgba(35, 73, 116, 0.2);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  gap: 4px;
}

.section-insights span {
  color: var(--ink-2);
  font-size: 0.8rem;
  font-weight: 700;
}

.section-insights strong {
  color: #224974;
  font-size: 1.2rem;
  line-height: 1;
}

.proposal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
  padding-bottom: 8px;
  min-height: 220px;
}

#proposal-list.proposal-grid,
#my-proposals-list.proposal-grid {
  margin-top: 0;
  max-height: none;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 6px 0 0;
  scroll-padding-top: 12px;
  scroll-padding-bottom: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#ideas-view-section #proposal-list.proposal-grid {
  --section-list-entry-gap: 10px;
  --section-list-fade-top: 12px;
  --section-list-bottom-gap: 10px;
  margin-top: calc(var(--section-insights-cut) * -1);
  scroll-padding-top: calc(var(--section-insights-cut) + var(--section-list-entry-gap) + 8px);
  margin-bottom: 0;
  height: calc(100% + var(--section-insights-cut));
  padding-top: calc(var(--section-insights-cut) + var(--section-list-entry-gap));
  padding-right: 0;
  padding-bottom: var(--section-list-bottom-gap);
  position: relative;
  z-index: 1;
  gap: 8px;
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) var(--section-list-fade-top),
    rgba(0, 0, 0, 1) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) var(--section-list-fade-top),
    rgba(0, 0, 0, 1) 100%
  );
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

body.platform-focus .platform-workspace.ideas-section-active {
  padding-bottom: 0;
}

body.platform-focus .platform-workspace.chats-panel-active {
  padding-bottom: 0;
}

#proposal-list.proposal-grid::-webkit-scrollbar,
#my-proposals-list.proposal-grid::-webkit-scrollbar {
  width: 0;
  height: 0;
}

#proposal-list.proposal-grid::before,
#my-proposals-list.proposal-grid::before {
  content: "";
  grid-column: 1 / -1;
  height: 10px;
}

#my-proposals-list.proposal-grid::before {
  display: none;
  content: none;
}

#ideas-view-section #proposal-list.proposal-grid::before {
  display: none;
  content: none;
}

#ideas-view-create {
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

#ideas-view-mine {
  grid-template-rows: auto auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

#ideas-view-summary {
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.mine-dashboard,
.summary-dashboard {
  margin-top: 8px;
  display: grid;
  gap: 10px;
}

#ideas-summary.summary-dashboard {
  max-height: none;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
  padding-bottom: 0;
  scroll-padding-bottom: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 18px,
    rgba(0, 0, 0, 1) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 18px,
    rgba(0, 0, 0, 1) 100%
  );
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

#ideas-summary.summary-dashboard::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.mine-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.mine-kpi-grid article {
  border: 1px solid rgba(35, 73, 116, 0.2);
  border-radius: 14px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.95), rgba(239, 247, 255, 0.92));
  padding: 10px;
  display: grid;
  gap: 4px;
}

.mine-kpi-grid span {
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 700;
}

.mine-kpi-grid strong {
  color: #224974;
  font-size: 1.24rem;
  line-height: 1;
}

.mine-analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mine-chart-card,
.summary-chart-card {
  border: 1px solid rgba(35, 73, 116, 0.2);
  border-radius: 14px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.95), rgba(237, 246, 255, 0.92));
  padding: 10px;
  display: grid;
  gap: 8px;
  min-height: 0;
}

.mine-chart-card h5,
.summary-chart-card h5 {
  margin: 0;
  color: var(--ink-0);
  font-size: 1rem;
}

.analytics-bars {
  display: grid;
  gap: 7px;
  min-height: 0;
}

.analytics-bars.compact {
  gap: 6px;
}

.analytics-row {
  border: 1px solid rgba(35, 73, 116, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  padding: 8px 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  text-align: left;
  min-height: 74px;
}

button.analytics-row {
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

button.analytics-row:hover {
  transform: translateY(-1px);
  border-color: rgba(191, 141, 49, 0.46);
  box-shadow: 0 8px 16px rgba(20, 33, 48, 0.1);
}

.analytics-row-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.analytics-row-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.analytics-row-head span {
  color: var(--ink-1);
  font-weight: 700;
  font-size: 0.86rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-row-head strong {
  color: #224974;
  font-size: 0.88rem;
}

.analytics-row small {
  color: var(--ink-2);
  font-size: 0.74rem;
  font-weight: 700;
}

.analytics-row-visual {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}

.analytics-ring {
  --ring-size: 50px;
  --ring-color: #234974;
  --analytics-ring: 0deg;
  width: var(--ring-size);
  height: var(--ring-size);
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.98) 60%, rgba(255, 255, 255, 0) 61%),
    conic-gradient(from 90deg, var(--ring-color) 0deg, var(--ring-color) var(--analytics-ring), rgba(35, 73, 116, 0.16) var(--analytics-ring), rgba(35, 73, 116, 0.16) 360deg);
  box-shadow: inset 0 0 0 1px rgba(35, 73, 116, 0.18);
  animation: analytics-ring-in 0.34s ease;
}

.analytics-ring span {
  font-size: 0.68rem;
  font-weight: 900;
  color: var(--ring-color);
  line-height: 1;
}

.analytics-ring.kind-favor {
  --ring-color: #1f7a4d;
}

.analytics-ring.kind-contra {
  --ring-color: #a32025;
}

.analytics-ring.kind-total {
  --ring-color: #234974;
}

.analytics-bars.compact .analytics-row {
  min-height: 68px;
}

.analytics-bars.compact .analytics-ring {
  --ring-size: 44px;
}

@keyframes analytics-ring-in {
  from {
    opacity: 0.6;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.analytics-empty {
  border: 1px dashed rgba(35, 73, 116, 0.3);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink-2);
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
  padding: 12px;
}

.mine-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.mine-search,
.mine-sort {
  margin: 0;
}

.mine-search input,
.mine-sort select {
  width: 100%;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(35, 73, 116, 0.26);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink-1);
  font-weight: 700;
  padding: 0 12px;
}

.mine-sort select {
  min-width: 220px;
}

#my-proposals-list.mine-proposal-grid {
  margin-top: 10px;
  padding-top: 0;
  grid-auto-rows: minmax(168px, auto);
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 16px,
    rgba(0, 0, 0, 1) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 16px,
    rgba(0, 0, 0, 1) 100%
  );
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

#ideas-view-detail,
#spectator-view-detail {
  min-height: 0;
  overflow: hidden;
  position: relative;
  --detail-fade-top: 26px;
}

#ideas-view-detail.active,
#spectator-view-detail.active {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
}

#ideas-detail-scroll,
#spectator-detail-scroll {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px 2px 0 0;
  scroll-padding-top: 18px;
  scroll-padding-bottom: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) var(--detail-fade-top),
    rgba(0, 0, 0, 1) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) var(--detail-fade-top),
    rgba(0, 0, 0, 1) 100%
  );
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

#spectator-detail-scroll {
  padding-bottom: 0;
  scroll-padding-bottom: 0;
}

#ideas-detail-scroll::-webkit-scrollbar,
#spectator-detail-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}

#ideas-view-detail .mirror,
#spectator-view-detail .mirror {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  flex: 0 0 auto;
  min-height: 0;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  transition: gap 0.24s ease;
}

#ideas-view-detail .debate-side,
#spectator-view-detail .debate-side {
  flex: 1 1 calc(50% - 5px);
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 8px;
  opacity: 1;
  transition:
    flex-basis 0.3s cubic-bezier(0.2, 0.82, 0.2, 1),
    flex-grow 0.3s cubic-bezier(0.2, 0.82, 0.2, 1),
    max-width 0.3s cubic-bezier(0.2, 0.82, 0.2, 1),
    opacity 0.2s ease,
    padding 0.2s ease,
    box-shadow 0.24s ease,
  border-color 0.24s ease;
  min-height: 0;
}

#ideas-view-detail .debate-side .mirror-head,
#spectator-view-detail .debate-side .mirror-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 8px;
}

#ideas-view-detail .debate-side .mirror-head h3,
#spectator-view-detail .debate-side .mirror-head h3 {
  margin: 0;
  align-items: flex-start;
  flex-wrap: wrap;
  line-height: 1.16;
  min-width: 0;
}

#ideas-view-detail .debate-side .mirror-head .vote-open-btn {
  margin-left: 0;
  justify-self: end;
  align-self: start;
}

#ideas-view-detail .debate-side .mirror-head .vote-open-btn.active {
  border-color: rgba(35, 73, 116, 0.48);
  background: rgba(35, 73, 116, 0.14);
  color: #1f3f63;
}

#ideas-view-detail .debate-side .mirror-head .vote-open-btn.hidden {
  display: none;
}

#ideas-view-detail #favor-list.stack.compact,
#ideas-view-detail #contra-list.stack.compact,
#spectator-view-detail #spectator-favor-list.stack.compact,
#spectator-view-detail #spectator-contra-list.stack.compact {
  margin-top: 0;
  max-height: none;
  min-height: 0;
  overflow: visible;
  padding-right: 0;
}

#ideas-view-detail .mirror.expanded-favor #side-favor,
#ideas-view-detail .mirror.expanded-contra #side-contra {
  flex: 1 1 100%;
  max-width: 100%;
  z-index: 3;
  box-shadow: 0 16px 28px rgba(25, 43, 67, 0.12);
  border-color: rgba(35, 73, 116, 0.26);
}

#ideas-view-detail .mirror.expanded-favor,
#ideas-view-detail .mirror.expanded-contra {
  gap: 0;
}

#ideas-view-detail .mirror.expanded-favor #side-contra {
  flex: 0 0 0%;
  max-width: 0;
  min-width: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  border-width: 0;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  margin: 0;
}

#ideas-view-detail .mirror.expanded-contra #side-favor {
  flex: 0 0 0%;
  max-width: 0;
  min-width: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  border-width: 0;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  margin: 0;
}


.proposal-card {
  min-height: 140px;
  align-content: start;
}

.proposal-card h4 {
  font-size: 1.08rem;
}

#proposal-list .proposal-card,
#my-proposals-list .proposal-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#proposal-list .proposal-card h4,
#my-proposals-list .proposal-card h4 {
  margin: 0;
  width: 100%;
  line-height: 1.2;
  overflow-wrap: anywhere;
  min-height: calc(1.2em * 3);
  max-height: calc(1.2em * 3);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

#proposal-list .proposal-vote-state,
#my-proposals-list .proposal-vote-state {
  margin-top: 5px;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(35, 73, 116, 0.24);
  background: rgba(35, 73, 116, 0.08);
  color: #234974;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  padding: 3px 8px;
}

#proposal-list .proposal-vote-state.up,
#my-proposals-list .proposal-vote-state.up {
  border-color: rgba(31, 122, 77, 0.36);
  background: rgba(31, 122, 77, 0.14);
  color: #1f7a4d;
}

#proposal-list .proposal-vote-state.down,
#my-proposals-list .proposal-vote-state.down {
  border-color: rgba(163, 32, 37, 0.36);
  background: rgba(163, 32, 37, 0.14);
  color: #a32025;
}

#proposal-list .proposal-vote-state.is-empty,
#my-proposals-list .proposal-vote-state.is-empty {
  visibility: hidden;
}

#proposal-list .proposal-card .vote-tags,
#my-proposals-list .proposal-card .vote-tags {
  margin-top: auto;
  padding-top: 6px;
}

.section-empty {
  grid-column: 1 / -1;
  border: 1px dashed rgba(35, 73, 116, 0.34);
  border-radius: 16px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.94), rgba(236, 245, 255, 0.9));
  padding: 22px;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.section-empty h5 {
  margin: 0;
  color: var(--ink-0);
  font-size: 1.3rem;
}

.section-empty p {
  margin: 0;
  color: var(--ink-2);
  max-width: 62ch;
}

.vote-tags {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.vt {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.78rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.vt svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vt.up {
  border-color: rgba(45, 139, 97, 0.35);
  background: rgba(45, 139, 97, 0.12);
  color: #1f7a4d;
}

.vt.down {
  border-color: rgba(191, 31, 36, 0.35);
  background: rgba(191, 31, 36, 0.12);
  color: #a32025;
}

.vt.total {
  border-color: rgba(35, 73, 116, 0.32);
  background: rgba(35, 73, 116, 0.1);
  color: #214a75;
}

.idea-metrics {
  display: grid;
  grid-template-columns: 1fr 240px 1fr;
  gap: 10px;
  align-items: center;
}

.metric-box {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  padding: 14px;
  display: grid;
  gap: 6px;
  text-align: center;
}

.metric-box span {
  color: var(--ink-2);
  font-weight: 700;
}

.metric-box strong {
  font-size: 2rem;
  line-height: 1;
  transition: color 0.2s ease;
}

.metric-favor strong { color: var(--vote-favor); }
.metric-contra strong { color: var(--vote-contra); }

.metric-circle {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  margin: 0 auto;
  display: grid;
  place-items: center;
  background: conic-gradient(from 90deg, var(--vote-favor) 0deg, var(--vote-favor) 180deg, var(--vote-contra) 180deg, var(--vote-contra) 360deg);
  position: relative;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.metric-circle::before {
  content: "";
  width: 156px;
  height: 156px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.96);
}

.metric-circle-center {
  position: absolute;
  text-align: center;
}

.metric-circle-center strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
}

.metric-impact {
  animation: metric-impact-pop 0.62s cubic-bezier(0.22, 0.86, 0.22, 1);
}

.metric-value-impact {
  animation: metric-value-glow 0.58s ease;
}

@keyframes metric-impact-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.045); box-shadow: 0 12px 30px rgba(30, 56, 88, 0.16); }
  100% { transform: scale(1); }
}

@keyframes metric-value-glow {
  0% { transform: translateY(0); text-shadow: none; }
  45% { transform: translateY(-2px); text-shadow: 0 6px 16px rgba(35, 73, 116, 0.2); }
  100% { transform: translateY(0); text-shadow: none; }
}

.metric-circle-center small {
  color: var(--ink-2);
  font-weight: 700;
}

.vote-panel {
  padding: 14px;
}

.mirror-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.mirror-head h3 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.debate-count {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(35, 73, 116, 0.28);
  background: rgba(35, 73, 116, 0.08);
  color: #244f7b;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 8px;
}

.chat-live {
  color: #1f7a4d;
  font-weight: 800;
  border-radius: 999px;
  border: 1px solid rgba(31, 122, 77, 0.32);
  background: rgba(45, 139, 97, 0.12);
  padding: 4px 10px;
  white-space: nowrap;
}

.messenger-head {
  align-items: flex-end;
  flex-wrap: wrap;
  row-gap: 10px;
}

.chat-head-copy {
  flex: 1 1 320px;
  min-width: 260px;
}

.chat-head-copy h3 {
  margin: 0 0 4px;
}

.chat-head-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: stretch;
  gap: 10px;
  flex: 1 1 420px;
  min-width: 280px;
}

.chat-search-wrap {
  min-width: 0;
  max-width: none;
  flex: 1 1 auto;
}

.chat-search-wrap input {
  width: 100%;
  height: 42px;
  line-height: 1.2;
  border-radius: 999px;
  border: 1px solid rgba(35, 73, 116, 0.24);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-0);
  padding: 0 16px;
  font-size: 0.9rem;
  font-weight: 650;
  appearance: none;
  -webkit-appearance: none;
}

.chat-search-wrap input::placeholder {
  color: rgba(49, 68, 89, 0.82);
  font-weight: 600;
}

.chat-search-wrap.compact {
  min-width: 0;
  max-width: none;
  flex: 1 1 auto;
  position: relative;
  z-index: 2;
}

.chat-search-wrap.compact input {
  height: 36px;
  background: #ffffff;
  opacity: 1;
}

.chat-thread-list {
  margin-top: 0;
  display: grid;
  gap: 8px;
  max-height: min(68vh, 620px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 6px 10px 2px;
  scroll-padding-top: 14px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.chat-thread-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.chat-thread-list.compact {
  margin-top: 0;
  max-height: none;
}

.chat-thread-item {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(35, 73, 116, 0.2);
  border-radius: 16px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.98), rgba(240, 248, 255, 0.95));
  color: var(--ink-0);
  padding: 10px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.chat-thread-item:hover {
  transform: none;
  border-color: rgba(191, 141, 49, 0.52);
  box-shadow: 0 14px 22px rgba(24, 37, 54, 0.16);
}

.chat-thread-item.selected {
  border-color: rgba(35, 73, 116, 0.45);
  box-shadow: 0 0 0 2px rgba(35, 73, 116, 0.1);
}

.chat-thread-item.joined {
  border-color: rgba(31, 122, 77, 0.35);
  background: linear-gradient(170deg, rgba(244, 255, 249, 0.98), rgba(238, 250, 243, 0.95));
}

.chat-thread-item.full {
  border-color: rgba(191, 31, 36, 0.34);
  background: linear-gradient(170deg, rgba(255, 249, 249, 0.98), rgba(255, 242, 242, 0.95));
}

.chat-thread-item.compact {
  padding: 9px;
}

.chat-thread-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(35, 73, 116, 0.32);
  background: linear-gradient(180deg, rgba(35, 73, 116, 0.94), rgba(49, 90, 135, 0.94));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.96rem;
  font-weight: 900;
}

.chat-thread-body {
  min-width: 0;
}

.chat-thread-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.chat-thread-top h4 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.12;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-thread-top small {
  color: var(--ink-2);
  font-size: 0.74rem;
  font-weight: 800;
}

.chat-thread-sub {
  color: var(--ink-2);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-thread-body p {
  margin: 4px 0 0;
  color: var(--ink-1);
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-thread-side {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.chat-group-state {
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(35, 73, 116, 0.26);
  background: rgba(35, 73, 116, 0.08);
  color: #234974;
}

.chat-group-state.joined {
  border-color: rgba(31, 122, 77, 0.34);
  background: rgba(31, 122, 77, 0.14);
  color: #1f7a4d;
}

.chat-group-state.full {
  border-color: rgba(191, 31, 36, 0.34);
  background: rgba(191, 31, 36, 0.12);
  color: #a32025;
}

.chat-thread-active {
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(35, 73, 116, 0.26);
  background: rgba(35, 73, 116, 0.08);
  color: #234974;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 900;
}

.chat-app-shell {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 14px;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  transition: grid-template-columns 0.22s ease;
}

.chat-app-shell.sidebar-collapsed {
  grid-template-columns: 0 1fr;
}

.chat-app-shell.sidebar-collapsed .chat-sidebar {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-10px);
}

.chat-sidebar {
  --group-search-cut: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 246, 255, 0.92));
  padding: 12px 12px 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  min-width: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  overflow: hidden;
}

.chat-sidebar-head {
  display: grid;
  gap: 8px;
  position: sticky;
  top: 0;
  z-index: 5;
  padding-bottom: 0;
  margin-bottom: 0;
  background: transparent;
  border-bottom: 0;
}

.chat-sidebar-head h5 {
  margin: 0;
}

.chat-sidebar-head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.chat-sidebar-menu-wrap,
.chat-room-menu-wrap {
  position: relative;
}

.chat-inline-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  border: 1px solid rgba(35, 73, 116, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 28px rgba(24, 37, 54, 0.18);
  padding: 6px;
  display: grid;
  gap: 4px;
  z-index: 20;
}

.chat-inline-menu-item {
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-0);
  border-radius: 8px;
  min-height: 34px;
  font-size: 0.88rem;
  font-weight: 800;
  text-align: left;
  padding: 0 10px;
  cursor: pointer;
}

.chat-inline-menu-item:hover {
  border-color: rgba(35, 73, 116, 0.2);
  background: rgba(237, 245, 255, 0.9);
}

.chat-inline-menu-item:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.chat-conversation {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
  min-width: 0;
  border: 1px solid rgba(35, 73, 116, 0.16);
  border-radius: 20px;
  padding: 14px 16px 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 248, 255, 0.9));
  overflow: hidden;
}

.chat-room-topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
}

.chat-room-topbar > .btn {
  height: 36px;
  border-radius: 999px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  width: fit-content;
}

.chat-room-topbar > .btn.active {
  border-color: rgba(35, 73, 116, 0.36);
  background: rgba(226, 238, 251, 0.92);
  color: #1f4268;
}

.chat-room-menu-wrap > .btn,
.chat-sidebar-menu-wrap > .btn {
  height: 36px;
  border-radius: 999px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.chat-room-menu-wrap > .btn.active,
.chat-sidebar-menu-wrap > .btn.active {
  border-color: rgba(35, 73, 116, 0.36);
  background: rgba(226, 238, 251, 0.92);
  color: #1f4268;
}

.chat-room-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.chat-room-title-wrap {
  min-width: 0;
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
}

.chat-room-title-wrap h4 {
  margin: 0;
  font-size: 1.72rem;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

#chat-room-subtitle {
  margin-top: 0;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-room-subline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.chat-details-panel {
  border: 1px solid rgba(35, 73, 116, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  padding: 12px;
  display: grid;
  gap: 12px;
}

.chat-room-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.chat-room-meta span {
  border-radius: 999px;
  border: 1px solid rgba(35, 73, 116, 0.26);
  background: rgba(247, 251, 255, 0.96);
  color: #244f7b;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 10px;
}

.chat-room-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  min-height: 0;
  height: 100%;
  align-items: stretch;
}

.chat-room-thread {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 11px;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  overflow: hidden;
}

.chat-messages-shell {
  position: relative;
  min-height: 0;
  display: grid;
}

.chat-readonly-badge {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  border: 1px solid rgba(35, 73, 116, 0.24);
  border-radius: 999px;
  background: rgba(235, 244, 253, 0.8);
  backdrop-filter: blur(3px);
  color: #2a4f75;
  padding: 6px 12px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  pointer-events: none;
}

#chat-messages.whatsapp-thread {
  margin-top: 0;
  max-height: none;
  height: 100%;
  min-height: 0;
  overflow: auto;
  padding: 14px 14px 12px;
  border: 1px solid rgba(35, 73, 116, 0.14);
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(214, 232, 248, 0.3), transparent 55%),
    radial-gradient(circle at bottom left, rgba(224, 236, 250, 0.22), transparent 58%),
    repeating-linear-gradient(45deg, rgba(35, 73, 116, 0.016) 0 1px, transparent 1px 18px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 251, 255, 0.96));
  box-shadow: none;
}

.chat-conversation.joined-mode {
  background: linear-gradient(180deg, rgba(244, 255, 249, 0.96), rgba(234, 248, 239, 0.9));
}

#chat-messages.whatsapp-thread.joined-mode {
  border-color: rgba(31, 122, 77, 0.24);
  background:
    radial-gradient(circle at top right, rgba(188, 230, 211, 0.24), transparent 55%),
    radial-gradient(circle at bottom left, rgba(183, 224, 205, 0.18), transparent 58%),
    repeating-linear-gradient(45deg, rgba(31, 122, 77, 0.02) 0 1px, transparent 1px 18px),
    linear-gradient(180deg, rgba(250, 255, 252, 0.96), rgba(241, 252, 245, 0.96));
}

#chat-messages.whatsapp-thread.joined-mode .chat-msg.other {
  border-color: rgba(31, 122, 77, 0.2);
  --chat-tail-border: rgba(31, 122, 77, 0.2);
}

#chat-messages.whatsapp-thread.joined-mode .chat-msg.me {
  border-color: rgba(31, 122, 77, 0.34);
  --chat-tail-fill: linear-gradient(175deg, rgba(215, 244, 227, 0.96), rgba(239, 252, 245, 0.96));
  --chat-tail-border: rgba(31, 122, 77, 0.34);
}

#chat-messages.whatsapp-thread.readonly-mode {
  padding-top: 46px;
}

.chat-readonly-cta {
  border: 1px solid rgba(35, 73, 116, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px;
  display: grid;
}

.chat-readonly-cta .btn {
  width: 100%;
  min-height: 40px;
  border-radius: 10px;
}

.chat-system-intro {
  width: min(92%, 760px);
  margin: 2px auto 10px;
  border-radius: 14px;
  border: 1px solid rgba(35, 73, 116, 0.24);
  background:
    radial-gradient(circle at top right, rgba(191, 141, 49, 0.16), transparent 58%),
    linear-gradient(180deg, rgba(249, 253, 255, 0.98), rgba(237, 245, 255, 0.96));
  color: #244f7b;
  box-shadow: 0 8px 18px rgba(24, 37, 54, 0.1);
  padding: 8px 12px;
  text-align: center;
  display: grid;
  gap: 4px;
}

.chat-system-intro strong {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.chat-system-intro p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  font-weight: 700;
}

.chat-system-intro small {
  font-size: 0.74rem;
  font-weight: 800;
  color: #1f7a4d;
}

.chat-day-separator {
  margin: 4px auto;
  border-radius: 999px;
  border: 1px solid rgba(35, 73, 116, 0.22);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-2);
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 800;
}

.chat-typing {
  width: fit-content;
  max-width: min(80%, 440px);
  border-radius: 999px;
  border: 1px solid rgba(35, 73, 116, 0.2);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-1);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 6px 12px;
  margin: 2px 0 0 2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chat-typing::after {
  content: "...";
  width: 16px;
  overflow: hidden;
  animation: chat-typing-dots 1.1s steps(4, end) infinite;
}

@keyframes chat-typing-dots {
  0% { width: 0; }
  100% { width: 16px; }
}

.chat-msg {
  --chat-tail-size: 12px;
  --chat-tail-offset-y: 15px;
  width: fit-content;
  max-width: min(84%, 540px);
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  padding: 9px 11px;
  box-shadow: 0 4px 10px rgba(22, 35, 52, 0.08);
  position: relative;
  overflow: visible;
  isolation: isolate;
}

.chat-msg > * {
  position: relative;
  z-index: 2;
}

.chat-msg p {
  margin: 0;
}

.chat-msg-meta {
  margin-top: 6px;
  display: inline-flex;
  gap: 8px;
  color: var(--ink-2);
  font-size: 0.72rem;
  font-weight: 700;
}

.chat-msg.other {
  margin-right: auto;
  --chat-tail-fill: rgba(255, 255, 255, 0.96);
  background: var(--chat-tail-fill);
  --chat-tail-border: rgba(35, 73, 116, 0.2);
}

.chat-msg.other::before {
  content: "";
  position: absolute;
  left: -6px;
  top: var(--chat-tail-offset-y);
  width: var(--chat-tail-size);
  height: var(--chat-tail-size);
  transform: rotate(45deg);
  background: var(--chat-tail-fill);
  border-left: 1px solid var(--chat-tail-border);
  border-bottom: 1px solid var(--chat-tail-border);
  border-radius: 0 0 0 3px;
  z-index: 1;
}

.chat-msg.other::after {
  content: "";
  position: absolute;
  left: -1px;
  top: calc(var(--chat-tail-offset-y) - 1px);
  width: 8px;
  height: calc(var(--chat-tail-size) + 2px);
  background: var(--chat-tail-fill);
  border-radius: 6px 0 0 6px;
  z-index: 1;
}

.chat-msg.me {
  margin-left: auto;
  border-color: rgba(35, 73, 116, 0.34);
  --chat-tail-fill: linear-gradient(175deg, rgba(232, 243, 255, 0.96), rgba(250, 253, 255, 0.96));
  background: var(--chat-tail-fill);
  --chat-tail-border: rgba(35, 73, 116, 0.34);
}

.chat-msg.me::before {
  content: "";
  position: absolute;
  right: -6px;
  top: var(--chat-tail-offset-y);
  width: var(--chat-tail-size);
  height: var(--chat-tail-size);
  transform: rotate(45deg);
  background: var(--chat-tail-fill);
  border-right: 1px solid var(--chat-tail-border);
  border-top: 1px solid var(--chat-tail-border);
  border-radius: 0 3px 0 0;
  z-index: 1;
}

.chat-msg.me::after {
  content: "";
  position: absolute;
  right: -1px;
  top: calc(var(--chat-tail-offset-y) - 1px);
  width: 8px;
  height: calc(var(--chat-tail-size) + 2px);
  background: var(--chat-tail-fill);
  border-radius: 0 6px 6px 0;
  z-index: 1;
}

.chat-compose {
  position: static;
  background: rgba(255, 255, 255, 0.95);
  padding: 2px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2px;
  border: 1px solid rgba(35, 73, 116, 0.22);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(24, 37, 54, 0.08);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.chat-compose:focus-within {
  border-color: rgba(191, 141, 49, 0.58);
  box-shadow: 0 0 0 3px rgba(191, 141, 49, 0.14);
}

.chat-compose.read-only {
  opacity: 0.86;
}

.chat-compose textarea {
  resize: none;
  min-height: 36px;
  max-height: 88px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  padding: 7px 10px;
  box-shadow: none;
  font-size: 0.9rem;
  line-height: 1.25;
  transition: height 0.16s ease, border-color 0.16s ease;
}

.chat-compose textarea:focus {
  border-color: transparent !important;
  box-shadow: none !important;
}

.chat-compose .btn {
  height: 36px;
  min-width: 92px;
  border-radius: 10px;
  align-self: end;
  margin: 1px 1px 1px 0;
  padding: 0 12px;
  font-size: 0.95rem;
  box-shadow: 0 6px 12px rgba(191, 31, 36, 0.2);
}

.chat-compose-hint {
  margin: 0;
  font-size: 0.84rem;
  padding: 0 2px 2px;
}

.chat-details-people {
  border: 1px solid rgba(35, 73, 116, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  padding: 9px;
  display: grid;
  gap: 8px;
}

.chat-details-people h5 {
  margin: 0;
  font-size: 0.92rem;
}

.chat-active-list {
  display: grid;
  gap: 7px;
  max-height: min(34vh, 260px);
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.chat-active-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.chat-active-item {
  border: 0;
  border-left: 3px solid rgba(35, 73, 116, 0.24);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.84);
  padding: 8px 10px;
  display: grid;
  gap: 2px;
}

.chat-active-item strong {
  color: var(--ink-0);
  font-size: 0.86rem;
}

.chat-active-item small {
  color: var(--ink-2);
  font-size: 0.74rem;
  font-weight: 700;
}

.chat-active-item.active {
  border-left-color: rgba(31, 122, 77, 0.58);
  background: rgba(240, 250, 244, 0.95);
}

.chat-conversation.details-open .chat-room-grid,
.chat-conversation.details-open .chat-readonly-cta,
.chat-conversation.details-open .chat-readonly-badge,
.chat-conversation.details-open .chat-compose-hint {
  display: none;
}

.chat-mobile-groups {
  display: none;
}

#panel-chats .panel-scroll {
  overflow: hidden;
  min-height: 0;
  height: 100%;
  padding: 10px 8px 0 5px;
}

#panel-chats .chats-view.active {
  min-height: 0;
  height: 100%;
}

#chats-view-home {
  grid-template-rows: auto minmax(0, 1fr);
  row-gap: 10px;
  align-content: stretch;
  min-height: 0;
  overflow: hidden;
}

#chats-view-home .chat-panel-head.messenger-head {
  position: relative;
  z-index: 2;
  background: linear-gradient(170deg, #ffffff, #edf4ff);
  opacity: 1;
  isolation: isolate;
  overflow: hidden;
}

#chats-view-home #room-list {
  max-height: none;
  min-height: 0;
  height: 100%;
  align-self: stretch;
  overflow-y: auto;
  overflow-x: hidden;
  margin-top: 0;
  margin-bottom: 0;
  padding: 8px 0 10px;
  scroll-padding-top: 8px;
  scroll-padding-bottom: 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#chats-view-home #room-list > .chat-thread-item:first-of-type {
  margin-top: 0;
}

#chats-view-home #room-list > .muted:only-child {
  margin: 4px 2px 0;
  padding: 10px 12px;
  border: 1px dashed rgba(35, 73, 116, 0.26);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-1);
  font-weight: 700;
}

#chats-view-home #room-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

#chats-view-room {
  grid-template-rows: minmax(0, 1fr) auto;
}

.chat-sidebar .chat-thread-list.compact {
  max-height: none;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  margin-top: calc(var(--group-search-cut) * -1);
  padding: 0 2px 0 0;
  scroll-padding-top: var(--group-search-cut);
  position: relative;
  z-index: 1;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.chat-sidebar .chat-thread-list.compact > .chat-thread-item:first-of-type {
  margin-top: 24px;
}

.chat-sidebar .chat-thread-list.compact::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.ideas-grid-top {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 10px;
}

.section-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.section-chip {
  border: 1px solid rgba(35, 73, 116, 0.2);
  border-radius: 16px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.98), rgba(240, 248, 255, 0.95));
  color: var(--ink-1);
  padding: 12px;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 10px;
  min-height: 212px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.section-chip::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  right: -34px;
  top: -42px;
  background: radial-gradient(circle, rgba(35, 73, 116, 0.18), rgba(35, 73, 116, 0) 68%);
}

.section-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(191, 141, 49, 0.48);
  box-shadow: 0 14px 24px rgba(24, 37, 54, 0.14);
}

.section-chip-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.section-chip strong {
  color: var(--ink-0);
  font-size: 1.08rem;
  line-height: 1.1;
  position: relative;
  z-index: 1;
}

.section-chip-tag {
  border-radius: 999px;
  border: 1px solid rgba(35, 73, 116, 0.22);
  background: rgba(255, 255, 255, 0.82);
  padding: 4px 8px;
  color: #2b5079;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-chip-copy {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.84rem;
  line-height: 1.35;
  position: relative;
  z-index: 1;
}

.section-chip-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  position: relative;
  z-index: 1;
}

.section-chip-stat {
  border-radius: 12px;
  border: 1px solid rgba(35, 73, 116, 0.24);
  background: rgba(255, 255, 255, 0.72);
  padding: 6px 8px;
  display: grid;
  gap: 1px;
}

.section-chip-stat small {
  color: var(--ink-2);
  font-size: 0.72rem;
  font-weight: 700;
}

.section-chip-stat strong {
  color: #224974;
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1.1;
}

.section-chip-foot {
  margin-top: auto;
  display: grid;
  position: relative;
  z-index: 1;
}

.section-chip-cta {
  color: #1f4a75;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid rgba(35, 73, 116, 0.28);
  background: rgba(255, 255, 255, 0.9);
  padding: 7px 11px;
  text-align: center;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.section-chip:hover .section-chip-cta {
  background: rgba(35, 73, 116, 0.1);
  border-color: rgba(35, 73, 116, 0.4);
  transform: translateY(-1px);
}

.section-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  border: 1px solid rgba(46, 91, 141, 0.32);
  background: linear-gradient(180deg, rgba(225, 241, 255, 0.95), rgba(239, 246, 255, 0.95));
}

.section-icon svg {
  width: 19px;
  height: 19px;
  stroke: #2e5b8d;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section-chip[data-section="general"] {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.98), rgba(237, 246, 255, 0.97));
}

.section-chip[data-section="economia"] {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.98), rgba(243, 250, 236, 0.97));
}

.section-chip[data-section="educacion"] {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.98), rgba(243, 242, 255, 0.97));
}

.section-chip[data-section="infraestructuras"] {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.98), rgba(255, 243, 238, 0.97));
}

.section-chip[data-section="justicia"] {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.98), rgba(248, 242, 236, 0.97));
}

.section-chip[data-section="sanidad"] {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.98), rgba(236, 249, 245, 0.97));
}

.section-chip[data-section="vivienda"] {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 233, 0.97));
}

.section-chip[data-section="energia"] {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.98), rgba(243, 250, 222, 0.97));
}

#section-grid .section-chip {
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  gap: 8px;
  min-height: 236px;
}

#section-grid .section-chip-copy {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

#section-grid .section-chip-stats {
  align-self: end;
}

#section-grid .section-chip-foot {
  margin-top: 2px;
}

#section-grid .section-chip-cta {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: rgba(28, 64, 101, 0.4);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 0 rgba(35, 73, 116, 0.06);
}

#section-grid .section-chip-cta::after {
  content: "→";
  margin-left: 6px;
}

.ideas-action-buttons {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ideas-action-btn.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(95deg, #223b62, #315482);
}

.ideas-action-panel {
  display: none;
}

.ideas-action-panel.active {
  display: block;
  animation: view-in 0.24s ease;
}

.ideas-summary-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.ideas-summary-grid article {
  border: 1px solid rgba(35, 73, 116, 0.22);
  border-radius: 14px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.95), rgba(240, 248, 255, 0.93));
  padding: 10px;
  display: grid;
  gap: 4px;
}

.ideas-summary-grid span {
  color: var(--ink-2);
  font-size: 0.85rem;
  font-weight: 700;
}

.ideas-summary-grid strong {
  color: #224974;
  font-size: 1.24rem;
  line-height: 1;
}

.summary-visual-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 10px;
  align-items: start;
}

.summary-vote-card {
  align-self: start;
  align-content: start;
}

.summary-vote-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.summary-vote-donut {
  width: 156px;
  height: 156px;
  border-radius: 50%;
  background: conic-gradient(from 90deg, #1f7a4d 0deg, #1f7a4d 180deg, #a32025 180deg, #a32025 360deg);
  display: grid;
  place-items: center;
  position: relative;
}

.summary-vote-donut::before {
  content: "";
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 1px solid rgba(35, 73, 116, 0.2);
  background: rgba(255, 255, 255, 0.97);
}

.summary-vote-center {
  position: absolute;
  text-align: center;
}

.summary-vote-center strong {
  display: block;
  color: #224974;
  font-size: 1.44rem;
  line-height: 1;
}

.summary-vote-center small {
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 700;
}

.summary-vote-legend {
  display: grid;
  gap: 6px;
}

.summary-vote-legend div {
  border: 1px solid rgba(35, 73, 116, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  padding: 7px 9px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 7px;
  align-items: center;
}

.summary-vote-legend .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.summary-vote-legend .dot.favor { background: #1f7a4d; }
.summary-vote-legend .dot.contra { background: #a32025; }
.summary-vote-legend .dot.total { background: #234974; }

.summary-vote-legend span {
  color: var(--ink-1);
  font-weight: 700;
  font-size: 0.82rem;
}

.summary-vote-legend strong {
  color: #224974;
  font-size: 0.9rem;
}

.summary-top-list {
  display: grid;
  gap: 7px;
}

.section-explorer-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.section-explorer-head h3 {
  margin: 0 0 4px;
}

.section-filters {
  margin-top: 8px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.vote-choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.vote-choice-btn.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(95deg, var(--red), var(--red-soft));
}

.vote-compose {
  margin-top: 8px;
  padding: 10px;
  border: 1px dashed rgba(49, 68, 89, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
}

#arg-favor-form,
#arg-contra-form {
  display: none;
}

.vote-item {
  border-left: 4px solid rgba(35, 73, 116, 0.28);
  cursor: default;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.vote-item-favor {
  border-left-color: rgba(15, 118, 110, 0.55);
  background: linear-gradient(170deg, rgba(240, 253, 250, 0.96), rgba(255, 255, 255, 0.95));
}

.vote-item-contra {
  border-left-color: rgba(109, 40, 217, 0.45);
  background: linear-gradient(170deg, rgba(247, 243, 255, 0.96), rgba(255, 255, 255, 0.95));
}

#ideas-view-detail .vote-item:hover {
  transform: none;
}

.vote-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}

#ideas-view-detail .vote-item-meta small {
  margin: 0;
  line-height: 1.24;
}

#ideas-view-detail .vote-item p {
  margin: 0;
}

.vote-mine-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(35, 73, 116, 0.22);
  background: rgba(35, 73, 116, 0.08);
  color: #214a75;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  padding: 3px 8px;
}

.vote-item-mine {
  border-left-color: rgba(35, 73, 116, 0.48);
  background: linear-gradient(170deg, rgba(241, 247, 255, 0.95), rgba(255, 255, 255, 0.95));
  box-shadow: inset 0 0 0 1px rgba(35, 73, 116, 0.1);
}

.vote-item-favor.vote-item-mine {
  border-left-color: rgba(31, 122, 77, 0.65);
}

.vote-item-contra.vote-item-mine {
  border-left-color: rgba(109, 40, 217, 0.58);
}

.vote-item-mine .vote-mine-badge {
  border-color: rgba(35, 73, 116, 0.26);
  background: rgba(35, 73, 116, 0.11);
  color: #224f7e;
}

.mine-item {
  border-color: rgba(35, 73, 116, 0.45);
  background: linear-gradient(180deg, rgba(233, 244, 255, 0.9), rgba(255, 255, 255, 0.95));
}

.mine-label {
  display: inline-block;
  margin-top: 6px;
  border: 1px solid rgba(35, 73, 116, 0.35);
  border-radius: 999px;
  padding: 3px 8px;
  color: #214a75;
  font-weight: 800;
  font-size: 0.75rem;
}

.mine-detail {
  border-color: rgba(35, 73, 116, 0.38);
  background: linear-gradient(180deg, rgba(231, 243, 255, 0.82), rgba(255, 255, 255, 0.9));
}

#vote-form.is-locked {
  opacity: 0.7;
}

/* Evita barras visibles permanentes pero mantiene scroll táctil/trackpad */
.platform-side,
.panel-scroll,
.stack {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.platform-side::-webkit-scrollbar,
.panel-scroll::-webkit-scrollbar,
.stack::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.panel-card h3 {
  margin-top: 0;
}

.chat-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(35, 73, 116, 0.2);
  border-radius: 14px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.92), rgba(236, 245, 255, 0.9));
}

.chat-panel-head h3 {
  margin: 0 0 4px;
}

.chat-panel-head p {
  margin: 0;
}

.chat-panel-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 10px;
}

.roadmap-cards {
  margin-top: 10px;
  display: grid;
  gap: 9px;
}

.roadmap-cards article {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 11px;
  display: grid;
  gap: 5px;
}

.roadmap-cards strong {
  color: var(--ink-0);
}

.roadmap-cards span {
  color: var(--ink-1);
}

.stack {
  margin-top: 8px;
  display: grid;
  gap: 8px;
  max-height: 270px;
  overflow: auto;
  padding-right: 2px;
}

.stack.compact {
  max-height: 320px;
}

.clarify-btn {
  display: inline-flex;
  margin-left: auto;
}

#ideas-detail-topbar h4,
#spectator-detail-topbar h4 {
  position: static;
  transform: none;
  width: 100%;
  max-width: none;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  line-height: 1.18;
  text-wrap: balance;
  text-align: center;
  padding: 0 6px;
}

#ideas-detail-topbar,
#spectator-detail-topbar {
  grid-template-columns: minmax(124px, auto) minmax(0, 1fr) minmax(124px, auto);
  grid-template-areas:
    "back title jump"
    "state state state";
  align-items: start;
  row-gap: 6px;
  position: relative;
  z-index: 3;
  padding: 4px 0 8px;
  background: transparent;
}

#ideas-back-section,
#spectator-back-section {
  grid-area: back;
  justify-self: start;
}

#idea-detail-title,
#spectator-detail-title {
  grid-area: title;
}

#ideas-detail-author,
#spectator-detail-author {
  grid-area: jump;
  justify-self: end;
}

.detail-topbar-btn {
  min-width: 124px;
}

.spectator-detail-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(36vw, 280px);
  border-radius: 999px;
  border: 1px solid rgba(35, 73, 116, 0.28);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 6px 12px rgba(35, 73, 116, 0.12);
  padding: 4px 10px 4px 6px;
  color: var(--ink-1);
  font-size: 0.84rem;
  font-weight: 800;
}

.spectator-detail-author.muted {
  opacity: 0.7;
}

#spectator-detail-author-name {
  display: inline-block;
  max-width: 22ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#ideas-detail-author-name {
  display: inline-block;
  max-width: 22ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.idea-vote-state {
  grid-area: state;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(35, 73, 116, 0.26);
  background: rgba(35, 73, 116, 0.08);
  color: #244f7b;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 3px 10px;
}

.idea-vote-state.up {
  border-color: rgba(31, 122, 77, 0.36);
  background: rgba(31, 122, 77, 0.14);
  color: #1f7a4d;
}

.idea-vote-state.down {
  border-color: rgba(163, 32, 37, 0.36);
  background: rgba(163, 32, 37, 0.14);
  color: #a32025;
}

.vote-compose-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.vote-compose-actions .btn {
  min-height: 40px;
}

#proposal-detail {
  position: relative;
  padding-top: 0;
  margin-top: 10px;
  margin-bottom: 16px;
}

.author-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #234974, #315b8a);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.item {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  padding: 11px;
  cursor: pointer;
  color: var(--ink-0);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.item:hover {
  transform: translateY(-1px);
  border-color: rgba(191, 141, 49, 0.52);
  box-shadow: 0 10px 22px rgba(20, 33, 48, 0.1);
}

.item h4 {
  margin: 0 0 5px;
}

.item small {
  color: var(--ink-2);
  font-weight: 600;
}

.item p {
  margin: 8px 0 0;
}

.form-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.create-title {
  grid-column: 1;
}

.create-section {
  grid-column: 2;
}

.create-submit {
  grid-column: 1 / -1;
  min-height: 52px;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 22px rgba(191, 31, 36, 0.25);
}

#proposal-form .create-submit:disabled {
  cursor: not-allowed;
  filter: saturate(0.6);
  opacity: 0.72;
  box-shadow: none;
}

.proposal-composer {
  align-content: start;
  max-height: none;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
  padding-bottom: 0;
  scroll-padding-bottom: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 18px,
    rgba(0, 0, 0, 1) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 18px,
    rgba(0, 0, 0, 1) 100%
  );
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.proposal-composer::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.create-overview {
  border: 1px solid rgba(35, 73, 116, 0.2);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(239, 247, 255, 0.92));
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.create-overview-item {
  border: 1px solid rgba(35, 73, 116, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  padding: 8px;
  display: grid;
  gap: 4px;
}

.create-overview-item span {
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 700;
}

.create-overview-item strong {
  color: #224974;
  font-size: 1.14rem;
  line-height: 1;
}

.create-overview-item small {
  color: var(--ink-2);
  font-size: 0.74rem;
  font-weight: 700;
}

.create-meter {
  height: 7px;
  border-radius: 999px;
  background: rgba(35, 73, 116, 0.12);
  overflow: hidden;
}

.create-meter > span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(95deg, #c4871f, #de4f49);
  transition: width 0.22s ease, background 0.22s ease;
}

.create-template-row {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  border: 1px dashed rgba(35, 73, 116, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
  padding: 6px 8px;
}

.create-template-row::before {
  content: "Atajos:";
  color: var(--ink-2);
  font-size: 0.74rem;
  font-weight: 800;
  margin-right: 2px;
}

.create-template-chip {
  border: 1px solid rgba(35, 73, 116, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: #234974;
  font-size: 0.73rem;
  font-weight: 800;
  line-height: 1.2;
  padding: 4px 8px;
  max-width: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.create-template-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(191, 31, 36, 0.36);
  box-shadow: 0 8px 16px rgba(35, 73, 116, 0.14);
}

.field-hint {
  color: var(--ink-2);
  font-size: 0.74rem;
  font-weight: 700;
}

.field-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.field-counter {
  color: #224974;
  font-size: 0.74rem;
  font-weight: 900;
}

.create-layout-foot {
  display: grid;
  gap: 8px;
}

#proposal-form .create-submit {
  width: 100%;
}

.create-status-line {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.83rem;
  font-weight: 700;
}

.create-status-line.ok {
  color: #1f7a4d;
}

label {
  display: grid;
  gap: 6px;
  color: var(--ink-1);
  font-size: 0.9rem;
  font-weight: 700;
}

label.full {
  grid-column: 1 / -1;
}

input,
select,
textarea,
button {
  font: inherit;
  border-radius: 12px;
}

input,
select,
textarea {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink-0);
  padding: 10px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(191, 141, 49, 0.64);
  box-shadow: 0 0 0 3px rgba(191, 141, 49, 0.16);
}

.btn {
  border: none;
  color: #fff;
  background: linear-gradient(95deg, var(--red), var(--red-soft));
  font-weight: 800;
  padding: 10px 14px;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 10px 20px rgba(191, 31, 36, 0.23);
}

.btn.ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink-1);
  background: rgba(255, 255, 255, 0.9);
}

.btn.small {
  padding: 7px 10px;
  font-size: 0.85rem;
}

.detail,
.stats {
  margin-top: 10px;
  border: 1px dashed rgba(49, 68, 89, 0.34);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  padding: 12px;
}

.split,
.mirror {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.split {
  grid-template-columns: 1.2fr 0.8fr;
}

.mirror {
  grid-template-columns: 1fr 1fr;
}

.subcard {
  padding: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.inline-form {
  display: grid;
  gap: 8px;
}

.auth-status {
  display: grid;
  gap: 10px;
}

.mode {
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 11px;
}

.mode h3 {
  margin: 0 0 4px;
}

.mode p {
  margin: 0;
  color: var(--ink-1);
}

.mode.ok {
  border-color: rgba(45, 139, 97, 0.4);
  background: rgba(45, 139, 97, 0.08);
}

.mode.pending {
  border-color: rgba(191, 141, 49, 0.45);
  background: rgba(191, 141, 49, 0.1);
}

.modal {
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  width: min(660px, 94vw);
  background: #fffdf8;
  box-shadow: var(--shadow-m);
}

.modal::backdrop {
  background: rgba(24, 37, 54, 0.36);
  backdrop-filter: blur(5px);
}

.modal-body {
  display: grid;
  gap: 10px;
  padding: 4px;
}

.mode-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mode-btn {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-1);
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 700;
}

.mode-btn.active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(95deg, var(--red), var(--red-soft));
}

.real-note {
  color: var(--ink-1);
}

.real-note ul {
  margin: 6px 0 0 18px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-s);
  z-index: 40;
  color: var(--ink-0);
  font-weight: 700;
}

.toast.ok {
  border-color: rgba(45, 139, 97, 0.55);
}

.toast.err {
  border-color: rgba(191, 31, 36, 0.55);
}

.hidden {
  display: none !important;
}

body.platform-focus {
  overflow: hidden;
}

body.platform-focus .views {
  height: calc(100vh - 96px);
  margin-top: 10px;
  margin-bottom: 10px;
}

body.platform-focus #view-platform {
  height: 100%;
  overflow: hidden;
}

body.platform-focus #view-platform .section-head {
  margin-bottom: 8px;
}

body.platform-focus .platform-shell {
  height: calc(100% - 68px);
  padding-bottom: 14px;
}

body.platform-focus .platform-side,
body.platform-focus .platform-workspace {
  height: 100%;
}

body.platform-focus .platform-side {
  overflow: auto;
  padding-bottom: 18px;
}

body.platform-focus .platform-workspace {
  overflow: hidden;
  padding-bottom: 18px;
}

body.spectator-focus {
  overflow: hidden;
}

body.spectator-focus .views {
  height: calc(100vh - 84px);
  margin-top: 8px;
  margin-bottom: 24px;
}

body.spectator-focus #view-ideas {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  overflow: hidden;
}

body.spectator-focus #view-ideas .section-head {
  margin-bottom: 6px;
}

body.spectator-focus #view-ideas .spectator-shell {
  min-height: 0;
  height: 100%;
  overflow: hidden;
  padding-bottom: 24px;
}

body.spectator-focus #view-ideas .spectator-view.active {
  min-height: 0;
  height: 100%;
}

body.spectator-focus #view-ideas #spectator-view-section .spectator-list-card,
body.spectator-focus #view-ideas #spectator-view-detail .spectator-detail-card {
  min-height: 0;
  height: 100%;
}

@media (max-width: 1220px) {
  .hero,
  .command-grid,
  .metrics,
  .insight-cards,
  .lens-stage,
  .platform-shell,
  .profile-layout,
  .ideas-layout,
  .split,
  .mirror,
  .process-layout,
  .sim-layout,
  .overview-grid,
  .hero-kpis,
  .ideas-grid-top,
  .chat-app-shell,
  .chat-room-grid,
  .chat-panel-grid,
  .section-grid,
  .ideas-summary-grid,
  .mine-kpi-grid,
  .mine-analytics-grid,
  .summary-visual-grid,
  .create-overview,
  .section-insights,
  .vote-choice-row,
  .proposal-grid,
  .idea-metrics {
    grid-template-columns: 1fr;
  }

  .profile-kpis {
    grid-template-columns: 1fr;
  }

  #ideas-view-home .ideas-actions-strip {
    grid-template-columns: 1fr;
  }

  #ideas-view-home .ideas-go-btn.btn.ghost {
    min-height: 88px;
    padding-right: 50px;
  }

  .mine-toolbar {
    grid-template-columns: 1fr;
  }

  .mine-sort select {
    min-width: 0;
  }

  .chat-head-actions {
    width: 100%;
    grid-template-columns: 1fr;
  }

  #panel-ideas .panel-scroll,
  #panel-chats .panel-scroll {
    height: auto;
    overflow: visible;
    padding: 0 4px 16px 2px;
  }

  #panel-ideas .ideas-view.active,
  #panel-chats .chats-view.active,
  #ideas-view-home,
  #ideas-view-section,
  #ideas-view-create,
  #ideas-view-detail,
  #spectator-view-detail,
  #ideas-view-mine,
  #ideas-view-summary,
  #chats-view-home {
    height: auto;
    overflow: visible;
  }

  #ideas-view-home .ideas-hero,
  #ideas-view-home .section-grid,
  #proposal-list.proposal-grid,
  #my-proposals-list.proposal-grid,
  #ideas-detail-scroll,
  #spectator-detail-scroll,
  .proposal-composer,
  #ideas-summary.summary-dashboard,
  #chats-view-home #room-list,
  #ideas-view-detail #favor-list.stack.compact,
  #ideas-view-detail #contra-list.stack.compact,
  #spectator-view-detail #spectator-favor-list.stack.compact,
  #spectator-view-detail #spectator-contra-list.stack.compact {
    overflow: visible;
    margin-top: 0;
    max-height: none;
    padding-right: 0;
  }

  #my-proposals-list.proposal-grid,
  .proposal-composer,
  #ideas-summary.summary-dashboard,
  #ideas-detail-scroll {
    -webkit-mask-image: none;
    mask-image: none;
  }

  #ideas-view-home .section-grid {
    padding-bottom: 0;
    scroll-padding-bottom: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }

  #ideas-view-section .section-insights::after {
    display: none;
    content: none;
  }

  #ideas-view-section #proposal-list.proposal-grid {
    margin-top: 0;
    height: auto;
    padding-top: 0;
    scroll-padding-top: 12px;
    -webkit-mask-image: none;
    mask-image: none;
  }

  #ideas-section-topbar {
    grid-template-columns: 1fr;
    margin-bottom: 8px;
  }

  #ideas-section-topbar h4 {
    text-align: left;
    font-size: clamp(1.7rem, 4.7vw, 2.15rem);
  }

  #ideas-view-section .ideas-topbar-right {
    justify-self: start;
    width: 100%;
    flex-wrap: wrap;
  }

  #ideas-view-section .ideas-topbar-right select {
    min-width: 0;
    width: clamp(190px, 52vw, 320px);
  }

  #ideas-detail-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "back jump"
      "title title"
      "state state";
    row-gap: 10px;
  }

  #ideas-detail-topbar h4 {
    text-align: left;
    width: 100%;
    max-width: none;
    padding: 0;
    line-height: 1.12;
    text-wrap: pretty;
  }

  #ideas-detail-author {
    max-width: min(58vw, 250px);
  }

  #ideas-view-home .ideas-hero::after {
    display: none;
    content: none;
  }

  #ideas-view-home .section-grid::before,
  #proposal-list.proposal-grid::before,
  #my-proposals-list.proposal-grid::before {
    display: none;
    content: none;
  }

  .chat-search-wrap {
    min-width: 0;
    max-width: none;
    flex: 1 1 auto;
  }

  .chat-sidebar {
    display: none;
  }

  .chat-mobile-groups {
    display: block;
  }

  .chat-room-topbar {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .chat-room-topbar > .btn {
    width: fit-content;
  }

  .chat-room-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .chat-room-subline {
    flex-wrap: wrap;
    justify-content: center;
  }

  .chat-room-title-wrap h4,
  #chat-room-subtitle {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  .chat-compose {
    grid-template-columns: 1fr;
  }

  .chat-compose .btn {
    width: 100%;
    height: 42px;
    margin: 0;
  }

  .section-chip {
    min-height: 0;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas:
      "brand nav session";
    align-items: center;
    gap: 10px 12px;
    padding: 12px 14px;
  }

  .brand {
    grid-area: brand;
  }

  .topbar-menu-btn {
    display: none;
  }

  .hero {
    grid-template-areas:
      "copy"
      "kpis";
    grid-template-rows: auto auto;
    position: relative;
  }

  .hero-copy-wrap,
  .hero-kpis {
    position: relative;
    z-index: 2;
  }

  .hero-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-empty-slot {
    position: absolute;
    inset: 0;
    min-height: 0;
    z-index: 1;
    pointer-events: none;
  }

  .hero-empty-slot .hero-iberia-real {
    left: 50%;
    top: 62%;
    right: auto;
    width: auto;
    height: 150%;
    min-height: 720px;
    transform: translate(-32.5%, -50%) rotate(-2.5deg);
    transform-origin: center;
    opacity: 0.56;
  }

  .session {
    grid-area: session;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .session .pill {
    max-width: min(36vw, 220px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .session .btn.ghost,
  .session .pill {
    padding: 8px 12px;
    font-size: 0.94rem;
  }

  .nav {
    grid-area: nav;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 5px 6px;
    scrollbar-width: thin;
  }

  .nav-btn {
    flex: 0 0 auto;
    padding: 9px 14px;
  }

  .brand-title {
    font-size: 1.8rem;
  }

  .stage-node {
    min-width: 90px;
    font-size: 0.9rem;
  }

  .ideas-topbar {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 8px;
  }

  .ideas-topbar h4 {
    position: static;
    transform: none;
    max-width: 100%;
    text-align: left;
  }

  #spectator-view-section .spectator-topbar h4 {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    overflow-wrap: anywhere;
    line-height: 1.1;
  }

  .ideas-topbar-right {
    justify-self: start;
  }

  .spectator-sort-row .spectator-sort-label {
    width: clamp(190px, 52%, 320px);
  }

  .spectator-sort-row .spectator-sort-label select {
    min-width: 0;
    width: 100%;
  }

  #view-ideas,
  #view-ideas .spectator-shell,
  #view-ideas .spectator-view.active,
  #view-ideas #spectator-view-section .spectator-list-card {
    overflow-x: hidden;
  }

  body.platform-focus,
  body.spectator-focus {
    overflow: auto;
  }

  body.platform-focus .views,
  body.platform-focus #view-platform,
  body.platform-focus .platform-shell,
  body.platform-focus .platform-side,
  body.platform-focus .platform-workspace,
  body.spectator-focus .views,
  body.spectator-focus #view-ideas,
  body.spectator-focus #view-ideas .spectator-shell,
  body.spectator-focus #view-ideas .spectator-view.active,
  body.spectator-focus #view-ideas #spectator-view-section .spectator-list-card,
  body.spectator-focus #view-ideas #spectator-view-detail .spectator-detail-card {
    height: auto;
    overflow: visible;
  }

  body.spectator-focus #view-ideas,
  body.spectator-focus #view-ideas .spectator-shell,
  body.spectator-focus #view-ideas .spectator-view.active,
  body.spectator-focus #view-ideas #spectator-view-section .spectator-list-card,
  body.spectator-focus #view-ideas #spectator-view-detail .spectator-detail-card {
    overflow-x: hidden;
  }
}

@media (max-width: 1440px) and (min-width: 1221px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 14px;
  }

  .hero-empty-slot .hero-iberia-real {
    right: -106px;
    top: -98px;
    width: min(166%, 1300px);
    transform: rotate(-3.2deg);
  }

  .hero h1,
  .hero-title {
    font-size: clamp(1.95rem, 4.4vw, 3.2rem);
    max-width: 14.8ch;
  }

  .hero-stage .stage-node {
    min-width: 116px;
    padding: 9px 12px;
  }

  .hero-stage .stage-node strong { font-size: 0.92rem; }
  .hero-stage .stage-node span { font-size: 0.7rem; }

  .hero-stage .node-a { top: 30px; left: 26px; }
  .hero-stage .node-b { top: 30px; right: 26px; }
  .hero-stage .node-c { bottom: 30px; left: 26px; }
  .hero-stage .node-d { bottom: 30px; right: 26px; }
}

@media (max-width: 1320px) and (min-width: 1221px) {
  .hero-empty-slot .hero-iberia-real {
    right: -100px;
    top: -82px;
    width: min(170%, 1320px);
    transform: rotate(-3.1deg);
  }
}

@media (max-width: 1680px) and (min-width: 1441px) {
  .hero-empty-slot .hero-iberia-real {
    right: -110px;
    top: -118px;
    width: min(161%, 1260px);
    transform: rotate(-3.35deg);
  }
}

@media (max-width: 1024px) {
  .views {
    width: min(1400px, 94vw);
  }

  #view-ideas .section-head,
  #view-ideas .spectator-view > .card {
    margin-inline: 4px;
  }

  .spectator-sort-row {
    margin: 12px 0 12px;
  }

  .spectator-sort-row .spectator-sort-label {
    width: clamp(190px, 52%, 320px);
  }

  .spectator-sort-row .spectator-sort-label select {
    min-width: 0;
    width: 100%;
  }

  #spectator-detail-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "back jump"
      "title title"
      "state state";
    row-gap: 10px;
  }

  #spectator-detail-topbar h4 {
    text-align: left;
    width: 100%;
    max-width: none;
    padding: 0;
    line-height: 1.12;
    text-wrap: pretty;
  }

  #spectator-detail-author {
    max-width: min(58vw, 250px);
  }

  #spectator-detail-meta {
    margin-top: 10px;
  }

  #spectator-view-detail .detail {
    margin-top: 8px;
  }

  #spectator-view-detail .idea-metrics {
    margin-top: 16px;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand menu";
    gap: 8px;
    padding: 10px 12px;
    align-items: center;
  }

  .topbar.menu-open {
    grid-template-areas:
      "brand menu";
    align-items: center;
  }

  .topbar-menu-btn {
    display: inline-flex;
    grid-area: menu;
    justify-self: end;
  }

  .topbar-flyout {
    position: absolute;
    top: calc(100% + 6px);
    right: 10px;
    width: min(380px, calc(100vw - 16px));
    display: grid;
    grid-auto-flow: row;
    gap: 8px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 0;
    transform: translateY(-8px) scale(0.985);
    transform-origin: top right;
    pointer-events: none;
    visibility: hidden;
    z-index: 40;
    transition: opacity 0.18s ease, transform 0.22s ease, visibility 0.18s ease;
  }

  .topbar.menu-open .topbar-flyout {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    visibility: visible;
  }

  .topbar .topbar-flyout .nav,
  .topbar .topbar-flyout .session {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    grid-column: 1 / -1;
    grid-area: auto;
    width: 100%;
    max-width: none;
    justify-self: auto;
    margin: 0;
  }

  .brand-title {
    font-size: clamp(1.5rem, 8vw, 1.9rem);
  }

  .topbar .topbar-flyout .nav {
    overflow: visible;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .topbar .topbar-flyout .nav .nav-btn {
    flex: 0 0 auto;
    width: 100%;
    min-height: 44px;
    text-align: left;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.92rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 18px rgba(20, 38, 63, 0.14);
    position: relative;
    z-index: 1;
  }

  .topbar .topbar-flyout .nav .nav-btn.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(95deg, var(--red), #d84e49);
    box-shadow: none;
  }

  .topbar .topbar-flyout .session {
    padding: 0;
    margin-top: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .topbar .topbar-flyout .session .btn.ghost,
  .topbar .topbar-flyout .session .pill {
    width: 100%;
    max-width: none;
    text-align: left;
    min-height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 18px rgba(20, 38, 63, 0.14);
    position: relative;
    z-index: 1;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero {
    grid-template-rows: auto auto;
    grid-template-areas:
      "copy"
      "kpis";
  }

  .hero-stage {
    min-height: 420px;
  }

  .hero-empty-slot .hero-iberia-real {
    top: 63%;
    height: 168%;
    min-height: 840px;
    transform: translate(-31.8%, -50%) rotate(-2deg);
  }

  .hero-empty-slot {
    inset: 0;
    min-height: 0;
  }

  .hero-stage--flow {
    grid-template-columns: 1fr;
    height: auto;
    gap: 10px;
  }

  .hero-stage--flow .stage-flow-svg {
    inset: 18px;
    width: calc(100% - 36px);
    height: calc(100% - 36px);
  }

  .hero-stage--flow .flow-col {
    min-height: 0;
  }

  .hero-stage--flow .flow-core {
    min-height: 220px;
  }

  .hero-stage--flow .flow-log {
    height: 180px;
  }

  .hero-stage--matrix {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr auto auto;
    height: auto;
    min-height: 760px;
  }

  .hero-stage--matrix .matrix-topbar {
    justify-self: start;
  }

  .hero-stage--matrix .matrix-core {
    min-height: 260px;
  }

  .hero-stage--matrix .matrix-ring.r1 { width: 190px; height: 190px; }
  .hero-stage--matrix .matrix-ring.r2 { width: 230px; height: 230px; }
  .hero-stage--matrix .matrix-ring.r3 { width: 270px; height: 270px; }

  .hero-stage--pulse {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    height: auto;
    min-height: 760px;
  }

  .hero-stage--pulse .pulse-hub {
    min-height: 250px;
  }

  .hero-stage--pulse .hub-radial.h1 { width: 190px; height: 190px; }
  .hero-stage--pulse .hub-radial.h2 { width: 230px; height: 230px; }
  .hero-stage--pulse .hub-radial.h3 { width: 270px; height: 270px; }

  .hero-stage--chamber {
    height: auto;
    min-height: 720px;
    grid-template-rows: auto 1fr auto;
  }

  .hero-stage--chamber .chamber-podium {
    width: min(70%, 340px);
    height: 150px;
  }

  .hero-stage--radar {
    height: auto;
    min-height: 700px;
    grid-template-columns: 1fr;
  }

  .hero-stage--radar .radar-center {
    min-height: 320px;
  }

  .hero-stage--route {
    height: auto;
    min-height: 700px;
  }

  .hero-stage--route .stage-debate { left: auto; right: 26px; top: 94px; }
  .hero-stage--route .stage-vote { left: 26px; right: auto; top: 188px; }
  .hero-stage--route .stage-audit { right: 26px; top: 188px; }

  .hero-stage--route.route-v2 {
    min-height: 700px;
    height: auto;
  }

  .hero-stage--route.route-v2 .route2-track {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stage--route.route-v2 .route2-kpis {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stage--signal {
    height: auto;
    min-height: 680px;
  }

  .hero-stage--signal .st1 { left: 22px; top: 102px; }
  .hero-stage--signal .st2 { right: 22px; left: auto; top: 102px; }
  .hero-stage--signal .st3 { left: 22px; top: 194px; }
  .hero-stage--signal .st4 { right: 22px; left: auto; top: 194px; }

  .hero-stage--signal .signal-kpis {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 921px) and (max-width: 1024px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas:
      "brand nav session";
    align-items: center;
    gap: 10px 12px;
    padding: 12px 14px;
  }

  .topbar.menu-open {
    grid-template-areas:
      "brand nav session";
    align-items: center;
  }

  .topbar-menu-btn {
    display: none;
  }

  .topbar-flyout {
    position: static;
    top: auto;
    right: auto;
    width: auto;
    display: contents;
    gap: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    transform: none;
    transform-origin: center;
    pointer-events: auto;
    visibility: visible;
    z-index: auto;
    transition: none;
  }

  .topbar .topbar-flyout .nav,
  .topbar .topbar-flyout .session {
    display: flex;
    grid-area: auto;
    grid-column: auto;
    width: auto;
    max-width: none;
    margin: 0;
  }

  .topbar .topbar-flyout .nav {
    grid-area: nav;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding: 5px 6px;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .topbar .topbar-flyout .nav .nav-btn {
    width: auto;
    min-height: 0;
    text-align: center;
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 0.92rem;
    background: rgba(255, 255, 255, 0.66);
    box-shadow: none;
  }

  .topbar .topbar-flyout .nav .nav-btn.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(95deg, var(--red), #d84e49);
    box-shadow: none;
  }

  .topbar .topbar-flyout .session {
    grid-area: session;
    align-items: center;
    justify-content: flex-end;
    flex-direction: row;
    gap: 8px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    justify-self: end;
  }

  .topbar .topbar-flyout .session .btn.ghost,
  .topbar .topbar-flyout .session .pill {
    width: auto;
    max-width: min(36vw, 220px);
    min-height: 0;
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: none;
  }
}

@media (max-width: 760px) {
  .topbar {
    gap: 7px 8px;
    padding: 9px 10px;
    align-items: center;
  }

  .brand-title {
    font-size: clamp(1.35rem, 9vw, 1.75rem);
  }

  .brand-sub {
    font-size: 0.8rem;
  }

  .topbar-menu-btn {
    width: 44px;
    height: 42px;
    border-radius: 12px;
  }

  .topbar-menu-btn span {
    left: 11px;
    width: 20px;
  }

  .topbar-menu-btn span:nth-child(1) {
    top: 13px;
  }

  .topbar-menu-btn span:nth-child(2) {
    top: 19px;
  }

  .topbar-menu-btn span:nth-child(3) {
    top: 25px;
  }

  .topbar.menu-open .topbar-menu-btn span:nth-child(1),
  .topbar.menu-open .topbar-menu-btn span:nth-child(3) {
    top: 19px;
  }

  .topbar .topbar-flyout {
    right: 8px;
    width: min(340px, calc(100vw - 12px));
    gap: 6px;
  }

  .topbar .topbar-flyout .nav,
  .topbar .topbar-flyout .session {
    gap: 6px;
  }

  .views {
    width: min(1400px, 94vw);
  }

  #view-ideas .section-head,
  #view-ideas .spectator-view > .card {
    margin-inline: 6px;
  }

  .nav-btn {
    padding: 8px 11px;
    font-size: 0.85rem;
  }

  .session .btn.ghost,
  .session .pill {
    padding: 8px 11px;
    font-size: 0.9rem;
  }

  .hero,
  .process,
  .ecosystem-board,
  .simulator,
  .lenses,
  .faq,
  .final-cta {
    padding: 14px;
  }

  .process-tabs {
    grid-template-columns: 1fr;
  }

  .process-rail {
    display: none;
  }

  .module-grid {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 320px;
  }

  .hero-kpis {
    grid-template-columns: 1fr;
  }

  .hero-empty-slot {
    inset: 0;
    min-height: 0;
  }

  .hero-empty-slot .hero-iberia-real {
    top: 67%;
    height: 202%;
    min-height: 1020px;
    transform: translate(-28.8%, -50%) rotate(-1.7deg);
  }

  .hero-stage .node-a,
  .hero-stage .node-b,
  .hero-stage .node-c,
  .hero-stage .node-d {
    position: static;
    margin: 8px;
    width: min(100%, 200px);
  }

  .hero-stage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    align-content: center;
    justify-items: center;
    padding: 8px;
  }

  .stage-core {
    position: static;
    grid-column: 1 / -1;
  }

  .hero-stage .stage-core-inner {
    width: 132px;
    height: 132px;
  }

  .stage-status {
    grid-column: 1 / -1;
    position: static;
    transform: none;
    margin-top: 4px;
    width: 100%;
    flex-wrap: wrap;
  }

  .status-pill {
    flex: 1 1 calc(50% - 8px);
  }

  .hero-stage--flow {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    height: auto;
    padding: 10px;
  }

  .hero-stage--flow .stage-flow-backdrop {
    inset: 8px;
  }

  .hero-stage--flow .stage-flow-svg {
    inset: 14px;
    width: calc(100% - 28px);
    height: calc(100% - 28px);
  }

  .hero-stage--flow .flow-col h4 {
    font-size: 0.8rem;
  }

  .hero-stage--flow .flow-card strong {
    font-size: 0.92rem;
  }

  .hero-stage--flow .flow-core-label strong {
    font-size: 1.2rem;
  }

  .hero-stage--flow .flow-core-label span {
    font-size: 0.76rem;
  }

  .hero-stage--flow .flow-log p {
    font-size: 0.73rem;
  }

  .hero-stage--matrix {
    min-height: 690px;
    padding: 10px;
    gap: 8px;
  }

  .hero-stage--matrix .stage-matrix-bg {
    inset: 8px;
  }

  .hero-stage--matrix .stage-matrix-svg {
    inset: 14px;
    width: calc(100% - 28px);
    height: calc(100% - 28px);
  }

  .hero-stage--matrix .matrix-col {
    padding: 8px;
  }

  .hero-stage--matrix .matrix-card strong {
    font-size: 0.92rem;
  }

  .hero-stage--matrix .matrix-log {
    font-size: 0.73rem;
  }

  .hero-stage--matrix .matrix-core-text strong {
    font-size: 1.18rem;
  }

  .hero-stage--matrix .matrix-core-text span {
    font-size: 0.75rem;
  }

  .hero-stage--matrix .matrix-footer {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stage--pulse {
    min-height: 700px;
    padding: 10px;
    gap: 8px;
  }

  .hero-stage--pulse .pulse-bg {
    inset: 8px;
  }

  .hero-stage--pulse .pulse-svg {
    inset: 14px;
    width: calc(100% - 28px);
    height: calc(100% - 28px);
  }

  .hero-stage--pulse .pulse-lane {
    padding: 8px;
  }

  .hero-stage--pulse .pulse-lane span {
    font-size: 0.73rem;
  }

  .hero-stage--pulse .hub-core strong {
    font-size: 1.18rem;
  }

  .hero-stage--pulse .hub-core span {
    font-size: 0.74rem;
  }

  .hero-stage--pulse .pulse-kpis {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stage--chamber {
    min-height: 650px;
    padding: 10px;
    gap: 8px;
  }

  .hero-stage--chamber .chamber-bg {
    inset: 8px;
  }

  .hero-stage--chamber .chamber-streams {
    inset: 14px;
    width: calc(100% - 28px);
    height: calc(100% - 28px);
  }

  .hero-stage--chamber .chamber-podium {
    width: min(86%, 340px);
    height: 132px;
    top: 56%;
  }

  .hero-stage--chamber .podium-core strong {
    font-size: 1.08rem;
  }

  .hero-stage--chamber .podium-core span {
    font-size: 0.73rem;
  }

  .hero-stage--chamber .chamber-foot {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stage--chamber .foot-pill {
    font-size: 0.69rem;
  }

  .hero-stage--radar {
    min-height: 640px;
    padding: 10px;
    gap: 8px;
  }

  .hero-stage--radar .radar-bg {
    inset: 8px;
  }

  .hero-stage--radar .radar-links {
    inset: 14px;
    width: calc(100% - 28px);
    height: calc(100% - 28px);
  }

  .hero-stage--radar .radar-core strong {
    font-size: 1.12rem;
  }

  .hero-stage--radar .radar-core span,
  .hero-stage--radar .radar-meter span,
  .hero-stage--radar .radar-feed p {
    font-size: 0.72rem;
  }

  .hero-stage--radar .radar-mini-kpis {
    grid-template-columns: 1fr;
  }

  .hero-stage--route {
    min-height: 610px;
    padding: 10px;
    gap: 8px;
  }

  .hero-stage--route .route-bg {
    inset: 8px;
  }

  .hero-stage--route .route-svg {
    inset: 14px;
    width: calc(100% - 28px);
    height: calc(100% - 28px);
  }

  .hero-stage--route .route-stage {
    width: 44%;
    min-width: 145px;
    padding: 8px;
  }

  .hero-stage--route .stage-idea { left: 14px; top: 96px; }
  .hero-stage--route .stage-debate { right: 14px; top: 96px; }
  .hero-stage--route .stage-vote { left: 14px; top: 184px; }
  .hero-stage--route .stage-audit { right: 14px; top: 184px; }

  .hero-stage--route .route-core strong {
    font-size: 1.08rem;
  }

  .hero-stage--route .route-core span,
  .hero-stage--route .route-stage span {
    font-size: 0.71rem;
  }

  .hero-stage--route .route-kpis {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stage--route.route-v2 {
    min-height: 620px;
    padding: 10px;
    gap: 8px;
  }

  .hero-stage--route.route-v2 .route2-bg {
    inset: 8px;
  }

  .hero-stage--route.route-v2 .route2-svg {
    inset: 14px;
    width: calc(100% - 28px);
    height: calc(100% - 28px);
  }

  .hero-stage--route.route-v2 .route2-track {
    grid-template-columns: 1fr;
  }

  .hero-stage--route.route-v2 .route2-kpis {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stage--signal {
    min-height: 600px;
    padding: 10px;
    gap: 8px;
  }

  .hero-stage--signal .signal-bg {
    inset: 8px;
  }

  .hero-stage--signal .signal-svg {
    inset: 14px;
    width: calc(100% - 28px);
    height: calc(100% - 28px);
  }

  .hero-stage--signal .signal-station {
    width: 46%;
    min-width: 142px;
  }

  .hero-stage--signal .st1 { left: 12px; top: 96px; }
  .hero-stage--signal .st2 { right: 12px; top: 96px; }
  .hero-stage--signal .st3 { left: 12px; top: 182px; }
  .hero-stage--signal .st4 { right: 12px; top: 182px; }

  .hero-stage--signal .signal-core strong {
    font-size: 1.06rem;
  }

  .hero-stage--signal .signal-core span,
  .hero-stage--signal .signal-station span {
    font-size: 0.71rem;
  }

  .hero-stage--signal .signal-kpis {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1200px) {
  #view-welcome > .hero {
    min-height: 560px;
  }

  .ticker-wrap {
    margin-top: 16px;
  }

  .overview-grid {
    margin-top: 14px;
  }
}

@media (min-width: 1025px) and (max-width: 1199px) {
  #view-welcome > .hero {
    min-height: 520px;
  }

  .ticker-wrap {
    margin-top: 14px;
  }
}
