﻿:root {
  --bg: #03111f;
  --bg-deep: #010812;
  --surface: rgba(10, 28, 48, 0.74);
  --surface-strong: rgba(14, 37, 64, 0.92);
  --line: rgba(135, 192, 255, 0.22);
  --line-strong: rgba(80, 190, 255, 0.5);
  --text: #f1f7ff;
  --muted: #a9bdd2;
  --subtle: #758ea8;
  --blue: #2b7cff;
  --cyan: #2ce6ff;
  --violet: #7d74ff;
  --green: #47e6a7;
  --danger: #ff6b8a;
  --radius: 8px;
  --max: 1280px;
  color-scheme: dark;
}


* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html[data-font-level] [data-font-scale-target="true"] {
  font-size: calc(var(--pgc-base-font-size, 1em) * var(--pgc-font-scale, 1)) !important;
}

html[data-pgc-theme="light"] {
  --bg: #f5f9ff;
  --bg-deep: #edf5ff;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --line: rgba(37, 109, 176, 0.2);
  --line-strong: rgba(17, 144, 212, 0.46);
  --text: #102033;
  --muted: #4f6074;
  --subtle: #6c7b8d;
  color-scheme: light;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 68% 14%, rgba(43, 124, 255, 0.2), transparent 34%),
    radial-gradient(circle at 10% 32%, rgba(44, 230, 255, 0.13), transparent 28%),
    linear-gradient(180deg, var(--bg-deep), var(--bg) 42%, #020b15);
  overflow-x: hidden;
}

html[data-pgc-theme="light"] body {
  color: var(--text);
  background:
    radial-gradient(circle at 68% 14%, rgba(65, 150, 255, 0.18), transparent 34%),
    radial-gradient(circle at 10% 32%, rgba(44, 230, 255, 0.16), transparent 28%),
    linear-gradient(180deg, #f8fcff, #eef6ff 48%, #f8fbff);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(92, 159, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 159, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.86), transparent 84%);
}

html[data-pgc-theme="light"] body::before {
  background-image:
    linear-gradient(rgba(63, 122, 184, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 122, 184, 0.09) 1px, transparent 1px);
  opacity: 0.76;
}

body[data-page="home"] {
  background:
    linear-gradient(180deg, #080d16 0%, #070b13 56%, #050a12 100%);
}

body[data-page="chat"] {
  height: 100dvh;
  overflow: hidden;
}

html[data-pgc-theme="light"] body[data-page="home"],
html[data-pgc-theme="light"] body.about-page-view {
  background:
    radial-gradient(circle at 50% 0%, rgba(44, 230, 255, 0.14), transparent 32%),
    linear-gradient(180deg, #f7fbff 0%, #eef5ff 58%, #f9fcff 100%);
}

body[data-page="home"]::before {
  background-image:
    linear-gradient(30deg, rgba(74, 104, 152, 0.08) 12%, transparent 12.5%, transparent 87%, rgba(74, 104, 152, 0.08) 87.5%),
    linear-gradient(150deg, rgba(74, 104, 152, 0.08) 12%, transparent 12.5%, transparent 87%, rgba(74, 104, 152, 0.08) 87.5%),
    linear-gradient(30deg, rgba(74, 104, 152, 0.06) 12%, transparent 12.5%, transparent 87%, rgba(74, 104, 152, 0.06) 87.5%),
    linear-gradient(150deg, rgba(74, 104, 152, 0.06) 12%, transparent 12.5%, transparent 87%, rgba(74, 104, 152, 0.06) 87.5%);
  background-position: 0 0, 0 0, 58px 34px, 58px 34px;
  background-size: 116px 68px;
  opacity: 0.72;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.74), transparent 90%);
}

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

button,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-nav {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  width: min(calc(100% - 32px), 1320px);
  min-height: 64px;
  padding: 10px 12px;
  transform: translateX(-50%);
  background: rgba(3, 13, 25, 0.82);
  border: 1px solid rgba(161, 207, 255, 0.18);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 232px;
}

.brand-motion {
  display: grid;
  width: 42px;
  height: 42px;
  overflow: hidden;
  place-items: center;
  background: radial-gradient(circle, rgba(44, 230, 255, 0.14), rgba(43, 124, 255, 0.06));
  border: 1px solid rgba(44, 230, 255, 0.28);
  border-radius: 7px;
}

.brand-motion video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy {
  display: grid;
  gap: 2px;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 18px;
  font-weight: 780;
}

.brand-copy small {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2vw, 28px);
  color: #d7e7f8;
  font-size: 14px;
}

.nav-links a {
  position: relative;
  padding: 9px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--cyan);
}

.nav-links a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 680;
  white-space: nowrap;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.quick-prompts button:hover,
.advisor-notes button:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #236cff, #25ddf2);
  box-shadow: 0 12px 30px rgba(43, 124, 255, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(170, 211, 255, 0.24);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: var(--text);
}

.home-shell {
  width: min(calc(100% - 44px), var(--max));
  margin: 0 auto;
  padding-top: 126px;
}

.advisor-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(420px, 0.72fr);
  min-height: calc(100vh - 126px);
  align-items: center;
  gap: 54px;
  padding-bottom: 48px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 4.55vw, 72px);
  line-height: 1.08;
  font-weight: 850;
}

.hero-copy h1 span {
  display: block;
}

.hero-copy p {
  max-width: 820px;
  margin: 26px 0 30px;
  color: #c1d3e7;
  font-size: 18px;
  line-height: 1.8;
}

.advisor-console,
.chat-history-panel,
.chat-panel,
.chat-side,
.content-card,
.content-cta,
.home-entry-grid a {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
}

.advisor-console {
  position: relative;
  max-width: 760px;
  padding: 18px;
  overflow: hidden;
}

.advisor-console::before,
.chat-composer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 10%, rgba(44, 230, 255, 0.12) 46%, transparent 72%);
  opacity: 0;
  transform: translateX(-45%);
}

.advisor-console:focus-within::before,
.advisor-console:hover::before,
.chat-composer:focus-within::before {
  animation: scan 1.8s ease infinite;
  opacity: 1;
}

.advisor-console label {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 12px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 760;
}

.input-shell,
.chat-composer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 14px;
  align-items: stretch;
}

textarea {
  width: 100%;
  resize: vertical;
  color: var(--text);
  background: rgba(2, 10, 20, 0.68);
  border: 1px solid rgba(146, 205, 255, 0.22);
  border-radius: 6px;
  outline: none;
  padding: 16px;
  line-height: 1.72;
}

textarea::placeholder {
  color: #839bb7;
}

textarea:focus {
  border-color: rgba(44, 230, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(44, 230, 255, 0.08);
}

.send-button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #001827;
  background: linear-gradient(145deg, #57efff, #2b7cff);
  border: 0;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 780;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.send-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(44, 230, 255, 0.24);
}

.send-button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.send-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.quick-prompts {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.quick-prompts button,
.advisor-notes button {
  color: #d9ebff;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(152, 205, 255, 0.18);
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 13px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.quick-prompts button:hover,
.advisor-notes button:hover {
  border-color: rgba(44, 230, 255, 0.45);
  background: rgba(44, 230, 255, 0.08);
}

.home-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 760px;
  margin-top: 18px;
}

.home-entry-grid a {
  padding: 16px;
}

.home-entry-grid span,
.ai-status-panel span,
.message-role,
.content-card span,
.back-link {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 780;
}

.home-entry-grid strong {
  display: block;
  margin-top: 7px;
  font-size: 15px;
}

.ai-presence {
  position: relative;
  display: grid;
  min-height: 640px;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at calc(50% + var(--mx, 0px)) calc(45% + var(--my, 0px)), rgba(47, 211, 255, 0.26), transparent 18%),
    radial-gradient(circle at 50% 50%, rgba(38, 123, 255, 0.2), transparent 44%),
    radial-gradient(circle at 20% 18%, rgba(125, 116, 255, 0.18), transparent 28%),
    radial-gradient(circle at 78% 76%, rgba(44, 230, 255, 0.12), transparent 34%),
    linear-gradient(180deg, #03122a 0%, #020b1a 58%, #010611 100%);
  background-blend-mode: screen, screen, screen, normal, normal;
  border: 1px solid rgba(132, 202, 255, 0.24);
  border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36), inset 0 0 80px rgba(42, 143, 255, 0.08);
  transition: background 0.25s ease;
  --core-a: #e8fdff;
  --core-b: #2b7cff;
  --core-c: #2ce6ff;
  --halo-a: rgba(90, 220, 255, 0.78);
  --halo-b: rgba(125, 116, 255, 0.58);
  --halo-c: rgba(44, 230, 255, 0.42);
  --spark: #2ce6ff;
  --panel-accent: var(--cyan);
  --core-radius: 50%;
  --core-scale: 1;
  --core-rotate: 0deg;
  --core-skew: 0deg;
  --core-blur: 0px;
  --glow-size: 44px;
  --fragment-opacity: 0.46;
  --word-opacity: 0;
  --thread-opacity: 0;
  --eye-w: 16px;
  --eye-h: 16px;
  --eye-radius: 50%;
  --eye-scale: 1;
  --eye-rotate: 0deg;
  --eye-opacity: 1;
  --mouth-w: 4px;
  --mouth-h: 14px;
  --mouth-gap: 6px;
  --mouth-y: 0px;
  --mouth-scale: 1;
  --mouth-rotate: 0deg;
  --mouth-opacity: 0.95;
  --mouth-radius: 5px;
  --mouth-color-a: #f4feff;
  --mouth-color-b: #2ce6ff;
  --mouth-color-c: #2979ff;
  --mouth-chart-color: #7eeaff;
  --mouth-progress: 0%;
  --mouth-1: 0.72;
  --mouth-2: 1;
  --mouth-3: 0.92;
  --mouth-4: 0.78;
  --mouth-5: 0.64;
  --mouth-6: 0.9;
  --mouth-7: 0.82;
  --mouth-8: 0.7;
  --mouth-shift-1: 1px;
  --mouth-shift-2: 0px;
  --mouth-shift-3: 0px;
  --mouth-shift-4: 1px;
  --mouth-shift-5: 0px;
  --mouth-shift-6: 0px;
  --mouth-shift-7: 0px;
  --mouth-shift-8: 0px;
}

.ai-presence::before {
  content: "";
  position: absolute;
  inset: -35%;
  background:
    radial-gradient(circle, rgba(125, 217, 255, 0.8) 0 1px, transparent 1.8px) 0 0 / 72px 72px,
    radial-gradient(circle, rgba(92, 159, 255, 0.58) 0 1px, transparent 1.7px) 38px 44px / 118px 118px,
    repeating-radial-gradient(circle at 50% 50%, transparent 0 74px, rgba(89, 173, 255, 0.08) 75px 76px, transparent 77px 132px),
    linear-gradient(116deg, transparent 30%, rgba(44, 230, 255, 0.1) 31%, transparent 32%),
    linear-gradient(48deg, transparent 45%, rgba(125, 116, 255, 0.1) 46%, transparent 47%);
  opacity: 0.82;
  animation: drift 16s linear infinite;
}

.ai-presence::after {
  content: "";
  position: absolute;
  inset: 7%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 52%, transparent 0 35%, rgba(72, 168, 255, 0.12) 36%, transparent 37%),
    radial-gradient(ellipse at 50% 52%, transparent 0 50%, rgba(44, 230, 255, 0.08) 51%, transparent 52%),
    conic-gradient(from 20deg at 50% 52%, transparent 0 14%, rgba(76, 170, 255, 0.12) 15%, transparent 22%, transparent 56%, rgba(44, 230, 255, 0.12) 58%, transparent 64%);
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.8;
  animation: stellarField 22s linear infinite;
}

.ai-presence.compact {
  min-height: 430px;
}

.ai-orb {
  position: relative;
  z-index: 1;
  width: min(62vw, 340px);
  height: min(62vw, 340px);
  perspective: 900px;
  transform-style: preserve-3d;
  transform: translate(var(--orb-mx, 0px), var(--orb-my, 0px));
  transition: transform 0.08s linear;
}

.orb-ring,
.orb-core,
.orb-eye,
.orb-wave,
.orb-fragment,
.effect-word,
.energy-thread,
.orb-mouth,
.mouth-bar {
  position: absolute;
  border-radius: 50%;
}

.orb-ring {
  inset: 0;
  border: 1px solid color-mix(in srgb, var(--halo-a) 78%, transparent);
  box-shadow:
    0 0 26px color-mix(in srgb, var(--spark) 38%, transparent),
    inset 0 0 18px color-mix(in srgb, var(--spark) 14%, transparent);
  transform-style: preserve-3d;
  --ring-start: -18deg;
  --ring-tilt: 70deg;
  --ring-y: 0deg;
}

