:root {
  --color-midnight-canvas: #05060f;
  --color-steel-plate: #2f343e;
  --color-fog-veil: #9da7ba;
  --color-moon-mist: #c7d3ea;
  --color-frost-glow: #d1e4fa;
  --color-ice-highlight: #d8ecf8;
  --gradient-ice-highlight: linear-gradient(0deg, #d8ecf8 0%, #98c0ef 100%);
  --color-pure-white: #ffffff;
  --color-blueprint-blue: #b6d9fc;
  --color-ember-glow: #e46d4c;
  --color-signal-blue: #027dea;
  --color-deep-teal: #269684;
  --color-gridline-blue: #3f4959;
  --color-glass-edge: rgba(186, 215, 247, 0.12);
  --color-luminous-fill: rgba(199, 211, 234, 0.12);
  --font-untitled-sans: "Untitled Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-aeonikpro: "aeonikPro", "Space Grotesk", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-dotdigital: "dotDigital", "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --text-caption: 12px;
  --text-body-sm: 14px;
  --text-body: 16px;
  --text-subheading: 18px;
  --text-heading-sm: 24px;
  --text-heading: 28px;
  --text-heading-lg: 44px;
  --text-display: 48px;
  --radius-md: 6px;
  --radius-cards: 16px;
  --radius-buttons: 999px;
  --radius-iconcontainers: 9999px;
  --shadow-subtle: rgba(186, 215, 247, 0.12) 0 0 0 1px inset;
  --shadow-subtle-2:
    rgba(199, 211, 234, 0.12) -0.5px 0.5px 1px 0 inset,
    rgba(186, 215, 247, 0.08) 0 0 96px 0 inset;
  --shadow-subtle-4:
    rgba(199, 211, 234, 0.12) 0 1px 1px 0 inset,
    rgba(199, 211, 234, 0.05) 0 24px 48px 0 inset,
    rgba(6, 6, 14, 0.7) 0 24px 32px 0;
  --shadow-subtle-6:
    rgba(216, 236, 248, 0.2) 0 1px 1px 0 inset,
    rgba(168, 216, 245, 0.06) 0 24px 48px 0 inset,
    rgba(0, 0, 0, 0.3) 0 16px 32px 0;
  --color-bg: #0f1726;
  --color-bg-deep: #05060f;
  --color-gold: #c8a46a;
  --color-gold-bright: #d8bc78;
  --color-gold-soft: rgba(200, 164, 106, 0.14);
  --color-ivory: #f3f0e8;
  --color-muted: rgba(209, 228, 250, 0.76);
  --color-subtle: rgba(199, 211, 234, 0.56);
  --color-emerald: #6e9c86;
  --color-void: #000000;
  --color-bone-white: #ffffff;
  --color-ash-gray: #9a9a9a;
  --color-silver-mist: #bdbdbd;
  --color-saffron-spark: #ffb829;
  --color-deep-verdant: #15846e;
  --glass-fill: rgba(186, 214, 247, 0.038);
  --glass-fill-strong: rgba(5, 6, 15, 0.72);
  --glass-border: rgba(186, 215, 247, 0.12);
  --gold-border: rgba(200, 164, 106, 0.26);
  --danger-line: rgba(200, 164, 106, 0.22);
  --danger-text: #ead8c0;
  --radius-card: var(--radius-cards);
  --radius-small: 10px;
  --radius-pill: 999px;
  --shadow-glass:
    rgba(199, 211, 234, 0.12) 0 1px 1px 0 inset,
    rgba(199, 211, 234, 0.05) 0 24px 48px 0 inset,
    rgba(6, 6, 14, 0.7) 0 24px 32px 0;
  --font-ui: var(--font-untitled-sans);
  --font-display: var(--font-aeonikpro);
  --dk-bg: #05060f;
  --dk-surface: rgba(15, 23, 38, 0.72);
  --dk-surface-strong: rgba(15, 23, 38, 0.92);
  --dk-surface-soft: rgba(243, 240, 232, 0.045);
  --dk-gold: #c8a46a;
  --dk-gold-soft: #d9b875;
  --dk-ivory: #f3f0e8;
  --dk-muted: rgba(243, 240, 232, 0.58);
  --dk-muted-strong: rgba(243, 240, 232, 0.74);
  --dk-emerald: #6e9c86;
  --dk-terracotta: #b9826b;
  --dk-line: rgba(243, 240, 232, 0.08);
  --dk-line-gold: rgba(200, 164, 106, 0.16);
  --radius-master: 28px;
  --radius-chip: 999px;
  color-scheme: dark;
}

[data-money],
[data-dashboard],
.metric-value,
.trade-price,
.trade-result,
.trade-volume {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--color-bg-deep);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% -12%, rgba(124, 145, 182, 0.26), transparent 34rem),
    radial-gradient(circle at 92% 18%, rgba(38, 150, 132, 0.1), transparent 25rem),
    radial-gradient(circle at 8% 18%, rgba(200, 164, 106, 0.08), transparent 21rem),
    linear-gradient(180deg, #09101d 0%, var(--color-midnight-canvas) 78%);
  color: var(--color-ivory);
  font-family: var(--font-ui);
  line-height: 1.45;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(186, 215, 247, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(186, 215, 247, 0.045) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(circle at 50% 20%, black 0%, transparent 72%);
  opacity: 0.56;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    conic-gradient(
      from 180deg at 50% -10%,
      transparent 0deg,
      rgba(124, 145, 182, 0.2) 80deg,
      rgba(124, 145, 182, 0.38) 90deg,
      rgba(124, 145, 182, 0.2) 100deg,
      transparent 180deg
    ),
    linear-gradient(115deg, transparent 0%, rgba(200, 164, 106, 0.045) 48%, transparent 53%);
  opacity: 0.76;
}

button {
  font: inherit;
}

.entry-flow {
  min-height: 100vh;
  padding: 24px;
  display: grid;
  place-items: center;
}

.entry-flow[hidden],
.app-shell[hidden] {
  display: none !important;
}

.entry-screen {
  display: none;
  width: min(100%, 980px);
  animation: panelReveal 0.42s ease both;
}

.entry-screen.is-active {
  display: grid;
}

.entry-screen--splash {
  min-height: calc(100vh - 48px);
  place-items: center;
  text-align: center;
}

.entry-logo-wrap {
  position: relative;
  z-index: 0;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  padding: 0;
  overflow: visible !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.entry-logo-wrap::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 140px;
  height: 140px;
  border-radius: var(--radius-pill);
  background: radial-gradient(circle, rgba(200, 164, 106, 0.16), transparent 68%);
  animation: splashGlow 1.45s ease-in-out infinite;
}

.entry-logo-wrap img,
.entry-logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  border: none;
  background: transparent;
  box-shadow: none;
}

