:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;color:#20372a;background:#f7f9f6;font-synthesis:none;color-scheme:light}*{box-sizing:border-box}body{margin:0;min-width:320px}.skip-to-content{position:fixed;top:12px;left:12px;z-index:10000;padding:10px 14px;border-radius:9px;background:#fff;color:#244c35;font-weight:750;transform:translateY(-180%);text-decoration:none}.skip-to-content:focus-visible{transform:translateY(0);outline:3px solid #2d6946;outline-offset:2px}#mainContent:focus{outline:none}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #2d6946;outline-offset:2px}.hidden{display:none!important}svg{flex-shrink:0}.layout{display:grid;grid-template-columns:234px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;background:#fff;border-right:1px solid #e8eee8;padding:28px 18px;display:flex;flex-direction:column;gap:14px}.logo{display:flex;align-items:center;gap:10px;font-size:21px;color:#183b29;font-weight:820;letter-spacing:-.95px}.logo img{border-radius:10px}.logo-dot{color:#86ab91}.nav{display:grid;gap:7px;margin-top:25px}.nav button{width:100%;border:0;background:transparent;color:#4d6756;text-align:left;border-radius:11px;padding:13px 14px;display:flex;align-items:center;gap:12px;font-size:13px;font-weight:660}.nav button:hover{background:#f2f7f2}.nav button.active{background:#e9f2eb;color:#25573d}.nav svg{width:19px;height:19px}.sidebar-bottom{margin-top:auto;background:#f4f8f3;padding:15px;border-radius:13px;font-size:11px;font-weight:600;line-height:1.9;color:#345c43}.sidebar-bottom>span{font-weight:450;color:#4d6756}.local-dot{display:inline-block;background:#58a176;height:7px;width:7px;border-radius:50%;margin-right:6px}.workspace{min-width:0}.content{max-width:1390px;margin:0 auto;padding:38px 42px 100px}.mobile-header,.mobile-nav{display:none}.heading-row{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:24px}.kicker,.panel-kicker{font-size:10px;font-weight:800;letter-spacing:1.55px;color:#4d6756}.heading-row h1{font-size:31px;letter-spacing:-1px;margin:4px 0 0;font-weight:790}.btn{border-radius:11px;padding:11px 16px;font-size:12px;font-weight:760;display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid transparent;text-decoration:none;white-space:nowrap;min-height:39px}.btn.primary{background:#26563d;color:white}.btn.primary:hover{background:#173b2d}.btn.outline{background:#fff;color:#2f654a;border-color:#dce8df}.btn.outline:hover{background:#f3f8f3}.btn.light{background:#edf3ed;color:#486c54}.btn.danger{background:#fff3f1;color:#a23d38;border-color:#f2d7d3}.link-button{border:0;background:none;color:#2d6946;font-size:11px;font-weight:800;white-space:nowrap}.page{display:none}.page.active{display:block}.notice{padding:13px 16px;border:1px solid #efe2b7;background:#fff8e6;color:#7a6934;border-radius:11px;margin-bottom:16px;font-size:12px}.hero{background:linear-gradient(125deg,#20503a,#173b2d 76%);color:white;border-radius:22px;min-height:199px;position:relative;overflow:hidden;padding:32px 36px;display:flex;align-items:center}.hero-content{position:relative;z-index:1;max-width:78%}.hero-label{font-size:13px;font-weight:650;color:#cbe2d1}.total{font-size:clamp(32px,4.2vw,50px);font-weight:790;letter-spacing:-1.8px;margin:12px 0 7px;font-variant-numeric:tabular-nums}.hero-desc{font-size:12px;color:#c5d8c9}.hero-emblem{opacity:.16;position:absolute;top:50%;right:16px;width:232px;height:232px;color:#edf9f0;pointer-events:none;transform:translateY(-50%) rotate(9deg);transform-origin:center center}.hero-emblem svg{display:block;width:100%;height:100%}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:17px 0}.stat{background:#fff;border:1px solid #e8eee8;border-radius:15px;padding:19px;min-width:0}.stat-label{font-size:12px;font-weight:650;color:#4d6756}.stat-value{font-size:clamp(16px,1.75vw,24px);font-weight:775;letter-spacing:-.7px;margin-top:11px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.stat-hint{color:#4d6756;font-size:10px;margin-top:6px}.two-col{display:grid;grid-template-columns:minmax(0,1.32fr) minmax(0,1fr);gap:16px;margin-top:16px}.panel{border:1px solid #e8eee8;background:#fff;border-radius:17px;padding:24px;min-width:0}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:17px}.panel-head h2,.panel>h2,.dialog-head h2{font-size:17px;font-weight:760;letter-spacing:-.35px;margin:5px 0 0}.panel-head button{flex-shrink:0}.small-help{font-size:11px;color:#4d6756;line-height:1.65}.body-copy{font-size:12px;line-height:1.75;color:#4d6756;margin:5px 0 18px}.chart-area{height:231px;display:flex;align-items:center;justify-content:center;min-width:0}.chart-area.large{height:315px}.chart-area svg{display:block;width:100%;height:100%;overflow:visible}.chart-zero{text-align:center;line-height:1.7;font-size:12px;color:#4d6756;max-width:270px;margin:0 auto}.chart-caption{fill:#8fa397;font-size:10px}.allocation-layout{display:flex;align-items:center;justify-content:center;gap:25px;min-height:240px}.donut{width:159px;height:159px;border-radius:50%;display:grid;place-items:center;flex-shrink:0;background:#eff4ef}.donut-inner{width:109px;height:109px;background:white;border-radius:50%;display:grid;place-content:center;text-align:center;gap:5px}.donut-inner span{font-size:11px;color:#4d6756}.donut-inner strong{font-size:17px;letter-spacing:-.5px}.alloc-legend{display:grid;gap:13px;flex:1;min-width:120px}.alloc-legend-row{display:flex;justify-content:space-between;gap:9px;font-size:12px;color:#708070}.alloc-legend-row b{color:#244431;white-space:nowrap}.legend-left{display:flex;align-items:center;gap:8px}.legend-dot{width:9px;height:9px;border-radius:50%;flex-shrink:0}.dashboard-providers{margin-top:16px}.provider-row,.holding-row,.history-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #edf2ed;padding:15px 0}.provider-row:last-child,.holding-row:last-child,.history-row:last-child{border-bottom:0}.provider-l,.holding-l{display:flex;align-items:center;gap:12px;min-width:0}.provider-mark,.holding-mark{background:#eff6ef;color:#36754d;border-radius:11px;height:42px;width:42px;display:grid;place-items:center;font-weight:850;font-size:16px;flex-shrink:0}.holding-mark{background:#f1f4ef}.provider-name,.holding-name{font-size:13px;font-weight:750;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.provider-note,.holding-note{font-size:11px;color:#4d6756;margin-top:4px;overflow-wrap:anywhere;line-height:1.4}.provider-money,.holding-money{font-size:14px;font-weight:780;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.empty{color:#4d6756;font-size:13px;text-align:center;line-height:1.7;padding:34px 15px}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.toolbar-buttons,.filter-list{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.filter{background:#fff;border:1px solid #e2ebe2;border-radius:24px;padding:9px 13px;color:#7b9081;font-size:12px;font-weight:690}.filter.active{color:#fff;background:#275b40;border-color:#275b40}.position-panel{padding:7px 24px}.holding-info{min-width:0}.holding-r{display:flex;align-items:center;gap:12px;flex-shrink:0}.row-btn{border:1px solid #e1eae2;border-radius:8px;background:white;color:#4f795a;padding:6px;display:grid;place-items:center}.row-btn:hover{background:#f1f7f1}.tag{display:inline-block;border-radius:6px;padding:3px 7px;font-size:10px;font-weight:700;background:#edf4eb;color:#507257;margin:5px 5px 0 0}.tag.neutral{background:#f2f4f2;color:#87958a}.tag.warn{background:#fff5e5;color:#a0793f}.tipline{margin:-7px 0 16px}.mt{margin-top:16px}.chart-period{display:flex;gap:7px;margin-bottom:15px}.chart-period button{border:1px solid #e2ebe2;background:white;border-radius:8px;font-size:11px;font-weight:730;padding:8px 12px;color:#4d6756}.chart-period button.selected{background:#eaf2eb;color:#245a3d}.history-row .history-title{font-weight:750;font-size:13px}.history-amount{font-size:15px;font-weight:760}.history-sub{font-size:11px;color:#4d6756;margin-top:5px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.field{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:710;color:#526c59;margin:12px 0}.field small{font-weight:450;color:#95a397;display:inline-block;padding-left:4px}.field input,.field textarea,.field select{border:1px solid #dae5dc;border-radius:9px;padding:11px 12px;background:white;width:100%;min-width:0;font-size:13px;color:#26432e}.field input[type=checkbox]{width:auto}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:13px}.field-row.three{grid-template-columns:repeat(3,1fr)}.field textarea{resize:vertical}.setting-illustration{display:flex;align-items:center;gap:12px;padding:17px;background:#f4f8f3;border-radius:13px;margin:18px 0}.setting-illustration>span{color:#3a7950}.setting-illustration strong{display:block;font-size:13px}.setting-illustration div span{font-size:11px;color:#4d6756}.settings-actions{display:flex;flex-wrap:wrap;gap:9px;margin:16px 0}.setting-provider{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #eff3ef}.setting-provider:last-child{border:0}.setting-provider small{display:block;color:#4d6756;margin-top:4px}.settings-provider-actions{display:flex;gap:6px}.edit-dialog{border:0;border-radius:20px;max-width:640px;width:calc(100% - 24px);max-height:90dvh;overflow-y:auto;padding:25px;box-shadow:0 24px 100px #0c2d1c45;color:#1b3828}.edit-dialog::backdrop{background:#14291e88}.dialog-head{display:flex;justify-content:space-between;align-items:flex-start}.dialog-head h2{font-size:21px}.icon-close{font-size:27px;background:none;border:0;color:#79907d;line-height:1}.dialog-footer{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.dialog-intro{color:#4d6756;font-size:12px;line-height:1.6;margin-top:12px}.dialog-group{background:#f8faf8;border:1px solid #e8efe8;border-radius:13px;padding:14px;margin-top:12px}.dialog-group>strong{font-size:12px;display:block;margin-bottom:8px}.inline-actions{display:flex;gap:7px;align-items:end;flex-wrap:wrap}.inline-actions .field{flex:1}.coin-results,.security-results{border:1px solid #e1eae2;border-radius:10px;max-height:220px;overflow:auto;margin-top:8px}.result-item{display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left;padding:10px 12px;border:0;border-bottom:1px solid #eff3ee;background:white;width:100%;font-size:12px;color:#274535}.result-item:hover{background:#f3f8f3}.result-item:last-child{border:0}.result-item small{color:#829687}.wallet-section{margin-top:13px}.checkbox-line{display:flex;align-items:center;gap:10px;font-size:12px;color:#496d52;font-weight:720}.checkbox-line input{accent-color:#267044;width:17px;height:17px}.toast{position:fixed;z-index:200;bottom:25px;right:25px;background:#1e5037;color:white;border-radius:11px;box-shadow:0 10px 45px #12291944;padding:14px 18px;max-width:min(90vw,420px);font-size:13px;line-height:1.5}.danger-link{font-size:11px;color:#a25a54;background:none;border:0}.subtle{color:#97a99a}
@media(max-width:1140px){.content{padding:32px 26px 95px}.layout{grid-template-columns:210px minmax(0,1fr)}.allocation-layout{gap:14px}.donut{width:137px;height:137px}.donut-inner{width:92px;height:92px}}@media(max-width:940px){.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.two-col{grid-template-columns:1fr}.allocation-layout{justify-content:flex-start;gap:28px}}@media(max-width:720px){.layout{display:block}.sidebar{display:none}.mobile-header{display:flex;align-items:center;justify-content:space-between;background:#fff;padding:12px 17px;min-height:61px;border-bottom:1px solid #edf1ed}.mobile-header .logo{font-size:19px}.content{padding:19px 15px 104px}.heading-row{margin-bottom:16px}.heading-row h1{font-size:24px}.heading-row .kicker{display:none}.hero{padding:26px 23px;min-height:174px;border-radius:18px}.hero-emblem{width:182px;height:182px;right:0;top:50%}.total{letter-spacing:-1.3px;font-size:clamp(28px,8vw,38px)}.stat-grid{gap:10px;margin:11px 0}.stat{padding:16px}.stat-value{font-size:20px}.two-col{gap:12px;margin-top:12px}.panel{padding:18px;border-radius:15px}.panel-head{margin-bottom:14px}.panel-head h2{font-size:16px}.dashboard-providers{margin-top:12px}.mobile-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;bottom:0;left:0;right:0;z-index:100;background:#fff;border-top:1px solid #e4ede5;padding:8px max(8px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));box-shadow:0 -4px 28px #173b2d0a}.mobile-nav button{display:grid;justify-items:center;align-content:center;gap:4px;background:none;border:0;color:#4d6756;font-size:9px;font-weight:740;padding:6px 0;border-radius:9px;min-width:0}.mobile-nav button.active{color:#2d6545;background:#ecf5ee}.mobile-nav svg{width:22px;height:22px}.settings-grid{grid-template-columns:1fr}.toolbar{align-items:flex-start;flex-direction:column}.toolbar-buttons{width:100%;justify-content:flex-end}.position-panel{padding:3px 15px}.holding-row{gap:8px}.holding-mark{height:38px;width:38px}.holding-name{max-width:min(41vw,250px)}.holding-money{font-size:13px}.row-btn{padding:6px}.field-row.three{grid-template-columns:repeat(2,minmax(0,1fr))}.chart-area.large{height:270px}.hero-content{max-width:85%}}@media(max-width:390px){.allocation-layout{gap:13px}.alloc-legend{gap:9px}.donut{width:116px;height:116px}.donut-inner{width:80px;height:80px}.donut-inner strong{font-size:13px}.alloc-legend-row,.alloc-legend-row b{font-size:11px}.provider-mark{height:36px;width:36px}.stat-value{font-size:17px}.btn{padding:10px 11px}.panel{padding:15px}.holding-r{gap:5px}.holding-mark{display:none}.holding-money{font-size:12px}.field-row{grid-template-columns:1fr}.field-row.three{grid-template-columns:1fr 1fr}}@media(prefers-reduced-motion:no-preference){button{transition:background-color .13s ease,color .13s ease}}@media print{.sidebar,.mobile-nav,.heading-actions,.toolbar-buttons,.row-btn,.install{display:none!important}.layout{display:block}.content{padding:0}.page{display:block;page-break-after:always}}

@media(max-width:720px){.toast{bottom:calc(86px + env(safe-area-inset-bottom));left:16px;right:16px;max-width:none}}

/* Public wallet import, deliberately consistent with existing neutral panels. */
.wallet-scan-results{display:grid;gap:0;margin:14px 0;max-height:315px;overflow:auto;border-radius:11px;border:1px solid #e4ece6}
.wallet-scan-results:empty{display:none}
.wallet-scan-header{display:flex;justify-content:space-between;gap:8px;padding:12px;background:#f2f7f2;font-size:12px;color:#45614f}
.wallet-scan-header span{color:#829588}
.wallet-scan-row{display:flex;align-items:center;gap:10px;padding:12px;border-top:1px solid #eff3ef;cursor:pointer;font-size:12px}
.wallet-scan-row input{width:18px;height:18px;accent-color:#2f704b;flex-shrink:0}
.wallet-scan-info{min-width:0;flex:1;display:grid;gap:4px;overflow-wrap:anywhere}
.wallet-scan-info small{font-size:10px;color:#91a396}
.wallet-scan-money{text-align:right;font-weight:700;flex-shrink:0;max-width:40%;overflow-wrap:anywhere}
.wallet-scan-money small{display:block;font-size:10px;font-weight:400;color:#94a396;margin-top:3px}
.wallet-spam-review{border-top:1px solid #e4ece6;background:#fafcfb}
.wallet-spam-review>summary{cursor:pointer;padding:12px 14px;color:#536d5c;font-size:12px;font-weight:700;list-style:revert}
.wallet-spam-review>p{font-size:11px;line-height:1.55;color:#829588;padding:4px 14px 10px;margin:0}
.wallet-spam-review .wallet-scan-row{background:#fff}
.advanced-apis{margin-top:14px;border:1px solid #e4ebe4;border-radius:12px;padding:12px 15px}
.advanced-apis summary{cursor:pointer;color:#52755f;font-size:12px;font-weight:750;line-height:1.7}
.advanced-apis[open] summary{margin-bottom:9px}
.status-text{font-size:11px;color:#718874;line-height:1.55;max-width:290px}
@media(max-width:720px){.wallet-scan-row{padding:11px 8px}.wallet-scan-money{max-width:37%}}

/* Separate provider and account rows keep the existing neutral design. */
.account-entry{display:flex;align-items:center;gap:8px;padding:8px 0 8px 19px;border-bottom:1px solid #f0f3f0;font-size:12px;color:#4a6654}.account-entry span{flex:1;min-width:0;overflow-wrap:anywhere}.account-entry small{color:#92a395}.notice:not(.hidden){background:#fff5e6;border:1px solid #e7d3a9;padding:16px;border-radius:12px;line-height:1.6;margin-bottom:15px;color:#775628}.notice button{margin-left:8px}.panel-head .toolbar-buttons{justify-content:flex-end}


/* 2026-10 responsive audit: action buttons are a unit, never orphaned next to long titles. */
.panel-head-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.panel-head-actions .panel-title{min-width:0;flex:1 1 160px}
.panel-head-actions .panel-actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center;justify-content:flex-end;min-width:0}
.panel-actions .btn{max-width:100%}
#bookingsPage .panel-head-actions .panel-title{flex-basis:235px}
#bookingsPage .panel-head-actions .panel-actions{flex:1 0 230px}
@media(max-width:900px){
 .panel-head-actions{align-items:stretch}
 .panel-head-actions .panel-title{flex-basis:100%}
 .panel-head-actions .panel-actions{flex:1 1 100%;width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));justify-content:stretch}
 .panel-head-actions .panel-actions .btn{min-width:0;width:100%;padding:11px 8px;white-space:normal;line-height:1.3}
 .panel-head-actions .panel-actions .btn:only-child{grid-column:1/-1}
 .panel-head .link-button{white-space:normal;text-align:right}
}
@media(max-width:420px){
 .toolbar-buttons{flex-wrap:wrap;gap:8px}
 .settings-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .settings-actions .btn{white-space:normal;min-width:0}
 .settings-actions .btn.danger{grid-column:1/-1}
 .stat-value{font-size:clamp(16px,4.5vw,21px);overflow-wrap:normal;word-break:normal}
 .stat-hint{font-size:11px;line-height:1.4}
}
@media(max-width:350px){
 .panel-head-actions .panel-actions{grid-template-columns:1fr}
 .panel-head-actions .panel-actions .btn{grid-column:1/-1}
}

/* Values in HTML, not inside stretched SVG: mobile axis type remains readable. */
.chart-interactive{width:100%;height:100%;min-width:0;display:grid;grid-template-columns:72px minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;column-gap:9px;row-gap:9px}
.chart-y-labels{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end;color:#7d9384;font-size:11px;font-weight:600;line-height:1.2;white-space:nowrap;padding:3px 0}
.chart-plot{height:100%;width:100%;min-width:0;min-height:0;position:relative;cursor:crosshair;touch-action:pan-y;border-radius:7px}
.chart-plot:focus-visible{outline:2px solid #438862;outline-offset:3px}
.chart-area .chart-plot svg{display:block;width:100%;height:100%;overflow:hidden}
.chart-x-labels{grid-column:2;display:flex;justify-content:space-between;color:#83968a;font-size:11px;gap:10px;white-space:nowrap}
.chart-x-labels span:last-child{text-align:right}
.chart-cursor{position:absolute;width:11px;height:11px;border:2px solid white;border-radius:50%;background:#286644;box-shadow:0 0 0 2px #286644;transform:translate(-50%,-50%);pointer-events:none}
.chart-tooltip{position:absolute;top:7px;transform:translateX(-50%);display:flex;flex-direction:column;gap:3px;align-items:center;white-space:nowrap;border:1px solid #d7e6da;border-radius:10px;background:#fff;padding:8px 11px;box-shadow:0 5px 20px #12382018;z-index:2;pointer-events:none;font-size:11px;color:#708774}
.chart-tooltip strong{font-size:13px;color:#225238}
@media(max-width:420px){
 .chart-interactive{grid-template-columns:65px minmax(0,1fr);column-gap:7px}
 .chart-y-labels,.chart-x-labels{font-size:10.5px}
 .chart-tooltip{padding:7px 8px}
}

/* Provider details replace static rows, with grouped accounts/positions underneath. */
.provider-accordion{border-bottom:1px solid #edf2ed}
.provider-accordion:last-child{border-bottom:0}
.provider-accordion summary{list-style:none;cursor:pointer}
.provider-accordion summary::-webkit-details-marker{display:none}
.provider-accordion summary:hover,.provider-accordion[open] summary{background:#f8fbf8}
.provider-accordion .provider-row{gap:12px}
.provider-total{font-size:14px;font-weight:760;font-variant-numeric:tabular-nums;white-space:nowrap;color:#254734;margin-left:auto}
.provider-chevron{width:10px;height:10px;border-right:2px solid #819b86;border-bottom:2px solid #819b86;transform:rotate(45deg);margin:0 7px 4px 3px;transition:transform .15s ease;flex-shrink:0}
.provider-accordion[open] .provider-chevron{transform:rotate(225deg);margin-bottom:0;margin-top:5px}
.provider-detail{margin:0 6px 12px 36px;padding-left:13px;border-left:2px solid #e5eee5}
.provider-account{padding:10px 0;border-top:1px solid #eff4ef}
.provider-account:first-child{border-top:0}
.provider-account-head{display:flex;justify-content:space-between;gap:12px;align-items:start;font-size:12px}
.provider-account-head>div{min-width:0}
.provider-account-head strong{overflow-wrap:anywhere}
.provider-account-head small{display:block;margin-top:4px;color:#4d6756;font-size:11px}
.provider-account-head>strong{white-space:nowrap}
.provider-holdings{display:grid;gap:8px;padding:10px 0 2px 10px}
.provider-holding{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:#4d6756}
.provider-holding span:first-child{min-width:0;overflow-wrap:anywhere}
.provider-holding span:last-child{white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:420px){.provider-total{font-size:12px}.provider-detail{margin-left:16px;padding-left:10px}.provider-holding{gap:6px}}
@media(prefers-reduced-motion:reduce){.provider-chevron{transition:none}}


/* Interactive allocation donut; matches FolioLab's existing green/neutral system. */
.donut{position:relative;background:none!important;isolation:isolate}
.allocation-svg{position:absolute;inset:0;display:block;width:100%;height:100%;overflow:visible}
.allocation-track{pointer-events:none}
.allocation-segment{cursor:pointer;touch-action:manipulation;transition:stroke-width .13s ease,filter .13s ease;outline:none}
.allocation-segment.active,.allocation-segment:focus-visible{stroke-width:35;filter:drop-shadow(0 1px 1px #153d2955)}
.donut-inner.allocation-center{position:relative;z-index:1;min-width:0;border:0;padding:7px 4px;cursor:pointer;color:#244331;font:inherit;border-radius:50%;line-height:1.15}
.allocation-center>span{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#4d6756;font-size:10px}
.allocation-center>strong{display:block;max-width:100%;font-size:clamp(11px,1.2vw,14px);letter-spacing:-.4px;white-space:nowrap;font-variant-numeric:tabular-nums}
.allocation-center>small{font-size:10px;color:#4d6756;white-space:nowrap}
.donut-inner.allocation-center:focus-visible{outline:3px solid #2d6946;outline-offset:2px}
.alloc-legend{gap:5px}
.alloc-legend-row{width:100%;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:6px;border:1px solid transparent;border-radius:9px;background:transparent;padding:8px 6px;text-align:left;cursor:pointer;color:#718273}
.alloc-legend-row.active,.alloc-legend-row:hover,.alloc-legend-row:focus-visible{background:#edf5ee;border-color:#deeadf}
.alloc-legend-row:focus-visible{outline:2px solid #2d6946;outline-offset:1px}
.alloc-legend-row .legend-left{flex:1;min-width:0;align-items:center}
.alloc-legend-row .alloc-legend-copy{min-width:0;display:grid;gap:3px}
.alloc-legend-copy strong{font-size:12px;font-weight:670;line-height:1.3;color:#344b3b;overflow-wrap:anywhere}
.alloc-legend-copy small{font-size:10px;line-height:1.3;color:#87978a;white-space:nowrap;font-variant-numeric:tabular-nums}
.alloc-legend-row b{font-size:12px;font-weight:750;font-variant-numeric:tabular-nums}
.allocation-note{font-size:10.5px;line-height:1.5;color:#798e7e;margin:6px 4px 0}
.allocation-empty{font-size:12px;color:#4d6756;line-height:1.6}
@media(max-width:720px){
 .allocation-layout{min-height:200px}
 .allocation-center>strong{font-size:12px}
 .alloc-legend-row{padding:8px 4px;min-height:42px}
}
@media(max-width:360px){
 .allocation-layout{flex-direction:column;gap:12px}
 .alloc-legend{width:100%;min-width:0}
 .allocation-center>strong{font-size:12px}
 .alloc-legend-row .legend-left{flex-direction:row}
}
@media(prefers-reduced-motion:reduce){.allocation-segment{transition:none}}

/* Refresh errors live below the toolbar instead of covering portfolio rows. */
#priceInfo.refresh-warning{color:#925d43;background:#fff5ec;border:1px solid #efdfce;border-radius:10px;padding:10px 13px;margin:0 0 17px;overflow-wrap:anywhere;line-height:1.6}


/* Position drilldowns inside account/provider hierarchy, without floating controls. */
.provider-position-accordion{min-width:0;border-top:1px solid #edf2ed}
.provider-position-accordion:first-child{border-top:0}
.provider-position-accordion>summary{list-style:none;cursor:pointer;padding:10px 7px;margin:0 -7px;border-radius:8px;min-height:43px}
.provider-position-accordion>summary::-webkit-details-marker{display:none}
.provider-position-accordion>summary:hover,.provider-position-accordion[open]>summary{background:#f4f8f4}
.provider-position-accordion>summary:focus-visible{outline:2px solid #4b8d62;outline-offset:2px}
.provider-holding-name{min-width:0;flex:1;overflow-wrap:anywhere;font-size:12px;line-height:1.45;color:#4d6c57}
.provider-holding-right{display:flex;align-items:center;gap:10px;white-space:nowrap;flex-shrink:0;font-variant-numeric:tabular-nums}
.provider-holding-right strong{font-size:12px;font-weight:650;color:#456451}
.provider-position-chevron{width:8px;height:8px;border:solid #8ba18d;border-width:0 1.7px 1.7px 0;transform:rotate(45deg);margin:0 4px 4px 0;flex-shrink:0}
.provider-position-accordion[open] .provider-position-chevron{transform:rotate(225deg);margin:5px 4px 0 0}
.provider-position-detail{min-width:0;max-width:100%;padding:12px 8px 18px;border-radius:11px;background:#f9fbf8}
.position-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 14px}
.position-detail-stat{display:flex;flex-direction:column;gap:4px;min-width:0}
.position-detail-stat span,.position-share-label span{font-size:11px;color:#4d6756}
.position-detail-stat strong{font-size:12px;font-weight:700;color:#254a34;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.position-share{margin-top:14px}
.position-share-label{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#56745b;gap:8px}
.position-share-label strong{font-size:11px;font-variant-numeric:tabular-nums}
.position-share-track{height:6px;border-radius:100px;background:#e2ede4;overflow:hidden;margin-top:6px}
.position-share-track>div{height:100%;border-radius:100px;background:#4d8963}
.position-detail-source,.position-detail-note{font-size:10.5px;color:#4d6756;line-height:1.5;margin:12px 0 0;overflow-wrap:anywhere}
.position-period{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:15px}
.position-period button{appearance:none;min-width:0;border:1px solid #d8e4db;border-radius:8px;padding:8px 4px;background:white;color:#4d6756;font-size:11px;line-height:1.2;cursor:pointer}
.position-period button.selected,.position-period button[aria-pressed="true"]{background:#e2efe6;border-color:#76a484;color:#22543a;font-weight:700}
.position-period button:focus-visible{outline:2px solid #49885e;outline-offset:2px}
.position-history-plot{margin-top:14px;min-width:0}
.position-history-label{font-size:11px;font-weight:700;color:#527460}
.position-history-chart.chart-area{height:176px;margin-top:10px;min-width:0;max-width:100%}
.position-history-chart .chart-interactive{height:100%}
.position-history-unavailable{padding:16px 10px;border:1px dashed #cfdfd0;border-radius:9px;color:#4d6756;font-size:11px;line-height:1.6;margin:10px 0 0}
@media(max-width:420px){
 .provider-holdings{padding-left:0}
 .provider-position-detail{padding:10px 6px 15px}
 .position-detail-grid{gap:9px 10px}
 .provider-holding-right{gap:7px}
 .position-history-chart.chart-area{height:165px}
}
@media(max-width:350px){
 .provider-holding-name,.provider-holding-right strong{font-size:11px}
 .position-detail-grid{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){.provider-position-chevron{transition:none}}


/* Self-provided historical price CSV controls stay inside the position detail panel. */
.position-csv-actions{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin:12px 0 0}
.position-csv-import,.position-csv-remove{appearance:none;border:1px solid #d6e2d9;border-radius:9px;padding:10px 12px;background:#fff;color:#2f6245;font:inherit;font-size:11px;font-weight:650;line-height:1.35;cursor:pointer;min-width:0;white-space:normal}
.position-csv-import{flex:1 1 170px}
.position-csv-remove{color:#975c4d;flex:0 1 auto}
.position-csv-import:hover,.position-csv-remove:hover{background:#eff6ef}
.position-csv-import:focus-visible,.position-csv-remove:focus-visible{outline:2px solid #598f69;outline-offset:2px}
.position-csv-help{font-size:10px;line-height:1.5;color:#4d6756;margin:6px 0 0}
@media(max-width:380px){.position-csv-actions{display:grid;grid-template-columns:1fr}.position-csv-import,.position-csv-remove{width:100%}}

/* Keep fallback navigation within narrow crypto detail cards. */
.position-history-external{display:inline-flex;max-width:100%;margin:10px 2px 0;color:#286c47;font-size:11px;font-weight:650;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.position-history-external:focus-visible{outline:2px solid #528c64;outline-offset:3px;border-radius:3px}

/* Opt-in public stock/ETF TradingView panel; never a floating chart or toolbar. */
.public-chart{margin-top:14px;min-width:0;max-width:100%;border:1px solid #e1eae1;border-radius:12px;padding:10px;overflow:hidden;background:#f7faf7}
.public-chart>button{display:block;width:100%;margin-top:10px}
.tradingview-slot{width:100%;min-width:0;max-width:100%;margin-top:10px;overflow:hidden}
.tradingview-widget-container{position:relative;width:100%;height:340px;min-width:0;max-width:100%}
.tradingview-widget-container__widget{width:100%;height:305px;overflow:hidden}
.tradingview-widget-container iframe{width:100%!important;max-width:100%;border:0}
@media(max-width:430px){.public-chart{padding:7px}.tradingview-widget-container{height:300px}.tradingview-widget-container__widget{height:265px}}

/* TradingView advanced chart: reserve real chart height instead of a clipped quote strip. */
.public-chart .tradingview-widget-container{height:460px;min-width:0;max-width:100%;width:100%}
.public-chart .tradingview-widget-container__widget{height:calc(100% - 28px);width:100%;overflow:hidden}
.public-chart .tradingview-widget-container iframe{height:100%!important;min-height:395px;border:0;max-width:100%}
@media(max-width:720px){
 .public-chart .tradingview-widget-container{height:410px}
 .public-chart .tradingview-widget-container iframe{min-height:345px}
}
@media(max-width:390px){
 .public-chart .tradingview-widget-container{height:370px}
 .public-chart .tradingview-widget-container iframe{min-height:310px}
}


/* Onboarding: offline provider and account suggestions, no floating controls. */
.onboarding-suggestions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:230px;overflow:auto;margin:8px 0 15px;scrollbar-width:thin}
.onboarding-suggestions.hidden{display:none}
.onboarding-suggestion{appearance:none;display:flex;justify-content:space-between;align-items:center;gap:8px;text-align:left;min-width:0;border:1px solid #dbe5dc;background:#f7faf7;color:#294b35;border-radius:10px;padding:11px 12px;cursor:pointer;font:inherit;font-size:12px}
.onboarding-suggestion strong{min-width:0;overflow-wrap:anywhere;font-weight:700}
.onboarding-suggestion span{font-size:10px;color:#738d7b;flex-shrink:0}
.onboarding-suggestion:hover{background:#e9f3eb;border-color:#b3cdb9}
.onboarding-suggestion:focus-visible{outline:2px solid #3e895d;outline-offset:2px}
.field .picker-search{margin:0 0 6px;padding:9px 10px;background:#fbfdfb;border:1px solid #e1e9e2;border-radius:9px;font-size:12px}
.step-indicator{display:inline-flex;width:20px;height:20px;margin-right:5px;align-items:center;justify-content:center;border-radius:99px;background:#e4f0e6;color:#2e6243;font-weight:750;font-size:11px}
@media(max-width:460px){
 .onboarding-suggestions{grid-template-columns:1fr;max-height:205px}
 .onboarding-suggestion{padding:12px;min-height:42px}
 .field .picker-search{font-size:12px}
}

/* Compact valuation chip; detailed context belongs in the Positionen drill-down. */
.hero-valuation-link{display:inline-flex;align-items:center;gap:7px;max-width:100%;min-height:34px;padding:6px 11px;border:1px solid #ffffff38;border-radius:999px;background:#ffffff16;color:#e9f3e9;text-align:left;font:inherit;font-size:11px;font-weight:700;line-height:1.35;cursor:pointer}
.hero-valuation-link::before{content:'!';display:inline-grid;place-items:center;flex:0 0 15px;width:15px;height:15px;border-radius:50%;background:#f3d89f;color:#284a35;font-size:10px;font-weight:800}
.hero-valuation-link:hover{background:#ffffff28}
.hero-valuation-link:focus-visible{outline:2px solid #fff;outline-offset:3px}
.position-review-reason{margin-top:6px;color:#855f3a;font-size:11px;font-weight:700;line-height:1.4}
#positionFilters .filter:focus-visible{outline:2px solid #286644;outline-offset:3px}

/* Dialog content scrolls independently; saving/canceling stays reachable on mobile keyboards. */
.edit-dialog{padding:0;overflow:hidden;max-height:min(90dvh,900px)}
.edit-dialog #editorForm{display:flex;flex-direction:column;max-height:min(90dvh,900px);min-height:0}
.edit-dialog .dialog-head{flex:0 0 auto;background:#fff;padding:20px 24px 11px;z-index:1}
.edit-dialog #dialogFields{overflow-y:auto;min-height:0;overscroll-behavior:contain;padding:0 24px 12px;scrollbar-gutter:stable}
.edit-dialog .dialog-footer{flex:0 0 auto;background:#fff;border-top:1px solid #e8efe8;padding:13px 24px 16px;margin-top:0;z-index:1}
@media(max-width:720px){
 .edit-dialog,.edit-dialog #editorForm{max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
 .edit-dialog .dialog-head{padding:16px 16px 10px}
 .edit-dialog #dialogFields{padding:0 16px 12px}
 .edit-dialog .dialog-footer{padding:12px 16px calc(12px + env(safe-area-inset-bottom))}
}

/* Lightweight local search without introducing a new navigation or data layer. */
.position-search-tools{display:grid;grid-template-columns:minmax(0,2fr) minmax(170px,1fr);gap:12px;align-items:end;margin:-4px 0 14px}
.position-search-tools .field{margin:0}
.booking-onboarding{max-width:540px;margin:auto}
.booking-onboarding strong{display:block;color:#3d6349;font-size:14px}
.booking-onboarding p{max-width:440px;margin:10px auto 15px;color:#4d6756}
.booking-onboarding .toolbar-buttons{justify-content:center}
@media(max-width:500px){.position-search-tools{grid-template-columns:minmax(0,1fr)}.booking-onboarding .toolbar-buttons{justify-content:center}}

/* Two-level holdings: only summary data is visible until intentionally expanded. */
.position-entry{border-bottom:1px solid #edf2ed;min-width:0}
.position-entry:last-child{border-bottom:0}
.position-entry>.holding-row{border-bottom:0}
.holding-expand{margin:0 0 12px 52px;color:#648070}
.holding-expand summary{display:inline-flex;align-items:center;min-height:30px;padding:4px 2px;cursor:pointer;color:#527e60;font-size:11px;font-weight:700}
.holding-expand summary:focus-visible{outline:2px solid #367c53;outline-offset:3px;border-radius:4px}
.holding-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px;row-gap:10px;margin:9px 0 3px}
.holding-facts>div{min-width:0}
.holding-facts dt{font-size:10px;color:#829686;margin-bottom:3px}
.holding-facts dd{font-size:12px;margin:0;color:#354e3d;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
@media(max-width:720px){.holding-expand{margin-left:10px}.holding-facts{grid-template-columns:1fr 1fr;column-gap:12px}}
@media(max-width:390px){.holding-facts{grid-template-columns:1fr}}

/* Three step asset onboarding. Same cards, controls and palette as the native editor. */
.asset-wizard-dialog{max-width:600px}
.asset-wizard-dialog .wizard-shell{display:flex;flex-direction:column;max-height:min(90dvh,900px);min-height:0}
.asset-wizard-dialog .dialog-head{flex-shrink:0}
.asset-wizard-dialog #wizardFields{padding:0 24px 16px;overflow-y:auto;overscroll-behavior:contain;min-height:0;scrollbar-gutter:stable}
.asset-wizard-dialog .dialog-footer{flex-shrink:0}
.wizard-progress{display:flex;gap:7px;padding:4px 24px 15px;flex-shrink:0}
.wizard-progress span{display:flex;align-items:center;justify-content:center;width:26px;height:26px;border:1px solid #dce9df;border-radius:50%;background:#f3f7f3;color:#8a9e8d;font-size:11px;font-weight:800}
.wizard-progress span.is-current{background:#245c40;color:#fff;border-color:#245c40}
.wizard-progress span.is-done{background:#d8ebdc;color:#3a7850}
.wizard-search-status{font-size:11px;color:#718b76;line-height:1.5;margin:9px 0}
.wizard-matches{max-height:208px;overflow:auto;border:1px solid #e4ebe5;border-radius:11px}
.wizard-matches .result-item{min-width:0;text-align:left}
.wizard-matches .result-item>span{min-width:0;overflow-wrap:anywhere}
.wizard-matches small{display:block;font-size:10px;line-height:1.4;color:#879d8a}
.wizard-lookup{font-size:11px;margin-top:10px}
.wizard-manual{margin-top:16px;padding-top:12px;border-top:1px solid #e8efe8}
.wizard-manual>strong{font-size:13px;color:#496d50}
.wizard-inline-new{padding:10px 13px;background:#f7faf7;border-radius:11px;border:1px solid #e7eee8}
.wizard-mode{border:0;padding:0;margin:15px 0;display:flex;flex-wrap:wrap;gap:15px}
.wizard-mode legend{font-size:13px;font-weight:750;color:#45684d;padding:0 0 11px}
.wizard-mode label{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:600;color:#4b7157}
.wizard-mode input{accent-color:#2d6e48}
.wizard-feedback{padding:0 24px;color:#9c4238;font-size:12px;line-height:1.5}
.wizard-feedback.visible{padding:10px 24px}
.wizard-success{text-align:center;padding:22px 0 30px}
.wizard-success strong{font-size:18px;color:#2b583e}
.wizard-success p{max-width:390px;margin:12px auto 20px;color:#78927d;font-size:12px;line-height:1.7}
.wizard-success .toolbar-buttons{justify-content:center}
@media(max-width:720px){
 .asset-wizard-dialog .wizard-shell{max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
 .asset-wizard-dialog #wizardFields{padding:0 16px 16px}
 .wizard-progress{padding:4px 16px 13px}
 .wizard-feedback{padding:0 16px}.wizard-feedback.visible{padding:10px 16px}

}

/* Refresh failures are secondary details, not multiline overlays. */
#refreshErrorDetails{margin:-4px 0 14px}
.refresh-error-list{display:grid;gap:10px}
.refresh-error-list>div{font-size:11px;color:#6b816f;line-height:1.5}
.refresh-error-list strong{display:block;color:#8b5b42;font-weight:650;overflow-wrap:anywhere}
.refresh-error-list small{display:block;color:#78927c;margin-top:3px;overflow-wrap:anywhere}

.booking-filter-tools{display:grid;grid-template-columns:minmax(0,2fr) minmax(140px,1fr);align-items:end;gap:12px;margin-bottom:12px}
.booking-filter-tools .field{margin:0}
@media(max-width:500px){.booking-filter-tools{grid-template-columns:1fr}}

.mini-chart-periods{margin:-2px 0 10px;flex-wrap:wrap}
.mini-chart-periods button{min-width:42px;min-height:31px}
.mini-chart-periods button:disabled{opacity:.4;cursor:not-allowed}

/* Provider settings: compact account grouping with always-visible controls. */
.provider-settings-row{align-items:flex-start}
.provider-settings-group{flex:1;min-width:0}
.provider-settings-group summary{cursor:pointer;display:grid;gap:4px;position:relative;padding:5px 19px 5px 0;list-style:none;min-height:35px}
.provider-settings-group summary::-webkit-details-marker{display:none}
.provider-settings-group summary::after,.source-detail>summary::after{content:'';display:block;flex-shrink:0;width:9px;height:9px;border-right:1.8px solid #6b8c73;border-bottom:1.8px solid #6b8c73;transform:rotate(45deg);transition:transform .15s ease}
.provider-settings-group summary::after{position:absolute;right:6px;top:15px}
.provider-settings-group[open] summary::after,.source-detail[open]>summary::after{transform:rotate(225deg)}
.provider-settings-group summary:focus-visible{outline:2px solid #4c8a61;outline-offset:2px;border-radius:5px}
.provider-settings-group summary strong{font-size:13px;color:#365b42;overflow-wrap:anywhere}
.provider-settings-group summary small{font-size:11px;color:#4d6756}
.provider-settings-accounts{padding:6px 0}
.provider-settings-accounts .account-entry{padding-left:9px}
.provider-settings-row .settings-provider-actions{padding-top:5px}

.provider-account-head{flex-wrap:wrap}
.provider-account-head>[data-action=view-account]{font-size:11px;white-space:nowrap;padding:3px 0}

/* Quiet catalog controls: leave the search and its results visually primary. */
.wizard-matches .result-item{gap:12px}
.wizard-matches .result-item>small{text-align:right;max-width:43%;white-space:normal;overflow-wrap:anywhere}
.wizard-catalog-tools{margin:10px 0 2px;padding:0;border:0;background:transparent}
.wizard-catalog-tools>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:8px;font-size:11px;font-weight:650;color:#708a79;padding:8px 0;min-height:34px}
.wizard-catalog-tools>summary::-webkit-details-marker{display:none}
.wizard-catalog-tools>summary:after{content:"";width:6px;height:6px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:translateY(-2px) rotate(45deg)}
.wizard-catalog-tools[open]>summary:after{transform:translateY(2px) rotate(225deg)}
.wizard-catalog-tools>summary:hover{color:#315b3e}
.wizard-catalog-tools>summary:focus-visible{outline:2px solid #2d6946;outline-offset:3px;border-radius:3px}
.wizard-catalog-content{padding:10px 12px 13px;margin-top:4px;background:#f8faf8;border:1px solid #e6ede6;border-radius:10px;display:flex;align-items:flex-start;flex-direction:column;gap:9px;font-size:11px;line-height:1.55;color:#788d7e}
.wizard-catalog-content p{margin:0}
.wizard-catalog-content a{font-size:11px;color:#38694b;text-decoration:underline;text-underline-offset:2px}
.wizard-catalog-content .btn{font-size:11px;min-height:36px;white-space:normal}
.wizard-catalog-content small{font-size:10px;color:#788d7e;line-height:1.5;overflow-wrap:anywhere}
@media(max-width:500px){.wizard-catalog-content .btn{min-height:40px}}

/* Compact source file links remain secondary to instrument search. */
.wizard-source-inline{display:flex;gap:12px;flex-wrap:wrap}
.wizard-source-inline a{font-size:11px}

/* Settings: one mobile-friendly data-sources panel with four accordions. */
.settings-grid>.data-source-panel{grid-column:1/-1}
.data-source-panel{overflow-wrap:anywhere}
.data-source-panel .data-auto{align-items:flex-start;line-height:1.5;margin:5px 0 20px}
.data-source-panel .data-auto input{flex-shrink:0;margin-top:1px}
.data-source-groups{display:grid;gap:10px}
.data-source-groups>.advanced-apis{margin:0;padding:0;border-radius:12px}
.source-detail>summary{list-style:none;display:flex;align-items:center;gap:12px;padding:15px 16px;min-width:0;color:#355a43}
.source-detail>summary::-webkit-details-marker{display:none}
.source-detail>summary::after{margin-left:auto;margin-right:5px;margin-top:-4px}
.source-detail[open]>summary{margin-bottom:0;border-bottom:1px solid #e4ebe4}
.settings-icon{height:22px;width:22px;flex-shrink:0;color:#537a60}
.settings-summary{min-width:0;flex:1}
.settings-summary strong{display:block;font-size:13px;line-height:1.45;font-weight:780}
.settings-summary small{display:block;margin-top:3px;font-size:11px;line-height:1.5;color:#4d6756;font-weight:450}
.source-detail>p,.source-detail>form,.source-detail>.field,.source-detail>.source-actions,.source-detail>#solanaRpcSetup{margin-left:16px;margin-right:16px}
.source-detail>p:first-of-type{margin-top:15px}
.source-detail>p:last-child{margin-bottom:17px}
.source-detail .field small{display:block;padding-left:0;margin-top:4px;line-height:1.5;font-size:11px;color:#718575}
.source-detail .field a,.source-detail .small-help a{color:#2c6347;text-underline-offset:2px}
.source-detail .small-help{line-height:1.75}
.source-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:16px;margin-bottom:16px}
.source-detail #solanaRpcSetup{margin-top:16px;margin-bottom:16px}
.legacy-quote-results{display:grid;gap:10px;margin:8px 16px 14px;min-width:0}
.legacy-quote-item{display:grid;gap:7px;padding:12px;border:1px solid #dfe9e1;border-radius:9px;min-width:0}
.legacy-quote-item strong{font-size:12px;overflow-wrap:anywhere}
.legacy-quote-values{font-size:11px;line-height:1.6;color:#526e5a;overflow-wrap:anywhere}
.legacy-quote-actions{display:flex;flex-wrap:wrap;gap:8px}
.legacy-quote-actions .btn{white-space:normal;min-height:34px}
@media(prefers-reduced-motion:reduce){.provider-settings-group summary::after,.source-detail>summary::after{transition:none}}
@media(max-width:420px){
 .source-detail>summary{padding:13px 12px;gap:10px}
 .source-detail>p,.source-detail>form,.source-detail>.field,.source-detail>.source-actions,.source-detail>#solanaRpcSetup,.source-detail>.legacy-quote-results{margin-left:12px;margin-right:12px}
 .settings-summary strong{font-size:12px}
 .source-actions .btn{min-width:0;width:100%;white-space:normal;line-height:1.4}
}

/* Keep long localized settings actions inside narrow 320px screens. */
.data-source-panel .button-row{display:flex;flex-wrap:wrap;gap:9px}
.data-source-panel .btn{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.4}
.data-source-panel .source-detail,.data-source-panel .field,.data-source-panel form{min-width:0;max-width:100%}
.data-source-panel .field input,.data-source-panel .field select{min-width:0;max-width:100%}

/* Password reveal controls use the same understated icon language as the settings UI. */
.credential-control{position:relative;display:block;width:100%;min-width:0}
.data-source-panel .field .credential-control input{width:100%;padding-right:51px;min-width:0}
.credential-toggle{position:absolute;right:5px;top:50%;transform:translateY(-50%);width:41px;height:41px;border:0;border-radius:8px;background:transparent;color:#597664;display:grid;place-items:center;padding:0}
@media(hover:hover) and (pointer:fine){.credential-toggle:hover{background:#eff5ef;color:#245c3e}}
.credential-toggle:focus-visible{outline:2px solid #2d6946;outline-offset:0}
.credential-toggle svg{pointer-events:none}

/* Optional sources stay collapsed; the native chart is the primary view. */
.position-chart-options{margin-top:16px;border-top:1px solid #e4ece5;padding-top:10px;min-width:0}
.position-chart-options>summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;font-weight:650;color:#53715c;padding:5px 2px}
.position-chart-options>summary::-webkit-details-marker{display:none}
.position-chart-options>summary::after{content:'⌄';font-size:18px;font-weight:500;line-height:1}
.position-chart-options[open]>summary::after{transform:rotate(180deg)}
.position-chart-options>summary:focus-visible{outline:2px solid #49885e;outline-offset:2px;border-radius:5px}
.position-chart-options-body{min-width:0;padding:4px 0 8px}
.position-booking-history{margin-top:16px;border-top:1px solid #e4ece5;padding-top:10px;min-width:0}
.position-booking-history>summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;font-weight:650;color:#53715c;padding:5px 2px}
.position-booking-history>summary::-webkit-details-marker{display:none}
.position-booking-history>summary::after{content:'⌄';font-size:18px;font-weight:500;line-height:1}
.position-booking-history[open]>summary::after{transform:rotate(180deg)}
.position-booking-history>summary:focus-visible{outline:2px solid #49885e;outline-offset:2px;border-radius:5px}
.position-chart-options-body .public-chart{margin-top:12px}

/* Native price history: missing data occupies one quiet, closed disclosure. */
.position-history-compact{margin-top:12px;min-width:0;border-top:1px solid #e4ece5;padding-top:7px}
.position-history-compact>summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:8px;color:#657a69;font-size:11px;font-weight:650;min-height:33px;padding:5px 2px}
.position-history-compact>summary::-webkit-details-marker{display:none}
.position-history-compact>summary::after{content:'⌄';font-size:17px;font-weight:500;line-height:1}
.position-history-compact[open]>summary::after{transform:rotate(180deg)}
.position-history-compact>summary:focus-visible{outline:2px solid #49885e;outline-offset:2px;border-radius:5px}
.position-history-compact .position-history-unavailable{border:0;background:none;padding:6px 3px 2px;margin:0;color:#5b7462;line-height:1.65;overflow-wrap:anywhere}
.position-history-retry{border:1px solid #d6e2d9;border-radius:8px;background:white;color:#38664a;font-size:11px;font-weight:650;padding:8px 12px;margin:8px 0 4px}
.position-history-retry:hover{background:#eff5ef}
.position-history-retry:focus-visible{outline:2px solid #49885e;outline-offset:2px}

/* Local edit/delete affordances for every snapshot and portfolio position. */
.snapshot-row-actions,.position-row-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}
.snapshot-row-actions .row-btn,.position-row-actions .row-btn{width:34px;height:34px;padding:7px;flex:0 0 34px}
.snapshot-row-actions .row-btn[data-action="delete-snapshot"],
.position-row-actions .row-btn[data-action="delete-position"]{color:#8e635c}
.history-row>div:first-child{min-width:0}
.history-row .history-sub{overflow-wrap:anywhere}
@media(max-width:520px){
 .position-entry .holding-row,.history-row{flex-wrap:wrap;row-gap:8px}
 .position-entry .holding-l{flex:1 1 100%;min-width:0}
 .position-entry .holding-info{min-width:0;max-width:100%;flex:1}
 .position-entry .holding-name{max-width:100%;white-space:normal;overflow-wrap:anywhere}
 .position-entry .holding-r,.history-row>.holding-r{width:100%;justify-content:space-between}
 .history-row>div:first-child{flex:1 1 100%}
}

/* Compact return reporting: technical details only on demand. */
.history-insights{margin-top:12px;min-width:0}
.history-insights .performance-details{margin:0;border:0;border-radius:0;min-width:0;background:transparent}
.history-insights .performance-details>summary{padding:12px 2px}
.history-insights .performance-details-body{border-top:0;padding:0 2px 14px}
.history-insights details>summary:hover{color:#245c3d}
.performance-details>summary{list-style:none;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:12px;row-gap:3px;align-items:center;min-height:48px;cursor:pointer;padding:12px 16px;color:#355c42}
.performance-details>summary::-webkit-details-marker{display:none}
.performance-details>summary::after{content:'';display:block;grid-column:2;grid-row:1 / span 2;align-self:center;justify-self:center;width:9px;height:9px;border-right:1.8px solid #6b8c73;border-bottom:1.8px solid #6b8c73;transform:rotate(45deg);transition:transform .15s ease;margin-right:5px;margin-top:-4px}
.performance-details[open]>summary::after{transform:rotate(225deg)}
.performance-details>summary>span{grid-column:1;grid-row:1;min-width:0;font-weight:750;font-size:12px}
.performance-details>summary>small{grid-column:1;grid-row:2;min-width:0;text-align:left;color:#4e6955;font-size:11px;line-height:1.45;overflow-wrap:anywhere}
.performance-details>summary:focus-visible{outline:2px solid #327f52;outline-offset:2px;border-radius:12px}
.performance-details-body{border-top:1px solid #e3ebe4;padding:8px 14px 13px}
.performance-details-body #performanceInfo p{margin:8px 0;line-height:1.65}
.performance-details-body .btn{margin-top:6px;max-width:100%;white-space:normal}
.performance-details-body>p{margin:12px 0 0}
@media(prefers-reduced-motion:reduce){.performance-details>summary::after{transition:none}}
/* Status belongs to the same padded content column as the surrounding settings. */
#legacyQuoteAudit>#legacyQuoteAuditStatus{margin:10px 12px 15px;min-height:16px}

/* Read-only EODHD diagnostics and date-based quote evidence */
.quote-quality-summary{color:#59725e;line-height:1.65;margin:0 0 10px;font-size:11px}
.market-diagnostic{margin:3px 16px 15px;line-height:1.65;overflow-wrap:anywhere}
.market-diagnostic p{margin:7px 0}
.market-diagnostic .diagnostic-row{border-top:1px solid #e7eee7;padding-top:7px}
.market-diagnostic .diagnostic-row strong{font-weight:700;color:#42694f}
@media(max-width:420px){.market-diagnostic{margin-left:12px;margin-right:12px}}

/* Condensed quote information, technical fields only on demand. */
.position-quote-details{margin:0 0 12px;color:#59725e}
.position-quote-details>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none;min-height:36px;font-size:12px;font-weight:650}
.position-quote-details>summary::-webkit-details-marker{display:none}
.position-quote-details>summary:after{content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg);margin-right:5px;flex:0 0 auto}
.position-quote-details[open]>summary:after{transform:translateY(2px) rotate(225deg)}
.position-quote-details>summary:focus-visible{outline:2px solid #2d6946;outline-offset:3px;border-radius:4px}
.position-quote-body{padding:3px 0 9px;font-size:12px;line-height:1.65}
.position-quote-body p{margin:7px 0}
.wizard-alternative{display:flex;justify-content:flex-end;padding:5px 24px 8px;flex-shrink:0}
.wizard-advanced-link{font-size:11px;font-weight:650;color:#53745f;background:transparent;border:0;padding:7px 0;text-decoration:underline;text-underline-offset:3px;white-space:normal;text-align:right}
.wizard-advanced-link:hover{color:#245c40}
@media(max-width:720px){.wizard-alternative{padding:3px 16px 6px}}


/* Compact private-style history controls and accessible two-date calendar. */
#historyPage .history-panel{min-width:0}
#historyPage .history-controls{position:relative;display:flex;align-items:center;gap:7px;flex-wrap:nowrap;min-width:0;margin:0 0 14px}
#historyPage .history-chart-period{display:flex;align-items:center;flex-wrap:nowrap;min-width:0;margin:0;padding:3px;border:1px solid #e1eae2;border-radius:12px;background:#f2f7f2;gap:1px}
#historyPage .history-chart-period button{border:0;background:transparent;min-height:36px;padding:8px 12px;white-space:nowrap;border-radius:9px}
#historyPage .history-chart-period button.selected{background:white;color:#245a3d;box-shadow:0 1px 4px #183b2715}
#historyPage .history-calendar-popover{flex:0 0 auto;position:static}
#historyPage .history-calendar-popover>summary,#historyPage .history-add-button{list-style:none;display:grid;place-items:center;flex:0 0 38px;width:38px;min-width:38px;height:38px;min-height:38px;padding:0;margin:0;border:1px solid #dae6dd;border-radius:10px;background:#fff;color:#4e775a;cursor:pointer}
#historyPage .history-calendar-popover>summary::-webkit-details-marker{display:none}
#historyPage .history-calendar-popover>summary::marker{content:''}
#historyPage .history-calendar-popover>summary svg{display:block}
#historyPage .history-add-button{font-size:25px;font-weight:500;line-height:1}
#historyPage .history-calendar-popover>summary:hover,#historyPage .history-calendar-popover[open]>summary,#historyPage .history-add-button:hover{background:#f0f6f1;border-color:#bcd4c3}
#historyPage .history-calendar-popover>summary:focus-visible,#historyPage .history-add-button:focus-visible,#historyPage .history-calendar-panel button:focus-visible{outline:2px solid #397f52;outline-offset:2px}
#historyPage .history-calendar-panel{position:absolute;left:0;top:calc(100% + 9px);z-index:30;width:min(338px,calc(100vw - 56px));max-height:min(70dvh,440px);overflow-y:auto;padding:12px;border:1px solid #dce8df;border-radius:13px;background:white;box-shadow:0 15px 36px #183b2730}
#historyPage .history-calendar-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px;color:#2f5c41}
#historyPage .history-calendar-header strong{font-size:13px;font-weight:760}
#historyPage .history-calendar-header button{width:32px;height:32px;border:1px solid #e1eae2;border-radius:8px;background:#fff;color:#477455;cursor:pointer;font-size:20px}
#historyPage .history-calendar-weekdays,#historyPage .history-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;text-align:center}
#historyPage .history-calendar-weekdays{font-size:10px;color:#8b9f91;padding:0 0 6px}
#historyPage .history-calendar-day{position:relative;min-width:0;height:35px;padding:0;border:0;border-radius:8px;background:#fff;color:#355b43;font-size:12px;cursor:pointer}
#historyPage .history-calendar-day:hover,#historyPage .history-calendar-day:focus-visible{background:#edf5ee}
#historyPage .history-calendar-day.selected{background:#d9eee0;color:#1e5637;font-weight:760}
#historyPage .history-calendar-dot{position:absolute;bottom:3px;left:calc(50% - 2px);width:4px;height:4px;border-radius:50%;background:#3b8e5f}
#historyPage .history-calendar-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:12px;font-size:10px;line-height:1.4;color:#708775}
#historyPage .history-calendar-foot>span{flex:1;min-width:0}
#historyPage .history-calendar-foot button{border:0;background:none;color:#2b7348;font-size:11px;font-weight:700;cursor:pointer;white-space:nowrap}
#historyPage .history-insights .snapshot-manager{margin:0;border-top:1px solid #e4ece5}
#historyPage .history-insights .snapshot-manager>summary{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;list-style:none;min-height:50px;padding:14px 2px;color:#315e43;font-size:12px;font-weight:750;cursor:pointer}
#historyPage .history-insights .snapshot-manager>summary::-webkit-details-marker{display:none}
#historyPage .history-insights .snapshot-manager>summary::after{content:'';display:block;width:9px;height:9px;border-right:1.8px solid #6b8c73;border-bottom:1.8px solid #6b8c73;transform:rotate(45deg);transition:transform .15s ease;margin-right:5px;margin-top:-4px}
#historyPage .history-insights .snapshot-manager[open]>summary::after{transform:rotate(225deg)}
#historyPage .history-insights .snapshot-manager>summary:focus-visible{outline:2px solid #397f52;outline-offset:-2px;border-radius:7px}
#historyPage .history-insights .snapshot-manager-body{margin:0;padding:0 2px 14px}
@media(max-width:720px){
 #historyPage .history-controls{gap:5px}
 #historyPage .history-chart-period{padding:3px;flex:0 1 auto}
 #historyPage .history-chart-period button{min-height:32px;padding:7px 8px;font-size:11px}
 #historyPage .history-calendar-popover>summary,#historyPage .history-add-button{flex-basis:36px;width:36px;min-width:36px;height:36px;min-height:36px}
}
@media(max-width:380px){
 #historyPage .history-controls{gap:4px}
 #historyPage .history-chart-period button{min-height:30px;padding:7px 6px;font-size:10px}
 #historyPage .history-calendar-popover>summary,#historyPage .history-add-button{flex-basis:33px;width:33px;min-width:33px;height:33px;min-height:33px}
}
@media(prefers-reduced-motion:reduce){#historyPage .history-insights .snapshot-manager>summary::after{transition:none}}

/* PWA update available while a form or background save is active. Never erase browser data. */
.pwa-update-notice{position:fixed;z-index:10020;bottom:calc(86px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:space-between;gap:13px;max-width:min(540px,calc(100vw - 28px));width:max-content;min-width:min(340px,calc(100vw - 28px));padding:11px 13px;border:1px solid #bdd5c3;border-radius:12px;background:#f6faf7;color:#264f38;box-shadow:0 12px 28px #122e201c;font-size:12px;font-weight:650;line-height:1.4}
.pwa-update-notice button{white-space:nowrap;border:1px solid #b5d0bd;border-radius:9px;background:white;color:#255b3d;padding:8px 11px;font:inherit;cursor:pointer}
.pwa-update-notice button:focus-visible{outline:2px solid #368253;outline-offset:2px}
@media(min-width:721px){.pwa-update-notice{bottom:20px}}
@media(max-width:360px){.pwa-update-notice{font-size:11px;gap:8px;flex-wrap:wrap;min-width:0}.pwa-update-notice button{min-height:36px}}


/* Shared responsive action controls: icon-only phone, readable one-line labels above phone. */
.action-group{display:flex;align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:8px;min-width:0}
.action-group .responsive-action{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:0 0 auto;min-width:0;min-height:40px;white-space:nowrap;line-height:1.2}
.action-group .action-icon,#historyPage .history-add-button .action-icon{display:inline-flex;align-items:center;justify-content:center;width:19px;height:19px;flex:0 0 19px}
.action-group .action-icon svg,.action-group .action-svg,#historyPage .history-add-button .action-icon svg{display:block;width:19px;height:19px;stroke:currentColor}
.action-group .action-label{display:inline;white-space:nowrap}
#positionsPage>.toolbar{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;align-items:center}
#positionsPage>.toolbar>.filter-list{flex:1 1 250px;min-width:0}
#positionsPage>.toolbar>.action-group{flex:0 0 auto;width:auto}
#positionsPage .position-review-action:not(:has(.hidden)){display:flex;justify-content:flex-end;margin:0 0 10px}
#positionsPage .position-review-action:has(.hidden){display:none}
#bookingsPage .panel-head-actions .panel-actions.action-group{display:flex;flex:0 0 auto;width:auto;flex-wrap:nowrap;justify-content:flex-end}
#bookingsPage .panel-head-actions .panel-actions.action-group .responsive-action{width:auto;min-width:0;padding:10px 13px;white-space:nowrap}
#historyPage .history-add-button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:auto;min-width:38px;max-width:none;padding:0 12px;gap:6px;font-size:12px;font-weight:730;line-height:1.2;white-space:nowrap;background:#26563d;color:#fff;border-color:#26563d}
#historyPage .history-add-button:hover{background:#173b2d;color:#fff;border-color:#173b2d}
#historyPage .history-add-label{display:inline;white-space:nowrap}
@media(max-width:1023px) and (min-width:768px){
 #positionsPage>.toolbar{align-items:flex-start}
 #positionsPage>.toolbar>.filter-list{flex:1 1 100%;width:100%}
 #positionsPage>.toolbar>.action-group{margin-left:auto}
 #positionsPage .action-group .responsive-action{padding:10px 11px;font-size:11px}
 #bookingsPage .panel-head-actions .panel-actions.action-group .responsive-action{padding:9px 10px;font-size:11px}
}
@media(max-width:767px){
 #positionsPage>.toolbar{flex-direction:column;align-items:stretch;gap:10px}
 #positionsPage>.toolbar>.filter-list{flex:0 1 auto;width:100%}
 #positionsPage>.toolbar>.action-group{width:100%;margin:0;justify-content:flex-end;display:flex;flex-wrap:nowrap;gap:7px}
 .action-group .action-label,#historyPage .history-add-label{display:none}
 #positionsPage .action-group .responsive-action,
 #bookingsPage .panel-head-actions .panel-actions.action-group .responsive-action,
 #historyPage .history-calendar-popover>summary,
 #historyPage .history-add-button{
  display:grid;place-items:center;flex:0 0 40px;min-width:40px;width:40px;max-width:40px;
  height:40px;min-height:40px;padding:0;white-space:nowrap;line-height:1;
  border:1px solid #dae6dd;border-radius:10px;background:#fff;color:#50785d;box-shadow:none
 }
 #positionsPage .action-group .responsive-action:hover,
 #bookingsPage .panel-head-actions .panel-actions.action-group .responsive-action:hover{background:#f0f6f1;border-color:#bcd4c3}
 #bookingsPage .panel-head-actions .panel-actions.action-group{
  display:flex;flex:0 0 auto;width:100%;gap:7px;justify-content:flex-end;flex-wrap:nowrap
 }
 #historyPage .history-calendar-popover{margin-left:auto}
 #historyPage .history-controls{gap:7px}
 #historyPage .history-calendar-popover>summary svg{width:19px;height:19px}
}

@media(max-width:360px){
 #positionsPage .action-group .responsive-action,
 #bookingsPage .panel-head-actions .panel-actions.action-group .responsive-action,
 #historyPage .history-calendar-popover>summary,
 #historyPage .history-add-button{
  flex-basis:38px;min-width:38px;width:38px;max-width:38px;height:38px;min-height:38px
 }
}

/* Compact action hierarchy: readable desktop labels, clear mobile iconography. */
.page-description{max-width:520px;margin:6px 0 0;color:#4d6756;font-size:12px;line-height:1.5}
.page-description:empty{display:none}
.heading-row:has(.page-description:not(:empty)){margin-bottom:16px}
#historyPage .history-panel>.panel-head,#bookingsPage .panel-head-actions{margin-bottom:12px}
#positionsPage>.toolbar{margin-bottom:12px}
.action-group .action-icon svg,.action-group .action-svg,
#historyPage .history-add-button .action-icon svg,
#historyPage .history-calendar-popover>summary svg{stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}

@media(max-width:767px){
 .page-description{margin-top:5px;font-size:11px;line-height:1.45}
 .heading-row:has(.page-description:not(:empty)){margin-bottom:12px}
}

/* Compact position entry and review-first CSV import. */
.asset-wizard-dialog .wizard-group{padding:15px 0 17px;border-bottom:1px solid #e5ebe5}
.asset-wizard-dialog .wizard-group:first-child{padding-top:0}
.asset-wizard-dialog .wizard-group:last-child{border-bottom:0}
.asset-wizard-dialog .wizard-group>h3,.csv-import-mapping>h3,.csv-import-review>h3{font-size:14px;font-weight:750;line-height:1.4;color:#264c37;margin:0 0 13px}
.asset-wizard-dialog .wizard-group .wizard-manual{margin-top:14px}
.asset-wizard-dialog .wizard-group .wizard-mode{margin:4px 0 13px}
.asset-wizard-dialog .wizard-alternative{padding-top:3px}
.csv-import-mapping,.csv-import-review{margin-top:18px;padding-top:16px;border-top:1px solid #e5ebe5}
.csv-import-mapping .field-row{align-items:end}
.csv-import-mapping .advanced-apis{margin-top:13px}
.csv-import-summary{padding:10px 12px;background:#f1f6f1;color:#2f5e43;border-radius:10px;font-size:12px;line-height:1.55;margin-bottom:12px}
.csv-review-row{padding:12px 13px;margin:10px 0;border:1px solid #dce6dd;border-radius:11px;background:#fbfcfb}
.csv-review-row>strong{font-size:12px;color:#2f5540}
.csv-review-row>p{font-size:12px;line-height:1.5;color:#506e5a;margin:5px 0 9px}
.csv-review-row .field{margin:0}
.csv-skip{display:flex;align-items:center;gap:8px;font-size:12px;color:#58715e;margin-top:10px;cursor:pointer}
.csv-skip input{accent-color:#2a6546}
@media(max-width:500px){
 .asset-wizard-dialog .wizard-group{padding:13px 0 15px}
 .asset-wizard-dialog .wizard-group>h3{margin-bottom:10px}
 .asset-wizard-dialog .wizard-group .field-row,.csv-import-mapping .field-row{grid-template-columns:minmax(0,1fr)}
 .csv-import-summary{font-size:11px}
}

/* Focused manual booking / watch-only wallet dialogs (v102). */
#bookingFxWrap{margin:14px 0 4px;padding:13px 14px;border:1px solid #dfe9e1;border-radius:12px;background:#f8faf8}
#bookingFxWrap>.field{margin:0 0 9px}
#bookingFxWrap .booking-fx-button{font-size:12px;max-width:100%;white-space:normal;text-align:center}
#bookingFxWrap .small-help{margin:8px 0 0;line-height:1.5}
#bookingFxDetails{margin-top:12px;background:#fff}
#bookingAdvanced>.field-row{gap:12px}
#bookingAdvanced .field{min-width:0}
.booking-notes{margin-top:12px}
.wallet-staking-options{margin:12px 0 14px}
.wallet-staking-options>.small-help,.wallet-scan-help .small-help{font-weight:400;line-height:1.55}
.wallet-staking-options .field{margin:10px 0}
.wallet-scan-action{margin:17px 0 9px;display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.wallet-scan-action .btn{min-height:43px}
.wallet-scan-action p{margin:0;flex:1 1 210px}
.wallet-save-settings{padding:15px 0 6px;border-top:1px solid #e2eae4;margin-top:17px}
.wallet-save-settings h3{font-size:14px;color:#305742;font-weight:750;margin:0 0 8px}
.wallet-save-settings>.small-help{margin:0 0 12px}
.wallet-save-settings>.field{margin:10px 0}
.wallet-scan-help{margin:14px 0}
#scanAddressHint,#hdPrivacyHint{overflow-wrap:anywhere;line-height:1.55}
@media(max-width:500px){
 #bookingFxWrap{padding:12px}
 #bookingAdvanced>.field-row{grid-template-columns:minmax(0,1fr)}
 .wallet-scan-action{flex-direction:column;align-items:stretch;gap:7px}
 .wallet-scan-action .btn{width:100%}
 .wallet-scan-action p{flex:auto}
}

/* Unified optional position fields: inside scrolling form, not a footer escape hatch. */
.asset-wizard-dialog .wizard-extra-group{padding-top:14px;padding-bottom:20px}
.asset-wizard-dialog .wizard-extra{margin:0;border:1px solid #dfe9e1;border-radius:13px;padding:0;overflow:hidden;background:#f9fbf9}
.asset-wizard-dialog .wizard-extra>summary{padding:15px 16px;font-size:13px;color:#345f45;line-height:1.5;font-weight:750}
.asset-wizard-dialog .wizard-extra[open]>summary{border-bottom:1px solid #e2eae3;margin:0 0 12px;background:#f2f7f2}
.asset-wizard-dialog .wizard-extra>p,.asset-wizard-dialog .wizard-extra>.field,.asset-wizard-dialog .wizard-extra>.wizard-extra-nested{margin-left:15px;margin-right:15px}
.asset-wizard-dialog .wizard-extra>.wizard-extra-nested{margin-top:12px;margin-bottom:14px;background:white}
.asset-wizard-dialog .wizard-extra-nested .small-help{font-weight:400;line-height:1.55}
.asset-wizard-dialog .wizard-extra-nested>summary{font-size:12px}
.asset-wizard-dialog .wizard-extra-nested .checkbox-line{display:flex;align-items:center;gap:10px;line-height:1.6;margin:10px 0}
.asset-wizard-dialog .wizard-extra-nested input[type=checkbox]{accent-color:#2b6444;flex-shrink:0}
.asset-wizard-dialog #wizardWalletFields{min-width:0}
.asset-wizard-dialog #wizardWalletFields .field input,.asset-wizard-dialog #wizardWalletFields .field select{min-width:0;width:100%}
@media(max-width:720px){
 .asset-wizard-dialog .wizard-extra>summary{padding:13px 14px}
 .asset-wizard-dialog .wizard-extra>p,.asset-wizard-dialog .wizard-extra>.field,.asset-wizard-dialog .wizard-extra>.wizard-extra-nested{margin-left:12px;margin-right:12px}
}

/* Compact editor validation feedback, shared across all native editor forms. */
.edit-dialog .dialog-error:not(.hidden){flex:0 0 auto;margin:0;padding:9px 24px;color:#893e34;background:#fff8f6;border-top:1px solid #eed8d3;font-size:12px;line-height:1.5;max-height:20dvh;overflow:auto}
@media(max-width:720px){.edit-dialog .dialog-error:not(.hidden){padding:9px 16px}}

/* The local wizard error follows its control instead of relying on a distant footer. */
.asset-wizard-dialog .wizard-field-feedback{display:block;color:#8e3f34;font-size:12px;font-weight:600;line-height:1.5;padding-top:2px}
.asset-wizard-dialog [aria-invalid="true"]{border-color:#ac4c42;box-shadow:0 0 0 1px #ac4c42}
.edit-dialog .dialog-error:focus{outline:none}
.edit-dialog .dialog-head h2:focus{outline:none}

/* Dialog-only touch ergonomics, preserving native disclosure markers. */
.edit-dialog .icon-close{min-width:44px;min-height:44px;display:grid;place-items:center;border-radius:10px;flex:0 0 auto}
.edit-dialog .dialog-footer .btn{min-height:44px}
.edit-dialog .advanced-apis>summary{min-height:44px}

/* Only concise CSV result counts are live-announced, never the entire review list. */
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
#csvReviewHeading:focus{outline:none}

/* Contextual DeFi valuation guidance shared by editor and asset wizard. */
.economic-guidance{margin:10px 0 4px;padding:10px 12px;border-radius:9px;background:#f3f7f3;color:#43654f;font-size:12px;font-weight:500;line-height:1.6}
.economic-guidance:empty{display:none}
.economic-guidance-warning{background:#fff7ee;color:#82512b;border:1px solid #eadbc8}
#defiRole[aria-invalid="true"],#wizardEconomicRole[aria-invalid="true"]{border-color:#a65a35}

/* Staking scan guidance is intentionally an explanation, not a failed-scan banner. */
.wallet-staking-options #scanAssetInfo{line-height:1.6;overflow-wrap:anywhere}


/* One segmented time-range control for every native chart.
   Presets vary by data source; visual treatment and pressed semantics do not. */
.chart-period,
#historyPage .chart-period.history-chart-period,
.chart-period.position-period{
 display:inline-flex;align-items:center;flex-wrap:nowrap;gap:2px;
 width:max-content;max-width:100%;min-width:0;
 padding:3px;margin:0;border:1px solid #e1eae2;border-radius:12px;background:#f2f7f2
}
.chart-period button,
#historyPage .chart-period.history-chart-period button,
.chart-period.position-period button{
 appearance:none;display:inline-flex;align-items:center;justify-content:center;
 flex:0 0 auto;min-width:43px;min-height:38px;
 padding:8px 12px;border:0;border-radius:9px;background:transparent;
 color:#4d6756;font-size:11px;font-weight:730;line-height:1.2;white-space:nowrap
}
.chart-period button.selected,.chart-period button[aria-pressed="true"],
#historyPage .chart-period.history-chart-period button.selected,
#historyPage .chart-period.history-chart-period button[aria-pressed="true"],
.chart-period.position-period button.selected,
.chart-period.position-period button[aria-pressed="true"]{
 background:#fff;border:0;color:#245a3d;box-shadow:0 1px 4px #183b2715;font-weight:760
}
.chart-period button:focus-visible{outline:2px solid #397f52;outline-offset:-2px}
.chart-period button:disabled{opacity:.42;cursor:not-allowed}
.chart-period.mini-chart-periods{margin:-2px 0 10px}
.chart-period.position-period{margin-top:15px}
#historyPage .history-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0}
#historyPage .history-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto;margin-left:auto}
#historyPage .history-actions .history-calendar-popover{margin-left:0}
#historyPage .history-calendar-panel{left:auto;right:0}
@media(max-width:767px){
 .chart-period button,
 #historyPage .chart-period.history-chart-period button,
 .chart-period.position-period button{min-width:39px;min-height:36px;padding:7px 9px}
 #historyPage .history-actions{gap:7px}
 #historyPage .history-actions .history-add-button{
  background:#26563d;color:#fff;border-color:#26563d
 }
 #historyPage .history-actions .history-add-button:hover{
  background:#173b2d;color:#fff;border-color:#173b2d
 }
}
@media(max-width:360px){
 .chart-period button,
 #historyPage .chart-period.history-chart-period button,
 .chart-period.position-period button{min-width:35px;min-height:36px;padding:7px 6px;font-size:10px}
 #historyPage .history-controls{gap:5px}
}

/* Native six-option market periods: limit phones to 4 presets plus one More menu. */
.chart-period.position-period{position:relative;flex-wrap:nowrap}
.chart-period.position-period .position-period-long{display:inline-flex;align-items:center;gap:2px}
.chart-period.position-period .position-period-more{display:none}
@media(max-width:767px){
 .chart-period.position-period:has(.position-period-more) .position-period-long{display:none}
 .chart-period.position-period .position-period-more{display:block;position:relative}
 .chart-period.position-period .position-period-more>summary{
  display:flex;align-items:center;justify-content:center;min-width:43px;min-height:36px;
  padding:7px 8px;border-radius:9px;color:#4d6756;font-size:11px;font-weight:730;
  list-style:none;cursor:pointer
 }
 .chart-period.position-period .position-period-more>summary::-webkit-details-marker{display:none}
 .chart-period.position-period .position-period-more[open]>summary{background:white;color:#245a3d}
 .chart-period.position-period .position-period-popover{
  position:absolute;top:calc(100% + 8px);right:0;z-index:10;
  display:flex;gap:3px;padding:6px;border:1px solid #d8e5db;
  border-radius:11px;background:#fff;box-shadow:0 8px 22px #183b2726
 }
 .chart-period.position-period .position-period-popover button{min-width:48px}
}
@media(max-width:360px){
 .chart-period.position-period .position-period-more>summary{min-width:39px;padding:7px 6px;font-size:10px}
}

/* Position editor: primary holdings first; optional lookup and technical mapping second. */
#positionPickerSearch,#positionMarketMore,#positionWalletMore,#securityGroup{min-width:0}
#positionPickerSearch .field-row{margin-top:10px}
#positionPickerSearch .field{margin-bottom:0}
#securityGroup .inline-actions{margin-top:10px}
#positionMarketMore #exchangeField,#positionMarketMore #marketIdentifiers{margin-top:10px}
#positionWalletMore #walletGroup{margin:0;padding:0;border:0;background:transparent}
#positionWalletMore #walletDetails{min-width:0}
#positionWalletMore .dialog-intro{margin:8px 0}

/* Non-alarming securities metadata review; separate from valuation warnings. */
.position-review-action{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;background:#f7faf7;border:1px solid #e1ece3;border-radius:13px;padding:15px 18px;margin:14px 0}
.listing-review-intro{min-width:0;flex:1 1 220px}
.listing-review-intro>strong{font-size:13px;color:#294c35}
.listing-review-intro p{font-size:12px;color:#57715f;margin:4px 0 0;line-height:1.5}
.position-review-action .btn{max-width:100%;white-space:normal;text-align:center}
.listing-review-panel{margin:0 0 14px;padding:18px;border:1px solid #dce9df;border-radius:13px;background:#fff;min-width:0}
.listing-review-panel h3{font-size:15px;color:#234c34;margin:0 0 7px}
.listing-review-panel>.small-help{margin:0 0 12px;line-height:1.55}
.listing-review-items{max-height:480px;overflow-y:auto;overscroll-behavior:contain}
.listing-review-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 2px;border-bottom:1px solid #edf2ed}
.listing-review-item:last-child{border-bottom:0}
.listing-review-main{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0;overflow-wrap:anywhere}
.listing-review-main strong{font-size:13px;color:#294c35}
.listing-review-main small{font-size:11px;color:#708674}
.listing-review-relevant,.listing-review-optional{font-size:11px;line-height:1.5;color:#6b6553}
.listing-review-optional{color:#708674}
.listing-review-item>.btn{flex:0 0 auto}
.listing-review-more{margin-top:12px}
@media(max-width:420px){.position-review-action{padding:14px}.position-review-action .btn{width:100%}.listing-review-item{align-items:flex-start}.listing-review-item>.btn{padding:10px 9px}}

/* Shared backup password controls must wrap safely at 320px. */
#backupPasswordSetup{min-width:0;max-width:100%}
#backupPasswordSetup .button-row .btn{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:center}
#backupPasswordSetup .field,#backupPasswordSetup .field input{min-width:0;max-width:100%}

/* Full backup configuration stays readable and within 320px. */
.full-backup-option{min-width:0;max-width:100%}
.full-backup-option>span{display:flex;align-items:flex-start;gap:9px;min-width:0;max-width:100%;line-height:1.5}
.full-backup-option strong{flex:1;min-width:0;overflow-wrap:anywhere;font-size:13px}
.full-backup-option input{flex:0 0 auto;width:auto;margin-top:3px}

/* Google Drive: progressive disclosure and compact, responsive controls. */
#googleDriveBackupSetup{min-width:0;max-width:100%}
#googleDriveBackupSetup > summary{font-weight:750}
#googleDriveBackupSetup .drive-backup-intro{margin:7px 0 12px;line-height:1.5}
#googleDriveBackupSetup .drive-status-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;padding:10px 0 12px;border-bottom:1px solid #e6eee7;font-size:12px;min-width:0}
#googleDriveBackupSetup .drive-connection-state{display:inline-flex;align-items:center;gap:6px;padding:4px 9px;border-radius:999px;background:#f2f4f1;color:#5b7062;font-size:11px;font-weight:730}
#googleDriveBackupSetup .drive-connection-state::before{content:"";width:6px;height:6px;border-radius:50%;background:#84988a}
#googleDriveBackupSetup .drive-connection-state[data-connected="true"]{background:#e9f4e9;color:#2d6545}
#googleDriveBackupSetup .drive-connection-state[data-connected="true"]::before{background:#328653}
#googleDriveBackupSetup .drive-last-backup{color:#64786a;min-width:0;overflow-wrap:anywhere}
#googleDriveBackupSetup .drive-setup{padding:9px 0 4px}
#googleDriveBackupSetup .drive-setup .field{margin:6px 0 3px}
#googleDriveBackupSetup .drive-field-help{margin:3px 0 8px}
#googleDriveBackupSetup .drive-setup-help{margin:0 0 12px}
#googleDriveBackupSetup .drive-setup-help > summary,
#googleDriveBackupSetup .drive-management > summary,
#googleDriveBackupSetup .drive-folder-options > summary{cursor:pointer;font-weight:700;color:#3d6a4e;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
#googleDriveBackupSetup .drive-setup-help > summary{display:inline-block;padding:3px 0}
#googleDriveBackupSetup .drive-setup-help ol{margin:10px 0 8px;padding-left:20px;color:#526b59;line-height:1.6;font-size:12px}
#googleDriveBackupSetup .drive-setup-help li{margin-bottom:7px}
#googleDriveBackupSetup .drive-setup-help code{overflow-wrap:anywhere;white-space:normal}
#googleDriveBackupSetup .drive-connect-actions,
#googleDriveBackupSetup .drive-restore-actions,
#googleDriveBackupSetup .drive-folder-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;min-width:0}
#googleDriveBackupSetup :is(.drive-connect-actions,.drive-restore-actions,.drive-folder-actions) .btn{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.35;text-align:center}
#googleDriveBackupSetup #driveDisconnect[hidden],
#googleDriveBackupSetup #driveBackupStatus[hidden]{display:none!important}
#googleDriveBackupSetup .drive-action-status{margin:9px 0 6px;padding:9px 10px;border-radius:9px;background:#f5f8f5;line-height:1.5;overflow-wrap:anywhere}
#googleDriveBackupSetup .drive-action-status.backup-error{background:#fff3ef;color:#8e422f}
#googleDriveBackupSetup .drive-backup-actions{border-top:1px solid #e6eee7;margin-top:9px;padding-top:14px}
#googleDriveBackupSetup .drive-backup-actions .btn{max-width:100%;white-space:normal}
#googleDriveBackupSetup .drive-backup-actions p{margin:7px 0 0}
#googleDriveBackupSetup .drive-options{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(100px,.65fr);gap:12px;margin-top:12px;min-width:0}
#googleDriveBackupSetup .drive-options .field{margin:0;min-width:0}
#googleDriveBackupSetup .drive-options :is(select,input){min-width:0;max-width:100%}
#googleDriveBackupSetup .drive-management{border-top:1px solid #e6eee7;margin-top:16px;padding-top:13px;min-width:0}
#googleDriveBackupSetup .drive-management > summary{font-size:13px}
#googleDriveBackupSetup .drive-management-body{padding:6px 0 4px}
#googleDriveBackupSetup .drive-management-body .field{min-width:0}
#googleDriveBackupSetup .drive-folder-options{border-top:1px solid #edf1ed;margin:14px 0 0;padding-top:12px}
#googleDriveBackupSetup .drive-folder-options > summary{padding:4px 0}
#googleDriveBackupSetup .drive-footer-note{font-size:11px;line-height:1.5;color:#728276;margin:14px 0 0}
@media(max-width:540px){
 #googleDriveBackupSetup .drive-options{grid-template-columns:minmax(0,1fr)}
 #googleDriveBackupSetup .drive-restore-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 #googleDriveBackupSetup .drive-restore-actions #driveRestore{grid-column:1/-1}
 #googleDriveBackupSetup .drive-connect-actions .btn{flex:1 1 auto}
 #googleDriveBackupSetup .drive-status-row{gap:6px 9px}
}
@media(max-width:360px){
 #googleDriveBackupSetup .drive-connect-actions .btn{flex-basis:100%}
 #googleDriveBackupSetup .drive-folder-actions .btn{flex:1 1 100%}
}

/* Backup password: first-time setup is two fields; change and details only on demand. */
#backupPasswordSetup[open]{min-width:0}
#backupPasswordSetup [hidden]{display:none!important}
#backupPasswordSetup .backup-password-intro{margin:8px 0 9px;line-height:1.5}
#backupPasswordSetup .backup-password-state{margin:7px 0 12px;color:#3d6a4e;font-size:12px;font-weight:700;line-height:1.5}
#backupPasswordSetup .backup-password-form{display:grid;gap:9px;min-width:0}
#backupPasswordSetup .backup-password-form .field{margin:0;min-width:0}
#backupPasswordSetup .backup-password-form .field input{max-width:100%;min-width:0}
#backupPasswordSetup .backup-password-form #saveBackupPassword{justify-self:start;margin-top:3px;min-width:0;max-width:100%;white-space:normal}
#backupPasswordSetup .backup-password-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:12px;min-width:0}
#backupPasswordSetup .backup-password-actions .btn{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.4}
#backupPasswordSetup .full-backup-option{margin:15px 0 0}
#backupPasswordSetup .backup-full-hint{margin:4px 0 0;line-height:1.5}
#backupPasswordSetup .backup-password-help{margin-top:12px;padding-top:10px;border-top:1px solid #e6eee7}
#backupPasswordSetup .backup-password-help>summary{cursor:pointer;color:#4c7459;font-size:12px;font-weight:720;line-height:1.5}
#backupPasswordSetup .backup-password-help .small-help{margin:8px 0;line-height:1.55}
@media(max-width:430px){
 #backupPasswordSetup .backup-password-actions{display:grid;grid-template-columns:minmax(0,1fr)}
 #backupPasswordSetup .backup-password-actions .btn{width:100%}
}
/* Capital comparison belongs to return analysis; keep history chart uncluttered. */
.history-insights .history-capital-comparison{padding:6px 0 12px;margin-bottom:11px;border-bottom:1px solid #e6eee7;min-width:0}
.history-insights .history-capital-comparison .csv-skip{margin:0 0 5px;display:flex;align-items:flex-start;gap:9px;min-width:0;line-height:1.5}
.history-insights .history-capital-comparison input{margin-top:2px;flex:0 0 auto}
.history-insights .history-capital-comparison .small-help{margin:0;color:#688071;line-height:1.5}

/* More settings: short forms up front, long setup and privacy on demand. */
.data-source-panel .more-panel-intro{line-height:1.5;margin-top:12px;margin-bottom:10px;color:#546f5b}
.data-source-panel .source-detail > .field{margin-top:10px;margin-bottom:3px;min-width:0}
.data-source-panel .source-detail > .field > span{line-height:1.4}
.data-source-panel .more-field-hint{margin-top:0;margin-bottom:4px;color:#738574;font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.data-source-panel .source-detail > .source-actions{margin-top:12px;margin-bottom:10px}
.data-source-panel .more-panel-help{margin:12px 16px 14px;min-width:0;border-top:1px solid #e5eee7;padding-top:10px}
.data-source-panel .more-panel-help > summary{font-size:12px;color:#3c6b50;font-weight:720;cursor:pointer;line-height:1.5;padding:4px 0;overflow-wrap:anywhere}
.data-source-panel .more-panel-help > summary:focus-visible{outline:2px solid #327f52;outline-offset:3px;border-radius:4px}
.data-source-panel .more-panel-help ol{margin:8px 0 10px;padding-left:19px;color:#536e5b;font-size:12px;line-height:1.6}
.data-source-panel .more-panel-help li{margin-bottom:6px;overflow-wrap:anywhere}
.data-source-panel .more-panel-help p{line-height:1.6;margin:8px 0;color:#576d5c;overflow-wrap:anywhere}
.data-source-panel .more-panel-help code{overflow-wrap:anywhere;white-space:normal}
.data-source-panel .more-panel-help .btn{margin:6px 0 8px}
.data-source-panel .more-subdetail{margin-top:10px;margin-bottom:4px;min-width:0}
.data-source-panel .more-subdetail > summary{font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.data-source-panel .more-subdetail > p,.data-source-panel .more-subdetail > .field,.data-source-panel .more-subdetail > .button-row{margin-left:12px;margin-right:12px}
.data-source-panel .more-subdetail > .more-panel-help{margin-left:12px;margin-right:12px}
.data-source-panel .more-panel-status{margin:5px 16px 8px;line-height:1.5}
.data-source-panel .more-privacy-notes{padding:10px 16px 15px;display:grid;gap:10px}
.data-source-panel .more-privacy-notes section{min-width:0}
.data-source-panel .more-privacy-notes h3{margin:5px 0 2px;font-size:12px;color:#355f47;font-weight:750;line-height:1.4}
.data-source-panel .more-privacy-notes .small-help{margin:0;line-height:1.65;overflow-wrap:anywhere}
@media(max-width:420px){
 .data-source-panel .more-panel-help{margin-left:12px;margin-right:12px}
 .data-source-panel .more-subdetail > p,.data-source-panel .more-subdetail > .field,.data-source-panel .more-subdetail > .button-row{margin-left:10px;margin-right:10px}
 .data-source-panel .more-privacy-notes{padding-left:12px;padding-right:12px}
}

.wallet-history-dialog{width:min(900px,calc(100vw - 24px));max-height:90dvh;overflow:auto}.wallet-history-body{padding:0 24px 24px;min-width:0}.wallet-history-controls{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}.wallet-history-controls .field{flex:1 1 160px;min-width:0}.wallet-history-dialog [data-history=status]{overflow-wrap:anywhere;min-height:2em}.wallet-history-table{overflow:auto;max-width:100%}.wallet-history-table table{width:100%;font-size:.85rem}.wallet-history-table td,.wallet-history-table th{padding:8px;vertical-align:top;overflow-wrap:anywhere;max-width:220px}.wallet-history-events{padding-left:20px}.wallet-history-events li{padding:8px 0;overflow-wrap:anywhere}.wallet-history-events span,.wallet-history-events small{display:block}.wallet-history-dialog .dialog-footer{position:sticky;bottom:0;background:var(--paper,#fff)}@media(max-width:430px){.wallet-history-body{padding:0 12px 16px}.wallet-history-controls .btn{flex:1 1 140px}.wallet-history-dialog .dialog-footer{flex-wrap:wrap}.wallet-history-dialog .dialog-footer button{flex:1 1 140px}}
.wallet-history-dialog [hidden]{display:none!important}
.wallet-history-dialog .chart-y-labels,.wallet-history-dialog .chart-x-labels{color:#405549}.wallet-history-dialog .chart-tooltip span{color:#405549}.wallet-history-dialog .chart-tooltip{background:#fff;color:#173b28}

.cash-comparison-result{overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.cash-terms-overview{margin:0 0 14px;padding:14px;border:1px solid #dce8df;border-radius:14px;background:#fff}
.cash-terms-overview>summary{cursor:pointer;font-weight:700;color:#294d38}
.cash-term-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid #e5eee7}
.cash-term-row>div{min-width:0;overflow-wrap:anywhere}
.cash-term-row small,.liquidity-note{display:block;font-size:12px;color:#506b59;line-height:1.5}
.liquidity-status{display:inline-block;font-size:11px;font-weight:700;margin:4px 4px 2px 0;padding:2px 7px;border-radius:7px;background:#eef3ef;color:#355341}
.liquidity-bound{background:#f5efdf;color:#685123}
.liquidity-free{background:#e8f2e9;color:#285237}
#cashTermsFields[hidden],#fixedTermFields[hidden],#termConfirmationFields[hidden],#termRenewalWrap[hidden]{display:none}
@media(max-width:430px){.cash-term-row{align-items:flex-start}.cash-term-row .link-button{flex-shrink:0;min-height:44px}.provider-account-head .liquidity-note{max-width:190px}}
#cashTermsDisclosure .field small{color:#506b59;font-size:12px;line-height:1.5}

/* Optional AT02-B editor; forecast amounts never enter portfolio totals. */
#interestFields[hidden]{display:none!important}
#interestDisclosure .small-help{color:#506b59}
.interest-rate-row{border:1px solid #dce8df;border-radius:10px;padding:12px;margin:12px 0;min-width:0}
.interest-rate-row legend{font-size:13px;font-weight:700;color:#294d38;padding:0 4px}
.interest-result{min-width:0;overflow-wrap:anywhere}
.interest-result:empty{display:none}
.interest-gross{font-size:18px;font-variant-numeric:tabular-nums}
.interest-periods{max-width:100%;overflow-x:auto;margin:12px 0}
.interest-periods table{border-collapse:collapse;width:100%;font-size:12px}
.interest-periods caption{text-align:left;color:#506b59;padding:8px 0}
.interest-periods th,.interest-periods td{text-align:left;padding:8px;border-bottom:1px solid #dce8df;vertical-align:top}
#interestDisclosure .link-button{min-height:44px}
@media(max-width:430px){.interest-rate-row{padding:10px}#interestCalculate,#interestAddRate{width:100%}}

/* Keep investment class glyphs visible in compact position rows; preserve provider marks. */
@media(max-width:390px){
 .position-entry .holding-mark{display:grid;width:30px;height:30px;border-radius:9px}
 .position-entry .holding-mark svg{width:18px;height:18px}
 .position-entry .holding-l{gap:8px}
}

/* FLH01: keep long evidence out of the compact transaction row. */
.history-row.booking-compact{display:block;min-width:0}
.booking-main{display:grid;grid-template-columns:7em minmax(0,2fr) minmax(0,1.2fr) minmax(0,1fr) minmax(0,1.2fr);gap:10px;align-items:start;width:100%;font-size:12px}
.booking-main>*{min-width:0;overflow-wrap:anywhere}.booking-main>strong:last-child{text-align:right}
.booking-meta{margin-top:8px;font-size:12px}.booking-meta summary{cursor:pointer;min-height:28px;display:list-item}.booking-meta dd{overflow-wrap:anywhere}
@media(max-width:767px){.booking-main{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.booking-main>strong:first-of-type{grid-column:1/-1;grid-row:1}.booking-main>time{grid-column:1}.booking-main>strong:last-child{text-align:left;grid-column:1/-1}}

.transfer-candidate{align-items:flex-start;margin:12px 0;min-height:32px}.transfer-candidate span{min-width:0;overflow-wrap:anywhere}.transfer-candidate input{flex-shrink:0}.transfer-candidate + .transfer-candidate{border-top:1px solid #e8efe8;padding-top:12px}

.annual-record{padding:8px 0;border-bottom:1px solid #e8efe8}.annual-record summary{min-height:36px;padding:8px 0;cursor:pointer;overflow-wrap:anywhere}.annual-record dd{overflow-wrap:anywhere}
.annual-record .holding-facts dt{color:#4d6756;font-size:12px}
#bookingIncome,#incomeRecords,.annual-record,.annual-record .holding-facts{min-width:0;max-width:100%}
#bookingIncome select{min-width:0;max-width:100%;width:100%}
.annual-record summary{white-space:normal;word-break:break-word}
.annual-record .holding-facts>div,.annual-record dd{min-width:0;max-width:100%;word-break:break-word}
/* Native WebKit selects can paint a long selected label beyond their box. */
#bookingIncome select{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Keep the native select interaction while bounding WebKit's anonymous text box. */
#bookingIncome select{-webkit-appearance:none;appearance:none;padding-right:32px;background-image:linear-gradient(45deg,transparent 50%,#4d6756 50%),linear-gradient(135deg,#4d6756 50%,transparent 50%);background-position:calc(100% - 18px) 50%,calc(100% - 13px) 50%;background-size:5px 5px;background-repeat:no-repeat}
@media(forced-colors:active){#bookingIncome select{-webkit-appearance:menulist;appearance:auto;background-image:none}}

#qualityReviewTools select{min-width:0;max-width:100%;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-appearance:none;appearance:none;padding-right:32px;background-image:linear-gradient(45deg,transparent 50%,#4d6756 50%),linear-gradient(135deg,#4d6756 50%,transparent 50%);background-position:calc(100% - 18px) 50%,calc(100% - 13px) 50%;background-size:5px 5px;background-repeat:no-repeat}#qualityReviewTools .field{min-width:0}.quality-review-actions{margin:8px 0;gap:7px}.quality-review-actions .btn{white-space:normal}#qualityReviewTools p{overflow-wrap:anywhere}
@media(forced-colors:active){#qualityReviewTools select{-webkit-appearance:menulist;appearance:auto;background-image:none}}
/* UI07: reproduced AA contrast failures in populated views and open evidence. */
#dashboardPage .chart-y-labels,#dashboardPage .chart-x-labels,#historyPage .chart-y-labels,#historyPage .chart-x-labels{color:#405549}
#dashboardPage .alloc-legend-copy small,#positionFilters .filter:not(.active),#positionList .tag.neutral,#positionList .holding-facts dt,.booking-meta .holding-facts dt{color:#4d6756}
#positionList .tag.warn{color:#795517}
/* FLH02: optional services share existing disclosures without primary cards. */
.optional-connections{border-top:1px solid var(--border,#e3e9e4);padding:.7rem 0;margin-top:.6rem;min-width:0}
.optional-connections>summary{cursor:pointer;font-size:.9rem;min-height:44px;display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.optional-connections>summary small{color:var(--muted,#647267);font-weight:400}
.optional-connection{padding:.5rem 0;min-width:0}.optional-connection>summary{cursor:pointer;min-height:44px;display:flex;align-items:center}
.optional-connections input{max-width:100%;min-width:0}#historyCoverage{margin:1rem 0}#historyCoverage>summary{min-height:44px;cursor:pointer}
#historyBasis{max-width:100%}#snapshotManager #addSnapshot{margin:.8rem 0}#storageMigrationSetup{margin:1rem;padding:1rem}
.optional-connections>summary,.optional-connection>summary,#historyCoverage>summary{list-style:none;gap:10px}
.optional-connections>summary::-webkit-details-marker,.optional-connection>summary::-webkit-details-marker,#historyCoverage>summary::-webkit-details-marker{display:none}
.optional-connections>summary::after,.optional-connection>summary::after,#historyCoverage>summary::after{content:'';display:block;flex:0 0 8px;width:8px;height:8px;border-right:1.8px solid #6b8c73;border-bottom:1.8px solid #6b8c73;transform:rotate(45deg);margin-left:auto;margin-right:5px;transition:transform .15s ease}
.optional-connections[open]>summary::after,.optional-connection[open]>summary::after,#historyCoverage[open]>summary::after{transform:rotate(225deg)}
#historyCoverage>summary{display:flex;align-items:center}
@media(prefers-reduced-motion:reduce){.optional-connections>summary::after,.optional-connection>summary::after,#historyCoverage>summary::after{transition:none}}