.orb-ring::before,
.orb-ring::after {
  content: "";
  position: absolute;
  width: var(--node-size, 10px);
  height: var(--node-size, 10px);
  background:
    radial-gradient(circle at 36% 28%, #ffffff, color-mix(in srgb, var(--spark) 58%, #ffffff 42%) 48%, var(--spark) 78%);
  border-radius: 50%;
  box-shadow: 0 0 18px color-mix(in srgb, var(--spark) 88%, transparent), 0 0 42px color-mix(in srgb, var(--spark) 38%, transparent);
}

.orb-ring::before {
  top: 18%;
  right: 9%;
}

.orb-ring::after {
  bottom: 12%;
  left: 14%;
  opacity: 0.72;
}

.ring-one {
  inset: 2%;
  border-width: 2px;
  border-color: color-mix(in srgb, var(--halo-a) 82%, #ffffff 18%);
  --node-size: 11px;
  --ring-start: -22deg;
  --ring-tilt: 72deg;
  animation: rotateRing 15s linear infinite;
}

.ring-two {
  inset: 10%;
  border-color: color-mix(in srgb, var(--halo-b) 72%, transparent);
  --node-size: 8px;
  --ring-start: 42deg;
  --ring-tilt: 58deg;
  --ring-y: 17deg;
  animation: rotateRing 10s linear infinite reverse;
}

.ring-three {
  inset: 20%;
  border-color: color-mix(in srgb, var(--halo-c) 58%, transparent);
  border-style: dashed;
  --node-size: 6px;
  --ring-start: 112deg;
  --ring-tilt: 78deg;
  --ring-y: -26deg;
  animation: rotateRing 8s linear infinite;
}

.orb-core {
  inset: 24%;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 28% 18%, rgba(255, 255, 255, 0.92) 0 9%, rgba(217, 246, 255, 0.54) 10% 18%, transparent 28%),
    radial-gradient(circle at 44% 42%, rgba(1, 12, 37, 0.48), rgba(1, 13, 37, 0.4) 28%, transparent 44%),
    radial-gradient(circle at 58% 72%, color-mix(in srgb, var(--core-c) 72%, #ffffff 28%) 0 14%, rgba(44, 230, 255, 0.28) 30%, transparent 54%),
    radial-gradient(circle at 34% 28%, var(--core-a), transparent 20%),
    radial-gradient(circle at 68% 54%, color-mix(in srgb, var(--core-b) 78%, #ffffff 6%), color-mix(in srgb, var(--core-b) 74%, #020b2a 26%) 50%, color-mix(in srgb, var(--core-c) 72%, #052064 28%) 74%, rgba(55, 243, 255, 0.96));
  border: 1px solid rgba(186, 249, 255, 0.72);
  border-radius: var(--core-radius);
  box-shadow:
    0 0 calc(var(--glow-size) + 32px) color-mix(in srgb, var(--spark) 58%, transparent),
    0 0 120px rgba(36, 130, 255, 0.35),
    inset 0 18px 34px rgba(255, 255, 255, 0.26),
    inset 0 -26px 46px rgba(39, 243, 255, 0.42),
    inset 0 0 68px rgba(113, 166, 255, 0.24);
  filter: blur(var(--core-blur)) saturate(1.08);
  transform: scale(var(--core-scale)) rotate(var(--core-rotate)) skew(var(--core-skew));
  transition: border-radius 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease, transform 0.35s ease, background 0.35s ease;
}

.orb-core::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 12%;
  width: 47%;
  height: 22%;
  background: radial-gradient(ellipse at 38% 38%, rgba(255, 255, 255, 0.96), rgba(220, 246, 255, 0.72) 42%, rgba(84, 167, 255, 0.3) 68%, transparent 72%);
  border-radius: inherit;
  filter: blur(0.5px);
  mix-blend-mode: screen;
  transform: rotate(-29deg);
}

.orb-core::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(165deg, transparent 0 47%, rgba(206, 251, 255, 0.08) 48%, rgba(132, 236, 255, 0.52) 51%, transparent 54%),
    radial-gradient(ellipse at 50% 96%, rgba(255, 255, 255, 0.78) 0 4%, rgba(50, 243, 255, 0.46) 5% 15%, transparent 28%),
    radial-gradient(circle, rgba(228, 252, 255, 0.5) 0 1px, transparent 1.5px) 22px 58% / 14px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  mask-image: radial-gradient(circle at 50% 50%, #000 0 68%, rgba(0, 0, 0, 0.78) 73%, transparent 100%);
  mix-blend-mode: screen;
  opacity: 0.92;
}

.orb-eye {
  z-index: 4;
  width: var(--eye-w);
  height: var(--eye-h);
  background:
    radial-gradient(circle at 42% 34%, #ffffff, #d8f7ff 38%, color-mix(in srgb, var(--spark) 52%, #ffffff 48%) 64%, var(--spark));
  border-radius: var(--eye-radius);
  opacity: var(--eye-opacity);
  box-shadow: 0 0 14px color-mix(in srgb, var(--spark) 92%, transparent), 0 0 34px color-mix(in srgb, var(--spark) 42%, transparent);
  transform:
    translate(var(--eye-mx, 0px), var(--eye-my, 0px))
    scale(var(--eye-scale))
    rotate(var(--eye-rotate));
  transition: width 0.28s ease, height 0.28s ease, border-radius 0.28s ease, opacity 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease;
}

.eye-left {
  top: 43%;
  left: 39%;
}

.eye-right {
  top: 43%;
  right: 39%;
}

.orb-mouth {
  z-index: 4;
  top: 56%;
  left: 50%;
  display: flex;
  width: 62px;
  height: 30px;
  gap: var(--mouth-gap);
  align-items: center;
  justify-content: center;
  opacity: var(--mouth-opacity);
  transform: translate(-50%, var(--mouth-y)) scale(var(--mouth-scale)) rotate(var(--mouth-rotate));
  transition: gap 0.42s ease, opacity 0.36s ease, transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mouth-bar {
  position: relative;
  width: var(--mouth-w);
  height: var(--mouth-h);
  background: linear-gradient(180deg, var(--mouth-color-a), var(--mouth-color-b) 58%, var(--mouth-color-c));
  border-radius: var(--mouth-radius);
  box-shadow: 0 0 14px color-mix(in srgb, var(--mouth-color-b) 80%, transparent), 0 0 28px color-mix(in srgb, var(--mouth-color-c) 34%, transparent);
  transform: translateY(calc(var(--bar-y, 0px) + var(--bar-shift, 0px))) scaleY(var(--bar-scale, 1));
  transform-origin: 50% 50%;
  animation: mouthIdle 2.8s ease-in-out infinite;
  animation-delay: var(--bar-delay, 0s);
  transition: width 0.42s ease, height 0.42s ease, border-radius 0.42s ease, transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.36s ease, box-shadow 0.42s ease, background 0.42s ease;
}

.mouth-bar:nth-child(1) {
  --bar-scale: var(--mouth-1);
  --bar-shift: var(--mouth-shift-1);
  --talk-low: 0.58;
  --talk-high: 1.02;
}

.mouth-bar:nth-child(2) {
  --bar-scale: var(--mouth-2);
  --bar-shift: var(--mouth-shift-2);
  --talk-low: 0.78;
  --talk-high: 1.28;
}

.mouth-bar:nth-child(3) {
  --bar-scale: var(--mouth-3);
  --bar-shift: var(--mouth-shift-3);
  --talk-low: 0.72;
  --talk-high: 1.18;
}

.mouth-bar:nth-child(4) {
  --bar-scale: var(--mouth-4);
  --bar-shift: var(--mouth-shift-4);
  --talk-low: 0.62;
  --talk-high: 1.06;
}

.mouth-bar:nth-child(5) {
  --bar-scale: var(--mouth-5);
  --bar-shift: var(--mouth-shift-5);
}

.mouth-bar:nth-child(6) {
  --bar-scale: var(--mouth-6);
  --bar-shift: var(--mouth-shift-6);
}

.mouth-bar:nth-child(7) {
  --bar-scale: var(--mouth-7);
  --bar-shift: var(--mouth-shift-7);
}

.mouth-bar:nth-child(8) {
  --bar-scale: var(--mouth-8);
  --bar-shift: var(--mouth-shift-8);
}

.mouth-bar:nth-child(n + 5) {
  display: none;
}

.mouth-progress,
.mouth-line-chart,
.mouth-donut,
.mouth-wave-chart,
.mouth-metric,
.mouth-dots {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.36s ease, transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.42s ease;
}

.mouth-progress {
  width: 52px;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(41, 121, 255, 0.18), rgba(0, 229, 255, 0.16));
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.26);
}

.mouth-progress::before {
  content: "";
  position: absolute;
  inset: 0;
  width: max(22%, var(--mouth-progress));
  background: repeating-linear-gradient(90deg, #2979ff 0 10px, #00e5ff 10px 18px, rgba(255, 255, 255, 0.85) 18px 20px);
  border-radius: inherit;
  animation: mouthProgressRoll 1.35s linear infinite;
  transition: width 0.38s ease;
}

.mouth-line-chart,
.mouth-wave-chart {
  width: 58px;
  height: 26px;
  overflow: visible;
}

.mouth-line-chart polyline,
.mouth-wave-chart path {
  fill: none;
  stroke: var(--mouth-chart-color);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 7px color-mix(in srgb, var(--mouth-chart-color) 78%, transparent));
  stroke-dasharray: 82;
  stroke-dashoffset: 82;
}

.mouth-donut {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(6, 18, 40, 0.92) 0 42%, transparent 43%),
    conic-gradient(#2979ff 0 31%, #00e5ff 31% 56%, #7e57c2 56% 78%, #66bb6a 78% 100%);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.35);
}

.mouth-metric {
  min-width: 38px;
  padding: 2px 7px 3px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(41, 121, 255, 0.78), rgba(0, 229, 255, 0.5));
  border: 1px solid rgba(221, 252, 255, 0.72);
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(126, 234, 255, 0.34);
  font-size: 10px;
  font-weight: 860;
  line-height: 1.35;
  text-align: center;
}

.mouth-dots {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 24px;
}

.mouth-dots i {
  width: 7px;
  height: 7px;
  border: 1px solid rgba(190, 213, 230, 0.82);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(126, 234, 255, 0.24);
}

.mouth-dots i:nth-child(1),
.mouth-dots i:nth-child(2) {
  background: #66bb6a;
  border-color: #b8f8cb;
}

.mouth-dots i:nth-child(3) {
  background: #2979ff;
  border-color: #e5f9ff;
  animation: mouthDotCurrent 1.05s ease-in-out infinite;
}

.orb-wave {
  inset: 28%;
  border: 2px solid rgba(205, 251, 255, 0.42);
  opacity: 0;
  box-shadow: 0 0 32px color-mix(in srgb, var(--spark) 32%, transparent);
}

.orb-fragment {
  top: 50%;
  left: 50%;
  width: var(--size);
  height: var(--size);
  background:
    radial-gradient(circle at 34% 26%, #ffffff, color-mix(in srgb, var(--spark) 68%, #ffffff 32%) 48%, var(--spark) 74%);
  opacity: var(--fragment-opacity);
  box-shadow: 0 0 22px color-mix(in srgb, var(--spark) 72%, transparent), 0 0 48px color-mix(in srgb, var(--spark) 32%, transparent);
  mix-blend-mode: screen;
  transform:
    rotate(var(--angle))
    translate(var(--distance))
    scale(var(--frag-scale));
  transition: opacity 0.28s ease, transform 0.38s ease, background 0.35s ease;
  animation: fragmentDrift 4.4s ease-in-out infinite;
  animation-delay: var(--fragment-delay, 0s);
}

.effect-word {
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  color: color-mix(in srgb, var(--spark) 72%, #ffffff 28%);
  background: rgba(3, 15, 29, 0.66);
  border: 1px solid color-mix(in srgb, var(--spark) 38%, transparent);
  border-radius: 6px;
  opacity: var(--word-opacity);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 760;
  box-shadow: 0 0 24px color-mix(in srgb, var(--spark) 16%, transparent);
  transform:
    rotate(var(--angle))
    translate(var(--word-distance))
    rotate(var(--counter-angle));
  transition: opacity 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  animation: wordOrbit 9s linear infinite;
  animation-delay: var(--word-delay, 0s);
}

.energy-thread {
  top: 50%;
  left: 50%;
  width: 48%;
  height: 1px;
  opacity: var(--thread-opacity);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--spark) 85%, #ffffff 15%), transparent);
  transform-origin: 0 50%;
  transform: rotate(var(--angle)) translateX(-4px);
  box-shadow: 0 0 18px color-mix(in srgb, var(--spark) 45%, transparent);
}

.ai-presence[data-flare="true"] .orb-wave {
  animation: wave 1.2s ease infinite;
}

.ai-presence[data-split="true"] {
  --fragment-opacity: 0.86;
}

.ai-presence[data-text="true"] {
  --word-opacity: 1;
}

.ai-presence[data-thread="true"] {
  --thread-opacity: 0.82;
}

.ai-presence[data-morph="diamond"] {
  --core-radius: 18%;
  --core-rotate: 45deg;
}

.ai-presence[data-morph="capsule"] {
  --core-radius: 38% 62% 42% 58% / 62% 35% 65% 38%;
}

.ai-presence[data-morph="crystal"] {
  --core-radius: 28% 72% 34% 66% / 52% 33% 67% 48%;
  --core-skew: -7deg;
}

.ai-presence[data-morph="lens"] {
  --core-radius: 50%;
  --core-scale: 1.06;
}

.ai-presence[data-morph="pulse"] {
  --core-scale: 1.14;
}

.ai-presence[data-state="hover"] .orb-core {
  filter: brightness(1.1) saturate(1.14);
}

.ai-presence[data-expression="happy"],
.ai-presence[data-expression="smile"] {
  --eye-w: 15px;
  --eye-h: 9px;
  --eye-radius: 60% 60% 24% 24%;
  --mouth-h: 16px;
  --mouth-y: 7px;
  --mouth-1: 0.58;
  --mouth-2: 0.44;
  --mouth-3: 0.44;
  --mouth-4: 0.58;
  --mouth-shift-1: 1px;
  --mouth-shift-2: 4px;
  --mouth-shift-3: 4px;
  --mouth-shift-4: 1px;
}

.ai-presence[data-expression="excited"] {
  --eye-w: 17px;
  --eye-h: 17px;
  --eye-scale: 1.08;
  --mouth-h: 22px;
  --mouth-gap: 6px;
  --mouth-scale: 1.06;
  --mouth-1: 0.92;
  --mouth-2: 1.18;
  --mouth-3: 1.1;
  --mouth-4: 0.94;
}

.ai-presence[data-expression="curious"] {
  --eye-w: 17px;
  --eye-h: 13px;
  --eye-rotate: -8deg;
  --mouth-h: 18px;
  --mouth-y: 4px;
  --mouth-1: 0.54;
  --mouth-2: 0.82;
  --mouth-3: 1.05;
  --mouth-4: 0.7;
}

.ai-presence[data-expression="focused"],
.ai-presence[data-expression="thinking"] {
  --eye-w: 18px;
  --eye-h: 7px;
  --eye-radius: 12px;
  --mouth-h: 16px;
  --mouth-gap: 5px;
  --mouth-1: 0.64;
  --mouth-2: 0.74;
  --mouth-3: 0.74;
  --mouth-4: 0.64;
}

.ai-presence[data-expression="speaking"] {
  --eye-h: 13px;
  --mouth-h: 20px;
  --mouth-1: 0.78;
  --mouth-2: 1.08;
  --mouth-3: 0.92;
  --mouth-4: 0.7;
}

.ai-presence[data-expression="speaking"] .mouth-bar {
  animation: mouthTalk 0.74s ease-in-out infinite;
  animation-delay: var(--bar-delay, 0s);
}

.ai-presence[data-expression="surprised"] {
  --eye-w: 19px;
  --eye-h: 19px;
  --mouth-w: 6px;
  --mouth-h: 25px;
  --mouth-gap: 4px;
  --mouth-radius: 999px;
  --mouth-scale: 1.06;
  --mouth-1: 0.9;
  --mouth-2: 1.16;
  --mouth-3: 1.16;
  --mouth-4: 0.9;
}

.ai-presence[data-expression="angry"] {
  --eye-w: 17px;
  --eye-h: 7px;
  --eye-radius: 4px;
  --mouth-h: 14px;
  --mouth-rotate: 180deg;
  --mouth-y: 6px;
  --mouth-1: 0.48;
  --mouth-2: 0.76;
  --mouth-3: 0.96;
  --mouth-4: 0.62;
}

.ai-presence[data-expression="angry"] .eye-left {
  transform: translate(var(--eye-mx, 0px), var(--eye-my, 0px)) scale(var(--eye-scale)) rotate(18deg);
}

.ai-presence[data-expression="angry"] .eye-right {
  transform: translate(var(--eye-mx, 0px), var(--eye-my, 0px)) scale(var(--eye-scale)) rotate(-18deg);
}

.ai-presence[data-expression="sad"] {
  --eye-w: 16px;
  --eye-h: 8px;
  --eye-radius: 12px;
  --mouth-h: 14px;
  --mouth-y: 9px;
  --mouth-rotate: 180deg;
  --mouth-opacity: 0.76;
  --mouth-1: 0.7;
  --mouth-2: 0.52;
  --mouth-3: 0.52;
  --mouth-4: 0.7;
  --mouth-shift-1: 4px;
  --mouth-shift-2: 1px;
  --mouth-shift-3: 1px;
  --mouth-shift-4: 4px;
}

.ai-presence[data-expression="sleepy"] {
  --eye-w: 16px;
  --eye-h: 5px;
  --eye-radius: 999px;
  --mouth-h: 14px;
  --mouth-opacity: 0.66;
  --mouth-1: 0.42;
  --mouth-2: 0.56;
  --mouth-3: 0.44;
  --mouth-4: 0.5;
}

.ai-presence[data-expression="yawn"] {
  --eye-w: 15px;
  --eye-h: 5px;
  --eye-radius: 999px;
  --mouth-w: 6px;
  --mouth-h: 28px;
  --mouth-gap: 4px;
  --mouth-radius: 999px;
  --mouth-1: 0.88;
  --mouth-2: 1.2;
  --mouth-3: 1.2;
  --mouth-4: 0.88;
}

.ai-presence[data-expression="yawn"] .orb-mouth {
  animation: yawnStretch 1.8s ease-in-out infinite;
}

.ai-presence[data-expression="wink"] .eye-left,
.ai-presence[data-expression="blink"] .orb-eye {
  animation: eyeBlink 1.6s ease-in-out infinite;
}

.ai-presence[data-expression="skeptical"] {
  --eye-w: 17px;
  --eye-h: 7px;
  --eye-rotate: -12deg;
  --mouth-h: 15px;
  --mouth-rotate: -7deg;
  --mouth-1: 0.46;
  --mouth-2: 0.62;
  --mouth-3: 0.9;
  --mouth-4: 0.58;
}

.ai-presence[data-expression="confused"] {
  --eye-w: 15px;
  --eye-h: 17px;
  --mouth-h: 18px;
  --mouth-rotate: 9deg;
  --mouth-1: 1.02;
  --mouth-2: 0.56;
  --mouth-3: 0.88;
  --mouth-4: 0.62;
}

.ai-presence[data-expression="proud"] {
  --eye-w: 15px;
  --eye-h: 10px;
  --eye-scale: 1.04;
  --mouth-h: 16px;
  --mouth-y: 8px;
  --mouth-scale: 1.12;
  --mouth-1: 0.54;
  --mouth-2: 0.42;
  --mouth-3: 0.5;
  --mouth-4: 0.72;
}

.ai-presence[data-expression="calm"] {
  --eye-w: 16px;
  --eye-h: 11px;
  --mouth-h: 16px;
  --mouth-opacity: 0.82;
  --mouth-1: 0.6;
  --mouth-2: 0.78;
  --mouth-3: 0.78;
  --mouth-4: 0.6;
}

.ai-presence[data-expression="searching"],
.ai-presence[data-expression="reading"] {
  --eye-w: 18px;
  --eye-h: 13px;
  --mouth-h: 17px;
  --mouth-gap: 6px;
  --mouth-1: 0.72;
  --mouth-2: 0.94;
  --mouth-3: 0.68;
  --mouth-4: 0.96;
}

.ai-presence[data-expression="searching"] .orb-eye,
.ai-presence[data-expression="reading"] .orb-eye {
  animation: eyeScan 1.9s ease-in-out infinite;
}

.ai-presence[data-expression="alert"] {
  --eye-w: 18px;
  --eye-h: 10px;
  --eye-radius: 6px;
  --mouth-h: 19px;
  --mouth-opacity: 1;
  --mouth-1: 1;
  --mouth-2: 0.84;
  --mouth-3: 1.05;
  --mouth-4: 0.82;
}

.ai-presence[data-expression="love"] {
  --eye-w: 17px;
  --eye-h: 17px;
  --eye-radius: 45% 45% 54% 54%;
  --mouth-h: 15px;
  --mouth-y: 8px;
  --mouth-1: 0.48;
  --mouth-2: 0.36;
  --mouth-3: 0.36;
  --mouth-4: 0.48;
}

.ai-presence[data-expression="dizzy"] {
  --eye-w: 16px;
  --eye-h: 16px;
  --mouth-h: 18px;
  --mouth-rotate: 12deg;
  --mouth-1: 0.98;
  --mouth-2: 0.54;
  --mouth-3: 1.02;
  --mouth-4: 0.5;
}

.ai-presence[data-expression="dizzy"] .orb-eye {
  animation: dizzyEyes 1.2s linear infinite;
}

.ai-presence[data-expression="loading"] {
  --eye-w: 14px;
  --eye-h: 14px;
  --mouth-h: 18px;
  --mouth-gap: 5px;
  --mouth-1: 0.56;
  --mouth-2: 0.86;
  --mouth-3: 0.66;
  --mouth-4: 0.92;
}

.ai-presence[data-expression="loading"] .mouth-bar {
  animation: mouthLoading 1s ease-in-out infinite;
  animation-delay: var(--bar-delay, 0s);
}

.ai-presence[data-mouth] {
  --mouth-w: 4px;
  --mouth-h: 15px;
  --mouth-gap: 6px;
  --mouth-radius: 6px;
  --mouth-color-a: #f4feff;
  --mouth-color-b: #2ce6ff;
  --mouth-color-c: #2979ff;
  --mouth-chart-color: #7eeaff;
}

.ai-presence[data-mouth="idle"] {
  --mouth-1: 0.68;
  --mouth-2: 0.94;
  --mouth-3: 0.92;
  --mouth-4: 0.7;
}

.ai-presence[data-mouth="typing"] {
  --mouth-color-b: #42a5f5;
  --mouth-color-c: #2979ff;
}

.ai-presence[data-mouth="typing"] .mouth-bar:nth-child(-n + 4) {
  animation: mouthTypingFloat 1s ease-in-out infinite;
  animation-delay: var(--bar-delay, 0s);
}

.ai-presence[data-mouth="receiving"] .mouth-bar:nth-child(-n + 4) {
  animation: mouthReceive 0.58s ease forwards;
  animation-delay: calc(var(--i) * 0.08s);
}

.ai-presence[data-mouth="satisfied"] {
  --mouth-color-b: #00c8b8;
  --mouth-color-c: #31d8cd;
  --mouth-1: 0.62;
  --mouth-2: 0.96;
  --mouth-3: 0.96;
  --mouth-4: 0.62;
  --mouth-shift-1: 2px;
  --mouth-shift-2: -1px;
  --mouth-shift-3: -1px;
  --mouth-shift-4: 2px;
}

.ai-presence[data-mouth="satisfied"] .mouth-bar:nth-child(-n + 4) {
  animation: mouthSmileFloat 1s ease-in-out infinite;
  animation-delay: var(--bar-delay, 0s);
}

.ai-presence[data-mouth="deep"] {
  --mouth-color-b: #1e88e5;
  --mouth-color-c: #0d47a1;
  --mouth-1: 0.82;
  --mouth-2: 0.98;
  --mouth-3: 0.88;
  --mouth-4: 0.74;
}

.ai-presence[data-mouth="deep"] .mouth-bar:nth-child(-n + 4) {
  animation: mouthDeepWave 1.66s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.18s);
}

.ai-presence[data-mouth="confused"] {
  --mouth-color-b: #7e57c2;
  --mouth-color-c: #5e35b1;
  --mouth-1: 1;
  --mouth-2: 0.62;
  --mouth-3: 0.88;
  --mouth-4: 0.68;
}

.ai-presence[data-mouth="confused"] .mouth-bar:nth-child(-n + 4) {
  animation: mouthConfused 1.25s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.11s);
}

.ai-presence[data-mouth="surprise"] {
  --mouth-color-b: #42a5f5;
  --mouth-color-c: #1e88e5;
  --mouth-1: 0.82;
  --mouth-2: 1.05;
  --mouth-3: 1.05;
  --mouth-4: 0.82;
}

.ai-presence[data-mouth="surprise"] .mouth-bar:nth-child(-n + 4) {
  animation: mouthSurprise 1s ease-in-out 1;
}

.ai-presence[data-mouth="dissatisfied"] {
  --mouth-color-a: #dbe5ea;
  --mouth-color-b: #90a4ae;
  --mouth-color-c: #607d8b;
  --mouth-opacity: 0.72;
  --mouth-1: 0.6;
  --mouth-2: 0.6;
  --mouth-3: 0.6;
  --mouth-4: 0.6;
}

.ai-presence[data-mouth="dissatisfied"] .mouth-bar:nth-child(-n + 4) {
  animation: mouthLowSlow 2s ease-in-out infinite;
}

.ai-presence[data-mouth="apology"] {
  --mouth-color-a: #eef5f7;
  --mouth-color-b: #b0bec5;
  --mouth-color-c: #78909c;
  --mouth-opacity: 0.7;
  --mouth-1: 0.58;
  --mouth-2: 0.5;
  --mouth-3: 0.5;
  --mouth-4: 0.58;
  --mouth-shift-1: 0px;
  --mouth-shift-2: 3px;
  --mouth-shift-3: 3px;
  --mouth-shift-4: 0px;
}

.ai-presence[data-mouth="apology"] .mouth-bar:nth-child(-n + 4) {
  animation: none;
}

.ai-presence[data-mouth="humor"] {
  --mouth-color-b: #80cbc4;
  --mouth-color-c: #26a69a;
}

.ai-presence[data-mouth="humor"] .mouth-bar:nth-child(-n + 4) {
  animation: mouthHumor 0.83s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.09s);
}

.ai-presence[data-mouth="loading"] {
  --mouth-color-a: #f7fdff;
  --mouth-color-b: #bbdefb;
  --mouth-color-c: #64b5f6;
}

.ai-presence[data-mouth="loading"] .mouth-bar:nth-child(-n + 4) {
  animation: mouthBreath 1s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.13s);
}

.ai-presence[data-mouth="retrieving"] .mouth-bar,
.ai-presence[data-mouth^="chart"] .mouth-bar {
  opacity: 0;
}

.ai-presence[data-mouth="retrieving"] .mouth-progress {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.ai-presence[data-mouth="generating"] {
  --mouth-w: 3px;
  --mouth-h: 17px;
  --mouth-gap: 4px;
  --mouth-color-b: #42a5f5;
  --mouth-color-c: #7e57c2;
}

.ai-presence[data-mouth="generating"] .mouth-bar {
  animation: mouthGenerateWave 0.68s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.055s);
}

.ai-presence[data-mouth="generating"] .mouth-bar:nth-child(n + 5) {
  display: block;
}

.ai-presence[data-mouth="analyzing"] {
  --mouth-color-b: #1e88e5;
  --mouth-color-c: #66bb6a;
}

.ai-presence[data-mouth="analyzing"] .mouth-bar:nth-child(-n + 4) {
  animation: mouthAnalysis 1s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.1s);
}

.ai-presence[data-mouth="matching"] {
  --mouth-color-b: #2979ff;
  --mouth-color-c: #7e57c2;
  --mouth-1: 0.68;
  --mouth-2: 1.02;
  --mouth-3: 0.78;
  --mouth-4: 1.08;
}

.ai-presence[data-mouth="matching"] .mouth-bar:nth-child(-n + 4) {
  animation: mouthComparePulse 1.08s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.08s);
}

.ai-presence[data-mouth="complete"] {
  --mouth-color-b: #4caf50;
  --mouth-color-c: #66bb6a;
}

.ai-presence[data-mouth="complete"] .mouth-bar:nth-child(-n + 4) {
  animation: mouthComplete 1s ease-in-out 1;
}

.ai-presence[data-mouth="error"] {
  --mouth-color-a: #ffd9de;
  --mouth-color-b: #ef5350;
  --mouth-color-c: #b71c1c;
  --mouth-1: 0.4;
  --mouth-2: 0.4;
  --mouth-3: 0.4;
  --mouth-4: 0.4;
}

.ai-presence[data-mouth="error"] .mouth-bar:nth-child(-n + 4) {
  animation: mouthLowSlow 2s ease-in-out infinite;
}

.ai-presence[data-mouth="transfer"] {
  --mouth-color-b: #66bb6a;
  --mouth-color-c: #2e7d32;
}

.ai-presence[data-mouth="transfer"] .mouth-bar:nth-child(-n + 4) {
  overflow: hidden;
  background: rgba(102, 187, 106, 0.18);
  animation: none;
}

.ai-presence[data-mouth="transfer"] .mouth-bar:nth-child(-n + 4)::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: var(--mouth-progress);
  background: linear-gradient(180deg, #d8fff0, #66bb6a);
  border-radius: inherit;
  box-shadow: 0 0 14px rgba(102, 187, 106, 0.45);
  transition: height 0.36s ease;
}

