:root {
  --bg: #040506;
  --bg-soft: #0a0d11;
  --panel: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.1);
  --text: #e7ebf0;
  --text-strong: #f7f9fb;
  --accent: #c39a60;
  --hero-x: 50%;
  --hero-y: 50%;
}

[hidden] {
  display: none !important;
}

.norma-particle-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 230, 180, 0.28), transparent 14%),
    radial-gradient(circle at 50% 47%, rgba(216, 163, 86, 0.17), transparent 31%),
    radial-gradient(circle at 50% 84%, rgba(216, 163, 86, 0.12), transparent 25%),
    linear-gradient(180deg, #070910 0%, #0b0f16 58%, #05070b 100%);
}

.norma-particle-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, transparent 0%, transparent 44%, rgba(0, 0, 0, 0.46) 100%),
    linear-gradient(90deg, rgba(3, 4, 7, 0.38), transparent 30%, transparent 70%, rgba(3, 4, 7, 0.38));
}

.norma-particle-layer--login {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 225, 168, 0.1), transparent 18%),
    radial-gradient(circle at 50% 50%, rgba(210, 155, 76, 0.06), transparent 36%),
    linear-gradient(180deg, #05070b 0%, #070b10 58%, #030407 100%);
}

.norma-particle-layer--home {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 225, 168, 0.1), transparent 18%),
    radial-gradient(circle at 50% 50%, rgba(210, 155, 76, 0.06), transparent 36%),
    linear-gradient(180deg, #05070b 0%, #070b10 58%, #030407 100%);
}

.norma-particle-layer--home::after {
  background:
    radial-gradient(circle at 50% 50%, transparent 0%, transparent 58%, rgba(0, 0, 0, 0.2) 100%),
    linear-gradient(90deg, rgba(3, 4, 7, 0.18), transparent 24%, transparent 78%, rgba(3, 4, 7, 0.22));
}

.norma-particle-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.norma-particle-layer--home .norma-particle-canvas {
  filter: contrast(1.08) brightness(0.86) saturate(1.02);
}

body.system-body:not(.system-auth-body):not(.console-body) {
  height: auto;
  overflow-y: auto;
}

body.console-body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Restored legacy homepage visuals. This brings back the old image-led hero,
   signal canvas, sticky scroll story, and card reveal language without changing
   the site's newer console/admin styles. */
.legacy-home {
  min-height: 100vh;
  overflow-x: hidden;
  background: #050609;
  color: var(--text, rgba(238, 241, 246, 0.72));
}

.legacy-home .hero-shell {
  --hero-x: 50%;
  --hero-y: 48%;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 74% 22%, rgba(193, 154, 91, 0.2), transparent 29rem),
    radial-gradient(circle at 18% 70%, rgba(105, 137, 190, 0.14), transparent 25rem),
    #070910;
}

.legacy-home .hero-shell__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  opacity: 0;
  transform:
    scale(1.045)
    translate3d(calc((var(--hero-x) - 50%) * -0.035), calc((var(--hero-y) - 50%) * -0.035), 0);
  transition: transform 180ms ease-out;
  filter: saturate(0.92) contrast(1.06);
}

.legacy-home .hero-particle-field {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  background: #040506;
  pointer-events: none;
}

.legacy-home .hero-shell__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 8, 0.72) 0%, rgba(5, 6, 8, 0.38) 34%, rgba(5, 6, 8, 0.04) 66%, rgba(5, 6, 8, 0.2) 100%),
    linear-gradient(180deg, rgba(5, 6, 8, 0.01), rgba(5, 6, 8, 0.28));
  z-index: 1;
}

.legacy-home .hero-shell__spotlight {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--hero-x) var(--hero-y), rgba(255, 255, 255, 0.11), transparent 13%),
    radial-gradient(circle at var(--hero-x) var(--hero-y), rgba(195, 154, 96, 0.12), transparent 28%);
  opacity: 0.82;
  mix-blend-mode: screen;
  display: none;
}

.legacy-home .signal-field {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  opacity: 0.92;
  mix-blend-mode: screen;
  display: none;
}

.legacy-home .hero-shell__content {
  position: relative;
  z-index: 4;
  display: flex;
  min-height: 100vh;
  max-width: 92rem;
  margin: 0 auto;
  padding: 1.75rem 1.5rem;
  flex-direction: column;
  justify-content: space-between;
}

.legacy-home .hero-topline,
.legacy-home .hero-bottomline {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.legacy-home .hero-copy {
  max-width: 48rem;
  padding: 4rem 0 5rem;
}

.legacy-home .hero-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(4.2rem, 15vw, 11rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
  color: var(--text-strong, #f7f2e8);
  text-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.legacy-home .hero-subtitle {
  margin: 1.2rem 0 1.5rem;
  max-width: 42rem;
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.84);
}

.legacy-home .hero-measure {
  max-width: 38rem;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.62);
}

.legacy-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.legacy-home .action-primary,
.legacy-home .action-secondary {
  display: inline-flex;
  min-height: 3.4rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 1.35rem;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.legacy-home .action-primary {
  border: 1px solid rgba(195, 154, 96, 0.36);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(11, 14, 19, 0.92);
  color: var(--text-strong, #f7f2e8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 36px rgba(0, 0, 0, 0.22);
}

.legacy-home .action-secondary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.74);
}

.legacy-home .action-primary:hover,
.legacy-home .action-secondary:hover {
  transform: translateY(-1px);
  border-color: rgba(195, 154, 96, 0.42);
}

.legacy-home .legacy-section {
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 20% 0%, rgba(193, 154, 91, 0.08), transparent 28rem),
    linear-gradient(180deg, #07080b 0%, #090b10 100%);
}

.legacy-home .legacy-section--cards {
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 12%, rgba(105, 137, 190, 0.12), transparent 26rem),
    linear-gradient(180deg, #090b10 0%, #050609 100%);
}

.legacy-home .legacy-wrap {
  width: min(100% - 3rem, 88rem);
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 8rem) 0;
}

.legacy-home .legacy-intro {
  max-width: 58rem;
}

.legacy-home .legacy-intro h2 {
  margin: 1rem 0 0;
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  line-height: 1.12;
  letter-spacing: -0.06em;
  color: var(--text-strong, #f7f2e8);
}

.legacy-home .legacy-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: clamp(3.5rem, 7vw, 5rem);
  align-items: start;
}

.legacy-home .legacy-section--horizontal {
  --story-progress: 0;
  min-height: 360vh;
}

.legacy-home .legacy-section--horizontal .legacy-wrap {
  position: sticky;
  top: 0;
  display: flex;
  min-height: 100vh;
  height: 100vh;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.legacy-home .legacy-section--horizontal .legacy-story-grid {
  align-items: center;
}

.legacy-home .legacy-section--horizontal .legacy-card-stack {
  display: flex;
  width: max-content;
  gap: 1.2rem;
  will-change: transform;
  transform: translate3d(calc(var(--story-progress) * -66%), 0, 0);
  transition: transform 80ms linear;
}

.legacy-home .legacy-stage-wrap {
  position: sticky;
  top: 2rem;
}

.legacy-home .norma-stage {
  border-radius: 2rem;
  border: 1px solid rgba(195, 154, 96, 0.16);
  background:
    radial-gradient(circle at top left, rgba(195, 154, 96, 0.08), transparent 25%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  padding: 1rem;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

.legacy-home .norma-stage__media {
  position: relative;
  overflow: hidden;
  min-height: 36rem;
  border-radius: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #030406;
}

.legacy-home .norma-stage__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition:
    opacity 260ms ease-in-out,
    transform 620ms ease-in-out;
}

.legacy-home .norma-stage__media:hover img {
  transform: scale(1.035);
}

.legacy-home .norma-stage__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 6, 8, 0.12), rgba(5, 6, 8, 0.7) 78%, rgba(5, 6, 8, 0.86)),
    linear-gradient(90deg, rgba(5, 6, 8, 0.18), transparent 38%);
}

.legacy-home .norma-stage__content {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 1;
  display: grid;
  gap: 0.9rem;
  padding: clamp(1.3rem, 3vw, 1.9rem);
}

.legacy-home .norma-stage__index {
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(3.6rem, 8vw, 5rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
  color: rgba(195, 154, 96, 0.18);
}

.legacy-home .norma-stage__content h3 {
  margin: 0.55rem 0 0;
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--text-strong, #f7f2e8);
}

.legacy-home .norma-stage__content p:last-child {
  max-width: 34rem;
  margin: 1rem 0 0;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.66);
}

.legacy-home .legacy-card-stack {
  display: grid;
  gap: 2rem;
}

.legacy-home .story-card {
  width: min(34rem, 72vw);
  min-height: 24rem;
  flex: 0 0 auto;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  padding: clamp(1.35rem, 3vw, 1.8rem);
  transition:
    transform 220ms ease-in-out,
    border-color 220ms ease-in-out,
    background-color 220ms ease-in-out,
    opacity 420ms ease-in-out;
}

.legacy-home .story-card--active {
  transform: translateY(-2px);
  border-color: rgba(195, 154, 96, 0.22);
  background:
    linear-gradient(180deg, rgba(195, 154, 96, 0.05), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.02);
}

.legacy-home .story-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.legacy-home .story-card h3 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
  color: var(--text-strong, #f7f2e8);
}

.legacy-home .story-card__head span {
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(3rem, 6vw, 4rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.1);
}

.legacy-home .story-card p:not(.eyebrow) {
  margin: 1rem 0 0;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.66);
}

.legacy-home .legacy-use-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(3rem, 7vw, 5rem);
}

.legacy-home .use-case-card {
  border-radius: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.16);
  padding: clamp(1.35rem, 3vw, 1.8rem);
  min-height: 15rem;
  transition:
    transform 220ms ease-in-out,
    border-color 220ms ease-in-out,
    background-color 220ms ease-in-out;
}

.legacy-home .use-case-card:hover {
  transform: translateY(-2px);
  border-color: rgba(195, 154, 96, 0.2);
  background:
    linear-gradient(180deg, rgba(195, 154, 96, 0.055), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.18);
}

.legacy-home .home-final-action {
  display: flex;
  width: min(100%, 42rem);
  margin: clamp(2.4rem, 6vw, 4.5rem) auto 0;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(195, 154, 96, 0.16);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.016)),
    rgba(5, 7, 11, 0.64);
  padding: 0.72rem 0.72rem 0.72rem 1.25rem;
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(16px);
}

.legacy-home .home-final-action p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.legacy-home .home-final-action .action-primary {
  min-width: 10.5rem;
}

.home-back-top {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 40;
  display: inline-flex;
  width: 3.7rem;
  height: 3.7rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.08rem;
  border: 1px solid rgba(195, 154, 96, 0.2);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 0%, rgba(195, 154, 96, 0.13), transparent 58%),
    rgba(5, 7, 11, 0.72);
  color: rgba(255, 248, 232, 0.78);
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 0.5rem, 0) scale(0.96);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(16px);
  transition:
    transform 180ms ease,
    opacity 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    background-color 180ms ease;
}

.home-back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

.home-back-top:hover {
  transform: translateY(-2px);
  border-color: rgba(195, 154, 96, 0.36);
  color: #fff4dc;
}

.home-back-top span {
  font-size: 0.58rem;
  letter-spacing: 0.16em;
}

.home-back-top i {
  font-style: normal;
  font-size: 1rem;
  line-height: 1;
}

.legacy-home .use-case-card span {
  display: block;
  margin-bottom: 1.6rem;
  font-size: 0.74rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(195, 154, 96, 0.75);
}

.legacy-home .use-case-card h3 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--text-strong, #f7f2e8);
}

.legacy-home .use-case-card p {
  margin: 1rem 0 0;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.62);
}

.legacy-home .reveal-card {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 560ms ease-in-out,
    transform 560ms ease-in-out;
}

.legacy-home .reveal-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.legacy-home .legacy-section--cards .reveal-card {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .legacy-home .legacy-story-grid,
  .legacy-home .legacy-use-grid {
    grid-template-columns: 1fr;
  }

  .legacy-home .legacy-section:not(.legacy-section--horizontal) .legacy-stage-wrap {
    position: relative;
    top: auto;
  }

  .legacy-home .legacy-section--horizontal .legacy-wrap {
    min-height: 100svh;
    height: 100svh;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .legacy-home .legacy-section--horizontal .legacy-intro {
    flex: 0 0 auto;
  }

  .legacy-home .legacy-section--horizontal .legacy-intro h2 {
    font-size: clamp(1.9rem, 8vw, 3rem);
    line-height: 1.08;
  }

  .legacy-home .legacy-section--horizontal .legacy-story-grid {
    display: grid;
    flex: 1 1 auto;
    min-height: 0;
    grid-template-rows: minmax(0, 0.9fr) minmax(0, 0.75fr);
    gap: 1rem;
    margin-top: 1.4rem;
  }

  .legacy-home .legacy-section--horizontal .legacy-stage-wrap {
    position: relative;
    top: auto;
    min-height: 0;
  }

  .legacy-home .legacy-section--horizontal .norma-stage {
    height: 100%;
    padding: 0.6rem;
    border-radius: 1.4rem;
  }

  .legacy-home .legacy-section--horizontal .norma-stage__media {
    height: 100%;
    min-height: 0;
    border-radius: 1rem;
  }

  .legacy-home .legacy-section--horizontal .norma-stage__content {
    padding: 1rem;
  }

  .legacy-home .legacy-section--horizontal .norma-stage__index {
    font-size: 3rem;
  }

  .legacy-home .legacy-section--horizontal .norma-stage__content h3 {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }

  .legacy-home .legacy-section--horizontal .norma-stage__content p:last-child {
    display: none;
  }

  .legacy-home .legacy-section--horizontal .legacy-card-stack {
    align-items: stretch;
  }

  .legacy-home .legacy-section--horizontal .story-card {
    width: min(20.5rem, 84vw);
    min-height: 0;
    height: 100%;
    padding: 1.1rem;
    border-radius: 1.35rem;
  }

  .legacy-home .legacy-section--horizontal .story-card h3 {
    font-size: clamp(1.35rem, 7vw, 2rem);
  }

  .legacy-home .legacy-section--horizontal .story-card p:not(.eyebrow) {
    margin-top: 0.65rem;
    line-height: 1.65;
  }

  .legacy-home .norma-stage__media {
    min-height: 28rem;
  }
}

@media (max-width: 680px) {
  .legacy-home .hero-shell {
    min-height: 100svh;
  }

  .legacy-home .hero-shell__image {
    object-position: 62% center;
    opacity: 0.56;
  }

  .legacy-home .hero-shell__shade {
    background:
      linear-gradient(180deg, rgba(5, 6, 8, 0.58) 0%, rgba(5, 6, 8, 0.84) 54%, rgba(5, 6, 8, 0.96) 100%),
      linear-gradient(90deg, rgba(5, 6, 8, 0.82), rgba(5, 6, 8, 0.32));
  }

  .legacy-home .hero-shell__content {
    min-height: 100svh;
    padding:
      max(1.15rem, env(safe-area-inset-top))
      1.2rem
      max(1.05rem, env(safe-area-inset-bottom));
  }

  .legacy-home .hero-topline,
  .legacy-home .hero-bottomline {
    gap: 0.72rem;
    font-size: 0.56rem;
    letter-spacing: 0.28em;
  }

  .legacy-home .hero-topline span,
  .legacy-home .hero-bottomline span {
    white-space: nowrap;
  }

  .legacy-home .hero-copy {
    padding: clamp(2.5rem, 9svh, 4.6rem) 0 clamp(2.2rem, 8svh, 3.8rem);
  }

  .legacy-home .hero-title {
    font-size: clamp(4.05rem, 23vw, 5.6rem);
    letter-spacing: -0.055em;
    line-height: 0.88;
  }

  .legacy-home .hero-subtitle {
    margin: 0.85rem 0 1rem;
    font-size: clamp(1rem, 4.2vw, 1.18rem);
    line-height: 1.66;
  }

  .legacy-home .hero-measure {
    font-size: 0.86rem;
    line-height: 1.78;
  }

  .legacy-home .hero-actions {
    margin-top: 1.45rem;
  }

  .legacy-home .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .legacy-home .action-primary,
  .legacy-home .action-secondary {
    min-height: 3.08rem;
    width: 100%;
    padding-inline: 1rem;
    font-size: 0.88rem;
  }

  .legacy-home .home-final-action {
    display: grid;
    border-radius: 1.35rem;
    padding: 1rem;
    justify-items: stretch;
  }

  .legacy-home .home-final-action p {
    text-align: center;
  }

  .home-back-top {
    right: max(0.95rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    width: 2.9rem;
    height: 2.9rem;
  }

  .legacy-home .hero-bottomline {
    justify-content: space-between;
    opacity: 0.72;
  }

  .legacy-home .legacy-wrap {
    width: min(100% - 2rem, 88rem);
  }

  .legacy-home .norma-stage__media {
    min-height: 22rem;
  }

  .legacy-home .legacy-section--horizontal .norma-stage__media {
    min-height: 0;
  }
}

/* Scroll-driven motion showcase. GSAP owns transforms and opacity while the
   existing layout remains the no-JavaScript fallback. */
.has-motion-showcase .legacy-home .reveal-card {
  transition: none;
}

.legacy-home .motion-copy {
  perspective: 900px;
}

.legacy-home .motion-char {
  display: inline-block;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.legacy-home .hero-title.motion-copy {
  overflow: hidden;
  padding-bottom: 0.08em;
}

.legacy-home .hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.15rem;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  gap: 0.34rem;
  color: rgba(244, 239, 229, 0.42);
  pointer-events: none;
  transform: translateX(-50%);
}

.legacy-home .hero-scroll-cue span,
.legacy-home .hero-scroll-cue small {
  font-size: 0.6rem;
  font-weight: 560;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.legacy-home .hero-scroll-cue small {
  display: none;
}

.legacy-home .hero-scroll-cue i {
  position: relative;
  display: block;
  overflow: hidden;
  width: 1px;
  height: 2.1rem;
  background: rgba(244, 239, 229, 0.14);
}

.legacy-home .hero-scroll-cue i b {
  position: absolute;
  inset: 0;
  display: block;
  background: #d8b878;
}

.legacy-home .intelligence-media,
.legacy-home .intelligence-media img,
.legacy-home .use-case-card,
.legacy-home .identity-ranks span {
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

@media (max-width: 680px) {
  .legacy-home .hero-scroll-cue {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legacy-home .motion-char,
  .legacy-home .hero-scroll-cue,
  .legacy-home .hero-scroll-cue i b,
  .legacy-home .intelligence-media,
  .legacy-home .intelligence-media img,
  .legacy-home .intelligence-points article,
  .legacy-home .identity-rank-system,
  .legacy-home .identity-ranks span,
  .legacy-home .use-case-card,
  .legacy-home .home-final-action {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* External Agent runtime manager */
.runtime-dialog {
  width: min(94vw, 70rem);
  max-width: min(94vw, 70rem);
  max-height: min(92dvh, 58rem);
  overflow: visible;
}

.runtime-dialog__panel {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
  width: 100%;
  max-height: min(92dvh, 58rem);
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(216, 184, 120, 0.2);
  border-radius: 8px;
  background: #0b0c0e;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.56);
  padding: 0;
}

.runtime-dialog__header,
.runtime-dialog__footer,
.runtime-section__heading,
.runtime-progress__copy,
.runtime-section__actions,
.runtime-dialog__header-actions,
.runtime-dialog__identity,
.runtime-dialog__footer > div {
  display: flex;
  align-items: center;
}

.runtime-dialog__header {
  min-width: 0;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1rem 1.15rem;
}

.runtime-dialog__identity {
  min-width: 0;
  gap: 0.75rem;
}

.runtime-dialog__identity > div {
  min-width: 0;
}

.runtime-dialog__mark {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(216, 184, 120, 0.22);
  border-radius: 7px;
  background: rgba(216, 184, 120, 0.07);
}

.runtime-dialog__mark img,
.runtime-icon-button img,
.runtime-command img {
  width: 1rem;
  height: 1rem;
  filter: invert(1);
}

.runtime-dialog__header h2,
.runtime-section__heading h3 {
  margin: 0;
  color: var(--norma-text, #f4efe5);
  letter-spacing: 0;
}

.runtime-dialog__header h2 {
  font-size: 1.08rem;
}

.runtime-dialog__header p:last-child {
  max-width: 42rem;
  margin: 0.2rem 0 0;
  overflow: hidden;
  color: var(--norma-muted, rgba(244, 239, 229, 0.62));
  font-size: 0.72rem;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runtime-dialog__header-actions {
  flex: 0 0 auto;
  gap: 0.55rem;
}

.runtime-icon-button {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  opacity: 0.72;
}

.runtime-icon-button:hover,
.runtime-icon-button:focus-visible {
  border-color: rgba(216, 184, 120, 0.34);
  background: rgba(216, 184, 120, 0.07);
  opacity: 1;
}

.runtime-status-pill {
  display: inline-flex;
  min-height: 2.05rem;
  align-items: center;
  gap: 0.38rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  padding: 0 0.65rem;
  color: rgba(244, 239, 229, 0.66);
  font-size: 0.68rem;
  white-space: nowrap;
}

.runtime-status-pill i {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #7f848c;
}

.runtime-status-pill[data-runtime-status="ready"] {
  border-color: rgba(116, 188, 145, 0.28);
  color: #a8d9bb;
}

.runtime-status-pill[data-runtime-status="ready"] i,
.runtime-status-pill[data-runtime-status="disabled"] i {
  background: #74bc91;
}

.runtime-status-pill[data-runtime-status="disabled"] {
  border-color: rgba(116, 188, 145, 0.18);
  color: rgba(168, 217, 187, 0.78);
}

.runtime-status-pill[data-runtime-status="error"] {
  border-color: rgba(219, 126, 116, 0.3);
  color: #e1a19a;
}

.runtime-status-pill[data-runtime-status="error"] i {
  background: #db7e74;
}

.runtime-status-pill[data-runtime-status="downloading"] i,
.runtime-status-pill[data-runtime-status="installing"] i,
.runtime-status-pill[data-runtime-status="validating"] i {
  background: #d8b878;
  box-shadow: 0 0 0 4px rgba(216, 184, 120, 0.1);
}

.runtime-progress {
  display: grid;
  gap: 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  padding: 0.72rem 1.15rem;
}

.runtime-progress__track {
  width: 100%;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.runtime-progress__track span {
  display: block;
  width: 0;
  height: 100%;
  background: #d8b878;
  transition: width 220ms ease;
}

.runtime-progress__copy {
  justify-content: space-between;
  gap: 1rem;
  color: rgba(244, 239, 229, 0.48);
  font-size: 0.65rem;
}

.runtime-progress__copy strong {
  overflow: hidden;
  color: rgba(244, 239, 229, 0.72);
  font-weight: 520;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runtime-lifecycle {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0;
  list-style: none;
}

.runtime-lifecycle li {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 4.25rem;
  align-content: center;
  gap: 0.08rem;
  border-right: 1px solid rgba(255, 255, 255, 0.055);
  padding: 0.62rem 0.85rem;
  color: rgba(244, 239, 229, 0.32);
}

.runtime-lifecycle li:last-child {
  border-right: 0;
}

.runtime-lifecycle li::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: transparent;
  content: "";
}

.runtime-lifecycle li.is-complete,
.runtime-lifecycle li.is-active {
  color: rgba(244, 239, 229, 0.82);
}

.runtime-lifecycle li.is-active::after {
  background: #d8b878;
}

.runtime-lifecycle li.is-complete::after {
  background: rgba(116, 188, 145, 0.7);
}

.runtime-lifecycle li span,
.runtime-lifecycle li small {
  overflow: hidden;
  font-size: 0.59rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runtime-lifecycle li span {
  color: #a98b55;
}

.runtime-lifecycle li b {
  font-size: 0.76rem;
  font-weight: 560;
}

.runtime-dialog__body {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(15rem, 0.82fr) minmax(22rem, 1.18fr);
  overflow: auto;
  overscroll-behavior: contain;
}

.runtime-section {
  min-width: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  padding: 1rem 1.15rem;
}

.runtime-package-section,
.runtime-diagnostics-section {
  border-right: 1px solid rgba(255, 255, 255, 0.065);
}

.runtime-config-form {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.runtime-log-section {
  grid-column: 1 / -1;
  border-bottom: 0;
}

.runtime-section__heading {
  min-width: 0;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.runtime-section__heading h3 {
  font-size: 0.9rem;
}

.runtime-section__heading > span {
  color: rgba(244, 239, 229, 0.42);
  font-size: 0.62rem;
  text-align: right;
}

.runtime-package-meta {
  display: grid;
  gap: 0;
  margin: 0;
}

.runtime-package-meta div {
  display: grid;
  grid-template-columns: 5.2rem minmax(0, 1fr);
  gap: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  padding: 0.56rem 0;
  font-size: 0.67rem;
}

.runtime-package-meta dt {
  color: rgba(244, 239, 229, 0.38);
}

.runtime-package-meta dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: rgba(244, 239, 229, 0.7);
}

.runtime-section__actions {
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.runtime-command {
  display: inline-flex;
  min-height: 2.35rem;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  border-radius: 6px;
  padding: 0 0.78rem;
  font-size: 0.72rem;
  white-space: nowrap;
}

.runtime-command:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.runtime-dialog .button--danger {
  border: 1px solid rgba(219, 126, 116, 0.22);
  background: transparent;
  color: #d79b94;
}

.runtime-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
}

.runtime-form-grid__wide {
  grid-column: 1 / -1;
}

.runtime-dialog .runtime-form-grid label {
  min-width: 0;
  gap: 0.34rem;
}

.runtime-dialog .runtime-form-grid label > span {
  color: rgba(244, 239, 229, 0.48);
  font-size: 0.65rem;
  letter-spacing: 0;
}

.runtime-dialog .runtime-form-grid input,
.runtime-dialog .runtime-form-grid select {
  width: 100%;
  min-width: 0;
  min-height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  background: #111317;
  padding: 0 0.7rem;
  color: rgba(244, 239, 229, 0.86);
  font-size: 0.72rem;
}

.runtime-dialog .runtime-toggle-row {
  display: flex;
  min-height: 2.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
}

.runtime-dialog .runtime-toggle-row > span {
  display: grid;
  gap: 0.08rem;
}

.runtime-dialog .runtime-toggle-row b {
  color: rgba(244, 239, 229, 0.72);
  font-size: 0.66rem;
  font-weight: 540;
}

.runtime-dialog .runtime-toggle-row small {
  color: rgba(244, 239, 229, 0.34);
  font-size: 0.58rem;
}

.runtime-dialog .runtime-toggle-row input {
  width: 1rem;
  min-height: 1rem;
  flex: 0 0 auto;
}

.runtime-custom-field[hidden] {
  display: none !important;
}

.runtime-diagnostics {
  display: grid;
  gap: 0;
}

.runtime-diagnostic {
  display: grid;
  grid-template-columns: 0.58rem minmax(0, 1fr);
  gap: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  padding: 0.58rem 0;
}

.runtime-diagnostic i {
  width: 0.46rem;
  height: 0.46rem;
  margin-top: 0.24rem;
  border-radius: 50%;
  background: #777c84;
}

.runtime-diagnostic[data-status="pass"] i {
  background: #74bc91;
}

.runtime-diagnostic[data-status="fail"] i {
  background: #db7e74;
}

.runtime-diagnostic div {
  display: grid;
  min-width: 0;
  gap: 0.12rem;
}

.runtime-diagnostic strong {
  color: rgba(244, 239, 229, 0.74);
  font-size: 0.68rem;
  font-weight: 550;
}

.runtime-diagnostic small,
.runtime-empty {
  margin: 0;
  color: rgba(244, 239, 229, 0.4);
  font-size: 0.62rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.runtime-log {
  max-height: 8.5rem;
  margin: 0;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  background: #070809;
  padding: 0.72rem;
  color: rgba(198, 206, 201, 0.68);
  font: 0.62rem/1.6 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.runtime-dialog__footer {
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
  padding: 0.75rem 1.15rem;
}

.runtime-dialog__footer > div {
  gap: 0.5rem;
}

.runtime-dialog__message {
  min-height: 1.55rem;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.4rem 1.15rem;
  color: rgba(244, 239, 229, 0.48);
  font-size: 0.62rem;
}

.runtime-dialog__message:empty {
  display: none;
}

.runtime-dialog__message[data-status="error"] {
  color: #e1a19a;
}

.runtime-dialog__message[data-status="success"] {
  color: #a8d9bb;
}

.equipment-item.is-runtime {
  border-color: rgba(216, 184, 120, 0.2);
}

.equipment-item__state[data-runtime-status="error"] {
  color: #e1a19a;
}

.equipment-item__state[data-runtime-status="error"] i {
  background: #db7e74;
}

.equipment-item__state[data-runtime-status="downloading"] i,
.equipment-item__state[data-runtime-status="installing"] i,
.equipment-item__state[data-runtime-status="validating"] i {
  background: #d8b878;
  animation: runtime-status-pulse 1.2s ease-in-out infinite;
}

@keyframes runtime-status-pulse {
  50% { opacity: 0.35; }
}

@media (prefers-color-scheme: light) {
  .runtime-dialog__panel {
    border-color: rgba(110, 82, 34, 0.2);
    background: #f6f4ef;
    color: #24221f;
  }

  .runtime-dialog__mark img,
  .runtime-icon-button img,
  .runtime-command img {
    filter: none;
  }

  .runtime-dialog__header h2,
  .runtime-section__heading h3,
  .runtime-dialog .runtime-toggle-row b,
  .runtime-diagnostic strong {
    color: #24221f;
  }

  .runtime-dialog__header,
  .runtime-dialog__footer,
  .runtime-section,
  .runtime-lifecycle,
  .runtime-progress,
  .runtime-dialog__message,
  .runtime-package-meta div,
  .runtime-diagnostic {
    border-color: rgba(35, 32, 27, 0.1);
  }

  .runtime-dialog .runtime-form-grid input,
  .runtime-dialog .runtime-form-grid select,
  .runtime-log {
    border-color: rgba(35, 32, 27, 0.13);
    background: #eeebe4;
    color: #24221f;
  }
}

@media (max-width: 800px) {
  .runtime-dialog {
    width: min(96vw, 46rem);
    max-width: min(96vw, 46rem);
  }

  .runtime-dialog__body {
    grid-template-columns: 1fr;
  }

  .runtime-package-section,
  .runtime-diagnostics-section {
    border-right: 0;
  }

  .runtime-config-form,
  .runtime-log-section {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 620px) {
  .runtime-dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
  }

  .runtime-dialog__panel {
    height: 100dvh;
    max-height: 100dvh;
    border-width: 0;
    border-radius: 0;
  }

  .runtime-dialog__header {
    align-items: flex-start;
    padding: max(0.82rem, env(safe-area-inset-top)) 0.82rem 0.75rem;
  }

  .runtime-dialog__mark {
    display: none;
  }

  .runtime-dialog__header p:last-child {
    max-width: 62vw;
  }

  .runtime-status-pill {
    display: none;
  }

  .runtime-progress {
    padding: 0.62rem 0.82rem;
  }

  .runtime-lifecycle li {
    min-height: 3.65rem;
    padding: 0.5rem 0.4rem;
  }

  .runtime-lifecycle li small {
    display: none;
  }

  .runtime-form-grid {
    grid-template-columns: 1fr;
  }

  .runtime-form-grid__wide {
    grid-column: 1;
  }

  .runtime-section {
    padding: 0.9rem 0.82rem;
  }

  .runtime-dialog__footer {
    padding: 0.62rem 0.82rem;
    padding-bottom: max(0.62rem, env(safe-area-inset-bottom));
  }

  .runtime-dialog__footer .runtime-command {
    min-width: 2.45rem;
    padding: 0 0.68rem;
  }

  .runtime-dialog__footer .runtime-command span {
    display: none;
  }

  .runtime-dialog__message {
    padding: 0.36rem 0.82rem;
  }
}

@media (orientation: landscape) and (max-height: 520px) and (max-width: 980px) {
  .runtime-dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
  }

  .runtime-dialog__panel {
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .runtime-lifecycle li {
    min-height: 3.2rem;
  }

  .runtime-dialog__body {
    grid-template-columns: minmax(14rem, 0.8fr) minmax(20rem, 1.2fr);
  }

  .runtime-package-section,
  .runtime-diagnostics-section {
    border-right: 1px solid rgba(255, 255, 255, 0.065);
  }

  .runtime-config-form {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .runtime-log-section {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .runtime-progress__track span {
    transition: none;
  }

  .equipment-item__state i {
    animation: none !important;
  }
}

/* Console search, projects, and generated media: 2026-07-15 */
body[data-console-route="chat"] .conversation-context-bar__menu {
  min-width: 6.2rem;
  min-height: 2.3rem;
  gap: 0.48rem;
  border: 1px solid light-dark(rgba(20, 20, 20, 0.10), rgba(255, 255, 255, 0.11));
  border-radius: 1.15rem;
  background: light-dark(rgba(0, 0, 0, 0.045), rgba(255, 255, 255, 0.065));
  padding: 0 0.75rem;
  color: light-dark(#232323, #eeeeee);
  font-size: 0.76rem;
  font-weight: 650;
}

body[data-console-route="chat"] .conversation-context-bar__menu > img {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 1.05rem;
  opacity: 0.88;
}

body[data-console-route="chat"] .conversation-context-bar__menu > span {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

body[data-console-route="chat"] .conversation-context-bar__menu:hover,
body.is-project-rail-open[data-console-route="chat"] .conversation-context-bar__menu {
  border-color: rgba(216, 184, 120, 0.34);
  background: light-dark(rgba(151, 112, 51, 0.09), rgba(216, 184, 120, 0.12));
  color: light-dark(#765315, #ead08e);
}

.project-rail__section--projects .project-rail__section-title h3 {
  color: light-dark(#4e3a17, #d8bc78);
  font-size: 0.72rem;
  font-weight: 720;
}

.project-rail__section--projects .project-list button {
  min-height: 3.15rem;
}

.answer-sources {
  width: 100%;
  margin-top: 0.85rem;
  border-top: 1px solid light-dark(rgba(20, 20, 20, 0.09), rgba(255, 255, 255, 0.09));
  padding-top: 0.62rem;
}

.answer-sources > summary {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  gap: 0.36rem;
  border-radius: 1rem;
  padding: 0 0.62rem;
  color: light-dark(#383838, #d8d8d8);
  cursor: pointer;
  list-style: none;
  font-size: 0.72rem;
}

.answer-sources > summary::-webkit-details-marker {
  display: none;
}

.answer-sources > summary:hover,
.answer-sources[open] > summary {
  background: light-dark(rgba(0, 0, 0, 0.05), rgba(255, 255, 255, 0.07));
}

.answer-sources > summary strong {
  font-size: 0.72rem;
  font-weight: 700;
}

.answer-sources > summary small {
  color: light-dark(rgba(25, 25, 25, 0.45), rgba(240, 240, 240, 0.43));
  font-size: 0.64rem;
}

.answer-source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.42rem;
  margin-top: 0.48rem;
}

.answer-source {
  display: grid;
  min-width: 0;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  align-items: start;
  gap: 0.52rem;
  border: 1px solid light-dark(rgba(0, 0, 0, 0.08), rgba(255, 255, 255, 0.09));
  border-radius: 8px;
  background: light-dark(#f6f6f6, #1b1b1b);
  padding: 0.68rem;
  color: light-dark(#242424, #e9e9e9);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.answer-source:hover,
.answer-source:focus-visible {
  border-color: rgba(216, 184, 120, 0.32);
  background: light-dark(#f1eee7, #22201b);
  outline: none;
}

.answer-source__index {
  display: grid;
  width: 1.5rem;
  height: 1.5rem;
  place-items: center;
  border: 1px solid rgba(216, 184, 120, 0.28);
  border-radius: 50%;
  color: light-dark(#86611f, #e2c47d);
  font-size: 0.64rem;
  font-weight: 760;
}

.answer-source__copy {
  display: grid;
  min-width: 0;
  gap: 0.16rem;
}

.answer-source__copy strong {
  overflow: hidden;
  color: inherit;
  font-size: 0.75rem;
  font-weight: 680;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.answer-source__copy small {
  overflow: hidden;
  color: light-dark(rgba(35, 35, 35, 0.48), rgba(235, 235, 235, 0.45));
  font-size: 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.answer-source__copy > span {
  display: -webkit-box;
  overflow: hidden;
  color: light-dark(rgba(35, 35, 35, 0.68), rgba(235, 235, 235, 0.66));
  font-size: 0.68rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.source-cite--inline {
  margin-inline: 0.12rem;
  vertical-align: 0.08em;
}

@media (max-width: 680px) {
  body[data-console-route="chat"] .conversation-context-bar__menu {
    min-width: 5.65rem;
    padding-inline: 0.62rem;
  }

  .answer-source-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .answer-source {
    min-height: 4.2rem;
  }
}

@media (max-width: 360px) {
  body[data-console-route="chat"] .conversation-context-bar__menu {
    min-width: 5.1rem;
    gap: 0.36rem;
    padding-inline: 0.52rem;
  }
}

/* Motion showcase pass 3: synchronized story scan, public ranks, and card stacks. */
.norma-particle-layer--home {
  background: transparent;
}

.norma-particle-layer--home::after {
  background: transparent;
}

.norma-particle-layer--home .norma-particle-canvas {
  filter: contrast(1.14) brightness(1.22) saturate(1.08);
}

.legacy-home .hero-shell__shade {
  background: transparent !important;
}

.legacy-home .hero-copy,
.legacy-home .hero-topline,
.legacy-home .hero-bottomline {
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.92), 0 0 20px rgba(0, 0, 0, 0.72);
}

.legacy-home .hero-subtitle,
.legacy-home .hero-measure {
  color: rgba(255, 255, 255, 0.94);
}

.kinetic-word {
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: 10rem;
}

.kinetic-word--three {
  font-size: 10rem;
}

.legacy-home .identity-rank-system {
  grid-template-columns: minmax(15rem, 0.8fr) minmax(28rem, 1.35fr) minmax(16rem, 0.8fr);
  min-height: 28rem;
  overflow: hidden;
  perspective: 80rem;
}

.legacy-home .identity-rank-copy h3 {
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: 1.8rem;
  font-weight: 500;
}

.legacy-home .identity-rank-copy > p:last-child {
  margin: 1rem 0 0;
  max-width: 24rem;
  color: rgba(247, 244, 238, 0.54);
  font-size: 0.88rem;
  line-height: 1.75;
}

.legacy-home .identity-rank-stage {
  min-width: 0;
  transform-style: preserve-3d;
}

.legacy-home .identity-ranks {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
  padding: 1.2rem 0 2.5rem;
  transform-style: preserve-3d;
}

.legacy-home .identity-ranks::before {
  left: 7%;
  right: 7%;
  background: linear-gradient(90deg, #d8b878, rgba(255, 255, 255, 0.17));
  box-shadow: 0 0 18px rgba(216, 184, 120, 0.2);
}

.legacy-home .identity-ranks > span {
  position: relative;
  overflow: visible;
  isolation: isolate;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.legacy-home .identity-ranks > span::after {
  content: attr(data-rank-label);
  position: absolute;
  top: calc(100% + 0.7rem);
  left: 50%;
  color: rgba(247, 244, 238, 0.46);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.64rem;
  line-height: 1;
  white-space: nowrap;
  transform: translateX(-50%);
}

.legacy-home .identity-ranks > span.is-public-top {
  border-color: rgba(216, 184, 120, 0.72);
  background: rgba(216, 184, 120, 0.12);
  color: #efd58f;
}

.legacy-home .identity-ranks .rank-letter,
.legacy-home .identity-ranks .rank-slice {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: inherit;
  font-family: Georgia, "Times New Roman", serif;
  font-size: inherit;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
}

.legacy-home .identity-ranks .rank-letter {
  opacity: 0.12;
}

.legacy-home .identity-ranks .rank-slice {
  will-change: transform, opacity;
}

.legacy-home .identity-ranks .rank-slice--1 {
  clip-path: inset(0 0 66.666% 0);
}

.legacy-home .identity-ranks .rank-slice--2 {
  clip-path: inset(33.333% 0 33.333% 0);
}

.legacy-home .identity-ranks .rank-slice--3 {
  clip-path: inset(66.666% 0 0 0);
}

.legacy-home .identity-rank-scale {
  display: grid;
  grid-template-columns: auto minmax(4rem, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  color: rgba(247, 244, 238, 0.34);
  font-size: 0.58rem;
  line-height: 1;
}

.legacy-home .identity-rank-scale i {
  position: relative;
  display: block;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.legacy-home .identity-rank-scale i b {
  position: absolute;
  inset: 0;
  display: block;
  background: linear-gradient(90deg, #d8b878, rgba(216, 184, 120, 0.14));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.legacy-home .identity-rank-note {
  max-width: 20rem;
}

.legacy-home .use-case-card__sheen {
  display: none;
}

@media (min-width: 1600px) {
  .kinetic-word,
  .kinetic-word--three {
    font-size: 16rem;
  }
}

@media (min-width: 769px) {
  .legacy-home .legacy-section--cards {
    min-height: 220vh !important;
    overflow: clip;
  }

  .legacy-home .legacy-section--cards > .legacy-wrap {
    position: sticky;
    top: 0;
    min-height: 100vh;
    height: 100vh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-content: center;
    overflow: hidden;
    padding-top: clamp(1.4rem, 4vh, 3rem);
    padding-bottom: clamp(1.4rem, 4vh, 3rem);
  }

  .legacy-home .legacy-section--cards .legacy-intro {
    margin-bottom: clamp(0.8rem, 2vh, 1.4rem);
  }

  .legacy-home .legacy-section--cards .legacy-intro h2 {
    margin-bottom: 0;
  }

  .legacy-home .legacy-section--cards .legacy-use-grid {
    align-self: center;
    perspective: 90rem;
    transform-style: preserve-3d;
  }

  .legacy-home .legacy-section--cards .use-case-card {
    min-height: 9.75rem;
    backface-visibility: hidden;
  }

  .legacy-home .legacy-section--cards .home-final-action {
    margin-top: clamp(0.8rem, 2vh, 1.3rem);
  }
}

@media (max-width: 980px) {
  .kinetic-word,
  .kinetic-word--three {
    font-size: 6.4rem;
  }

  .legacy-home .identity-rank-system {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .legacy-home .identity-rank-note {
    max-width: 36rem;
  }
}

@media (max-width: 768px) {
  .legacy-home .legacy-section--cards {
    min-height: 520svh !important;
    overflow: clip;
  }

  .legacy-home .legacy-section--cards > .legacy-wrap {
    position: sticky;
    top: 0;
    min-height: 100svh;
    height: 100svh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    padding-top: max(4.25rem, env(safe-area-inset-top));
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }

  .legacy-home .legacy-section--cards .legacy-intro {
    margin-bottom: 0.5rem;
  }

  .legacy-home .legacy-section--cards .legacy-intro h2 {
    margin-bottom: 0;
    font-size: clamp(2rem, 9.4vw, 2.75rem);
    line-height: 0.98;
  }

  .legacy-home .legacy-section--cards .legacy-use-grid {
    position: relative;
    display: block;
    min-height: 0;
    width: 100%;
    perspective: 70rem;
    transform-style: preserve-3d;
  }

  .legacy-home .legacy-section--cards .use-case-card {
    position: absolute;
    top: calc(50% - 5.75rem);
    right: 0;
    left: 0;
    z-index: calc(2 + var(--card-index));
    min-height: 11.5rem;
    margin: 0;
    background: #151515;
    backface-visibility: hidden;
    will-change: transform, opacity, clip-path;
  }

  .legacy-home .legacy-section--cards .home-final-action {
    position: relative;
    z-index: 20;
    margin-top: 0.65rem;
    background: #111;
  }
}

@media (max-width: 680px) {
  .legacy-home .hero-shell__image {
    opacity: 0.22;
  }

  .kinetic-word,
  .kinetic-word--three {
    font-size: 4.35rem;
  }

  .legacy-home .identity-rank-system {
    padding-block: 2rem;
  }

  .legacy-home .identity-rank-copy h3 {
    font-size: 1.55rem;
  }

  .legacy-home .identity-ranks {
    gap: 0.32rem;
    padding-bottom: 2.3rem;
  }

  .legacy-home .identity-ranks > span {
    font-size: 1.05rem;
  }
}

@media (orientation: landscape) and (max-height: 500px) and (max-width: 980px) {
  .kinetic-word,
  .kinetic-word--three {
    font-size: 4rem;
  }

  .legacy-home .legacy-section--cards {
    min-height: 520svh !important;
    overflow: clip;
  }

  .legacy-home .legacy-section--cards > .legacy-wrap {
    position: sticky;
    top: 0;
    min-height: 100svh;
    height: 100svh;
    display: grid;
    grid-template-columns: minmax(12rem, 0.8fr) minmax(18rem, 1.2fr);
    grid-template-rows: minmax(0, 1fr) auto;
    column-gap: 1.2rem;
    overflow: hidden;
    padding-top: max(3.25rem, env(safe-area-inset-top));
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  }

  .legacy-home .legacy-section--cards .legacy-intro {
    align-self: center;
    margin: 0;
  }

  .legacy-home .legacy-section--cards .legacy-intro h2 {
    margin: 0;
    font-size: clamp(1.9rem, 6.8vh, 2.5rem);
    line-height: 0.98;
  }

  .legacy-home .legacy-section--cards .legacy-use-grid {
    position: relative;
    display: block;
    min-height: 0;
    perspective: 70rem;
    transform-style: preserve-3d;
  }

  .legacy-home .legacy-section--cards .use-case-card {
    position: absolute;
    top: calc(50% - 4.5rem);
    right: 0;
    left: 0;
    z-index: calc(2 + var(--card-index));
    min-height: 9rem;
    margin: 0;
    background: #151515;
    backface-visibility: hidden;
    will-change: transform, opacity, clip-path;
  }

  .legacy-home .legacy-section--cards .home-final-action {
    position: relative;
    z-index: 20;
    grid-column: 1 / -1;
    margin-top: 0.35rem;
    background: #111;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legacy-home .identity-ranks .rank-letter {
    opacity: 1;
  }

  .legacy-home .identity-ranks .rank-slice {
    display: none;
  }

  .legacy-home .legacy-section--cards {
    min-height: auto !important;
  }

  .legacy-home .legacy-section--cards > .legacy-wrap {
    position: relative;
    min-height: 0;
    height: auto;
  }

  .legacy-home .legacy-section--cards .use-case-card {
    position: relative;
    top: auto;
  }
}

/* Final mobile capability stage and transparent hero corrections. */
.legacy-home .hero-copy,
.legacy-home .hero-topline,
.legacy-home .hero-bottomline {
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.92), 0 0 20px rgba(0, 0, 0, 0.72);
}

@media (max-width: 768px) {
  .legacy-home .legacy-section--cards {
    min-height: 520svh !important;
    overflow: clip;
  }

  .legacy-home .legacy-section--cards > .legacy-wrap {
    position: sticky;
    top: 0;
    min-height: 100svh;
    height: 100svh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    padding-top: max(4.25rem, env(safe-area-inset-top));
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }

  .legacy-home .legacy-section--cards .legacy-intro {
    margin-bottom: 0.5rem;
  }

  .legacy-home .legacy-section--cards .legacy-intro h2 {
    margin-bottom: 0;
    font-size: clamp(2rem, 9.4vw, 2.75rem);
    line-height: 0.98;
  }

  .legacy-home .legacy-section--cards .legacy-use-grid {
    position: relative;
    display: block;
    min-height: 0;
    width: 100%;
    perspective: 70rem;
    transform-style: preserve-3d;
  }

  .legacy-home .legacy-section--cards .use-case-card {
    position: absolute;
    top: calc(50% - 5.75rem);
    right: 0;
    left: 0;
    z-index: calc(2 + var(--card-index));
    min-height: 11.5rem;
    margin: 0;
    background: #151515;
    backface-visibility: hidden;
    will-change: transform, opacity, clip-path;
  }

  .legacy-home .legacy-section--cards .home-final-action {
    position: relative;
    z-index: 20;
    margin-top: 0.65rem;
    background: #111;
  }
}

@media (orientation: landscape) and (max-height: 500px) and (max-width: 980px) {
  .legacy-home .legacy-section--cards {
    min-height: 520svh !important;
    overflow: clip;
  }

  .legacy-home .legacy-section--cards > .legacy-wrap {
    position: sticky;
    top: 0;
    min-height: 100svh;
    height: 100svh;
    display: grid;
    grid-template-columns: minmax(12rem, 0.8fr) minmax(18rem, 1.2fr);
    grid-template-rows: minmax(0, 1fr) auto;
    column-gap: 1.2rem;
    overflow: hidden;
    padding-top: max(3.25rem, env(safe-area-inset-top));
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  }

  .legacy-home .legacy-section--cards .legacy-intro {
    align-self: center;
    margin: 0;
  }

  .legacy-home .legacy-section--cards .legacy-intro h2 {
    margin: 0;
    font-size: clamp(1.9rem, 6.8vh, 2.5rem);
    line-height: 0.98;
  }

  .legacy-home .legacy-section--cards .legacy-use-grid {
    position: relative;
    display: block;
    min-height: 0;
    perspective: 70rem;
    transform-style: preserve-3d;
  }

  .legacy-home .legacy-section--cards .use-case-card {
    position: absolute;
    top: calc(50% - 4.5rem);
    right: 0;
    left: 0;
    z-index: calc(2 + var(--card-index));
    min-height: 9rem;
    margin: 0;
    background: #151515;
    backface-visibility: hidden;
    will-change: transform, opacity, clip-path;
  }

  .legacy-home .legacy-section--cards .home-final-action {
    position: relative;
    z-index: 20;
    grid-column: 1 / -1;
    margin-top: 0.35rem;
    background: #111;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legacy-home .legacy-section--cards {
    min-height: auto !important;
  }

  .legacy-home .legacy-section--cards > .legacy-wrap {
    position: relative;
    min-height: 0;
    height: auto;
    display: block;
    overflow: visible;
  }

  .legacy-home .legacy-section--cards .legacy-use-grid {
    display: grid;
  }

  .legacy-home .legacy-section--cards .use-case-card {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
  }
}

/* Keep runtime workspace dimensions above the shared dialog defaults. */
.system-dialog.runtime-dialog {
  width: min(94vw, 70rem);
  max-width: min(94vw, 70rem);
  max-height: min(92dvh, 58rem);
}

.system-dialog.runtime-dialog .runtime-dialog__panel {
  max-height: min(92dvh, 58rem);
  gap: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #0b0c0e;
  padding: 0;
}

@media (prefers-color-scheme: light) {
  .system-dialog.runtime-dialog .runtime-dialog__panel {
    background: #f6f4ef;
  }
}

@media (max-width: 800px) {
  .system-dialog.runtime-dialog {
    width: min(96vw, 46rem);
    max-width: min(96vw, 46rem);
  }
}

@media (max-width: 620px), (orientation: landscape) and (max-height: 520px) and (max-width: 980px) {
  .system-dialog.runtime-dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
  }

  .system-dialog.runtime-dialog .runtime-dialog__panel {
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }
}


/* Homepage narrative refinement: editorial type, silent identity and product proof. */
.kinetic-interlude {
  min-height: 210svh;
  overflow: visible;
  clip-path: inset(0 round 0);
}

.kinetic-interlude__shade {
  background:
    linear-gradient(180deg, #050505 0%, transparent 18%, transparent 82%, #0b0b0b 100%),
    linear-gradient(90deg, rgba(5, 5, 5, 0.62), rgba(5, 5, 5, 0.14) 48%, rgba(5, 5, 5, 0.48));
}

.kinetic-interlude__content {
  position: sticky;
  top: 0;
  min-height: 100svh;
  height: 100svh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  padding: clamp(1.5rem, 4vh, 3rem) clamp(1.25rem, 5vw, 5rem);
}

.kinetic-protocol,
.kinetic-interlude__content > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  color: rgba(246, 238, 222, 0.48);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.63rem;
  line-height: 1;
  text-transform: uppercase;
}

.kinetic-protocol span:first-child,
.kinetic-interlude__content > footer span:nth-child(2) {
  color: #d8b878;
}

.kinetic-sequence {
  position: relative;
  min-height: 0;
}

.kinetic-word,
.kinetic-word--two,
.kinetic-word--three {
  position: absolute;
  inset: 0;
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 3rem;
  overflow: visible;
  color: rgba(250, 246, 237, 0.96);
  font-size: inherit;
  text-align: left;
  white-space: normal;
  opacity: 0;
  will-change: transform, opacity, clip-path;
}

.kinetic-word__index {
  align-self: center;
  display: block;
  width: 3.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(216, 184, 120, 0.72);
  color: rgba(247, 239, 222, 0.62);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  line-height: 1;
}

.kinetic-word__copy {
  min-width: 0;
}

.kinetic-word__copy p {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin: 0;
  white-space: nowrap;
}

.kinetic-word__copy strong,
.kinetic-word__copy em {
  display: inline-block;
  color: rgba(250, 246, 237, 0.96);
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: 10rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.82;
}

.kinetic-word__copy em {
  color: transparent;
  -webkit-text-stroke: 1px rgba(239, 213, 143, 0.8);
}

.kinetic-word--three .kinetic-word__copy strong {
  color: #d8b878;
}

.kinetic-word__copy small {
  display: block;
  width: min(32rem, 72%);
  margin: 2rem auto 0;
  color: rgba(248, 241, 226, 0.68);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.75;
  text-align: center;
}

.legacy-home .identity-rank-system {
  display: block;
  min-height: 0;
  margin-top: clamp(5rem, 10vh, 9rem);
  padding: 1.35rem 0 0;
  overflow: hidden;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  background: transparent;
  perspective: 80rem;
}

.legacy-home .identity-rank-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(247, 244, 238, 0.34);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.6rem;
  line-height: 1;
  text-transform: uppercase;
}

.legacy-home .identity-rank-meta p,
.legacy-home .identity-rank-meta span {
  margin: 0;
}

.legacy-home .identity-rank-stage {
  min-width: 0;
  margin-top: 1rem;
  transform-style: preserve-3d;
}

.legacy-home .identity-ranks {
  --rank-line-progress: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  transform-style: preserve-3d;
}

.legacy-home .identity-ranks::before {
  top: 0;
  right: 0;
  left: 0;
  background: linear-gradient(90deg, #d8b878, rgba(255, 255, 255, 0.14) 68%, transparent);
  box-shadow: 0 0 18px rgba(216, 184, 120, 0.16);
}

.legacy-home .identity-ranks > span {
  position: relative;
  z-index: 1;
  min-height: 11rem;
  overflow: hidden;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  background: transparent !important;
  color: rgba(247, 244, 238, 0.76);
  font-size: 6.5rem;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.legacy-home .identity-ranks > span:first-child {
  border-left: 0;
}

.legacy-home .identity-ranks > span::after {
  display: none;
  content: none;
}

.legacy-home .identity-ranks > span.is-public-top {
  border-color: rgba(255, 255, 255, 0.1);
  background: transparent !important;
  color: #e6ca83;
}

.legacy-home .identity-ranks .rank-letter,
.legacy-home .identity-ranks .rank-slice {
  font-size: inherit;
}

.legacy-home .identity-ranks .rank-letter {
  opacity: 0.08;
}

.product-proof {
  position: relative;
  padding-block: clamp(6rem, 12vh, 11rem);
  overflow: hidden;
  background: #0b0b0b;
  color: #f7f2e8;
}

.product-proof::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 184, 120, 0.55), transparent);
}

.proof-intro {
  max-width: 70rem;
}

.proof-intro h2 {
  max-width: 63rem;
  margin: 1.25rem 0 0;
  color: #f6f0e5;
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: 6.75rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.96;
}

.proof-intro > p:last-child {
  max-width: 43rem;
  margin: 2rem 0 0;
  color: rgba(247, 244, 238, 0.62);
  font-size: 1.05rem;
  line-height: 1.9;
}

.proof-band {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(20rem, 0.76fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
  margin-top: clamp(7rem, 15vh, 13rem);
  padding-top: clamp(2rem, 5vh, 4rem);
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.proof-band--reverse {
  grid-template-columns: minmax(20rem, 0.76fr) minmax(0, 1.24fr);
}

.proof-band--reverse .proof-media {
  order: 2;
}

.proof-media {
  position: relative;
  min-height: 34rem;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
  clip-path: inset(0 round 8px);
  will-change: transform, clip-path;
}

.proof-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: inherit;
}

.proof-media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.06);
  will-change: transform;
}

.proof-copy {
  min-width: 0;
}

.proof-index {
  margin: 0 0 1.4rem;
  color: #d8b878;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.64rem;
  line-height: 1;
}

.proof-copy h3 {
  margin: 0;
  color: #f6f0e5;
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: 3.9rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.02;
}

.proof-copy > p:not(.proof-index) {
  max-width: 31rem;
  margin: 1.6rem 0 0;
  color: rgba(247, 244, 238, 0.62);
  font-size: 0.95rem;
  line-height: 1.85;
}

.proof-details {
  margin: 2.3rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.proof-details div {
  display: grid;
  grid-template-columns: 6.25rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.proof-details dt,
.proof-details dd {
  margin: 0;
}

.proof-details dt {
  color: rgba(235, 207, 143, 0.9);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
}

.proof-details dd {
  color: rgba(247, 244, 238, 0.64);
  font-size: 0.78rem;
  line-height: 1.65;
}

.proof-capability-strip {
  margin-top: clamp(7rem, 15vh, 12rem);
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.proof-capability-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 5rem;
  padding: 2.3rem 0;
  will-change: transform;
}

.proof-capability-track span {
  color: rgba(247, 242, 232, 0.82);
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: 3.75rem;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

@media (min-width: 769px) {
  .legacy-home .legacy-section--cards {
    min-height: 175vh !important;
  }
}

@media (min-width: 1600px) {
  .kinetic-word__copy strong,
  .kinetic-word__copy em {
    font-size: 13rem;
  }

  .proof-intro h2 {
    font-size: 8rem;
  }
}

@media (max-width: 1100px) {
  .kinetic-word,
  .kinetic-word--two,
  .kinetic-word--three {
    gap: 1.5rem;
  }

  .kinetic-word__copy strong,
  .kinetic-word__copy em {
    font-size: 7.4rem;
  }

  .proof-intro h2 {
    font-size: 5.25rem;
  }

  .proof-copy h3 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .kinetic-interlude {
    min-height: 195svh;
  }

  .kinetic-interlude__content {
    min-height: 100svh;
    height: 100svh;
    padding: max(1.2rem, env(safe-area-inset-top)) 1rem max(1.25rem, env(safe-area-inset-bottom));
  }

  .kinetic-protocol,
  .kinetic-interlude__content > footer {
    font-size: 0.56rem;
  }

  .kinetic-word,
  .kinetic-word--two,
  .kinetic-word--three {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .kinetic-word__index {
    position: absolute;
    top: 18%;
    left: 0;
    width: 2.5rem;
    font-size: 0.58rem;
  }

  .kinetic-word__copy strong,
  .kinetic-word__copy em {
    font-size: 4.35rem;
  }

  .kinetic-word__copy small {
    width: min(20rem, 90%);
    margin-top: 1.45rem;
    font-size: 0.78rem;
    line-height: 1.65;
  }

  .legacy-home .identity-rank-system {
    margin-top: 5rem;
    padding-top: 1rem;
  }

  .legacy-home .identity-rank-meta {
    font-size: 0.52rem;
  }

  .legacy-home .identity-ranks > span {
    min-height: 7.5rem;
    font-size: 3.5rem;
  }

  .product-proof {
    padding-block: 6rem;
  }

  .proof-intro h2 {
    margin-top: 1rem;
    font-size: 3.35rem;
    line-height: 1;
  }

  .proof-intro > p:last-child {
    margin-top: 1.45rem;
    font-size: 0.95rem;
    line-height: 1.75;
  }

  .proof-band,
  .proof-band--reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 6rem;
    padding-top: 1.25rem;
  }

  .proof-band--reverse .proof-media {
    order: 0;
  }

  .proof-media {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .proof-media img {
    min-height: 0;
  }

  .proof-copy h3 {
    font-size: 2.7rem;
    line-height: 1.04;
  }

  .proof-copy > p:not(.proof-index) {
    font-size: 0.92rem;
    line-height: 1.8;
  }

  .proof-details div {
    grid-template-columns: 5.25rem minmax(0, 1fr);
  }

  .proof-capability-strip {
    margin-top: 6rem;
  }

  .proof-capability-track {
    gap: 3rem;
    padding: 1.75rem 0;
  }

  .proof-capability-track span {
    font-size: 2.45rem;
  }

  .legacy-home .legacy-section--cards {
    min-height: 390svh !important;
  }
}

@media (orientation: landscape) and (max-height: 500px) and (max-width: 980px) {
  .kinetic-interlude {
    min-height: 210svh;
  }

  .kinetic-word__index {
    top: 8%;
  }

  .kinetic-word__copy strong,
  .kinetic-word__copy em {
    font-size: 4.15rem;
  }

  .kinetic-word__copy small {
    margin-top: 0.85rem;
    font-size: 0.7rem;
  }

  .legacy-home .legacy-section--cards {
    min-height: 390svh !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kinetic-interlude,
  .kinetic-interlude__content {
    min-height: 0;
    height: auto;
  }

  .kinetic-interlude__content {
    position: relative;
    gap: 3rem;
    padding-block: 5rem;
  }

  .kinetic-sequence {
    display: grid;
    gap: 4rem;
  }

  .kinetic-word,
  .kinetic-word--two,
  .kinetic-word--three {
    position: relative;
    inset: auto;
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }

  .kinetic-word__index,
  .kinetic-word__copy strong,
  .kinetic-word__copy em,
  .kinetic-word__copy small,
  .proof-band,
  .proof-media,
  .proof-media img,
  .proof-copy > *,
  .proof-capability-track {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }

  .legacy-home .legacy-section--cards {
    min-height: auto !important;
  }
}

.legacy-home .legacy-section--cards {
  overflow: visible !important;
}

/* NORMA system refactor */
.system-body {
  min-height: 100vh;
  margin: 0;
  background: #050608;
  color: rgba(244, 239, 229, 0.92);
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

.system-body a {
  color: inherit;
  text-decoration: none;
}

.system-page {
  background:
    radial-gradient(circle at var(--system-x, 58%) var(--system-y, 26%), rgba(194, 163, 106, 0.16), transparent 22rem),
    linear-gradient(180deg, #050608 0%, #080a0e 46%, #050608 100%);
}

.system-hero,
.system-section,
.system-console,
.system-auth {
  box-sizing: border-box;
}

.system-hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  align-content: center;
  padding: 1.5rem clamp(1.1rem, 4vw, 4rem);
}

.system-nav {
  position: absolute;
  left: clamp(1.1rem, 4vw, 4rem);
  right: clamp(1.1rem, 4vw, 4rem);
  top: 1.2rem;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 239, 229, 0.68);
}

.system-hero__content {
  position: relative;
  z-index: 2;
  max-width: 58rem;
}

.system-kicker {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(219, 190, 134, 0.78);
}

.system-hero h1 {
  margin: 0;
  font-size: clamp(5.2rem, 18vw, 15rem);
  line-height: 0.82;
  letter-spacing: -0.09em;
  color: #fffaf0;
}

.system-hero__line,
.system-section h2,
.system-section--closing p,
.system-auth h1,
.console-section-head h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  font-weight: 500;
  color: #fffaf0;
}

.system-hero__line {
  margin-top: 2rem;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1.22;
}

.system-copy {
  margin: 1.1rem 0 0;
  max-width: 34rem;
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.9;
  color: rgba(244, 239, 229, 0.68);
}

.system-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.system-status-strip {
  position: absolute;
  left: clamp(1.1rem, 4vw, 4rem);
  right: clamp(1.1rem, 4vw, 4rem);
  bottom: 1.4rem;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.system-status-strip span,
.capability-grid article,
.console-status-grid article,
.console-panel,
.terminal-window,
.system-side-panel article,
.admin-metrics article {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.016)),
    rgba(7, 9, 12, 0.72);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.system-status-strip span {
  border-radius: 999px;
  padding: 0.82rem 1rem;
  font-size: 0.85rem;
  color: rgba(244, 239, 229, 0.72);
}

.system-orbit {
  position: absolute;
  right: -14rem;
  top: 8vh;
  width: min(46rem, 80vw);
  aspect-ratio: 1;
  opacity: 0.42;
}

.system-orbit span {
  position: absolute;
  inset: calc(var(--i, 0) * 12%);
  border: 1px solid rgba(219, 190, 134, 0.18);
  border-radius: 50%;
}

.system-orbit span:nth-child(1) {
  --i: 0;
}

.system-orbit span:nth-child(2) {
  --i: 1;
}

.system-orbit span:nth-child(3) {
  --i: 2;
}

.system-section {
  min-height: 82svh;
  padding: clamp(5rem, 9vw, 8rem) clamp(1.1rem, 4vw, 4rem);
}

.system-section--status,
.system-section--difference,
.system-section--closing {
  display: grid;
  align-content: center;
}

.system-section h2 {
  font-size: clamp(2.4rem, 7vw, 6rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.system-lines {
  display: grid;
  gap: 0.35rem;
  margin-top: 2rem;
  font-size: clamp(1.3rem, 2.6vw, 2.2rem);
  color: rgba(244, 239, 229, 0.78);
}

.system-lines p {
  margin: 0;
}

.system-section__head {
  max-width: 92rem;
  margin: 0 auto 1.4rem;
}

.capability-grid {
  display: grid;
  max-width: 92rem;
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.capability-grid article {
  min-height: 18rem;
  border-radius: 1.6rem;
  padding: 1.3rem;
}

.capability-grid span,
.console-panel__head span,
.system-side-panel span {
  display: block;
  margin-bottom: 1.2rem;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(219, 190, 134, 0.78);
}

.capability-grid p {
  margin: 0.65rem 0 0;
  line-height: 1.78;
  color: rgba(244, 239, 229, 0.7);
}

.system-section--closing {
  gap: 2rem;
  justify-items: start;
}

.system-section--closing p {
  font-size: clamp(2.6rem, 8vw, 7rem);
  line-height: 1.06;
  letter-spacing: -0.08em;
}

.system-auth {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 1.2rem;
  background:
    radial-gradient(circle at 50% 18%, rgba(219, 190, 134, 0.14), transparent 22rem),
    #050608;
}

.system-auth__brand {
  position: fixed;
  left: 1.3rem;
  top: 1.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
}

.system-auth__panel {
  width: min(28rem, 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.8rem;
  padding: 1.4rem;
  background: rgba(7, 9, 12, 0.78);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(20px);
}

.system-auth h1 {
  font-size: clamp(2.2rem, 8vw, 3.6rem);
  line-height: 1.08;
}

.system-login-form {
  display: grid;
  gap: 0.9rem;
  margin-top: 2rem;
}

.system-login-form label {
  display: grid;
  gap: 0.45rem;
}

.system-login-form label span,
.system-auth__hint {
  font-size: 0.78rem;
  color: rgba(244, 239, 229, 0.52);
}

.system-login-form input {
  min-height: 3.35rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  color: #fffaf0;
  padding: 0 1rem;
  font: inherit;
}

.system-auth__hint {
  margin: 1.2rem 0 0;
}

.system-console {
  min-height: 100svh;
  padding: 1rem;
  background:
    radial-gradient(circle at 82% 12%, rgba(219, 190, 134, 0.12), transparent 24rem),
    #050608;
}

.console-topbar {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 3rem;
  margin-bottom: 0.9rem;
}

.console-topbar__brand {
  font-size: 0.82rem;
  letter-spacing: 0.24em;
}

.console-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.4rem, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.console-status-grid article,
.admin-metrics article {
  border-radius: 1rem;
  padding: 0.85rem;
}

.console-status-grid span,
.admin-metrics span,
.system-runtime span {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 239, 229, 0.46);
}

.console-status-grid strong,
.admin-metrics strong,
.system-runtime strong {
  font-size: 1rem;
  color: #fffaf0;
}

.console-section-head {
  margin: 1.2rem 0;
}

.console-section-head h1 {
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 1.02;
}

.terminal-window {
  display: grid;
  gap: 0.4rem;
  border-radius: 1.6rem;
  padding: 1.2rem;
  color: rgba(244, 239, 229, 0.78);
}

.terminal-window p {
  margin: 0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.console-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 22rem);
  gap: 1rem;
  margin-top: 1rem;
}

.console-chat--system {
  min-height: 22rem;
  max-height: 44svh;
  overflow: auto;
  border-radius: 1.6rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.025);
}

.system-side-panel {
  display: grid;
  gap: 0.75rem;
}

.system-side-panel article {
  border-radius: 1.2rem;
  padding: 1rem;
}

.system-side-panel p {
  margin: 0;
  color: #fffaf0;
}

.chat-form--system {
  margin-top: 1rem;
}

.admin-dashboard,
.personal-console {
  max-width: 96rem;
  margin: 0 auto;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(20rem, 0.65fr);
  gap: 1rem;
}

.admin-layout--bottom {
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.72fr);
  margin-top: 1rem;
}

.console-panel {
  border-radius: 1.5rem;
  padding: 1rem;
}

.console-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.console-panel__head small {
  color: rgba(244, 239, 229, 0.46);
}

.admin-table-wrap {
  overflow: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  color: rgba(244, 239, 229, 0.78);
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.75rem 0.4rem;
  text-align: left;
  white-space: nowrap;
}

.usage-bars,
.behavior-list,
.system-runtime {
  display: grid;
  gap: 0.75rem;
}

.usage-bar {
  display: grid;
  grid-template-columns: 5rem 1fr 3rem;
  align-items: center;
  gap: 0.75rem;
  color: rgba(244, 239, 229, 0.72);
}

.usage-bar i {
  display: block;
  height: 0.5rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.usage-bar i::before {
  content: "";
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: rgba(219, 190, 134, 0.82);
}

.behavior-list article,
.system-runtime article {
  border-radius: 1rem;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.035);
}

.behavior-list span {
  color: #fffaf0;
}

.behavior-list p {
  margin: 0.35rem 0 0;
  color: rgba(244, 239, 229, 0.62);
}

.chat-bubble p {
  white-space: normal;
}

.console-mobile-menu {
  z-index: 2000;
}

.console-mobile-menu.is-open {
  z-index: 9999;
}

.console-mobile-menu__panel {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  top: max(4.6rem, calc(env(safe-area-inset-top) + 4.2rem));
  z-index: 10000;
}

@media (max-width: 820px) {
  .system-status-strip,
  .capability-grid,
  .console-status-grid,
  .admin-metrics,
  .admin-layout,
  .admin-layout--bottom,
  .console-workspace {
    grid-template-columns: 1fr;
  }

  .system-status-strip {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 2.2rem;
  }

  .system-hero {
    align-content: end;
    padding-bottom: 1.5rem;
  }

  .system-hero h1 {
    font-size: clamp(4rem, 24vw, 6rem);
  }

  .system-orbit {
    right: -12rem;
    top: 5rem;
    width: 30rem;
  }

  .system-section {
    min-height: auto;
    padding-block: 4.5rem;
  }

  .capability-grid article {
    min-height: 12rem;
  }

  .console-chat--system {
    max-height: 42svh;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

.auth-body,
.console-body {
  min-height: 100vh;
}

a,
button {
  color: inherit;
}

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  background: rgba(195, 154, 96, 0.28);
  color: var(--text-strong);
}

.page-shell {
  overflow: clip;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
}

.body-copy {
  max-width: 40rem;
  font-size: 1rem;
  line-height: 2;
  color: rgba(255, 255, 255, 0.66);
}

.button {
  display: inline-flex;
  min-height: 3.4rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

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

.button--primary {
  border-color: rgba(195, 154, 96, 0.36);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(11, 14, 19, 0.92);
  color: var(--text-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 36px rgba(0, 0, 0, 0.22);
}

.hero {
  position: relative;
  min-height: 100vh;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #040506;
}

.hero__image,
.signal-field,
.hero__shade,
.hero__spotlight {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  object-fit: cover;
  object-position: 72% center;
  opacity: 0.74;
  transform:
    scale(1.03)
    translate3d(calc((var(--hero-x) - 50%) * 0.04), calc((var(--hero-y) - 50%) * 0.04), 0);
  transition: transform 220ms ease-out;
}

.hero__shade {
  background:
    linear-gradient(90deg, rgba(5, 6, 8, 0.94) 0%, rgba(5, 6, 8, 0.8) 38%, rgba(5, 6, 8, 0.42) 70%, rgba(5, 6, 8, 0.8) 100%),
    linear-gradient(180deg, rgba(5, 6, 8, 0.08), rgba(5, 6, 8, 0.9));
}

.hero__spotlight {
  background:
    radial-gradient(circle at var(--hero-x) var(--hero-y), rgba(255, 255, 255, 0.09), transparent 14%),
    radial-gradient(circle at var(--hero-x) var(--hero-y), rgba(195, 154, 96, 0.07), transparent 26%);
  z-index: 1;
  pointer-events: none;
}

.signal-field {
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100vh;
  max-width: 92rem;
  margin: 0 auto;
  padding: 1.75rem 1.5rem;
  flex-direction: column;
  justify-content: space-between;
}

.hero__topline,
.hero__bottomline {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.hero__content {
  max-width: 49rem;
  padding: 4rem 0 5rem;
}

.hero__title,
.section__title,
.mode-card h3,
.story-step h3,
.story-copy__intro h2 {
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
}

.hero__title {
  margin: 0;
  font-size: clamp(4.2rem, 15vw, 11rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
  color: var(--text-strong);
  transform:
    translate3d(calc((var(--hero-x) - 50%) * -0.016), calc((var(--hero-y) - 50%) * -0.022), 0);
  transition: transform 220ms ease-out;
}

.hero__lead {
  margin: 1.2rem 0 1.5rem;
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}

.story-scroll {
  position: relative;
  min-height: 320vh;
  background: linear-gradient(180deg, #07080b 0%, #0a0d11 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.story-scroll__track {
  height: 320vh;
}

.story-scroll__sticky {
  position: sticky;
  top: 0;
  display: grid;
  align-items: center;
  min-height: 100vh;
  max-width: 92rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  gap: 2rem;
}

.story-visual {
  position: relative;
  overflow: hidden;
  min-height: 62vh;
  border-radius: 2rem;
  border: 1px solid rgba(195, 154, 96, 0.16);
  background:
    radial-gradient(circle at top left, rgba(195, 154, 96, 0.08), transparent 25%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
  transform: translateY(var(--visual-shift, 0px)) scale(var(--visual-scale, 1));
  transition: transform 220ms ease-out;
}

.story-visual__layer,
.story-visual__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.story-visual__layer {
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition:
    opacity 420ms ease,
    transform 420ms ease;
  transform: scale(1.02);
}

.story-visual__layer.is-active {
  opacity: 1;
  transform: scale(1);
}

.story-visual__shade {
  background:
    linear-gradient(180deg, rgba(5, 6, 8, 0.08), rgba(5, 6, 8, 0.68) 76%, rgba(5, 6, 8, 0.88)),
    linear-gradient(90deg, rgba(5, 6, 8, 0.16), transparent 38%);
}

.story-visual__index {
  position: absolute;
  left: 1.5rem;
  bottom: 1.25rem;
  z-index: 1;
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
  color: rgba(195, 154, 96, 0.18);
}

.story-copy {
  display: grid;
  gap: 2rem;
}

.story-copy__intro h2 {
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
  color: var(--text-strong);
}

.story-copy__lead {
  margin: 1rem 0 0;
  max-width: 32rem;
  font-size: clamp(1.08rem, 2vw, 1.4rem);
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.76);
}

.story-copy__steps {
  display: grid;
  gap: 1rem;
}

.story-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.2rem;
  border-radius: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease,
    opacity 220ms ease;
  opacity: 0.56;
}

.story-step.is-active {
  transform: translateY(-2px);
  border-color: rgba(195, 154, 96, 0.22);
  background:
    linear-gradient(180deg, rgba(195, 154, 96, 0.05), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.02);
  opacity: 1;
}

.story-step__index {
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: 2rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.26);
}

.story-step h3 {
  margin: 0;
  font-size: 1.8rem;
  color: var(--text-strong);
}

.story-step p {
  margin: 0.7rem 0 0;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.64);
}

.section {
  padding: 6rem 1.5rem;
}

.section--manifesto {
  position: relative;
  overflow: hidden;
  min-height: 115vh;
  background:
    radial-gradient(circle at top right, rgba(195, 154, 96, 0.08), transparent 28%),
    linear-gradient(180deg, #08090c 0%, #0a0d11 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section--system {
  position: relative;
  overflow: hidden;
  min-height: 118vh;
  background: linear-gradient(180deg, #090b10 0%, #06080b 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section--manifesto::before,
.section--system::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--section-glow, 0);
  background:
    radial-gradient(circle at var(--section-x, 50%) 45%, rgba(195, 154, 96, 0.14), transparent 24%),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.045), transparent);
  transform: translate3d(calc((var(--section-x, 50%) - 50%) * 0.12), 0, 0);
}

.manifesto-film {
  position: absolute;
  inset: 6% -18% auto auto;
  z-index: 0;
  width: min(72rem, 112vw);
  height: min(34rem, 48vh);
  opacity: 0.62;
  pointer-events: none;
  transform: rotate(-7deg);
}

.manifesto-film__track {
  display: flex;
  gap: 1rem;
  height: 100%;
  will-change: transform;
}

.manifesto-film__panel {
  position: relative;
  flex: 0 0 min(28rem, 42vw);
  overflow: hidden;
  margin: 0;
  border-radius: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.35);
}

.manifesto-film__panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.04);
}

.manifesto-film__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.72));
}

.manifesto-film__panel figcaption {
  position: absolute;
  left: 1rem;
  bottom: 0.9rem;
  z-index: 1;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.system-constellation {
  position: absolute;
  right: clamp(-16rem, -12vw, -8rem);
  top: 4rem;
  z-index: 0;
  width: min(44rem, 62vw);
  aspect-ratio: 1;
  opacity: 0.72;
  pointer-events: none;
}

.system-constellation__ring,
.system-constellation__node,
.system-constellation__core {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 999px;
}

.system-constellation__ring {
  border: 1px solid rgba(195, 154, 96, 0.18);
  transform: translate(-50%, -50%);
}

.system-constellation__ring--outer {
  width: 100%;
  height: 100%;
}

.system-constellation__ring--inner {
  width: 58%;
  height: 58%;
  border-color: rgba(255, 255, 255, 0.12);
}

.system-constellation__core {
  display: grid;
  width: 8rem;
  height: 8rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.18), rgba(195, 154, 96, 0.12) 42%, rgba(0, 0, 0, 0.42));
  box-shadow: 0 0 60px rgba(195, 154, 96, 0.18);
  transform: translate(-50%, -50%);
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.78);
}

.system-constellation__node {
  width: 0.85rem;
  height: 0.85rem;
  background: rgba(238, 204, 151, 0.9);
  box-shadow: 0 0 28px rgba(195, 154, 96, 0.58);
}

.system-constellation__node--one {
  transform: translate(-50%, -50%) translate(-13rem, -9rem);
}

.system-constellation__node--two {
  transform: translate(-50%, -50%) translate(10rem, -12rem);
}

.system-constellation__node--three {
  transform: translate(-50%, -50%) translate(14rem, 8rem);
}

.system-constellation__node--four {
  transform: translate(-50%, -50%) translate(-10rem, 12rem);
}

.auth-shell,
.console-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(195, 154, 96, 0.08), transparent 24%),
    linear-gradient(180deg, #050608 0%, #0a0d11 100%);
}

.console-main__header h2,
.access-card-large h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  line-height: 1.02;
  letter-spacing: -0.05em;
  color: var(--text-strong);
}

.console-panel,
.console-main {
  border-radius: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.16);
}

.auth-gate {
  --gate-x: 50vw;
  --gate-y: 50vh;
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(195, 154, 96, 0.06), transparent 22%),
    linear-gradient(180deg, #040507 0%, #090c11 100%);
}

.auth-gate__grid,
.auth-gate__noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.auth-gate__grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 2.75rem 2.75rem;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

.auth-gate__noise {
  opacity: 0.14;
  background-image: radial-gradient(rgba(255, 255, 255, 0.6) 0.6px, transparent 0.6px);
  background-size: 12px 12px;
  mix-blend-mode: soft-light;
}

.auth-lens {
  position: absolute;
  width: 15rem;
  height: 15rem;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, rgba(195, 154, 96, 0.12) 28%, rgba(255, 255, 255, 0) 72%);
  filter: blur(6px);
  mix-blend-mode: screen;
  opacity: 0.9;
}

.auth-word {
  position: relative;
  z-index: 2;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 220ms ease-out;
}

.auth-word__layer {
  display: block;
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(4.4rem, 17vw, 13rem);
  line-height: 0.88;
  letter-spacing: -0.1em;
  text-transform: uppercase;
}

.auth-word__layer--shadow,
.auth-word__layer--outline {
  position: absolute;
  inset: 0;
}

.auth-word__layer--shadow {
  color: rgba(195, 154, 96, 0.24);
  transform: translate3d(0.18rem, 0.24rem, -2px);
  filter: blur(10px);
}

.auth-word__layer--core {
  position: relative;
  color: rgba(247, 249, 251, 0.94);
  background:
    radial-gradient(circle at var(--gate-x) var(--gate-y), rgba(255, 255, 255, 0.98), rgba(195, 154, 96, 0.84) 24%, rgba(247, 249, 251, 0.62) 48%, rgba(247, 249, 251, 0.16) 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-word__layer--outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.18);
}

.auth-gate__meta {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  z-index: 2;
  display: flex;
  gap: 1.2rem;
  transform: translateX(-50%);
  font-size: 0.68rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.access-chamber {
  position: absolute;
  left: 50%;
  bottom: 2.5rem;
  z-index: 3;
  width: min(34rem, calc(100vw - 2rem));
  border-radius: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(13, 17, 23, 0.92), rgba(13, 17, 23, 0.76)),
    rgba(0, 0, 0, 0.18);
  padding: 1.2rem;
  backdrop-filter: blur(22px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translate(-50%, 2rem) scale(0.96);
  pointer-events: none;
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.access-chamber.is-open {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  pointer-events: auto;
}

.access-chamber__head p:not(.eyebrow) {
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.64);
}

.rank-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.rank-pill {
  display: inline-flex;
  width: 3.2rem;
  height: 3.2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
}

.rank-pill span {
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: 1.2rem;
  color: var(--text-strong);
}

.rank-pill:hover,
.rank-pill.is-active {
  transform: translateY(-2px);
  border-color: rgba(195, 154, 96, 0.24);
  background:
    linear-gradient(180deg, rgba(195, 154, 96, 0.05), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.02);
}

.rank-preview {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  margin-top: 1.2rem;
  padding: 1rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.rank-preview__badge {
  display: inline-flex;
  width: 4rem;
  height: 4rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(195, 154, 96, 0.22);
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: 1.7rem;
  color: var(--text-strong);
}

.rank-preview__benefits,
.console-badges,
.prompt-grid,
.chat-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.rank-preview__benefits span,
.console-badge,
.prompt-chip {
  display: inline-flex;
  min-height: 2.2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(195, 154, 96, 0.18);
  background: rgba(255, 255, 255, 0.03);
  padding: 0 0.85rem;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.74);
}

.login-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.login-form--minimal {
  margin-top: 1.3rem;
}

.access-chamber__actions {
  display: grid;
  gap: 0.8rem;
}

.field {
  display: grid;
  gap: 0.55rem;
}

.field span {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.62);
}

.field input {
  width: 100%;
  min-height: 3.4rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  padding: 0 1rem;
  color: var(--text);
  outline: none;
}

.login-form__submit,
.chat-form__submit {
  width: 100%;
}

.console-shell {
  max-width: 100rem;
  margin: 0 auto;
  padding: 1.5rem;
}

.console-main {
  display: grid;
  gap: 1rem;
  padding: 1.4rem;
  min-height: calc(100vh - 3rem);
}

.console-main--full {
  max-width: 96rem;
  margin: 0 auto;
}

.console-main__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.console-main__header h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.console-main__lead {
  max-width: 42rem;
  margin: 0.7rem 0 0;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.64);
}

.privilege-hero {
  display: grid;
  gap: 1.2rem;
  align-items: center;
  padding: 1.3rem;
  border-radius: 1.8rem;
  border: 1px solid rgba(195, 154, 96, 0.18);
  background:
    radial-gradient(circle at top left, rgba(195, 154, 96, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.16);
}

.privilege-hero__rank {
  display: inline-flex;
  width: 5.5rem;
  height: 5.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(195, 154, 96, 0.24);
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: 2.4rem;
  color: var(--text-strong);
}

.privilege-hero__copy h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.14;
  color: var(--text-strong);
}

.privilege-hero__copy p:last-child {
  margin: 0.8rem 0 0;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.68);
}

.privilege-grid {
  display: grid;
  gap: 1rem;
}

.privilege-card {
  border-radius: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  padding: 1.2rem;
}

.privilege-card p:last-child {
  margin: 0;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.68);
}

.console-chat {
  display: grid;
  align-content: start;
  gap: 0.9rem;
  min-height: 22rem;
  max-height: 32rem;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.35rem;
}

.chat-bubble {
  max-width: min(44rem, 100%);
  min-width: 0;
  overflow: hidden;
  border-radius: 1.4rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.chat-bubble--user {
  margin-left: auto;
  background:
    linear-gradient(180deg, rgba(195, 154, 96, 0.05), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.02);
}

.chat-bubble__role {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.chat-bubble p:last-child {
  margin: 0;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.78);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.chat-bubble.is-streaming p:last-child::after {
  content: "";
  display: inline-block;
  width: 0.45em;
  height: 1em;
  margin-left: 0.2em;
  vertical-align: -0.12em;
  background: rgba(195, 154, 96, 0.9);
  animation: stream-caret 0.9s steps(2, start) infinite;
}

.chat-bubble__body {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  max-width: 100%;
  min-width: 0;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.78);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.chat-bubble__body p {
  margin: 0;
}

.chat-bubble.is-streaming .chat-bubble__body::after {
  content: "";
  display: inline-block;
  width: 0.45em;
  height: 1em;
  margin-left: 0.2em;
  vertical-align: -0.12em;
  background: rgba(195, 154, 96, 0.9);
  animation: stream-caret 0.9s steps(2, start) infinite;
}

.chat-rich-text {
  display: grid;
  gap: 0.55rem;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.chat-rich-text p {
  max-width: 100%;
  line-height: 1.86;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.chat-bubble__body a,
.chat-rich-text a,
.norma-rich-card a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.chat-bubble__body pre,
.chat-rich-text pre,
.chat-bubble__body code,
.chat-rich-text code {
  max-width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.chat-bubble__body table,
.chat-rich-text table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.chat-bubble__body th,
.chat-bubble__body td,
.chat-rich-text th,
.chat-rich-text td {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.norma-rich-card {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(216, 184, 120, 0.18);
  border-radius: 1rem;
  padding: 0.95rem;
  background:
    radial-gradient(circle at 85% 10%, rgba(216, 184, 120, 0.11), transparent 30%),
    rgba(14, 14, 18, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 46px rgba(0, 0, 0, 0.18);
}

.rich-card__head,
.pulse-item__meta,
.rich-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.rich-card__head {
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.rich-card__head h3,
.pulse-item h4 {
  margin: 0;
  min-width: 0;
  color: rgba(244, 239, 228, 0.94);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.rich-card__eyebrow,
.rich-card__badge,
.pulse-item__meta {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(241, 217, 154, 0.72);
}

.rich-card__badge {
  border: 1px solid rgba(216, 184, 120, 0.22);
  border-radius: 999px;
  padding: 0.28rem 0.5rem;
  background: rgba(216, 184, 120, 0.09);
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rich-card__summary,
.rich-card__notice,
.pulse-item p {
  margin: 0;
  max-width: 100%;
  color: rgba(244, 239, 228, 0.68);
  line-height: 1.75;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.rich-card__notice {
  color: rgba(241, 217, 154, 0.72);
  font-size: 0.83rem;
}

.pulse-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.85rem;
}

.pulse-item {
  display: grid;
  gap: 0.48rem;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(216, 184, 120, 0.12);
  border-radius: 0.85rem;
  padding: 0.78rem;
  background: rgba(255, 255, 255, 0.035);
}

.pulse-item__meta {
  flex-wrap: wrap;
  justify-content: space-between;
  color: rgba(244, 239, 228, 0.46);
}

.pulse-item__meta span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.rich-actions {
  flex-wrap: wrap;
  margin-top: 0.2rem;
}

.rich-actions button,
.media-tile button,
.media-tile {
  border: 1px solid rgba(216, 184, 120, 0.20);
  border-radius: 999px;
  padding: 0.46rem 0.7rem;
  color: rgba(244, 239, 228, 0.88);
  background: rgba(216, 184, 120, 0.09);
  font: inherit;
  cursor: pointer;
}

.rich-actions--compact {
  justify-content: flex-start;
  margin-top: 0.05rem;
}

.rich-actions .micro-action {
  min-height: 1.45rem;
  padding: 0.18rem 0.48rem;
  border-color: rgba(216, 184, 120, 0.14);
  color: rgba(241, 217, 154, 0.74);
  background: rgba(216, 184, 120, 0.055);
  font-size: 0.72rem;
  line-height: 1;
}

.upload-file-card__link {
  display: inline-grid;
  place-items: center;
  min-height: 1.45rem;
  padding: 0.18rem 0.48rem;
  border: 1px solid rgba(216, 184, 120, 0.14);
  border-radius: 999px;
  color: rgba(241, 217, 154, 0.74);
  background: rgba(216, 184, 120, 0.055);
  font-size: 0.72rem;
  line-height: 1;
  text-decoration: none;
}

.upload-file-card__link:hover,
.upload-file-card__link:focus-visible {
  color: rgba(255, 246, 218, 0.92);
  border-color: rgba(241, 217, 154, 0.32);
  background: rgba(216, 184, 120, 0.11);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.75rem;
}

.media-tile {
  display: grid;
  gap: 0.45rem;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 0.9rem;
  padding: 0.55rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.036);
}

.media-tile img,
.media-tile video {
  width: 100%;
  max-height: 18rem;
  border-radius: 0.75rem;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.22);
}

.media-tile.is-broken img {
  display: none;
}

.media-tile.is-broken::before,
.media-fallback {
  content: "预览暂不可用，点击应用内打开";
  display: grid;
  min-height: 8rem;
  place-items: center;
  border-radius: 0.75rem;
  color: rgba(241, 217, 154, 0.72);
  background: rgba(216, 184, 120, 0.08);
}

.media-video-list {
  display: grid;
  gap: 0.75rem;
}

.media-task-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.8rem;
}

.media-task-card {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
  border: 1px solid rgba(216, 184, 120, 0.14);
  border-radius: 0.82rem;
  padding: 0.75rem;
  background:
    radial-gradient(circle at 88% 12%, rgba(216, 184, 120, 0.08), transparent 10rem),
    rgba(255, 255, 255, 0.032);
}

.media-task-card strong,
.media-task-card span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.media-task-card strong {
  color: rgba(244, 239, 228, 0.88);
}

.media-task-card span {
  margin-top: 0.18rem;
  color: rgba(244, 239, 228, 0.42);
  font-size: 0.76rem;
}

.market-card {
  display: grid;
  gap: 0.7rem;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.market-quote-list {
  display: grid;
  gap: 0.65rem;
}

.market-quote {
  display: grid;
  gap: 0.55rem;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(216, 184, 120, 0.13);
  border-radius: 0.78rem;
  padding: 0.72rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(216, 184, 120, 0.035)),
    rgba(255, 255, 255, 0.025);
}

.market-quote__top,
.market-quote__grid {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.market-quote__top {
  flex-wrap: wrap;
  justify-content: space-between;
}

.market-quote__top strong {
  min-width: 0;
  color: rgba(244, 239, 228, 0.9);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.market-quote__top span {
  display: inline-grid;
  justify-items: end;
  gap: 0.08rem;
  min-width: 0;
  color: rgba(241, 217, 154, 0.94);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.market-quote__top span small {
  color: rgba(244, 239, 228, 0.46);
  font-size: 0.66rem;
  font-weight: 500;
  line-height: 1.1;
}

.market-quote__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.market-quote__grid span {
  display: grid;
  gap: 0.12rem;
  color: rgba(244, 239, 228, 0.78);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.market-quote__grid em {
  color: rgba(244, 239, 228, 0.42);
  font-style: normal;
  font-size: 0.72rem;
}

.market-quote small {
  color: rgba(244, 239, 228, 0.42);
}

.source-list,
.source-cites {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  max-width: 100%;
  gap: 0.18rem;
  margin-left: 0.28rem;
  vertical-align: baseline;
}

.source-cite {
  width: 1.08rem;
  height: 1.08rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(216, 184, 120, 0.24);
  border-radius: 999px;
  padding: 0;
  color: rgba(241, 217, 154, 0.92);
  background:
    radial-gradient(circle at 40% 30%, rgba(241, 217, 154, 0.24), transparent 52%),
    rgba(216, 184, 120, 0.07);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.16), 0 0 14px rgba(216, 184, 120, 0.08);
  font: 700 0.62rem/1 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.source-cite:hover,
.source-cite:focus-visible {
  border-color: rgba(241, 217, 154, 0.52);
  color: #fff6d8;
  background: rgba(216, 184, 120, 0.14);
  transform: translateY(-1px);
}

.source-item {
  display: inline-flex;
}

.inline-preview {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(14px);
}

.inline-preview__panel {
  width: min(72rem, 96vw);
  height: min(44rem, 90vh);
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid rgba(216, 184, 120, 0.22);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  background:
    radial-gradient(circle at 70% 10%, rgba(216, 184, 120, 0.10), transparent 30%),
    linear-gradient(180deg, rgba(12, 12, 15, 0.98), rgba(5, 5, 7, 0.98));
}

.inline-preview__panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(216, 184, 120, 0.15);
}

.inline-preview__panel header div {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.inline-preview__panel header span {
  max-width: 72vw;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(244, 239, 228, 0.45);
  white-space: nowrap;
  font-size: 0.78rem;
}

.inline-preview__close {
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(216, 184, 120, 0.18);
  border-radius: 999px;
  padding: 0;
  color: rgba(244, 239, 228, 0.78);
  background: rgba(255, 255, 255, 0.035);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.inline-preview__close:hover,
.inline-preview__close:focus-visible {
  border-color: rgba(241, 217, 154, 0.42);
  color: #fff6d8;
  background: rgba(216, 184, 120, 0.10);
}

.inline-preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #08080b;
}

.inline-preview__source-card {
  align-self: center;
  justify-self: center;
  width: min(31rem, calc(100vw - 2.5rem));
  display: grid;
  gap: 0.85rem;
  border: 1px solid rgba(216, 184, 120, 0.18);
  border-radius: 1rem;
  padding: 1.1rem;
  color: rgba(244, 239, 228, 0.82);
  background:
    radial-gradient(circle at 82% 12%, rgba(241, 217, 154, 0.13), transparent 38%),
    rgba(255, 255, 255, 0.035);
}

.inline-preview__eyebrow {
  color: rgba(241, 217, 154, 0.72);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.inline-preview__source-card h3 {
  margin: 0;
  color: rgba(244, 239, 228, 0.95);
  font-size: 1.08rem;
}

.inline-preview__source-card p {
  margin: 0;
  color: rgba(244, 239, 228, 0.62);
  line-height: 1.65;
}

.inline-preview__source-meta {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
  border-radius: 0.72rem;
  padding: 0.7rem;
  background: rgba(0, 0, 0, 0.18);
}

.inline-preview__source-meta span {
  overflow: hidden;
  color: rgba(244, 239, 228, 0.48);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inline-preview__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
}

.inline-preview__button {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(216, 184, 120, 0.22);
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  color: rgba(244, 239, 228, 0.88);
  background: rgba(216, 184, 120, 0.10);
  font: inherit;
  font-size: 0.84rem;
  text-decoration: none;
  cursor: pointer;
}

.inline-preview__button--ghost {
  background: rgba(255, 255, 255, 0.035);
}

.inline-preview__button:hover,
.inline-preview__button:focus-visible {
  border-color: rgba(241, 217, 154, 0.46);
  color: #fff6d8;
}

.inline-preview__media {
  display: grid;
  min-height: 0;
  place-items: center;
  background:
    radial-gradient(circle at 50% 44%, rgba(216, 184, 120, 0.08), transparent 34%),
    #08080b;
}

.inline-preview__image,
.inline-preview__video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #08080b;
}

@media (prefers-color-scheme: light) {
  .live-chat.is-drag-target {
    box-shadow:
      inset 0 0 0 1px rgba(184, 142, 72, 0.26),
      0 18px 42px rgba(184, 142, 72, 0.10);
    background:
      radial-gradient(circle at 86% 92%, rgba(184, 142, 72, 0.10), transparent 34%),
      rgba(255, 255, 255, 0.74);
  }

  .live-input.is-drag-target::before {
    color: rgba(105, 72, 22, 0.94);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 240, 229, 0.94));
    border-color: rgba(184, 142, 72, 0.26);
  }

  .live-input.is-drag-target .chat-form__shell {
    box-shadow:
      0 0 0 1px rgba(184, 142, 72, 0.30),
      0 0 30px rgba(184, 142, 72, 0.11);
  }

  .source-cite {
    border-color: rgba(184, 142, 72, 0.28);
    color: rgba(112, 80, 34, 0.92);
    background:
      radial-gradient(circle at 40% 30%, rgba(255, 255, 255, 0.72), transparent 52%),
      rgba(184, 142, 72, 0.08);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.62), 0 8px 22px rgba(184, 142, 72, 0.12);
  }

  .source-cite:hover,
  .source-cite:focus-visible {
    color: rgba(77, 52, 20, 0.96);
    background: rgba(184, 142, 72, 0.13);
  }

  .inline-preview {
    background: rgba(246, 242, 234, 0.58);
  }

  .inline-preview__panel {
    border-color: rgba(184, 142, 72, 0.24);
    background:
      radial-gradient(circle at 70% 10%, rgba(184, 142, 72, 0.12), transparent 30%),
      linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(240, 236, 228, 0.98));
  }

  .inline-preview__panel header {
    border-bottom-color: rgba(184, 142, 72, 0.16);
  }

  .inline-preview__panel header strong,
  .inline-preview__source-card h3 {
    color: rgba(42, 35, 26, 0.92);
  }

  .inline-preview__panel header span,
  .inline-preview__source-card p,
  .inline-preview__source-meta span {
    color: rgba(42, 35, 26, 0.56);
  }

  .inline-preview__close,
  .inline-preview__button {
    border-color: rgba(184, 142, 72, 0.22);
    color: rgba(63, 45, 22, 0.84);
    background: rgba(184, 142, 72, 0.10);
  }

  .inline-preview__source-card {
    border-color: rgba(184, 142, 72, 0.18);
    color: rgba(42, 35, 26, 0.84);
    background:
      radial-gradient(circle at 82% 12%, rgba(184, 142, 72, 0.14), transparent 38%),
      rgba(255, 255, 255, 0.58);
  }

  .inline-preview__source-meta {
    background: rgba(184, 142, 72, 0.07);
  }
}

@keyframes stream-caret {
  50% {
    opacity: 0;
  }
}

.prompt-chip {
  cursor: pointer;
}

.chat-form {
  display: grid;
  gap: 0.9rem;
}

.chat-form__shell {
  position: relative;
}

.chat-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.chat-form__input {
  width: 100%;
  min-height: 3.5rem;
  max-height: 10rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.9rem 5.6rem 0.9rem 1rem;
  color: var(--text);
  outline: none;
  display: block;
  resize: none;
  overflow-y: auto;
  line-height: 1.45;
  font: inherit;
}

.chat-form__submit--inline {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%) !important;
  width: auto;
  min-height: 2.8rem;
  padding-inline: 1rem;
}

.console-mobile-menu__trigger {
  transform: none !important;
}

.chat-form__submit--inline:hover,
.chat-form__submit--inline:active,
.chat-form__submit--inline:focus-visible {
  transform: translateY(-50%) !important;
}

.console-mobile-menu {
  position: absolute;
  top: 0;
  right: 0;
  display: block;
  z-index: 2000;
}

.console-mobile-menu.is-open {
  z-index: 9999;
}

.console-mobile-menu__trigger {
  min-width: 2.8rem;
  min-height: 2.5rem;
  padding-inline: 0.6rem;
  font-size: 0;
  position: relative;
  transform: none !important;
}

.console-mobile-menu__trigger:hover,
.console-mobile-menu__trigger:active,
.console-mobile-menu__trigger:focus-visible {
  transform: none !important;
}

.console-mobile-menu__trigger::before,
.console-mobile-menu__trigger::after,
.console-mobile-menu__trigger span {
  content: "";
  position: absolute;
  left: 50%;
  width: 0.95rem;
  height: 1.5px;
  background: currentColor;
  transform: translateX(-50%);
  border-radius: 999px;
}

.console-mobile-menu__trigger::before {
  top: 0.82rem;
}

.console-mobile-menu__trigger::after {
  top: 1.38rem;
}

.console-mobile-menu__trigger span {
  top: 1.1rem;
}

.console-mobile-menu__panel {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  top: max(4.6rem, calc(env(safe-area-inset-top) + 4.2rem));
  display: grid;
  gap: 0.55rem;
  min-width: 8.8rem;
  padding: 0.6rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(5, 8, 12, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.26);
  z-index: 10000;
  pointer-events: auto;
}

.console-mobile-menu:not(.is-open) .console-mobile-menu__panel {
  display: none;
}

.console-main__header--premium {
  position: relative;
  padding-right: 3.4rem;
}

.section--soft {
  background:
    radial-gradient(circle at top, rgba(193, 154, 91, 0.08), transparent 24%),
    linear-gradient(180deg, #06070a 0%, #050607 100%);
}

.closing-grid {
  position: relative;
  display: grid;
  gap: 2rem;
  max-width: 92rem;
  margin: 0 auto;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.16);
  padding: 2rem;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.manifesto-grid,
.system-head,
.access-grid {
  max-width: 92rem;
  margin: 0 auto;
}

.manifesto-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: stretch;
}

.manifesto-quote {
  display: flex;
  align-items: stretch;
}

.manifesto-quote__frame {
  position: relative;
  overflow: hidden;
  display: flex;
  width: 100%;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
  border-radius: 2rem;
  border: 1px solid rgba(195, 154, 96, 0.18);
  background:
    radial-gradient(circle at top left, rgba(195, 154, 96, 0.07), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.16);
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

.manifesto-quote__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.12) 42%, rgba(195, 154, 96, 0.1) 50%, transparent 62%);
  opacity: 0;
  transform: translateX(-70%);
}

.manifesto-quote__frame p {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.4;
  letter-spacing: -0.04em;
  color: var(--text-strong);
}

.system-head {
  position: relative;
  z-index: 2;
  margin-bottom: 2.5rem;
}

.access-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  perspective: 1200px;
}

.access-card {
  transform-style: preserve-3d;
  will-change: transform, opacity;
  border-radius: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.16);
  padding: 1.5rem;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
}

.access-card:hover {
  transform: translateY(-2px);
  border-color: rgba(195, 154, 96, 0.22);
  background:
    linear-gradient(180deg, rgba(195, 154, 96, 0.05), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.02);
}

.access-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: 1.9rem;
  line-height: 1.18;
  color: var(--text-strong);
}

.access-card p:last-child {
  margin: 0.9rem 0 0;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.64);
}

.section__title {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
  color: var(--text-strong);
}

.mode-list {
  display: grid;
  gap: 1rem;
}

.mode-card {
  border-radius: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.16);
  padding: 1.4rem;
  transition:
    transform 220ms ease,
    border-color 220ms ease;
}

.mode-card:hover {
  transform: translateY(-2px);
  border-color: rgba(195, 154, 96, 0.2);
}

.mode-card h3 {
  margin: 0;
  font-size: 1.8rem;
  color: var(--text-strong);
}

.mode-card p:last-child {
  margin: 0.8rem 0 0;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.62);
}

.signal-node {
  position: absolute;
  width: 1rem;
  height: 1rem;
  border: 0;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.96) 0%, rgba(195, 154, 96, 0.8) 45%, rgba(195, 154, 96, 0.12) 70%, transparent 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 24px rgba(195, 154, 96, 0.42);
  cursor: pointer;
  opacity: 0.12;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
  z-index: 4;
}

.signal-node:hover,
.signal-node.is-found {
  opacity: 1;
  transform: scale(1.1);
}

.signal-node.is-found {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 34px rgba(195, 154, 96, 0.54);
}

.signal-node--hero {
  top: 28%;
  right: 18%;
}

.signal-node--story {
  bottom: 18%;
  left: 38%;
}

.signal-node--closing {
  right: 9%;
  top: 22%;
}

.secret-panel {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: min(24rem, calc(100vw - 2rem));
  border-radius: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(9, 12, 17, 0.9), rgba(9, 12, 17, 0.76)),
    rgba(0, 0, 0, 0.22);
  padding: 1rem;
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.secret-panel__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.secret-panel__fragments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.secret-panel__fragments span {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(195, 154, 96, 0.18);
  padding: 0 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.72);
}

.secret-panel__message {
  margin: 0.9rem 0 0;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 960px) {
  .hero__inner,
  .story-scroll__sticky,
  .section {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }

  .story-scroll__sticky {
    grid-template-columns: 1.02fr 0.98fr;
  }

  .closing-grid {
    grid-template-columns: 1.08fr 0.92fr;
    padding: 3rem;
  }

  .manifesto-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .access-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-minimal {
    grid-template-columns: 1fr minmax(26rem, 32rem);
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }

  .privilege-hero {
    grid-template-columns: auto 1fr;
    padding: 1.6rem;
  }

  .privilege-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 959px) {
  .story-scroll {
    min-height: auto;
  }

  .story-scroll__track {
    height: auto;
  }

  .story-scroll__sticky {
    position: relative;
    min-height: auto;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .story-visual {
    min-height: 28rem;
  }
}

@media (max-width: 640px) {
  .hero__inner,
  .story-scroll__sticky,
  .section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero__topline,
  .hero__bottomline {
    font-size: 0.62rem;
    letter-spacing: 0.28em;
  }

  .hero__content {
    padding: 3rem 0 4rem;
  }

  .story-visual {
    min-height: 22rem;
  }

  .story-step,
  .mode-card,
  .closing-grid,
  .access-card-large,
  .console-main {
    padding: 1.2rem;
  }

  .privilege-grid {
    grid-template-columns: 1fr;
  }

  .secret-panel {
    top: auto;
    bottom: 1rem;
  }
}

/* NORMA access gate override */

.auth-body {
  --gate-xp: 50%;
  --gate-yp: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 16%, rgba(195, 154, 96, 0.08), transparent 24%),
    radial-gradient(circle at 50% 60%, rgba(255, 255, 255, 0.04), transparent 32%),
    linear-gradient(180deg, #020305 0%, #06080c 42%, #020305 100%);
}

.auth-gate {
  --gate-x: 50vw;
  --gate-y: 50vh;
  --drift-x: 0px;
  --drift-y: 0px;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --aura: 0.35;
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 2rem;
  isolation: isolate;
  perspective: 1800px;
}

.auth-gate::before,
.auth-gate::after {
  content: "";
  position: absolute;
  inset: -14%;
  pointer-events: none;
}

.auth-gate::before {
  background:
    radial-gradient(circle at var(--gate-xp) var(--gate-yp), rgba(255, 255, 255, 0.09), transparent 12%),
    radial-gradient(circle at var(--gate-xp) var(--gate-yp), rgba(195, 154, 96, 0.08), transparent 20%),
    radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.04), transparent 28%),
    conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, 0.03), transparent 18%, rgba(255, 255, 255, 0.01) 34%, transparent 56%, rgba(255, 255, 255, 0.03) 72%, transparent 100%);
  opacity: 0.78;
}

.auth-gate::after {
  inset: 8%;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.06), transparent 42%),
    radial-gradient(circle at var(--gate-xp) var(--gate-yp), rgba(255, 255, 255, 0.08), transparent 9%);
  filter: blur(42px);
  opacity: calc(0.26 + var(--aura) * 0.24);
}

.auth-gate__grid,
.auth-gate__noise,
.auth-signal-field,
.auth-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.auth-gate__grid {
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 3rem 3rem;
  mask-image: radial-gradient(circle at center, black 22%, transparent 82%);
  transform: translate3d(calc(var(--drift-x) * -0.12), calc(var(--drift-y) * -0.12), 0);
}

.auth-gate__noise {
  opacity: 0.18;
  mix-blend-mode: soft-light;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.7) 0.5px, transparent 0.5px),
    linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
  background-size: 11px 11px, 100% 100%;
}

.auth-signal-field {
  z-index: 1;
}

.auth-spotlight {
  z-index: 1;
  background:
    radial-gradient(circle at var(--gate-xp) var(--gate-yp), rgba(255, 255, 255, 0.1), transparent 12%),
    radial-gradient(circle at var(--gate-xp) var(--gate-yp), rgba(195, 154, 96, 0.08), transparent 24%);
  opacity: 0.9;
}

.auth-lens {
  position: absolute;
  width: 15rem;
  height: 15rem;
  border-radius: 50%;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.18), transparent 26%),
    radial-gradient(circle at 68% 72%, rgba(195, 154, 96, 0.12), transparent 22%),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01) 48%, transparent 68%),
    conic-gradient(from 220deg, rgba(255, 255, 255, 0.05), rgba(195, 154, 96, 0.14), rgba(255, 255, 255, 0.03), rgba(195, 154, 96, 0.1), rgba(255, 255, 255, 0.05));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 36px rgba(195, 154, 96, 0.12);
  filter: blur(0.2px);
  mix-blend-mode: screen;
  opacity: calc(0.42 + var(--aura) * 0.22);
}

.auth-lens::before,
.auth-lens::after {
  content: "";
  position: absolute;
  inset: 1.7rem;
  border-radius: inherit;
}

.auth-lens::before {
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0.72;
}

.auth-lens::after {
  inset: 4.8rem;
  border: 1px solid rgba(195, 154, 96, 0.12);
  box-shadow: 0 0 28px rgba(195, 154, 96, 0.18);
}

.auth-word {
  position: relative;
  z-index: 2;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transform-style: preserve-3d;
  will-change: transform;
}

.auth-word::before,
.auth-word::after {
  content: "";
  position: absolute;
  inset: -18%;
  pointer-events: none;
  border-radius: 999px;
}

.auth-word::before {
  background:
    radial-gradient(circle at var(--gate-x) var(--gate-y), rgba(255, 255, 255, 0.16), transparent 16%),
    radial-gradient(circle at center, rgba(111, 145, 255, 0.12), transparent 44%);
  filter: blur(40px);
  opacity: calc(0.38 + var(--aura) * 0.26);
}

.auth-word::after {
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 6px);
  mix-blend-mode: overlay;
  opacity: 0.16;
  transform: translateZ(-1px);
}

.auth-word__layer {
  display: block;
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(5.4rem, 18vw, 14rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  text-transform: none;
}

.auth-word__layer--shadow,
.auth-word__layer--outline {
  position: absolute;
  inset: 0;
}

.auth-word__layer--shadow {
  color: rgba(195, 154, 96, 0.18);
  transform: translate3d(calc(var(--drift-x) * -0.08), calc(var(--drift-y) * -0.08), -26px);
  filter: blur(14px);
}

.auth-word__layer--core {
  position: relative;
  color: rgba(248, 250, 255, 0.96);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.98) 0%, rgba(251, 244, 231, 0.92) 26%, rgba(195, 154, 96, 0.94) 50%, rgba(255, 255, 255, 0.94) 72%, rgba(234, 220, 189, 0.94) 100%),
    radial-gradient(circle at var(--gate-xp) var(--gate-yp), rgba(255, 255, 255, 0.96), rgba(195, 154, 96, 0.88) 22%, rgba(255, 255, 255, 0.34) 46%, rgba(255, 255, 255, 0.1) 74%);
  background-size: 140% 140%, 100% 100%;
  background-position:
    calc(50% + var(--drift-x) * 0.16) calc(50% + var(--drift-y) * 0.16),
    center;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.08);
}

.auth-word__layer--outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14);
  transform: translate3d(calc(var(--drift-x) * 0.04), calc(var(--drift-y) * 0.04), 18px);
}

.auth-gate__meta {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  min-width: 8.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 1rem;
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.68rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(16px);
}

.access-chamber {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  z-index: 3;
  width: min(36rem, calc(100vw - 2rem));
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(11, 13, 19, 0.88), rgba(5, 7, 11, 0.96)),
    rgba(0, 0, 0, 0.28);
  padding: 1.4rem;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 2rem) scale(0.96);
  transition:
    opacity 400ms ease,
    transform 500ms cubic-bezier(0.2, 0.8, 0.16, 1);
}

.auth-gate.is-open .auth-word {
  transform: translate3d(var(--drift-x), calc(var(--drift-y) - 12vh), 0) rotateX(calc(var(--tilt-x) * 0.65)) rotateY(calc(var(--tilt-y) * 0.65)) scale(0.92);
}

.auth-gate.is-open .auth-gate__meta {
  opacity: 0;
}

.access-chamber.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

.access-chamber__head p:not(.eyebrow) {
  margin: 0.5rem 0 0;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.66);
}

.access-chamber__head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.08;
  color: rgba(248, 250, 255, 0.98);
}

.rank-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.rank-pill {
  display: inline-flex;
  width: 3.4rem;
  height: 3.4rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.015);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.rank-pill span {
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 1.08rem;
  font-weight: 600;
  color: rgba(248, 250, 255, 0.92);
}

.rank-pill:hover,
.rank-pill.is-active {
  transform: translateY(-2px);
  border-color: rgba(195, 154, 96, 0.22);
  background:
    linear-gradient(180deg, rgba(195, 154, 96, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.025);
  box-shadow: 0 10px 28px rgba(195, 154, 96, 0.12);
}

.rank-preview {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  margin-top: 1.25rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem;
}

.rank-preview__badge {
  display: grid;
  place-items: center;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 1.2rem;
  background:
    linear-gradient(145deg, rgba(195, 154, 96, 0.18), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.02);
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: rgba(248, 250, 255, 0.98);
}

.rank-preview__benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.rank-preview__benefits span {
  display: inline-flex;
  min-height: 2.1rem;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 0.95rem;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.74);
}

.login-form--minimal {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.access-chamber__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.login-form--minimal .field {
  gap: 0.55rem;
}

.login-form--minimal .field span {
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.46);
}

.login-form--minimal .field input {
  min-height: 3.4rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  padding: 0 1rem;
  color: rgba(248, 250, 255, 0.96);
}

.login-form--minimal .field input:focus {
  border-color: rgba(195, 154, 96, 0.22);
  box-shadow: 0 0 0 1px rgba(195, 154, 96, 0.12);
}

@media (max-width: 640px) {
  .auth-gate {
    padding: 1.2rem;
  }

  .auth-word__layer {
    font-size: clamp(4.2rem, 24vw, 7rem);
    letter-spacing: 0.05em;
  }

  .auth-lens {
    width: 18rem;
    height: 18rem;
  }

  .access-chamber {
    bottom: 1rem;
    padding: 1rem;
  }

  .rank-preview,
  .access-chamber__actions {
    grid-template-columns: 1fr;
  }
}

/* Homepage storytelling override */

.hero {
  --hero-scroll: 0;
  position: relative;
  min-height: 180vh;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #040506;
}

.hero__frame {
  position: sticky;
  top: 0;
  min-height: 100vh;
  overflow: hidden;
}

.hero__image,
.signal-field,
.hero__shade,
.hero__spotlight,
.hero__orb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  object-fit: cover;
  object-position: 72% center;
  opacity: calc(0.8 - var(--hero-scroll) * 0.18);
  transform:
    scale(calc(1.04 + var(--hero-scroll) * 0.18))
    translate3d(calc((var(--hero-x) - 50%) * 0.05), calc((var(--hero-y) - 50%) * 0.05 - var(--hero-scroll) * 4rem), 0);
  transition: transform 220ms ease-out, opacity 220ms ease-out;
}

.hero__shade {
  background:
    linear-gradient(90deg, rgba(5, 6, 8, 0.95) 0%, rgba(5, 6, 8, 0.78) 40%, rgba(5, 6, 8, 0.4) 72%, rgba(5, 6, 8, 0.82) 100%),
    linear-gradient(180deg, rgba(5, 6, 8, 0.08), rgba(5, 6, 8, 0.92));
}

.hero__spotlight {
  background:
    radial-gradient(circle at var(--hero-x) var(--hero-y), rgba(255, 255, 255, 0.1), transparent 14%),
    radial-gradient(circle at var(--hero-x) var(--hero-y), rgba(195, 154, 96, 0.08), transparent 28%);
  z-index: 1;
  pointer-events: none;
}

.hero__orb {
  pointer-events: none;
  z-index: 1;
}

.hero__orb::before {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(circle, rgba(195, 154, 96, 0.08), transparent 70%);
  filter: blur(0.5px);
}

.hero__orb--primary::before {
  width: clamp(16rem, 28vw, 28rem);
  height: clamp(16rem, 28vw, 28rem);
  right: 8%;
  top: 16%;
  transform:
    translate3d(calc((var(--hero-x) - 50%) * -0.09), calc((var(--hero-y) - 50%) * 0.04 + var(--hero-scroll) * 5rem), 0)
    scale(calc(1 + var(--hero-scroll) * 0.18));
}

.hero__orb--secondary::before {
  width: clamp(10rem, 18vw, 16rem);
  height: clamp(10rem, 18vw, 16rem);
  left: 14%;
  bottom: 16%;
  transform:
    translate3d(calc((var(--hero-x) - 50%) * 0.06), calc((var(--hero-y) - 50%) * -0.04 - var(--hero-scroll) * 3rem), 0)
    scale(calc(1.05 - var(--hero-scroll) * 0.12));
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100vh;
  max-width: 92rem;
  margin: 0 auto;
  padding: 1.75rem 1.5rem;
  flex-direction: column;
  justify-content: space-between;
}

.hero__content {
  max-width: 50rem;
  padding: 4rem 0 5rem;
  transform: translate3d(0, calc(var(--hero-scroll) * -5rem), 0);
  opacity: calc(1 - var(--hero-scroll) * 0.34);
}

.hero__title {
  margin: 0;
  font-size: clamp(4.6rem, 16vw, 12rem);
  line-height: 0.88;
  letter-spacing: -0.08em;
  color: var(--text-strong);
  transform:
    translate3d(calc((var(--hero-x) - 50%) * -0.03), calc((var(--hero-y) - 50%) * -0.034 - var(--hero-scroll) * 1.7rem), 0)
    scale(calc(1 - var(--hero-scroll) * 0.08));
  transition: transform 220ms ease-out;
}

.hero__lead {
  margin: 1.2rem 0 1.5rem;
  font-size: clamp(1.15rem, 2vw, 1.72rem);
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.82);
}

.hero__storyline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero__storyline span {
  display: inline-flex;
  min-height: 2.3rem;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 1rem;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.story-scroll {
  --story-progress: 0;
  position: relative;
  min-height: 420vh;
  background: linear-gradient(180deg, #07080b 0%, #0a0d11 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.story-scroll__track {
  height: 420vh;
}

.story-scroll__sticky {
  position: sticky;
  top: 0;
  display: grid;
  align-items: center;
  min-height: 100vh;
  max-width: 92rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  gap: 2rem;
}

.story-visual {
  position: relative;
  overflow: hidden;
  min-height: 72vh;
  border-radius: 2.2rem;
  border: 1px solid rgba(195, 154, 96, 0.16);
  background:
    radial-gradient(circle at top left, rgba(195, 154, 96, 0.08), transparent 25%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform:
    translate3d(0, var(--visual-shift-y, 0px), 0)
    rotate(calc(var(--visual-rotate, 0deg) * 0.35))
    scale(var(--visual-scale, 1));
  transition: transform 140ms linear;
}

.story-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.04)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 16%, transparent 84%, rgba(255, 255, 255, 0.04));
  pointer-events: none;
}

.story-visual__layer,
.story-visual__shade,
.story-visual__beam {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.story-visual__layer {
  object-fit: cover;
  object-position: center;
  transition: none;
  will-change: transform, opacity, clip-path;
}

.story-visual__layer--observe {
  object-position: center center;
}

.story-visual__layer--correlate {
  object-position: center top;
}

.story-visual__layer--respond {
  object-position: center center;
}

.story-visual__shade {
  background:
    linear-gradient(180deg, rgba(5, 6, 8, 0.16), rgba(5, 6, 8, 0.7) 74%, rgba(5, 6, 8, 0.92)),
    linear-gradient(90deg, rgba(5, 6, 8, 0.24), transparent 38%);
}

.story-visual__beam {
  background:
    radial-gradient(circle at calc(16% + var(--story-progress) * 62%) 34%, rgba(255, 255, 255, 0.18), transparent 13%),
    linear-gradient(142deg, transparent 26%, rgba(255, 255, 255, 0.07) 48%, transparent 70%);
  mix-blend-mode: screen;
}

.story-visual__index {
  position: absolute;
  left: 1.5rem;
  bottom: 1.25rem;
  z-index: 1;
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
  color: rgba(195, 154, 96, 0.18);
}

.story-visual__caption {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  top: 1.5rem;
  z-index: 2;
  max-width: 24rem;
}

.story-visual__caption h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--text-strong);
}

.story-visual__caption p:last-child {
  margin: 0.8rem 0 0;
  line-height: 1.82;
  color: rgba(255, 255, 255, 0.72);
}

.story-visual__signals {
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  z-index: 2;
  display: flex;
  max-width: 18rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
}

.story-visual__signals span {
  display: inline-flex;
  min-height: 2.1rem;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 0.85rem;
  background: rgba(7, 9, 12, 0.52);
  backdrop-filter: blur(12px);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.story-progress {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.6rem;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
}

.story-progress__line {
  width: min(28rem, 44%);
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.story-progress__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(195, 154, 96, 0.86), rgba(255, 255, 255, 0.92));
  transform-origin: left center;
  transform: scaleX(0);
}

.story-copy {
  display: grid;
  gap: 2rem;
}

.story-copy__intro h2 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
  color: var(--text-strong);
}

.story-copy__lead {
  margin: 1rem 0 0;
  max-width: 32rem;
  font-size: clamp(1.08rem, 2vw, 1.44rem);
  line-height: 1.88;
  color: rgba(255, 255, 255, 0.76);
}

.story-copy__steps {
  display: grid;
  gap: 1rem;
}

.story-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.2rem;
  border-radius: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition:
    border-color 220ms ease,
    background-color 220ms ease,
    box-shadow 220ms ease;
  will-change: transform, opacity;
}

.story-step.is-active {
  border-color: rgba(195, 154, 96, 0.22);
  background:
    linear-gradient(180deg, rgba(195, 154, 96, 0.05), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.02);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.story-step__index {
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: 2rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.26);
}

.story-step h3 {
  margin: 0;
  font-size: 1.8rem;
  color: var(--text-strong);
}

.story-step p {
  margin: 0.7rem 0 0;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.66);
}

.signal-node--hero {
  top: 27%;
  right: 16%;
}

.signal-node--story {
  bottom: 16%;
  left: 38%;
}

.signal-node--closing {
  right: 9%;
  top: 22%;
}

/* Login page performance + consistency override */

.auth-gate::before {
  background:
    radial-gradient(circle at var(--gate-xp) var(--gate-yp), rgba(255, 255, 255, 0.08), transparent 12%),
    radial-gradient(circle at var(--gate-xp) var(--gate-yp), rgba(195, 154, 96, 0.07), transparent 20%),
    radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.04), transparent 28%);
  opacity: 0.72;
}

.auth-gate::after {
  inset: 8%;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.04), transparent 42%),
    radial-gradient(circle at var(--gate-xp) var(--gate-yp), rgba(255, 255, 255, 0.07), transparent 8%);
  filter: blur(30px);
  opacity: calc(0.22 + var(--aura) * 0.18);
}

.auth-spotlight {
  z-index: 1;
  background:
    radial-gradient(circle at var(--gate-xp) var(--gate-yp), rgba(255, 255, 255, 0.09), transparent 12%),
    radial-gradient(circle at var(--gate-xp) var(--gate-yp), rgba(195, 154, 96, 0.08), transparent 24%);
  opacity: 0.92;
}

.auth-lens {
  width: 13rem;
  height: 13rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.03), transparent 62%),
    radial-gradient(circle at 50% 50%, rgba(195, 154, 96, 0.08), transparent 70%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 24px rgba(195, 154, 96, 0.08);
  opacity: calc(0.34 + var(--aura) * 0.16);
}

.auth-lens::before {
  inset: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-lens::after {
  inset: 3.2rem;
  border: 1px solid rgba(195, 154, 96, 0.12);
  box-shadow: none;
}

.auth-word::before,
.auth-word::after {
  display: none;
}

.auth-word__layer--shadow {
  filter: blur(10px);
}

@media (min-width: 960px) {
  .hero__inner,
  .story-scroll__sticky,
  .section {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }

  .story-scroll__sticky {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .closing-grid {
    grid-template-columns: 1.08fr 0.92fr;
    padding: 3rem;
  }

  .manifesto-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .access-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 959px) {
  .hero {
    min-height: 150vh;
  }

  .story-scroll {
    min-height: 360vh;
  }

  .story-scroll__track {
    height: 360vh;
  }

  .story-scroll__sticky {
    position: sticky;
    min-height: 100vh;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

@media (max-width: 640px) {
  .hero__inner,
  .story-scroll__sticky,
  .section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero {
    min-height: 136vh;
  }

  .hero__storyline {
    gap: 0.6rem;
  }

  .hero__storyline span {
    padding: 0 0.75rem;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }

  .story-scroll {
    min-height: 300vh;
  }

  .story-scroll__track {
    height: 300vh;
  }

  .story-visual {
    min-height: 26rem;
  }

  .story-visual__caption {
    left: 1rem;
    right: 1rem;
    top: 1rem;
  }

  .story-visual__signals {
    left: 1rem;
    right: 1rem;
    top: auto;
    bottom: 4rem;
    justify-content: flex-start;
    max-width: none;
  }

  .story-progress {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }

  .story-progress__line {
    width: 100%;
  }
}

/* 3D homepage override */

.hero--3d {
  min-height: 170vh;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.02), transparent 42%),
    linear-gradient(180deg, #030405 0%, #06080c 100%);
}

.hero--3d .hero__frame {
  perspective: 1600px;
  overflow: clip;
}

.hero__space {
  --hero-scroll: 0;
  --hero-x: 50%;
  --hero-y: 50%;
  --hero-tilt-x: 0deg;
  --hero-tilt-y: 0deg;
  position: relative;
  min-height: 100vh;
  transform-style: preserve-3d;
}

.hero__photo,
.hero__backdrop,
.hero__depth,
.hero__grid,
.hero__glow,
.hero__core,
.hero__halo {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.9;
  z-index: 0;
  transform:
    translate3d(calc((var(--hero-x) - 50%) * 0.03), calc((var(--hero-y) - 50%) * 0.02 - var(--hero-scroll) * 2rem), 0)
    scale(calc(1.02 + var(--hero-scroll) * 0.06));
}

.hero__backdrop {
  background:
    linear-gradient(90deg, rgba(3, 4, 5, 0.96), rgba(3, 4, 5, 0.66) 36%, rgba(3, 4, 5, 0.2) 66%, rgba(3, 4, 5, 0.82)),
    radial-gradient(circle at var(--hero-x) var(--hero-y), rgba(255, 255, 255, 0.08), transparent 22%);
  opacity: calc(0.9 - var(--hero-scroll) * 0.14);
  z-index: 1;
  transform: translateZ(4px);
}

.hero__depth--far {
  background:
    radial-gradient(circle at 72% 28%, rgba(255, 255, 255, 0.08), transparent 12%),
    radial-gradient(circle at 30% 72%, rgba(195, 154, 96, 0.06), transparent 16%);
  transform: translateZ(-120px);
  opacity: 0.7;
}

.hero__depth--mid {
  inset: 10% 6%;
  border-radius: 2.4rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 38%),
    radial-gradient(circle at 78% 36%, rgba(195, 154, 96, 0.12), transparent 18%);
  transform:
    translate3d(calc((var(--hero-x) - 50%) * -0.08), calc((var(--hero-y) - 50%) * 0.08), -10px)
    rotateY(calc(var(--hero-tilt-y) * 0.4))
    rotateX(calc(var(--hero-tilt-x) * 0.4));
}

.hero__depth--near {
  inset: 18% 12%;
  border-radius: 2.6rem;
  border: 1px solid rgba(195, 154, 96, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  transform:
    translate3d(calc((var(--hero-x) - 50%) * -0.12), calc((var(--hero-y) - 50%) * 0.12), 80px)
    rotateY(calc(var(--hero-tilt-y) * 0.7))
    rotateX(calc(var(--hero-tilt-x) * 0.7));
}

.hero__grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 3.5rem 3.5rem;
  mask-image: linear-gradient(180deg, transparent 0%, black 14%, black 86%, transparent 100%);
  opacity: 0.34;
  transform:
    translate3d(0, calc(var(--hero-scroll) * 8rem), -60px)
    rotateX(78deg)
    scale(1.3);
  transform-origin: center 76%;
}

.hero__glow {
  background:
    radial-gradient(circle at var(--hero-x) var(--hero-y), rgba(255, 255, 255, 0.14), transparent 10%),
    radial-gradient(circle at var(--hero-x) var(--hero-y), rgba(195, 154, 96, 0.12), transparent 22%);
  opacity: 0.9;
  transform: translateZ(20px);
}

.hero__core {
  inset: auto;
  width: clamp(16rem, 24vw, 24rem);
  height: clamp(16rem, 24vw, 24rem);
  right: 10%;
  top: 20%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.3), rgba(195, 154, 96, 0.12) 32%, rgba(255, 255, 255, 0.02) 62%, transparent 74%);
  transform:
    translate3d(calc((var(--hero-x) - 50%) * -0.22), calc((var(--hero-y) - 50%) * 0.16 + var(--hero-scroll) * 5rem), 160px)
    rotateY(calc(var(--hero-tilt-y) * 0.8))
    rotateX(calc(var(--hero-tilt-x) * 0.8));
}

.hero__halo {
  inset: auto;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero__halo--primary {
  width: clamp(22rem, 34vw, 34rem);
  height: clamp(22rem, 34vw, 34rem);
  right: 4%;
  top: 10%;
  transform:
    translate3d(calc((var(--hero-x) - 50%) * -0.12), calc((var(--hero-y) - 50%) * 0.08), 60px)
    rotateX(74deg)
    rotateZ(calc(var(--hero-scroll) * 28deg));
}

.hero__halo--secondary {
  width: clamp(11rem, 18vw, 18rem);
  height: clamp(11rem, 18vw, 18rem);
  left: 10%;
  bottom: 12%;
  opacity: 0.56;
  transform:
    translate3d(calc((var(--hero-x) - 50%) * 0.1), calc((var(--hero-y) - 50%) * -0.08), 30px)
    rotateX(74deg)
    rotateZ(calc(var(--hero-scroll) * -24deg));
}

.hero--3d .signal-node--hero {
  z-index: 4;
  transform: translateZ(180px);
}

.hero--3d .hero__inner {
  transform-style: preserve-3d;
}

.hero--3d .hero__content {
  max-width: 44rem;
  transform:
    translate3d(0, calc(var(--hero-scroll) * -5.5rem), 180px)
    rotateY(calc(var(--hero-tilt-y) * 0.35))
    rotateX(calc(var(--hero-tilt-x) * 0.2));
  opacity: calc(1 - var(--hero-scroll) * 0.3);
}

.hero--3d .hero__title {
  font-size: clamp(4.8rem, 16vw, 12rem);
  transform:
    translate3d(calc((var(--hero-x) - 50%) * -0.06), calc((var(--hero-y) - 50%) * -0.05 - var(--hero-scroll) * 2.4rem), 220px)
    rotateY(calc(var(--hero-tilt-y) * 0.55))
    rotateX(calc(var(--hero-tilt-x) * 0.22))
    scale(calc(1 - var(--hero-scroll) * 0.08));
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.story-scroll--3d {
  min-height: 420vh;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.02), transparent 34%),
    linear-gradient(180deg, #05070a 0%, #090c10 100%);
}

.story-scroll--3d .story-scroll__track {
  height: 420vh;
}

.story-scroll--3d .story-scroll__sticky {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.story-stage {
  --story-progress: 0;
  --story-x: 50%;
  --story-y: 50%;
  --story-tilt-x: 0deg;
  --story-tilt-y: 0deg;
  --story-depth: 0px;
  perspective: 2000px;
}

.story-stage__space {
  position: relative;
  min-height: 76vh;
  overflow: hidden;
  border-radius: 2.4rem;
  border: 1px solid rgba(195, 154, 96, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    radial-gradient(circle at top left, rgba(195, 154, 96, 0.08), transparent 28%);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  perspective: 1200px;
  transform-style: preserve-3d;
  transform:
    rotateX(calc(var(--story-tilt-x) * 0.45))
    rotateY(calc(var(--story-tilt-y) * 0.5))
    translateZ(0);
}

.story-stage__veil,
.story-stage__beam,
.story-stage__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.story-stage__veil {
  background:
    linear-gradient(180deg, rgba(5, 6, 8, 0.14), rgba(5, 6, 8, 0.76) 74%, rgba(5, 6, 8, 0.94)),
    linear-gradient(90deg, rgba(5, 6, 8, 0.26), transparent 36%);
  z-index: 3;
}

.story-stage__beam {
  background:
    radial-gradient(circle at calc(18% + var(--story-progress) * 60%) 30%, rgba(255, 255, 255, 0.2), transparent 12%),
    linear-gradient(145deg, transparent 30%, rgba(255, 255, 255, 0.08) 48%, transparent 68%);
  mix-blend-mode: screen;
  z-index: 3;
}

.story-stage__grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 3.2rem 3.2rem;
  opacity: 0.22;
  transform:
    translate3d(0, 26%, -220px)
    rotateX(78deg)
    scale(1.2);
  transform-origin: center bottom;
  z-index: 1;
}

.story-plane {
  position: absolute;
  inset: 7% 8%;
  margin: 0;
  transform-style: preserve-3d;
  transform-origin: center center;
  transition: none;
  will-change: transform, opacity, filter;
}

.story-plane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2rem;
  box-shadow: 0 2rem 4.5rem rgba(0, 0, 0, 0.42);
}

.story-stage__index,
.story-stage__caption,
.story-stage__signals,
.story-progress,
.signal-node--story {
  z-index: 4;
}

.story-stage__index {
  position: absolute;
  left: 1.5rem;
  bottom: 1.2rem;
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
  color: rgba(195, 154, 96, 0.2);
  transform: translateZ(220px);
}

.story-stage__caption {
  position: absolute;
  left: 1.5rem;
  top: 1.5rem;
  max-width: 24rem;
  transform: translateZ(220px);
}

.story-stage__caption h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--text-strong);
}

.story-stage__caption p:last-child {
  margin: 0.8rem 0 0;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.74);
}

.story-stage__signals {
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  display: flex;
  max-width: 18rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
  transform: translateZ(220px);
}

.story-stage__signals span {
  display: inline-flex;
  min-height: 2.1rem;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 0.85rem;
  background: rgba(7, 9, 12, 0.52);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.story-copy--3d .story-step {
  will-change: transform, opacity;
}

@media (max-width: 959px) {
  .story-scroll--3d .story-scroll__sticky {
    grid-template-columns: 1fr;
  }

  .story-stage__space {
    min-height: 30rem;
  }
}

@media (max-width: 640px) {
  .hero--3d {
    min-height: 146vh;
  }

  .hero--3d .hero__content {
    max-width: 21rem;
    padding-top: 5rem;
    padding-bottom: 3rem;
  }

  .hero--3d .hero__title {
    font-size: clamp(4rem, 19vw, 5.8rem);
  }

  .hero--3d .hero__lead {
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero--3d .body-copy {
    max-width: 20rem;
    font-size: 0.92rem;
    line-height: 1.75;
  }

  .secret-panel {
    display: none;
  }

  .hero__core {
    right: 6%;
    top: 26%;
  }

  .story-stage__space {
    min-height: 22rem;
  }

  .story-stage__caption,
  .story-stage__signals,
  .story-progress,
  .signal-node--story {
    display: none;
  }

  .story-stage__index {
    left: 1rem;
    bottom: 0.8rem;
    font-size: clamp(2.8rem, 11vw, 4rem);
  }

  .story-copy--3d {
    gap: 1.1rem;
  }

  .story-copy--3d .story-copy__lead {
    font-size: 1rem;
    line-height: 1.72;
  }

  .story-copy--3d .story-step {
    padding: 1rem;
  }

  .story-copy--3d .story-step h3 {
    font-size: 1.25rem;
  }

  .story-stage__caption,
  .story-stage__signals {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }

  .story-stage__signals {
    top: auto;
    bottom: 4rem;
    justify-content: flex-start;
  }
}

/* Premium console override */

.console-shell--lux {
  background:
    radial-gradient(circle at top center, rgba(195, 154, 96, 0.08), transparent 24%),
    linear-gradient(180deg, #040506 0%, #090c11 100%);
}

.console-main--premium {
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top center, rgba(195, 154, 96, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(0, 0, 0, 0.16);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.console-main--premium::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 16%, transparent 82%, rgba(255, 255, 255, 0.03)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03), transparent 14%, transparent 86%, rgba(255, 255, 255, 0.03));
  opacity: 0.66;
}

.console-main__header--premium {
  position: relative;
  z-index: 1;
}

.privilege-hero--premium {
  position: relative;
  z-index: 1;
  grid-template-columns: auto 1fr;
  padding: 1.7rem;
  border-radius: 2rem;
}

.privilege-hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 10rem;
  min-height: 10rem;
}

.privilege-hero__rank--premium {
  position: relative;
  z-index: 1;
  width: 6.8rem;
  height: 6.8rem;
  border-radius: 1.8rem;
  background:
    linear-gradient(145deg, rgba(195, 154, 96, 0.18), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.02);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 20px 40px rgba(0, 0, 0, 0.26);
}

.privilege-hero__rings {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: rotateX(76deg);
}

.privilege-hero__rings::before,
.privilege-hero__rings::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border-radius: inherit;
  border: 1px solid rgba(195, 154, 96, 0.12);
}

.privilege-hero__rings::after {
  inset: 2.4rem;
}

.console-badges--premium {
  margin-top: 1rem;
}

.privilege-grid--premium {
  position: relative;
  z-index: 1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.console-studio {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.92fr);
  gap: 1rem;
  align-items: start;
}

.console-chat--premium {
  min-height: 26rem;
  max-height: 42rem;
  border-radius: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(0, 0, 0, 0.14);
  padding: 1.2rem;
}

.console-side {
  display: grid;
  gap: 1rem;
}

.console-side__card {
  border-radius: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(0, 0, 0, 0.14);
  padding: 1.2rem;
}

.console-side__card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: 1.5rem;
  line-height: 1.16;
  color: var(--text-strong);
}

.console-side__card p:last-child {
  margin: 0.85rem 0 0;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.68);
}

.prompt-grid--premium {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.chat-form--premium {
  border-radius: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(0, 0, 0, 0.14);
  padding: 1rem;
}

@media (max-width: 959px) {
  .privilege-grid--premium {
    grid-template-columns: 1fr;
  }

  .console-studio {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .console-shell {
    padding: 0.8rem;
  }

  .console-main--premium {
    border-radius: 1.4rem;
    padding: 1rem;
    min-height: auto;
  }

  .console-main__header h2 {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  .console-main__lead {
    font-size: 0.94rem;
    line-height: 1.75;
  }

  .privilege-hero--premium {
    grid-template-columns: 1fr;
    padding: 1.1rem;
  }

  .privilege-hero__visual {
    width: 100%;
    min-height: 7rem;
  }

  .privilege-hero__rank--premium {
    width: 5.4rem;
    height: 5.4rem;
    font-size: 2rem;
  }

  .privilege-hero__copy h3 {
    font-size: 1.5rem;
  }

  .console-chat--premium {
    min-height: 16rem;
    max-height: none;
    padding: 1rem;
  }

  .chat-form--premium {
    padding: 0.9rem;
  }

  .chat-form__actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* Release-page refinement */

.hero--launch {
  min-height: 140vh;
  background:
    radial-gradient(circle at top center, rgba(188, 150, 91, 0.08), transparent 28%),
    linear-gradient(180deg, #040506 0%, #070a0f 100%);
}

.secret-panel {
  display: none !important;
}

.hero__frame--launch {
  position: sticky;
  top: 0;
  min-height: 100vh;
  overflow: clip;
}

.hero__space--launch {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1800px;
}

.hero__ambient,
.hero__spot,
.hero__orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__ambient {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.06), transparent 16%),
    radial-gradient(circle at 50% 56%, rgba(195, 154, 96, 0.11), transparent 28%);
  opacity: 0.72;
}

.hero__spot {
  background:
    radial-gradient(circle at var(--hero-x) var(--hero-y), rgba(255, 255, 255, 0.12), transparent 10%),
    radial-gradient(circle at var(--hero-x) var(--hero-y), rgba(195, 154, 96, 0.1), transparent 18%);
  mix-blend-mode: screen;
  opacity: 0.9;
}

.hero__orbit {
  inset: auto;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform-style: preserve-3d;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.hero__orbit--outer {
  width: 42rem;
  height: 42rem;
  margin-left: -21rem;
  margin-top: -15rem;
  transform:
    translate3d(calc((var(--hero-x) - 50%) * 0.18), calc((var(--hero-y) - 50%) * 0.12), -60px)
    rotateX(76deg)
    rotateZ(calc(var(--hero-scroll, 0) * 26deg));
}

.hero__orbit--inner {
  width: 24rem;
  height: 24rem;
  margin-left: -12rem;
  margin-top: -6rem;
  border-color: rgba(195, 154, 96, 0.18);
  transform:
    translate3d(calc((var(--hero-x) - 50%) * -0.1), calc((var(--hero-y) - 50%) * 0.06), 30px)
    rotateX(78deg)
    rotateZ(calc(var(--hero-scroll, 0) * -38deg));
}

.hero--launch .hero__content--launch {
  max-width: 42rem;
  padding-top: clamp(5rem, 10vh, 8rem);
  padding-bottom: 4rem;
  padding-left: clamp(1.6rem, 4.6vw, 3.4rem);
  padding-right: clamp(1rem, 2.4vw, 1.8rem);
}

.hero--launch .hero__title {
  max-width: 100%;
  font-size: clamp(3rem, 8.6vw, 7.1rem);
  letter-spacing: -0.085em;
  transform:
    translate3d(calc((var(--hero-x) - 50%) * -0.008), calc((var(--hero-y) - 50%) * -0.014), 0)
    scale(calc(1 + var(--hero-scroll, 0) * 0.06));
}

.hero__summary {
  max-width: 34rem;
}

.hero__release {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.3rem;
}

.hero__release span {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  border-radius: 999px;
  padding: 0 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.story-scroll--launch {
  min-height: 340vh;
  background:
    radial-gradient(circle at top center, rgba(195, 154, 96, 0.07), transparent 20%),
    linear-gradient(180deg, #05070a 0%, #090c11 100%);
}

.story-scroll--launch .story-scroll__track {
  height: 340vh;
}

.story-scroll--launch .story-scroll__sticky {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(22rem, 0.86fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.story-stage--launch {
  width: 100%;
}

.story-stage__space--launch {
  position: relative;
  min-height: 42rem;
  padding: clamp(1rem, 2.6vw, 1.8rem);
  border-radius: 2.2rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(0, 0, 0, 0.18);
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.34);
}

.story-stage__screen {
  position: absolute;
  inset: 1rem;
  border-radius: 1.7rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.story-stage__caption--launch {
  left: 2rem;
  right: auto;
  bottom: 2rem;
  max-width: 23rem;
  padding: 0;
  background: transparent;
  border: 0;
  backdrop-filter: none;
}

.story-stage__caption--launch h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.05;
  color: var(--text-strong);
}

.story-stage__caption--launch p:last-child {
  margin: 0.9rem 0 0;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.72);
}

.story-mobile-card {
  display: none;
}

.story-mobile-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.story-mobile-signals span {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  border-radius: 999px;
  padding: 0 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.story-copy--launch .story-copy__intro h2 {
  font-size: clamp(3rem, 5.4vw, 5.3rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
}

.story-copy--launch .story-copy__lead {
  max-width: 25rem;
  font-size: 1.08rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.72);
}

.story-copy--launch .story-copy__steps {
  gap: 1rem;
}

.story-copy--launch .story-step {
  padding: 1.1rem 1.15rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-left-color: rgba(195, 154, 96, 0.2);
  background: transparent;
}

.story-copy--launch .story-step p {
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.68);
}

.story-stage--launch {
  position: relative;
  z-index: 2;
}

.story-copy--launch {
  position: relative;
  z-index: 1;
}

.story-stage__space--launch {
  isolation: isolate;
}

.story-plane {
  z-index: 2;
}

.story-scroll--launch .story-stage__space--launch {
  perspective: 1200px;
}

.story-scroll--launch .story-plane {
  opacity: 1;
  z-index: 6;
  backface-visibility: hidden;
}

.story-scroll--launch .story-plane:first-of-type {
  z-index: 10;
}

.story-scroll--launch .story-plane img {
  display: block;
}

.story-scroll--launch .story-stage__screen,
.story-scroll--launch .story-stage__veil,
.story-scroll--launch .story-stage__beam,
.story-scroll--launch .story-stage__grid {
  pointer-events: none;
}

.story-mobile-gallery {
  display: none;
}

.story-mobile-panel {
  overflow: hidden;
  border-radius: 1.55rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    rgba(0, 0, 0, 0.18);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.24);
}

.story-mobile-panel img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}

.story-mobile-panel__copy {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
}

.story-mobile-panel__copy h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: 1.45rem;
  line-height: 1.1;
  color: var(--text-strong);
}

.story-mobile-panel__copy p:last-child {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.78;
  color: rgba(255, 255, 255, 0.72);
}

.console-mobile-status {
  display: none;
}

.console-mobile-status__head {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.console-mobile-status__rank {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  border: 1px solid rgba(195, 154, 96, 0.28);
  background:
    linear-gradient(145deg, rgba(195, 154, 96, 0.18), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.02);
  color: var(--text-strong);
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: 1.25rem;
}

.console-mobile-status__head h3 {
  margin: 0.25rem 0 0;
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: 1.08rem;
  line-height: 1.2;
  color: var(--text-strong);
}

.console-mobile-status__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

@media (max-width: 959px) {
  .story-scroll--launch .story-scroll__sticky {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero--launch {
    min-height: 120vh;
  }

  .story-scroll--launch .story-scroll__sticky {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .story-stage__space--launch {
    min-height: 34rem;
  }
}

@media (max-width: 640px) {
  .hero--launch {
    min-height: 112vh;
  }

  .hero__frame--launch {
    min-height: 100vh;
  }

  .hero--launch .hero__inner {
    padding: 1rem 1.25rem;
  }

  .hero--launch .hero__backdrop {
    background:
      linear-gradient(180deg, rgba(4, 5, 6, 0.02) 0%, rgba(4, 5, 6, 0.06) 40%, rgba(4, 5, 6, 0.84) 72%, #040506 100%);
    opacity: 1;
    transform: none;
  }

  .hero--launch .hero__photo {
    height: 56svh;
    object-position: center top;
    opacity: 1;
    transform: none;
  }

  .hero--launch .hero__ambient,
  .hero--launch .hero__glow,
  .hero--launch .hero__grid {
    opacity: 0.36;
  }

  .hero--launch .hero__topline,
  .hero--launch .hero__bottomline {
    gap: 0.45rem;
    font-size: 0.58rem;
    letter-spacing: 0.22em;
  }

  .hero--launch .hero__content--launch {
    max-width: none;
    padding-top: 48svh;
    padding-bottom: 1.8rem;
    padding-left: 1.7rem;
    padding-right: 1.55rem;
    background:
      linear-gradient(180deg, rgba(4, 5, 6, 0) 0%, rgba(4, 5, 6, 0.44) 18%, rgba(4, 5, 6, 0.9) 38%, rgba(4, 5, 6, 0.98) 100%);
    border-radius: 1.6rem 1.6rem 0 0;
  }

  .hero--launch .hero__title {
    font-size: clamp(2.08rem, 8.8vw, 3.05rem);
    line-height: 0.9;
    letter-spacing: 0;
    transform: none;
  }

  .hero--launch .hero__lead {
    margin-top: 0.8rem;
    font-size: 0.9rem;
    line-height: 1.58;
  }

  .hero--launch .hero__summary {
    max-width: 19rem;
    font-size: 0.8rem;
    line-height: 1.6;
  }

  .hero__release {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero__release span {
    justify-content: center;
    min-height: 2.5rem;
    font-size: 0.68rem;
  }

  .hero--launch .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1.35rem;
  }

  .hero__orbit--outer {
    width: 20rem;
    height: 20rem;
    margin-left: -10rem;
    margin-top: -14.8rem;
  }

  .hero__orbit--inner {
    width: 12.2rem;
    height: 12.2rem;
    margin-left: -6.1rem;
    margin-top: -9.8rem;
  }

  .story-scroll--launch {
    min-height: 300svh;
    padding: 0;
  }

  .story-scroll--launch .story-scroll__track {
    height: 300svh;
  }

  .story-scroll--launch .story-scroll__sticky {
    position: sticky;
    top: 0;
    min-height: 100svh;
    height: 100svh;
    display: grid;
    grid-template-rows: minmax(0, 47svh) minmax(0, 43svh);
    gap: 1rem;
    align-content: center;
    padding: 0.85rem 1rem 1rem;
  }

  .story-stage__space--launch {
    min-height: 0;
    max-height: none;
    height: 100%;
    padding: 0.75rem;
    border-radius: 1.6rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.24);
    perspective: none;
  }

  .story-scroll--launch .story-plane {
    inset: 0.75rem;
    transform-style: flat;
    visibility: visible !important;
  }

  .story-scroll--launch .story-plane img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.15rem;
  }

  .story-stage__screen {
    inset: 0.85rem;
    border-radius: 1.2rem;
  }

  .story-stage__caption--launch,
  .story-stage__signals,
  .story-progress {
    display: none;
  }

  .story-stage--launch {
    display: block;
    position: relative;
    top: auto;
    z-index: 2;
    height: 100%;
    margin-bottom: 0;
  }

  .story-stage__index {
    left: 1rem;
    bottom: 1rem;
    font-size: clamp(2.6rem, 12vw, 3.6rem);
  }

  .story-copy--launch {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0.7rem;
    position: relative;
    z-index: 3;
    margin-top: 0;
    height: 100%;
    overflow: hidden;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
      linear-gradient(180deg, rgba(10, 13, 18, 0.72), rgba(5, 7, 10, 0.9)),
      rgba(5, 7, 10, 0.72);
    border-radius: 1.45rem;
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(18px);
  }

  .story-copy--launch .story-copy__intro h2 {
    font-size: clamp(2.1rem, 11vw, 2.85rem);
  }

  .story-copy--launch .story-copy__lead {
    max-width: none;
    margin-top: 0.55rem;
    font-size: 0.88rem;
    line-height: 1.62;
  }

  .story-copy--launch .story-copy__steps {
    position: relative;
    display: block;
    min-height: 0;
    overflow: hidden;
  }

  .story-copy--launch .story-step {
    position: absolute;
    inset: 0;
    display: grid;
    min-height: 0;
    align-content: end;
    padding: 0;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
      transparent;
    border: 0;
    pointer-events: none;
  }

  .story-copy--launch .story-step h3 {
    font-size: 1.2rem;
  }

  .story-copy--launch .story-step p {
    font-size: 0.92rem;
    line-height: 1.74;
  }

  .section {
    padding-inline: 1rem;
  }

  .section--manifesto,
  .section--system {
    min-height: auto;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .manifesto-film {
    inset: 1.2rem auto auto -20%;
    width: 142vw;
    height: 14rem;
    opacity: 0.46;
  }

  .manifesto-film__panel {
    flex-basis: 68vw;
    border-radius: 1.25rem;
  }

  .system-constellation {
    right: -12rem;
    top: 1.5rem;
    width: 28rem;
    opacity: 0.42;
  }

  .system-constellation__core {
    width: 5.8rem;
    height: 5.8rem;
  }

  .manifesto-grid,
  .closing-grid {
    gap: 1rem;
  }

  .manifesto-quote__frame {
    min-height: 18rem;
  }

  .access-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    perspective: 900px;
  }

  .mode-list {
    gap: 0.8rem;
  }

  .access-chamber {
    width: min(100% - 1.2rem, 28rem);
    padding: 1rem;
    border-radius: 1.45rem;
  }

  .access-chamber__head h2 {
    font-size: 1.7rem;
    line-height: 1.1;
  }

  .rank-strip {
    gap: 0.45rem;
  }

  .rank-pill {
    min-width: 2.65rem;
  }

  .rank-preview {
    padding: 0.9rem;
  }

  .rank-preview__benefits {
    gap: 0.5rem;
  }

  .rank-preview__benefits span {
    font-size: 0.68rem;
  }

  .console-main--premium {
    border-radius: 1.45rem;
    padding: 0.95rem;
    min-height: calc(100svh - 1.6rem);
  }

  .console-studio {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    min-height: calc(100svh - 7.8rem);
  }

  .console-main__header--premium {
    position: relative;
    padding-bottom: 0.15rem;
  }

  .privilege-hero--premium,
  .privilege-grid--premium,
  .console-side__card,
  .prompt-grid--premium {
    display: none;
  }

  .privilege-hero--premium {
    gap: 0.8rem;
    border-radius: 1.45rem;
    padding: 1rem;
  }

  .privilege-hero__copy h3 {
    line-height: 1.18;
  }

  .console-badges--premium {
    gap: 0.45rem;
  }

  .console-badge {
    font-size: 0.68rem;
  }

  .console-mobile-status {
    position: sticky;
    top: 0;
    z-index: 3;
    display: block;
    padding: 0.82rem 0.9rem;
    border-radius: 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
      rgba(5, 8, 12, 0.88);
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
  }

  .privilege-grid--premium {
    gap: 0.75rem;
  }

  .console-chat--premium,
  .chat-form--premium {
    border-radius: 1.35rem;
  }

  .console-chat--premium {
    min-height: 22.8rem;
    height: min(29.5rem, 76svh);
    max-height: min(29.5rem, 76svh);
    padding: 0.85rem;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018)),
      rgba(5, 8, 12, 0.72);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  }

  .chat-bubble {
    border-radius: 1.05rem;
    padding: 0.8rem 0.9rem;
  }

  .chat-bubble p:last-child {
    font-size: 0.92rem;
    line-height: 1.66;
  }

  .console-side {
    position: relative;
    padding-top: 0.4rem;
    gap: 0.65rem;
  }

  .chat-form--premium {
    gap: 0.7rem;
    padding: 0.8rem;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
      rgba(5, 8, 12, 0.92);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
  }

  .chat-form__input {
    min-height: 3.45rem;
    max-height: 8.5rem;
    padding: 0.85rem 4.9rem 0.85rem 0.95rem;
    font-size: 0.94rem;
    line-height: 1.45;
  }

  .live-input .chat-form__input {
    padding-left: 3.25rem;
    padding-right: 5.15rem;
  }

  .chat-form__submit--inline {
    right: 0.6rem;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    min-height: 2.4rem;
    padding-inline: 0.9rem;
  }

  .console-mobile-status__head {
    gap: 0.75rem;
  }

  .console-mobile-status__head h3 {
    font-size: 0.98rem;
  }

  .console-mobile-status__badges {
    margin-top: 0.65rem;
  }
}

/* System refactor final cascade */
.system-body .console-panel,
.system-body .terminal-window,
.system-body .system-side-panel article,
.system-body .admin-metrics article,
.system-body .console-status-grid article {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.016)),
    rgba(7, 9, 12, 0.72);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.system-body .console-panel {
  border-radius: 1.5rem;
  padding: 1rem;
}

.system-body .console-mobile-menu {
  z-index: 2000;
}

.system-body .console-mobile-menu.is-open {
  z-index: 9999;
}

.system-body .console-mobile-menu__panel {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  top: max(4.6rem, calc(env(safe-area-inset-top) + 4.2rem));
  z-index: 10000;
}

/* Live system motion layer */
.motion-page {
  background:
    radial-gradient(circle at var(--system-x, 55%) var(--system-y, 30%), rgba(219, 190, 134, 0.15), transparent 23rem),
    linear-gradient(180deg, #050608 0%, #080a0f 52%, #050608 100%);
}

.motion-hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  align-content: center;
  padding: 1.5rem clamp(1.1rem, 4vw, 4rem);
}

.motion-hero__backdrop,
.motion-grid,
.motion-orb {
  position: absolute;
  pointer-events: none;
}

.motion-hero__backdrop {
  inset: 0;
  background:
    radial-gradient(circle at var(--system-x, 62%) var(--system-y, 28%), rgba(255, 255, 255, 0.08), transparent 14rem),
    linear-gradient(120deg, rgba(255, 255, 255, 0.04), transparent 38%);
  opacity: 0.9;
}

.motion-grid {
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: linear-gradient(180deg, transparent, black 18%, black 76%, transparent);
  opacity: 0.32;
  transform: translate3d(0, calc(var(--scroll-progress, 0) * 6rem), 0);
}

.motion-orb {
  border: 1px solid rgba(219, 190, 134, 0.16);
  border-radius: 50%;
  box-shadow: inset 0 0 70px rgba(219, 190, 134, 0.04);
}

.motion-orb--one {
  right: -12rem;
  top: 12vh;
  width: 38rem;
  height: 38rem;
  transform: rotate(calc(var(--scroll-progress, 0) * 42deg));
}

.motion-orb--two {
  left: -10rem;
  bottom: -12rem;
  width: 26rem;
  height: 26rem;
  opacity: 0.55;
}

.motion-hero__content {
  position: relative;
  z-index: 2;
  max-width: 58rem;
}

.motion-status-strip {
  position: absolute;
  left: clamp(1.1rem, 4vw, 4rem);
  right: clamp(1.1rem, 4vw, 4rem);
  bottom: 1.4rem;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.motion-status-strip span,
.motion-card,
.difference-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.016)),
    rgba(7, 9, 12, 0.72);
  backdrop-filter: blur(18px);
}

.motion-status-strip span {
  border-radius: 999px;
  padding: 0.82rem 1rem;
  color: rgba(244, 239, 229, 0.72);
}

.signal-node--system {
  top: 34%;
  right: 18%;
  opacity: 0.28;
  z-index: 3;
}

.signal-node--right {
  top: 66%;
  right: 42%;
}

.motion-story,
.motion-difference {
  position: relative;
  display: grid;
  min-height: 105svh;
  overflow: hidden;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.1rem, 4vw, 4rem);
}

.motion-story__visual {
  position: relative;
  min-height: 34rem;
  perspective: 1200px;
}

.story-layer {
  position: absolute;
  inset: 12%;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 50% 40%, rgba(219, 190, 134, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01));
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.32);
}

.story-layer--two {
  inset: 22% 4% 2% 22%;
  opacity: 0.72;
}

.story-layer--three {
  inset: 2% 26% 24% 0;
  opacity: 0.52;
}

.motion-story__copy h2,
.difference-panel h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  line-height: 1.08;
  letter-spacing: -0.07em;
}

.motion-section {
  min-height: 86svh;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.1rem, 4vw, 4rem);
}

.motion-card-grid {
  perspective: 1200px;
}

.motion-card {
  min-height: 18rem;
  transform-style: preserve-3d;
  transition:
    transform 320ms ease,
    border-color 320ms ease,
    background-color 320ms ease;
}

.motion-card:hover {
  border-color: rgba(219, 190, 134, 0.24);
  transform: translateY(-0.45rem) rotateX(3deg);
}

.motion-difference {
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.72fr);
}

.difference-panel {
  position: relative;
  z-index: 2;
  border-radius: 2rem;
  padding: clamp(1.4rem, 4vw, 3rem);
}

.difference-orbit {
  position: relative;
  min-height: 26rem;
}

.difference-orbit span {
  position: absolute;
  inset: calc(var(--i, 0) * 12%);
  border: 1px solid rgba(219, 190, 134, 0.16);
  border-radius: 50%;
  transform: rotate(calc(var(--scroll-progress, 0) * 80deg));
}

.difference-orbit span:nth-child(1) {
  --i: 0;
}

.difference-orbit span:nth-child(2) {
  --i: 1;
}

.difference-orbit span:nth-child(3) {
  --i: 2;
}

.motion-closing {
  display: grid;
  min-height: 86svh;
  align-content: center;
  justify-items: start;
  gap: 2rem;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.1rem, 4vw, 4rem);
}

.motion-closing p {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(2.8rem, 8vw, 7rem);
  line-height: 1.06;
  letter-spacing: -0.08em;
}

.reveal-item,
.reveal-card {
  opacity: 0;
  transform: translate3d(0, 2rem, 0);
  transition:
    opacity 700ms ease,
    transform 900ms cubic-bezier(0.2, 0.8, 0.16, 1);
}

.reveal-card {
  transition-delay: calc(var(--delay, 0) * 90ms);
}

.reveal-item.is-visible,
.reveal-card.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.button {
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease,
    box-shadow 220ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.minimal-auth {
  position: relative;
  overflow: hidden;
  --gate-xp: 50%;
  --gate-yp: 50%;
  background:
    radial-gradient(circle at var(--gate-xp) var(--gate-yp), rgba(195, 154, 96, 0.16), transparent 20rem),
    radial-gradient(circle at 50% 78%, rgba(255, 215, 142, 0.08), transparent 30rem),
    #040506;
}

.auth-glow {
  position: fixed;
  inset: auto auto 12% 50%;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(219, 190, 134, 0.16), transparent 62%);
  transform: translateX(-50%);
  pointer-events: none;
}

.minimal-auth .auth-signal-field,
.minimal-auth .auth-spotlight,
.minimal-auth .auth-cursor-orb {
  position: fixed;
  pointer-events: none;
}

.minimal-auth .auth-signal-field,
.minimal-auth .auth-spotlight {
  inset: 0;
  width: 100%;
  height: 100%;
}

.minimal-auth .auth-signal-field {
  z-index: 1;
  opacity: 0.96;
  mix-blend-mode: screen;
}

.minimal-auth .auth-spotlight {
  z-index: 2;
  background:
    radial-gradient(circle at var(--gate-xp) var(--gate-yp), rgba(255, 255, 255, 0.1), transparent 12%),
    radial-gradient(circle at var(--gate-xp) var(--gate-yp), rgba(195, 154, 96, 0.12), transparent 25%);
  opacity: 0.9;
}

.minimal-auth .auth-cursor-orb {
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 239, 194, 0.18), rgba(195, 154, 96, 0.11) 34%, transparent 66%);
  filter: blur(10px);
  mix-blend-mode: screen;
  opacity: 0.95;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 180ms ease;
}

.minimal-auth__panel {
  position: relative;
  z-index: 3;
  text-align: center;
  transform: translateY(-2.5vh);
  border-color: rgba(195, 154, 96, 0.18);
  background:
    linear-gradient(180deg, rgba(14, 12, 8, 0.82), rgba(6, 7, 10, 0.78)),
    rgba(0, 0, 0, 0.22);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.minimal-auth__panel h1 {
  color: #f8e7bd;
  letter-spacing: -0.08em;
  text-shadow: 0 0 32px rgba(195, 154, 96, 0.18);
}

.auth-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin-top: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  padding: 0.28rem;
}

.auth-mode-switch button {
  min-height: 2.4rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  font: inherit;
}

.auth-mode-switch button.is-active {
  background:
    linear-gradient(180deg, rgba(195, 154, 96, 0.18), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.04);
  color: #fff4dc;
}

.auth-link {
  margin-top: 0.9rem;
  border: 0;
  background: transparent;
  color: rgba(248, 231, 189, 0.86);
  font: inherit;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-shadow: 0 0 18px rgba(195, 154, 96, 0.2);
  cursor: pointer;
}

.auth-link:hover,
.auth-link:focus-visible {
  color: #fff4dc;
  text-decoration: underline;
  text-underline-offset: 0.32rem;
}

.auth-secondary-actions {
  display: grid;
  gap: 0.25rem;
  justify-items: center;
  margin-top: 0.65rem;
}

.auth-secondary-actions .auth-link {
  margin-top: 0;
}

.auth-turnstile {
  width: 100%;
  max-width: 100%;
  margin-top: 0.2rem;
  overflow: hidden;
}

.auth-turnstile:not([hidden]) {
  display: block;
}

.auth-turnstile iframe {
  display: block;
  max-width: 100%;
}

.contact-admin-panel__copy {
  margin: 0.4rem 0 0;
  line-height: 1.75;
  color: rgba(244, 239, 229, 0.68);
}

.contact-admin-panel__wechat {
  display: grid;
  gap: 0.45rem;
  margin: 1.25rem 0;
  border-radius: 1.15rem;
  border: 1px solid rgba(219, 190, 134, 0.18);
  background:
    linear-gradient(180deg, rgba(219, 190, 134, 0.075), rgba(255, 255, 255, 0.018)),
    rgba(5, 7, 10, 0.62);
  padding: 1rem;
}

.contact-admin-panel__wechat span {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 239, 229, 0.46);
}

.contact-admin-panel__wechat strong {
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: clamp(1.25rem, 5vw, 1.65rem);
  letter-spacing: 0.08em;
  color: #fff4dc;
}

/* Site-wide black/gold surface guard */
.system-body input,
.system-body select,
.system-body textarea,
.system-body button {
  color-scheme: dark;
}

.system-body input,
.system-body select,
.system-body textarea {
  border: 1px solid rgba(219, 190, 134, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.014)),
    rgba(5, 7, 10, 0.88);
  color: #fffaf0;
  caret-color: #dbbe86;
}

.system-body input::placeholder,
.system-body textarea::placeholder {
  color: rgba(244, 239, 229, 0.36);
}

.system-body input:focus,
.system-body select:focus,
.system-body textarea:focus {
  border-color: rgba(219, 190, 134, 0.34);
  outline: none;
  box-shadow: 0 0 0 1px rgba(219, 190, 134, 0.12);
}

.system-body input:disabled,
.system-body select:disabled,
.system-body textarea:disabled,
.system-body button:disabled {
  color: rgba(244, 239, 229, 0.52);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01)),
    rgba(5, 7, 10, 0.72);
  -webkit-text-fill-color: rgba(244, 239, 229, 0.52);
}

.system-body select option {
  background: #07090c;
  color: #fffaf0;
}

.system-body input:-webkit-autofill,
.system-body input:-webkit-autofill:hover,
.system-body input:-webkit-autofill:focus {
  box-shadow: 0 0 0 1000px #07090c inset;
  -webkit-text-fill-color: #fffaf0;
  caret-color: #dbbe86;
}

.system-dialog {
  max-width: min(92vw, 34rem);
  border: 0;
  background: transparent;
  color: #fffaf0;
  padding: 0;
}

.system-dialog--wide {
  max-width: min(94vw, 54rem);
}

.system-dialog::backdrop {
  background:
    radial-gradient(circle at 50% 30%, rgba(219, 190, 134, 0.08), transparent 26rem),
    rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.system-dialog__panel {
  display: grid;
  gap: 1rem;
  width: 100%;
  border: 1px solid rgba(219, 190, 134, 0.16);
  border-radius: 1.45rem;
  background:
    radial-gradient(circle at top left, rgba(219, 190, 134, 0.09), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014)),
    rgba(5, 7, 10, 0.94);
  box-shadow:
    0 28px 78px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
  padding: clamp(1rem, 3vw, 1.35rem);
}

.system-dialog__panel label {
  display: grid;
  gap: 0.42rem;
}

.system-dialog__panel label span {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  color: rgba(244, 239, 229, 0.54);
}

.system-dialog__panel input,
.system-dialog__panel select {
  min-height: 3.05rem;
  border-radius: 0.95rem;
  padding: 0 0.9rem;
  font: inherit;
}

.system-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.system-dialog__actions .button {
  min-height: 2.8rem;
  padding-inline: 1rem;
}

.device-session-card {
  display: grid;
  gap: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.012)),
    rgba(5, 7, 10, 0.68);
  padding: 0.9rem;
}

.device-session-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: space-between;
}

.device-session-card strong {
  color: #fff4dc;
}

.device-session-card span,
.device-session-card small,
.device-session-card p {
  color: rgba(244, 239, 229, 0.56);
}

@media (max-width: 680px) and (orientation: portrait) {
  .system-auth.minimal-auth {
    min-height: 100dvh;
    height: 100dvh;
    place-items: end center;
    overflow-y: auto;
    padding:
      max(0.65rem, env(safe-area-inset-top))
      max(0.85rem, env(safe-area-inset-right))
      max(0.65rem, env(safe-area-inset-bottom))
      max(0.85rem, env(safe-area-inset-left));
  }

  .minimal-auth__panel {
    width: min(100%, 22rem);
    max-height: calc(100dvh - 1.3rem);
    align-self: end;
    margin-top: auto;
    overflow-y: auto;
    transform: none;
    padding: 0.85rem;
    border-radius: 1.25rem;
    background:
      linear-gradient(180deg, rgba(9, 9, 9, 0.62), rgba(5, 6, 8, 0.72)),
      rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(16px);
    box-shadow:
      0 18px 56px rgba(0, 0, 0, 0.42),
      inset 0 1px 0 rgba(255, 255, 255, 0.055);
  }

  .minimal-auth__panel h1 {
    display: block;
    font-size: 2rem;
    line-height: 1;
  }

  .minimal-auth__panel .system-copy {
    display: block;
    margin-top: 0.28rem;
    font-size: 0.76rem;
    line-height: 1.35;
  }

  .minimal-auth__panel .system-auth__hint {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.66rem;
    line-height: 1.35;
  }

  .minimal-auth__panel .auth-mode-switch {
    margin-top: 0;
  }

  .minimal-auth__panel .system-login-form {
    margin-top: 0.65rem;
    gap: 0.55rem;
  }

  .minimal-auth__panel .system-login-form label {
    gap: 0.25rem;
  }

  .minimal-auth__panel .system-login-form label span {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
  }

  .minimal-auth__panel .system-login-form input {
    min-height: 2.55rem;
    border-radius: 0.8rem;
    padding: 0 0.85rem;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.035);
  }

  .minimal-auth__panel .button {
    min-height: 2.6rem;
    border-radius: 999px;
    padding: 0 1rem;
    font-size: 0.88rem;
  }
}

/* Short landscape screens use the width instead of hiding content below the
   fold. This also accounts for the Apple wrapper's native control bar. */
@media (orientation: landscape) and (max-height: 520px) and (max-width: 960px) {
  .system-auth.minimal-auth {
    min-height: 100dvh;
    height: 100dvh;
    place-items: center;
    overflow-y: auto;
    padding:
      max(0.35rem, env(safe-area-inset-top))
      max(0.7rem, env(safe-area-inset-right))
      max(0.35rem, env(safe-area-inset-bottom))
      max(0.7rem, env(safe-area-inset-left));
  }

  .system-auth__brand {
    display: none;
  }

  .minimal-auth__panel {
    display: grid;
    width: min(44rem, 100%);
    max-height: calc(100dvh - 0.7rem);
    grid-template-columns: minmax(8.5rem, 0.68fr) minmax(17rem, 1.32fr);
    grid-template-areas:
      "title form"
      "copy form"
      "secondary form"
      "forgot form"
      "hint form";
    gap: 0.2rem 0.9rem;
    align-items: center;
    margin: 0;
    overflow-y: auto;
    transform: none;
    border-radius: 1rem;
    padding: 0.55rem 0.75rem;
    text-align: left;
  }

  .minimal-auth__panel h1 {
    grid-area: title;
    margin: 0;
    font-size: clamp(1.75rem, 8dvh, 2.4rem);
    line-height: 1;
  }

  .minimal-auth__panel .system-copy {
    grid-area: copy;
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.3;
  }

  .minimal-auth__panel .system-login-form {
    grid-area: form;
    align-self: stretch;
    margin: 0;
    gap: 0.35rem;
  }

  .minimal-auth__panel .system-login-form label {
    gap: 0.18rem;
  }

  .minimal-auth__panel .system-login-form label span {
    font-size: 0.64rem;
    letter-spacing: 0.1em;
  }

  .minimal-auth__panel .system-login-form input {
    min-height: 2.3rem;
    border-radius: 0.72rem;
    padding-inline: 0.75rem;
  }

  .minimal-auth__panel .button {
    min-height: 2.35rem;
    border-radius: 999px;
    padding-block: 0;
  }

  .minimal-auth__panel .auth-secondary-actions {
    grid-area: secondary;
    justify-items: start;
    margin: 0.1rem 0 0;
  }

  .minimal-auth__panel > .auth-link {
    grid-area: forgot;
    justify-self: start;
    margin: 0.1rem 0 0;
    font-size: 0.7rem;
    letter-spacing: 0.03em;
  }

  .minimal-auth__panel .system-auth__hint {
    display: block;
    grid-area: hint;
    margin: 0.1rem 0 0;
    font-size: 0.62rem;
    line-height: 1.3;
  }

  .system-dialog {
    max-height: calc(100dvh - 0.7rem);
    overflow-y: auto;
  }

  .system-dialog__panel {
    gap: 0.45rem;
    border-radius: 1rem;
    padding: 0.65rem;
  }

  .contact-admin-panel__copy {
    line-height: 1.4;
  }

  .contact-admin-panel__wechat {
    gap: 0.2rem;
    margin: 0.35rem 0;
    padding: 0.55rem;
  }
}

.live-console .console-topbar h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  line-height: 1;
}

.live-console .console-topbar {
  gap: 1rem;
}

.live-console .console-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.live-console .console-actions .button,
.live-console .console-mobile-menu__panel .button {
  min-height: 2.8rem;
  padding-inline: 1rem;
  white-space: nowrap;
}

.live-console .console-actions .admin-entry:not([hidden]) {
  border-color: rgba(195, 154, 96, 0.34);
  color: #fff4dc;
  background:
    linear-gradient(180deg, rgba(195, 154, 96, 0.12), rgba(255, 255, 255, 0.018)),
    rgba(5, 7, 11, 0.78);
}

.live-console .console-mobile-menu {
  display: none;
}

.admin-entry[hidden] {
  display: none;
}

.live-chat {
  min-height: min(28rem, 52svh);
  margin-top: 1rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.live-input {
  position: relative;
  display: block;
  width: 100%;
}

.live-chat.is-drag-target {
  box-shadow:
    inset 0 0 0 1px rgba(241, 217, 154, 0.30),
    0 0 0 1px rgba(216, 184, 120, 0.12),
    0 20px 60px rgba(216, 184, 120, 0.08);
  background:
    radial-gradient(circle at 86% 92%, rgba(241, 217, 154, 0.10), transparent 34%),
    rgba(255, 255, 255, 0.032);
}

.live-input.is-drag-target::before {
  content: "松开即可加入附件";
  position: absolute;
  right: 0.85rem;
  bottom: calc(100% + 0.42rem);
  z-index: 8;
  border: 1px solid rgba(241, 217, 154, 0.24);
  border-radius: 999px;
  padding: 0.34rem 0.72rem;
  color: rgba(241, 217, 154, 0.94);
  background:
    linear-gradient(135deg, rgba(20, 18, 13, 0.92), rgba(8, 8, 10, 0.92));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
  font-size: 0.78rem;
  pointer-events: none;
}

.live-input.is-drag-target .chat-form__shell {
  border-radius: 999px;
  box-shadow:
    0 0 0 1px rgba(241, 217, 154, 0.32),
    0 0 36px rgba(216, 184, 120, 0.12);
}

.composer-attachments {
  display: flex;
  gap: 0.58rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 0.18rem 0.12rem 0.68rem;
  scrollbar-width: thin;
}

.composer-attachments[hidden] {
  display: none;
}

.composer-attachment {
  position: relative;
  display: grid;
  grid-template-columns: 3.25rem minmax(8rem, 1fr) auto;
  align-items: center;
  gap: 0.62rem;
  min-width: min(19rem, 86vw);
  max-width: 24rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(216, 184, 120, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(216, 184, 120, 0.035)),
    rgba(8, 8, 10, 0.86);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  padding: 0.48rem;
  color: var(--text-primary);
}

.composer-attachment__thumb,
.composer-attachment__icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.72rem;
  border: 1px solid rgba(216, 184, 120, 0.16);
  background: rgba(255, 255, 255, 0.05);
  object-fit: cover;
}

.composer-attachment__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(241, 217, 154, 0.82);
  font-size: 1.15rem;
  font-weight: 800;
}

.composer-attachment__meta {
  min-width: 0;
  display: grid;
  gap: 0.16rem;
}

.composer-attachment__meta strong,
.composer-attachment__meta span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer-attachment__meta strong {
  font-size: 0.88rem;
  color: rgba(244, 239, 228, 0.94);
}

.composer-attachment__meta span {
  font-size: 0.73rem;
  color: rgba(244, 239, 228, 0.54);
}

.composer-attachment__remove {
  width: 1.8rem;
  height: 1.8rem;
  border: 1px solid rgba(216, 184, 120, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(244, 239, 228, 0.74);
  cursor: pointer;
}

.composer-attachment__remove:hover,
.composer-attachment__remove:focus-visible {
  border-color: rgba(241, 217, 154, 0.38);
  color: rgba(241, 217, 154, 0.95);
}

.upload-button {
  display: inline-flex;
  min-height: 3.35rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 1rem;
  color: rgba(244, 239, 229, 0.78);
  cursor: pointer;
}

.live-input .chat-form__shell {
  position: relative;
  display: block;
  width: 100%;
}

.live-input .chat-form__input {
  min-height: 3.5rem;
  padding: 0.9rem 5.4rem 0.9rem 3.35rem;
}

.live-input .upload-button--inline {
  position: absolute;
  left: 0.55rem;
  top: 50%;
  z-index: 2;
  width: 2.35rem;
  min-width: 2.35rem;
  min-height: 2.35rem;
  height: 2.35rem;
  padding: 0;
  transform: translateY(-50%) !important;
  user-select: none;
}

.live-input .upload-button--inline:hover,
.live-input .upload-button--inline:active,
.live-input .upload-button--inline:focus-visible {
  transform: translateY(-50%) !important;
}

.live-input .chat-form__submit--inline {
  right: 0.55rem;
  z-index: 2;
  min-height: 2.35rem;
  height: 2.35rem;
  padding-inline: 0.95rem;
  transform: translateY(-50%) !important;
}

.live-input .chat-form__submit--inline:hover,
.live-input .chat-form__submit--inline:active,
.live-input .chat-form__submit--inline:focus-visible,
.live-input .chat-form__submit--inline:disabled {
  transform: translateY(-50%) !important;
}

/* Console rank card restore */
.live-console .privilege-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(8.6rem, 12rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
  overflow: hidden;
  margin: 1rem 0;
  border-radius: 1.65rem;
  border: 1px solid rgba(191, 160, 101, 0.13);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.012) 46%, rgba(191, 160, 101, 0.026)),
    rgba(4, 5, 7, 0.78);
  box-shadow:
    0 22px 58px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  padding: 0.85rem;
  backdrop-filter: blur(18px);
}

.live-console .privilege-panel::before,
.live-console .privilege-panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.live-console .privilege-panel::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(191, 160, 101, 0.07), transparent 20%, transparent 82%, rgba(191, 160, 101, 0.045)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 24%, transparent 76%, rgba(255, 255, 255, 0.016));
  opacity: 0.52;
}

.live-console .privilege-panel::after {
  display: none;
}

.live-console .privilege-panel__rank {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 11rem;
  overflow: hidden;
  isolation: isolate;
  border-radius: 1.55rem 1.55rem 1.55rem 0.55rem;
  border: 1px solid rgba(219, 190, 134, 0.28);
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 235, 184, 0.12), transparent 30%),
    linear-gradient(146deg, rgba(211, 172, 99, 0.28), rgba(56, 43, 23, 0.5) 39%, rgba(5, 5, 5, 0.98) 76%),
    rgba(32, 24, 11, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -34px 88px rgba(0, 0, 0, 0.42),
    0 24px 54px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(219, 190, 134, 0.035);
  transform: translateY(-0.08rem);
}

.live-console .privilege-panel__rank::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(118deg, transparent 0 38%, rgba(255, 245, 215, 0.11) 48%, transparent 58%),
    radial-gradient(circle at 22% 28%, rgba(255, 244, 220, 0.08) 0 1px, transparent 1.4px),
    radial-gradient(circle at 68% 36%, rgba(191, 160, 101, 0.075) 0 1px, transparent 1.5px),
    radial-gradient(circle at 38% 72%, rgba(255, 244, 220, 0.055) 0 1px, transparent 1.4px),
    conic-gradient(from 44deg at 72% 74%, transparent 0 18%, rgba(191, 160, 101, 0.075) 18.5% 19.2%, transparent 20% 100%),
    conic-gradient(from 216deg at 26% 34%, transparent 0 24%, rgba(255, 244, 220, 0.055) 24.5% 25.2%, transparent 26% 100%),
    radial-gradient(circle at 50% 88%, rgba(191, 160, 101, 0.12), transparent 46%);
  background-size:
    auto,
    4.8rem 4.8rem,
    6.6rem 6.6rem,
    5.4rem 5.4rem,
    auto,
    auto,
    auto;
  opacity: 0.58;
}

.live-console .privilege-panel__rank::after {
  content: "NORMA ACCESS";
  position: absolute;
  left: 0.7rem;
  bottom: 0.62rem;
  font-size: 0.42rem;
  letter-spacing: 0.22em;
  color: rgba(255, 244, 220, 0.18);
}

.live-console .privilege-panel__rank::selection {
  background: transparent;
}

.live-console .privilege-panel__rank span::selection,
.live-console .privilege-panel__rank strong::selection {
  background: rgba(219, 190, 134, 0.18);
}

.live-console .privilege-panel__rank span {
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: transparent;
  font-size: 0;
}

.live-console .privilege-panel__rank span::before,
.live-console .privilege-panel__rank span::after {
  content: "";
  position: absolute;
  z-index: 1;
  width: 1.65rem;
  height: 1.65rem;
  opacity: 0.48;
  pointer-events: none;
}

.live-console .privilege-panel__rank span::before {
  left: 0.62rem;
  top: 0.62rem;
  border-left: 1px solid rgba(255, 232, 180, 0.38);
  border-top: 1px solid rgba(255, 232, 180, 0.38);
}

.live-console .privilege-panel__rank span::after {
  right: 0.72rem;
  bottom: 0.72rem;
  border-right: 1px solid rgba(255, 232, 180, 0.24);
  border-bottom: 1px solid rgba(255, 232, 180, 0.24);
}

.live-console .privilege-panel__rank strong {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  font-family: "Times New Roman", Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(6.35rem, 10.8vw, 9.25rem);
  line-height: 0.88;
  letter-spacing: -0.025em;
  text-align: center;
  transform: translateX(-0.02em) scaleX(0.88);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.35px rgba(255, 239, 197, 0.82);
  background:
    linear-gradient(92deg, rgba(255, 248, 225, 0.98), rgba(197, 157, 88, 0.9) 42%, rgba(255, 238, 194, 0.9) 56%, rgba(116, 83, 34, 0.78) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter:
    drop-shadow(0 22px 34px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 1px rgba(255, 239, 197, 0.28));
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16),
    0 28px 46px rgba(0, 0, 0, 0.5);
}

.live-console .privilege-panel__rank strong::before,
.live-console .privilege-panel__rank strong::after {
  content: "";
  position: absolute;
  left: 50%;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.live-console .privilege-panel__rank strong::before {
  top: 50%;
  width: 7.4rem;
  height: 7.4rem;
  border: 1px solid rgba(255, 232, 180, 0.09);
  background:
    radial-gradient(circle, rgba(0, 0, 0, 0.16), transparent 58%),
    conic-gradient(from 18deg, transparent 0 11%, rgba(219, 190, 134, 0.11) 11.4% 12.4%, transparent 13% 100%);
  transform: translate(-50%, -50%);
}

.live-console .privilege-panel__rank strong::after {
  top: calc(50% + 1.18rem);
  width: 8.6rem;
  height: 2.25rem;
  border: 1px solid rgba(191, 160, 101, 0.12);
  transform: translateX(-50%) rotateX(68deg);
}

.live-console .privilege-panel__rank + .privilege-panel__body {
  border-left: 1px solid rgba(219, 190, 134, 0.08);
  padding-left: 1.15rem;
}

.live-console .privilege-panel__body {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 0.4rem 0.35rem;
}

.live-console .privilege-panel__body h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  line-height: 1.18;
  color: rgba(255, 250, 240, 0.92);
  text-shadow: none;
}

.live-console .privilege-panel__body p:not(.system-kicker) {
  margin: 0.75rem 0 0;
  max-width: 48rem;
  line-height: 1.8;
  color: rgba(244, 239, 229, 0.68);
}

.live-console .privilege-panel__body ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.live-console .privilege-panel__body li {
  border-radius: 999px;
  border: 1px solid rgba(191, 160, 101, 0.13);
  background:
    linear-gradient(180deg, rgba(191, 160, 101, 0.045), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.024);
  padding: 0.45rem 0.7rem;
  color: rgba(255, 244, 220, 0.76);
  font-size: 0.84rem;
}

.live-console .privilege-panel__note {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.8rem 0.2rem 0.1rem;
  color: rgba(191, 160, 101, 0.68);
  font-size: 0.88rem;
}

@media (max-width: 760px) {
  html,
  body.console-body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body.console-body {
    min-height: 100dvh;
  }

  .live-console {
    display: flex;
    min-height: 100dvh;
    max-width: 100%;
    flex-direction: column;
    padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) max(0.85rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
    overflow-x: hidden;
  }

  .live-console .console-actions {
    display: none;
  }

  .live-console .console-mobile-menu {
    display: block;
  }

  .live-console .privilege-panel {
    grid-template-columns: 5.8rem minmax(0, 1fr);
    gap: 0.72rem;
    margin: 0.8rem 0;
    border-radius: 1.25rem;
    padding: 0.65rem;
  }

  .live-console .privilege-panel__rank {
    min-height: 6.2rem;
    border-radius: 1rem 1rem 1rem 0.42rem;
    transform: none;
  }

  .live-console .privilege-panel__rank strong {
    font-size: 4.95rem;
  }

  .live-console .privilege-panel__rank::after {
    left: 0.48rem;
    bottom: 0.42rem;
    font-size: 0.3rem;
    letter-spacing: 0.18em;
    color: rgba(255, 244, 220, 0.14);
  }

  .live-console .privilege-panel__rank span::before,
  .live-console .privilege-panel__rank span::after {
    width: 1.05rem;
    height: 1.05rem;
  }

  .live-console .privilege-panel__rank span::before {
    left: 0.48rem;
    top: 0.48rem;
  }

  .live-console .privilege-panel__rank span::after {
    right: 0.48rem;
    bottom: 0.48rem;
  }

  .live-console .privilege-panel__rank strong::before {
    width: 4.25rem;
    height: 4.25rem;
  }

  .live-console .privilege-panel__rank strong::after {
    width: 5rem;
    height: 1.45rem;
  }

  .live-console .privilege-panel__rank + .privilege-panel__body {
    border-left: 0;
    padding-left: 0;
  }

  .live-console .privilege-panel__body {
    padding: 0;
  }

  .live-console .privilege-panel__body h2 {
    font-size: 1.08rem;
  }

  .live-console .privilege-panel__body p:not(.system-kicker) {
    margin-top: 0.42rem;
    font-size: 0.86rem;
    line-height: 1.55;
  }

  .live-console .privilege-panel__body ul {
    display: none;
  }

  .live-console .privilege-panel__note {
    display: none;
  }

  .live-chat,
  .console-chat--system {
    min-height: 0;
    height: auto;
    max-height: none;
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .live-input {
    flex: 0 0 auto;
    margin-top: 0.75rem;
  }

  .live-input .chat-form__input,
  .chat-form__input {
    min-height: 3.5rem;
    max-height: 9rem;
    font-size: 16px;
    line-height: 1.45;
    transform: translateZ(0);
  }

  .chat-bubble p:last-child {
    font-size: 0.96rem;
  }
}

/* NORMA unified console shell: original Web console with campus modules. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.console-app-shell {
  display: grid;
  grid-template-columns: 14.5rem minmax(0, 1fr);
  width: 100%;
  min-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
}

.console-primary-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 1.4rem;
  height: 100dvh;
  overflow: hidden;
  border-right: 1px solid rgba(216, 184, 120, 0.14);
  background:
    linear-gradient(180deg, rgba(216, 184, 120, 0.035), transparent 32%),
    rgba(6, 7, 8, 0.96);
  padding: max(1.15rem, env(safe-area-inset-top)) 0.9rem max(1rem, env(safe-area-inset-bottom));
}

.console-primary-nav__brand {
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 0.7rem;
  color: var(--norma-text);
  text-decoration: none;
}

.console-primary-nav__brand > span {
  grid-row: 1 / 3;
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid rgba(241, 217, 154, 0.48);
  color: var(--norma-gold-soft);
  font-family: Georgia, serif;
  font-size: 1.05rem;
}

.console-primary-nav__brand strong {
  align-self: end;
  font-family: Georgia, serif;
  font-size: 1.02rem;
  font-weight: 500;
}

.console-primary-nav__brand small {
  align-self: start;
  color: var(--norma-faint);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.console-primary-nav__routes {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 0.26rem;
  overflow-y: auto;
}

.console-route {
  display: grid;
  grid-template-columns: 1.55rem minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  width: 100%;
  min-height: 3.45rem;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  padding: 0.55rem 0.62rem;
  color: var(--norma-muted);
  text-align: left;
  cursor: pointer;
}

.console-route > span {
  grid-row: 1 / 3;
  color: var(--norma-faint);
  font-family: Georgia, serif;
  font-size: 0.66rem;
}

.console-route strong {
  color: inherit;
  font-size: 0.86rem;
  font-weight: 650;
}

.console-route small {
  color: var(--norma-faint);
  font-size: 0.64rem;
}

.console-route:hover,
.console-route:focus-visible {
  border-color: rgba(216, 184, 120, 0.14);
  background: rgba(255, 255, 255, 0.035);
  color: var(--norma-text);
}

.console-route.is-active {
  border-color: rgba(241, 217, 154, 0.26);
  background:
    linear-gradient(90deg, rgba(216, 184, 120, 0.13), rgba(216, 184, 120, 0.025)),
    rgba(255, 255, 255, 0.025);
  color: var(--norma-gold-soft);
}

.console-nav-identity {
  display: grid;
  gap: 0.16rem;
  border: 1px solid rgba(216, 184, 120, 0.14);
  border-radius: 6px;
  background: rgba(216, 184, 120, 0.045);
  padding: 0.62rem;
}

.console-nav-identity span,
.console-nav-identity small {
  color: var(--norma-faint);
  font-size: 0.64rem;
}

.console-nav-identity strong {
  color: var(--norma-text);
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.console-primary-nav__footer {
  display: grid;
  gap: 0.3rem;
  border-top: 1px solid rgba(216, 184, 120, 0.12);
  padding-top: 0.75rem;
}

.console-primary-nav__footer button,
.console-primary-nav__footer a {
  min-height: 2.2rem;
  border: 0;
  border-radius: 4px;
  background: transparent;
  padding: 0 0.58rem;
  color: var(--norma-muted);
  font: inherit;
  font-size: 0.76rem;
  line-height: 2.2rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.console-primary-nav__footer button:hover,
.console-primary-nav__footer a:hover {
  background: rgba(255, 255, 255, 0.035);
  color: var(--norma-text);
}

.console-app-shell > .live-console {
  width: 100%;
  max-width: 98rem;
  min-width: 0;
  min-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
  margin: 0 auto;
  grid-template-rows: auto minmax(0, 1fr);
  padding-inline: clamp(0.8rem, 2vw, 1.5rem);
}

.console-view[hidden] {
  display: none !important;
}

.console-view--chat.is-active {
  display: grid;
  grid-template-rows: auto auto minmax(12rem, 1fr) auto;
  gap: 0.72rem;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.console-identity-overview {
  border: 1px solid var(--norma-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.022);
}

.console-identity-overview > summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 2.55rem;
  align-items: center;
  gap: 0.65rem;
  padding: 0 0.75rem;
  color: var(--norma-muted);
  cursor: pointer;
  list-style: none;
}

.console-identity-overview > summary::-webkit-details-marker {
  display: none;
}

.console-identity-overview > summary span,
.console-identity-overview > summary small {
  color: var(--norma-faint);
  font-size: 0.66rem;
}

.console-identity-overview > summary strong {
  color: var(--norma-text);
  font-size: 0.76rem;
}

.console-identity-overview[open] > summary {
  border-bottom: 1px solid var(--norma-border);
}

.console-identity-overview .console-status-grid,
.console-identity-overview .privilege-panel {
  margin: 0.65rem;
}

.console-mobile-nav {
  display: none;
}

.console-module {
  min-width: 0;
  padding: 0.5rem 0 2rem;
  max-height: 100%;
  overflow-y: auto;
}

.console-module.is-active {
  display: block;
}

.console-module__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.2rem;
  border-bottom: 1px solid var(--norma-border);
  padding: 1rem 0 1.1rem;
}

.console-module__header h2,
.organization-detail__header h3,
.mcp-tool-panel__header h3 {
  margin: 0;
  color: var(--norma-text);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 560;
  letter-spacing: 0;
}

.console-module__header > div > p:last-child,
.organization-detail__header p {
  max-width: 48rem;
  margin: 0.38rem 0 0;
  color: var(--norma-muted);
  line-height: 1.6;
}

.module-create {
  position: relative;
  flex: 0 0 auto;
}

.module-create > summary,
.module-inline-form > summary {
  display: inline-flex;
  min-height: 2.45rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(241, 217, 154, 0.28);
  border-radius: 6px;
  background: rgba(216, 184, 120, 0.08);
  padding: 0 0.85rem;
  color: var(--norma-gold-soft);
  font-size: 0.78rem;
  cursor: pointer;
  list-style: none;
}

.module-create > summary::-webkit-details-marker,
.module-inline-form > summary::-webkit-details-marker {
  display: none;
}

.module-create[open] > .module-form {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  z-index: 30;
  width: min(24rem, calc(100vw - 2rem));
  border: 1px solid var(--norma-border-strong);
  border-radius: 8px;
  background: rgba(10, 10, 12, 0.98);
  padding: 0.9rem;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.module-form {
  display: grid;
  gap: 0.7rem;
}

.module-form--columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.module-form__wide {
  grid-column: 1 / -1;
}

.module-form label,
.organization-run-form label {
  display: grid;
  gap: 0.34rem;
  min-width: 0;
}

.module-form label > span,
.organization-run-form label > span {
  color: var(--norma-muted);
  font-size: 0.72rem;
}

.module-form input,
.module-form textarea,
.module-form select,
.organization-run-form textarea,
.forum-reply-form textarea,
.module-search input {
  width: 100%;
  border-radius: 6px;
}

.module-form__note {
  margin: 0;
  color: var(--norma-faint);
  font-size: 0.72rem;
  line-height: 1.5;
}

.module-status {
  min-height: 1.4rem;
  margin: 0.45rem 0;
  color: var(--norma-muted);
  font-size: 0.76rem;
}

.module-status[data-status="success"] {
  color: #9fc9ad;
}

.module-status[data-status="error"] {
  color: #e3a49b;
}

.module-empty {
  display: grid;
  min-height: 9rem;
  place-items: center;
  padding: 1rem;
  color: var(--norma-faint);
  font-size: 0.82rem;
  text-align: center;
}

.organization-workspace,
.forum-workspace,
.mcp-workspace {
  display: grid;
  min-width: 0;
  gap: 1rem;
}

.organization-workspace {
  grid-template-columns: 13.5rem minmax(0, 1fr);
}

.organization-list {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.4rem;
}

.organization-list__item {
  display: grid;
  gap: 0.25rem;
  width: 100%;
  min-height: 3.75rem;
  border: 1px solid var(--norma-border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.024);
  padding: 0.65rem 0.72rem;
  color: var(--norma-muted);
  text-align: left;
  cursor: pointer;
}

.organization-list__item strong {
  color: var(--norma-text);
  font-size: 0.82rem;
}

.organization-list__item span {
  color: var(--norma-faint);
  font-size: 0.68rem;
}

.organization-list__item.is-active {
  border-color: rgba(241, 217, 154, 0.34);
  background: rgba(216, 184, 120, 0.075);
}

.organization-detail,
.forum-post-list,
.forum-thread,
.mcp-server-list,
.mcp-tool-panel {
  min-width: 0;
}

.organization-detail__header,
.mcp-tool-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--norma-border);
  padding-bottom: 0.9rem;
}

.organization-detail__header > span,
.mcp-tool-panel__header > span {
  flex: 0 0 auto;
  border: 1px solid var(--norma-border);
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  color: var(--norma-muted);
  font-size: 0.68rem;
}

.agent-member-grid,
.equipment-catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.agent-member,
.equipment-item {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 0.65rem;
  border: 1px solid var(--norma-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.027);
  padding: 0.82rem;
}

.agent-member header,
.agent-member footer,
.equipment-item header,
.equipment-item footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.agent-member header > div {
  display: grid;
  gap: 0.16rem;
}

.agent-member strong,
.equipment-item strong {
  color: var(--norma-text);
  font-size: 0.84rem;
}

.agent-member header span,
.agent-member footer span,
.equipment-item header > span,
.equipment-item footer > span {
  color: var(--norma-faint);
  font-size: 0.66rem;
}

.agent-member p,
.equipment-item p {
  margin: 0;
  color: var(--norma-muted);
  font-size: 0.76rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.status-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  flex: 0 0 0.5rem;
  border-radius: 999px;
  background: #696969;
  box-shadow: 0 0 0 3px rgba(105, 105, 105, 0.12);
}

.status-dot.is-online {
  background: #86b49a;
  box-shadow: 0 0 0 3px rgba(134, 180, 154, 0.12);
}

.module-inline-form {
  margin-top: 0.8rem;
}

.module-inline-form > .module-form {
  margin-top: 0.65rem;
  border-top: 1px solid var(--norma-border);
  padding-top: 0.75rem;
}

.organization-run-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.75rem;
  margin-top: 1rem;
  border-top: 1px solid var(--norma-border);
  padding-top: 1rem;
}

.organization-result {
  margin-top: 0.9rem;
  border: 1px solid rgba(241, 217, 154, 0.24);
  border-radius: 8px;
  background: rgba(216, 184, 120, 0.05);
  padding: 0.9rem;
}

.module-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.module-section-heading h3 {
  margin: 0;
  color: var(--norma-text);
  font-size: 1rem;
}

.module-section-heading > span {
  color: #9fc9ad;
  font-size: 0.7rem;
}

.organization-result__answer,
.agent-output-list article p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.organization-result__answer {
  margin-top: 0.7rem;
  color: var(--norma-text);
  line-height: 1.7;
}

.organization-result details {
  margin-top: 0.8rem;
}

.organization-result summary {
  color: var(--norma-gold);
  font-size: 0.76rem;
  cursor: pointer;
}

.agent-output-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.6rem;
}

.agent-output-list article {
  border-top: 1px solid var(--norma-border);
  padding-top: 0.6rem;
}

.agent-output-list article header {
  display: flex;
  gap: 0.45rem;
  color: var(--norma-muted);
  font-size: 0.72rem;
}

.agent-output-list article p {
  color: var(--norma-muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.forum-sections {
  display: flex;
  gap: 0.42rem;
  overflow-x: auto;
  padding: 0.2rem 0 0.7rem;
  scrollbar-width: none;
}

.forum-sections button {
  display: inline-flex;
  min-height: 2.2rem;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--norma-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.026);
  padding: 0 0.7rem;
  color: var(--norma-muted);
  font: inherit;
  font-size: 0.74rem;
  cursor: pointer;
}

.forum-sections button small {
  color: var(--norma-faint);
  font-size: 0.6rem;
}

.forum-sections button.is-active {
  border-color: rgba(241, 217, 154, 0.32);
  background: rgba(216, 184, 120, 0.09);
  color: var(--norma-gold-soft);
}

.forum-workspace {
  grid-template-columns: minmax(15rem, 0.72fr) minmax(20rem, 1.28fr);
  align-items: start;
}

.forum-post-list,
.forum-thread,
.mcp-server-list,
.mcp-tool-panel {
  display: grid;
  gap: 0.55rem;
  max-height: calc(100dvh - 14rem);
  overflow-y: auto;
}

.forum-post,
.mcp-server {
  width: 100%;
  border: 1px solid var(--norma-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  padding: 0.78rem;
  color: var(--norma-muted);
  text-align: left;
}

button.forum-post {
  cursor: pointer;
}

.forum-post.is-active,
.mcp-server.is-active {
  border-color: rgba(241, 217, 154, 0.31);
  background: rgba(216, 184, 120, 0.065);
}

.forum-post__meta {
  color: var(--norma-faint);
  font-size: 0.66rem;
}

.forum-post__meta strong {
  margin-right: 0.35rem;
  color: var(--norma-gold);
}

.forum-post h3,
.forum-thread__post h3 {
  margin: 0.42rem 0 0;
  color: var(--norma-text);
  font-size: 0.92rem;
}

.forum-post p,
.forum-thread p,
.forum-replies p {
  margin: 0.4rem 0 0;
  color: var(--norma-muted);
  font-size: 0.76rem;
  line-height: 1.58;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.forum-post p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.forum-post__replies {
  display: block;
  margin-top: 0.55rem;
  color: var(--norma-faint);
  font-size: 0.66rem;
}

.forum-thread__post {
  border-bottom: 1px solid var(--norma-border);
  padding: 0.25rem 0 0.9rem;
}

.forum-thread__post header,
.forum-replies article header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.forum-thread__post header div {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.forum-thread__post header span,
.forum-replies article header span {
  color: var(--norma-gold);
  font-size: 0.68rem;
}

.forum-thread__post header strong,
.forum-replies article header strong {
  color: var(--norma-text);
  font-size: 0.76rem;
}

.forum-thread__post header button,
.mcp-server__actions button {
  border: 0;
  background: transparent;
  color: var(--norma-muted);
  font: inherit;
  font-size: 0.68rem;
  cursor: pointer;
}

.forum-replies {
  display: grid;
  gap: 0.7rem;
}

.forum-replies article {
  border-bottom: 1px solid var(--norma-border);
  padding-bottom: 0.7rem;
}

.forum-replies article header {
  justify-content: flex-start;
}

.forum-replies article header small {
  color: var(--norma-faint);
  font-size: 0.64rem;
}

.forum-reply-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.65rem;
  margin-top: 0.2rem;
}

.module-search {
  width: min(22rem, 38vw);
}

.equipment-filters {
  display: inline-grid;
  grid-template-columns: repeat(5, minmax(4.5rem, auto));
  gap: 0.2rem;
  margin-bottom: 0.72rem;
  border: 1px solid var(--norma-border);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.2rem;
}

.equipment-filters button {
  min-height: 2rem;
  border: 0;
  border-radius: 5px;
  background: transparent;
  padding: 0 0.72rem;
  color: var(--norma-muted);
  font: inherit;
  font-size: 0.7rem;
  letter-spacing: 0;
  cursor: pointer;
}

.equipment-filters button:hover,
.equipment-filters button:focus-visible {
  color: var(--norma-text);
}

.equipment-filters button.is-active {
  background: rgba(216, 184, 120, 0.11);
  color: var(--norma-gold-soft);
  box-shadow: inset 0 0 0 1px rgba(216, 184, 120, 0.12);
}

.equipment-summary {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.equipment-summary > span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  min-height: 2rem;
  border: 1px solid var(--norma-border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.024);
  padding: 0.42rem 0.65rem;
  color: var(--norma-muted);
  font-size: 0.7rem;
}

.equipment-summary small {
  color: var(--norma-muted);
  font-size: 0.68rem;
}

.equipment-summary strong {
  color: var(--norma-gold-soft);
  font-size: 0.78rem;
}

.equipment-item {
  min-height: 14.5rem;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.equipment-item:hover {
  border-color: rgba(216, 184, 120, 0.24);
  transform: translateY(-1px);
}

.equipment-item.is-installed {
  border-color: rgba(134, 180, 154, 0.24);
  background: rgba(134, 180, 154, 0.035);
}

.equipment-item > header {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  justify-content: initial;
  gap: 0.65rem;
}

.equipment-item__icon {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid var(--norma-border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.026);
}

.equipment-item__icon img {
  width: 1rem;
  height: 1rem;
  opacity: 0.78;
  filter: invert(1);
}

.equipment-item__identity {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 0.1rem;
}

.equipment-item__identity small {
  color: var(--norma-faint);
  font-size: 0.6rem;
  letter-spacing: 0;
}

.equipment-item__identity strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.equipment-item__state {
  display: inline-flex;
  align-items: center;
  align-self: start;
  gap: 0.3rem;
  color: #9fc9ad;
  font-size: 0.62rem;
  white-space: nowrap;
}

.equipment-item__state i {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  background: #86b49a;
  box-shadow: 0 0 0 3px rgba(134, 180, 154, 0.1);
}

.equipment-item > p {
  margin: 0;
  color: var(--norma-muted);
  font-size: 0.72rem;
  line-height: 1.62;
}

.equipment-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
}

.equipment-item__meta > span {
  border: 1px solid var(--norma-border);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.022);
  padding: 0.24rem 0.38rem;
  color: var(--norma-faint);
  font-size: 0.59rem;
  line-height: 1.2;
}

.equipment-item__source {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 0.34rem;
  color: var(--norma-gold-soft);
  font-size: 0.64rem;
  text-decoration: none;
}

.equipment-item__source:hover,
.equipment-item__source:focus-visible {
  color: var(--norma-text);
}

.equipment-item__source img {
  width: 0.76rem;
  height: 0.76rem;
  flex: 0 0 auto;
  filter: invert(1);
}

.equipment-item__source span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.equipment-item__source--local {
  color: var(--norma-faint);
}

.equipment-item footer {
  align-self: end;
  margin-top: auto;
}

.equipment-item footer > span:first-child {
  display: grid;
  min-width: 0;
  gap: 0.12rem;
  line-height: 1.35;
}

.equipment-item footer > span:first-child b {
  color: var(--norma-muted);
  font-size: 0.64rem;
  font-weight: 560;
}

.equipment-action,
.equipment-item__core {
  display: inline-flex;
  min-width: 4.55rem;
  min-height: 2.1rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 6px;
  padding: 0 0.68rem;
  font: inherit;
  font-size: 0.68rem;
  letter-spacing: 0;
  white-space: nowrap;
}

.equipment-action {
  border: 1px solid rgba(216, 184, 120, 0.28);
  background: rgba(216, 184, 120, 0.09);
  color: var(--norma-gold-soft);
  cursor: pointer;
}

.equipment-action:hover,
.equipment-action:focus-visible {
  border-color: rgba(241, 217, 154, 0.48);
  background: rgba(216, 184, 120, 0.15);
}

.equipment-action.is-delete {
  border-color: transparent;
  background: transparent;
  color: var(--norma-muted);
}

.equipment-action.is-delete:hover,
.equipment-action.is-delete:focus-visible {
  border-color: rgba(227, 164, 155, 0.24);
  background: rgba(227, 164, 155, 0.07);
  color: #e3a49b;
}

.equipment-action:disabled {
  cursor: wait;
  opacity: 0.62;
}

.equipment-action img,
.equipment-item__core img {
  width: 0.88rem;
  height: 0.88rem;
  filter: invert(1);
}

.equipment-item__core {
  color: var(--norma-faint);
}

.equipment-action img.is-spinning {
  animation: equipment-rotate 800ms linear infinite;
}

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

.mcp-workspace {
  grid-template-columns: minmax(16rem, 0.8fr) minmax(22rem, 1.2fr);
  align-items: start;
}

.mcp-server__select {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0.12rem 0.5rem;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--norma-text);
  text-align: left;
  cursor: pointer;
}

.mcp-server__select .status-dot {
  grid-row: 1 / 3;
}

.mcp-server__select strong {
  font-size: 0.82rem;
}

.mcp-server__select small {
  color: var(--norma-faint);
  font-size: 0.64rem;
}

.mcp-server > p {
  margin: 0.5rem 0 0;
  color: var(--norma-faint);
  font-size: 0.68rem;
  overflow-wrap: anywhere;
}

.mcp-server > .mcp-server__error {
  color: #e3a49b;
}

.mcp-server__actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
  border-top: 1px solid var(--norma-border);
  padding-top: 0.55rem;
}

.mcp-server__actions button:hover,
.mcp-server__actions button:focus-visible {
  color: var(--norma-gold-soft);
}

.mcp-server__actions button:disabled {
  opacity: 0.38;
}

.mcp-tool-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  max-height: 15rem;
  overflow-y: auto;
  padding: 0.65rem 0;
}

.mcp-tool-list article {
  border: 1px solid var(--norma-border);
  border-radius: 6px;
  padding: 0.65rem;
}

.mcp-tool-list strong {
  color: var(--norma-text);
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}

.mcp-tool-list p {
  margin: 0.32rem 0 0;
  color: var(--norma-muted);
  font-size: 0.68rem;
  line-height: 1.5;
}

.mcp-call-result {
  max-width: 100%;
  max-height: 18rem;
  overflow: auto;
  border: 1px solid var(--norma-border);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.75rem;
  color: #b9d7c3;
  font-size: 0.7rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (prefers-color-scheme: light) {
  .console-primary-nav {
    background:
      linear-gradient(180deg, rgba(151, 112, 51, 0.05), transparent 34%),
      rgba(249, 247, 242, 0.98);
  }

  .module-create[open] > .module-form {
    background: rgba(252, 250, 245, 0.99);
  }

  .console-route:hover,
  .console-route:focus-visible,
  .organization-list__item,
  .agent-member,
  .equipment-item,
  .forum-post,
  .mcp-server,
  .equipment-summary > span {
    background: rgba(255, 255, 255, 0.62);
  }

  .equipment-item__icon img,
  .equipment-action img,
  .equipment-item__core img,
  .equipment-item__source img {
    filter: none;
  }

  .console-route.is-active,
  .organization-list__item.is-active,
  .forum-post.is-active,
  .mcp-server.is-active {
    background: rgba(174, 133, 67, 0.09);
  }
}

@media (max-width: 1120px) {
  .console-app-shell {
    grid-template-columns: 12rem minmax(0, 1fr);
  }

  .agent-member-grid,
  .equipment-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .organization-workspace {
    grid-template-columns: 11rem minmax(0, 1fr);
  }
}

@media (max-width: 960px) {
  .console-app-shell {
    display: block;
    height: auto;
    overflow: visible;
  }

  .console-primary-nav {
    display: none;
  }

  .console-app-shell > .live-console {
    min-height: calc(100dvh - 4.2rem);
    height: auto;
    overflow: visible;
    padding-bottom: calc(5.2rem + env(safe-area-inset-bottom));
  }

  .console-mobile-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: calc(3.75rem + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(216, 184, 120, 0.18);
    background: rgba(7, 8, 9, 0.94);
    padding: 0.35rem max(0.35rem, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(0.35rem, env(safe-area-inset-left));
    backdrop-filter: blur(20px);
  }

  .console-mobile-nav button {
    min-width: 0;
    min-height: 3rem;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--norma-faint);
    font: inherit;
    font-size: 0.7rem;
  }

  .console-mobile-nav button.is-active {
    background: rgba(216, 184, 120, 0.08);
    color: var(--norma-gold-soft);
  }

  .console-view--chat.is-active {
    min-height: calc(100dvh - 10.5rem);
    overflow: visible;
  }

  .console-module {
    max-height: none;
    overflow: visible;
  }

  .organization-workspace,
  .forum-workspace,
  .mcp-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .organization-list {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
  }

  .organization-list__item {
    width: min(13rem, 68vw);
    flex: 0 0 auto;
  }

  .forum-post-list,
  .forum-thread,
  .mcp-server-list,
  .mcp-tool-panel {
    max-height: none;
    overflow: visible;
  }

  .forum-post-list {
    max-height: 18rem;
    overflow-y: auto;
  }
}

@media (max-width: 620px) {
  .console-app-shell > .live-console {
    gap: 0.55rem;
    padding-inline: max(0.58rem, env(safe-area-inset-left));
    padding-top: max(0.58rem, env(safe-area-inset-top));
  }

  .console-module {
    padding-top: 0.15rem;
  }

  .console-module__header {
    align-items: stretch;
    flex-direction: column;
    gap: 0.7rem;
    padding-top: 0.55rem;
  }

  .console-module__header h2 {
    font-size: 1.45rem;
  }

  .module-create {
    width: 100%;
  }

  .module-create > summary {
    width: 100%;
  }

  .module-create[open] > .module-form {
    position: static;
    width: 100%;
    margin-top: 0.45rem;
  }

  .agent-member-grid,
  .equipment-catalog,
  .mcp-tool-list,
  .module-form--columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .organization-run-form,
  .forum-reply-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .module-search {
    width: 100%;
  }

  .organization-detail__header,
  .mcp-tool-panel__header {
    align-items: flex-start;
  }

  .organization-detail__header h3,
  .mcp-tool-panel__header h3 {
    font-size: 1.18rem;
  }

  .equipment-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .equipment-filters {
    width: 100%;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .equipment-filters button {
    min-width: 0;
    padding-inline: 0.2rem;
    font-size: 0.64rem;
  }

  .equipment-summary > span {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
    padding-inline: 0.4rem;
    text-align: center;
  }

  .equipment-item {
    min-height: 0;
  }

  .forum-thread__post header,
  .forum-replies article header {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .console-body *,
  .console-body *::before,
  .console-body *::after {
    box-sizing: border-box;
  }

  body.console-body {
    overflow-x: hidden;
  }

  .live-console,
  .live-chat,
  .console-chat,
  .console-chat--system,
  .chat-bubble,
  .chat-bubble__body,
  .chat-rich-text,
  .norma-rich-card,
  .world-pulse-card,
  .market-card,
  .media-result-card {
    max-width: 100%;
    min-width: 0;
  }

  .chat-bubble {
    overflow: hidden;
    padding: 0.86rem 0.92rem;
  }

  .chat-bubble__body,
  .chat-rich-text,
  .chat-rich-text p,
  .chat-bubble__body p,
  .rich-card__summary,
  .rich-card__notice,
  .pulse-item p,
  .source-item span {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .chat-bubble__body,
  .chat-rich-text {
    font-size: 0.95rem;
    line-height: 1.68;
  }

  .chat-bubble p:last-child {
    font-size: 0.95rem;
    line-height: 1.68;
  }

  .norma-rich-card {
    padding: 0.82rem;
  }

  .rich-card__head {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .rich-card__head h3,
  .pulse-item h4 {
    font-size: 1rem;
    line-height: 1.36;
  }

  .market-quote__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .source-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .chat-bubble__body a,
  .chat-rich-text a,
  .norma-rich-card a,
  .inline-preview__source-meta span {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .chat-bubble__body pre,
  .chat-rich-text pre,
  .chat-bubble__body code,
  .chat-rich-text code {
    white-space: pre-wrap;
  }

  .chat-bubble__body table,
  .chat-rich-text table {
    display: table;
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
  }

  .media-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .media-tile img,
  .media-tile video {
    max-height: 15rem;
  }
}

.activity-trend {
  display: flex;
  min-height: 12rem;
  align-items: end;
  gap: 0.7rem;
}

.activity-trend span {
  flex: 1;
  height: var(--value);
  border-radius: 999px 999px 0.4rem 0.4rem;
  background: linear-gradient(180deg, rgba(219, 190, 134, 0.88), rgba(219, 190, 134, 0.18));
}

/* Admin control clarity */
.admin-table {
  min-width: 74rem;
}

.admin-table th {
  white-space: nowrap;
}

.admin-table td {
  vertical-align: middle;
}

.admin-role-select,
.admin-mini-button,
.system-dialog select {
  min-height: 2.35rem;
  border-radius: 0.72rem;
  border: 1px solid rgba(219, 190, 134, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(7, 9, 12, 0.92);
  color: rgba(255, 250, 240, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.admin-role-select {
  min-width: 4.8rem;
  padding: 0 0.65rem;
  color-scheme: dark;
}

.admin-role-select option,
.system-dialog select option {
  background: #080a0d;
  color: #fffaf0;
}

.admin-mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 4.6rem;
  padding: 0 0.8rem;
  font-size: 0.84rem;
  white-space: nowrap;
  cursor: pointer;
}

.admin-mini-button:hover:not(:disabled),
.admin-role-select:hover,
.admin-role-select:focus {
  border-color: rgba(219, 190, 134, 0.36);
  background:
    linear-gradient(180deg, rgba(219, 190, 134, 0.11), rgba(255, 255, 255, 0.018)),
    rgba(8, 10, 13, 0.96);
}

.admin-mini-button:disabled {
  cursor: default;
  opacity: 0.62;
}

.admin-row-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.42rem;
  align-items: center;
}

.admin-nickname-cell {
  display: inline-block;
  color: #fff4dc;
  font-size: 0.96rem;
  min-width: 5.5rem;
}

.admin-user-id-cell {
  color: rgba(244, 239, 229, 0.52);
  display: inline-block;
  font-size: 0.82rem;
  max-width: 10rem;
  word-break: break-all;
}

.admin-user-usage {
  display: grid;
  grid-template-columns: repeat(4, minmax(3.65rem, 1fr));
  gap: 0.45rem;
  min-width: 18.4rem;
}

.admin-user-usage span {
  display: grid;
  gap: 0.18rem;
  min-height: 3.2rem;
  align-content: center;
  border-radius: 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.018);
  padding: 0.45rem 0.55rem;
}

.admin-user-usage em {
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: rgba(244, 239, 229, 0.46);
}

.admin-user-usage b {
  font-size: 1.18rem;
  line-height: 1;
  color: #fff4dc;
}

.admin-archive {
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.85rem;
}

.admin-archive__toggle {
  display: flex;
  width: 100%;
  min-height: 3rem;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.012)),
    rgba(5, 7, 10, 0.56);
  padding: 0 0.95rem;
  color: rgba(244, 239, 229, 0.74);
  cursor: pointer;
}

.admin-archive__toggle:hover {
  border-color: rgba(219, 190, 134, 0.22);
  color: #fff4dc;
}

.admin-archive__toggle b {
  display: inline-grid;
  min-width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border-radius: 999px;
  background: rgba(219, 190, 134, 0.1);
  color: rgba(255, 244, 220, 0.86);
}

.admin-archive__body {
  margin-top: 0.75rem;
}

.admin-table--disabled {
  opacity: 0.82;
}

.admin-table--disabled .admin-role-select,
.admin-table--disabled .admin-mini-button {
  border-color: rgba(255, 255, 255, 0.09);
}

.system-dialog__panel button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.system-auth__hint.is-error {
  display: block;
  width: 100%;
  border: 1px solid rgba(255, 144, 96, 0.42);
  border-radius: 0.95rem;
  background:
    linear-gradient(180deg, rgba(255, 120, 84, 0.13), rgba(255, 255, 255, 0.018)),
    rgba(20, 8, 6, 0.66);
  box-shadow:
    0 0 0 1px rgba(255, 144, 96, 0.08),
    0 16px 34px rgba(0, 0, 0, 0.22);
  padding: 0.85rem 0.95rem;
  color: #ffe1cd;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.system-login-form input[aria-invalid="true"] {
  border-color: rgba(255, 154, 114, 0.42);
  box-shadow: 0 0 0 1px rgba(255, 154, 114, 0.16);
}

.system-login-form.has-error input[aria-invalid="true"] {
  background:
    linear-gradient(180deg, rgba(255, 120, 84, 0.06), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.035);
}

.system-auth__hint.is-shaking {
  animation: auth-error-shake 360ms ease both;
}

@keyframes auth-error-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  22% {
    transform: translateX(-6px);
  }
  48% {
    transform: translateX(5px);
  }
  72% {
    transform: translateX(-3px);
  }
}

@media (max-width: 820px) {
  .motion-status-strip,
  .motion-story,
  .motion-difference {
    grid-template-columns: 1fr;
  }

  .motion-status-strip {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 2rem;
  }

  .motion-story,
  .motion-difference {
    min-height: auto;
  }

  .motion-story__visual {
    min-height: 22rem;
  }
}

/* Final homepage story override:
   Apple-like scroll narrative: top image window and lower copy window move together. */
.legacy-home .legacy-section--story.legacy-section--horizontal {
  position: relative !important;
  min-height: 392vh !important;
  overflow: visible !important;
}

.legacy-home .legacy-section--story.legacy-section--horizontal > .legacy-wrap {
  position: sticky !important;
  top: 0 !important;
  box-sizing: border-box !important;
  display: flex !important;
  height: 100vh !important;
  min-height: 100vh !important;
  max-width: min(100% - 2.6rem, 76rem) !important;
  flex-direction: column !important;
  justify-content: center !important;
  overflow: hidden !important;
  padding-top: clamp(1rem, 2.2vh, 1.6rem) !important;
  padding-bottom: clamp(1rem, 2.2vh, 1.6rem) !important;
}

.legacy-home .legacy-section--story.legacy-section--horizontal.is-story-fixed > .legacy-wrap,
.legacy-home .legacy-section--story.legacy-section--horizontal.is-story-ended > .legacy-wrap {
  width: min(100% - 2.6rem, 76rem) !important;
}

.legacy-home .legacy-section--story.legacy-section--horizontal.is-story-fixed > .legacy-wrap {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  top: 0 !important;
  bottom: auto !important;
  z-index: 8 !important;
  transform: translate3d(-50%, 0, 0) !important;
}

.legacy-home .legacy-section--story.legacy-section--horizontal.is-story-ended > .legacy-wrap {
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  top: auto !important;
  bottom: 0 !important;
  z-index: 1 !important;
  transform: translate3d(-50%, 0, 0) !important;
}

.legacy-home .legacy-section--story.legacy-section--horizontal .legacy-intro {
  display: none !important;
}

.legacy-home .legacy-section--story.legacy-section--horizontal .legacy-story-grid {
  display: grid !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: minmax(0, 52vh) minmax(0, 34vh) !important;
  gap: clamp(1rem, 2.1vh, 1.5rem) !important;
  align-items: stretch !important;
  margin-top: 0 !important;
}

.legacy-home .legacy-section--story.legacy-section--horizontal .legacy-card-stack {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  grid-template-columns: none !important;
  overflow: hidden !important;
  transform: none !important;
  transition: none !important;
  will-change: auto !important;
  border-radius: clamp(1.45rem, 2.5vw, 2rem) !important;
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(195, 154, 96, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.026)),
    rgba(5, 7, 11, 0.74) !important;
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.055) !important;
  backdrop-filter: blur(18px) !important;
}

.legacy-home .legacy-section--story.legacy-section--horizontal .story-card {
  display: none !important;
}

.legacy-home .legacy-section--story.legacy-section--horizontal .story-live-card {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: none;
  pointer-events: none;
}

.legacy-home .legacy-section--story.legacy-section--horizontal .story-live-card.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.legacy-home .legacy-section--story.legacy-section--horizontal .story-live-card__body {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto 1fr;
  align-content: center;
  align-items: start;
  gap: clamp(0.7rem, 1.6vw, 1rem) clamp(1rem, 3vw, 2rem);
  padding: clamp(1.25rem, 3vw, 2.2rem);
  opacity: 1;
  transform: none;
  transition: none;
}

.legacy-home .legacy-section--story.legacy-section--horizontal .story-live-card.is-visible .story-live-card__body {
  opacity: 1;
}

.legacy-home .legacy-section--story.legacy-section--horizontal .story-drop-char {
  --char-progress: 0;
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(0.992);
  will-change: transform, opacity;
}

.legacy-home .legacy-section--story.legacy-section--horizontal .story-live-card__meta {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.legacy-home .legacy-section--story.legacy-section--horizontal .story-live-card__meta .eyebrow {
  margin: 0;
}

.legacy-home .legacy-section--story.legacy-section--horizontal .story-live-card__meta span {
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(2.65rem, 4.5vw, 4.2rem);
  line-height: 0.86;
  color: rgba(255, 255, 255, 0.13);
  letter-spacing: -0.08em;
}

.legacy-home .legacy-section--story.legacy-section--horizontal .story-live-card h3 {
  grid-column: 1;
  margin: 0;
  max-width: 11em;
  font-size: clamp(1.55rem, 2.55vw, 2.55rem);
  line-height: 1.08;
  letter-spacing: -0.06em;
  color: rgba(255, 248, 234, 0.94);
}

.legacy-home .legacy-section--story.legacy-section--horizontal .story-live-card__lines {
  grid-column: 1;
  display: grid;
  gap: 0.28rem;
  max-width: 34rem;
}

.legacy-home .legacy-section--story.legacy-section--horizontal .story-live-card__lines p {
  margin: 0;
  font-size: clamp(0.94rem, 1.18vw, 1.08rem);
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.66);
}

.legacy-home .legacy-section--story.legacy-section--horizontal .legacy-stage-wrap {
  position: relative !important;
  top: auto !important;
  min-height: 0 !important;
}

.legacy-home .legacy-section--story.legacy-section--horizontal .norma-stage {
  height: 100% !important;
  padding: clamp(0.55rem, 1.5vw, 0.9rem) !important;
  border-radius: clamp(1.45rem, 2.6vw, 2rem) !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(195, 154, 96, 0.11), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018)),
    rgba(5, 7, 11, 0.66) !important;
  backdrop-filter: blur(18px) !important;
}

.legacy-home .legacy-section--story.legacy-section--horizontal .norma-stage__media {
  height: 100% !important;
  min-height: 0 !important;
  border-radius: clamp(1rem, 2vw, 1.55rem) !important;
}

.legacy-home .legacy-section--story.legacy-section--horizontal .norma-stage__content {
  display: none !important;
}

.legacy-home .norma-stage__visual {
  opacity: 0 !important;
  transform: scale(1.035) translate3d(0, 16px, 0) !important;
  filter: saturate(0.92) contrast(1.04) brightness(0.9);
}

.legacy-home .norma-stage__visual--active {
  opacity: 1 !important;
  transform: scale(1.02) translate3d(0, 0, 0) !important;
  filter: saturate(1.02) contrast(1.08) brightness(0.98);
}

.legacy-home .norma-stage__veil {
  background:
    linear-gradient(180deg, rgba(5, 6, 8, 0.06), rgba(5, 6, 8, 0.32) 58%, rgba(5, 6, 8, 0.84)),
    radial-gradient(circle at 52% 48%, transparent 0%, rgba(5, 6, 8, 0.18) 58%, rgba(5, 6, 8, 0.64) 100%) !important;
}

.legacy-home .legacy-section--cards {
  position: relative !important;
  z-index: 1 !important;
  min-height: 100vh !important;
}

.legacy-home .legacy-section--cards .reveal-card {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .legacy-home .legacy-section--story.legacy-section--horizontal {
    min-height: 392vh !important;
    overflow: visible !important;
  }

  .legacy-home .legacy-section--story.legacy-section--horizontal > .legacy-wrap {
    position: sticky !important;
    top: 0 !important;
    height: 100svh !important;
    min-height: 100svh !important;
    max-width: min(100% - 1.2rem, 44rem) !important;
    overflow: hidden !important;
    padding-top: max(0.75rem, env(safe-area-inset-top)) !important;
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom)) !important;
  }

  .legacy-home .legacy-section--story.legacy-section--horizontal.is-story-fixed > .legacy-wrap,
  .legacy-home .legacy-section--story.legacy-section--horizontal.is-story-ended > .legacy-wrap {
    width: min(100% - 1.2rem, 44rem) !important;
  }

  .legacy-home .legacy-section--story.legacy-section--horizontal .legacy-story-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: minmax(0, 48svh) minmax(0, 40svh) !important;
    gap: 0.85rem !important;
    margin-top: 0 !important;
  }

  .legacy-home .legacy-section--story.legacy-section--horizontal .legacy-stage-wrap {
    position: relative !important;
    top: auto !important;
  }

  .legacy-home .legacy-section--story.legacy-section--horizontal .norma-stage {
    height: 100% !important;
    padding: 0.65rem !important;
    border-radius: 1.45rem !important;
  }

  .legacy-home .legacy-section--story.legacy-section--horizontal .norma-stage__media {
    height: 100% !important;
    min-height: 0 !important;
    border-radius: 1rem !important;
  }

  .legacy-home .legacy-section--story.legacy-section--horizontal .norma-stage__content {
    display: none !important;
  }

  .legacy-home .legacy-section--story.legacy-section--horizontal .legacy-card-stack {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
  }

  .legacy-home .legacy-section--story.legacy-section--horizontal .story-card {
    display: none !important;
  }

  .legacy-home .legacy-section--story.legacy-section--horizontal .story-live-card {
    padding: 0 !important;
  }

  .legacy-home .legacy-section--story.legacy-section--horizontal .story-live-card__body {
    padding: 1.15rem !important;
    gap: 0.55rem 0.9rem;
  }

  .legacy-home .legacy-section--story.legacy-section--horizontal .story-live-card__meta span {
    font-size: clamp(2.5rem, 14vw, 3.6rem);
  }

  .legacy-home .legacy-section--story.legacy-section--horizontal .story-live-card h3 {
    font-size: clamp(1.55rem, 7vw, 2.2rem);
  }

  .legacy-home .legacy-section--story.legacy-section--horizontal .story-live-card__lines p {
    font-size: clamp(0.9rem, 3.7vw, 1rem);
    line-height: 1.62;
  }

  .legacy-home .legacy-section--cards {
    min-height: auto !important;
  }

  .legacy-home .use-case-card {
    min-height: 10.5rem !important;
  }
}

@media (max-width: 680px) {
  .legacy-home .hero-shell__shade {
    background:
      linear-gradient(180deg, rgba(5, 6, 8, 0.16) 0%, rgba(5, 6, 8, 0.28) 54%, rgba(5, 6, 8, 0.52) 100%),
      linear-gradient(90deg, rgba(5, 6, 8, 0.42), rgba(5, 6, 8, 0.08)) !important;
  }
}

/* NORMA 2026 UI pass: chat-first console, compact citations, theme-safe media previews. */
.console-body {
  --norma-bg: #050609;
  --norma-bg-2: #090a0d;
  --norma-surface: rgba(18, 18, 22, 0.72);
  --norma-surface-strong: rgba(28, 26, 22, 0.78);
  --norma-border: rgba(216, 184, 120, 0.16);
  --norma-border-strong: rgba(241, 217, 154, 0.34);
  --norma-gold: #d8b878;
  --norma-gold-soft: #f1d99a;
  --norma-text: #f4efe4;
  --norma-muted: rgba(244, 239, 228, 0.58);
  --norma-faint: rgba(244, 239, 228, 0.34);
  background:
    radial-gradient(circle at 82% 8%, rgba(216, 184, 120, 0.12), transparent 25rem),
    radial-gradient(circle at 15% 88%, rgba(241, 217, 154, 0.055), transparent 21rem),
    linear-gradient(180deg, var(--norma-bg), var(--norma-bg-2));
  color: var(--norma-text);
}

.live-console {
  position: relative;
  width: min(100%, 1120px);
  margin-inline: auto;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 0.78rem;
  min-height: 100dvh;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}

.live-console .console-topbar {
  position: sticky;
  top: 0;
  z-index: 12;
  align-items: center;
  border: 1px solid var(--norma-border);
  border-radius: 1.15rem;
  padding: 0.78rem 0.9rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(216, 184, 120, 0.026)),
    rgba(7, 8, 10, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.live-console .console-topbar h1 {
  font-size: clamp(1.35rem, 3.2vw, 2.35rem);
  letter-spacing: 0.01em;
}

.live-console .system-kicker {
  margin-bottom: 0.18rem;
  color: var(--norma-gold);
}

.live-console .console-status-grid {
  gap: 0.62rem;
}

.live-console .console-status-grid article,
.live-console .privilege-panel,
.console-chat--system,
.chat-form--system {
  border-color: var(--norma-border);
  background:
    radial-gradient(circle at 86% 0%, rgba(216, 184, 120, 0.055), transparent 18rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.016)),
    var(--norma-surface);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.20);
}

.live-console .privilege-panel {
  margin: 0;
  border-radius: 1.18rem;
}

.live-chat {
  min-height: 0;
  max-height: none;
  grid-auto-rows: max-content;
  align-content: start;
  overflow-x: hidden;
  padding: 0.9rem;
  scrollbar-gutter: stable;
}

.live-chat > .chat-bubble {
  min-height: max-content;
}

.chat-scroll-bottom {
  position: fixed;
  left: 50%;
  bottom: calc(max(0.75rem, env(safe-area-inset-bottom)) + 5.55rem);
  z-index: 16;
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  min-height: 2.05rem;
  padding: 0 0.78rem;
  border: 1px solid rgba(216, 184, 120, 0.26);
  border-radius: 999px;
  color: var(--norma-text);
  background:
    linear-gradient(135deg, rgba(241, 217, 154, 0.12), rgba(255, 255, 255, 0.040)),
    rgba(7, 8, 10, 0.82);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.035) inset;
  backdrop-filter: blur(18px);
  cursor: pointer;
  transform: translateX(-50%);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.chat-scroll-bottom[hidden] {
  display: none !important;
}

.chat-scroll-bottom span {
  display: grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  color: var(--norma-gold-soft);
  font-size: 0.92rem;
  line-height: 1;
}

.chat-scroll-bottom strong {
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.02em;
}

.chat-scroll-bottom:hover,
.chat-scroll-bottom:focus-visible {
  border-color: rgba(241, 217, 154, 0.44);
  background:
    linear-gradient(135deg, rgba(241, 217, 154, 0.18), rgba(255, 255, 255, 0.060)),
    rgba(12, 12, 15, 0.90);
  transform: translateX(-50%) translateY(-1px);
}

.chat-bubble {
  width: fit-content;
  max-width: min(47rem, 100%);
  border-radius: 1rem;
  padding: 0.92rem 1rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(216, 184, 120, 0.020)),
    rgba(10, 10, 13, 0.68);
  border-color: rgba(216, 184, 120, 0.12);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.16);
}

.chat-bubble--user {
  border-color: rgba(216, 184, 120, 0.22);
  background:
    linear-gradient(135deg, rgba(216, 184, 120, 0.095), rgba(255, 255, 255, 0.030)),
    rgba(12, 12, 15, 0.70);
}

.chat-bubble--system,
.chat-bubble--assistant {
  width: min(47rem, 100%);
}

.chat-bubble__role {
  margin-bottom: 0.38rem;
  letter-spacing: 0.14em;
  color: var(--norma-faint);
}

.chat-bubble__body,
.chat-rich-text,
.chat-rich-text p,
.chat-bubble p:last-child {
  line-height: 1.72;
  color: rgba(244, 239, 228, 0.84);
}

.norma-rich-card,
.world-pulse-card,
.market-card,
.media-result-card {
  max-width: 100%;
  overflow: hidden;
  border: 1px solid rgba(216, 184, 120, 0.13);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 88% 4%, rgba(241, 217, 154, 0.065), transparent 12rem),
    rgba(255, 255, 255, 0.036);
}

.pulse-item,
.market-quote,
.media-tile,
.composer-attachment {
  border-radius: 0.82rem;
  border-color: rgba(216, 184, 120, 0.13);
  background: rgba(255, 255, 255, 0.034);
}

.pulse-item h4 {
  display: inline;
  margin-right: 0.25rem;
}

.pulse-item p {
  margin-top: 0.42rem;
}

.rich-actions--compact {
  margin-top: 0.5rem;
}

.micro-action,
.inline-preview__button,
.button,
.upload-button,
.composer-attachment__remove {
  border-radius: 999px;
}

.source-cites {
  display: inline-flex;
  gap: 0.16rem;
  margin-left: 0.24rem;
  transform: translateY(-0.06rem);
}

.source-cite {
  width: 0.98rem;
  height: 0.98rem;
  min-width: 0.98rem;
  font-size: 0.56rem;
  border-color: rgba(216, 184, 120, 0.26);
  background: rgba(216, 184, 120, 0.070);
  box-shadow: none;
}

.source-cite:hover,
.source-cite:focus-visible {
  transform: translateY(-0.5px);
}

.inline-preview {
  padding: clamp(0.75rem, 3vw, 1.2rem);
  background:
    radial-gradient(circle at 70% 12%, rgba(216, 184, 120, 0.13), transparent 20rem),
    rgba(2, 2, 4, 0.78);
}

.inline-preview__panel {
  width: min(64rem, 96vw);
  height: min(40rem, 88vh);
  border-radius: 1.15rem;
  background:
    radial-gradient(circle at 76% 0%, rgba(216, 184, 120, 0.11), transparent 19rem),
    linear-gradient(180deg, rgba(12, 12, 15, 0.98), rgba(5, 5, 7, 0.99));
}

.inline-preview__panel header {
  padding: 0.7rem 0.8rem;
}

.inline-preview__close {
  width: auto;
  min-width: 2.5rem;
  height: 1.9rem;
  padding-inline: 0.72rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.inline-preview__media {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(216, 184, 120, 0.055), transparent 21rem),
    #050609;
}

.inline-preview__image,
.inline-preview__video {
  background: transparent;
}

.inline-preview__text-wrap {
  position: relative;
  min-height: 0;
  height: 100%;
  padding: 1rem;
  background:
    radial-gradient(circle at 52% 8%, rgba(216, 184, 120, 0.07), transparent 18rem),
    #050609;
  overflow: auto;
}

.inline-preview__text {
  min-height: 100%;
  margin: 0;
  padding: 1rem;
  border: 1px solid rgba(216, 184, 120, 0.16);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(244, 239, 228, 0.88);
  font: 0.86rem/1.68 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.inline-preview__media-fallback {
  display: grid;
  width: min(28rem, calc(100% - 2rem));
  gap: 0.75rem;
  justify-items: start;
  border: 1px solid rgba(216, 184, 120, 0.18);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(216, 184, 120, 0.12), transparent 15rem),
    rgba(255, 255, 255, 0.04);
  padding: 1rem;
  color: rgba(244, 239, 228, 0.78);
}

.inline-preview__media-fallback[hidden] {
  display: none;
}

.inline-preview__media-fallback strong {
  color: rgba(244, 239, 228, 0.95);
  font-size: 1rem;
}

.inline-preview__media-fallback span {
  color: rgba(244, 239, 228, 0.62);
  font-size: 0.86rem;
  line-height: 1.65;
}

.live-input {
  position: sticky;
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  z-index: 10;
}

.live-input .chat-form__shell {
  border-radius: 1.2rem;
  border: 1px solid rgba(216, 184, 120, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.050), rgba(216, 184, 120, 0.026)),
    rgba(7, 8, 10, 0.88);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.26);
}

.live-input .chat-form__input {
  border: 0;
  background: transparent;
  box-shadow: none;
}

@media (prefers-color-scheme: light) {
  .console-body {
    --norma-bg: #f7f3ea;
    --norma-bg-2: #ebe5d8;
    --norma-surface: rgba(255, 255, 255, 0.72);
    --norma-surface-strong: rgba(255, 252, 246, 0.88);
    --norma-border: rgba(155, 112, 45, 0.18);
    --norma-border-strong: rgba(155, 112, 45, 0.32);
    --norma-gold: #a9772d;
    --norma-gold-soft: #c8963f;
    --norma-text: #241c12;
    --norma-muted: rgba(36, 28, 18, 0.58);
    --norma-faint: rgba(36, 28, 18, 0.34);
    background:
      radial-gradient(circle at 80% 8%, rgba(184, 142, 72, 0.14), transparent 22rem),
      linear-gradient(180deg, var(--norma-bg), var(--norma-bg-2));
  }

  .live-console .console-topbar,
  .live-console .console-status-grid article,
  .live-console .privilege-panel,
  .console-chat--system,
  .chat-form--system,
  .chat-bubble,
  .norma-rich-card,
  .world-pulse-card,
  .market-card,
  .media-result-card,
  .live-input .chat-form__shell {
    background:
      radial-gradient(circle at 86% 0%, rgba(184, 142, 72, 0.080), transparent 18rem),
      rgba(255, 255, 255, 0.74);
    color: var(--norma-text);
    box-shadow: 0 16px 46px rgba(89, 66, 30, 0.10);
  }

  .chat-bubble__body,
  .chat-rich-text,
  .chat-rich-text p,
  .chat-bubble p:last-child {
    color: rgba(36, 28, 18, 0.82);
  }

  .chat-bubble__role {
    color: rgba(36, 28, 18, 0.42);
  }

  .chat-scroll-bottom {
    color: var(--norma-text);
    border-color: rgba(155, 112, 45, 0.24);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(218, 192, 142, 0.20)),
      rgba(255, 252, 246, 0.86);
    box-shadow:
      0 18px 42px rgba(116, 84, 31, 0.15),
      0 0 0 1px rgba(255, 255, 255, 0.74) inset;
  }

  .chat-scroll-bottom:hover,
  .chat-scroll-bottom:focus-visible {
    border-color: rgba(155, 112, 45, 0.38);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(218, 192, 142, 0.26)),
      rgba(255, 252, 246, 0.96);
  }

  .pulse-item,
  .market-quote,
  .composer-attachment {
    background: rgba(255, 255, 255, 0.58);
  }

  .inline-preview {
    background:
      radial-gradient(circle at 70% 12%, rgba(184, 142, 72, 0.14), transparent 20rem),
      rgba(248, 244, 235, 0.78);
  }

  .inline-preview__panel {
    background:
      radial-gradient(circle at 76% 0%, rgba(184, 142, 72, 0.12), transparent 19rem),
      linear-gradient(180deg, rgba(255, 253, 248, 0.99), rgba(238, 233, 224, 0.99));
  }

  .inline-preview__media {
    background:
      radial-gradient(circle at 50% 45%, rgba(184, 142, 72, 0.070), transparent 21rem),
      #f7f3ea;
  }

  .system-body input,
  .system-body select,
  .system-body textarea,
  .system-body button {
    color-scheme: light;
  }
}

@media (max-width: 760px) {
  .live-console {
    width: 100%;
    padding: max(0.72rem, env(safe-area-inset-top)) max(0.72rem, env(safe-area-inset-right)) max(0.72rem, env(safe-area-inset-bottom)) max(0.72rem, env(safe-area-inset-left));
    gap: 0.62rem;
  }

  .live-console .console-topbar {
    border-radius: 1rem;
    padding: 0.7rem 0.78rem;
  }

  .live-console .privilege-panel {
    display: none;
  }

  .console-status-grid {
    display: none;
  }

  .live-chat {
    padding: 0.72rem;
  }

  .chat-scroll-bottom {
    bottom: calc(max(0.72rem, env(safe-area-inset-bottom)) + 5.9rem);
    min-height: 1.94rem;
    padding-inline: 0.68rem;
  }

  .chat-bubble {
    width: 100%;
    max-width: 100%;
    padding: 0.82rem 0.86rem;
    border-radius: 0.92rem;
  }

  .chat-bubble--user {
    width: fit-content;
    max-width: 92%;
  }

  .chat-bubble__body,
  .chat-rich-text,
  .chat-rich-text p,
  .chat-bubble p:last-child {
    font-size: 0.93rem;
    line-height: 1.62;
  }

  .norma-rich-card {
    padding: 0.78rem;
    border-radius: 0.92rem;
  }

  .source-cite {
    width: 0.92rem;
    height: 0.92rem;
    min-width: 0.92rem;
    font-size: 0.52rem;
  }

  .inline-preview__panel {
    width: 96vw;
    height: 82dvh;
  }

  .inline-preview__panel header span {
    max-width: 58vw;
  }

  .live-input .chat-form__input,
  .chat-form__input {
    font-size: 15px;
    line-height: 1.42;
  }
}

/* NORMA Web console final polish: responsive containment, source preview, media cards. */
html,
body,
.console-body {
  max-width: 100%;
  overflow-x: hidden;
}

.live-console,
.console-shell,
.console-chat--system,
.live-chat,
.chat-bubble,
.chat-bubble__body,
.chat-rich-text,
.norma-rich-card,
.media-result-card,
.market-card,
.world-pulse-card {
  min-width: 0;
}

.chat-bubble__body,
.chat-rich-text,
.chat-rich-text p,
.rich-card__summary,
.rich-card__notice,
.pulse-item p,
.market-quote,
.upload-file-card,
.source-cites,
.inline-preview__panel header span {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.chat-bubble__body table,
.chat-bubble__body pre,
.chat-rich-text pre,
.chat-rich-text code {
  max-width: 100%;
  white-space: pre-wrap;
}

.source-cites {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  margin-left: 0.34rem;
  vertical-align: middle;
}

.source-cite {
  width: 0.98rem;
  min-width: 0.98rem;
  height: 0.98rem;
  border-radius: 999px;
  padding: 0;
  font-size: 0.54rem;
  line-height: 1;
  color: var(--norma-gold-soft);
  background: rgba(216, 184, 120, 0.075);
  border: 1px solid rgba(216, 184, 120, 0.22);
}

.source-cite:hover,
.source-cite:focus-visible {
  transform: translateY(-1px);
  background: rgba(216, 184, 120, 0.15);
}

.media-grid,
.media-video-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 0.68rem;
  min-width: 0;
}

.media-tile {
  overflow: hidden;
  min-width: 0;
  border-radius: 0.88rem;
  border: 1px solid rgba(216, 184, 120, 0.16);
  background:
    radial-gradient(circle at 50% 0%, rgba(216, 184, 120, 0.08), transparent 14rem),
    rgba(6, 7, 9, 0.72);
}

.media-tile img,
.media-tile video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 24rem;
  object-fit: contain;
  background: #050609;
}

.media-tile--image {
  cursor: zoom-in;
}

.media-tile__preview {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0.72rem;
  background: transparent;
  cursor: zoom-in;
}

.media-tile__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-top: 0.42rem;
}

.media-tile__actions button {
  flex: 0 0 auto;
  min-height: 1.8rem;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(216, 184, 120, 0.17);
  color: rgba(241, 217, 154, 0.80);
  background: rgba(216, 184, 120, 0.07);
  font-size: 0.75rem;
  line-height: 1;
}

.media-tile__actions button:hover,
.media-tile__actions button:focus-visible {
  color: rgba(255, 246, 218, 0.96);
  border-color: rgba(241, 217, 154, 0.34);
  background: rgba(216, 184, 120, 0.13);
}

.composer-attachment--reference {
  border-color: rgba(241, 217, 154, 0.28);
  background:
    radial-gradient(circle at 12% 20%, rgba(241, 217, 154, 0.13), transparent 7rem),
    rgba(216, 184, 120, 0.065);
}

.media-tile--video {
  padding: 0.4rem;
}

.media-tile--video video {
  aspect-ratio: 16 / 9;
}

.media-tile--video button,
.media-task-card .micro-action,
.upload-file-card .micro-action,
.upload-file-card__link {
  min-height: 1.9rem;
  border-radius: 999px;
}

.inline-preview__panel {
  overflow: hidden;
}

.inline-preview__panel header {
  min-height: 3.35rem;
  padding: 0.62rem 0.72rem 0.62rem 0.88rem;
}

.inline-preview__close {
  width: 2rem;
  min-width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 999px;
  font-size: 1rem;
  line-height: 1;
}

.inline-preview__browser-wrap {
  position: relative;
  min-height: 0;
  height: 100%;
  background:
    radial-gradient(circle at 50% 18%, rgba(216, 184, 120, 0.06), transparent 18rem),
    #050609;
}

.inline-preview__browser {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #050609;
  color-scheme: dark;
}

.inline-preview__source-card--compact {
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.5rem 0.56rem;
  border-radius: 0.86rem;
  backdrop-filter: blur(20px);
}

.inline-preview__source-card--compact span {
  color: var(--norma-muted);
  font-size: 0.78rem;
}

.inline-preview__button {
  min-height: 1.82rem;
  padding: 0.4rem 0.68rem;
  border-radius: 999px;
  font-size: 0.76rem;
}

.composer-attachment__thumb--video {
  object-fit: cover;
}

.composer-attachment__icon {
  font-size: 0.58rem;
  letter-spacing: 0;
  color: var(--norma-gold-soft);
}

.chat-form__shell.is-drag-target,
.console-chat--system.is-drag-target {
  border-color: rgba(241, 217, 154, 0.54);
  box-shadow:
    0 0 0 1px rgba(241, 217, 154, 0.18),
    0 22px 70px rgba(0, 0, 0, 0.24);
}

@media (prefers-color-scheme: light) {
  .media-tile,
  .media-tile img,
  .media-tile video,
  .inline-preview__browser-wrap,
  .inline-preview__browser {
    background:
      radial-gradient(circle at 50% 0%, rgba(184, 142, 72, 0.08), transparent 14rem),
      #f7f3ea;
    color-scheme: light;
  }

  .inline-preview__media-fallback {
    border-color: rgba(184, 142, 72, 0.20);
    background:
      radial-gradient(circle at 0% 0%, rgba(184, 142, 72, 0.10), transparent 15rem),
      rgba(255, 255, 255, 0.64);
    color: rgba(42, 35, 26, 0.76);
  }

  .inline-preview__media-fallback strong {
    color: rgba(42, 35, 26, 0.92);
  }

  .inline-preview__media-fallback span {
    color: rgba(42, 35, 26, 0.58);
  }

  .source-cite {
    color: var(--norma-gold);
    background: rgba(167, 119, 45, 0.08);
    border-color: rgba(155, 112, 45, 0.20);
  }
}

@media (max-width: 760px) {
  .live-console {
    overflow-x: hidden;
  }

  .live-chat {
    gap: 0.74rem;
  }

  .chat-bubble {
    overflow: hidden;
  }

  .chat-bubble--assistant,
  .chat-bubble--system {
    width: 100%;
  }

  .source-cites {
    margin-left: 0.24rem;
    gap: 0.14rem;
  }

  .source-cite {
    width: 0.78rem;
    min-width: 0.78rem;
    height: 0.78rem;
    font-size: 0.46rem;
  }

  .media-grid,
  .media-video-list {
    grid-template-columns: 1fr;
    gap: 0.54rem;
  }

  .media-tile img,
  .media-tile video {
    max-height: 18rem;
  }

  .inline-preview__panel {
    width: calc(100vw - 1rem);
    height: 84dvh;
    border-radius: 1rem;
  }

  .inline-preview__panel header {
    min-height: 3.05rem;
  }

  .inline-preview__source-card--compact {
    align-items: flex-start;
    flex-direction: column;
  }

  .composer-attachments {
    gap: 0.46rem;
  }

  .composer-attachment {
    max-width: min(16rem, 78vw);
  }
}

/* ChatGPT-inspired product logic pass: entry first, context visible, mode control near composer. */
.legacy-home .home-command-card {
  width: min(100%, 38rem);
  display: grid;
  gap: 0.82rem;
  margin-top: 1.65rem;
  border: 1px solid rgba(216, 184, 120, 0.18);
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at 12% 0%, rgba(241, 217, 154, 0.12), transparent 11rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.060), rgba(255, 255, 255, 0.018)),
    rgba(5, 7, 11, 0.62);
  padding: 0.86rem;
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.legacy-home .home-command-card__head,
.workspace-brief__sources,
.composer-toolbar,
.composer-mode-tabs,
.composer-toolbar__right,
.home-command-card__chips {
  display: flex;
  align-items: center;
  min-width: 0;
}

.legacy-home .home-command-card__head {
  justify-content: space-between;
  gap: 1rem;
  padding-inline: 0.18rem;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.legacy-home .home-command-card__head strong {
  color: rgba(241, 217, 154, 0.84);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.legacy-home .home-command-card__input {
  display: block;
  min-height: 3.2rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.045);
  padding: 0.92rem 1rem;
  color: rgba(255, 250, 240, 0.86);
  text-decoration: none;
  line-height: 1.45;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.legacy-home .home-command-card__input:hover,
.legacy-home .home-command-card__input:focus-visible {
  border-color: rgba(241, 217, 154, 0.32);
  background: rgba(255, 255, 255, 0.065);
  transform: translateY(-1px);
}

.legacy-home .home-command-card__chips {
  flex-wrap: wrap;
  gap: 0.46rem;
}

.legacy-home .home-command-card__chips a {
  display: inline-grid;
  min-height: 2rem;
  place-items: center;
  border: 1px solid rgba(216, 184, 120, 0.16);
  border-radius: 999px;
  background: rgba(216, 184, 120, 0.055);
  padding: 0 0.68rem;
  color: rgba(241, 217, 154, 0.78);
  font-size: 0.78rem;
  text-decoration: none;
}

.live-console {
  grid-template-rows: auto auto auto auto minmax(22rem, 1fr) auto;
}

.live-console .privilege-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.88rem;
  min-height: 0;
  padding: 0.82rem;
}

.live-console .privilege-panel::before,
.live-console .privilege-panel::after,
.live-console .privilege-panel__rank::before,
.live-console .privilege-panel__rank::after,
.live-console .privilege-panel__rank span::before,
.live-console .privilege-panel__rank span::after,
.live-console .privilege-panel__rank strong::before,
.live-console .privilege-panel__rank strong::after {
  display: none;
}

.live-console .privilege-panel__rank {
  width: 3.8rem;
  height: 3.8rem;
  min-height: 0;
  border-radius: 1rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(241, 217, 154, 0.18), transparent 80%),
    rgba(216, 184, 120, 0.060);
}

.live-console .privilege-panel__rank span {
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.live-console .privilege-panel__rank strong {
  font-size: 1.72rem;
}

.live-console .privilege-panel__body {
  min-width: 0;
}

.live-console .privilege-panel__body h2 {
  margin: 0.1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.live-console .privilege-panel__body p:not(.system-kicker) {
  margin: 0.25rem 0 0;
  max-width: 54rem;
  color: var(--norma-muted);
  line-height: 1.5;
}

.live-console .privilege-panel__body ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.live-console .privilege-panel__body li {
  min-height: 1.55rem;
  border: 1px solid rgba(216, 184, 120, 0.14);
  border-radius: 999px;
  background: rgba(216, 184, 120, 0.045);
  padding: 0.23rem 0.52rem;
  color: rgba(241, 217, 154, 0.72);
  font-size: 0.72rem;
}

.live-console .privilege-panel__note {
  max-width: 14rem;
  margin: 0;
  color: var(--norma-faint);
  font-size: 0.76rem;
  line-height: 1.45;
}

.workspace-brief {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.72rem;
  border: 1px solid var(--norma-border);
  border-radius: 1.18rem;
  background:
    radial-gradient(circle at 4% 0%, rgba(241, 217, 154, 0.080), transparent 18rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.014)),
    var(--norma-surface);
  padding: 0.9rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.17);
  backdrop-filter: blur(18px);
}

.workspace-brief__copy h2 {
  margin: 0.05rem 0 0;
  color: var(--norma-text);
  font-size: clamp(1.2rem, 2.2vw, 1.72rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.workspace-brief__copy p:last-child {
  margin: 0.36rem 0 0;
  color: var(--norma-muted);
  line-height: 1.55;
}

.workspace-brief__sources {
  flex-wrap: wrap;
  gap: 0.42rem;
}

.workspace-chip,
.workspace-source {
  display: inline-flex;
  min-height: 1.86rem;
  align-items: center;
  gap: 0.34rem;
  border: 1px solid rgba(216, 184, 120, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.034);
  padding: 0 0.62rem;
}

.workspace-chip small {
  color: var(--norma-faint);
  font-size: 0.68rem;
}

.workspace-chip strong,
.workspace-source {
  color: rgba(241, 217, 154, 0.78);
  font-size: 0.76rem;
}

.workspace-source--muted {
  color: var(--norma-faint);
}

.workspace-brief__prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.44rem;
}

.workspace-prompt,
.composer-mode-tab,
.composer-toggle {
  min-height: 2rem;
  border: 1px solid rgba(216, 184, 120, 0.15);
  border-radius: 999px;
  background: rgba(216, 184, 120, 0.052);
  color: rgba(241, 217, 154, 0.78);
  padding: 0 0.68rem;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    opacity 160ms ease;
}

.workspace-prompt:hover,
.workspace-prompt:focus-visible,
.composer-mode-tab:hover,
.composer-mode-tab:focus-visible,
.composer-toggle:hover,
.composer-toggle:focus-visible {
  border-color: rgba(241, 217, 154, 0.32);
  background: rgba(216, 184, 120, 0.11);
  color: rgba(255, 246, 218, 0.95);
}

.composer-toolbar {
  justify-content: space-between;
  gap: 0.62rem;
  margin-bottom: 0.58rem;
}

.composer-mode-tabs {
  flex-wrap: wrap;
  gap: 0.36rem;
}

.composer-toolbar__right {
  flex: 0 0 auto;
  gap: 0.44rem;
}

.composer-mode-tab.is-active,
.composer-toggle.is-active {
  border-color: rgba(241, 217, 154, 0.40);
  background:
    linear-gradient(135deg, rgba(241, 217, 154, 0.18), rgba(255, 255, 255, 0.045)),
    rgba(216, 184, 120, 0.12);
  color: rgba(255, 246, 218, 0.96);
}

.composer-mode-tab:disabled,
.composer-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}

.composer-status {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  color: var(--norma-faint);
  font-size: 0.76rem;
  white-space: nowrap;
}

.chat-form.is-streaming .chat-form__submit {
  border-color: rgba(255, 176, 130, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 176, 130, 0.16), rgba(255, 255, 255, 0.040)),
    rgba(7, 8, 10, 0.88);
}

.live-input .chat-form__input {
  color: rgba(244, 239, 228, 0.92);
}

.live-input .chat-form__input::placeholder {
  color: rgba(244, 239, 228, 0.42);
}

@media (prefers-color-scheme: light) {
  .workspace-brief,
  .workspace-chip,
  .workspace-source {
    background: rgba(255, 255, 255, 0.66);
  }

  .workspace-chip strong,
  .workspace-source,
  .composer-mode-tab,
  .composer-toggle,
  .workspace-prompt {
    color: var(--norma-gold);
  }

  .composer-mode-tab.is-active,
  .composer-toggle.is-active {
    color: #6f4c16;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(218, 192, 142, 0.26)),
      rgba(255, 252, 246, 0.86);
  }

  .live-input .chat-form__input {
    color: rgba(36, 28, 18, 0.88);
  }

  .live-input .chat-form__input::placeholder {
    color: rgba(36, 28, 18, 0.40);
  }

  .live-input .upload-button--inline {
    color: rgba(155, 112, 45, 0.72);
  }
}

@media (max-width: 860px) {
  .live-console {
    grid-template-rows: auto auto minmax(20rem, 1fr) auto;
  }

  .workspace-brief {
    gap: 0.58rem;
    padding: 0.78rem;
  }

  .workspace-brief__prompts {
    flex-wrap: nowrap;
    margin-inline: -0.18rem;
    overflow-x: auto;
    padding: 0.04rem 0.18rem 0.22rem;
    scrollbar-width: none;
  }

  .workspace-prompt {
    flex: 0 0 auto;
    max-width: 72vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .composer-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .composer-mode-tabs {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.12rem;
    scrollbar-width: none;
  }

  .composer-mode-tab {
    flex: 0 0 auto;
  }

  .composer-toolbar__right {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 760px) {
  .legacy-home .home-command-card {
    margin-top: 1.2rem;
    padding: 0.72rem;
    border-radius: 1rem;
  }

  .legacy-home .home-command-card__input {
    min-height: 3rem;
    border-radius: 0.86rem;
    font-size: 0.92rem;
  }

  .live-console .privilege-panel {
    display: none;
  }

  .workspace-brief__sources {
    gap: 0.34rem;
  }

  .workspace-chip,
  .workspace-source {
    min-height: 1.72rem;
    padding-inline: 0.52rem;
  }

  .composer-status {
    max-width: 52vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Device QA fixes: keep the launch wordmark inside narrow phones and treat
   short iPhone landscape viewports as a mobile console, not a desktop rail. */
@media (max-width: 680px) {
  .legacy-home .hero-title {
    max-width: 100%;
    font-size: 4rem;
    line-height: 0.92;
    letter-spacing: 0;
  }
}

@media (max-width: 360px) {
  .legacy-home .hero-title {
    font-size: 3.5rem;
  }
}

@media (orientation: landscape) and (max-height: 500px) and (max-width: 960px) {
  .console-app-shell {
    display: block;
    height: 100dvh;
    overflow: hidden;
  }

  .console-primary-nav {
    display: none;
  }

  .console-app-shell > .live-console {
    min-height: 0;
    height: 100dvh;
    gap: 0.42rem;
    overflow: hidden;
    padding:
      max(0.42rem, env(safe-area-inset-top))
      max(0.58rem, env(safe-area-inset-right))
      calc(3.75rem + env(safe-area-inset-bottom))
      max(0.58rem, env(safe-area-inset-left));
  }

  .live-console .console-topbar {
    border-radius: 6px;
    padding: 0.48rem 0.64rem;
  }

  .live-console .console-topbar h1 {
    font-size: 1.45rem;
  }

  .live-console .system-kicker {
    margin-bottom: 0.08rem;
    font-size: 0.58rem;
  }

  .live-console .console-actions {
    display: none;
  }

  .live-console .console-mobile-menu {
    display: block;
  }

  .console-identity-overview,
  .workspace-brief {
    display: none;
  }

  .console-view--chat.is-active {
    min-height: 0;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 0.38rem;
    overflow: hidden;
  }

  .console-view--chat.is-active .live-chat {
    min-height: 0;
    height: auto;
    overflow-y: auto;
  }

  .console-view--chat.is-active .live-input {
    position: static;
    margin-top: 0;
  }

  .console-module {
    height: 100%;
    max-height: 100%;
    overflow-y: auto;
    padding-bottom: 0.7rem;
  }

  .console-mobile-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: calc(3.2rem + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(216, 184, 120, 0.18);
    background: rgba(7, 8, 9, 0.94);
    padding: 0.22rem max(0.35rem, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(0.35rem, env(safe-area-inset-left));
    backdrop-filter: blur(20px);
  }

  .console-mobile-nav button {
    min-width: 0;
    min-height: 2.7rem;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--norma-faint);
    font: inherit;
    font-size: 0.68rem;
  }

  .console-mobile-nav button.is-active {
    background: rgba(216, 184, 120, 0.08);
    color: var(--norma-gold-soft);
  }
}

/* Keep the mobile document pinned to the viewport in both orientations.
   Horizontal strips may still scroll inside their own component boundaries. */
@media (max-width: 960px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overscroll-behavior-x: none;
  }

  .system-body,
  .system-body > main,
  .legacy-home,
  .legacy-home .hero-shell,
  .legacy-home .hero-shell__content,
  .system-auth,
  .console-app-shell,
  .console-app-shell > .live-console,
  .console-view,
  .console-module {
    max-width: 100%;
    min-width: 0;
  }

  .legacy-home,
  .system-auth,
  .console-app-shell,
  .console-app-shell > .live-console,
  .console-view,
  .console-module {
    overflow-x: hidden;
  }

  .console-mobile-nav {
    right: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
  }
}

@supports (overflow: clip) {
  @media (max-width: 960px) {
    html,
    body,
    .legacy-home,
    .system-auth,
    .console-app-shell,
    .console-app-shell > .live-console,
    .console-view,
    .console-module {
      overflow-x: clip;
    }
  }
}

/* Mobile interaction lock: keep form focus at 1x and make the identity
   disclosure render real content instead of opening an empty shell. */
@media (max-width: 960px) {
  html,
  body {
    touch-action: pan-x pan-y;
  }

  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}

@media (max-width: 760px) {
  .console-identity-overview[open] .console-status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.42rem;
    margin: 0.55rem;
  }

  .console-identity-overview[open] .privilege-panel {
    display: grid;
    grid-template-columns: 3.7rem minmax(0, 1fr);
    gap: 0.68rem;
    margin: 0.55rem;
    padding: 0.62rem;
  }

  .console-identity-overview[open] .privilege-panel__rank {
    width: 3.7rem;
    height: 3.7rem;
    min-height: 3.7rem;
    border-radius: 6px;
  }

  .console-identity-overview[open] .privilege-panel__rank strong {
    font-size: 2rem;
  }

  .console-identity-overview[open] .privilege-panel__body h2 {
    font-size: 0.98rem;
  }

  .console-identity-overview[open] .privilege-panel__body p:not(.system-kicker) {
    font-size: 0.78rem;
    line-height: 1.5;
  }
}

/* Projects and scoped conversations */
.console-view--chat.is-active {
  position: relative;
  grid-template-columns: 13.5rem minmax(0, 1fr);
  grid-template-rows: auto auto auto minmax(12rem, 1fr) auto;
  column-gap: 0.8rem;
}

.project-rail {
  grid-column: 1;
  grid-row: 1 / -1;
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto minmax(8rem, 1.2fr) minmax(7rem, 1fr) auto;
  overflow: hidden;
  border-right: 1px solid rgba(216, 184, 120, 0.13);
  padding: 0.4rem 0.72rem 0.35rem 0;
}

.project-rail__header,
.project-rail__section-title,
.conversation-context-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.project-rail__header {
  min-height: 3.3rem;
  padding: 0.15rem 0.28rem 0.7rem;
}

.project-rail__header h2 {
  margin: 0;
  color: var(--norma-text);
  font-size: 1.05rem;
  font-weight: 580;
}

.project-rail__header button,
.project-rail__section-title button,
.conversation-context-bar__new {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  place-items: center;
  border: 1px solid rgba(216, 184, 120, 0.18);
  border-radius: 5px;
  background: rgba(216, 184, 120, 0.055);
  color: var(--norma-gold-soft);
  font: inherit;
  font-size: 1.15rem;
  cursor: pointer;
}

.project-rail__header button:hover,
.project-rail__section-title button:hover,
.conversation-context-bar__new:hover {
  border-color: rgba(241, 217, 154, 0.36);
  background: rgba(216, 184, 120, 0.11);
}

.project-rail__header button:disabled,
.project-rail__section-title button:disabled {
  cursor: not-allowed;
  opacity: 0.36;
}

.project-rail__section {
  display: grid;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  border-top: 1px solid rgba(216, 184, 120, 0.09);
  padding: 0.66rem 0.12rem 0.5rem;
}

.project-rail__section-title {
  min-height: 2rem;
  padding: 0 0.28rem 0.42rem;
}

.project-rail__section-title h3 {
  margin: 0;
  color: var(--norma-faint);
  font-size: 0.67rem;
  font-weight: 600;
}

.project-rail__section-title span {
  color: var(--norma-faint);
  font-size: 0.62rem;
}

.project-rail__section-title button {
  width: 1.65rem;
  height: 1.65rem;
  flex-basis: 1.65rem;
  font-size: 0.95rem;
}

.conversation-list,
.project-list {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  gap: 0.16rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.conversation-list button,
.project-list button {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 2.65rem;
  gap: 0.16rem;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  padding: 0.48rem 0.54rem;
  color: var(--norma-muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.conversation-list button:hover,
.project-list button:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--norma-text);
}

.conversation-list button.is-active,
.project-list button.is-active {
  border-color: rgba(216, 184, 120, 0.18);
  background: rgba(216, 184, 120, 0.07);
  color: var(--norma-gold-soft);
}

.conversation-list strong,
.project-list strong {
  min-width: 0;
  overflow: hidden;
  font-size: 0.76rem;
  font-weight: 560;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-list small,
.project-list small {
  min-width: 0;
  overflow: hidden;
  color: var(--norma-faint);
  font-size: 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-rail__footer {
  border-top: 1px solid rgba(216, 184, 120, 0.1);
  padding: 0.65rem 0.36rem 0.1rem;
  color: var(--norma-faint);
  font-size: 0.62rem;
  line-height: 1.45;
}

.conversation-context-bar {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  min-height: 2.6rem;
  border-bottom: 1px solid rgba(216, 184, 120, 0.11);
  padding: 0.15rem 0.18rem 0.48rem;
}

.conversation-context-bar > div {
  display: grid;
  min-width: 0;
  flex: 1 1 auto;
  gap: 0.08rem;
}

.conversation-context-bar strong,
.conversation-context-bar span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-context-bar strong {
  color: var(--norma-text);
  font-size: 0.8rem;
  font-weight: 590;
}

.conversation-context-bar span {
  color: var(--norma-faint);
  font-size: 0.62rem;
}

.conversation-context-bar__menu {
  display: none;
  min-height: 2rem;
  border: 1px solid rgba(216, 184, 120, 0.17);
  border-radius: 5px;
  background: rgba(216, 184, 120, 0.05);
  padding: 0 0.58rem;
  color: var(--norma-gold-soft);
  font: inherit;
  font-size: 0.68rem;
}

.console-view--chat.is-active > .console-identity-overview { grid-column: 2; grid-row: 2; }
.console-view--chat.is-active > .workspace-brief { grid-column: 2; grid-row: 3; }
.console-view--chat.is-active > .live-chat { grid-column: 2; grid-row: 4; }
.console-view--chat.is-active > .chat-scroll-bottom { grid-column: 2; }
.console-view--chat.is-active > .live-input { grid-column: 2; grid-row: 5; }
.project-rail-backdrop { display: none; }

/* iPad landscape and other compact desktop canvases need the conversation
   itself more than the optional workspace summary. */
@media (min-width: 961px) and (max-width: 1120px) {
  .console-view--chat.is-active {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
  }

  .console-view--chat.is-active > .workspace-brief {
    display: none;
  }

  .console-view--chat.is-active > .live-chat {
    grid-row: 3;
  }

  .console-view--chat.is-active > .live-input {
    grid-row: 4;
  }
}

@media (prefers-color-scheme: light) {
  .project-rail {
    border-right-color: rgba(151, 112, 51, 0.15);
  }

  .conversation-list button:hover,
  .project-list button:hover {
    background: rgba(151, 112, 51, 0.045);
  }
}

@media (max-width: 960px) {
  .console-view--chat.is-active {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto minmax(12rem, 1fr) auto;
  }

  .project-rail {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 72;
    width: min(20rem, 86vw);
    max-width: 100%;
    grid-template-rows: auto minmax(9rem, 1.2fr) minmax(8rem, 1fr) auto;
    border-right-color: rgba(216, 184, 120, 0.2);
    background: rgba(6, 7, 8, 0.985);
    padding: max(0.9rem, env(safe-area-inset-top)) 0.8rem max(0.7rem, env(safe-area-inset-bottom));
    transform: translateX(-104%);
    transition: transform 180ms ease;
    box-shadow: 1rem 0 2.5rem rgba(0, 0, 0, 0.34);
  }

  body.is-project-rail-open .project-rail {
    transform: translateX(0);
  }

  body.is-project-rail-open .project-rail-backdrop {
    position: fixed;
    inset: 0;
    z-index: 71;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(0, 0, 0, 0.48);
  }

  .conversation-context-bar,
  .console-view--chat.is-active > .console-identity-overview,
  .console-view--chat.is-active > .workspace-brief,
  .console-view--chat.is-active > .live-chat,
  .console-view--chat.is-active > .live-input {
    grid-column: 1;
  }

  .conversation-context-bar__menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (orientation: landscape) and (max-height: 500px) and (max-width: 960px) {
  .console-view--chat.is-active {
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .conversation-context-bar { grid-row: 1; }
  .console-view--chat.is-active > .console-identity-overview,
  .console-view--chat.is-active > .workspace-brief { display: none; }
  .console-view--chat.is-active > .live-chat { grid-row: 2; }
  .console-view--chat.is-active > .live-input { grid-row: 3; }
}

@media (max-width: 960px) {
  .console-app-shell {
    display: block;
    min-height: 100dvh;
    height: 100dvh;
    overflow: hidden;
  }

  .console-app-shell > .live-console {
    display: grid;
    min-height: 0;
    height: 100dvh;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
    padding-bottom: calc(4.4rem + env(safe-area-inset-bottom));
  }

  .console-view--chat.is-active {
    min-height: 0;
    height: 100%;
    grid-template-rows: auto auto auto minmax(0, 1fr) auto;
    overflow: hidden;
  }

  .console-view--chat.is-active > .live-chat {
    min-height: 0;
    height: auto;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .console-view--chat.is-active > .live-input {
    position: static;
    min-width: 0;
    margin-top: 0;
  }

  .console-module.is-active {
    min-height: 0;
    height: 100%;
    overflow-y: auto;
  }
}

@media (max-width: 620px) {
  .console-view--chat.is-active > .workspace-brief {
    display: none;
  }

  .console-view--chat.is-active {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
  }

  .console-view--chat.is-active > .live-chat {
    grid-row: 3;
  }

  .console-view--chat.is-active > .live-input {
    grid-row: 4;
  }

  .composer-toolbar {
    align-items: center;
    flex-direction: row;
  }

  .composer-mode-tabs {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
  }

  .composer-toolbar__right {
    width: auto;
    flex: 0 0 auto;
  }

  .composer-status {
    display: none;
  }
}

@media (orientation: landscape) and (max-height: 500px) and (max-width: 960px) {
  .console-app-shell > .live-console {
    padding-bottom: calc(3.45rem + env(safe-area-inset-bottom));
  }

  .console-view--chat.is-active {
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .conversation-context-bar { grid-row: 1; }
  .console-view--chat.is-active > .console-identity-overview,
  .console-view--chat.is-active > .workspace-brief { display: none; }
  .console-view--chat.is-active > .live-chat { grid-row: 2; }
  .console-view--chat.is-active > .live-input { grid-row: 3; }

  .composer-toolbar {
    align-items: center;
    flex-direction: row;
    gap: 0.38rem;
    margin-bottom: 0.34rem;
  }

  .composer-mode-tabs {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .composer-toolbar__right {
    width: auto;
    flex: 0 0 auto;
  }

  .composer-status {
    display: none;
  }

  .composer-mode-tab,
  .composer-toggle {
    min-height: 1.8rem;
    padding-inline: 0.55rem;
    font-size: 0.72rem;
  }

  .live-input .chat-form__input {
    min-height: 3rem;
    padding-block: 0.65rem;
  }
}

/* Minimal conversation surface: keep identity visible without competing with chat. */
body[data-console-route="chat"] {
  background: light-dark(#ffffff, #101010);
}

body[data-console-route="chat"] .console-app-shell > .live-console {
  grid-template-rows: minmax(0, 1fr);
  background: transparent;
}

body[data-console-route="chat"] .console-topbar,
.console-view--chat.is-active > .console-identity-overview,
.console-view--chat.is-active > .workspace-brief {
  display: none;
}

.console-view--chat.is-active {
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0;
}

.console-view--chat.is-active > .conversation-context-bar {
  grid-row: 1;
}

.console-view--chat.is-active > .live-chat {
  grid-row: 2;
}

.console-view--chat.is-active > .live-input {
  grid-row: 3;
}

.conversation-context-bar {
  width: min(100%, 52rem);
  min-height: 3.25rem;
  justify-self: center;
  border-bottom: 1px solid light-dark(rgba(25, 25, 25, 0.10), rgba(255, 255, 255, 0.08));
  padding: 0.35rem 0.25rem;
}

.conversation-context-bar strong {
  color: light-dark(#171717, #f2f2f2);
  font-size: 0.84rem;
  font-weight: 600;
}

.conversation-context-bar span {
  color: light-dark(rgba(23, 23, 23, 0.48), rgba(242, 242, 242, 0.46));
  font-size: 0.65rem;
}

.conversation-context-bar__menu,
.conversation-context-bar__new,
.conversation-tier-badge {
  display: inline-flex;
  min-width: 2.1rem;
  min-height: 2.1rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: light-dark(#333333, #d7d7d7);
  font: inherit;
  font-size: 0.7rem;
  cursor: pointer;
}

.conversation-context-bar__menu:hover,
.conversation-context-bar__new:hover,
.conversation-tier-badge:hover {
  background: light-dark(rgba(0, 0, 0, 0.055), rgba(255, 255, 255, 0.075));
}

.conversation-tier-badge {
  min-width: 2.35rem;
  min-height: 1.75rem;
  border: 1px solid rgba(216, 184, 120, 0.30);
  background: rgba(216, 184, 120, 0.09);
  color: light-dark(#86611f, #e2c47d);
  font-size: 0.68rem;
  font-weight: 700;
}

.live-chat {
  width: min(100%, 52rem);
  justify-self: center;
  gap: 0.4rem;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  padding: 1.1rem 0.8rem 1.6rem;
  scrollbar-gutter: auto;
}

.live-chat > .chat-bubble {
  border: 0;
  box-shadow: none;
}

.live-chat > .chat-bubble--system,
.live-chat > .chat-bubble--assistant {
  width: 100%;
  max-width: 100%;
  border-radius: 0;
  background: transparent;
  padding: 0.78rem 0.25rem;
}

.live-chat > .chat-bubble--user {
  width: fit-content;
  max-width: min(86%, 38rem);
  border-radius: 1.15rem;
  background: light-dark(#f1f1f1, #272727);
  padding: 0.68rem 0.88rem;
}

.chat-bubble--user .chat-bubble__role {
  display: none;
}

.chat-bubble__role {
  margin-bottom: 0.3rem;
  color: light-dark(rgba(23, 23, 23, 0.42), rgba(242, 242, 242, 0.42));
  font-size: 0.67rem;
  font-weight: 650;
  letter-spacing: 0;
}

.chat-bubble__body,
.chat-rich-text,
.chat-rich-text p,
.chat-bubble p:last-child {
  color: light-dark(#252525, #e8e8e8);
  font-size: 0.96rem;
  line-height: 1.68;
}

.norma-rich-card,
.world-pulse-card,
.market-card,
.media-result-card {
  border-radius: 8px;
  background: light-dark(#f7f7f7, #1b1b1b);
  box-shadow: none;
}

.live-input {
  width: min(100%, 52rem);
  justify-self: center;
  padding: 0.35rem 0.7rem max(0.6rem, env(safe-area-inset-bottom));
}

.chat-form--system {
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

.composer-toolbar {
  position: relative;
  min-height: 1.8rem;
  justify-content: flex-start;
  margin: 0 0.35rem 0.32rem;
}

.composer-mode-picker {
  position: relative;
}

.composer-mode-picker > summary {
  display: inline-flex;
  min-height: 1.75rem;
  align-items: center;
  gap: 0.32rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 0 0.55rem;
  color: light-dark(#4a4a4a, #c8c8c8);
  cursor: pointer;
  list-style: none;
  font-size: 0.72rem;
}

.composer-mode-picker > summary::-webkit-details-marker {
  display: none;
}

.composer-mode-picker > summary::after {
  content: "⌃";
  color: light-dark(rgba(23, 23, 23, 0.38), rgba(242, 242, 242, 0.38));
  font-size: 0.65rem;
}

.composer-mode-picker > summary small {
  color: light-dark(rgba(23, 23, 23, 0.38), rgba(242, 242, 242, 0.38));
  font-size: 0.64rem;
}

.composer-mode-picker__panel {
  position: absolute;
  bottom: calc(100% + 0.4rem);
  left: 0;
  z-index: 90;
  display: grid;
  width: min(16rem, calc(100vw - 2rem));
  gap: 0.35rem;
  border: 1px solid light-dark(rgba(0, 0, 0, 0.10), rgba(255, 255, 255, 0.10));
  border-radius: 8px;
  background: light-dark(#ffffff, #242424);
  padding: 0.45rem;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22);
}

.composer-mode-picker:not([open]) .composer-mode-picker__panel {
  display: none;
}

/* The panel anchors to .composer-toolbar so it never overflows the chat column. */
.composer-skill-picker {
  position: static;
}

.composer-skill-picker > summary {
  display: inline-flex;
  min-height: 1.75rem;
  align-items: center;
  gap: 0.32rem;
  border: 0;
  border-radius: 999px;
  padding: 0 0.55rem;
  color: light-dark(#4a4a4a, #c8c8c8);
  cursor: pointer;
  list-style: none;
  font-size: 0.72rem;
}

.composer-skill-picker > summary::-webkit-details-marker {
  display: none;
}

.composer-skill-picker > summary > img {
  width: 0.78rem;
  height: 0.78rem;
  opacity: 0.64;
}

.composer-skill-picker > summary small {
  color: light-dark(rgba(23, 23, 23, 0.42), rgba(242, 242, 242, 0.44));
  font-size: 0.64rem;
}

.composer-skill-picker__panel {
  position: absolute;
  bottom: calc(100% + 0.4rem);
  left: 0;
  z-index: 92;
  width: min(34rem, 100%);
  max-height: min(36rem, calc(100dvh - 8rem));
  overflow: auto;
  border: 1px solid light-dark(rgba(0, 0, 0, 0.10), rgba(255, 255, 255, 0.10));
  border-radius: 10px;
  background: light-dark(#ffffff, #242424);
  padding: 0.7rem;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.24);
}

.composer-skill-picker:not([open]) .composer-skill-picker__panel {
  display: none;
}

.composer-skill-picker__head,
.composer-attachment-capabilities > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.composer-skill-picker__head span,
.composer-attachment-capabilities > header {
  min-width: 0;
}

.composer-skill-picker__head strong,
.composer-skill-picker__head small,
.composer-attachment-capabilities header strong,
.composer-attachment-capabilities header small {
  display: block;
}

.composer-skill-picker__head strong,
.composer-attachment-capabilities header strong {
  color: light-dark(#202020, #f0f0f0);
  font-size: 0.78rem;
}

.composer-skill-picker__head small,
.composer-attachment-capabilities header small,
.composer-skill-picker__head em {
  margin-top: 0.14rem;
  color: light-dark(rgba(23, 23, 23, 0.52), rgba(242, 242, 242, 0.54));
  font-size: 0.66rem;
  font-style: normal;
}

.composer-skill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  margin-top: 0.62rem;
}

.composer-skill-card {
  display: grid;
  min-width: 0;
  gap: 0.3rem;
  border: 1px solid light-dark(rgba(0, 0, 0, 0.07), rgba(255, 255, 255, 0.08));
  border-radius: 8px;
  background: light-dark(#fafafa, #2b2b2b);
  padding: 0.62rem;
  color: inherit;
  text-align: left;
}

.composer-skill-card:not(:disabled):hover,
.composer-skill-card:not(:disabled):focus-visible {
  border-color: rgba(183, 142, 62, 0.42);
  background: rgba(216, 184, 120, 0.09);
}

.composer-skill-card:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.composer-skill-card > span,
.composer-attachment-capabilities li > span,
.attachment-analysis__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.composer-skill-card strong,
.composer-attachment-capabilities li strong {
  color: light-dark(#292929, #e9e9e9);
  font-size: 0.74rem;
}

.composer-skill-card em,
.composer-attachment-capabilities li em,
.attachment-analysis__title em {
  border-radius: 999px;
  background: light-dark(rgba(0, 0, 0, 0.05), rgba(255, 255, 255, 0.07));
  padding: 0.12rem 0.34rem;
  color: light-dark(#626262, #bdbdbd);
  font-size: 0.6rem;
  font-style: normal;
  white-space: nowrap;
}

.composer-skill-card[data-skill-status="ready"] em,
.composer-attachment-capabilities li[data-capability-status="ready"] em,
.attachment-analysis--understood .attachment-analysis__title em,
.attachment-analysis--extracted .attachment-analysis__title em {
  background: rgba(76, 146, 98, 0.12);
  color: light-dark(#2f7045, #82c895);
}

.composer-skill-card small,
.composer-attachment-capabilities li small {
  color: light-dark(rgba(23, 23, 23, 0.58), rgba(242, 242, 242, 0.58));
  font-size: 0.66rem;
  line-height: 1.45;
}

.composer-attachment-capabilities {
  margin-top: 0.72rem;
  border-top: 1px solid light-dark(rgba(0, 0, 0, 0.07), rgba(255, 255, 255, 0.08));
  padding-top: 0.62rem;
}

.composer-attachment-capabilities ul {
  display: grid;
  gap: 0.28rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.composer-attachment-capabilities li {
  display: grid;
  gap: 0.2rem;
  border-radius: 6px;
  background: light-dark(rgba(0, 0, 0, 0.025), rgba(255, 255, 255, 0.035));
  padding: 0.42rem 0.5rem;
}

.composer-attachment-capabilities > p,
.composer-skill-empty {
  display: block;
  margin: 0.55rem 0 0;
  color: light-dark(rgba(23, 23, 23, 0.5), rgba(242, 242, 242, 0.5));
  font-size: 0.64rem;
  line-height: 1.45;
}

.attachment-analysis {
  display: flex;
  gap: 0.58rem;
  margin: 0.5rem 0;
  border: 1px solid light-dark(rgba(0, 0, 0, 0.08), rgba(255, 255, 255, 0.09));
  border-radius: 9px;
  background: light-dark(#fafafa, rgba(255, 255, 255, 0.035));
  padding: 0.62rem 0.7rem;
}

.attachment-analysis__icon {
  display: grid;
  flex: 0 0 1.75rem;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(216, 184, 120, 0.11);
}

.attachment-analysis__icon img {
  width: 0.86rem;
  height: 0.86rem;
}

.attachment-analysis__copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 0.26rem;
}

.attachment-analysis__title strong {
  color: light-dark(#252525, #eeeeee);
  font-size: 0.75rem;
}

.attachment-analysis__copy > small {
  color: light-dark(rgba(23, 23, 23, 0.58), rgba(242, 242, 242, 0.58));
  font-size: 0.67rem;
  line-height: 1.45;
}

.attachment-analysis__copy > span:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.attachment-analysis__copy i {
  color: light-dark(rgba(23, 23, 23, 0.46), rgba(242, 242, 242, 0.48));
  font-size: 0.6rem;
  font-style: normal;
}

@media (max-width: 560px) {
  .composer-skill-picker__panel {
    position: fixed;
    right: 0.5rem;
    bottom: calc(5.4rem + env(safe-area-inset-bottom));
    left: 0.5rem;
    width: auto;
    max-height: min(34rem, calc(100dvh - 8rem));
  }

  .composer-skill-grid {
    grid-template-columns: 1fr;
  }

  .composer-skill-picker__head em,
  .composer-skill-picker > summary small {
    display: none;
  }
}

.composer-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem;
  width: 100%;
  overflow: visible;
}

.composer-mode-tab,
.composer-toggle {
  min-height: 2.2rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 0 0.65rem;
  color: light-dark(#404040, #d0d0d0);
  text-align: left;
}

.composer-mode-tab.is-active,
.composer-toggle.is-active {
  background: rgba(216, 184, 120, 0.12);
  color: light-dark(#765315, #e5c879);
}

.composer-toggle {
  width: 100%;
}

.composer-status {
  display: none;
}

.live-input .chat-form__shell {
  min-height: 3.5rem;
  border: 1px solid light-dark(rgba(0, 0, 0, 0.08), rgba(255, 255, 255, 0.09));
  border-radius: 1.75rem;
  background: light-dark(#f3f3f3, #242424);
  box-shadow: none;
}

.live-input .chat-form__input {
  min-height: 3.4rem;
  padding: 0.88rem 3.4rem 0.82rem 3.25rem;
  color: light-dark(#171717, #f0f0f0);
  font-size: 1rem;
  line-height: 1.55;
}

.live-input .chat-form__input::placeholder {
  color: light-dark(rgba(23, 23, 23, 0.42), rgba(240, 240, 240, 0.42));
}

.live-input .upload-button--inline {
  left: 0.62rem;
  width: 2.2rem;
  min-width: 2.2rem;
  height: 2.2rem;
  min-height: 2.2rem;
  border: 0;
  background: transparent;
  color: light-dark(#555555, #cfcfcf);
  font-size: 1.15rem;
}

.live-input .chat-form__submit--inline {
  right: 0.62rem;
  width: 2.2rem;
  min-width: 2.2rem;
  height: 2.2rem;
  min-height: 2.2rem;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: light-dark(#1f1f1f, #f2f2f2);
  padding: 0;
  color: transparent;
  font-size: 0;
}

.live-input .chat-form__submit--inline::before {
  content: "↑";
  color: light-dark(#ffffff, #161616);
  font-size: 1rem;
  font-weight: 750;
}

.chat-form.is-streaming .chat-form__submit--inline::before {
  content: "■";
  font-size: 0.62rem;
}

.project-rail {
  background: light-dark(#f7f7f7, #171717);
}

.conversation-list button,
.project-list button {
  border-radius: 6px;
}

.conversation-list button.is-active,
.project-list button.is-active {
  border-color: transparent;
  background: light-dark(rgba(0, 0, 0, 0.055), rgba(255, 255, 255, 0.065));
}

.console-mobile-menu__routes {
  display: grid;
  gap: 0.18rem;
  padding-block: 0.2rem 0.45rem;
  border-bottom: 1px solid light-dark(rgba(0, 0, 0, 0.09), rgba(255, 255, 255, 0.09));
}

.console-mobile-menu__routes button {
  min-height: 2.35rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 0 0.7rem;
  color: light-dark(#353535, #dddddd);
  font: inherit;
  text-align: left;
}

.console-mobile-menu__routes button.is-active {
  background: rgba(216, 184, 120, 0.11);
  color: light-dark(#765315, #e5c879);
}

.console-mobile-menu__panel .mobile-profile-card {
  display: grid;
  gap: 0.18rem;
  border: 0;
  background: transparent;
  padding: 0.35rem 0.7rem 0.55rem;
}

.console-mobile-menu__panel .mobile-profile-card .system-kicker {
  margin: 0;
  font-size: 0.62rem;
}

.console-mobile-menu__panel .mobile-profile-card strong {
  color: light-dark(#1f1f1f, #f0f0f0);
  font-size: 0.92rem;
}

.console-mobile-menu__panel .mobile-profile-card > span {
  color: light-dark(rgba(23, 23, 23, 0.46), rgba(242, 242, 242, 0.46));
  font-size: 0.68rem;
}

.live-console .console-mobile-menu__panel > .button {
  min-height: 2.35rem;
  justify-content: flex-start;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 0 0.7rem;
  color: light-dark(#353535, #dddddd);
  text-align: left;
}

.live-console .console-mobile-menu__panel > .button:hover {
  background: light-dark(rgba(0, 0, 0, 0.05), rgba(255, 255, 255, 0.06));
}

@media (max-width: 960px) {
  .console-mobile-nav {
    display: none !important;
  }

  body[data-console-route="chat"] .console-app-shell > .live-console {
    grid-template-rows: auto minmax(0, 1fr);
    padding: 0 max(0.5rem, env(safe-area-inset-right)) 0 max(0.5rem, env(safe-area-inset-left));
  }

  body[data-console-route="chat"] .console-topbar {
    display: flex;
    min-height: 3.1rem;
    align-items: center;
    border: 0;
    border-bottom: 1px solid light-dark(rgba(0, 0, 0, 0.08), rgba(255, 255, 255, 0.07));
    border-radius: 0;
    background: light-dark(rgba(255, 255, 255, 0.94), rgba(16, 16, 16, 0.94));
    padding: 0.35rem 0.35rem 0.3rem 0.55rem;
    box-shadow: none;
    backdrop-filter: blur(18px);
  }

  body[data-console-route="chat"] .console-topbar .system-kicker,
  body[data-console-route="chat"] .console-actions {
    display: none;
  }

  body[data-console-route="chat"] .console-topbar h1 {
    color: light-dark(#171717, #f2f2f2);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0;
  }

  body[data-console-route="chat"] .console-mobile-menu {
    display: block;
    margin-left: auto;
  }

  body[data-console-route="chat"] .console-mobile-menu__trigger {
    min-width: 2.35rem;
    min-height: 2.35rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
  }

  .system-body .console-mobile-menu__panel {
    top: max(3.7rem, calc(env(safe-area-inset-top) + 3.2rem));
    right: max(0.6rem, env(safe-area-inset-right));
    width: min(18rem, calc(100vw - 1.2rem));
    max-height: calc(100dvh - 4.5rem);
    overflow-y: auto;
    border-radius: 8px;
    background: light-dark(rgba(255, 255, 255, 0.98), rgba(31, 31, 31, 0.98));
  }

  .console-view--chat.is-active {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .conversation-context-bar {
    min-height: 3rem;
    padding-inline: 0.1rem;
  }

  .conversation-context-bar__menu {
    display: inline-flex;
  }

  .live-chat {
    padding: 0.75rem 0.55rem 1.2rem;
  }

  .live-input {
    padding-inline: 0.2rem;
  }
}

@media (orientation: landscape) and (max-height: 500px) and (max-width: 960px) {
  body[data-console-route="chat"] .console-topbar {
    display: none;
  }

  body[data-console-route="chat"] .console-app-shell > .live-console {
    grid-template-rows: minmax(0, 1fr);
  }

  .composer-toolbar {
    margin-bottom: 0.18rem;
  }

  .live-input {
    padding-bottom: max(0.25rem, env(safe-area-inset-bottom));
  }
}

/* Conversation controls, searchable history, and unified product finish. */
.project-rail {
  grid-template-rows: auto auto minmax(9rem, 1.2fr) minmax(8rem, 1fr) auto;
}

.project-rail-search {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  margin: 0.1rem 0.12rem 0.55rem;
}

.project-rail-search > img {
  position: absolute;
  left: 0.66rem;
  z-index: 1;
  width: 0.9rem;
  height: 0.9rem;
  opacity: 0.5;
  pointer-events: none;
}

.project-rail-search input {
  width: 100%;
  min-width: 0;
  height: 2.35rem;
  border: 1px solid light-dark(rgba(0, 0, 0, 0.08), rgba(255, 255, 255, 0.08));
  border-radius: 8px;
  outline: none;
  background: light-dark(rgba(0, 0, 0, 0.045), rgba(255, 255, 255, 0.055));
  padding: 0 0.68rem 0 2rem;
  color: light-dark(#202020, #ededed);
  font: inherit;
  font-size: 0.76rem;
  line-height: 1.4;
}

.project-rail-search input::placeholder {
  color: light-dark(rgba(30, 30, 30, 0.44), rgba(238, 238, 238, 0.42));
}

.project-rail-search input:focus {
  border-color: rgba(216, 184, 120, 0.34);
  background: light-dark(rgba(0, 0, 0, 0.06), rgba(255, 255, 255, 0.075));
}

.conversation-list button,
.project-list button {
  min-height: 3rem;
  align-content: center;
  overflow: hidden;
  padding: 0.5rem 0.58rem;
}

.conversation-list strong,
.project-list strong {
  display: block;
  min-height: 1.15rem;
  padding-block: 0.05rem;
  font-size: 0.76rem;
  line-height: 1.38;
}

.conversation-list small,
.project-list small {
  display: block;
  min-height: 1rem;
  padding-block: 0.04rem;
  font-size: 0.64rem;
  line-height: 1.42;
}

.live-input .upload-button--inline img {
  width: 1.12rem;
  height: 1.12rem;
  opacity: 0.72;
}

.live-input .chat-form__submit--inline {
  display: inline-grid;
  place-items: center;
  transition: background-color 150ms ease, transform 150ms ease, opacity 150ms ease;
}

.live-input .chat-form__submit--inline::before {
  content: none;
}

.chat-form__submit-icon {
  grid-area: 1 / 1;
  width: 1.05rem;
  height: 1.05rem;
  transition: opacity 120ms ease, transform 150ms ease;
}

.chat-form__submit-icon--stop {
  display: none;
  width: 0.8rem;
  height: 0.8rem;
}

.chat-form.is-streaming .chat-form__submit-icon--send {
  display: none;
}

.chat-form.is-streaming .chat-form__submit-icon--stop {
  display: block;
}

.live-input .chat-form__submit--inline:hover:not(:disabled) {
  transform: translateY(-1px);
}

.live-input .chat-form__submit--inline:active:not(:disabled) {
  transform: translateY(0) scale(0.96);
}

.live-input .chat-form__submit--inline:disabled {
  cursor: default;
  background: light-dark(#d7d7d7, #3a3a3a);
  opacity: 0.76;
}

.live-input .chat-form__submit--inline:disabled .chat-form__submit-icon {
  opacity: 0.44;
}

@media (prefers-color-scheme: dark) {
  .project-rail-search > img,
  .live-input .upload-button--inline img {
    filter: invert(1);
  }
}

@media (prefers-color-scheme: light) {
  .chat-form__submit-icon {
    filter: invert(1);
  }
}

/* The public page uses the same restrained graphite, ivory, and champagne
   system language as the authenticated conversation surface. */
.legacy-home,
.legacy-home * {
  letter-spacing: 0;
}

.legacy-home .hero-shell,
.legacy-home .hero-shell__content {
  min-height: calc(100svh - 2.5rem);
}

.legacy-home .hero-shell {
  background: #080808;
}

.legacy-home .hero-shell__content {
  width: min(100%, 92rem);
  padding: 1.5rem clamp(1.25rem, 3vw, 2.5rem);
}

.legacy-home .hero-topline,
.legacy-home .hero-bottomline {
  color: rgba(244, 239, 229, 0.48);
  font-size: 0.66rem;
  font-weight: 560;
}

.legacy-home .hero-copy {
  max-width: 43rem;
  padding: clamp(2.5rem, 7vh, 4.5rem) 0;
}

.legacy-home .hero-title {
  font-size: clamp(4.4rem, 12vw, 9.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.legacy-home .hero-subtitle {
  max-width: 38rem;
  margin: 1.1rem 0 1.2rem;
  color: rgba(247, 244, 238, 0.88);
  font-size: clamp(1.08rem, 1.7vw, 1.42rem);
  line-height: 1.65;
}

.legacy-home .hero-measure {
  max-width: 36rem;
  color: rgba(247, 244, 238, 0.58);
  font-size: clamp(0.92rem, 1.12vw, 1.04rem);
  line-height: 1.8;
}

.legacy-home .hero-actions {
  margin-top: 1.8rem;
}

.legacy-home .action-primary,
.legacy-home .action-secondary {
  min-height: 3.1rem;
  padding-inline: 1.25rem;
  font-size: 0.86rem;
}

.legacy-home .home-command-card {
  width: min(100%, 38rem);
  gap: 0.55rem;
  margin-top: 1.35rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.legacy-home .home-command-card__head {
  padding-inline: 0.25rem;
  font-size: 0.62rem;
}

.legacy-home .home-command-card__input {
  display: grid;
  min-height: 3.55rem;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(38, 38, 38, 0.92);
  padding: 0.48rem 0.55rem 0.48rem 1.15rem;
  color: rgba(244, 244, 244, 0.72);
}

.legacy-home .home-command-card__input i {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  border-radius: 999px;
  background: #f1f1f1;
}

.legacy-home .home-command-card__input i img {
  width: 1rem;
  height: 1rem;
}

.legacy-home .home-command-card__chips {
  gap: 0.25rem 1rem;
  padding-inline: 0.35rem;
}

.legacy-home .home-command-card__chips a {
  min-height: 1.8rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  color: rgba(216, 184, 120, 0.74);
  font-size: 0.72rem;
}

.legacy-home .legacy-section {
  background: #0d0d0d;
}

.legacy-home .legacy-section--cards {
  background: #101010;
}

.legacy-home .legacy-intro h2,
.legacy-home .norma-stage__content h3,
.legacy-home .story-card h3 {
  letter-spacing: 0;
}

.legacy-home .norma-stage,
.legacy-home .norma-stage__media,
.legacy-home .story-card,
.legacy-home .use-case-card,
.legacy-home .home-final-action {
  border-radius: 8px;
}

.legacy-home .story-card,
.legacy-home .use-case-card {
  background: rgba(255, 255, 255, 0.025);
}

.legacy-home .home-final-action {
  background: rgba(255, 255, 255, 0.025);
}

@media (max-width: 680px) {
  .legacy-home .hero-shell,
  .legacy-home .hero-shell__content {
    min-height: calc(100svh - 2rem);
  }

  .legacy-home .hero-shell__content {
    padding: max(1rem, env(safe-area-inset-top)) 1rem max(0.85rem, env(safe-area-inset-bottom));
  }

  .legacy-home .hero-copy {
    padding: clamp(1.8rem, 5svh, 3rem) 0;
  }

  .legacy-home .hero-title {
    font-size: clamp(3.9rem, 22vw, 5.25rem);
    letter-spacing: 0;
  }

  .legacy-home .hero-subtitle {
    font-size: 1rem;
  }

  .legacy-home .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: 1.2rem;
  }

  .legacy-home .action-primary,
  .legacy-home .action-secondary {
    min-height: 2.85rem;
    width: auto;
    padding-inline: 0.7rem;
    font-size: 0.8rem;
  }

  .legacy-home .home-command-card {
    margin-top: 1rem;
    padding: 0;
  }

  .legacy-home .home-command-card__input {
    min-height: 3.2rem;
    border-radius: 999px;
    padding-left: 0.95rem;
    font-size: 0.86rem;
  }

  .legacy-home .home-command-card__input i {
    width: 2.2rem;
    height: 2.2rem;
  }
}

/* Native browser dictation. The microphone occupies its own stable slot so
   send and stop never shift when speech recognition changes state. */
.voice-status {
  min-width: 0;
  margin-left: 0.35rem;
  color: light-dark(rgba(32, 32, 32, 0.5), rgba(238, 238, 238, 0.5));
  font-size: 0.7rem;
  line-height: 1.4;
}

.voice-status[data-tone="listening"] {
  color: light-dark(#8a641f, #e1c477);
}

.voice-status[data-tone="error"] {
  color: light-dark(#9b3d35, #e59b91);
}

.voice-status[data-tone="complete"] {
  color: light-dark(#356a4f, #8fc9aa);
}

.voice-input-button {
  position: absolute;
  right: 3.05rem;
  bottom: 0.65rem;
  z-index: 3;
  display: inline-grid;
  width: 2.2rem;
  min-width: 2.2rem;
  height: 2.2rem;
  min-height: 2.2rem;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 0;
  color: light-dark(#4d4d4d, #d0d0d0);
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.voice-input-button[hidden] {
  display: none;
}

.voice-input-button:hover:not(:disabled) {
  background: light-dark(rgba(0, 0, 0, 0.055), rgba(255, 255, 255, 0.07));
}

.voice-input-button:active:not(:disabled) {
  transform: scale(0.95);
}

.voice-input-button:disabled {
  cursor: default;
  opacity: 0.36;
}

.voice-input-button img {
  grid-area: 1 / 1;
  width: 1.05rem;
  height: 1.05rem;
  opacity: 0.76;
}

.voice-input-button__stop {
  display: none;
  width: 0.76rem !important;
  height: 0.76rem !important;
}

.voice-input-button.is-listening {
  background: rgba(216, 184, 120, 0.16);
  color: light-dark(#745214, #ebcf84);
  box-shadow: inset 0 0 0 1px rgba(216, 184, 120, 0.26);
}

.voice-input-button.is-listening .voice-input-button__mic {
  display: none;
}

.voice-input-button.is-listening .voice-input-button__stop {
  display: block;
}

.live-input .chat-form__input {
  padding-right: 6rem;
}

.chat-form.is-voice-listening .chat-form__shell {
  border-color: rgba(216, 184, 120, 0.26);
}

@media (prefers-color-scheme: dark) {
  .voice-input-button img {
    filter: invert(1);
  }
}

/* Homepage depth pass: visible story copy, personal intelligence, identity,
   voice, and multi-agent orchestration without adding dashboard clutter. */
.legacy-home .hero-copy {
  padding-block: clamp(3.5rem, 10vh, 7rem);
}

.legacy-home .legacy-section--story.legacy-section--horizontal .legacy-story-grid {
  grid-template-rows: minmax(0, 41vh) minmax(0, 47vh) !important;
  gap: 1rem !important;
}

.legacy-home .legacy-section--story.legacy-section--horizontal .norma-stage,
.legacy-home .legacy-section--story.legacy-section--horizontal .norma-stage__media,
.legacy-home .legacy-section--story.legacy-section--horizontal .legacy-card-stack {
  border-radius: 8px !important;
}

.legacy-home .legacy-section--story.legacy-section--horizontal .norma-stage,
.legacy-home .legacy-section--story.legacy-section--horizontal .legacy-card-stack {
  background: #151515 !important;
}

.legacy-home .legacy-section--story.legacy-section--horizontal .story-live-card__body {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto auto minmax(0, 1fr) !important;
  align-content: stretch !important;
  align-items: stretch !important;
  gap: clamp(0.8rem, 1.8vh, 1.25rem) !important;
  padding: clamp(1.25rem, 2.4vw, 2rem) !important;
}

.legacy-home .legacy-section--story.legacy-section--horizontal .story-live-card__meta span {
  font-size: clamp(3.2rem, 5.8vw, 5.2rem) !important;
  line-height: 0.9 !important;
  letter-spacing: 0 !important;
}

.legacy-home .legacy-section--story.legacy-section--horizontal .story-live-card h3 {
  max-width: 14em !important;
  font-size: clamp(2.8rem, 4.8vw, 4.5rem) !important;
  line-height: 1.02 !important;
  letter-spacing: 0 !important;
}

.legacy-home .legacy-section--story.legacy-section--horizontal .story-live-card__lines {
  max-width: 58rem !important;
  align-self: stretch !important;
  align-content: end !important;
  gap: 0.55rem !important;
}

.legacy-home .legacy-section--story.legacy-section--horizontal .story-live-card__lines p {
  font-size: clamp(1rem, 1.35vw, 1.2rem) !important;
  line-height: 1.58 !important;
}

.legacy-home .legacy-section--intelligence {
  background: #0b0b0b;
}

.legacy-home .intelligence-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(22rem, 0.95fr);
  gap: clamp(2.5rem, 6vw, 6.5rem);
  align-items: center;
}

.legacy-home .intelligence-media {
  position: relative;
  overflow: hidden;
  min-height: 38rem;
  margin: 0;
  border: 1px solid rgba(216, 184, 120, 0.18);
  border-radius: 8px;
  background: #050505;
}

.legacy-home .intelligence-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.legacy-home .intelligence-copy h2 {
  margin: 0.8rem 0 2.4rem;
  color: #f5f0e7;
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(2.4rem, 4.4vw, 4.7rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0;
}

.legacy-home .intelligence-points {
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.legacy-home .intelligence-points article {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  padding: 1.35rem 0;
}

.legacy-home .intelligence-points article > span {
  color: rgba(216, 184, 120, 0.68);
  font-size: 0.72rem;
  line-height: 1.8;
}

.legacy-home .intelligence-points h3 {
  margin: 0;
  color: rgba(247, 244, 238, 0.92);
  font-size: 1.16rem;
  font-weight: 620;
  line-height: 1.45;
}

.legacy-home .intelligence-points p {
  margin: 0.45rem 0 0;
  color: rgba(247, 244, 238, 0.58);
  font-size: 0.94rem;
  line-height: 1.75;
}

.legacy-home .identity-rank-system {
  display: grid;
  grid-template-columns: minmax(15rem, 0.75fr) minmax(24rem, 1fr) minmax(18rem, 0.9fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  margin-top: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid rgba(216, 184, 120, 0.18);
  border-bottom: 1px solid rgba(216, 184, 120, 0.18);
  padding: clamp(1.6rem, 3vw, 2.5rem) 0;
}

.legacy-home .identity-rank-system h3 {
  margin: 0.55rem 0 0;
  color: #f4efe5;
  font-size: 1.25rem;
  font-weight: 620;
  line-height: 1.45;
}

.legacy-home .identity-rank-system > p {
  margin: 0;
  color: rgba(247, 244, 238, 0.54);
  font-size: 0.88rem;
  line-height: 1.75;
}

.legacy-home .identity-ranks {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.45rem;
}

.legacy-home .identity-ranks span {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: rgba(247, 244, 238, 0.68);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
}

.legacy-home .identity-ranks span.is-owner {
  border-color: rgba(216, 184, 120, 0.48);
  background: rgba(216, 184, 120, 0.11);
  color: #e3c77f;
}

.legacy-home .legacy-use-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.legacy-home .use-case-card {
  min-height: 13rem;
}

@media (max-width: 980px) {
  .legacy-home .legacy-section--story.legacy-section--horizontal .legacy-story-grid {
    grid-template-rows: minmax(0, 42svh) minmax(0, 46svh) !important;
  }

  .legacy-home .legacy-section--story.legacy-section--horizontal .story-live-card h3 {
    font-size: clamp(2.15rem, 7vw, 3.2rem) !important;
  }

  .legacy-home .legacy-section--story.legacy-section--horizontal .story-live-card__lines p {
    font-size: clamp(0.9rem, 2.4vw, 1.02rem) !important;
  }

  .legacy-home .intelligence-layout,
  .legacy-home .identity-rank-system {
    grid-template-columns: 1fr;
  }

  .legacy-home .intelligence-media {
    min-height: 31rem;
  }

  .legacy-home .identity-rank-system {
    gap: 1.5rem;
  }

  .legacy-home .identity-ranks {
    max-width: 34rem;
  }

  .legacy-home .legacy-use-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .legacy-home .hero-copy {
    padding-block: clamp(3rem, 9svh, 5rem);
  }

  .legacy-home .legacy-section--story.legacy-section--horizontal .legacy-story-grid {
    grid-template-rows: minmax(0, 39svh) minmax(0, 49svh) !important;
  }

  .legacy-home .legacy-section--story.legacy-section--horizontal .story-live-card__body {
    gap: 0.6rem !important;
    padding: 1rem !important;
  }

  .legacy-home .legacy-section--story.legacy-section--horizontal .story-live-card__meta span {
    font-size: 2.8rem !important;
  }

  .legacy-home .legacy-section--story.legacy-section--horizontal .story-live-card h3 {
    font-size: clamp(1.9rem, 8vw, 2.5rem) !important;
  }

  .legacy-home .legacy-section--story.legacy-section--horizontal .story-live-card__lines {
    gap: 0.38rem !important;
  }

  .legacy-home .legacy-section--story.legacy-section--horizontal .story-live-card__lines p {
    font-size: 0.86rem !important;
    line-height: 1.48 !important;
  }

  .legacy-home .intelligence-media {
    min-height: 23rem;
  }

  .legacy-home .intelligence-copy h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .legacy-home .intelligence-points article {
    grid-template-columns: 1.8rem minmax(0, 1fr);
    gap: 0.75rem;
  }

  .legacy-home .identity-ranks {
    gap: 0.3rem;
  }

  .legacy-home .identity-ranks span {
    font-size: 0.92rem;
  }

  .legacy-home .legacy-use-grid {
    grid-template-columns: 1fr;
  }

  .voice-status {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (orientation: landscape) and (max-height: 500px) and (max-width: 980px) {
  .legacy-home .hero-scroll-cue {
    display: none !important;
  }

  .legacy-home .legacy-section--story.legacy-section--horizontal > .legacy-wrap {
    max-width: min(100% - 1.1rem, 58rem) !important;
    padding-top: max(0.55rem, env(safe-area-inset-top)) !important;
    padding-bottom: max(0.55rem, env(safe-area-inset-bottom)) !important;
  }

  .legacy-home .legacy-section--story.legacy-section--horizontal.is-story-fixed > .legacy-wrap,
  .legacy-home .legacy-section--story.legacy-section--horizontal.is-story-ended > .legacy-wrap {
    width: min(100% - 1.1rem, 58rem) !important;
  }

  .legacy-home .legacy-section--story.legacy-section--horizontal .legacy-story-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    gap: 0.75rem !important;
  }

  .legacy-home .legacy-section--story.legacy-section--horizontal .story-live-card__body {
    gap: 0.42rem !important;
    padding: 0.85rem 0.95rem !important;
  }

  .legacy-home .legacy-section--story.legacy-section--horizontal .story-live-card__meta span {
    font-size: 2.15rem !important;
  }

  .legacy-home .legacy-section--story.legacy-section--horizontal .story-live-card h3 {
    font-size: clamp(1.65rem, 4.6vw, 2rem) !important;
    line-height: 1 !important;
  }

  .legacy-home .legacy-section--story.legacy-section--horizontal .story-live-card__lines {
    gap: 0.2rem !important;
  }

  .legacy-home .legacy-section--story.legacy-section--horizontal .story-live-card__lines p {
    font-size: clamp(0.73rem, 1.75vw, 0.86rem) !important;
    line-height: 1.38 !important;
  }
}

/* Motion showcase pass 2: denser scroll choreography and cinematic transitions. */
.legacy-home .legacy-section--story.legacy-section--horizontal .legacy-card-stack {
  --story-scan-y: 0%;
  overflow: hidden !important;
}

.legacy-home .legacy-section--story.legacy-section--horizontal .legacy-card-stack::before {
  content: "";
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  top: var(--story-scan-y);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(235, 205, 133, 0.84), transparent);
  box-shadow: 0 0 22px rgba(216, 184, 120, 0.28);
  opacity: 0.72;
  pointer-events: none;
}

.legacy-home .legacy-section--story.legacy-section--horizontal .legacy-card-stack::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 4rem 4rem;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.68), transparent 78%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.68), transparent 78%);
  pointer-events: none;
}

.legacy-home .legacy-section--story.legacy-section--horizontal .story-live-card {
  z-index: 1;
}

.legacy-home .legacy-section--story.legacy-section--horizontal .story-live-card__body {
  grid-template-rows: auto auto auto !important;
  align-content: center !important;
  align-items: stretch !important;
  gap: clamp(0.9rem, 2.4vh, 1.35rem) !important;
}

.legacy-home .legacy-section--story.legacy-section--horizontal .story-live-card__lines {
  align-self: auto !important;
  align-content: start !important;
  gap: 0.62rem !important;
}

.legacy-home .legacy-section--story.legacy-section--horizontal .story-live-card__lines p {
  max-width: 52rem;
  font-size: 1.08rem !important;
  line-height: 1.62 !important;
}

.motion-rail {
  --page-progress: 0;
  position: fixed;
  z-index: 20;
  top: 50%;
  right: max(1rem, env(safe-area-inset-right));
  display: grid;
  grid-template-rows: auto auto 7rem auto;
  justify-items: center;
  gap: 0.42rem;
  color: rgba(247, 239, 222, 0.46);
  transform: translateY(-50%);
  pointer-events: none;
}

.motion-rail > span,
.motion-rail > small {
  font-size: 0.58rem;
  line-height: 1;
  text-transform: uppercase;
}

.motion-rail > span {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.motion-rail > strong {
  color: #e2c77f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1;
}

.motion-rail > i {
  position: relative;
  display: block;
  width: 1px;
  height: 7rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
}

.motion-rail > i > b {
  position: absolute;
  inset: 0;
  display: block;
  background: #d8b878;
  transform: scaleY(var(--page-progress));
  transform-origin: 50% 0;
}

.kinetic-interlude {
  position: relative;
  min-height: 110svh;
  overflow: hidden;
  isolation: isolate;
  background: #050505;
}

.kinetic-interlude__image,
.kinetic-interlude__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.kinetic-interlude__image {
  z-index: -3;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.72) contrast(1.18) brightness(0.42);
  transform: scale(1.08);
}

.kinetic-interlude__shade {
  z-index: -2;
  background:
    linear-gradient(180deg, #050505 0%, transparent 24%, transparent 76%, #0b0b0b 100%),
    linear-gradient(90deg, rgba(5, 5, 5, 0.7), rgba(5, 5, 5, 0.12) 42%, rgba(5, 5, 5, 0.58));
}

.kinetic-interlude__content {
  min-height: 110svh;
  display: grid;
  grid-template-rows: auto repeat(3, minmax(0, 1fr)) auto;
  align-items: center;
  padding: clamp(2rem, 5vh, 4rem) clamp(1.25rem, 5vw, 5rem);
}

.kinetic-interlude__content > p,
.kinetic-interlude__content > footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  color: rgba(246, 238, 222, 0.55);
  font-size: 0.66rem;
  line-height: 1;
  text-transform: uppercase;
}

.kinetic-interlude__content > p span:first-child {
  color: #d8b878;
}

.kinetic-word {
  width: 100%;
  overflow: hidden;
  color: rgba(250, 246, 237, 0.96);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 7.8rem;
  font-weight: 400;
  line-height: 0.82;
  white-space: nowrap;
}

.kinetic-word span {
  display: inline-block;
  will-change: transform;
}

.kinetic-word--two {
  color: transparent;
  text-align: right;
  -webkit-text-stroke: 1px rgba(239, 219, 170, 0.72);
}

.kinetic-word--three {
  color: #d8b878;
  font-size: 10rem;
  text-align: center;
}

@media (min-width: 1600px) {
  .kinetic-word {
    font-size: 12rem;
  }

  .kinetic-word--three {
    font-size: 15rem;
  }
}

.legacy-home .intelligence-media {
  clip-path: inset(0 round 8px);
}

.legacy-home .intelligence-media__scan {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: -18%;
  height: 16%;
  background: linear-gradient(180deg, transparent, rgba(236, 206, 136, 0.17), rgba(236, 206, 136, 0.62), transparent);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
}

.legacy-home .identity-ranks {
  --rank-line-progress: 0;
  position: relative;
  padding-block: 0.8rem;
}

.legacy-home .identity-ranks::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 3%;
  right: 3%;
  height: 1px;
  background: linear-gradient(90deg, rgba(216, 184, 120, 0.7), rgba(255, 255, 255, 0.14));
  transform: scaleX(var(--rank-line-progress));
  transform-origin: 0 50%;
}

.legacy-home .identity-ranks span {
  position: relative;
  z-index: 1;
  background: #0b0b0b;
}

.legacy-home .legacy-use-grid {
  perspective: 80rem;
}

.legacy-home .use-case-card {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.legacy-home .use-case-card__sheen {
  position: absolute;
  z-index: 0;
  top: -35%;
  bottom: -35%;
  left: -30%;
  width: 22%;
  background: linear-gradient(90deg, transparent, rgba(239, 216, 162, 0.24), transparent);
  transform: translateX(-280%) rotate(10deg);
  pointer-events: none;
}

.legacy-home .use-case-card > :not(.use-case-card__sheen) {
  position: relative;
  z-index: 1;
}

@media (max-width: 980px) {
  .motion-rail {
    top: 0;
    left: 0;
    right: 0;
    display: block;
    width: 100%;
    height: 2px;
    transform: none;
  }

  .motion-rail > span,
  .motion-rail > strong,
  .motion-rail > small {
    display: none;
  }

  .motion-rail > i {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
  }

  .motion-rail > i > b {
    transform: scaleX(var(--page-progress));
    transform-origin: 0 50%;
  }

  .kinetic-word {
    font-size: 5rem;
  }

  .kinetic-word--three {
    font-size: 6.6rem;
  }
}

@media (max-width: 680px) {
  .legacy-home .legacy-section--story.legacy-section--horizontal .story-live-card__body {
    gap: 0.92rem !important;
    padding: 1.15rem !important;
  }

  .legacy-home .legacy-section--story.legacy-section--horizontal .story-live-card__lines {
    gap: 0.58rem !important;
  }

  .legacy-home .legacy-section--story.legacy-section--horizontal .story-live-card__lines p {
    font-size: 1rem !important;
    line-height: 1.55 !important;
  }

  .kinetic-interlude,
  .kinetic-interlude__content {
    min-height: 92svh;
  }

  .kinetic-interlude__content {
    padding: 1.6rem 1rem;
  }

  .kinetic-word {
    font-size: 3.45rem;
  }

  .kinetic-word--three {
    font-size: 4.7rem;
  }
}

@media (orientation: landscape) and (max-height: 500px) and (max-width: 980px) {
  .legacy-home .legacy-section--story.legacy-section--horizontal .story-live-card__body {
    gap: 0.68rem !important;
    padding: 0.9rem 1rem !important;
  }

  .legacy-home .legacy-section--story.legacy-section--horizontal .story-live-card__lines p {
    font-size: 0.88rem !important;
    line-height: 1.42 !important;
  }

  .kinetic-interlude,
  .kinetic-interlude__content {
    min-height: 120svh;
  }

  .kinetic-word {
    font-size: 3.2rem;
  }

  .kinetic-word--three {
    font-size: 4.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-rail {
    display: none;
  }

  .kinetic-interlude__image,
  .kinetic-word span,
  .legacy-home .intelligence-media,
  .legacy-home .intelligence-media__scan,
  .legacy-home .use-case-card__sheen {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
}

/* Final cascade for the third homepage motion pass. */
.norma-particle-layer--home {
  background: transparent !important;
}

.norma-particle-layer--home::after {
  background: transparent !important;
}

.norma-particle-layer--home .norma-particle-canvas {
  filter: contrast(1.14) brightness(1.22) saturate(1.08) !important;
}

.legacy-home .hero-shell__shade {
  background: transparent !important;
}

.legacy-home .hero-copy,
.legacy-home .hero-topline,
.legacy-home .hero-bottomline {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.58);
}

.kinetic-word,
.kinetic-word--three {
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: 10rem;
}

.legacy-home .identity-rank-system {
  grid-template-columns: minmax(15rem, 0.8fr) minmax(28rem, 1.35fr) minmax(16rem, 0.8fr);
  min-height: 28rem;
  overflow: hidden;
  perspective: 80rem;
}

.legacy-home .identity-rank-copy h3 {
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: 1.8rem;
  font-weight: 500;
}

.legacy-home .identity-rank-copy > p:last-child {
  margin: 1rem 0 0;
  max-width: 24rem;
  color: rgba(247, 244, 238, 0.54);
  font-size: 0.88rem;
  line-height: 1.75;
}

.legacy-home .identity-rank-stage {
  min-width: 0;
  transform-style: preserve-3d;
}

.legacy-home .identity-ranks {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
  padding: 1.2rem 0 2.5rem;
  transform-style: preserve-3d;
}

.legacy-home .identity-ranks::before {
  left: 7%;
  right: 7%;
  background: linear-gradient(90deg, #d8b878, rgba(255, 255, 255, 0.17));
  box-shadow: 0 0 18px rgba(216, 184, 120, 0.2);
}

.legacy-home .identity-ranks > span {
  position: relative;
  overflow: visible;
  isolation: isolate;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.legacy-home .identity-ranks > span::after {
  content: attr(data-rank-label);
  position: absolute;
  top: calc(100% + 0.7rem);
  left: 50%;
  color: rgba(247, 244, 238, 0.46);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.64rem;
  line-height: 1;
  white-space: nowrap;
  transform: translateX(-50%);
}

.legacy-home .identity-ranks > span.is-public-top {
  border-color: rgba(216, 184, 120, 0.72);
  background: rgba(216, 184, 120, 0.12);
  color: #efd58f;
}

.legacy-home .identity-ranks .rank-letter,
.legacy-home .identity-ranks .rank-slice {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: inherit;
  font-family: Georgia, "Times New Roman", serif;
  font-size: inherit;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
}

.legacy-home .identity-ranks .rank-letter {
  opacity: 0.12;
}

.legacy-home .identity-ranks .rank-slice {
  will-change: transform, opacity;
}

.legacy-home .identity-ranks .rank-slice--1 {
  clip-path: inset(0 0 66.666% 0);
}

.legacy-home .identity-ranks .rank-slice--2 {
  clip-path: inset(33.333% 0 33.333% 0);
}

.legacy-home .identity-ranks .rank-slice--3 {
  clip-path: inset(66.666% 0 0 0);
}

.legacy-home .identity-rank-scale {
  display: grid;
  grid-template-columns: auto minmax(4rem, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  color: rgba(247, 244, 238, 0.34);
  font-size: 0.58rem;
  line-height: 1;
}

.legacy-home .identity-rank-scale i {
  position: relative;
  display: block;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.legacy-home .identity-rank-scale i b {
  position: absolute;
  inset: 0;
  display: block;
  background: linear-gradient(90deg, #d8b878, rgba(216, 184, 120, 0.14));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.legacy-home .identity-rank-note {
  max-width: 20rem;
}

.legacy-home .use-case-card__sheen {
  display: none !important;
}

@media (min-width: 1600px) {
  .kinetic-word,
  .kinetic-word--three {
    font-size: 16rem;
  }
}

@media (min-width: 769px) {
  .legacy-home .legacy-section--cards {
    min-height: 220vh !important;
    overflow: clip;
  }

  .legacy-home .legacy-section--cards > .legacy-wrap {
    position: sticky;
    top: 0;
    min-height: 100vh;
    height: 100vh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-content: center;
    overflow: hidden;
    padding-top: clamp(1.4rem, 4vh, 3rem);
    padding-bottom: clamp(1.4rem, 4vh, 3rem);
  }

  .legacy-home .legacy-section--cards .legacy-intro {
    margin-bottom: clamp(0.8rem, 2vh, 1.4rem);
  }

  .legacy-home .legacy-section--cards .legacy-intro h2 {
    margin-bottom: 0;
  }

  .legacy-home .legacy-section--cards .legacy-use-grid {
    align-self: center;
    perspective: 90rem;
    transform-style: preserve-3d;
  }

  .legacy-home .legacy-section--cards .use-case-card {
    min-height: 9.75rem;
    backface-visibility: hidden;
  }

  .legacy-home .legacy-section--cards .home-final-action {
    margin-top: clamp(0.8rem, 2vh, 1.3rem);
  }
}

@media (max-width: 980px) {
  .kinetic-word,
  .kinetic-word--three {
    font-size: 6.4rem;
  }

  .legacy-home .identity-rank-system {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .legacy-home .identity-rank-note {
    max-width: 36rem;
  }
}

@media (max-width: 768px) {
  .legacy-home .legacy-section--cards {
    min-height: auto !important;
    overflow: visible;
  }

  .legacy-home .legacy-section--cards > .legacy-wrap {
    position: relative;
    top: auto;
    min-height: 0;
    height: auto;
    display: block;
    overflow: visible;
  }

  .legacy-home .legacy-section--cards .legacy-use-grid {
    display: block;
    perspective: 70rem;
  }

  .legacy-home .legacy-section--cards .use-case-card {
    position: sticky;
    top: var(--card-sticky-top);
    z-index: calc(2 + var(--card-index));
    min-height: 11.5rem;
    margin-bottom: 1.25rem;
    background: #151515;
    backface-visibility: hidden;
  }

  .legacy-home .legacy-section--cards .home-final-action {
    position: relative;
    z-index: 20;
    margin-top: 3rem;
    background: #111;
  }
}

@media (max-width: 680px) {
  .legacy-home .hero-shell__image {
    opacity: 0.22;
  }

  .kinetic-word,
  .kinetic-word--three {
    font-size: 4.35rem;
  }

  .legacy-home .identity-rank-system {
    padding-block: 2rem;
  }

  .legacy-home .identity-rank-copy h3 {
    font-size: 1.55rem;
  }

  .legacy-home .identity-ranks {
    gap: 0.32rem;
    padding-bottom: 2.3rem;
  }

  .legacy-home .identity-ranks > span {
    font-size: 1.05rem;
  }
}

@media (orientation: landscape) and (max-height: 500px) and (max-width: 980px) {
  .kinetic-word,
  .kinetic-word--three {
    font-size: 4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legacy-home .identity-ranks .rank-letter {
    opacity: 1;
  }

  .legacy-home .identity-ranks .rank-slice {
    display: none;
  }

  .legacy-home .legacy-section--cards {
    min-height: auto !important;
  }

  .legacy-home .legacy-section--cards > .legacy-wrap {
    position: relative;
    min-height: 0;
    height: auto;
  }

  .legacy-home .legacy-section--cards .use-case-card {
    position: relative;
    top: auto;
  }
}

/* Runtime workspace overrides must follow the shared dialog system. */
.system-dialog.runtime-dialog {
  width: min(94vw, 70rem);
  max-width: min(94vw, 70rem);
  max-height: min(92dvh, 58rem);
}

.system-dialog.runtime-dialog .runtime-dialog__panel {
  max-height: min(92dvh, 58rem);
  gap: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #0b0c0e;
  padding: 0;
}

@media (prefers-color-scheme: light) {
  .system-dialog.runtime-dialog .runtime-dialog__panel {
    background: #f6f4ef;
  }
}

@media (max-width: 800px) {
  .system-dialog.runtime-dialog {
    width: min(96vw, 46rem);
    max-width: min(96vw, 46rem);
  }
}

@media (max-width: 620px), (orientation: landscape) and (max-height: 520px) and (max-width: 980px) {
  .system-dialog.runtime-dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
  }

  .system-dialog.runtime-dialog .runtime-dialog__panel {
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }
}

@media (orientation: landscape) and (max-height: 520px) and (max-width: 980px) {
  .system-dialog.runtime-dialog .runtime-dialog__panel {
    grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
  }

  .runtime-dialog__header {
    min-height: 0;
    align-items: center;
    padding: max(0.42rem, env(safe-area-inset-top)) max(0.7rem, env(safe-area-inset-right)) 0.42rem max(0.7rem, env(safe-area-inset-left));
  }

  .runtime-dialog__identity {
    gap: 0.45rem;
  }

  .runtime-dialog__mark {
    width: 1.8rem;
    height: 1.8rem;
  }

  .runtime-dialog__header h2 {
    font-size: 0.82rem;
  }

  .runtime-dialog__header p:last-child {
    display: none;
  }

  .runtime-dialog__header-actions {
    gap: 0.38rem;
  }

  .runtime-status-pill {
    min-height: 1.75rem;
  }

  .runtime-icon-button {
    width: 1.85rem;
    height: 1.85rem;
  }

  .runtime-progress {
    gap: 0.24rem;
    padding: 0.34rem max(0.7rem, env(safe-area-inset-right)) 0.34rem max(0.7rem, env(safe-area-inset-left));
  }

  .runtime-lifecycle li {
    min-height: 2.2rem;
    padding: 0.28rem 0.55rem;
  }

  .runtime-lifecycle li small {
    display: none;
  }

  .runtime-section {
    padding: 0.72rem 0.82rem;
  }

  .runtime-dialog__footer {
    padding: 0.38rem max(0.7rem, env(safe-area-inset-right)) max(0.38rem, env(safe-area-inset-bottom)) max(0.7rem, env(safe-area-inset-left));
  }

  .runtime-dialog__footer .runtime-command {
    min-height: 2.1rem;
  }

  .runtime-dialog__message {
    min-height: 0;
    padding: 0.24rem max(0.7rem, env(safe-area-inset-right)) max(0.24rem, env(safe-area-inset-bottom)) max(0.7rem, env(safe-area-inset-left));
  }
}

/* Last cascade: keep the particle field exposed and run capabilities as a pinned 3D stack. */
html:has(.legacy-home),
.legacy-home {
  overflow-x: clip !important;
  overflow-y: visible !important;
}

body.system-body {
  overflow-x: clip !important;
  overflow-y: visible !important;
}

.legacy-home .hero-copy {
  --hero-copy-backdrop-brightness: 0.58;
  position: relative;
  isolation: isolate;
}

.legacy-home .hero-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -2.8rem -8rem -2.8rem -3.2rem;
  pointer-events: none;
  background: rgba(3, 4, 5, 0.025);
  -webkit-backdrop-filter: brightness(var(--hero-copy-backdrop-brightness)) saturate(0.9);
  backdrop-filter: brightness(var(--hero-copy-backdrop-brightness)) saturate(0.9);
  -webkit-mask-image: radial-gradient(
    ellipse 82% 76% at 32% 50%,
    #000 0%,
    rgba(0, 0, 0, 0.98) 48%,
    rgba(0, 0, 0, 0.62) 68%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 82% 76% at 32% 50%,
    #000 0%,
    rgba(0, 0, 0, 0.98) 48%,
    rgba(0, 0, 0, 0.62) 68%,
    transparent 100%
  );
}

@media (max-width: 980px) {
  .legacy-home .hero-copy {
    --hero-copy-backdrop-brightness: 0.5;
  }

  .legacy-home .hero-copy::before {
    inset: -2.5rem -3rem -2.5rem -2.2rem;
    -webkit-mask-image: radial-gradient(
      ellipse 96% 78% at 35% 52%,
      #000 0%,
      rgba(0, 0, 0, 0.98) 54%,
      rgba(0, 0, 0, 0.58) 76%,
      transparent 100%
    );
    mask-image: radial-gradient(
      ellipse 96% 78% at 35% 52%,
      #000 0%,
      rgba(0, 0, 0, 0.98) 54%,
      rgba(0, 0, 0, 0.58) 76%,
      transparent 100%
    );
  }
}

@media (max-width: 680px) {
  .legacy-home .hero-copy {
    --hero-copy-backdrop-brightness: 0.42;
  }

  .legacy-home .hero-copy::before {
    inset: -2.2rem -1.25rem -2.2rem -1.25rem;
    background: rgba(3, 4, 5, 0.035);
    -webkit-mask-image: radial-gradient(
      ellipse 112% 82% at 38% 52%,
      #000 0%,
      rgba(0, 0, 0, 0.98) 58%,
      rgba(0, 0, 0, 0.54) 79%,
      transparent 100%
    );
    mask-image: radial-gradient(
      ellipse 112% 82% at 38% 52%,
      #000 0%,
      rgba(0, 0, 0, 0.98) 58%,
      rgba(0, 0, 0, 0.54) 79%,
      transparent 100%
    );
  }
}

@media (orientation: landscape) and (max-height: 500px) and (max-width: 980px) {
  .legacy-home .hero-shell,
  .legacy-home .hero-shell__content {
    min-height: 100svh;
    height: 100svh;
  }

  .legacy-home .hero-shell__content {
    justify-content: flex-start;
    gap: 0.55rem;
    padding: max(0.7rem, env(safe-area-inset-top)) 1.5rem max(0.65rem, env(safe-area-inset-bottom));
  }

  .legacy-home .hero-copy {
    max-width: 44rem;
    padding: 0.25rem 0 0;
  }

  .legacy-home .hero-title {
    font-size: clamp(4.5rem, 24vh, 5.75rem);
    line-height: 0.86;
  }

  .legacy-home .hero-subtitle {
    margin: 0.45rem 0 0.55rem;
    font-size: 0.98rem;
    line-height: 1.45;
  }

  .legacy-home .hero-measure {
    font-size: 0.78rem;
    line-height: 1.48;
  }

  .legacy-home .hero-actions {
    gap: 0.65rem;
    margin-top: 0.7rem;
  }

  .legacy-home .action-primary,
  .legacy-home .action-secondary {
    min-height: 2.45rem;
    padding-inline: 1rem;
    font-size: 0.78rem;
  }

  .legacy-home .hero-bottomline,
  .legacy-home .hero-scroll-cue {
    display: none;
  }
}

.legacy-home .legacy-section--cards {
  overflow: visible !important;
}

.legacy-home .hero-copy,
.legacy-home .hero-topline,
.legacy-home .hero-bottomline {
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.92), 0 0 20px rgba(0, 0, 0, 0.72);
}

@media (max-width: 768px) {
  .legacy-home .legacy-section--cards {
    min-height: 520svh !important;
    overflow: clip;
  }

  .legacy-home .legacy-section--cards > .legacy-wrap {
    position: sticky;
    top: 0;
    min-height: 100svh;
    height: 100svh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    padding-top: max(4.25rem, env(safe-area-inset-top));
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }

  .legacy-home .legacy-section--cards .legacy-intro {
    margin-bottom: 0.5rem;
  }

  .legacy-home .legacy-section--cards .legacy-intro h2 {
    margin-bottom: 0;
    font-size: clamp(2rem, 9.4vw, 2.75rem);
    line-height: 0.98;
  }

  .legacy-home .legacy-section--cards .legacy-use-grid {
    position: relative;
    display: block;
    min-height: 0;
    width: 100%;
    perspective: 70rem;
    transform-style: preserve-3d;
  }

  .legacy-home .legacy-section--cards .use-case-card {
    position: absolute;
    top: calc(50% - 5.75rem);
    right: 0;
    left: 0;
    z-index: calc(2 + var(--card-index));
    min-height: 11.5rem;
    margin: 0;
    background: #151515;
    backface-visibility: hidden;
    will-change: transform, opacity, clip-path;
  }

  .legacy-home .legacy-section--cards .home-final-action {
    position: relative;
    z-index: 20;
    margin-top: 0.65rem;
    background: #111;
  }
}

@media (orientation: landscape) and (max-height: 500px) and (max-width: 980px) {
  .legacy-home .legacy-section--cards {
    min-height: 520svh !important;
    overflow: clip;
  }

  .legacy-home .legacy-section--cards > .legacy-wrap {
    position: sticky;
    top: 0;
    min-height: 100svh;
    height: 100svh;
    display: grid;
    grid-template-columns: minmax(12rem, 0.8fr) minmax(18rem, 1.2fr);
    grid-template-rows: minmax(0, 1fr) auto;
    column-gap: 1.2rem;
    overflow: hidden;
    padding-top: max(3.25rem, env(safe-area-inset-top));
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  }

  .legacy-home .legacy-section--cards .legacy-intro {
    align-self: center;
    margin: 0;
  }

  .legacy-home .legacy-section--cards .legacy-intro h2 {
    margin: 0;
    font-size: clamp(1.9rem, 6.8vh, 2.5rem);
    line-height: 0.98;
  }

  .legacy-home .legacy-section--cards .legacy-use-grid {
    position: relative;
    display: block;
    min-height: 0;
    perspective: 70rem;
    transform-style: preserve-3d;
  }

  .legacy-home .legacy-section--cards .use-case-card {
    position: absolute;
    top: calc(50% - 4.5rem);
    right: 0;
    left: 0;
    z-index: calc(2 + var(--card-index));
    min-height: 9rem;
    margin: 0;
    background: #151515;
    backface-visibility: hidden;
    will-change: transform, opacity, clip-path;
  }

  .legacy-home .legacy-section--cards .home-final-action {
    position: relative;
    z-index: 20;
    grid-column: 1 / -1;
    margin-top: 0.35rem;
    background: #111;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legacy-home .legacy-section--cards {
    min-height: auto !important;
  }

  .legacy-home .legacy-section--cards > .legacy-wrap {
    position: relative;
    min-height: 0;
    height: auto;
    display: block;
    overflow: visible;
  }

  .legacy-home .legacy-section--cards .legacy-use-grid {
    display: grid;
  }

  .legacy-home .legacy-section--cards .use-case-card {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
  }
}
