/* Outlytic Options Simulator 2.4.3 — uniform selected-leg rows */
.simulator2-header{align-items:flex-start}.version-pill{border:1px solid rgba(59,130,246,.45);background:rgba(59,130,246,.1);color:#bfdbfe;padding:8px 11px;border-radius:999px;font-size:12px;font-weight:700}.sim2-alert{margin:14px 0;padding:12px 14px;border-radius:10px}.sim2-alert.error{border:1px solid rgba(239,68,68,.45);background:rgba(127,29,29,.25);color:#fecaca}.sim2-form{display:grid;gap:16px}.sim2-panel{padding:18px}.sim2-field-grid{display:grid;grid-template-columns:repeat(5,minmax(160px,1fr));gap:12px}.engine-grid{grid-template-columns:repeat(6,minmax(145px,1fr))}.field-group{display:flex;flex-direction:column;gap:6px}.field-group>span,.field-readout>span{font-size:12px;color:#94a3b8}.field-group input,.field-group select,.builder-actions select,.leg-table input,.leg-table select{width:100%;border:1px solid rgba(148,163,184,.25);background:#0f172a;color:#e5e7eb;border-radius:9px;padding:9px 10px;box-sizing:border-box}.field-readout{display:flex;flex-direction:column;justify-content:center;padding:9px 11px;border:1px dashed rgba(148,163,184,.28);border-radius:9px;background:rgba(15,23,42,.42)}.field-readout strong{font-size:16px}.builder-header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.builder-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.builder-actions select{min-width:180px}.leg-table-wrap,.result-table-wrap{overflow:auto;border:1px solid rgba(148,163,184,.18);border-radius:12px}.leg-table,.result-table{width:100%;border-collapse:collapse;min-width:1250px}.leg-table th,.leg-table td,.result-table th,.result-table td{padding:8px;border-bottom:1px solid rgba(148,163,184,.14);text-align:right;white-space:nowrap}.leg-table th,.result-table th{position:sticky;top:0;background:#111827;color:#94a3b8;font-size:11px;text-transform:uppercase;letter-spacing:.05em;z-index:1}.leg-table th:first-child,.leg-table td:first-child,.result-table th:first-child,.result-table td:first-child{text-align:left}.leg-table input{min-width:90px}.leg-table input[type=date]{min-width:135px}.leg-table input[type=time]{min-width:105px}.remove-leg{border:1px solid rgba(239,68,68,.45);background:rgba(127,29,29,.3);color:#fecaca;width:30px;height:30px;border-radius:8px;font-size:18px;cursor:pointer}.sim2-submit-row{display:flex;gap:14px;align-items:center;margin-top:14px;color:#94a3b8;font-size:12px}.sim2-run{min-width:240px}.clear-form{margin:12px 0 20px}.result-block{display:grid;gap:18px;margin-top:24px}.result-heading{display:flex;justify-content:space-between;gap:16px;align-items:flex-end}.result-heading h2{margin:4px 0 0}.result-source{font-size:12px;color:#94a3b8;text-align:right;max-width:55%}.sim2-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;border:1px solid rgba(148,163,184,.18);border-radius:12px;overflow:hidden;background:rgba(148,163,184,.18)}.sim2-strip>div{display:flex;flex-direction:column;gap:4px;padding:12px;background:#111827}.sim2-strip span,.sim2-strip small{color:#94a3b8;font-size:11px}.result-section-title{margin:4px 0 -6px;font-size:15px;color:#cbd5e1}.prediction-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.prediction-summary-grid .lab-stat{border:1px solid rgba(148,163,184,.24);border-radius:10px;padding:11px;background:#101827}.prediction-summary-grid .lab-stat span,.prediction-summary-grid .lab-stat small{display:block;color:#94a3b8;font-size:11px}.prediction-summary-grid .lab-stat strong{display:block;font-size:18px;margin:5px 0}.lab-stat.current{border-color:rgba(34,197,94,.5)}.lab-stat.median{border-color:rgba(34,197,94,.5)}.lab-stat.p1e{border-color:rgba(168,85,247,.5)}.lab-stat.p2e{border-color:rgba(59,130,246,.5)}.lab-stat.p25{border-color:rgba(249,115,22,.5)}.lab-stat.p75{border-color:rgba(20,184,166,.5)}.lab-stat.p05{border-color:rgba(217,70,239,.5)}.lab-stat.p95{border-color:rgba(6,182,212,.5)}.strategy-metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.metric-card{border:1px solid rgba(148,163,184,.22);border-radius:10px;padding:12px;background:#101827}.metric-card span,.metric-card small{display:block;color:#94a3b8;font-size:11px}.metric-card strong{display:block;font-size:17px;margin:5px 0}.positive{color:#86efac!important}.negative{color:#fca5a5!important}.pnl-percentile-grid,.greeks-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.greeks-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.pnl-percentile-grid>div,.greeks-grid>div{padding:10px;border:1px solid rgba(148,163,184,.18);border-radius:9px;background:rgba(15,23,42,.52)}.pnl-percentile-grid span,.greeks-grid span{display:block;color:#94a3b8;font-size:10px}.pnl-percentile-grid strong,.greeks-grid strong{display:block;margin-top:4px;font-size:14px}.chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.chart-grid.full-first section:first-child{grid-column:1/-1}.table-panel{padding:16px}.result-table td:first-child{white-space:normal;min-width:210px}.result-table td small{display:block;color:#94a3b8;font-size:10px;white-space:normal;margin-top:4px}.method-details{border:1px solid rgba(148,163,184,.2);border-radius:12px;background:#101827}.method-details summary{cursor:pointer;padding:13px 15px;font-weight:700}.method-details>div{padding:0 15px 14px;color:#cbd5e1;line-height:1.55}.method-details p{margin:10px 0}.lab-chart{width:100%;display:block;border-radius:10px}.panel{overflow:hidden}



/* OUTLYTIC_OPTIONS_SIMULATOR_2_FORECAST_FIRST_V220 */
.reference-readout{
  gap:6px;
}
.reference-readout small{
  color:#94a3b8;
  font-size:10px;
  line-height:1.35;
}
.reference-refresh{
  width:100%;
  margin-top:4px;
  padding:7px 9px;
  font-size:11px;
}
.forecast-first-panel{
  border-color:rgba(34,197,94,.30);
  background:
    linear-gradient(
      180deg,
      rgba(20,83,45,.08),
      rgba(15,23,42,.28)
    );
}
.forecast-first-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
}
.forecast-first-header .button{
  flex:0 0 auto;
  min-width:210px;
}
.forecast-meta-strip{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:1px;
  margin:14px 0 12px;
  border:1px solid rgba(148,163,184,.18);
  border-radius:11px;
  overflow:hidden;
  background:rgba(148,163,184,.18);
}
.forecast-meta-strip>div{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
  padding:11px;
  background:#111827;
}
.forecast-meta-strip span,
.forecast-meta-strip small{
  color:#94a3b8;
  font-size:10px;
  overflow-wrap:anywhere;
}
.forecast-meta-strip strong{
  color:#e2e8f0;
  font-size:12px;
  overflow-wrap:anywhere;
}
.forecast-first-grid{
  margin-top:0;
}
.forecast-first-note{
  margin:11px 0 0;
  color:#94a3b8;
  font-size:11px;
  line-height:1.5;
}
.forecast-first-note strong{
  color:#bfdbfe;
}
.forecast-empty-state{
  margin-top:14px;
  padding:14px;
  border:1px dashed rgba(248,113,113,.40);
  border-radius:10px;
  background:rgba(127,29,29,.14);
  color:#fecaca;
  font-size:12px;
  line-height:1.5;
}