.entry-copy h1,
.entry-heading h1 {
  margin: 8px 0 10px;
  color: var(--color-ivory);
  font-size: clamp(36px, 7vw, 64px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.entry-copy p,
.entry-heading p {
  max-width: 620px;
  margin: 0;
  color: rgba(243, 240, 232, 0.68);
  font-size: 16px;
  line-height: 1.55;
}

.entry-card {
  padding: clamp(22px, 4vw, 34px);
  border-radius: 32px;
  background:
    radial-gradient(circle at 92% 0%, rgba(200, 164, 106, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(5, 6, 15, 0.92), rgba(15, 23, 38, 0.74));
  border-color: rgba(200, 164, 106, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 32px 90px rgba(0, 0, 0, 0.42);
}

.entry-heading {
  margin-bottom: 22px;
}

.strategy-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.strategy-choice {
  min-height: 260px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid rgba(186, 215, 247, 0.12);
  border-radius: 24px;
  background: rgba(199, 211, 234, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.strategy-choice--available {
  border-color: rgba(200, 164, 106, 0.24);
  background:
    radial-gradient(circle at 100% 0%, rgba(200, 164, 106, 0.11), transparent 44%),
    rgba(15, 23, 38, 0.78);
}

.strategy-choice--locked {
  opacity: 0.72;
}

.strategy-choice h2 {
  margin: 16px 0 8px;
  color: var(--color-ivory);
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
}

.strategy-choice p {
  margin: 0;
  color: rgba(243, 240, 232, 0.64);
  line-height: 1.5;
}

.strategy-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-right: 6px;
  padding: 0 8px;
  border: 1px solid rgba(200, 164, 106, 0.18);
  border-radius: var(--radius-pill);
  background: rgba(200, 164, 106, 0.08);
  color: rgba(243, 240, 232, 0.82);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.api-form {
  display: grid;
  gap: 14px;
}

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

.api-form label span {
  color: rgba(243, 240, 232, 0.52);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.api-demo-secret-hint {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.api-demo-secret-hint[hidden] {
  display: none;
}

.api-form input,
.api-form select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(186, 215, 247, 0.14);
  border-radius: 14px;
  background: rgba(5, 6, 15, 0.62);
  color: var(--color-ivory);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.api-form input:focus,
.api-form select:focus {
  border-color: rgba(200, 164, 106, 0.38);
}

.api-working-amount-field small {
  color: rgba(243, 240, 232, 0.58);
  font-size: 12px;
  line-height: 1.45;
}

.api-working-amount-input {
  display: flex;
  align-items: center;
  min-height: 46px;
  border: 1px solid rgba(186, 215, 247, 0.14);
  border-radius: 14px;
  background: rgba(5, 6, 15, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.api-working-amount-input:focus-within {
  border-color: rgba(200, 164, 106, 0.38);
}

.api-working-amount-input input {
  min-height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.api-working-amount-input b {
  flex: 0 0 auto;
  padding: 0 14px;
  color: var(--color-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.api-safety-note,
.api-status {
  padding: 13px 14px;
  border: 1px solid rgba(200, 164, 106, 0.16);
  border-radius: 16px;
  background: rgba(200, 164, 106, 0.055);
}

.api-safety-note strong {
  color: var(--color-gold);
  font-weight: 600;
}

.api-safety-note p {
  margin: 5px 0 0;
  color: rgba(243, 240, 232, 0.68);
  font-size: 13px;
  line-height: 1.45;
}

.demo-api-notice {
  padding: 13px 14px;
  border: 1px solid rgba(255, 210, 120, 0.28);
  border-radius: 16px;
  color: rgba(255, 246, 220, 0.92);
  background: rgba(95, 70, 24, 0.34);
  box-shadow: 0 0 24px rgba(255, 190, 80, 0.1);
}

.demo-api-notice strong {
  display: block;
  margin-bottom: 5px;
  color: #ffe6a3;
  font-weight: 700;
}

.demo-api-notice p {
  margin: 0;
  color: rgba(255, 246, 220, 0.76);
  font-size: 13px;
  line-height: 1.45;
}

.api-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(243, 240, 232, 0.76);
  font-size: 13px;
}

.api-status span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 0 6px rgba(200, 164, 106, 0.1);
}

.api-status.is-success span {
  background: var(--color-emerald);
  box-shadow: 0 0 0 6px rgba(110, 156, 134, 0.12);
}

.api-status.is-error span {
  background: var(--color-gold-bright);
}

.demo-preview-badge {
  width: fit-content;
  margin-top: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffe6a3;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  background: rgba(95, 70, 24, 0.38);
  border: 1px solid rgba(255, 210, 120, 0.28);
  box-shadow: 0 0 24px rgba(255, 190, 80, 0.12);
}

body.theme-light .demo-preview-badge {
  color: #5c4215;
  background: linear-gradient(135deg, rgba(255, 232, 177, 0.95), rgba(255, 255, 255, 0.78));
  border-color: rgba(190, 140, 48, 0.28);
  box-shadow: 0 10px 30px rgba(160, 110, 30, 0.12);
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 12px 12px 88px;
}

.glass-panel,
.metric-card,
.history-list article {
  background:
    linear-gradient(180deg, rgba(199, 211, 234, 0.055), rgba(186, 214, 247, 0.024)),
    rgba(5, 6, 15, 0.66);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(16px);
}

.topbar {
  position: sticky;
  top: 10px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 10px 12px;
  background:
    linear-gradient(180deg, rgba(199, 211, 234, 0.08), rgba(186, 214, 247, 0.026)),
    rgba(5, 6, 15, 0.78);
  border-color: var(--color-glass-edge);
  box-shadow:
    inset 0 1px 1px rgba(216, 236, 248, 0.16),
    inset 0 18px 42px rgba(168, 216, 245, 0.038),
    0 18px 40px rgba(0, 0, 0, 0.3);
}

.brand-logo-wrap,
.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  padding: 0 !important;
  margin: 0;
  overflow: visible !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.brand-logo-wrap img,
.brand-mark img,
.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border: none;
  background: transparent;
  box-shadow: none;
}

.brand-logo--horizontal {
  width: 160px;
  height: auto;
}

.brand-logo--main {
  width: min(220px, 68vw);
  height: auto;
}

.brand-copy strong {
  display: block;
  color: var(--color-ivory);
  font-family: var(--font-display);
  font-size: clamp(22px, 5.4vw, 31px);
  font-weight: 400;
  line-height: 1;
}

.brand-name {
  font-family: "Cormorant Garamond", "Playfair Display", var(--font-display);
  color: var(--color-gold);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-name--inline {
  color: var(--color-gold);
  font-weight: 600;
}

.brand-copy span,
.brand-copy small {
  display: block;
  margin-top: 3px;
  color: var(--color-muted);
  font-size: 12px;
}

.brand-copy small {
  color: var(--color-gold);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.trust-row span {
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid rgba(200, 164, 106, 0.13);
  border-radius: var(--radius-pill);
  background: rgba(5, 6, 15, 0.24);
  color: var(--color-muted);
  font-size: 11px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid rgba(243, 240, 232, 0.12);
  border-radius: var(--radius-pill);
  background: rgba(5, 6, 15, 0.28);
  color: var(--color-muted);
  font-size: 12px;
  white-space: nowrap;
}

.status-chip span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-emerald);
  box-shadow: 0 0 14px rgba(110, 156, 134, 0.58);
  animation: statusPulse 2.2s ease-in-out infinite;
}

.status-chip--gold span {
  background: var(--color-gold);
  box-shadow: 0 0 16px rgba(200, 164, 106, 0.54);
}

.premium-tabs {
  --tab-indicator-left: 5px;
  --tab-indicator-width: calc((100% - 22px) / 4);
  position: sticky;
  top: 98px;
  z-index: 18;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin: 14px 0 18px;
  padding: 5px;
  border-radius: var(--radius-pill);
  background:
    linear-gradient(180deg, rgba(199, 211, 234, 0.08), rgba(186, 214, 247, 0.025)),
    rgba(5, 6, 15, 0.78);
  border: 1px solid var(--color-glass-edge);
  box-shadow:
    inset 0 1px 1px rgba(216, 236, 248, 0.18),
    inset 0 18px 42px rgba(168, 216, 245, 0.045),
    0 18px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
  overflow: visible;
  isolation: isolate;
}

.premium-tab {
  position: relative;
  z-index: 2;
  min-height: 40px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: rgba(199, 211, 234, 0.72);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  transition:
    color 0.22s ease,
    transform 0.22s ease,
    opacity 0.22s ease;
}

.premium-tab:hover {
  color: var(--color-pure-white);
  transform: translateY(-1px);
}

.premium-tab.is-active {
  color: var(--color-pure-white);
}

.premium-tab span {
  position: relative;
  z-index: 2;
}

.premium-tabs-indicator {
  position: absolute;
  z-index: 1;
  top: 5px;
  left: var(--tab-indicator-left);
  width: var(--tab-indicator-width);
  height: calc(100% - 10px);
  border-radius: var(--radius-pill);
  background:
    radial-gradient(circle at 50% 0%, rgba(216, 236, 248, 0.2), transparent 62%),
    linear-gradient(180deg, rgba(199, 211, 234, 0.14), rgba(186, 214, 247, 0.045));
  box-shadow:
    inset 0 1px 1px rgba(216, 236, 248, 0.24),
    inset 0 20px 42px rgba(168, 216, 245, 0.07),
    0 0 0 1px rgba(186, 215, 247, 0.14),
    0 10px 24px rgba(0, 0, 0, 0.28);
  transition:
    left 0.34s cubic-bezier(0.2, 0.8, 0.2, 1),
    width 0.24s ease;
  pointer-events: none;
}

.panel {
  display: none;
}

.panel[hidden] {
  display: none !important;
}

.panel.is-active {
  display: block;
  animation: panelReveal 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.overview-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 12px;
}

.intro-card,
.morpheus-mini,
.spot-card,
.control-card,
.context-card,
.section-title {
  padding: clamp(18px, 3.8vw, 28px);
}

.intro-card {
  background:
    radial-gradient(circle at 80% 0%, rgba(200, 164, 106, 0.13), transparent 45%),
    radial-gradient(circle at 8% 0%, rgba(216, 236, 248, 0.08), transparent 44%),
    rgba(5, 6, 15, 0.72);
  border-color: rgba(186, 215, 247, 0.13);
}

.eyebrow {
  color: var(--color-moon-mist);
  font-family: var(--font-dotdigital);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0;
}

.intro-card h1,
.section-title h1 {
  margin: 8px 0 12px;
  font-size: clamp(34px, 8vw, 58px);
  line-height: 0.98;
}

.intro-card p,
.section-title p,
.quiet-note {
  max-width: 760px;
  color: var(--color-muted);
}

.hero-actions,
.button-row,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-actions {
  margin-top: 22px;
}

.btn,
.chip-button,
.ask-field,
.mobile-actions button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-glass-edge);
  color: var(--color-ivory);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  background:
    linear-gradient(180deg, rgba(199, 211, 234, 0.075), rgba(186, 214, 247, 0.026)),
    rgba(5, 6, 15, 0.42);
  box-shadow:
    inset 0 1px 1px rgba(216, 236, 248, 0.16),
    inset 0 18px 34px rgba(168, 216, 245, 0.035),
    0 10px 22px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.btn:hover,
.chip-button:hover,
.ask-field:hover,
.mobile-actions button:hover {
  transform: translateY(-1px);
  border-color: rgba(216, 236, 248, 0.22);
  background:
    linear-gradient(180deg, rgba(199, 211, 234, 0.12), rgba(186, 214, 247, 0.045)),
    rgba(5, 6, 15, 0.56);
}

.btn-primary {
  border-color: rgba(200, 164, 106, 0.42);
  background:
    radial-gradient(circle at 50% 0%, rgba(243, 240, 232, 0.18), transparent 64%),
    linear-gradient(180deg, rgba(216, 188, 120, 0.32), rgba(200, 164, 106, 0.14));
  color: #fff9ed;
  box-shadow:
    inset 0 1px 1px rgba(255, 249, 237, 0.2),
    inset 0 18px 34px rgba(200, 164, 106, 0.08),
    0 14px 28px rgba(0, 0, 0, 0.26);
}

.btn-glass {
  background:
    linear-gradient(180deg, rgba(199, 211, 234, 0.075), rgba(186, 214, 247, 0.024)),
    rgba(5, 6, 15, 0.42);
}

.btn-ghost {
  background: rgba(5, 6, 15, 0.18);
}

.btn-danger {
  border-color: var(--danger-line);
  background: rgba(5, 6, 15, 0.26);
  color: var(--danger-text);
}

.btn-compact {
  min-height: 34px;
  padding-inline: 12px;
  font-size: 12px;
}

.chip-button {
  min-height: 33px;
  padding-inline: 12px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 550;
}

.chip-warn {
  border-color: rgba(200, 164, 106, 0.28);
  color: var(--color-gold-bright);
}

.access-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  padding: 12px 16px;
  background:
    radial-gradient(circle at 4% 0%, rgba(200, 164, 106, 0.1), transparent 42%),
    rgba(5, 6, 15, 0.62);
  border-color: rgba(200, 164, 106, 0.14);
}

.access-strip .brand-name {
  color: var(--color-ivory);
  font-size: 18px;
  line-height: 1;
}

.morpheus-mini {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 0%, rgba(38, 150, 132, 0.14), transparent 42%),
    radial-gradient(circle at 90% 20%, rgba(200, 164, 106, 0.1), transparent 36%),
    linear-gradient(180deg, rgba(199, 211, 234, 0.05), rgba(186, 214, 247, 0.018)),
    rgba(5, 6, 15, 0.74);
  border-color: rgba(38, 150, 132, 0.22);
  border-left: 2px solid rgba(38, 150, 132, 0.55);
}

.morpheus-mini::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 164, 106, 0.18), transparent 62%);
  pointer-events: none;
}

.morpheus-mini-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.morpheus-mini-title > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.mini-head,
.spot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.morpheus-mini-title h2 {
  margin: 0;
  color: var(--color-ivory);
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
}

.morpheus-mini-text {
  margin: 0 0 14px;
  color: rgba(243, 240, 232, 0.68);
  font-size: 14px;
  line-height: 1.45;
}

.morpheus-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.morpheus-mini-mark,
.morpheus-live-mark,
.morpheus-live-icon {
  display: inline-flex;
  flex: 0 0 26px;
  align-items: center;
  justify-content: center;
  width: 26px;
  min-width: 26px;
  height: 26px;
  min-height: 26px;
  overflow: visible;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
}

.morpheus-mini-mark__img,
.morpheus-mini-mark img,
.morpheus-live-mark img,
.morpheus-live-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.morpheus-mini-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(8, 12, 22, 0.78);
  border: 1px solid rgba(200, 164, 106, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.morpheus-mini-badge img,
.morpheus-mini-badge video,
.morpheus-mini-badge canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.morpheus-mini-badge--summary {
  width: 72px;
  height: 72px;
  padding: 8px;
  border-radius: 18px;
}

.morpheus-mini-badge--hero {
  width: 44px;
  height: 44px;
  padding: 5px;
  border-radius: 12px;
}

.morpheus-mini-badge--chat {
  width: 56px;
  height: 56px;
  padding: 6px;
  border-radius: 14px;
}

@media (min-width: 1200px) {
  .morpheus-mini-badge--summary {
    width: 80px;
    height: 80px;
  }
}

.morpheus-label-row .morpheus-mini-mark,
.morpheus-header .morpheus-mini-mark {
  flex-basis: 28px;
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
}

.morpheus-chat-title .morpheus-mini-mark,
.morpheus-mini-mark--chat,
.morpheus-live-mark--chat,
.morpheus-live-icon--chat {
  flex-basis: 34px;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
}

.morpheus-mini-mark--loader,
.morpheus-live-mark--loader,
.morpheus-live-icon--loader {
  flex-basis: 28px;
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
}

.morpheus-identity-copy {
  min-width: 0;
}

.morpheus-identity-copy h1,
.morpheus-identity-copy h2 {
  margin: 4px 0;
  color: var(--color-ivory);
  font-weight: 500;
  line-height: 1;
}

.morpheus-identity-copy h1 {
  font-size: clamp(42px, 7vw, 78px);
  letter-spacing: -0.04em;
}

.morpheus-identity-copy h2 {
  font-size: 32px;
}

.morpheus-identity-copy p {
  margin: 0;
  color: rgba(243, 240, 232, 0.62);
  font-size: 14px;
  line-height: 1.4;
}

.mini-lead {
  max-width: 420px;
  color: var(--color-muted);
}

.message {
  width: fit-content;
  max-width: min(74%, 720px);
  padding: 13px 15px;
  border-radius: 20px;
  color: rgba(243, 240, 232, 0.82);
  background: rgba(199, 211, 234, 0.055);
  border: none;
  box-shadow: none;
  animation: messageIn 0.22s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.message.morpheus {
  align-self: flex-start;
  color: rgba(243, 240, 232, 0.86);
  background:
    linear-gradient(135deg, rgba(243, 240, 232, 0.075), rgba(243, 240, 232, 0.045));
}

.message.user {
  align-self: flex-end;
  color: var(--color-ivory);
  background:
    linear-gradient(135deg, rgba(200, 164, 106, 0.22), rgba(200, 164, 106, 0.12));
}

.message header {
  display: none;
}

.message header strong {
  color: var(--color-ivory);
  font-size: 13px;
  font-weight: 600;
}

.message header small {
  color: rgba(243, 240, 232, 0.42);
  font-size: 11px;
}

.message p {
  margin: 0;
  font-size: 14px;
  line-height: 1.48;
}

.compact-message {
  font-size: 13px;
}

.ask-field {
  width: 100%;
  margin-top: 12px;
  justify-content: flex-start;
  color: var(--color-subtle);
  text-align: left;
}

.spot-card,
.control-card,
.context-card,
.morpheus-hero-card,
.morpheus-chat-card,
.section-title,
.team-grid {
  margin-top: 12px;
}

.spot-card,
.control-card,
.context-card,
.morpheus-hero-card,
.morpheus-chat-card,
.section-title {
  margin-top: 18px;
}

.spot-card {
  background:
    radial-gradient(circle at 85% 0%, rgba(200, 164, 106, 0.12), transparent 42%),
    linear-gradient(135deg, rgba(20, 29, 44, 0.8), rgba(5, 6, 15, 0.82)),
    rgba(186, 214, 247, 0.03);
  border-color: rgba(200, 164, 106, 0.2);
  border-left: 2px solid rgba(200, 164, 106, 0.62);
}

.capital-card {
  position: relative;
  overflow: hidden;
}

.capital-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 164, 106, 0.34), transparent);
  pointer-events: none;
}

.capital-access-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.capital-access-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(186, 215, 247, 0.1);
  border-radius: var(--radius-pill);
  background: rgba(199, 211, 234, 0.045);
  color: rgba(243, 240, 232, 0.72);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.control-card {
  background:
    linear-gradient(135deg, rgba(47, 52, 62, 0.34), rgba(5, 6, 15, 0.72)),
    rgba(199, 211, 234, 0.026);
  border-color: var(--color-glass-edge);
  border-left: 2px solid rgba(216, 236, 248, 0.24);
}

.context-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(38, 150, 132, 0.1), transparent 40%),
    rgba(5, 6, 15, 0.58);
  border-color: rgba(38, 150, 132, 0.16);
  border-left: 2px solid rgba(38, 150, 132, 0.28);
}

[data-panel="journal"] .section-title,
.history-list article {
  background: rgba(186, 214, 247, 0.035);
  border-color: rgba(186, 215, 247, 0.12);
}

[data-panel="team"] .section-title,
.team-grid .metric-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(110, 156, 134, 0.12), transparent 40%),
    rgba(15, 23, 38, 0.62);
  border-color: rgba(110, 156, 134, 0.2);
}