.ai-presence[data-mouth="diagnosis"] {
  --mouth-color-b: #42a5f5;
  --mouth-color-c: #7e57c2;
}

.ai-presence[data-mouth="diagnosis"] .orb-mouth {
  animation: mouthOrbitTurn 1.8s linear infinite;
}

.ai-presence[data-mouth^="quick"] .mouth-bar:nth-child(-n + 4) {
  animation: mouthQuickHop 0.8s ease-in-out 1;
}

.ai-presence[data-mouth="quick-purple"] {
  --mouth-color-b: #7e57c2;
  --mouth-color-c: #512da8;
}

.ai-presence[data-mouth="quick-orange"] {
  --mouth-color-b: #ffb74d;
  --mouth-color-c: #f57c00;
}

.ai-presence[data-mouth="quick-green"] {
  --mouth-color-b: #66bb6a;
  --mouth-color-c: #2e7d32;
}

.ai-presence[data-mouth="quick-cyan"] {
  --mouth-color-b: #00e5ff;
  --mouth-color-c: #00838f;
}

.ai-presence[data-mouth="quick-pink"] {
  --mouth-color-b: #ec7abf;
  --mouth-color-c: #ad3c88;
}

.ai-presence[data-mouth="quick-blue"] {
  --mouth-color-b: #42a5f5;
  --mouth-color-c: #1e88e5;
}

.ai-presence[data-mouth-chart="line"] {
  --mouth-chart-color: #66bb6a;
}

.ai-presence[data-mouth-chart="compare"] {
  --mouth-1: 0.72;
  --mouth-2: 1.08;
  --mouth-3: 0.62;
  --mouth-4: 1.18;
}

.ai-presence[data-mouth-chart="compare"] .mouth-bar:nth-child(1),
.ai-presence[data-mouth-chart="compare"] .mouth-bar:nth-child(2) {
  --mouth-color-b: #2979ff;
  opacity: 1;
}

.ai-presence[data-mouth-chart="compare"] .mouth-bar:nth-child(3),
.ai-presence[data-mouth-chart="compare"] .mouth-bar:nth-child(4) {
  --mouth-color-b: #7e57c2;
  --mouth-color-c: #5e35b1;
  opacity: 1;
}

.ai-presence[data-mouth-chart="line"] .mouth-line-chart,
.ai-presence[data-mouth-chart="donut"] .mouth-donut,
.ai-presence[data-mouth-chart="wave"] .mouth-wave-chart,
.ai-presence[data-mouth-chart="metric"] .mouth-metric,
.ai-presence[data-mouth-chart="progress"] .mouth-dots {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.ai-presence[data-mouth-chart="line"] .mouth-line-chart polyline,
.ai-presence[data-mouth-chart="wave"] .mouth-wave-chart path {
  animation: mouthDrawChart 0.72s ease forwards;
}

.ai-presence[data-mouth-chart="wave"] {
  --mouth-chart-color: #7e57c2;
}

.ai-presence[data-mouth-chart="wave"] .mouth-wave-chart path {
  animation: mouthDrawChart 0.72s ease forwards, mouthWaveDrift 1.4s ease-in-out infinite 0.72s;
}

.ai-presence[data-mouth-chart="metric"] .mouth-metric {
  animation: mouthMetricPop 0.58s ease-out 1;
}

.ai-presence[data-state="press"] .orb-core {
  filter: brightness(1.2) saturate(1.3);
  transform: scale(1.16) rotate(var(--core-rotate)) skew(var(--core-skew));
  box-shadow:
    0 0 calc(var(--glow-size) + 38px) color-mix(in srgb, var(--spark) 72%, transparent),
    inset 0 0 48px rgba(255, 255, 255, 0.32);
}

.ai-presence[data-press="charging"] .ring-one,
.ai-presence[data-press="active"] .ring-one {
  border-color: color-mix(in srgb, var(--spark) 74%, transparent);
  animation-duration: 3.4s;
}

.ai-presence[data-press="active"] {
  --fragment-opacity: 1;
  --word-opacity: 1;
  --thread-opacity: 1;
}

.ai-presence[data-press="active"] .ring-two,
.ai-presence[data-press="active"] .ring-three {
  animation-duration: 2.8s;
  box-shadow: 0 0 54px color-mix(in srgb, var(--spark) 34%, transparent);
}

.ai-presence[data-press="active"] .orb-wave {
  opacity: 1;
  animation: wave 0.92s ease infinite;
}

.ai-presence[data-state="listening"] .ring-two {
  border-color: rgba(71, 230, 167, 0.62);
}

.ai-presence[data-state="thinking"] .orb-wave,
.ai-presence[data-state="speaking"] .orb-wave {
  animation: wave 1.4s ease infinite;
}

.ai-presence[data-state="speaking"] .orb-core {
  animation: speakPulse 0.9s ease infinite;
}

.ai-presence[data-state="error"] .orb-core {
  box-shadow: 0 0 44px rgba(255, 107, 138, 0.48), inset 0 0 38px rgba(255, 255, 255, 0.2);
}

.ai-state-indicator {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 12;
  display: none;
  box-sizing: border-box;
  width: min(78%, 320px);
  padding: 10px 12px 11px;
  overflow: hidden;
  color: #eaf8ff;
  background: rgba(2, 12, 24, 0.54);
  border: 1px solid color-mix(in srgb, var(--panel-accent) 34%, rgba(255, 255, 255, 0.14));
  border-radius: 7px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
  white-space: nowrap;
}

.ai-presence[data-reasoning="visible"] .ai-state-indicator {
  display: block;
}

.ai-state-indicator [data-ai-reasoning-content] {
  display: inline-block;
  min-width: max-content;
  max-width: none;
  overflow: visible;
  padding-inline: 4px;
  color: #f5fbff;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.35;
  text-overflow: clip;
  white-space: nowrap;
  will-change: transform;
  animation: aiReasoningMarquee var(--reasoning-duration, 12s) linear infinite;
}

@keyframes aiReasoningMarquee {
  0% {
    opacity: 0.18;
    transform: translateX(calc(-1 * var(--reasoning-text-width, 160px)));
  }

  8%,
  92% {
    opacity: 1;
  }

  100% {
    opacity: 0.18;
    transform: translateX(var(--reasoning-box-width, 320px));
  }
}

.ai-state-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: end;
}

.ai-state-copy span {
  grid-column: 1 / 2;
  color: color-mix(in srgb, var(--panel-accent) 76%, #ffffff 24%);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.03em;
}

.ai-state-copy strong {
  grid-column: 1 / 2;
  overflow: hidden;
  color: #f5fbff;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-state-copy em {
  grid-column: 2 / 3;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--ai-progress-color, var(--cyan));
  font-style: normal;
  font-size: 18px;
  font-weight: 850;
  text-shadow: 0 0 18px color-mix(in srgb, var(--ai-progress-color, var(--cyan)) 48%, transparent);
}

.ai-state-track,
.ai-panel-progress {
  position: relative;
  height: 3px;
  overflow: hidden;
  background: rgba(173, 221, 255, 0.13);
  border-radius: 999px;
}

.ai-state-track {
  margin-top: 9px;
}

.ai-state-track i,
.ai-panel-progress i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--ai-progress, 0%);
  background: linear-gradient(90deg, color-mix(in srgb, var(--ai-progress-color, var(--cyan)) 52%, #ffffff 18%), var(--ai-progress-color, var(--cyan)));
  border-radius: inherit;
  box-shadow: 0 0 16px color-mix(in srgb, var(--ai-progress-color, var(--cyan)) 56%, transparent);
  transition: width 0.32s ease, background 0.28s ease;
}

.ai-presence[data-progress="idle"] .ai-state-track i,
.ai-presence[data-progress="idle"] .ai-panel-progress i {
  opacity: 0.62;
}

.ai-panel-progress {
  margin-top: 12px;
}

.orb-sunglasses,
.orb-crown {
  position: absolute;
  z-index: 8;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.28s ease, filter 0.28s ease;
}

.orb-sunglasses {
  top: 40.5%;
  left: 50%;
  width: 78px;
  height: 28px;
  transform: translate(-50%, -4px) scale(0.86);
}

.orb-sunglasses::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 28px;
  height: 20px;
  background: linear-gradient(150deg, rgba(0, 0, 0, 0.96), rgba(10, 24, 40, 0.92));
  border: 1px solid rgba(140, 235, 255, 0.55);
  border-radius: 7px 7px 12px 12px;
  box-shadow: 40px 0 0 rgba(0, 0, 0, 0.94), 40px 0 0 1px rgba(140, 235, 255, 0.55), 0 0 18px rgba(44, 230, 255, 0.24);
}

.orb-sunglasses::after {
  content: "";
  position: absolute;
  left: 34px;
  top: 11px;
  width: 10px;
  height: 3px;
  background: rgba(6, 16, 30, 0.95);
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(44, 230, 255, 0.28);
}

.orb-crown {
  top: 22%;
  left: 50%;
  width: 74px;
  height: 38px;
  background:
    linear-gradient(180deg, #fff7b2 0 16%, #ffcf6b 38%, #f4a829 100%);
  clip-path: polygon(0 100%, 0 42%, 16% 58%, 26% 4%, 42% 56%, 50% 10%, 58% 56%, 74% 4%, 84% 58%, 100% 42%, 100% 100%);
  filter: drop-shadow(0 0 16px rgba(255, 207, 107, 0.62));
  transform: translate(-50%, -8px) scale(0.88);
}

.ai-presence[data-vip="true"] .orb-sunglasses,
.ai-presence[data-vip="true"] .orb-crown {
  opacity: 1;
}

.ai-presence[data-vip="true"] .orb-sunglasses {
  transform: translate(-50%, 0) scale(1);
}

.ai-presence[data-vip="true"] .orb-crown {
  transform: translate(-50%, 0) scale(1);
}

.coin-rain-layer {
  position: absolute;
  inset: 0;
  z-index: 11;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.ai-presence[data-coin-rain="true"] .coin-rain-layer {
  opacity: 1;
}

.coin-drop {
  position: absolute;
  top: -36px;
  left: var(--x);
  width: var(--size);
  height: var(--size);
  background:
    radial-gradient(circle at 34% 28%, #fffbd0, #ffd36a 44%, #d8941c 76%, #8b5c0f 100%);
  border: 1px solid rgba(255, 245, 188, 0.78);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(255, 207, 107, 0.42), inset 0 0 0 3px rgba(126, 75, 8, 0.18);
  animation: coinFall var(--duration) linear var(--delay) forwards;
}

.coin-drop::before {
  content: "PGC";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(96, 57, 8, 0.88);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.ai-status-panel {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: min(82%, 340px);
  padding: 16px;
  background: rgba(3, 15, 29, 0.74);
  border: 1px solid color-mix(in srgb, var(--panel-accent) 42%, transparent);
  border-radius: 7px;
}

.ai-status-panel span {
  color: var(--panel-accent);
}

.ai-status-panel strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  text-shadow: 0 0 20px color-mix(in srgb, var(--panel-accent) 22%, transparent);
}

.ai-status-panel small {
  display: none;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.page-ai-presence {
  position: fixed;
  right: clamp(16px, 2vw, 30px);
  bottom: clamp(18px, 2.4vw, 34px);
  z-index: 86;
  width: clamp(220px, 18vw, 292px);
  min-height: clamp(270px, 25vw, 368px);
  padding: 14px;
  border-radius: 14px;
  background:
    radial-gradient(circle at calc(50% + var(--mx, 0px)) calc(48% + var(--my, 0px)), rgba(47, 211, 255, 0.3), transparent 19%),
    radial-gradient(circle at 50% 48%, rgba(42, 143, 255, 0.23), transparent 46%),
    linear-gradient(180deg, rgba(4, 19, 39, 0.86), rgba(2, 9, 21, 0.86));
  border-color: rgba(126, 234, 255, 0.28);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36), inset 0 0 60px rgba(44, 230, 255, 0.08);
  backdrop-filter: blur(18px);
}

.page-ai-presence.compact {
  min-height: clamp(270px, 25vw, 368px);
}

.page-ai-presence:hover {
  border-color: rgba(126, 234, 255, 0.52);
  box-shadow: 0 28px 86px rgba(0, 0, 0, 0.42), 0 0 34px rgba(44, 230, 255, 0.16), inset 0 0 66px rgba(44, 230, 255, 0.1);
}

.page-ai-presence::before {
  inset: -44%;
  opacity: 0.7;
}

.page-ai-presence::after {
  inset: 5%;
  opacity: 0.74;
}

.page-ai-presence .ai-orb {
  width: min(68vw, 214px);
  height: min(68vw, 214px);
}

.page-ai-presence .orb-fragment {
  --distance: 92px;
}

.page-ai-presence .effect-word {
  font-size: 9px;
}

.page-ai-presence .ai-state-indicator {
  top: 12px;
  width: min(86%, 252px);
  padding: 8px 10px;
  font-size: 12px;
}

.page-ai-presence .ai-status-panel {
  right: 12px;
  bottom: 12px;
  width: calc(100% - 24px);
  padding: 12px;
  border-radius: 9px;
  background: rgba(3, 15, 29, 0.68);
}

.page-ai-presence .ai-status-panel strong {
  margin-top: 6px;
  font-size: clamp(15px, 1.3vw, 17px);
}

.page-ai-chat-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 10px;
  color: #ecfbff;
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
}

.page-ai-chat-link::after {
  content: ">";
  margin-left: 8px;
  color: var(--panel-accent);
}

.page-ai-chat-link:hover {
  color: var(--cyan);
}

html[data-pgc-theme="light"] .site-nav,
html[data-pgc-theme="light"] .advisor-console,
html[data-pgc-theme="light"] .home-console,
html[data-pgc-theme="light"] .chat-history-panel,
html[data-pgc-theme="light"] .chat-panel,
html[data-pgc-theme="light"] .chat-side,
html[data-pgc-theme="light"] .message,
html[data-pgc-theme="light"] .history-item,
html[data-pgc-theme="light"] .content-card,
html[data-pgc-theme="light"] .content-cta,
html[data-pgc-theme="light"] .content-detail,
html[data-pgc-theme="light"] .advisor-option-groups,
html[data-pgc-theme="light"] .resource-card,
html[data-pgc-theme="light"] .about-principle,
html[data-pgc-theme="light"] .about-values,
html[data-pgc-theme="light"] .about-info-card,
html[data-pgc-theme="light"] .value-chip,
html[data-pgc-theme="light"] .service-project-card,
html[data-pgc-theme="light"] .download-card,
html[data-pgc-theme="light"] .site-footer,
html[data-pgc-theme="light"] .footer-inner {
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(42, 117, 188, 0.18);
  box-shadow: 0 18px 54px rgba(58, 100, 144, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

html[data-pgc-theme="light"] .site-nav {
  background: rgba(255, 255, 255, 0.86);
}

html[data-pgc-theme="light"] .message.assistant,
html[data-pgc-theme="light"] .history-item[data-active="true"] {
  background: linear-gradient(135deg, rgba(226, 248, 255, 0.86), rgba(255, 255, 255, 0.8));
  border-color: rgba(29, 154, 219, 0.28);
}

html[data-pgc-theme="light"] textarea,
html[data-pgc-theme="light"] input {
  color: #102033;
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(42, 117, 188, 0.24);
}

html[data-pgc-theme="light"] textarea::placeholder,
html[data-pgc-theme="light"] input::placeholder,
html[data-pgc-theme="light"] .content-card p,
html[data-pgc-theme="light"] .content-hero p,
html[data-pgc-theme="light"] .hero-copy p,
html[data-pgc-theme="light"] .footer-brand span,
html[data-pgc-theme="light"] .footer-meta span,
html[data-pgc-theme="light"] .message-content,
html[data-pgc-theme="light"] .resource-card p,
html[data-pgc-theme="light"] .about-principle p,
html[data-pgc-theme="light"] .about-info-card p {
  color: var(--muted);
}

html[data-pgc-theme="light"] .brand-copy strong,
html[data-pgc-theme="light"] .hero-copy h1,
html[data-pgc-theme="light"] .chat-header h1,
html[data-pgc-theme="light"] .content-hero h1,
html[data-pgc-theme="light"] .content-card h2,
html[data-pgc-theme="light"] .message-role,
html[data-pgc-theme="light"] .footer-brand strong {
  color: #0b1d31;
}

html[data-pgc-theme="light"] .quick-prompts button,
html[data-pgc-theme="light"] .chat-shortcuts button,
html[data-pgc-theme="light"] .advisor-option-group button,
html[data-pgc-theme="light"] .history-actions button,
html[data-pgc-theme="light"] .attachment-pill {
  color: #17324f;
  background: rgba(235, 247, 255, 0.86);
  border-color: rgba(42, 117, 188, 0.2);
}

html[data-pgc-theme="light"] .model-chip {
  color: #0e6f4c;
  background: rgba(71, 230, 167, 0.14);
}

html[data-pgc-theme="light"] .page-ai-presence {
  background:
    radial-gradient(circle at calc(50% + var(--mx, 0px)) calc(48% + var(--my, 0px)), rgba(47, 211, 255, 0.32), transparent 19%),
    radial-gradient(circle at 50% 48%, rgba(42, 143, 255, 0.2), transparent 46%),
    linear-gradient(180deg, rgba(242, 249, 255, 0.9), rgba(215, 237, 255, 0.78));
}

.theme-progress-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  pointer-events: none;
  place-items: center;
  background: rgba(1, 8, 18, 0);
  opacity: 0;
  transition: opacity 0.24s ease, background 0.24s ease;
}

.theme-progress-modal[data-active="true"] {
  pointer-events: auto;
  opacity: 1;
  background: rgba(1, 8, 18, 0.42);
}

.theme-progress-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  width: min(calc(100% - 36px), 520px);
  padding: 22px;
  color: #eefaff;
  background:
    radial-gradient(circle at 18% 18%, rgba(44, 230, 255, 0.2), transparent 34%),
    linear-gradient(145deg, rgba(6, 22, 42, 0.94), rgba(3, 12, 26, 0.96));
  border: 1px solid rgba(126, 234, 255, 0.32);
  border-radius: 14px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(22px);
}

.theme-progress-avatar {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: 50%;
}

.mini-ring,
.mini-core,
.mini-eye,
.mini-mouth,
.mini-mouth i {
  position: absolute;
}

.mini-ring {
  inset: 8px;
  border: 1px solid rgba(126, 234, 255, 0.72);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(44, 230, 255, 0.28);
}

.mini-ring-one {
  transform: rotate(-16deg) scaleX(1.18);
  animation: orbit 5s linear infinite;
}

.mini-ring-two {
  transform: rotate(68deg) scaleX(1.08);
  animation: orbit 7s linear reverse infinite;
}

.mini-core {
  inset: 22px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.18) 20%, transparent 26%),
    radial-gradient(circle at 62% 74%, rgba(77, 235, 255, 0.62), transparent 34%),
    linear-gradient(135deg, rgba(204, 253, 255, 0.9), rgba(68, 142, 255, 0.78));
  box-shadow: 0 0 34px rgba(44, 230, 255, 0.54), inset 0 0 30px rgba(255, 255, 255, 0.24);
}

.mini-eye {
  top: 47px;
  z-index: 2;
  width: 9px;
  height: 9px;
  background: #efffff;
  border-radius: 50%;
  box-shadow: 0 0 13px rgba(239, 255, 255, 0.9);
}

.mini-eye-left { left: 42px; }
.mini-eye-right { right: 42px; }

.mini-mouth {
  top: 65px;
  left: 50%;
  z-index: 2;
  display: flex;
  gap: 3px;
  transform: translateX(-50%);
}

