:root{color-scheme:light;--bg:#f5f6f8;--surface:#fff;--surface-2:#f0f2f5;--ink:#20232b;--muted:#747b8b;--line:#e8eaf0;--accent:#7955d9;--accent-soft:#f0eafa;--lime:#cbf36d;--green:#258359;--danger:#c65064;--shadow:0 4px 24px #20253504}
:root[data-theme="dark"]{color-scheme:dark;--bg:#111216;--surface:#1c1e25;--surface-2:#272a34;--ink:#f0f1f6;--muted:#a3a9ba;--line:#303440;--accent:#b699ff;--accent-soft:#302944;--green:#9bd6ad;--danger:#f19ba9;--shadow:none}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:24px}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.5 Haas,'Helvetica Neue',Arial,sans-serif;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a,select{touch-action:manipulation}button,a{cursor:pointer}button{transition:background .16s,color .16s,transform .16s}button:active{transform:translateY(1px)}button:disabled{opacity:.5;cursor:default}a{color:var(--accent)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #ac8df0;outline-offset:3px}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1,h2,h3,.stat strong,.brand{font-family:TinkoffSans,Haas,Arial,sans-serif;letter-spacing:-.025em;font-weight:500}h1{font-size:34px;line-height:1.15}h2{font-size:20px;line-height:1.3}h3{font-size:17px;margin:24px 0 14px}p{color:var(--muted);line-height:1.65}small{line-height:1.4}
aside{position:fixed;inset:0 auto 0 0;width:236px;display:flex;flex-direction:column;padding:30px 16px 20px;background:var(--surface);border-right:1px solid var(--line);z-index:20}
.brand{display:flex;align-items:center;gap:10px;padding:0 12px;color:var(--ink);text-decoration:none;font-size:29px;line-height:1}.brand small{display:block;font-family:Haas,Arial,sans-serif;font-size:9px;letter-spacing:2.4px;color:var(--muted);margin:8px 0 0}.priliv-mark{display:block;width:44px;height:40px;object-fit:contain;background:#fff;padding:3px;border-radius:10px;flex-shrink:0}
aside>small{font-size:10px;letter-spacing:1.4px;color:var(--muted);margin:42px 14px 14px}nav{display:grid;gap:7px}nav button{display:flex;align-items:center;gap:11px;min-height:48px;padding:12px 14px;border:0;border-radius:12px;background:transparent;color:var(--muted);font-size:21px;text-align:left}nav button span{font-size:14px;line-height:1.3}nav button:hover{background:var(--surface-2)}nav button.active{background:var(--accent-soft);color:var(--accent)}
.aside-bottom{margin-top:auto;border:1px solid var(--line);border-radius:14px;padding:16px;font-size:11px;color:var(--muted)}.aside-bottom p{font-size:11px;margin-top:7px}.live-dot{display:inline-block;width:6px;height:6px;background:var(--green);border-radius:50%;margin-right:5px;flex-shrink:0}
main{margin-left:236px;min-width:0}header{height:80px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 36px;border-bottom:1px solid var(--line)}.breadcrumb{font-size:12px;color:var(--muted);min-width:0}.breadcrumb span{margin:0 12px}.breadcrumb b{font-weight:500;color:var(--ink)}.header-right{display:flex;align-items:center;gap:10px;flex-shrink:0}.chip{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:8px;padding:7px 10px;font-size:11px;color:var(--muted);background:var(--surface);max-width:100%;line-height:1.4}.avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--accent-soft);color:var(--accent);font-weight:500}.content{max-width:1640px;margin:0 auto;padding:34px 36px 60px;min-width:0}.page-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}.eyebrow{font-size:10px;letter-spacing:1.7px;color:var(--accent);font-weight:500;margin-bottom:10px}#subtitle{font-size:14px;margin-top:10px}.actions{display:flex;gap:10px;flex-shrink:0}
.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;border-radius:12px;padding:11px 17px;border:1px solid var(--line);font-size:14px;line-height:1.4;font-weight:500;white-space:nowrap}.primary{background:var(--accent);color:#fff;border-color:transparent}.primary:hover{filter:brightness(1.07)}[data-theme="dark"] .primary{color:#17121f}.secondary{background:var(--surface);color:var(--ink)}.secondary:hover{background:var(--surface-2)}#theme-toggle{display:inline-flex}
.portfolio-scope{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:12px}.portfolio-scope label{display:block;font-size:12px;margin:0}.portfolio-scope select{width:min(100%,370px);font-size:14px}.portfolio-scope #account-summary{color:var(--muted);font-size:12px}.sync-line{display:flex;align-items:center;flex-wrap:wrap;gap:5px;font-size:11px;color:var(--muted);margin-bottom:22px}.view-tabs{display:flex;gap:28px;overflow:auto;border-bottom:1px solid var(--line);margin-bottom:25px;scrollbar-width:none}.view-tabs button{border:0;border-bottom:3px solid transparent;background:none;color:var(--muted);padding:13px 0;font-size:14px;white-space:nowrap}.view-tabs button.active{color:var(--ink);border-bottom-color:var(--accent)}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.stat{background:var(--surface);border:1px solid var(--line);padding:23px;border-radius:20px;min-width:0;box-shadow:var(--shadow)}.stat>div:first-child{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px;line-height:1.4}.metric-icon{display:grid;place-items:center;width:28px;height:28px;flex-shrink:0;background:var(--accent-soft);border-radius:9px;color:var(--accent);font-size:18px}.stat strong{display:block;font-size:clamp(23px,2.3vw,36px);line-height:1.2;margin:18px 0 8px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.stat p{font-size:11px}.stat>.muted{display:block;font-size:11px;margin-top:8px}.stat.hero{background:linear-gradient(125deg,#30254b,#594077);border-color:transparent;color:#fff}.stat.hero>div:first-child,.stat.hero p{color:#ddd2ed}.stat.hero .metric-icon{background:#ffffff19;color:#ddd2ff}.pill,.tag{display:inline-flex;align-items:center;border-radius:6px;padding:4px 7px;font-size:11px;background:#eaf5ed;color:#2f794e}.pill{margin-top:8px}.positive{color:var(--green)}.negative,.delete,#form-error{color:var(--danger)}.muted{color:var(--muted)}.tag.forecast{background:#fff1d8;color:#86652f}[data-theme="dark"] .tag,[data-theme="dark"] .pill{background:#273c30;color:#afdbb7}[data-theme="dark"] .tag.forecast{background:#423721;color:#edd49a}
.panel{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:26px;margin-bottom:24px;box-shadow:var(--shadow)}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:22px}.panel-head p{font-size:12px;margin-top:6px}.text-button{border:0;background:none;color:var(--accent);padding:7px 0;font-size:13px;white-space:nowrap}.grid-two{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:24px}.grid-two>.panel{height:calc(100% - 24px)}.connect-banner{display:flex;justify-content:space-between;align-items:center;gap:24px;background:var(--accent-soft);padding:27px;border:1px solid var(--line);border-radius:20px;margin-bottom:24px}.connect-banner p{font-size:14px;margin-top:8px}.connect-banner h2{font-size:23px}.chart{display:flex;align-items:flex-end;gap:10px;height:210px;border-bottom:1px solid var(--line);padding-top:16px}.bar-group{flex:1;min-width:0;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:5px}.bar-group svg{height:175px;width:100%;overflow:visible}.bar-group svg .announced{fill:#a881f4}.bar-group svg .predicted{fill:#d7c5f7}.bar-label{font-size:10px;color:var(--muted);transform:translateY(23px);margin-top:-15px}.legend{display:flex;align-items:center;flex-wrap:wrap;gap:7px;color:var(--muted);font-size:11px;margin-top:33px}.legend i{height:8px;width:8px;border-radius:3px;display:inline-block}.solid{background:#a881f4}.light{background:#d7c5f7;margin-left:12px}.allocation-content{display:flex;align-items:center;justify-content:center;gap:18px;min-height:220px}.donut{width:160px;height:160px;flex-shrink:0}.donut-number{fill:var(--ink);font-size:28px;font-weight:500}.donut-label{fill:var(--muted);font-size:12px}.donut>circle:first-child{stroke:var(--surface-2)}.allocation-list{flex:1;min-width:0}.allocation-row{display:grid;grid-template-columns:9px minmax(0,1fr) auto;gap:8px;align-items:center;font-size:12px;margin:15px 0}.allocation-row b{font-weight:500}.allocation-row small{grid-column:2/-1;color:var(--muted);font-size:11px}
.table-wrap{overflow-x:auto;overscroll-behavior-inline:contain;max-width:100%;scrollbar-width:thin}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap;font-variant-numeric:tabular-nums}th{font-size:11px;font-weight:400;color:var(--muted);padding:12px;border-bottom:1px solid var(--line)}td{font-size:13px;padding:17px 12px;border-bottom:1px solid var(--line)}tr:last-child td{border-bottom:0}td small{display:block;color:var(--muted);font-size:11px;margin-top:4px}td b{font-weight:500}.ticker-icon{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;width:35px;height:35px;margin-right:10px;border-radius:11px;background:var(--accent-soft);color:var(--accent);font-weight:500}.asset-name{display:inline-block;vertical-align:middle}.asset-name b{white-space:normal}.count{display:inline-flex;align-items:center;justify-content:center;background:var(--surface-2);color:var(--muted);font:12px Haas,Arial,sans-serif;min-width:23px;height:23px;border-radius:7px;margin-left:5px}.delete{background:none;border:0;padding:8px;font-size:12px}.amount{font-variant-numeric:tabular-nums}
.performance-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin:0 0 24px}.performance-metrics>div{min-width:0;background:var(--surface-2);padding:19px;border-radius:14px}.performance-metrics small{display:block;color:var(--muted);font-size:12px}.performance-metrics strong{display:block;font-size:27px;font-weight:500;margin-top:9px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.income-currency{display:grid;grid-template-columns:55px repeat(4,minmax(0,1fr));gap:16px;align-items:center;border-top:1px solid var(--line);padding:18px 0}.income-currency small{display:block;color:var(--muted);font-size:11px}.income-currency b{display:block;font-size:13px;font-weight:500;margin-top:5px;overflow-wrap:anywhere}.history-warning{background:#fff4db;color:#806032;padding:14px 17px;border-radius:12px;font-size:12px;line-height:1.6}
input,select,textarea{max-width:100%;min-width:0;min-height:44px;border:1px solid var(--line);border-radius:11px;padding:10px 12px;color:var(--ink);background:var(--surface);font-size:14px}input::placeholder{color:var(--muted)}label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:var(--muted);margin-bottom:16px}label input,label select{width:100%}.toolbar{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:20px}.toolbar input{flex:1;min-width:200px}.toolbar select{min-width:160px}.history-filters{display:grid;grid-template-columns:minmax(180px,1.6fr) minmax(140px,1fr) minmax(125px,.8fr) minmax(125px,.8fr);gap:12px;align-items:end;margin:20px 0}.history-filters label{margin:0}.history-filters>input,.history-filters>select{width:100%}.history-paging{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:22px;font-size:12px;color:var(--muted)}#operations-table td:nth-child(3){white-space:normal;min-width:200px;max-width:330px}
#notice,#warnings,#demo-banner{border-radius:12px;padding:14px 17px;margin-bottom:20px;background:var(--accent-soft);color:var(--accent);font-size:13px;line-height:1.6}#warnings{background:#fff4db;color:#806032}#demo-banner{display:flex;align-items:center;justify-content:space-between;gap:14px}#exit-demo{border:0;background:none;color:inherit;padding:6px 0;font-size:12px}.footnote{font-size:12px;line-height:1.8;margin:16px 0}.empty{text-align:center;padding:35px 14px;color:var(--muted)}.empty strong{display:block;color:var(--ink);font-size:18px;font-weight:500;margin-bottom:10px}.empty p{font-size:13px;max-width:430px;margin:auto}
.connection,.methodology{max-width:900px}.connection h2{font-size:28px}.connection p{font-size:14px}.connection ol{padding-left:20px;color:var(--muted);font-size:14px;line-height:1.8}.connection li{margin:17px 0}.broker-logo{display:grid;place-items:center;width:55px;height:55px;border-radius:15px;background:#ffdc2c;color:#222;font-size:28px;font-weight:700;margin-bottom:22px}.info-box{border:1px solid var(--line);background:var(--surface-2);padding:18px;border-radius:12px;margin:22px 0;font-size:13px;color:var(--muted)}.methodology p{font-size:13px;margin:17px 0}.methodology b{font-weight:500;color:var(--ink)}
dialog{color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:24px;width:min(600px,calc(100vw - 28px));padding:28px;max-height:90dvh;box-shadow:0 24px 100px #0003}dialog::backdrop{background:#10131c88;backdrop-filter:blur(5px)}.modal-head{display:flex;justify-content:space-between;gap:16px;margin-bottom:25px}.modal-head h2{font-size:26px}.modal-head button{display:grid;place-items:center;border:0;border-radius:50%;width:34px;height:34px;background:var(--surface-2);color:var(--muted);font-size:24px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.wide{width:100%}#form-error{font-size:13px;margin:12px 0}progress{width:100%;height:7px;accent-color:var(--accent)}
@media(min-width:1700px){.content{padding-top:42px}.stat strong{font-size:38px}.stat{padding:28px}}
@media(max-width:1250px){aside{width:208px;padding:26px 12px}main{margin-left:208px}header{padding:0 24px}.content{padding:28px 24px 48px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stat strong{font-size:32px}.grid-two{grid-template-columns:minmax(0,1fr)}.grid-two>.panel{height:auto}.allocation-content{max-width:650px;margin:auto}.header-right>.chip{display:none}.history-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.performance-metrics strong{font-size:24px}}
@media(max-width:900px){aside{position:static;width:100%;height:auto;padding:20px 24px;display:block;border-right:0;border-bottom:1px solid var(--line)}aside>small,.aside-bottom{display:none}.brand{width:max-content;padding:0}nav{display:flex;gap:6px;margin-top:20px}nav button{flex:1;justify-content:center;padding:10px 8px;font-size:19px;min-width:0}nav button span{font-size:12px}main{margin:0}header{height:68px}.content{padding-top:26px}.page-title{align-items:flex-start}h1{font-size:30px}.actions{flex-direction:column}.header-right .chip{display:none}.stats{gap:14px}.grid-two{gap:0}.performance-panel .panel-head{flex-wrap:wrap}}
@media(max-width:600px){
aside{padding:18px 18px 16px}.brand{font-size:27px}.brand small{font-size:8px}.priliv-mark{width:40px;height:36px}
nav{position:fixed;bottom:0;left:0;right:0;z-index:40;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;margin:0;padding:7px 5px max(8px,env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line);box-shadow:0 -5px 24px #00000006}
nav button{display:flex;flex-direction:column;gap:3px;padding:5px 1px;min-height:53px;font-size:20px;border-radius:10px;text-align:center;line-height:1.2}nav button span{font-size:9px;line-height:1.2;max-width:75px}header{padding:0 18px;height:62px}.breadcrumb{font-size:11px}.breadcrumb span,.breadcrumb b{display:none}.header-right{gap:8px}.header-right .secondary{font-size:11px;min-height:36px;padding:8px 10px;border-radius:9px}.avatar{display:none}
.content{padding:22px 16px 108px}.page-title{display:block;margin-bottom:24px}.eyebrow{font-size:9px;margin-bottom:9px}h1{font-size:29px}#subtitle{font-size:13px;max-width:360px}.actions{flex-direction:row;display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:20px;width:100%}.actions button{font-size:12px;padding:11px 7px;min-width:0}.portfolio-scope{gap:8px}.portfolio-scope label{font-size:11px}.portfolio-scope select{width:100%}.portfolio-scope #account-summary{font-size:11px}.sync-line{font-size:10px;line-height:1.6}.view-tabs{gap:25px;margin:20px 0}.view-tabs button{font-size:13px;padding:10px 0}
.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:18px}.stat{padding:16px 13px;border-radius:16px}.stat.hero{grid-column:1/-1;padding:22px}.stat.hero strong{font-size:38px}.stat>div:first-child{font-size:11px;gap:6px;align-items:flex-start}.metric-icon{width:23px;height:23px;font-size:15px;border-radius:7px}.stat strong{font-size:clamp(22px,5.5vw,30px);margin:14px 0 7px}.stat p,.stat>.muted{font-size:10px}.stat:last-child{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;column-gap:12px;align-items:center}.stat:last-child>div{grid-column:1;grid-row:1}.stat:last-child strong{grid-column:2;grid-row:1;margin:0;text-align:right;font-size:27px}.stat:last-child p{grid-column:1;grid-row:2}.stat:last-child .muted{grid-column:2;grid-row:2;text-align:right;margin-top:0}
.panel{padding:20px 16px;border-radius:17px;margin-bottom:18px}.panel-head{gap:12px;flex-wrap:wrap;margin-bottom:18px}h2{font-size:19px}.panel-head p{font-size:11px}.panel-head>.chip{font-size:10px}.text-button{font-size:12px}.performance-metrics{grid-template-columns:1fr;gap:9px;margin-bottom:18px}.performance-metrics>div{padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:15px}.performance-metrics small{font-size:12px}.performance-metrics strong{font-size:24px;margin:0;text-align:right}.income-currency{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;padding:18px 0}.income-currency>.chip{grid-column:1/-1;justify-self:start}.income-currency small{font-size:10px}.income-currency b{font-size:13px}
.connect-banner{padding:22px 18px;display:block;border-radius:17px;margin-bottom:18px}.connect-banner h2{font-size:22px}.connect-banner p{font-size:13px}.connect-banner button{margin-top:18px;width:100%}.allocation-content{gap:18px;min-height:180px}.donut{width:135px;height:135px}.allocation-row{font-size:11px;gap:6px}.allocation-row small{font-size:10px}.chart{height:190px;gap:4px}.bar-group svg{height:155px}.bar-label{font-size:9px}.legend{font-size:10px;line-height:1.6}
.toolbar{display:grid;grid-template-columns:1fr 1fr;gap:9px}.toolbar input{width:100%;min-width:0;grid-column:1/-1}.toolbar select{min-width:0;width:100%}.history-filters{grid-template-columns:1fr 1fr;gap:11px}.history-filters>input,.history-filters>select{grid-column:1/-1}.history-filters label{font-size:11px}.history-paging{font-size:11px;gap:6px}.history-paging button{font-size:12px;padding:9px 12px;min-height:40px}
.table-wrap{margin:0;max-width:100%}table{white-space:normal}table[data-responsive] thead{display:none}table[data-responsive] tbody{display:block}table[data-responsive] tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;padding:18px 0;border-bottom:1px solid var(--line)}table[data-responsive] tr:last-child{border-bottom:0}table[data-responsive] td{display:block;min-width:0;max-width:none!important;width:auto!important;padding:0;border:0;font-size:13px;overflow-wrap:anywhere}table[data-responsive] td::before{content:attr(data-label);display:block;color:var(--muted);font-size:10px;margin-bottom:5px}table[data-responsive] td:first-child{grid-column:1/-1;font-size:14px}table[data-responsive] td:first-child::before{display:none}table[data-responsive] td small{font-size:11px;line-height:1.6}.ticker-icon{width:32px;height:32px}.asset-name{max-width:calc(100% - 48px)}#operations-table td:nth-child(3){min-width:0}
#demo-banner{align-items:flex-start;flex-direction:column;font-size:12px;gap:6px}#notice,#warnings{font-size:12px;padding:13px}.footnote,.methodology p{font-size:11px}.connection h2{font-size:25px}.connection p,.connection ol{font-size:13px}.connection ol{padding-left:18px}.form-grid{gap:0 12px}dialog{padding:22px}.modal-head h2{font-size:24px}.modal-head .eyebrow{font-size:8px}
}
@media(max-width:360px){.allocation-content{flex-direction:column;gap:6px}.allocation-list{width:100%}.stat strong{font-size:21px}.form-grid{grid-template-columns:1fr}.header-right .secondary{font-size:10px}.content{padding-inline:12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}}

@media(max-width:600px){nav button span{font-size:0;max-width:none}nav button span::after{content:attr(data-short);font-size:10px}.view-tabs{display:none}.stats{margin-top:24px}}

@media(max-width:600px){.history-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.history-filters label{min-width:0}.history-filters label input{font-size:12px;padding-inline:6px}}

/* Display preferences and clearer hierarchy. */
:root{--muted:#596273;--green:#207448;--danger:#b53850}
:root[data-theme="dark"]{--muted:#bac1d0;--green:#9bd6ad;--danger:#ffa5b5}
.display-settings{display:flex;gap:16px;align-items:center}.display-switch{display:flex;align-items:center;gap:9px;border:0;background:transparent;color:var(--ink);padding:8px 0;min-height:44px;font-size:13px;white-space:nowrap}
.display-switch i{position:relative;display:block;flex-shrink:0;width:36px;height:22px;border-radius:20px;background:var(--muted);transition:background .2s}.display-switch i::after{content:'';position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;transition:transform .2s}.display-switch[aria-checked="true"] i{background:var(--accent)}.display-switch[aria-checked="true"] i::after{transform:translateX(14px)}
.stat>div:first-child,.stat p,.stat>.muted,.panel-head p,.performance-metrics small,.income-currency small,.allocation-row small,th,td small,.footnote,.methodology p{font-size:13px;line-height:1.6}td{font-size:14px}.stat strong,.performance-metrics strong{font-weight:600}.pill,.tag{font-size:12px}
.stats{gap:18px}.stat{border-radius:24px;min-height:220px;display:flex;flex-direction:column;justify-content:center}.stat.hero{background:linear-gradient(125deg,#7650ce,#55369b);color:#fff;position:relative;overflow:hidden;border-color:transparent}.stat.hero::after{content:'';position:absolute;width:120px;height:120px;border:24px solid #ffffff12;border-radius:50%;right:-55px;bottom:-65px;pointer-events:none}.stat.hero p,.stat.hero>div:first-child{color:#f0e8ff}.stat.hero .metric-icon{background:#ffffff22;color:#fff}.stat:nth-child(2){background:var(--accent-soft)}.stat p{margin-top:auto;padding-top:15px}.stat strong{margin-top:20px}.performance-panel{background:var(--surface)}.panel{border-radius:24px}.performance-metrics>div{border:1px solid var(--line)}
@media(max-width:1100px){header{height:auto;min-height:76px;flex-wrap:wrap;gap:12px;padding-block:12px}.header-right{flex-wrap:wrap}.display-settings{gap:12px}}
@media(max-width:600px){header{align-items:flex-start}.breadcrumb{display:none}.header-right{width:100%;justify-content:space-between;gap:8px}.display-settings{width:100%;justify-content:space-between}.display-switch{font-size:14px}.stat{min-height:180px}.stat:last-child{display:block;min-height:160px}.stat:last-child strong,.stat:last-child .muted{text-align:left}.stat>div:first-child,.stat p,.stat>.muted,.panel-head p,.income-currency small,.allocation-row small,.footnote,.methodology p{font-size:12px}.sync-line{font-size:12px}table[data-responsive] td::before,table[data-responsive] td small{font-size:12px}}

/* Portfolio overview: composition alongside positions, then results and cashflow. */
.portfolio-grid{display:grid;grid-template-columns:minmax(280px,.78fr) minmax(0,1.65fr);gap:20px;align-items:stretch}.portfolio-grid>.panel{min-width:0}.portfolio-grid .allocation-content{flex-direction:column;gap:12px}.portfolio-grid .donut{width:210px;height:210px}.portfolio-grid .allocation-list{width:100%}.portfolio-grid .allocation-row{grid-template-columns:9px minmax(0,1fr) auto;margin:13px 0}.portfolio-grid .positions-panel .panel-head{flex-wrap:wrap}.portfolio-grid td{padding:16px 10px}.portfolio-grid th{font-weight:500}.forecast-grid>.panel{height:auto;min-width:0}.forecast-grid .chart{height:225px}.stats .stat{min-height:200px}.stats .stat strong{font-size:clamp(25px,2.2vw,38px);overflow-wrap:anywhere}.panel-head h2{font-weight:600}.stats .stat p{padding-top:12px}.stats .stat>div:first-child{font-weight:500}
@media(max-width:1350px){.portfolio-grid{grid-template-columns:1fr}.portfolio-grid .allocation-content{flex-direction:row;justify-content:center;gap:30px;max-width:650px;margin:auto}.portfolio-grid .allocation-list{width:auto}.portfolio-grid .donut{width:180px;height:180px}}
@media(max-width:600px){.stats .stat{min-height:165px}.stats .stat.hero{min-height:190px}.stats .stat strong{font-size:27px}.stats .stat.hero strong{font-size:36px}.portfolio-grid{gap:0}.portfolio-grid .allocation-content{gap:18px}.portfolio-grid .donut{width:140px;height:140px}.portfolio-grid td{padding:0}.portfolio-grid .allocation-row{font-size:12px}.panel{border-radius:20px}}

#upcoming table{white-space:normal}#upcoming thead{display:none}#upcoming tbody{display:block}#upcoming tr{display:grid;grid-template-columns:1fr 1fr;gap:10px 16px;border-bottom:1px solid var(--line);padding:15px 0}#upcoming tr:last-child{border-bottom:0}#upcoming td{display:block;padding:0;border:0;min-width:0;overflow-wrap:anywhere}#upcoming td:first-child{grid-column:1/-1}#upcoming td:nth-child(4),#upcoming td:last-child{text-align:right}#upcoming td small{white-space:normal}#upcoming td::before{display:none}

.return-cards .stat{min-height:175px;padding:22px;justify-content:flex-start}.return-cards .stat>div:first-child{display:flex;align-items:center;gap:7px;font-size:14px}.return-cards .stat strong{font-size:clamp(25px,2.1vw,34px);margin:16px 0 8px;line-height:1.2}.return-cards .stat p{margin:0;padding-top:4px;font-size:13px}.return-cards .stat>.muted{font-size:12px;margin-top:5px}.return-cards .stat .pill{align-self:flex-start;font-size:12px;margin-bottom:5px}.metric-help{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border:1px solid currentColor;border-radius:50%;font:11px/1 Arial;opacity:.8;cursor:help;margin-left:auto}.metric-help:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:600px){.return-cards .stat,.return-cards .stat:last-child{display:flex;min-height:185px;padding:17px 14px}.return-cards .stat.hero{grid-column:auto}.return-cards .stat:last-child{grid-column:auto}.return-cards .stat strong,.return-cards .stat.hero strong,.return-cards .stat:last-child strong{font-size:26px;margin:15px 0 8px;text-align:left}.return-cards .stat>div:first-child{font-size:12px}.return-cards .stat p,.return-cards .stat>.muted{font-size:12px}.return-cards .stat:last-child .muted{text-align:left}.return-cards .metric-icon{display:none}}

.metric-help{flex:0 0 20px;width:20px;height:20px;min-height:0;padding:0;background:transparent;color:inherit;opacity:1;font:12px/1 Arial,sans-serif;border:1px solid currentColor;cursor:pointer}.metric-help:hover,.metric-help[aria-expanded="true"]{background:var(--accent-soft);color:var(--accent)}.metric-tooltip{position:fixed;z-index:1000;width:320px;max-width:calc(100vw - 24px);padding:18px 20px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:14px;box-shadow:0 10px 40px #0003;font:14px/1.6 Haas,Arial,sans-serif;white-space:normal;overflow-wrap:break-word;max-height:calc(100dvh - 24px);overflow-y:auto}.metric-tooltip strong{display:block;font-size:14px;font-weight:600;margin-bottom:7px}.metric-tooltip p{margin:0;color:var(--muted);font-size:14px;line-height:1.65}

/* Compact portfolio navigation and a clear system typeface. */
:root{--font-ui:-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,Roboto,"Helvetica Neue",Arial,sans-serif}
body{font-family:var(--font-ui);font-size:14px;line-height:1.5}h1,h2,h3,.stat strong,.brand,.brand small,.count,.metric-tooltip{font-family:var(--font-ui)}h1,h2,h3{letter-spacing:-.02em;font-weight:600}.stat strong,.performance-metrics strong{font-variant-numeric:tabular-nums;letter-spacing:-.025em;font-weight:600}button,input,select{font-family:inherit}p{line-height:1.55}nav button span{font-weight:500}
header{height:66px;min-height:66px;padding:10px 28px;flex-wrap:nowrap;gap:16px}.breadcrumb{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}header .portfolio-scope{flex:1;min-width:170px;max-width:330px;margin:0;gap:0;flex-wrap:nowrap}header .portfolio-scope label,header #account-summary{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}header .portfolio-scope select{width:100%;min-height:38px;height:38px;padding:7px 30px 7px 12px;font-size:13px;font-weight:500;border-radius:9px;background:var(--surface-2)}.header-right{gap:18px}.header-right>.chip{display:none}.header-right #demo{font-size:12px;min-height:36px;padding:8px 12px}.display-switch{font-size:12px;min-height:36px}.display-settings{gap:16px}.content{padding-top:22px}.page-title{margin-bottom:8px;gap:14px;align-items:center}.page-title .eyebrow,#subtitle{display:none}h1{font-size:27px;line-height:1.25}.actions{flex-direction:row;gap:9px}.actions button{font-size:13px;min-height:38px;padding:8px 13px}.sync-line{font-size:12px;margin-bottom:12px;gap:6px}.view-tabs{margin:0 0 18px;gap:26px}.view-tabs button{padding:10px 0;font-size:13px}.return-cards .stat>div:first-child{font-size:13px}.return-cards .stat strong{font-size:clamp(24px,2vw,32px)}
@media(max-width:1100px){header .portfolio-scope{max-width:280px}.header-right{gap:10px}.header-right #demo{display:none}.display-settings{gap:12px}header{padding-inline:24px}.content{padding-top:20px}}
@media(max-width:600px){header{height:auto;min-height:0;display:flex;flex-wrap:wrap;padding:12px 16px;gap:8px}header .portfolio-scope{max-width:none;width:100%;flex-basis:100%}header .portfolio-scope select{font-size:13px;min-height:38px}.header-right{width:100%;gap:0}.display-settings{width:100%;justify-content:space-between;gap:10px}.display-switch{font-size:12px;min-height:30px}.display-switch i{width:32px;height:20px}.display-switch i::after{width:14px;height:14px}.display-switch[aria-checked="true"] i::after{transform:translateX(12px)}.header-right .avatar{display:none}.content{padding-top:16px}.page-title{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:8px}h1{font-size:23px}.actions{display:flex;width:auto;margin:0;gap:8px}.actions button{font-size:12px;padding:7px 10px;min-height:34px}.sync-line{font-size:11px;line-height:1.5;margin-bottom:12px}.return-cards{margin-top:14px}.return-cards .stat strong,.return-cards .stat.hero strong,.return-cards .stat:last-child strong{font-size:25px}}

.trend-panel .panel-head{align-items:center;margin-bottom:12px}.trend-periods,.trend-modes{display:flex;align-items:center;gap:4px;flex-wrap:wrap}.trend-periods{padding:4px;background:var(--surface-2);border-radius:10px}.trend-periods button,.trend-modes button{border:0;border-radius:7px;background:transparent;color:var(--muted);font-size:13px;padding:8px 12px;min-height:34px}.trend-periods button[aria-pressed="true"]{background:var(--surface);color:var(--ink);box-shadow:0 1px 4px #0001}.trend-modes button[aria-pressed="true"]{background:var(--accent-soft);color:var(--accent)}.trend-readout{display:flex;align-items:baseline;gap:16px;flex-wrap:wrap;margin:20px 0 8px}.trend-readout strong{font-size:25px;font-weight:600;font-variant-numeric:tabular-nums}.trend-readout span{font-size:12px;color:var(--muted)}.trend-svg{display:block;width:100%;height:auto;min-height:180px;overflow:visible;touch-action:pan-y}.trend-line{fill:none;stroke:var(--accent);stroke-width:2.5;stroke-linejoin:round;vector-effect:non-scaling-stroke}.trend-grid{stroke:var(--line);stroke-width:1}.trend-axis{fill:var(--muted);font:12px var(--font-ui)}.trend-dot{fill:var(--accent);stroke:var(--surface);stroke-width:2}.trend-guide{stroke:var(--accent);stroke-dasharray:4 5;opacity:.35}.trend-scrub-label{display:flex;flex-direction:row;align-items:center;gap:12px;font-size:12px;margin:6px 0}.trend-scrub{flex:1;min-height:28px;padding:0;accent-color:var(--accent)}.trend-data-note{font-size:12px;line-height:1.6}.trend-panel>.footnote{font-size:12px;margin-bottom:0}
@media(max-width:600px){.trend-panel .panel-head{display:block}.trend-periods{display:inline-flex;margin-top:12px}.trend-periods button,.trend-modes button{padding:7px 10px;font-size:12px}.trend-svg{min-height:150px}.trend-readout{gap:6px;display:block}.trend-readout span{display:block;margin-top:4px}.trend-scrub-label{font-size:11px}}

.trend-quality{margin-top:14px;color:var(--muted);font-size:12px;line-height:1.6}.trend-quality summary{cursor:pointer;color:var(--accent);padding:5px 0}.trend-quality p{font-size:12px;margin:10px 0;overflow-wrap:anywhere}
