/* V8.6.19 — presentation layer only. Existing controls and contract rules retained. */
html:root{--bg:#f3f6fa;--panel:#fff;--panel2:#f3f6fa;--text:#162238;--muted:#5b6b80;--line:#dce4ee;--blue:#2358c1;--green:#087f70;--gold:#9a6017;--shadow:0 2px 6px #17283c06;--radius:14px}
html[data-theme=dark]{--bg:#101a29;--panel:#182538;--panel2:#202f44;--text:#edf3fb;--muted:#b5c3d5;--line:#33465f;--blue:#a1bfff;--green:#71dfbd;--gold:#f6c87f}
html body,html .app-shell,html .main{background:var(--bg)!important;background-image:none!important;color:var(--text)!important}
html body .page::before,html body .page::after,html body .main::before,html body .main::after{display:none!important;content:none!important;background:none!important}
html body .page{background:none!important;background-image:none!important}
html body .sidebar{background:var(--panel)!important;padding:20px 14px!important;border-right:1px solid var(--line)!important}
html body .sidebar .brand{padding:0 8px 18px!important;gap:10px!important}
html body .sidebar .brand b{font-size:17px!important;letter-spacing:.055em!important;color:var(--text)!important}
html body .sidebar .brand small{font-size:11px!important;color:var(--muted)!important}
html body .sidebar .side-nav.new-look-nav button{padding:10px 12px!important;gap:12px!important;min-height:48px!important;font-size:13px!important;border-radius:10px!important;text-align:left!important}
html body .sidebar .side-nav.new-look-nav button.active{background:#2358c1!important;color:#fff!important;border-color:transparent!important}
html body .sidebar .side-nav.new-look-nav button.active i{background:#ffffff24!important;color:white!important}
html body .sidebar .side-nav.new-look-nav button[hidden]{display:none!important}
html body .topbar.card{border-radius:14px!important;padding:12px 16px!important;min-height:70px!important;box-shadow:0 2px 5px #14284608!important}
html body .page-title{margin:24px 0 20px!important;padding:0!important}
html body .page-title h2{font-size:clamp(26px,3vw,36px)!important;font-weight:700!important;letter-spacing:-.035em!important;color:var(--text)!important}
html body .eyebrow{font-size:10px!important;letter-spacing:.12em!important;color:var(--blue)!important;font-weight:700!important}
html body .page .card,html body .page .metric-card,html body .page .r7-dash-card,html body .page .paired-v5-card{background:var(--panel)!important;background-image:none!important;color:var(--text)!important;border:1px solid var(--line)!important;box-shadow:var(--shadow)!important;border-radius:14px!important;backdrop-filter:none!important}
html body .page .paired-v5-card::before,html body .page .paired-v5-card::after{background-image:none!important;pointer-events:none}
html body #page-dashboard .dashboard-primary-grid{gap:12px!important;margin-bottom:14px!important}
html body #page-dashboard .dashboard-primary-grid .r7-dash-card{position:relative;padding:20px!important;min-height:140px!important;border:1px solid var(--line)!important;gap:9px!important;overflow:hidden!important}
html body #page-dashboard .dashboard-primary-grid .r7-dash-card>span{font-size:11px!important;letter-spacing:.055em!important;color:var(--muted)!important;line-height:1.35!important}
html body #page-dashboard .dashboard-primary-grid .r7-dash-card>b{font-size:clamp(18px,2.5vw,30px)!important;font-variant-numeric:tabular-nums;letter-spacing:-.035em!important;overflow-wrap:anywhere!important;max-width:100%;font-weight:700!important}
html body #page-dashboard .dashboard-primary-grid .r7-dash-card>small{font-size:11px!important;line-height:1.4!important}
html body #page-dashboard .dashboard-primary-grid .r7-dash-card[data-pending=true]>b{font-size:15px!important;letter-spacing:0!important;color:var(--muted)!important}
html body .page .metric-card>span,html body .page .summary-combo-row small,html body .page .summary-matrix-row small{font-size:12px!important;color:var(--muted)!important}
html body .page .card h3{font-size:18px!important;color:var(--text)!important}
html body .page .card small,html body .page .panel-subtext{line-height:1.5!important}
html body .page .primary:not(:disabled){background:#2358c1!important;background-image:none!important;color:white!important;border:1px solid #2358c1!important;box-shadow:none!important}
html body .page .secondary:not(:disabled),html body .page .ghost:not(:disabled){background:var(--panel)!important;background-image:none!important;color:var(--blue)!important;border:1px solid var(--line)!important;box-shadow:none!important}
html body .page button{transition:background-color .14s,color .14s,border-color .14s!important;transform:none!important}
html body .page button:focus-visible,html body .sidebar button:focus-visible,html body .topbar button:focus-visible{outline:3px solid #79a9ff!important;outline-offset:2px!important}
html body .page button:disabled{cursor:not-allowed!important;opacity:.55!important}
html body .page .history-filter-tabs{gap:7px!important;flex-wrap:wrap!important}
html body .page .history-filter-tabs button{min-height:38px!important;background:var(--panel2)!important;color:var(--muted)!important;border:1px solid var(--line)!important;border-radius:8px!important;box-shadow:none!important;font-size:11px!important;white-space:normal!important}
html body .page .history-filter-tabs button.active{background:#2358c1!important;color:#fff!important;border-color:#2358c1!important}
html body .page .history-selection{background:var(--panel2)!important;border:1px solid var(--line)!important}
html body .page .history-row{padding:14px!important;gap:12px!important;min-width:0!important}
html body .page .history-row strong{font-variant-numeric:tabular-nums;overflow-wrap:anywhere!important;max-width:45%;text-align:right!important}
html body .page .simple-income-row{padding:12px 8px!important;gap:8px!important;min-width:0!important}
html body .page .simple-income-row span{overflow-wrap:anywhere!important;font-variant-numeric:tabular-nums}
html body .page .premium-empty{background:var(--panel2)!important;color:var(--muted)!important;border:1px dashed var(--line)!important;padding:24px!important;line-height:1.6!important}
html body .page .simple-dashboard-status{font-size:12px!important;gap:12px!important;flex-wrap:wrap!important}
@media(max-width:600px){html body .topbar.card{padding:8px!important;min-height:58px!important}html body .page-title{margin:18px 0 14px!important}html body #page-dashboard .dashboard-primary-grid{gap:8px!important}html body #page-dashboard .dashboard-primary-grid .r7-dash-card{padding:12px!important;min-height:128px!important;gap:6px!important}html body #page-dashboard .dashboard-primary-grid .r7-dash-card>b{font-size:18px!important}html body #page-dashboard .dashboard-primary-grid .r7-dash-card>span{font-size:10px!important}html body #page-dashboard .dashboard-primary-grid .r7-dash-card>small{font-size:10px!important}html body .page .card h3{font-size:16px!important}html body .page .simple-income-row{font-size:11px!important;padding:10px 4px!important}html body .page .history-row{padding:10px!important}}
@media(prefers-reduced-motion:reduce){html body *{transition:none!important;animation:none!important}}
@media(max-width:600px){html body .topbar .ticker-label-row{gap:4px!important;justify-content:flex-start!important}html body .topbar .ticker-label-row span{font-size:9px!important;letter-spacing:0!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important}html body .topbar .ticker-card{min-width:128px!important}html body .topbar .ticker-card .price-state{font-size:8px!important;padding:2px 4px!important}}
