:root {
  color-scheme: dark;
  --bg: #000000;
  --panel: #10120f;
  --panel-strong: #171a16;
  --ink: #f4f0e6;
  --muted: #a8ada3;
  --soft: #73796f;
  --line: #2a2f28;
  --accent: #57d2c6;
  --accent-warm: #f0bd54;
  --accent-red: #e66c5c;
  --divider-line: rgba(255, 255, 255, 0.34);
  --neon-white: #fffdf2;
  --neon-ice: #eafcff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.52);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
}

body::before {
  display: none;
}

button,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  width: min(100%, 1120px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px;
  display: grid;
  place-items: center;
}

.about-page .page-shell {
  padding-top: 0;
  padding-bottom: 64px;
  place-items: start center;
}

.fixed-page-header {
  position: relative;
  z-index: 20;
  width: min(100%, 1120px);
  height: 112px;
  margin: 0 auto;
}

.site-nav {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 5;
  width: min(calc(100% - 56px), 860px);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  transform: translateX(-50%);
}

.site-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(12, 13, 12, 0.72);
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.28);
  text-decoration: none;
  backdrop-filter: blur(18px);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  border-color: rgba(255, 255, 255, 0.48);
  color: var(--neon-white);
  text-shadow:
    0 0 7px rgba(255, 255, 255, 0.75),
    0 0 18px rgba(234, 252, 255, 0.34);
}

.stage {
  width: min(100%, 860px);
  display: grid;
  gap: 24px;
}

body:not(.about-page) .stage {
  transform: translateY(clamp(-116px, -12vh, -72px));
}

.hero-copy {
  display: grid;
  gap: 14px;
  padding-top: 0;
}

.hero-title-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-title-row .eyebrow {
  min-width: 0;
}

.hero-title-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.hero-about-link {
  flex: 0 0 auto;
}

.logo-link {
  justify-self: center;
  display: block;
  line-height: 0;
}

.logo-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 4px;
  border-radius: 8px;
}

.hero-logo {
  justify-self: center;
  width: clamp(118px, 18vw, 168px);
  aspect-ratio: 1;
  display: block;
  object-fit: contain;
}

.about-page .fixed-page-header .logo-link {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
}

.about-page .fixed-page-header .hero-logo {
  width: clamp(78px, 10vw, 104px);
}

.about-page .fixed-page-header .site-nav {
  position: absolute;
  right: 0;
  left: auto;
  z-index: 1;
  width: auto;
  max-width: calc(50% - 78px);
  flex-wrap: wrap;
  pointer-events: auto;
  transform: none;
}

.eyebrow {
  position: relative;
  display: inline;
  max-width: 100%;
  margin: 0;
  color: var(--neon-white);
  background: linear-gradient(90deg, var(--neon-white), var(--neon-ice), #ffffff);
  background-clip: text;
  -webkit-background-clip: text;
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.45;
  text-shadow:
    0 0 7px rgba(255, 255, 255, 0.95),
    0 0 16px rgba(234, 252, 255, 0.72),
    0 0 32px rgba(255, 255, 255, 0.42),
    0 0 58px rgba(234, 252, 255, 0.22);
  animation: neon-flicker 3.2s steps(1, end) infinite;
  -webkit-text-fill-color: transparent;
}

.eyebrow.is-typing::after,
.eyebrow.typing-complete::after {
  display: inline-block;
  width: 0.62ch;
  height: 1.08em;
  margin-left: 5px;
  vertical-align: -0.16em;
  content: "";
  background: var(--neon-white);
  box-shadow:
    0 0 8px rgba(255, 255, 255, 0.95),
    0 0 18px rgba(234, 252, 255, 0.72);
  animation: cursor-blink 720ms steps(1, end) infinite;
}

@keyframes cursor-blink {
  50% {
    opacity: 0;
  }
}

@keyframes neon-flicker {
  0%,
  100% {
    filter: brightness(1);
  }

  41% {
    filter: brightness(1.24);
  }

  43% {
    filter: brightness(0.82);
  }

  44% {
    filter: brightness(1.18);
  }

  78% {
    filter: brightness(1.1);
  }
}

.composer {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(15, 17, 15, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.composer-dock {
  display: grid;
  gap: 12px;
}

.composer:focus-within {
  border-color: rgba(87, 210, 198, 0.58);
  box-shadow: var(--shadow), 0 0 0 3px rgba(87, 210, 198, 0.12);
}

.composer.is-dragging-files {
  border-color: rgba(240, 189, 84, 0.72);
  background:
    linear-gradient(135deg, rgba(240, 189, 84, 0.1), transparent 64%),
    rgba(15, 17, 15, 0.94);
  box-shadow:
    var(--shadow),
    0 0 0 3px rgba(240, 189, 84, 0.14),
    0 0 24px rgba(240, 189, 84, 0.12);
}

.under-search-actions {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.home-top-actions {
  position: fixed;
  top: 24px;
  right: 28px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.under-search-link,
.money-button,
.new-chat-button,
.web-search-toggle {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(12, 13, 12, 0.72);
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.28);
  text-decoration: none;
  backdrop-filter: blur(18px);
}

.web-search-toggle[hidden] {
  display: none;
}

.web-search-toggle {
  gap: 8px;
  color: rgba(234, 252, 255, 0.78);
  font-weight: 800;
}

.web-search-toggle svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.web-search-toggle.is-active {
  color: var(--accent-warm);
  border-color: rgba(240, 189, 84, 0.5);
  background: rgba(240, 189, 84, 0.1);
  text-shadow:
    0 0 8px rgba(240, 189, 84, 0.62),
    0 0 18px rgba(240, 189, 84, 0.28);
}

.web-search-toggle:disabled {
  cursor: default;
  opacity: 1;
}

.web-search-toggle.is-locked {
  border-color: rgba(240, 189, 84, 0.42);
}

.money-button {
  color: var(--accent-warm);
  text-shadow:
    0 0 8px rgba(240, 189, 84, 0.62),
    0 0 18px rgba(240, 189, 84, 0.28);
}

.new-chat-button {
  color: var(--neon-white);
}

.under-search-link.hero-about-link {
  color: var(--neon-white);
  text-shadow:
    0 0 7px rgba(255, 255, 255, 0.75),
    0 0 18px rgba(234, 252, 255, 0.34);
}

.under-search-actions .new-chat-button {
  display: none;
  margin-left: auto;
}

.under-search-actions .money-button {
  margin-left: auto;
}

.under-search-link:hover,
.under-search-link:focus-visible,
.money-button:hover,
.money-button:focus-visible,
.new-chat-button:hover,
.new-chat-button:focus-visible,
.web-search-toggle:hover,
.web-search-toggle:focus-visible {
  border-color: rgba(255, 255, 255, 0.48);
}

.under-search-link:hover,
.under-search-link:focus-visible,
.new-chat-button:hover,
.new-chat-button:focus-visible,
.web-search-toggle:hover,
.web-search-toggle:focus-visible {
  color: var(--neon-white);
  text-shadow:
    0 0 7px rgba(255, 255, 255, 0.75),
    0 0 18px rgba(234, 252, 255, 0.34);
}

.money-button:hover,
.money-button:focus-visible {
  color: var(--neon-white);
  text-shadow:
    0 0 7px rgba(255, 255, 255, 0.75),
    0 0 18px rgba(234, 252, 255, 0.34);
}

.hero-about-link:hover,
.hero-about-link:focus-visible {
  color: var(--accent-warm);
  text-shadow:
    0 0 8px rgba(240, 189, 84, 0.62),
    0 0 18px rgba(240, 189, 84, 0.28);
}

.login-gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
}

.login-gate[hidden] {
  display: none;
}

.login-gate-panel {
  width: min(100%, 440px);
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(240, 189, 84, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 16% 0, rgba(240, 189, 84, 0.14), transparent 40%),
    rgba(7, 9, 8, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 70px rgba(0, 0, 0, 0.54);
}

.login-gate-panel h2,
.login-gate-panel p {
  margin: 0;
}

.login-gate-panel h2 {
  color: var(--neon-white);
  font-size: 1.45rem;
  line-height: 1.15;
  text-shadow:
    0 0 9px rgba(255, 255, 255, 0.58),
    0 0 24px rgba(240, 189, 84, 0.2);
}

.login-gate-panel p:not(.kicker) {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.58;
}

.login-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.login-gate-actions button {
  font: inherit;
  font-weight: 850;
}

.about-stage {
  width: min(100%, 960px);
}

body.about-page:not(.support-page) .about-stage {
  width: min(100%, 1120px);
}

.about-hero {
  display: grid;
  gap: 16px;
  padding-top: 0;
}

.about-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: 3.45rem;
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow: 0 0 28px rgba(234, 252, 255, 0.18);
}

.belief-section {
  padding: 0 0 14px;
  border-bottom: 1px solid var(--divider-line);
  box-shadow: 0 10px 18px -18px rgba(234, 252, 255, 0.72);
}

.belief-section p {
  max-width: 840px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.02rem, 2vw, 1.28rem);
  font-weight: 750;
  line-height: 1.48;
}

.belief-section strong {
  color: var(--accent-warm);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-shadow:
    0 0 8px rgba(240, 189, 84, 0.72),
    0 0 20px rgba(240, 189, 84, 0.28);
}

.about-hero p,
.visibility-section p,
.about-panel p,
.compact-points,
.layer-tile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 14px;
}

.about-panel,
.layer-tile {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(15, 17, 15, 0.78);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
}

.about-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 100%;
  padding: 18px;
}

