/* Shared presentation for strategy pages; no account state or trading behavior. */
.aq-strategy-page .aq-strategy-flow{border-top:3px solid #285dd5;padding:20px 24px}
.aq-flow-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.aq-flow-heading h2{margin:0;font-size:24px;line-height:1.4}
.aq-flow-actions{flex-shrink:0}
.aq-login-link{display:inline-flex;align-items:center;justify-content:center;padding:12px 18px;border-radius:10px;background:#285dd5;color:#fff;text-decoration:none;font-weight:700;min-height:44px;box-sizing:border-box}
.aq-login-link:focus-visible{outline:3px solid #8bafff;outline-offset:3px}
.aq-flow-steps{display:grid;grid-template-columns:.8fr 1.2fr 1.4fr;gap:16px;padding:0;margin:18px 0 10px;list-style:none}
.aq-flow-steps li{display:flex;align-items:flex-start;gap:9px;line-height:1.6;color:#425977;font-size:14px}
.aq-flow-steps li>span{display:inline-flex;align-items:center;justify-content:center;flex:0 0 24px;height:24px;border-radius:50%;background:#eaf0ff;color:#285dd5;font-weight:700;font-size:13px}
.aq-strategy-page .aq-flow-note{font-size:13px;margin:0;line-height:1.6}
.aq-strategy-page .aq-compact-metrics{gap:10px;margin:14px 0}
.aq-strategy-page .aq-compact-metrics>div{padding:13px 16px}
.aq-strategy-page .aq-compact-metrics strong{font-size:25px;line-height:1.4}
.aq-strategy-page .aq-compact-metrics span,.aq-strategy-page .aq-compact-metrics small{font-size:13px}
.aq-strategy-page #rohonLoginPanel,.aq-strategy-page #connectionPanel{scroll-margin-top:24px}
.aq-strategy-page .aq-operation-help{margin:14px 0 0;border-top:1px solid #e0e7f1;padding-top:12px}
.aq-strategy-page .aq-operation-help>summary{cursor:pointer;color:#536d92;font-size:14px;font-weight:600;min-height:30px}
.aq-strategy-page .aq-operation-help p{font-size:13px;line-height:1.7}
.aq-strategy-page dialog{max-width:min(560px,calc(100vw - 32px));box-sizing:border-box;max-height:calc(100dvh - 32px);overflow:auto}
.aq-strategy-page dialog input:not([type=checkbox]),.aq-strategy-page dialog select{min-width:0;max-width:100%;box-sizing:border-box}
.aq-strategy-page #adaptiveLiveDispatch .al-login-choices{grid-template-columns:1.25fr 1fr}
.aq-strategy-page #adaptiveLiveDispatch .al-provider.primary{background:#eef4ff;color:#173c82;border-color:#91b0ef}
.aq-strategy-page #adaptiveLiveDispatch .al-provider-sim{background:#fff}
.aq-strategy-page #adaptiveLiveDispatch .al-steps{margin-top:12px}
@media(max-width:760px){
 .aq-strategy-page .topbar{padding:16px}
 .aq-strategy-page .brand h1{font-size:22px}
 .aq-strategy-page .brand>svg{width:44px;height:44px}
 .aq-strategy-page .brand span{font-size:13px}
 .aq-strategy-page .aq-strategy-flow{padding:17px}
 .aq-flow-heading{align-items:stretch;flex-direction:column;gap:12px}
 .aq-flow-heading h2{font-size:21px}
 .aq-flow-actions{display:flex;width:100%}
 .aq-flow-actions>button,.aq-flow-actions>.aq-login-link{width:100%;min-height:46px;margin:0;font-size:16px}
 .aq-flow-steps{grid-template-columns:1fr;gap:8px;margin:14px 0 10px}
 .aq-strategy-page .aq-compact-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .aq-strategy-page .aq-compact-metrics>div{min-width:0;padding:10px 12px}
 .aq-strategy-page .aq-compact-metrics strong{font-size:22px;overflow-wrap:anywhere}
 .aq-strategy-page .section-head{gap:12px}
 .aq-strategy-page dialog{padding:20px;width:calc(100vw - 32px)}
 .aq-strategy-page dialog .dialog-actions{display:flex;flex-wrap:wrap;gap:10px}
 .aq-strategy-page dialog .dialog-actions button{flex:1;min-width:110px;min-height:44px}
 .aq-strategy-page #adaptiveLiveDispatch .al-login-choices{grid-template-columns:1fr}
}

.aq-login-entry-status{font-size:13px;line-height:1.7;color:#856018;background:#fff8e8;border-radius:7px;padding:9px 12px;margin:12px 0 0;white-space:normal}

/* Four balanced overview cards, shared by all strategy workspaces. */
[data-strategy-ui] .metrics.aq-overview-four{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;background:transparent;border:0;overflow:visible}
[data-strategy-ui] .metrics.aq-overview-four>div{grid-column:auto;grid-row:auto;min-width:0;box-sizing:border-box;background:#fff;border:1px solid #dde5ef;border-radius:12px;padding:14px 16px;display:flex;flex-direction:column;gap:6px}
[data-strategy-ui] .aq-overview-four strong{font-size:clamp(18px,2vw,25px);line-height:1.45;white-space:normal;overflow-wrap:anywhere}
[data-strategy-ui] .aq-overview-four span,[data-strategy-ui] .aq-overview-four small{font-size:13px;line-height:1.6;white-space:normal;overflow-wrap:anywhere}
[data-strategy-ui] .aq-login-metric strong{font-size:18px}
[data-strategy-ui] [data-overview-login][data-state=logged]{color:#19734a}
[data-strategy-ui] [data-overview-login][data-state=off],[data-strategy-ui] [data-overview-login][data-state=unknown]{color:#c5223f}
@media(max-width:760px){[data-strategy-ui] .metrics.aq-overview-four{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}[data-strategy-ui] .aq-overview-four>div{padding:12px}[data-strategy-ui] .aq-overview-four strong{font-size:20px}[data-strategy-ui] .aq-login-metric strong{font-size:16px}}

/* Short-workbench selections are local choices, independent of parameter locks. */
[data-strategy-ui=short] .short-selection-hint{padding:10px 22px;color:#536d92;font-size:13px;line-height:1.7;background:#f4f8ff;border-bottom:1px solid #dce5ef}
[data-strategy-ui=short] .short-contract-select{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:44px;min-height:48px;padding:6px;cursor:pointer;color:#285dd5;font-size:12px}
[data-strategy-ui=short] .short-contract-select input,[data-strategy-ui=short] #selectAll{appearance:none;width:24px;height:24px;border:2px solid #7299dd;border-radius:5px;background:#fff;cursor:pointer;display:inline-grid;place-content:center;margin:0;flex-shrink:0}
[data-strategy-ui=short] .short-contract-select input:checked,[data-strategy-ui=short] #selectAll:checked{background:#285dd5;border-color:#285dd5}
[data-strategy-ui=short] .short-contract-select input:checked:after,[data-strategy-ui=short] #selectAll:checked:after{content:"✓";color:#fff;font-size:19px;font-weight:700;line-height:1}
[data-strategy-ui=short] #selectAll:indeterminate{background:#285dd5;border-color:#285dd5}
[data-strategy-ui=short] #selectAll:indeterminate:after{content:"−";color:#fff;font-size:20px;line-height:1}
[data-strategy-ui=short] .short-contract-select input:focus-visible,[data-strategy-ui=short] #selectAll:focus-visible{outline:3px solid #adc7fa;outline-offset:3px}
[data-strategy-ui=short] .short-contract-select input:disabled,[data-strategy-ui=short] #selectAll:disabled{opacity:.45;cursor:not-allowed}
[data-strategy-ui=short] tr.short-contract-selected>td{background:#eef5ff}
[data-strategy-ui=short] .short-restore-edit{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin-top:10px;white-space:normal}
[data-strategy-ui=short] .short-restore-edit button{white-space:normal;max-width:100%;min-height:40px}
[data-strategy-ui=short] .short-parameter-reason{max-width:220px}

.aq-edit-review-button{min-height:42px;white-space:normal;margin:10px 0 6px;color:#285dd5;border-color:#acc5ef;background:#f1f6ff}
.aq-edit-review-note{font-size:13px;line-height:1.7;color:#627792;white-space:normal;overflow-wrap:anywhere;margin:8px 0 12px;max-width:700px}
[data-manual-rows]>.aq-edit-review-button{display:block;margin-left:auto}

/* Completed reports default closed; current close controls and faults stay outside. */
.aq-trade-history{margin:8px 0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.aq-trade-history>summary{cursor:pointer;color:#3e6591;line-height:1.6;padding:7px 0;font-size:13px;min-height:34px}
.aq-trade-history>summary:focus-visible{outline:2px solid #7299dd;outline-offset:3px;border-radius:4px}
.aq-trade-history>small{display:block;margin:6px 0 10px;line-height:1.7;white-space:normal;overflow-wrap:anywhere}

/* Native keyboard-accessible selection disclosures, compact on phone and desktop. */
.aq-product-disclosure{margin:14px 0;border:1px solid #dce5ef;border-radius:14px;background:#fff;min-width:0;max-width:100%}
.aq-product-disclosure>summary{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;padding:16px 18px;cursor:pointer;color:#23466f;line-height:1.6;list-style:none;min-height:52px}
.aq-product-disclosure>summary::-webkit-details-marker{display:none}
.aq-product-disclosure>summary:focus-visible{outline:3px solid #91b5ef;outline-offset:3px;border-radius:12px}
.aq-product-count{color:#6c819b;font-size:13px;overflow-wrap:anywhere}
.aq-product-toggle{display:inline-flex;gap:8px;align-items:center;margin-left:auto;font-size:13px;white-space:nowrap;color:#285dd5}
.aq-product-collapse{display:none}.aq-product-disclosure[open]>summary .aq-product-expand{display:none}.aq-product-disclosure[open]>summary .aq-product-collapse{display:inline}
.aq-product-disclosure[open]>summary{border-bottom:1px solid #e4ebf4}.aq-product-body{padding:14px;min-width:0;max-width:100%}.aq-product-body>.actions{margin:0 0 12px}
@media(max-width:760px){.aq-product-disclosure>summary{padding:13px 12px;gap:6px 10px}.aq-product-disclosure>summary>strong{font-size:16px}.aq-product-count{font-size:12px;flex-basis:100%;order:3}.aq-product-body{padding:10px}}

/* Explanations and historical records stay compact; current alerts are siblings. */
.aq-rule-details>summary{min-height:40px;box-sizing:border-box;white-space:normal;overflow-wrap:anywhere;line-height:1.65}
.aq-rule-details>summary::after{content:"展开";display:inline-block;margin-left:12px;font-size:12px;font-weight:400;color:#285dd5;white-space:nowrap}
.aq-rule-details[open]>summary::after{content:"收起"}
.aq-current-alerts{min-width:0;max-width:100%}
.aq-current-alerts .market-collection-alert{margin:14px 0;padding:16px 18px;border:1px solid #ef4444;border-left:4px solid #dc2626;border-radius:10px;background:#fff1f2;color:#991b1b;white-space:normal;overflow-wrap:anywhere;font-size:14px;line-height:1.7}
.aq-current-alerts .market-collection-alert[hidden]{display:none}
.aq-current-alerts .market-collection-alert>strong{display:block;font-size:17px;color:#b91c1c}
.aq-current-alerts .market-collection-alert ul{margin:10px 0;padding-left:20px}
.aq-current-alerts .market-collection-alert li+li{margin-top:10px}
.aq-current-alerts .market-collection-alert small{display:block;margin-top:5px;font-size:13px;line-height:1.7;color:#991b1b}
.aq-current-alerts .market-collection-alert p{margin:10px 0 0;font-size:13px;line-height:1.7;color:#991b1b}
.as-history-details{margin-top:14px;border:1px solid #dce5ef;border-radius:12px;padding:0 14px;min-width:0;max-width:100%}
.as-history-details>summary{padding:13px 0;color:#23466f;font-weight:600;cursor:pointer;line-height:1.7;overflow-wrap:anywhere}
.as-history-details>summary:focus-visible{outline:2px solid #7299dd;outline-offset:3px;border-radius:4px}
.as-history-details>summary::after{content:"展开";display:inline-block;margin-left:12px;font-size:12px;font-weight:400;color:#285dd5}
.as-history-details[open]>summary::after{content:"收起"}
@media(max-width:760px){.aq-rule-details>summary{font-size:14px}.as-history-details{padding:0 10px}.as-history-details>summary{font-size:15px}}

/* Unified four-card projection; keep legacy IDs available to existing renderers. */
.aq-legacy-metrics{display:none!important}
[data-unified-overview] [data-overview-hint]{white-space:pre-line!important;font-size:12px;line-height:1.65;overflow-wrap:anywhere}
[data-unified-overview] [data-overview-metric]{font-size:clamp(16px,1.8vw,24px);line-height:1.5}
[data-unified-overview] [data-state=unknown],[data-unified-overview] [data-state=off]{color:#56677c}
[data-unified-overview] [data-state=good]{color:#19734a}
[data-unified-overview] [data-state=fault],[data-unified-overview] [data-runtime-fault=true] [data-overview-hint]{color:#b91c32!important}
[data-unified-overview] [data-runtime-fault=true]{border:2px solid #b91c32;background:#fff5f5}
[data-unified-overview] [data-state=waiting]{color:#8a600c}
@media(max-width:760px){[data-unified-overview]>div{padding:12px!important;min-height:150px}[data-unified-overview] [data-overview-metric]{font-size:18px}}

[data-unified-overview] [data-state=profit]{color:#c5223f}
[data-unified-overview] [data-state=loss]{color:#19734a}
[data-unified-overview] [data-state=neutral]{color:#243c56}

/* Unconfirmed accounts are visible separately; confirmed PnL stays available. */
.aq-pnl-exclusions{margin:10px 0 18px;padding:12px 16px;border:1px solid #e4c79d;border-radius:10px;background:#fff8ed;color:#81531c;font-size:13px;line-height:1.7;overflow-wrap:anywhere}
.aq-pnl-exclusions[hidden]{display:none!important}
.aq-pnl-exclusions>strong{font-size:14px}
.aq-pnl-exclusions ul{margin:7px 0 0;padding-left:20px}

/* Compact preview: one short value per card; details open on demand. */
[data-unified-overview] [data-overview-hint]{display:none}
[data-unified-overview]>div{min-height:106px!important;padding:16px!important;position:relative}
[data-unified-overview] [data-overview-metric]{font-size:20px!important;white-space:nowrap}
[data-unified-overview] [data-runtime-details]{padding:0;border:0;background:none;color:#52677f;font-size:12px;text-decoration:underline;cursor:pointer;min-height:24px}
[data-unified-overview] [data-runtime-details][hidden]{display:none}
[data-unified-overview] [data-runtime-fault=true]{border:1px solid #dce5ef;background:#fff}
.aq-runtime-details{width:min(480px,calc(100vw - 32px));border:1px solid #dce5ef;border-radius:14px;padding:20px;color:#243c56;box-sizing:border-box}
.aq-runtime-details::backdrop{background:rgb(20 35 55 / 25%)}
.aq-runtime-details [data-runtime-details-body]{white-space:pre-line;overflow-wrap:anywhere;font-size:14px;line-height:1.8;max-height:55vh;overflow:auto;margin:12px 0 20px}

/* Account amounts use the already-confirmed aggregate; exclusions stay outside. */
.aq-pnl-details{margin-top:6px;min-width:0;width:100%;font-size:12px;line-height:1.6}
.aq-pnl-details>summary{cursor:pointer;color:#285d86;font-size:12px;min-height:36px;padding:7px 0;box-sizing:border-box;overflow-wrap:anywhere}
.aq-pnl-details>summary:focus-visible{outline:2px solid #7299dd;outline-offset:2px;border-radius:4px}
.aq-pnl-details-body{max-width:100%;overflow-x:auto}
.aq-pnl-details table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}
.aq-pnl-details th,.aq-pnl-details td{padding:7px 4px;border-bottom:1px solid #dde5ef;vertical-align:top;font-size:12px;line-height:1.6}
.aq-pnl-details th{font-weight:600;color:#536d82}
.aq-pnl-details td:first-child{overflow-wrap:anywhere}
.aq-pnl-details td:last-child{white-space:nowrap;text-align:right}
.aq-pnl-panel .aq-pnl-details td span,.aq-pnl-panel .aq-pnl-details td small{display:block;font-size:12px;line-height:1.6}
.aq-pnl-details small,.aq-pnl-details-body>p{color:#63788c;font-size:12px;line-height:1.6;margin:5px 0;white-space:normal}

/* The overview keeps one total; the full-width panel owns account details. */
.aq-pnl-panel{margin:12px 0 18px;padding:16px 18px;border:1px solid #dce5ef;border-radius:14px;background:#fff;min-width:0;max-width:100%;box-sizing:border-box;color:#243c56}
.aq-pnl-panel h3{margin:0 0 12px;font-size:17px;line-height:1.6}
.aq-pnl-total{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 18px;line-height:1.6}
.aq-pnl-total>span{font-size:14px;color:#63788c}
.aq-pnl-total>strong{font-size:24px;overflow-wrap:anywhere}
.aq-pnl-panel [data-pnl-coverage]{margin:5px 0 10px;color:#63788c;font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.aq-pnl-panel [data-state=profit]{color:#c5223f}.aq-pnl-panel [data-state=loss]{color:#19734a}.aq-pnl-panel [data-state=neutral]{color:#243c56}.aq-pnl-panel [data-state=unknown]{color:#56677c}
.aq-pnl-panel .aq-pnl-details{border-top:1px solid #e4ebf4;margin-top:10px;padding-top:5px}
.aq-pnl-panel .aq-pnl-details>summary{font-size:14px;min-height:44px;padding:10px 0}
.aq-pnl-panel .aq-pnl-details th,.aq-pnl-panel .aq-pnl-details td{padding:10px 8px}
.aq-pnl-panel .aq-pnl-details th:last-child{text-align:right}
.aq-pnl-panel .aq-pnl-exclusions{margin:12px 0 0}
@media(max-width:760px){.aq-pnl-panel{padding:14px 12px}.aq-pnl-total>strong{font-size:22px}}

/* Short and semi-automatic workspaces share a quiet, responsive visual rhythm. */
body:is([data-strategy-ui="short"],[data-strategy-ui="fundamental"]) #cloudWorkspace{--aq-space:clamp(14px,2vw,24px)}
body:is([data-strategy-ui="short"],[data-strategy-ui="fundamental"]) .panel{border-radius:16px;margin-bottom:var(--aq-space);padding:clamp(18px,2.4vw,28px)}
body:is([data-strategy-ui="short"],[data-strategy-ui="fundamental"]) .section-head{gap:16px;align-items:center;flex-wrap:wrap}
body:is([data-strategy-ui="short"],[data-strategy-ui="fundamental"]) .aq-strategy-flow h2{font-size:clamp(21px,2vw,28px)}
body:is([data-strategy-ui="short"],[data-strategy-ui="fundamental"]) .aq-product-disclosure{margin-top:18px}
body:is([data-strategy-ui="short"],[data-strategy-ui="fundamental"]) .aq-product-disclosure>summary{padding:20px;min-height:72px}
body:is([data-strategy-ui="short"],[data-strategy-ui="fundamental"]) .aq-product-body>.actions{margin-bottom:16px}
.aq-inline-rohon:empty{display:none}
.aq-inline-rohon{margin-top:22px;border-top:1px solid #cdd6df;padding-top:20px}
.aq-inline-login-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 18px;align-items:end;max-width:none!important}
.aq-inline-login-form>.dialog-head,.aq-inline-login-form>#loginAccountLabel,.aq-inline-login-form>.check,.aq-inline-login-form>.muted,.aq-inline-login-form>[data-login-readiness],.aq-inline-login-form>.rohon-clear-controls{grid-column:1/-1}
.aq-inline-login-form .dialog-head{margin:0}.aq-inline-login-form .dialog-head h2{font-size:20px}
.aq-inline-login-form .rohon-channel-control{grid-column:auto;display:block;min-width:0}
.aq-inline-login-form .rohon-channel-control>label{display:block}
.aq-inline-login-form .rohon-channel-note{font-size:12px;line-height:1.5;margin:6px 0 0}
.aq-inline-login-form .login-actions{grid-column:1/-1;display:flex;gap:10px;flex-wrap:wrap}
.aq-inline-account-tools{margin-top:12px}.aq-inline-account-tools button{font-size:13px}
body:is([data-strategy-ui="short"],[data-strategy-ui="fundamental"]) .fundamental-workspace{padding:0;border:0}
body:is([data-strategy-ui="short"],[data-strategy-ui="fundamental"]) .workbench>.section-head p{max-width:72ch}
.aq-market-disclosure{border:1px solid #d4dde7;border-radius:12px;margin:12px 0;background:#f5f7fa;overflow:hidden;min-width:0}
.aq-market-disclosure>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 20px;cursor:pointer;color:#233f5b;min-height:62px;box-sizing:border-box}
.aq-market-disclosure>summary::-webkit-details-marker{display:none}
.aq-market-disclosure>summary:focus-visible{outline:2px solid #285dd5;outline-offset:-3px}
.aq-market-toggle{font-size:13px;font-weight:400;color:#315d91;white-space:nowrap}
.aq-market-toggle::after{content:'展开 ⌄'}.aq-market-disclosure[open]>.aq-market-toggle::after,.aq-market-disclosure[open]>summary>.aq-market-toggle::after{content:'收起 ⌃'}
.aq-market-body{border-top:1px solid #d4dde7;padding:12px 16px;background:#f8fafc;overflow:auto}
.op-rankings>.aq-market-disclosure{margin:0}
body:is([data-strategy-ui="short"],[data-strategy-ui="fundamental"]) .ctp-panel{background:#edf1f5}
body:is([data-strategy-ui="short"],[data-strategy-ui="fundamental"]) .opportunities>.section-head p{margin-bottom:0}
@media(max-width:760px){
 .aq-inline-login-form{grid-template-columns:1fr}.aq-inline-login-form>*{grid-column:1!important}
 body:is([data-strategy-ui="short"],[data-strategy-ui="fundamental"]) .aq-flow-heading{align-items:stretch}
 body:is([data-strategy-ui="short"],[data-strategy-ui="fundamental"]) .aq-flow-actions{width:100%}
 body:is([data-strategy-ui="short"],[data-strategy-ui="fundamental"]) .aq-flow-actions>button{width:100%}
 .aq-market-disclosure>summary{padding:16px;font-size:14px}.aq-market-body{padding:10px}
 .aq-inline-login-form .login-actions>button{flex:1;min-width:130px}
}

.aq-inline-account-tools{display:flex;gap:12px;align-items:center;flex-wrap:wrap;grid-column:1/-1;margin:0}.aq-inline-account-tools p{margin:0}
.aq-strategy-flow .aq-guide-rules{margin:12px 0 0;padding:0;border:0;border-top:1px solid #d4dde7;border-radius:0;background:transparent;color:#243c56}
.aq-strategy-flow .aq-guide-rules>summary{padding:12px 0 0}.aq-strategy-flow .aq-guide-rules h2{font-size:14px;margin:0;color:#243c56}
.aq-strategy-flow .aq-guide-rules .eyebrow{display:none}.aq-strategy-flow .aq-guide-rules .aq-explanation-title{font-size:14px;color:#315d91}
.aq-strategy-flow .aq-guide-rules .aq-explanation-body{color:#52677f}.aq-strategy-flow .aq-guide-rules .aq-explanation-toggle{font-size:13px;color:#315d91}
.aq-secondary-disclosure{margin-top:16px;border-top:1px solid #cdd6df;padding-top:8px}.aq-secondary-disclosure>summary{cursor:pointer;min-height:44px;padding:12px 0;box-sizing:border-box;color:#315d91;font-weight:600}
.aq-secondary-body{padding:10px 0}.aq-secondary-body>.ctp-brokerage-picker{margin-bottom:14px}
.aq-strategy-flow .aq-guide-rules .aq-explanation-heading{color:#315d91;font-size:14px!important;margin:0!important;line-height:1.6}
.aq-strategy-flow .aq-guide-rules .eyebrow{display:none!important}
.aq-strategy-flow .aq-strategy-title-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.aq-strategy-flow .aq-strategy-title-row>.aq-explanation-title{font-size:inherit;line-height:inherit}
.aq-strategy-flow .aq-guide-rules .aq-explanation-body{color:#52677f;background:transparent}
/* Compact account operations: no full-width primary start buttons on these pages. */
body:is([data-strategy-ui="short"],[data-strategy-ui="fundamental"]) .current-start-control{align-items:flex-start!important;flex-basis:auto;max-width:100%;margin:8px 0 12px}
body:is([data-strategy-ui="short"],[data-strategy-ui="fundamental"]) .current-start-control>button{width:auto!important;min-width:132px;min-height:40px;padding:9px 18px;flex:none;font-size:14px}
body:is([data-strategy-ui="short"],[data-strategy-ui="fundamental"]) .current-start-control>small{max-width:64ch;font-size:12px}
body:is([data-strategy-ui="short"],[data-strategy-ui="fundamental"]) .aq-strategy-controls>.actions>button{flex:0 1 auto;min-height:40px;padding:9px 16px;font-size:14px}
[data-strategy-ui="fundamental"] .account-control-bar{grid-template-columns:minmax(160px,.65fr) minmax(240px,1.35fr);gap:18px}
[data-strategy-ui="fundamental"] .aq-inline-login-form{gap:12px 16px}
[data-strategy-ui="fundamental"] .aq-inline-login-form .login-actions{grid-column:1/-1;justify-content:flex-start;margin:0}
[data-strategy-ui="fundamental"] .aq-inline-login-form .login-actions>button{width:auto;flex:none;min-height:40px;padding:9px 16px;font-size:14px}
[data-strategy-ui="short"] .login-panel .login-form{gap:12px 16px}
[data-strategy-ui="short"] .login-panel .rohon-original-channel{padding:0;border:0;grid-template-columns:minmax(180px,1fr) minmax(180px,2fr);align-items:center;margin:16px 0}
[data-strategy-ui="short"] .login-panel .rohon-original-channel select{max-width:none}
@media(max-width:760px){
 [data-strategy-ui="fundamental"] .account-control-bar{grid-template-columns:1fr}
 [data-strategy-ui="short"] .login-panel .rohon-original-channel{grid-template-columns:1fr}
 body:is([data-strategy-ui="short"],[data-strategy-ui="fundamental"]) .current-start-control>button{min-width:132px;max-width:100%}
}

/* One compact short-workspace action row; reuse the original scoped start control. */
[data-strategy-ui="short"] .workbench .toolbar{flex-wrap:wrap;align-items:center;gap:10px;border:0;border-radius:8px;padding:12px;background:#f3f6fa}
[data-strategy-ui="short"] .workbench .toolbar .short-toolbar-start:not([hidden]){display:contents}
[data-strategy-ui="short"] .workbench .toolbar .short-toolbar-start>button{font-size:12px;min-height:34px;min-width:0;padding:7px 10px;margin:0}
[data-strategy-ui="short"] .workbench .toolbar .short-toolbar-start>small{flex:1 0 100%;order:99;max-width:none;margin:0;font-size:12px;line-height:1.6}
[data-strategy-ui="short"] .workbench .toolbar>button{min-height:34px}
[data-strategy-ui="short"] .workbench>.aq-account-strategy-controls:empty{display:none}
[data-strategy-ui="short"] .workbench .trade-table tr:empty{display:none}
[data-strategy-ui="short"] .workbench .trade-table th,[data-strategy-ui="short"] .workbench .trade-table td{border-bottom:0}
[data-strategy-ui="short"] .workbench .trade-table tr[data-row-vt]{border-bottom:0}
[data-strategy-ui="short"] .workbench .trade-table tr[data-row-vt]:nth-child(even){background:#f7f9fc}

[data-strategy-ui="short"] .aq-product-disclosure>summary>#addContract{margin:0;min-height:34px;padding:7px 10px;font-size:12px;flex:none}

[data-strategy-ui="fundamental"] .aq-product-disclosure>summary>[data-op=contract-add]{margin:0;min-height:34px;padding:7px 10px;font-size:12px;flex:none}
[data-strategy-ui="fundamental"] .manual-table th,[data-strategy-ui="fundamental"] .manual-table td,[data-strategy-ui="fundamental"] .manual-table tr{border-bottom:0}
[data-strategy-ui="fundamental"] .manual-table tr:empty{display:none}
[data-strategy-ui="fundamental"] .manual-table tr[data-contract-row]:nth-child(even){background:#f7f9fc}

[data-strategy-ui="fundamental"] .aq-strategy-controls>.actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
[data-strategy-ui="fundamental"] .actions>.fundamental-inline-start:not([hidden]){display:contents}
[data-strategy-ui="fundamental"] .actions>.fundamental-inline-start>small{flex:1 0 100%;order:99;max-width:none;margin:0}

.aq-rohon-login-dialog .login-form{display:flex;flex-direction:column;align-items:stretch;max-width:none;gap:14px}
.aq-rohon-login-dialog .login-form>label,.aq-rohon-login-dialog .rohon-original-channel{width:100%}
.aq-rohon-login-dialog .rohon-original-channel{margin:10px 0 20px}
.aq-rohon-login-dialog .aq-login-dialog-feedback{margin:14px 0 0;white-space:pre-line}
[data-strategy-ui="short"] .aq-rohon-summary>.section-head{margin-bottom:10px}
[data-strategy-ui="short"] .aq-rohon-summary>.section-head h2{font-size:16px}
[data-strategy-ui="short"] .aq-rohon-summary [data-inline-broker-display].broker-logged-in{color:#be123c!important}

/* One Rohon identity/holdings card immediately above the four status cards. */
[data-strategy-ui="short"] .aq-rohon-summary>.aq-combined-holdings{margin:14px 0 0;padding:16px 0 0;border:0;border-top:1px solid #d4dde7;border-radius:0;box-shadow:none;background:transparent}
[data-strategy-ui="short"] .aq-rohon-summary>.aq-combined-holdings .section-head{margin-bottom:12px;padding:0}
[data-strategy-ui="short"] .aq-rohon-summary>.aq-recovery-status-only{margin:0;padding:0;border:0;box-shadow:none;background:transparent}
[data-strategy-ui="short"] .aq-recovery-status-only>strong,[data-strategy-ui="short"] .aq-recovery-status-only>.actions,[data-strategy-ui="short"] .aq-recovery-status-only>details,[data-strategy-ui="short"] .aq-recovery-status-only>p.muted:not([data-recovery-message]){display:none}
[data-strategy-ui="short"] .aq-recovery-status-only>[data-recovery-message]:not([hidden]){margin-top:12px;white-space:pre-line}
[data-strategy-ui="short"] .aq-rohon-login-dialog>#brokerDisconnect{margin-top:12px;width:100%}

[data-strategy-ui="fundamental"] #connectionPanel>.aq-combined-fundamental-holdings{margin-top:14px;padding-top:16px;border-top:1px solid #d4dde7}
[data-strategy-ui="fundamental"] [data-combined-account-number]{display:inline;font-size:inherit;margin-right:12px}
[data-strategy-ui="fundamental"] [data-combined-account-channel]{display:block;color:#627793;font-size:13px;font-weight:400;margin-top:6px}
[data-strategy-ui="fundamental"] .fundamental-workspace .account-number [data-account-number],[data-strategy-ui="fundamental"] .fundamental-workspace .account-number [data-account-broker-status],[data-strategy-ui="fundamental"] .fundamental-workspace [data-account-identity-note],[data-strategy-ui="fundamental"] .fundamental-workspace .rohon-channel-label{display:none!important}
[data-strategy-ui="fundamental"] #connectionPanel>.aq-recovery-status-only{margin:0;padding:0;border:0;box-shadow:none;background:transparent}
[data-strategy-ui="fundamental"] .aq-recovery-status-only>strong,[data-strategy-ui="fundamental"] .aq-recovery-status-only>.actions,[data-strategy-ui="fundamental"] .aq-recovery-status-only>details,[data-strategy-ui="fundamental"] .aq-recovery-status-only>p.muted:not([data-recovery-message]){display:none}
[data-strategy-ui="fundamental"] .aq-recovery-status-only>[data-recovery-message]:not([hidden]){margin-top:12px;white-space:pre-line}

/* Show the current Rohon identity once; account choices open only on request. */
[data-strategy-ui="fundamental"] #connectionPanel>.section-head{margin-bottom:10px}
[data-strategy-ui="fundamental"] #connectionPanel>.section-head h2{font-size:16px}
[data-strategy-ui="fundamental"] #connectionPanel>.section-head>div>.eyebrow,[data-strategy-ui="fundamental"] #connectionPanel>.section-head>div>p.muted{display:none}
[data-strategy-ui="fundamental"] #accountConnectionActions:not([hidden]){display:contents}
[data-strategy-ui="fundamental"] .aq-account-switcher-disclosure{position:relative;align-self:center}
[data-strategy-ui="fundamental"] .aq-account-switcher-disclosure>summary{cursor:pointer;list-style:none;padding:9px 14px;border:1px solid #d3ddec;border-radius:7px;background:#fff;font-size:13px;font-weight:600;white-space:nowrap}
[data-strategy-ui="fundamental"] .aq-account-switcher-disclosure>summary::after{content:' ▾'}
[data-strategy-ui="fundamental"] .aq-account-switcher-disclosure>summary::-webkit-details-marker{display:none}
[data-strategy-ui="fundamental"] .aq-account-switcher-disclosure[open]>summary{background:#eaf1ff;color:#285dc8}
[data-strategy-ui="fundamental"] .aq-account-switcher-disclosure>nav{position:absolute;right:0;top:100%;z-index:20;margin:6px 0 0;padding:8px;min-width:220px;max-width:min(340px,calc(100vw - 64px));max-height:280px;overflow:auto;background:#fff;border:1px solid #d3ddec;border-radius:9px;box-shadow:0 8px 24px #18314b1a}
[data-strategy-ui="fundamental"] .aq-account-switcher-disclosure>nav>button{flex:1 0 100%;width:100%;min-width:0;text-align:left;overflow-wrap:anywhere;white-space:normal}
@media(max-width:760px){[data-strategy-ui="fundamental"] .aq-account-switcher-disclosure>nav{right:auto;left:0}}

/* Short and semi-automatic workspaces share one compact account identity format. */
body:is([data-strategy-ui="short"],[data-strategy-ui="fundamental"]) .aq-rohon-summary>.section-head{margin-bottom:10px}
body:is([data-strategy-ui="short"],[data-strategy-ui="fundamental"]) .aq-rohon-summary>.section-head h2{font-size:16px;line-height:1.5;margin:0}
body:is([data-strategy-ui="short"],[data-strategy-ui="fundamental"]) .aq-rohon-summary>.section-head>div>.eyebrow,[data-strategy-ui="short"] .aq-rohon-summary>.section-head>span.muted{display:none}
body:is([data-strategy-ui="short"],[data-strategy-ui="fundamental"]) .aq-rohon-summary h2>:is([data-rohon-channel-label],[data-combined-account-channel]){display:block;color:#627793;font-size:13px;font-weight:400;line-height:1.6;margin:6px 0 0}

/* Matching workbench structure: permanent parameter heading, folded toolbar/table. */
[data-strategy-ui="fundamental"] .fundamental-products{padding:0;overflow:visible}
[data-strategy-ui="fundamental"] .fundamental-products>.section-head{padding:20px 22px;margin:0}
[data-strategy-ui="fundamental"] .fundamental-products>.section-head h2{margin:5px 0 0}
[data-strategy-ui="fundamental"] .aq-manual-workbench{padding:0;border:0;background:transparent}
[data-strategy-ui="fundamental"] .aq-manual-workbench>.account-control-bar{display:block;padding:0 22px;margin:0 0 12px;border:0}
[data-strategy-ui="fundamental"] .aq-manual-workbench>.account-control-bar>div>strong{display:none}
[data-strategy-ui="fundamental"] .aq-manual-workbench .account-control-bar>.account-number{display:none}
[data-strategy-ui="fundamental"] .aq-manual-workbench .account-control-bar .actions:empty{display:none}
[data-strategy-ui="fundamental"] .aq-manual-workbench .slot-state{font-size:13px;margin:8px 0;color:#627793}
[data-strategy-ui="fundamental"] .aq-manual-workbench .aq-product-disclosure{margin:0;border:1px solid #dce5f2;border-radius:12px}
[data-strategy-ui="fundamental"] .aq-fundamental-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;border:0;border-radius:8px;padding:12px;margin:0;background:#f3f6fa}
[data-strategy-ui="fundamental"] .aq-fundamental-toolbar>button,[data-strategy-ui="fundamental"] .aq-fundamental-toolbar>.fundamental-inline-start>button{min-height:34px;min-width:0;padding:7px 10px;margin:0;font-size:12px;width:auto;flex:none}
[data-strategy-ui="fundamental"] .aq-fundamental-toolbar>.fundamental-inline-start:not([hidden]){display:contents}
[data-strategy-ui="fundamental"] .aq-fundamental-toolbar>.fundamental-inline-start>small{flex:1 0 100%;order:99;max-width:none;margin:0;font-size:12px;line-height:1.6}
[data-strategy-ui="fundamental"] .aq-manual-workbench .manual-toolbar{display:block;padding:12px 0 0;margin:0;border:0}
[data-strategy-ui="fundamental"] .aq-manual-workbench .manual-toolbar p{margin:0;font-size:13px;line-height:1.7}
[data-strategy-ui="fundamental"] .aq-manual-workbench .manual-toolbar>.actions:empty{display:none}
@media(max-width:760px){[data-strategy-ui="fundamental"] .fundamental-products>.section-head{padding:17px}[data-strategy-ui="fundamental"] .aq-manual-workbench>.account-control-bar{padding:0 17px}}

@media(max-width:1200px){
 [data-strategy-ui="fundamental"] .aq-manual-workbench .manual-table{border:0;overflow:visible;border-radius:0}
 [data-strategy-ui="fundamental"] .aq-manual-workbench .manual-table table,[data-strategy-ui="fundamental"] .aq-manual-workbench .manual-table tbody{display:block;min-width:0;width:100%;table-layout:auto}
 [data-strategy-ui="fundamental"] .aq-manual-workbench .manual-table thead{display:none}
 [data-strategy-ui="fundamental"] .aq-manual-workbench .manual-table tr[data-contract-row]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:18px;margin:0 0 12px;border:0;border-radius:0;background:#f7f9fc}
 [data-strategy-ui="fundamental"] .aq-manual-workbench .manual-table td{display:block;min-width:0;width:auto;padding:0;border:0}
 [data-strategy-ui="fundamental"] .aq-manual-workbench .manual-table td::before{content:attr(data-label);display:block;font-size:11px;line-height:1.5;color:#6b809c;margin-bottom:7px}
 [data-strategy-ui="fundamental"] .aq-manual-workbench .manual-table td:first-child{grid-column:1/-1}
 [data-strategy-ui="fundamental"] .aq-manual-workbench .manual-table td:last-child{grid-column:1/-1;border-top:1px solid #d4dde7;padding-top:14px}
 [data-strategy-ui="fundamental"] .aq-manual-workbench .manual-table small{max-width:none;overflow-wrap:anywhere}
 [data-strategy-ui="fundamental"] .aq-manual-workbench .manual-table input,[data-strategy-ui="fundamental"] .aq-manual-workbench .manual-table select{max-width:160px}
}
@media(max-width:600px){[data-strategy-ui="fundamental"] .aq-manual-workbench .manual-table tr[data-contract-row]{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px;padding:16px}[data-strategy-ui="fundamental"] .aq-manual-workbench .manual-table .row-actions{display:flex;flex-direction:row;gap:8px;flex-wrap:wrap}}

@media(max-width:1200px){[data-strategy-ui="fundamental"] .aq-manual-workbench .manual-table .row-actions{display:flex;flex-direction:row;gap:8px;flex-wrap:wrap}[data-strategy-ui="fundamental"] .aq-manual-workbench .manual-table .row-actions button{flex:0 1 auto;min-width:80px;min-height:34px;padding:7px 10px;font-size:12px}}