.mini-mouth i {
  position: relative;
  display: block;
  width: 3px;
  height: 12px;
  background: linear-gradient(180deg, #f8ffff, #2ce6ff);
  border-radius: 4px;
  animation: mouthTalk 0.82s ease-in-out infinite;
}

.mini-mouth i:nth-child(2) { animation-delay: -0.14s; }
.mini-mouth i:nth-child(3) { animation-delay: -0.28s; }
.mini-mouth i:nth-child(4) { animation-delay: -0.42s; }

.theme-progress-copy {
  display: grid;
  gap: 8px;
}

.theme-progress-copy span {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 780;
}

.theme-progress-copy strong {
  color: #ffffff;
  font-size: 22px;
  line-height: 1.25;
}

.theme-progress-copy p {
  min-height: 42px;
  margin: 0;
  color: #b8cadf;
  line-height: 1.55;
}

.theme-progress-track {
  height: 8px;
  overflow: hidden;
  background: rgba(173, 221, 255, 0.16);
  border-radius: 999px;
}

.theme-progress-track i {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #2ce6ff, #47e6a7, #ffcf6b);
  border-radius: inherit;
  box-shadow: 0 0 18px rgba(44, 230, 255, 0.58);
  transition: width 0.09s linear;
}

.theme-progress-copy small {
  justify-self: end;
  color: #f6fbff;
  font-weight: 800;
}

html[data-pgc-theme="light"] .theme-progress-modal[data-active="true"] {
  background: rgba(220, 235, 248, 0.54);
}

html[data-pgc-theme="light"] .theme-progress-card {
  color: #102033;
  background:
    radial-gradient(circle at 18% 18%, rgba(44, 230, 255, 0.22), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(230, 244, 255, 0.96));
  border-color: rgba(42, 117, 188, 0.24);
  box-shadow: 0 28px 90px rgba(54, 98, 144, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

html[data-pgc-theme="light"] .theme-progress-copy strong {
  color: #102033;
}

html[data-pgc-theme="light"] .theme-progress-copy p {
  color: #52667c;
}

html[data-pgc-theme="light"] .theme-progress-copy small {
  color: #17324f;
}

.experience-layer {
  position: fixed;
  inset: 0;
  z-index: 1150;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.32s ease;
}

.experience-layer[data-active="true"],
.experience-layer[data-weather="rain"],
.experience-layer[data-weather="snow"],
.experience-layer[data-weather="thunder"],
.experience-layer[data-weather="cloudy"],
.experience-layer[data-weather="wind"],
.experience-layer[data-weather="heavy-rain"],
.experience-layer[data-weather="thunder-rain"],
.experience-layer[data-weather="hail"],
.experience-layer[data-weather="sunny"],
.experience-layer[data-weather="light-snow"],
.experience-layer[data-weather="heavy-snow"],
.experience-layer[data-weather="fluff"],
.experience-layer[data-weather="dust"],
.experience-layer[data-weather="overcast"],
.experience-layer[data-weather="cloudy-shift"],
.experience-layer[data-weather="sakura"],
.experience-layer[data-weather="willow"],
.experience-layer[data-weather="bubbles"],
.experience-layer[data-weather="hearts"],
.experience-layer[data-weather="firecrackers"],
.experience-layer[data-weather="festival-firecrackers"],
.experience-layer[data-weather="ingot-rain"],
.experience-layer[data-weather="dollar-rain"],
.experience-layer[data-weather="dragon-flight"],
.experience-layer[data-weather="dragon-phoenix"],
.experience-layer[data-light="on"],
.experience-layer[data-light="off"] {
  opacity: 1;
}

.experience-weather,
.experience-light {
  position: absolute;
  inset: 0;
  display: none;
}

.experience-layer[data-weather="rain"] .effect-rain,
.experience-layer[data-weather="snow"] .effect-snow,
.experience-layer[data-weather="thunder"] .effect-thunder,
.experience-layer[data-weather="cloudy"] .effect-cloudy,
.experience-layer[data-weather="wind"] .effect-wind,
.experience-layer[data-weather="heavy-rain"] .effect-heavy-rain,
.experience-layer[data-weather="thunder-rain"] .effect-thunder-rain,
.experience-layer[data-weather="hail"] .effect-hail,
.experience-layer[data-weather="sunny"] .effect-sunny,
.experience-layer[data-weather="light-snow"] .effect-light-snow,
.experience-layer[data-weather="heavy-snow"] .effect-heavy-snow,
.experience-layer[data-weather="fluff"] .effect-fluff,
.experience-layer[data-weather="dust"] .effect-dust,
.experience-layer[data-weather="overcast"] .effect-overcast,
.experience-layer[data-weather="cloudy-shift"] .effect-cloudy-shift,
.experience-layer[data-weather="sakura"] .effect-sakura,
.experience-layer[data-weather="willow"] .effect-willow,
.experience-layer[data-weather="bubbles"] .effect-bubbles,
.experience-layer[data-weather="hearts"] .effect-hearts,
.experience-layer[data-weather="firecrackers"] .effect-firecrackers,
.experience-layer[data-weather="festival-firecrackers"] .effect-festival-firecrackers,
.experience-layer[data-weather="ingot-rain"] .effect-ingot-rain,
.experience-layer[data-weather="dollar-rain"] .effect-dollar-rain,
.experience-layer[data-weather="dragon-flight"] .effect-dragon-flight,
.experience-layer[data-weather="dragon-phoenix"] .effect-dragon-phoenix,
.experience-layer[data-light="on"] .effect-light-on,
.experience-layer[data-light="off"] .effect-light-off {
  display: block;
}

.effect-rain {
  background:
    radial-gradient(circle at 20% 12%, rgba(44, 230, 255, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(7, 19, 34, 0.08), rgba(12, 44, 72, 0.2));
  mix-blend-mode: screen;
}

.effect-rain i {
  position: absolute;
  left: var(--x);
  top: -14vh;
  width: 2px;
  height: clamp(46px, 8vh, 92px);
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(181, 247, 255, 0.86), rgba(44, 230, 255, 0.2));
  box-shadow: 0 0 10px rgba(44, 230, 255, 0.36);
  transform: translateX(var(--drift)) rotate(12deg);
  animation: pgcRainFall var(--duration) linear infinite;
  animation-delay: var(--delay);
}

.effect-snow {
  background: radial-gradient(circle at 50% 8%, rgba(232, 249, 255, 0.18), transparent 32%);
  mix-blend-mode: screen;
}

.effect-snow i {
  position: absolute;
  left: var(--x);
  top: -8vh;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0 28%, rgba(181, 236, 255, 0.82) 52%, transparent 74%);
  filter: drop-shadow(0 0 8px rgba(184, 239, 255, 0.7));
  opacity: 0.78;
  animation: pgcSnowFall calc(var(--duration) * 1.85) ease-in-out infinite;
  animation-delay: var(--delay);
}

.effect-thunder {
  background: radial-gradient(circle at 60% 12%, rgba(116, 134, 255, 0.16), transparent 30%);
  mix-blend-mode: screen;
}

.thunder-flash,
.thunder-bolt {
  position: absolute;
  display: block;
}

.thunder-flash {
  inset: 0;
  background: rgba(210, 240, 255, 0.78);
  opacity: 0;
  animation: pgcThunderFlash 1.75s ease-in-out 3;
}

.thunder-bolt {
  width: 3px;
  height: 36vh;
  background: linear-gradient(180deg, #ffffff, #70e9ff 45%, transparent);
  clip-path: polygon(48% 0, 82% 34%, 58% 34%, 88% 100%, 18% 46%, 44% 46%);
  filter: drop-shadow(0 0 14px rgba(115, 230, 255, 0.95));
  opacity: 0;
  animation: pgcLightningBolt 1.75s ease-in-out 3;
}

.bolt-one { left: 23%; top: 0; animation-delay: 0.1s; }
.bolt-two { left: 57%; top: 2%; height: 30vh; animation-delay: 0.48s; transform: scaleX(1.4); }
.bolt-three { left: 78%; top: 4%; height: 26vh; animation-delay: 0.9s; transform: scaleX(0.9); }

.effect-cloudy {
  background:
    radial-gradient(circle at 12% 22%, rgba(170, 214, 255, 0.12), transparent 28%),
    radial-gradient(circle at 80% 18%, rgba(117, 139, 255, 0.12), transparent 30%);
  mix-blend-mode: screen;
}

.effect-cloudy i {
  position: absolute;
  left: -28vw;
  top: var(--y);
  width: calc(var(--size) * 7);
  height: calc(var(--size) * 3);
  border-radius: 999px;
  background:
    radial-gradient(circle at 26% 42%, rgba(242, 251, 255, 0.46), transparent 38%),
    radial-gradient(circle at 58% 38%, rgba(156, 214, 255, 0.34), transparent 42%),
    linear-gradient(90deg, transparent, rgba(152, 190, 232, 0.18), transparent);
  filter: blur(3px);
  opacity: 0.68;
  animation: pgcCloudDrift calc(var(--duration) * 3.2) linear infinite;
  animation-delay: var(--delay);
}

.effect-wind {
  background: linear-gradient(90deg, rgba(44, 230, 255, 0.08), transparent 35%, rgba(126, 105, 255, 0.1));
  mix-blend-mode: screen;
}

.effect-wind i {
  position: absolute;
  left: -24vw;
  top: var(--y);
  width: clamp(110px, 18vw, 260px);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(217, 252, 255, 0.9), rgba(44, 230, 255, 0.18), transparent);
  box-shadow: 0 0 14px rgba(44, 230, 255, 0.34);
  transform: translateY(var(--drift));
  animation: pgcWindSweep calc(var(--duration) * 0.78) cubic-bezier(0.34, 0.01, 0.2, 1) infinite;
  animation-delay: var(--delay);
}

.effect-heavy-rain,
.effect-thunder-rain {
  background:
    radial-gradient(circle at 35% 8%, rgba(44, 230, 255, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(3, 10, 24, 0.16), rgba(6, 28, 54, 0.34));
  mix-blend-mode: screen;
}

.effect-heavy-rain i,
.effect-thunder-rain i {
  position: absolute;
  left: var(--x);
  top: -18vh;
  width: 2px;
  height: clamp(72px, 13vh, 150px);
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(218, 250, 255, 0.95), rgba(44, 230, 255, 0.18));
  box-shadow: 0 0 12px rgba(44, 230, 255, 0.4);
  transform: translateX(calc(var(--drift) * 0.45)) rotate(10deg);
  animation: pgcRainFall calc(var(--duration) * 0.64) linear infinite;
  animation-delay: var(--delay);
}

.effect-hail {
  background: radial-gradient(circle at 50% 8%, rgba(220, 250, 255, 0.16), transparent 30%);
  mix-blend-mode: screen;
}

.effect-hail i {
  position: absolute;
  left: var(--x);
  top: -8vh;
  width: calc(var(--size) * 0.72);
  height: calc(var(--size) * 0.72);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffffff, rgba(174, 235, 255, 0.86) 54%, rgba(78, 166, 230, 0.14) 72%);
  box-shadow: 0 0 10px rgba(192, 242, 255, 0.72);
  animation: pgcHailFall calc(var(--duration) * 0.82) cubic-bezier(0.32, 0.04, 0.28, 1) infinite;
  animation-delay: var(--delay);
}

.effect-sunny {
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 244, 174, 0.36), transparent 20%),
    radial-gradient(circle at 50% 48%, rgba(44, 230, 255, 0.12), transparent 45%);
  mix-blend-mode: screen;
}

.sun-core,
.sun-ray {
  position: absolute;
  display: block;
  left: 50%;
  top: 18%;
  transform: translate(-50%, -50%);
}

.sun-core {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, #fffbe8 0 28%, rgba(255, 221, 94, 0.68) 48%, transparent 72%);
  box-shadow: 0 0 70px rgba(255, 225, 96, 0.7), 0 0 130px rgba(44, 230, 255, 0.22);
  animation: pgcSunPulse 2.8s ease-in-out infinite;
}

.sun-ray {
  width: 64vw;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 240, 172, 0.72), transparent);
  transform-origin: center;
  opacity: 0.56;
  animation: pgcSunRay 6s linear infinite;
}

.ray-two { transform: translate(-50%, -50%) rotate(58deg); animation-delay: -1.4s; }
.ray-three { transform: translate(-50%, -50%) rotate(-48deg); animation-delay: -2.8s; }

.effect-light-snow,
.effect-heavy-snow {
  background: radial-gradient(circle at 50% 8%, rgba(232, 249, 255, 0.18), transparent 32%);
  mix-blend-mode: screen;
}

.effect-light-snow i,
.effect-heavy-snow i {
  position: absolute;
  left: var(--x);
  top: -8vh;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0 26%, rgba(181, 236, 255, 0.78) 52%, transparent 76%);
  filter: drop-shadow(0 0 8px rgba(184, 239, 255, 0.7));
  opacity: 0.76;
  animation: pgcSnowFall calc(var(--duration) * 2.05) ease-in-out infinite;
  animation-delay: var(--delay);
}

.effect-heavy-snow i {
  width: calc(var(--size) * 1.2);
  height: calc(var(--size) * 1.2);
  animation-duration: calc(var(--duration) * 1.72);
}

.effect-fluff,
.effect-willow,
.effect-sakura {
  mix-blend-mode: screen;
}

.effect-fluff i,
.effect-willow i,
.effect-sakura i {
  position: absolute;
  left: var(--x);
  top: -8vh;
  width: calc(var(--size) * 0.9);
  height: calc(var(--size) * 0.38);
  border-radius: 999px;
  background: rgba(239, 252, 255, 0.78);
  box-shadow: 0 0 12px rgba(215, 250, 255, 0.62);
  transform: rotate(calc(var(--i) * 11deg));
  animation: pgcSoftDrift calc(var(--duration) * 2.4) ease-in-out infinite;
  animation-delay: var(--delay);
}

.effect-willow i {
  width: calc(var(--size) * 1.4);
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(236, 255, 248, 0.88), transparent);
}

.effect-sakura i {
  width: calc(var(--size) * 0.78);
  height: calc(var(--size) * 0.58);
  border-radius: 58% 42% 64% 36%;
  background: linear-gradient(135deg, rgba(255, 210, 232, 0.95), rgba(255, 132, 188, 0.38));
  box-shadow: 0 0 12px rgba(255, 168, 210, 0.42);
}

.effect-dust {
  background: linear-gradient(90deg, rgba(142, 103, 39, 0.2), rgba(235, 196, 104, 0.08), transparent);
  mix-blend-mode: screen;
}

.effect-dust i {
  position: absolute;
  left: -16vw;
  top: var(--y);
  width: clamp(120px, 22vw, 320px);
  height: calc(var(--size) * 0.32);
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(232, 190, 92, 0.62), rgba(199, 148, 67, 0.22), transparent);
  filter: blur(1px);
  animation: pgcWindSweep calc(var(--duration) * 1.18) linear infinite;
  animation-delay: var(--delay);
}

.effect-overcast,
.effect-cloudy-shift {
  background:
    radial-gradient(circle at 20% 16%, rgba(172, 193, 214, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(3, 10, 22, 0.28), rgba(30, 45, 64, 0.22));
}

.effect-overcast i,
.effect-cloudy-shift i {
  position: absolute;
  left: -30vw;
  top: var(--y);
  width: calc(var(--size) * 8);
  height: calc(var(--size) * 3.4);
  border-radius: 999px;
  background:
    radial-gradient(circle at 28% 40%, rgba(225, 238, 248, 0.38), transparent 42%),
    radial-gradient(circle at 64% 42%, rgba(132, 164, 192, 0.3), transparent 48%),
    linear-gradient(90deg, transparent, rgba(103, 133, 164, 0.18), transparent);
  filter: blur(4px);
  animation: pgcCloudDrift calc(var(--duration) * 3.6) linear infinite;
  animation-delay: var(--delay);
}

.effect-cloudy-shift {
  animation: pgcCloudClear 11s ease both;
}

.effect-bubbles i,
.effect-hearts i,
.effect-ingot-rain i,
.effect-dollar-rain i {
  position: absolute;
  left: var(--x);
  display: grid;
  place-items: center;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(44, 230, 255, 0.52);
}

.effect-bubbles i {
  bottom: -8vh;
  width: calc(var(--size) * 1.35);
  height: calc(var(--size) * 1.35);
  border: 1px solid rgba(199, 250, 255, 0.74);
  border-radius: 50%;
  background: radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.75), rgba(44, 230, 255, 0.1) 34%, transparent 72%);
  animation: pgcBubbleRise calc(var(--duration) * 2.1) ease-in infinite;
  animation-delay: var(--delay);
}

.effect-hearts i {
  bottom: -7vh;
  font-size: calc(var(--size) * 1.15);
  animation: pgcBubbleRise calc(var(--duration) * 1.45) ease-out infinite;
  animation-delay: var(--delay);
}

.effect-hearts i::before { content: "♥"; color: rgba(255, 126, 185, 0.86); }

.effect-ingot-rain i,
.effect-dollar-rain i {
  top: -9vh;
  font-weight: 900;
  animation: pgcTreasureFall calc(var(--duration) * 1.25) linear infinite;
  animation-delay: var(--delay);
}

.effect-ingot-rain i::before {
  content: "元宝";
  font-size: calc(var(--size) * 0.68);
  color: #ffd65a;
  background: linear-gradient(135deg, #fff4a7, #ffbf34);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 9px rgba(255, 201, 64, 0.7));
}

.effect-dollar-rain i::before {
  content: "$";
  font-size: calc(var(--size) * 1.35);
  color: #8dffb4;
  filter: drop-shadow(0 0 10px rgba(94, 255, 158, 0.52));
}

.effect-firecrackers,
.effect-festival-firecrackers {
  background: radial-gradient(circle at 50% 18%, rgba(255, 80, 80, 0.12), transparent 32%);
  mix-blend-mode: screen;
}

.effect-firecrackers i,
.effect-festival-firecrackers i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: calc(var(--size) * 0.36);
  height: calc(var(--size) * 0.36);
  border-radius: 50%;
  background: #ffda73;
  box-shadow:
    0 0 0 8px rgba(255, 55, 55, 0.08),
    0 0 20px rgba(255, 210, 100, 0.78),
    0 0 36px rgba(255, 62, 62, 0.42);
  animation: pgcSparkPop calc(var(--duration) * 0.72) ease-out infinite;
  animation-delay: var(--delay);
}

.effect-festival-firecrackers i:nth-child(3n) {
  background: #ff4b5d;
  box-shadow: 0 0 22px rgba(255, 70, 90, 0.86), 0 0 48px rgba(255, 213, 84, 0.36);
}

.festival-creature,
.festival-trail {
  position: absolute;
  display: block;
  pointer-events: none;
}

.festival-creature {
  left: -16vw;
  top: 28%;
  font-size: clamp(42px, 7vw, 96px);
  font-weight: 900;
  color: #fff6b8;
  filter: drop-shadow(0 0 18px rgba(44, 230, 255, 0.82)) drop-shadow(0 0 34px rgba(255, 213, 84, 0.52));
  animation: pgcCreatureFlight 8.8s ease-in-out infinite;
}

.phoenix-one {
  top: 48%;
  color: #ffd2ea;
  animation-delay: -2.2s;
  filter: drop-shadow(0 0 18px rgba(255, 111, 205, 0.72)) drop-shadow(0 0 34px rgba(44, 230, 255, 0.38));
}

.festival-trail {
  left: -22vw;
  top: 38%;
  width: 38vw;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 236, 160, 0.9), rgba(44, 230, 255, 0.52), transparent);
  box-shadow: 0 0 18px rgba(44, 230, 255, 0.56);
  animation: pgcTrailFlight 8.8s ease-in-out infinite;
}

.trail-two {
  top: 58%;
  background: linear-gradient(90deg, transparent, rgba(255, 146, 220, 0.82), rgba(44, 230, 255, 0.42), transparent);
  animation-delay: -2.2s;
}

.effect-light-on {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 248, 210, 0.42), transparent 21%),
    radial-gradient(circle at 50% 38%, rgba(72, 230, 255, 0.2), transparent 44%);
  mix-blend-mode: screen;
  animation: pgcLightBloom 4.2s ease both;
}