.about-panel-strong {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 62%),
    rgba(15, 17, 15, 0.82);
  border-color: rgba(255, 255, 255, 0.22);
}

.quiet-panel {
  border-color: rgba(87, 210, 198, 0.2);
}

.kicker {
  margin: 0;
  color: var(--neon-white);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow:
    0 0 7px rgba(255, 255, 255, 0.72),
    0 0 20px rgba(234, 252, 255, 0.3);
}

.about-panel h2,
.section-heading h2,
.layer-tile h3 {
  margin: 0;
  color: var(--ink);
  letter-spacing: 0;
}

.about-panel h2 {
  font-size: 1.35rem;
  line-height: 1.16;
}

.visibility-section {
  display: grid;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--divider-line);
  border-bottom: 1px solid var(--divider-line);
}

.visibility-section h2 {
  max-width: 780px;
  margin: 0;
  color: var(--ink);
  font-size: 1.85rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.visibility-section p {
  max-width: 760px;
}

.visibility-section .belief-section p {
  max-width: 840px;
  color: var(--ink);
  line-height: 1.48;
}

.visibility-section .belief-section .belief-copy {
  display: block;
  max-width: 1040px;
  color: var(--neon-white);
  background: linear-gradient(90deg, var(--neon-white), var(--neon-ice), #ffffff);
  background-clip: text;
  -webkit-background-clip: text;
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(1.08rem, 2vw, 1.34rem);
  font-weight: 800;
  line-height: 1.5;
  min-height: 3em;
  text-shadow:
    0 0 7px rgba(255, 255, 255, 0.95),
    0 0 16px rgba(234, 252, 255, 0.72),
    0 0 32px rgba(255, 255, 255, 0.42),
    0 0 58px rgba(234, 252, 255, 0.22);
  -webkit-text-fill-color: transparent;
}

.visibility-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.visibility-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

.visibility-points span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(87, 210, 198, 0.2);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(87, 210, 198, 0.08);
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-top: 8px;
}

.reference-card {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 12px;
  min-height: 218px;
  overflow: hidden;
  padding: 18px 16px 16px;
  border: 1px solid rgba(240, 189, 84, 0.26);
  border-radius: 8px;
  background: rgba(15, 17, 15, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 16px 42px rgba(0, 0, 0, 0.24);
  text-align: center;
  backdrop-filter: blur(18px);
}

.reference-card::before {
  position: absolute;
  top: 0;
  right: 14px;
  left: 14px;
  height: 2px;
  content: "";
  background: var(--divider-line);
}

.metric-label {
  color: var(--accent-warm);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
}

.reference-card strong {
  color: var(--neon-white);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(1.8rem, 3.2vw, 2.55rem);
  line-height: 1;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.74),
    0 0 22px rgba(234, 252, 255, 0.26);
}

.reference-card p {
  max-width: none;
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
}

.stat-gif {
  position: relative;
  width: 100%;
  height: 70px;
  min-height: 70px;
  overflow: hidden;
  border: 1px solid rgba(240, 189, 84, 0.18);
  border-radius: 7px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 0, rgba(240, 189, 84, 0.16), transparent 58%),
    rgba(7, 9, 8, 0.7);
  background-size: 15px 15px, 15px 15px, auto, auto;
  box-shadow: inset 0 0 24px rgba(240, 189, 84, 0.06);
}

.stat-gif::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.055) 0,
    rgba(255, 255, 255, 0.055) 1px,
    transparent 1px,
    transparent 5px
  );
  opacity: 0.42;
}

.stat-gif i {
  position: absolute;
  display: block;
}

.breach-gif::before {
  position: absolute;
  top: 31px;
  left: 32%;
  width: 52%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(240, 189, 84, 0.78), transparent);
  animation: breach-line 2.1s ease-in-out infinite;
}

.breach-doc {
  top: 16px;
  left: 14%;
  width: 40px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 50% / 18%;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.13), transparent 44%),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    0 0 14px rgba(255, 255, 255, 0.4),
    inset 0 -8px 0 rgba(255, 255, 255, 0.08);
  animation: database-pulse 2.1s ease-in-out infinite;
}

.breach-doc::before {
  position: absolute;
  top: -1px;
  right: -1px;
  left: -1px;
  height: 11px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  content: "";
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 13px 0 rgba(255, 255, 255, 0.1);
}

.breach-doc::after {
  position: absolute;
  top: 11px;
  left: 15px;
  width: 10px;
  height: 21px;
  content: "";
  background: linear-gradient(
    135deg,
    transparent 0 38%,
    var(--accent-warm) 39% 48%,
    transparent 49% 56%,
    var(--accent-warm) 57% 66%,
    transparent 67%
  );
  opacity: 0.9;
  filter: drop-shadow(0 0 8px rgba(240, 189, 84, 0.58));
}

.breach-pixel,
.request-packet,
.concern-dot,
.concern-data {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent-warm);
  box-shadow:
    0 0 8px rgba(240, 189, 84, 0.86),
    0 0 18px rgba(240, 189, 84, 0.36);
}

.breach-pixel {
  top: 27px;
  left: 36%;
  animation: record-leak 2.1s linear infinite;
  --leak-y: 0px;
}

.pixel-one {
  top: 20px;
  --leak-y: -10px;
}

.pixel-two {
  top: 31px;
  left: 39%;
  animation-delay: -0.45s;
  --leak-y: 8px;
}

.pixel-three {
  top: 39px;
  animation-delay: -0.9s;
  --leak-y: 16px;
}

.pixel-four {
  top: 25px;
  left: 43%;
  animation-delay: -1.35s;
  --leak-y: -2px;
}

.breach-thief {
  right: 13%;
  bottom: 12px;
  width: 34px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 16px 16px 7px 7px;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.16) 0 27%, transparent 28%),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    0 0 13px rgba(255, 255, 255, 0.36),
    inset 0 -7px 0 rgba(255, 255, 255, 0.08);
  animation: thief-hover 2.1s ease-in-out infinite;
}

.breach-thief::before {
  position: absolute;
  top: 12px;
  left: 8px;
  width: 18px;
  height: 5px;
  border-radius: 999px;
  content: "";
  background: var(--accent-warm);
  box-shadow: 0 0 10px rgba(240, 189, 84, 0.62);
}

.breach-thief::after {
  position: absolute;
  top: 14px;
  left: 12px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  content: "";
  background: #050605;
  box-shadow: 7px 0 0 #050605;
}

.request-building {
  bottom: 15px;
  right: 12%;
  width: 34px;
  height: 22px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.82);
}

.request-building::before {
  position: absolute;
  top: -12px;
  left: 0;
  width: 0;
  height: 0;
  border-right: 17px solid transparent;
  border-bottom: 11px solid rgba(255, 255, 255, 0.84);
  border-left: 17px solid transparent;
  content: "";
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.34));
}

.request-building::after {
  position: absolute;
  top: 4px;
  left: 6px;
  width: 3px;
  height: 16px;
  content: "";
  background: rgba(255, 255, 255, 0.76);
  box-shadow:
    9px 0 0 rgba(255, 255, 255, 0.76),
    18px 0 0 rgba(255, 255, 255, 0.76);
}

.request-provider {
  top: 18px;
  left: 12%;
  width: 32px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 5px;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.34);
}

.request-provider::before {
  position: absolute;
  top: 8px;
  left: 7px;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  content: "";
  background: rgba(255, 255, 255, 0.74);
  box-shadow:
    0 6px 0 rgba(255, 255, 255, 0.62),
    0 12px 0 rgba(255, 255, 255, 0.46);
}

.request-line {
  top: 31px;
  left: 30%;
  width: 40%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 189, 84, 0.74), transparent);
}

.request-packet {
  top: 28px;
  left: 30%;
  border-radius: 50%;
  animation: request-travel 2.4s ease-in-out infinite;
}

.growth-bar {
  bottom: 13px;
  width: 12px;
  border-radius: 4px 4px 0 0;
  background: var(--accent-warm);
  box-shadow:
    0 0 9px rgba(240, 189, 84, 0.74),
    0 0 20px rgba(240, 189, 84, 0.24);
  transform-origin: bottom;
  animation: bar-grow 2.2s ease-in-out infinite;
}

.bar-low {
  left: 25%;
  height: 18px;
}

.bar-mid {
  left: 46%;
  height: 30px;
  animation-delay: -0.25s;
}

.bar-high {
  left: 67%;
  height: 44px;
  animation-delay: -0.5s;
}

.growth-line {
  bottom: 34px;
  left: 18%;
  width: 66%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.62), #ffffff, var(--accent-warm));
  box-shadow:
    0 0 12px rgba(255, 255, 255, 0.58),
    0 0 22px rgba(240, 189, 84, 0.32);
  transform: rotate(-18deg);
  transform-origin: left center;
  animation: growth-line-pulse 2.2s ease-in-out infinite;
}

.concern-user {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.36);
}

.concern-user::after {
  position: absolute;
  top: 19px;
  left: 50%;
  width: 24px;
  height: 11px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 12px 12px 4px 4px;
  content: "";
  transform: translateX(-50%);
}

.user-one {
  top: 10px;
  left: 16%;
}

.user-two {
  top: 32px;
  left: 27%;
}

.user-three {
  top: 16px;
  left: 40%;
}

.concern-collector {
  top: 15px;
  right: 13%;
  width: 36px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 6px;
  box-shadow:
    0 0 13px rgba(255, 255, 255, 0.34),
    inset 0 0 18px rgba(240, 189, 84, 0.08);
  animation: collector-blink 2.2s ease-in-out infinite;
}

