/* Dynamic allocation research workspace. Fonts are supplied by design-system.css. */
:root{--bs-primary:#167659;--bs-defense:#947127;--bs-breadth:#315f95;--bs-ink:#172f2a;--bs-muted:#5d6e67;--bs-line:#d8e2dc;--bs-paper:#f3f6f3}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:90px}body{margin:0;background:var(--bs-paper);color:var(--bs-ink);font-family:var(--font-ui),sans-serif;font-size:16px;line-height:1.65}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.55}a{color:#145f46;text-underline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #315f95;outline-offset:4px}input,select{border:1px solid #bbcfc2;border-radius:8px;background:white;padding:11px 12px;min-height:46px;color:var(--bs-ink);max-width:100%;font-size:14px}input[type=range]{padding:0;min-height:32px;border:0;background:transparent;width:100%;accent-color:var(--bs-primary);cursor:pointer}input[type=date]{min-width:0}input[type=number],.signal-kpis dd,.result-metrics strong,.result-inspect,td,.data-strip dd{font-family:var(--font-data),sans-serif;font-variant-numeric:tabular-nums}h1,h2,h3,p{margin-top:0}h1,h2,h3,strong,b{font-weight:700}button[hidden],[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;top:-100px;left:20px;background:#fff;padding:12px;z-index:100}.skip-link:focus{top:12px}
.sidebar{width:232px;height:100vh;position:fixed;inset:0 auto 0 0;background:#edf2ed;border-right:1px solid var(--bs-line);padding:30px 17px;display:flex;flex-direction:column;z-index:5}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:#214e3b;font-size:14px;font-weight:700;line-height:1.5;margin-bottom:40px}.brand-icon{width:34px;height:34px;border-radius:9px;background:#167659;display:flex;align-items:flex-end;gap:3px;padding:8px;flex:none}.brand-icon i{width:4px;background:#e5f1c9;border-radius:1px}.brand-icon i:nth-child(1){height:7px}.brand-icon i:nth-child(2){height:12px}.brand-icon i:nth-child(3){height:17px}.sidebar-label{font-size:10px;letter-spacing:1.1px;color:#62756a;margin:0 11px 13px}.sidebar nav{display:grid;gap:5px}.sidebar nav a{font-size:13px;padding:11px 12px;color:#4c6457;text-decoration:none;border-radius:8px;line-height:1.45}.sidebar nav a:hover{background:#e2ebe3}.sidebar nav a.active{color:#11543c;background:#dcebe0;font-weight:700}.sidebar nav a.nav-child{margin-left:12px;font-size:12px;border-left:2px solid #aecab7;border-radius:0 8px 8px 0}.sidebar nav a span{display:block;font-size:11px;font-weight:400;margin-top:4px;color:#4e6a58}.sidebar-bottom{font-size:11px;line-height:1.9;color:#596e5f;margin:auto 10px 0}.sidebar-bottom i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#167659;margin-right:7px}.sidebar-bottom b{font-weight:400}.shell{margin-left:232px}.topbar{min-height:68px;border-bottom:1px solid var(--bs-line);display:flex;justify-content:space-between;align-items:center;padding:15px 36px;font-size:12px;color:#5d6e67;gap:20px}.topbar div span{margin:0 12px;color:#7b8d81}.topbar a{font-size:12px;text-decoration:none;white-space:nowrap}main{max-width:1460px;padding:36px 36px 22px;margin:auto}.page-heading{display:flex;justify-content:space-between;align-items:flex-start;margin:0 0 26px;gap:20px}.eyebrow{font-size:11px;letter-spacing:1.1px;color:#4c6e5a;margin:0 0 12px;font-weight:700}.page-heading h1{font-size:clamp(29px,2.5vw,42px);line-height:1.23;letter-spacing:-1px;margin:0 0 18px}.subtitle{font-size:15px;line-height:1.8;color:var(--bs-muted);margin:0}.version-badge,.tag{display:inline-block;white-space:nowrap;border:1px solid #cdddcf;background:#edf4eb;color:#48654e;padding:6px 10px;border-radius:7px;font-size:11px}.version-badge{margin-top:4px}.page-nav{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 20px;padding:5px;background:#e6ede7;border:1px solid #d7e2d9;border-radius:11px}.page-nav a{padding:9px 15px;flex:1;text-align:center;text-decoration:none;font-size:14px;font-weight:700;white-space:nowrap;border-radius:7px}.page-nav a:hover,.page-nav a:focus-visible{background:#fff}.page-nav span{color:#607c69;font-size:11px;margin-right:7px}.data-strip{display:grid;grid-template-columns:.8fr .8fr 1.5fr 1.1fr;gap:18px;margin:0 0 24px;padding:17px 0 20px;border-bottom:1px solid var(--bs-line)}.data-strip dt{font-size:11px;color:var(--bs-muted);margin-bottom:5px}.data-strip dd{font-size:12px;margin:0;color:#334d40}
.concept{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:30px;padding:28px;background:#e5eee4;border:1px solid #cedfcc;border-radius:14px;margin-bottom:25px}.concept h2{font-size:22px;letter-spacing:-.4px;line-height:1.4;margin:0 0 12px}.concept p:not(.eyebrow){font-size:14px;color:#45624f;line-height:1.8}.formula{background:#f7faf4;border:1px solid #ccddc7;border-radius:9px;padding:16px}.formula span{font-size:12px;display:block;color:#526d56}.formula strong{display:block;font-size:20px;letter-spacing:-.3px;margin:8px 0}.formula small{font-size:12px;color:#526d56;line-height:1.7;display:block}.concept-visual{display:flex;align-items:center;min-width:0;overflow:auto}.concept-visual svg{width:100%;min-width:460px;height:auto;display:block}.concept-visual svg text{font-family:var(--font-ui),sans-serif}.status{font-size:14px;color:#476d54;line-height:1.8;margin:18px 0}.loading-text{color:#526d56;font-size:14px}.panel{background:#fff;border:1px solid var(--bs-line);border-radius:14px;padding:28px;margin-bottom:24px;min-width:0}.section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:24px}.section-head h2{font-size:23px;letter-spacing:-.4px;line-height:1.4;margin:0 0 9px}.section-head p:not(.eyebrow){font-size:14px;line-height:1.8;color:var(--bs-muted);margin:0}.section-head .eyebrow{margin-bottom:8px}.button{display:inline-flex;align-items:center;justify-content:center;gap:20px;min-height:46px;border-radius:8px;padding:11px 17px;font-size:14px;font-weight:700;border:1px solid transparent;text-decoration:none;white-space:nowrap}.button.primary{background:#167659;color:white;border-color:#167659}.button.primary:hover{background:#105c43}.button.secondary{color:#315e46;border-color:#cbdcce;background:#f6f9f4}.button.secondary:hover{background:#e8f0e5}.text-button{background:transparent;border:0;color:#245f42;padding:3px 0;font-size:13px;min-height:40px;text-decoration:none}.asset-grid{display:grid;grid-template-columns:minmax(0,1fr) 26px minmax(0,1fr);gap:17px;align-items:center}.asset-grid label{display:flex;flex-direction:column;gap:10px;font-size:14px;color:#355a41}.asset-role{display:flex;gap:8px 12px;flex-wrap:wrap;align-items:center;font-weight:700}.asset-kind{display:inline-block;font-size:10px;padding:3px 7px;border:1px solid #cbd8d1;background:#f1f5f2;color:#4c6258;font-weight:400;border-radius:5px}.asset-kind.is-synthetic{color:#6b4696;border-color:#d4bde6;background:#f6f0fb}.asset-grid select{width:100%}.asset-grid small{font-size:12px;line-height:1.75;color:var(--bs-muted);min-height:45px}.asset-arrow{text-align:center;font-size:26px;color:#789381;padding-bottom:8px}.threshold-block{display:grid;grid-template-columns:1fr minmax(250px,1fr);gap:36px;align-items:center;border-top:1px solid #e4ebe6;padding-top:24px;margin-top:24px}.threshold-block label{font-size:16px;font-weight:700}.threshold-block label span{color:#5f7a68;margin-left:5px}.threshold-block p{font-size:13px;color:var(--bs-muted);line-height:1.8;margin:10px 0 0}.threshold-control{min-width:0}.number-with-unit{display:flex;align-items:center;gap:10px;margin-bottom:8px}.number-with-unit input{width:100px;font-size:28px;min-height:57px;background:#f0f7ee;border-color:#adcbb1;padding:5px 13px}.number-with-unit span{font-size:14px;color:#526f5b}.range-ends{display:flex;justify-content:space-between;gap:20px;font-size:11px;color:var(--bs-muted);line-height:1.6}.scenario-note{font-size:13px;line-height:1.8;background:#f0f6ed;border:1px solid #dbe7d6;border-radius:8px;padding:13px 16px;margin:23px 0;color:#3b6147}.backtest-settings{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.backtest-settings label{font-size:12px;color:#4d6958;display:flex;flex-direction:column;gap:8px}.backtest-settings input{width:100%}.backtest-settings small{font-size:11px;color:var(--bs-muted);line-height:1.7}.run-row{display:flex;justify-content:space-between;align-items:center;gap:25px;margin-top:24px;padding-top:21px;border-top:1px solid #e4ebe6}.run-row p{font-size:13px;line-height:1.8;color:#4f6d58;margin:0 0 6px}.run-row small{font-size:12px;color:var(--bs-muted)}.error,.warning{font-size:13px;line-height:1.8;padding:13px 16px;border:1px solid #d9c38e;background:#fcf7e9;color:#75571e;border-radius:8px;margin:18px 0}.error{border-color:#d4a396;background:#fdf1ed;color:#8f402c}
.frame-head{display:flex;justify-content:space-between;gap:20px;align-items:center}.frame-label{font-size:11px;letter-spacing:1px;color:#5f7866}.frame-head h3{font-size:29px;letter-spacing:-.5px;text-transform:capitalize;margin:7px 0}.frame-head p{font-size:12px;color:var(--bs-muted);line-height:1.8;margin:0}.player{display:flex;gap:7px}.player .button{font-size:12px;padding:9px 12px;min-height:44px}.player .square{width:44px;padding:8px}.history-panel #bs-month{margin-top:21px}.signal-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:24px 0 28px}.signal-kpis>div{padding:17px;background:#f4f8f1;border:1px solid #dce8d7;border-radius:9px}.signal-kpis dt{font-size:12px;color:#4f6d58}.signal-kpis dd{font-size:32px;letter-spacing:-.7px;font-weight:700;line-height:1.4;margin:8px 0}.signal-kpis small{font-size:11px;line-height:1.7;color:#5f7564;display:block}.signal-kpis>div:nth-child(1) dd{color:var(--bs-breadth)}.signal-kpis>div:nth-child(3) dd{color:#88641d}.chart-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:26px 0 13px}.chart-head h3{font-size:16px;margin:0}.chart-head>span,.chart-head>label{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--bs-muted)}.chart-head b{font-weight:400}.chart-head select{font-size:12px;min-height:40px;padding:7px 10px}.dot{display:inline-block;flex:none;height:9px;width:9px;border-radius:50%}.breadth-dot{background:var(--bs-breadth)}.primary-dot{background:var(--bs-primary)}.defensive-dot{background:var(--bs-defense);margin-left:12px}.chart{min-width:0;overflow:auto;scrollbar-width:thin}.chart svg{display:block;width:100%;min-width:800px;height:auto}.chart svg text{font-family:var(--font-data),sans-serif;font-size:16px;fill:#536c5d}.chart svg .axis-title{font-size:14px}.caption{font-size:12px;line-height:1.85;color:var(--bs-muted);margin:17px 0 0}.history-links{display:flex;justify-content:space-between;gap:20px;align-items:center;border-top:1px solid #e4ebe6;margin-top:21px;padding-top:15px;font-size:13px}.history-links a{text-decoration:none}.empty-result{text-align:center;background:#f4f8f1;border:1px dashed #bcd0b7;border-radius:10px;padding:36px 25px}.empty-result>span{display:block;color:#567e50;font-size:34px}.empty-result h3{font-size:18px;margin:5px 0 11px}.empty-result p{font-size:14px;line-height:1.8;max-width:610px;margin:0 auto;color:var(--bs-muted)}.result-period{font-size:13px;color:#4e6c56;margin:0 0 23px;line-height:1.8}.result-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:28px}.result-metrics>div{border-left:3px solid #b7d4b7;padding:5px 13px}.result-metrics span{display:block;font-size:12px;color:#526f59}.result-metrics strong{display:block;font-size:29px;letter-spacing:-.5px;margin-top:6px}.result-metrics small{font-size:11px;color:var(--bs-muted)}.legend{display:flex;flex-wrap:wrap;gap:12px 22px;font-size:12px;color:#4b6955;margin:15px 0 12px}.legend>span{display:flex;gap:8px;align-items:center}.legend i{display:inline-block;width:18px;height:3px;border-radius:1px}.legend i.is-dashed{background:repeating-linear-gradient(to right,var(--line-color) 0,var(--line-color) 6px,transparent 6px,transparent 9px)!important}.result-cursor-label{display:flex;justify-content:space-between;font-size:12px;color:#4f6d58;margin-top:15px}.result-inspect{display:flex;flex-wrap:wrap;gap:9px 22px;font-size:12px;color:#56705d;margin:10px 0 24px}.result-inspect b{color:#234e36}.table-scroll{overflow:auto;border:1px solid #d7e3d6;border-radius:9px;margin-top:21px;scrollbar-width:thin}table{border-collapse:collapse;width:100%;font-size:12px;min-width:900px}th,td{padding:14px 16px;border-bottom:1px solid #e3ebe0;text-align:right;white-space:nowrap}th{background:#f1f6ed;color:#42604a;font-size:11px;font-weight:700}td:first-child,th:first-child{text-align:left}tbody tr:last-child td{border-bottom:0}tbody tr.is-strategy{background:#edf5e7;color:#255c39}tbody tr.is-selected{background:#f2f7eb}.sensitivity-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-top:32px}.sensitivity-head h3{font-size:18px;margin:0 0 9px}.sensitivity-head p{font-size:13px;line-height:1.8;color:var(--bs-muted);max-width:700px;margin:0}.assumptions{border-top:1px solid #e4ebe6;padding-top:18px;margin-top:24px}.assumptions summary{font-size:14px;color:#355e41;cursor:pointer}.assumptions p{font-size:13px;line-height:1.8;color:var(--bs-muted);margin:13px 0 0}.download-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:21px}.download-row .button{font-size:12px}
.execution-timeline{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 22px;padding:0;counter-reset:stage}.execution-timeline li{position:relative;border:1px solid #d7e3d6;border-top:3px solid #7fad85;border-radius:9px;padding:18px;background:#f8faf6}.timeline-step{display:inline-flex;align-items:center;justify-content:center;width:27px;height:27px;border-radius:50%;background:#dcebdd;color:#23583a;font-size:13px;font-weight:700;margin-bottom:10px}.execution-timeline h3{font-size:15px;line-height:1.5;margin:0 0 9px}.execution-timeline p{font-size:12px;line-height:1.8;color:var(--bs-muted);margin:0}.execution-basis{padding:16px 19px;border-radius:9px;border:1px solid #bfd2d9;background:#eef5f8}.execution-basis strong{font-size:15px;color:#284d67}.execution-basis p{font-size:13px;line-height:1.85;color:#46647a;margin:8px 0 0}.audit-state{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.audit-state span{font-size:11px;line-height:1.6;padding:6px 10px;background:#f1f6ec;border:1px solid #d5e2ce;border-radius:6px;color:#3f6147}.audit-state span:last-child{background:#fcf7e9;border-color:#dbc68f;color:#73561f}.audit-limit{font-size:12px}.execution-empty{border:1px dashed #c8d9c8;border-radius:8px;padding:18px;margin-top:20px;font-size:13px;color:#59725e;background:#f7faf4}.execution-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:23px 0}.execution-summary div{border-left:2px solid #c4d9c4;padding-left:12px}.execution-summary dt{font-size:11px;color:var(--bs-muted);margin-bottom:5px}.execution-summary dd{margin:0;font-size:14px;font-family:var(--font-data),sans-serif;font-variant-numeric:tabular-nums;color:#294e38}.ledger-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:25px}.ledger-toolbar h3{font-size:17px;margin-bottom:5px}.ledger-toolbar p{font-size:12px;color:var(--bs-muted);margin:0}.ledger-toolbar label{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--bs-muted)}.ledger-toolbar select{font-size:12px;min-height:40px}.ledger-scroll{max-height:670px;margin-top:15px}.execution-table{min-width:1120px}.execution-table th{position:sticky;top:0;z-index:1}.execution-table th:nth-child(4),.execution-table th:nth-child(5),.execution-table td:nth-child(4),.execution-table td:nth-child(5){text-align:left}.execution-table td{vertical-align:top;font-size:12px}.execution-table td strong{font-weight:700}.execution-table td small{display:block;font-family:var(--font-ui),sans-serif;font-size:10px;line-height:1.65;color:#617566;max-width:200px;white-space:normal;margin-top:5px}.execution-table td .ledger-level{font-size:14px;color:#274f38}.execution-table td .ledger-delay{color:#87631e}.method-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.method-card h2{font-size:21px;letter-spacing:-.2px;margin-bottom:14px;line-height:1.4}.method-card p:not(.eyebrow){font-size:14px;line-height:1.85;color:var(--bs-muted)}.method-card a,.method-card .text-button{font-size:13px;text-decoration:none}.method-links{display:flex;flex-wrap:wrap;gap:12px 20px;align-items:center;margin-top:15px}.method-card{margin-bottom:0}.method-card #bs-provenance-note{overflow-wrap:anywhere}footer{display:flex;justify-content:space-between;align-items:center;gap:20px;font-size:12px;color:#607669;padding:28px 0 5px}footer span{font-size:11px}footer a{text-decoration:none;font-size:12px}
@media(min-width:1500px){main{padding-top:43px}.concept{padding:32px}}
@media(max-width:1200px){.sidebar{width:212px;padding-inline:14px}.shell{margin-left:212px}main{padding:30px 24px 20px}.topbar{padding-inline:24px}.concept{grid-template-columns:1fr;gap:22px}.concept-visual{max-width:570px;width:100%;margin:auto}.signal-kpis{grid-template-columns:1fr 1fr}.result-metrics{grid-template-columns:1fr 1fr;gap:22px 12px}.data-strip{grid-template-columns:1fr 1fr}.execution-timeline{gap:10px}.execution-timeline li{padding:15px}.section-head .tag{white-space:normal}.backtest-settings{grid-template-columns:1fr 1fr}}
@media(max-width:920px){.sidebar{width:182px;padding-inline:12px}.shell{margin-left:182px}.brand{font-size:12px;gap:8px}.sidebar nav a{font-size:12px;padding:10px}.sidebar nav a.nav-child{font-size:11px;margin-left:7px}.sidebar-label{font-size:9px;letter-spacing:.7px}.sidebar-bottom{font-size:10px;margin-inline:7px}.threshold-block{grid-template-columns:1fr;gap:20px}.threshold-control{display:grid;grid-template-columns:110px 1fr;gap:0 17px;align-items:center}.threshold-control .range-ends{grid-column:2}.number-with-unit{grid-row:1/3;margin:0}.number-with-unit input{width:83px;font-size:26px}.number-with-unit span{font-size:12px}.method-grid{grid-template-columns:1fr;gap:20px}.frame-head{align-items:flex-start;flex-direction:column;gap:15px}.player{width:100%}.player #bs-play{flex:1}.section-head h2{font-size:21px}.sensitivity-head{flex-direction:column;gap:14px}.execution-timeline{grid-template-columns:1fr}.execution-timeline li{padding:17px 17px 17px 57px}.timeline-step{position:absolute;left:16px;top:17px}.execution-timeline h3{margin-bottom:5px}.execution-summary{grid-template-columns:1fr 1fr}.asset-role{display:block}.asset-kind{margin-top:5px}.asset-grid{grid-template-columns:1fr;gap:17px}.asset-arrow{display:none}.asset-grid small{min-height:0}footer span{display:none}.run-row{align-items:flex-start;flex-direction:column;gap:18px}.run-row .button{width:100%}}
@media(max-width:690px){html{scroll-padding-top:22px}.sidebar{height:auto;width:100%;position:static;display:block;padding:16px 18px;border-right:0;border-bottom:1px solid var(--bs-line)}.brand{font-size:13px;margin:0 0 15px}.brand br{display:none}.brand-icon{width:30px;height:30px;padding:7px}.sidebar-label,.sidebar-bottom{display:none}.sidebar nav{display:flex;gap:5px;overflow:auto;scrollbar-width:thin;padding-bottom:3px}.sidebar nav a,.sidebar nav a.nav-child{font-size:12px;white-space:nowrap;padding:9px 11px;margin:0;border-left:0;border-radius:7px}.sidebar nav a span{display:none}.shell{margin-left:0}.topbar{min-height:54px;padding:12px 18px;font-size:11px;gap:10px}.topbar div span{margin:0 7px}.topbar a{font-size:11px}main{padding:26px 16px 18px}.page-heading{gap:12px;flex-direction:column;margin-bottom:23px}.page-heading h1{font-size:30px;letter-spacing:-.6px}.version-badge{font-size:10px;padding:5px 8px}.eyebrow{font-size:10px;letter-spacing:.8px}.subtitle{font-size:14px}.subtitle br{display:none}.page-nav{gap:3px}.page-nav a{flex-basis:40%;font-size:13px;padding:9px 10px}.data-strip{gap:15px;padding:10px 0 18px}.data-strip dt{font-size:10px}.data-strip dd{font-size:11px}.concept{padding:21px 18px;gap:15px}.concept h2{font-size:21px}.concept p:not(.eyebrow){font-size:14px}.formula{padding:14px}.formula strong{font-size:17px}.formula small{font-size:12px}.panel{padding:22px 17px;margin-bottom:20px}.section-head{gap:12px;margin-bottom:21px;flex-direction:column}.section-head h2{font-size:22px}.section-head p:not(.eyebrow){font-size:14px}.section-head .text-button{font-size:12px;min-height:30px}.threshold-block{padding-top:21px;margin-top:21px}.threshold-control{grid-template-columns:100px 1fr;gap:0 12px}.number-with-unit input{font-size:25px;width:78px}.range-ends{font-size:10px;gap:15px}.scenario-note{font-size:12px;padding:12px 13px}.backtest-settings{gap:15px 10px}.backtest-settings label{font-size:12px}.backtest-settings input{font-size:13px;padding-inline:9px}.backtest-settings small{font-size:10px}.frame-head h3{font-size:27px}.frame-head p{font-size:12px}.signal-kpis{gap:10px}.signal-kpis>div{padding:14px 11px}.signal-kpis dt{font-size:11px}.signal-kpis dd{font-size:29px}.signal-kpis small{font-size:10px}.chart-head{align-items:flex-start;flex-direction:column;gap:10px}.chart-head h3{font-size:16px}.chart-head>span{flex-wrap:wrap;font-size:11px}.chart-head .defensive-dot{margin-left:4px}.caption{font-size:12px}.history-links{align-items:flex-start;flex-direction:column;gap:9px;font-size:12px}.history-links .text-button{font-size:12px}.empty-result{padding:28px 18px}.result-metrics strong{font-size:25px}.result-metrics span{font-size:11px}.result-metrics small{font-size:10px}.result-period{font-size:12px}.chart-head>label,.chart-head select{font-size:12px}.legend{font-size:11px;gap:10px 15px}.result-inspect{font-size:12px;gap:10px 15px}.ledger-toolbar{flex-direction:column;align-items:flex-start;gap:12px}.execution-summary dd{font-size:13px}.method-grid{gap:0}.method-card{margin-bottom:20px}.download-row .button{font-size:12px;padding-inline:13px}footer{font-size:11px;padding:12px 0 0}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* UI0.12: phone-first scenario flow, compact charts and readable data cards. */
.strategy-start{display:flex;gap:16px;align-items:center;margin:0 0 20px}.strategy-start .button{text-decoration:none}.strategy-start>span{font-size:13px;color:var(--bs-muted);line-height:1.6;max-width:330px}
.rule-disclosure{border:1px solid var(--bs-line);border-radius:12px;margin:0 0 22px;background:#fff}.rule-disclosure>summary{padding:15px 20px;font-size:15px;font-weight:700;cursor:pointer;min-height:48px}.rule-disclosure .concept{margin:0;border:0;border-top:1px solid var(--bs-line);border-radius:0 0 12px 12px}
.asset-field{display:flex;flex-direction:column;gap:10px;min-width:0}.asset-info{font-size:13px;color:var(--bs-muted)}.asset-info summary{cursor:pointer;min-height:36px;display:list-item;padding:6px 0}.asset-info p{margin:8px 0 0;font-size:13px;line-height:1.75;overflow-wrap:anywhere}
.period-settings{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:22px}.advanced-settings{border:1px solid #d8e3dc;border-radius:9px;margin-top:18px;padding:0 16px}.advanced-settings>summary{font-size:14px;min-height:48px;padding:13px 0;cursor:pointer}.advanced-settings>summary span{display:block;font-size:12px;line-height:1.7;color:var(--bs-muted);margin-top:3px}.advanced-settings>.backtest-settings{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px 0 18px}.run-feedback{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px;font-size:13px;line-height:1.6;color:#315f46}.run-feedback:has(span:empty):has(a[hidden]){display:none}
.result-cursor-controls{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:12px;align-items:center;margin-top:18px}.result-cursor-controls .result-cursor-label{margin:0;display:block;text-align:center;line-height:1.6}.result-cursor-label span{display:block;font-weight:700;font-variant-numeric:tabular-nums}.result-cursor-controls .square{width:44px;min-height:44px;padding:8px}
.phone-card-list{display:none}.chart .is-compact-chart{min-width:0;width:100%;height:auto}.chart .is-compact-chart text{font-size:18px}.chart .is-compact-chart .axis-title{font-size:16px}.concept-visual .is-compact-concept{width:100%;height:auto;min-width:0}.concept-visual .is-compact-concept text{font-family:var(--font-data);fill:var(--bs-ink,#183b33)}
@media(max-width:760px){
 main{min-width:0}main :where(section,article,div,dl,label){min-width:0}.page-heading h1{font-size:29px;line-height:1.24;letter-spacing:-.5px}.page-heading h1 br{display:none}.page-heading .eyebrow{font-size:12px}.subtitle{font-size:15px;line-height:1.7}.page-heading .version-badge{font-size:12px}.strategy-start{align-items:stretch;flex-direction:column;gap:8px;margin-bottom:19px}.strategy-start .button{justify-content:center;width:100%;font-size:16px;min-height:50px}.strategy-start>span{font-size:13px;max-width:none}.page-nav{display:grid;grid-template-columns:1fr 1fr;gap:5px}.page-nav a{min-height:44px;font-size:14px;justify-content:center}.data-strip dt{font-size:12px}.data-strip dd{font-size:13px;line-height:1.6}.rule-disclosure>summary{min-height:48px;font-size:15px;padding:14px 16px}.rule-disclosure .concept{padding:18px 16px}.concept .formula strong{font-size:17px;overflow-wrap:anywhere}.concept p:not(.eyebrow){font-size:15px}.concept-visual{max-width:360px}
 .panel{padding:20px 16px}.section-head h2{font-size:23px;line-height:1.3}.section-head .text-button{font-size:14px;min-height:44px}.section-head p:not(.eyebrow){font-size:15px}.asset-grid{grid-template-columns:minmax(0,1fr)}.asset-grid label{font-size:15px}.asset-kind{font-size:12px;line-height:1.5}.asset-grid select{font-size:16px;min-height:50px;padding:12px 10px;max-width:100%;text-overflow:ellipsis}.asset-info summary{min-height:44px;padding:10px 0;font-size:14px}.asset-info p{font-size:14px}.threshold-block{gap:16px}.threshold-block p{font-size:14px}.threshold-control{grid-template-columns:1fr;gap:8px}.number-with-unit{grid-row:auto;margin-bottom:0}.number-with-unit input{width:100px;min-height:52px;font-size:26px}.number-with-unit span{font-size:15px}.threshold-control .range-ends{grid-column:auto}.range-ends{font-size:12px;gap:8px}.scenario-note{font-size:14px;line-height:1.75;padding:12px}.backtest-settings,.advanced-settings>.backtest-settings,.period-settings{grid-template-columns:minmax(0,1fr);gap:16px}.backtest-settings label{font-size:14px}.backtest-settings input{font-size:16px;min-height:48px;padding:11px;max-width:100%;min-width:0}.backtest-settings small{font-size:13px}.advanced-settings{padding:0 13px}.advanced-settings>summary{font-size:15px;min-height:52px}.advanced-settings>summary span{font-size:13px}.run-row{margin-top:20px;gap:14px}.run-row p{font-size:14px}.run-row small{font-size:13px}.run-row .button{min-height:52px;font-size:16px}.run-feedback{font-size:14px}.run-feedback .text-button{min-height:44px;font-size:14px}
 input[type=range]{min-height:44px;touch-action:pan-x}.frame-head h3{font-size:27px}.frame-head p{font-size:13px}.player .button{font-size:14px;min-height:48px}.player .square{min-width:48px}.signal-kpis{grid-template-columns:1fr 1fr;gap:10px}.signal-kpis dt{font-size:13px;line-height:1.5}.signal-kpis dd{font-size:27px;overflow-wrap:anywhere}.signal-kpis small{font-size:12px;line-height:1.6}.chart-head{gap:9px}.chart-head h3{font-size:18px}.chart-head>label{font-size:14px;width:100%;display:grid;grid-template-columns:1fr;gap:6px}.chart-head select{font-size:16px;min-height:48px;width:100%}.chart-head>span{font-size:13px;line-height:1.6}.chart{overflow:hidden}.chart .is-compact-chart{min-width:0}.chart .is-wide-chart{min-width:800px}.caption,.history-links{font-size:13px;line-height:1.75}.history-links .text-button{min-height:44px;font-size:14px}.legend{font-size:13px;gap:10px 16px;line-height:1.6}.legend>span{align-items:flex-start}.legend i{margin-top:9px;flex:none}.result-period{font-size:13px;overflow-wrap:anywhere}.result-metrics{grid-template-columns:1fr 1fr;gap:16px 10px}.result-metrics>div{padding:4px 9px}.result-metrics span{font-size:13px;line-height:1.5}.result-metrics strong{font-size:23px;line-height:1.45;overflow-wrap:anywhere}.result-metrics small{font-size:12px;line-height:1.6}.result-inspect{display:grid;grid-template-columns:1fr;font-size:14px;gap:8px}.result-inspect span{display:flex;justify-content:space-between;gap:12px}.result-inspect b{white-space:nowrap}.result-cursor-label{font-size:14px}.empty-result p{font-size:15px}.phone-card-list{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-top:20px}.desktop-result-table{display:none}.phone-result-card,.phone-sensitivity-card,.phone-execution-card{border:1px solid #d4e1d8;border-radius:11px;background:#fff;min-width:0;overflow-wrap:anywhere}.phone-result-card{padding:17px}.phone-result-card.is-strategy{background:#f0f7f1;border-color:#9fbea8}.phone-result-card h3{font-size:16px;margin:0 0 13px;line-height:1.5}.phone-capital{font-size:25px;line-height:1.45;font-weight:700;margin:0 0 15px;font-variant-numeric:tabular-nums}.phone-capital span{display:block;font-size:12px;line-height:1.7;font-weight:400;color:var(--bs-muted);margin-top:3px}.phone-metrics{display:grid;grid-template-columns:1fr 1fr;gap:14px 12px;margin:0}.phone-metrics dt{font-size:12px;line-height:1.6;color:var(--bs-muted);margin-bottom:4px}.phone-metrics dd{font-size:15px;font-variant-numeric:tabular-nums;margin:0;line-height:1.5;font-weight:700}.phone-sensitivity-card>summary,.phone-execution-card>summary{padding:15px;min-height:64px;display:flex;gap:12px;justify-content:space-between;align-items:center;cursor:pointer;font-size:15px;line-height:1.5}.phone-sensitivity-card>summary strong{text-align:right}.phone-sensitivity-card>summary small,.phone-execution-card>summary small{display:block;font-size:12px;font-weight:400;color:var(--bs-muted);line-height:1.7}.phone-sensitivity-card>summary:after,.phone-execution-card>summary:after{content:'＋';font-size:19px;flex:none;color:var(--bs-muted)}.phone-sensitivity-card[open]>summary:after,.phone-execution-card[open]>summary:after{content:'−'}.phone-sensitivity-card.is-selected{border-color:#7b9d83;background:#f2f7f1}.phone-sensitivity-card>.phone-metrics{padding:3px 15px 17px}.phone-execution-card>summary>span:last-of-type{text-align:right}.phone-execution-preview{display:flex;gap:12px;justify-content:space-between;padding:0 15px 14px;font-size:13px;line-height:1.6;color:var(--bs-muted)}.phone-execution-detail{padding:0 15px 17px}.phone-execution-detail>p{font-size:13px;line-height:1.7;margin:0 0 15px}.phone-execution-leg{border-top:1px solid #e0e7e1;padding:13px 0}.phone-execution-leg h4{font-size:15px;margin:0 0 6px}.phone-execution-leg>strong{font-family:var(--font-data);font-variant-numeric:tabular-nums;font-size:18px;line-height:1.5}.phone-execution-leg p{font-size:13px;line-height:1.7;color:var(--bs-muted);margin:4px 0}.phone-execution-detail>.phone-metrics{border-top:1px solid #e0e7e1;padding-top:14px}.sensitivity-head p,.assumptions p{font-size:14px}.assumptions summary{min-height:44px;font-size:15px;line-height:1.6}.download-row{flex-direction:column}.download-row .button{font-size:14px;min-height:48px;width:100%}.execution-basis strong{font-size:16px;line-height:1.6}.execution-basis p,.audit-limit{font-size:14px;line-height:1.8}.audit-state span{font-size:13px;line-height:1.6}.execution-timeline p{font-size:14px}.execution-timeline h3{font-size:16px}.execution-summary{grid-template-columns:1fr 1fr;gap:16px 10px}.execution-summary dt{font-size:12px}.execution-summary dd{font-size:14px;line-height:1.6;overflow-wrap:anywhere}.ledger-toolbar label{font-size:14px;width:100%;display:flex;justify-content:space-between}.ledger-toolbar select{font-size:16px;min-height:48px}.ledger-toolbar p{font-size:13px}.method-card p:not(.eyebrow){font-size:15px}.method-card a,.method-card .text-button{font-size:14px;min-height:44px}.method-links{align-items:flex-start;flex-direction:column}.method-links a{display:flex;align-items:center}.error,.warning{font-size:14px}.result-cursor-controls .button{min-height:48px}#scenario,#result,#execution,#rule{scroll-margin-top:20px}#results-title:focus{outline:3px solid var(--color-focus);outline-offset:5px}
}
@media(max-width:359px){.signal-kpis,.result-metrics{grid-template-columns:1fr}.phone-metrics{gap:12px 8px}.phone-metrics dd{font-size:14px}.page-nav a{font-size:13px}.execution-summary{grid-template-columns:1fr}.result-inspect span{display:block}.result-inspect b{display:block}}
@media print{.strategy-start,.run-feedback,.rule-disclosure>summary,.phone-card-list{display:none!important}.desktop-result-table{display:block!important}}
/* UI 0.13.0: единая тёмная навигация, как на главной странице лаборатории. */
.sidebar{background:var(--surface-dark);border-right-color:#0f2620;color:var(--text-on-dark)}
.sidebar .brand{color:#fff}
.sidebar .brand-icon{background:#275a45;border:1px solid #ffffff2b}
.sidebar .brand-icon i{background:#d4e8a2}
.sidebar-label{color:#96b0a3}
.sidebar nav a{color:#bbcec3}
.sidebar nav a:hover{background:#ffffff0d;color:#fff}
.sidebar nav a.active{background:#2b4c3d;color:#e0efba}
.sidebar nav a.nav-child{border-left-color:#547866}
.sidebar nav a span{color:#a9c2b4}
.sidebar nav a.active span{color:#c9dcae}
.sidebar-bottom{color:#9bb4a5}
.sidebar-bottom b{color:#e0e9e1}
.sidebar-bottom i{background:#b4d88d}
.sidebar a:focus-visible{outline-color:#9cc3ef}
@media(max-width:690px){.sidebar{border-bottom-color:#0f2620}}
