.contract-picker{width:min(1000px,calc(100vw - 64px));max-width:none;max-height:calc(100dvh - 48px);border:0;border-radius:12px;padding:0;color:#172239;background:#fff;box-shadow:0 24px 80px #0f1e3840;overflow:hidden}.contract-picker[open]{display:flex;flex-direction:column}.contract-picker::backdrop{background:#101c3073}.picker-heading{display:flex;align-items:center;justify-content:space-between;margin:0 28px;padding:16px 0;border-bottom:1px solid #dce4ef;flex-shrink:0}.picker-heading h2{font-size:21px;margin:0}.picker-close{border:0;padding:8px;min-width:40px;min-height:40px}.picker-body{overflow:auto;padding:18px 28px 0;overscroll-behavior:contain}.picker-context{display:flex;align-items:center;gap:24px;flex-wrap:wrap}.picker-context>div:first-child{display:flex;gap:12px;align-items:center}.picker-context span{color:#64748b;font-size:12px}.picker-context strong{font-size:15px}.expiry-options{display:flex;gap:4px;flex-wrap:wrap}.expiry-options button{min-width:62px;min-height:34px;font-size:13px}.expiry-options button[aria-pressed=true]{background:#246bfd;border-color:#246bfd;color:#fff}.expiry-date{margin-left:auto}.picker-source{display:flex;align-items:center;gap:18px;color:#75849b;font-size:12px;padding:15px 0}.picker-source strong{font-size:18px;color:#172239;margin-left:6px;font-variant-numeric:tabular-nums}.chain-range{margin-left:auto;display:flex;gap:4px}.chain-range button{border:0;font-size:12px;min-height:30px;padding:4px 8px}.chain-range button[aria-pressed=true]{color:#246bfd;background:#edf3ff}.picker-existing{font-size:11px;color:#73839a;margin:0 0 10px}.chain-head,.chain-row,.chain-labels{display:grid;grid-template-columns:minmax(0,1fr) 90px minmax(0,1fr)}.chain-head{text-align:center;border-top:1px solid #dce4ef;border-bottom:1px solid #e6edf6;padding:10px 0;font-size:14px;font-weight:650}.chain-head small{font-size:12px;color:inherit}.chain-labels{background:#f4f7fb;color:#74839a;padding:8px 0;font-size:11px}.chain-labels>span:first-child{display:grid;grid-template-columns:112px 1fr 1fr}.chain-labels>span:last-child{display:grid;grid-template-columns:1fr 1fr 112px}.chain-labels i{font-style:normal;text-align:center}.chain-scroll{max-height:310px;overflow:auto;scrollbar-gutter:stable;overscroll-behavior:contain}.chain-row{min-height:42px;border-bottom:1px solid #f0f3f8;font-variant-numeric:tabular-nums;align-items:stretch}.chain-row:hover{background:#f9fbff}.chain-strike{display:flex;align-items:center;justify-content:center;background:#f5f8fc;font-weight:650;font-size:14px}.chain-strike.at-money{background:#e4edff;color:#1d3d6d}.quote-cell{display:grid;grid-template-columns:112px 1fr 1fr;align-items:center;position:relative;text-align:center;font-size:13px;min-width:0;padding:3px 0}.quote-cell.put{grid-template-columns:1fr 1fr 112px}.quote-cell.put .quote-iv{grid-column:1;grid-row:1}.quote-cell.put .quote-price{grid-column:2;grid-row:1}.quote-cell.put .quote-actions{grid-column:3;grid-row:1}.quote-actions{display:flex;gap:6px;justify-content:center}.quote-actions button{padding:3px 10px;min-height:30px;font-size:12px;font-weight:500;background:#fff}.quote-actions button[aria-pressed=true]{border-color:#1d4ed8;background:#1d4ed8;color:#fff;font-weight:650}.quote-actions button[aria-pressed=true]:hover{border-color:#1e40af;background:#1e40af}.quote-actions button{gap:3px;min-width:44px}.quote-actions button:disabled{opacity:.38}.quote-issue{grid-column:1/-1;font-size:10px;padding:2px 0}.chain-contract{grid-column:1/-1;grid-row:1;font-size:10px;min-height:28px;margin:0 5px 4px}.quote-cell:has(.chain-contract) .quote-actions,.quote-cell:has(.chain-contract) .quote-price,.quote-cell:has(.chain-contract) .quote-iv{grid-row:2}.draft-basket{border-top:1px solid #dce4ef;margin-top:20px;padding-top:14px}.draft-basket h3{font-size:15px;margin:0 0 10px}.draft-basket h3 span{font-size:13px}.draft-labels,.draft-row{display:grid;grid-template-columns:90px minmax(0,1fr) 132px 40px;gap:10px;align-items:center}.draft-labels{color:#7a889e;background:#f5f8fc;font-size:11px;padding:7px 12px}.draft-scroll{max-height:180px;overflow:auto;overscroll-behavior:contain}.draft-row{padding:9px 12px;border-bottom:1px solid #edf2f8;font-size:13px}.draft-name{min-width:0;overflow-wrap:anywhere}.draft-name small{display:block;font-size:10px;margin-top:3px}.draft-quantity{display:flex;align-items:center;justify-content:center}.draft-quantity input{width:52px;min-height:30px;text-align:center;border-radius:0;padding:2px;-webkit-appearance:textfield;appearance:textfield;-moz-appearance:textfield}.draft-quantity input::-webkit-inner-spin-button{-webkit-appearance:none;-moz-appearance:none;appearance:none}.draft-quantity button{padding:4px;min-width:30px;min-height:30px;border-radius:4px 0 0 4px}.draft-quantity button:last-child{border-radius:0 4px 4px 0}.draft-remove{border:0;min-height:32px;padding:6px;color:#75849a}.picker-empty{text-align:center;color:#8190a6;font-size:13px;padding:15px 0;margin:0}.picker-error{color:#a33d38;padding:8px 28px;font-size:13px}.picker-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;border-top:1px solid #e3eaf3;margin:12px 28px 0;padding:14px 0;flex-shrink:0}.picker-actions>span{margin-right:auto;color:#a33d38;font-size:12px}.picker-actions button{min-width:100px}.picker-actions .primary{min-width:165px}.strategy-empty{padding:26px;text-align:center;color:#7c8ba3;font-size:13px}.section-title .add-contract{border:1px solid #5d92ff;font-size:13px;color:#246bfd;background:#fff}@media(max-width:600px){.contract-picker{width:100%;height:100dvh;max-height:100dvh;margin:0;border-radius:0}.picker-heading{margin:0 16px;padding:10px 0}.picker-heading h2{font-size:18px}.picker-close{min-height:44px;min-width:44px}.picker-body{padding:16px 12px 0;flex:1}.picker-context{gap:10px}.picker-context>div:first-child{width:100%}.picker-context strong{font-size:14px}.expiry-options{gap:5px}.expiry-options button{min-width:56px;min-height:40px;font-size:12px}.expiry-date{font-size:10px!important;margin-left:0}.picker-source{flex-wrap:wrap;gap:8px;padding:12px 0;font-size:10px}.picker-source strong{font-size:16px;margin-left:4px}.chain-range{gap:0}.chain-range button{font-size:11px;min-height:36px;padding:4px 6px}.chain-head,.chain-row,.chain-labels{grid-template-columns:minmax(0,1fr) 62px minmax(0,1fr)}.chain-head{font-size:13px}.chain-head small,.chain-labels{display:none}.chain-scroll{max-height:330px;scrollbar-gutter:auto}.chain-row{min-height:76px}.chain-strike{font-size:12px}.quote-cell,.quote-cell.put{grid-template-columns:1fr 1fr;padding:6px 4px;gap:3px;font-size:12px}.quote-price,.quote-cell.put .quote-price{grid-row:1;grid-column:1;font-weight:550}.quote-iv,.quote-cell.put .quote-iv{grid-row:1;grid-column:2;font-size:10px;color:#728199}.quote-iv:after{content:"%"}.quote-actions,.quote-cell.put .quote-actions{grid-column:1/-1;grid-row:2;gap:5px}.quote-actions button{flex:1;min-width:44px;min-height:44px;padding:4px;font-size:12px}.quote-cell:has(.chain-contract) .quote-actions{grid-row:3}.chain-contract{width:100%;margin:0;font-size:10px}.quote-issue{font-size:9px}.draft-basket{margin-top:16px;padding-top:12px}.draft-basket h3{font-size:14px}.draft-labels{display:none}.draft-scroll{max-height:180px}.draft-row{grid-template-columns:48px minmax(0,1fr) 106px 28px;gap:4px;font-size:11px;padding:8px 0}.draft-name small{font-size:9px}.draft-quantity input{width:36px;min-height:40px}.draft-quantity button{min-width:34px;min-height:40px}.draft-remove{padding:2px;min-height:44px;min-width:28px}.picker-actions{margin:0;padding:12px 16px max(12px,env(safe-area-inset-bottom));gap:12px;background:#fff}.picker-actions>span:empty{display:none}.picker-actions>span:not(:empty){font-size:10px}.picker-actions button{min-height:44px;min-width:80px}.picker-actions .primary{flex:1;min-width:140px}.picker-error{padding:6px 16px;font-size:11px}.picker-existing{font-size:10px}.picker-empty{font-size:12px}.section-title .add-contract{font-size:12px;min-height:38px}}@media(max-width:600px){.chain-head>span:first-child:after,.chain-head>span:last-child:after{content:"参考价 / IV";display:block;font-size:9px;font-weight:400;color:#74839a;margin-top:4px}.quote-cell{min-height:76px}}.iv-estimate{font-size:10px;margin-left:3px;color:#64748b}.iv-legend{font-size:11px;color:#718096;margin:8px 0 0;line-height:1.5}.picker-instrument{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.picker-instrument label{display:flex;align-items:center;gap:12px;font-size:12px;color:#64748b}.picker-instrument select{min-width:210px;font-size:14px;font-weight:600;color:#172239}.picker-instrument>button{display:flex;align-items:center;gap:6px;font-size:12px;color:#246bfd;white-space:nowrap}.picker-notice,.picker-replace{font-size:12px;line-height:1.5;margin:0 0 12px;color:#64748b}.picker-replace{color:#405a80;background:#f0f5fc;border-radius:6px;padding:8px 10px}@media(max-width:600px){.picker-instrument{gap:8px;margin-bottom:12px}.picker-instrument label{gap:6px;min-width:0}.picker-instrument select{min-width:0;width:165px;font-size:12px;min-height:42px;padding-left:8px}.picker-instrument>button{font-size:11px;padding:7px;min-height:42px}.picker-instrument>button svg{width:14px}.picker-notice,.picker-replace{font-size:11px}}.picker-instrument{justify-content:flex-start;flex-wrap:wrap;margin-bottom:0}.picker-instrument label{flex-shrink:0}.picker-instrument .expiry-options{flex:1;gap:8px}.picker-instrument>button{margin-left:auto}.picker-instrument .expiry-options button{min-height:35px}.picker-instrument~.picker-notice,.picker-instrument~.picker-replace{margin-top:12px}@media(max-width:800px){.picker-instrument .expiry-options{order:3;flex-basis:100%;margin-top:4px}.picker-instrument .expiry-options button{min-height:40px}}@media(max-width:600px){.picker-source .expiry-date{flex-basis:100%}}.metric-help{display:inline-flex;align-items:baseline;justify-content:flex-start;flex-wrap:wrap;gap:0 7px;min-height:28px;max-width:100%;padding:2px 0;border:0;border-radius:3px;background:transparent;color:inherit;font:inherit;text-align:left;cursor:help}.metric-help:hover{background:transparent;color:#1f5ed4;border:0}.metric-help:focus-visible{outline:2px solid #4d8bff;outline-offset:4px}.metric-help .metric-value{border-bottom:1px dotted #a4b2c7;font-variant-numeric:tabular-nums}.greeks .metric-help small{font-size:13px;color:#768398}.metric-tooltip{position:fixed;z-index:1200;display:block;width:min(340px,calc(100vw - 24px));max-height:calc(100vh - 24px);overflow:auto;padding:13px 15px;border:1px solid #d5dfed;border-radius:8px;background:#fff;color:#36465f;box-shadow:0 6px 24px #17223926;font-size:14px;font-weight:400;line-height:1.65;white-space:normal;overflow-wrap:anywhere}.metric-tooltip>b{display:block;margin-bottom:5px;color:#172239;font-size:15px}.results .metric-help{gap:0 8px}@media(max-width:600px){.greeks .metric-help{min-height:36px}.metric-tooltip{font-size:14px}}:root{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;color:#172239;background:#f7f9fc;font-synthesis:none;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{display:inline-flex;align-items:center;justify-content:center;gap:7px;cursor:pointer;border:1px solid #d1dbea;border-radius:6px;background:transparent;color:#36465f;min-height:35px;padding:7px 12px;font-weight:550}button:hover{background:#eaf1ff;border-color:#92b6ff}button:disabled{opacity:.5;cursor:not-allowed}a{color:#246bfd;text-decoration:none}a:hover{text-decoration:underline}input,select{min-width:0;max-width:100%;background:#fff;border:1px solid #cbd6e6;border-radius:5px;min-height:32px;color:#192439;padding:5px 8px;outline:none}input:focus,select:focus,button:focus-visible,a:focus-visible{outline:2px solid #4d8bff;outline-offset:2px}input:disabled,select:disabled{color:#64748b;background:#f1f4f8}input[type=number]{width:100%;font-variant-numeric:tabular-nums}input[type=range]{-webkit-appearance:none;-moz-appearance:none;appearance:none;height:4px;min-height:4px;padding:0;background:#d2dbe9;border:0;width:100%;cursor:pointer;margin:20px 0 10px;accent-color:#246bfd}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:15px;height:15px;border-radius:50%;background:#246bfd;box-shadow:0 0 0 2px #e9f0ff}input[type=date],input[type=datetime-local]{font-size:13px;width:100%}small{color:#768398;font-size:11px}p{line-height:1.6}.app-shell{display:flex;min-height:100vh}.sidebar{width:208px;flex-shrink:0;background:linear-gradient(155deg,#111c30,#0a1324);color:#ecf1fc;padding:26px 10px 22px;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;z-index:5}.brand{color:#fff;display:flex;align-items:center;justify-content:center;gap:10px;font-size:19px;font-weight:650;letter-spacing:-.5px;white-space:nowrap}.brand svg{color:#2e7bff}.brand b{font-weight:550}.sidebar nav{margin-top:35px}.sidebar nav a,.nav-group{height:52px;display:flex;align-items:center;gap:14px;color:#dfe7f7;padding:0 15px;margin:4px 0;border-radius:7px;font-size:16px}.nav-group{margin-bottom:16px;font-weight:600}.sidebar nav .active{background:#216bfb;color:#fff;box-shadow:0 5px 20px #0a338433}.sidebar nav a:hover{background:#213453;text-decoration:none}.sidebar nav a.active:hover{background:#216bfb}.sidebar-guide{margin-top:auto;display:flex;gap:10px;justify-content:center;align-items:center;border:1px solid #67758e;border-radius:6px;padding:10px;color:#e5edfc}main{margin-left:208px;padding:21px 28px 30px;flex:1;min-width:0;max-width:1900px}header{display:flex;align-items:center;gap:25px;border-bottom:1px solid #d9e1ed;padding:0 0 19px}h1{font-size:30px;letter-spacing:-.8px;white-space:nowrap;margin:0;font-weight:750}.tagline{font-size:16px;color:#53617a;border-left:1px solid #b6c4da;padding-left:22px}.badge{margin-left:auto;white-space:nowrap;background:#e4edff;color:#246bfd;padding:7px 12px;border-radius:6px;font-size:12px;font-weight:600}.context{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-bottom:1px solid #d9e1ed;gap:15px}.context>div{display:flex;gap:14px;align-items:center}.context select{font-weight:600;border:0;background:transparent;padding-left:0;font-size:15px}.slash{color:#9cabc0}.edit-link{font-size:13px}.outline{border-color:#5d92ff;color:#216bfb;background:#fff}.primary{background:#216bfb;border-color:#216bfb;color:#fff}.primary:hover{background:#1556ce;color:#fff}.snapshot-line{display:flex;align-items:center;gap:13px;font-size:11px;color:#69788e;margin:11px 0 7px;flex-wrap:wrap}.pill{padding:3px 6px;border-radius:4px;background:#e8efff;color:#315fb0}.pill.amber{background:#fff1d6;color:#956511}.source-note{font-size:11px;color:#7a8798;margin:3px 0 12px}.notice{background:#edf3ff;border-left:3px solid #528bfa;color:#3c587b;padding:9px 11px;display:flex;justify-content:space-between;align-items:center;font-size:12px;margin:10px 0}.notice button{border:0;min-height:20px;padding:0 5px;font-size:19px}.analysis-toolbar{display:flex;align-items:center;gap:15px;margin:17px 0 0}.analysis-toolbar>select{margin-left:auto;font-size:12px}.tabs{display:flex;border:1px solid #ccd8eb;border-radius:6px;overflow:hidden;background:#f0f4fa}.tabs button{border:0;border-radius:0;padding:9px 22px;font-size:15px}.tabs button.selected{background:#246bfd;color:#fff}.analysis-grid{display:grid;grid-template-columns:minmax(0,1fr) 270px;margin-top:7px;min-height:415px}.chart-panel{min-width:0;position:relative}.chart{height:405px;width:100%}.chart-status{font-size:11px;color:#8090a7;min-height:19px;padding:9px 0 0 4px}.scenario-controls{border-left:1px solid #dae2ef;padding:19px 0 0 24px;margin:15px 0 20px 12px}.control{margin-bottom:25px}.control>label{display:flex;align-items:center;justify-content:space-between;font-size:15px;font-weight:600;margin-bottom:8px}.control>label>input{width:112px}.control>label>span{display:flex;align-items:center;font-size:11px;gap:7px;color:#5d6980}.control>label>span input{width:65px}.range-label{display:flex;justify-content:space-between;font-size:11px;color:#6e7d95}.control .sub-label{margin-top:9px;font-size:11px;font-weight:400;color:#7c899e}.control .sub-label input{width:85px;min-height:25px;font-size:12px}.hint{font-size:11px;color:#8893a5;margin:9px 0 0}.text-button{padding:5px 0;min-height:24px;border:0;font-size:11px;color:#3973d9}.reset{width:100%;height:38px}.privacy{font-size:10px;color:#8b97aa;text-align:center}.results{display:grid;grid-template-columns:repeat(2,1fr);padding:17px 0;border-block:1px solid #d3ddeb;margin-top:3px;transition:opacity .1s}.results>div{display:flex;align-items:baseline;gap:10px;padding:0 17px;border-right:1px solid #c9d4e5;flex-wrap:wrap}.results>div:first-child{padding-left:5px}.results>div:last-child{border:0}.results strong{color:#246bfd;font-size:24px;letter-spacing:-.7px;font-variant-numeric:tabular-nums}.results span{font-size:13px}.results .profit{color:#cd5367}.results .loss{color:#26867b}.calculating{opacity:.55}.greeks{display:flex;gap:22px;padding:15px 4px;color:#435773;font-size:12px;flex-wrap:wrap}.greeks b{font-weight:550;margin-right:6px}.greeks small{margin-left:5px}.section-title{display:flex;gap:13px;align-items:center;padding:12px 0}.section-title h2{font-size:17px;margin:0}.section-title>span{font-size:11px;color:#8190a5}.section-title>button{margin-left:auto;border:0;font-size:12px}.template-builder{display:flex;gap:10px;align-items:flex-end;background:#edf2f9;padding:12px;border-radius:6px;margin-bottom:13px}.template-builder label{display:flex;flex-direction:column;gap:6px;font-size:11px;color:#73839a;flex:1;min-width:0}.template-builder label:first-child{flex:1.5}.template-builder select{font-size:12px;width:100%}.template-builder .primary{flex-shrink:0;height:33px;min-height:33px}.advanced{display:flex;flex-wrap:wrap;gap:12px;padding:13px;background:#f0f4fb;margin-bottom:12px;border-radius:6px}.advanced label{font-size:11px;flex:1;min-width:150px;display:flex;flex-direction:column;gap:6px}.advanced p{flex-basis:100%;font-size:11px;margin:0;color:#73819a}.leg-table{border:1px solid #d1dceb;border-radius:6px;overflow:hidden}.leg-head,.leg-row{display:grid;grid-template-columns:105px minmax(130px,1.65fr) minmax(125px,1.2fr) 60px 100px 100px minmax(85px,1fr) 30px;gap:12px;align-items:center;padding:10px 14px}.leg-head{background:#edf2f8;font-size:12px;color:#4b5c77}.leg-row{border-top:1px solid #d8e1ef;background:#fcfdff}.leg-row input,.leg-row select{font-size:12px;width:100%}.leg-row>div{min-width:0}.leg-row>div>small{display:block;font-size:9px;margin-top:5px}.leg-direction{display:flex;gap:4px;flex-direction:column}.leg-row>div>select{margin-bottom:4px}.mini{display:flex;align-items:center;gap:5px;white-space:nowrap;font-size:10px;color:#8a95a6;margin-top:4px}.mini input{font-size:11px;min-height:25px;padding:3px 6px}.contribution{font-size:13px;font-variant-numeric:tabular-nums;text-align:right}.contribution small{line-height:1.6}.delete{border:0;padding:5px;color:#92a1b6}.delete:hover{color:#c64054;background:#fce9ec}.table-footer{display:flex;align-items:center;justify-content:space-between;margin:14px 0 21px;gap:15px}.table-footer>span{font-size:11px;color:#7a879d}.table-footer button{font-size:12px}.empty-chart{height:405px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#8295af}.empty-chart h3{font-size:16px;color:#4d637e}.empty-chart p{font-size:12px}.heat-note{font-size:10px;color:#8a96a9;margin:0}.mobile-control{display:none}footer{border-top:1px solid #d3ddeb;padding-top:12px;color:#7a879d;font-size:11px}footer p{margin:3px 0}footer details{margin-top:10px;font-size:10px}footer>a{display:inline-flex;align-items:center;gap:4px;margin-top:10px;color:#6d84a9}.spin{animation:spin 1.4s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(min-width:1600px){.chart{height:470px}.analysis-grid{min-height:480px}.scenario-controls{padding-top:30px}.control{margin-bottom:36px}.leg-head,.leg-row{grid-template-columns:110px minmax(170px,1.8fr) minmax(140px,1.4fr) 80px 120px 120px minmax(100px,1fr) 35px}}@media(max-width:1200px){.sidebar{width:180px}.brand{font-size:16px}.sidebar nav a,.nav-group{font-size:14px;padding:0 10px;gap:10px}main{margin-left:180px;padding:18px}.tagline{display:none}.analysis-grid{grid-template-columns:minmax(0,1fr) 230px}.scenario-controls{padding-left:16px}.leg-head,.leg-row{grid-template-columns:85px minmax(110px,1.6fr) 120px 45px 85px 85px 85px 25px;gap:7px;padding:9px}.leg-table{overflow:auto}.leg-head,.leg-row{min-width:750px}.template-builder{flex-wrap:wrap}.template-builder label{min-width:100px}.greeks{gap:12px}}@media(max-width:800px){.sidebar{width:64px;padding:20px 7px}.brand span,.sidebar nav a,.nav-group,.sidebar-guide{font-size:0;gap:0}.brand svg{width:28px}.sidebar nav a,.nav-group{justify-content:center;padding:0}.sidebar-guide{padding:10px 0}.sidebar nav{margin-top:25px}main{margin-left:64px;padding:18px}.analysis-grid{grid-template-columns:minmax(0,1fr) 210px}.scenario-controls{padding-left:12px;margin-left:3px}.context>div{gap:8px}.context strong,.slash{display:none}.results strong{font-size:20px}.template-builder label{min-width:110px}.badge{font-size:10px;padding:6px}h1{font-size:26px}}@media(max-width:600px){.sidebar{display:none}main{margin:0;padding:17px 14px 30px;width:100%}header{gap:8px;padding-bottom:14px}h1{font-size:24px}.badge{margin-left:auto}.context{padding:10px 0}.context select{font-size:13px;max-width:160px}.context>div>span{display:none}.edit-link{font-size:11px}.context>.outline{font-size:11px;padding:6px 8px;gap:3px}.snapshot-line{gap:7px;font-size:10px}.snapshot-line>span:last-child{flex-basis:100%}.notice{font-size:11px}.source-note{font-size:10px}.analysis-toolbar{gap:8px;flex-wrap:wrap;margin-top:13px}.tabs button{font-size:12px;padding:8px 12px}.analysis-toolbar>select{font-size:10px;width:125px;margin-left:auto}.mobile-control{display:flex;width:100%;font-size:11px;min-height:29px;background:#eef3fb;border-color:#dde6f3}.analysis-grid{display:flex;flex-direction:column;min-height:0}.chart-status{font-size:10px}.chart{height:330px}.scenario-controls{display:none;border:1px solid #d9e2ef;border-radius:6px;padding:16px;margin:5px 0 15px}.scenario-controls.expanded{display:block}.control{margin-bottom:20px}.empty-chart{height:330px;text-align:center}.results{padding:13px 0;gap:0}.results>div{padding:0 9px;gap:3px;display:flex;flex-direction:column;position:relative}.results>div:first-child{padding-left:3px}.results span{font-size:10px}.results strong{font-size:20px}.results small{display:none}.greeks{display:grid;grid-template-columns:1fr 1fr;gap:10px;font-size:11px;padding:12px 2px}.greeks small{display:block;font-size:9px;margin:3px 0 0}.section-title{gap:7px}.section-title h2{font-size:16px}.section-title>span{display:none}.section-title>button{font-size:10px;padding:5px}.template-builder{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:10px}.template-builder label{min-width:0}.template-builder .primary{grid-column:1/-1}.leg-table{overflow:visible;border:0;display:flex;flex-direction:column;gap:12px}.leg-head{display:none}.leg-row{min-width:0;display:grid;grid-template-columns:1fr 1fr;gap:10px;background:#fff;border:1px solid #d3dfef;border-radius:7px;padding:12px;position:relative}.leg-direction{flex-direction:row;padding-right:25px}.leg-row>div:nth-child(2){grid-column:1/-1;grid-row:2}.leg-row>div:nth-child(2)>select{width:100%}.leg-row>div:nth-child(2)>input{width:calc(40% - 6px)}.leg-row>div:nth-child(3):before{content:"到期日";display:block;font-size:10px;color:#8190a4;margin-bottom:4px}.leg-row>div:nth-child(4):before{content:"数量";display:block;font-size:10px;color:#8190a4;margin-bottom:4px}.leg-row>div:nth-child(5):before{content:"建仓价";display:block;font-size:10px;color:#8190a4;margin-bottom:4px}.leg-row>div:nth-child(6):before{content:"情景 IV（%）";display:block;font-size:10px;color:#8190a4;margin-bottom:4px}.leg-row .contribution{grid-column:2;grid-row:1;text-align:right;padding-right:22px;font-size:16px}.leg-row .delete{position:absolute;right:4px;top:7px}.table-footer{align-items:flex-start}.table-footer>span{font-size:10px;text-align:right;max-width:185px}.table-footer button{font-size:11px;white-space:nowrap}.advanced label{min-width:130px}footer{font-size:10px}}@media(min-width:601px){.scenario-controls{padding-top:12px;margin-top:12px}.control{margin-bottom:17px}.control>label{font-size:14px;margin-bottom:5px}input[type=range]{margin-top:13px}.control .sub-label{margin-top:5px}.text-button{font-size:10px}.privacy{margin:6px 0}.control .hint{margin:5px 0}.scenario-controls .reset{height:33px}.source-note{margin:3px 0 7px}.analysis-toolbar{margin-top:12px}.chart{height:405px}.analysis-grid{min-height:415px}.section-title>button{margin-left:0}.section-title>button:first-of-type{margin-left:auto}}@media(min-width:601px){.scenario-controls input[type=range]{margin:7px 0}.scenario-controls .control{margin-bottom:12px}.scenario-controls{margin-bottom:10px}.leg-row{padding-top:7px;padding-bottom:7px}.leg-row input,.leg-row select{min-height:28px;padding-top:3px;padding-bottom:3px}}@media(max-width:600px){.leg-row input,.leg-row select,.mobile-control{min-height:36px}}.greek-help{margin:0 4px 16px;color:#5e708d;font-size:12px;line-height:1.7}.greek-help summary{cursor:pointer;color:#325a91}.greek-help p{margin:5px 0;max-width:1000px}.market-add{display:flex;align-items:center;gap:10px;min-width:0;max-width:70%}.market-add select{min-width:0;max-width:360px}.market-add button{flex-shrink:0}.data-notes>summary{cursor:pointer;color:#6d84a9;font-size:11px;width:fit-content}.data-notes[open]>summary{margin-bottom:10px}.data-notes .snapshot-line{margin-top:0}.greeks>span{font-variant-numeric:tabular-nums}@media(max-width:600px){.market-add{max-width:100%;width:100%;flex-wrap:wrap}.market-add select{width:100%;max-width:100%;min-height:36px}.table-footer{flex-wrap:wrap;gap:12px}}.empty-chart .primary{margin-top:8px;min-height:44px;padding:9px 20px}.model-labels{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}.model-labels .pill{font-size:12px;padding:3px 7px}.scenario-embedded .sidebar{display:none}.scenario-embedded main{margin-left:0;width:100%;max-width:none}/*! Bundled Source Sans font license:
Copyright 2010-2024 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries.

This Font Software is licensed under the SIL Open Font License, Version 1.1.

This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL


-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

*/@font-face{font-family:Source Sans;src:url(/tools/option-scenario/assets/source-sans-BsWL4Kly.woff2) format("woff2");font-style:normal;font-weight:200 900;font-display:swap}:root{--option-bg: #f6f8fb;--option-surface: #ffffff;--option-text: #0f172a;--option-muted: #64748b;--option-border: #dce5f1;--option-blue: #2563eb;--option-grid: #edf2f7;font-family:Source Sans,sans-serif;color:var(--option-text);background:var(--option-bg)}body,.app-shell{background:var(--option-bg)}main,.scenario-embedded main{padding:18px 24px 24px;max-width:none}header{min-height:44px;padding:0;border:0;margin-bottom:16px;gap:10px}header:before{content:"";width:30px;height:30px;flex:0 0 30px;border-radius:8px;background:linear-gradient(135deg,#2563eb,#14b8a6);box-shadow:inset 0 0 0 1px #ffffff6b}h1{font-size:27px;line-height:1.1;font-weight:760;letter-spacing:normal;color:var(--option-text)}h2{color:var(--option-text)}button,input,select{border-radius:8px;font-family:inherit}input,select{color:var(--option-text);border-color:var(--option-border)}button{color:#334155;border-color:var(--option-border)}button:focus-visible,input:focus,select:focus,a:focus-visible{outline-color:var(--option-blue)}.primary,.tabs button.active{background:var(--option-blue);border-color:var(--option-blue);color:#fff}.primary:hover{background:#1d4ed8;border-color:#1d4ed8}.outline,.add-contract{color:var(--option-blue);background:#fff}.analysis-toolbar{margin:0 0 14px}.tabs{background:#fff;border-color:var(--option-border);border-radius:8px}.tabs button{min-height:34px;padding:6px 16px;font-size:14px;font-weight:600}.analysis-grid{gap:16px;min-height:0;align-items:stretch}.chart-panel,.scenario-controls,.results,.strategy{background:var(--option-surface);border:1px solid var(--option-border);border-radius:10px;box-shadow:0 1px 2px #0f172a08}.chart-panel{position:relative;min-width:0;padding:12px 14px}.chart,.empty-chart{height:clamp(300px,43vh,470px)}.empty-chart{color:var(--option-muted)}.empty-chart h3{font-size:18px;font-weight:600;color:#475569}.empty-chart .primary{font-size:14px}.scenario-controls{padding:16px;margin:0}.control>label{font-size:14px;font-weight:600;color:var(--option-text)}.range-labels,.privacy,.hint{color:var(--option-muted)}.results{margin-top:14px;padding:16px 20px}.results strong{font-size:28px;font-weight:700;font-variant-numeric:tabular-nums}.results>div:first-child strong{color:var(--option-blue)}.greeks{color:#475569;padding:14px 4px;font-size:16px;line-height:1.6}.greeks>b{font-size:18px;color:var(--option-text)}.greeks small{font-size:13px}.contribution .profit{color:#c43f55;font-weight:600}.contribution .loss{color:#12836e;font-weight:600}.strategy{padding:16px;margin-top:16px}.section-title{margin-bottom:14px}.leg-table{border-color:var(--option-border);border-radius:8px}.leg-head{background:#f8fafc;color:var(--option-muted)}.notice{border-radius:8px;background:#eff6ff;color:#1e40af}.picker-dialog{font-family:Source Sans,sans-serif}.curve-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 4px 0}.curve-heading h2{font-size:20px;font-weight:700;margin:0}.curve-view .profit{color:#c43f55}.curve-view .loss{color:#12836e}.curve-summary{border-top:1px solid var(--option-grid);margin:0 4px;padding:14px 0 2px;display:flex;flex-wrap:wrap;gap:12px 24px;align-items:baseline}.curve-summary>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 10px;min-width:0}.curve-summary>div>span{font-size:14px;color:#64748b}.curve-summary strong{font-size:23px;font-weight:650;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.curve-summary .curve-breakeven{color:var(--option-blue)}.curve-summary small{font-size:12px;font-weight:400}@media(max-width:768px){main,.scenario-embedded main{padding:12px}h1{font-size:24px}header{margin-bottom:12px}}@media(max-width:600px){.chart-panel{padding:10px 4px}.chart,.empty-chart{height:320px}.analysis-grid{gap:10px}.scenario-controls{margin:0}.results{padding:12px}.results strong{font-size:24px}.strategy{padding:12px}.tabs button{font-size:13px;padding:6px 12px}.curve-heading{padding:6px 8px 0}.curve-heading h2{font-size:18px}.curve-summary{margin:0 8px;gap:10px}.curve-summary>div{width:100%;justify-content:space-between}.curve-summary strong{font-size:19px}}.curve-controls{display:flex;align-items:center;gap:16px;margin-left:auto;font-size:13px;color:#64748b}.curve-controls select{max-width:220px}.curve-controls label{display:flex;align-items:center;gap:6px;white-space:nowrap}.curve-controls input[type=checkbox],.group-heading input[type=checkbox]{width:15px;height:15px;accent-color:#2563eb}.target-control{display:grid;gap:8px;margin-bottom:22px;font-size:14px;font-weight:600}.target-control select{width:100%}.group-heading{display:flex;align-items:center;gap:12px;padding:12px 14px;background:#eef3fa;border:1px solid #dce5f1;border-bottom:0;border-radius:8px 8px 0 0;font-size:14px}.group-heading label{display:flex;align-items:center;gap:9px;font-weight:600}.group-heading button{display:flex;align-items:center;gap:5px;background:none;border:0;padding:3px 6px;color:#64748b}.group-heading>span{margin-left:auto;font-variant-numeric:tabular-nums}.portfolio-group+.portfolio-group{margin-top:14px}.portfolio-group .leg-table{margin-top:0}@media(max-width:700px){.analysis-toolbar{flex-wrap:wrap}.curve-controls{order:3;width:100%;margin:8px 0 0;justify-content:space-between}.curve-controls select{max-width:65%;font-size:12px}.curve-controls label{font-size:12px}.group-heading{padding:10px;font-size:13px;gap:6px}}.scope-note,.scope-warning,.chart-scope-note{font-size:12px;line-height:1.5;color:#64748b;margin:4px 0 12px}.scope-warning{padding:8px;background:#eef4ff;border-radius:6px;color:#315da0}.chart-scope-note{margin:4px 0 0}.curve-heading{flex-wrap:wrap}.chart-scope-note{flex-basis:100%}input[type=range].mixed-range{opacity:.6}input[type=range].mixed-range::-webkit-slider-thumb{opacity:0}input[type=range].mixed-range::-moz-range-thumb{opacity:0}.observation-settings{display:grid;gap:12px;grid-column:1/-1}.advanced .checkbox-label{display:flex;align-items:center;gap:8px}.advanced .checkbox-label input{width:16px;height:16px;accent-color:#2563eb}.observation-settings select{max-width:300px}@media(max-width:700px){.curve-controls{justify-content:flex-end}.chart-scope-note{font-size:11px}.curve-summary>div{flex-wrap:wrap}}@media(max-width:600px){.analysis-toolbar .tabs{min-width:0;flex:0 1 auto}.analysis-toolbar .tabs button{min-height:40px;padding:6px 8px;white-space:nowrap}.analysis-toolbar .mobile-control{width:auto;flex:0 0 auto;margin-left:auto;min-height:40px;padding:6px 10px;font-size:13px;white-space:nowrap}.mobile-control[aria-expanded=true]{color:var(--option-blue);border-color:var(--option-blue)}.analysis-grid>.scenario-controls{order:-1}}