.light-source,
.light-ring {
  position: absolute;
  left: 50%;
  top: 16%;
  display: block;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.light-source {
  width: 88px;
  height: 88px;
  background: radial-gradient(circle, #fffceb 0 26%, rgba(255, 225, 132, 0.66) 42%, transparent 72%);
  box-shadow: 0 0 42px rgba(255, 231, 144, 0.86), 0 0 96px rgba(44, 230, 255, 0.3);
}

.light-ring {
  border: 1px solid rgba(255, 246, 202, 0.5);
  animation: pgcLightRing 2.1s ease-out infinite;
}

.light-ring-one { width: 180px; height: 180px; }
.light-ring-two { width: 280px; height: 280px; animation-delay: 0.42s; }

.effect-light-off {
  display: none;
  background: rgba(0, 5, 14, 0.68);
  backdrop-filter: brightness(0.52) saturate(0.86);
}

.dark-vignette,
.dark-scan {
  position: absolute;
  inset: 0;
  display: block;
}

.dark-vignette {
  background:
    radial-gradient(circle at 50% 42%, transparent 0 20%, rgba(0, 4, 12, 0.38) 48%, rgba(0, 0, 0, 0.78) 100%),
    linear-gradient(180deg, rgba(1, 10, 22, 0.08), rgba(0, 0, 0, 0.36));
}

.dark-scan {
  background: linear-gradient(90deg, transparent, rgba(44, 230, 255, 0.12), transparent);
  opacity: 0.45;
  transform: translateX(-120%);
  animation: pgcDarkScan 3.8s ease-in-out infinite;
}

body[data-page="home"] .home-shell {
  width: min(calc(100% - 56px), 1540px);
  padding-top: 116px;
}

body[data-page="home"] .advisor-hero {
  grid-template-columns: minmax(520px, 0.94fr) minmax(460px, 0.72fr);
  grid-template-areas:
    "headline headline"
    "intro intro"
    "console ai";
  min-height: calc(100vh - 116px);
  align-items: center;
  gap: 16px 74px;
  padding: 0 0 58px;
}

body[data-page="home"] .hero-copy {
  display: contents;
}

body[data-page="home"] .hero-copy h1 {
  grid-area: headline;
  justify-self: center;
  max-width: 1180px;
  margin-top: 0;
  text-align: center;
  font-size: 88px;
  line-height: 1.06;
  perspective: 1200px;
  transform: rotateX(var(--headline-tilt-x, 0deg)) rotateY(var(--headline-tilt-y, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.16s ease, filter 0.22s ease;
}

body[data-page="home"] .hero-copy h1 .headline-primary {
  color: transparent;
  background:
    radial-gradient(circle at var(--headline-x, 50%) var(--headline-y, 45%), #ffffff 0 9%, #9cf7ff 20%, #5edcff 48%, #4a8bff 86%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 18px rgba(84, 224, 255, 0.52), 0 0 42px rgba(45, 150, 255, 0.28);
  filter: drop-shadow(0 0 18px rgba(80, 218, 255, 0.42));
}

body[data-page="home"] .hero-copy h1 .headline-secondary {
  margin-top: 4px;
  color: #f5f9ff;
  font-weight: 740;
  text-shadow: 0 0 22px rgba(119, 162, 255, 0.18);
}

body[data-page="home"] .hero-copy h1:hover .headline-primary {
  filter: drop-shadow(0 0 26px rgba(96, 228, 255, 0.68));
}

body[data-page="home"] .hero-copy p {
  grid-area: intro;
  justify-self: center;
  max-width: 760px;
  margin: 14px 0 46px;
  color: #aeb8c9;
  text-align: center;
  font-size: 18px;
  line-height: 1.75;
}

body[data-page="home"] .home-console {
  grid-area: console;
  justify-self: end;
  width: min(100%, 720px);
  max-width: none;
  min-height: 318px;
  padding: 26px;
  overflow: visible;
  background: rgba(19, 24, 35, 0.92);
  border-color: rgba(143, 164, 209, 0.2);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body[data-page="home"] .home-console label {
  position: absolute;
  left: 34px;
  bottom: 34px;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin: 0;
  color: #bdc6d5;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body[data-page="home"] .home-console label::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #4ba564;
  box-shadow: 0 0 18px rgba(79, 219, 128, 0.38);
}

body[data-page="home"] .home-console .input-shell {
  display: block;
  min-height: 260px;
}

body[data-page="home"] .home-console textarea {
  min-height: 250px;
  padding: 8px 8px 88px;
  color: #f1f6ff;
  background: transparent;
  border: 0;
  font-size: 18px;
  line-height: 1.74;
}

body[data-page="home"] .home-console textarea:focus {
  border-color: transparent;
  box-shadow: none;
}

body[data-page="home"] .home-console textarea::placeholder {
  color: #7d8798;
}

body[data-page="home"] .home-console .send-button {
  position: absolute;
  right: 28px;
  bottom: 28px;
  min-height: 54px;
  padding: 0 12px;
  flex-direction: row;
  gap: 14px;
  color: #ffffff;
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 18px;
  letter-spacing: 0;
}

body[data-page="home"] .home-console .send-button svg {
  width: 23px;
  height: 23px;
  stroke-width: 2.35;
}

body[data-page="home"] .home-console .quick-prompts {
  display: none;
}

body[data-page="home"] .home-console .quick-prompts button {
  border-radius: 999px;
  padding: 10px 18px;
  color: #e7edf7;
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(202, 218, 255, 0.14);
}

body[data-page="home"] .home-entry-grid {
  grid-area: shortcuts;
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: min(100%, 720px);
  max-width: none;
  margin-top: 18px;
}

body[data-page="home"] .home-entry-grid a {
  min-height: 46px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(190, 209, 255, 0.16);
  box-shadow: none;
}

body[data-page="home"] .home-entry-grid span {
  color: #f0f5ff;
  font-size: 15px;
  font-weight: 650;
}

body[data-page="home"] .home-entry-grid strong {
  display: none;
}

body[data-page="home"] .advisor-hero > .ai-presence {
  grid-area: ai;
  min-height: 540px;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body[data-page="home"] .advisor-hero > .ai-presence::before,
body[data-page="home"] .advisor-hero > .ai-presence::after,
body[data-page="home"] .advisor-hero > .ai-presence .ai-status-panel {
  display: none;
}

body[data-page="home"] .advisor-hero > .ai-presence .ai-orb {
  width: min(62vw, 340px);
  height: min(62vw, 340px);
}

.ai-service-orbits {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
}

.orbit-chip {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 18px;
  color: #f8fbff;
  border: 1px solid color-mix(in srgb, var(--chip) 56%, rgba(255, 255, 255, 0.18));
  border-radius: 999px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--chip) 40%, rgba(12, 18, 34, 0.86)), rgba(16, 22, 38, 0.72));
  box-shadow: 0 0 30px color-mix(in srgb, var(--chip) 18%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  pointer-events: auto;
  font-size: 14px;
  font-weight: 760;
  transform: translate(-50%, -50%) translate(var(--x), var(--y));
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.orbit-chip:hover,
.orbit-chip:focus-visible {
  border-color: color-mix(in srgb, var(--chip) 82%, white);
  box-shadow: 0 0 42px color-mix(in srgb, var(--chip) 32%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  outline: none;
  transform: translate(-50%, -50%) translate(var(--x), var(--y)) translateY(-3px) scale(1.04);
}

.orbit-chip span {
  font-size: 16px;
  line-height: 1;
}

.chip-brand { --chip: #8855ff; --x: -205px; --y: -112px; }
.chip-geo { --chip: #ff9a42; --x: -246px; --y: 48px; }
.chip-medical { --chip: #57d979; --x: -184px; --y: 124px; }
.chip-research { --chip: #46cfe8; --x: 224px; --y: -50px; }
.chip-native { --chip: #e455a5; --x: 254px; --y: 58px; }
.chip-mind { --chip: #d4bd4c; --x: 202px; --y: 116px; }
.chip-transform { --chip: #547deb; --x: 224px; --y: 178px; }

.ai-signal-list {
  position: absolute;
  top: 28px;
  left: 24px;
  display: grid;
  gap: 10px;
}

.ai-signal-list button {
  min-height: 43px;
  padding: 9px 12px;
  color: #d9ebff;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(152, 205, 255, 0.18);
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
  font-weight: 720;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.ai-signal-list button:hover,
.ai-signal-list button:focus-visible {
  color: #f8ffff;
  background: color-mix(in srgb, var(--panel-accent) 15%, rgba(255, 255, 255, 0.055));
  border-color: color-mix(in srgb, var(--panel-accent) 48%, rgba(152, 205, 255, 0.18));
  box-shadow: 0 0 28px color-mix(in srgb, var(--panel-accent) 18%, transparent);
  outline: none;
  transform: translateX(5px);
}

.chat-shell {
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr) 330px;
  gap: 16px;
  width: min(calc(100% - 44px), var(--max));
  height: 100dvh;
  min-height: 640px;
  margin: 0 auto;
  padding: 104px 0 16px;
  overflow: hidden;
}

.chat-history-panel,
.chat-panel,
.chat-side {
  min-height: 0;
  height: 100%;
}

.chat-history-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  padding: 14px;
  overflow: hidden;
}

.history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(135, 192, 255, 0.14);
}

.history-head span {
  display: block;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 780;
}

.history-head strong {
  display: block;
  margin-top: 4px;
  color: #f4fbff;
  font-size: 15px;
}

.history-new,
.history-actions button,
.message-actions button,
.composer-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #dff7ff;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(135, 192, 255, 0.2);
  border-radius: 6px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.history-new {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.history-new svg,
.history-actions svg,
.message-actions svg,
.composer-tool svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.history-new:hover,
.history-actions button:hover,
.message-actions button:hover,
.composer-tool:hover {
  color: #001827;
  background: var(--cyan);
  border-color: var(--cyan);
  transform: translateY(-1px);
}

.history-list {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  background: rgba(2, 12, 24, 0.42);
  border: 1px solid rgba(125, 198, 255, 0.13);
  border-radius: 8px;
}

.history-item[data-active="true"] {
  background: rgba(44, 230, 255, 0.09);
  border-color: rgba(44, 230, 255, 0.36);
  box-shadow: inset 0 0 24px rgba(44, 230, 255, 0.07);
}

.history-select {
  min-width: 0;
  padding: 0;
  text-align: left;
  color: inherit;
  background: transparent;
  border: 0;
}

.history-select strong,
.history-select span,
.history-select small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-select strong {
  color: #eef8ff;
  font-size: 13px;
  line-height: 1.45;
}

.history-select span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.history-select small {
  margin-top: 5px;
  color: var(--subtle);
  font-size: 11px;
}

.history-actions {
  display: grid;
  gap: 5px;
}

.history-actions button {
  width: 28px;
  height: 28px;
}

.history-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.chat-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  overflow: hidden;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(135, 192, 255, 0.14);
}

.chat-header h1 {
  margin: 0;
  font-size: clamp(30px, 3vw, 44px);
}

.chat-header p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.model-chip {
  align-self: start;
  padding: 9px 12px;
  color: var(--green);
  background: rgba(71, 230, 167, 0.08);
  border: 1px solid rgba(71, 230, 167, 0.24);
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
}

.messages {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding: 18px 20px;
}

.message {
  position: relative;
  max-width: 86%;
  padding: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(125, 198, 255, 0.16);
  border-radius: 8px;
}

.message.user {
  justify-self: end;
  background: rgba(43, 124, 255, 0.16);
  border-color: rgba(43, 124, 255, 0.32);
}

.message.assistant {
  justify-self: start;
  max-width: min(940px, 94%);
}

.message.pending .message-actions {
  display: none;
}

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

.message-actions {
  display: inline-flex;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-2px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.message.assistant:hover .message-actions,
.message.assistant:focus-within .message-actions {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.message-actions button {
  width: 30px;
  height: 30px;
}

.message-actions button.is-done {
  color: #001827;
  background: var(--green);
  border-color: var(--green);
}

.message-content {
  color: #e4f1ff;
  line-height: 1.75;
  white-space: normal;
}

.message-content > *:first-child {
  margin-top: 0;
}

.message-content > *:last-child {
  margin-bottom: 0;
}

.message-content p {
  margin: 0 0 10px;
}

.message-content h3 {
  margin: 14px 0 8px;
  color: #f4fbff;
  font-size: 17px;
  line-height: 1.45;
}

.message-content ul,
.message-content ol {
  margin: 8px 0 12px;
  padding-left: 20px;
}

.message-content li {
  margin: 4px 0;
}

.message-table-wrap {
  width: 100%;
  margin: 12px 0 14px;
  overflow-x: auto;
  border: 1px solid rgba(120, 220, 255, 0.2);
  border-radius: 8px;
  background: rgba(3, 13, 26, 0.45);
}

.message-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  color: #e8f6ff;
  font-size: 14px;
  line-height: 1.55;
}

.message-table th,
.message-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(120, 220, 255, 0.16);
  border-right: 1px solid rgba(120, 220, 255, 0.12);
}

.message-table th:last-child,
.message-table td:last-child {
  border-right: 0;
}

.message-table tbody tr:last-child td {
  border-bottom: 0;
}

.message-table th {
  color: #7eeaff;
  font-weight: 800;
  background: rgba(44, 230, 255, 0.09);
}

.message-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.025);
}

.advisor-structured {
  display: grid;
  gap: 14px;
}

.advisor-section {
  min-width: 0;
}

.advisor-section h2,
.advisor-section h3 {
  margin: 0 0 10px;
  color: #f8ffff;
  letter-spacing: 0;
}

.advisor-section h2 {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.22;
}

.advisor-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  line-height: 1.35;
}

.advisor-section h3::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(44, 230, 255, 0.7);
}

.advisor-summary-lead {
  margin: 0;
  padding: 14px 16px;
  color: #f4fbff;
  background: linear-gradient(135deg, rgba(44, 230, 255, 0.12), rgba(71, 230, 167, 0.06));
  border: 1px solid rgba(111, 225, 255, 0.24);
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.75;
}

.advisor-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.advisor-advice-card {
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(130, 204, 255, 0.18);
  border-radius: 8px;
}

.advisor-advice-card strong {
  display: block;
  margin-bottom: 6px;
  color: #7eeaff;
  font-size: 14px;
  line-height: 1.45;
}

.advisor-advice-card p {
  margin: 0;
  color: #d8e9f7;
  font-size: 14px;
  line-height: 1.65;
}

.advisor-checklist {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.advisor-checklist li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 0;
  padding: 10px 12px;
  background: rgba(4, 18, 34, 0.58);
  border: 1px solid rgba(120, 220, 255, 0.16);
  border-radius: 8px;
}

.advisor-checklist li > span {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border: 1px solid rgba(71, 230, 167, 0.62);
  border-radius: 5px;
  box-shadow: inset 0 0 12px rgba(71, 230, 167, 0.08), 0 0 14px rgba(71, 230, 167, 0.16);
}

.advisor-checklist p {
  margin: 0;
  color: #e4f1ff;
  line-height: 1.65;
}

.advisor-risk-block {
  padding: 13px 15px;
  background: linear-gradient(135deg, rgba(255, 207, 107, 0.12), rgba(255, 107, 138, 0.08));
  border: 1px solid rgba(255, 207, 107, 0.3);
  border-radius: 8px;
}

.advisor-risk-block strong {
  display: block;
  margin-bottom: 8px;
  color: #ffdd93;
}

.advisor-risk-block ul {
  margin: 0;
  padding-left: 18px;
}

.advisor-risk-block li {
  margin: 6px 0;
  color: #ffe9c0;
}

.advisor-section.is-next {
  padding-top: 12px;
  border-top: 1px solid rgba(120, 220, 255, 0.16);
}

.advisor-section.is-next h3::before {
  background: var(--green);
  box-shadow: 0 0 16px rgba(71, 230, 167, 0.7);
}

.advisor-option-groups {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 13px;
  background: rgba(3, 18, 34, 0.58);
  border: 1px solid rgba(126, 234, 255, 0.18);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.advisor-option-group {
  display: grid;
  gap: 8px;
}

.advisor-option-group h4 {
  margin: 0;
  color: #7eeaff;
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.03em;
}

.advisor-option-group div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.advisor-option-group button {
  min-height: 32px;
  padding: 6px 11px;
  color: #eaf8ff;
  background: rgba(18, 39, 66, 0.72);
  border: 1px solid rgba(126, 234, 255, 0.2);
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.advisor-option-group button:hover {
  color: #ffffff;
  background: rgba(44, 230, 255, 0.16);
  border-color: rgba(126, 234, 255, 0.48);
  transform: translateY(-1px);
}

.message.error {
  border-color: rgba(255, 107, 138, 0.35);
}

.message-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.message-attachments a {
  display: grid;
  gap: 2px;
  max-width: 260px;
  padding: 8px 10px;
  color: #e9f8ff;
  background: rgba(44, 230, 255, 0.07);
  border: 1px solid rgba(44, 230, 255, 0.22);
  border-radius: 7px;
}

.message-attachments span,
.message-attachments small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-attachments small {
  color: var(--muted);
  font-size: 12px;
}

.chat-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 20px 10px;
}

.chat-shortcuts button {
  min-height: 34px;
  padding: 7px 11px;
  color: #dff7ff;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(135, 192, 255, 0.2);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 720;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.chat-shortcuts button:hover {
  color: #001827;
  background: var(--green);
  border-color: var(--green);
  transform: translateY(-1px);
}

.chat-shortcuts button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.chat-composer {
  margin: 0 20px 18px;
  padding: 12px;
  background: rgba(2, 10, 20, 0.54);
  border: 1px solid rgba(146, 205, 255, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
}

.composer-main {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.composer-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.composer-tool {
  gap: 7px;
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 720;
}

.attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.attachment-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 260px;
  min-height: 32px;
  padding: 6px 7px 6px 10px;
  color: #e9f8ff;
  background: rgba(44, 230, 255, 0.07);
  border: 1px solid rgba(44, 230, 255, 0.2);
  border-radius: 7px;
  font-size: 12px;
}

.attachment-pill[data-status="uploading"] {
  border-color: rgba(255, 207, 107, 0.36);
}

.attachment-pill[data-status="error"] {
  border-color: rgba(255, 107, 138, 0.42);
}

.attachment-pill span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-pill small {
  color: var(--muted);
  white-space: nowrap;
}

.attachment-pill button {
  width: 20px;
  height: 20px;
  padding: 0;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 0;
  border-radius: 50%;
}

.chat-side {
  display: grid;
  gap: 16px;
  align-content: start;
  overflow: auto;
  padding: 16px;
}

.advisor-notes {
  padding: 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(125, 198, 255, 0.16);
  border-radius: var(--radius);
}

.advisor-notes h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.resource-list {
  display: grid;
  gap: 14px;
}

.resource-group {
  display: grid;
  gap: 8px;
}

.resource-group h3 {
  margin: 0;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
}

.resource-card {
  display: block;
  padding: 11px 12px;
  color: inherit;
  text-decoration: none;
  background: rgba(4, 18, 34, 0.62);
  border: 1px solid rgba(120, 220, 255, 0.16);
  border-radius: 8px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.resource-card:hover,
.resource-card:focus-visible {
  background: rgba(44, 230, 255, 0.08);
  border-color: rgba(44, 230, 255, 0.34);
  outline: none;
  transform: translateY(-2px);
}

.resource-card span {
  color: var(--green);
  font-size: 11px;
  font-weight: 780;
}

.resource-card strong {
  display: block;
  margin-top: 5px;
  color: #eef8ff;
  font-size: 14px;
  line-height: 1.42;
}

.resource-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.advisor-notes button {
  display: block;
  width: 100%;
  margin-top: 10px;
  text-align: left;
}

.content-shell {
  width: min(calc(100% - 44px), var(--max));
  margin: 0 auto;
  padding: 138px 0 56px;
}

.content-hero {
  max-width: 860px;
  margin-bottom: 28px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
}

.content-hero h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.08;
}

.content-hero p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

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

.content-card {
  min-height: 230px;
  padding: 22px;
}

.content-card-link,
.service-project-card[href] {
  display: block;
  color: inherit;
  text-decoration: none;
}

.content-card-link:hover,
.service-project-card[href]:hover {
  border-color: rgba(126, 234, 255, 0.46);
  transform: translateY(-2px);
}

.content-card h2 {
  margin: 8px 0 12px;
  font-size: 23px;
}

.content-card p {
  color: var(--muted);
  line-height: 1.72;
}

.content-card small {
  display: block;
  margin-top: 10px;
  color: color-mix(in srgb, var(--cyan) 72%, #ffffff 28%);
  font-size: 13px;
  line-height: 1.6;
}

.content-card ul {
  margin: 16px 0 0;
  padding-left: 20px;
  color: #d9ebff;
  line-height: 1.7;
}

.content-grid.is-detail {
  display: block;
}

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

.download-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
}

.download-card .download-button {
  width: fit-content;
  margin-top: auto;
}

.content-grid.is-about {
  display: block;
}

body.about-page-view {
  background:
    radial-gradient(circle at 22% 16%, rgba(44, 230, 255, 0.08), transparent 30%),
    linear-gradient(180deg, #06101c 0%, #050b14 54%, #040a12 100%);
}

body.about-page-view .content-hero {
  position: relative;
  max-width: 980px;
  margin-bottom: 48px;
}

body.about-page-view .content-hero h1 {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 760;
}

body.about-page-view .content-hero p {
  margin-top: 14px;
  color: #c8d6e6;
  font-size: 17px;
  line-height: 1.65;
}

body.about-page-view .content-hero::after {
  content: "";
  display: block;
  width: min(320px, 33%);
  height: 1px;
  margin-top: 16px;
  background: linear-gradient(90deg, rgba(44, 230, 255, 0.95), rgba(44, 230, 255, 0));
}

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

.about-principle,
.about-values,
.about-info-card {
  position: relative;
  display: flex;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(18, 36, 59, 0.62), rgba(5, 17, 31, 0.54));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 22px 60px rgba(0, 0, 0, 0.24);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.about-principle {
  min-height: 470px;
  flex-direction: column;
  justify-content: center;
  padding: 40px 32px;
}

.about-principle::before,
.about-values::before,
.about-info-card::before,
.about-principle::after,
.about-values::after,
.about-info-card::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(44, 230, 255, 0.36), rgba(44, 230, 255, 0));
  border-radius: 999px;
}

.about-principle::before,
.about-values::before,
.about-info-card::before {
  top: 18px;
  left: 18px;
}

.about-principle::after,
.about-values::after,
.about-info-card::after {
  right: 18px;
  bottom: 18px;
}

.about-principle:hover,
.about-principle:focus-visible,
.about-values:hover,
.about-values:focus-within,
.about-info-card:hover,
.about-info-card:focus-visible {
  border-color: rgba(44, 230, 255, 0.46);
  box-shadow: 0 0 28px rgba(44, 230, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  outline: none;
  transform: translateY(-4px);
}

.about-principle span,
.about-values-title,
.about-info-card > span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.about-principle h2 {
  max-width: 580px;
  margin: 0 0 24px;
  color: #f6fbff;
  font-size: clamp(30px, 3.2vw, 40px);
  font-weight: 720;
  line-height: 1.16;
}

.about-zh,
.about-en {
  margin: 0;
}

.about-zh {
  color: #edf7ff;
  font-size: 16px;
  line-height: 1.6;
}

.about-en {
  margin-top: 20px;
  color: #a9b7c9;
  font-size: 14px;
  line-height: 1.5;
}

.about-values {
  display: grid;
  grid-template-columns: minmax(150px, 15%) minmax(0, 85%);
  gap: 24px;
  align-items: center;
  min-height: 120px;
  margin-bottom: 48px;
  padding: 32px 40px;
}

.about-values-title {
  margin-bottom: 0;
  text-decoration: none;
}

.value-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
}

.value-chip {
  display: grid;
  min-height: 64px;
  padding: 12px 20px;
  color: inherit;
  text-decoration: none;
  place-content: center;
  background: rgba(3, 12, 24, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  transition: background 0.28s ease, border-color 0.28s ease, transform 0.28s ease;
}

.value-chip strong,
.value-chip small {
  display: block;
  text-align: center;
}

.value-chip strong {
  color: #ffffff;
  font-size: 16px;
  font-weight: 720;
}

.value-chip small {
  margin-top: 4px;
  color: #aebacd;
  font-size: 13px;
  line-height: 1.25;
}

.value-chip:hover,
.value-chip:focus-visible {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(44, 230, 255, 0.34), rgba(43, 124, 255, 0.24));
  border-color: rgba(44, 230, 255, 0.44);
  outline: none;
  transform: translateY(-2px);
}

.value-chip:hover small,
.value-chip:focus-visible small {
  color: rgba(255, 255, 255, 0.86);
}

.about-capabilities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.about-info-card {
  min-height: 480px;
  flex-direction: column;
  padding: 36px 32px;
}

.about-info-section + .about-info-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.about-info-card h2,
.about-info-card h3 {
  margin: 0 0 12px;
  color: #f4f9ff;
  font-weight: 680;
  line-height: 1.28;
}

.about-info-card h2 {
  font-size: 24px;
}

.about-info-card h3 {
  font-size: 18px;
}

.about-info-card p {
  margin: 8px 0 0;
  color: rgba(235, 245, 255, 0.84);
  font-size: 16px;
  line-height: 1.6;
}

.about-info-card ul,
.about-vector-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.about-info-card li {
  color: #aebacd;
  font-size: 14px;
  line-height: 1.45;
}

.about-vector-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.about-vector-list li > strong {
  display: grid;
  width: 30px;
  height: 30px;
  color: #08111d;
  font-size: 14px;
  font-weight: 800;
  place-items: center;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  border-radius: 999px;
}

.about-vector-list b {
  display: block;
  color: #f1f8ff;
  font-size: 14px;
  font-weight: 680;
}

.about-vector-list small {
  display: block;
  margin-top: 2px;
  color: #9eacc0;
  font-size: 12px;
  line-height: 1.35;
}

.content-detail {
  width: min(100%, 980px);
  padding: 28px;
  background: rgba(13, 31, 53, 0.62);
  border: 1px solid rgba(134, 199, 255, 0.18);
  border-radius: 8px;
}

.detail-media {
  display: block;
  width: 100%;
  max-height: 480px;
  margin-bottom: 22px;
  object-fit: cover;
  background: rgba(1, 9, 18, 0.48);
  border: 1px solid rgba(134, 199, 255, 0.16);
  border-radius: 8px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.detail-meta span {
  padding: 6px 10px;
  color: #8eefff;
  font-size: 13px;
  background: rgba(44, 230, 255, 0.09);
  border: 1px solid rgba(44, 230, 255, 0.18);
  border-radius: 999px;
}

.detail-body {
  color: #d9e8f7;
  font-size: 17px;
  line-height: 1.9;
}

.detail-body h2,
.detail-body h3 {
  color: var(--text);
  line-height: 1.25;
}

.detail-body blockquote {
  margin: 20px 0;
  padding: 14px 16px;
  color: #e8fbff;
  background: rgba(44, 230, 255, 0.08);
  border-left: 3px solid var(--cyan);
}

.detail-body table {
  width: 100%;
  margin: 20px 0;
  overflow: hidden;
  border-collapse: collapse;
  border: 1px solid rgba(134, 199, 255, 0.2);
  border-radius: 8px;
}

.detail-body th,
.detail-body td {
  padding: 12px;
  border-bottom: 1px solid rgba(134, 199, 255, 0.14);
}

.detail-body figure {
  margin: 24px 0;
}

.detail-body figure img,
.detail-body figure video {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  background: rgba(1, 9, 18, 0.48);
  border: 1px solid rgba(134, 199, 255, 0.16);
  border-radius: 8px;
}

.detail-body figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.cms-checklist {
  display: grid;
  gap: 8px;
  padding-left: 0;
  list-style: none;
}

.cms-file,
.cms-cta,
.cms-faq,
.cms-mini-card {
  padding: 18px;
  background: rgba(44, 230, 255, 0.07);
  border: 1px solid rgba(134, 199, 255, 0.18);
  border-radius: 8px;
}

.cms-file a,
.cms-mini-card a {
  color: #8eefff;
  font-weight: 700;
}

.cms-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.cms-cta {
  margin: 24px 0;
  background: linear-gradient(135deg, rgba(44, 230, 255, 0.12), rgba(77, 130, 255, 0.14));
}

.cms-faq {
  margin: 18px 0;
}

.detail-related {
  margin-top: 36px;
}

.detail-related .content-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-page="messages"] {
  background:
    radial-gradient(circle at 18% 8%, rgba(44, 230, 255, 0.14), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(125, 116, 255, 0.12), transparent 30%),
    linear-gradient(180deg, #06111f 0%, #081525 54%, #050b14 100%);
}

.message-shell {
  width: min(calc(100% - 64px), 1360px);
  margin: 0 auto;
  padding: 132px 0 88px;
}

.message-hero,
.message-catalog-section {
  position: relative;
  border: 1px solid rgba(134, 199, 255, 0.2);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(12, 32, 56, 0.78), rgba(8, 19, 34, 0.64));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.message-hero::before,
.message-catalog-section::before,
.message-hero::after,
.message-catalog-section::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(44, 230, 255, 0.42);
  box-shadow: 0 0 18px rgba(44, 230, 255, 0.54);
  pointer-events: none;
}

.message-hero::before,
.message-catalog-section::before {
  left: 24px;
  top: 24px;
}

.message-hero::after,
.message-catalog-section::after {
  right: 28px;
  bottom: 28px;
  opacity: 0.62;
}

.message-hero {
  padding: 46px;
  margin-bottom: 28px;
}

.message-hero > span,
.catalog-section-head > span,
.catalog-card-label {
  display: inline-flex;
  color: #76eaff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.message-hero h1 {
  margin: 12px 0 16px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  color: var(--text);
}

.message-hero p {
  width: min(100%, 860px);
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.message-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.message-stat-grid strong {
  min-height: 88px;
  padding: 18px;
  border: 1px solid rgba(134, 199, 255, 0.18);
  border-radius: 10px;
  background: rgba(4, 15, 28, 0.48);
  color: #eaf6ff;
  font-size: 16px;
}

.message-stat-grid span {
  display: block;
  margin-bottom: 6px;
  color: #76eaff;
  font-size: 28px;
}

.message-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px) auto;
  gap: 16px;
  align-items: end;
  margin: 0 0 24px;
  padding: 20px;
  border: 1px solid rgba(134, 199, 255, 0.18);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(12, 32, 56, 0.68), rgba(8, 19, 34, 0.54));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.message-toolbar-field {
  display: grid;
  gap: 8px;
}

.message-toolbar label {
  color: #76eaff;
  font-size: 13px;
  font-weight: 800;
}

.message-toolbar input,
.message-toolbar select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(134, 199, 255, 0.22);
  border-radius: 9px;
  background: rgba(3, 13, 25, 0.82);
  color: #f4f9ff;
  font: inherit;
}

.message-toolbar input::placeholder {
  color: #7f98b2;
}

.message-toolbar-actions,
.catalog-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.message-toolbar-actions button,
.catalog-card-actions button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(134, 199, 255, 0.24);
  border-radius: 9px;
  background: rgba(8, 28, 48, 0.72);
  color: #dff7ff;
  font-weight: 800;
  cursor: pointer;
}

.catalog-card-actions button[data-effect-command] {
  border: 0;
  background: linear-gradient(135deg, #7fe9ff, #4a82ff);
  color: #061322;
  font-weight: 900;
}

.message-toolbar-actions button[data-random-experience-effect],
.message-toolbar-actions button[data-demo-experience-effects] {
  border: 0;
  background: linear-gradient(135deg, #7fe9ff, #7c8dff);
  color: #061322;
  box-shadow: 0 12px 30px rgba(91, 183, 255, 0.22);
}

.message-toolbar-actions button[data-stop-experience-demo] {
  border-color: rgba(255, 177, 121, 0.34);
  color: #ffe1c4;
}

.interaction-log-section {
  margin-top: 24px;
}

.message-audit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.message-audit-card {
  padding: 20px;
  border: 1px solid rgba(134, 199, 255, 0.18);
  border-radius: 10px;
  background:
    radial-gradient(circle at 14% 10%, rgba(44, 230, 255, 0.1), transparent 28%),
    rgba(4, 15, 28, 0.5);
}

.message-audit-card span {
  display: block;
  margin-bottom: 12px;
  color: #76eaff;
  font-size: 13px;
  font-weight: 900;
}

.message-audit-card strong {
  display: block;
  color: #f5fbff;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.message-audit-card p {
  min-height: 72px;
  margin: 14px 0 16px;
  color: #b7c9dc;
  line-height: 1.65;
}

.message-audit-meter {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(134, 199, 255, 0.12);
}

.message-audit-meter i {
  display: block;
  width: var(--audit-meter, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7fe9ff, #6f8dff, #61f0ba);
  box-shadow: 0 0 18px rgba(101, 223, 255, 0.42);
}

.message-audit-foot {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: #8ea8c1;
  font-size: 13px;
  line-height: 1.6;
}

.message-smoke-actions {
  display: flex;
  justify-content: flex-end;
  margin: -54px 0 22px;
}

.message-smoke-actions button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, #7fe9ff, #5a8dff);
  color: #061322;
  font-weight: 900;
  cursor: pointer;
}

.message-smoke-output {
  width: 100%;
  min-height: 220px;
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid rgba(134, 199, 255, 0.22);
  border-radius: 10px;
  background: rgba(3, 13, 25, 0.82);
  color: #dff7ff;
  font: 14px/1.65 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  resize: vertical;
}

.message-smoke-result {
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid rgba(134, 199, 255, 0.18);
  border-radius: 10px;
  background: rgba(3, 13, 25, 0.54);
}

.message-smoke-result-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.message-smoke-result-head strong {
  color: #f4f9ff;
  font-size: 18px;
}

.message-smoke-result-head span {
  color: #8ea8c1;
}

.message-smoke-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.message-smoke-result-item {
  padding: 14px;
  border: 1px solid rgba(134, 199, 255, 0.16);
  border-radius: 9px;
  background: rgba(5, 18, 32, 0.62);
}

.message-smoke-result-item span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(102, 187, 106, 0.16);
  color: #85f1a2;
  font-size: 11px;
  font-weight: 900;
}

.message-smoke-result-item[data-status="fail"] span {
  background: rgba(239, 83, 80, 0.14);
  color: #ffaaa8;
}

.message-smoke-result-item strong {
  display: block;
  margin: 10px 0 6px;
  color: #f4f9ff;
}

.message-smoke-result-item p {
  margin: 0 0 8px;
  color: #b7c9dc;
  line-height: 1.55;
}

.message-smoke-result-item small {
  color: #8ea8c1;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.message-smoke-report-output {
  min-height: 260px;
}

.message-smoke-history {
  margin: 0 0 18px;
}

.message-smoke-history-empty,
.message-smoke-history-item {
  border: 1px solid rgba(134, 199, 255, 0.16);
  border-radius: 10px;
  background: rgba(4, 15, 28, 0.42);
}

.message-smoke-history-empty {
  padding: 18px;
}

.message-smoke-history-empty strong {
  display: block;
  margin-bottom: 6px;
  color: #f4f9ff;
}

.message-smoke-history-empty p {
  margin: 0;
  color: #8ea8c1;
}

.message-smoke-history-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
}

.message-smoke-history-head strong {
  color: #f4f9ff;
  font-size: 18px;
}

.message-smoke-history-head span {
  color: #8ea8c1;
  font-size: 13px;
}

.message-smoke-history-list {
  display: grid;
  gap: 10px;
}

.message-smoke-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
}

.message-smoke-history-item span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  margin-bottom: 8px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(102, 187, 106, 0.16);
  color: #85f1a2;
  font-size: 11px;
  font-weight: 900;
}

.message-smoke-history-item[data-status="fail"] span {
  background: rgba(239, 83, 80, 0.14);
  color: #ffaaa8;
}

.message-smoke-history-item strong {
  display: block;
  color: #f4f9ff;
}

.message-smoke-history-item p {
  margin: 6px 0 0;
  color: #b7c9dc;
}

.message-smoke-history-item time {
  color: #8ea8c1;
  font-size: 13px;
  white-space: nowrap;
}

.message-smoke-history-item button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(134, 199, 255, 0.24);
  border-radius: 999px;
  background: rgba(8, 28, 48, 0.72);
  color: #dff7ff;
  font-weight: 800;
  cursor: pointer;
}

.message-smoke-list {
  display: grid;
  gap: 12px;
}

.message-smoke-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(134, 199, 255, 0.16);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(44, 230, 255, 0.08), transparent 42%),
    rgba(4, 15, 28, 0.44);
}

.message-smoke-item > span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(118, 234, 255, 0.32);
  border-radius: 50%;
  color: #76eaff;
  font-size: 14px;
  font-weight: 900;
}

