/* Investment workspaces: readable research panels, separate from the market banner. */
body[data-hub-layout="investmentexplorer"] .main > .content {max-width:1440px;padding:28px clamp(16px,3vw,40px) 56px}
#toolkit .tk-essentials,#brokers .bo-directory,#freelearning .invlearn-paths {gap:22px}
.main .page > h2 {font-size:clamp(26px,3vw,36px);letter-spacing:-.035em;line-height:1.18;margin:12px 0 14px}
.main .page > p {max-width:72ch;line-height:1.7}
.main .page .grid {gap:22px;grid-template-columns:repeat(3,minmax(0,1fr))}
.main .page .grid > .card {padding:24px;border-radius:16px;box-shadow:none;display:flex;flex-direction:column;align-items:flex-start}
.main .page .grid > .card h3 {font-size:19px;line-height:1.35}
.main .page .grid > .card p,.main .page .grid > .card li {font-size:14px;line-height:1.65}
#portfolio .pt-panel,#messages .msg-panel,#budgetplanner .bp-sheet,#taxprep .tp-sheet {border-radius:18px;box-shadow:none;padding:clamp(18px,2.5vw,28px);margin-block:20px}
#messages .msg-form {display:grid;gap:16px;max-width:840px}
#messages .msg-form :is(input,select,textarea),#portfolio .pt-panel :is(input,select) {min-height:46px;max-width:100%;border-radius:10px}
.main .focus-workspace-bar {margin-bottom:24px!important;padding:12px 16px!important;border-radius:12px;background:#fff;border:1px solid #dce3ed;gap:16px}
.main .focus-workspace-bar select {max-width:100%;min-height:44px}
@media(max-width:1100px){.main .page .grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.main .page .grid{grid-template-columns:1fr;gap:16px}.main .page .grid>.card{padding:20px}.main .focus-workspace-bar{flex-wrap:wrap}.main .focus-workspace-bar select{width:100%}#portfolio .pt-table-wrap{overflow-x:auto}}

/* Research tools: readable cards with separate primary and secondary actions. */
#toolkit .tk-grid{gap:20px;align-items:stretch}#toolkit .tk-card{display:flex;flex-direction:column;padding:24px;border-radius:16px;min-width:0;box-shadow:none}#toolkit .tk-card h3{font-size:20px;line-height:1.3;margin:14px 0 10px}#toolkit .tk-card p{font-size:14px;line-height:1.65}#toolkit .tk-points{font-size:13px;line-height:1.7;padding-block:8px 16px}#toolkit .tk-actions{margin-top:auto;display:flex;gap:8px;flex-wrap:wrap}#toolkit .tk-actions button{min-height:42px;font-size:12px;line-height:1.35;white-space:normal;padding:10px 12px}#toolkit .tk-actions button:first-child{flex:1 1 100%}#toolkit .tk-essential{padding:20px}#toolkit .tk-essential p{font-size:14px;line-height:1.6}#check .readiness-checks label{padding:16px;font-size:15px;line-height:1.55}#research .research-controls{gap:12px;flex-wrap:wrap}#research .research-controls :is(input,select){min-height:46px;font-size:15px}
@media(max-width:1050px){#toolkit .tk-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){#toolkit .tk-grid,#toolkit .tk-essentials-grid{grid-template-columns:1fr}#toolkit .tk-card{padding:20px}#toolkit .tk-actions button{flex:1 1 45%;font-size:13px}}

#toolkit .tk-points li{font-size:13px;line-height:1.65}

/* Dashboard layout: a fuller home screen, one menu button on phones, no leftover panels. */
/* The old "Investment Account" panel posts to addresses this hub does not have; saved work lives in "My saved work". */
#ceo-investment-cloud{display:none!important}
body:has(#home.active) .main .focus-workspace-bar{display:none!important}
.main .focus-workspace-bar>a::before{content:'\2190\00a0'}
#home .focus-home-title{font-size:clamp(20px,2.2vw,26px);line-height:1.25;letter-spacing:-.02em;margin:30px 0 4px;color:#13233e}
#home .ai-home-lab{margin-bottom:0}
#home .focus-route-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:16px 0 28px}
#home .focus-route-cards a{position:relative;padding:20px 48px 20px 20px;border-radius:14px;font-size:17px;line-height:1.3;transition:border-color .15s,box-shadow .15s,transform .15s}
#home .focus-route-cards a::after{content:'\2192';position:absolute;right:18px;top:18px;width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:#eef2fb;color:#2a1fd6;font-weight:700;font-size:15px}
#home .focus-route-cards a:hover{border-color:#c59834;box-shadow:0 8px 22px rgba(16,33,60,.08);transform:translateY(-1px)}
#home .focus-route-cards a small{font-size:14px;color:#55637a}
@media(max-width:1100px){#home .focus-route-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){#home .focus-route-cards{grid-template-columns:1fr;gap:12px}#home .focus-route-cards a{padding:16px 48px 16px 16px}}
@media(prefers-reduced-motion:reduce){#home .focus-route-cards a{transition:none}#home .focus-route-cards a:hover{transform:none}}
/* The floating help buttons sat on top of "My saved work". */
@media(min-width:821px){body:has(#hub-cloud) #uaFloatWhatsApp{bottom:76px}body:has(#hub-cloud) #uaFloatAccess{bottom:134px}}
/* Phones: the menu button lives in the header, and account + shortcuts share one row. */
html[data-inv-menu="header"] .exact-top-left>.workspace-menu-toggle{flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;margin:0;padding:0;justify-content:center;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.35);border-radius:10px;color:#fff;font-size:0;gap:0}
html[data-inv-menu="header"] .exact-top-left>.workspace-menu-toggle svg{width:20px;height:20px}
@media(max-width:760px){
 html[data-inv-menu="header"] .exact-top{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px!important;align-items:start}
 html[data-inv-menu="header"] .exact-top>.exact-top-left{grid-column:1/-1}
 html[data-inv-menu="header"] .exact-top>.member-account-launch{grid-column:1;width:100%;min-height:44px;margin:0}
 html[data-inv-menu="header"] .exact-top>.hub-chrome-menu{grid-column:2;width:100%}
 html[data-inv-menu="header"] .exact-top>.hub-chrome-menu[open]{grid-column:1/-1}
 html[data-inv-menu="header"] .exact-top>.hub-chrome-menu>summary{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 14px}
}
html[data-inv-menu="header"] #menu{display:none!important}


/* Saved research cards (watchlist, IPO tracker, notebook) */
.inv-saved{margin:28px 0 8px;padding:24px;border:1px solid #dbe2ee;border-radius:16px;background:#fff;color:#10213c;box-shadow:0 8px 24px rgba(7,26,58,.06)}
.inv-saved h2{margin:0 0 6px;font-size:20px;line-height:1.3;color:#071a3a}
.inv-saved-intro{margin:0 0 16px;color:#68758c;font-size:14px;line-height:1.6}
.inv-saved-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:10px;align-items:start}
.inv-saved-form :is(input,select,textarea){box-sizing:border-box;width:100%;min-height:46px;padding:10px 12px;border:1px solid #aab9cd;border-radius:10px;background:#fff;color:#10213c;font:inherit;font-size:16px}
.inv-saved-form textarea{grid-column:1/-1;min-height:110px;resize:vertical}
.inv-saved-submit{min-height:46px;padding:10px 18px;border:0;border-radius:10px;background:#071a3a;color:#fff;font:inherit;font-weight:700;cursor:pointer}
.inv-saved-submit:hover{background:#102c55}.inv-saved-submit:disabled{opacity:.6;cursor:default}
.inv-saved :is(input,select,textarea,button):focus-visible{outline:3px solid #e0ad31;outline-offset:2px}
.inv-saved-status{margin:12px 0 0;font-size:14px;font-weight:600;color:#102c55}.inv-saved-status:empty{display:none}
.inv-saved-list{list-style:none;margin:16px 0 0;padding:0}
.inv-saved-list li{display:flex;gap:14px;align-items:flex-start;justify-content:space-between;padding:14px 0;border-top:1px solid #dbe2ee}
.inv-saved-list li.inv-saved-empty{display:block;color:#68758c;font-size:14px}
.inv-saved-body{min-width:0;overflow-wrap:anywhere}.inv-saved-body strong{display:block;color:#071a3a}
.inv-saved-meta{display:block;margin-top:2px;font-size:13px;color:#68758c}
.inv-saved-body p{margin:6px 0 0;font-size:14px;line-height:1.6;white-space:pre-wrap}
.inv-saved-remove{flex:none;min-height:40px;padding:8px 12px;border:1px solid #aab9cd;border-radius:8px;background:#fff;color:#b42318;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.inv-saved-note{margin:14px 0 0;font-size:12px;line-height:1.5;color:#68758c}
@media(max-width:600px){.inv-saved{padding:18px}.inv-saved-list li{flex-direction:column;gap:8px}}
