#fundamentalBtn { width:auto; min-width:112px; border-radius:10px; padding:0 14px; white-space:nowrap; font-size:.8rem; flex-shrink:0; }
#fundamentalModal { color:#e5edf8; background:#0d1424; border:1px solid #2b3953; border-radius:18px; width:min(860px,calc(100% - 24px)); max-width:calc(100% - 24px); max-height:90dvh; padding:0; box-sizing:border-box; }
#fundamentalModal::backdrop { background:rgba(2,6,15,.8); backdrop-filter:blur(6px); }
#fundamentalRoot { padding:24px; font:14px/1.6 Inter,system-ui,sans-serif; overflow-wrap:anywhere; }
#fundamentalRoot * { box-sizing:border-box; }
.fundamental-header { display:flex; justify-content:space-between; gap:12px; align-items:center; }
.fundamental-header h2 { margin:4px 0; font-size:26px; color:#f3f6ff; }
.fundamental-header small { color:#67c9ba; letter-spacing:.09em; }
#fundamentalRoot button { width:auto; height:auto; min-height:40px; color:#e6edf7; background:#1d2c45; border:1px solid #344963; border-radius:8px; padding:9px 14px; cursor:pointer; font:inherit; }
#fundamentalRoot button:disabled { opacity:.45; cursor:wait; }
#fundamentalRoot button:focus-visible,#fundamentalRoot input:focus-visible,#fundamentalRoot textarea:focus-visible,#fundamentalRoot select:focus-visible { outline:2px solid #7adac8; outline-offset:2px; }
#fundamentalRoot form { display:grid; gap:10px; margin:20px 0; }
#fundamentalRoot label { color:#c8d5e9; font-weight:600; }
#fundamentalRoot input,#fundamentalRoot textarea,#fundamentalRoot select { width:100%; min-width:0; background:#080f1e; border:1px solid #314059; border-radius:8px; color:#edf4ff; padding:10px 12px; font:inherit; }
#fundamentalRoot textarea { resize:vertical; }
#fundamentalRoot button[type=submit] { background:#176b62; border-color:#2a9d8f; font-weight:600; }
.fundamental-actions { display:flex; gap:8px; flex-wrap:wrap; }
.fundamental-note,.fundamental-status { color:#a8b9d1; }
.fundamental-status { min-height:24px; }
.fundamental-start-error { color:#e1bc7e; min-height:0; margin:6px 0 0; }
.fundamental-start-error:empty { display:none; }
.fundamental-input-history { display:block; color:#8fa3bf; font-size:12px; margin-top:2px; }
.fundamental-input-history-note { display:block; color:#8fa3bf; font-size:12px; margin-top:6px; }
.fundamental-results { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr)); gap:14px; }
.fundamental-card { padding:18px; border:1px solid #2b3a54; border-radius:12px; background:#111d30; min-width:0; }
.fundamental-card h3 { margin:0; color:#78ddc7; }
.fundamental-score { display:block; font-size:28px; margin:6px 0 14px; }
.fundamental-card dl { margin:0; }
.fundamental-card dt { color:#a7b9d0; margin-top:10px; }
.fundamental-card dd { margin:0; }
.fundamental-valuation-pilot { margin:14px 0; padding:8px 0 8px 12px; border-left:2px solid #d8ba78; }
.fundamental-valuation-pilot summary { min-height:32px; cursor:pointer; color:#f0d6a4; font-weight:600; }
.fundamental-valuation-pilot summary:focus-visible { outline:2px solid #7adac8; outline-offset:3px; }
.fundamental-valuation-pilot small { display:block; color:#a8b9d1; }
.fundamental-valuation-pilot p { margin:6px 0 10px; }
.fundamental-valuation-pilot ul { margin:0 0 10px; padding-inline-start:1.25rem; }
.fundamental-valuation-pilot dt { font-weight:600; }
.fundamental-valuation-pilot a { display:inline-block; min-height:28px; color:#93caff; text-decoration:underline; }
.fundamental-warning { color:#e1bc7e; font-size:12px; }
.fundamental-forecast-note { display:block; color:#a7b9d0; font-size:12px; margin-top:10px; line-height:1.45; }
.fundamental-fan-figure { margin:12px 0 4px; }
.fundamental-fan { display:block; width:100%; height:auto; max-height:190px; background:#0c1626; border:1px solid #2b3a54; border-radius:8px; }
.fundamental-fan .fan-band { fill:rgba(120,221,199,.16); stroke:none; }
.fundamental-fan .fan-mid { fill:none; stroke:#78ddc7; stroke-width:2; }
.fundamental-fan .fan-target { stroke:#e1bc7e; stroke-width:1.2; stroke-dasharray:5 4; }
.fundamental-fan .fan-touch-window { fill:rgba(225,188,126,.12); }
.fundamental-fan .fan-touch { fill:#e1bc7e; stroke:#0c1626; stroke-width:1.5; }
.fundamental-fan .fan-end { fill:#78ddc7; }
.fundamental-fan .fan-axis { fill:#a7b9d0; font-size:10px; font-family:inherit; }
.fundamental-fan .fan-target-label { fill:#e1bc7e; }
.fundamental-fan-figure figcaption { color:#a7b9d0; font-size:11px; margin-top:4px; line-height:1.4; }
.fundamental-alarm { margin-top:10px; }
.fundamental-horizons { margin-top:12px; }
.fundamental-inputs, .fundamental-v3, .fundamental-v3-pillars, .fundamental-fair-value { margin-top:10px; }
.fundamental-quality { margin:2px 0 10px; font-size:12px; }
.fundamental-quality summary { cursor:pointer; display:inline-block; padding:2px 8px; border-radius:999px; border:1px solid #2b3a54; }
.fundamental-quality.is-good summary { color:#78ddc7; border-color:#2f6f61; }
.fundamental-quality.is-fair summary { color:#e1bc7e; border-color:#7a6236; }
.fundamental-quality.is-weak summary { color:#ef9a9a; border-color:#7a3a3a; }
.fundamental-quality ul { margin:6px 0 0; padding-left:18px; color:#a7b9d0; }
.fundamental-ask { display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin-top:12px; }
.fundamental-ask small { color:#a7b9d0; width:100%; }
.fundamental-ask button { font-size:12px; padding:6px 10px; }
.fundamental-probabilities { margin-top:10px; }
.fundamental-probabilities summary, .fundamental-opps > summary { cursor:pointer; color:#78ddc7; }
.fundamental-probabilities small { display:block; color:#a7b9d0; font-size:11px; line-height:1.4; }
.fundamental-opps { margin:12px 0; padding:12px; border:1px solid #2b3a54; border-radius:12px; background:#0f1a2c; }
.fundamental-opps > summary { font-weight:600; }
.fundamental-opps select { max-width:100%; }
.fundamental-opps-body small { display:block; color:#a7b9d0; font-size:11px; line-height:1.45; margin-top:6px; }
.fundamental-opps-body table { width:100%; border-collapse:collapse; font-size:12px; font-variant-numeric:tabular-nums; }
.fundamental-opps-body th, .fundamental-opps-body td { padding:5px 4px; text-align:left; border-bottom:1px solid #2b3a54; vertical-align:top; }
.fundamental-opps-body th { color:#a7b9d0; font-weight:600; }
.fundamental-opps-body tr.is-open td:nth-child(2), .fundamental-opps-status.is-open { color:#78ddc7; }
.fundamental-opps-body tr.is-top td { background:rgba(120,221,199,.10); }
.fundamental-opps-body tr.is-bottom td { background:rgba(225,120,120,.10); }
.fundamental-decile-names { overflow-wrap:anywhere; min-width:120px; }
.fundamental-opps-list { padding-left:18px; margin:4px 0; font-size:13px; }
.fundamental-opps-body h4 { margin:12px 0 2px; }
.fundamental-portfolio { margin-top:12px; padding-top:8px; border-top:1px solid #2b3a54; }
.fundamental-sector-score, .fundamental-v3-score, .fundamental-score-history { display:block; color:#a7b9d0; font-size:12px; margin-top:2px; }
.fundamental-history { margin-top:10px; }
.fundamental-history small { display:block; color:#a7b9d0; font-size:11px; }
.fundamental-rank-history { display:block; width:100%; max-width:260px; height:auto; background:#0c1626; border:1px solid #2b3a54; border-radius:6px; margin-top:4px; }
.fundamental-rank-history polyline { fill:none; stroke:#78ddc7; stroke-width:2; }
.fundamental-compare { margin:0 0 14px; padding:10px 12px; border:1px solid #2b3a54; border-radius:12px; background:#0f1a2c; }
.fundamental-compare summary { cursor:pointer; color:#78ddc7; font-weight:600; }
.fundamental-compare table { width:100%; border-collapse:collapse; font-size:12px; font-variant-numeric:tabular-nums; margin-top:8px; }
.fundamental-compare th, .fundamental-compare td { padding:5px 6px; border-bottom:1px solid #2b3a54; text-align:right; white-space:nowrap; }
.fundamental-compare tbody th { text-align:left; color:#a7b9d0; font-weight:500; }
.fundamental-screener { margin:12px 0; padding:12px; border:1px solid #2b3a54; border-radius:12px; background:#0f1a2c; }
.fundamental-screener > summary { cursor:pointer; color:#78ddc7; font-weight:600; }
.fundamental-screener select { max-width:100%; }
.fundamental-filter-row { display:grid; grid-template-columns:minmax(0,1.7fr) 58px minmax(0,1fr) 38px; gap:6px; margin:6px 0; align-items:center; }
.fundamental-filter-row select, .fundamental-filter-row input { min-width:0; width:100%; }
.fundamental-filter-row button { padding:6px 0; min-width:0; }
.fundamental-screener table { width:100%; border-collapse:collapse; font-size:12px; font-variant-numeric:tabular-nums; }
.fundamental-screener th, .fundamental-screener td { padding:5px 5px; border-bottom:1px solid #2b3a54; white-space:nowrap; text-align:right; }
.fundamental-screener th:first-child, .fundamental-screener td:first-child { text-align:left; }
.fundamental-screener th { color:#a7b9d0; font-weight:600; }
.fundamental-screener tr.is-top td { background:rgba(120,221,199,.10); }
.fundamental-screener tr.is-bottom td { background:rgba(225,120,120,.10); }
.fundamental-screener small, .fundamental-screener p { font-size:12px; }
.fundamental-portfolio p { margin:4px 0; font-size:13px; }
.fundamental-portfolio-chart { display:block; width:100%; height:auto; max-height:140px; background:#0c1626; border:1px solid #2b3a54; border-radius:8px; margin-top:6px; }
.fundamental-portfolio-chart .pf-value { fill:none; stroke:#78ddc7; stroke-width:2; }
.fundamental-portfolio-chart .pf-index { fill:none; stroke:#7d8ba1; stroke-width:1.5; stroke-dasharray:4 3; }
.fundamental-notify { margin-top:12px; }
.fundamental-notify summary { cursor:pointer; color:#78ddc7; }
.fundamental-notify small { display:block; color:#a7b9d0; font-size:11px; margin:6px 0 2px; }
.fundamental-notify-horizons { display:flex; flex-wrap:wrap; gap:8px; font-size:12px; }
.fundamental-notify-log { padding-left:18px; font-size:12px; margin:4px 0; }
.fundamental-inputs summary, .fundamental-v3 summary, .fundamental-v3-pillars summary, .fundamental-fair-value summary { cursor:pointer; color:#78ddc7; }
.fundamental-inputs small, .fundamental-v3 small, .fundamental-v3-pillars small, .fundamental-fair-value small { display:block; color:#a7b9d0; font-size:11px; line-height:1.4; }
.fundamental-inputs dt, .fundamental-v3 dt, .fundamental-v3-pillars dt, .fundamental-fair-value dt { margin-top:8px; }
.fundamental-input-source { overflow-wrap:anywhere; }
.fundamental-horizons summary { cursor:pointer; color:#78ddc7; }
.fundamental-horizons-wrap { overflow-x:auto; margin:8px 0 4px; }
.fundamental-evidence table { width:100%; border-collapse:collapse; font-size:11px; font-variant-numeric:tabular-nums; }
.fundamental-evidence th, .fundamental-evidence td { padding:5px 3px; text-align:right; white-space:nowrap; border-bottom:1px solid #2b3a54; }
.fundamental-evidence th:first-child, .fundamental-evidence td:first-child, .fundamental-evidence th:nth-child(2), .fundamental-evidence td:nth-child(2) { text-align:left; }
.fundamental-evidence th { color:#a7b9d0; font-weight:600; }
.fundamental-horizons table { width:100%; border-collapse:collapse; font-size:12px; font-variant-numeric:tabular-nums; }
.fundamental-horizons th, .fundamental-horizons td { padding:5px 4px; text-align:right; white-space:nowrap; border-bottom:1px solid #2b3a54; }
.fundamental-horizons th:first-child, .fundamental-horizons td:first-child { text-align:left; }
.fundamental-horizons th { color:#a7b9d0; font-weight:600; }
.fundamental-horizons tr.is-selected td { background:rgba(120,221,199,.10); color:#e8f6f2; }
.fundamental-horizons small { display:block; color:#a7b9d0; font-size:11px; line-height:1.4; }
.fundamental-recent { display:grid; gap:8px; }
.fundamental-recent button { text-align:left; }
.fundamental-schedules { margin:16px 0; padding:14px; border:1px solid #314059; border-radius:10px; }
.fundamental-schedules summary { cursor:pointer; color:#78ddc7; font-weight:600; }
.fundamental-schedules > label,.fundamental-schedules > small { display:block; margin:10px 0; }
.fundamental-schedules > button { margin:10px 8px 4px 0; }
.fundamental-weekdays { display:flex !important; align-items:center; gap:8px; }
#fundamentalRoot .fundamental-weekdays input { width:auto; flex:0 0 auto; padding:0; }
.fundamental-schedule-card { margin-top:14px; padding-top:12px; border-top:1px solid #2b3a54; }
.fundamental-schedule-card h4 { margin:0; color:#cce5f4; }
.fundamental-ai-panel { margin:16px 0; padding:14px; border:1px solid #314059; border-radius:10px; }
.fundamental-ai-panel summary { cursor:pointer; color:#78ddc7; font-weight:600; }
.fundamental-ai-panel > a { display:block; color:#93caff; margin:10px 0; }
.fundamental-ai-panel > button { margin:6px 8px 6px 0; }
.fundamental-ai-device { padding:12px 0; border-top:1px solid #2b3a54; }
.fundamental-ai-device p { margin:4px 0; }
.fundamental-ai-secret:not(:empty) { border-left:3px solid #d8ba78; padding-left:12px; margin-bottom:18px; }
.fundamental-ai-secret button { margin-top:8px; }
.fundamental-ai-result { border-top:1px solid #314059; margin-top:16px; padding-top:12px; }
.fundamental-ai-result h4 { margin:0 0 10px; }
.fundamental-ai-result button { margin-top:8px; }
.fundamental-ai-result small { display:block; color:#a8b9d1; margin-top:6px; }
@media(max-width:480px) { #fundamentalRoot { padding:16px; } .fundamental-header h2 { font-size:22px; } .fundamental-card { padding:14px; } }
@media(max-width:768px) { .header > div:first-child { flex-direction:column; gap:16px; } .header .search-actions { flex-wrap:wrap; max-width:100%; } }