.concern-collector::before {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  content: "";
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 7px 0 rgba(255, 255, 255, 0.56),
    0 14px 0 rgba(255, 255, 255, 0.38);
}

.concern-warning {
  top: 7px;
  right: 41%;
  width: 18px;
  height: 18px;
  border: 1px solid var(--accent-warm);
  border-radius: 50%;
  box-shadow:
    0 0 9px rgba(240, 189, 84, 0.72),
    0 0 18px rgba(240, 189, 84, 0.26);
  animation: concern-warning 1.7s ease-in-out infinite;
}

.concern-warning::before {
  position: absolute;
  top: 2px;
  left: 50%;
  width: 3px;
  height: 7px;
  border-radius: 999px;
  content: "";
  background: var(--accent-warm);
  box-shadow: 0 0 8px rgba(240, 189, 84, 0.78);
  transform: translateX(-50%);
}

.concern-warning::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  width: 4px;
  height: 4px;
  margin: auto;
  border-radius: 50%;
  content: "";
  background: var(--accent-warm);
  box-shadow: 0 0 8px rgba(240, 189, 84, 0.78);
}

.concern-data {
  top: var(--start-top);
  left: var(--start-left);
  border-radius: 50%;
  animation: data-collect 2.25s linear infinite;
}

.data-one {
  --start-left: 29%;
  --start-top: 18px;
}

.data-two {
  --start-left: 40%;
  --start-top: 42px;
  animation-delay: -0.75s;
}

.data-three {
  --start-left: 50%;
  --start-top: 25px;
  animation-delay: -1.5s;
}

@keyframes breach-line {
  50% {
    opacity: 0.38;
    transform: scaleX(0.7);
  }
}

@keyframes database-pulse {
  50% {
    filter: brightness(1.28);
    transform: translateY(-1px);
  }
}

@keyframes thief-hover {
  50% {
    filter: brightness(1.18);
    transform: translateY(-2px);
  }
}

@keyframes record-leak {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(1);
  }

  16%,
  82% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(108px, var(--leak-y)) scale(0.52);
  }
}

@keyframes request-travel {
  0% {
    left: 30%;
    opacity: 0;
  }

  18%,
  82% {
    opacity: 1;
  }

  100% {
    left: calc(70% - 6px);
    opacity: 0;
  }
}

@keyframes bar-grow {
  0%,
  100% {
    transform: scaleY(0.72);
  }

  48% {
    transform: scaleY(1);
  }
}

@keyframes growth-line-pulse {
  50% {
    opacity: 0.78;
    transform: rotate(-18deg) scaleX(0.96);
  }
}

@keyframes collector-blink {
  50% {
    border-color: rgba(240, 189, 84, 0.66);
    filter: brightness(1.18);
  }
}

@keyframes concern-warning {
  50% {
    opacity: 0.5;
    transform: scale(1.18);
  }
}

@keyframes data-collect {
  0% {
    opacity: 0;
    top: var(--start-top);
    left: var(--start-left);
    transform: scale(0.8);
  }

  22%,
  78% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    top: 31px;
    left: calc(78% - 6px);
    transform: scale(0.46);
  }
}

.source-section {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  padding-top: 2px;
  color: var(--muted);
  font-size: 0.84rem;
}

.source-section span {
  color: var(--ink);
  font-weight: 800;
}

.source-section small {
  flex-basis: 100%;
  color: var(--soft);
  font-size: 0.78rem;
  line-height: 1.4;
}

.source-section a {
  color: var(--accent);
  font-size: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(87, 210, 198, 0.46);
  text-underline-offset: 3px;
}

.source-section a:hover,
.source-section a:focus-visible {
  color: var(--neon-white);
  text-shadow: 0 0 12px rgba(234, 252, 255, 0.5);
}

.about-section {
  display: grid;
  gap: 14px;
}

.section-heading {
  display: grid;
  gap: 8px;
}

.section-heading h2 {
  font-size: 1.85rem;
  line-height: 1.15;
}

.compact-points {
  display: grid;
  gap: 8px;
  padding-left: 1rem;
}

.compact-points li::marker {
  color: var(--neon-white);
}

.layer-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.layer-tile {
  display: grid;
  gap: 12px;
  min-height: 218px;
  align-content: start;
  padding: 17px 17px 12px;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(7, 9, 8, 0.62);
}

.layer-tile h3 {
  order: 2;
  color: var(--accent-warm);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.2;
}

.layer-tile p {
  order: 3;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 650;
}

.meaning-section {
  position: relative;
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding-top: 14px;
}

.meaning-section::before,
.meaning-section::after {
  position: absolute;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  background: var(--divider-line);
}

.meaning-section::before {
  top: -11px;
}

.meaning-section::after {
  bottom: -15px;
}

.meaning-section h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.85rem;
  line-height: 1.15;
}

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

.meaning-card {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(7, 9, 8, 0.62);
}

.meaning-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-warm);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
}

.meaning-icon {
  position: relative;
  display: inline-block;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border: 1px solid rgba(240, 189, 84, 0.48);
  border-radius: 7px;
  color: var(--accent-warm);
  background: rgba(240, 189, 84, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 12px rgba(240, 189, 84, 0.12);
}

.meaning-icon::before,
.meaning-icon::after {
  box-sizing: border-box;
}

.icon-government::before {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 0;
  height: 0;
  content: "";
  border-right: 8px solid transparent;
  border-bottom: 6px solid currentColor;
  border-left: 8px solid transparent;
  filter: drop-shadow(0 0 7px rgba(240, 189, 84, 0.28));
}

.icon-government::after {
  position: absolute;
  right: 5px;
  bottom: 5px;
  left: 5px;
  height: 10px;
  content: "";
  border-bottom: 2px solid currentColor;
  background:
    linear-gradient(currentColor 0 0) 2px 2px / 2px 8px no-repeat,
    linear-gradient(currentColor 0 0) 7px 2px / 2px 8px no-repeat,
    linear-gradient(currentColor 0 0) 12px 2px / 2px 8px no-repeat;
}

.icon-corporation::before,
.icon-corporation::after {
  position: absolute;
  bottom: 4px;
  content: "";
  border: 1px solid currentColor;
  border-radius: 2px;
}

.icon-corporation::before {
  left: 5px;
  width: 10px;
  height: 16px;
  z-index: 1;
  border-bottom-width: 2px;
  background:
    linear-gradient(currentColor 0 0) 3px 4px / 2px 2px no-repeat,
    linear-gradient(currentColor 0 0) 7px 4px / 2px 2px no-repeat,
    linear-gradient(currentColor 0 0) 3px 8px / 2px 2px no-repeat,
    linear-gradient(currentColor 0 0) 7px 8px / 2px 2px no-repeat,
    linear-gradient(currentColor 0 0) 3px 12px / 2px 2px no-repeat,
    linear-gradient(currentColor 0 0) 7px 12px / 2px 2px no-repeat;
}

.icon-corporation::after {
  right: 5px;
  width: 8px;
  height: 12px;
  z-index: 2;
  background:
    linear-gradient(currentColor 0 0) 3px 3px / 2px 2px no-repeat,
    linear-gradient(currentColor 0 0) 3px 7px / 2px 2px no-repeat,
    linear-gradient(rgba(24, 19, 12, 0.96) 0 0);
}

.icon-hacker::before {
  position: absolute;
  top: 5px;
  left: 4px;
  width: 18px;
  height: 12px;
  content: "";
  border: 1.5px solid currentColor;
  border-radius: 2px;
  background:
    linear-gradient(currentColor 0 0) 4px 4px / 5px 1.5px no-repeat,
    linear-gradient(currentColor 0 0) 4px 7px / 10px 1.5px no-repeat;
  animation: none;
}

.icon-hacker::after {
  position: absolute;
  left: 7px;
  bottom: 4px;
  width: 12px;
  height: 5px;
  content: "";
  border-bottom: 1.5px solid currentColor;
  background: linear-gradient(currentColor 0 0) center top / 2px 5px no-repeat;
  animation: none;
}

.meaning-card p {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.62;
}

.access-section {
  position: relative;
  display: grid;
  gap: 18px;
  margin-top: 0;
  padding: 22px;
  border: 1px solid rgba(240, 189, 84, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 0, rgba(240, 189, 84, 0.13), transparent 34%),
    rgba(7, 9, 8, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 18px 46px rgba(0, 0, 0, 0.22);
}

.access-section h3 {
  max-width: 920px;
  margin: 0;
  color: var(--neon-white);
  font-size: clamp(1.95rem, 3vw, 2.65rem);
  font-weight: 850;
  line-height: 1.15;
  text-shadow:
    0 0 9px rgba(255, 255, 255, 0.58),
    0 0 24px rgba(240, 189, 84, 0.22);
}

.access-section p {
  max-width: 1020px;
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.58;
}

.access-section > div:first-child {
  display: grid;
  gap: 10px;
}

.access-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.access-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(240, 189, 84, 0.44);
  border-radius: 7px;
  color: var(--accent-warm);
  background: rgba(240, 189, 84, 0.12);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.access-note {
  color: var(--neon-white);
  font-size: 1.08rem;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.18);
}

.layer-demo {
  position: relative;
  order: 1;
  height: 66px;
  min-height: 66px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 7px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    rgba(7, 9, 8, 0.72);
  background-size: 16px 16px, 16px 16px, auto;
}

.layer-demo::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.04) 0,
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px,
    transparent 4px
  );
  opacity: 0.55;
}