/* OUTLYTIC_OPTIONS_SIMULATOR_2_LADDER_V210 */
.option-ladder-builder{
  margin:16px 0;
  padding:14px;
  border:1px solid rgba(59,130,246,.28);
  border-radius:14px;
  background:
    linear-gradient(
      180deg,
      rgba(30,64,175,.10),
      rgba(15,23,42,.38)
    );
}
.option-ladder-heading{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  margin-bottom:12px;
}
.option-ladder-heading h3,
.manual-leg-heading h3{
  margin:0 0 5px;
  color:#e2e8f0;
  font-size:16px;
}
.option-ladder-heading p,
.manual-leg-heading p{
  margin:0;
  color:#94a3b8;
  font-size:12px;
  line-height:1.5;
}
.option-ladder-selection{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
  color:#bfdbfe;
  font-size:12px;
  font-weight:700;
  white-space:nowrap;
}
.option-ladder-controls{
  display:grid;
  grid-template-columns:
    repeat(7,minmax(120px,1fr))
    minmax(170px,auto);
  gap:10px;
  align-items:end;
  margin-bottom:10px;
}
.option-ladder-control-actions{
  display:grid;
  grid-template-columns:1fr;
  gap:7px;
}
.option-ladder-note{
  margin:8px 0 10px;
  color:#94a3b8;
  font-size:11px;
  line-height:1.5;
}
.option-ladder-note strong{
  color:#bfdbfe;
}
.option-ladder-note strong.error{
  color:#fca5a5;
}
.option-ladder-wrap{
  max-height:540px;
  overflow:auto;
  border:1px solid rgba(148,163,184,.20);
  border-radius:12px;
  background:#0b1220;
}
.option-ladder-table{
  width:100%;
  min-width:680px;
  border-collapse:separate;
  border-spacing:0;
}
.option-ladder-table th,
.option-ladder-table td{
  padding:8px;
  border-bottom:1px solid rgba(148,163,184,.12);
  text-align:center;
}
.option-ladder-table thead th{
  position:sticky;
  z-index:3;
  background:#111827;
  color:#cbd5e1;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.option-ladder-table thead tr:first-child th{
  top:0;
}
.option-ladder-table thead tr:nth-child(2) th{
  top:33px;
  z-index:4;
}
.option-ladder-table tbody tr:hover{
  background:rgba(59,130,246,.07);
}
.option-ladder-table tbody tr:last-child th,
.option-ladder-table tbody tr:last-child td{
  border-bottom:0;
}
.ladder-call-heading{
  color:#86efac!important;
}
.ladder-put-heading{
  color:#f0abfc!important;
}
.ladder-strike-heading{
  min-width:120px;
  color:#f8fafc!important;
  box-shadow:
    -1px 0 rgba(148,163,184,.14),
    1px 0 rgba(148,163,184,.14);
}
.ladder-strike-cell{
  position:relative;
  min-width:120px;
  background:rgba(15,23,42,.88);
  color:#f8fafc;
  font-size:15px;
  font-variant-numeric:tabular-nums;
  box-shadow:
    -1px 0 rgba(148,163,184,.10),
    1px 0 rgba(148,163,184,.10);
}
.ladder-strike-cell span{
  display:inline-block;
  margin-left:6px;
  padding:2px 5px;
  border:1px solid rgba(250,204,21,.44);
  border-radius:999px;
  color:#fde68a;
  font-size:9px;
  vertical-align:2px;
}
.ladder-atm-row{
  background:rgba(250,204,21,.055);
}
.ladder-atm-row .ladder-strike-cell{
  color:#fde68a;
  background:rgba(113,63,18,.28);
}
.ladder-leg-button{
  width:100%;
  min-width:92px;
  padding:8px 10px;
  border:1px solid rgba(148,163,184,.24);
  border-radius:8px;
  background:#101827;
  color:#cbd5e1;
  font-size:11px;
  font-weight:700;
  cursor:pointer;
  transition:
    transform .12s ease,
    border-color .12s ease,
    background .12s ease;
}
.ladder-leg-button:hover{
  transform:translateY(-1px);
  border-color:rgba(96,165,250,.65);
}
.ladder-leg-button.ladder-long{
  border-color:rgba(34,197,94,.34);
}
.ladder-leg-button.ladder-short{
  border-color:rgba(239,68,68,.34);
}
.ladder-leg-button.ladder-long.active{
  border-color:rgba(34,197,94,.90);
  background:rgba(22,101,52,.46);
  color:#dcfce7;
  box-shadow:0 0 0 1px rgba(34,197,94,.18) inset;
}
.ladder-leg-button.ladder-short.active{
  border-color:rgba(239,68,68,.90);
  background:rgba(127,29,29,.48);
  color:#fee2e2;
  box-shadow:0 0 0 1px rgba(239,68,68,.18) inset;
}
.manual-leg-heading{
  margin:18px 0 9px;
}

