:root {
  --ink: #13231e;
  --muted: #65736e;
  --line: #dfe7e3;
  --paper: #ffffff;
  --wash: #f4f7f5;
  --green: #246b55;
  --green-2: #338669;
  --green-soft: #e8f4ef;
  --red: #b94a47;
  --red-soft: #fbeeed;
  --sand: #e9d8af;
  --navy: #17372d;
  --shadow: 0 18px 55px rgba(23, 55, 45, .10);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, "Segoe UI", Arial, sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.site-header { height: 72px; padding: 0 max(28px, calc((100vw - 1180px)/2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(19,35,30,.08); position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 17px; letter-spacing: -.02em; }
.brand b { font-weight: 650; }
.brand-mark { width: 29px; height: 29px; display: flex; gap: 3px; align-items: flex-end; padding: 6px; border-radius: 8px; background: var(--navy); }
.brand-mark i { display: block; flex: 1; border-radius: 2px; background: #7ec0a5; }
.brand-mark i:nth-child(1) { height: 35%; }.brand-mark i:nth-child(2) { height: 65%; }.brand-mark i:nth-child(3) { height: 100%; background: white; }
nav { display: flex; gap: 34px; margin-left: auto; margin-right: 36px; }
nav a { color: #53605c; font-size: 14px; transition: color .2s; }
nav a:hover { color: var(--green); }

.button { border: 0; border-radius: 10px; min-height: 48px; padding: 0 23px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; font-weight: 650; cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button-primary { color: white; background: var(--green); box-shadow: 0 8px 22px rgba(36,107,85,.20); }
.button-primary:hover:not(:disabled) { background: #1e5b48; box-shadow: 0 10px 25px rgba(36,107,85,.28); }
.button-ghost { border: 1px solid #cbd7d2; background: white; color: var(--ink); }
.button-small { min-height: 38px; padding: 0 16px; font-size: 13px; }
.button-wide { width: 100%; }
.button:disabled { cursor: not-allowed; opacity: .45; box-shadow: none; }
.button-light { color: var(--navy); background: white; box-shadow: 0 10px 25px rgba(0,0,0,.16); }
.text-button { border: 0; background: transparent; color: var(--green); font-weight: 650; cursor: pointer; padding: 12px 5px; border-bottom: 1px solid transparent; }
.text-button:hover { border-bottom-color: var(--green); }

.hero { min-height: 690px; max-width: 1240px; margin: 0 auto; padding: 92px 30px 80px; display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 68px; }
.hero-copy { max-width: 650px; }
.eyebrow, .kicker { text-transform: uppercase; letter-spacing: .13em; color: var(--green); font-size: 11px; font-weight: 750; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 24px; }
.eyebrow span { width: 22px; height: 2px; background: var(--green-2); }
h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(50px, 5vw, 73px); line-height: 1.03; letter-spacing: -.045em; font-weight: 500; }
h1 em { color: var(--green); font-weight: inherit; }
.hero-lead { max-width: 615px; font-size: 18px; color: var(--muted); line-height: 1.72; margin: 26px 0 30px; }
.hero-actions { display: flex; align-items: center; gap: 24px; }
.trust-row { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 20px; color: #68756f; font-size: 12px; }
.trust-row span { display: flex; align-items: center; gap: 7px; }
.trust-row svg { width: 18px; fill: none; stroke: var(--green); stroke-width: 1.7; }

.hero-visual { position: relative; padding: 30px 0 35px; }
.hero-visual::before { content: ""; position: absolute; width: 500px; height: 500px; border-radius: 50%; background: #edf3ef; top: -35px; right: -75px; z-index: -1; }
.preview-window { overflow: hidden; border: 1px solid #d9e2de; border-radius: 18px; background: white; box-shadow: 0 30px 75px rgba(24,59,47,.16); transform: rotate(1deg); }
.window-top { height: 47px; background: #f7f9f8; border-bottom: 1px solid #e6ebe8; display: flex; gap: 6px; align-items: center; padding: 0 17px; }
.window-top span { width: 7px; height: 7px; border-radius: 50%; background: #ccd7d2; }.window-top b { margin-left: 10px; font-size: 11px; color: #69756f; font-weight: 600; }
.preview-content { padding: 28px 30px 24px; }
.preview-label { color: #77827d; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.preview-total { font-family: Georgia, serif; font-size: 37px; margin: 4px 0 0; }
.preview-delta { display: inline-block; font-size: 10px; color: var(--green); background: var(--green-soft); border-radius: 12px; padding: 3px 8px; }
.preview-chart { width: 100%; height: 175px; margin: 10px 0; overflow: visible; }
.preview-chart .grid { fill: none; stroke: #edf1ef; stroke-width: 1; }.preview-chart .area { fill: url(#area); }.preview-chart .line { fill: none; stroke: var(--green-2); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.preview-stats { border-top: 1px solid #e8edeb; padding-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); }
.preview-stats div { padding-left: 15px; border-left: 1px solid #e8edeb; display: flex; flex-direction: column; }.preview-stats div:first-child { padding-left: 0; border: 0; }.preview-stats span { color: #7a8580; font-size: 10px; }.preview-stats b { font-size: 17px; margin-top: 3px; }
.floating-insight { position: absolute; right: -15px; bottom: 0; width: 270px; display: flex; gap: 13px; background: white; padding: 15px; border: 1px solid #dbe4e0; border-radius: 13px; box-shadow: 0 16px 40px rgba(24,59,47,.15); transform: rotate(-1deg); }
.insight-icon { flex: 0 0 32px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: var(--green); background: var(--green-soft); font-weight: 700; }
.floating-insight small { color: var(--green); text-transform: uppercase; font-size: 8px; letter-spacing: .12em; }.floating-insight b { display: block; font-size: 12px; }.floating-insight p { margin: 2px 0 0; font-size: 9px; color: var(--muted); }

.workflow { background: var(--wash); padding: 86px max(30px, calc((100vw - 1120px)/2)) 92px; border-top: 1px solid #edf0ee; border-bottom: 1px solid #e8eeeb; }
.section-heading h2, .upload-copy h2, .report-header h2 { font-family: Georgia, serif; font-size: 38px; line-height: 1.15; letter-spacing: -.025em; font-weight: 500; margin: 9px 0 0; }
.centered { text-align: center; }
.steps { margin-top: 49px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps article { position: relative; min-height: 215px; padding: 28px; border-radius: var(--radius); background: white; border: 1px solid #e1e8e4; }
.step-number { position: absolute; top: 19px; right: 22px; color: #b8c3be; font-family: Georgia, serif; font-size: 16px; }
.step-icon { width: 46px; height: 46px; display: grid; place-items: center; color: var(--green); background: var(--green-soft); border-radius: 12px; font-size: 23px; }
.steps h3 { margin: 21px 0 7px; font-size: 17px; }.steps p { margin: 0; max-width: 250px; color: var(--muted); font-size: 14px; }

.upload-section { max-width: 1100px; margin: 0 auto; padding: 105px 30px; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 90px; }
.upload-copy h2 { font-size: 44px; margin: 10px 0 17px; }.upload-copy > p { color: var(--muted); font-size: 16px; line-height: 1.7; }
.feature-list { list-style: none; padding: 0; margin: 25px 0 0; display: grid; gap: 10px; font-size: 14px; }.feature-list span { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 8px; color: var(--green); background: var(--green-soft); border-radius: 50%; font-size: 11px; }
.upload-card { padding: 22px; border: 1px solid #dce5e1; border-radius: 20px; box-shadow: var(--shadow); background: white; }
.dropzone { min-height: 255px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 1.5px dashed #aebeb7; border-radius: 14px; background: #fbfcfb; cursor: pointer; transition: border .2s, background .2s; outline: none; }
.dropzone:hover, .dropzone.dragging, .dropzone:focus-visible { border-color: var(--green); background: #f6faf8; }
.upload-icon { width: 54px; height: 54px; display: grid; place-items: center; background: var(--green-soft); border-radius: 50%; }.upload-icon svg { width: 26px; fill: none; stroke: var(--green); stroke-width: 1.6; }
.dropzone h3 { font-size: 16px; margin: 17px 0 3px; }.dropzone p { margin: 0; color: var(--muted); font-size: 13px; }.dropzone p span { color: var(--green); font-weight: 650; }.dropzone small { margin-top: 13px; color: #9ba6a1; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.file-state { height: 92px; padding: 16px; display: flex; align-items: center; gap: 14px; border-radius: 12px; background: var(--wash); margin-bottom: 15px; }.file-state > div { flex: 1; min-width: 0; }.file-state b, .file-state small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.file-state b { font-size: 14px; }.file-state small { color: var(--muted); font-size: 11px; }.file-type { width: 44px; height: 50px; display: grid; place-items: center; color: white; background: var(--green); border-radius: 8px; font-size: 9px; font-weight: 750; }.file-state button { border: 0; background: transparent; color: #87938e; font-size: 25px; cursor: pointer; }
.upload-card .button { margin-top: 15px; }.privacy-note { text-align: center; color: #8a9590; font-size: 10px; margin-top: 15px; }.privacy-note span { color: var(--green); }

.loading-section { text-align: center; max-width: 610px; margin: 40px auto 100px; padding: 70px 30px; }.loader { display: flex; justify-content: center; gap: 7px; }.loader i { width: 10px; height: 10px; border-radius: 50%; background: var(--green); animation: pulse 1.2s infinite; }.loader i:nth-child(2) { animation-delay: .16s; }.loader i:nth-child(3) { animation-delay: .32s; }
@keyframes pulse { 0%,80%,100% { opacity: .3; transform: scale(.7); } 40% { opacity: 1; transform: scale(1); } }
.loading-section h2 { font-family: Georgia, serif; font-weight: 500; font-size: 30px; margin: 25px 0 5px; }.loading-section p { color: var(--muted); }.progress { overflow: hidden; height: 4px; background: #e6ece9; border-radius: 4px; margin-top: 28px; }.progress span { display: block; width: 12%; height: 100%; background: var(--green); border-radius: 4px; transition: width .5s; }
.error-panel { max-width: 820px; margin: 30px auto 80px; padding: 20px; display: flex; align-items: flex-start; gap: 16px; background: var(--red-soft); border: 1px solid #f0d0ce; border-radius: 14px; }.error-panel > div { flex: 0 0 34px; height: 34px; display: grid; place-items: center; color: white; background: var(--red); border-radius: 50%; font-weight: 750; }.error-panel section { flex: 1; }.error-panel h3 { margin: 0; font-size: 15px; }.error-panel p { margin: 4px 0 0; color: #7f5552; font-size: 13px; }.error-panel button { border: 0; background: transparent; color: #8e5a57; font-size: 22px; cursor: pointer; }

.report { background: #f6f8f7; padding: 85px max(30px, calc((100vw - 1120px)/2)) 100px; border-top: 1px solid var(--line); }
.report-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }.report-header p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.notice { padding: 11px 14px; margin-bottom: 16px; color: #6c5a37; background: #faf5e9; border: 1px solid #ede1c4; border-radius: 9px; font-size: 12px; }
.notice b { display: block; margin-bottom: 5px; }.notice ul { margin: 0; padding-left: 18px; }.notice li + li { margin-top: 3px; }
.metric-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.metric { min-height: 132px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: white; }.metric-label { min-height: 33px; display: block; color: var(--muted); font-size: 11px; line-height: 1.35; }.metric-value { display: block; margin-top: 8px; font-family: Georgia, serif; font-size: 26px; line-height: 1; }.metric small { display: block; margin-top: 8px; color: #99a39f; font-size: 9px; }.positive { color: var(--green) !important; }.negative { color: var(--red) !important; }.neutral { color: var(--ink) !important; }
.metric-value.unavailable { color: var(--muted); font-family: inherit; font-size: 15px; line-height: 1.25; }
.calculation-note { margin: 16px 0 0; padding: 11px 13px; color: #6c5a37; background: #faf5e9; border: 1px solid #ede1c4; border-radius: 9px; font-size: 12px; line-height: 1.5; }
.chart-wrap > .calculation-note { margin-top: 70px; text-align: center; }
.calculation-note-panel { grid-column: 1 / -1; margin-top: 0; color: #5f6e67; background: #f7faf8; }
.calculation-note-panel h3 { margin: 0 0 7px; font-family: Georgia, serif; font-size: 21px; font-weight: 500; }.calculation-note-panel p { margin: 0; font-size: 13px; line-height: 1.55; }
.panel { margin-top: 18px; padding: 27px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }.panel-heading { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }.panel-heading h3 { font-family: Georgia, serif; font-size: 23px; font-weight: 500; margin: 4px 0 2px; }.panel-heading p { color: var(--muted); font-size: 12px; margin: 0; }.panel-kicker { color: var(--green); font-size: 9px; text-transform: uppercase; letter-spacing: .13em; font-weight: 750; }.chart-value { font-family: Georgia, serif; font-size: 23px; }
.chart-wrap { height: 260px; margin-top: 24px; }.chart-wrap svg { width: 100%; height: 100%; overflow: visible; }.chart-grid { stroke: #edf1ef; stroke-width: 1; }.chart-zero { stroke: #cfd9d4; stroke-dasharray: 4 4; }.chart-area { fill: url(#equityArea); }.chart-line { fill: none; stroke: var(--green); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }.chart-label { fill: #93a09a; font-size: 10px; }
.report-section-heading { text-align: left; margin: 70px 0 25px; }.report-section-heading p { color: var(--muted); margin: 8px 0 0; }
.insight-list { display: grid; gap: 12px; }.insight-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: white; }.insight-main { display: grid; grid-template-columns: 42px 1fr auto; gap: 16px; align-items: flex-start; padding: 21px; }.insight-rank { width: 38px; height: 38px; display: grid; place-items: center; color: var(--green); background: var(--green-soft); border-radius: 10px; font-family: Georgia, serif; }.insight-copy h3 { margin: 0 0 5px; font-size: 15px; }.insight-copy p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }.insight-meta { display: flex; gap: 8px; margin-top: 10px; }.badge { display: inline-flex; border-radius: 10px; padding: 3px 8px; background: #f0f4f2; color: #68756f; font-size: 9px; text-transform: uppercase; letter-spacing: .05em; }.badge.high { color: var(--green); background: var(--green-soft); }.badge.low { color: #8b7141; background: #faf2df; }
.evidence-button { border: 1px solid #d8e1dd; border-radius: 8px; padding: 8px 11px; color: var(--green); background: white; font-size: 11px; font-weight: 650; white-space: nowrap; cursor: pointer; }.evidence-button:hover { background: var(--green-soft); }.evidence { padding: 0 21px 21px 79px; }.evidence table { width: 100%; border-collapse: collapse; font-size: 12px; }.evidence th { color: var(--muted); font-weight: 500; text-align: right; }.evidence th:first-child, .evidence td:first-child { text-align: left; }.evidence td, .evidence th { padding: 8px; border-bottom: 1px solid #edf1ef; text-align: right; }
.paywall { overflow: hidden; position: relative; margin-top: 70px; padding: 62px 40px; color: white; background: var(--navy); border-radius: 22px; text-align: center; }.paywall-pattern { position: absolute; inset: 0; opacity: .15; background-image: radial-gradient(circle at 20% 50%, #8bc2ac 0 1px, transparent 1px), radial-gradient(circle at 80% 30%, #8bc2ac 0 1px, transparent 1px); background-size: 24px 24px, 37px 37px; }.paywall > *:not(.paywall-pattern) { position: relative; }.lock-icon { width: 45px; height: 45px; margin: 0 auto 18px; display: grid; place-items: center; color: var(--navy); background: #dcece5; border-radius: 50%; }.kicker.light { color: #9bc7b5; }.paywall h2 { margin: 7px 0 8px; font-family: Georgia, serif; font-size: 35px; font-weight: 500; }.paywall p { max-width: 600px; margin: 0 auto 25px; color: #bed0c9; font-size: 14px; }.paywall small { display: block; margin-top: 14px; color: #9fb7ae; }.paywall small b { color: #dcece5; }
.full-report { padding-top: 32px; }.unlocked { display: flex; align-items: center; gap: 13px; padding: 15px 18px; border: 1px solid #cce2d8; border-radius: 12px; background: var(--green-soft); }.unlocked > span { width: 32px; height: 32px; display: grid; place-items: center; color: white; background: var(--green); border-radius: 50%; }.unlocked b { font-size: 13px; }.unlocked p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.extended-summary { margin-top: 14px; }.extended-metrics { margin-top: 20px; grid-template-columns: repeat(3, 1fr); }.extended-metrics .metric { background: var(--wash); box-shadow: none; }
.zone-card h3 { margin: 7px 0 3px; font-family: Georgia, serif; font-size: 24px; font-weight: 500; }.zone-card > b { font-size: 15px; }.zone-card > p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }.zone-card.strong { border-top: 3px solid var(--green); }.zone-card.weak { border-top: 3px solid var(--red); }
.breakdown-panel { margin-top: 14px; }.table-scroll { overflow-x: auto; }.breakdown-table, .positions-panel table, #weeklySection table { width: 100%; border-collapse: collapse; margin-top: 18px; min-width: 650px; }.breakdown-table th, .positions-panel th, #weeklySection th { color: #87928d; font-size: 9px; text-transform: uppercase; letter-spacing: .07em; font-weight: 600; text-align: right; padding: 9px 11px; border-bottom: 1px solid var(--line); }.breakdown-table th:first-child, .breakdown-table td:first-child, .positions-panel th:first-child, .positions-panel td:first-child, #weeklySection th:first-child, #weeklySection td:first-child { text-align: left; }.breakdown-table td, .positions-panel td, #weeklySection td { padding: 11px; border-bottom: 1px solid #edf1ef; text-align: right; font-size: 12px; white-space: nowrap; }.breakdown-table tr:last-child td, .positions-panel tr:last-child td, #weeklySection tr:last-child td { border: 0; }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.concentration-grid { margin-top: 20px; display: grid; gap: 13px; }.concentration-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; font-size: 12px; }.bar { grid-column: 1 / -1; height: 5px; background: #edf1ef; border-radius: 5px; overflow: hidden; }.bar i { display: block; height: 100%; background: var(--green-2); border-radius: 5px; }.loss-bars .bar i { background: var(--red); }
.source-details { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }.source-details summary { color: var(--green); font-size: 12px; font-weight: 650; cursor: pointer; }.source-details > div { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 13px; }.mapping-chip { padding: 5px 9px; border-radius: 8px; background: var(--wash); color: var(--muted); font-size: 10px; }.open-warning { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #faf5e9; color: #6c5a37; font-size: 12px; }
.zone-card { position: relative; margin-top: 0; overflow: hidden; }.zone-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--green); }.zone-card.weak::before { background: var(--red); }.zone-card h3 { margin: 8px 0 3px; font-family: Georgia, serif; font-size: 24px; font-weight: 500; }.zone-card > b { font-size: 14px; }.zone-card > p { margin: 10px 0 0; color: var(--muted); font-size: 12px; }.final-summary { margin-top: 40px; border-color: #c9ded5; background: var(--green-soft); }.final-summary .panel-heading p { max-width: 900px; color: #4f655d; font-size: 14px; line-height: 1.7; }
footer { max-width: 1180px; margin: 0 auto; min-height: 105px; padding: 25px 30px; display: flex; align-items: center; gap: 30px; color: #84908b; font-size: 11px; }footer p { margin-left: auto; }

@media (max-width: 900px) {
  nav { display: none; }.hero { grid-template-columns: 1fr; padding-top: 65px; gap: 35px; }.hero-copy { max-width: 720px; }.hero-visual { max-width: 600px; margin: 0 auto; width: 100%; }.workflow { padding-top: 70px; }.upload-section { grid-template-columns: 1fr; gap: 35px; }.metric-grid { grid-template-columns: repeat(3, 1fr); }.two-column { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .site-header { padding: 0 12px; gap: 10px; }.site-header > .button { flex-shrink: 0; padding-left: 10px; padding-right: 10px; font-size: 12px; }.site-header .brand { min-width: 0; gap: 6px; }.site-header .brand-mark { flex-shrink: 0; }.brand { font-size: 15px; }.hero { padding: 55px 20px 60px; }.hero h1 { font-size: 45px; }.hero-lead { font-size: 16px; }.hero-actions { align-items: stretch; flex-direction: column; gap: 8px; }.hero-actions .button { width: 100%; }.trust-row { flex-direction: column; gap: 8px; }.floating-insight { right: -4px; width: 245px; }.preview-content { padding: 22px 20px; }.preview-chart { height: 135px; }.steps { grid-template-columns: 1fr; }.steps article { min-height: auto; }.workflow, .upload-section, .report { padding-left: 20px; padding-right: 20px; }.upload-section { padding-top: 75px; padding-bottom: 75px; }.upload-copy h2 { font-size: 36px; }.report-header { align-items: flex-start; flex-direction: column; }.metric-grid { grid-template-columns: 1fr 1fr; }.metric { min-height: 115px; }.panel { padding: 20px 16px; }.chart-wrap { height: 200px; }.insight-main { grid-template-columns: 34px 1fr; gap: 11px; }.insight-rank { width: 34px; height: 34px; }.evidence-button { grid-column: 2; justify-self: start; }.evidence { padding: 0 14px 16px; overflow-x: auto; }.paywall { padding: 45px 20px; }.paywall h2 { font-size: 29px; }.report-section-heading h2 { font-size: 32px; }footer { flex-wrap: wrap; }footer p { order: 3; width: 100%; margin: 0; }
}

/* Optional broker evidence; keep the existing report layout. */
.broker-upload { margin: 18px 0; text-align: left; overflow-wrap: anywhere; }
.broker-upload p, #brokerFileState { font-size: 13px; color: var(--muted, #65716b); }
.broker-upload input { display: block; max-width: 100%; margin: 10px 0; }
.broker-upload label { display: block; font-size: 14px; }
.broker-table td { white-space: normal; overflow-wrap: anywhere; }
.broker-table small, .position-status { display: block; max-width: 32em; white-space: normal; font-size: 12px; color: var(--muted, #65716b); }

.table-scroll .broker-table { table-layout: fixed; width: 100%; min-width: 800px; }
.broker-table th:first-child, .broker-table td:first-child { width: 26%; }
.broker-table th:nth-child(2), .broker-table td:nth-child(2), .broker-table th:nth-child(3), .broker-table td:nth-child(3) { width: 15%; white-space: nowrap; text-align: right; padding-right: 14px; font-variant-numeric: tabular-nums; }
.broker-table th:last-child, .broker-table td:last-child { width: 44%; }

/* Compact guidance and readable controls across existing responsive layouts. */
.upload-help, .metric-help { margin: 20px 0; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; background: var(--wash); }
summary { cursor: pointer; min-height: 44px; display: list-item; padding: 10px 0; font-weight: 650; }
.upload-help li { margin: 10px 0; }
.metric-help dl { margin: 12px 0; }
.metric-help dt { font-weight: 650; margin-top: 12px; }
.metric-help dd { margin: 3px 0 0; color: var(--muted); }
.paywall ul { max-width: 650px; margin: 18px auto; text-align: left; padding-left: 24px; }
.paywall li { margin: 8px 0; }
.hero > *, .upload-section > *, .metric-grid > *, .two-column > *, .insight-main > * { min-width: 0; }
.broker-upload input { width: 100%; min-height: 44px; }
.notice, .upload-help, .metric-help, .insight-copy, .position-status { overflow-wrap: anywhere; }
.insight-meta { flex-wrap: wrap; }
.evidence { overflow-x: auto; }
.button { white-space: normal; text-align: center; padding-top: 10px; padding-bottom: 10px; }
.error-panel { flex-wrap: wrap; }
.error-panel > section { min-width: 0; flex: 1 1 220px; }
#retryFile { flex-shrink: 0; font-size: 13px; }
.metric-value { overflow-wrap: normal; }
@media (max-width: 620px) {
  .metric-grid { grid-template-columns: 1fr; }
  .metric { min-height: 105px; }
  .hero-actions .button { font-size: 15px; gap: 8px; padding-left: 12px; padding-right: 12px; }
  .panel-heading { flex-wrap: wrap; gap: 12px; }
  .preview-total { font-size: 32px; }
  .chart-value { font-size: 22px; }
}
@media (max-width: 620px) {
  .hero-visual::before { width: 100%; height: auto; aspect-ratio: 1; right: 0; }
}

@media (max-width: 900px) {
  .table-scroll::before { content: "Если таблица не помещается, прокрутите её вправо →"; display: block; font-size: 12px; color: var(--muted); margin: 10px 0; }
}

.test-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.legal-links { width: 100%; font-size: 12px; color: var(--muted); }
.legal-links a { margin-right: 16px; text-decoration: underline; }
#paymentStatus { font-weight: 650; }
#reportExpiry { font-size: 12px; }
#checkPaymentButton, #resumePaymentButton { margin: 8px; }

/* Metric explanations keep the existing table columns and intrinsic widths. */
.glossary-link { color: var(--green); font-size: 12px; text-underline-offset: 3px; }
#metricHelp { scroll-margin-top: 20px; }
.term-trigger { position: relative; display: inline-block; padding: 0; border: 0; min-height: 24px; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; text-align: inherit; cursor: help; }
.term-icon { position: absolute; right: -11px; top: 50%; transform: translateY(-50%); font-size: 10px; line-height: 1; letter-spacing: 0; }
.term-trigger:focus-visible, .glossary-link:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }
.term-tooltip { position: fixed; z-index: 1000; width: max-content; max-width: min(360px, calc(100vw - 24px)); padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--ink); color: white; font-size: 12px; line-height: 1.45; font-weight: 400; letter-spacing: normal; text-transform: none; box-shadow: 0 3px 12px #0002; overflow-wrap: anywhere; }

/* Compact feedback, shared by FREE and FULL reports. */
.feedback-panel { margin-top: 32px; }
.feedback-panel h3 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 24px; font-weight: 500; }
.feedback-panel p { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
#feedbackForm { max-width: 620px; margin-top: 18px; }
#feedbackForm label { display: block; margin: 18px 0 6px; font-size: 14px; font-weight: 650; }
#feedbackForm select, #feedbackForm textarea { display: block; width: 100%; min-width: 0; min-height: 44px; padding: 10px; border: 1px solid #aebeb7; border-radius: 8px; background: white; color: var(--ink); font: inherit; font-size: 16px; }
#feedbackForm textarea { resize: vertical; }
#feedbackForm :focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
#feedbackLength { color: var(--muted); }
#feedbackSubmit { margin-top: 20px; }
#feedbackStatus:empty { display: none; }

/* Landing: an explicit path from free analysis to the optional full report. */
.hero .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; max-width: 460px; }
.hero-actions .button { font-size: 15px; line-height: 1.45; }
.hero-example { text-align: center; }
.hero-example .text-button { min-height: 44px; font-size: 14px; }
.hero-example small { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; }
.hero-actions a:focus-visible, .hero-actions button:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.purchase-path { max-width: 650px; margin: 18px auto 0; color: var(--muted); }
.full-report-details { margin-top: 32px; padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 36px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.full-report-details h3 { font: 500 28px/1.2 Georgia, serif; margin: 8px 0 12px; }
.full-report-details p { margin: 0; color: var(--muted); font-size: 14px; }
.full-report-details ul { margin: 0; padding-left: 20px; font-size: 14px; display: grid; gap: 8px; }
.full-report-details li::marker { color: var(--green); }
.full-report-details .full-report-note { grid-column: 1 / -1; font-size: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
@media (min-width: 901px) {
  .hero { max-width: 1320px; grid-template-columns: 1fr 1.1fr; gap: 56px; padding-top: 70px; padding-bottom: 70px; }
  .hero .preview-chart { height: 200px; }
  .hero-visual::before { right: -20px; }
}
@media (max-width: 620px) {
  .full-report-details { grid-template-columns: 1fr; padding: 22px 18px; gap: 18px; }
}

/* Friendly upload steps; keep status space stable when a QUIK file is selected. */
.upload-step { font-size: 16px; line-height: 1.6; margin: 0; font-weight: 650; }
.upload-badge { display: inline-block; padding: 1px 8px; border-radius: 20px; background: var(--green-soft); color: var(--green); font-size: 11px; text-transform: uppercase; }
.upload-badge.optional { background: var(--wash); color: var(--muted); }
.upload-format { font-size: 12px; color: var(--muted); margin: 6px 0; }
.upload-description { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 8px 0 16px; }
.file-confirmation { display: block; font-size: 12px; color: var(--green); margin-bottom: 5px; }
.upload-card .file-state { height: auto; min-height: 255px; margin-bottom: 0; }
.upload-card .file-state b { white-space: normal; overflow-wrap: anywhere; }
.upload-info { padding: 12px; border-radius: 10px; background: var(--green-soft); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.analyze-help { margin: 12px 0 0; min-height: 78px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.analyze-help small { display: block; margin-top: 4px; font-size: 11px; }
.analyze-help.complete { visibility: hidden; }
.upload-card :is(button, input, [role="button"]):focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

.upload-card .dropzone { position: relative; }
.dropzone:has(.upload-info:not([hidden])) > :not(.upload-info) { visibility: hidden; }
.dropzone .upload-info { position: absolute; inset: 12px; margin: 0; display: flex; align-items: center; padding: 14px; color: var(--green); font-size: 13px; line-height: 1.6; }
#brokerFileState { display: block; min-height: 48px; line-height: 1.6; }
#removeBrokerFile { display: block; }
#removeBrokerFile[hidden] { display: block !important; visibility: hidden; }