.layer-demo i {
  position: absolute;
  display: block;
}

.demo-avatar-head {
  top: 12px;
  left: 50%;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.62);
  transform: translateX(-50%);
}

.demo-avatar-body {
  top: 34px;
  left: 50%;
  width: 38px;
  height: 14px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px 14px 5px 5px;
  transform: translateX(-50%);
}

.demo-dot,
.cipher-dot,
.route-packet,
.pay-spark {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-white);
  box-shadow:
    0 0 9px rgba(255, 255, 255, 0.9),
    0 0 18px rgba(234, 252, 255, 0.44);
}

.demo-identity .dot-one {
  top: 10px;
  left: 16%;
  animation: demo-blink 1.8s steps(1, end) infinite;
}

.demo-identity .dot-two {
  right: 17%;
  bottom: 12px;
  animation: demo-blink 1.8s steps(1, end) infinite reverse;
}

.demo-identity .dot-three {
  top: 16px;
  right: 24%;
  animation: demo-blink 2.4s steps(1, end) infinite;
}

.cipher-dot {
  top: 25px;
  left: 10%;
  animation: cipher-flow 2.6s linear infinite;
}

.cipher-dot.dot-two {
  animation-delay: -0.8s;
}

.cipher-dot.dot-three {
  animation-delay: -1.6s;
}

.cipher-lock {
  top: 25px;
  left: 50%;
  width: 20px;
  height: 16px;
  border: 2px solid var(--neon-white);
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.64);
  transform: translate(-50%, -50%);
}

.cipher-lock::before {
  position: absolute;
  left: 4px;
  bottom: 12px;
  width: 8px;
  height: 9px;
  border: 2px solid var(--neon-white);
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  content: "";
}

.cipher-bar {
  right: 12%;
  width: 30px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 9px rgba(255, 255, 255, 0.44);
  animation: cipher-bars 1.8s ease-in-out infinite;
}

.bar-one {
  top: 17px;
}

.bar-two {
  top: 28px;
  width: 22px;
  animation-delay: -0.4s;
}

.bar-three {
  top: 39px;
  width: 36px;
  animation-delay: -0.8s;
}

.route-node {
  width: 13px;
  height: 13px;
  border: 1px solid var(--neon-white);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.58);
}

.node-start {
  top: 24px;
  left: 12%;
}

.node-relay {
  top: 13px;
  left: 48%;
}

.node-end {
  right: 12%;
  bottom: 14px;
}

.route-path {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.62), transparent);
  transform-origin: left center;
}

.path-one {
  top: 29px;
  left: 18%;
  width: 34%;
  transform: rotate(-15deg);
}

.path-two {
  top: 25px;
  right: 18%;
  width: 34%;
  transform: rotate(25deg);
}

.route-packet {
  top: 25px;
  left: 13%;
  animation: relay-hop 2.8s ease-in-out infinite;
}

.log-line {
  left: 13%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 0 9px rgba(255, 255, 255, 0.28);
  animation: log-fade 2.8s linear infinite;
}

.log-one {
  top: 16px;
  width: 68%;
}

.log-two {
  top: 28px;
  width: 52%;
  animation-delay: -0.35s;
}

.log-three {
  top: 40px;
  width: 60%;
  animation-delay: -0.7s;
}

.wipe-line {
  top: 8px;
  bottom: 8px;
  left: 10%;
  width: 2px;
  border-radius: 999px;
  background: var(--neon-white);
  box-shadow:
    0 0 9px rgba(255, 255, 255, 0.84),
    0 0 22px rgba(234, 252, 255, 0.48);
  animation: retention-wipe 2.8s linear infinite;
}

.pay-token {
  top: 17px;
  width: 32px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.42);
}

.token-one {
  left: 22%;
  animation: token-left 2.7s ease-in-out infinite;
}

.token-two {
  right: 22%;
  animation: token-right 2.7s ease-in-out infinite;
}

.pay-divider {
  top: 10px;
  bottom: 10px;
  left: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 0 13px rgba(255, 255, 255, 0.42);
}

.pay-spark {
  top: 25px;
  left: calc(50% - 3px);
  animation: spark-pop 1.8s steps(1, end) infinite;
}

.spark-two {
  animation-delay: -0.9s;
}

@keyframes demo-blink {
  50% {
    opacity: 0.25;
  }
}

@keyframes cipher-flow {
  0% {
    opacity: 0;
    transform: translateX(0);
  }

  12%,
  84% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(122px);
  }
}

@keyframes cipher-bars {
  50% {
    opacity: 0.38;
    transform: translateX(-6px);
  }
}

@keyframes relay-hop {
  0%,
  100% {
    opacity: 0;
    transform: translate(0, 0);
  }

  16% {
    opacity: 1;
  }

  50% {
    opacity: 1;
    transform: translate(70px, -12px);
  }

  86% {
    opacity: 1;
  }

  100% {
    transform: translate(138px, 16px);
  }
}

@keyframes log-fade {
  0%,
  36% {
    opacity: 1;
  }

  58%,
  100% {
    opacity: 0.16;
    transform: translateX(9px);
  }
}

@keyframes retention-wipe {
  0% {
    left: 9%;
    opacity: 0;
  }

  16%,
  80% {
    opacity: 1;
  }

  100% {
    left: 88%;
    opacity: 0;
  }
}

@keyframes token-left {
  50% {
    transform: translateX(-10px);
  }
}

@keyframes token-right {
  50% {
    transform: translateX(10px);
  }
}

@keyframes spark-pop {
  50% {
    opacity: 0;
    transform: scale(2.2);
  }
}

.bottom-layout {
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
}

textarea {
  width: 100%;
  min-height: 70px;
  max-height: 190px;
  resize: none;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 1.2rem;
  line-height: 1.45;
}

textarea::placeholder {
  color: #747b71;
}

textarea:focus-visible {
  outline: 0;
}

.composer-actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.attachment-list {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-end;
  flex: 1 1 auto;
  min-width: 0;
  gap: 8px;
  max-height: none;
  overflow: visible;
  scrollbar-width: thin;
}

.attachment-list[hidden] {
  display: none;
}

.attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: min(100%, 260px);
  min-height: 32px;
  padding: 4px 6px 4px 9px;
  border: 1px solid rgba(240, 189, 84, 0.28);
  border-radius: 8px;
  color: rgba(244, 240, 230, 0.9);
  background: rgba(240, 189, 84, 0.07);
  font-size: 0.82rem;
}

.attachment-name {
  min-width: 0;
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-chip small {
  flex: 0 0 auto;
  color: rgba(244, 240, 230, 0.56);
  font-size: 0.72rem;
}

.attachment-chip button {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  color: rgba(244, 240, 230, 0.76);
  background: rgba(255, 255, 255, 0.08);
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1;
}

.engine-wrap,
.model-wrap {
  position: relative;
}

.engine-toggle,
.model-toggle,
.submit-button,
.web-search-toggle,
.attachment-button,
.stop-button,
.engine-menu button,
.model-menu button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--panel-strong);
}

.engine-toggle,
.model-toggle,
.submit-button,
.web-search-toggle,
.attachment-button,
.stop-button {
  min-height: 44px;
  border-radius: 8px;
}

.engine-toggle,
.model-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px 7px 8px;
}

.model-toggle {
  width: max-content;
  max-width: min(420px, calc(100vw - 32px));
}

.model-toggle:disabled {
  cursor: default;
  opacity: 1;
}

.model-toggle:disabled svg {
  display: none;
}

#selectedModelName {
  min-width: 0;
  white-space: nowrap;
}

.selected-model-cost {
  flex: 0 0 auto;
  color: var(--accent-warm);
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.engine-toggle svg,
.model-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--soft);
}

.engine-menu,
.model-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 4;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(15, 17, 15, 0.97);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.54);
}

.engine-menu {
  width: 210px;
}

.model-menu {
  width: max-content;
  min-width: 100%;
  max-width: calc(100vw - 32px);
}

.engine-menu[hidden],
.model-menu[hidden] {
  display: none;
}

.engine-menu button,
.model-menu button {
  min-height: 40px;
  border-radius: 6px;
  padding: 0 10px;
  text-align: left;
}

.model-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 100%;
}

.model-option-name {
  flex: 0 1 auto;
  white-space: nowrap;
}

.model-option-cost {
  flex: 0 0 auto;
  color: var(--accent-warm);
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.result-panel {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(15, 17, 15, 0.88);
  box-shadow: var(--shadow);
}

.result-answer {
  display: grid;
  gap: 10px;
}

.result-panel[hidden] {
  display: none;
}

.result-panel.is-error {
  border-color: rgba(230, 108, 92, 0.52);
}

.message-row {
  display: flex;
  min-width: 0;
}

.sent-message-row {
  justify-content: flex-end;
}

.sent-message {
  display: inline-block;
  align-self: flex-end;
  flex: 0 1 auto;
  width: fit-content;
  max-width: min(52ch, calc(100% - 48px));
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(30, 33, 29, 0.94);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  line-height: 1.5;
  overflow-wrap: break-word;
  white-space: pre-wrap;
}

.chat-thread {
  width: 100%;
  display: grid;
  gap: 18px;
}

.chat-turn {
  display: grid;
  gap: 4px;
}

.chat-history-user-row {
  margin-top: 0;
}

.result-meta {
  color: var(--accent-warm);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
}

.support-stage {
  gap: 18px;
}

.support-hero,
.support-card,
.support-pricing,
.referral-card,
.support-close {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(7, 9, 8, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 46px rgba(0, 0, 0, 0.22);
}

.support-hero {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-color: rgba(240, 189, 84, 0.24);
  background:
    radial-gradient(circle at 14% 0, rgba(240, 189, 84, 0.14), transparent 38%),
    rgba(7, 9, 8, 0.72);
}

.support-hero h1,
.support-pricing h2,
.support-close h2 {
  margin: 0;
  color: var(--neon-white);
  line-height: 1.08;
  text-shadow:
    0 0 9px rgba(255, 255, 255, 0.58),
    0 0 24px rgba(240, 189, 84, 0.2);
}

.support-hero h1 {
  max-width: 820px;
  font-size: clamp(1.35rem, 2.6vw, 2.15rem);
}

.support-hero p,
.support-card p,
.support-pricing p,
.referral-card p,
.support-close p {
  max-width: 860px;
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.65;
}

.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 12px;
}

.support-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
}