.message-smoke-item strong {
  display: block;
  color: #f4f9ff;
  font-size: 18px;
}

.message-smoke-item a {
  display: inline-flex;
  margin-top: 5px;
  color: #76eaff;
  font-size: 13px;
  text-decoration: none;
}

.message-smoke-item p {
  margin: 8px 0 0;
  color: #b7c9dc;
  line-height: 1.65;
}

.message-smoke-item button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(134, 199, 255, 0.24);
  border-radius: 999px;
  background: rgba(8, 28, 48, 0.72);
  color: #dff7ff;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.interaction-log-actions {
  display: flex;
  justify-content: flex-end;
  margin: -56px 0 22px;
}

.interaction-log-actions button {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(134, 199, 255, 0.24);
  border-radius: 9px;
  background: rgba(5, 18, 32, 0.72);
  color: #dff7ff;
  font-weight: 800;
  cursor: pointer;
}

.interaction-log-list {
  display: grid;
  gap: 10px;
}

.interaction-log-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(134, 199, 255, 0.16);
  border-radius: 10px;
  background: rgba(4, 15, 28, 0.46);
}

.interaction-log-item span {
  display: inline-flex;
  margin-bottom: 8px;
  color: #76eaff;
  font-size: 12px;
  font-weight: 800;
}

.interaction-log-item strong {
  display: block;
  color: #f4f9ff;
  font-size: 18px;
}

.interaction-log-item p {
  max-width: 820px;
  margin: 6px 0 0;
  color: #b7c9dc;
  line-height: 1.6;
}

.interaction-log-item time,
.interaction-log-item small {
  color: #8ea8c1;
  font-size: 13px;
  white-space: nowrap;
}

.interaction-log-empty {
  padding: 24px;
  border: 1px dashed rgba(134, 199, 255, 0.28);
  border-radius: 10px;
  background: rgba(4, 15, 28, 0.34);
}

.interaction-log-empty strong {
  display: block;
  margin-bottom: 8px;
  color: #f4f9ff;
  font-size: 18px;
}

.interaction-log-empty p {
  margin: 0;
  color: #b7c9dc;
  line-height: 1.7;
}

.message-catalog-section {
  padding: 32px;
  margin-top: 24px;
}

.catalog-section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.catalog-section-head h2 {
  margin: 0;
  color: #f4f9ff;
  font-size: clamp(26px, 3vw, 38px);
}

.catalog-section-head p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.catalog-card {
  display: grid;
  gap: 18px;
  align-content: space-between;
  min-height: 260px;
  padding: 22px;
  border: 1px solid rgba(134, 199, 255, 0.18);
  border-radius: 10px;
  background:
    radial-gradient(circle at 12% 8%, rgba(44, 230, 255, 0.08), transparent 24%),
    rgba(5, 18, 32, 0.56);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.catalog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(44, 230, 255, 0.44);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 0 26px rgba(44, 230, 255, 0.12);
}

.catalog-card h3 {
  margin: 10px 0 10px;
  color: #f5fbff;
  font-size: 22px;
}

.catalog-card p {
  margin: 0;
  color: #b7c9dc;
  line-height: 1.7;
}

.catalog-trigger-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-trigger-list span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(134, 199, 255, 0.2);
  border-radius: 999px;
  background: rgba(10, 30, 52, 0.76);
  color: #cbe3f7;
  font-size: 13px;
}

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

