@import url('assets/vendor-local/fa6661dad0526f53261d.css');

:root {
  --bg: #07100f;
  --surface: #0b1514;
  --surface-2: #101c1b;
  --surface-3: #142220;
  --line: rgba(208, 235, 226, 0.1);
  --line-bright: rgba(104, 243, 196, 0.26);
  --text: #f2f7f5;
  --muted: #899a95;
  --muted-2: #65746f;
  --mint: #69efbf;
  --mint-2: #30dca2;
  --blue: #52b6ff;
  --danger: #ff8f85;
  --radius: 26px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(48, 220, 162, 0.08), transparent 34%),
    linear-gradient(180deg, #07100f 0%, #060b0b 100%);
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow-x: hidden;
}

button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

.ambient {
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .08;
  pointer-events: none;
}
.ambient-one { top: 16%; left: -240px; background: var(--mint); }
.ambient-two { top: 52%; right: -280px; background: var(--blue); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 12px max(24px, calc((100vw - 1360px) / 2));
  background: rgba(7, 16, 15, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(22px);
}

.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 48px;
  height: 48px;
  padding: 3px;
  border: 1px solid rgba(105, 239, 191, .18);
  border-radius: 15px;
  background: #030605;
  box-shadow: inset 0 0 18px rgba(105,239,191,.05), 0 0 28px rgba(105,239,191,.05);
  overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; display: block; object-fit: cover; }
.brand-copy { display: flex; flex-direction: column; gap: 3px; }
.brand-copy strong { display: inline-flex; align-items: center; gap: 7px; font-family: Manrope, sans-serif; font-size: 17px; letter-spacing: -.03em; }
.brand-copy em { color: var(--mint); font-style: normal; font-size: 11px; vertical-align: top; margin-left: 2px; }
.brand-copy small { color: var(--muted); font-size: 11px; }
.mobile-new-badge { padding: 3px 5px; border: 1px solid rgba(105,239,191,.3); border-radius: 999px; color: var(--mint); font-size: 7px; line-height: 1; letter-spacing: .08em; }