.spot-head h2,
.compact-heading h2 {
  margin: 4px 0 0;
  font-size: clamp(27px, 5vw, 38px);
}

.mode-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--color-glass-edge);
  border-radius: var(--radius-pill);
  background:
    linear-gradient(180deg, rgba(199, 211, 234, 0.055), rgba(186, 214, 247, 0.018)),
    rgba(5, 6, 15, 0.5);
  box-shadow: var(--shadow-subtle-2);
}

.mode-toggle button {
  min-height: 30px;
  padding: 0 11px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
}

.mode-toggle button.is-active {
  background:
    radial-gradient(circle at 50% 0%, rgba(216, 236, 248, 0.16), transparent 62%),
    linear-gradient(180deg, rgba(199, 211, 234, 0.14), rgba(186, 214, 247, 0.045));
  color: var(--color-ivory);
  box-shadow:
    inset 0 1px 1px rgba(216, 236, 248, 0.22),
    0 0 0 1px rgba(186, 215, 247, 0.12);
}

.spot-dashboard {
  display: grid;
  grid-template-columns: minmax(240px, 0.95fr) minmax(280px, 1fr);
  gap: 10px;
  margin: 18px 0 12px;
}

.capital-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(200, 164, 106, 0.12);
}

.capital-action-row .btn {
  min-height: 42px;
}