.support-card-strong {
  border-color: rgba(240, 189, 84, 0.22);
  background:
    linear-gradient(135deg, rgba(240, 189, 84, 0.09), transparent 58%),
    rgba(7, 9, 8, 0.7);
}

.support-card h2 {
  margin: 0;
  color: var(--accent-warm);
  font-size: 1.35rem;
  line-height: 1.18;
}

.support-pricing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  align-items: center;
  gap: 18px;
  padding: 20px;
  border-color: rgba(87, 210, 198, 0.22);
}

.support-pricing > div:first-child {
  display: grid;
  gap: 10px;
}

.support-price-box {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 18px;
  border: 1px solid rgba(240, 189, 84, 0.34);
  border-radius: 8px;
  background: rgba(240, 189, 84, 0.09);
  text-align: center;
}

.support-price-box strong,
.referral-card strong {
  color: var(--accent-warm);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1;
  text-shadow:
    0 0 9px rgba(240, 189, 84, 0.62),
    0 0 24px rgba(240, 189, 84, 0.26);
}

.support-price-box span {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
}

.support-referral {
  display: grid;
  gap: 12px;
}

.referral-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-color: rgba(240, 189, 84, 0.28);
}

.support-close {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-color: rgba(255, 255, 255, 0.16);
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.support-survey {
  display: grid;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(240, 189, 84, 0.24);
}

.support-survey h2 {
  margin: 0;
  color: var(--neon-white);
  font-size: 1.1rem;
  line-height: 1.2;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.42),
    0 0 18px rgba(240, 189, 84, 0.18);
}

.survey-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.survey-options button {
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 850;
}

.survey-options button:hover,
.survey-options button:focus-visible {
  border-color: rgba(240, 189, 84, 0.5);
  color: var(--neon-white);
  background: rgba(240, 189, 84, 0.08);
}

