.target-page .app-shell{max-width:1240px}
.target-page .page-heading{max-width:900px}
.target-page h2{font:800 25px/1.2 var(--display);margin:0 0 20px}
.target-page .port-panel{margin-bottom:24px}
.target-setup{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:24px}
.target-panel{min-width:0;padding:24px;border:1px solid var(--line);background:var(--panel)}
.target-panel p{max-width:76ch}
.target-page label{display:block;margin:18px 0 7px;font-size:13px;font-weight:700}
.target-page input:not([type=checkbox]),.target-page select{max-width:100%;min-width:0;padding:11px 12px;color:var(--ink);background:var(--blue-deep);border:1px solid var(--line);border-radius:4px}
.target-panel input:not([type=checkbox]),.target-panel select{width:100%}
.target-page select option{padding:7px}
.target-page select[size]{height:194px}
.target-page .port-actions label{margin:0;display:flex}
.target-page .small-note{font-size:12px;line-height:1.65}
.target-page summary{cursor:pointer;min-height:30px}
.target-page .results-top h2{margin:0}
.target-page .port-ships label{display:flex;margin:0;align-items:center}
.chance-presets{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 22px}
.chance-presets button{min-height:44px;padding:10px 16px;color:var(--paper);background:transparent;border:1px solid var(--line);border-radius:4px;cursor:pointer}
.chance-presets button[aria-pressed=true]{color:var(--blue-deep);background:var(--required);border-color:var(--required);font-weight:800}
.container-route{margin:16px 0;padding-left:14px;border-left:3px solid var(--required);overflow-wrap:anywhere;font-size:13px;line-height:1.7}
.route-preview{display:block;color:var(--required)}
.counter-panel{margin-top:28px;border-top:1px solid var(--line-soft);padding-top:18px}
.counter-panel label{font-size:12px;overflow-wrap:anywhere}
.counter-panel input{margin-top:7px}
.estimate-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:24px 0}
.estimate-actions .button{min-height:48px}
.estimate-actions #estimate{background:var(--required);color:var(--blue-deep);border-color:var(--required);font-weight:800}
.estimate-results{margin:0 0 24px}
.estimate-headlines{display:grid;grid-template-columns:1fr 1fr;margin:26px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.estimate-headlines>div{padding:22px 16px 22px 0;min-width:0}
.estimate-headlines>div+div{border-left:1px solid var(--line);padding-left:24px}
.estimate-headlines span,.estimate-headlines small{display:block;color:var(--muted);font-size:13px}
.estimate-headlines strong{display:block;color:var(--required);font:800 clamp(36px,5vw,64px)/1.3 var(--display);overflow-wrap:anywhere}
.estimate-headlines small{line-height:1.65}
.distribution-figure{margin:26px 0;padding:22px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.distribution-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap;margin-bottom:14px}
.distribution-heading h3{margin:0;font:800 22px/1.25 var(--display)}
.curve-modes{display:flex;gap:8px;flex-wrap:wrap}
.curve-modes button{padding:10px 12px;min-height:44px;color:var(--paper);background:transparent;border:1px solid var(--line);border-radius:4px;cursor:pointer;font-size:12px}
.curve-modes button[aria-pressed=true]{color:var(--blue-deep);background:var(--paper);font-weight:700}
.curve-legend{display:flex;gap:14px 24px;flex-wrap:wrap;margin-bottom:12px;font-size:12px}
.curve-key{display:inline-flex;align-items:center;gap:8px}
.curve-key::before{content:"";width:24px;border-top:2px dashed var(--optional)}
.curve-key-threshold::before{border-color:var(--required);border-top-style:solid}
.distribution-plot{width:100%;min-width:0;padding:8px 0;background:rgba(0,20,45,.18);border:1px solid var(--line-soft)}
.distribution-plot svg{display:block;width:100%;height:auto;overflow:visible}
.curve-grid{stroke:var(--line-soft);stroke-width:1;vector-effect:non-scaling-stroke}
.curve-axis-text,.curve-axis-label{fill:var(--muted);font:12px var(--body)}
.curve-axis-label{fill:var(--paper)}
.curve-trace{fill:none;stroke:var(--success);stroke-width:2;vector-effect:non-scaling-stroke}
.curve-area{fill:var(--success);opacity:.09}
.curve-mean{stroke:var(--optional);stroke-width:1.5;stroke-dasharray:5 4;vector-effect:non-scaling-stroke}
.curve-threshold{stroke:var(--required);stroke-width:1.5;vector-effect:non-scaling-stroke}
.curve-inspector{stroke:var(--paper);opacity:.45;stroke-dasharray:2 4;vector-effect:non-scaling-stroke}
.curve-inspector-dot{fill:var(--paper);stroke:var(--blue-deep);stroke-width:2;vector-effect:non-scaling-stroke}
.curve-selection{fill:var(--required);opacity:.14}
.curve-selection-bound{stroke:var(--required);stroke-width:1;stroke-dasharray:3 3;vector-effect:non-scaling-stroke}
.curve-selecting{cursor:crosshair;touch-action:none}
.curve-window{margin:20px 0 0;padding:16px;border:1px solid var(--line);min-width:0}
.curve-window legend{padding:0 7px;font-weight:700;font-size:14px}
.curve-window-presets,.curve-window-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.curve-window button{padding:9px 11px;min-height:40px;color:var(--paper);background:transparent;border:1px solid var(--line);border-radius:4px;font-size:12px;cursor:pointer}
.curve-window button[aria-pressed=true]{background:var(--required);border-color:var(--required);color:var(--blue-deep);font-weight:700}
.curve-window button:disabled{opacity:.45;cursor:default}
.curve-window-bounds{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.target-page .curve-window-bounds label{margin-top:14px}
.target-page .curve-window input[type=range]{width:100%;padding:0;min-height:40px;accent-color:var(--required);background:transparent;border:0}
.curve-window-actions{margin-top:10px;gap:12px 20px}
.target-page .curve-window-actions label{display:flex;align-items:center;gap:8px;margin:0}
.curve-window-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;border-top:1px solid var(--line-soft);padding-top:14px}
.curve-window-stats span{display:block;font-size:12px;color:var(--muted)}
.curve-window-stats strong{display:block;margin-top:6px;font:700 24px/1.2 var(--display)}
.curve-window-error{color:var(--danger)}
@media(max-width:600px){.curve-window{padding:12px}.curve-window-bounds{gap:12px}.curve-window-stats{grid-template-columns:1fr}.curve-window-stats>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.curve-window-stats strong{margin-top:0;font-size:22px}.curve-window button{min-height:44px}}
.curve-controls{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:24px;align-items:end}
.target-page .curve-controls label{margin-top:16px}
.target-page .curve-controls input[type=range]{padding:0;min-height:44px;display:block;accent-color:var(--success);background:transparent;border:0;cursor:pointer}
.curve-readout{display:block;margin-top:18px;font-weight:700;color:var(--paper);font-size:15px}
.distribution-figure figcaption{color:var(--muted);margin-top:12px;max-width:76ch}
@media(max-width:600px){.curve-controls{grid-template-columns:minmax(0,1fr) 110px;gap:12px}.curve-modes{width:100%}.curve-modes button{flex:1}.curve-legend{font-size:11px}.curve-controls label{font-size:11px}}
.chance-comparison{margin:20px 0 28px}
.chance-comparison table{border-collapse:collapse;width:100%;max-width:650px;font-size:13px}
.chance-comparison th,.chance-comparison td{text-align:left;padding:10px;border-bottom:1px solid var(--line-soft)}
.target-page #pathResults{padding-left:22px}
.target-page #pathResults li{padding:8px 0;font-size:13px;overflow-wrap:anywhere}
.target-page #nestedResults p{font-size:13px}
.target-page .method-panel{margin-top:24px;font-size:13px;line-height:1.7}
.target-footer{display:flex;gap:24px;flex-wrap:wrap;margin-top:26px;font-size:13px}
@media(max-width:720px){.target-setup{grid-template-columns:1fr}.target-panel{padding:20px}.estimate-headlines{grid-template-columns:1fr}.estimate-headlines>div+div{border-left:0;border-top:1px solid var(--line);padding-left:0}.estimate-actions{align-items:stretch}.estimate-actions .button{flex:1}.target-page .port-actions{align-items:start}.target-page .port-actions .button{white-space:normal}.target-page .port-stats{grid-template-columns:1fr}}