.spot-main-metric,
.spot-mini-row article,
.module-list article,
.metric-card {
  border: 1px solid rgba(186, 215, 247, 0.1);
  border-radius: var(--radius-card);
  background:
    linear-gradient(180deg, rgba(199, 211, 234, 0.052), rgba(186, 214, 247, 0.018)),
    rgba(5, 6, 15, 0.34);
  box-shadow:
    inset 0 1px 1px rgba(216, 236, 248, 0.12),
    inset 0 20px 42px rgba(168, 216, 245, 0.026);
}

.spot-main-metric {
  min-height: 148px;
  padding: 18px;
}

.spot-main-metric strong {
  display: block;
  margin-top: 10px;
  color: var(--color-ivory);
  font-size: clamp(38px, 8vw, 62px);
  font-weight: 500;
  line-height: 1;
}

.spot-main-metric small {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  color: var(--color-muted);
  font-size: 13px;
}

.spot-main-metric i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-emerald);
  box-shadow: 0 0 13px rgba(110, 156, 134, 0.55);
}

.spot-mini-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.spot-mini-row article {
  min-height: 148px;
  padding: 15px;
  align-content: center;
}

.spot-main-metric span,
.spot-mini-row span,
.module-list span,
.action-group > span,
.metric-card span,
.history-list span {
  display: block;
  color: var(--color-subtle);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.spot-mini-row strong,
.metric-card strong {
  display: block;
  margin-top: 8px;
  color: var(--color-ivory);
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 550;
}

.positive {
  color: var(--color-emerald) !important;
}

.module-details {
  margin-top: 14px;
  border-top: 1px solid rgba(186, 215, 247, 0.1);
}

.module-details summary,
.context-details summary {
  padding: 14px 0 0;
  color: var(--color-gold-bright);
  cursor: pointer;
  font-weight: 600;
}

.context-details summary {
  padding-top: 8px;
  color: rgba(243, 240, 232, 0.76);
}

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

.module-list article {
  padding: 14px;
}

.module-list strong {
  display: block;
  margin-bottom: 5px;
}

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

.action-group {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(186, 215, 247, 0.1);
  border-radius: var(--radius-card);
  background:
    linear-gradient(180deg, rgba(199, 211, 234, 0.04), rgba(186, 214, 247, 0.014)),
    rgba(5, 6, 15, 0.24);
}

.action-group .button-row {
  margin-top: 9px;
}

.section-heading p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--color-muted);
  font-size: 13px;
}

.danger-group {
  border-color: rgba(200, 164, 106, 0.16);
}

.context-row {
  margin-top: 12px;
}

.practice-actions {
  margin-top: 14px;
}

.morpheus-mini-badge--inline {
  width: 48px;
  height: 48px;
  padding: 5px;
  border-radius: 14px;
}

.morpheus-inline {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(110, 156, 134, 0.18);
  border-radius: 20px;
  background:
    radial-gradient(circle at 0% 0%, rgba(110, 156, 134, 0.1), transparent 42%),
    rgba(5, 6, 15, 0.36);
}

.morpheus-inline-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.morpheus-inline-copy strong {
  color: var(--color-ivory);
  font-size: 15px;
  font-weight: 600;
}

.morpheus-inline-copy span {
  color: rgba(243, 240, 232, 0.62);
  font-size: 13px;
  line-height: 1.35;
}

.practice-drawer,
.service-drawer {
  margin-top: 14px;
  border-top: 1px solid rgba(186, 215, 247, 0.1);
}

.practice-drawer summary,
.service-drawer summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 0;
  color: var(--color-ivory);
  cursor: pointer;
  list-style: none;
}

.practice-drawer summary::-webkit-details-marker,
.service-drawer summary::-webkit-details-marker {
  display: none;
}

.practice-drawer summary span {
  display: grid;
  gap: 3px;
}

.practice-drawer summary small {
  color: rgba(243, 240, 232, 0.48);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.practice-drawer summary strong,
.service-drawer summary {
  font-size: 15px;
  font-weight: 600;
}

.practice-drawer summary em {
  color: rgba(200, 164, 106, 0.8);
  font-size: 12px;
  font-style: normal;
}

.practice-drawer p {
  max-width: 720px;
  margin: 12px 0 0;
  color: rgba(243, 240, 232, 0.62);
  font-size: 13px;
  line-height: 1.45;
}

.service-drawer .action-group {
  margin-top: 12px;
  padding: 0;
  border: none;
  background: transparent;
}

body.simple-mode .detail-only,
body.simple-mode .danger-group {
  display: none;
}

body.simple-mode .action-groups {
  grid-template-columns: 1fr;
}

.morpheus-panel {
  display: grid;
  gap: 20px;
}

.morpheus-label-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.morpheus-hero-topline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.morpheus-hero-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(340px, 42%) minmax(0, 1fr);
  align-items: stretch;
  gap: 32px;
  min-height: 430px;
  padding: 30px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 18%, rgba(200, 164, 106, 0.12), transparent 34%),
    radial-gradient(circle at 88% 10%, rgba(110, 156, 134, 0.08), transparent 36%),
    linear-gradient(135deg, rgba(7, 10, 18, 0.98), rgba(18, 28, 46, 0.88));
  border: 1px solid rgba(200, 164, 106, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 28px 80px rgba(200, 164, 106, 0.035),
    0 34px 90px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.morpheus-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: soft-light;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px);
  background-size: 18px 18px, 23px 23px;
}

.morpheus-hero-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 33px;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 28%),
    linear-gradient(315deg, rgba(200, 164, 106, 0.05), transparent 32%);
}

.morpheus-hero-visual {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  align-self: stretch;
}

.morpheus-hero-copy {
  position: relative;
  z-index: 2;
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 6px 0;
  align-self: stretch;
}

.morpheus-copy-main {
  display: flex;
  flex-direction: column;
}