@media(max-width:1450px){
  .option-ladder-controls{
    grid-template-columns:repeat(4,minmax(140px,1fr));
  }
  .option-ladder-control-actions{
    grid-template-columns:1fr 1fr;
  }
}
@media(max-width:1180px){.forecast-meta-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.option-ladder-controls{grid-template-columns:repeat(3,minmax(0,1fr))}.option-ladder-control-actions{grid-template-columns:1fr 1fr}.sim2-field-grid,.engine-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.prediction-summary-grid,.strategy-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pnl-percentile-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.greeks-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.forecast-first-header{flex-direction:column}.forecast-first-header .button{width:100%;min-width:0}.forecast-meta-strip{grid-template-columns:1fr}.option-ladder-heading{flex-direction:column}.option-ladder-selection{justify-content:flex-start;white-space:normal}.option-ladder-controls{grid-template-columns:1fr 1fr}.option-ladder-control-actions{grid-column:1/-1;grid-template-columns:1fr 1fr}.option-ladder-builder{padding:11px}.sim2-field-grid,.engine-grid,.prediction-summary-grid,.strategy-metric-grid,.sim2-strip,.chart-grid{grid-template-columns:1fr}.chart-grid.full-first section:first-child{grid-column:auto}.builder-header,.result-heading,.sim2-submit-row{flex-direction:column;align-items:stretch}.result-source{max-width:none;text-align:left}.pnl-percentile-grid,.greeks-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sim2-run{min-width:0}.builder-actions{display:grid;grid-template-columns:1fr 1fr}.builder-actions select{grid-column:1/-1}}

/* OUTLYTIC_OPTIONS_SIMULATOR_2_WHOLE_ATM_V221 */


/* OUTLYTIC_OPTIONS_SIMULATOR_2_OUTCOMES_ATTRIBUTION_V230 */
.expanded-outcome-table{
  min-width:1380px;
}
.expanded-pnl-table{
  min-width:1500px;
}
.leg-attribution-table{
  min-width:1850px;
}
.model-leg-attribution-table{
  min-width:1750px;
}
.leg-greeks-table{
  min-width:2100px;
}
.leg-attribution-panel{
  border-color:rgba(34,197,94,.28);
}
.attribution-note{
  margin:10px 2px 0;
  color:#94a3b8;
  font-size:11px;
  line-height:1.5;
}
.model-leg-details{
  border-color:rgba(59,130,246,.28);
}
.model-leg-details>div{
  padding-bottom:15px;
}
.model-leg-details .result-table-wrap{
  margin-top:10px;
}
.result-table tbody tr:hover{
  background:rgba(59,130,246,.055);
}
.result-table td.positive,
.result-table td.negative{
  font-weight:700;
  font-variant-numeric:tabular-nums;
}


