.portal-breadcrumb{display:flex;align-items:center;gap:10px;margin:22px 2px 6px;font-size:12px;line-height:1.6;color:#8b9ab0}.portal-breadcrumb a{color:#4b729e;text-decoration:none}.portal-breadcrumb span[aria-current]{color:#475e7b}.portal-page-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 2px 28px}.portal-page-heading .eyebrow{font-size:10px;letter-spacing:2px;color:#6b87ab;font-weight:600}.portal-page-heading h2{font-size:32px;line-height:1.4;margin:10px 0 12px;color:#18334f}.portal-page-heading p{font-size:13px;line-height:1.8;color:#7689a4;margin:0}.portal-page-count{font-size:12px;line-height:1.6;white-space:nowrap;border:1px solid #d5e2f3;border-radius:7px;padding:8px 13px;background:#eaf1fb;color:#54779f}.portal-entry-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.portal-entry-research{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-entry-card{display:flex;flex-direction:column;align-items:flex-start;padding:26px;background:#fff;border:1px solid #d7e3f2;border-radius:14px;text-decoration:none;color:#1d3858;min-width:0;box-shadow:0 5px 20px #25416a04;transition:border-color .15s,box-shadow .15s}.portal-entry-card:hover{border-color:#8aafd9;box-shadow:0 8px 25px #25416a0a}.portal-card-top{display:flex;align-items:center;justify-content:space-between;width:100%;margin-bottom:24px}.portal-card-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:11px;font-size:25px;background:#edf4ff;color:#3d6aa8}.portal-entry-research .portal-card-icon{background:#e7f5f4;color:#398c91;font-size:20px}.portal-card-number{font:12px ui-monospace,monospace;color:#97aac3}.portal-entry-card h3{font-size:18px;line-height:1.6;margin:0 0 10px}.portal-entry-card p{font-size:12px;line-height:1.9;color:#7a8ba3;margin:0 0 24px}.portal-card-tag{font-size:10px;line-height:1.6;padding:5px 8px;border-radius:5px;background:#f1f5fb;color:#6382a6;margin-top:auto}.portal-entry-card strong{display:flex;align-items:center;justify-content:space-between;width:100%;border-top:1px solid #e4ebf5;margin-top:24px;padding-top:16px;font-size:12px;color:#3c6caa;line-height:1.6}.portal-entry-card strong>span{font-size:17px}.portal-page-note{font-size:12px;line-height:1.8;color:#7d8ea4;margin:24px 2px 36px}.portal-home-heading{padding-top:34px}.portal-home-menu{background:#fff;border:1px solid #d7e3f2;border-radius:14px;overflow:hidden}.portal-home-menu>a{display:flex;align-items:center;gap:24px;padding:25px 28px;text-decoration:none;border-bottom:1px solid #e4ebf5;color:#243e5d;min-height:105px}.portal-home-menu>a:last-child{border-bottom:0}.portal-home-menu>a:hover{background:#f8fbff}.portal-home-number{font:12px ui-monospace,monospace;color:#7895b8}.portal-home-menu h3{font-size:17px;line-height:1.6;margin:0 0 4px}.portal-home-menu p{font-size:12px;line-height:1.7;color:#8192aa;margin:0}.portal-home-stage{margin-left:auto;font-size:11px;color:#6788af;white-space:nowrap}.portal-home-arrow{font-size:22px;color:#7094c3}.portal-entry-card[aria-disabled=true],.portal-home-menu>a[aria-disabled=true]{opacity:.5;cursor:default}.portal-access-note{font-size:11px;color:#9b6e35;line-height:1.6;margin-top:10px}.portal-access-note[hidden]{display:none}#aqPortalContent a:focus-visible{outline:2px solid #4a83cf;outline-offset:3px}@media(max-width:1100px){.portal-entry-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.portal-page-heading{align-items:flex-start;padding:20px 0;gap:10px}.portal-page-heading h2{font-size:25px}.portal-page-heading p{font-size:12px}.portal-page-count{font-size:10px;padding:5px 8px}.portal-entry-grid{grid-template-columns:minmax(0,1fr);gap:14px}.portal-entry-card{padding:22px}.portal-card-top{margin-bottom:16px}.portal-entry-card h3{font-size:17px}.portal-entry-card p{margin-bottom:16px}.portal-entry-card strong{margin-top:20px}.portal-home-menu>a{padding:20px 16px;gap:14px}.portal-home-menu h3{font-size:15px}.portal-home-menu p{font-size:11px}.portal-home-stage{display:none}.portal-home-arrow{margin-left:auto}.portal-page-note{font-size:11px}.portal-breadcrumb{font-size:11px;margin-top:18px}}

/* Single-product strategy layouts: no trading controls are attached. */
.single-stage{flex:none;white-space:nowrap;border:1px solid #d6e2f2;border-radius:7px;padding:8px 12px;background:#edf3fc;color:#54769c;font-size:11px;line-height:1.6}
.aq-single-layout #dailySessionPanel{display:none!important}
.single-foundation{display:flex;align-items:center;gap:16px;margin:0 0 24px;padding:19px 22px;border:1px solid #dbe6f3;border-radius:12px;background:#eaf1fb}
.single-foundation-icon{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:9px;background:#dbe8fb;color:#4877b5;font-size:26px}
.single-foundation strong{font-size:13px;line-height:1.7;color:#426184}.single-foundation p{font-size:12px;line-height:1.8;color:#7c90aa;margin:4px 0 0}
.single-product-symbol{display:grid;place-items:center;width:48px;height:48px;border-radius:13px;font-size:23px;font-weight:500}
.single-tone-amber{background:#fff2dd;color:#ac8039}.single-tone-rose{background:#fdebf0;color:#b67386}.single-tone-green{background:#eaf5e9;color:#5b8e59}.single-tone-red{background:#fbebea;color:#ae6b68}.single-tone-cyan{background:#e6f4f8;color:#4e8d9d}.single-tone-gold{background:#f9f0d9;color:#a4863e}
.single-product-name{font-size:10px;color:#8b9bb0;line-height:1.7;margin-bottom:8px;letter-spacing:.5px}.single-product-card h3{font-size:20px}.single-product-card .portal-card-tag{color:#7387a0;background:#f3f6fa}.single-invalid{margin:0 0 20px;color:#8a6b41;font-size:12px;line-height:1.7}
.single-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid #dbe6f3;border-radius:12px;background:#fff;margin-bottom:28px;padding:22px 0}.single-overview>div{display:grid;gap:8px;border-left:1px solid #e6edf6;padding:0 24px}.single-overview>div:first-child{border-left:0}.single-overview span{font-size:11px;color:#8799b0;line-height:1.5}.single-overview strong{font-size:15px;line-height:1.7;color:#345174}
.single-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.single-section-head h3{font-size:17px;line-height:1.6;margin:0;color:#294663}.single-section-head>span{font-size:11px;line-height:1.6;color:#92a1b6}.single-rule-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.single-rule-card{display:flex;align-items:flex-start;gap:14px;border:1px solid #dbe6f3;background:#fff;border-radius:12px;padding:22px}.single-rule-number{font:11px ui-monospace,monospace;color:#8eabc9;margin-top:4px}.single-rule-card h4{font-size:14px;line-height:1.6;margin:0 0 8px;color:#355371}.single-rule-card p{font-size:12px;line-height:1.8;color:#8597ac;margin:0}.single-pending{flex:none;margin-left:auto;background:#f2f5f9;border-radius:5px;padding:4px 7px;white-space:nowrap;font-size:10px;line-height:1.6;color:#8192a8}
.single-records{border:1px solid #dbe6f3;border-radius:12px;background:#fff;padding:24px;margin-top:28px}.single-empty{display:flex;flex-direction:column;align-items:center;padding:32px 15px 38px;text-align:center}.single-empty>span{display:grid;place-items:center;width:48px;height:48px;border-radius:13px;background:#f0f5fc;color:#9bb2cd;font-size:27px;margin-bottom:16px}.single-empty strong{font-size:14px;color:#667d9a;line-height:1.6}.single-empty p{font-size:12px;line-height:1.8;color:#91a1b6;margin:8px 0 0}.single-permission{padding:28px;border:1px solid #dbe6f3;border-radius:12px;background:#fff;margin:24px 0}.single-permission h2{font-size:20px}.single-permission p{color:#7f91a9;font-size:13px;line-height:1.8}.single-permission a{color:#4574b0}.single-permission[hidden],#aqSingleContent[hidden]{display:none}
@media(max-width:600px){.single-page-heading{flex-direction:column;gap:14px}.single-stage{font-size:10px;padding:5px 9px}.single-foundation{align-items:flex-start;padding:16px;gap:12px}.single-foundation strong{font-size:12px}.single-foundation p{font-size:11px}.single-overview{padding:16px 0}.single-overview>div{padding:0 12px;gap:6px}.single-overview strong{font-size:12px}.single-overview span{font-size:10px}.single-rule-grid{grid-template-columns:minmax(0,1fr);gap:12px}.single-rule-card{padding:18px;gap:10px}.single-section-head h3{font-size:16px}.single-records{padding:20px}.single-empty{padding:28px 6px}.single-empty p{font-size:11px}}

/* Fixed parent links follow the rendered, permission-gated single-product page. */
.single-parent-actions{display:none;margin:22px 0 4px;gap:8px}
.single-parent-link{display:none;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border:1px solid #b9cde6;border-radius:7px;background:#fff;color:#315b8c;font-size:14px;font-weight:600;line-height:1.5;text-decoration:none;box-sizing:border-box}
.single-parent-link:hover{background:#edf4ff;border-color:#7da5d3}
.single-parent-link:focus-visible{outline:2px solid #4a83cf;outline-offset:3px}
.aq-single-layout #cloudWorkspace:has(#aqSingleContent:not([hidden])) .single-parent-actions{display:flex}
.aq-single-layout #cloudWorkspace:has(#aqSingleContent:not([hidden]) .single-product-grid) .single-back-factory,.aq-single-layout #cloudWorkspace:has(#aqSingleContent:not([hidden]) .single-overview) .single-back-list{display:inline-flex}
@media(max-width:600px){.single-parent-actions{margin-top:16px}.single-parent-link{max-width:100%;font-size:13px;padding:10px 14px;white-space:normal;text-align:center}}

/* Portal phone layout. Keep desktop, permissions and trading workbenches intact. */
@media(max-width:700px){
 .aq-portal-page .topbar{padding:16px;gap:10px;align-items:stretch;flex-direction:column}
 .aq-portal-page .topbar .brand{gap:10px;min-width:0;align-items:flex-start}
 .aq-portal-page .brand>div{min-width:0}
 .aq-portal-page .brand-mark{width:36px;height:36px;margin-top:2px}
 .aq-portal-page .topbar .brand h1{font-size:20px;line-height:1.35;letter-spacing:0;overflow-wrap:normal}
 .aq-portal-page .aq-brand-subtitle{display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin-top:5px;font-size:11px;line-height:1.6}
 .aq-portal-page .aq-brand-subtitle .aq-agent-formula{white-space:normal;overflow-wrap:anywhere}
 .aq-portal-page .topbar .header-tools{width:100%;min-width:0;gap:0}
 .aq-portal-page .header-tools .connection{display:flex;align-items:center;flex-wrap:wrap;gap:5px 8px;width:100%;padding-top:9px;border-top:1px solid #ffffff1a;font-size:12px;line-height:1.6}
 .aq-portal-page .connection #dot{margin:0;flex:0 0 7px}
 .aq-portal-page .connection #connection{min-width:0;overflow-wrap:anywhere}
 .aq-portal-page .connection small{margin-left:auto;font-size:11px}
 .aq-portal-page .aq-nav-inner{display:block;padding:0 14px}
 .aq-portal-page .aq-menu-mobile{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:58px;font-size:14px;font-weight:600}
 .aq-portal-page .aq-menu-toggle{display:flex;align-items:center;gap:8px;min-width:80px;min-height:44px;padding:10px 14px;border:1px solid #46617e;border-radius:8px;background:#1a2e48;color:#dce9fa;font-size:13px;line-height:1.5}
 .aq-portal-page .aq-menu-links{display:none;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;padding:2px 0 14px}
 .aq-portal-page .aq-workspace-nav[data-open] .aq-menu-links{display:grid}
 .aq-portal-page .aq-menu-links a{min-width:0;min-height:44px;justify-content:flex-start;padding:10px 12px;border:1px solid #2c4664;border-radius:8px;font-size:13px;white-space:normal;overflow-wrap:anywhere}
 .aq-portal-page .aq-menu-links a:first-child{grid-column:1/-1}
 .aq-portal-page .aq-menu-links a:after{display:none}
 .aq-portal-page .aq-menu-links a.is-active{background:#294b73;border-color:#7ba7da}
 .aq-portal-page main{padding:16px 14px 24px;min-width:0}
 .aq-portal-page .panel{padding:16px;margin-bottom:14px;border-radius:12px;min-width:0}
 .aq-portal-page #siteSession{align-items:stretch;gap:12px}
 .aq-portal-page #siteSession>div{min-width:0;max-width:100%}
 .aq-portal-page #siteUser{font-size:15px;line-height:1.6;overflow-wrap:anywhere}
 .aq-portal-page #siteSession .muted{font-size:12px;line-height:1.75;margin-top:4px}
 .aq-portal-page #sessionMessage:empty{display:none}
 .aq-portal-page #siteSession>.actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;align-items:stretch}
 .aq-portal-page #siteSession>.actions>button{min-width:0;min-height:44px;padding:10px 8px;font-size:13px;line-height:1.6;white-space:normal;overflow-wrap:anywhere}
 .aq-portal-page #ownerGate,.aq-portal-page #pendingPanel{margin:12px auto 20px;width:100%;max-width:510px;padding:22px 18px}
 .aq-portal-page .gate h2{font-size:22px;line-height:1.45;overflow-wrap:anywhere}
 .aq-portal-page .gate form{margin-top:20px;gap:16px}
 .aq-portal-page .gate form>button{min-height:46px;margin:0;padding:11px 14px;font-size:15px;white-space:normal}
 .aq-portal-page .gate label,.aq-portal-page #passwordDialog label{font-size:14px;min-width:0}
 .aq-portal-page .gate input:not([type=checkbox]),.aq-portal-page #passwordDialog input{min-height:46px;font-size:16px}
 .aq-portal-page .remember-login{position:relative;align-items:center;column-gap:9px;row-gap:3px;padding-left:26px;min-height:44px;font-size:13px}
 .aq-portal-page .remember-login input{position:absolute;left:0;top:3px;width:18px;height:18px}
 .aq-portal-page .remember-login .muted{flex-basis:100%;font-size:12px;line-height:1.6}
 .aq-portal-page .error,.aq-portal-page [role=status]{overflow-wrap:anywhere}
 .aq-portal-page #adminPanel .section-head{gap:10px;margin-bottom:12px}
 .aq-portal-page #adminPanel .section-head>div{flex:1 1 180px;min-width:0}
 .aq-portal-page #adminPanel h2{font-size:18px}
 .aq-portal-page #adminPanel .muted{font-size:12px;line-height:1.75}
 .aq-portal-page #refreshUsers{min-height:44px;font-size:13px}
 .aq-portal-page #adminPanel details>summary{min-height:44px;padding-block:12px;line-height:1.6;overflow-wrap:anywhere}
 .aq-portal-page #adminPanel .table-scroll{max-width:100%;overscroll-behavior-x:contain}
 .aq-portal-page #dailySessionPanel h3{font-size:16px;line-height:1.6;margin-bottom:8px}
 .aq-portal-page #dailySessionPanel .check{align-items:flex-start;min-height:44px;font-size:13px;line-height:1.75;gap:9px}
 .aq-portal-page #dailySessionPanel input[type=checkbox]{margin-top:3px;width:18px;height:18px}
 .aq-portal-page #dailySessionPanel p{font-size:12px;line-height:1.8;margin-top:8px;overflow-wrap:anywhere}
 .aq-portal-page #aqPortalContent{min-width:0}
 .aq-portal-page .portal-page-heading{flex-wrap:wrap;align-items:flex-start;gap:12px;padding:18px 2px}
 .aq-portal-page .portal-page-heading>div{min-width:0;flex:1 1 230px}
 .aq-portal-page .portal-page-heading h2{font-size:25px;line-height:1.4;margin:8px 0 10px;overflow-wrap:anywhere}
 .aq-portal-page .portal-page-heading p{font-size:13px;line-height:1.8;color:#627891}
 .aq-portal-page .portal-home-menu>a{display:grid;grid-template-columns:32px minmax(0,1fr) 20px;gap:12px;min-height:104px;padding:18px 14px}
 .aq-portal-page .portal-home-menu>a>div{min-width:0}
 .aq-portal-page .portal-home-number{display:grid;place-items:center;width:32px;height:32px;background:#edf3fb;border-radius:9px;color:#537aa6;font-size:12px}
 .aq-portal-page .portal-home-menu h3{font-size:16px;line-height:1.6;margin-bottom:5px}
 .aq-portal-page .portal-home-menu p{font-size:13px;line-height:1.75;color:#657c96;overflow-wrap:anywhere}
 .aq-portal-page .portal-home-stage{display:none}
 .aq-portal-page .portal-home-arrow{margin:0;justify-self:end;font-size:21px}
 .aq-portal-page .portal-page-note{margin:18px 2px 24px;font-size:12px;line-height:1.8;color:#6b8099;overflow-wrap:anywhere}
 .aq-portal-page .portal-breadcrumb{flex-wrap:wrap;gap:6px 9px;font-size:12px;line-height:1.8}
 .aq-portal-page .portal-entry-card{padding:20px;min-width:0}
 .aq-portal-page .portal-entry-card p{font-size:13px;line-height:1.8;overflow-wrap:anywhere}
 .aq-portal-page .portal-page-count{font-size:12px;white-space:normal}
 .aq-portal-page .aq-site-filing{padding:16px 14px 24px;font-size:12px}
 .aq-portal-page #passwordDialog{padding:20px;max-height:calc(100dvh - 32px)}
 .aq-portal-page #passwordDialog .dialog-actions>button{min-height:44px;white-space:normal}
}
@media(max-width:360px){
 .aq-portal-page .topbar{padding:14px}
 .aq-portal-page .topbar .brand h1{font-size:18px}
 .aq-portal-page main{padding-inline:12px}
 .aq-portal-page .panel{padding:14px}
 .aq-portal-page .portal-page-heading h2{font-size:23px}
 .aq-portal-page .portal-home-menu>a{grid-template-columns:28px minmax(0,1fr) 16px;gap:10px;padding:16px 12px}
 .aq-portal-page .portal-home-number{width:28px;height:30px}
 .aq-portal-page .portal-home-menu h3{font-size:15px}
}

/* A column heading must size its content by height, not the row's 230px flex basis. */
@media(max-width:600px){.aq-portal-page .single-page-heading>div{flex:0 1 auto;width:100%}.aq-portal-page .single-page-heading{gap:12px}}
#aqFactoryHome,#aqFactorySelected:not(:empty){margin-top:clamp(16px,2vw,24px)}

/* Saved login accounts are read-only until the user opens configuration. */
#autoLoginPanel{margin:20px 0 28px;min-width:0}
#autoLoginAccounts{margin:18px 0 0;overflow-wrap:anywhere}
#autoLoginAccounts h4{margin:0 0 8px}
.aq-auto-saved-list{list-style:none;padding:0;margin:14px 0 0;display:grid;gap:10px}
.aq-auto-saved-list li{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;background:#e8ecf0;border:1px solid #cbd3dc;border-radius:10px;min-width:0}
.aq-auto-saved-list li>div{display:grid;gap:6px;min-width:0}
.aq-auto-saved-list button{flex:none}
#autoLoginPanel>.section-head{flex-wrap:wrap;gap:12px}
#autoLoginPanel .batch-strategy-actions{flex-wrap:wrap}
@media(max-width:600px){#autoLoginPanel{padding:16px}#autoLoginPanel>.section-head{padding:0}#autoLoginPanel .batch-strategy-actions{width:100%;justify-content:flex-start}.aq-auto-saved-list li{padding:12px;align-items:flex-start}}

/* Saved settings are a read-only table; configuration remains owner scoped. */
.aq-saved-settings{min-width:0;margin:18px 0 24px}
.aq-saved-settings h4{margin:0 0 8px}
.aq-saved-settings-table{width:100%;min-width:690px;border-collapse:collapse;text-align:left}
.aq-saved-settings-table caption{text-align:left;font-size:12px;color:#64748b;padding:8px 0}
.aq-saved-settings-table th{font-size:12px;white-space:nowrap}
.aq-saved-settings-table td{vertical-align:top;min-width:130px;max-width:340px;overflow-wrap:anywhere}
.aq-saved-settings-table td strong,.aq-saved-settings-table td small{display:block;line-height:1.65}
.aq-saved-settings-table td small{margin-top:5px;font-size:12px;color:#657489}
.aq-saved-settings-table [data-setting-state=scheduled] strong,.aq-saved-settings-table [data-setting-state=conditional] strong{color:#255d76}
.aq-saved-settings-table [data-setting-state=paused] strong,.aq-saved-settings-table [data-setting-state=disabled] strong{color:#606c7c}
.aq-saved-settings-table [data-setting-state=blocked] strong,.aq-saved-settings-table [data-setting-state=unknown] strong{color:#9a5725}
.aq-saved-settings .table-scroll{max-width:100%;overflow-x:auto;border:1px solid #cbd3dc;border-radius:10px}
.aq-factory-user-body>.aq-saved-settings{padding:0 12px}
@media(max-width:600px){.aq-saved-settings-table{min-width:650px}.aq-factory-user-body>.aq-saved-settings{padding:0 4px}}

/* Factory login management and batch controls share one responsive action grid. */
#autoLoginPanel .aq-auto-login-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-flow:row;gap:10px;flex:1 1 100%;width:100%;max-width:none;margin:0;align-items:stretch}
#autoLoginPanel .aq-auto-login-actions>button{min-height:48px;height:100%;margin:0}
@media(max-width:800px){#autoLoginPanel .aq-auto-login-actions{grid-template-columns:repeat(2,minmax(0,1fr))}#autoLoginPanel .aq-auto-login-actions>button{min-height:64px}}