.morpheus-copy-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.morpheus-visual-label {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.morpheus-visual-label h2 {
  margin: 5px 0 0;
  color: var(--color-ivory);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.1;
}

.morpheus-video {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.morpheus-video video,
.morpheus-video img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #05060f;
}

.morpheus-video--large {
  flex: 1 1 auto;
  min-height: 320px;
  height: 100%;
  align-self: stretch;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(200, 164, 106, 0.16);
  background:
    radial-gradient(circle at 50% 50%, rgba(200, 164, 106, 0.08), transparent 52%),
    #05060f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -28px 60px rgba(0, 0, 0, 0.38),
    0 22px 56px rgba(0, 0, 0, 0.34);
}

.morpheus-hero-copy h1 {
  max-width: 680px;
  margin: 14px 0 14px;
  color: var(--color-ivory);
  font-size: clamp(56px, 7vw, 92px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.morpheus-hero-copy .lead {
  max-width: 620px;
  margin: 0;
  color: rgba(243, 240, 232, 0.7);
  font-size: 17px;
  line-height: 1.55;
}

.morpheus-status-grid {
  display: grid;
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid rgba(200, 164, 106, 0.14);
  border-bottom: 1px solid rgba(200, 164, 106, 0.1);
}

.morpheus-status-grid article {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(243, 240, 232, 0.055);
}

.morpheus-status-grid article:last-child {
  border-bottom: none;
}

.morpheus-status-grid span {
  color: rgba(243, 240, 232, 0.44);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.morpheus-status-grid strong {
  color: rgba(243, 240, 232, 0.88);
  font-size: 14px;
  font-weight: 500;
  text-align: right;
}

.morpheus-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0;
}

.morpheus-open-chat {
  width: fit-content;
  min-width: 220px;
}

.morpheus-chat-card {
  padding: 0;
  border-radius: 32px;
  background:
    radial-gradient(circle at 12% 0%, rgba(200, 164, 106, 0.08), transparent 34%),
    linear-gradient(135deg, rgba(10, 14, 24, 0.95), rgba(15, 23, 38, 0.82));
  border: 1px solid rgba(200, 164, 106, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 24px 64px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.morpheus-chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 0;
  padding: 22px 24px 16px;
  border-bottom: 1px solid rgba(200, 164, 106, 0.12);
}

.morpheus-chat-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.morpheus-chat-title-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.morpheus-hero-eyebrow,
.morpheus-summary-eyebrow,
.morpheus-chat-eyebrow {
  color: rgba(243, 240, 232, 0.84);
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.morpheus-hero-eyebrow {
  color: rgba(243, 240, 232, 0.88);
  font-size: 15px;
}

.morpheus-chat-head h2 {
  margin: 0;
  color: var(--color-ivory);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.1;
}

.morpheus-chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 340px;
  max-height: 520px;
  overflow-y: auto;
  padding: 22px 24px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  scroll-behavior: smooth;
}

.message.system {
  align-self: flex-end;
  max-width: 86%;
  padding: 10px 13px;
  border: none;
  background: rgba(199, 211, 234, 0.07);
}

.message.typing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 72px;
  padding: 13px 15px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: rgba(243, 240, 232, 0.62);
  animation: typingPulse 1s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.3s;
}

.morpheus-chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0 24px 12px;
}

.morpheus-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(200, 164, 106, 0.1);
  background: rgba(5, 6, 15, 0.42);
}

.morpheus-input-row input {
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(186, 215, 247, 0.12);
  border-radius: var(--radius-pill);
  outline: none;
  background: rgba(199, 211, 234, 0.055);
  color: var(--color-ivory);
  box-shadow: inset 0 1px 1px rgba(216, 236, 248, 0.1);
}

.morpheus-input-row input::placeholder {
  color: rgba(243, 240, 232, 0.42);
}

.morpheus-input-row input:focus {
  border-color: rgba(200, 164, 106, 0.32);
  box-shadow:
    inset 0 1px 1px rgba(216, 236, 248, 0.12),
    0 0 0 3px rgba(200, 164, 106, 0.08);
}

.history-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.history-list article {
  padding: 16px;
}

.history-list strong {
  display: block;
  margin-top: 6px;
  color: var(--color-ivory);
}

.history-list p,
.metric-card small {
  margin: 7px 0 0;
  color: var(--color-muted);
  font-size: 13px;
}

.history-list .report-text {
  white-space: pre-line;
}

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

.metric-card {
  min-height: 118px;
  padding: 16px;
}

.team-button {
  margin-top: 14px;
}

.mobile-actions {
  position: fixed;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  left: 12px;
  z-index: 40;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 5px;
  border-radius: var(--radius-pill);
  background:
    linear-gradient(180deg, rgba(199, 211, 234, 0.08), rgba(186, 214, 247, 0.025)),
    rgba(5, 6, 15, 0.84);
  border: 1px solid var(--color-glass-edge);
  box-shadow:
    inset 0 1px 1px rgba(216, 236, 248, 0.18),
    inset 0 18px 42px rgba(168, 216, 245, 0.045),
    0 18px 42px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.mobile-actions button {
  min-height: 42px;
  padding-inline: 10px;
  font-size: 12px;
  border: 0;
  color: rgba(199, 211, 234, 0.72);
  background: transparent;
  box-shadow: none;
}

.mobile-actions button.is-active {
  color: var(--color-pure-white);
  background:
    linear-gradient(180deg, rgba(199, 211, 234, 0.14), rgba(186, 214, 247, 0.05));
  box-shadow:
    inset 0 1px 1px rgba(216, 236, 248, 0.22),
    0 0 0 1px rgba(186, 215, 247, 0.12);
}

.confirm-modal[hidden] {
  display: none;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
}

.confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 15, 0.72);
  backdrop-filter: blur(10px);
}

.confirm-card {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(199, 211, 234, 0.07), rgba(186, 214, 247, 0.022)),
    rgba(5, 6, 15, 0.9);
}

.confirm-card h2 {
  margin: 8px 0;
  font-size: 32px;
}

.confirm-card p {
  color: var(--color-muted);
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.topbar {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  border-bottom: 1px solid rgba(200, 164, 106, 0.1);
  border-radius: 0;
}

.premium-surface,
.capital-board {
  position: relative;
  border-radius: var(--radius-master);
  background:
    radial-gradient(circle at 14% 10%, rgba(200, 164, 106, 0.1), transparent 34%),
    radial-gradient(circle at 92% 8%, rgba(110, 156, 134, 0.07), transparent 30%),
    linear-gradient(135deg, rgba(7, 10, 18, 0.94), rgba(15, 23, 38, 0.8));
  border: 1px solid rgba(200, 164, 106, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 30px 80px rgba(0, 0, 0, 0.32);
}

.capital-board::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: soft-light;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px);
  background-size: 18px 18px;
}

.capital-board > * {
  position: relative;
  z-index: 1;
}

.capital-board.is-private [data-money],
.capital-board.is-private [data-dashboard="equity"] {
  filter: blur(10px);
  user-select: none;
}

.capital-access-row span,
.status-pill {
  min-height: 34px;
  padding: 0 14px;
  color: rgba(243, 240, 232, 0.72);
  background: rgba(243, 240, 232, 0.045);
  border: 1px solid rgba(243, 240, 232, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}

.capital-value-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.capital-value-row strong {
  margin-top: 0;
}

.privacy-toggle {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(243, 240, 232, 0.1);
  background: rgba(243, 240, 232, 0.05);
  color: rgba(243, 240, 232, 0.74);
  cursor: pointer;
}

.pair-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  margin-top: 12px;
  padding: 0 11px;
  border: 1px solid rgba(200, 164, 106, 0.16);
  border-radius: var(--radius-pill);
  background: rgba(200, 164, 106, 0.07);
  color: rgba(243, 240, 232, 0.7);
  font-size: 12px;
  font-style: normal;
}

.quiet-note,
.capital-note,
.strategy-note {
  display: none;
}

.is-updating {
  position: relative;
  overflow: hidden;
}

.is-updating::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  transform: translateX(-110%);
  background: linear-gradient(90deg, transparent, rgba(243, 240, 232, 0.055), transparent);
  animation: premiumShimmer 1.1s ease both;
}

.morpheus-inline {
  margin-top: 24px;
  padding: 22px 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 8% 50%, rgba(200, 164, 106, 0.1), transparent 34%),
    linear-gradient(135deg, rgba(243, 240, 232, 0.045), rgba(243, 240, 232, 0.018));
  border-color: rgba(200, 164, 106, 0.13);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 18px 42px rgba(0, 0, 0, 0.18);
}

.morpheus-inline-copy strong {
  font-size: 24px;
  line-height: 1.1;
}

.morpheus-inline-copy span {
  font-size: 15px;
  line-height: 1.45;
}

.morpheus-mini-badge,
.morpheus-mini-mark,
.morpheus-live-mark {
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  border: none;
  border-radius: var(--radius-pill);
  overflow: visible;
  padding: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(200, 164, 106, 0.18), transparent 58%),
    rgba(5, 6, 15, 0.28);
  box-shadow:
    0 0 22px rgba(200, 164, 106, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.morpheus-mini-badge img,
.morpheus-mini-mark img,
.morpheus-live-mark img {
  width: 92%;
  height: 92%;
  object-fit: contain;
  animation: morpheusIconBreath 3.6s ease-in-out infinite;
}

.morpheus-mini-badge--inline {
  flex-basis: 62px;
  width: 62px;
  height: 62px;
  border-radius: var(--radius-pill);
}

.morpheus-mini-badge--hero {
  flex-basis: 62px;
  width: 62px;
  height: 62px;
  border-radius: var(--radius-pill);
}

.morpheus-mini-badge--chat,
.morpheus-chat-head .morpheus-mini-badge {
  flex-basis: 72px;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-pill);
}

