:root {
  --ink: #18152b;
  --muted: #716d82;
  --line: #e4e0ed;
  --paper: #f7f6fa;
  --white: #ffffff;
  --violet: #6d55d9;
  --violet-dark: #302268;
  --violet-soft: #eeeaff;
  --lime: #d9ff78;
  --positive: #2e8f69;
  --negative: #cf5e65;
  --shadow: 0 24px 70px rgba(41, 32, 78, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; opacity: 0 !important; pointer-events: none !important; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.ambient { position: fixed; inset: auto; border-radius: 50%; filter: blur(90px); pointer-events: none; opacity: .4; z-index: -1; }
.ambient-one { width: 460px; height: 460px; background: #cfc4ff; top: 30px; right: -180px; }
.ambient-two { width: 350px; height: 350px; background: #e9ffae; top: 620px; left: -220px; opacity: .25; }

.site-header {
  width: min(1180px, calc(100% - 44px));
  height: 82px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(86, 75, 124, .15);
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--ink); color: white; font-size: 20px; }
.brand-mark svg { width: 18px; fill: white; }
.brand strong { display: block; font-size: 15px; letter-spacing: -.02em; }
.brand small { color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.site-header nav { display: flex; gap: 4px; font-size: 12px; color: #4b465b; }
.site-header nav button { border: 0; border-radius: 999px; padding: 9px 12px; color: #625d70; background: transparent; cursor: pointer; white-space: nowrap; }
.site-header nav button:hover { color: var(--violet); background: rgba(109,85,217,.06); }
.site-header nav button.active { color: white; background: var(--ink); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.language-picker select { max-width: 120px; padding: 8px 26px 8px 10px; border: 1px solid var(--line); border-radius: 999px; color: #5c5867; background: rgba(255,255,255,.62); outline: none; font-size: 10px; }
.status { font-size: 11px; color: #5c5867; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; background: rgba(255,255,255,.55); }
.status i, .live-dot::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #57b786; margin-right: 7px; box-shadow: 0 0 0 4px rgba(87,183,134,.12); }

main { overflow: hidden; }
.hero { width: min(1180px, calc(100% - 44px)); min-height: 600px; margin: auto; display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 30px; padding: 58px 0 68px; }
.eyebrow { color: var(--violet); font-weight: 750; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { margin: 18px 0 22px; font-family: Georgia, "Noto Serif SC", serif; font-size: clamp(50px, 6vw, 82px); line-height: .98; font-weight: 500; letter-spacing: -.055em; }
.hero h1 em { color: var(--violet); font-style: italic; }
.hero-copy > p { max-width: 570px; color: var(--muted); font-size: 16px; line-height: 1.85; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 28px; border: 0; border-radius: 999px; padding: 14px 22px; font-size: 13px; font-weight: 650; cursor: pointer; }
.button.primary { background: var(--ink); color: white; box-shadow: 0 15px 35px rgba(24,21,43,.18); }
.button.primary:hover { transform: translateY(-2px); }
.button.ghost { border: 1px solid var(--line); background: rgba(255,255,255,.5); }
.disclaimer { font-size: 10px !important; opacity: .76; margin-top: 20px; }

.hero-visual { height: 470px; position: relative; display: grid; place-items: center; }
.eth-gem { position: relative; z-index: 3; width: 168px; filter: drop-shadow(0 40px 45px rgba(70,51,150,.28)); animation: float 6s ease-in-out infinite; }
.eth-gem svg { width: 100%; overflow: visible; }
.orbital { position: absolute; border-radius: 50%; border: 1px solid rgba(106,87,190,.16); }
.orbital-a { width: 360px; height: 360px; background: radial-gradient(circle, rgba(255,255,255,.9), rgba(226,219,255,.25) 60%, transparent 70%); }
.orbital-b { width: 450px; height: 260px; transform: rotate(-18deg); border-style: dashed; }
.metric-pill { position: absolute; z-index: 4; min-width: 132px; padding: 11px 14px; border-radius: 13px; background: rgba(255,255,255,.83); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.8); box-shadow: 0 12px 32px rgba(61,46,120,.12); }
.metric-pill span { display: block; color: var(--muted); font-size: 9px; margin-bottom: 4px; }
.metric-pill strong { font-family: Georgia, serif; font-size: 19px; }
.pill-a { left: 3%; top: 27%; }
.pill-b { right: 2%; top: 19%; }
.pill-c { right: 4%; bottom: 18%; }
@keyframes float { 50% { transform: translateY(-14px) rotate(1deg); } }

.ticker-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(4,1fr); padding: 0 max(calc((100vw - 1180px)/2), 22px); background: rgba(255,255,255,.5); }
.ticker-strip div { padding: 23px 25px; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; border-right: 1px solid var(--line); }
.ticker-strip div:first-child { border-left: 1px solid var(--line); }
.ticker-strip span { grid-row: span 2; color: #aaa5b7; font: 12px Georgia, serif; }
.ticker-strip strong { font: 16px Georgia, serif; }
.ticker-strip small { color: var(--muted); font-size: 10px; margin-top: 4px; }

.market-pulse, .insight-hub { width: min(1180px, calc(100% - 44px)); margin: auto; padding: 100px 0; }
.data-status { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); background: rgba(255,255,255,.7); font-size: 9px; }
.data-status i { width: 6px; height: 6px; border-radius: 50%; background: #e0a94e; box-shadow: 0 0 0 4px rgba(224,169,78,.12); }
.data-status.live i { background: #57b786; box-shadow: 0 0 0 4px rgba(87,183,134,.12); }
.data-status.fallback i { background: #e07878; box-shadow: 0 0 0 4px rgba(224,120,120,.12); }
.market-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 22px; }
.terminal-card { min-width: 0; border-radius: 20px; border: 1px solid var(--line); background: rgba(255,255,255,.82); box-shadow: var(--shadow); padding: 25px 27px 18px; }
.terminal-top { display: flex; justify-content: space-between; align-items: start; gap: 20px; min-height: 72px; }
.terminal-top span { display: block; color: var(--muted); font-size: 9px; letter-spacing: .08em; }
.terminal-top strong { display: block; margin-top: 7px; font: 34px Georgia, serif; letter-spacing: -.035em; }
.terminal-top small { display: block; color: var(--muted); margin-top: 3px; font-size: 8px; }
.market-change { border-radius: 99px; padding: 8px 11px; background: #ebf7f0; color: var(--positive); font-size: 11px; font-weight: 700; white-space: nowrap; }
.market-change.negative { color: var(--negative); background: #fff0f1; }
.line-chart { width: 100%; height: 260px; overflow: visible; }
.chart-grid-line { stroke: #ebe8f0; stroke-width: 1; }
.chart-axis-text { fill: #938e9e; font: 9px Inter, sans-serif; }
.price-area { fill: url(#priceAreaGradient); }
.price-line { fill: none; stroke: var(--violet); stroke-width: 3; vector-effect: non-scaling-stroke; }
.price-point { fill: var(--white); stroke: var(--violet); stroke-width: 3; }
.chart-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 8px; }
.chart-foot a { color: var(--violet); font-weight: 700; }
.flow-summary { text-align: right; }
.flow-summary strong { font-size: 21px; }
.flow-chart { height: 260px; display: flex; align-items: stretch; gap: 6px; padding: 22px 0 8px; border-bottom: 1px solid var(--line); }
.flow-column { flex: 1; display: grid; grid-template-rows: 1fr 1fr 18px; position: relative; min-width: 0; }
.flow-half { position: relative; }
.flow-bar { position: absolute; left: 13%; right: 13%; border-radius: 5px 5px 2px 2px; min-height: 2px; background: #73c39d; }
.flow-half.top .flow-bar { bottom: 0; }
.flow-half.bottom .flow-bar { top: 0; background: #e37a82; border-radius: 2px 2px 5px 5px; }
.flow-date { color: #9a95a4; font-size: 7px; text-align: center; padding-top: 6px; white-space: nowrap; }
.source-notice { margin: 14px 0 0; padding: 11px 14px; border: 1px solid #ead7aa; background: #fff8e9; border-radius: 10px; color: #725b2b; font-size: 9px; }

.forecast-section, .forum-section { color: white; padding: 95px max(calc((100vw - 1180px)/2), 22px); background: linear-gradient(145deg, #18132d 0%, #241b48 72%, #332565 100%); }
.forecast-section .section-heading.light h2, .forum-section .section-heading.light h2 { color: white; }
.forecast-section .section-heading.light p, .forum-section .section-heading.light p { color: #a59dbf; max-width: 680px; font-size: 12px; line-height: 1.7; }
.horizon-control { color: #aaa2c2; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.horizon-tabs { display: flex; gap: 5px; margin-top: 8px; padding: 4px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(8,5,20,.36); }
.horizon-tabs button { min-width: 66px; padding: 9px 14px; border: 0; border-radius: 999px; color: #aaa2c2; background: transparent; font: 700 10px Inter, sans-serif; cursor: pointer; transition: color .2s ease, background .2s ease, box-shadow .2s ease; }
.horizon-tabs button:hover { color: white; }
.horizon-tabs button.active { color: #1c1731; background: var(--lime); box-shadow: 0 5px 20px rgba(217,255,120,.2); }
.forecast-grid { display: grid; grid-template-columns: minmax(0,1.5fr) 330px; gap: 22px; align-items: stretch; }
.forecast-canvas-card { min-width: 0; padding: 20px 20px 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 19px; background: rgba(11,8,25,.35); }
.forecast-legend { display: flex; gap: 18px; justify-content: end; color: #a9a2bc; font-size: 8px; }
.forecast-legend span { display: inline-flex; align-items: center; gap: 6px; }
.forecast-legend i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.actual-dot { background: white; }
.forecast-dot { background: var(--lime); }
.heat-dot { background: linear-gradient(135deg, #ffcb6b, #8d6eff); box-shadow: 0 0 8px rgba(169,133,255,.8); }
.forecast-chart { width: 100%; min-height: 390px; cursor: crosshair; touch-action: none; }
.forecast-plot-bg { fill: rgba(7,4,18,.24); }
.forecast-heat { fill: url(#forecastHeatGradient); pointer-events: none; mix-blend-mode: screen; }
.forecast-grid-line { stroke: rgba(255,255,255,.1); stroke-width: 1; }
.forecast-axis-text { fill: #968eae; font: 9px Inter, sans-serif; }
.forecast-path { fill: none; stroke: var(--lime); stroke-width: 3; vector-effect: non-scaling-stroke; }
.forecast-area { fill: url(#forecastAreaGradient); }
.forecast-point { fill: var(--lime); stroke: #1c1731; stroke-width: 4; cursor: grab; transition: r .15s ease, filter .15s ease; }
.forecast-point:hover { r: 8px; filter: drop-shadow(0 0 7px rgba(217,255,120,.65)); }
.forecast-chart.dragging, .forecast-chart.dragging .forecast-point { cursor: grabbing; }
.forecast-chart.dragging .forecast-point[data-dragging="true"] { r: 9px; filter: drop-shadow(0 0 10px rgba(217,255,120,.8)); }
.forecast-baseline { stroke: rgba(255,255,255,.55); stroke-width: 1.5; stroke-dasharray: 6 6; }
.forecast-baseline-label { fill: white; font: 9px Inter, sans-serif; }
.forecast-meta { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: -3px 4px 9px 62px; color: #aaa2c2; font-size: 8px; }
.heat-scale { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.heat-scale i, .heat-scale b { width: 14px; height: 5px; border-radius: 99px; background: rgba(141,110,255,.32); }
.heat-scale b { background: linear-gradient(90deg, #8d6eff, #ffcb6b); box-shadow: 0 0 7px rgba(255,203,107,.35); }
.chart-instruction { color: #7f7798; font-size: 8px; text-align: center; }
.forecast-editor { padding: 24px; border-radius: 19px; background: white; color: var(--ink); }
.forecast-editor h3, .new-topic-card h3 { margin: 7px 0 4px; font: 24px Georgia, serif; }
.forecast-editor-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.clear-points-button { padding: 7px 10px; border: 1px solid #ead7da; border-radius: 999px; color: var(--negative); background: #fff7f8; font: 700 8px Inter, sans-serif; cursor: pointer; }
.clear-points-button:hover:not(:disabled) { border-color: var(--negative); background: #fff0f2; }
.clear-points-button:disabled { opacity: .38; cursor: not-allowed; }
.forecast-editor > div > p { margin: 0 0 20px; color: var(--muted); font-size: 9px; }
.forecast-editor label, .new-topic-card label { display: block; margin-top: 13px; color: var(--muted); font-size: 9px; }
.forecast-editor input, .new-topic-card input, .new-topic-card textarea { width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fbfafd; outline: none; }
.forecast-editor input:focus, .new-topic-card input:focus, .new-topic-card textarea:focus { border-color: #9686df; box-shadow: 0 0 0 3px rgba(109,85,217,.08); }
.forecast-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.full-button { width: 100%; border: 0; cursor: pointer; margin-top: 14px; }
.forecast-points { margin: 15px 0; max-height: 174px; overflow: auto; }
.forecast-point-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; border-top: 1px solid var(--line); padding: 9px 2px; font-size: 9px; }
.forecast-point-row strong { font: 15px Georgia, serif; }
.forecast-point-row button { width: 25px; height: 25px; border: 1px solid var(--line); border-radius: 50%; color: var(--negative); background: white; cursor: pointer; }
.save-button { width: 100%; padding: 11px; border: 1px solid var(--ink); border-radius: 99px; background: transparent; color: var(--ink); cursor: pointer; font-size: 10px; font-weight: 700; }
.empty-state { margin: 20px 0; color: var(--muted); font-size: 10px; text-align: center; }
.form-status { min-height: 14px; margin: 9px 0 0; color: var(--positive); font-size: 8px; line-height: 1.6; }
.form-status.error { color: var(--negative); }

.workspace, .methodology { width: min(1180px, calc(100% - 44px)); margin: auto; padding: 100px 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 35px; }
.section-heading h2 { font: 500 clamp(33px, 4vw, 48px)/1.1 Georgia, "Noto Serif SC", serif; margin: 9px 0 0; letter-spacing: -.035em; }
.section-heading p { color: var(--muted); margin: 12px 0 0; }
.scenario-switch { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: white; }
.scenario-switch button { border: 0; background: transparent; color: var(--muted); padding: 9px 17px; border-radius: 999px; cursor: pointer; font-size: 12px; }
.scenario-switch button.active { background: var(--ink); color: white; }

.model-grid { display: grid; grid-template-columns: 390px 1fr; gap: 24px; align-items: start; }
.control-panel, .valuation-card, .submodel-card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 16px 55px rgba(55,43,96,.06); }
.control-panel { padding: 22px; max-height: 860px; overflow: auto; scrollbar-width: thin; }
.panel-title, .card-heading { display: flex; align-items: center; justify-content: space-between; }
.panel-title h3, .card-heading h3 { margin: 0; font: 22px Georgia, serif; }
.panel-title p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.icon-button { border: 1px solid var(--line); background: white; width: 34px; height: 34px; border-radius: 50%; color: var(--violet); cursor: pointer; }
details { border-top: 1px solid var(--line); margin-top: 17px; padding-top: 14px; }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; color: var(--violet); margin-right: 9px; }
details[open] summary::before { content: "−"; }
summary > span:last-child { margin-left: auto; color: #aaa5b7; font-size: 9px; font-weight: 500; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 13px; }
.fields label { color: var(--muted); font-size: 9px; }
.fields label > span { float: right; color: #b3afbc; font-size: 8px; }
.fields input { margin-top: 5px; width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 10px; color: var(--ink); background: #fbfafd; outline: none; font-size: 12px; }
.fields input:focus { border-color: #9686df; box-shadow: 0 0 0 3px rgba(109,85,217,.08); }

.results-panel { display: grid; gap: 18px; }
.valuation-card { padding: 27px 30px; background: linear-gradient(140deg, #211945 0%, #302365 72%, #4a3996 100%); color: white; overflow: hidden; position: relative; }
.valuation-card::after { content: "Ξ"; position: absolute; right: -5px; top: -48px; font: 250px Georgia, serif; color: rgba(255,255,255,.035); }
.card-topline { position: relative; z-index: 1; display: flex; justify-content: space-between; font-size: 11px; color: #c8c0ee; }
.live-dot { font-size: 8px; letter-spacing: .12em; }
.fair-price { display: flex; align-items: baseline; margin: 25px 0 23px; position: relative; z-index: 1; }
.fair-price small { font: 28px Georgia, serif; color: #afa4e5; }
.fair-price strong { font: 64px/1 Georgia, serif; letter-spacing: -.045em; }
.fair-price > span { color: #afa4e5; font-size: 11px; margin-left: 9px; }
.valuation-meta { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); position: relative; z-index: 1; }
.valuation-meta div { padding: 16px 16px 16px 0; }
.valuation-meta span { display: block; color: #9d93cf; font-size: 9px; margin-bottom: 5px; }
.valuation-meta strong { font-size: 15px; }
.verdict-line { display: flex; align-items: center; gap: 12px; margin-top: 17px; position: relative; z-index: 1; }
.verdict-line span { border-radius: 999px; padding: 7px 11px; background: var(--lime); color: #262738; font-size: 9px; font-weight: 800; white-space: nowrap; }
.verdict-line span.negative { background: #ffb7bb; }
.verdict-line span.neutral { background: #efeaff; }
.verdict-line p { margin: 0; color: #aaa1d3; font-size: 9px; }

.submodel-card { padding: 24px 28px; }
.card-heading h3 { margin-top: 6px; }
.card-heading > small { color: var(--muted); font-size: 9px; }
.bar-chart { display: grid; gap: 15px; margin-top: 25px; }
.bar-row { display: grid; grid-template-columns: 95px 1fr 80px; align-items: center; gap: 14px; }
.bar-label strong { display: block; font-size: 11px; }
.bar-label small { color: var(--muted); font-size: 8px; }
.bar-track { height: 9px; border-radius: 99px; background: #eeeaf6; overflow: hidden; }
.bar-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--violet), #a997ff); transition: width .45s ease; min-width: 2px; }
.bar-value { text-align: right; font: 16px Georgia, serif; }
.diagnostic-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.diagnostic-grid article { border: 1px solid var(--line); background: rgba(255,255,255,.7); border-radius: 13px; padding: 16px; }
.diagnostic-grid span, .diagnostic-grid small { color: var(--muted); font-size: 8px; display: block; }
.diagnostic-grid strong { display: block; font: 20px Georgia, serif; margin: 8px 0 5px; }
.warning-box { padding: 15px 18px; border: 1px solid #eed8aa; border-radius: 12px; background: #fff8e8; color: #745d2f; font-size: 10px; line-height: 1.7; }

.sensitivity { background: #1c1731; color: white; padding: 90px max(calc((100vw - 1180px)/2), 22px); }
.section-heading.light { align-items: start; }
.section-heading.light p { color: #9890b2; font-size: 12px; }
.legend { color: #a59db9; font-size: 9px; margin-top: 20px; }
.legend i { display: inline-block; width: 42px; height: 6px; background: linear-gradient(90deg, #332a58, #9b84ff, var(--lime)); margin-right: 8px; border-radius: 99px; }
.sensitivity-shell { max-width: 850px; margin: 20px auto 0; position: relative; padding: 0 0 28px 50px; }
.heatmap { display: grid; grid-template-columns: repeat(6,1fr); gap: 7px; }
.heat-cell { aspect-ratio: 1.6; border-radius: 8px; display: grid; place-items: center; text-align: center; background: #332b50; color: #d8d1ee; transition: transform .2s; }
.heat-cell:hover { transform: scale(1.04); }
.heat-cell strong { font: 14px Georgia, serif; }
.heat-cell small { display: block; font-size: 7px; opacity: .68; margin-top: 2px; }
.heat-head { background: transparent !important; aspect-ratio: auto; min-height: 26px; color: #958dab; }
.axis-label { position: absolute; color: #817992; font-size: 8px; letter-spacing: .1em; }
.y-label { left: 0; top: 45%; transform: rotate(-90deg); }
.x-label { bottom: 0; left: 54%; }

.method-grid { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.method-grid article { min-height: 290px; padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.42); }
.method-grid article > span { font: italic 28px Georgia, serif; color: #b0a9be; }
.method-grid h3 { font: 21px Georgia, serif; margin: 34px 0 16px; }
.method-grid p { color: var(--muted); font-size: 11px; line-height: 1.75; }
.method-grid code { display: block; margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--violet); font-size: 9px; white-space: normal; }
.principles { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.principles div { padding: 25px; border-radius: 16px; background: var(--violet-soft); }
.principles div:last-child { background: #eff6df; }
.principles h3 { font: 20px Georgia, serif; margin: 0 0 10px; }
.principles p { color: var(--muted); margin: 0; font-size: 11px; line-height: 1.8; }

.insight-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; }
.info-panel { min-width: 0; padding: 25px 27px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.75); box-shadow: 0 16px 55px rgba(55,43,96,.05); }
.panel-kicker { display: flex; justify-content: space-between; align-items: center; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.panel-kicker span { font: 20px Georgia, serif; }
.panel-kicker a { color: var(--violet); font-size: 8px; font-weight: 700; }
.news-list { display: grid; }
.news-item { display: grid; grid-template-columns: 82px 1fr auto; gap: 16px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.news-item:last-child { border-bottom: 0; }
.news-item time { color: #9e98aa; font: 11px Georgia, serif; }
.news-item h3 { margin: 0 0 6px; font-size: 13px; line-height: 1.45; }
.news-item p { color: var(--muted); margin: 0; font-size: 9px; line-height: 1.65; }
.news-item > a { color: var(--violet); font-size: 14px; }
.milestone-list { position: relative; margin-top: 12px; }
.milestone-list::before { content: ""; position: absolute; left: 7px; top: 22px; bottom: 22px; width: 1px; background: #dcd6e8; }
.milestone-item { position: relative; padding: 14px 0 14px 32px; }
.milestone-item::before { content: ""; position: absolute; left: 3px; top: 22px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid white; background: var(--violet); box-shadow: 0 0 0 1px var(--violet); }
.milestone-item.future::before { background: var(--lime); box-shadow: 0 0 0 1px #99b949; }
.milestone-item time { color: #9e98aa; font-size: 8px; }
.milestone-item h3 { display: inline; margin: 0 8px 0 0; font: 17px Georgia, serif; }
.milestone-item b { padding: 4px 7px; border-radius: 99px; background: var(--violet-soft); color: var(--violet); font-size: 7px; }
.milestone-item p { color: var(--muted); margin: 7px 0 0; font-size: 9px; line-height: 1.6; }

.forum-section { background: #171329; }
.forum-count { color: #aaa2c2; font-size: 9px; border: 1px solid rgba(255,255,255,.15); border-radius: 99px; padding: 9px 13px; }
.forum-grid { display: grid; grid-template-columns: 330px minmax(0,1fr); gap: 22px; align-items: start; }
.new-topic-card { padding: 24px; border-radius: 18px; color: var(--ink); background: white; position: sticky; top: 20px; }
.new-topic-card textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.forum-feed { display: grid; gap: 12px; }
.forum-post { padding: 22px 24px; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: rgba(255,255,255,.055); }
.post-meta { display: flex; justify-content: space-between; gap: 12px; color: #9991b0; font-size: 8px; }
.post-meta strong { color: var(--lime); }
.forum-post h3 { margin: 11px 0 8px; font: 20px Georgia, serif; }
.forum-post > p { color: #b8b1ca; margin: 0; font-size: 10px; line-height: 1.75; white-space: pre-wrap; }
.reply-list { margin: 18px 0 0 25px; border-left: 1px solid rgba(255,255,255,.14); }
.reply-item { padding: 9px 0 9px 16px; }
.reply-item div { color: #9189a8; font-size: 8px; }
.reply-item strong { color: #cfc9df; margin-right: 7px; }
.reply-item p { margin: 4px 0 0; color: #aaa3bc; font-size: 9px; line-height: 1.6; }
.reply-form { display: grid; grid-template-columns: 125px 1fr auto; gap: 8px; margin-top: 15px; }
.reply-form input { min-width: 0; padding: 9px 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: rgba(255,255,255,.07); color: white; outline: none; font-size: 9px; }
.reply-form button { border: 1px solid rgba(255,255,255,.22); border-radius: 8px; padding: 0 13px; background: transparent; color: var(--lime); cursor: pointer; font-size: 9px; }
.dark-empty { color: #8f87a5; border: 1px dashed rgba(255,255,255,.14); border-radius: 14px; padding: 45px 20px; }

footer { width: min(1180px, calc(100% - 44px)); margin: auto; padding: 35px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 10px; }
.footer-brand .brand-mark { width: 28px; height: 28px; }
footer button { border: 0; border-bottom: 1px solid #9e98aa; background: transparent; color: var(--ink); padding: 7px 0; cursor: pointer; font-size: 10px; }

html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .brand,
html[dir="rtl"] .header-tools,
html[dir="rtl"] .section-heading,
html[dir="rtl"] .panel-title,
html[dir="rtl"] .panel-kicker,
html[dir="rtl"] .post-meta,
html[dir="rtl"] footer { direction: rtl; }
html[dir="rtl"] .hero-actions,
html[dir="rtl"] .legend,
html[dir="rtl"] .scenario-switch { flex-direction: row-reverse; justify-content: flex-end; }
html[dir="rtl"] .milestone-list::before { left: auto; right: 7px; }
html[dir="rtl"] .milestone-item { padding-left: 0; padding-right: 32px; }
html[dir="rtl"] .milestone-item::before { left: auto; right: 3px; }
html[dir="rtl"] .reply-list { margin-left: 0; margin-right: 25px; border-left: 0; border-right: 1px solid rgba(255,255,255,.14); }
html[dir="rtl"] .reply-item { padding-left: 0; padding-right: 16px; }
html[dir="rtl"] .line-chart,
html[dir="rtl"] .forecast-chart,
html[dir="rtl"] .flow-chart,
html[dir="rtl"] .heatmap { direction: ltr; }

@media (max-width: 920px) {
  .site-header { height: auto; min-height: 82px; flex-wrap: wrap; padding: 13px 0 10px; row-gap: 10px; }
  .site-header nav { order: 3; width: 100%; overflow-x: auto; padding-top: 9px; border-top: 1px solid rgba(86,75,124,.1); scrollbar-width: none; }
  .site-header nav::-webkit-scrollbar { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 70px; }
  .hero-visual { height: 390px; }
  .ticker-strip { grid-template-columns: 1fr 1fr; }
  .model-grid { grid-template-columns: 1fr; }
  .control-panel { max-height: none; }
  .method-grid { grid-template-columns: 1fr 1fr; }
  .diagnostic-grid { grid-template-columns: 1fr 1fr; }
  .market-grid, .forecast-grid, .insight-grid { grid-template-columns: 1fr; }
  .forum-grid { grid-template-columns: 1fr; }
  .new-topic-card { position: static; }
}

@media (max-width: 580px) {
  .site-header, .hero, .workspace, .methodology, .market-pulse, .insight-hub, footer { width: min(100% - 28px, 1180px); }
  .status { display: none; }
  .language-picker select { max-width: 112px; }
  .site-header nav button { padding: 8px 10px; font-size: 11px; }
  .hero { padding-top: 42px; }
  .hero h1 { font-size: 46px; }
  .hero-visual { transform: scale(.88); margin: -25px 0; }
  .ticker-strip { grid-template-columns: 1fr; padding: 0 14px; }
  .section-heading { align-items: start; flex-direction: column; }
  .scenario-switch { width: 100%; }
  .scenario-switch button { flex: 1; }
  .fields { grid-template-columns: 1fr; }
  .fair-price strong { font-size: 52px; }
  .valuation-meta { grid-template-columns: 1fr 1fr; }
  .valuation-meta div:last-child { grid-column: span 2; }
  .bar-row { grid-template-columns: 76px 1fr 68px; }
  .diagnostic-grid, .principles, .method-grid { grid-template-columns: 1fr; }
  .heat-cell strong { font-size: 10px; }
  .sensitivity-shell { padding-left: 22px; }
  .terminal-card { padding: 20px 17px 14px; }
  .line-chart, .flow-chart { height: 220px; }
  .forecast-section, .forum-section { padding-left: 14px; padding-right: 14px; }
  .forecast-section .section-heading { align-items: stretch; }
  .horizon-tabs { width: 100%; }
  .horizon-tabs button { flex: 1; min-width: 0; }
  .forecast-canvas-card { padding: 14px 8px 10px; }
  .forecast-chart { min-height: 310px; }
  .forecast-legend { justify-content: flex-start; flex-wrap: wrap; }
  .forecast-meta { margin-left: 6px; align-items: flex-start; }
  .forecast-fields { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 65px 1fr; }
  .news-item > a { display: none; }
  .reply-form { grid-template-columns: 1fr; }
  .reply-form button { padding: 10px; }
  footer { align-items: start; gap: 20px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

.admin-page { min-height: 100vh; }
.admin-header .text-link { color: var(--violet); font-size: 11px; font-weight: 700; }
.admin-shell { width: min(920px, calc(100% - 44px)); margin: 0 auto; padding: 85px 0 110px; }
.admin-intro h1 { margin: 12px 0; font: italic 58px/.95 Georgia, serif; }
.admin-intro p { max-width: 680px; color: var(--muted); line-height: 1.7; }
.admin-auth { margin: 34px 0 10px; padding: 22px; display: grid; grid-template-columns: minmax(250px, 1fr) auto auto auto; align-items: end; gap: 12px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.74); }
.admin-auth label { display: grid; gap: 8px; color: var(--muted); font-size: 10px; }
.admin-auth input { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.admin-feed { display: grid; gap: 14px; margin-top: 24px; }
.admin-post { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.72); }
.admin-post-head, .admin-reply { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.admin-post-head { color: var(--muted); font-size: 9px; }
.admin-post h2 { margin: 15px 0 8px; font: 21px Georgia, serif; }
.admin-post > p, .admin-reply p { color: var(--muted); line-height: 1.65; white-space: pre-wrap; }
.admin-reply { margin: 13px 0 0 22px; padding: 12px 0 0 14px; border-top: 1px solid var(--line); }
.admin-reply p { margin: 0; font-size: 10px; }
.admin-delete { flex: none; border: 1px solid #dbb7bf; border-radius: 8px; padding: 7px 10px; color: #8f3145; background: #fff5f7; cursor: pointer; }

@media (max-width: 700px) {
  .admin-auth { grid-template-columns: 1fr; }
  .admin-intro h1 { font-size: 43px; }
  .admin-post-head, .admin-reply { flex-direction: column; }
}