.topbar-actions { display: flex; align-items: center; gap: 16px; }
.progress-pill {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 10px;
  align-items: center;
  min-width: 160px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.progress-pill b { justify-self: end; color: var(--text); font-size: 11px; }
.progress-pill i { grid-column: 1/-1; height: 2px; margin-top: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.progress-pill i span { display: block; width: 0; height: 100%; background: var(--mint); box-shadow: 0 0 10px var(--mint); transition: width .5s ease; }

.language-switcher { display: flex; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.language-switcher button {
  width: 42px;
  height: 32px;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: .25s ease;
}
.language-switcher button.active { color: #07100f; background: var(--mint); }

.page-shell { width: min(1360px, calc(100% - 48px)); margin: 0 auto; }
.hero-copy { padding: 94px 0 56px; max-width: 930px; }
.eyebrow, .mini-label {
  color: var(--mint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 25px; }
.eyebrow > span:first-child { width: 28px; height: 1px; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.hero-copy h1 {
  margin: 0 0 27px;
  font-family: Manrope, sans-serif;
  font-size: clamp(48px, 7.4vw, 104px);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.065em;
}
.hero-copy p { max-width: 690px; margin: 0; color: var(--muted); font-size: clamp(16px, 2vw, 19px); line-height: 1.65; }
.hero-metrics { display: flex; gap: 52px; margin-top: 44px; }
.hero-metrics div { display: flex; flex-direction: column; gap: 5px; }
.hero-metrics b { font-family: Manrope, sans-serif; font-size: 22px; font-weight: 500; }
.hero-metrics span { color: var(--muted-2); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }

.experience-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.chat-card, .rail-card {
  border: 1px solid var(--line);
  background: rgba(11, 21, 20, .9);
  box-shadow: var(--shadow);
}
.chat-card { min-height: 790px; border-radius: var(--radius); overflow: hidden; }
.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(16,28,27,.65);
}
.model-identity { display: flex; align-items: center; gap: 12px; }
.model-identity img { width: 43px; height: 43px; border-radius: 13px; object-fit: cover; background: #030605; }
.model-identity div { display: flex; flex-direction: column; gap: 4px; }
.model-identity strong { font-size: 13px; }
.model-identity span { color: var(--muted); font-size: 11px; }
.reset-button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 11px; background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; transition: .2s; }
.reset-button:hover { border-color: var(--line-bright); color: var(--text); }
.reset-button svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.chat-stage { min-height: 710px; padding: 30px clamp(18px, 4vw, 48px) 44px; }
.message-group { display: flex; gap: 13px; margin: 0 0 24px; opacity: 0; transform: translateY(12px); animation: message-in .5s ease forwards; }
.message-group.user { justify-content: flex-end; }
.message-avatar { flex: 0 0 32px; width: 32px; height: 32px; margin-top: 3px; padding: 2px; border-radius: 10px; border: 1px solid var(--line-bright); object-fit: cover; background: #030605; }
.message-bubble { max-width: 650px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 4px 18px 18px 18px; background: var(--surface-2); color: #dbe6e2; font-size: 14px; line-height: 1.65; }
.message-bubble strong { color: var(--text); }
.message-bubble p { margin: 0 0 10px; }
.message-bubble p:last-child { margin-bottom: 0; }
.user .message-bubble { border-color: rgba(105,239,191,.2); border-radius: 18px 4px 18px 18px; background: rgba(42, 97, 78, .32); color: #e5fff6; }

.typing-bubble { display: flex; align-items: center; gap: 5px; min-width: 61px; min-height: 44px; padding: 15px 18px; }
.typing-bubble i { width: 5px; height: 5px; border-radius: 50%; background: var(--mint); animation: typing 1.2s infinite; }
.typing-bubble i:nth-child(2) { animation-delay: .15s; }
.typing-bubble i:nth-child(3) { animation-delay: .3s; }

.option-panel { margin: -3px 0 32px 45px; opacity: 0; animation: message-in .5s .12s ease forwards; }
.option-label { display: block; margin: 0 0 11px; color: var(--muted-2); font-size: 10px; text-transform: uppercase; letter-spacing: .13em; }
.options-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.choice-button {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 13px 45px 13px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.018);
  text-align: left;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.choice-button:hover { transform: translateY(-2px); border-color: var(--line-bright); background: rgba(105,239,191,.055); }
.choice-button span { font-size: 12px; line-height: 1.35; }
.choice-button small { position: absolute; right: 14px; width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--mint); }
.choice-button.selected { border-color: var(--mint); background: rgba(105,239,191,.09); }
.choice-button.selected small { color: #07100f; background: var(--mint); border-color: var(--mint); }
.continue-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 13px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--mint);
  color: #07100f;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s;
}
.continue-button:disabled { opacity: .3; cursor: not-allowed; }
.continue-button:not(:disabled):hover { background: #8af6d1; transform: translateY(-1px); }

.analysis-card { margin: 0 0 27px 45px; border: 1px solid rgba(105,239,191,.14); border-radius: 16px; background: rgba(5,11,10,.72); overflow: hidden; opacity: 0; animation: message-in .45s ease forwards; }
.analysis-summary { display: flex; align-items: center; gap: 13px; padding: 15px 16px; cursor: pointer; list-style: none; }
.analysis-summary::-webkit-details-marker { display: none; }
.analysis-orb { position: relative; flex: 0 0 28px; width: 28px; height: 28px; border: 1px solid rgba(105,239,191,.25); border-radius: 50%; }
.analysis-orb::before { content: ''; position: absolute; inset: 5px; border: 2px solid transparent; border-top-color: var(--mint); border-right-color: var(--mint); border-radius: 50%; animation: spin 1s linear infinite; }
.analysis-card.complete .analysis-orb::before {
  content: '✓';
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--mint);
  font-size: 10px;
  animation: none;
}
.analysis-title { min-width: 0; flex: 1; }
.analysis-title strong { display: block; margin-bottom: 3px; font-size: 11px; color: var(--mint); }
.analysis-live-line { display: block; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.analysis-chevron { width: 16px; color: var(--muted); transition: transform .2s; }
.analysis-card[open] .analysis-chevron { transform: rotate(180deg); }
.analysis-log { padding: 0 17px 15px 56px; color: var(--muted-2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; line-height: 1.9; }
.analysis-log div::before { content: '↳'; margin-right: 8px; color: rgba(105,239,191,.4); }

.visual-card { margin: 0 0 28px 45px; border: 1px solid var(--line); border-radius: 18px; background: rgba(16,28,27,.76); overflow: hidden; opacity: 0; animation: message-in .5s ease forwards; }
.visual-card-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 0; }
.visual-card-head span { color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .1em; }
.visual-card-head b { color: var(--mint); font-size: 14px; }
.horizon-visual { padding: 12px 18px 16px; }
.horizon-dashboard { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(265px, .62fr); gap: 14px; }
.iso-chart-panel, .scenario-readout { border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.025); }
.iso-chart-panel { position: relative; min-width: 0; padding: 13px 15px 9px; overflow: hidden; }
.iso-chart-label { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.iso-chart-label span, .iso-chart-label small, .readout-kicker { display: block; color: var(--muted-2); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.iso-chart-label strong { display: block; margin-top: 5px; color: var(--text); font-size: 16px; }
.iso-chart-label small { padding: 4px 7px; border: 1px solid var(--line); border-radius: 999px; }
.iso-chart { width: 100%; height: auto; aspect-ratio: 10 / 3; display: block; overflow: visible; }
.iso-y-axis path { fill: none; stroke: rgba(105,239,191,.08); stroke-width: 1; stroke-dasharray: 4 6; }
.iso-y-axis text { fill: var(--muted-2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.floor-grid polygon { fill: rgba(105,239,191,.035); stroke: rgba(105,239,191,.11); }
.floor-grid path { fill: none; stroke: rgba(105,239,191,.07); stroke-width: 1; }
.iso-bar { transform-box: fill-box; transform-origin: center bottom; animation: bar-rise .72s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--bar-delay); }
.iso-bar.history .bar-front { fill: url(#barFrontHistory); }
.iso-bar.history .bar-side { fill: #96634d; }
.iso-bar.history .bar-top { fill: #f4d9c7; }
.iso-bar.future .bar-front { fill: url(#barFrontFuture); }
.iso-bar.future .bar-side { fill: #1d5a48; }
.iso-bar.future .bar-top { fill: #a7e4ce; }
.bar-value { fill: var(--text); font-family: Manrope, sans-serif; font-size: 14px; font-weight: 700; }
.bar-year { fill: var(--muted-2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; letter-spacing: .04em; }
.trajectory-glow, .trajectory { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.trajectory-glow { stroke: rgba(105,239,191,.32); stroke-width: 8; filter: url(#lineGlow); }
.trajectory { stroke: var(--mint); stroke-width: 2.5; stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 1.7s .35s ease forwards; }
.trajectory-node { fill: #fff; stroke: #27765e; stroke-width: 2; opacity: 0; animation: node-in .35s ease forwards; animation-delay: 1.3s; }
.iso-chart-foot { display: flex; gap: 22px; margin-top: -3px; color: var(--muted); font-size: 14px; }
.iso-chart-foot span { display: flex; align-items: center; gap: 6px; }
.iso-chart-foot i { width: 15px; height: 3px; border-radius: 3px; background: #c98c6d; }
.iso-chart-foot span:nth-child(2) i { background: #2f8268; }
.chart-diagnostics { position: absolute; right: 15px; bottom: 13px; left: 15px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.chart-diagnostics div { min-width: 0; padding: 13px 12px 4px; border-right: 1px solid var(--line); }
.chart-diagnostics div:last-child { border-right: 0; }
.chart-diagnostics span { display: block; color: var(--muted); font-size: 14px; line-height: 1.25; }
.chart-diagnostics strong { display: block; margin-top: 5px; color: var(--text); font-family: Manrope, sans-serif; font-size: 18px; font-weight: 600; }
.scenario-readout { padding: 15px; background: linear-gradient(155deg, rgba(105,239,191,.08), rgba(255,255,255,.015) 58%); }
.readout-hero { padding: 15px 0 13px; border-bottom: 1px solid var(--line); }
.readout-hero small, .readout-pair small, .readout-range small { display: block; color: var(--muted); font-size: 14px; line-height: 1.3; text-transform: uppercase; letter-spacing: .05em; }
.readout-hero strong { display: block; margin: 5px 0 2px; color: var(--mint); font-family: Manrope, sans-serif; font-size: 37px; font-weight: 500; line-height: 1; letter-spacing: -.05em; }
.readout-hero em { color: var(--muted-2); font-size: 14px; font-style: normal; }
.readout-range { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.readout-range strong { color: var(--text); font-family: Manrope, sans-serif; font-size: 18px; white-space: nowrap; }
.readout-range i { color: var(--muted-2); font-style: normal; }
.readout-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.readout-pair > div { min-width: 0; padding: 7px 0; }
.readout-pair strong { display: block; margin-top: 5px; color: var(--text); font-size: 18px; }
.volatility-readout { padding-top: 12px; }
.volatility-readout > span, .volatility-readout > b { font-size: 14px; }
.volatility-readout > span { color: var(--muted); text-transform: uppercase; }
.volatility-readout > b { float: right; color: var(--mint); }
.volatility-readout > i { display: block; height: 4px; margin-top: 8px; overflow: hidden; border-radius: 5px; background: rgba(255,255,255,.06); }
.volatility-readout > i em { display: block; width: 58%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #d69a79, var(--mint)); }
.recovery-readout { display: flex; justify-content: space-between; gap: 10px; padding-top: 13px; color: var(--muted); font-size: 14px; }
.recovery-readout b { color: var(--text); }
.scenario-readout > p { margin: 12px 0 0; color: var(--muted-2); font-size: 12px; line-height: 1.5; }
.horizon-insights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 13px; }
.horizon-insights article { display: flex; gap: 9px; min-height: 58px; padding: 10px; border-top: 1px solid var(--line); }
.horizon-insights article > span { color: var(--mint); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
.horizon-insights strong, .horizon-insights small { display: block; }
.horizon-insights strong { margin-bottom: 5px; color: var(--text); font-size: 14px; }
.horizon-insights small { color: var(--muted); font-size: 14px; line-height: 1.45; }

@keyframes bar-rise { from { opacity: 0; transform: scaleY(.06); } to { opacity: 1; transform: scaleY(1); } }
@keyframes node-in { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px 12px 13px; }
.news-item { min-height: 132px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.018); }
.news-item .news-top { display: flex; justify-content: space-between; gap: 8px; color: var(--muted-2); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.news-item h4 { margin: 15px 0 11px; font-size: 11px; line-height: 1.45; font-weight: 600; }
.news-item .micro-chart { display: block; width: 100%; height: 29px; }
.micro-chart path { fill: none; stroke: var(--mint); stroke-width: 1.5; vector-effect: non-scaling-stroke; }

.report-card { margin: 0 0 28px 45px; border: 1px solid rgba(105,239,191,.2); border-radius: 20px; background: linear-gradient(140deg, rgba(105,239,191,.08), rgba(16,28,27,.8) 42%); overflow: hidden; animation: message-in .5s ease forwards; }
.report-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 20px; border-bottom: 1px solid var(--line); }
.report-top span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .14em; }
.report-top h3 { margin: 6px 0 0; font-family: Manrope, sans-serif; font-size: 22px; font-weight: 500; }
.risk-score { display: flex; align-items: baseline; gap: 2px; color: var(--mint); font-family: Manrope, sans-serif; font-size: 27px; }
.risk-score small { color: var(--muted); font-size: 10px; }
.report-body { display: grid; grid-template-columns: 140px 1fr; gap: 22px; align-items: center; padding: 20px; }
.portfolio-donut { position: relative; width: 128px; height: 128px; border-radius: 50%; background: conic-gradient(var(--mint) 0 42%, var(--blue) 42% 68%, #9b83ff 68% 84%, #394a46 84% 100%); }
.portfolio-donut::after { content: ''; position: absolute; inset: 20px; border-radius: 50%; background: #101b1a; }
.portfolio-donut span { position: absolute; z-index: 1; inset: 0; display: grid; place-content: center; text-align: center; font-size: 9px; color: var(--muted); }
.portfolio-donut b { color: var(--text); font-size: 17px; }
.allocation-list { display: grid; gap: 10px; }
.allocation-list div { display: grid; grid-template-columns: 1fr auto; gap: 12px; font-size: 10px; color: var(--muted); }
.allocation-list i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 2px; }
.allocation-list div:nth-child(1) i { background: var(--mint); }
.allocation-list div:nth-child(2) i { background: var(--blue); }
.allocation-list div:nth-child(3) i { background: #9b83ff; }
.allocation-list div:nth-child(4) i { background: #394a46; }
.locked-lines { position: relative; padding: 0 20px 20px; }
.locked-lines div { height: 9px; margin-top: 8px; border-radius: 6px; background: rgba(255,255,255,.055); filter: blur(2px); }
.locked-lines div:nth-child(2) { width: 84%; }
.locked-badge { position: absolute; inset: 0 20px 20px; display: grid; place-content: center; color: var(--muted); font-size: 10px; backdrop-filter: blur(2px); }

.lead-form { margin: 0 0 28px 45px; padding: 20px; border: 1px solid var(--line-bright); border-radius: 20px; background: rgba(16,28,27,.9); animation: message-in .5s ease forwards; }
.form-header { margin-bottom: 18px; }
.form-header h3 { margin: 0 0 6px; font-family: Manrope, sans-serif; font-size: 21px; font-weight: 500; }
.form-header p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.field input { width: 100%; height: 47px; padding: 0 13px; color: var(--text); border: 1px solid var(--line); border-radius: 11px; outline: none; background: rgba(4,9,8,.5); font-size: 12px; transition: border-color .2s; }
.field input:focus { border-color: rgba(105,239,191,.5); }
.field input.invalid { border-color: var(--danger); }
.phone-wrap { display: flex; }
.phone-code { display: flex; align-items: center; gap: 5px; flex: 0 0 auto; padding: 0 10px; color: var(--muted); border: 1px solid var(--line); border-right: 0; border-radius: 11px 0 0 11px; background: rgba(255,255,255,.02); font-size: 11px; }
.phone-wrap input { border-radius: 0 11px 11px 0; }
.consent { display: flex; align-items: flex-start; gap: 9px; margin: 15px 0; color: var(--muted); font-size: 9px; line-height: 1.45; cursor: pointer; }
.consent input { accent-color: var(--mint); margin-top: 1px; }
.submit-button { width: 100%; min-height: 50px; border: 0; border-radius: 12px; color: #06100d; background: var(--mint); font-size: 12px; font-weight: 700; cursor: pointer; transition: .2s; }
.submit-button:hover { background: #8af6d1; }
.form-footnote { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 11px; color: var(--muted-2); font-size: 9px; }
.form-footnote svg { width: 11px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.field-error { min-height: 0; color: #b4473b; font-size: 9px; line-height: 1.35; }
.field-error:empty { display: none; }
.conversion-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 13px; }
.conversion-strip span { display: flex; align-items: center; gap: 7px; min-height: 38px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 9px; line-height: 1.25; }
.conversion-strip b { color: var(--mint); font-size: 8px; letter-spacing: .08em; }
.consultation-note { margin: 11px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.consent.invalid { color: var(--danger); }
.consent-error, .form-error { margin: -8px 0 11px; color: var(--danger); font-size: 9px; line-height: 1.4; }
.form-error { padding: 9px 11px; margin: 0 0 10px; border: 1px solid rgba(224,100,91,.28); border-radius: 9px; background: rgba(224,100,91,.08); }
.submit-button:disabled { cursor: wait; opacity: .72; }

.success-card { margin: 0 0 28px 45px; padding: 34px 20px; text-align: center; border: 1px solid var(--line-bright); border-radius: 20px; background: radial-gradient(circle at 50% 0, rgba(105,239,191,.13), transparent 60%), var(--surface-2); animation: message-in .5s ease forwards; }
.success-icon { width: 55px; height: 55px; display: grid; place-items: center; margin: 0 auto 17px; color: #07100f; background: var(--mint); border-radius: 50%; box-shadow: 0 0 32px rgba(105,239,191,.2); }
.success-icon svg { width: 24px; fill: none; stroke: currentColor; stroke-width: 2; }
.success-card h3 { margin: 0 0 9px; font-family: Manrope, sans-serif; font-size: 23px; font-weight: 500; }
.success-card p { max-width: 460px; margin: 0 auto; color: var(--muted); font-size: 12px; line-height: 1.6; }

.market-rail { display: grid; gap: 14px; }
.rail-card { border-radius: 20px; overflow: hidden; }
.market-card { padding-top: 18px; }
.rail-heading { display: flex; justify-content: space-between; align-items: center; padding: 0 18px 18px; }
.rail-heading span { font-size: 11px; font-weight: 600; }
.rail-heading small { color: var(--muted-2); font-size: 8px; text-transform: uppercase; letter-spacing: .09em; }
.index-row { display: flex; align-items: flex-end; justify-content: space-between; padding: 0 18px 8px; }
.index-row div { display: flex; flex-direction: column; gap: 4px; }
.index-row span { color: var(--muted); font-size: 9px; }
.index-row strong { font-family: Manrope, sans-serif; font-size: 22px; font-weight: 500; }
.index-row > b { padding-bottom: 2px; color: var(--mint); font-size: 11px; }
.market-chart { width: 100%; height: 126px; display: block; }
.chart-grid { stroke: rgba(255,255,255,.04); }
.chart-area { fill: url(#area); }
.chart-line { fill: none; stroke: var(--mint); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 500; stroke-dashoffset: 500; animation: draw 2s .4s ease forwards; }
.ticker-strip { overflow: hidden; padding: 11px 0; border-top: 1px solid var(--line); color: var(--muted); font-family: ui-monospace, monospace; font-size: 9px; }
.ticker-strip div { display: flex; gap: 14px; width: max-content; padding-left: 18px; animation: ticker 12s linear infinite alternate; }
.ticker-strip b { color: var(--mint); font-weight: 500; }

.insight-card { display: grid; grid-template-columns: 72px 1fr; gap: 13px; padding: 18px; }
.insight-card > .mini-label { grid-column: 1/-1; color: var(--muted-2); font-size: 8px; }
.signal-orbit { position: relative; width: 68px; height: 68px; display: grid; place-items: center; border: 1px solid rgba(105,239,191,.13); border-radius: 50%; }
.signal-orbit::after { content: ''; position: absolute; inset: 8px; border: 1px dashed rgba(105,239,191,.22); border-radius: 50%; animation: spin 12s linear infinite; }
.signal-orbit span { font-family: Manrope, sans-serif; color: var(--mint); font-size: 19px; }
.signal-orbit i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--mint); }
.signal-orbit i:nth-child(1) { top: 7px; left: 22px; }
.signal-orbit i:nth-child(2) { bottom: 12px; right: 8px; }
.signal-orbit i:nth-child(3) { bottom: 7px; left: 15px; }
.insight-card strong { display: block; margin: 5px 0 7px; font-size: 12px; }
.insight-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }

.privacy-card { display: flex; align-items: center; gap: 13px; padding: 17px 18px; }
.privacy-card svg { flex: 0 0 27px; width: 27px; fill: none; stroke: var(--mint); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.privacy-card div { display: flex; flex-direction: column; gap: 3px; }
.privacy-card strong { font-size: 11px; }
.privacy-card span { color: var(--muted); font-size: 9px; line-height: 1.4; }

.team-section { padding: 150px 0 120px; }
.section-intro { display: grid; grid-template-columns: 1.25fr .75fr; gap: 80px; align-items: end; margin-bottom: 42px; }
.section-intro h2 { margin: 15px 0 0; font-family: Manrope, sans-serif; font-size: clamp(36px, 5vw, 65px); font-weight: 500; letter-spacing: -.05em; line-height: 1.05; }
.section-intro > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.person-card { position: relative; aspect-ratio: .82; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--surface); }
.person-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgba(3,8,7,.92) 100%); }
.person-card img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75); transition: transform .6s ease, filter .6s ease; }
.person-card:hover img { transform: scale(1.025); filter: saturate(1); }
.person-overlay { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 26px; }
.person-overlay span { color: var(--mint); font-size: 9px; text-transform: uppercase; letter-spacing: .13em; }
.person-overlay h3 { margin: 7px 0 4px; font-family: Manrope, sans-serif; font-size: 24px; font-weight: 500; }
.person-overlay p { margin: 0; color: #9aaba6; font-size: 10px; }
.concept-note { margin: 13px 0 0; color: var(--muted-2); font-size: 9px; text-align: right; }

.ai-ecosystem { padding: 62px 0 68px; text-align: center; border-top: 1px solid var(--line); }
.ai-ecosystem > .mini-label { color: var(--muted); }
.model-marquee { width: 100%; margin: 39px 0 26px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent); }
.model-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.model-logo { display: inline-flex; align-items: center; gap: 10px; margin: 0 29px; color: #b5c1bd; font-family: Manrope, sans-serif; font-size: 18px; font-weight: 600; white-space: nowrap; }
.model-logo i { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-family: inherit; font-size: 13px; font-style: normal; }
.ai-ecosystem > p { margin: 0; color: var(--muted-2); font-size: 9px; }

footer { display: flex; justify-content: space-between; align-items: center; width: min(1360px, calc(100% - 48px)); min-height: 105px; margin: 0 auto; border-top: 1px solid var(--line); }
.footer-brand .brand-mark { width: 34px; height: 34px; border-radius: 11px; }
footer p { color: var(--muted-2); font-size: 9px; }

@keyframes message-in { to { opacity: 1; transform: translateY(0); } }
@keyframes typing { 0%, 70%, 100% { transform: translateY(0); opacity: .35; } 35% { transform: translateY(-4px); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ticker { to { transform: translateX(-55px); } }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 980px) {
  .experience-grid { grid-template-columns: 1fr; }
  .market-rail { grid-template-columns: 1.2fr 1fr; }
  .privacy-card { grid-column: 1/-1; }
  .section-intro { gap: 35px; }
}

@media (max-width: 720px) {
  .topbar { min-height: 70px; padding: 10px 16px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-copy small, .progress-pill { display: none; }
  .topbar-actions { gap: 8px; }
  .page-shell { width: min(100% - 24px, 1360px); }
  .hero-copy { padding: 60px 4px 37px; }
  .hero-copy h1 { font-size: clamp(43px, 13vw, 66px); }
  .hero-metrics { gap: 25px; overflow-x: auto; }
  .hero-metrics div { min-width: max-content; }
  .experience-grid { margin: 0 -12px; }
  .chat-card { min-height: 720px; border-radius: 20px; }
  .chat-head { padding: 13px 14px; }
  .reset-button span { display: none; }
  .chat-stage { min-height: 640px; padding: 24px 14px 32px; }
  .message-bubble { font-size: 13px; }
  .option-panel, .analysis-card, .visual-card, .report-card, .lead-form, .success-card { margin-left: 45px; }
  .options-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .news-item { min-height: auto; }
  .report-body { grid-template-columns: 112px 1fr; gap: 14px; padding: 16px; }
  .portfolio-donut { width: 108px; height: 108px; }
  .form-grid { grid-template-columns: 1fr; }
  .market-rail { grid-template-columns: 1fr; padding: 0 12px; }
  .privacy-card { grid-column: auto; }
  .team-section { padding: 100px 0 85px; }
  .section-intro { grid-template-columns: 1fr; gap: 20px; }
  .team-grid { grid-template-columns: 1fr; }
  .person-card { aspect-ratio: .92; }
  .person-overlay { padding: 22px; }
  .concept-note { text-align: left; line-height: 1.5; }
  footer { width: calc(100% - 24px); flex-direction: column; justify-content: center; gap: 13px; padding: 24px 0; text-align: center; }
}

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

/* Full-screen conversational application */
html,
body.app-body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
}

body.app-body {
  display: grid;
  grid-template-rows: 72px minmax(0, 1fr);
  color: #ecefed;
  background:
    radial-gradient(circle at 50% -30%, rgba(77, 224, 174, .07), transparent 42%),
    #0d0f0f;
}

.app-topbar {
  position: relative;
  inset: auto;
  min-height: 0;
  height: 72px;
  padding: 10px 24px;
  background: rgba(13, 15, 15, .94);
  border-color: rgba(255, 255, 255, .075);
  backdrop-filter: blur(20px);
}

.app-topbar .brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.app-topbar .brand-copy strong { font-size: 15px; }
.app-topbar .brand-copy small { font-size: 10px; }

.header-progress {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  grid-template-columns: auto 150px auto;
  align-items: center;
  gap: 10px;
  transform: translate(-50%, -50%);
  color: #68736f;
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.header-progress i {
  width: 150px;
  height: 2px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}

.header-progress i b {
  display: block;
  width: 0;
  height: 100%;
  background: var(--mint);
  box-shadow: 0 0 9px rgba(105, 239, 191, .6);
  transition: width .45s ease;
}

.header-progress > strong { color: #a2ada9; font-size: 9px; }

.about-button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  color: #909995;
  background: transparent;
  font-size: 10px;
  cursor: pointer;
  transition: color .2s ease;
}

.about-button:hover { color: #eef4f1; }

.header-reset {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 10px;
}

.header-reset svg { width: 14px; }

.app-topbar .language-switcher {
  padding: 3px;
  background: #171a19;
  border-radius: 10px;
}

.app-topbar .language-switcher button {
  width: 38px;
  height: 29px;
  border-radius: 8px;
}

.ai-workspace {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 48px;
}

.chat-surface {
  min-height: 0;
  width: min(900px, 100%);
  margin: 0 auto;
  overflow: hidden;
}

.chat-stage {
  height: 100%;
  min-height: 0;
  padding: 42px 34px 50px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .13) transparent;
  mask-image: linear-gradient(180deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
}

.chat-stage::-webkit-scrollbar { width: 5px; }
.chat-stage::-webkit-scrollbar-track { background: transparent; }
.chat-stage::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 8px; }

.message-group {
  width: 100%;
  max-width: none;
  gap: 14px;
  margin: 0 auto 27px;
  transform: translateY(9px);
}

.message-group.user {
  width: fit-content;
  max-width: min(76%, 620px);
  margin-right: 0;
  margin-left: auto;
}

.message-avatar {
  flex-basis: 34px;
  width: 34px;
  height: 34px;
  margin-top: 1px;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(105, 239, 191, .16);
}

.message-bubble {
  max-width: 720px;
  min-width: 0;
  padding: 4px 4px 3px;
  border: 0;
  border-radius: 0;
  color: #d7dcd9;
  background: transparent;
  font-size: 14px;
  line-height: 1.7;
}

.message-bubble > p {
  opacity: 0;
  transform: translateY(5px);
  animation: text-reveal .52s ease forwards;
}

.message-bubble > p:nth-child(2) { animation-delay: .14s; }

.user .message-bubble {
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px 18px 4px 18px;
  color: #edf2ef;
  background: #202423;
  font-size: 13px;
}

.typing-bubble {
  width: 56px;
  min-width: 56px;
  min-height: 34px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  background: #171a19;
}

.typing-bubble i { width: 4px; height: 4px; }

.option-panel {
  width: calc(100% - 48px);
  margin: -5px 0 35px 48px;
}

.option-label { margin-bottom: 10px; font-size: 9px; }

.options-grid { gap: 8px; }

.choice-button {
  min-height: 50px;
  padding: 11px 43px 11px 15px;
  border-color: rgba(255, 255, 255, .09);
  border-radius: 13px;
  background: #141716;
}

.choice-button:hover {
  transform: none;
  border-color: rgba(105, 239, 191, .42);
  background: #18201d;
}

.choice-button span { font-size: 11px; }
.choice-button small { border: 0; background: rgba(255,255,255,.035); }

.analysis-card {
  width: calc(100% - 48px);
  margin: -6px 0 28px 48px;
  border: 0;
  border-left: 1px solid rgba(105, 239, 191, .28);
  border-radius: 0 13px 13px 0;
  background: linear-gradient(90deg, rgba(105,239,191,.04), transparent 75%);
}

.analysis-summary { padding: 12px 14px; }
.analysis-orb { width: 25px; height: 25px; flex-basis: 25px; }
.analysis-title strong { font-size: 10px; }
.analysis-live-line { font-size: 9px; }
.analysis-log { padding-left: 51px; font-size: 9px; }

.visual-card,
.report-card,
.lead-form,
.success-card {
  width: calc(100% - 48px);
  margin-left: 48px;
  box-shadow: none;
}

.visual-card { background: #141817; }
.news-item { background: #111413; }

.lead-form {
  padding: 18px;
  border-color: rgba(255,255,255,.1);
  background: #141817;
}

.model-dock {
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 0 20px;
  border-top: 1px solid rgba(255,255,255,.07);
  color: #6f7874;
  background: rgba(13,15,15,.96);
  overflow: hidden;
}

.dock-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.dock-models { display: flex; align-items: center; gap: 22px; }
.dock-models span { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 600; white-space: nowrap; }
.dock-models i { color: #949e9a; font-style: normal; font-size: 9px; }
.model-dock p { margin: 0; font-size: 8px; }

.team-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  visibility: hidden;
  opacity: 0;
  transition: opacity .25s ease, visibility .25s ease;
}

.team-modal.open { visibility: visible; opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; border: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(9px); cursor: default; }

.team-panel {
  position: relative;
  width: min(870px, 100%);
  max-height: min(680px, calc(100dvh - 36px));
  padding: 26px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 22px;
  background: #131716;
  box-shadow: 0 30px 100px rgba(0,0,0,.55);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transform: translateY(12px) scale(.985);
  transition: transform .28s ease;
}
.team-panel::-webkit-scrollbar { display: none; }

.team-modal.open .team-panel { transform: translateY(0) scale(1); }
.team-panel-head { display: flex; justify-content: space-between; gap: 20px; }
.team-panel-head span { color: var(--mint); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.team-panel-head h2 { max-width: 600px; margin: 10px 0 0; font-family: Manrope, sans-serif; font-size: clamp(26px, 4vw, 42px); line-height: 1.08; letter-spacing: -.045em; font-weight: 500; }
.modal-close { flex: 0 0 35px; width: 35px; height: 35px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; color: #9aa39f; background: transparent; font-size: 22px; cursor: pointer; }
.team-panel-copy { max-width: 650px; margin: 15px 0 22px; color: #89938f; font-size: 12px; line-height: 1.6; }
.team-modal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.team-modal-grid article { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 12px; min-width: 0; padding: 10px; border: 1px solid rgba(255,255,255,.08); border-radius: 15px; background: #101312; }
.team-modal-grid img { width: 72px; height: 82px; object-fit: cover; border-radius: 11px; filter: saturate(.78); }
.team-modal-grid span { color: var(--mint); font-size: 7px; letter-spacing: .09em; text-transform: uppercase; }
.team-modal-grid h3 { margin: 5px 0 3px; font-size: 13px; }
.team-modal-grid p { margin: 0; color: #737d79; font-size: 8px; }
.team-panel .concept-note { margin-top: 12px; }

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

@media (max-width: 820px) {
  .header-progress { display: none; }
  .model-dock p, .dock-label { display: none; }
  .team-modal-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body.app-body { grid-template-rows: 64px minmax(0, 1fr); }
  .app-topbar { height: 64px; padding: 8px 12px; }
  .app-topbar .brand-mark { width: 38px; height: 38px; }
  .app-topbar .brand-copy small, .about-button { display: none; }
  .topbar-actions { gap: 6px; }
  .ai-workspace { grid-template-rows: minmax(0, 1fr) 42px; }
  .chat-stage { padding: 28px 14px 36px; mask-image: linear-gradient(180deg, transparent 0, #000 16px, #000 calc(100% - 18px), transparent 100%); }
  .message-group { gap: 11px; margin-bottom: 23px; }
  .message-avatar { width: 30px; height: 30px; flex-basis: 30px; }
  .message-bubble { max-width: calc(100vw - 70px); padding-top: 2px; font-size: 13px; line-height: 1.65; }
  .message-group.user { max-width: 84%; }
  .option-panel, .analysis-card, .visual-card, .report-card, .lead-form, .success-card { width: calc(100% - 41px); margin-left: 41px; }
  .options-grid { grid-template-columns: 1fr; }
  .choice-button { min-height: 45px; }
  .news-grid { grid-template-columns: 1fr; }
  .news-item { min-height: 0; }
  .report-body { grid-template-columns: 105px 1fr; }
  .portfolio-donut { width: 100px; height: 100px; }
  .form-grid { grid-template-columns: 1fr; }
  .horizon-visual { padding: 10px 12px 14px; }
  .horizon-dashboard { grid-template-columns: 1fr; }
  .iso-chart-panel { padding: 11px 9px 8px; }
  .iso-chart { height: 190px; aspect-ratio: auto; }
  .iso-chart-label small { display: none; }
  .scenario-readout { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; padding: 12px; }
  .readout-kicker { grid-column: 1/-1; }
  .readout-hero { padding: 10px 0 0; border: 0; }
  .readout-hero strong { font-size: 30px; }
  .readout-range { padding: 10px 0 0; border: 0; }
  .readout-pair { grid-column: 1/-1; padding: 10px 0 0; border: 0; }
  .volatility-readout, .recovery-readout, .scenario-readout > p, .horizon-insights, .chart-diagnostics { display: none; }
  .iso-chart-label span, .readout-kicker, .readout-hero small, .readout-range small, .readout-pair small { font-size: 11px; }
  .bar-value, .bar-year, .iso-y-axis text { font-size: 22px; }
  .iso-chart-foot { font-size: 11px; }
  .dock-models { width: 100%; justify-content: space-around; gap: 8px; }
  .dock-models span { font-size: 9px; }
  .dock-extra { display: none !important; }
  .team-modal { padding: 10px; }
  .team-panel { max-height: calc(100dvh - 20px); padding: 19px; border-radius: 18px; }
}

/* Warm cream product direction */
:root {
  --cream-bg: #f1e7da;
  --cream-panel: rgba(255, 251, 245, .91);
  --cream-solid: #fffaf3;
  --cream-line: rgba(68, 54, 43, .13);
  --cream-text: #2d2925;
  --cream-muted: #7c7168;
  --peach: #df9f7e;
  --peach-soft: #f2d6c4;
  --forest: #174c3c;
}

body.app-body {
  color: var(--cream-text);
  background:
    linear-gradient(90deg, rgba(247,239,228,.92) 0%, rgba(247,239,228,.76) 46%, rgba(247,239,228,.34) 100%),
    url('assets/veyra-cream-tech-bg.webp') center / cover no-repeat;
}

.app-topbar {
  background: rgba(252, 247, 239, .82);
  border-color: rgba(65, 51, 40, .12);
  box-shadow: 0 8px 28px rgba(106, 74, 50, .07);
}

.app-topbar .brand-copy strong { color: var(--cream-text); }
.app-topbar .brand-copy small { color: var(--cream-muted); }
.app-topbar .brand-copy em { color: #168867; }
.header-progress { color: #8e8176; }
.header-progress i { background: rgba(60,46,36,.1); }
.header-progress i b { background: #268b6d; box-shadow: none; }
.header-progress > strong { color: #61574f; }
.about-button { color: #746960; }
.about-button:hover { color: #2f2a26; }
.header-reset { border-color: var(--cream-line); color: #766a61; background: rgba(255,255,255,.34); }
.app-topbar .language-switcher { border-color: var(--cream-line); background: rgba(96,76,61,.08); }
.app-topbar .language-switcher button { color: #85796f; }
.app-topbar .language-switcher button.active { color: #fffaf3; background: #285f4e; }

.ai-workspace { grid-template-rows: minmax(0, 1fr) 72px; }

.chat-surface {
  width: min(1220px, calc(100% - 60px));
  height: calc(100% - 24px);
  align-self: center;
  display: grid;
  grid-template-rows: 44px minmax(0, 1fr);
  border: 1px solid rgba(73, 54, 40, .14);
  border-radius: 22px;
  background: var(--cream-panel);
  box-shadow: 0 22px 70px rgba(91, 62, 40, .16), inset 0 1px 0 rgba(255,255,255,.85);
  overflow: hidden;
  backdrop-filter: blur(22px) saturate(1.05);
}

.chat-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 17px;
  border-bottom: 1px solid var(--cream-line);
  color: #746960;
  background: rgba(244, 233, 219, .54);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.chat-chrome div { display: flex; align-items: center; gap: 8px; }
.chat-chrome i { width: 7px; height: 7px; border-radius: 50%; background: #2c8a6d; box-shadow: 0 0 0 4px rgba(44,138,109,.1); }
.chat-chrome small { color: #9b8f85; font-size: 8px; }

.chat-stage {
  padding-top: 30px;
  color: var(--cream-text);
  mask-image: linear-gradient(180deg, transparent 0, #000 20px, #000 calc(100% - 24px), transparent 100%);
  scrollbar-color: rgba(75,57,44,.18) transparent;
}

.message-avatar { background: #0d1714; box-shadow: 0 0 0 1px rgba(22,75,59,.2); }
.message-bubble { color: #39332e; }
.message-bubble strong { color: #211e1b; }
.message-bubble.streaming > p,
.message-bubble.streamed > p { opacity: 1; transform: none; animation: none; }
.stream-segment.active-stream::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -.12em;
  background: #2c7f65;
  animation: stream-cursor .65s steps(1) infinite;
}
.user .message-bubble { border-color: rgba(105,71,49,.13); color: #3c3029; background: #f1d9ca; }
.typing-bubble { border-color: var(--cream-line); background: #f6eee4; }
.typing-bubble i { background: #337b64; }

.option-label { color: #9a8d82; font-size: 14px; }
.options-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.choice-button {
  width: auto;
  min-height: 38px;
  flex: 0 1 auto;
  padding: 8px 14px;
  border: 1px solid rgba(76,58,45,.16);
  border-radius: 999px;
  color: #423a34;
  background: rgba(255,251,245,.78);
  box-shadow: 0 2px 7px rgba(79,52,32,.04);
}
.choice-button:hover { border-color: rgba(42,112,88,.38); color: #174c3c; background: #fffdf8; transform: translateY(-1px); }
.choice-button span { font-size: 14px; white-space: nowrap; }
.choice-button small { display: none; }
.choice-button.selected { border-color: #27765e; color: #174c3c; background: #e5f0e9; }
.continue-button { border-radius: 999px; color: #fffaf4; background: #285f4e; }
.continue-button:not(:disabled):hover { color: #fff; background: #174c3c; }

.analysis-card {
  border-left-color: rgba(33,116,88,.28);
  background: linear-gradient(90deg, rgba(47,136,105,.07), transparent 75%);
}
.analysis-orb { border-color: rgba(33,116,88,.25); }
.analysis-title strong, .analysis-card.complete .analysis-orb::before { color: #25785f; }
.analysis-live-line, .analysis-log { color: #857970; }
.analysis-chevron { color: #8b7e74; }

.info-inline-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: -11px 0 24px 48px;
  padding: 8px 13px;
  border: 1px solid rgba(54,104,85,.22);
  border-radius: 999px;
  color: #285f4e;
  background: rgba(255,252,247,.6);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}
.info-inline-button:hover { background: #fffdf9; }

.visual-card, .report-card, .lead-form, .success-card {
  border-color: var(--cream-line);
  color: var(--cream-text);
  background: rgba(255,250,243,.83);
}
.visual-card-head span, .form-header p, .field label, .form-footnote, .consent { color: var(--cream-muted); }
.visual-card-head b { color: #26775f; }
.iso-chart-panel, .scenario-readout { border-color: var(--cream-line); background: rgba(255,255,255,.35); }
.scenario-readout { background: linear-gradient(155deg, rgba(205,235,221,.58), rgba(255,255,255,.28) 64%); }
.iso-chart-label span, .iso-chart-label small, .readout-kicker, .bar-year, .iso-y-axis text { color: #96897e; fill: #96897e; }
.iso-chart-label strong, .bar-value, .readout-pair strong { color: var(--cream-text); fill: var(--cream-text); }
.iso-chart-label small { border-color: var(--cream-line); }
.floor-grid polygon { fill: rgba(47,130,104,.035); stroke: rgba(47,130,104,.13); }
.floor-grid path { stroke: rgba(47,130,104,.09); }
.chart-diagnostics { border-color: var(--cream-line); }
.chart-diagnostics div { border-color: var(--cream-line); }
.chart-diagnostics span { color: var(--cream-muted); }
.chart-diagnostics strong { color: var(--cream-text); }
.readout-hero, .readout-range, .readout-pair { border-color: var(--cream-line); }
.readout-hero strong, .volatility-readout > b { color: #26775f; }
.readout-hero small, .readout-pair small, .volatility-readout > span, .iso-chart-foot { color: var(--cream-muted); }
.volatility-readout > i { background: rgba(76,58,45,.09); }
.scenario-readout > p { color: #91847a; }
.recovery-readout { color: var(--cream-muted); }
.recovery-readout b, .readout-range strong { color: var(--cream-text); }
.horizon-insights strong { color: var(--cream-text); }
.horizon-insights article > span { color: #2b725b; }
.horizon-insights article { border-color: var(--cream-line); }
.horizon-insights small { color: var(--cream-muted); }
.news-item { border-color: var(--cream-line); color: #3e3731; background: rgba(244,233,220,.55); }
.micro-chart path { stroke: #2f8268; }

.evidence-hero { position: relative; height: 148px; overflow: hidden; }
.evidence-hero img { width: 100%; height: 100%; display: block; object-fit: cover; }
.evidence-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(44,34,27,.72)); }
.evidence-hero span { position: absolute; z-index: 1; left: 16px; bottom: 13px; color: #fffaf4; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.source-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; padding: 10px 12px 13px; }
.source-card { display: flex; flex-direction: column; gap: 7px; min-height: 85px; padding: 11px; border: 1px solid var(--cream-line); border-radius: 12px; color: inherit; background: rgba(255,255,255,.38); transition: .2s ease; }
.source-card:hover { border-color: rgba(39,118,94,.35); transform: translateY(-1px); }
.source-card span { color: #2b725b; font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.source-card strong { font-size: 10px; line-height: 1.35; }
.source-card small { margin-top: auto; color: #91847a; font-size: 8px; }
.source-spark { width: 100%; height: 24px; display: block; }
.source-spark path { fill: none; stroke: #2f8268; stroke-width: 1.4; vector-effect: non-scaling-stroke; }

.report-card { background: linear-gradient(140deg, rgba(235,207,188,.7), rgba(255,250,243,.92) 48%); }
.report-top { border-color: var(--cream-line); }
.report-top span, .allocation-list div, .portfolio-donut span { color: var(--cream-muted); }
.report-top h3, .portfolio-donut b { color: var(--cream-text); }
.risk-score { color: #27765e; }
.portfolio-donut::after { background: #fff8ef; }
.locked-lines div { background: rgba(76,58,45,.08); }
.locked-badge { color: var(--cream-muted); }
.field input { color: var(--cream-text); border-color: var(--cream-line); background: rgba(255,255,255,.56); }
.field input:focus { border-color: #4a947a; }
.phone-code { color: var(--cream-muted); border-color: var(--cream-line); background: rgba(255,255,255,.38); }
.submit-button { color: #fffaf4; background: #285f4e; }
.submit-button:hover { background: #174c3c; }
.conversion-strip span { border-color: var(--cream-line); color: var(--cream-muted); background: rgba(255,255,255,.32); }
.conversion-strip b { color: #2b725b; }
.consultation-note { color: var(--cream-muted); }

.model-dock {
  gap: 30px;
  min-height: 72px;
  padding: 0 28px;
  border-color: rgba(65,51,40,.12);
  color: #766a61;
  background: rgba(255,248,239,.88);
  box-shadow: 0 -10px 30px rgba(93,63,42,.06);
  backdrop-filter: blur(18px);
}
.dock-label { color: #9b8e83; font-size: 9px; }
.dock-models { gap: 30px; }
.dock-models span { color: #4e4640; font-size: 15px; }
.dock-models i { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid rgba(76,58,45,.13); border-radius: 8px; color: #285f4e; background: rgba(255,255,255,.4); font-size: 10px; }
.model-dock p { color: #9a8d82; font-size: 8px; }

.modal-backdrop { background: rgba(60,44,33,.42); }
.team-panel {
  color: var(--cream-text);
  border-color: rgba(76,58,45,.15);
  background: #fbf5ec;
  box-shadow: 0 30px 100px rgba(76,49,30,.28);
}
.team-panel-head span, .team-modal-grid span, .research-artifacts span { color: #27765e; }
.team-panel-head h2, .team-modal-grid h3, .research-artifacts h3 { color: var(--cream-text); }
.team-panel-copy, .research-artifacts p { color: var(--cream-muted); }
.modal-close { border-color: var(--cream-line); color: #766a61; }
.team-studio-hero { position: relative; height: 245px; margin-bottom: 12px; border-radius: 16px; overflow: hidden; }
.team-studio-hero img { width: 100%; height: 100%; object-fit: cover; }
.team-studio-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(42,31,25,.78)); }
.team-studio-hero div { position: absolute; z-index: 1; left: 19px; bottom: 17px; display: flex; flex-direction: column; gap: 5px; color: #fffaf3; }
.team-studio-hero span { font-size: 8px; letter-spacing: .13em; text-transform: uppercase; }
.team-studio-hero strong { font-family: Manrope,sans-serif; font-size: 18px; font-weight: 500; }
.technology-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin: 12px 0; }
.technology-strip > div { display: grid; grid-template-columns: 25px 1fr; column-gap: 8px; padding: 12px; border: 1px solid var(--cream-line); border-radius: 13px; background: rgba(255,255,255,.44); }
.technology-strip span { grid-row: 1/3; color: #b58467; font-size: 9px; }
.technology-strip strong { font-size: 10px; }
.technology-strip small { margin-top: 4px; color: var(--cream-muted); font-size: 8px; line-height: 1.4; }
.team-modal-grid article { border-color: var(--cream-line); background: rgba(255,255,255,.44); }
.team-modal-grid p { color: var(--cream-muted); }
.research-artifacts { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; align-items: center; margin-top: 12px; padding: 10px; border: 1px solid var(--cream-line); border-radius: 15px; background: rgba(255,255,255,.4); }
.research-artifacts img { width: 100%; height: 150px; object-fit: cover; border-radius: 11px; }
.research-artifacts span { font-size: 8px; letter-spacing: .11em; text-transform: uppercase; }
.research-artifacts h3 { margin: 8px 0 6px; font-size: 15px; line-height: 1.25; }
.research-artifacts p { margin: 0; font-size: 9px; line-height: 1.5; }

.founder-note {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  min-height: 225px;
  margin-top: 12px;
  border: 1px solid var(--cream-line);
  border-radius: 17px;
  background: rgba(255,255,255,.48);
  overflow: hidden;
}
.founder-note > img { width: 100%; height: 100%; min-height: 225px; display: block; object-fit: cover; object-position: center; }
.founder-note-copy { display: flex; flex-direction: column; justify-content: center; padding: 22px 24px; }
.founder-note-copy > span { color: #27765e; font-size: 8px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.founder-note blockquote {
  position: relative;
  margin: 14px 0 17px;
  color: #302a26;
  font-family: Manrope, sans-serif;
  font-size: clamp(16px, 1.55vw, 22px);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -.035em;
}
.founder-signature { display: flex; flex-direction: column; gap: 3px; }
.founder-signature strong { color: #2e2925; font-size: 11px; }
.founder-signature small { color: #7d7168; font-size: 8px; }
.founder-note-copy > p { margin: 13px 0 0; color: #a09287; font-size: 7px; line-height: 1.4; }

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

@media (max-width: 820px) {
  .source-grid, .technology-strip { grid-template-columns: 1fr; }
  .model-dock { gap: 12px; }
  .dock-models { gap: 16px; }
}

@media (max-width: 600px) {
  .ai-workspace { grid-template-rows: minmax(0, 1fr) 54px; }
  .chat-surface { width: calc(100% - 14px); height: calc(100% - 12px); border-radius: 17px; }
  .chat-chrome { padding: 0 12px; }
  .chat-chrome small { display: none; }
  .chat-stage { padding-top: 23px; }
  .choice-button { max-width: 100%; min-height: 36px; padding: 8px 12px; }
  .choice-button span { white-space: normal; }
  .info-inline-button { margin-left: 41px; }
  .source-grid { grid-template-columns: 1fr; }
  .source-card { min-height: 66px; }
  .model-dock { min-height: 54px; padding: 0 10px; }
  .dock-models { gap: 8px; }
  .dock-models span { font-size: 10px; }
  .dock-models i { width: 18px; height: 18px; }
  .technology-strip { grid-template-columns: 1fr; }
  .research-artifacts { grid-template-columns: 1fr; }
  .founder-note { grid-template-columns: 1fr; }
  .founder-note > img { height: 190px; min-height: 190px; }
  .founder-note-copy { padding: 18px; }
}

/* Enlarged brand footer with real provider marks */
.ai-workspace { grid-template-rows: minmax(0, 1fr) 132px; }

.model-dock {
  min-height: 132px;
  gap: 34px;
  padding: 0 36px;
}

.dock-label { font-size: 11px; }
.dock-models { gap: 36px; }
.dock-models span { gap: 12px; font-size: 21px; letter-spacing: -.02em; }
.dock-models i {
  width: 48px;
  height: 48px;
  padding: 9px;
  border-radius: 14px;
  background: rgba(255,255,255,.64);
  box-shadow: 0 5px 15px rgba(76,49,30,.07);
}
.dock-models i img { width: 100%; height: 100%; display: block; object-fit: contain; }
.model-dock p { font-size: 9px; }

@media (max-width: 1180px) {
  .model-dock { gap: 18px; padding: 0 20px; }
  .dock-models { gap: 22px; }
  .dock-models span { font-size: 17px; }
  .dock-models i { width: 42px; height: 42px; padding: 8px; }
  .model-dock p { display: none; }
}

@media (max-width: 820px) {
  .ai-workspace { grid-template-rows: minmax(0, 1fr) 112px; }
  .model-dock { min-height: 112px; padding: 8px 12px; }
  .dock-models {
    width: min(500px, 100%);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 14px;
  }
  .dock-models span { justify-content: flex-start; gap: 8px; font-size: 12px; }
  .dock-models i { width: 30px; height: 30px; padding: 5px; border-radius: 9px; }
  .dock-extra { display: inline-flex !important; }
}

@media (max-width: 430px) {
  .conversion-strip { grid-template-columns: 1fr; }
  .conversion-strip span { min-height: 32px; }
  .dock-models { gap: 7px 9px; }
  .dock-models span { font-size: 10px; }
  .dock-models i { width: 27px; height: 27px; }
}

/* Desktop brand rail; mobile keeps the established header layout */
.workspace-main,
.conversation-column { min-height: 0; height: 100%; }
.brand-rail,
.conversation-heading { display: none; }

.evidence-quote {
  margin: 0;
  padding: 14px 18px 4px;
  color: #5d534c;
  font-family: Manrope, sans-serif;
  font-size: 12px;
  line-height: 1.55;
}
.evidence-quote sup { color: #28745d; font-size: 8px; font-weight: 700; }
.source-card { cursor: default; }
.source-card span sup { color: #9b715a; font-size: 7px; }

@media (min-width: 821px) {
  body.app-body {
    display: block;
    position: relative;
  }

  .app-topbar {
    position: absolute;
    z-index: 45;
    top: 18px;
    right: 28px;
    width: calc(100% - 392px);
    height: 58px;
    min-height: 58px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .app-topbar .brand,
  .app-topbar .about-button { display: none; }

  .app-topbar .topbar-actions { margin-left: auto; }
  .app-topbar .header-progress {
    left: auto;
    right: 142px;
    transform: translateY(-50%);
  }

  .ai-workspace {
    height: 100dvh;
    grid-template-rows: minmax(0, 1fr) 132px;
  }

  .workspace-main {
    display: grid;
    grid-template-columns: 332px minmax(0, 1fr);
    gap: 26px;
    padding: 22px 30px 14px;
  }

  .brand-rail {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 9px 17px 14px 3px;
  }

  .brand-rail-mark {
    width: 118px;
    height: 118px;
    display: block;
    margin-bottom: 16px;
    border: 1px solid rgba(88,62,43,.12);
    border-radius: 29px;
    object-fit: cover;
    box-shadow: 0 18px 42px rgba(103,67,40,.14), inset 0 1px 0 rgba(255,255,255,.85);
  }

  .launch-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    padding: 5px 9px 5px 5px;
    border: 1px solid rgba(207,133,95,.2);
    border-radius: 999px;
    color: #795b49;
    background: rgba(255,248,238,.6);
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
  }
  .launch-label span {
    padding: 4px 6px;
    border-radius: 999px;
    color: #fffaf4;
    background: linear-gradient(115deg, #ce805c, #e5aa86);
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(190,112,76,.2);
  }
  .launch-label b { font-weight: 700; }

  .brand-rail-label {
    color: #28745d;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
  }

  .brand-rail h2 {
    margin: 13px 0 14px;
    color: #2c2824;
    font-family: Manrope, sans-serif;
    font-size: clamp(22px, 1.8vw, 30px);
    font-weight: 500;
    line-height: 1.13;
    letter-spacing: -.045em;
  }

  .brand-rail > p {
    margin: 0;
    color: #756a61;
    font-size: 14px;
    line-height: 1.58;
  }

  .rail-capabilities {
    width: 100%;
    display: grid;
    gap: 8px;
    margin: 15px 0;
  }

  .rail-capabilities span {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #4f4741;
    font-size: 14px;
  }

  .rail-capabilities span::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d99d7c;
    box-shadow: 0 0 0 4px rgba(217,157,124,.12);
  }

  .rail-about-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 10px 13px;
    border: 1px solid rgba(45,115,91,.2);
    border-radius: 999px;
    color: #285f4e;
    background: rgba(255,250,244,.55);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
  }
  .rail-about-button b { font-weight: 500; }

  .conversation-column {
    display: grid;
    grid-template-rows: 82px minmax(0, 1fr);
  }

  .conversation-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 4px 13px;
  }

  .conversation-heading > div { display: grid; grid-template-columns: auto auto; align-items: end; column-gap: 11px; }
  .conversation-heading > div > span {
    grid-column: 1/-1;
    margin-bottom: 5px;
    color: #9a7965;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
  }
  .conversation-heading h1 {
    margin: 0;
    color: #27231f;
    font-family: Manrope, sans-serif;
    font-size: clamp(27px, 2.2vw, 38px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -.055em;
  }
  .conversation-heading h1 em { margin-left: .13em; color: #2b725b; font-style: normal; }
  .model-new-badge {
    display: inline-block;
    margin-left: 9px;
    padding: 4px 7px;
    border-radius: 999px;
    color: #fffaf4;
    background: linear-gradient(115deg, #c77956, #e0a17c);
    box-shadow: 0 5px 16px rgba(190,112,76,.2);
    font-size: 7px;
    font-style: normal;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .1em;
    vertical-align: top;
  }
  .conversation-heading p { margin: 0 0 2px; color: #80746b; font-size: 10px; }

  .conversation-column .chat-surface {
    width: 100%;
    height: 100%;
    align-self: stretch;
  }
}

@media (min-width: 821px) and (max-height: 820px) {
  .workspace-main { grid-template-columns: 285px minmax(0, 1fr); gap: 20px; padding-top: 13px; }
  .brand-rail-mark { width: 92px; height: 92px; margin-bottom: 14px; border-radius: 23px; }
  .brand-rail h2 { margin: 10px 0; font-size: 22px; }
  .brand-rail > p { font-size: 10px; line-height: 1.5; }
  .rail-capabilities { margin: 14px 0; }
  .conversation-column { grid-template-rows: 70px minmax(0,1fr); }
}

/* Unified conversational typography and rhythm */
.message-group {
  gap: 14px;
  margin-bottom: 24px;
}

.message-bubble,
.user .message-bubble {
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.58;
  letter-spacing: 0;
  text-transform: none;
}

.message-bubble strong {
  font-weight: 600;
}

.message-bubble p {
  margin-bottom: 12px;
}

.analysis-card {
  margin: 0 0 24px 48px;
}

.analysis-summary {
  gap: 12px;
  padding: 14px 16px;
}

.analysis-orb {
  width: 26px;
  height: 26px;
  flex-basis: 26px;
}

.analysis-title strong,
.analysis-live-line,
.analysis-log {
  font-family: "DM Sans", sans-serif;
  letter-spacing: 0;
  text-transform: none;
}

.analysis-title strong {
  margin-bottom: 3px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.analysis-live-line {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.analysis-elapsed {
  flex: 0 0 auto;
  min-width: 36px;
  color: #7f746b;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: right;
}

.analysis-log {
  padding: 0 17px 16px 54px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

.option-panel {
  margin-top: 0;
  margin-bottom: 28px;
}

.option-label,
.visual-card-head span,
.visual-card-head b,
.iso-chart-label span,
.iso-chart-label small,
.readout-kicker {
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  line-height: 1.3;
}

.option-label,
.visual-card-head span,
.iso-chart-label span,
.readout-kicker {
  font-weight: 500;
  letter-spacing: .07em;
}

.visual-card {
  margin-bottom: 24px;
}

.visual-card-head {
  padding: 16px 18px 0;
}

.iso-chart-label strong {
  margin-top: 5px;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
}

.conversation-heading p {
  margin-bottom: 1px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
}

@media (min-width: 821px) and (max-height: 820px) {
  .horizon-dashboard {
    grid-template-columns: minmax(0, 1.55fr) minmax(345px, .95fr);
    align-items: start;
  }

  .iso-chart-panel {
    align-self: start;
  }

  .chart-diagnostics {
    position: static;
    margin-top: 14px;
  }

  .scenario-readout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
    align-self: start;
    padding: 14px;
  }

  .readout-kicker,
  .readout-pair,
  .volatility-readout {
    grid-column: 1 / -1;
  }

  .readout-hero,
  .readout-range {
    padding: 11px 0;
    border-bottom: 0;
  }

  .readout-pair {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--cream-line);
  }

  .readout-pair > div {
    padding: 4px 0;
  }

  .volatility-readout {
    padding-top: 10px;
  }

  .recovery-readout {
    grid-column: 1 / -1;
    padding-top: 10px;
  }

  .scenario-readout > p {
    display: none;
  }
}

@media (min-width: 821px) and (max-width: 1500px) and (max-height: 820px) {
  .horizon-dashboard {
    grid-template-columns: 1fr;
  }

  .scenario-readout {
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px 18px;
  }

  .readout-kicker {
    grid-column: 1 / -1;
  }

  .readout-hero {
    grid-column: 1;
  }

  .readout-range {
    grid-column: 2;
    align-items: flex-start;
    flex-direction: column;
  }

  .readout-pair {
    grid-column: 3 / 5;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px 0;
    border-top: 0;
    border-bottom: 0;
  }

  .volatility-readout {
    grid-column: 1 / 4;
    padding-top: 8px;
  }

  .recovery-readout {
    grid-column: 4;
    align-self: end;
    padding-top: 8px;
  }
}

@media (max-width: 600px) {
  body.app-body {
    grid-template-rows: 72px minmax(0, 1fr);
  }

  .app-topbar {
    height: 72px;
    padding: 9px 12px;
    border-bottom: 1px solid rgba(71, 52, 39, .13);
    background: rgba(255, 249, 241, .94);
    box-shadow: 0 10px 30px rgba(101, 70, 48, .09);
    backdrop-filter: blur(18px);
  }

  .app-topbar .brand {
    min-width: 0;
    gap: 10px;
  }

  .app-topbar .brand-mark {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    padding: 0;
    border: 1px solid rgba(187, 127, 88, .16);
    border-radius: 14px;
    background: #f9ead8;
    box-shadow: 0 7px 18px rgba(115, 76, 49, .12);
  }

  .app-topbar .brand-copy {
    min-width: 0;
    gap: 4px;
  }

  .app-topbar .brand-copy strong {
    gap: 5px;
    font-size: 17px;
    line-height: 1;
  }

  .app-topbar .brand-copy em {
    margin-left: 1px;
    font-size: 10px;
    font-weight: 700;
  }

  .app-topbar .brand-copy small {
    display: block;
    max-width: 148px;
    overflow: hidden;
    color: #897a6f;
    font-size: 10px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-new-badge {
    margin-left: 2px;
    padding: 4px 7px;
    border: 0;
    color: #fffaf4;
    background: linear-gradient(115deg, #ce805c, #e7aa83);
    box-shadow: 0 4px 11px rgba(190, 112, 76, .25);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .06em;
  }

  .app-topbar .topbar-actions {
    flex: 0 0 auto;
    gap: 5px;
    margin-left: auto;
  }

  .app-topbar .header-reset {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: rgba(255, 255, 255, .56);
  }

  .app-topbar .language-switcher {
    padding: 3px;
    border-radius: 11px;
    background: rgba(91, 69, 54, .07);
  }

  .app-topbar .language-switcher button {
    width: 34px;
    height: 30px;
    border-radius: 8px;
  }

  .message-bubble,
  .user .message-bubble {
    font-size: 14px;
    line-height: 1.58;
  }

  .analysis-card {
    margin-left: 41px;
  }

  .analysis-summary {
    padding: 12px 13px;
  }

  .analysis-title strong,
  .analysis-live-line,
  .analysis-log {
    font-size: 13px;
  }

  .analysis-elapsed {
    min-width: 32px;
    font-size: 11px;
  }

  .option-label,
  .visual-card-head span,
  .visual-card-head b,
  .iso-chart-label span,
  .readout-kicker {
    font-size: 12px;
  }

  .iso-chart-label strong {
    font-size: 14px;
  }
}

@media (max-width: 370px) {
  .app-topbar .brand-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .app-topbar .brand-copy small,
  .app-topbar .header-reset {
    display: none;
  }
}