.morpheus-chat-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(7, 10, 18, 0.96), rgba(15, 23, 38, 0.82));
  border: 1px solid rgba(200, 164, 106, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 28px 80px rgba(0, 0, 0, 0.32);
}

.morpheus-chat-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  pointer-events: none;
  opacity: 0.22;
  background:
    radial-gradient(circle at 20% 35%, rgba(200, 164, 106, 0.24), transparent 30%),
    radial-gradient(circle at 75% 25%, rgba(110, 156, 134, 0.2), transparent 32%),
    radial-gradient(circle at 45% 75%, rgba(243, 240, 232, 0.14), transparent 35%),
    radial-gradient(circle at 85% 85%, rgba(200, 164, 106, 0.1), transparent 28%);
  filter: blur(50px);
  transform: translateZ(0);
  animation: morpheusAuraShift 14s ease-in-out infinite alternate;
}

.morpheus-chat-card > * {
  position: relative;
  z-index: 2;
}

.morpheus-chat-head {
  align-items: center;
  padding: 26px 28px 22px;
  background:
    radial-gradient(circle at 12% 20%, rgba(200, 164, 106, 0.13), transparent 36%),
    radial-gradient(circle at 88% 0%, rgba(110, 156, 134, 0.08), transparent 34%),
    linear-gradient(135deg, rgba(8, 12, 22, 0.94), rgba(15, 23, 38, 0.74));
}

.morpheus-chat-eyebrow {
  color: rgba(200, 164, 106, 0.72);
  font-size: 11px;
  letter-spacing: 0.15em;
  font-weight: 700;
}

