/* Keep the dashboard for scanning; explanations live in an accessible dialog. */
html[data-sidaps-theme] body .app-header .brand .logo{display:grid!important;width:30px!important;height:30px!important;min-width:30px;padding:3px!important;box-sizing:border-box;background:var(--sp-raised)!important;border:1px solid var(--sp-border)!important;border-radius:9px!important}
html[data-sidaps-theme] body .app-header .brand{gap:8px!important;align-items:center}
html[data-sidaps-theme] body .app-header .brand .logo svg{width:100%;height:100%}
html[data-sidaps-theme] body .cloud-sync.ok{display:none!important}
.dashboard-refined .trader-greeting{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 16px!important}
html[data-sidaps-theme] body .dashboard-refined .trader-greeting h2{font-size:clamp(17px,2vw,22px)!important;margin:0!important}
.market-status-chip{flex-shrink:0;border:1px solid var(--sp-border);background:var(--sp-raised);color:var(--gold);padding:8px 11px;min-height:40px;border-radius:20px;font-size:12px;cursor:pointer}
.market-status-chip:before{content:'●';font-size:8px;margin-right:6px}
html[data-sidaps-theme] body .dashboard-refined .overview-eyebrow,html[data-sidaps-theme] body .dashboard-refined .insight-heading p,html[data-sidaps-theme] body .dashboard-refined .chart-note{display:none!important}
html[data-sidaps-theme] body .dashboard-refined .overview-heading{margin-bottom:16px!important;align-items:center}
html[data-sidaps-theme] body .dashboard-refined .overview-heading h2{font-size:clamp(19px,2vw,24px)!important;margin:0!important}
html[data-sidaps-theme] body .dashboard-refined .overview-grid .overview-stat{min-height:110px!important;padding:15px!important;display:flex;flex-direction:column;justify-content:space-between;gap:14px}
html[data-sidaps-theme] body .dashboard-refined .overview-grid .metric{margin:0!important}
.realized-details{border-top:1px solid var(--sp-border);margin-top:16px;padding-top:4px}
.realized-details>summary{display:flex;align-items:center;gap:12px;justify-content:space-between;min-height:44px;cursor:pointer;font-size:13px;color:var(--sp-muted);list-style:none}
.realized-details>summary:after{content:'⌄';color:var(--gold)}
.realized-details[open]>summary:after{content:'⌃'}
.realized-details>summary strong{margin-left:auto;font-variant-numeric:tabular-nums;white-space:nowrap}
html[data-sidaps-theme] body .realized-details .sale-summary{margin:4px 0 12px!important;box-shadow:none!important}
.portfolio-info-button{display:inline-flex;align-items:center;justify-content:center;gap:6px}
html[data-sidaps-theme] body .portfolio-info-dialog{position:fixed;inset:0;width:min(620px,calc(100% - 28px));max-width:calc(100% - 28px);max-height:85dvh;margin:auto;padding:0;border:1px solid var(--sp-border);border-radius:20px;background:var(--sp-surface);color:var(--sp-text);box-shadow:0 24px 90px #0006;box-sizing:border-box;overflow:auto;overscroll-behavior:contain}
.portfolio-info-dialog::backdrop{background:#020c08b8;backdrop-filter:blur(4px)}
.portfolio-info-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 20px;position:sticky;top:0;background:var(--sp-surface);border-bottom:1px solid var(--sp-border);z-index:1}
.portfolio-info-heading h2{font-size:19px!important;margin:0}
.portfolio-info-heading button{width:44px;height:44px;min-width:44px;font-size:26px;border:1px solid var(--sp-border);background:var(--sp-raised);color:var(--sp-text);border-radius:10px;cursor:pointer}
.portfolio-info-content{padding:0 20px 20px}.portfolio-info-content>section{padding:16px 0;border-bottom:1px solid var(--sp-border)}.portfolio-info-content>section:last-child{border:0}
.portfolio-info-content h3{font-size:15px!important;color:var(--gold);margin:0 0 10px}.portfolio-info-content p{margin:7px 0}.portfolio-info-content .overview-stat-bottom{display:flex;justify-content:space-between}.portfolio-info-content .dashboard-market-notice{margin:0!important}.portfolio-info-content .notice{margin:0!important}.portfolio-info-content .card{margin:0!important}.portfolio-info-content input{min-width:0!important}
html:has(.portfolio-info-dialog[open]){overflow:hidden}
@media(max-width:600px){.dashboard-refined .trader-greeting{align-items:flex-start;flex-direction:column;gap:7px;margin-bottom:12px!important}.market-status-chip{min-height:36px;padding:6px 10px;font-size:11px}.portfolio-info-button{width:44px;padding:0!important;flex:0 0 44px}.portfolio-info-button span:first-child{font-size:20px}.portfolio-info-button span:last-child{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}html[data-sidaps-theme] body .dashboard-refined .overview-grid .overview-stat{min-height:100px!important;padding:12px!important}.portfolio-info-heading{padding:12px 14px}.portfolio-info-content{padding:0 14px 14px}}
@media(max-width:430px){html[data-sidaps-theme] body .app-header .header-profile-copy{display:none!important}html[data-sidaps-theme] body .app-header .brand h1{font-size:14px!important}html[data-sidaps-theme] body .app-header .brand .logo{width:27px!important;height:27px!important;min-width:27px}.realized-details>summary{font-size:12px}}