.advisor-preset-card {
  min-height: 142px;
  padding: 16px;
  border: 1px solid rgba(134, 199, 255, 0.16);
  border-radius: 10px;
  background:
    radial-gradient(circle at 12% 10%, rgba(126, 116, 255, 0.12), transparent 34%),
    rgba(4, 15, 28, 0.42);
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.advisor-preset-card:hover {
  transform: translateY(-3px);
  border-color: rgba(44, 230, 255, 0.4);
  background:
    radial-gradient(circle at 12% 10%, rgba(44, 230, 255, 0.14), transparent 34%),
    rgba(8, 28, 48, 0.62);
}

.advisor-preset-card > span {
  display: block;
  margin-bottom: 8px;
  color: #76eaff;
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.advisor-preset-card strong {
  display: block;
  margin-bottom: 12px;
  color: #f4f9ff;
  font-size: 16px;
}

.advisor-preset-card .catalog-trigger-list span {
  min-height: 24px;
  padding: 0 8px;
  font-size: 12px;
}

.message-note {
  margin-bottom: 28px;
}

html[data-pgc-theme="light"] body[data-page="messages"] {
  background:
    radial-gradient(circle at 18% 8%, rgba(45, 164, 255, 0.18), transparent 30%),
    linear-gradient(180deg, #f6fbff 0%, #eaf3fb 100%);
}

html[data-pgc-theme="light"] .message-hero,
html[data-pgc-theme="light"] .message-catalog-section,
html[data-pgc-theme="light"] .message-toolbar {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(42, 117, 188, 0.22);
  box-shadow: 0 28px 90px rgba(54, 98, 144, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html[data-pgc-theme="light"] .message-hero h1,
html[data-pgc-theme="light"] .catalog-section-head h2,
html[data-pgc-theme="light"] .catalog-card h3,
html[data-pgc-theme="light"] .message-stat-grid strong {
  color: #102033;
}

html[data-pgc-theme="light"] .message-hero p,
html[data-pgc-theme="light"] .catalog-section-head p,
html[data-pgc-theme="light"] .catalog-card p {
  color: #53687d;
}

html[data-pgc-theme="light"] .catalog-card,
html[data-pgc-theme="light"] .advisor-preset-card,
html[data-pgc-theme="light"] .message-audit-card,
html[data-pgc-theme="light"] .message-smoke-item,
html[data-pgc-theme="light"] .message-smoke-result,
html[data-pgc-theme="light"] .message-smoke-result-item,
html[data-pgc-theme="light"] .message-smoke-history-empty,
html[data-pgc-theme="light"] .message-smoke-history-item,
html[data-pgc-theme="light"] .interaction-log-item,
html[data-pgc-theme="light"] .interaction-log-empty,
html[data-pgc-theme="light"] .message-stat-grid strong {
  background: rgba(246, 251, 255, 0.82);
  border-color: rgba(42, 117, 188, 0.2);
}

html[data-pgc-theme="light"] .advisor-preset-card strong,
html[data-pgc-theme="light"] .message-audit-card strong,
html[data-pgc-theme="light"] .message-smoke-item strong,
html[data-pgc-theme="light"] .message-smoke-result-head strong,
html[data-pgc-theme="light"] .message-smoke-result-item strong,
html[data-pgc-theme="light"] .message-smoke-history-empty strong,
html[data-pgc-theme="light"] .message-smoke-history-head strong,
html[data-pgc-theme="light"] .message-smoke-history-item strong,
html[data-pgc-theme="light"] .interaction-log-item strong,
html[data-pgc-theme="light"] .interaction-log-empty strong {
  color: #102033;
}

html[data-pgc-theme="light"] .message-audit-card p,
html[data-pgc-theme="light"] .message-audit-foot,
html[data-pgc-theme="light"] .message-smoke-item p,
html[data-pgc-theme="light"] .message-smoke-result-head span,
html[data-pgc-theme="light"] .message-smoke-result-item p,
html[data-pgc-theme="light"] .message-smoke-result-item small,
html[data-pgc-theme="light"] .message-smoke-history-empty p,
html[data-pgc-theme="light"] .message-smoke-history-head span,
html[data-pgc-theme="light"] .message-smoke-history-item p,
html[data-pgc-theme="light"] .message-smoke-history-item time,
html[data-pgc-theme="light"] .interaction-log-item p,
html[data-pgc-theme="light"] .interaction-log-empty p {
  color: #53687d;
}

html[data-pgc-theme="light"] .interaction-log-actions button {
  background: rgba(240, 248, 255, 0.86);
  color: #163451;
  border-color: rgba(42, 117, 188, 0.22);
}

html[data-pgc-theme="light"] .message-toolbar input,
html[data-pgc-theme="light"] .message-smoke-output,
html[data-pgc-theme="light"] .message-toolbar select {
  background: rgba(246, 251, 255, 0.9);
  color: #102033;
  border-color: rgba(42, 117, 188, 0.22);
}

html[data-pgc-theme="light"] .message-toolbar-actions button,
html[data-pgc-theme="light"] .message-smoke-item button,
html[data-pgc-theme="light"] .message-smoke-history-item button,
html[data-pgc-theme="light"] .catalog-card-actions button {
  background: rgba(230, 243, 255, 0.86);
  color: #163451;
  border-color: rgba(42, 117, 188, 0.22);
}

html[data-pgc-theme="light"] .message-smoke-actions button {
  background: linear-gradient(135deg, #5cd8f4, #5d8dff);
  color: #061322;
}

html[data-pgc-theme="light"] .catalog-card-actions button[data-effect-command] {
  background: linear-gradient(135deg, #65dfff, #4a82ff);
  color: #061322;
}

html[data-pgc-theme="light"] .message-toolbar-actions button[data-random-experience-effect],
html[data-pgc-theme="light"] .message-toolbar-actions button[data-demo-experience-effects] {
  background: linear-gradient(135deg, #5cd8f4, #6e8cff);
  color: #061322;
}

html[data-pgc-theme="light"] .message-toolbar-actions button[data-stop-experience-demo] {
  background: rgba(255, 245, 234, 0.88);
  color: #7a3c0d;
  border-color: rgba(203, 112, 43, 0.24);
}

html[data-pgc-theme="light"] .catalog-trigger-list span {
  background: rgba(230, 243, 255, 0.86);
  color: #163451;
  border-color: rgba(42, 117, 188, 0.2);
}

@media (max-width: 1120px) {
  .catalog-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .message-toolbar {
    grid-template-columns: 1fr;
  }

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

  .message-stat-grid {
    grid-template-columns: 1fr;
  }

  .interaction-log-actions {
    justify-content: flex-start;
    margin: 0 0 18px;
  }

  .message-smoke-actions {
    justify-content: flex-start;
    margin: 0 0 18px;
  }

  .interaction-log-item {
    grid-template-columns: 1fr;
  }

  .message-smoke-result-grid {
    grid-template-columns: 1fr;
  }

  .message-smoke-history-item {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 720px) {
  .message-shell {
    width: min(calc(100% - 24px), 100%);
    padding-top: 104px;
  }

  .message-hero,
  .message-catalog-section {
    padding: 24px;
  }

  .message-toolbar {
    padding: 18px;
  }

  .catalog-card-grid {
    grid-template-columns: 1fr;
  }

  .message-audit-grid {
    grid-template-columns: 1fr;
  }

  .message-smoke-item {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .message-smoke-item button {
    justify-self: start;
  }

  .advisor-preset-grid {
    grid-template-columns: 1fr;
  }
}

body.service-project-view {
  background:
    linear-gradient(180deg, #080d16 0%, #070d15 48%, #071016 100%);
}

body.service-project-view .content-shell {
  width: min(calc(100% - 64px), 1640px);
  padding-top: 130px;
}

body.service-project-view .content-hero,
body.service-project-view .content-cta {
  display: none;
}

.content-grid.is-service-projects {
  display: block;
}

.service-project-group {
  --group-accent: var(--cyan);
  margin-top: 18px;
}

.service-project-group + .service-project-group {
  margin-top: 86px;
}

.service-project-group[data-tone="green"] {
  --group-accent: var(--green);
}

.service-project-group h2 {
  position: relative;
  margin: 0 0 36px;
  padding-left: 24px;
  color: var(--group-accent);
  font-size: 30px;
  line-height: 1.2;
  text-shadow: 0 0 22px color-mix(in srgb, var(--group-accent) 36%, transparent);
}

.service-project-group h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 5px;
  height: 38px;
  border-radius: 8px;
  background: var(--group-accent);
  box-shadow: 0 0 22px color-mix(in srgb, var(--group-accent) 55%, transparent);
}

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

.service-project-card {
  min-height: 300px;
  padding: 32px;
  background: rgba(22, 27, 38, 0.88);
  border: 1px solid color-mix(in srgb, var(--group-accent) 28%, rgba(166, 192, 230, 0.24));
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 24px 60px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-project-card:hover {
  border-color: color-mix(in srgb, var(--group-accent) 52%, rgba(255, 255, 255, 0.2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 26px 70px rgba(0, 0, 0, 0.28), 0 0 38px color-mix(in srgb, var(--group-accent) 12%, transparent);
  transform: translateY(-3px);
}

.service-project-card h3 {
  margin: 0;
  color: #f4f7ff;
  font-size: 24px;
  line-height: 1.25;
}

.service-project-card p {
  min-height: 62px;
  margin: 22px 0 24px;
  color: #9ba3b1;
  font-size: 17px;
  line-height: 1.7;
}

.service-project-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.service-project-card dl div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
}

.service-project-card dt {
  color: #848b9a;
}

.service-project-card dd {
  margin: 0;
  color: #dde3ef;
  font-weight: 650;
  line-height: 1.55;
}

.service-project-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
  padding: 22px 0 0;
  list-style: none;
  border-top: 1px solid rgba(204, 219, 244, 0.11);
}

.service-project-card li {
  padding: 7px 14px;
  color: var(--group-accent);
  background: color-mix(in srgb, var(--group-accent) 16%, rgba(255, 255, 255, 0.035));
  border-radius: 999px;
  font-size: 14px;
  font-weight: 680;
}

.content-cta {
  margin-top: 18px;
  padding: 28px;
  text-align: center;
}

.content-cta h2 {
  margin: 0;
  font-size: 32px;
}

.content-cta p {
  color: var(--muted);
}

.site-footer {
  width: min(calc(100% - 44px), var(--max));
  margin: 28px auto 0;
  padding: 0 0 34px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  color: #c7d7e8;
  background: rgba(2, 11, 22, 0.72);
  border: 1px solid rgba(135, 192, 255, 0.14);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 48px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

.footer-brand {
  display: grid;
  gap: 4px;
}

.footer-brand strong {
  color: #f4fbff;
  font-size: 16px;
}

.footer-brand span,
.footer-meta span {
  color: #9fb3ca;
  font-size: 13px;
  line-height: 1.6;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  text-align: right;
}

.footer-meta span:first-child {
  color: #e6edf7;
  background: rgba(255, 255, 255, 0.08);
  border-left: 2px solid rgba(255, 255, 255, 0.5);
  padding: 3px 9px;
}

.privacy-consent {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  width: min(760px, calc(100vw - 48px));
  padding: 18px;
  color: var(--text);
  background: rgba(7, 18, 34, 0.92);
  border: 1px solid rgba(107, 219, 255, 0.28);
  border-radius: 12px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.36), 0 0 40px rgba(76, 214, 255, 0.12);
  backdrop-filter: blur(18px);
}

.privacy-consent strong {
  display: block;
  margin-bottom: 6px;
  color: #f6fbff;
  font-size: 16px;
}

.privacy-consent p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.privacy-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.privacy-categories span {
  padding: 5px 9px;
  color: #9eeeff;
  font-size: 12px;
  background: rgba(83, 211, 255, 0.1);
  border: 1px solid rgba(120, 219, 255, 0.2);
  border-radius: 999px;
}

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

.privacy-actions a,
.privacy-actions button {
  min-height: 38px;
  padding: 0 14px;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(131, 202, 255, 0.26);
  border-radius: 8px;
}

.privacy-actions [data-privacy-accept] {
  color: #04131e;
  background: linear-gradient(135deg, #62dfff, #79e9bd);
  border-color: transparent;
}

.cursor-trail {
  position: fixed;
  z-index: 999;
  width: 12px;
  height: 12px;
  pointer-events: none;
  background: rgba(44, 230, 255, 0.86);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(44, 230, 255, 0.8);
  opacity: 0;
  transform: translate(-50%, -50%);
}

.particle {
  position: fixed;
  z-index: 998;
  width: 5px;
  height: 5px;
  pointer-events: none;
  background: rgba(44, 230, 255, 0.65);
  border-radius: 50%;
  animation: fadeParticle 0.65s ease forwards;
}

@keyframes pgcRainFall {
  0% { opacity: 0; transform: translate3d(var(--drift), -18vh, 0) rotate(12deg); }
  12% { opacity: 0.95; }
  100% { opacity: 0; transform: translate3d(calc(var(--drift) + 34px), 116vh, 0) rotate(12deg); }
}

@keyframes pgcSnowFall {
  0% { opacity: 0; transform: translate3d(0, -12vh, 0) scale(0.8); }
  18% { opacity: 0.86; }
  100% { opacity: 0; transform: translate3d(var(--drift), 112vh, 0) scale(1.1) rotate(120deg); }
}

@keyframes pgcThunderFlash {
  0%, 24%, 100% { opacity: 0; }
  8% { opacity: 0.78; }
  11% { opacity: 0.08; }
  15% { opacity: 0.52; }
}

@keyframes pgcLightningBolt {
  0%, 22%, 100% { opacity: 0; transform: translateY(-18px) scaleY(0.86); }
  9%, 14% { opacity: 1; transform: translateY(0) scaleY(1); }
}

@keyframes pgcCloudDrift {
  0% { transform: translate3d(-12vw, 0, 0) scale(0.92); opacity: 0; }
  16%, 82% { opacity: 0.68; }
  100% { transform: translate3d(140vw, -2vh, 0) scale(1.08); opacity: 0; }
}

@keyframes pgcWindSweep {
  0% { opacity: 0; transform: translate3d(-18vw, var(--drift), 0) scaleX(0.8); }
  20%, 72% { opacity: 0.9; }
  100% { opacity: 0; transform: translate3d(132vw, var(--drift), 0) scaleX(1.18); }
}

@keyframes pgcLightBloom {
  0% { opacity: 0; filter: brightness(0.8); }
  16% { opacity: 1; filter: brightness(1.18); }
  100% { opacity: 0; filter: brightness(1); }
}

@keyframes pgcLightRing {
  0% { opacity: 0.82; transform: translate(-50%, -50%) scale(0.38); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.34); }
}

@keyframes pgcDarkScan {
  0%, 34% { transform: translateX(-120%); }
  78%, 100% { transform: translateX(120%); }
}

@keyframes pgcHailFall {
  0% { opacity: 0; transform: translate3d(var(--drift), -12vh, 0) scale(0.78); }
  12% { opacity: 0.96; }
  72% { transform: translate3d(calc(var(--drift) * 0.4), 92vh, 0) scale(1); }
  100% { opacity: 0; transform: translate3d(calc(var(--drift) * 0.2), 112vh, 0) scale(0.82); }
}

@keyframes pgcSunPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.94); opacity: 0.78; }
  50% { transform: translate(-50%, -50%) scale(1.06); opacity: 1; }
}

@keyframes pgcSunRay {
  0% { opacity: 0.2; filter: blur(1px); }
  50% { opacity: 0.68; filter: blur(0); }
  100% { opacity: 0.2; filter: blur(1px); }
}

@keyframes pgcSoftDrift {
  0% { opacity: 0; transform: translate3d(0, -12vh, 0) rotate(0deg); }
  12%, 80% { opacity: 0.84; }
  100% { opacity: 0; transform: translate3d(var(--drift), 112vh, 0) rotate(220deg); }
}

@keyframes pgcCloudClear {
  0% { filter: brightness(0.72) saturate(0.72); }
  58% { filter: brightness(0.94) saturate(0.95); }
  100% { filter: brightness(1.12) saturate(1.08); }
}

@keyframes pgcBubbleRise {
  0% { opacity: 0; transform: translate3d(0, 10vh, 0) scale(0.72); }
  16%, 72% { opacity: 0.88; }
  100% { opacity: 0; transform: translate3d(var(--drift), -112vh, 0) scale(1.12); }
}

@keyframes pgcTreasureFall {
  0% { opacity: 0; transform: translate3d(0, -10vh, 0) rotate(-18deg); }
  12%, 82% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--drift), 116vh, 0) rotate(36deg); }
}

@keyframes pgcSparkPop {
  0% { opacity: 0; transform: scale(0.2); }
  18% { opacity: 1; transform: scale(1.1); }
  54% { opacity: 0.74; transform: scale(2.8); }
  100% { opacity: 0; transform: scale(4.2); }
}

@keyframes pgcCreatureFlight {
  0% { opacity: 0; transform: translate3d(-12vw, 22vh, 0) rotate(-8deg) scale(0.88); }
  12%, 82% { opacity: 0.96; }
  48% { transform: translate3d(58vw, -8vh, 0) rotate(6deg) scale(1.06); }
  100% { opacity: 0; transform: translate3d(118vw, 18vh, 0) rotate(12deg) scale(0.94); }
}

@keyframes pgcTrailFlight {
  0% { opacity: 0; transform: translate3d(-16vw, 20vh, 0) rotate(-8deg) scaleX(0.45); }
  14%, 78% { opacity: 0.72; }
  48% { transform: translate3d(56vw, -8vh, 0) rotate(6deg) scaleX(1.1); }
  100% { opacity: 0; transform: translate3d(116vw, 18vh, 0) rotate(12deg) scaleX(0.7); }
}

@keyframes scan {
  from { transform: translateX(-65%); }
  to { transform: translateX(65%); }
}

@keyframes drift {
  from { transform: translateX(-2%) rotate(0deg) scale(1); }
  to { transform: translateX(2%) rotate(3deg) scale(1.02); }
}

@keyframes stellarField {
  from { transform: rotate(0deg) scale(1); }
  to { transform: rotate(360deg) scale(1.02); }
}

@keyframes rotateRing {
  from {
    transform: rotate(var(--ring-start, 0deg)) rotateX(var(--ring-tilt, 62deg)) rotateY(var(--ring-y, 0deg));
  }
  to {
    transform: rotate(calc(var(--ring-start, 0deg) + 360deg)) rotateX(var(--ring-tilt, 62deg)) rotateY(var(--ring-y, 0deg));
  }
}

@keyframes wave {
  0% { opacity: 0.72; transform: scale(0.72); }
  100% { opacity: 0; transform: scale(2.4); }
}

@keyframes fragmentDrift {
  0%, 100% {
    filter: brightness(0.9);
  }
  50% {
    filter: brightness(1.35);
  }
}

@keyframes wordOrbit {
  from {
    rotate: 0deg;
  }
  to {
    rotate: 360deg;
  }
}

@keyframes speakPulse {
  0%, 100% {
    filter: blur(var(--core-blur)) brightness(1.05) saturate(1.14);
  }
  50% {
    filter: blur(var(--core-blur)) brightness(1.26) saturate(1.34);
  }
}

@keyframes mouthIdle {
  0%, 100% {
    opacity: 0.8;
    filter: brightness(0.96);
  }
  42% {
    opacity: 1;
    filter: brightness(1.16);
  }
}

@keyframes mouthTalk {
  0%, 100% {
    transform: translateY(calc(var(--bar-y, 0px) + var(--bar-shift, 0px))) scaleY(var(--talk-low, 0.68));
    opacity: 0.74;
  }
  34% {
    transform: translateY(calc(var(--bar-y, 0px) + var(--bar-shift, 0px) - 1px)) scaleY(var(--talk-high, 1.16));
    opacity: 1;
  }
  68% {
    transform: translateY(calc(var(--bar-y, 0px) + var(--bar-shift, 0px) + 1px)) scaleY(var(--bar-scale, 0.9));
    opacity: 0.92;
  }
}

@keyframes mouthLoading {
  0%, 100% {
    transform: translateY(calc(var(--bar-y, 0px) + var(--bar-shift, 0px) + 3px)) scaleY(0.62);
    opacity: 0.58;
  }
  50% {
    transform: translateY(calc(var(--bar-y, 0px) + var(--bar-shift, 0px) - 4px)) scaleY(1.16);
    opacity: 1;
  }
}

@keyframes mouthTypingFloat {
  0%, 100% {
    transform: translateY(calc(var(--bar-y, 0px) + var(--bar-shift, 0px))) scaleY(var(--bar-scale, 1));
  }
  50% {
    transform: translateY(calc(var(--bar-y, 0px) + var(--bar-shift, 0px) - 1px)) scaleY(calc(var(--bar-scale, 1) + 0.08));
  }
}

@keyframes mouthReceive {
  0% {
    opacity: 0;
    transform: translateY(calc(var(--bar-y, 0px) + 4px)) scaleY(0.35);
  }
  100% {
    opacity: 1;
    transform: translateY(calc(var(--bar-y, 0px) + var(--bar-shift, 0px))) scaleY(var(--bar-scale, 1));
  }
}

@keyframes mouthSmileFloat {
  0%, 100% {
    transform: translateY(calc(var(--bar-y, 0px) + var(--bar-shift, 0px))) scaleY(var(--bar-scale, 1));
  }
  50% {
    transform: translateY(calc(var(--bar-y, 0px) + var(--bar-shift, 0px) - 1px)) scaleY(calc(var(--bar-scale, 1) + 0.05));
  }
}

@keyframes mouthDeepWave {
  0%, 100% {
    transform: translateY(calc(var(--bar-y, 0px) + var(--bar-shift, 0px))) scaleY(var(--bar-scale, 1));
  }
  50% {
    transform: translateY(calc(var(--bar-y, 0px) + var(--bar-shift, 0px) - 2px)) scaleY(calc(var(--bar-scale, 1) + 0.18));
  }
}

@keyframes mouthConfused {
  0%, 100% {
    transform: translateY(calc(var(--bar-y, 0px) + var(--bar-shift, 0px))) scaleY(var(--bar-scale, 1));
  }
  45% {
    transform: translateY(calc(var(--bar-y, 0px) + var(--bar-shift, 0px) + 1px)) scaleY(calc(var(--bar-scale, 1) - 0.1));
  }
}

@keyframes mouthSurprise {
  0%, 100% {
    filter: brightness(1);
    transform: translateY(calc(var(--bar-y, 0px) + var(--bar-shift, 0px))) scaleY(var(--bar-scale, 1));
  }
  30% {
    filter: brightness(1.3);
    transform: translateY(calc(var(--bar-y, 0px) + var(--bar-shift, 0px) - 2px)) scaleY(calc(var(--bar-scale, 1) + 0.15));
  }
}

@keyframes mouthLowSlow {
  0%, 100% {
    transform: translateY(calc(var(--bar-y, 0px) + var(--bar-shift, 0px) + 2px)) scaleY(var(--bar-scale, 0.6));
  }
  50% {
    transform: translateY(calc(var(--bar-y, 0px) + var(--bar-shift, 0px) + 1px)) scaleY(calc(var(--bar-scale, 0.6) + 0.04));
  }
}

@keyframes mouthHumor {
  0%, 100% {
    transform: translateY(calc(var(--bar-y, 0px) + var(--bar-shift, 0px))) scaleY(var(--bar-scale, 1));
  }
  50% {
    transform: translateY(calc(var(--bar-y, 0px) + var(--bar-shift, 0px) - 2px)) scaleY(calc(var(--bar-scale, 1) + 0.16));
  }
}

@keyframes mouthBreath {
  0%, 100% {
    opacity: 0.55;
    filter: brightness(0.94);
  }
  50% {
    opacity: 1;
    filter: brightness(1.18);
  }
}

@keyframes mouthProgressRoll {
  from { transform: translateX(0); }
  to { transform: translateX(-18px); }
}

@keyframes mouthGenerateWave {
  0%, 100% {
    transform: translateY(calc(var(--bar-y, 0px) + var(--bar-shift, 0px) + 1px)) scaleY(0.62);
  }
  50% {
    transform: translateY(calc(var(--bar-y, 0px) + var(--bar-shift, 0px) - 2px)) scaleY(1.24);
  }
}

@keyframes mouthAnalysis {
  0%, 100% {
    filter: brightness(1);
    transform: translateY(calc(var(--bar-y, 0px) + var(--bar-shift, 0px))) scaleY(var(--bar-scale, 1));
  }
  42% {
    filter: brightness(1.22);
    transform: translateY(calc(var(--bar-y, 0px) + var(--bar-shift, 0px) - 1px)) scaleY(calc(var(--bar-scale, 1) + 0.12));
  }
}

@keyframes mouthComparePulse {
  0%, 100% {
    transform: translateY(calc(var(--bar-y, 0px) + var(--bar-shift, 0px))) scaleY(var(--bar-scale, 1));
  }
  50% {
    transform: translateY(calc(var(--bar-y, 0px) + var(--bar-shift, 0px) - 1px)) scaleY(calc(var(--bar-scale, 1) + 0.12));
  }
}

@keyframes mouthComplete {
  0%, 100% {
    transform: translateY(calc(var(--bar-y, 0px) + var(--bar-shift, 0px))) scaleY(var(--bar-scale, 1));
  }
  28% {
    transform: translateY(calc(var(--bar-y, 0px) + var(--bar-shift, 0px) - 1px)) scaleY(calc(var(--bar-scale, 1) + 0.1));
  }
}

@keyframes mouthOrbitTurn {
  from { transform: translate(-50%, var(--mouth-y)) scale(var(--mouth-scale)) rotate(0deg); }
  to { transform: translate(-50%, var(--mouth-y)) scale(var(--mouth-scale)) rotate(360deg); }
}

@keyframes mouthQuickHop {
  0%, 100% {
    transform: translateY(calc(var(--bar-y, 0px) + var(--bar-shift, 0px))) scaleY(var(--bar-scale, 1));
  }
  35% {
    transform: translateY(calc(var(--bar-y, 0px) + var(--bar-shift, 0px) - 3px)) scaleY(calc(var(--bar-scale, 1) + 0.18));
  }
}

@keyframes mouthDrawChart {
  to { stroke-dashoffset: 0; }
}

@keyframes mouthWaveDrift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1px); }
}

@keyframes mouthMetricPop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.72);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes mouthDotCurrent {
  0%, 100% { transform: scale(1); opacity: 0.78; }
  50% { transform: scale(1.32); opacity: 1; }
}

@keyframes eyeBlink {
  0%, 72%, 100% { height: var(--eye-h); }
  82% { height: 3px; }
}

@keyframes eyeScan {
  0%, 100% { translate: -2px 0; }
  50% { translate: 4px 0; }
}

@keyframes yawnStretch {
  0%, 100% { transform: translate(-50%, var(--mouth-y)) scale(0.92); }
  50% { transform: translate(-50%, var(--mouth-y)) scale(1.16); }
}

@keyframes dizzyEyes {
  from { rotate: 0deg; }
  to { rotate: 360deg; }
}

@keyframes fadeParticle {
  from { opacity: 0.78; transform: translate(-50%, -50%) scale(1); }
  to { opacity: 0; transform: translate(-50%, -50%) scale(0.2); }
}

@keyframes coinFall {
  0% {
    opacity: 0;
    transform: translate3d(0, -32px, 0) rotateY(0deg) rotateZ(0deg);
  }
  8% {
    opacity: 1;
  }
  100% {
    opacity: 0.92;
    transform: translate3d(var(--drift), calc(100vh + 120px), 0) rotateY(740deg) rotateZ(220deg);
  }
}

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

@media (max-width: 1120px) {
  body[data-page="chat"] {
    height: auto;
    overflow: auto;
  }

  .site-nav {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .nav-links,
  .nav-actions {
    display: none;
  }

  .site-nav.is-open .nav-links,
  .site-nav.is-open .nav-actions {
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .site-nav.is-open .nav-links {
    flex-wrap: wrap;
  }

  .advisor-hero,
  .chat-shell {
    grid-template-columns: 1fr;
  }

  .chat-shell {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
    padding-bottom: 24px;
  }

  .chat-panel {
    order: 1;
    min-height: calc(100dvh - 128px);
    height: calc(100dvh - 128px);
    overflow: hidden;
  }

  .chat-history-panel {
    order: 2;
  }

  .chat-side {
    order: 3;
  }

  body[data-page="home"] .advisor-hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "headline"
      "intro"
      "ai"
      "console";
    gap: 22px;
  }

  body[data-page="home"] .hero-copy h1 {
    max-width: 900px;
    font-size: 72px;
  }

  body[data-page="home"] .home-console,
  body[data-page="home"] .home-entry-grid {
    justify-self: center;
  }

  body[data-page="home"] .advisor-hero > .ai-presence {
    min-height: 520px;
    width: min(100%, 680px);
    justify-self: center;
  }

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

  .chat-history-panel,
  .chat-side {
    min-height: auto;
    height: auto;
  }

  .chat-history-panel {
    max-height: 280px;
  }

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

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

  .about-values {
    grid-template-columns: 1fr;
  }

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

  .page-ai-presence,
  .page-ai-presence.compact {
    right: 14px;
    bottom: 14px;
    width: 202px;
    min-height: 244px;
    padding: 10px;
  }

  .page-ai-presence .ai-orb {
    width: 162px;
    height: 162px;
  }

  .page-ai-presence .ai-status-panel {
    padding: 10px;
  }

  .page-ai-presence .ai-status-panel strong {
    font-size: 14px;
  }
}

@media (max-width: 760px) {
  .cms-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-nav {
    top: 10px;
    width: calc(100% - 20px);
  }

  .brand {
    min-width: 0;
  }

  .brand-copy small {
    display: none;
  }

  .home-shell,
  .chat-shell,
  .content-shell {
    width: min(100% - 24px, var(--max));
    padding-top: 116px;
  }

  .advisor-hero {
    min-height: auto;
    gap: 28px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  body[data-page="home"] .hero-copy h1 {
    font-size: 48px;
    line-height: 1.08;
  }

  .hero-copy p {
    font-size: 16px;
  }

  body[data-page="home"] .hero-copy p {
    margin-bottom: 20px;
    font-size: 16px;
  }

  .input-shell,
  .chat-composer,
  .home-entry-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .about-manifesto,
  .about-capabilities {
    grid-template-columns: 1fr;
  }

  .about-principle,
  .about-values,
  .about-info-card {
    padding: 22px;
  }

  .about-principle,
  .about-info-card {
    min-height: auto;
  }

  .about-values {
    min-height: auto;
  }

  .value-list {
    grid-template-columns: 1fr;
  }

  .footer-inner,
  .footer-meta {
    display: grid;
    justify-content: stretch;
    text-align: left;
  }

  .site-footer {
    width: min(100% - 24px, var(--max));
  }

  .privacy-consent {
    right: 12px;
    bottom: 12px;
    grid-template-columns: 1fr;
    width: calc(100vw - 24px);
    padding: 14px;
  }

  .privacy-actions {
    justify-content: stretch;
  }

  .privacy-actions a,
  .privacy-actions button {
    flex: 1 1 auto;
    text-align: center;
  }

  .send-button {
    flex-direction: row;
    min-height: 58px;
  }

  body[data-page="home"] .home-console {
    min-height: 286px;
    padding: 20px;
  }

  body[data-page="home"] .home-console label {
    left: 24px;
    bottom: 24px;
    font-size: 11px;
  }

  body[data-page="home"] .home-console textarea {
    min-height: 220px;
    font-size: 16px;
  }

  body[data-page="home"] .home-console .send-button {
    right: 18px;
    bottom: 16px;
    font-size: 15px;
  }

  body[data-page="home"] .advisor-hero > .ai-presence {
    min-height: 420px;
  }

  body[data-page="home"] .advisor-hero > .ai-presence .ai-orb {
    width: min(78vw, 292px);
    height: min(78vw, 292px);
  }

  .ai-service-orbits {
    position: relative;
    inset: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: -12px;
  }

  .orbit-chip {
    position: static;
    min-height: 36px;
    transform: none;
    font-size: 13px;
  }

  .orbit-chip:hover,
  .orbit-chip:focus-visible {
    transform: translateY(-2px);
  }

  .service-project-grid {
    grid-template-columns: 1fr;
  }

  body.service-project-view .content-shell {
    width: min(100% - 24px, var(--max));
  }

  .service-project-group + .service-project-group {
    margin-top: 52px;
  }

  .service-project-card {
    min-height: auto;
    padding: 22px;
  }

  .service-project-card dl div {
    grid-template-columns: 1fr;
  }

  .ai-presence {
    min-height: 430px;
  }

  .page-ai-presence,
  .page-ai-presence.compact {
    right: 12px;
    bottom: 12px;
    width: 128px;
    min-height: 128px;
    padding: 0;
    border-radius: 50%;
  }

  .page-ai-presence .ai-orb {
    width: 118px;
    height: 118px;
  }

  .page-ai-presence .ai-state-indicator,
  .page-ai-presence .ai-status-panel {
    display: none !important;
  }

  .theme-progress-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .theme-progress-copy small {
    justify-self: center;
  }

  .ai-status-panel {
    right: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
  }

  .ai-signal-list {
    top: 14px;
    left: 14px;
  }

  .chat-header {
    display: grid;
  }

  .chat-shortcuts {
    padding: 0 16px 12px;
  }

  .chat-composer {
    margin: 0 16px 16px;
  }

  .messages {
    max-height: none;
    padding: 16px;
  }

  .message {
    max-width: 100%;
  }

  .message-actions {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .advisor-card-grid {
    grid-template-columns: 1fr;
  }

  .advisor-summary-lead,
  .advisor-advice-card,
  .advisor-checklist li,
  .advisor-risk-block {
    padding: 11px 12px;
  }

  .message-table {
    min-width: 480px;
  }
}

/* Final light-theme contrast and route harmonization layer. Keep this at the end
   so older dark page-specific rules cannot override readable light colors. */
html[data-pgc-theme="light"] .site-nav,
html[data-pgc-theme="light"] .content-shell,
html[data-pgc-theme="light"] .content-cta,
html[data-pgc-theme="light"] .chat-panel,
html[data-pgc-theme="light"] .chat-history-panel,
html[data-pgc-theme="light"] .chat-side {
  color: #102033;
}

html[data-pgc-theme="light"] .nav-links,
html[data-pgc-theme="light"] .nav-links a,
html[data-pgc-theme="light"] .brand-copy strong,
html[data-pgc-theme="light"] .brand-copy small,
html[data-pgc-theme="light"] .history-head strong,
html[data-pgc-theme="light"] .history-item strong,
html[data-pgc-theme="light"] .message-role,
html[data-pgc-theme="light"] .chat-header h1,
html[data-pgc-theme="light"] .content-hero h1,
html[data-pgc-theme="light"] .content-card h2,
html[data-pgc-theme="light"] .content-detail h1,
html[data-pgc-theme="light"] .content-detail h2,
html[data-pgc-theme="light"] .content-detail h3,
html[data-pgc-theme="light"] .content-cta h2,
html[data-pgc-theme="light"] .download-card h2,
html[data-pgc-theme="light"] .service-project-card h3,
html[data-pgc-theme="light"] .service-project-card dd,
html[data-pgc-theme="light"] .about-principle h2,
html[data-pgc-theme="light"] .about-info-card h2,
html[data-pgc-theme="light"] .about-values strong {
  color: #102033;
  text-shadow: none;
}

html[data-pgc-theme="light"] .content-hero p,
html[data-pgc-theme="light"] .content-card p,
html[data-pgc-theme="light"] .content-card small,
html[data-pgc-theme="light"] .content-detail p,
html[data-pgc-theme="light"] .content-detail li,
html[data-pgc-theme="light"] .chat-header p,
html[data-pgc-theme="light"] .message-content,
html[data-pgc-theme="light"] .history-item span,
html[data-pgc-theme="light"] .resource-card p,
html[data-pgc-theme="light"] .service-project-card p,
html[data-pgc-theme="light"] .service-project-card dt,
html[data-pgc-theme="light"] .service-project-card li,
html[data-pgc-theme="light"] .download-card p,
html[data-pgc-theme="light"] .download-card small,
html[data-pgc-theme="light"] .about-principle p,
html[data-pgc-theme="light"] .about-info-card p,
html[data-pgc-theme="light"] .value-chip span,
html[data-pgc-theme="light"] .footer-brand span,
html[data-pgc-theme="light"] .footer-meta span {
  color: #52667c;
}

html[data-pgc-theme="light"] body[data-page="home"],
html[data-pgc-theme="light"] body[data-page="content"],
html[data-pgc-theme="light"] body[data-page="chat"],
html[data-pgc-theme="light"] body.service-project-view,
html[data-pgc-theme="light"] body.about-page-view {
  background:
    radial-gradient(circle at 72% 10%, rgba(74, 172, 255, 0.16), transparent 34%),
    radial-gradient(circle at 12% 34%, rgba(44, 230, 255, 0.15), transparent 30%),
    linear-gradient(180deg, #fbfdff 0%, #eef6ff 54%, #f8fbff 100%);
}

html[data-pgc-theme="light"] body[data-page="home"] .hero-copy h1,
html[data-pgc-theme="light"] body[data-page="home"] .hero-copy h1 .headline-primary,
html[data-pgc-theme="light"] body[data-page="home"] .hero-copy h1 .headline-secondary {
  color: #102033;
  text-shadow: 0 0 18px rgba(44, 230, 255, 0.2);
}

html[data-pgc-theme="light"] body[data-page="home"] .hero-copy p {
  color: #4f6074;
}

html[data-pgc-theme="light"] body[data-page="home"] .home-console,
html[data-pgc-theme="light"] .content-card,
html[data-pgc-theme="light"] .content-cta,
html[data-pgc-theme="light"] .content-detail,
html[data-pgc-theme="light"] .service-project-card,
html[data-pgc-theme="light"] .download-card,
html[data-pgc-theme="light"] .about-principle,
html[data-pgc-theme="light"] .about-values,
html[data-pgc-theme="light"] .about-info-card,
html[data-pgc-theme="light"] .message,
html[data-pgc-theme="light"] .history-item,
html[data-pgc-theme="light"] .resource-card,
html[data-pgc-theme="light"] .chat-composer,
html[data-pgc-theme="light"] .chat-shortcuts button,
html[data-pgc-theme="light"] .quick-prompts button {
  color: #102033;
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(42, 117, 188, 0.22);
  box-shadow: 0 18px 54px rgba(58, 100, 144, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

html[data-pgc-theme="light"] body[data-page="home"] .home-console label {
  color: #52667c;
}

html[data-pgc-theme="light"] body[data-page="home"] .home-console textarea,
html[data-pgc-theme="light"] .chat-composer textarea,
html[data-pgc-theme="light"] textarea,
html[data-pgc-theme="light"] input {
  color: #102033;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(42, 117, 188, 0.24);
}

html[data-pgc-theme="light"] body[data-page="home"] .home-console textarea::placeholder,
html[data-pgc-theme="light"] .chat-composer textarea::placeholder,
html[data-pgc-theme="light"] textarea::placeholder,
html[data-pgc-theme="light"] input::placeholder {
  color: #66778a;
}

html[data-pgc-theme="light"] body[data-page="home"] .home-console .send-button,
html[data-pgc-theme="light"] .chat-composer .send-button,
html[data-pgc-theme="light"] .btn-secondary,
html[data-pgc-theme="light"] .page-ai-chat-link,
html[data-pgc-theme="light"] .back-link {
  color: #0a3650;
}

html[data-pgc-theme="light"] .btn-primary,
html[data-pgc-theme="light"] .send-button {
  color: #06192a;
}

html[data-pgc-theme="light"] .orbit-chip,
html[data-pgc-theme="light"] .advisor-option-group button,
html[data-pgc-theme="light"] .history-actions button,
html[data-pgc-theme="light"] .attachment-pill,
html[data-pgc-theme="light"] .value-chip {
  color: #17324f;
  background: linear-gradient(135deg, rgba(235, 247, 255, 0.94), rgba(255, 255, 255, 0.78));
  border-color: rgba(42, 117, 188, 0.22);
}

html[data-pgc-theme="light"] .message.assistant,
html[data-pgc-theme="light"] .history-item[data-active="true"] {
  background: linear-gradient(135deg, rgba(226, 248, 255, 0.9), rgba(255, 255, 255, 0.84));
  border-color: rgba(29, 154, 219, 0.32);
}

html[data-pgc-theme="light"] .content-card ul,
html[data-pgc-theme="light"] .service-project-card ul {
  color: #17324f;
  border-top-color: rgba(42, 117, 188, 0.16);
}

html[data-pgc-theme="light"] .site-footer,
html[data-pgc-theme="light"] .footer-inner {
  color: #102033;
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(42, 117, 188, 0.18);
}

.quote-modal-shell[hidden] {
  display: none;
}

.quote-modal-shell {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
}

.quote-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 18, 0.74);
  backdrop-filter: blur(12px);
}

.quote-modal {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  max-height: min(86vh, 900px);
  overflow: hidden;
  color: #eef8ff;
  background:
    radial-gradient(circle at 78% 14%, rgba(87, 210, 255, 0.18), transparent 30%),
    linear-gradient(145deg, rgba(13, 28, 51, 0.96), rgba(10, 19, 36, 0.98));
  border: 1px solid rgba(143, 212, 255, 0.28);
  border-radius: 18px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.quote-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 30px 22px;
  border-bottom: 1px solid rgba(135, 190, 244, 0.16);
}

.quote-modal-head p,
.quote-summary-panel p {
  margin: 0 0 8px;
  color: #6fe4ff;
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0;
}

.quote-modal-head h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
}

.quote-modal-head span {
  color: rgba(223, 238, 255, 0.7);
  font-size: 15px;
}

.quote-close {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #eaf8ff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(150, 210, 255, 0.24);
  border-radius: 10px;
  cursor: pointer;
}

.quote-modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  max-height: calc(min(86vh, 900px) - 126px);
  padding: 22px;
  overflow: auto;
}

.quote-editor,
.quote-summary-panel {
  background: rgba(9, 23, 43, 0.72);
  border: 1px solid rgba(135, 190, 244, 0.18);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.quote-editor {
  min-width: 0;
  padding: 18px;
}

.quote-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.quote-editor-head strong {
  font-size: 18px;
}

.quote-items {
  display: grid;
  gap: 12px;
}

.quote-row {
  display: grid;
  grid-template-columns: 34px minmax(160px, 1.1fr) minmax(220px, 1.4fr) 112px 92px 124px 68px;
  gap: 10px;
  align-items: end;
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(133, 206, 255, 0.16);
  border-radius: 12px;
}

.quote-row-index {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #071627;
  background: linear-gradient(135deg, #75e3ff, #6d8cff);
  border-radius: 50%;
  font-weight: 800;
}

.quote-row label,
.quote-subtotal {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.quote-row label span,
.quote-subtotal span {
  color: rgba(214, 234, 255, 0.62);
  font-size: 12px;
  font-weight: 680;
}

.quote-row select,
.quote-row input,
.quote-output {
  width: 100%;
  color: #f6fbff;
  background: rgba(2, 10, 22, 0.72);
  border: 1px solid rgba(136, 198, 255, 0.22);
  border-radius: 9px;
  outline: none;
}

.quote-row select,
.quote-row input {
  height: 42px;
  padding: 0 12px;
}

.quote-row select:focus,
.quote-row input:focus,
.quote-output:focus {
  border-color: rgba(105, 225, 255, 0.74);
  box-shadow: 0 0 0 3px rgba(58, 204, 255, 0.12);
}

.quote-subtotal strong {
  display: flex;
  align-items: center;
  min-height: 42px;
  color: #9df2ff;
  font-size: 15px;
}

.quote-remove {
  height: 42px;
  color: #ffd4dc;
  background: rgba(255, 84, 118, 0.12);
  border: 1px solid rgba(255, 120, 147, 0.22);
  border-radius: 9px;
  cursor: pointer;
}

.quote-summary-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
}

.quote-summary-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(91, 221, 255, 0.12), rgba(91, 111, 255, 0.09));
  border: 1px solid rgba(126, 213, 255, 0.18);
  border-radius: 12px;
}

.quote-summary-metric span {
  color: rgba(227, 241, 255, 0.68);
}

.quote-summary-metric strong {
  color: #ffffff;
  font-size: 24px;
}

.quote-summary-panel small {
  color: rgba(221, 237, 255, 0.62);
  line-height: 1.6;
}

.quote-actions {
  display: grid;
  gap: 10px;
}

.quote-actions .btn {
  width: 100%;
}

.quote-output {
  min-height: 220px;
  padding: 14px;
  resize: vertical;
  line-height: 1.6;
}

.quote-notice {
  min-height: 20px;
  color: #79e7ff;
  font-size: 13px;
}

html[data-pgc-theme="light"] .quote-modal-backdrop {
  background: rgba(232, 242, 250, 0.72);
}

html[data-pgc-theme="light"] .quote-modal,
html[data-pgc-theme="light"] .quote-editor,
html[data-pgc-theme="light"] .quote-summary-panel {
  color: #102033;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(42, 117, 188, 0.2);
  box-shadow: 0 28px 80px rgba(58, 100, 144, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

html[data-pgc-theme="light"] .quote-modal-head {
  border-bottom-color: rgba(42, 117, 188, 0.14);
}

html[data-pgc-theme="light"] .quote-modal-head span,
html[data-pgc-theme="light"] .quote-summary-panel small,
html[data-pgc-theme="light"] .quote-summary-metric span,
html[data-pgc-theme="light"] .quote-row label span,
html[data-pgc-theme="light"] .quote-subtotal span {
  color: #53687f;
}

html[data-pgc-theme="light"] .quote-close,
html[data-pgc-theme="light"] .quote-row,
html[data-pgc-theme="light"] .quote-summary-metric {
  color: #102033;
  background: rgba(236, 247, 255, 0.82);
  border-color: rgba(42, 117, 188, 0.18);
}

html[data-pgc-theme="light"] .quote-row select,
html[data-pgc-theme="light"] .quote-row input,
html[data-pgc-theme="light"] .quote-output {
  color: #102033;
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(42, 117, 188, 0.24);
}

html[data-pgc-theme="light"] .quote-summary-metric strong,
html[data-pgc-theme="light"] .quote-subtotal strong {
  color: #086b9a;
}

@media (max-width: 980px) {
  .quote-modal-body {
    grid-template-columns: 1fr;
  }

  .quote-row {
    grid-template-columns: 34px 1fr 1fr;
  }

  .quote-description-field {
    grid-column: 2 / -1;
  }
}

@media (max-width: 680px) {
  .quote-modal-shell {
    padding: 12px;
  }

  .quote-modal-head {
    padding: 20px;
  }

  .quote-modal-body {
    padding: 14px;
    max-height: calc(92vh - 112px);
  }

  .quote-row {
    grid-template-columns: 1fr;
  }

  .quote-row-index,
  .quote-description-field {
    grid-column: auto;
  }
}