/* OUTLYTIC_OPTIONS_SIMULATOR_2_COMPACT_WORKSPACE_V240 */
html{
  scroll-behavior:smooth;
}
#sim2Setup,
#sim2Forecast,
#sim2Strategy,
#sim2Results,
#sim2Summary,
#sim2Charts,
#sim2Models,
#sim2LegAttribution,
#sim2Greeks{
  scroll-margin-top:128px;
}
.simulator2-header{
  margin-bottom:8px;
}
.simulator2-header .page-description{
  max-width:980px;
}
.lab-notice{
  margin-bottom:10px;
  padding:9px 12px;
  font-size:11px;
}
.sim2-workflow-nav{
  position:sticky;
  top:58px;
  z-index:40;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:10px 0 12px;
  padding:7px;
  border:1px solid rgba(96,165,250,.28);
  border-radius:12px;
  background:rgba(10,17,29,.96);
  box-shadow:0 10px 26px rgba(0,0,0,.28);
  backdrop-filter:blur(12px);
}
.sim2-workflow-links{
  display:flex;
  align-items:center;
  gap:5px;
  min-width:0;
  overflow-x:auto;
  scrollbar-width:thin;
}
.sim2-workflow-links a,
.result-jump-nav a{
  display:inline-flex;
  align-items:center;
  gap:5px;
  flex:0 0 auto;
  min-height:32px;
  padding:6px 10px;
  border:1px solid rgba(148,163,184,.16);
  border-radius:8px;
  background:rgba(15,23,42,.64);
  color:#cbd5e1;
  font-size:11px;
  font-weight:700;
  text-decoration:none;
}
.sim2-workflow-links a:hover,
.result-jump-nav a:hover{
  border-color:rgba(96,165,250,.58);
  background:rgba(30,64,175,.20);
  color:#eff6ff;
}
.sim2-workflow-links a span{
  display:inline-grid;
  place-items:center;
  min-width:19px;
  height:19px;
  padding:0 5px;
  border-radius:999px;
  background:rgba(59,130,246,.25);
  color:#bfdbfe;
  font-size:10px;
}
.sim2-workflow-actions{
  display:flex;
  gap:6px;
  flex:0 0 auto;
}
.sim2-workflow-actions .button{
  min-height:32px;
  padding:6px 10px;
  font-size:11px;
}
.sim2-form{
  gap:10px;
}
.sim2-setup-grid{
  display:grid;
  grid-template-columns:minmax(0,1.18fr) minmax(0,.82fr);
  gap:10px;
}
.sim2-setup-grid>.sim2-panel{
  min-width:0;
  margin:0;
}
.sim2-panel{
  padding:13px;
}
.compact-panel-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.compact-panel-header>div{
  min-width:0;
}
.compact-panel-toggle{
  flex:0 0 auto;
  min-width:54px;
  min-height:30px;
  padding:5px 9px;
  border:1px solid rgba(148,163,184,.24);
  border-radius:8px;
  background:#111827;
  color:#cbd5e1;
  font-size:10px;
  font-weight:800;
  cursor:pointer;
}
.compact-panel-toggle:hover{
  border-color:rgba(96,165,250,.55);
  color:#eff6ff;
}
.compact-collapsible-panel.is-collapsed{
  align-self:start;
}
.compact-collapsible-panel.is-collapsed>
:not(.panel-header){
  display:none!important;
}
.compact-collapsible-panel.is-collapsed
.panel-description{
  margin-bottom:0;
}
.sim2-field-grid{
  grid-template-columns:repeat(3,minmax(120px,1fr));
  gap:8px;
}
.engine-grid{
  grid-template-columns:repeat(3,minmax(120px,1fr));
}
.field-group{
  gap:4px;
}
.field-group>span,
.field-readout>span{
  font-size:10px;
}
.field-group input,
.field-group select,
.builder-actions select,
.leg-table input,
.leg-table select{
  padding:7px 8px;
  border-radius:8px;
  font-size:12px;
}
.field-readout{
  padding:7px 9px;
}
.field-readout strong{
  font-size:14px;
}
.reference-refresh{
  padding:6px 8px;
}
.forecast-header-actions{
  display:flex;
  align-items:center;
  gap:7px;
  flex:0 0 auto;
}
.forecast-first-header .button{
  min-width:180px;
}
.forecast-meta-strip{
  margin:9px 0 8px;
}
.forecast-meta-strip>div{
  padding:8px 9px;
}
.prediction-summary-grid{
  gap:6px;
}
.forecast-first-grid .lab-stat{
  min-height:0;
  padding:8px 9px;
}
.forecast-first-grid .lab-stat span,
.forecast-first-grid .lab-stat small{
  font-size:9px;
}
.forecast-first-grid .lab-stat strong{
  margin:3px 0;
  font-size:15px;
}
.forecast-first-note{
  margin-top:7px;
}
.builder-header{
  margin-bottom:9px;
}
.builder-actions{
  gap:6px;
}
.builder-actions select{
  min-width:160px;
}
.strategy-workspace{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(520px,.95fr);
  gap:10px;
  align-items:start;
}
.strategy-ladder-pane,
.strategy-editor-pane{
  min-width:0;
}
.option-ladder-builder{
  margin:0;
  padding:10px;
}
.option-ladder-heading{
  gap:10px;
  margin-bottom:8px;
}
.option-ladder-heading h3,
.manual-leg-heading h3{
  font-size:14px;
}
.option-ladder-heading p,
.manual-leg-heading p{
  font-size:10px;
}
.option-ladder-selection{
  gap:6px;
  font-size:10px;
}
.option-ladder-controls{
  grid-template-columns:repeat(4,minmax(100px,1fr));
  gap:7px;
}
.option-ladder-control-actions{
  grid-template-columns:1fr 1fr;
  grid-column:span 2;
}
.option-ladder-note{
  margin:6px 0 8px;
  font-size:9px;
}
.option-ladder-wrap{
  max-height:470px;
}
.option-ladder-table th,
.option-ladder-table td{
  padding:6px;
}
.ladder-leg-button{
  min-width:74px;
  padding:6px 7px;
  font-size:10px;
}
.ladder-strike-cell{
  min-width:86px;
  font-size:13px;
}
.manual-leg-heading{
  margin:0 0 8px;
}
.strategy-editor-pane .leg-table-wrap{
  max-height:535px;
  background:rgba(11,18,32,.65);
}
.leg-table{
  min-width:920px;
}
.leg-table th,
.leg-table td{
  padding:6px;
}
.leg-table input{
  min-width:76px;
}
.leg-table input[type=date]{
  min-width:128px;
}
.leg-table input[type=time]{
  min-width:98px;
}
.compact-position-selects{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:4px;
  min-width:142px;
}
.leg-number-cell{
  min-width:32px;
}
.strategy-editor-pane .sim2-submit-row{
  position:sticky;
  bottom:0;
  z-index:4;
  margin-top:8px;
  padding:8px;
  border:1px solid rgba(96,165,250,.22);
  border-radius:10px;
  background:rgba(10,17,29,.96);
  box-shadow:0 -8px 22px rgba(0,0,0,.22);
}
.strategy-editor-pane .sim2-run{
  min-width:190px;
}
.clear-form{
  margin:8px 0 14px;
}
.result-block{
  gap:12px;
  margin-top:16px;
}
.result-jump-nav{
  display:flex;
  gap:6px;
  overflow-x:auto;
  padding:7px;
  border:1px solid rgba(148,163,184,.18);
  border-radius:10px;
  background:rgba(15,23,42,.72);
}
.compact-result-section{
  display:grid;
  gap:9px;
}
.strategy-metric-grid{
  gap:7px;
}
.metric-card{
  padding:9px;
}
.metric-card strong{
  margin:3px 0;
  font-size:15px;
}
.pnl-percentile-grid,
.greeks-grid{
  gap:6px;
}
.pnl-percentile-grid>div,
.greeks-grid>div{
  padding:8px;
}
.result-chart-details{
  border-color:rgba(59,130,246,.28);
}
.result-chart-details>summary{
  color:#dbeafe;
}
.result-chart-details>div{
  padding-top:2px;
}
.result-table-wrap{
  max-height:540px;
}
.table-panel{
  padding:12px;
}
.result-table th,
.result-table td{
  padding:7px;
}
.result-table th{
  top:0;
}
@media(max-width:1450px){
  .strategy-workspace{
    grid-template-columns:minmax(0,1fr);
  }
  .strategy-editor-pane .leg-table-wrap{
    max-height:430px;
  }
}
@media(max-width:1100px){
  .sim2-setup-grid{
    grid-template-columns:1fr;
  }
  .sim2-workflow-nav{
    align-items:stretch;
  }
  .sim2-workflow-actions{
    align-items:center;
  }
}
@media(max-width:760px){
  #sim2Setup,
  #sim2Forecast,
  #sim2Strategy,
  #sim2Results,
  #sim2Summary,
  #sim2Charts,
  #sim2Models,
  #sim2LegAttribution,
  #sim2Greeks{
    scroll-margin-top:78px;
  }
  .sim2-workflow-nav{
    top:0;
    flex-direction:column;
    align-items:stretch;
    gap:6px;
    margin-top:6px;
    border-radius:9px;
  }
  .sim2-workflow-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .sim2-workflow-actions .button{
    width:100%;
  }
  .compact-panel-header,
  .forecast-first-header{
    flex-direction:row;
    align-items:flex-start;
  }
  .forecast-header-actions{
    flex-direction:column;
    align-items:stretch;
  }
  .forecast-first-header .button{
    width:auto;
    min-width:0;
  }
  .sim2-field-grid,
  .engine-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .forecast-meta-strip{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .forecast-first-grid,
  .strategy-metric-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .strategy-workspace{
    grid-template-columns:1fr;
  }
  .option-ladder-controls{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .option-ladder-control-actions{
    grid-column:1/-1;
  }
  .strategy-editor-pane .leg-table-wrap{
    max-height:none;
    overflow:visible;
    border:0;
    background:transparent;
  }
  .strategy-editor-pane .leg-table,
  .strategy-editor-pane .leg-table tbody{
    display:block;
    width:100%;
    min-width:0;
  }
  .strategy-editor-pane .leg-table thead{
    display:none;
  }
  .strategy-editor-pane .leg-row{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    margin-bottom:9px;
    padding:9px;
    border:1px solid rgba(148,163,184,.20);
    border-radius:10px;
    background:#101827;
  }
  .strategy-editor-pane .leg-row td{
    display:block;
    min-width:0;
    padding:0;
    border:0;
    text-align:left;
    white-space:normal;
  }
  .strategy-editor-pane .leg-row td::before{
    content:attr(data-label);
    display:block;
    margin-bottom:4px;
    color:#94a3b8;
    font-size:9px;
    font-weight:800;
    letter-spacing:.04em;
    text-transform:uppercase;
  }
  .strategy-editor-pane .leg-row
  .leg-number-cell{
    grid-column:1/-1;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding-bottom:6px;
    border-bottom:1px solid rgba(148,163,184,.14);
  }
  .strategy-editor-pane .leg-row
  .leg-number-cell::before{
    margin:0;
  }
  .strategy-editor-pane .leg-row
  .leg-remove-cell{
    grid-column:1/-1;
  }
  .strategy-editor-pane .leg-row
  .leg-remove-cell .remove-leg{
    width:100%;
  }
  .strategy-editor-pane .leg-table input,
  .strategy-editor-pane .leg-table select{
    width:100%;
    min-width:0;
  }
  .compact-position-selects{
    min-width:0;
  }
  .strategy-editor-pane .sim2-submit-row{
    position:static;
  }
  .result-jump-nav{
    position:sticky;
    top:82px;
    z-index:20;
    background:rgba(10,17,29,.96);
  }
  .result-table-wrap{
    max-height:480px;
  }
}
@media(max-width:480px){
  .sim2-field-grid,
  .engine-grid,
  .forecast-meta-strip,
  .forecast-first-grid,
  .strategy-metric-grid{
    grid-template-columns:1fr;
  }
  .compact-panel-header,
  .forecast-first-header{
    flex-direction:column;
  }
  .forecast-header-actions{
    width:100%;
    display:grid;
    grid-template-columns:1fr auto;
  }
  .strategy-editor-pane .leg-row{
    grid-template-columns:1fr;
  }
  .strategy-editor-pane .leg-row
  .leg-number-cell,
  .strategy-editor-pane .leg-row
  .leg-remove-cell{
    grid-column:auto;
  }
}


/* OUTLYTIC_OPTIONS_SIMULATOR_2_UNIFORM_WORKSPACE_V241 */
.sim2-workflow-nav{
  position:sticky;
  top:58px;
  z-index:35;
  display:grid;
  grid-template-columns:repeat(4,minmax(120px,1fr));
  gap:6px;
  max-width:760px;
  margin:10px auto 12px;
  padding:6px;
  border:1px solid rgba(148,163,184,.22);
  border-radius:11px;
  background:rgba(10,17,29,.96);
  box-shadow:0 8px 22px rgba(0,0,0,.22);
  backdrop-filter:blur(10px);
}
.sim2-workflow-nav>a{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:34px;
  padding:6px 10px;
  border:1px solid transparent;
  border-radius:8px;
  color:#cbd5e1;
  font-size:11px;
  font-weight:800;
  text-align:center;
  text-decoration:none;
}
.sim2-workflow-nav>a:hover{
  border-color:rgba(96,165,250,.48);
  background:rgba(30,64,175,.18);
  color:#eff6ff;
}
.sim2-workflow-nav>a span{
  display:inline-grid;
  place-items:center;
  min-width:20px;
  height:20px;
  padding:0 5px;
  border-radius:999px;
  background:rgba(59,130,246,.24);
  color:#bfdbfe;
  font-size:10px;
}
.uniform-panel{
  border-color:rgba(148,163,184,.22)!important;
  background:#111827!important;
}
.uniform-panel-header,
.forecast-first-header,
.builder-header{
  align-items:flex-start;
  margin-bottom:10px;
  padding-bottom:10px;
  border-bottom:1px solid rgba(148,163,184,.14);
}
.uniform-panel .panel-title{
  font-size:16px;
}
.uniform-panel .panel-description{
  max-width:1050px;
  margin-top:4px;
  font-size:11px;
  line-height:1.45;
}
.uniform-setup-grid{
  grid-template-columns:repeat(5,minmax(145px,1fr));
  gap:9px;
}
.uniform-details,
.uniform-result-group{
  border:1px solid rgba(148,163,184,.20);
  border-radius:10px;
  background:rgba(15,23,42,.52);
}
.uniform-details{
  margin-top:10px;
}
.uniform-details>summary,
.uniform-result-group>summary{
  cursor:pointer;
  list-style:none;
}
.uniform-details>summary::-webkit-details-marker,
.uniform-result-group>summary::-webkit-details-marker{
  display:none;
}
.uniform-details>summary{
  position:relative;
  padding:10px 34px 10px 12px;
  color:#dbeafe;
  font-size:12px;
  font-weight:800;
}
.uniform-details>summary::after,
.uniform-result-group>summary::after{
  content:"+";
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  color:#93c5fd;
  font-size:18px;
}
.uniform-details[open]>summary::after,
.uniform-result-group[open]>summary::after{
  content:"–";
}
.uniform-details .engine-grid{
  padding:0 12px 12px;
  grid-template-columns:repeat(6,minmax(120px,1fr));
}
.forecast-first-panel{
  background:#111827!important;
}
.forecast-meta-strip{
  border-color:rgba(148,163,184,.16);
}
.forecast-first-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}
.forecast-first-grid .lab-stat{
  padding:9px 10px;
  background:#0f172a;
}
.strategy-workspace{
  grid-template-columns:minmax(0,1.05fr) minmax(560px,.95fr);
  gap:12px;
}
.option-ladder-builder{
  border-color:rgba(148,163,184,.20);
  background:#0f172a;
}
.option-ladder-controls{
  grid-template-columns:repeat(4,minmax(105px,1fr));
}
.strategy-editor-pane{
  min-width:0;
}
.leg-card-list{
  display:grid;
  gap:8px;
  max-height:565px;
  overflow:auto;
  padding-right:2px;
}
.leg-card{
  padding:10px;
  border:1px solid rgba(148,163,184,.20);
  border-radius:10px;
  background:#0f172a;
}
.leg-card-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
  padding-bottom:7px;
  border-bottom:1px solid rgba(148,163,184,.13);
  color:#e2e8f0;
  font-size:12px;
}
.leg-card-header .remove-leg{
  width:28px;
  height:28px;
}
.leg-card-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(105px,1fr));
  gap:8px;
}
.leg-card-grid .field-group>span{
  font-size:9px;
  font-weight:700;
  letter-spacing:.03em;
  text-transform:uppercase;
}
.price-input-field input{
  border-color:rgba(96,165,250,.40);
  background:rgba(30,64,175,.10);
}
.compact-position-selects{
  min-width:0;
}
.strategy-editor-pane .sim2-submit-row{
  position:static;
  margin-top:9px;
  box-shadow:none;
}
.uniform-result-group{
  overflow:hidden;
}
.uniform-result-group>summary{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:3px;
  padding:12px 38px 12px 14px;
  background:#111827;
}
.uniform-result-group>summary span{
  color:#e2e8f0;
  font-size:14px;
  font-weight:800;
}
.uniform-result-group>summary small{
  color:#94a3b8;
  font-size:10px;
}
.uniform-result-group-body{
  display:grid;
  gap:10px;
  padding:10px;
  border-top:1px solid rgba(148,163,184,.14);
}
.uniform-result-group-body>.panel,
.uniform-result-group-body>.method-details{
  margin:0;
}
.result-block{
  gap:10px;
}
.result-chart-details,
.uniform-result-group,
.method-details{
  border-color:rgba(148,163,184,.20);
}
.table-panel{
  background:#111827;
}
@media(max-width:1500px){
  .uniform-setup-grid{
    grid-template-columns:repeat(3,minmax(140px,1fr));
  }
  .uniform-details .engine-grid{
    grid-template-columns:repeat(3,minmax(130px,1fr));
  }
  .strategy-workspace{
    grid-template-columns:1fr;
  }
  .leg-card-list{
    max-height:none;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:900px){
  .sim2-workflow-nav{
    top:0;
    max-width:none;
    grid-template-columns:repeat(4,minmax(92px,1fr));
    overflow-x:auto;
  }
  .uniform-setup-grid,
  .uniform-details .engine-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .forecast-first-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .leg-card-list{
    grid-template-columns:1fr;
  }
  .leg-card-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:560px){
  .sim2-workflow-nav{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .uniform-setup-grid,
  .uniform-details .engine-grid,
  .forecast-first-grid,
  .leg-card-grid{
    grid-template-columns:1fr;
  }
  .forecast-first-header,
  .builder-header{
    flex-direction:column;
  }
  .forecast-header-actions,
  .builder-actions{
    width:100%;
  }
  .forecast-header-actions .button{
    width:100%;
  }
}


/* OUTLYTIC_OPTIONS_SIMULATOR_2_STACKED_STRATEGY_V242 */
.strategy-workspace.strategy-workspace-stacked{
  display:block;
}
.strategy-workspace-stacked .strategy-ladder-pane,
.strategy-workspace-stacked .strategy-editor-pane{
  width:100%;
  min-width:0;
}
.strategy-workspace-stacked .strategy-editor-pane{
  margin-top:14px;
  padding-top:13px;
  border-top:1px solid rgba(148,163,184,.16);
}
.strategy-workspace-stacked .manual-leg-heading{
  margin:0 0 9px;
}
.strategy-workspace-stacked .leg-card-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
  max-height:none;
  overflow:visible;
  padding-right:0;
}
.strategy-workspace-stacked .leg-card{
  min-width:0;
}
.strategy-workspace-stacked .leg-card-grid{
  grid-template-columns:repeat(4,minmax(105px,1fr));
}
.strategy-workspace-stacked
.strategy-editor-pane .sim2-submit-row{
  margin-top:10px;
}
@media(max-width:1180px){
  .strategy-workspace-stacked .leg-card-list{
    grid-template-columns:1fr;
  }
}
@media(max-width:760px){
  .strategy-workspace-stacked .strategy-editor-pane{
    margin-top:11px;
    padding-top:11px;
  }
  .strategy-workspace-stacked .leg-card-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:560px){
  .strategy-workspace-stacked .leg-card-grid{
    grid-template-columns:1fr;
  }
}


/* OUTLYTIC_OPTIONS_SIMULATOR_2_UNIFORM_LEG_ROWS_V243 */
.strategy-workspace-stacked .strategy-editor-pane{
  margin-top:14px;
}
.uniform-leg-editor{
  overflow-x:auto;
  border:1px solid rgba(148,163,184,.20);
  border-radius:10px;
  background:#0f172a;
}
.uniform-leg-header,
.uniform-leg-row{
  display:grid;
  grid-template-columns:
    44px
    minmax(150px,1.25fr)
    minmax(95px,.75fr)
    minmax(125px,1fr)
    minmax(125px,1fr)
    minmax(90px,.65fr)
    minmax(85px,.65fr)
    minmax(145px,1.05fr)
    minmax(115px,.8fr)
    44px;
  gap:8px;
  align-items:center;
  min-width:1260px;
}
.uniform-leg-header{
  position:sticky;
  top:0;
  z-index:3;
  padding:8px 10px;
  border-bottom:1px solid rgba(148,163,184,.18);
  background:#111827;
  color:#94a3b8;
  font-size:9px;
  font-weight:800;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.uniform-leg-rows{
  display:block;
}
.uniform-leg-row{
  padding:8px 10px;
  border-bottom:1px solid rgba(148,163,184,.14);
}
.uniform-leg-row:last-child{
  border-bottom:0;
}
.uniform-leg-row:hover{
  background:rgba(59,130,246,.045);
}
.uniform-leg-row>div{
  min-width:0;
}
.uniform-leg-row input,
.uniform-leg-row select{
  width:100%;
  min-width:0;
  box-sizing:border-box;
  padding:8px 9px;
  border:1px solid rgba(148,163,184,.25);
  border-radius:8px;
  background:#111827;
  color:#e5e7eb;
  font-size:12px;
}
.uniform-leg-position{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:5px;
}
.uniform-leg-number{
  display:flex;
  align-items:center;
  justify-content:center;
  color:#e2e8f0;
  font-weight:800;
}
.uniform-leg-price input{
  border-color:rgba(96,165,250,.48);
  background:rgba(30,64,175,.10);
}
.uniform-leg-remove{
  display:flex;
  justify-content:center;
}
.uniform-leg-remove .remove-leg{
  width:32px;
  height:32px;
}
.strategy-workspace-stacked .leg-card-list{
  display:none;
}
@media(max-width:760px){
  .uniform-leg-editor{
    overflow:visible;
    border:0;
    background:transparent;
  }
  .uniform-leg-header{
    display:none;
  }
  .uniform-leg-row{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    min-width:0;
    margin-bottom:9px;
    padding:10px;
    border:1px solid rgba(148,163,184,.20);
    border-radius:10px;
    background:#0f172a;
  }
  .uniform-leg-row:last-child{
    border-bottom:1px solid rgba(148,163,184,.20);
  }
  .uniform-leg-row>div::before{
    content:attr(data-label);
    display:block;
    margin-bottom:4px;
    color:#94a3b8;
    font-size:9px;
    font-weight:800;
    letter-spacing:.04em;
    text-transform:uppercase;
  }
  .uniform-leg-number{
    grid-column:1/-1;
    justify-content:flex-start;
    padding-bottom:6px;
    border-bottom:1px solid rgba(148,163,184,.14);
  }
  .uniform-leg-number::before{
    margin:0 7px 0 0!important;
  }
  .uniform-leg-remove{
    grid-column:1/-1;
    display:block;
  }
  .uniform-leg-remove .remove-leg{
    width:100%;
  }
}
@media(max-width:480px){
  .uniform-leg-row{
    grid-template-columns:1fr;
  }
  .uniform-leg-number,
  .uniform-leg-remove{
    grid-column:auto;
  }
}

/* OUTLYTIC_OPTIONS_SIMULATOR_2_QUANT_INTELLIGENCE_V250 */
.quant-intel-block{
  margin-top:18px;
  padding:16px;
  border:1px solid #2f4054;
  border-radius:14px;
  background:linear-gradient(180deg,rgba(20,35,52,.96),rgba(12,20,30,.96));
}
.quant-intel-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px}
.quant-health-pill{min-width:150px;text-align:center;border:1px solid #40546a;border-radius:999px;padding:8px 12px;font-size:.78rem;background:#101923;color:#dfe9f3}
.quant-health-pill strong{display:block;font-size:1rem;margin-top:2px}
.quant-health-pill.strong,.quant-health-pill.good{border-color:#356a55;background:#12271f}
.quant-health-pill.caution{border-color:#806b37;background:#2b2515}
.quant-health-pill.weak{border-color:#80404b;background:#2e171b}
.quant-market-note{margin:8px 0 12px;padding:9px 11px;border:1px solid #6c5d2f;border-radius:9px;background:#2a2415;color:#e9ddb2;font-size:.82rem}
.quant-intel-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.quant-card{min-height:108px;padding:11px;border:1px solid #28384a;border-radius:11px;background:#0d1620;display:flex;flex-direction:column;gap:5px}
.quant-card>span{font-size:.72rem;text-transform:uppercase;letter-spacing:.05em;color:#8fa2b7}
.quant-card>strong{font-size:1.13rem;color:#f0f5fa}
.quant-card>small{font-size:.76rem;line-height:1.35;color:#9eacbb}
.quant-card .positive,.quant-intel-block .positive{color:#83d6a2}
.quant-card .negative,.quant-intel-block .negative{color:#f09a9a}
.quant-details-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.quant-detail{border:1px solid #2a394a;border-radius:10px;background:#0b131c;overflow:hidden}
.quant-detail>summary{cursor:pointer;padding:11px 12px;font-weight:700;color:#dce6f0;background:#101b27}
.quant-detail-body{padding:12px;color:#b7c2ce;font-size:.84rem;line-height:1.45}
.quant-detail-body h4{margin:14px 0 7px;color:#e6edf5}
.quant-detail-body p{margin:7px 0 11px}
.quant-footnote{color:#8f9cab;font-size:.77rem}
.pq-grid{display:grid;gap:4px;margin:10px 0}
.pq-grid>div{display:grid;grid-template-columns:1.25fr repeat(3,1fr);gap:6px;align-items:center;padding:7px 8px;border-radius:8px;background:#0f1a25}
.pq-grid span{color:#96a7ba;font-size:.78rem}.pq-grid strong{text-align:right;color:#e8eef5}
.mini-diagnostic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.mini-diagnostic-grid>div{padding:9px;border:1px solid #263646;border-radius:8px;background:#0f1923}
.mini-diagnostic-grid span,.mini-diagnostic-grid small{display:block;color:#8fa1b3;font-size:.72rem}.mini-diagnostic-grid strong{display:block;margin:4px 0;color:#eef4fa}
.risk-cube-table td,.risk-cube-table th{text-align:right}.risk-cube-table td:first-child,.risk-cube-table th:first-child{text-align:left}
@media(max-width:1200px){.quant-intel-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.quant-details-grid{grid-template-columns:1fr}.mini-diagnostic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.quant-intel-header{flex-direction:column}.quant-health-pill{align-self:stretch}.quant-intel-grid{grid-template-columns:1fr}.mini-diagnostic-grid{grid-template-columns:1fr}.pq-grid>div{grid-template-columns:1fr repeat(3,minmax(58px,1fr));font-size:.75rem}.quant-intel-block{padding:10px}}
