/* Chart-first workspace. Atmosphere stays at the perimeter; data stays opaque. */
.workspace{--sidebar-width:292px;background:#06080b}
.workspace:before{content:'';position:absolute;pointer-events:none;z-index:-1;inset:0;background:radial-gradient(ellipse at 99% 10%,#b2763522,transparent 32%),radial-gradient(ellipse at 75% 110%,#37527620,transparent 35%),radial-gradient(circle at 93% 14%,#e8cf9d88 0 1px,transparent 1.5px),radial-gradient(circle at 84% 7%,#e0e6f055 0 1px,transparent 1.5px),radial-gradient(circle at 66% 3%,#e8cf9d66 0 1px,transparent 1.5px)}
.workspace:after{content:'';position:absolute;pointer-events:none;z-index:-1;width:760px;height:360px;right:-360px;top:-310px;border:1px solid #c09a6444;border-radius:50%;transform:rotate(-18deg);box-shadow:0 0 30px #bd85391c}
.workspace .workspace-bar{height:58px;min-height:58px;border-color:#ffffff0e}
.workspace .instrument-tabs>button{height:58px;min-height:58px}
.workspace .chart-panel{padding:18px 0 12px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#29303a transparent;background:transparent}
.workspace .chart-head,.workspace.inputs-open .chart-head{min-height:34px}
.workspace .chart-heading h2,.workspace.inputs-open .chart-heading h2{font-size:19px;letter-spacing:-.4px}
.workspace .chart-heading>span{font-size:9px}
.workspace .scenario-summary{min-height:76px;padding:12px 0;gap:30px;flex-wrap:nowrap;justify-content:space-between}
.workspace .primary-result{flex:0 1 auto;min-width:0}
.workspace .scenario-summary strong,.workspace.inputs-open .scenario-summary strong{font-size:32px}
.workspace .primary-result>span:first-child{font-size:10px}
.workspace .result-line{margin-top:4px}
.workspace .scenario-details{border:0;padding:0;text-align:right}
.workspace .scenario-details .scenario-price,.workspace.inputs-open .scenario-details .scenario-price{display:block;text-align:right}
.workspace .chart-toolbar,.workspace.inputs-open .chart-toolbar{min-height:38px;padding:0 0 8px;justify-content:space-between;border:0;gap:10px}
.workspace .segmented{background:none;border:0;padding:0;gap:15px}
.workspace .segmented button{padding:5px 0;border-radius:0;min-height:28px;border-bottom:1px solid transparent}
.workspace .segmented button.active{background:none;border-color:#cbb38b;color:#e4c99f}
.workspace .chart-options{position:relative;margin-left:auto;z-index:5}
.workspace .chart-options>summary{list-style:none;cursor:pointer;color:#a3aab6;font-size:11px;padding:8px 0 8px 15px;display:flex;gap:16px}
.workspace .chart-options>summary::-webkit-details-marker{display:none}
.workspace .chart-options-body{position:absolute;right:0;top:36px;width:300px;padding:18px;background:#10141b;border:1px solid #333843;border-radius:12px;box-shadow:0 18px 60px #000b;display:flex;flex-wrap:wrap;gap:14px}
.workspace .chart-options-body .plot-tools{margin:0;flex:1}.workspace .chart-options-body .pin-scenario{margin:0}
.workspace .stage-plot{min-height:360px;flex:1 0 360px;margin:0;border:1px solid #a5b9d010;border-radius:12px;overflow:hidden;background:#080c12;box-shadow:inset 0 1px #f0cf9420,0 15px 65px #0003}
.workspace .chart-container,.workspace .surface-container{background:linear-gradient(160deg,#0b1018,#06090e 70%)}
.workspace .chart-legend{padding:9px 2px;min-height:34px;font-size:10px;color:#8995a5;gap:18px}
.workspace .chart-legend>button{font-size:10px}
.workspace .simulation-heading{border-top:1px solid #ffffff0c;padding-top:7px}
.workspace .simulation-heading>span{font-size:10px;font-weight:400;color:#8995a5}
.workspace .simulation-heading button{font-size:10px}
.workspace .control-dock{padding:8px 0 13px;gap:26px;grid-template-columns:1.1fr 1fr .8fr;border:0}
.workspace .range-label{margin-bottom:8px;min-height:26px}
.workspace .range-label label,.workspace .vol-control label{font-size:11px}
.workspace .market-change{float:right;margin:0;position:relative;z-index:1}
.workspace .market-change>label{display:none}
.workspace .change-entry{height:22px;min-width:60px;border:0;background:none}.workspace .change-entry input{height:22px;font-size:11px}
.workspace #change{width:calc(100% - 76px);margin-top:9px}
.workspace .range-ends{display:none}
.workspace .market-price-entry{background:#0e141d;border-color:#2c3542}
.workspace .market-price-entry input{height:29px;font-size:13px}
.workspace .time-chips button,.workspace .time-chips input{height:29px;min-height:29px}
.workspace .vol-control{gap:12px 8px}
.workspace .analysis-drawer{flex-shrink:0;border-top:1px solid #ffffff0d;padding:0 2px}
.workspace .analysis-drawer>summary{list-style:none;display:flex;justify-content:space-between;cursor:pointer;padding:12px 0 3px;color:#8794a6;font-size:11px}
.workspace .analysis-drawer>summary::-webkit-details-marker{display:none}
.workspace .analysis-drawer[open]>summary{padding-bottom:16px;color:#d8c3a4}
.workspace .analysis-drawer .stats{display:grid;height:auto;min-height:65px;margin-bottom:16px;border:0}
.workspace .analysis-drawer .stat strong{font-size:18px}
.workspace .parameters-dialog,.workspace .parameters-dialog .parameters{background:#0b0e13;border-color:#ffffff10}
.workspace .parameters-dialog .parameters{padding:22px 18px}
.workspace .parameters h2{font-size:15px}
.workspace .parameters .source-note{display:none}
.workspace .parameters .example-label{margin:0 0 16px;font-size:9px}
.workspace .parameters .field>span{font-size:10px;color:#95a1b3}
.workspace .parameters .field input,.workspace .parameters .field select{height:37px;font-size:13px;background:#10151d;border-color:#ffffff12;border-radius:6px}
.workspace .parameters .field{margin-bottom:12px}
.workspace .parameters #manual-greeks .field input{font-size:14px}
.workspace .parameters .input-section>summary{min-height:43px;font-size:11px}
.workspace .parameters #greeks-helper{padding:0;border:0;background:none;margin:4px 0 15px}
.workspace .parameters .form-hint{font-size:9px!important;line-height:1.7}
@media(min-width:1000px){.workspace .parameters-dialog{inset:58px auto 0 0;height:calc(100% - 58px);max-height:calc(100% - 58px)}.workspace.inputs-open>.chart-panel{margin-left:calc(var(--sidebar-width) + 12px)}.workspace .stage-plot{min-height:360px;flex-basis:360px}}
@media(min-width:1500px){.workspace{--sidebar-width:304px}.workspace .stage-plot{min-height:400px;flex-basis:400px}}
@media(max-width:999px){.workspace .stage-plot{min-height:360px;flex-basis:360px}.workspace .control-dock{grid-template-columns:1fr 1fr}.workspace .vol-control{grid-column:1/-1}}
@media(max-width:700px){.workspace .chart-panel{padding-top:14px}.workspace .chart-head,.workspace.inputs-open .chart-head{min-height:37px}.workspace .chart-heading h2,.workspace.inputs-open .chart-heading h2{font-size:17px}.workspace .scenario-summary{min-height:77px;padding:11px 0;gap:12px}.workspace .scenario-summary strong,.workspace.inputs-open .scenario-summary strong{font-size:28px}.workspace .stage-plot{min-height:340px;flex-basis:340px}.workspace .chart-axis-label{display:none}.workspace .chart-options-body{width:280px}.workspace .control-dock{gap:16px 12px;padding-top:12px}.workspace .vol-control{grid-template-columns:120px 1fr 38px}.workspace .market-price-entry{width:auto}.workspace .market-price-entry input{width:76px;font-size:16px}.workspace .range-label{flex-wrap:wrap}.workspace .parameters .field input,.workspace .parameters .field select{font-size:16px;height:42px}.workspace .analysis-drawer .stats{grid-template-columns:1fr 1fr;gap:16px}.workspace .stress-presets{flex-wrap:wrap}.workspace .stress-presets>span{width:100%}.workspace .stress-presets button{flex-basis:45%}}
.workspace .chart-options{padding:0;border:0;background:none;border-radius:0;margin-top:0;margin-bottom:0}
.workspace .chart-options>summary:after,.workspace .analysis-drawer>summary:after{content:none}
.workspace .analysis-drawer{background:none;border-radius:0;margin:0}
.workspace .analysis-drawer>summary>span{margin-left:auto}
