:root{color-scheme:dark;--bg:#09111e;--panel:#111d2e;--panel2:#142438;--line:#223248;--text:#edf4fc;--muted:#91a6bb;--cyan:#41d0ce;--green:#58d7a3;--yellow:#f0bf65;--red:#ff777e;--blue:#77a9fb;--radius:17px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:15px/1.65 -apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif}body:before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse 70% 20% at 55% 0%,#122d44 0%,transparent 80%)}button,input{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}.app-shell{max-width:1180px;padding:0 26px;margin:0 auto}.topbar{height:72px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #263449}.brand{display:flex;gap:12px;align-items:center}.brand-mark{font-size:25px;font-weight:900;letter-spacing:-2px;color:var(--cyan)}.brand-dot{width:8px;height:8px;display:inline-block;border-radius:50%;background:var(--green);margin:0 5px 3px 0}.brand-title{font-size:12px;letter-spacing:.14em;color:#90a5ba}.brand-title strong{color:#e9f6ff}.top-pill{font-size:10px;letter-spacing:.13em;background:#162735;border:1px solid #2d4f54;color:#a7e2d5;padding:6px 13px;border-radius:99px}.pulse,.notice-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--green);vertical-align:middle;margin-right:6px}.main{padding:36px 0 26px}.hero{padding:22px 0 31px}.eyebrow,.section-label{font-size:11px;color:var(--cyan);font-weight:800;letter-spacing:.15em}.hero-layout{display:flex;justify-content:space-between;align-items:center;gap:20px}.hero h1{font-size:clamp(28px,4.6vw,47px);line-height:1.25;letter-spacing:-.055em;margin:12px 0 15px}.hero h1 em{font-style:normal;color:var(--cyan)}.hero p{color:#a8bfd2;max-width:670px;margin:0;line-height:1.85;font-size:14px}.hero p strong{color:#e3f6f3}.hero-side{min-width:185px;text-align:center;border:1px solid #254455;background:linear-gradient(135deg,#102c35,#112134);border-radius:20px;padding:15px 20px}.stamp{font-weight:900;font-size:39px;color:var(--green);letter-spacing:-2px;line-height:1.4}.hero-side span{font-size:11px;color:#b0c6d9}.hero-notice{margin-top:25px;border-radius:11px;padding:11px 14px;background:#1b293b;color:#bfcfe0;font-size:12px;border:1px solid #2a3a50}.hero-notice b{color:var(--yellow)}.toolbar{display:flex;justify-content:space-between;align-items:center;padding:18px 20px;background:#0f1b2b;border:1px solid var(--line);border-radius:14px;gap:16px}.toolbar-title{font-weight:700}.asof{color:var(--cyan);margin-left:7px}.toolbar-sub{color:var(--muted);font-size:12px}.toolbar-actions{display:flex;gap:8px;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;white-space:nowrap;border-radius:10px;padding:9px 14px;line-height:1.4;font-weight:700;border:1px solid transparent;font-size:13px;transition:background .15s,border .15s;color:var(--text);user-select:none}.btn:hover{filter:brightness(1.12)}.btn:focus-visible,.range-btn:focus-visible{outline:2px solid var(--cyan);outline-offset:3px}.btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.btn-secondary{background:#1d3546;border-color:#2b4c5d;color:#cbf7f2}.btn-outline{background:#152337;border-color:#304256;color:#d3dfef}.btn-primary{background:linear-gradient(95deg,#35c5ba,#359daa);color:#071722;box-shadow:0 8px 24px #0d807625}.btn-big{width:100%;padding:15px;font-size:15px}.btn-big span{margin-left:10px}.section-label{display:flex;align-items:center;gap:9px;margin:36px 0 14px}.section-index{color:#6492a7;background:#162b39;border:1px solid #2a4b58;border-radius:5px;padding:1px 7px;font-size:11px}.section-note{color:var(--muted);font-size:11px;font-weight:500;letter-spacing:0;margin-left:auto}.signals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.signal{min-height:158px;padding:19px 20px;background:linear-gradient(160deg,#142437,#101c2c);border:1px solid #263a50;border-radius:var(--radius)}.signal-top{display:flex;justify-content:space-between;align-items:center}.signal-icon{font-size:12px;border:1px solid #3b5363;width:29px;height:29px;border-radius:8px;display:grid;place-items:center;color:#b6d5e9;font-weight:900}.micro{font-size:9px;color:#6f94ac;letter-spacing:.12em}.signal-name{margin-top:14px;color:#b9c9db;font-size:13px;font-weight:600}.signal-value{font-size:27px;line-height:1.5;font-weight:900;letter-spacing:-.04em}.signal-sub{font-size:11px;color:var(--muted);min-height:21px}.green{color:var(--green)}.yellow{color:var(--yellow)}.red{color:var(--red)}.muted{color:var(--muted)}.panel{background:linear-gradient(140deg,#111e2f,#0e1a2b);border:1px solid #263b50;border-radius:var(--radius)}.scenario-panel{padding:23px}.scenario-head{display:flex;justify-content:space-between;gap:12px}.scenario-head h2,.historical-panel h2,.report-heading h2{font-size:21px;letter-spacing:-.035em;line-height:1.3;margin:0 0 7px}.scenario-head p,.historical-panel p,.report-heading p{color:var(--muted);font-size:13px;margin:0 0 16px}.info-tag{height:28px;border:1px solid #365465;border-radius:99px;padding:4px 11px;font-size:10px;color:#b3d5e3;white-space:nowrap;letter-spacing:.08em}.range-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.range-btn{background:#0c1829;border:1px solid #2c4157;border-radius:12px;color:#dceaf8;padding:14px;font-size:19px;font-weight:900;line-height:1.2}.range-btn small{display:block;font-size:11px;font-weight:500;color:var(--muted);margin-top:7px}.range-btn.active{background:#133b44;border:1px solid var(--cyan);color:#a5fff2;box-shadow:inset 0 0 0 1px #26636b}.range-btn.active small{color:#b8e6df}.price-grid{margin:18px 0;display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.price-input,.price-block{border:1px solid #2b4056;background:#0a1726;border-radius:12px;padding:11px 14px;color:var(--muted);font-size:11px}.price-input input{display:block;background:none;border:0;outline:0;color:var(--text);font-size:20px;font-weight:800;width:100%;margin-top:3px}.price-input input:focus{outline:2px solid #288c8c;border-radius:4px}.price-block small{display:block}.price-block strong{display:block;color:var(--yellow);font-size:23px;line-height:1.65}.smallprint{color:#7893a9;font-size:11px;text-align:center;margin:12px 0 0}.report{margin-top:36px;padding:23px;border:1px solid #3c756d;background:linear-gradient(180deg,#112631,#0d1a29 65%);border-radius:var(--radius)}.report.hidden,.toast.hidden{display:none}.report-heading{display:flex;justify-content:space-between;gap:16px;padding-bottom:14px;border-bottom:1px solid #29414f}.report-heading .section-label{margin:0 0 12px}.report-heading p{margin:0}.report-badge{align-self:flex-start;border-radius:99px;padding:5px 11px;border:1px solid #31575c;color:#b0e1d5;font-size:10px;font-weight:800;white-space:nowrap}.report-block{padding:23px 0;border-bottom:1px solid #263747}.report-block:last-child{border:0}.report-block h3{margin:0 0 12px;font-size:17px;letter-spacing:-.02em}.report-block p{margin:6px 0;line-height:1.95;color:#c7d8e9;font-size:14px}.report-block strong{color:#f3fcff}.report-block .minor{color:#8eacc1;font-size:12px}.report-block .callout{border-left:3px solid var(--cyan);background:#172f3e;border-radius:0 10px 10px 0;padding:12px 17px;margin:15px 0;color:#d3eeef}.report-actions{display:flex;flex-wrap:wrap;gap:8px;padding-top:19px}.historical-panel{padding:24px}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;min-width:670px;font-size:13px;text-align:left}th,td{padding:12px 10px;border-bottom:1px solid #294055;vertical-align:top}th{color:#91b3c6;font-weight:700;font-size:11px;letter-spacing:.03em}td{color:#cddce8}.negative{color:var(--red);font-weight:700}.history-footer{margin-top:14px;color:#7897aa;font-size:11px;word-break:break-word}.history-footer code{color:#a1c7cc}.safety{display:flex;align-items:flex-start;gap:12px;padding:20px;margin-top:33px;background:#102d2d;border:1px solid #23534e;border-radius:14px}.safety-icon{color:var(--green);font-size:20px;font-weight:900}.safety strong{color:#a5eacb}.safety p{margin:4px 0 0;color:#a9c5c7;font-size:12px}footer{display:flex;justify-content:space-between;gap:15px;padding:25px 0 36px;font-size:11px;color:#7891a5;border-top:1px solid #24354b;margin-top:24px;letter-spacing:.06em}footer span{letter-spacing:0}.toast{position:fixed;right:20px;bottom:20px;background:#173e3d;border:1px solid #438a7d;color:#e6fffa;padding:12px 18px;border-radius:12px;box-shadow:0 10px 25px #0005;max-width:calc(100vw - 40px);font-size:13px;z-index:8}@media(max-width:900px){.signals{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-side{min-width:130px}.app-shell{padding:0 18px}}@media(max-width:600px){.topbar{height:62px}.brand-title{display:none}.top-pill{font-size:9px}.main{padding-top:19px}.hero-layout{align-items:flex-start}.hero-side{display:none}.hero{padding-bottom:18px}.toolbar{display:block;padding:16px}.toolbar-actions{margin-top:14px}.toolbar-actions .btn{flex:1}.signals{gap:9px}.signal{padding:14px 12px;min-height:142px}.signal-top .micro{font-size:8px}.signal-value{font-size:23px}.signal-sub{font-size:10px}.section-label{font-size:10px}.section-note{font-size:9px;max-width:145px;text-align:right}.scenario-panel,.historical-panel,.report{padding:16px}.range-btn{font-size:17px;padding:11px 6px}.range-btn small{font-size:10px}.price-grid{grid-template-columns:1fr 1fr}.price-input{grid-column:span 2}.price-block strong{font-size:20px}.scenario-head h2{font-size:18px}.scenario-head .info-tag{display:none}.report-block{padding:16px 0}.report-block h3{font-size:16px}footer{display:block}footer span{display:block;margin-top:4px}}

/* SCR AI Center V2: optional server-mediated AI analysis */
.ai-section{margin-top:42px}
.ai-panel{padding:24px}
.ai-caution{padding:15px 17px;border:1px solid rgba(52,191,184,.35);background:rgba(52,191,184,.06);border-radius:12px;font-size:14px;line-height:1.7}
.ai-caution code{color:#80ded8}
.ai-controls{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-top:18px}
.ai-code-label{display:flex;flex-direction:column;gap:9px;flex:1;min-width:235px;font-weight:700;font-size:14px}
.ai-code-label span{font-weight:400;color:#8295ac;font-size:12px}
.ai-code-label input{border:1px solid #35506c;border-radius:11px;background:#0b1829;color:#f5fbff;min-height:48px;padding:12px;font-size:15px;max-width:100%}
.ai-code-label input:focus-visible{outline:2px solid #40c9c0;outline-offset:2px}
.ai-run-btn{min-height:48px;flex:1;min-width:220px}
.ai-run-btn:disabled{opacity:.65;cursor:progress}
.ai-status{color:#a7b8c9;font-size:14px;margin-top:14px;line-height:1.6}
.ai-result{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.85;margin:18px 0;padding:22px;border:1px solid #2d5066;background:#0b192a;border-radius:14px;color:#e1ecf6;font-size:15px}
@media(max-width:600px){.ai-panel{padding:16px}.ai-controls{display:flex;flex-direction:column;align-items:stretch}.ai-code-label,.ai-run-btn{width:100%;min-width:0}.ai-result{padding:15px}}

/* SCR AI V3 - manual ChatGPT report notebook; all saved data stays in browser. */
.notebook{margin-top:42px}
.notebook-panel{padding:24px}
.privacy-note{margin:10px 0 20px;border-left:3px solid #46c5b3;padding:12px 15px;background:rgba(41,109,112,.14);border-radius:0 10px 10px 0;color:#b9d4dd;font-size:12px;line-height:1.8}
.notebook-fields{display:grid;grid-template-columns:2fr 1fr;gap:12px}
.notebook-fields label,.note-body-label{display:flex;flex-direction:column;gap:8px;color:#bbccda;font-size:12px;font-weight:700}
.notebook-fields input,.notebook-panel textarea{display:block;width:100%;padding:13px 14px;border-radius:10px;background:#091727;border:1px solid #385065;color:#e9f8ff;font-size:14px;outline:0}
.notebook-panel textarea{resize:vertical;margin-top:8px;line-height:1.65;min-height:130px}
.notebook-fields input:focus-visible,.notebook-panel textarea:focus-visible{outline:2px solid #43c7b9;outline-offset:2px}
.note-body-label{margin-top:15px}
.note-shelf-header{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #294054;margin-top:24px;padding-top:15px}
.note-shelf-header h3{margin:0;font-size:17px}
.note-shelf-header span{color:#93adbb;font-size:13px}
.note-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:13px}
.note-entry{background:#13263a;border:1px solid #305065;border-radius:11px;color:#ecfaff;padding:15px;text-align:left;display:flex;flex-direction:column;gap:9px;min-width:0;cursor:pointer}
.note-entry strong{font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.note-entry small{font-size:11px;color:#91acbd}
.note-entry:hover{border-color:#4bbaa7;background:#183141}
.note-entry:focus-visible{outline:2px solid #3ccbbb;outline-offset:2px}
.empty-note{color:#8cabbc;font-size:13px}
.note-view{border:1px solid #3e7074;background:#0b1e2b;padding:20px;border-radius:13px;margin-top:20px}
.note-view.hidden{display:none}
.note-view h3{font-size:19px;margin:0 0 6px}
.note-view-body{font-size:14px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;color:#d9e9f5;padding:15px 0;border-top:1px solid #2a4553;margin-top:14px}
@media(max-width:600px){.notebook-panel{padding:16px}.notebook-fields{grid-template-columns:1fr}.note-list{grid-template-columns:1fr}.note-view{padding:15px}}
/* Long source filenames in reports must wrap on mobile rather than stretching the page. */
.report-block p,.report-block .callout,.report-content,.notebook-panel{overflow-wrap:anywhere;word-break:normal}

/* SCR V6: Accessible, injection-safe Markdown presentation */
.ai-markdown{white-space:normal;line-height:1.8}
.ai-markdown p{margin:0 0 14px;color:#d9e9f4;overflow-wrap:anywhere}
.ai-markdown h3{font-size:18px;line-height:1.5;color:#e9ffff;margin:27px 0 11px;padding-top:15px;border-top:1px solid #263f52}
.ai-markdown h3:first-child{margin-top:0;border:0;padding-top:0}
.ai-markdown h4{font-size:16px;margin:18px 0 8px;color:#d2eff4}
.ai-markdown strong{color:#ffffff;font-weight:800}
.ai-markdown em{color:#b7e1e6}
.ai-markdown ul,.ai-markdown ol{padding-left:23px;margin:8px 0 18px}
.ai-markdown li{padding-left:4px;margin:7px 0;color:#d8e8f5;overflow-wrap:anywhere}
.ai-markdown li::marker{color:#51d0cb}
.ai-markdown blockquote{border-left:3px solid #41d0ce;margin:15px 0;padding:9px 14px;background:#142d3e;border-radius:0 9px 9px 0;color:#cbe9e8}
.ai-markdown code{font-family:ui-monospace,Consolas,monospace;color:#c6efe8;background:#21374c;padding:2px 4px;border-radius:4px;overflow-wrap:anywhere}
.ai-markdown pre{overflow:auto;padding:15px;background:#071322;border:1px solid #2c4457;border-radius:10px}
.ai-markdown pre code{padding:0;background:none;white-space:pre}
.ai-markdown hr{border:0;border-top:1px solid #2c4457;margin:22px 0}
@media(max-width:600px){.ai-markdown h3{font-size:17px}.ai-markdown p,.ai-markdown li{font-size:14px}}