.survey-options button.is-selected {
  border-color: rgba(240, 189, 84, 0.76);
  color: var(--accent-warm);
  background: rgba(240, 189, 84, 0.12);
  box-shadow:
    0 0 14px rgba(240, 189, 84, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.survey-options button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.survey-results {
  display: grid;
  gap: 9px;
  max-width: 620px;
}

.survey-result-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
}

.survey-result-row span,
.survey-result-row strong {
  color: rgba(244, 240, 230, 0.86);
  font-size: 0.86rem;
  font-weight: 850;
}

.survey-result-row strong {
  color: var(--accent-warm);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.survey-result-row i {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.survey-result-row b {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(240, 189, 84, 0.78), rgba(255, 255, 255, 0.82));
  box-shadow: 0 0 14px rgba(240, 189, 84, 0.24);
  transition: width 220ms ease;
}

.survey-status {
  color: rgba(244, 240, 230, 0.68);
  font-size: 0.9rem;
  font-weight: 700;
}

.contact-panel {
  display: grid;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(240, 189, 84, 0.24);
}

.contact-panel h2 {
  margin: 0;
  color: var(--neon-white);
  font-size: 1.1rem;
  line-height: 1.2;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.42),
    0 0 18px rgba(240, 189, 84, 0.18);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
}

.contact-form label {
  display: grid;
  gap: 7px;
}

.contact-form label span {
  color: rgba(244, 240, 230, 0.76);
  font-size: 0.82rem;
  font-weight: 850;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
  font: inherit;
  font-size: 0.94rem;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.contact-form input {
  min-height: 44px;
  padding: 0 13px;
}

.contact-form textarea {
  min-height: 116px;
  padding: 12px 13px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(244, 240, 230, 0.42);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(240, 189, 84, 0.55);
  box-shadow:
    0 0 0 3px rgba(240, 189, 84, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.contact-message-field,
.contact-form-actions {
  grid-column: 1 / -1;
}

.contact-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.contact-form-actions .money-button {
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.contact-form-actions .money-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.contact-status {
  margin: 0;
  color: rgba(244, 240, 230, 0.68);
  font-size: 0.9rem;
  font-weight: 700;
}

.auth-stage {
  width: min(100%, 760px);
}

.auth-hero p {
  max-width: 640px;
}

.auth-card,
.member-card {
  gap: 16px;
}

.auth-form {
  display: grid;
  gap: 14px;
  max-width: 560px;
}

.auth-form label {
  display: grid;
  gap: 7px;
}

.auth-form label span {
  color: rgba(244, 240, 230, 0.76);
  font-size: 0.82rem;
  font-weight: 850;
}

.auth-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
  font: inherit;
  font-size: 1rem;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.auth-form input:focus {
  border-color: rgba(240, 189, 84, 0.55);
  box-shadow:
    0 0 0 3px rgba(240, 189, 84, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.auth-actions button,
.auth-actions a {
  font: inherit;
  font-weight: 850;
}

.auth-status {
  margin: 0;
  color: rgba(244, 240, 230, 0.68);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.5;
}

.member-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.member-detail-grid article {
  display: grid;
  gap: 8px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.member-detail-grid span {
  color: rgba(244, 240, 230, 0.68);
  font-size: 0.82rem;
  font-weight: 850;
}

.member-detail-grid strong {
  color: var(--accent-warm);
  overflow-wrap: anywhere;
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.05rem;
  line-height: 1.3;
  text-shadow:
    0 0 8px rgba(240, 189, 84, 0.5),
    0 0 18px rgba(240, 189, 84, 0.18);
}

.member-credit-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.top-up-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 12px;
  border: 1px solid rgba(240, 189, 84, 0.44);
  border-radius: 999px;
  color: var(--accent-warm);
  background: rgba(240, 189, 84, 0.08);
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 18px rgba(240, 189, 84, 0.1);
}

.top-up-button:hover,
.top-up-button:focus-visible {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.1);
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.78),
    0 0 22px rgba(240, 189, 84, 0.34);
}

.member-page .member-stage {
  width: min(100%, 1040px);
}

.member-page .fixed-page-header {
  height: 88px;
}

.member-page .fixed-page-header .hero-logo {
  width: 82px;
}

.member-hero {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 20px;
}

.member-hero > div {
  display: grid;
  gap: 12px;
}

.member-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(87, 210, 198, 0.28);
  border-radius: 999px;
  color: rgba(244, 240, 230, 0.82);
  background: rgba(87, 210, 198, 0.08);
  white-space: nowrap;
}

.member-status-pill:empty {
  display: none;
}

.member-dashboard {
  display: grid;
  gap: 13px;
}

.member-primary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 13px;
}

.member-balance-card,
.member-referral-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(240, 189, 84, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 0 0, rgba(240, 189, 84, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent 62%),
    rgba(7, 9, 8, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 18px 46px rgba(0, 0, 0, 0.24);
}

.member-referral-card {
  display: grid;
  align-content: start;
  justify-content: stretch;
  gap: 13px;
  border-color: rgba(87, 210, 198, 0.2);
  background:
    radial-gradient(circle at 100% 0, rgba(87, 210, 198, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 64%),
    rgba(7, 9, 8, 0.74);
}

.member-balance-card > div {
  display: grid;
  gap: 6px;
}

.member-card-label {
  color: rgba(244, 240, 230, 0.7);
  font-size: 0.82rem;
  font-weight: 900;
}

.member-balance-card strong {
  color: var(--accent-warm);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(2.2rem, 5vw, 3.7rem);
  line-height: 0.96;
  text-shadow:
    0 0 10px rgba(240, 189, 84, 0.64),
    0 0 28px rgba(240, 189, 84, 0.24);
}

.member-balance-card p {
  margin: 0;
  color: rgba(244, 240, 230, 0.78);
  font-size: 0.95rem;
  font-weight: 750;
}

.member-referral-card p {
  max-width: 34ch;
  margin: 0;
  color: rgba(244, 240, 230, 0.74);
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1.52;
}

.member-referral-card strong {
  color: var(--accent-warm);
  overflow-wrap: anywhere;
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.25rem;
  line-height: 1.1;
  text-shadow:
    0 0 8px rgba(240, 189, 84, 0.5),
    0 0 18px rgba(240, 189, 84, 0.18);
}

.member-balance-card .top-up-button {
  min-height: 46px;
  padding: 12px 20px;
  font-size: 0.94rem;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow:
    0 0 18px rgba(240, 189, 84, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.member-page .member-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.member-page .member-detail-grid article {
  position: relative;
  align-content: start;
  min-height: 118px;
  gap: 9px;
  padding: 16px;
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(7, 9, 8, 0.7);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 34px rgba(0, 0, 0, 0.18);
}

.member-page .member-detail-grid article::before {
  content: "";
  position: absolute;
  top: 0;
  right: 16px;
  left: 16px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(240, 189, 84, 0.72), transparent);
}

.member-page .member-detail-grid span {
  color: rgba(244, 240, 230, 0.72);
  font-size: 0.78rem;
  letter-spacing: 0;
}

.member-page .member-detail-grid strong {
  font-size: 1.08rem;
}

.member-page .member-detail-grid small {
  color: rgba(244, 240, 230, 0.56);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.35;
}

.member-username-card {
  align-content: start;
}

.member-detail-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.member-inline-edit {
  flex: 0 0 auto;
  margin-left: auto;
}

.member-referral-row {
  display: grid;
  gap: 9px;
}

.mini-copy-button {
  width: max-content;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(240, 189, 84, 0.36);
  border-radius: 999px;
  color: var(--accent-warm);
  background: rgba(240, 189, 84, 0.08);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 900;
  cursor: pointer;
}

.mini-copy-button:hover,
.mini-copy-button:focus-visible {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.09);
}

.member-action-strip {
  justify-content: flex-end;
  padding-top: 6px;
}

.member-action-strip .money-button {
  margin-right: auto;
}

.change-username-form,
.change-password-form,
.top-up-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(240, 189, 84, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(240, 189, 84, 0.07), transparent 58%),
    rgba(7, 9, 8, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 34px rgba(0, 0, 0, 0.18);
}

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

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

.member-inline-form {
  margin-top: 6px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(240, 189, 84, 0.08), transparent 60%),
    rgba(0, 0, 0, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.change-username-form[hidden],
.change-password-form[hidden],
.top-up-form[hidden] {
  display: none;
}

.change-username-form label,
.change-password-form label,
.top-up-form label {
  display: grid;
  gap: 7px;
}

.change-username-form label span,
.change-password-form label span,
.top-up-form label span {
  color: rgba(244, 240, 230, 0.72);
  font-size: 0.78rem;
  font-weight: 850;
}

.change-username-form input,
.change-password-form input,
.top-up-form input {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
  font: inherit;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.change-username-form input:focus,
.change-password-form input:focus,
.top-up-form input:focus {
  border-color: rgba(240, 189, 84, 0.55);
  box-shadow:
    0 0 0 3px rgba(240, 189, 84, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.change-username-actions,
.change-password-actions,
.top-up-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.change-password-actions button,
.top-up-actions button {
  font: inherit;
  font-weight: 850;
}

.admin-stage {
  width: min(100%, 1160px);
}

.admin-panel {
  display: grid;
  gap: 14px;
}

.admin-panel[hidden],
.admin-locked-card[hidden] {
  display: none;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(0, 1.14fr);
  gap: 14px;
  align-items: start;
}

.admin-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(240, 189, 84, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 60%),
    rgba(7, 9, 8, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 18px 44px rgba(0, 0, 0, 0.24);
}

.admin-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.admin-card-head h2 {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.1;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.32);
}

.admin-form {
  display: grid;
  gap: 12px;
}

.admin-form label,
.admin-balance-form {
  display: grid;
  gap: 7px;
}

.admin-form label span,
.admin-balance-form label span {
  color: rgba(244, 240, 230, 0.72);
  font-size: 0.78rem;
  font-weight: 850;
}

.admin-form input,
.admin-balance-form input,
.admin-balance-form select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
  font: inherit;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.admin-form input:focus,
.admin-balance-form input:focus,
.admin-balance-form select:focus {
  border-color: rgba(240, 189, 84, 0.55);
  box-shadow:
    0 0 0 3px rgba(240, 189, 84, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.admin-checkbox {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px !important;
  color: rgba(244, 240, 230, 0.78);
  font-weight: 800;
}

.admin-checkbox input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--accent-warm);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.admin-member-list {
  display: grid;
  gap: 10px;
}

.admin-empty {
  margin: 0;
  color: rgba(244, 240, 230, 0.72);
  font-weight: 800;
}

.admin-member-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, auto) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(240, 189, 84, 0.06), transparent 62%),
    rgba(0, 0, 0, 0.24);
}

.admin-member-summary {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.admin-member-name-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.admin-member-name {
  overflow: hidden;
  color: var(--ink);
  font-size: 1.02rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-role {
  flex: 0 0 auto;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(244, 240, 230, 0.68);
  font-size: 0.68rem;
  font-weight: 900;
}

.admin-role-admin {
  border-color: rgba(240, 189, 84, 0.42);
  color: var(--accent-warm);
  background: rgba(240, 189, 84, 0.08);
}

.admin-member-referral {
  overflow-wrap: anywhere;
  color: rgba(244, 240, 230, 0.58);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-member-balance {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.admin-member-balance span {
  color: rgba(244, 240, 230, 0.58);
  font-size: 0.72rem;
  font-weight: 900;
}

.admin-member-balance strong {
  color: var(--accent-warm);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.16rem;
  text-shadow: 0 0 12px rgba(240, 189, 84, 0.28);
}

.admin-member-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.admin-delete-button {
  border-color: rgba(255, 92, 92, 0.36);
  color: #ffb0b0;
}

.admin-delete-button:hover,
.admin-delete-button:focus-visible {
  border-color: rgba(255, 92, 92, 0.72);
  color: #fff;
  box-shadow: 0 0 16px rgba(255, 92, 92, 0.2);
}

.admin-delete-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.admin-balance-form {
  grid-column: 1 / -1;
  grid-template-columns: 120px minmax(120px, 1fr) auto;
  align-items: center;
}

.admin-balance-form .money-button,
.admin-form .money-button {
  font: inherit;
  font-weight: 900;
}

.change-password-actions button:disabled,
.top-up-actions button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.change-password-actions .auth-status,
.top-up-actions .auth-status {
  margin-left: 2px;
}

.result-output {
  display: grid;
  gap: 12px;
  max-height: 360px;
  margin: 0;
  overflow: auto;
  color: var(--ink);
  font: inherit;
  line-height: 1.55;
}

.result-answer-stream {
  display: grid;
  gap: 12px;
}

.result-reasoning {
  display: grid;
  gap: 0;
  padding: 11px 12px 10px;
  border: 1px solid rgba(240, 189, 84, 0.22);
  border-radius: 8px;
  color: rgba(244, 240, 230, 0.78);
  background:
    linear-gradient(135deg, rgba(240, 189, 84, 0.08), transparent 68%),
    rgba(255, 255, 255, 0.03);
  box-shadow: inset 3px 0 0 rgba(240, 189, 84, 0.72);
}

.result-reasoning-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-warm);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
}

.result-reasoning-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.result-reasoning-body {
  position: relative;
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
  overflow: hidden auto;
  scrollbar-width: none;
  transition: max-height 0.18s ease;
}

.result-reasoning-body::-webkit-scrollbar {
  display: none;
}

.result-reasoning.is-collapsed .result-reasoning-body {
  max-height: 148px;
}

.result-reasoning.is-expanded .result-reasoning-body {
  max-height: none;
}

.result-reasoning.is-collapsed .result-reasoning-body::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 42px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(17, 17, 14, 0), rgba(17, 17, 14, 0.94));
}

.result-reasoning-toggle {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  margin-top: 10px;
  padding: 0 9px;
  border: 1px solid rgba(240, 189, 84, 0.28);
  border-radius: 8px;
  color: var(--accent-warm);
  background: rgba(240, 189, 84, 0.07);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 800;
}

.result-reasoning-toggle svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
  transition: transform 0.16s ease;
}

.result-reasoning.is-expanded .result-reasoning-toggle svg {
  transform: rotate(180deg);
}

.result-reasoning-toggle:hover,
.result-reasoning-toggle:focus-visible {
  color: var(--neon-white);
  border-color: rgba(255, 255, 255, 0.48);
  text-shadow:
    0 0 7px rgba(255, 255, 255, 0.64),
    0 0 16px rgba(240, 189, 84, 0.34);
}

.result-reasoning-body .result-paragraph,
.result-reasoning-body .result-list,
.result-reasoning-body .result-quote,
.result-reasoning-body .result-table {
  color: rgba(244, 240, 230, 0.78);
}

.result-reasoning-body .result-heading {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.98rem;
}

.result-sources {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.result-sources-count {
  margin: 0;
  color: var(--accent-warm);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 800;
}

.result-sources-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.result-sources-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: min(100%, 260px);
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(244, 240, 230, 0.86);
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.82rem;
  overflow: hidden;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-source-number {
  flex: 0 0 auto;
  color: var(--accent-warm);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
}

.result-source-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-sources-list a:hover,
.result-sources-list a:focus-visible {
  color: var(--neon-white);
  border-color: rgba(240, 189, 84, 0.42);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.45);
}

.result-usage {
  display: grid;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid rgba(240, 189, 84, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(240, 189, 84, 0.07), transparent 68%),
    rgba(255, 255, 255, 0.028);
}

.result-usage[hidden] {
  display: none;
}

.usage-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.usage-header p {
  margin: 0;
  color: var(--accent-warm);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 800;
}

.usage-header small {
  color: rgba(244, 240, 230, 0.66);
  font-size: 0.74rem;
  text-align: right;
}

.usage-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.usage-chip {
  display: grid;
  gap: 2px;
  min-width: 104px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}

.usage-chip span,
.usage-chip small {
  color: rgba(244, 240, 230, 0.66);
  font-size: 0.7rem;
}

.usage-chip strong {
  color: rgba(255, 255, 255, 0.92);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.1;
}

.credit-limit-notice {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(240, 189, 84, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(240, 189, 84, 0.1), transparent 65%),
    rgba(0, 0, 0, 0.3);
}

.credit-limit-notice strong {
  color: var(--accent-warm);
  font-size: 0.95rem;
  text-shadow:
    0 0 8px rgba(240, 189, 84, 0.52),
    0 0 18px rgba(240, 189, 84, 0.18);
}

.credit-limit-notice-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.credit-limit-notice p {
  flex: 1 1 320px;
  margin: 0;
  color: rgba(244, 240, 230, 0.76);
  font-size: 0.92rem;
  line-height: 1.45;
}

.credit-limit-notice .money-button {
  flex: 0 0 auto;
  width: fit-content;
}

.result-actions {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 8px;
}

.result-copy-button,
.result-regenerate-button {
  width: fit-content;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(240, 189, 84, 0.34);
  border-radius: 8px;
  color: var(--accent-warm);
  background: rgba(240, 189, 84, 0.08);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 800;
}

.result-regenerate-button {
  width: 36px;
  min-width: 36px;
  padding: 0;
  display: inline-grid;
  place-items: center;
}

.result-regenerate-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.result-copy-button:hover,
.result-copy-button:focus-visible,
.result-regenerate-button:hover,
.result-regenerate-button:focus-visible {
  color: var(--neon-white);
  border-color: rgba(255, 255, 255, 0.54);
  text-shadow:
    0 0 7px rgba(255, 255, 255, 0.72),
    0 0 18px rgba(240, 189, 84, 0.38);
}

.result-regenerate-button:disabled {
  cursor: default;
  opacity: 0.42;
}

.result-card {
  display: block;
  padding: 15px 16px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent 64%),
    rgba(15, 17, 15, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 14px 38px rgba(0, 0, 0, 0.2);
}

.result-card-header {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin-bottom: 9px;
}

.result-card-number {
  width: 32px;
  height: 28px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(240, 189, 84, 0.32);
  border-radius: 8px;
  color: var(--accent-warm);
  background: rgba(240, 189, 84, 0.08);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 800;
}

.result-card-domain {
  min-width: 0;
  overflow: hidden;
  color: var(--accent-warm);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-card-open {
  margin-left: auto;
  color: rgba(234, 252, 255, 0.68);
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.result-card-body {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.result-card-title {
  color: var(--neon-white);
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
  text-shadow:
    0 0 7px rgba(255, 255, 255, 0.48),
    0 0 18px rgba(234, 252, 255, 0.22);
}

.result-card-title:hover,
.result-card-title:focus-visible,
.result-link:hover,
.result-link:focus-visible,
.result-card-url:hover,
.result-card-url:focus-visible,
.result-card-open:hover,
.result-card-open:focus-visible {
  color: var(--accent-warm);
}

.result-card-url,
.result-link {
  color: rgba(240, 189, 84, 0.9);
  overflow-wrap: anywhere;
  text-decoration: none;
}

.result-citation {
  display: inline-flex;
  align-items: center;
  margin: 0 1px;
  color: var(--accent-warm);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82em;
  font-weight: 800;
  text-decoration: none;
  vertical-align: 0.12em;
}

.result-citation:hover,
.result-citation:focus-visible {
  color: var(--neon-white);
  text-shadow:
    0 0 7px rgba(255, 255, 255, 0.72),
    0 0 18px rgba(240, 189, 84, 0.38);
}

.result-card-url {
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-math {
  display: inline-block;
  color: rgba(255, 255, 255, 0.94);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95em;
  white-space: nowrap;
}

.result-math-block {
  max-width: 100%;
  margin: 2px 0;
  padding: 10px 12px;
  overflow-x: auto;
  border: 1px solid rgba(240, 189, 84, 0.24);
  border-radius: 8px;
  background: rgba(240, 189, 84, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.result-math-block .result-math {
  font-size: 0.98rem;
}

.result-math sup,
.result-math sub {
  font-size: 0.72em;
  line-height: 0;
}

.result-math sup {
  vertical-align: super;
}

.result-math sub {
  vertical-align: sub;
}

.result-card p,
.result-paragraph {
  margin: 0;
  color: var(--ink);
  line-height: 1.58;
}

.result-card p {
  color: rgba(234, 238, 229, 0.86);
}

.result-more-wrap {
  display: flex;
  justify-content: center;
  padding: 4px 0 2px;
}

.result-more-button {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(240, 189, 84, 0.34);
  border-radius: 8px;
  color: var(--accent-warm);
  background: rgba(240, 189, 84, 0.08);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 800;
}

.result-more-button:hover,
.result-more-button:focus-visible {
  color: var(--neon-white);
  border-color: rgba(255, 255, 255, 0.54);
  text-shadow:
    0 0 7px rgba(255, 255, 255, 0.72),
    0 0 18px rgba(240, 189, 84, 0.38);
}

.result-heading {
  margin: 8px 0 0;
  color: var(--neon-white);
  font-size: 1.08rem;
  line-height: 1.3;
  text-shadow:
    0 0 7px rgba(255, 255, 255, 0.55),
    0 0 18px rgba(234, 252, 255, 0.18);
}

.result-rule {
  width: 100%;
  height: 1px;
  margin: 4px 0;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(240, 189, 84, 0.68), transparent);
  box-shadow: 0 0 10px rgba(240, 189, 84, 0.2);
}

.result-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink);
}

.result-list li::marker {
  color: var(--accent-warm);
}

.result-quote {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid rgba(240, 189, 84, 0.62);
  border-radius: 0 8px 8px 0;
  color: rgba(244, 240, 230, 0.88);
  background: rgba(240, 189, 84, 0.055);
}

.result-code {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  color: var(--neon-white);
  background: rgba(255, 255, 255, 0.045);
  overflow-x: auto;
}

.result-code code {
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre;
}

.result-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.result-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  color: var(--ink);
  font-size: 0.92rem;
}

.result-table th,
.result-table td {
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  text-align: left;
  vertical-align: top;
}

.result-table th {
  color: var(--accent-warm);
  background: rgba(240, 189, 84, 0.08);
  font-weight: 800;
}

.result-paragraph strong,
.result-list strong,
.result-heading strong,
.result-quote strong,
.result-table strong {
  color: var(--neon-white);
}

.result-stream-cursor {
  display: inline-block;
  width: 7px;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: -0.15em;
  background: var(--accent-warm);
  box-shadow: 0 0 10px rgba(240, 189, 84, 0.64);
  animation: stream-cursor 0.85s steps(2, start) infinite;
}

.result-loading {
  position: relative;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  border: 1px solid rgba(240, 189, 84, 0.22);
  border-radius: 8px;
  color: var(--accent-warm);
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent),
    rgba(240, 189, 84, 0.06);
  background-size: 220% 100%, auto;
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
  box-shadow:
    0 0 18px rgba(240, 189, 84, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  animation: thinking-scan 1.65s linear infinite;
}

.thinking-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.thinking-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 9px rgba(240, 189, 84, 0.7);
  opacity: 0.34;
  transform: translateY(0);
  animation: thinking-dot 1s ease-in-out infinite;
}

.thinking-dots span:nth-child(2) {
  animation-delay: 0.16s;
}

.thinking-dots span:nth-child(3) {
  animation-delay: 0.32s;
}

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

@keyframes thinking-scan {
  from {
    background-position: 160% 0, 0 0;
  }

  to {
    background-position: -60% 0, 0 0;
  }
}

@keyframes thinking-dot {
  0%,
  80%,
  100% {
    opacity: 0.34;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

body.chat-mode .page-shell {
  min-height: 100vh;
  padding-bottom: 168px;
  place-items: start center;
  overflow-anchor: none;
}

body.chat-mode .stage {
  min-height: 100vh;
  align-content: start;
  gap: 4px;
  padding-top: 8px;
  transform: none;
  overflow-anchor: none;
}

body.chat-mode .hero-copy {
  display: grid;
  justify-items: center;
  gap: 0;
}

body.chat-mode .hero-title-row {
  display: none;
}

body.chat-mode .hero-logo {
  width: clamp(58px, 8vw, 84px);
}

body.chat-mode .result-panel {
  align-self: start;
  display: grid;
  align-content: start;
  gap: 14px;
  width: 100%;
  min-height: 0;
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow-anchor: none;
}

body.chat-mode .chat-history-result {
  min-height: 0;
}

body.chat-mode .sent-message-row {
  align-self: start;
  width: 100%;
  justify-content: flex-end;
  padding-right: 0;
  margin-top: -10px;
  overflow-anchor: none;
}

body.chat-mode .chat-thread:not([hidden]) + .sent-message-row {
  margin-top: 22px;
}

body.chat-mode .result-output {
  max-height: none;
}

body.chat-mode .composer-dock {
  position: fixed;
  right: max(28px, calc((100vw - 860px) / 2));
  bottom: 22px;
  left: max(28px, calc((100vw - 860px) / 2));
  z-index: 20;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(6, 7, 6, 0.88);
  box-shadow: 0 -18px 64px rgba(0, 0, 0, 0.54);
  backdrop-filter: blur(18px);
}

body.chat-mode .composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "input actions";
  align-items: center;
  column-gap: 12px;
  row-gap: 8px;
  padding: 10px 10px 10px 14px;
  box-shadow: none;
}

body.chat-mode .attachment-list {
  max-width: min(42vw, 320px);
  max-height: none;
  overflow: visible;
  padding-right: 2px;
  scrollbar-width: thin;
}

body.chat-mode .attachment-list[hidden] {
  display: none;
}

body.chat-mode textarea {
  grid-area: input;
  min-width: 0;
  min-height: 42px;
  max-height: 120px;
  font-size: 1rem;
}

body.chat-mode .composer-actions {
  grid-area: actions;
}

body.chat-mode .submit-button {
  width: 42px;
  min-height: 42px;
}

body.chat-mode .under-search-actions {
  gap: 10px;
}

body.chat-mode .money-button {
  display: none;
}

body.chat-mode .credit-limit-notice .money-button {
  display: inline-flex;
}

body.chat-mode .under-search-actions .new-chat-button {
  display: inline-flex;
}

body.chat-mode .engine-menu,
body.chat-mode .model-menu {
  top: auto;
  bottom: calc(100% + 10px);
}

.engine-menu button:hover,
.engine-menu button:focus-visible,
.model-menu button:hover,
.model-menu button:focus-visible,
.engine-toggle:hover,
.model-toggle:hover,
.web-search-toggle:hover,
.web-search-toggle:focus-visible,
.attachment-button:hover,
.attachment-button:focus-visible,
.stop-button:hover,
.stop-button:focus-visible,
.submit-button:hover {
  border-color: rgba(87, 210, 198, 0.44);
  background: #1d211d;
}

.submit-button {
  display: inline-grid;
  place-items: center;
  width: 48px;
  padding: 0;
  color: #07100e;
  border-color: transparent;
  background: var(--accent);
}

.attachment-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  padding: 0;
}

.stop-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  padding: 0;
  color: rgba(255, 170, 146, 0.96);
  border-color: rgba(255, 170, 146, 0.34);
  background: rgba(255, 86, 86, 0.08);
}

.stop-button:disabled {
  cursor: default;
  color: rgba(244, 240, 230, 0.34);
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
}

.stop-button:hover,
.stop-button:focus-visible {
  color: var(--neon-white);
  border-color: rgba(255, 170, 146, 0.72);
  background: rgba(255, 86, 86, 0.13);
  box-shadow: 0 0 18px rgba(255, 86, 86, 0.16);
}

.stop-button:disabled:hover,
.stop-button:disabled:focus-visible {
  color: rgba(244, 240, 230, 0.34);
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
}

.attachment-button[hidden],
.stop-button[hidden] {
  display: none;
}

.attachment-button svg,
.stop-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.submit-button svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  stroke-width: 2.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.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;
}

:focus-visible {
  outline: 2px solid var(--accent-warm);
  outline-offset: 3px;
}

@media (max-width: 880px) {
  .page-shell {
    padding: 22px;
    place-items: start center;
  }

  .site-nav {
    top: 22px;
    width: min(calc(100% - 44px), 860px);
  }

  .about-page .fixed-page-header {
    height: 158px;
  }

  .member-page .fixed-page-header {
    height: 136px;
  }

  .about-page .fixed-page-header .site-nav {
    top: 104px;
    right: 50%;
    width: min(calc(100% - 44px), 860px);
    max-width: 860px;
    justify-content: center;
    transform: translateX(50%);
  }

  .member-page .fixed-page-header .site-nav {
    top: 92px;
  }

  .stage {
    padding-top: 78px;
  }

  .about-page .page-shell {
    padding-top: 0;
  }

  body:not(.about-page) .stage {
    transform: none;
  }

  body.chat-mode .page-shell {
    padding-bottom: 178px;
  }

  body.chat-mode .stage {
    padding-top: 8px;
  }

  .about-layout,
  .bottom-layout,
  .support-grid,
  .support-pricing {
    grid-template-columns: 1fr;
  }

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

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

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

  .about-hero h1 {
    font-size: 2.65rem;
  }

  .support-price-box {
    justify-items: start;
    text-align: left;
  }

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

  .member-detail-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 560px) {
  .page-shell {
    min-height: 100dvh;
    padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
  }

  .site-nav {
    top: 16px;
    width: calc(100% - 32px);
  }

  .about-page .fixed-page-header .site-nav {
    width: calc(100% - 32px);
  }

  .site-nav a {
    min-height: 36px;
    padding: 0 11px;
  }

  .home-top-actions {
    top: 16px;
    right: 16px;
    left: 16px;
    flex-wrap: wrap;
  }

  .stage {
    gap: 18px;
    padding-top: 64px;
  }

  body:not(.about-page) .page-shell {
    place-items: center;
  }

  body:not(.about-page) .stage {
    width: 100%;
    gap: 13px;
    padding-top: 0;
  }

  body:not(.about-page) .hero-copy {
    gap: 10px;
  }

  body:not(.about-page) .hero-logo {
    width: clamp(88px, 27vw, 118px);
  }

  body.chat-mode .page-shell {
    padding: 14px 14px 210px;
  }

  body.chat-mode .stage {
    gap: 6px;
    padding-top: 6px;
  }

  body.chat-mode .composer-dock {
    right: 12px;
    bottom: 12px;
    left: 12px;
    padding: 10px;
  }

  body.chat-mode .composer {
    padding: 9px 9px 9px 12px;
  }

  body.chat-mode textarea {
    min-height: 38px;
    font-size: 0.98rem;
  }

  body.chat-mode .under-search-actions {
    flex-wrap: wrap;
  }

  body.chat-mode .under-search-actions .money-button {
    width: 100%;
    margin-left: 0;
  }

  .sent-message {
    max-width: calc(100% - 24px);
    padding: 10px 12px;
  }

  .hero-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
    justify-items: stretch;
  }

  .hero-title-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 8px;
    margin-left: 0;
    justify-self: stretch;
  }

  .hero-title-actions .under-search-link {
    min-width: 0;
    min-height: 36px;
    padding: 0 9px;
    font-size: 0.84rem;
    font-weight: 850;
    line-height: 1.12;
    text-align: center;
    white-space: normal;
  }

  .hero-about-link {
    margin-left: 0;
  }

  .eyebrow {
    display: block;
    min-height: 2.9em;
    font-size: 0.9rem;
    line-height: 1.42;
  }

  .about-hero {
    gap: 16px;
    padding-top: 0;
  }

  .about-hero h1 {
    font-size: 2.25rem;
  }

  .support-hero,
  .support-card,
  .support-pricing,
  .referral-card,
  .support-close {
    padding: 15px;
  }

  .about-hero p,
  .support-hero p,
  .support-card p,
  .support-pricing p,
  .referral-card p,
  .support-close p,
  .visibility-section p,
  .about-panel p,
  .compact-points,
  .layer-tile p {
    font-size: 0.98rem;
  }

  .about-page .page-shell {
    padding-top: 0;
    padding-bottom: 42px;
  }

  .about-panel {
    padding: 15px;
  }

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

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

  .layer-tile {
    min-height: auto;
  }

  .composer {
    gap: 12px;
    padding: 12px;
  }

  textarea {
    min-height: 92px;
    font-size: 1rem;
    line-height: 1.42;
  }

  .composer-actions {
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .attachment-list {
    gap: 6px;
    justify-content: flex-start;
  }

  .attachment-chip {
    max-width: min(100%, 210px);
  }

  .model-wrap {
    margin-right: 0;
  }

  .under-search-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
  }

  .engine-wrap,
  .model-wrap {
    width: 100%;
    min-width: 0;
  }

  .engine-toggle,
  .model-toggle {
    width: 100%;
    max-width: none;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 10px;
  }

  .model-toggle {
    max-width: none;
  }

  .web-search-toggle,
  .new-chat-button,
  .under-search-actions .money-button {
    width: 100%;
    min-width: 0;
    padding: 0 10px;
  }

  .under-search-actions .money-button {
    margin-left: 0;
  }

  #selectedName,
  #selectedModelName {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .engine-menu {
    width: min(260px, calc(100vw - 28px));
  }

  .model-menu {
    right: 0;
    left: auto;
    width: max-content;
    min-width: 100%;
    max-width: calc(100vw - 28px);
  }

  .model-menu button {
    min-width: 0;
  }

  body.chat-mode .under-search-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.chat-mode .composer-dock {
    bottom: max(10px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 390px) {
  body:not(.about-page) .hero-logo {
    width: 84px;
  }

  .hero-title-actions {
    grid-template-columns: 1fr;
  }

  .eyebrow {
    min-height: 4.25em;
    font-size: 0.86rem;
  }

  .under-search-actions {
    grid-template-columns: 1fr;
  }

  textarea {
    min-height: 84px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stat-gif *,
  .stat-gif::after,
  .layer-demo *,
  .layer-demo::after,
  .result-loading,
  .thinking-dots span {
    animation: none;
  }
}

@media (max-width: 920px) {
  .member-hero,
  .member-balance-card {
    grid-template-columns: 1fr;
  }

  .member-primary-grid {
    grid-template-columns: 1fr;
  }

  .member-hero,
  .member-balance-card {
    align-items: start;
  }

  .member-balance-card {
    flex-direction: column;
  }

  .member-status-pill {
    width: max-content;
    max-width: 100%;
    white-space: normal;
  }

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

  .member-action-strip {
    justify-content: flex-start;
  }

  .member-action-strip .money-button {
    margin-right: 0;
  }

  .change-username-form,
  .change-password-form,
  .top-up-form {
    grid-template-columns: 1fr;
  }

  .admin-grid,
  .admin-member-card {
    grid-template-columns: 1fr;
  }

  .admin-member-balance {
    justify-items: start;
  }
}

@media (max-width: 560px) {
  .member-balance-card {
    padding: 16px;
  }

  .member-balance-card .top-up-button {
    width: 100%;
  }

  .member-page .member-detail-grid {
    grid-template-columns: 1fr;
  }

  .admin-card {
    padding: 15px;
  }

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