/* All styles scoped: existing ToolYak/global CSS is untouched. */
.tysc{max-width:940px!important;margin:22px auto;color:#0f284d;font-family:'Segoe UI',Arial,sans-serif;font-size:14px;overflow:visible!important;box-sizing:border-box}
.tysc *{box-sizing:border-box}.tysc-layout{display:grid;grid-template-columns:minmax(0,390px) minmax(0,1fr);gap:16px;align-items:start}.tysc-panel{min-width:0;border:1px solid #d6e0e6;background:#fff;padding:16px}.tysc-form-panel{background:#e1eff0;border-color:#0f284d}.tysc h2{margin:0 0 13px;color:#0f284d;font-size:19px;font-weight:700}.tysc .tysc-results>h2{background:#228b22;color:#fff;text-align:center;padding:7px;margin:-16px -16px 14px}.tysc-field{min-width:0}.tysc .tysc-field label{font-size:12px;font-weight:650;display:block;margin:0 0 5px;color:#0f284d}.tysc .tysc-field input,.tysc .tysc-field select{width:100%;min-width:0;height:40px;font-size:16px!important;font-family:inherit;border:1px solid #0f284d;border-radius:2px;background:white;color:#0f284d;padding:7px 10px;line-height:1.3}.tysc .tysc-field input:focus-visible,.tysc .tysc-field select:focus-visible,.tysc button:focus-visible,.tysc summary:focus-visible{outline:3px solid #7ebcdb;outline-offset:2px}.tysc-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.tysc .tysc-field[hidden]{display:none!important}.tysc-field-error{color:#a51f28;font-size:11px;display:block;min-height:0}.tysc-field-error:not(:empty){padding-top:3px}.tysc input[aria-invalid=true]{border:2px solid #b4222b}.tysc-hint{font-size:12px;color:#4d5c69;line-height:1.5;margin:11px 0}.tysc-buttons{display:flex;gap:8px;margin-top:12px}.tysc .tysc-buttons button{flex:1;min-width:0;margin:0!important;padding:10px 8px;font-size:15px;border-radius:2px;cursor:pointer}.tysc .btn-calculate{background:#0f284d!important;color:white}.tysc .btn-reset{background:#4c4c4c!important;color:white}.tysc-status{font-size:12px;min-height:0;margin:8px 0 0;color:#a51f28}.tysc-status:empty{display:none}.tysc-empty{color:#64707b;font-size:13px}.tysc-primary{padding:12px;border-left:4px solid #228b22;background:#e9f5e9;margin-bottom:10px}.tysc-primary span,.tysc-metrics span,.tysc-equation span{display:block;font-size:12px;color:#4d5c69}.tysc-primary strong{display:block;font-size:25px;color:#0f284d;overflow-wrap:anywhere;line-height:1.35}.tysc-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.tysc-metrics>div{padding:8px;background:#f6f9fa;border:1px solid #e1e8eb;min-width:0}.tysc-metrics strong{font-size:15px;display:block;color:#0f284d;overflow-wrap:anywhere}.tysc-equation{background:#e1eff0;padding:10px;margin:10px 0}.tysc-equation strong{display:block;font-size:17px;overflow-wrap:anywhere;margin-top:3px}.tysc-explanation{font-size:12px;color:#364c5a;line-height:1.55;overflow-wrap:anywhere}.tysc-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.tysc .tysc-actions button,.tysc .tysc-chart-head button{background:#fff;color:#0f284d;border:1px solid #0f284d;border-radius:2px;font-size:12px;padding:7px 10px;cursor:pointer;margin:0}.tysc button:hover{filter:brightness(.94)}.tysc-chart-section{margin-top:16px;background:#fff;border:1px solid #d6e0e6;padding:14px}.tysc-chart-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.tysc-chart-head h3{margin:0;font-size:17px}.tysc-graph{width:100%;aspect-ratio:1.8;min-height:270px;overflow:hidden;background:#fff;border:1px solid #e2e9ee}.tysc-graph svg{width:100%;height:100%;display:block}.tysc-info{margin:18px 0;padding:15px;background:#fff;border:1px solid #e2e9ee;line-height:1.6;font-size:13px}.tysc-info h2{font-size:18px}.tysc-info h3{font-size:15px;color:#0f284d;margin:16px 0 5px}.tysc-info p{margin:8px 0}.tysc-info details{border-top:1px solid #dce5e9;padding:10px 0}.tysc-info summary{cursor:pointer;font-weight:650}.tysc [hidden]{display:none!important}@media(max-width:700px){.tysc{max-width:100%;padding:0 9px}.tysc-layout{grid-template-columns:1fr;gap:12px}.tysc-panel{padding:13px}.tysc .tysc-results>h2{margin:-13px -13px 12px}.tysc-graph{aspect-ratio:1.2;min-height:260px}}@media(max-width:365px){.tysc-fields{gap:7px}.tysc-metrics strong{font-size:13px}.tysc-chart-head{align-items:flex-start;flex-direction:column}}@media print{body *{visibility:hidden!important}.tysc,.tysc *{visibility:visible!important}.tysc{position:absolute;left:0;top:0;width:100%;max-width:none!important;margin:0}.tysc-layout{grid-template-columns:1fr 1.2fr}.tysc button,.tysc-info,.tysc-hint{display:none!important}.tysc-graph{height:350px;aspect-ratio:auto}.tysc-chart-section{break-inside:avoid}}

/* Result-first colorful graph (contained inside the result card). */
.tysc-results .tysc-chart-section{margin:12px 0 0;padding:10px;border:1px solid #cbddec;background:linear-gradient(120deg,#f0f8ff,#f1fff5,#fff9ec);border-radius:7px}
.tysc-results .tysc-chart-head{margin-bottom:9px}
.tysc-results .tysc-chart-head h3{font-size:14px;color:#0f284d}
.tysc-results .tysc-graph{min-height:210px;aspect-ratio:1.9;border-radius:6px;border:1px solid #bed5e5}
.tysc-results .tysc-graph svg{max-height:360px}
@media(max-width:700px){.tysc-results .tysc-graph{min-height:190px;aspect-ratio:1.35}}

/* v1.2: compact premium calculator and result-first visual hierarchy. */
.tysc{--tysc-navy:#0f284d;--tysc-green:#228b22;--tysc-ink:#14283e;--tysc-border:#d9e5ed;--tysc-muted:#53677b;max-width:1000px!important;font-size:14px;line-height:1.5}
.tysc .tysc-layout{grid-template-columns:minmax(0,370px) minmax(0,1fr);gap:18px}
.tysc .tysc-panel{padding:19px;border:1px solid var(--tysc-border);border-radius:14px;box-shadow:0 9px 30px rgba(15,40,77,.07),0 2px 5px rgba(15,40,77,.03)}
.tysc .tysc-form-panel{background:linear-gradient(155deg,#f0f8fa,#e1eff0 70%,#f6fbfd);border-color:#ccdee6}
.tysc .tysc-form-panel h2{font-size:21px;letter-spacing:-.45px;padding-bottom:12px;border-bottom:1px solid #cbdde4;margin-bottom:14px}
.tysc .tysc-field label{font-size:12px;letter-spacing:.01em;margin-bottom:6px}
.tysc .tysc-field input,.tysc .tysc-field select{height:45px;min-height:45px;padding:9px 12px;border:1px solid #bdcfdc!important;border-radius:8px!important;box-shadow:0 1px 2px rgba(15,40,77,.035);transition:border-color .18s,box-shadow .18s;background-color:#fff!important;color:var(--tysc-navy)!important;font-size:16px!important}
.tysc .tysc-field input:focus,.tysc .tysc-field select:focus{border-color:#2871a7!important;box-shadow:0 0 0 3px rgba(27,123,183,.15)}
.tysc .tysc-field input[aria-invalid=true]{border-color:#bc2837!important;background:#fff9f9!important}
.tysc .tysc-fields{gap:12px;margin-top:14px}
.tysc .tysc-buttons{gap:10px;margin-top:18px}
.tysc .tysc-buttons button{min-height:43px;border-radius:8px!important;font-size:14px!important;font-weight:650;box-shadow:0 2px 6px rgba(15,40,77,.09)}
.tysc .tysc-results{background:linear-gradient(180deg,#fff 0%,#fbfdff 100%)}
.tysc .tysc-results>h2{display:flex;align-items:center;justify-content:space-between;margin:-19px -19px 15px!important;padding:13px 19px!important;border-radius:13px 13px 0 0;background:linear-gradient(100deg,#0f284d,#1b4771)!important;color:#fff;text-align:left;font-size:18px;letter-spacing:-.15px}
.tysc .tysc-results>h2:after{content:'LIVE RESULTS';font-size:10px;letter-spacing:.09em;font-weight:750;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);border-radius:20px;padding:4px 8px}
.tysc .tysc-primary{position:relative;overflow:hidden;display:flex;flex-direction:column;gap:5px;margin:0;border:1px solid #bfdfcf;border-left:5px solid var(--tysc-green);border-radius:12px 12px 0 0;background:linear-gradient(115deg,#edf9f1,#f8fffa);padding:13px 17px 12px}
.tysc .tysc-primary:after{content:'';position:absolute;right:-22px;top:-32px;width:110px;height:110px;border-radius:50%;background:rgba(34,139,34,.045);pointer-events:none}
.tysc .tysc-primary-label{font-size:12px;font-weight:700;letter-spacing:.025em;color:#33634b}
.tysc .tysc-primary-label small{font-size:11px;font-weight:500;margin-left:8px;color:#678675}
.tysc .tysc-primary strong{font-size:clamp(26px,3.3vw,37px);line-height:1.2;letter-spacing:-.9px;font-weight:800;font-variant-numeric:tabular-nums;word-break:break-word}
.tysc .tysc-results .tysc-chart-section{margin:0 0 17px;padding:12px 13px 13px;background:linear-gradient(160deg,#f4faff,#f5fcff 50%,#f3fff7);border:1px solid #cbddec;border-top:0;border-radius:0 0 12px 12px;box-shadow:0 5px 14px rgba(15,40,77,.045)}
.tysc .tysc-chart-head{margin:0 0 9px;gap:10px}
.tysc .tysc-chart-head h3{font-size:13px;font-weight:750;letter-spacing:.02em;color:var(--tysc-ink)}
.tysc .tysc-chart-head button{background:#fff;border:1px solid #c9d9e4;color:#184870;border-radius:7px;font-weight:650;font-size:11px;padding:6px 10px;white-space:nowrap}
.tysc .tysc-results .tysc-graph{aspect-ratio:2.05;min-height:200px;border:1px solid #d6e5f0;border-radius:9px;box-shadow:0 2px 8px rgba(32,78,110,.055);background:#f7fbff}
.tysc .tysc-section-title{margin:12px 0 9px;font-size:13px;letter-spacing:.035em;text-transform:uppercase;font-weight:750;color:#486177}
.tysc .tysc-metrics{gap:9px}
.tysc .tysc-metrics>div{min-width:0;min-height:69px;padding:10px 12px;border:1px solid #e0e9ef;border-radius:9px;background:#fff;box-shadow:0 2px 8px rgba(15,40,77,.032)}
.tysc .tysc-metrics span{font-size:11px;font-weight:600;color:#65788a;margin-bottom:4px}
.tysc .tysc-metrics strong{font-size:17px;line-height:1.3;letter-spacing:-.2px;font-weight:750;font-variant-numeric:tabular-nums;color:var(--tysc-navy)}
.tysc .tysc-equation{border:1px solid #d2e4ed;border-left:4px solid #2873ac;border-radius:9px;background:#edf5fa;margin:12px 0 8px;padding:11px 13px}
.tysc .tysc-equation span{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.035em;color:#476a85}
.tysc .tysc-equation strong{font-size:18px;line-height:1.35;letter-spacing:-.3px}
.tysc .tysc-explanation{margin:10px 0 0;font-size:12px;line-height:1.7;color:#526477;padding:10px 12px;background:#f6f9fb;border-radius:8px;border:1px solid #e8eff2}
.tysc .tysc-actions{margin-top:14px;gap:8px}
.tysc .tysc-actions button{min-height:36px;flex:1 1 auto;border:1px solid #cbd9e4;background:#fff;border-radius:7px;color:#164469;font-size:12px;font-weight:700;padding:8px 12px}
.tysc .tysc-actions button:hover,.tysc .tysc-chart-head button:hover{background:#eaf4fb;filter:none}
.tysc .tysc-results [data-output]{min-width:0}
@media(max-width:740px){.tysc .tysc-layout{grid-template-columns:1fr;gap:13px}.tysc .tysc-panel{padding:15px}.tysc .tysc-results>h2{margin:-15px -15px 13px!important;border-radius:13px 13px 0 0;padding:12px 15px!important}.tysc .tysc-results .tysc-graph{aspect-ratio:1.65;min-height:200px}.tysc .tysc-primary strong{font-size:32px}}
@media(max-width:390px){.tysc .tysc-primary-label small{display:block;margin-left:0}.tysc .tysc-chart-head{flex-wrap:wrap}.tysc .tysc-metrics strong{font-size:15px}.tysc .tysc-results .tysc-graph{aspect-ratio:1.3;min-height:210px}}
@media print{.tysc .tysc-panel{box-shadow:none}.tysc .tysc-results>h2{-webkit-print-color-adjust:exact;print-color-adjust:exact}.tysc .tysc-results .tysc-graph{height:300px;aspect-ratio:auto}.tysc .tysc-chart-section{break-inside:avoid}}

/* v1.3: richly annotated, readable graph. */
.tysc .tysc-results .tysc-graph{aspect-ratio:1.875;min-height:235px;background:#f1f8ff}
.tysc .tysc-results .tysc-graph svg{max-height:none}
@media(max-width:740px){.tysc .tysc-results .tysc-graph{aspect-ratio:1.55;min-height:225px}}
@media(max-width:390px){.tysc .tysc-results .tysc-graph{aspect-ratio:1.3;min-height:230px}}

/* Graph sizing restored to the original responsive v1.3 presentation. */
.tysc .tysc-results{scroll-margin-top:80px}
.tysc .tysc-results .tysc-graph{overflow:hidden}
.tysc .tysc-results .tysc-graph svg{width:100%;min-width:0;height:100%;max-width:100%;display:block}
@media print{.tysc .tysc-results .tysc-graph svg{width:100%;height:100%}}

.tysc .tysc-rating{margin:20px 0 4px;padding:14px 18px;background:#fff;border:1px solid #d9e5ed;border-radius:12px}