.morpheus-chat-head h2 {
  margin: 4px 0 0;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.morpheus-chat {
  gap: 16px;
  min-height: 400px;
  max-height: 580px;
  padding: 28px;
}

.message {
  max-width: min(78%, 700px);
  padding: 14px 18px;
  border-radius: 24px;
  animation: messageIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.message.morpheus {
  color: rgba(243, 240, 232, 0.92);
  background: linear-gradient(135deg, rgba(243, 240, 232, 0.08), rgba(243, 240, 232, 0.03));
  border: 1px solid rgba(243, 240, 232, 0.06);
  border-bottom-left-radius: 6px;
}

.message.user {
  background: linear-gradient(135deg, rgba(200, 164, 106, 0.2), rgba(200, 164, 106, 0.08));
  border: 1px solid rgba(200, 164, 106, 0.14);
  border-bottom-right-radius: 6px;
}

.message p {
  font-size: 15px;
  line-height: 1.55;
}

.morpheus-input-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 28px 26px;
  background: linear-gradient(180deg, transparent, rgba(5, 6, 15, 0.35));
  border-top: 1px solid rgba(200, 164, 106, 0.11);
}

.morpheus-input-row input {
  min-height: 48px;
  padding: 0 22px;
  border-color: rgba(243, 240, 232, 0.12);
  background: rgba(5, 6, 15, 0.55);
  font-size: 15px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.morpheus-chat-suggestions {
  gap: 10px;
  padding: 0 28px 16px;
}

.market-context-card {
  margin-top: 28px;
  padding: 28px;
  background:
    radial-gradient(circle at 14% 0%, rgba(200, 164, 106, 0.08), transparent 34%),
    linear-gradient(135deg, rgba(7, 10, 18, 0.94), rgba(15, 23, 38, 0.78));
}

.market-context-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.market-context-head h2,
.section-head h2 {
  margin: 8px 0 4px;
  color: var(--color-ivory);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 500;
}

.market-context-head p {
  margin: 0;
  color: rgba(243, 240, 232, 0.56);
  font-size: 13px;
}

.timeframe-switcher {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: rgba(243, 240, 232, 0.045);
  border: 1px solid rgba(243, 240, 232, 0.08);
}

.timeframe-switcher button {
  min-width: 48px;
  min-height: 34px;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: rgba(243, 240, 232, 0.58);
  font-weight: 700;
  cursor: pointer;
}

.timeframe-switcher button.is-active {
  color: #0f1726;
  background: linear-gradient(180deg, rgba(243, 240, 232, 0.86), rgba(200, 164, 106, 0.86));
}

.market-chart-shell {
  position: relative;
  height: 320px;
  min-height: 320px;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(200, 164, 106, 0.06), transparent 38%),
    rgba(5, 6, 15, 0.48);
  border: 1px solid rgba(243, 240, 232, 0.06);
}

.market-chart,
.market-chart-fallback {
  width: 100%;
  height: 100%;
}

.market-chart-loader {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  color: rgba(243, 240, 232, 0.54);
  background: rgba(5, 6, 15, 0.32);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.market-chart-shell.is-loading .market-chart-loader {
  opacity: 1;
}

.market-chart-shell.is-dimmed .market-chart {
  opacity: 0.58;
  filter: blur(2px);
  transition: opacity 0.22s ease, filter 0.22s ease;
}

.market-context-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: rgba(243, 240, 232, 0.46);
  font-size: 12px;
}

.trade-history {
  margin-top: 28px;
  padding: 28px;
}

.trade-ledger {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(243, 240, 232, 0.07);
  border-radius: 20px;
}

.trade-day {
  padding: 13px 16px;
  color: rgba(243, 240, 232, 0.5);
  background: rgba(243, 240, 232, 0.035);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.trade-row {
  display: grid;
  grid-template-columns: 80px 120px 80px 110px 140px 1fr 90px;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border-top: 1px solid rgba(243, 240, 232, 0.055);
  color: rgba(243, 240, 232, 0.7);
  font-size: 13px;
}

.trade-action--buy {
  color: rgba(110, 156, 134, 0.95);
}

.trade-action--sell {
  color: rgba(185, 130, 107, 0.95);
}

.trade-result {
  color: var(--color-ivory);
  text-align: right;
}

.trade-result--muted,
.trade-status {
  color: rgba(243, 240, 232, 0.48);
}

.trade-status {
  text-align: right;
}

@media (max-width: 760px) {
  .market-context-card,
  .trade-history {
    padding: 20px;
  }

  .market-context-head {
    flex-direction: column;
  }

  .market-chart-shell {
    height: 240px;
    min-height: 240px;
  }

  .trade-row {
    grid-template-columns: 1fr 1fr;
  }

  .morpheus-input-row {
    display: grid;
    grid-template-columns: 1fr;
    padding: 14px 16px 18px;
  }

  .morpheus-chat {
    min-height: 300px;
    padding: 18px;
  }
}

@keyframes premiumShimmer {
  to {
    transform: translateX(110%);
  }
}

@keyframes morpheusIconBreath {
  0%,
  100% {
    filter: drop-shadow(0 0 0 rgba(200, 164, 106, 0));
    transform: scale(0.96);
    opacity: 0.88;
  }
  50% {
    filter: drop-shadow(0 0 14px rgba(200, 164, 106, 0.28));
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes morpheusAuraShift {
  0% {
    transform: translate3d(-3%, -2%, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate3d(3%, 2%, 0) scale(1.08) rotate(2deg);
  }
  100% {
    transform: translate3d(1%, -4%, 0) scale(1.02) rotate(-1deg);
  }
}

@keyframes statusPulse {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

@keyframes splashGlow {
  0%,
  100% {
    transform: scale(0.985);
    box-shadow:
      0 0 32px rgba(200, 164, 106, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  50% {
    transform: scale(1);
    box-shadow:
      0 0 58px rgba(200, 164, 106, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panelReveal {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.992);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes messageIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes typingPulse {
  0%,
  80%,
  100% {
    opacity: 0.28;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

[data-tooltip] {
  position: relative;
}

@media (hover: hover) {
  [data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    z-index: 100;
    width: max-content;
    max-width: min(240px, 82vw);
    padding: 8px 10px;
    border: 1px solid rgba(186, 215, 247, 0.14);
    border-radius: 10px;
    background: rgba(5, 6, 15, 0.96);
    color: rgba(216, 236, 248, 0.92);
    box-shadow:
      inset 0 1px 1px rgba(216, 236, 248, 0.14),
      0 14px 32px rgba(0, 0, 0, 0.36);
    font-size: 12px;
    line-height: 1.35;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  [data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@media (max-width: 900px) {
  .entry-flow {
    padding: 14px;
  }

  .strategy-choice-grid {
    grid-template-columns: 1fr;
  }

  .strategy-choice {
    min-height: 220px;
  }

  .overview-hero,
  .action-groups {
    grid-template-columns: 1fr;
  }

  .capital-action-row,
  .morpheus-inline {
    display: grid;
    grid-template-columns: 1fr;
  }

  .morpheus-inline {
    align-items: start;
  }

  .morpheus-hero-card {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 18px;
    border-radius: 28px;
    gap: 22px;
  }

  .morpheus-hero-visual,
  .morpheus-hero-copy {
    grid-column: 1;
  }

  .morpheus-hero-visual {
    grid-row: 1;
  }

  .morpheus-hero-copy {
    grid-row: 2;
  }

  .capital-access-row {
    gap: 6px;
  }

  .morpheus-hero-copy h1 {
    font-size: clamp(48px, 16vw, 76px);
  }

  .morpheus-hero-copy .lead {
    font-size: 15px;
  }

  .morpheus-status-grid article {
    display: grid;
    gap: 4px;
  }

  .morpheus-status-grid strong {
    text-align: left;
  }

  .morpheus-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .morpheus-video--large {
    min-height: 220px;
    height: 220px;
    border-radius: 22px;
  }

  .morpheus-hero-copy {
    height: auto;
    justify-content: flex-start;
  }

  .morpheus-status-grid article {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .morpheus-chat-card {
    border-radius: 24px;
  }

  .morpheus-chat-head {
    padding: 18px 18px 12px;
  }

  .morpheus-chat {
    min-height: 300px;
    max-height: 420px;
    padding: 16px 18px;
  }

  .message {
    max-width: 92%;
  }

  .morpheus-input-row {
    grid-template-columns: 1fr;
    padding: 12px 14px 16px;
  }

  .morpheus-chat-suggestions {
    padding-inline: 18px;
  }

  .spot-dashboard {
    grid-template-columns: 1fr;
  }

  .spot-mini-row,
  .module-list,
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .app-shell {
    padding-inline: 10px;
  }

  .topbar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .topbar > .status-chip {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .brand-copy strong {
    font-size: 25px;
  }

  .brand-logo-wrap,
  .brand-mark {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .premium-tabs {
    display: none;
  }

  .app-shell {
    padding-bottom: 92px;
  }

  .intro-card,
  .morpheus-mini,
  .spot-card,
  .control-card,
  .context-card,
  .section-title {
    padding: 17px;
  }

  .spot-mini-row,
  .module-list,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .spot-main-metric,
  .spot-mini-row article {
    min-height: auto;
  }

  .button-row {
    gap: 7px;
  }

  .morpheus-live-mark,
  .morpheus-live-icon {
    flex-basis: 26px;
    width: 26px;
    height: 26px;
  }

  .morpheus-live-mark img,
  .morpheus-live-icon img {
    transform: scale(0.82);
  }

  .morpheus-live-mark--chat,
  .morpheus-live-icon--chat {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  .morpheus-live-mark--loader,
  .morpheus-live-icon--loader,
  .morpheus-identity--mini .morpheus-live-icon {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
  }

  .morpheus-identity {
    gap: 12px;
  }

  .morpheus-identity-copy h2 {
    font-size: 28px;
  }

  .mobile-actions {
    display: grid;
  }
}

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

  .morpheus-video video {
    display: none;
  }

  .morpheus-video {
    background:
      linear-gradient(rgba(5, 6, 15, 0.22), rgba(5, 6, 15, 0.22)),
      url("../assets/morpheus/large/morpheus-large-poster.png") center / cover no-repeat,
      #05060f;
  }
}

/* Premium dashboard navigation and capital board overrides. */
:root {
  --sidebar-collapsed: 76px;
  --sidebar-expanded: 248px;
  --dk-blue: #5b8def;
  --dk-blue-soft: rgba(91, 141, 239, 0.12);
  --dk-text: #252b36;
  --dk-muted-light: #7a8190;
  --dk-shadow-soft: 0 18px 48px rgba(28, 39, 55, 0.08);
}

.premium-tabs[hidden] {
  display: none !important;
}

.app-shell.app-main {
  width: min(1240px, calc(100vw - var(--sidebar-collapsed)));
  max-width: calc(100vw - var(--sidebar-collapsed));
  margin: 0 0 0 var(--sidebar-collapsed);
  padding: 18px clamp(18px, 3.4vw, 44px) 108px;
  transition:
    width 240ms ease,
    max-width 240ms ease,
    margin-left 240ms ease;
}

body.sidebar-expanded .app-shell.app-main {
  width: min(1240px, calc(100vw - var(--sidebar-expanded)));
  max-width: calc(100vw - var(--sidebar-expanded));
  margin-left: var(--sidebar-expanded);
}

.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 70;
  width: var(--sidebar-collapsed);
  padding: 14px 10px;
  overflow: visible;
  background:
    radial-gradient(circle at 50% 0%, rgba(200, 164, 106, 0.12), transparent 42%),
    rgba(8, 13, 22, 0.78);
  border-right: 1px solid rgba(200, 164, 106, 0.12);
  box-shadow: 14px 0 42px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  transition:
    width 240ms ease,
    background 240ms ease,
    box-shadow 240ms ease;
}

.app-sidebar.is-expanded {
  width: var(--sidebar-expanded);
}

.sidebar-toggle,
.sidebar-nav-item {
  width: 100%;
  border: 1px solid transparent;
  color: var(--color-muted);
  cursor: pointer;
  background: transparent;
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    color 0.22s ease;
}

.sidebar-toggle {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  border-radius: 18px;
  background: rgba(243, 240, 232, 0.045);
  border-color: rgba(243, 240, 232, 0.08);
}

.app-sidebar.is-expanded .sidebar-toggle {
  margin-inline: 0;
}

.sidebar-toggle:hover,
.sidebar-nav-item:hover {
  transform: translateY(-1px);
  color: var(--color-ivory);
  background: rgba(243, 240, 232, 0.065);
  border-color: rgba(200, 164, 106, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 28px rgba(0, 0, 0, 0.16);
}

.sidebar-toggle-icon {
  font-size: 20px;
  line-height: 1;
}

.sidebar-nav {
  display: grid;
  gap: 9px;
}

.sidebar-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  padding: 10px 12px;
  border-radius: 18px;
}

.app-sidebar.is-expanded .sidebar-nav-item {
  justify-content: flex-start;
  gap: 12px;
}

.sidebar-nav-item.is-active,
.sidebar-nav-item[aria-current="page"] {
  color: var(--color-ivory);
  background:
    radial-gradient(circle at 50% 0%, rgba(200, 164, 106, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(243, 240, 232, 0.12), rgba(243, 240, 232, 0.045));
  border-color: rgba(200, 164, 106, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 16px 38px rgba(0, 0, 0, 0.18);
}

.sidebar-nav-item.is-active::before,
.sidebar-nav-item[aria-current="page"]::before {
  content: "";
  width: 3px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--color-gold), var(--dk-blue));
}

.sidebar-nav-icon {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  overflow: hidden;
  color: var(--color-gold);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  background: rgba(243, 240, 232, 0.06);
}

.sidebar-nav-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sidebar-nav-item--morpheus .sidebar-nav-icon img {
  transform: scale(1.18);
}

.sidebar-nav-label {
  width: 0;
  overflow: hidden;
  opacity: 0;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  transition:
    opacity 180ms ease,
    width 180ms ease;
}

.app-sidebar.is-expanded .sidebar-nav-label {
  width: auto;
  opacity: 1;
}

.app-sidebar:not(.is-expanded) .sidebar-nav-item:hover::after {
  content: attr(aria-label);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  z-index: 90;
  transform: translateY(-50%);
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--color-ivory);
  background: rgba(5, 6, 15, 0.88);
  border: 1px solid rgba(200, 164, 106, 0.18);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
  white-space: nowrap;
  pointer-events: none;
}

.topbar.app-header {
  position: static;
  top: auto;
  min-height: 76px;
  margin-bottom: 26px;
  padding: 0 0 18px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(200, 164, 106, 0.12);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.brand-accent {
  color: var(--dk-blue) !important;
  font-weight: 700;
}

.spot-dashboard {
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.35fr);
}

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

.spot-metric-grid article {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.spot-metric-grid article small,
.capital-master-lines {
  color: rgba(243, 240, 232, 0.56);
  font-size: 12px;
  line-height: 1.42;
}

.capital-master-lines {
  display: grid;
  gap: 6px;
  margin-top: 18px;
}

.capital-master-lines b {
  color: var(--color-gold);
  font-weight: 700;
}

.capital-profit-notice {
  width: fit-content;
  margin: 12px 0 0;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--color-gold);
  background: rgba(200, 164, 106, 0.1);
  border: 1px solid rgba(200, 164, 106, 0.2);
  font-size: 13px;
}

.capitalize-profit-button {
  position: relative;
  overflow: hidden;
}

.capitalize-profit-button::after,
.open-chat-button::after,
.morpheus-capital-button::after,
.morpheus-academy-button::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform: translateX(-120%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  animation: softButtonShimmer 4.8s ease-in-out infinite;
}

.morpheus-thinking-panel {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 28px 0;
  padding: 14px 16px;
  border-radius: 24px;
  color: rgba(243, 240, 232, 0.86);
  background:
    radial-gradient(circle at 0% 0%, rgba(200, 164, 106, 0.16), transparent 38%),
    rgba(5, 6, 15, 0.42);
  border: 1px solid rgba(200, 164, 106, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: messageIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.morpheus-thinking-panel[hidden] {
  display: none !important;
}

.morpheus-thinking-panel strong {
  display: block;
  margin-bottom: 4px;
  color: var(--color-ivory);
}

.morpheus-thinking-panel p {
  margin: 0;
  color: rgba(243, 240, 232, 0.6);
  font-size: 13px;
}

.morpheus-mini-badge--loader,
.morpheus-mini-badge--academy {
  flex-basis: 54px;
  width: 54px;
  height: 54px;
}

.academy-overlay[hidden] {
  display: none !important;
}

.academy-overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 22px;
}

.academy-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 15, 0.68);
  backdrop-filter: blur(16px);
}

.academy-card {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  max-height: min(92vh, 920px);
  overflow: auto;
  padding: clamp(20px, 3vw, 32px);
  background:
    radial-gradient(circle at 12% 0%, rgba(91, 141, 239, 0.14), transparent 34%),
    radial-gradient(circle at 92% 12%, rgba(200, 164, 106, 0.14), transparent 34%),
    rgba(5, 6, 15, 0.88);
}

.academy-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.academy-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.academy-hero h1 {
  margin: 6px 0 10px;
  font-size: clamp(38px, 7vw, 70px);
  line-height: 0.95;
}

.academy-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--color-muted);
}

.academy-chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  max-height: 360px;
  overflow: auto;
  padding: 18px;
  border-radius: 24px;
  background: rgba(5, 6, 15, 0.36);
  border: 1px solid rgba(243, 240, 232, 0.08);
}

.academy-suggestions {
  padding: 16px 0;
}

.academy-input-row {
  padding: 0;
  border-top: 0;
}

body.theme-light {
  --dk-bg: #f4f7fb;
  --dk-surface: rgba(255, 255, 255, 0.82);
  --dk-border: rgba(205, 214, 226, 0.72);
  --dk-text: #252b36;
  --dk-muted-light: #7a8190;
}

body.theme-light .app-sidebar {
  background:
    radial-gradient(circle at 50% 0%, rgba(91, 141, 239, 0.12), transparent 42%),
    rgba(248, 251, 255, 0.86);
  border-right-color: rgba(205, 214, 226, 0.68);
  box-shadow: 12px 0 40px rgba(28, 39, 55, 0.07);
}

body.theme-light .sidebar-toggle,
body.theme-light .sidebar-nav-item {
  color: var(--text-secondary);
}

body.theme-light .sidebar-toggle,
body.theme-light .sidebar-nav-icon {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(205, 214, 226, 0.56);
}

body.theme-light .sidebar-toggle:hover,
body.theme-light .sidebar-nav-item:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(201, 168, 93, 0.24);
  box-shadow:
    0 12px 28px rgba(26, 38, 54, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

body.theme-light .sidebar-nav-item.is-active,
body.theme-light .sidebar-nav-item[aria-current="page"] {
  color: var(--text-main);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 253, 0.86));
  border-color: rgba(201, 168, 93, 0.34);
  box-shadow:
    0 16px 38px rgba(26, 38, 54, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.75) inset;
}

body.theme-light .topbar.app-header {
  padding: 0 0 20px;
  border: 0;
  border-bottom: 1px solid rgba(205, 214, 226, 0.72);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.theme-light .status-chip {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(205, 214, 226, 0.72);
  color: var(--text-secondary);
  box-shadow: 0 12px 28px rgba(28, 39, 55, 0.06);
}

body.theme-light .spot-metric-grid article small,
body.theme-light .capital-master-lines,
body.theme-light .morpheus-thinking-panel p {
  color: var(--text-muted);
}

body.theme-light .capital-master-lines b {
  color: #9a7435;
}

body.theme-light .capital-profit-notice {
  color: #806032;
  background: rgba(255, 247, 228, 0.86);
  border-color: rgba(200, 164, 106, 0.3);
}

body.theme-light .morpheus-chat-card {
  background:
    radial-gradient(circle at 15% 0%, rgba(91, 141, 239, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(238, 245, 255, 0.82));
  border-color: rgba(205, 214, 226, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 28px 80px rgba(28, 68, 120, 0.12);
}

body.theme-light .morpheus-thinking-panel,
body.theme-light .academy-card,
body.theme-light .academy-chat {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(205, 214, 226, 0.72);
}

body.theme-light .morpheus-thinking-panel strong,
body.theme-light .academy-hero h1 {
  color: var(--text-main);
}

@keyframes softButtonShimmer {
  0%,
  46% {
    opacity: 0;
    transform: translateX(-120%);
  }
  62% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(120%);
  }
}

@media (max-width: 860px) {
  .app-sidebar {
    display: none;
  }

  .app-shell.app-main,
  body.sidebar-expanded .app-shell.app-main {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    padding-inline: 12px;
    padding-bottom: 96px;
  }

  .mobile-actions {
    display: grid;
  }

  .spot-dashboard,
  .spot-metric-grid {
    grid-template-columns: 1fr;
  }

  .topbar.app-header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .topbar.app-header > .status-chip,
  .topbar.app-header > .theme-toggle-btn {
    grid-column: auto;
  }
}
.dashboard-refresh-retry {
  align-self: flex-start;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--accent, #5b8def);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.dashboard-refresh-retry:hover,
.dashboard-refresh-retry:focus-visible {
  color: var(--text, #252b36);
  text-decoration: underline;
}

body.is-dashboard-refreshing [data-dashboard="observedCapital"] {
  font-size: clamp(1.05rem, 4vw, 1.35rem);
  letter-spacing: 0;
}

@media (hover: none), (pointer: coarse) {
  .dashboard-refresh-retry {
    min-height: 32px;
  }
}

.manager-crm-panel[hidden] {
  display: none !important;
}

.manager-strategy-diagnostics {
  margin-block: 24px;
  padding-block: 20px;
  border-block: 1px solid var(--border, rgba(205, 214, 226, 0.35));
}

.manager-strategy-diagnostics header {
  margin-bottom: 16px;
}

.manager-strategy-diagnostics h3 {
  margin: 4px 0 0;
  font-size: 16px;
}

.manager-strategy-diagnostics__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.manager-strategy-diagnostics__grid article {
  min-width: 0;
  padding: 10px 14px;
  border-right: 1px solid var(--border, rgba(205, 214, 226, 0.28));
}

.manager-strategy-diagnostics__grid article:nth-child(3n) {
  border-right: 0;
}

.manager-strategy-diagnostics__grid span,
.manager-strategy-diagnostics__grid strong {
  display: block;
}

.manager-strategy-diagnostics__grid span {
  margin-bottom: 5px;
  color: var(--muted, #7a8190);
  font-size: 11px;
}

.manager-strategy-diagnostics__grid strong {
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 650;
}

.manager-strategy-diagnostics[data-worker="running"] [data-strategy-diagnostic="worker"] {
  color: #39a96b;
}

@media (max-width: 720px) {
  .manager-strategy-diagnostics__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .manager-strategy-diagnostics__grid article:nth-child(3n) {
    border-right: 1px solid var(--border, rgba(205, 214, 226, 0.28));
  }

  .manager-strategy-diagnostics__grid article:nth-child(2n) {
    border-right: 0;
  }
}

.entry-auth-error {
  max-width: 560px;
  margin: 20px auto 0;
  padding: 12px 16px;
  border: 1px solid rgba(190, 106, 106, 0.28);
  border-radius: 8px;
  background: rgba(190, 106, 106, 0.08);
  color: var(--text-muted, #aeb7c6);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.entry-auth-action {
  display: inline-flex;
  width: auto;
  min-height: 44px;
  margin: 16px auto 0;
  text-decoration: none;
}

.entry-browser-notice {
  max-width: 560px;
  margin: 22px auto 0;
  padding: 14px 18px;
  border: 1px solid rgba(45, 212, 191, 0.22);
  border-radius: 8px;
  background: rgba(45, 212, 191, 0.06);
  color: var(--text-muted, #aeb7c6);
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}

.entry-browser-actions {
  display: flex;
  width: min(560px, 100%);
  margin: 18px auto 0;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
}

.entry-browser-actions .entry-auth-action {
  flex: 1 1 0;
  margin: 0;
  justify-content: center;
}

.entry-auth-secondary {
  border-color: rgba(212, 182, 111, 0.24);
}

@media (max-width: 560px) {
  .entry-browser-actions {
    flex-direction: column;
  }
}
