[hidden]{display:none!important}
#optimal-web-mobile-menu,#optimal-web-mobile-close,#optimal-web-mobile-backdrop{display:none}
#optimal-web-preview-status,#optimal-local-connections,#optimal-local-read-panel{min-width:0;overflow-wrap:anywhere}
#optimal-local-read-panel .local-read-scroll{overscroll-behavior-x:contain}
.of-footer{color:#5f6a6a}
.sidebar-header p{color:#5f6a6a}
.optimal-offline-banner{margin:12px 16px 0;padding:10px 14px;border-radius:10px;background:#fff8e1;border:1px solid #e6a800;color:#4e3600;font-size:13px;font-weight:600;line-height:1.4}
.optimal-reconnect-banner:not([hidden]){margin:12px 16px 0;padding:10px 14px;border-radius:10px;background:#fffbeb;border:1px solid #f59e0b;color:#78350f;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:13px;font-weight:600;line-height:1.4}
.optimal-reconnect-btn{min-height:44px;padding:8px 14px;border-radius:8px;border:0;background:#b45309;color:#ffffff;font:inherit;font-size:13px;font-weight:600;cursor:pointer;flex-shrink:0}
.optimal-offline-card:not([hidden]){margin:12px 16px;padding:18px;border-radius:14px;background:var(--bg2,#ffffff);border:1px solid var(--border,#bdc9c8);display:flex;flex-direction:column;gap:14px}
.optimal-offline-card-header h1,.optimal-offline-card-header h2{font-size:16px;font-weight:700;margin-bottom:4px;color:var(--text,#191c1d)}
.optimal-offline-networth{font-size:28px;font-weight:700;letter-spacing:-0.02em;color:#006565;margin:4px 0}
.optimal-offline-meta{font-size:12px;color:var(--text-dim,#3e4949);line-height:1.45}
.optimal-offline-holdings{display:flex;flex-direction:column;border-top:1px solid var(--border,#bdc9c8)}
.optimal-offline-holding-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid rgba(189,201,200,0.45);font-size:13px}
.optimal-offline-holding-sym{font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.optimal-offline-holding-val{font-weight:600;font-variant-numeric:tabular-nums;flex-shrink:0}
.optimal-offline-standalone{min-height:100dvh;padding:max(16px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:var(--bg,#f8fafa);max-width:560px;margin:0 auto}
.optimal-offline-retry-btn{min-height:44px;align-self:flex-start}
.optimal-ios-install-hint:not([hidden]){margin:12px 16px 0;padding:10px 12px;border-radius:12px;background:#eaf4f4;border:1px solid #9dc3c2;color:#064e3b;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;line-height:1.4}
.optimal-ios-install-dismiss{min-height:44px;min-width:68px;padding:8px 12px;border-radius:8px;border:1px solid #006565;background:#006565;color:#ffffff;font:inherit;font-size:13px;font-weight:600;cursor:pointer;flex-shrink:0}
.optimal-pwa-install-btn{min-height:36px}
@media(display-mode:standalone){
    .page-header{padding-top:max(10px,env(safe-area-inset-top))!important;padding-left:max(12px,env(safe-area-inset-left))!important;padding-right:max(12px,env(safe-area-inset-right))!important}
    .main-content{padding-bottom:env(safe-area-inset-bottom)}
    #optimal-clerk-auth-root{padding-top:max(24px,env(safe-area-inset-top));padding-bottom:max(24px,env(safe-area-inset-bottom))}
}
@media(max-width:900px){
    html,body{width:100%;overflow-x:clip}
    .main-content{margin-left:0!important;min-width:0;max-width:100%}
    .sidebar{display:none!important;position:fixed!important;top:0!important;left:0!important;width:min(85vw,300px)!important;height:100dvh!important;z-index:10000!important;overflow:auto!important;background:var(--bg2)!important;border-right:1px solid var(--border,#bdc9c8);box-shadow:16px 0 40px rgba(15,23,23,0.18)}
    body.optimal-web-menu-open{overflow:hidden}
    body.optimal-web-menu-open .sidebar{display:flex!important;flex-direction:column}
    body.optimal-web-menu-open #optimal-web-mobile-backdrop{display:block;position:fixed;inset:0;z-index:9999;background:rgba(15,23,23,0.42);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
    .sidebar-header{padding-right:60px!important}
    .sidebar-nav-item.active{border-right:0!important;border-left:4px solid #047857;padding-left:20px}
    .sidebar-manage-items{position:relative!important;bottom:auto!important;margin:4px 0 6px;box-shadow:0 4px 12px rgba(25,28,29,0.08)}
    #optimal-web-mobile-menu{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border-radius:10px;border:1px solid var(--border,#bdc9c8);background:var(--bg2,#ffffff);color:#064e3b;box-shadow:0 1px 2px rgba(15,23,23,0.06);cursor:pointer;flex-shrink:0;transition:background 0.15s,border-color 0.15s}
    #optimal-web-mobile-menu:hover,#optimal-web-mobile-menu:active{background:var(--bg3,#f2f4f4);border-color:var(--accent,#006565)}
    #optimal-web-mobile-menu:focus-visible,#optimal-web-mobile-close:focus-visible{outline:2px solid var(--accent,#006565);outline-offset:2px}
    #optimal-web-mobile-close{display:inline-flex;align-items:center;justify-content:center;position:absolute;top:14px;right:10px;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:0;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--text-dim,#3e4949);cursor:pointer;z-index:2}
    #optimal-web-mobile-close:hover,#optimal-web-mobile-close:active{background:rgba(6,78,59,0.08);color:#064e3b}
    .page-header{padding:8px 12px!important;gap:8px;flex-wrap:nowrap;align-items:center;position:sticky!important;top:0!important;z-index:100!important}
    .page-header-left{min-width:0;flex:1;gap:8px;flex-wrap:nowrap;align-items:center}
    .page-title{font-size:16px;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .page-header-right{flex-wrap:nowrap;gap:8px;margin-left:auto;flex-shrink:0}
    .dashboard-grid{grid-template-columns:minmax(0,1fr)!important;padding:12px!important;min-width:0}
    #optimal-web-preview-status{padding:12px!important}
    #optimal-local-connections select,#optimal-local-connections input{width:100%;min-width:0;font-size:16px!important}
    #optimal-local-connections label,#optimal-local-connections form{width:100%;min-width:0}
    #optimal-local-connections button,#optimal-local-read-panel button,#optimal-web-preview-status>button{min-height:44px;margin:4px 0;padding:10px 12px!important;font-size:14px}
    #optimal-local-connections>[data-connection-id]{align-items:stretch!important;gap:8px}
    #optimal-local-connections>[data-connection-id]>span{flex-basis:100%}
    #optimal-local-connections dialog{max-width:calc(100vw - 24px)!important}
    #optimal-local-read-panel summary{min-height:44px;padding:10px 0}
    #optimal-local-read-panel .local-read-scroll{width:100%;max-width:calc(100vw - 24px)}
    .sidebar-nav-item{min-height:44px}
    .profile-nudge-callout{display:none!important}
    .sidebar-footer .fab,.sidebar-manage>summary{min-height:44px}
    .sidebar-manage-items .sidebar-footer-link{min-height:44px;box-sizing:border-box}
    .cashflow-view-tab{min-height:44px;font-size:14px}
    .cashflow-view-tabs{max-width:100%;flex-wrap:wrap}
    .panel,.panel-body,.pg-body,.action-dash-wrap{min-width:0;box-sizing:border-box}
    .action-dash-tabs,.pg-footer{flex-wrap:wrap}
    .action-dash-table-wrap,.tlh-sit-table-wrap,.pg-table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
    .action-dash-tab,.pg-btn,.pg-triage-choice,.tlh-btn{min-height:44px}
    .pg-profile-cards,.pg-goal-cards{grid-template-columns:minmax(0,1fr)!important}
    .pg-profile-card,.pg-goal-card{min-width:0;max-width:100%;box-sizing:border-box}
    .pg-profile-metrics{flex-wrap:wrap}
    .pg-profile-metric{flex:1 1 64px}
    .cashflow-payment-modal-field input,.cashflow-payment-modal-field select,.local-read-source-filter select{font-size:16px!important}
    #cashflow-payment-modal-card,.optimal-planning-dialog{max-height:calc(100dvh - 24px);padding:20px}
    .cloud-sign-in-inline{padding:16px}
    .cloud-sign-in-inline .cloud-sign-in-actions{flex-wrap:nowrap}
    body .pm-tile > .pm-menu-btn,body .pm-tile > .pm-hosted-stop{min-width:44px;min-height:44px;margin:0;justify-content:center}
    body #provider-modal-card[data-hosted-picker="true"] .pm-tile{grid-template-rows:auto;min-height:112px;height:auto}
    body #provider-modal-card[data-hosted-picker="true"] .pm-tile > .pm-provider-main{height:auto;min-height:100%;padding:20px 10px 10px}
    body #provider-modal-card[data-hosted-picker="true"] .pm-tile .pm-provider-logo-pill.pm-provider-logo-image{width:min(108px,calc(100% - 24px));max-width:calc(100% - 24px);height:38px}
    body .cloud-sign-in-inline .cloud-sign-in-reveal{width:44px;min-height:44px}
    body .pm-tile .pm-menu-item,body .pm-tile .pm-menu-rename-conn,body .pm-tile .pm-menu-remove-conn{min-height:44px}
    body #provider-modal-card[data-hosted-picker="true"] .pm-close-btn{width:44px;height:44px}
    .of-footer{flex-wrap:wrap;gap:8px;padding:12px}
    #notification-bell-btn{width:44px;height:44px;min-width:44px;min-height:44px}
    #notification-drawer-close,#notification-mark-all-btn,#notification-settings-btn,.notif-tab-btn,.notif-card-cta,.notif-card-secondary,.notif-card-ghost,.notif-inline-btn,.p0-live-cta,.p0-live-secondary{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
    #notification-drawer-close{min-width:44px}
}
/* The connect overlay is a card of two columns (what this is, and the list), which on a phone leaves the list 240px and clips its rows' menus. One column
   instead: a short header (the icon, the heading and the trust lines), then the list at the card's width, and a menu never wider than the card allows. */
@media(max-width:600px){
    .page-header{display:grid!important;grid-template-columns:44px minmax(0,1fr) auto 44px;align-items:center;gap:6px 8px!important;padding:8px 12px!important}
    .page-header-left,.page-header-right{display:contents!important}
    #optimal-web-mobile-menu{grid-column:1;grid-row:1}
    #page-view-title,.page-title{grid-column:2;grid-row:1;min-width:0;font-size:16px;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal!important}
    #enrich-portfolio-btn{grid-column:3;grid-row:1;min-height:44px;min-width:44px;padding:8px 10px!important;justify-content:center}
    #notification-bell-btn{grid-column:4;grid-row:1;width:44px;height:44px;min-width:44px;min-height:44px}
    .page-header-right .toggle-row{display:none!important}
    .market-data-refresh-label{display:none!important}
    #market-data-date.snapshot-date:empty{display:none!important}
    #market-data-date.snapshot-date:not(:empty){grid-column:1/-1;font-size:12px;line-height:1.3;color:var(--text-muted,#586464)}
    body:has(#chart-360-price-as-of:not([hidden])) #market-data-date.snapshot-date{display:none!important}
    #chart-360-section{padding:16px 14px!important}
    .chart-360-header-top{flex-wrap:nowrap!important;gap:6px!important}
    #chart-360-range-pills{gap:2px!important;padding:2px!important;flex-shrink:0}
    [data-chart-360-range]{padding:3px 7px!important}
    .chart-360-price-as-of:not([hidden]){display:inline-block!important;font-size:12px;line-height:1.3}
    #cashflow-view-tabs:not([hidden]){grid-column:1/-1;width:100%;flex-basis:100%;box-sizing:border-box}
    .cashflow-view-tab{flex:1}
    .toast{left:12px!important;right:12px!important;bottom:calc(12px + env(safe-area-inset-bottom,0px))!important;max-width:none!important;font-size:13px!important;justify-content:space-between}
    .cashflow-scheduled-heading,.cashflow-event-heading{display:none!important}
    .cashflow-scheduled-row{grid-template-columns:minmax(0,1fr) 44px!important;gap:6px!important;padding:14px!important}
    .cashflow-scheduled-row>:first-child{grid-column:1;grid-row:1}
    .cashflow-scheduled-row>:last-child{grid-column:2;grid-row:1}
    .cashflow-scheduled-row>:nth-child(2),.cashflow-scheduled-row>:nth-child(3),.cashflow-scheduled-row>:nth-child(4){grid-column:1/-1;white-space:normal!important}
    .cashflow-scheduled-row>:nth-child(2)::before{content:"Schedule: ";color:var(--text-muted);font-weight:400}
    .cashflow-scheduled-row>:nth-child(3)::before{content:"Next date: ";color:var(--text-muted);font-weight:400}
    .cashflow-scheduled-row>:nth-child(4)::before{content:"Amount: ";color:var(--text-muted);font-weight:400}
    .cashflow-event-row{grid-template-columns:minmax(0,1fr) auto!important;gap:6px 10px!important;padding:12px!important}
    .cashflow-event-row>:first-child{grid-column:1;grid-row:1}
    .cashflow-event-row>:nth-child(4){grid-column:2;grid-row:1;align-self:start}
    .cashflow-event-row>:nth-child(2),.cashflow-event-row>:nth-child(3){grid-column:1/-1;white-space:normal!important;font-size:12px!important}
    .cashflow-event-row>:nth-child(2)::before{content:"Schedule: ";color:var(--text-muted);font-weight:500}
    .cashflow-event-row>:nth-child(3)::before{content:"Date: ";color:var(--text-muted);font-weight:500}
    button.cashflow-icon-button{width:44px!important;min-width:44px!important;height:44px!important}
    .cashflow-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
    [data-cashflow-merchant-review-row],[data-cashflow-merchant-rule-done]{grid-template-columns:34px minmax(0,1fr) auto!important;gap:8px 10px!important}
    [data-cashflow-merchant-review-row]>:first-child,[data-cashflow-merchant-rule-done]>:first-child{grid-column:1;grid-row:1}
    [data-cashflow-merchant-review-row]>:nth-child(2),[data-cashflow-merchant-rule-done]>:nth-child(2){grid-column:2;grid-row:1}
    [data-cashflow-merchant-review-row]>:nth-child(3),[data-cashflow-merchant-rule-done]>:nth-child(3){grid-column:3;grid-row:1}
    [data-cashflow-merchant-review-row]>:nth-child(4),[data-cashflow-merchant-rule-split]{grid-column:1/-1;width:100%;max-width:100%;justify-content:stretch!important;flex-wrap:wrap}
    [data-cashflow-merchant-rule-split] select{flex:1 1 160px;min-height:44px}
    [data-cashflow-merchant-rule-split] button{min-height:44px}
    [data-cashflow-review-header]{display:none!important}
    [data-cashflow-review-row]{grid-template-columns:minmax(0,1fr)!important}
    [data-cashflow-review-detail]>div{grid-template-columns:minmax(0,1fr)!important}
    .tlh-edu2-grid,.edu-grid,.tlh-home-pill-row{grid-template-columns:minmax(0,1fr)!important;flex-wrap:wrap!important}
    #optimal-local-connections>[data-connection-id]{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
    #optimal-local-connections>[data-connection-id]>button{flex:1 1 calc(50% - 8px);min-width:110px;justify-content:center;border-radius:8px;border:1px solid var(--border,#bdc9c8);background:var(--bg2,#fff)}
    [data-cashflow-merchant-review-detail]{margin-left:0!important;min-width:0;overflow-x:auto}
    [data-cashflow-review-dropdown-menu]{left:12px!important;right:12px!important;width:auto!important;max-width:calc(100vw - 24px)!important}
    [data-cashflow-review-dropdown-menu] label{min-height:44px!important;padding-top:8px!important;padding-bottom:8px!important}
    input[type="checkbox"],input[type="radio"]{width:20px;height:20px}
    #acc-matrix-edit-providers-btn,#acc-matrix-add-manual-btn,.pm-provider-row:not(.pm-tile) > .pm-menu-btn,.tlh-btn-small,[data-cashflow-trends-lookback],[data-cashflow-review-rules-filter],details[data-cashflow-trends-accounts-dropdown]>summary{min-height:44px!important;padding:10px 12px!important;opacity:1!important;display:inline-flex!important;align-items:center}
    .tlh-footer{flex-wrap:wrap!important;gap:8px!important}
    #tlh-edu-skip{flex:1 0 100%;white-space:nowrap;justify-content:center}
    .optimal-acct-footer{margin-top:16px!important;padding-top:14px!important;border-top:1px solid var(--border,#bdc9c8)}
    .action-dash-lot-submeta{font-size:12px!important;color:var(--text-muted,#586464)!important}
    .pg-footer{position:sticky!important;bottom:0!important;z-index:20;background:var(--bg2,#ffffff)!important;padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))!important;box-shadow:0 -1px 0 var(--border,#bdc9c8)}
    .cashflow-upcoming-events{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
    .cashflow-payment-modal-grid{grid-template-columns:minmax(0,1fr)}
    .pg-triage-row{flex-wrap:wrap}
    .pg-triage-intent{width:100%;box-sizing:border-box}
    .pg-triage-segmented{width:100%}
    .pg-triage-choice{flex:1;padding-left:8px!important;padding-right:8px!important}
    .bxs-cta-card{flex-wrap:wrap}
    .bxs-cta-body{flex-basis:calc(100% - 56px)}
    .bxs-cta-btn{min-height:44px}
    .cloud-sign-in-waiting-text{font-size:20px}
    :is(.cloud-sign-in-dialog,.cloud-sign-in-inline) .cloud-sign-in-actions{flex-wrap:nowrap;gap:8px}
    :is(.cloud-sign-in-dialog,.cloud-sign-in-inline) .cloud-sign-in-actions button{flex:1 1 0;min-width:0;display:inline-flex;align-items:center;justify-content:center;padding:10px 12px}
    .optimal-modal-actions{flex-wrap:nowrap;gap:8px}
    .optimal-modal-actions button:not([hidden]){flex:1 1 0;min-width:0}
    #optimal-read-schedule .read-schedule-actions{flex-wrap:nowrap}
    #optimal-read-schedule .read-schedule-actions button{flex:1 1 0;min-width:0;display:inline-flex;align-items:center;justify-content:center}
    #provider-modal-card .pm-layout{flex-direction:column}
    #provider-modal-card .pm-left{flex:0 0 auto;flex-direction:row;flex-wrap:wrap;align-items:center;gap:6px 12px;padding:14px 16px;border-radius:20px 20px 0 0}
    #provider-modal-card .pm-left-blob{display:none}
    #provider-modal-card .pm-left-icon{margin:0;width:36px;height:36px}
    #provider-modal-card .pm-left-heading{margin:0;font-size:15px}
    #provider-modal-card .pm-left-badges{flex:1 0 100%;flex-direction:row;flex-wrap:wrap;gap:4px 14px;margin-top:2px}
    #provider-modal-card .pm-right{flex:1 1 auto;min-height:0;padding:14px 12px 12px;border-radius:0 0 20px 20px}
    #provider-modal-card .pm-tile .pm-menu-popover{left:0;right:auto;min-width:0;width:min(280px,calc(100vw - 48px));max-width:calc(200% + 4px)}
    #provider-modal-card .pm-tile:nth-child(even) .pm-menu-popover{right:0;left:auto}
    .cashflow-txns-table{min-width:0!important;display:block}
    .cashflow-txns-table thead{display:none}
    .cashflow-txns-table tbody{display:block}
    .cashflow-txns-table tr.cashflow-txn-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;padding:10px 12px;border-top:1px solid var(--border)}
    .cashflow-txns-table tr.cashflow-txn-row td{border-top:0!important;padding:0!important;min-width:0;max-width:none!important}
    .cashflow-txns-table td.cashflow-txn-merchant{grid-column:1;grid-row:1}
    .cashflow-txns-table td.cashflow-txn-merchant>div{max-width:100%!important}
    .cashflow-txns-table td.cashflow-txn-amount{grid-column:2;grid-row:1 / span 2;align-self:start;white-space:nowrap;font-size:0.88rem!important}
    .cashflow-txns-table td.cashflow-txn-date,.cashflow-txns-table td.cashflow-txn-account{grid-column:1;display:inline;font-size:0.72rem!important}
    .cashflow-txns-table td.cashflow-txn-date{grid-row:2}
    .cashflow-txns-table td.cashflow-txn-account{grid-row:3}
    .cashflow-txns-table td.cashflow-txn-category{grid-column:1/-1;grid-row:4;margin-top:2px}
    .cashflow-txns-table td.cashflow-txn-category>div{min-width:0!important}
    .top-holdings-grid{overflow-x:auto;-webkit-overflow-scrolling:touch}
    .top-holdings-table th,.top-holdings-table td{padding:5px 4px!important}
    .top-holding-weight,.top-holding-section-weight,.top-holding-gl,.top-holding-section-gl{white-space:nowrap;text-align:right}
    .top-holdings-table th:nth-child(3),.top-holdings-table th:nth-child(4){text-align:right}
    #asset-drawer{width:min(100%,380px)!important;max-width:100%!important;box-sizing:border-box}
    #drawer-close{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center}
    #chart-360-section button:not(.chart-360-info-btn){min-height:36px}
    .chart-360-info-btn,.cashflow-coverage-info-btn{min-width:28px!important;min-height:28px!important}
    [data-chart-360-range],[data-cashflow-review-page],#btn-360-refresh-all,#acc-matrix-refresh-all-btn,[data-cashflow-open-payment-modal]{min-height:36px!important;display:inline-flex!important;align-items:center;justify-content:center}
    .action-dash-allocation-check{width:22px;height:22px}
    .tlh-home-hero{padding:16px 14px 12px!important}
    .pg-progress-wrap{padding:12px 14px 0!important;max-width:100%;box-sizing:border-box}
}
@media(max-width:335px){
    #provider-modal-card .pm-tile .pm-menu-popover,#provider-modal-card .pm-tile:nth-child(even) .pm-menu-popover{left:0;right:auto;max-width:calc(100% - 8px)}
}
@media(min-width:601px) and (max-width:768px){
    .page-header-right{gap:8px;flex-wrap:nowrap;margin-left:auto}
}
@media(max-width:768px){
    input:not([type="checkbox"]):not([type="radio"]),select,textarea,.optimal-modal-input{font-size:16px!important}
    .optimal-account-btn:not([hidden]),.optimal-modal-primary:not([hidden]),.optimal-modal-secondary:not([hidden]),.optimal-modal-danger:not([hidden]),.optimal-auth-tab:not([hidden]){min-height:44px;padding:8px 12px!important;font-size:13px!important;display:inline-flex;align-items:center;justify-content:center}
    .page-header-right button:not([hidden]),.page-header-right a:not([hidden]){min-height:44px}
    .networth-grid,.holdings-summary-grid,.tlh-kpi-grid,.kpi-row,.summary-cards{grid-template-columns:minmax(0,1fr)!important}
    .holdings-table-wrap,.table-scroll,table{max-width:100%}
    .panel-header{flex-wrap:wrap;gap:8px}
    .panel-header button,.panel-header select{min-height:44px}
    #optimal-clerk-auth-root{padding:max(20px,env(safe-area-inset-top)) 12px max(24px,env(safe-area-inset-bottom))}
    .optimal-auth-shell,.optimal-auth-mount,.optimal-auth-mount>div{max-width:100%;min-width:0}
    .top-holdings-grid{grid-template-columns:minmax(0,1fr)!important}
    .cashflow-txn-filters{grid-template-columns:repeat(2,minmax(0,1fr))!important;padding:10px 12px!important}
    .cashflow-txn-filters>#cashflow-txn-search{grid-column:1/-1}
    .pg-progress-meta{flex-wrap:wrap;gap:4px 8px}
    .cloud-sign-in-inline{padding:12px 14px 14px;font-size:14px}
    :is(.cloud-sign-in-dialog,.cloud-sign-in-inline) form{gap:10px}
    :is(.cloud-sign-in-dialog,.cloud-sign-in-inline)>form>p:first-of-type{font-size:13px;line-height:1.35;color:#4a605b}
    :is(.cloud-sign-in-dialog,.cloud-sign-in-inline) [data-login-page-state]{font-size:12px;line-height:1.35}
    .optimal-acct-row{flex-wrap:wrap;gap:10px}
    .optimal-acct-footer{flex-wrap:wrap;gap:8px}
    #notification-bell-btn{width:44px;height:44px}
    .p0-live-strip{margin:0 12px 10px;padding:10px 12px;flex-wrap:wrap;gap:8px}
    .p0-live-actions{width:100%;justify-content:flex-end}
    .p0-live-cta,.p0-live-secondary{min-height:44px;padding:8px 12px}
    .p0-live-dismiss{min-width:44px;min-height:44px}
    .notif-inline-banner{flex-wrap:wrap;gap:8px;padding:10px 12px}
    .notif-inline-banner-actions{width:100%;justify-content:flex-end}
    .notif-inline-btn{min-height:44px;padding:8px 12px}
    #notification-drawer{top:auto;left:0;right:0;bottom:0;width:100%!important;max-width:100vw!important;height:min(85dvh,680px);border-left:none;border-top:1px solid var(--border,#cde0de);border-radius:18px 18px 0 0;transform:translateY(105%);padding-bottom:env(safe-area-inset-bottom,0px);box-sizing:border-box}
    #notification-drawer.open{transform:translateY(0)}
    #notification-drawer .notif-drawer-handle{display:block}
    #notification-drawer-close,#notification-mark-all-btn,#notification-settings-btn,.notif-tab-btn,.notif-card-cta,.notif-card-secondary,.notif-card-ghost{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
    #notification-drawer-close{min-width:44px}
}
#optimal-sign-in-dialog[data-keyboard-open="true"] .cloud-sign-in-inline{padding:8px 14px 12px;overflow-y:auto;-webkit-overflow-scrolling:touch}
#optimal-sign-in-dialog[data-keyboard-open="true"] .cloud-sign-in-inline form{gap:8px}
#optimal-sign-in-dialog[data-keyboard-open="true"] .cloud-sign-in-inline>form>p:first-of-type{font-size:12px;line-height:1.3}
#optimal-sign-in-dialog[data-keyboard-open="true"] .cloud-sign-in-inline label{gap:4px}
#optimal-sign-in-dialog[data-keyboard-open="true"] .cloud-sign-in-inline .cloud-sign-in-password-label{margin-bottom:-5px}
@media(max-height:520px){
    .cloud-sign-in-inline{padding:8px 14px 12px;overflow-y:auto;-webkit-overflow-scrolling:touch}
    :is(.cloud-sign-in-dialog,.cloud-sign-in-inline) form{gap:8px}
    :is(.cloud-sign-in-dialog,.cloud-sign-in-inline)>form>p:first-of-type{font-size:12px;line-height:1.3}
    :is(.cloud-sign-in-dialog,.cloud-sign-in-inline) label{gap:4px}
    :is(.cloud-sign-in-dialog,.cloud-sign-in-inline) .cloud-sign-in-password-label{margin-bottom:-5px}
    .cloud-sign-in-dialog{padding:14px 16px;max-height:calc(100dvh - 16px);overflow-y:auto}
    .cloud-sign-in-dialog .cloud-sign-in-brand img{display:none}
    .cloud-sign-in-dialog .cloud-sign-in-brand h2{font-size:16px}
    #provider-modal-card .pm-left{padding:8px 14px!important}
    #provider-modal-card .pm-left-badges,#provider-modal-card .pm-footer{display:none!important}
    #provider-modal-card .pm-done-btn{position:static!important;margin-top:8px;padding:8px 0}
}
