
/* Shared workspace shell. Feature components follow below. */#btfo-app.btfo-app{
 --bt-bg:#0b1017;--bt-side:#111923;--bt-card:#151f2b;--bt-card2:#1b2837;--bt-line:#304155;
 --bt-text:#edf4fa;--bt-muted:#a7b9c9;--bt-green:#38d8a3;--bt-red:#ff8397;--bt-shadow:0 8px 24px #0002;
 --btfo-ui-ink:var(--bt-text);--btfo-ui-muted:var(--bt-muted);--btfo-ui-accent:var(--bt-green);
 box-sizing:border-box;display:grid;grid-template-columns:230px minmax(0,1fr);min-height:calc(100dvh - 32px);max-width:none!important;width:min(var(--btfo-screen-width,calc(100vw - 32px)),calc(100vw - 32px))!important;margin-left:var(--btfo-screen-offset,0px)!important;margin-right:0!important;
 color:var(--bt-text);background:var(--bt-bg);border:1px solid var(--bt-line);border-radius:12px;
 font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;line-height:1.5;position:relative;
}
#btfo-app.btfo-light{
 --bt-bg:#f3f6fa;--bt-side:#fff;--bt-card:#fff;--bt-card2:#edf2f7;--bt-line:#d2dde8;
 --bt-text:#183147;--bt-muted:#526c82;--bt-green:#087a5c;--bt-red:#bb344f;
}
#btfo-app .btfo-sidebar{min-width:0;display:flex;flex-direction:column;background:var(--bt-side);border-right:1px solid var(--bt-line);padding:24px 12px}
#btfo-app .btfo-brand{display:flex;align-items:center;gap:10px;padding:0 10px 22px;color:var(--bt-text);font-size:21px;font-weight:750;line-height:1.2}
#btfo-app .btfo-main{min-width:0;width:100%;padding:24px clamp(14px,2.5vw,34px) 42px;background:var(--bt-bg);color:var(--bt-text);overflow-wrap:anywhere}
#btfo-app .btfo-top{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:18px;padding:0 0 14px;border-bottom:1px solid var(--bt-line)}
#btfo-app .btfo-top h1{margin:0;font-size:clamp(23px,2.4vw,30px);font-weight:750;line-height:1.2;letter-spacing:-.025em}
#btfo-app .btfo-top-actions{display:flex;align-items:center;gap:6px}
#btfo-app .btfo-top-actions button{min-height:40px;font-size:12px;padding:7px 10px;border-radius:7px;line-height:1.2;white-space:nowrap;box-shadow:none}
#btfo-app .btfo-subnav{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 16px}
#btfo-app .btfo-subnav button{padding:8px 12px;min-height:40px;border:1px solid var(--bt-line);border-radius:7px;background:var(--bt-card);color:var(--bt-muted)}
#btfo-app .btfo-subnav button.active{background:var(--bt-green);color:var(--bt-bg);border-color:var(--bt-green)}
@media(max-width:800px) {
#btfo-app.btfo-app{display:block;min-height:600px;width:min(var(--btfo-screen-width,100vw),100vw)!important}
#btfo-app .btfo-sidebar{display:none}
#btfo-app .btfo-main{padding:18px 12px 90px}
#btfo-app .btfo-top{gap:10px}
#btfo-app .btfo-top-actions{flex-wrap:wrap}}
/* Bist Times Finance OS — unified V20-inspired design system, rebuilt 2026 */.btfo-app *{box-sizing:border-box}
.btfo-app button,.btfo-app input,.btfo-app select{font:inherit}
.btfo-app button{cursor:pointer}
.btfo-app [hidden]{display:none!important}
.btfo-app button:focus-visible,.btfo-app input:focus-visible,.btfo-app select:focus-visible{outline:2px solid var(--bt-green);outline-offset:3px}
.btfo-brand em{font-style:normal;color:var(--bt-green)}
.btfo-brand small{display:block;font-size:9px;font-weight:700;letter-spacing:2.3px;color:var(--bt-muted);margin-top:6px}
.btfo-brand small i{font-style:normal;opacity:.5}
.btfo-brand-mark{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#1ee0a01b;border:1px solid #1ee0a055;color:var(--bt-green);font-size:25px}
.btfo-sidebar-rule{height:1px;background:var(--bt-line);margin:30px 8px 20px}
.btfo-nav-label{font-size:10px;letter-spacing:2px;font-weight:800;color:#6f95a8;margin:0 12px 12px}
.btfo-nav{display:grid;gap:5px}
.btfo-nav button{width:100%;display:flex;gap:13px;align-items:center;text-align:left;background:transparent;border:1px solid transparent;color:#a9c0cb;padding:12px 13px;border-radius:12px;font-weight:600;transition:background .15s,color .15s}
.btfo-nav button:hover{background:#ffffff0a;color:#fff}
.btfo-nav button.active{background:linear-gradient(90deg,#19d99a24,#19d99a09);border-color:#19d99a45;color:#effff9;box-shadow:inset 3px 0 var(--bt-green)}
.btfo-nav-icon{width:23px;text-align:center;font-size:20px;color:var(--bt-green);font-weight:400}
.btfo-side-foot{margin-top:auto;border:1px solid var(--bt-line);background:#ffffff05;border-radius:13px;padding:14px 12px;font-size:10px;letter-spacing:.7px;color:#c1d8e1;font-weight:700}
.btfo-side-foot small{display:block;color:var(--bt-muted);font-weight:400;letter-spacing:0;margin-top:5px}
.btfo-status-dot{display:inline-block;width:7px;height:7px;background:var(--bt-green);border-radius:50%;box-shadow:0 0 12px #1ee0a077;margin-right:7px;vertical-align:middle}
.btfo-eyebrow{color:var(--bt-green);letter-spacing:2px;font-size:10px;font-weight:800;margin-bottom:7px}
.btfo-top p{margin:0;color:var(--bt-muted);font-size:13px}
.btfo-date{font-size:12px;color:var(--bt-muted);margin-right:7px}
.btfo-privacy,.btfo-theme,.btfo-profile-trigger{border:1px solid var(--bt-line);border-radius:11px;padding:10px 13px;color:var(--bt-text);background:var(--bt-card)}
.btfo-privacy:hover,.btfo-theme:hover,.btfo-profile-trigger:hover{border-color:var(--bt-green)}
.btfo-notice{padding:12px 15px;border:1px solid #1ee0a055;border-radius:12px;background:#1ee0a012;margin:0 0 20px;color:var(--bt-text)}
.btfo-hero{min-height:250px;border-radius:22px;display:flex;justify-content:space-between;align-items:center;gap:15px;overflow:hidden;position:relative;padding:clamp(23px,3.5vw,42px);background:linear-gradient(112deg,#0d5848 0%,#123e50 52%,#162c4b 100%);border:1px solid #32866f;box-shadow:var(--bt-shadow)}
.btfo-hero:after{content:"";position:absolute;inset:auto -20% -130px 30%;height:240px;background:#1ee0a010;filter:blur(70px);pointer-events:none}
.btfo-hero-copy{position:relative;z-index:2}
.btfo-chip{display:inline-block;border:1px solid #a2f8d06b;background:#ffffff12;border-radius:99px;padding:6px 11px;color:#d7fff0;font-size:10px;letter-spacing:1.2px;font-weight:800}
.btfo-hero p{color:#d1e8e8;font-size:15px;margin:20px 0 3px}
.btfo-money{display:block;color:#fff;font-size:clamp(34px,4.2vw,55px);letter-spacing:-2px;line-height:1.22;font-weight:850}
.btfo-money span{font-size:.57em;color:#aef5da}
.btfo-hero-foot{color:#d1e6e5;font-size:11px;margin-top:12px;max-width:450px}
.btfo-hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}
.btfo-primary,.btfo-app .btfo-form button[type=submit]{background:var(--bt-green);border:1px solid var(--bt-green);color:#062d25;border-radius:11px;padding:11px 16px;font-weight:800}
.btfo-primary:hover,.btfo-app .btfo-form button[type=submit]:hover{background:#65f5c3}
.btfo-ghost{background:#ffffff0f;border:1px solid #ffffff45;border-radius:11px;padding:11px 16px;color:#fff;font-weight:700}
.btfo-hero-visual{width:220px;height:220px;flex:none;display:grid;place-items:center;position:relative;color:#d1fff1;font-size:55px;font-weight:900;letter-spacing:-4px;opacity:.9}
.btfo-hero-visual>span{position:relative;z-index:2;text-shadow:0 0 40px #1ee0a066}
.btfo-orbit{position:absolute;border:1px solid #76f7d555;border-radius:50%;inset:10px;transform:rotate(-25deg)}
.btfo-orbit-one{border-width:2px;box-shadow:0 0 40px #1ee0a012,inset 0 0 40px #1ee0a012}
.btfo-orbit-two{inset:37px;border-style:dashed}
.btfo-orbit-star{color:var(--bt-green);font-size:24px;vertical-align:top}
.btfo-section-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:28px 0 13px}
.btfo-section-heading h2{font-size:17px;color:var(--bt-text);margin:0}
.btfo-section-heading>span{font-size:11px;color:var(--bt-muted)}
.btfo-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.btfo-kpis article{min-width:0;border:1px solid var(--bt-line);background:linear-gradient(145deg,var(--bt-card),#0e2030);border-radius:16px;padding:18px;display:flex;flex-direction:column;box-shadow:0 6px 20px #0001}
.btfo-kpi-icon{width:34px;height:34px;display:grid;place-items:center;background:#1ee0a015;color:var(--bt-green);border-radius:10px;font-size:21px;margin-bottom:13px}
.btfo-kpis small{color:var(--bt-muted);font-size:11px}
.btfo-kpis strong{color:var(--bt-text);font-size:clamp(17px,1.9vw,25px);letter-spacing:-.5px;line-height:1.3;margin:7px 0;overflow-wrap:anywhere}
.btfo-kpis article>span:last-child{color:#7e9bad;font-size:10px}
.btfo-columns{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:15px;margin-top:17px}
.btfo-card{min-width:0;background:var(--bt-card);border:1px solid var(--bt-line);border-radius:17px;padding:23px;margin-bottom:16px;box-shadow:0 6px 22px #0001}
.btfo-columns .btfo-card{margin-bottom:0}
.btfo-card-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:17px}
.btfo-card-overline{font-size:9px;color:var(--bt-green);font-weight:800;letter-spacing:1.5px}
.btfo-card h2{font-size:18px;margin:0 0 17px;color:var(--bt-text);font-weight:750}
.btfo-card-heading h2{margin:3px 0 0}
.btfo-link{background:transparent;border:0;color:var(--bt-green);font-size:11px;font-weight:700;padding:6px;white-space:nowrap}
.btfo-row{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:14px 0;border-bottom:1px solid var(--bt-line);color:var(--bt-text)}
.btfo-row:last-of-type{border-bottom:0}
.btfo-row strong{font-size:13px;font-weight:700}
.btfo-row small{display:block;color:var(--bt-muted);font-size:11px;margin-top:5px;overflow-wrap:anywhere}
.btfo-row b{white-space:nowrap;font-size:13px}
.btfo-trade-correction{flex:0 0 auto;max-width:100%}.btfo-trade-correction>summary{cursor:pointer;color:var(--bt-green);font-size:12px;font-weight:700}.btfo-trade-correction .btfo-form{margin-top:12px;padding:14px;border:1px solid var(--bt-line);border-radius:12px;background:var(--bt-card2)}
.btfo-entry-icon{color:var(--bt-green);font-size:18px;margin-right:5px}
.btfo-positive{color:var(--bt-green)}
.btfo-negative{color:var(--bt-red)}
.btfo-card-note{font-size:11px;color:var(--bt-muted);border-top:1px solid var(--bt-line);padding-top:13px;margin-top:15px}
.btfo-bottom-note{display:flex;align-items:flex-start;gap:14px;margin-top:15px;padding:18px 21px;border-radius:15px;background:#1ee0a009;border:1px solid #1ee0a02e}
.btfo-bottom-note>span{font-size:23px;color:var(--bt-green)}
.btfo-bottom-note strong{color:var(--bt-text);font-size:13px}
.btfo-bottom-note p{margin:4px 0 0;color:var(--bt-muted);font-size:12px}
.btfo-app [data-btfo-panel='accounts'],.btfo-app [data-btfo-panel='transactions']{max-width:1050px}
.btfo-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.btfo-form label{display:grid;gap:7px;font-size:12px;color:var(--bt-muted);font-weight:650}
.btfo-form input,.btfo-form select{width:100%;min-width:0;border:1px solid var(--bt-line);border-radius:10px;padding:12px 13px;background:var(--bt-card2);color:var(--bt-text)}
.btfo-form input::placeholder{color:#7995a7}
.btfo-form button[type=submit]{justify-self:start;align-self:end}
.btfo-help{color:var(--bt-muted);font-size:13px;line-height:1.7}
.btfo-mobile{display:none}
#btfo-app.btfo-private .btfo-sensitive{filter:blur(9px)!important;user-select:none;pointer-events:none}
.btfo-guest{padding:20px;border:1px solid #254256;border-radius:14px}
.btfo-light .btfo-nav button{color:#547083}
.btfo-light .btfo-nav button.active{color:#0b6e52}
.btfo-light .btfo-side-foot{color:#254658}
.btfo-light .btfo-kpis article{background:#fff}
.btfo-light .btfo-hero{color:#fff}
.btfo-light .btfo-primary{color:#fff}
.btfo-light .btfo-hero .btfo-primary{background:#1ee0a0;color:#062d25}
.btfo-light .btfo-card{box-shadow:0 6px 22px #153d5210}
@media(max-width:1100px){
.btfo-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
.btfo-hero-visual{width:160px;height:160px}
.btfo-orbit{inset:5px}
.btfo-orbit-two{inset:27px}}
@media(max-width:800px){
.btfo-date{display:none}
.btfo-hero{padding:24px;min-height:230px}
.btfo-hero-visual{display:none}
.btfo-columns{grid-template-columns:1fr}
.btfo-mobile{display:grid;grid-template-columns:repeat(9,minmax(60px,1fr));overflow-x:auto;scrollbar-width:none;position:sticky;bottom:0;z-index:5;background:#0d2233;border-top:1px solid #284557;padding:7px 4px;box-shadow:0 -12px 28px #0004}
.btfo-mobile button{border:0;background:transparent;color:#a9c0cb;padding:8px 2px;font-size:21px;line-height:1.2}
.btfo-mobile button small{display:block;font-size:10px;margin-top:4px}
.btfo-mobile button.active{color:#1ee0a0}}
@media(max-width:520px){
.btfo-kpis{gap:9px}
.btfo-kpis article{padding:13px}
.btfo-kpis strong{font-size:18px}
.btfo-hero{padding:21px}
.btfo-money{font-size:34px;letter-spacing:-1px}
.btfo-form{grid-template-columns:1fr}
.btfo-card{padding:17px}
.btfo-card-heading{align-items:flex-start}
.btfo-row{align-items:flex-start}
.btfo-row b{font-size:12px}}
@media(prefers-reduced-motion:reduce){
.btfo-app *{transition:none!important;animation:none!important}}
/* 2.4.0 market overview, real data only */.btfo-market-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}
.btfo-market-grid>div{padding:17px;border:1px solid var(--bt-line);background:var(--bt-card2);border-radius:14px;min-width:0}
.btfo-market-grid small{display:block;color:var(--bt-muted);font-size:11px;margin-bottom:10px}
.btfo-market-grid strong{display:block;color:var(--bt-text);font-size:clamp(16px,1.7vw,23px);overflow-wrap:anywhere}@media(max-width:1050px){
.btfo-market-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:500px){
.btfo-market-grid{gap:9px}
.btfo-market-grid>div{padding:12px}
.btfo-market-grid strong{font-size:16px}}
/* 2.5.0 · Price history and data quality */.btfo-quality-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}
.btfo-quality-grid>div{padding:16px;border:1px solid rgba(142,180,193,.17);border-radius:16px;background:rgba(14,43,58,.32);display:flex;flex-direction:column;gap:5px}
.btfo-quality-grid strong{font-size:28px;font-weight:800;line-height:1.15}
.btfo-quality-grid small{color:var(--muted,#a3bac7);font-size:12px}
.btfo-history-item{border-top:1px solid rgba(142,180,193,.16);padding:20px 0 10px}
.btfo-history-item h3{margin:0;font-size:16px}
.btfo-history-svg{display:block;width:100%;height:190px;margin:8px 0;color:inherit}
.btfo-history-axis{display:flex;justify-content:space-between;gap:12px;font-size:11px;opacity:.7}
.btfo-history-axis span:last-child{text-align:right}@media(max-width:720px){
.btfo-quality-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.btfo-history-svg{height:145px}
.btfo-history-axis{font-size:10px}}
/* 2.7.0: Member-first portfolio workspace. Technical diagnostics stay in wp-admin. */.btfo-app [data-btfo-panel="portfolio"]{display:flex;flex-direction:column;gap:16px}
.btfo-app [data-btfo-panel="portfolio"]>.btfo-card{margin-bottom:0}
.btfo-portfolio-intro{order:0;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:26px 30px;border:1px solid #32866f;border-radius:20px;background:linear-gradient(110deg,#104b40,#133b50 65%,#172e4b);box-shadow:0 15px 40px #0002}
.btfo-portfolio-intro h2{margin:6px 0;font-size:clamp(24px,3vw,34px);color:#fff;letter-spacing:-1px}
.btfo-portfolio-intro p{margin:0;color:#c8e4e4;font-size:13px}
.btfo-portfolio-symbol{width:58px;height:58px;border:1px solid #85f6d26b;border-radius:18px;display:grid;place-items:center;color:#a5ffdd;font-size:35px}
.btfo-app .btfo-market-summary{order:1;border-color:#29836d;background:linear-gradient(135deg,#113f3b,var(--bt-card) 65%)}
.btfo-app .btfo-holdings{order:2}
.btfo-app .btfo-history-card{order:3}
.btfo-app .btfo-recent-trades{order:4}
.btfo-app .btfo-dividend-form{order:6}
.btfo-app .btfo-dividend-list{order:7}
.btfo-app .btfo-market-grid>div:first-child{background:#1ee0a00e;border-color:#1ee0a04d}
.btfo-app .btfo-holdings>.btfo-row{padding:18px 14px;border:1px solid var(--bt-line);border-radius:13px;background:var(--bt-card2);margin:9px 0}
@media(max-width:520px){
.btfo-portfolio-intro{padding:20px}
.btfo-portfolio-symbol{width:44px;height:44px;font-size:25px}
.btfo-app .btfo-holdings>.btfo-row{padding:12px}}
/* 2.8.0: compact member-facing chart period selection. */.btfo-history-range{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.btfo-range-btn{border:1px solid rgba(142,180,193,.25);background:transparent;color:inherit;padding:8px 12px;border-radius:10px;font:inherit;font-size:12px;cursor:pointer}
.btfo-range-btn.active{background:#087c65;border-color:#14ba92;color:#fff}
.btfo-range-btn:focus-visible{outline:2px solid #2adbb2;outline-offset:2px}
.btfo-history-item [hidden]{display:none!important}
.btfo-holdings [data-btfo-holding-empty][hidden]{display:none!important}
/* 3.0 portfolio distribution */.btfo-allocation-list{display:grid;gap:14px;margin-top:16px}
.btfo-allocation-label{display:flex;justify-content:space-between;gap:12px;font-size:13px;margin-bottom:6px}
.btfo-allocation-track{height:9px;border-radius:99px;background:rgba(128,148,170,.18);overflow:hidden}
.btfo-allocation-fill{height:100%;border-radius:99px;background:linear-gradient(90deg,#10b981,#34d399)}
/* 3.7.0: minimal member experience, native accessible transaction disclosure. */.btfo-app [hidden]{display:none!important}
.btfo-action-details{padding:18px 22px}
.btfo-action-details>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;font-weight:700;font-size:16px;min-height:42px}
.btfo-action-details>summary::-webkit-details-marker{display:none}
.btfo-action-details>summary:after{content:'+';font-size:24px;color:#34d399;line-height:1}
.btfo-action-details[open]>summary:after{content:'−'}
.btfo-action-details>summary small{font-size:12px;font-weight:400;opacity:.7;margin-left:auto}
.btfo-action-details[open]>summary{margin-bottom:18px;padding-bottom:14px;border-bottom:1px solid var(--bt-line)}
.btfo-action-details>summary:focus-visible{outline:2px solid #34d399;outline-offset:4px;border-radius:6px}
.btfo-visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:520px){
.btfo-action-details{padding:14px}
.btfo-action-details>summary{flex-wrap:wrap}
.btfo-action-details>summary small{font-size:11px}}
/* 3.9.0: optional, plain-language trade preview */#btfo-app .btfo-trade-preview{display:flex;flex-direction:column;gap:5px;padding:14px 16px;border:1px solid rgba(120,140,160,.25);border-radius:14px;background:rgba(120,140,160,.07)}
#btfo-app .btfo-trade-preview span{font-size:12px;opacity:.8}
#btfo-app .btfo-trade-preview strong{font-size:20px;font-variant-numeric:tabular-nums}
#btfo-app .btfo-trade-preview small{font-size:12px;line-height:1.5;opacity:.85}
.btfo-note-search-label{display:block;margin:14px 0;font-weight:600}
.btfo-note-search{display:block;width:100%;margin-top:8px;padding:12px;border:1px solid var(--bt-line);border-radius:10px;background:transparent;color:inherit}
.btfo-note-item[hidden]{display:none!important}
.btfo-note-delete-form{margin:12px 0}
.btfo-note-delete{border:1px solid #ef4444;border-radius:9px;padding:9px 14px;background:transparent;color:#f87171;cursor:pointer}
.btfo-budget-track{height:7px;border-radius:99px;background:#dce6e9;overflow:hidden;margin-top:7px;max-width:340px}
.btfo-budget-track span{display:block;height:100%;border-radius:99px;background:#159a83}
/* Finance OS 5.6: data-driven member finance charts */.btfo-chart-legend{display:flex;gap:18px;flex-wrap:wrap;font-size:13px;margin-bottom:12px}
.btfo-chart-legend span{display:inline-flex;align-items:center;gap:7px}
.btfo-chart-legend i{display:inline-block;width:11px;height:11px;border-radius:3px}
.btfo-legend-income,.btfo-income-bar{background:#139d82}
.btfo-legend-expense,.btfo-expense-bar{background:#e3a04e}
.btfo-trend-chart{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;min-height:190px;align-items:end;padding:8px 0 0;border-bottom:1px solid #dbe5eb}
.btfo-trend-month{min-width:0;text-align:center;font-size:11px;color:#52616e}
.btfo-trend-month small{display:block;white-space:nowrap;font-size:10px;margin-top:7px}
.btfo-trend-bars{height:150px;display:flex;align-items:end;justify-content:center;gap:4px}
.btfo-trend-bar{width:min(24px,42%);min-height:0;border-radius:5px 5px 0 0;display:block}
.btfo-distribution-row{margin:12px 0}
.btfo-distribution-row>div:first-child{display:flex;justify-content:space-between;gap:12px;font-size:13px;flex-wrap:wrap}
.btfo-distribution-row>div:first-child span{color:#52616e}
.btfo-distribution-track{height:9px;border-radius:99px;background:#e7edf1;overflow:hidden;margin-top:6px}
.btfo-distribution-track>span{display:block;height:100%;background:#139d82;border-radius:99px}
@media(max-width:540px){
.btfo-trend-chart{gap:3px}
.btfo-trend-bars{gap:2px}
.btfo-trend-month small{font-size:9px}}
/* Finance OS 5.7.0: period comparison */.btfo-period-comparison{margin:20px 0}
.btfo-period-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.btfo-period-card{display:flex;flex-direction:column;gap:7px;padding:16px;border:1px solid rgba(100,116,139,.22);border-radius:14px;background:rgba(100,116,139,.07)}
.btfo-period-card strong{font-size:14px}
.btfo-period-card b{font-size:17px}
.btfo-period-card small{font-size:12px;opacity:.8}@media(max-width:720px){
.btfo-period-grid{grid-template-columns:1fr}}
/* 5.8.0: historical quote range summary; does not imply portfolio performance */.btfo-history-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}
.btfo-history-stats span{display:flex;flex-direction:column;gap:5px;padding:11px;border:1px solid rgba(128,153,170,.22);border-radius:12px;min-width:0}
.btfo-history-stats small{font-size:12px;opacity:.78}
.btfo-history-stats strong{font-size:15px;overflow-wrap:anywhere}
@media(max-width:680px){
.btfo-history-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* 6.2.0 — Portfolio Performance Center */#btfo-app .btfo-performance-center{margin:24px 0;padding:18px;border:1px solid var(--btfo-border,rgba(140,165,185,.24));border-radius:18px;background:var(--btfo-surface,rgba(15,37,55,.35))}
#btfo-app .btfo-performance-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:14px}
#btfo-app .btfo-performance-head h2{margin:5px 0;font-size:clamp(1.3rem,2vw,1.75rem)}
#btfo-app .btfo-performance-head p{margin:0;opacity:.8}
#btfo-app .btfo-performance-period{font-size:.83rem;opacity:.85;padding:8px 12px;border:1px solid currentColor;border-radius:999px}
#btfo-app .btfo-performance-notice{border-left:3px solid #19b88d;padding:12px 14px;background:rgba(25,184,141,.07);margin-bottom:16px;font-size:.92rem;line-height:1.55}
#btfo-app .btfo-performance-section{margin-top:14px}
#btfo-app .btfo-performance-section>.btfo-card{margin:0}
#btfo-app .btfo-performance-footnote{font-size:.82rem;opacity:.75;line-height:1.6;margin:16px 2px 0}
@media(max-width:640px){
#btfo-app .btfo-performance-center{padding:12px}
#btfo-app .btfo-performance-period{width:100%;text-align:center}
#btfo-app .btfo-performance-head{gap:10px}}
/* Financial goals: native progress bar, no charting library or background requests. */.btfo-goal{padding:14px 0;border-top:1px solid var(--btfo-border,#e2e8f0)}
.btfo-goal progress{display:block;width:100%;height:9px;accent-color:#10b981;margin:8px 0}
.btfo-goal-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.btfo-goal-actions form{display:inline;margin:0}
.btfo-goal-actions button{background:transparent;border:1px solid #64748b;border-radius:7px;padding:5px 12px;cursor:pointer;color:inherit}

/* Compact, horizontally scrollable mobile navigation for distinct finance modules. */
@media(max-width:800px){
.btfo-mobile{display:flex;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;gap:2px}
.btfo-mobile button{flex:0 0 64px;min-width:64px}
.btfo-app [data-btfo-panel="wealth"],.btfo-app [data-btfo-panel="goals"]{max-width:1050px}}
/* Member cockpit: responsive and consistent with existing Finance OS theme. */#btfo-app .btfo-cockpit{margin:0 0 24px;padding:22px;border:1px solid var(--bt-line,rgba(130,160,180,.25));border-radius:18px;background:var(--btfo-surface,#142238);color:inherit}
#btfo-app .btfo-cockpit-head{display:flex;align-items:start;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:18px}
#btfo-app .btfo-cockpit-head h2{margin:5px 0;font-size:22px}
#btfo-app .btfo-cockpit-head p{margin:0;opacity:.8}
#btfo-app .btfo-cockpit-state{padding:6px 10px;border:1px solid rgba(150,175,185,.35);border-radius:30px;font-size:12px}
#btfo-app .btfo-cockpit-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
#btfo-app .btfo-cockpit-grid article{min-width:0;display:flex;flex-direction:column;gap:8px;padding:16px;border-radius:13px;background:rgba(130,160,180,.09)}
#btfo-app .btfo-cockpit-grid small{opacity:.82}
#btfo-app .btfo-cockpit-grid strong{font-size:clamp(16px,1.8vw,24px);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#btfo-app .btfo-cockpit-grid article>span{font-size:11px;opacity:.72}
#btfo-app .btfo-cockpit-meta{display:flex;gap:18px;flex-wrap:wrap;margin:15px 0;font-size:12px;opacity:.85}
#btfo-app .btfo-cockpit-warning{padding:12px 14px;border-radius:10px;border:1px solid rgba(245,158,11,.35);font-size:13px}
#btfo-app .btfo-cockpit-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
#btfo-app .btfo-cockpit-actions button{border:1px solid rgba(120,160,180,.45);border-radius:10px;padding:10px 14px;min-height:44px;background:transparent;color:inherit;cursor:pointer}
#btfo-app .btfo-cockpit-actions button:first-child{background:#087c65;color:white;border-color:#087c65}
#btfo-app .btfo-cockpit-actions button:focus-visible{outline:2px solid #34d399;outline-offset:2px}
@media(max-width:1100px){
#btfo-app .btfo-cockpit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){
#btfo-app .btfo-cockpit{padding:14px}
#btfo-app .btfo-cockpit-grid{grid-template-columns:1fr 1fr;gap:8px}
#btfo-app .btfo-cockpit-grid article{padding:12px}
#btfo-app .btfo-cockpit-grid strong{font-size:16px}}
/* Member portfolio health: responsive, read-only and no inferred valuations. */#btfo-app .btfo-health{margin-bottom:18px}
#btfo-app .btfo-health-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:15px 0}
#btfo-app .btfo-health-grid>div{min-width:0;padding:14px;border-radius:12px;background:rgba(130,160,180,.09);display:flex;flex-direction:column;gap:7px}
#btfo-app .btfo-health-grid small{opacity:.78}
#btfo-app .btfo-health-grid strong{font-size:clamp(17px,2vw,24px);overflow-wrap:anywhere}
#btfo-app .btfo-health-alert{border:1px solid rgba(245,158,11,.4);border-radius:10px;padding:12px;font-size:13px}
@media(max-width:720px){
#btfo-app .btfo-health-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Member experience: compact, accessible next actions and portfolio distribution. */#btfo-app .btfo-next-actions{margin-top:16px;padding:14px 16px;border:1px solid var(--bt-line,rgba(130,160,180,.25));border-radius:12px}
#btfo-app .btfo-next-actions h3,#btfo-app .btfo-health-leaders h3{font-size:15px;margin:0 0 10px}
#btfo-app .btfo-next-actions p{font-size:13px;line-height:1.6;margin:8px 0}
#btfo-app .btfo-next-actions button{border:0;background:transparent;text-decoration:underline;color:inherit;cursor:pointer;font:inherit;font-weight:650;padding:4px}
#btfo-app .btfo-next-actions button:focus-visible{outline:2px solid currentColor;outline-offset:3px}
#btfo-app .btfo-health-leaders{margin-top:18px;max-width:650px}
#btfo-app .btfo-health-leader{display:grid;grid-template-columns:80px minmax(0,1fr) 65px;align-items:center;gap:12px;margin:10px 0;font-size:13px}
#btfo-app .btfo-health-leader strong{text-align:right;font-variant-numeric:tabular-nums}
#btfo-app .btfo-health-track{height:9px;border-radius:20px;background:rgba(130,160,180,.18);overflow:hidden}
#btfo-app .btfo-health-track span{display:block;height:100%;border-radius:20px;background:#39a9a0}
@media(max-width:480px){
#btfo-app .btfo-health-leader{grid-template-columns:65px minmax(0,1fr) 55px;gap:8px}}
/* Read-only monthly insights; consistent with the existing Finance OS cards. */#btfo-app .btfo-monthly-insights{margin:18px 0;padding:22px}
#btfo-app .btfo-monthly-head{display:flex;align-items:center;justify-content:space-between;gap:16px}
#btfo-app .btfo-monthly-head p{margin:5px 0;color:var(--btfo-muted,#64748b);font-size:13px}
#btfo-app .btfo-monthly-head button{border:1px solid currentColor;border-radius:9px;background:transparent;color:inherit;padding:9px 12px;cursor:pointer}
#btfo-app .btfo-monthly-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px}
#btfo-app .btfo-monthly-grid>div{padding:14px;border-radius:12px;background:rgba(128,128,128,.07);min-width:0}
#btfo-app .btfo-monthly-grid small{display:block;margin-bottom:8px;opacity:.75}
#btfo-app .btfo-monthly-grid strong{font-size:clamp(15px,2vw,23px);overflow-wrap:anywhere}
#btfo-app .btfo-monthly-detail{display:flex;flex-wrap:wrap;gap:10px 22px;margin-top:14px;font-size:13px}
@media(max-width:560px){
#btfo-app .btfo-monthly-insights{padding:14px}
#btfo-app .btfo-monthly-head{align-items:flex-start}
#btfo-app .btfo-monthly-grid{grid-template-columns:1fr;gap:7px}
#btfo-app .btfo-monthly-grid>div{padding:11px}}
/* Member goal scenario calculator and category-level monthly spending insight. */
#btfo-app .btfo-goal-simulator{margin:18px 0;padding:clamp(16px,2vw,24px)}
#btfo-app .btfo-goal-simulator-intro,#btfo-app .btfo-goal-simulator-note{font-size:12px;line-height:1.6;color:var(--bt-muted);max-width:78ch}
#btfo-app .btfo-goal-simulator-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}
#btfo-app .btfo-goal-simulator-fields label{display:grid;gap:6px;font-size:12px;color:var(--bt-muted)}
#btfo-app .btfo-goal-simulator-fields input{width:100%;min-width:0;min-height:42px;padding:9px 11px;border:1px solid var(--bt-line);border-radius:9px;background:var(--bt-card2);color:var(--bt-text)}
#btfo-app .btfo-goal-simulator-actions button{min-height:40px;padding:9px 14px;border:0;border-radius:9px;background:var(--bt-accent);color:#fff;font-weight:650;cursor:pointer}
#btfo-app .btfo-goal-simulator-actions p{margin:8px 0;color:var(--bt-muted);font-size:12px}
#btfo-app .btfo-goal-simulator-result{display:grid;gap:5px;margin-top:14px;padding:14px;border:1px solid var(--bt-line);border-radius:11px;background:var(--bt-card2)}
#btfo-app .btfo-goal-simulator-result strong{font-size:18px;color:var(--bt-text)}
#btfo-app .btfo-goal-simulator-result span{font-size:12px;color:var(--bt-muted)}
#btfo-app .btfo-monthly-categories{margin-top:18px;padding-top:15px;border-top:1px solid var(--bt-line)}
#btfo-app .btfo-monthly-categories h3{margin:0 0 12px;font-size:14px}
#btfo-app .btfo-monthly-category{margin:10px 0}
#btfo-app .btfo-monthly-category>div:first-child{display:flex;justify-content:space-between;gap:12px;font-size:12px}
#btfo-app .btfo-monthly-category>div:first-child span{color:var(--bt-muted);text-align:right}
#btfo-app .btfo-monthly-category-track{height:6px;margin-top:6px;border-radius:99px;background:var(--bt-card2);overflow:hidden}
#btfo-app .btfo-monthly-category-track span{display:block;height:100%;border-radius:99px;background:var(--bt-accent)}
@media(max-width:760px){#btfo-app .btfo-goal-simulator-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){#btfo-app .btfo-goal-simulator-fields{grid-template-columns:1fr}#btfo-app .btfo-monthly-category>div:first-child{align-items:flex-start;flex-direction:column;gap:3px}}
/* Cash-flow-neutral portfolio drawdown risk panel. */
#btfo-app .btfo-risk-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}
#btfo-app .btfo-risk-metrics>div{display:grid;align-content:start;gap:6px;min-width:0;padding:13px;border:1px solid var(--bt-line);border-radius:11px;background:var(--bt-card2)}
#btfo-app .btfo-risk-metrics small,#btfo-app .btfo-risk-metrics span{color:var(--bt-muted);font-size:11px;line-height:1.45}
#btfo-app .btfo-risk-metrics strong{font-size:19px;overflow-wrap:anywhere}
@media(max-width:640px){#btfo-app .btfo-risk-metrics{grid-template-columns:1fr}}
/* Paramla-inspired all-assets overview, with strict source completeness. */
#btfo-app .btfo-integrated-portfolio{margin:0 0 18px;padding:clamp(16px,2vw,24px)}
#btfo-app .btfo-integrated-portfolio .btfo-card-heading{align-items:center;gap:14px}
#btfo-app .btfo-integrated-portfolio .btfo-card-heading h2{margin:3px 0 0;font-size:clamp(20px,2vw,26px)}
#btfo-app .btfo-integrated-portfolio .btfo-card-heading button{border:1px solid var(--bt-line);border-radius:9px;padding:8px 11px;background:var(--bt-card2);color:var(--bt-text);cursor:pointer}
#btfo-app .btfo-integrated-total{display:grid;gap:4px;margin:16px 0;padding:16px;border:1px solid var(--bt-line);border-radius:12px;background:var(--bt-card2)}
#btfo-app .btfo-integrated-total small,#btfo-app .btfo-integrated-total span{font-size:11px;color:var(--bt-muted)}
#btfo-app .btfo-integrated-total strong{font-size:clamp(22px,3vw,34px);letter-spacing:-.03em}
#btfo-app .btfo-integrated-chart{display:grid;grid-template-columns:minmax(170px,220px) minmax(0,1fr);align-items:center;gap:clamp(20px,4vw,42px);padding:18px 0 22px;border-bottom:1px solid var(--bt-line)}
#btfo-app .btfo-integrated-donut{width:clamp(158px,20vw,204px);aspect-ratio:1;border-radius:50%;display:grid;place-items:center;justify-self:center;position:relative}
#btfo-app .btfo-integrated-donut>div{width:70%;aspect-ratio:1;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:10px;box-sizing:border-box;text-align:center;background:var(--bt-card);box-shadow:0 0 0 1px var(--bt-line)}
#btfo-app .btfo-integrated-donut small{color:var(--bt-muted);font-size:11px}
#btfo-app .btfo-integrated-donut strong{max-width:100%;font-size:clamp(13px,1.5vw,18px);line-height:1.25;overflow-wrap:anywhere}
#btfo-app .btfo-integrated-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px}
#btfo-app .btfo-integrated-legend-row{display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;gap:8px;min-width:0;padding:8px 0}
#btfo-app .btfo-integrated-legend-row>i{width:9px;height:9px;border-radius:50%;background:var(--btfo-allocation-color)}
#btfo-app .btfo-integrated-legend-row>span{font-size:12px;line-height:1.35}
#btfo-app .btfo-integrated-legend-row>b{display:grid;text-align:right;font-size:12px;white-space:nowrap}
#btfo-app .btfo-integrated-legend-row>b small{margin-top:2px;color:var(--bt-muted);font-size:10px;font-weight:400}
#btfo-app .btfo-integrated-partial{display:grid;gap:5px;margin:16px 0;padding:15px;border:1px solid var(--bt-line);border-radius:11px;background:var(--bt-card2)}
#btfo-app .btfo-integrated-partial span{font-size:12px;color:var(--bt-muted)}
#btfo-app .btfo-integrated-breakdown{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 22px}
#btfo-app .btfo-integrated-row{padding:10px 0}
#btfo-app .btfo-integrated-row>div:first-child{display:flex;justify-content:space-between;gap:12px;font-size:12px}
#btfo-app .btfo-integrated-row>div:first-child span{color:var(--bt-muted);text-align:right}
#btfo-app .btfo-integrated-track{height:5px;margin-top:7px;border-radius:99px;background:var(--bt-card2);overflow:hidden}
#btfo-app .btfo-integrated-track span{display:block;height:100%;border-radius:99px;background:var(--bt-accent)}
#btfo-app .btfo-integrated-local{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;margin-top:12px;padding-top:12px;border-top:1px solid var(--bt-line);font-size:11px}
#btfo-app .btfo-integrated-local>span{width:100%;color:var(--bt-muted)}
#btfo-app .btfo-integrated-note{margin:12px 0 0;font-size:10px;line-height:1.55;color:var(--bt-muted)}
@media(max-width:620px){#btfo-app .btfo-integrated-breakdown{grid-template-columns:1fr}#btfo-app .btfo-integrated-portfolio .btfo-card-heading{align-items:flex-start}#btfo-app .btfo-integrated-chart{grid-template-columns:1fr;gap:14px}#btfo-app .btfo-integrated-legend{grid-template-columns:1fr 1fr;gap:2px 12px}}
/* Full investment history: compact filters and accessible pagination. */#btfo-app .btfo-investment-history{margin-top:18px}
#btfo-app .btfo-investment-history-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:10px;align-items:end;margin:16px 0}
#btfo-app .btfo-investment-history-filters label{display:flex;flex-direction:column;gap:6px;font-size:13px;min-width:0}
#btfo-app .btfo-investment-history-filters input{width:100%;min-width:0;box-sizing:border-box}
#btfo-app .btfo-history-pages{display:flex;justify-content:space-between;gap:12px;margin-top:16px}
#btfo-app .btfo-history-pages a{padding:9px 12px;border:1px solid currentColor;border-radius:9px}
@media(max-width:700px){
#btfo-app .btfo-investment-history-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
#btfo-app .btfo-investment-history-filters button{grid-column:1/-1}}
/* Owner-scoped investment symbol drill-down */.btfo-symbol-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 0}
.btfo-symbol-detail-grid>div{border:1px solid var(--btfo-border,#e5e7eb);border-radius:12px;padding:13px;min-width:0}
.btfo-symbol-detail-grid small{display:block;color:var(--btfo-muted,#64748b);margin-bottom:7px}
.btfo-symbol-detail-grid strong{display:block;font-size:clamp(14px,1.4vw,18px);overflow-wrap:anywhere}
.btfo-symbol-open{display:inline-flex;margin-top:8px;font-weight:600;text-decoration:underline;text-underline-offset:3px}
@media(max-width:800px){
.btfo-symbol-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:430px){
.btfo-symbol-detail-grid{grid-template-columns:1fr 1fr;gap:8px}
.btfo-symbol-detail-grid>div{padding:10px}}
/* Portfolio distribution and comparison: mobile-first, read-only */.btfo-balance-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}
.btfo-balance-stats>div{padding:12px;border:1px solid var(--btfo-border,#e5e7eb);border-radius:12px;display:flex;flex-direction:column;gap:6px}
.btfo-balance-stats small,.btfo-balance-item small{font-size:12px;opacity:.75}
.btfo-balance-stats strong{font-size:18px}
.btfo-balance-list{display:grid;gap:14px}
.btfo-balance-line{display:flex;justify-content:space-between;gap:12px;margin-bottom:6px}
.btfo-balance-track{height:9px;border-radius:20px;background:#e6ebf0;overflow:hidden;margin-bottom:5px}
.btfo-balance-track span{display:block;height:100%;background:#356bd6;border-radius:20px}@media(max-width:640px){
.btfo-balance-stats{grid-template-columns:1fr 1fr}
.btfo-balance-stats>div:last-child{grid-column:1/-1}}
/* Historical dividends: compact, responsive, no artificial chart data. */.btfo-dividend-year-form{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:16px 0}
.btfo-dividend-year-form label{display:grid;gap:6px}
.btfo-dividend-year-form select{min-width:120px}
.btfo-dividend-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0}
.btfo-dividend-kpis>div{min-width:0;padding:14px;border:1px solid var(--btfo-border,#e4e7ec);border-radius:12px;display:grid;gap:6px}
.btfo-dividend-kpis small{font-size:12px;opacity:.75}
.btfo-dividend-kpis strong{font-size:clamp(15px,1.6vw,20px);overflow-wrap:anywhere}@media(max-width:720px){
.btfo-dividend-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:380px){
.btfo-dividend-kpis{grid-template-columns:1fr}}
.btfo-history-export{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0 18px}
.btfo-history-export button{border:1px solid #cad6e4;border-radius:10px;padding:10px 14px;background:#fff;color:#153454;font-weight:650;cursor:pointer}
.btfo-history-export button:disabled{opacity:.45;cursor:not-allowed}
.btfo-history-export small{color:#65758b;font-size:12px}
/* Bist Times four-destination navigation; secondary pages remain reachable. */.btfo-subnav button[hidden]{display:none!important}
.btfo-subnav:has(button:not([hidden])){min-height:36px}
.btfo-nav button:focus-visible,.btfo-mobile button:focus-visible,.btfo-subnav button:focus-visible{outline:3px solid var(--bt-green);outline-offset:2px}@media(max-width:800px){
.btfo-mobile{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));overflow:visible;gap:0}
.btfo-mobile button{min-width:0;flex:auto}}
/* One-tap banking-style shortcuts: no new pages or financial side effects. */.btfo-quick-center{margin-bottom:18px}
.btfo-quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.btfo-quick-grid button{min-height:48px;padding:12px;border:1px solid var(--bt-line);background:var(--bt-card2);color:var(--bt-text);border-radius:12px;text-align:left;font-weight:650;cursor:pointer}
.btfo-quick-grid button:hover{border-color:var(--bt-accent,#5b91bc)}
.btfo-quick-grid button:focus-visible{outline:3px solid #4a94d5;outline-offset:2px}
.btfo-quick-grid button:disabled{opacity:.45;cursor:not-allowed}@media(max-width:740px){
.btfo-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:380px){
.btfo-quick-grid{grid-template-columns:1fr}}
/* Account transfer: concise review before irreversible ledger posting. */.btfo-transfer-review{grid-column:1/-1;padding:12px 14px;border:1px solid var(--bt-line);border-radius:11px;background:var(--bt-card2);color:var(--bt-text);font-size:13px;line-height:1.55}
/* Finance OS / Param: compact, accessible account overview */.btfo-account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-top:16px}
.btfo-account-tile{min-width:0;border:1px solid var(--bt-line);background:var(--bt-card2);border-radius:15px;padding:19px;color:var(--bt-text)}
.btfo-account-tile-head{display:flex;justify-content:space-between;align-items:center}
.btfo-account-symbol{font-size:23px;color:var(--bt-green)}
.btfo-account-currency{font-size:11px;color:var(--bt-muted)}
.btfo-account-tile h3{font-size:15px;margin:12px 0 16px;overflow-wrap:anywhere}
.btfo-account-label,.btfo-account-source,.btfo-account-warning{display:block;font-size:11px;color:var(--bt-muted)}
.btfo-account-value{display:block;font-size:clamp(18px,2vw,25px);margin:5px 0 8px;overflow-wrap:anywhere}
.btfo-account-warning{color:var(--bt-red)}
.btfo-account-latest{border-top:1px solid var(--bt-line);margin-top:17px;padding-top:12px;display:grid;gap:4px}
.btfo-account-latest span,.btfo-account-latest small{font-size:11px;color:var(--bt-muted)}
.btfo-account-latest strong{font-size:12px}
@media(max-width:640px){
.btfo-account-grid{grid-template-columns:1fr}
.btfo-account-tile{padding:16px}}
.btfo-kap-digest{margin:18px 0;padding:16px;border:1px solid #dce3ea;border-radius:14px}
.btfo-kap-digest h4{margin:0 0 12px}
.btfo-kap-digest-grid{display:grid;align-items:start;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px}
.btfo-kap-digest-group{border:1px solid #dce3ea;border-radius:10px;min-width:0}
.btfo-kap-digest-group summary{display:flex;justify-content:space-between;gap:8px;align-items:center;cursor:pointer;padding:12px}
.btfo-kap-digest-group summary span{font-size:12px;opacity:.75}
.btfo-kap-digest-items{padding:0 12px 12px;max-height:300px;overflow:auto}
.btfo-kap-digest-item{padding:9px 0;border-top:1px solid #dce3ea;overflow-wrap:anywhere}
.btfo-kap-digest-item small{display:block;margin-top:4px;opacity:.7}@media(max-width:480px){
.btfo-kap-digest{padding:12px}
.btfo-kap-digest-grid{grid-template-columns:1fr}}
/* Compact KAP digest: a single accessible source-linked list, not a duplicated feed. */.btfo-kap-digest-heading{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.btfo-kap-digest-heading h4{margin:0}
.btfo-kap-digest-heading span{font-size:12px;opacity:.75}
.btfo-kap-digest-group[open] summary{border-bottom:1px solid #dce3ea}
.btfo-kap-digest-group summary:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.btfo-kap-digest-group summary::-webkit-details-marker{display:none}
/* v7.43.0: Progressive disclosure; the portfolio summary and holdings stay visible. */.btfo-advanced-analysis{margin-block:18px}
.btfo-advanced-analysis>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none;font-weight:700;padding:18px}
.btfo-advanced-analysis>summary::-webkit-details-marker{display:none}
.btfo-advanced-analysis>summary small{font-weight:400;color:var(--btfo-muted,#64748b);font-size:12px}
.btfo-advanced-analysis>summary:focus-visible{outline:2px solid currentColor;outline-offset:2px;border-radius:8px}
.btfo-advanced-analysis[open]>summary{border-bottom:1px solid rgba(128,128,128,.2)}
.btfo-advanced-content{padding:12px 14px 18px}
.btfo-advanced-content>.btfo-card{margin-block:12px}@media(max-width:600px){
.btfo-advanced-analysis>summary{flex-direction:column;align-items:flex-start}
.btfo-advanced-content{padding:8px}}
.btfo-advanced-details{padding:0!important;overflow:hidden}
.btfo-advanced-details>summary{padding:18px 22px;cursor:pointer;font-weight:700;color:var(--bt-muted)}
.btfo-advanced-details[open]>summary{border-bottom:1px solid var(--bt-line)}
.btfo-advanced-body{padding:20px 22px}
.btfo-movement-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0}
.btfo-movement-tools label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;color:var(--bt-muted)}
.btfo-movement-tools select,.btfo-movement-tools input{width:100%;min-width:0;border:1px solid var(--bt-line);background:var(--bt-card);color:var(--bt-text);border-radius:10px;padding:11px}
.btfo-row[hidden],.btfo-help[hidden]{display:none!important}@media(max-width:700px){
.btfo-movement-tools{grid-template-columns:1fr}}
/* v7.45: overview essentials first; optional aggregate statistics on demand */.btfo-home-details{margin:18px 0;border:1px solid var(--bt-line);border-radius:14px;background:var(--bt-card);overflow:hidden}
.btfo-home-details>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;cursor:pointer;list-style:none;color:var(--bt-text)}
.btfo-home-details>summary::-webkit-details-marker{display:none}
.btfo-home-details>summary span:first-child{display:flex;flex-direction:column;gap:3px}
.btfo-home-details>summary small{font-size:12px;color:var(--bt-muted)}
.btfo-home-details[open]>summary{border-bottom:1px solid var(--bt-line)}
.btfo-home-details-body{padding:14px 20px 20px}
.btfo-account-warning{color:var(--bt-muted);font-size:13px;text-align:right}
@media(max-width:700px){
.btfo-home-details-body{padding:12px}
.btfo-home-details>summary{padding:14px}}
/* Planning hub: compact, calm, mobile-first. */.btfo-plan-center{margin-bottom:18px}
.btfo-plan-group{margin-top:18px}
.btfo-plan-group h3{font-size:14px;margin:0 0 10px}
.btfo-plan-group h3 small{font-weight:400;opacity:.65}
.btfo-plan-item{padding:14px 0;border-top:1px solid rgba(127,127,127,.18)}
.btfo-plan-top,.btfo-plan-meta{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.btfo-plan-top strong{font-size:14px}
.btfo-plan-status{font-size:12px;padding:4px 9px;border-radius:100px;background:rgba(127,127,127,.1)}
.btfo-plan-overdue,.btfo-plan-today{color:#c2410c;background:rgba(234,88,12,.1)}
.btfo-plan-completed{color:#15803d;background:rgba(22,163,74,.1)}
.btfo-plan-item progress{width:100%;height:8px;margin:12px 0 7px;accent-color:#2563eb}
.btfo-plan-meta{font-size:12px;opacity:.8}
.btfo-plan-edit{display:inline-block;margin-top:8px;font-size:12px}@media(max-width:600px){
.btfo-plan-top{align-items:flex-start}
.btfo-plan-meta{gap:4px}}
.btfo-debt-center{margin-bottom:18px}
/* Debt center: compact, keyboard-friendly, responsive filtering */.btfo-debt-tools{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:10px;align-items:end;margin:16px 0}
.btfo-debt-tools label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:600;min-width:0}
.btfo-debt-tools input,.btfo-debt-tools select{width:100%;min-width:0;padding:10px;border:1px solid #cbd5e1;border-radius:10px;background:transparent;color:inherit}
.btfo-debt-reset{padding:10px 12px;border:1px solid #cbd5e1;border-radius:10px;background:transparent;color:inherit;cursor:pointer}
.btfo-debt-count{grid-column:1/-1;margin:0;font-size:12px;opacity:.7}
.btfo-debt-empty[hidden]{display:none!important}
.btfo-debt-tools :is(button,input,select):focus-visible{outline:3px solid #4f86e5;outline-offset:2px}@media(max-width:850px){
.btfo-debt-tools{grid-template-columns:1fr 1fr}
.btfo-debt-tools label:first-child{grid-column:1/-1}}@media(max-width:480px){
.btfo-debt-tools{grid-template-columns:1fr}
.btfo-debt-tools label:first-child{grid-column:auto}}
/* Finance OS 7.49: consolidated planning calendar */.btfo-agenda-stats{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}
.btfo-agenda-stats span{background:var(--btfo-surface,#f4f6fa);border:1px solid rgba(120,130,150,.2);padding:9px 13px;border-radius:12px;font-size:13px}
.btfo-agenda-item{display:flex;justify-content:space-between;gap:16px;align-items:center;border-top:1px solid rgba(120,130,150,.18);padding:14px 0}
.btfo-agenda-item>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.btfo-agenda-item strong{overflow-wrap:anywhere}
.btfo-agenda-item small{opacity:.7}
.btfo-agenda-kind{font-size:10px;letter-spacing:.08em;font-weight:700;opacity:.7}
.btfo-agenda-amount{text-align:right;white-space:nowrap}@media(max-width:540px){
.btfo-agenda-item{align-items:flex-start}
.btfo-agenda-amount{white-space:normal;max-width:45%}}
.btfo-debt-simulator{margin-top:16px;border:1px solid var(--btfo-border,#dce3ed);border-radius:12px;padding:14px}
.btfo-debt-simulator summary{cursor:pointer;font-weight:700}
.btfo-debt-sim-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}
.btfo-debt-sim-fields label{display:grid;gap:5px;font-size:13px}
.btfo-debt-sim-fields input{width:100%;min-width:0}
.btfo-debt-sim-table{width:100%;border-collapse:collapse;margin-top:12px;font-size:12px}
.btfo-debt-sim-table th,.btfo-debt-sim-table td{padding:7px 5px;border-bottom:1px solid #dce3ed;text-align:right}
.btfo-debt-sim-table th:first-child,.btfo-debt-sim-table td:first-child{text-align:left}@media(max-width:640px){
.btfo-debt-sim-fields{grid-template-columns:1fr}
.btfo-debt-sim-table{font-size:11px}}
/* 7.51 — optional liability exposure drilldown */.btfo-debt-exposure{margin:16px 0;padding:14px;border:1px solid var(--btfo-border,#d8dee8);border-radius:14px}
.btfo-debt-exposure>summary{cursor:pointer;font-weight:700}
.btfo-exposure-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}
.btfo-exposure-tile{min-width:0;padding:12px;border-radius:12px;background:var(--btfo-soft,#f4f6fa);display:flex;flex-direction:column;gap:7px}
.btfo-exposure-tile small{opacity:.75}
.btfo-exposure-tile strong{font-size:1.05rem;overflow-wrap:anywhere}
.btfo-exposure-types>div{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--btfo-border,#d8dee8)}@media(max-width:640px){
.btfo-exposure-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:380px){
.btfo-exposure-grid{grid-template-columns:1fr}}
/* 7.57.2: Elementor/theme isolation and full-width member workspace. */#btfo-app [data-btfo-panel]{min-width:0;width:100%;max-width:100%}
#btfo-app [data-btfo-panel] .btfo-card,#btfo-app [data-btfo-panel] form{max-width:100%;min-width:0}
#btfo-app [data-btfo-panel] input,#btfo-app [data-btfo-panel] select,#btfo-app [data-btfo-panel] textarea{max-width:100%;box-sizing:border-box}
#btfo-app .btfo-form{grid-template-columns:repeat(2,minmax(0,1fr))}
#btfo-app [hidden]{display:none!important}
@media(max-width:800px){
#btfo-app .btfo-form{grid-template-columns:1fr}}
/* 7.58.1: keep all member panels in the workspace; consistent cards and forms. */#btfo-app .btfo-main>[data-btfo-panel]{min-width:0;width:100%;max-width:1200px;margin-inline:auto;}
/* 7.58.3: Hidden finance panels must never be forced visible by later grid rules. */#btfo-app [data-btfo-panel][hidden]{display:none!important;}
/* 7.59.0 scoped workspace hardening: never expose inactive sections outside shell */#btfo-app *{box-sizing:border-box}
#btfo-app [data-btfo-panel][hidden],#btfo-app [hidden]{display:none!important}
#btfo-app [data-btfo-panel]:not([hidden]){min-width:0;max-width:100%}
/* 7.59.1 — Finance fragment isolation and contrast, scoped to Finance OS. */#btfo-app .btfo-debt-exposure .btfo-exposure-tile{background:var(--bt-card2,#142d40)!important;color:var(--bt-text,#eef8fa)!important;border:1px solid var(--bt-line,#254256);}
#btfo-app .btfo-debt-exposure .btfo-exposure-tile :is(small,strong){color:var(--bt-text,#eef8fa)!important;opacity:1;}
#btfo-app .btfo-debt-exposure .btfo-exposure-types{color:var(--bt-text,#eef8fa)}
/* 7.59.2: consistent semantic surfaces; no light fallback inside dark workspace. */#btfo-app .btfo-agenda-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
#btfo-app .btfo-agenda-stats>span{display:flex;flex-direction:column;gap:5px;min-width:0;background:var(--bt-card2);color:var(--bt-text);border:1px solid var(--bt-line);border-radius:12px;padding:12px 14px;font-size:12px}
#btfo-app .btfo-agenda-stats b{color:var(--bt-text);font-size:20px}
#btfo-app .btfo-agenda-empty{background:var(--bt-card2);color:var(--bt-text);border:1px dashed var(--bt-line);border-radius:14px;padding:18px;margin-top:16px}
#btfo-app .btfo-agenda-empty strong{display:block;font-size:14px;color:var(--bt-text)}
#btfo-app .btfo-agenda-empty p{margin:7px 0 0;font-size:12px;color:var(--bt-muted);line-height:1.6}
#btfo-app .btfo-exposure-grid .btfo-exposure-tile{background:var(--bt-card2);color:var(--bt-text);border:1px solid var(--bt-line)}
#btfo-app .btfo-exposure-grid .btfo-exposure-tile *{color:inherit}
@media(max-width:520px){
#btfo-app .btfo-agenda-stats{grid-template-columns:1fr}}
/* Native, brand-independent OHLCV view */.btfo-ohlcv{min-width:0;overflow:hidden}
.btfo-ohlcv-stage{width:100%;min-width:0;overflow:hidden;border:1px solid #304057;border-radius:12px;background:#101b2d}
.btfo-ohlcv-stage canvas{width:100%;height:480px;display:block}
.btfo-ohlcv-detail{font-size:13px;line-height:1.7;margin-top:10px;overflow-wrap:anywhere}
.btfo-ohlcv-stage{touch-action:pan-y}
/* v7.66: owner-scoped, JS-independent finance visualizations */#btfo-app .btfo-viz{margin:16px 0 22px;padding:22px;border-radius:18px;overflow:hidden}
#btfo-app .btfo-viz-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:20px}
#btfo-app .btfo-viz-heading h2{margin:4px 0 0;font-size:20px}
#btfo-app .btfo-viz-heading>small{opacity:.7;text-align:right}
#btfo-app .btfo-viz-overview{display:flex;align-items:center;gap:28px;flex-wrap:wrap}
#btfo-app .btfo-viz-donut{width:200px;height:200px;flex:0 0 200px;border-radius:50%;background:conic-gradient(#20b6a3 0deg var(--btfo-split),#6e83f5 var(--btfo-split) 360deg);display:grid;place-items:center}
#btfo-app .btfo-viz-donut>div{width:148px;height:148px;border-radius:50%;background:#142033;color:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:8px}
#btfo-app .btfo-viz-donut strong{font-size:17px;overflow-wrap:anywhere}
#btfo-app .btfo-viz-donut small{opacity:.7}
#btfo-app .btfo-viz-legend{flex:1;min-width:180px;display:grid;gap:14px}
#btfo-app .btfo-viz-legend>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#btfo-app .btfo-viz-legend b{margin-left:auto}
#btfo-app .btfo-viz-dot{width:11px;height:11px;border-radius:3px;display:inline-block}
#btfo-app .btfo-viz-dot.cash{background:#20b6a3}
#btfo-app .btfo-viz-dot.invest{background:#6e83f5}
#btfo-app .btfo-viz-item{margin:0 0 17px}
#btfo-app .btfo-viz-line{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:8px;font-size:14px}
#btfo-app .btfo-viz-line strong{overflow-wrap:anywhere}
#btfo-app .btfo-viz-track{height:12px;border-radius:20px;background:rgba(120,140,170,.18);overflow:hidden}
#btfo-app .btfo-viz-track span{display:block;height:100%;border-radius:20px;background:linear-gradient(90deg,#20b6a3,#6e83f5);min-width:0}
#btfo-app .btfo-viz-item small{display:block;margin-top:5px;opacity:.75}
@media(max-width:600px){
#btfo-app .btfo-viz{padding:16px}
#btfo-app .btfo-viz-donut{width:164px;height:164px;flex-basis:164px}
#btfo-app .btfo-viz-donut>div{width:120px;height:120px}
#btfo-app .btfo-viz-overview{justify-content:center;gap:18px}
#btfo-app .btfo-viz-legend{width:100%}}
/* Finance OS 7.72: ledger-safe member allocation visualization */#btfo-app .btfo-cockpit-allocation{margin-top:18px;padding:18px;border:1px solid rgba(120,160,180,.28);border-radius:14px;background:rgba(120,160,180,.055)}
#btfo-app .btfo-cockpit-chart-heading{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap}
#btfo-app .btfo-cockpit-chart-heading h3{margin:0 0 14px;font-size:17px}
#btfo-app .btfo-cockpit-chart-heading span{font-size:12px;opacity:.75}
#btfo-app .btfo-cockpit-stacked{display:flex;width:100%;height:18px;overflow:hidden;border-radius:99px;background:rgba(130,160,180,.15)}
#btfo-app .btfo-cockpit-cash{background:#0d9488}
#btfo-app .btfo-cockpit-stocks{background:#6366f1}
#btfo-app .btfo-cockpit-legend{display:flex;gap:22px;flex-wrap:wrap;margin-top:13px;font-size:13px}
#btfo-app .btfo-cockpit-legend span{display:inline-flex;align-items:center;gap:8px}
#btfo-app .btfo-cockpit-legend i{width:10px;height:10px;border-radius:50%;display:inline-block}
#btfo-app .btfo-dot-cash{background:#0d9488}
#btfo-app .btfo-dot-stocks{background:#6366f1}
#btfo-app .btfo-cockpit-allocation--empty button{border:1px solid currentColor;border-radius:9px;padding:10px 14px;background:transparent;color:inherit;cursor:pointer}
/* v7.73: compact, accessible member home */.btfo-quick-center{padding:14px 18px!important}
.btfo-quick-center .btfo-card-heading{margin-bottom:9px!important}
.btfo-quick-center .btfo-card-heading h2{font-size:1.06rem!important}
.btfo-quick-grid{display:flex!important;flex-wrap:wrap;gap:7px!important}
.btfo-quick-grid button{width:auto!important;flex:0 1 auto!important;min-height:36px!important;padding:8px 12px!important;border-radius:12px!important;font-size:.85rem!important;white-space:normal}
.btfo-quick-grid button:disabled{opacity:.42}
.btfo-viz-partial{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:12px;align-items:center;padding:12px 0}
.btfo-viz-partial-main,.btfo-viz-partial-side{display:flex;flex-direction:column;align-items:flex-start;gap:7px}
.btfo-viz-partial-main strong{font-size:clamp(1.25rem,2.8vw,1.8rem)}
.btfo-viz-partial-main small,.btfo-viz-partial-main span,.btfo-viz-partial-side p{color:var(--btfo-muted,#64748b);font-size:.85rem;margin:0}
.btfo-viz-pill{background:#fff4db;color:#815000;border-radius:99px;padding:4px 9px;font-size:.73rem;font-weight:700}
.btfo-viz-partial button,.btfo-monthly-empty button,.btfo-agenda-empty button{border:1px solid #d2e0e5;background:#f5fafb;color:#14546a;border-radius:10px;padding:8px 11px;cursor:pointer;font-weight:650}
.btfo-monthly-empty{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;background:rgba(125,150,170,.07);border-radius:13px}
.btfo-monthly-empty p{margin:5px 0 0;font-size:.85rem;color:#64748b}
.btfo-cockpit-actions{display:flex;flex-wrap:wrap;gap:7px}
.btfo-cockpit-actions button{min-height:35px!important;padding:7px 12px!important}
.btfo-next-actions{padding:12px!important}
.btfo-next-actions h3{font-size:1rem!important;margin:0 0 6px!important}
.btfo-next-actions p{margin:4px 0!important;font-size:.87rem}
.btfo-agenda-empty{padding:14px!important}
.btfo-agenda-empty p{margin:5px 0 10px!important}
.btfo-home-details{margin-top:12px}@media(max-width:600px){
.btfo-viz-partial{grid-template-columns:1fr}
.btfo-monthly-empty{align-items:flex-start;flex-direction:column}
.btfo-quick-grid button{font-size:.8rem!important;padding:8px 10px!important}}
.btfo-chart-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.btfo-chart-heading h2{margin:2px 0}
.btfo-chart-note{font-size:12px;color:#6b7c8f}
.btfo-chart-zoom{display:flex;gap:4px;align-self:end}
.btfo-chart-zoom button{min-width:38px;padding:8px 10px;border-radius:9px;border:1px solid #ccd9e5;background:#f4f7fa;color:#263c50;cursor:pointer}
.btfo-ohlcv-stage{overflow:hidden;border-radius:12px}
.btfo-ohlcv-stage canvas{width:100%;touch-action:pan-y;cursor:crosshair}
.btfo-ohlcv-detail{line-height:1.7;overflow-wrap:anywhere}
@media(max-width:600px){
.btfo-chart-note{display:none}}
#btfo-app [data-btfo-panel="portfolio"] .btfo-ohlcv,#btfo-app [data-btfo-panel="portfolio"] .btfo-holdings,#btfo-app [data-btfo-panel="portfolio"] .btfo-advanced-analysis,#btfo-app [data-btfo-panel="portfolio"] .btfo-dividend-center,#btfo-app [data-btfo-panel="portfolio"] .btfo-recent-trades{scroll-margin-top:85px}
#btfo-app .btfo-invest-empty-head{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;padding:12px 0}
#btfo-app .btfo-invest-empty-head strong{font-size:1.04rem}
#btfo-app .btfo-invest-empty-head p{margin:7px 0 0;color:var(--btfo-muted,#9bb0c2);font-size:.88rem;max-width:70ch}
#btfo-app .btfo-invest-empty-head button{border:1px solid #49dea5;border-radius:10px;padding:10px 13px;background:transparent;color:inherit;cursor:pointer}
#btfo-app [data-btfo-panel="portfolio"] .btfo-viz{margin-top:18px}
/* v7.77: integrated investment workspace; sections are real panels, not scroll shortcuts. */#btfo-app [data-btfo-panel="portfolio"]{--btfo-invest-surface:#122437;--btfo-invest-border:rgba(126,169,185,.19)}
#btfo-app [data-btfo-panel="portfolio"]>[hidden]{display:none!important}
#btfo-app [data-btfo-panel="portfolio"]>.btfo-portfolio-intro{padding:8px 0 18px;background:transparent;border:0}
#btfo-app [data-btfo-panel="portfolio"]>.btfo-portfolio-intro h2{font-size:clamp(25px,3vw,34px);letter-spacing:-.03em}
#btfo-app [data-btfo-panel="portfolio"]>.btfo-card{border-radius:18px;margin-bottom:14px}
#btfo-app [data-btfo-panel="portfolio"]>.btfo-ohlcv{padding:clamp(14px,2vw,24px)}
#btfo-app [data-btfo-panel="portfolio"] .btfo-ohlcv-stage{min-height:340px;overflow:hidden;border-radius:12px;background:#101b2d}
#btfo-app [data-btfo-panel="portfolio"] .btfo-market-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
#btfo-app [data-btfo-panel="portfolio"] .btfo-market-grid>div{border-radius:12px;padding:15px;background:rgba(118,165,191,.08)}
@media(max-width:850px){
#btfo-app [data-btfo-panel="portfolio"] .btfo-market-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:550px){
#btfo-app [data-btfo-panel="portfolio"] .btfo-ohlcv-stage{min-height:260px}}
/* Finance OS 7.78: user-first dashboard, scoped to member cockpit. */.btfo-finance-home{display:block;min-width:0}
.btfo-finance-hero{padding:clamp(18px,3vw,30px);border:1px solid #294456;border-radius:18px;background:linear-gradient(125deg,#102d42,#0b1928);color:#f5fbff}
.btfo-finance-hero-top,.btfo-finance-section-head,.btfo-finance-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.btfo-finance-hero h2{color:#fff;margin:5px 0;font-size:clamp(20px,2.4vw,28px)}
.btfo-finance-hero p,.btfo-finance-total span{color:#b4c7d6;font-size:13px;margin:0}
.btfo-finance-state{font-size:12px;border:1px solid #3b6674;border-radius:30px;padding:6px 10px;color:#a8e4d1}
.btfo-finance-total{display:flex;flex-direction:column;gap:7px;margin:24px 0 20px}
.btfo-finance-total small,.btfo-finance-metrics small{color:#a9c0cf;font-size:12px}
.btfo-finance-total strong{font-size:clamp(22px,5cqi,46px);line-height:1.2;letter-spacing:-.04em;color:#fff;white-space:nowrap;overflow-wrap:normal;font-variant-numeric:tabular-nums;font-weight:750}
.btfo-finance-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.btfo-finance-metrics>div{background:#19394d;border:1px solid #2a5063;border-radius:11px;padding:12px;display:flex;flex-direction:column;gap:7px;min-width:0}
.btfo-finance-metrics strong{font-size:clamp(14px,2cqi,19px);color:#fff;white-space:nowrap;overflow-wrap:normal;font-variant-numeric:tabular-nums}
.btfo-finance-section-head{margin:22px 0 12px}
.btfo-finance-section-head h3{margin:0;font-size:18px}
.btfo-finance-section-head p{margin:4px 0 0;opacity:.7;font-size:12px}
.btfo-finance-section-head button,.btfo-finance-shortcuts button{border:1px solid #3a6374;border-radius:9px;padding:8px 12px;background:transparent;color:inherit;cursor:pointer}
.btfo-finance-distribution{display:flex;height:17px;overflow:hidden;border-radius:30px;background:#28475b}
.btfo-finance-distribution span:first-child{background:#25bca5}
.btfo-finance-distribution span:last-child{background:#5e8df2}
.btfo-finance-legend{display:flex;gap:20px;flex-wrap:wrap;margin:11px 0 18px;font-size:13px}
.btfo-finance-legend span{display:flex;align-items:center;gap:7px}
.btfo-finance-legend i{height:9px;width:9px;border-radius:50%;background:#25bca5}
.btfo-finance-legend span:nth-child(2) i{background:#5e8df2}
.btfo-finance-partial{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.btfo-finance-partial>div{display:flex;flex-direction:column;gap:6px;padding:14px;border-radius:12px;background:rgba(105,135,158,.1)}
.btfo-finance-partial span,.btfo-finance-muted{font-size:12px;opacity:.8}
.btfo-finance-footer{font-size:12px;opacity:.85;margin:18px 0;border-top:1px solid rgba(120,150,170,.2);padding-top:12px}
.btfo-finance-shortcuts{display:flex;gap:8px;flex-wrap:wrap}
.btfo-finance-shortcuts button{font-size:12px}
@media(max-width:760px){
.btfo-finance-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
.btfo-finance-partial{grid-template-columns:1fr}
.btfo-finance-hero{padding:16px}
.btfo-finance-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Member workspace: contextual actions, complete cash history and accessible review. */.btfo-account-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:18px}
.btfo-account-actions button,.btfo-account-actions a{font-size:12px;padding:10px;text-align:center;border:1px solid var(--bt-line);border-radius:9px;background:var(--bt-card);color:var(--bt-text);text-decoration:none;min-height:42px}
.btfo-account-actions button:hover,.btfo-account-actions a:hover{border-color:var(--bt-green)}
.btfo-cash-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:22px 0}
.btfo-cash-filters label{display:grid;gap:7px;font-size:12px;color:var(--bt-muted)}
.btfo-cash-filters input,.btfo-cash-filters select{width:100%;min-width:0;padding:12px;border:1px solid var(--bt-line);border-radius:10px;background:var(--bt-card2);color:var(--bt-text)}
.btfo-cash-filter-actions{display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.btfo-cash-filter-actions a{color:var(--bt-muted);font-size:12px}
.btfo-history-badge{background:var(--bt-card2);padding:7px 10px;border:1px solid var(--bt-line);border-radius:30px;white-space:nowrap;font-size:12px}
.btfo-account-detail{margin:0 0 18px;padding:22px;border:1px solid var(--bt-line);border-radius:16px;background:var(--bt-card);scroll-margin-top:24px}
.btfo-account-detail>header{display:flex;align-items:center;justify-content:space-between;gap:16px}
.btfo-account-detail>header h3{margin:5px 0;font-size:20px;color:var(--bt-text)}
.btfo-account-detail>header small{color:var(--bt-muted)}
.btfo-account-detail>header>a{color:var(--bt-muted);text-decoration:none;font-size:13px}
.btfo-account-detail>header>a:hover{color:var(--bt-green)}
.btfo-account-history-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:20px}
.btfo-account-history-summary>div{min-width:0;padding:15px;border:1px solid var(--bt-line);border-radius:12px;background:var(--bt-card2)}
.btfo-account-history-summary small{display:block;margin-bottom:7px;color:var(--bt-muted);font-size:12px}
.btfo-account-history-summary strong{display:block;overflow-wrap:anywhere;font-size:19px}
.btfo-account-balance-chart{margin:18px 0 0}
.btfo-account-balance-chart svg{display:block;width:100%;height:auto;min-height:130px;overflow:visible}
.btfo-balance-chart-grid{fill:none;stroke:var(--bt-line);stroke-width:1;stroke-dasharray:3 5}
.btfo-balance-chart-area{fill:rgba(15,164,119,.12);fill:color-mix(in srgb,var(--bt-green) 12%,transparent);stroke:none}
.btfo-balance-chart-line{fill:none;stroke:var(--bt-green);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.btfo-account-balance-chart figcaption{display:flex;justify-content:space-between;gap:12px;color:var(--bt-muted);font-size:11px}
.btfo-account-history-unverified{display:grid;gap:5px;margin-top:18px;padding:15px;border:1px solid var(--bt-line);border-radius:12px;background:var(--bt-card2)}
.btfo-account-history-unverified strong{font-size:14px;color:var(--bt-text)}
.btfo-account-history-unverified span{font-size:12px;line-height:1.5;color:var(--bt-muted)}
.btfo-history-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.btfo-history-totals>div{padding:17px;border-radius:12px;background:var(--bt-card2);border:1px solid var(--bt-line)}
.btfo-history-totals small{display:block;color:var(--bt-muted);font-size:12px;margin-bottom:8px}
.btfo-history-totals strong{font-size:20px;overflow-wrap:anywhere}
.btfo-cash-row{border-top:1px solid var(--bt-line)}
.btfo-cash-row>summary{display:flex;align-items:center;gap:12px;padding:18px 0;cursor:pointer;list-style:none}
.btfo-cash-row>summary::-webkit-details-marker{display:none}
.btfo-cash-direction{display:grid;place-items:center;width:34px;height:34px;flex-shrink:0;background:var(--bt-card2);border-radius:10px}
.btfo-cash-title{min-width:0;flex:1}
.btfo-cash-title strong{display:block;font-size:14px}
.btfo-cash-title small{display:block;color:var(--bt-muted);font-size:11px;margin-top:5px;overflow-wrap:anywhere}
.btfo-cash-row b{font-size:14px;text-align:right;overflow-wrap:anywhere}
.btfo-cash-detail{padding:0 10px 18px 46px;overflow-wrap:anywhere}
.btfo-cash-detail p{font-size:13px;white-space:pre-wrap}
.btfo-cash-detail small{color:var(--bt-muted)}
.btfo-cash-pagination{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:22px;font-size:12px}
.btfo-cash-pagination a{color:var(--bt-text);border:1px solid var(--bt-line);border-radius:9px;padding:11px}
.btfo-history-empty{padding:25px 10px;text-align:center;color:var(--bt-muted)}
.btfo-cash-download{display:flex;justify-content:space-between;gap:18px;align-items:center}
.btfo-review-dialog{color:var(--bt-text);background:var(--bt-card);border:1px solid var(--bt-line);border-radius:22px;padding:26px;width:min(500px,calc(100vw - 28px));max-height:calc(100dvh - 32px);overflow:auto;box-shadow:0 24px 90px #0008}
.btfo-review-dialog::backdrop{background:#03121dbb;backdrop-filter:blur(4px)}
.btfo-review-heading{display:flex;justify-content:space-between;align-items:center;font-size:11px;letter-spacing:1px;color:var(--bt-muted)}
.btfo-review-heading button{background:none;border:0;font-size:28px;line-height:1;color:var(--bt-text);padding:5px 10px}
.btfo-review-dialog h2{font-size:23px;margin:12px 0 24px;color:var(--bt-text)}
.btfo-review-dialog dl{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:15px;border-top:1px solid var(--bt-line);border-bottom:1px solid var(--bt-line);padding:20px 0}
.btfo-review-dialog dt{color:var(--bt-muted);font-size:13px}
.btfo-review-dialog dd{margin:0;text-align:right;font-size:14px;font-weight:650;overflow-wrap:anywhere}
.btfo-review-dialog p{font-size:12px;line-height:1.7;color:var(--bt-muted)}
.btfo-review-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}
.btfo-review-actions button{min-height:44px}
.btfo-review-actions [data-review-cancel]{background:var(--bt-card2);color:var(--bt-text);border:1px solid var(--bt-line)}
.btfo-app :focus-visible{outline:2px solid var(--bt-green);outline-offset:4px}
@media(max-width:600px){
.btfo-account-detail{padding:16px}
.btfo-account-history-summary{gap:8px}
.btfo-account-history-summary>div{padding:12px}
.btfo-account-history-summary strong{font-size:16px}
.btfo-cash-filters{grid-template-columns:1fr}
.btfo-history-totals strong{font-size:17px}
.btfo-cash-row>summary{gap:8px;flex-wrap:wrap}
.btfo-cash-title{flex-basis:calc(100% - 48px)}
.btfo-cash-row b{margin-left:42px;flex:1;text-align:left}
.btfo-cash-detail{padding-left:10px}
.btfo-cash-download{display:block}
.btfo-review-dialog{padding:20px}
.btfo-review-actions{display:grid;grid-template-columns:1fr 1.5fr}
.btfo-review-actions button{padding:12px 8px}
.btfo-history-totals{gap:8px}
.btfo-cash-pagination a{padding:10px 7px}}
@media(prefers-reduced-motion:reduce){
.btfo-app *{scroll-behavior:auto!important;transition:none!important}}
.btfo-money-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
.btfo-money-actions>.btfo-money-form[open]{grid-column:1/-1}
.btfo-money-actions>.btfo-money-form{margin-bottom:0}
.btfo-money-actions{margin-bottom:16px}
.btfo-review-actions [data-review-confirm]{border:1px solid var(--bt-green);border-radius:10px;background:var(--bt-green);color:#062d25;font-weight:750;padding:12px 17px}
.btfo-light .btfo-review-actions [data-review-confirm]{color:#fff}
.btfo-review-actions [data-review-cancel]{border-radius:10px;padding:12px 17px}
.btfo-review-dialog [data-review-reveal]{border:1px solid var(--bt-line);background:var(--bt-card2);color:var(--bt-text);border-radius:9px;padding:10px 13px}
.btfo-money-form>summary{min-height:54px}
.btfo-money-form>summary span{font-size:15px;font-weight:750}
.btfo-money-form>summary small{display:block;color:var(--bt-muted);font-size:11px;font-weight:400;margin-top:4px}
@media(max-width:600px){
.btfo-money-actions{grid-template-columns:1fr}
.btfo-money-actions>.btfo-money-form[open]{grid-column:auto}}
.btfo-cash-filter-actions button,.btfo-cash-download button{border:1px solid var(--bt-green);border-radius:10px;background:var(--bt-green);color:#062d25;padding:12px 17px;min-height:44px;font-weight:700}
.btfo-light .btfo-cash-filter-actions button,.btfo-light .btfo-cash-download button{color:#fff}
.btfo-cash-filter-actions a{padding:10px 0}
/* Personal home and watchlists: one primary summary, optional supporting cards. */.btfo-cockpit{container-type:inline-size}
#btfo-app .btfo-price-refresh{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0}
#btfo-app .btfo-price-refresh-button{min-height:42px;padding:9px 14px;border:1px solid var(--bt-line);border-radius:9px;background:var(--bt-card2);color:var(--bt-text);font-size:12px;font-weight:650;cursor:pointer}
#btfo-app [data-btfo-valuation-status]{font-size:12px;color:var(--bt-muted)}
.btfo-home-v2{max-width:none}
.btfo-home-v2 .btfo-finance-home{margin-top:0}
.btfo-home-v2 .btfo-finance-hero{border-radius:20px;background:linear-gradient(125deg,#103f46,#0b2639 72%);box-shadow:0 18px 40px #05252b20}
.btfo-home-command{margin:22px 0;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px;border:1px solid var(--bt-line);border-radius:16px;background:var(--bt-card)}
.btfo-home-command h2{margin:5px 0 0;font-size:17px}
.btfo-home-command-actions{display:flex;flex-wrap:wrap;gap:8px}
.btfo-home-command button,.btfo-home-card .btfo-card-heading button,.btfo-watchlist .btfo-card-heading button,.btfo-watch-empty button{border:1px solid var(--bt-line);background:var(--bt-card2);color:var(--bt-text);border-radius:10px;padding:10px 13px;font-size:12px;min-height:42px}
.btfo-home-command-actions button:first-child{background:var(--bt-green);border-color:var(--bt-green);color:#052d25;font-weight:750}
.btfo-light .btfo-home-command-actions button:first-child{color:#fff}
.btfo-home-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
.btfo-home-card{min-width:0}
.btfo-home-card>.btfo-card{margin:0;min-height:240px;height:100%}
.btfo-home-card .btfo-monthly-head{flex-wrap:wrap}
.btfo-home-card .btfo-monthly-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.btfo-home-card .btfo-monthly-grid strong{font-size:18px}
.btfo-home-card .btfo-card-heading h2,.btfo-home-card .btfo-monthly-head h2{font-size:18px}
.btfo-home-line{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 0;border-top:1px solid var(--bt-line);min-width:0}
.btfo-home-line strong{font-size:13px;overflow-wrap:anywhere}
.btfo-home-line small{display:block;font-size:11px;color:var(--bt-muted);margin-top:4px}
.btfo-home-line b,.btfo-home-line a{white-space:nowrap;font-size:13px;color:var(--bt-text);text-decoration:none}
.btfo-watchlist{max-width:1200px}
.btfo-watch-editor{border:1px solid var(--bt-line);border-radius:13px;background:var(--bt-card2);padding:16px;margin:20px 0}
.btfo-watch-editor summary{cursor:pointer;font-weight:700}
.btfo-watch-editor[open] summary{margin-bottom:18px}
.btfo-watch-tools{display:flex;flex-wrap:wrap;align-items:end;gap:14px;margin:22px 0}
.btfo-watch-tools label{display:grid;gap:7px;color:var(--bt-muted);font-size:12px;flex:1;min-width:150px}
.btfo-watch-tools input,.btfo-watch-tools select{min-width:0;width:100%;border:1px solid var(--bt-line);border-radius:9px;background:var(--bt-card2);color:var(--bt-text);padding:11px}
.btfo-watch-tools>span{font-size:11px;color:var(--bt-muted);padding-bottom:12px}
.btfo-watch-row{display:grid;grid-template-columns:minmax(80px,1fr) minmax(90px,1fr) minmax(120px,1.4fr) auto;gap:14px;align-items:center;border-top:1px solid var(--bt-line);padding:18px 0;min-width:0}
.btfo-watch-row strong{font-size:15px}
.btfo-watch-row small{display:block;font-size:11px;color:var(--bt-muted);margin-top:5px;overflow-wrap:anywhere}
.btfo-watch-price b{font-size:16px}
.btfo-watch-state{display:inline-block;border-radius:99px;padding:5px 8px;background:var(--bt-card2);color:var(--bt-muted);font-size:11px}
.btfo-watch-hit{color:#067d58;background:#cefae9}
.btfo-watch-waiting{color:#99680b;background:#fff0ce}
.btfo-watch-row-actions{display:flex;gap:10px;align-items:center}
.btfo-watch-row-actions form{margin:0}
.btfo-watch-row-actions button,.btfo-watch-row-actions a{font-size:11px;background:none;border:0;padding:8px 0;color:var(--bt-muted);text-decoration:underline}
.btfo-watch-empty{padding:25px 4px;color:var(--bt-muted)}
.btfo-watch-empty p{font-size:13px;line-height:1.7}
.btfo-watch-empty strong{font-size:16px;color:var(--bt-text)}
.btfo-home-card .btfo-watch-row{grid-template-columns:minmax(65px,1fr) minmax(85px,1fr) minmax(100px,1.3fr);gap:8px}
.btfo-home-card .btfo-watch-price b{font-size:13px}
.btfo-home-card .btfo-watch-row strong{font-size:13px}
.btfo-home-card .btfo-watch-state{font-size:10px}
.btfo-home-v2 .btfo-card{box-shadow:0 4px 18px #031d2b09}
@media(max-width:1100px){
.btfo-home-grid{grid-template-columns:1fr}
.btfo-home-command{align-items:flex-start;flex-direction:column}
.btfo-watch-row{grid-template-columns:minmax(65px,1fr) minmax(90px,1fr) minmax(120px,1.2fr)}
.btfo-watch-row-actions{grid-column:1/-1;justify-content:flex-end}}
@media(max-width:600px){
.btfo-home-grid{gap:12px}
.btfo-home-command{padding:16px}
.btfo-home-command-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
.btfo-home-command button{padding:10px 8px;font-size:11px}
.btfo-watch-row,.btfo-home-card .btfo-watch-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
.btfo-watch-row>div:nth-child(3){grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:10px}
.btfo-watch-price{text-align:right}
.btfo-watch-tools{display:grid;grid-template-columns:1fr;width:100%}
.btfo-home-card .btfo-monthly-grid{grid-template-columns:1fr}
.btfo-home-line{align-items:flex-start}
.btfo-home-line b,.btfo-home-line a{white-space:normal;overflow-wrap:anywhere;text-align:right}
.btfo-home-card .btfo-card{padding:17px}
.btfo-watchlist .btfo-card-heading{flex-wrap:wrap}
.btfo-app .btfo-mobile{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));overflow:visible}
.btfo-app .btfo-mobile button{min-width:0}}
.btfo-home-card[data-home-card="news"]{grid-column:1/-1}
.btfo-home-card[data-home-card="news"]>.btfo-card{min-height:0}
.btfo-home-v2 .btfo-home-summary{padding:0!important;border:0!important;background:none!important;box-shadow:none!important}
.btfo-home-summary .btfo-finance-hero{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.3fr);column-gap:28px;padding:25px}
.btfo-home-summary .btfo-finance-hero-top{grid-column:1/-1;margin-bottom:10px}
.btfo-home-summary .btfo-finance-hero h2{font-size:23px}
.btfo-home-summary .btfo-finance-total{margin:12px 0}
.btfo-home-summary .btfo-finance-metrics{grid-template-columns:repeat(2,minmax(0,1fr));margin:12px 0}
.btfo-home-summary .btfo-finance-total strong{font-size:clamp(22px,4.8cqi,40px)}
.btfo-home-summary .btfo-finance-total span{max-width:330px;font-size:11px}
/* Verified home allocation: responsive, theme-coherent and reduced-motion safe. */
#btfo-app .btfo-home-summary .btfo-finance-hero{grid-template-columns:minmax(0,.95fr) minmax(0,1.3fr) minmax(180px,.78fr);align-items:center}
#btfo-app .btfo-overview-allocation{display:flex;flex-direction:column;gap:10px;min-width:0;align-items:center;justify-content:center;padding:15px;border-radius:16px;border:1px solid rgba(174,205,221,.18);background:rgba(5,15,25,.24);color:#eaf4f7}
#btfo-app .btfo-overview-allocation-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;width:100%;font-size:13px}
#btfo-app .btfo-overview-allocation-head small{font-size:11px;color:#aec2d0}
#btfo-app .btfo-overview-allocation-graphic{display:flex;flex-direction:column;align-items:center;gap:14px;width:100%}
#btfo-app .btfo-overview-ring{width:clamp(116px,11vw,156px);aspect-ratio:1;display:grid;place-items:center;position:relative;isolation:isolate;border-radius:50%;background:conic-gradient(#28c6b1 0 var(--btfo-cash-share),#8196f8 var(--btfo-cash-share) 100%);animation:btfo-overview-arrive .68s cubic-bezier(.18,.72,.22,1) both}
#btfo-app .btfo-overview-ring::before{content:"";position:absolute;inset:14px;border-radius:50%;background:#122331;z-index:-1}
#btfo-app .btfo-overview-ring>div{display:flex;flex-direction:column;align-items:center;text-align:center;gap:2px}
#btfo-app .btfo-overview-ring strong{font-size:clamp(19px,2vw,27px);font-variant-numeric:tabular-nums;color:#f5fafc;line-height:1.2}
#btfo-app .btfo-overview-ring span{font-size:10px;color:#adbfce}
#btfo-app .btfo-overview-allocation-legend{display:grid;gap:8px;width:100%;font-size:12px}
#btfo-app .btfo-overview-allocation-legend span{display:flex;align-items:center;gap:7px}
#btfo-app .btfo-overview-allocation-legend i{width:9px;height:9px;border-radius:50%;background:#28c6b1;flex:none}
#btfo-app .btfo-overview-allocation-legend span:nth-child(2) i{background:#8196f8}
#btfo-app .btfo-overview-allocation-legend b{margin-left:auto;font-variant-numeric:tabular-nums;color:#f5fafc}
#btfo-app .btfo-overview-allocation-empty{display:flex;align-items:center;flex:1;font-size:12px;color:#aec2d0;min-height:100px;margin:0;text-align:center}
#btfo-app .btfo-overview-allocation [hidden]{display:none!important}
@keyframes btfo-overview-arrive{from{opacity:.4;transform:scale(.87) rotate(-12deg)}to{opacity:1;transform:scale(1) rotate(0)}}
@media (prefers-reduced-motion:reduce){#btfo-app .btfo-overview-ring{animation:none}}
@media (max-width:1250px){#btfo-app .btfo-home-summary .btfo-finance-hero{grid-template-columns:minmax(0,.95fr) minmax(0,1.3fr)}#btfo-app .btfo-overview-allocation{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between}#btfo-app .btfo-overview-allocation-graphic{flex-direction:row;justify-content:flex-end;width:auto;gap:20px}#btfo-app .btfo-overview-ring{width:105px}}
@media (max-width:780px){#btfo-app .btfo-home-summary .btfo-finance-hero{grid-template-columns:1fr}#btfo-app .btfo-overview-allocation{grid-column:auto}#btfo-app .btfo-overview-ring{width:96px}}
@media (max-width:480px){#btfo-app .btfo-overview-allocation{flex-direction:column}#btfo-app .btfo-overview-allocation-graphic{width:100%;justify-content:space-around}#btfo-app .btfo-overview-allocation-head{margin-bottom:4px}}

@media(max-width:700px){
.btfo-home-summary .btfo-finance-hero{grid-template-columns:1fr;padding:19px}
.btfo-home-summary .btfo-finance-hero-top{grid-column:auto}
.btfo-home-summary .btfo-finance-total strong{font-size:clamp(22px,6.7cqi,35px)}
.btfo-home-summary .btfo-finance-hero h2{font-size:20px}}
@container(max-width:1000px){
.btfo-home-summary .btfo-finance-hero{grid-template-columns:1fr}
.btfo-home-summary .btfo-finance-metrics{grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr))}}
#btfo-app .btfo-home-card>.btfo-card{margin:0;flex:1;height:auto}
.btfo-home-grid{align-items:stretch}
.btfo-home-card{display:flex;flex-direction:column}
#btfo-app .btfo-home-card .btfo-monthly-head p,#btfo-app .btfo-home-card .btfo-monthly-empty p{color:var(--bt-muted)}
#btfo-app .btfo-home-card .btfo-monthly-head button,#btfo-app .btfo-home-card .btfo-monthly-empty button{background:var(--bt-card2);color:var(--bt-text);border:1px solid var(--bt-line);border-radius:9px;padding:9px 12px;min-height:40px;font-size:12px}
/* Actual reference feeds, lightweight market sparklines, and headline links. */.btfo-auto-market{min-width:0}
.btfo-auto-tickers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}
.btfo-auto-ticker{min-width:0;padding:17px;border:1px solid var(--bt-line);border-radius:13px;background:var(--bt-card2);display:flex;flex-direction:column;gap:7px}
.btfo-auto-ticker>span{font-size:12px;color:var(--bt-muted)}
.btfo-auto-ticker strong{font-size:22px;overflow-wrap:anywhere}
.btfo-auto-ticker small{font-size:10px;color:var(--bt-muted);min-height:28px}
.btfo-auto-ticker svg{width:100%;height:35px;color:var(--bt-green)}
.btfo-home-card .btfo-auto-tickers{grid-template-columns:repeat(2,minmax(0,1fr))}
.btfo-auto-market>[role=status]{font-size:11px;color:var(--bt-muted)}
.btfo-auto-market .btfo-ohlcv{margin:24px 0;border:1px solid var(--bt-line);box-shadow:none;padding:18px}
.btfo-auto-news{border-top:1px solid var(--bt-line);padding-top:22px}
.btfo-auto-news label{display:grid;gap:7px;font-size:12px;max-width:350px;color:var(--bt-muted)}
.btfo-auto-news select{min-width:0;padding:11px;background:var(--bt-card2);color:var(--bt-text);border:1px solid var(--bt-line);border-radius:9px}
.btfo-auto-news-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:20px}
.btfo-auto-news-grid h4{font-size:16px}
.btfo-auto-news-grid article{padding:16px 0;border-top:1px solid var(--bt-line);font-size:13px;line-height:1.6}
.btfo-auto-news-grid a{color:var(--bt-text);text-decoration:none;overflow-wrap:anywhere}
.btfo-auto-news-grid a:hover{text-decoration:underline}
.btfo-auto-news-grid small{display:block;color:var(--bt-muted);font-size:11px;margin-top:6px}
.btfo-auto-news-grid [role=status]{font-size:13px;line-height:1.7;color:var(--bt-muted)}
.btfo-auto-market button,.btfo-reference-portfolio button{border:1px solid var(--bt-line);border-radius:9px;padding:10px 13px;background:var(--bt-card2);color:var(--bt-text);font-size:12px}
.btfo-reference-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.btfo-reference-metrics>div{border:1px solid var(--bt-line);border-radius:12px;padding:17px;background:var(--bt-card2)}
.btfo-reference-metrics small{display:block;color:var(--bt-muted);font-size:12px}
.btfo-reference-metrics strong{display:block;margin-top:8px;font-size:22px}
.btfo-reference-rows>div{display:flex;align-items:center;gap:15px;flex-wrap:wrap;padding:12px 0;border-top:1px solid var(--bt-line);font-size:13px}
.btfo-reference-rows small{color:var(--bt-muted);margin-left:auto;font-size:11px}
.btfo-reference-portfolio>[role=status]{font-size:12px;line-height:1.7;color:var(--bt-muted)}
@media(max-width:700px){
.btfo-auto-tickers{grid-template-columns:repeat(2,minmax(0,1fr))}
.btfo-auto-news-grid{grid-template-columns:1fr;gap:16px}
.btfo-auto-market .btfo-ohlcv{padding:12px 6px}
.btfo-reference-metrics strong{font-size:18px}
.btfo-reference-rows small{width:100%;margin-left:0}
.btfo-auto-ticker strong{font-size:18px}
.btfo-auto-ticker{padding:13px}
.btfo-auto-news-grid h4{margin-top:10px}}
/* v8.35: clear, accessible incomplete-valuation guidance on member home */.btfo-app .btfo-home-health{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:15px 18px;margin:12px 0 18px;border:1px solid #e7c78d;border-radius:14px;background:#fff8e9;color:#533d19}
.btfo-app .btfo-home-health strong{font-size:14px;color:#533d19}
.btfo-app .btfo-home-health ul{margin:7px 0;padding-left:20px;font-size:13px;line-height:1.6}
.btfo-app .btfo-home-health small{display:block;font-size:12px;line-height:1.5;color:#66502b}
.btfo-app .btfo-home-health-actions{display:flex;flex-wrap:wrap;gap:8px}
.btfo-app .btfo-home-health-actions button{min-height:44px;padding:10px 14px;border:1px solid #a37a30;border-radius:10px;background:#fff;color:#533d19;font-weight:700;cursor:pointer}
.btfo-app .btfo-home-health-actions button:focus-visible{outline:3px solid #94600c;outline-offset:2px}@media(max-width:700px){
.btfo-app .btfo-home-health{padding:14px}
.btfo-app .btfo-home-health-actions,.btfo-app .btfo-home-health-actions button{width:100%}}
/* v8.38: consistent member home interaction, contrast and responsive density. */#btfo-app .btfo-home-v2{width:100%;max-width:1280px;margin-inline:auto;min-width:0}
#btfo-app .btfo-home-v2 *{box-sizing:border-box}
#btfo-app .btfo-home-v2 .btfo-home-command{border-radius:20px;box-shadow:0 8px 28px rgba(12,35,50,.055);gap:20px}
#btfo-app .btfo-home-v2 .btfo-home-command h2{font-size:clamp(1.05rem,2vw,1.35rem);line-height:1.35;letter-spacing:-.015em}
#btfo-app .btfo-home-v2 .btfo-home-card>.btfo-card{border-radius:18px;min-width:0;overflow-wrap:anywhere;box-shadow:0 6px 24px rgba(8,32,48,.045);transition:box-shadow .18s ease,transform .18s ease}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
#btfo-app .btfo-home-v2 .btfo-home-card>.btfo-card:hover{box-shadow:0 12px 32px rgba(8,32,48,.10);transform:translateY(-2px)}}
#btfo-app .btfo-home-v2 button,#btfo-app .btfo-home-v2 summary,#btfo-app .btfo-home-v2 a{touch-action:manipulation}
#btfo-app .btfo-home-v2 button:focus-visible,#btfo-app .btfo-home-v2 a:focus-visible,#btfo-app .btfo-home-v2 summary:focus-visible,#btfo-app .btfo-home-v2 input:focus-visible{outline:3px solid var(--bt-green,#168b75);outline-offset:3px}
#btfo-app .btfo-home-v2 .btfo-home-command-actions button{min-height:44px;line-height:1.35;font-weight:650;white-space:normal}
#btfo-app .btfo-home-v2 .btfo-home-line{font-variant-numeric:tabular-nums;gap:10px}
#btfo-app .btfo-home-v2 .btfo-home-line>*{min-width:0}
#btfo-app .btfo-home-v2 .btfo-home-line a{text-underline-offset:3px}
@media(max-width:700px){
#btfo-app .btfo-home-v2 .btfo-home-command{margin:14px 0;padding:16px;border-radius:16px}
#btfo-app .btfo-home-v2 .btfo-home-grid{gap:14px}
#btfo-app .btfo-home-v2 .btfo-home-command-actions{gap:9px}
#btfo-app .btfo-home-v2 .btfo-home-command-actions button{min-height:48px;font-size:12px}
#btfo-app .btfo-home-v2 .btfo-home-card>.btfo-card{border-radius:15px;min-height:0}
#btfo-app .btfo-home-v2 .btfo-home-line{align-items:center}}
@media(max-width:380px){
#btfo-app .btfo-home-v2 .btfo-home-command-actions{grid-template-columns:1fr}
#btfo-app .btfo-home-v2 .btfo-home-command-actions button{width:100%}}
@media(prefers-reduced-motion:reduce){
#btfo-app .btfo-home-v2 .btfo-home-card>.btfo-card{transition:none!important;transform:none!important}}
/* 8.39 — site-native, edge-to-edge Finance OS; scoped to shortcode pages only. */body.btfo-fullwidth-page :is(.entry-content,.post-content,.elementor-widget-shortcode,.elementor-shortcode,.wp-block-shortcode){max-width:none!important;width:100%;min-width:0}
body.btfo-fullwidth-page :is(.site-main,.content-area,.site-content,.entry-content,.elementor-container,.e-con-inner):has(> #btfo-app){max-width:none!important;width:100%!important}
body.btfo-fullwidth-page #btfo-app :is(.btfo-card,.btfo-row,.btfo-form){min-width:0}
body.btfo-fullwidth-page #btfo-app :is(input,select,textarea,button){max-width:100%}
body.btfo-fullwidth-page #btfo-app :is(a,button,input,select,textarea):focus-visible{outline:3px solid var(--bt-green,#008f68);outline-offset:3px}

@media(max-width:800px){
body.btfo-fullwidth-page #btfo-app .btfo-mobile button{min-height:52px}}
@media(prefers-reduced-motion:reduce){
body.btfo-fullwidth-page #btfo-app *,body.btfo-fullwidth-page #btfo-app *::before,body.btfo-fullwidth-page #btfo-app *::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
/* Release clipping only along the active workspace's ancestor path. */body.btfo-fullwidth-page :is(.kanews-article,.entry-content,.entry-content-wrapper,.entry-content-inner,.post-content,.elementor-widget-container,.elementor-shortcode,.wp-block-shortcode):has(#btfo-app){overflow:visible!important}
body.btfo-fullwidth-page .btfo-workspace-ancestor{overflow:visible!important}
body.btfo-fullwidth-page{overflow-x:clip}
@media(max-width:800px){
#btfo-app.btfo-app{border-radius:0}}
/* 8.47: finance terminal visual system. Scoped to the app; no Kanews globals. */#btfo-app .btfo-top p{font-size:clamp(13px,1vw,15px);line-height:1.6;margin-top:8px}
#btfo-app .btfo-auto-market{padding:clamp(17px,2vw,30px);border-radius:22px;background:var(--bt-card);border:1px solid var(--bt-line)}
#btfo-app .btfo-auto-market>.btfo-card-heading h2{font-size:clamp(22px,2vw,31px);line-height:1.18;letter-spacing:-.025em}
#btfo-app .btfo-auto-market>.btfo-help{font-size:13px;line-height:1.65;max-width:80ch}
#btfo-app .btfo-auto-tickers{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
#btfo-app .btfo-auto-ticker{padding:20px;gap:10px;border-radius:16px;min-height:150px;transition:border-color .18s ease,transform .18s ease}
#btfo-app .btfo-auto-ticker strong{font-size:clamp(21px,2vw,28px);font-variant-numeric:tabular-nums;line-height:1.2}
#btfo-app .btfo-auto-ticker>span{font-size:13px;font-weight:650}
#btfo-app .btfo-auto-ticker small{font-size:11px;line-height:1.5}
#btfo-app .btfo-auto-market .btfo-ohlcv{padding:clamp(16px,2vw,26px);margin:24px 0 30px;border-radius:19px;background:var(--bt-card2);overflow:visible}
#btfo-app .btfo-chart-heading{margin-bottom:22px;align-items:flex-start}
#btfo-app .btfo-chart-heading h2{font-size:clamp(20px,1.7vw,26px);letter-spacing:-.02em;color:var(--bt-text)}
#btfo-app .btfo-chart-note{color:var(--bt-muted);font-size:12px;line-height:1.6}
#btfo-app .btfo-chart-zoom{align-self:end;gap:5px}
#btfo-app .btfo-ohlcv [data-chart-status]{color:var(--bt-muted)!important;font-size:12px!important;line-height:1.7;margin:10px 0 14px;overflow-wrap:anywhere}
#btfo-app .btfo-ohlcv-stage{border:1px solid #35516a;background:#101b2d;border-radius:14px}
#btfo-app .btfo-ohlcv-detail,#btfo-app .btfo-ohlcv>.btfo-help{color:var(--bt-muted)!important;font-size:12px;line-height:1.7}
#btfo-app .btfo-auto-news{margin-top:28px;padding-top:27px;border-top:1px solid var(--bt-line)}
#btfo-app .btfo-auto-news .btfo-card-heading{margin-bottom:20px}
#btfo-app .btfo-auto-news .btfo-card-heading h3{color:var(--bt-text)!important;font-size:clamp(19px,1.7vw,24px)!important;font-weight:800;letter-spacing:-.02em;margin:0}
#btfo-app .btfo-auto-news label{color:var(--bt-text)!important;font-weight:700;max-width:400px;font-size:12px}
#btfo-app .btfo-auto-news-grid{gap:16px;margin-top:22px}
#btfo-app .btfo-auto-news-grid>.btfo-editorial-column{min-width:0;padding:20px;border:1px solid var(--bt-line);border-radius:16px;background:var(--bt-card2)}
#btfo-app .btfo-auto-news-grid h4{color:var(--bt-text)!important;font-size:17px!important;font-weight:750;margin:0 0 12px;line-height:1.4}
#btfo-app .btfo-auto-news-grid a{color:var(--bt-text)!important;font-size:13px;font-weight:650;line-height:1.65}
#btfo-app .btfo-auto-news-grid .btfo-help,#btfo-app .btfo-auto-news-grid [role=status]{color:var(--bt-muted)!important;font-size:12px;line-height:1.65}
#btfo-app .btfo-auto-news-grid article{padding:14px 0}
#btfo-app .btfo-auto-market .btfo-ohlcv *{box-sizing:border-box}
@media(hover:hover){
#btfo-app .btfo-auto-ticker:hover{border-color:#48718a;transform:translateY(-2px)}}

@media(max-width:900px){
#btfo-app .btfo-auto-tickers{grid-template-columns:repeat(2,minmax(0,1fr))}
#btfo-app .btfo-auto-news-grid{grid-template-columns:1fr}
#btfo-app .btfo-ohlcv-stage canvas{height:380px}}
@media(max-width:600px){
#btfo-app .btfo-auto-market{padding:14px;border-radius:15px}
#btfo-app .btfo-auto-tickers{gap:9px}
#btfo-app .btfo-auto-ticker{padding:12px;min-height:125px}
#btfo-app .btfo-auto-market .btfo-ohlcv{padding:13px;margin:16px 0}
#btfo-app .btfo-ohlcv-stage canvas{height:300px}
#btfo-app .btfo-auto-news-grid>.btfo-editorial-column{padding:14px}}
@media(prefers-reduced-motion:reduce){
#btfo-app .btfo-auto-ticker{transition:none}
#btfo-app .btfo-auto-ticker:hover{transform:none}}
/* 8.48 progressive news: first five cards, remaining cards revealed on demand. */#btfo-app .btfo-auto-news-grid{align-items:start;gap:clamp(16px,2vw,28px)}
#btfo-app .btfo-auto-news-grid>.btfo-editorial-column{min-width:0;border:1px solid rgba(135,170,192,.2);border-radius:18px;padding:clamp(16px,2vw,24px);background:rgba(11,29,44,.44)}
#btfo-app .btfo-auto-news-grid h4{margin:0 0 12px;color:#eff8ff;font-size:1.1rem;line-height:1.35}
#btfo-app .btfo-progressive-feed{display:grid;gap:0}
#btfo-app .btfo-feed-item{padding:15px 0;border-bottom:1px solid rgba(147,178,195,.16);min-width:0}
#btfo-app .btfo-feed-item a{display:block;color:#e8f6ff!important;font-size:clamp(14px,1vw,16px);font-weight:650;line-height:1.55;text-decoration:none;overflow-wrap:anywhere}
#btfo-app .btfo-feed-item a:hover,#btfo-app .btfo-feed-item a:focus-visible{color:#4fe4b8!important;text-decoration:underline;text-underline-offset:3px}
#btfo-app .btfo-feed-item small{display:block;margin-top:7px;color:#9db9c9;font-size:12px;line-height:1.5}
#btfo-app .btfo-feed-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:16px}
#btfo-app .btfo-feed-count{color:#a9c4d1;font-size:12px;font-variant-numeric:tabular-nums}
#btfo-app.btfo-light .btfo-auto-news-grid>.btfo-editorial-column{background:#fff;border-color:#d9e4ec}
#btfo-app.btfo-light .btfo-auto-news-grid h4,#btfo-app.btfo-light .btfo-feed-item a{color:#132b3c!important}
#btfo-app.btfo-light .btfo-feed-item small,#btfo-app.btfo-light .btfo-feed-count{color:#536c7e}
@media(max-width:780px){
#btfo-app .btfo-auto-news-grid{grid-template-columns:minmax(0,1fr)}
#btfo-app .btfo-auto-news-grid>.btfo-editorial-column{padding:16px}}
/* 8.50: compact market overview — preserve source timestamps and errors, remove visual clutter. */#btfo-app .btfo-auto-market .btfo-auto-tickers{gap:10px;margin:14px 0 12px;grid-template-columns:repeat(3,minmax(0,1fr))}
#btfo-app .btfo-auto-market .btfo-auto-ticker{min-height:0!important;padding:14px 16px!important;gap:5px!important;border-radius:12px;box-shadow:none;justify-content:start}
#btfo-app .btfo-auto-market .btfo-auto-ticker>span{font-size:12px;line-height:1.4;font-weight:600}
#btfo-app .btfo-auto-market .btfo-auto-ticker strong{font-size:clamp(19px,1.5vw,24px);line-height:1.2;letter-spacing:-.02em}
#btfo-app .btfo-auto-market .btfo-auto-ticker small{font-size:10px;line-height:1.35;min-height:0;margin:0}
#btfo-app .btfo-auto-market .btfo-auto-ticker svg{height:24px;width:100%;max-width:170px;margin-top:3px;align-self:start}
#btfo-app .btfo-auto-market [data-auto-status][hidden]{display:none!important}
#btfo-app .btfo-auto-market [data-auto-status]:not([hidden]){margin:6px 0 0;color:var(--bt-muted);font-size:12px}
#btfo-app .btfo-auto-market>.btfo-help{margin:8px 0 0;font-size:12px;line-height:1.45}
@media(max-width:900px){
#btfo-app .btfo-auto-market .btfo-auto-tickers{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){
#btfo-app .btfo-auto-market .btfo-auto-tickers{gap:8px}
#btfo-app .btfo-auto-market .btfo-auto-ticker{padding:11px!important}
#btfo-app .btfo-auto-market .btfo-auto-ticker strong{font-size:19px}
#btfo-app .btfo-auto-market .btfo-auto-ticker svg{height:20px}}
/* v8.51: measured responsive workspace. Keep desktop navigation visible while scrolling. *//* Reduce chart vertical footprint and prevent huge empty gaps on wide monitors. */#btfo-app .btfo-auto-market .btfo-ohlcv{padding:clamp(14px,1.5vw,20px)!important;margin:14px 0 20px!important}
#btfo-app .btfo-chart-heading{margin-bottom:12px!important}
#btfo-app .btfo-ohlcv-stage canvas{height:clamp(270px,28vw,380px)!important;max-height:380px!important}
#btfo-app .btfo-ohlcv [data-chart-status]{margin:5px 0 9px!important}
#btfo-app .btfo-ohlcv-detail{margin-top:6px!important}
#btfo-app .btfo-ohlcv>.btfo-help{margin:4px 0 0!important}


@media(max-width:800px){
#btfo-app .btfo-ohlcv-stage canvas{height:clamp(235px,65vw,330px)!important}
#btfo-app .btfo-mobile{position:fixed!important;left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));width:auto;z-index:9999!important;border:1px solid #3b586b;border-radius:16px;padding:6px 5px;box-shadow:0 8px 35px #0008;display:grid!important;grid-template-columns:repeat(9,minmax(60px,1fr))!important;overflow-x:auto!important;scrollbar-width:none}
#btfo-app .btfo-mobile button{min-height:48px!important;padding:5px 1px!important;font-size:18px!important}
#btfo-app .btfo-mobile button small{font-size:9px!important}}
@media(max-width:520px){
#btfo-app .btfo-chart-heading h2{font-size:20px!important}
#btfo-app .btfo-chart-note{display:none!important}}
/* The mobile navigation is a sibling of #btfo-app in the shortcode markup. */
@media(max-width:800px){
body.btfo-fullwidth-page .btfo-mobile{position:fixed!important;left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right));bottom:max(8px,env(safe-area-inset-bottom));z-index:99999!important;display:flex!important;align-items:stretch;gap:2px;width:auto;max-width:calc(100vw - 16px);box-sizing:border-box;overflow-x:auto!important;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none;background:#0d2233;border:1px solid #3b586b;border-radius:16px;padding:5px;box-shadow:0 8px 35px #0008;}
body.btfo-fullwidth-page .btfo-mobile::-webkit-scrollbar{display:none}
body.btfo-fullwidth-page .btfo-mobile button{flex:1 0 54px;min-width:54px;min-height:48px;padding:5px 2px;border:0;border-radius:10px;background:transparent;color:#a9c0cb;font-size:18px;line-height:1.1;scroll-snap-align:center}
body.btfo-fullwidth-page .btfo-mobile button small{display:block;margin-top:4px;font-size:9px;line-height:1.1;white-space:nowrap}
body.btfo-fullwidth-page .btfo-mobile button.active{background:#1ee0a01a;color:#1ee0a0}
body.btfo-fullwidth-page #btfo-app .btfo-main{padding-bottom:112px!important}}
/* 8.52: editorial-first, compact news feed */#btfo-app .btfo-feed-item{padding:12px 0}

/* 8.187: Investor Academy — self-contained, member-only learning workspace. */
#btfo-app .btfo-academy{--academy-bg:#080b0f;--academy-card:#11161d;--academy-card2:#151c24;--academy-line:#27313c;--academy-text:#edf3f6;--academy-muted:#9eacb8;--academy-green:#21d99a;color:var(--academy-text);display:grid;gap:18px}
#btfo-app .btfo-academy [hidden]{display:none!important}
#btfo-app .btfo-academy-hero{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:clamp(22px,4vw,38px);border:1px solid #244437;border-radius:22px;background:radial-gradient(ellipse at 88% 15%,#1b70494d,transparent 34%),linear-gradient(135deg,#101b18,#11161d 58%,#101820)}
#btfo-app .btfo-academy-eyebrow{color:#73e4b7;font-size:10px;font-weight:800;letter-spacing:.15em}
#btfo-app .btfo-academy-hero h2{font-size:clamp(26px,4vw,38px);line-height:1.15;margin:9px 0;color:#f2f8f5}
#btfo-app .btfo-academy-hero p{max-width:650px;margin:0;color:#b7c9c1;font-size:14px;line-height:1.7}
#btfo-app .btfo-academy-hero-mark{flex:0 0 90px;width:90px;height:90px;display:grid;place-content:center;border:1px solid #4ab88c66;border-radius:26px;transform:rotate(8deg);background:#0c2119;color:#a3f2d0;font-size:40px;font-weight:850;box-shadow:0 12px 42px #0004}
#btfo-app .btfo-academy-hero-mark span{font-size:16px;vertical-align:top}
#btfo-app .btfo-academy-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
#btfo-app .btfo-academy-kpis article{display:grid;gap:5px;padding:17px;border:1px solid var(--academy-line);border-radius:15px;background:var(--academy-card)}
#btfo-app .btfo-academy-kpis strong{font-size:25px;line-height:1.2;color:#f4f7fa;font-variant-numeric:tabular-nums}
#btfo-app .btfo-academy-kpis strong small{font-size:13px;color:#83929f}
#btfo-app .btfo-academy-kpis span{font-size:11px;color:var(--academy-muted)}
#btfo-app .btfo-academy-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid var(--academy-line)}
#btfo-app .btfo-academy-tabs{display:flex;gap:6px;overflow:auto}
#btfo-app .btfo-academy-tabs button{white-space:nowrap;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:#a9b5c0;padding:12px 14px;font-size:13px;font-weight:720}
#btfo-app .btfo-academy-tabs button[aria-selected=true]{border-color:var(--academy-green);color:#e9fff5}
#btfo-app .btfo-academy button{cursor:pointer;transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease}
#btfo-app .btfo-academy button:focus-visible,#btfo-app .btfo-academy input:focus-visible,#btfo-app .btfo-academy select:focus-visible{outline:2px solid #42e6ab;outline-offset:2px}
#btfo-app .btfo-academy-reset{border:1px solid #3a424b;border-radius:10px;background:#11161d;color:#c0cad3;padding:9px 12px;font-size:11px}
#btfo-app .btfo-academy-reset:hover{border-color:#af6c6c;color:#ffd9d9}
#btfo-app .btfo-academy-controls{display:grid;grid-template-columns:minmax(200px,1.5fr) repeat(2,minmax(150px,.7fr));align-items:end;gap:12px;margin:17px 0}
#btfo-app .btfo-academy-controls label{display:grid;gap:7px;color:#aab7c3;font-size:11px;font-weight:700}
#btfo-app .btfo-academy-controls input,#btfo-app .btfo-academy-controls select{min-width:0;width:100%;height:42px;border:1px solid #303b47;border-radius:10px;background:#0c1117;color:#f1f5f8;padding:0 12px;font:inherit;font-size:12px}
#btfo-app .btfo-academy-controls input::placeholder{color:#7f8c98}
#btfo-app .btfo-academy-course-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
#btfo-app .btfo-academy-course{display:grid;grid-template-rows:auto auto 1fr auto auto;gap:9px;min-width:0;padding:18px;border:1px solid var(--academy-line);border-radius:16px;background:linear-gradient(145deg,#131922,#0e1319);transition:transform .18s ease,border-color .18s ease}
#btfo-app .btfo-academy-course:hover{transform:translateY(-2px);border-color:#3c6a57}
#btfo-app .btfo-academy-course-top,.btfo-academy-course-foot{display:flex;align-items:center;justify-content:space-between;gap:10px}
#btfo-app .btfo-academy-course-top{color:#a1b2bd;font-size:10px}
#btfo-app .btfo-academy-course-top span:first-child{color:#72dcb2;font-weight:750}
#btfo-app .btfo-academy-course h3{margin:2px 0;color:#eef4f7;font-size:17px;line-height:1.35}
#btfo-app .btfo-academy-course p{margin:0;color:#9eacb8;font-size:12px;line-height:1.65}
#btfo-app .btfo-academy-progress{display:flex;align-items:center;gap:10px;margin-top:4px}
#btfo-app .btfo-academy-progress>span{height:5px;flex:1;overflow:hidden;border-radius:8px;background:#252d36}
#btfo-app .btfo-academy-progress i{display:block;height:100%;border-radius:8px;background:linear-gradient(90deg,#20bd83,#73efb7)}
#btfo-app .btfo-academy-progress small{min-width:48px;color:#96a4b0;font-size:10px;text-align:right}
#btfo-app .btfo-academy-course-foot{padding-top:8px;border-top:1px solid #222b34}
#btfo-app .btfo-academy-course-foot>span{color:#9facb7;font-size:10px}
#btfo-app .btfo-academy-course-foot>span.is-passed{color:#6ee7b1}
#btfo-app .btfo-academy-course-foot button,#btfo-app .btfo-academy-lesson>button,#btfo-app .btfo-academy-quiz-actions button{border:1px solid #287a59;border-radius:9px;background:#103b2a;color:#c5ffe5;padding:9px 12px;font-size:11px;font-weight:750}
#btfo-app .btfo-academy-course-foot button:hover,#btfo-app .btfo-academy-lesson>button:hover,#btfo-app .btfo-academy-quiz-actions button:hover{background:#17553c}
#btfo-app .btfo-academy-detail{scroll-margin-top:20px;margin-top:20px;padding:clamp(16px,3vw,25px);border:1px solid #31483d;border-radius:18px;background:#0c1212}
#btfo-app .btfo-academy-detail-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:18px}
#btfo-app .btfo-academy-detail-head>div>span{color:#73ddb3;font-size:10px;font-weight:750}
#btfo-app .btfo-academy-detail-head h2{margin:7px 0;color:#f3f7f8;font-size:24px}
#btfo-app .btfo-academy-detail-head p{margin:0;color:#9eacb8;font-size:12px;line-height:1.65}
#btfo-app .btfo-academy-detail-head>button{width:35px;height:35px;border:1px solid #39434d;border-radius:10px;background:#131a20;color:#dae2e8;font-size:22px;line-height:1}
#btfo-app .btfo-academy-lessons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#btfo-app .btfo-academy-lesson{display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-width:0;padding:15px;border:1px solid #28343b;border-radius:13px;background:#10171a}
#btfo-app .btfo-academy-lesson.is-complete{border-color:#256348}
#btfo-app .btfo-academy-lesson-title{display:grid;grid-template-columns:30px 1fr;align-items:center;gap:8px;width:100%}
#btfo-app .btfo-academy-lesson-title>span{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#1c332a;color:#8ee8bf;font-size:10px;font-weight:800}
#btfo-app .btfo-academy-lesson-title h3{margin:0;color:#edf3f5;font-size:13px;line-height:1.4}
#btfo-app .btfo-academy-lesson-title b{grid-column:2;color:#8c9aa4;font-size:9px;font-weight:600}
#btfo-app .btfo-academy-lesson p{margin:0;color:#abb7bf;font-size:11px;line-height:1.7}
#btfo-app .btfo-academy-key{display:grid;gap:4px;width:100%;padding:10px;border-left:2px solid #3eaa7a;background:#101e19;color:#a9c2b5;font-size:10px;line-height:1.6}
#btfo-app .btfo-academy-key strong{color:#7fe2b2;font-size:9px;text-transform:uppercase;letter-spacing:.07em}
#btfo-app .btfo-academy-lesson>button{margin-top:auto}
#btfo-app .btfo-academy-lesson>button:disabled{border-color:#286546;background:#14271e;color:#83d9ae;cursor:default}
#btfo-app .btfo-academy-quiz{margin-top:18px;padding:17px;border:1px solid #27353a;border-radius:14px;background:#101719}
#btfo-app .btfo-academy-quiz-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
#btfo-app .btfo-academy-quiz-head span{color:#76dcb1;font-size:9px;font-weight:800;letter-spacing:.12em}
#btfo-app .btfo-academy-quiz-head h3{margin:4px 0;color:#eef4f6;font-size:18px}
#btfo-app .btfo-academy-quiz-head small{color:#9daab3;font-size:10px}
#btfo-app .btfo-academy-quiz fieldset{min-width:0;margin:0;padding:15px 0;border:0;border-top:1px solid #283238}
#btfo-app .btfo-academy-quiz legend{width:100%;padding:0 0 10px;color:#e5ecef;font-size:12px;font-weight:700}
#btfo-app .btfo-academy-quiz legend span{display:inline-block;margin-right:9px;color:#72dcb2;font-size:10px}
#btfo-app .btfo-academy-quiz fieldset label{display:flex;align-items:flex-start;gap:9px;padding:8px 10px;border:1px solid transparent;border-radius:9px;color:#b3bec6;font-size:11px;line-height:1.5;cursor:pointer}
#btfo-app .btfo-academy-quiz fieldset label:hover{border-color:#2b4639;background:#121e18}
#btfo-app .btfo-academy-quiz input{accent-color:#24cf91}
#btfo-app .btfo-academy-answer{margin:7px 0 0;padding:9px 11px;border-radius:8px;background:#22191a;color:#ecc5c5;font-size:10px;line-height:1.6}
#btfo-app .btfo-academy-answer.is-correct{background:#12251b;color:#a5e8c3}
#btfo-app .btfo-academy-quiz-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
#btfo-app .btfo-academy-quiz-actions [data-academy-quiz-result]{color:#abc0b5;font-size:11px}
#btfo-app .btfo-academy-next{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;color:#8c9ba5;font-size:10px}
#btfo-app .btfo-academy-next button{border:1px solid #34434a;border-radius:9px;background:#141b20;color:#c7d1d7;padding:9px 11px;font-size:10px}
#btfo-app .btfo-academy-glossary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
#btfo-app .btfo-academy-glossary article{display:grid;grid-template-columns:minmax(120px,.6fr) 1.4fr;align-items:center;gap:14px;padding:13px 15px;border:1px solid #28323d;border-radius:12px;background:#10151b}
#btfo-app .btfo-academy-glossary article>div>span{color:#78dcb3;font-size:9px}
#btfo-app .btfo-academy-glossary h3{margin:4px 0 0;color:#eaf0f3;font-size:12px}
#btfo-app .btfo-academy-glossary p{margin:0;color:#a5b1bb;font-size:10px;line-height:1.6}
#btfo-app .btfo-academy-count{align-self:center;color:#9aa8b2;font-size:10px}
#btfo-app .btfo-academy-sources{padding:17px;border:1px solid #29333d;border-radius:14px;background:#10151a}
#btfo-app .btfo-academy-sources h3{margin:0 0 5px;color:#edf3f5;font-size:14px}
#btfo-app .btfo-academy-sources p{margin:0 0 11px;color:#99a8b1;font-size:10px;line-height:1.6}
#btfo-app .btfo-academy-sources [data-academy-sources]{display:flex;gap:8px;flex-wrap:wrap}
#btfo-app .btfo-academy-sources a{display:inline-flex;gap:6px;align-items:center;padding:8px 10px;border:1px solid #303b45;border-radius:8px;color:#c6d8d0;text-decoration:none;font-size:10px}
#btfo-app .btfo-academy-sources a:hover{border-color:#3c966e;color:#90ebbd}
#btfo-app .btfo-academy-disclaimer{margin:0;padding:12px 14px;border-left:2px solid #6f7f89;background:#10151a;color:#9ba8b1;font-size:10px;line-height:1.65}
#btfo-app .btfo-academy-empty{grid-column:1/-1;padding:28px;border:1px dashed #36414b;border-radius:12px;color:#a8b4bd;text-align:center;font-size:12px}
#btfo-app .btfo-academy-toast{position:sticky;bottom:90px;justify-self:center;z-index:10;max-width:min(90%,520px);padding:10px 15px;border:1px solid #357954;border-radius:11px;background:#11251b;color:#d7f8e4;font-size:12px;box-shadow:0 9px 28px #0008;opacity:0;pointer-events:none;transform:translateY(6px);transition:.2s}
#btfo-app .btfo-academy-toast.is-visible{opacity:1;transform:translateY(0)}
@media(max-width:900px){#btfo-app .btfo-academy-lessons{grid-template-columns:1fr}#btfo-app .btfo-academy-glossary{grid-template-columns:1fr}}
@media(max-width:600px){#btfo-app .btfo-academy{gap:13px}#btfo-app .btfo-academy-hero{padding:20px;border-radius:17px}#btfo-app .btfo-academy-hero-mark{flex-basis:58px;width:58px;height:58px;border-radius:18px;font-size:28px}#btfo-app .btfo-academy-hero p{font-size:12px}#btfo-app .btfo-academy-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#btfo-app .btfo-academy-kpis article{padding:12px}#btfo-app .btfo-academy-kpis strong{font-size:21px}#btfo-app .btfo-academy-toolbar{align-items:flex-start;flex-direction:column-reverse;padding-bottom:8px}#btfo-app .btfo-academy-tabs{width:100%}#btfo-app .btfo-academy-tabs button{flex:1;padding:10px 6px;font-size:11px}#btfo-app .btfo-academy-controls{grid-template-columns:1fr 1fr;gap:9px;margin:12px 0}#btfo-app .btfo-academy-controls .btfo-academy-search{grid-column:1/-1}#btfo-app .btfo-academy-course-grid{grid-template-columns:1fr}#btfo-app .btfo-academy-course{padding:15px}#btfo-app .btfo-academy-detail{padding:14px}#btfo-app .btfo-academy-detail-head h2{font-size:20px}#btfo-app .btfo-academy-lesson{padding:13px}#btfo-app .btfo-academy-next{align-items:flex-start;flex-direction:column}#btfo-app .btfo-academy-glossary article{grid-template-columns:1fr;gap:5px}#btfo-app .btfo-academy-sources [data-academy-sources]{display:grid;grid-template-columns:1fr}#btfo-app .btfo-academy-sources a{justify-content:space-between}}
#btfo-app .btfo-feed-item small{font-size:11px;margin-top:5px;letter-spacing:.01em}
#btfo-app .btfo-feed-footer{justify-content:flex-start;padding-top:12px}
#btfo-app .btfo-auto-news-grid h4{font-size:1rem;margin-bottom:8px}
/* 8.53: compact finance-first home, accessible header tools */#btfo-app .btfo-top p{font-size:12px!important}
#btfo-app .btfo-date{display:inline-flex!important;font-size:11px!important;white-space:nowrap;margin-right:5px}
#btfo-app .btfo-layout-trigger{border:1px solid var(--bt-line);background:var(--bt-card);color:var(--bt-text);cursor:pointer}
#btfo-app .btfo-layout-trigger:hover,#btfo-app .btfo-layout-trigger:focus-visible{border-color:var(--bt-green)}
#btfo-app .btfo-home-market-jump{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:12px 0;padding:13px 16px;border:1px solid var(--bt-line);border-radius:12px;background:var(--bt-card)}
#btfo-app .btfo-home-market-jump>div{display:flex;flex-direction:column;gap:3px;min-width:0}
#btfo-app .btfo-home-market-jump strong{font-size:15px;color:var(--bt-text);line-height:1.3}
#btfo-app .btfo-home-market-jump small{font-size:11px;color:var(--bt-muted)}
#btfo-app .btfo-home-market-jump button{flex-shrink:0;border:1px solid var(--bt-green);background:var(--bt-green);color:#062b22;font-weight:750;border-radius:9px;padding:9px 12px;cursor:pointer}
#btfo-app .btfo-home-command{padding:12px 15px!important;margin:12px 0!important;gap:12px!important}
#btfo-app .btfo-home-command h2{font-size:14px!important;color:var(--bt-text)!important;margin:3px 0 0!important}
#btfo-app .btfo-home-command-actions{gap:6px!important}
#btfo-app .btfo-home-command-actions button{min-height:35px!important;padding:7px 10px!important;font-size:11px!important}
#btfo-app .btfo-home-grid{gap:12px!important}
#btfo-app .btfo-home-card>.btfo-card{min-height:0!important}
#btfo-app .btfo-home-v2{max-width:none!important}
@media(max-width:850px){
#btfo-app .btfo-home-market-jump{padding:12px}
#btfo-app .btfo-home-command{flex-direction:column;align-items:stretch}
#btfo-app .btfo-home-command-actions{display:flex;flex-wrap:wrap}}
@media(max-width:480px){
#btfo-app .btfo-top p{display:none}
#btfo-app .btfo-toolbar-label{font-size:11px}
#btfo-app .btfo-home-market-jump{align-items:flex-start;flex-wrap:wrap}
#btfo-app .btfo-home-market-jump button{width:100%}}
/* v8.54: accessible form controls; theme CSS must not make typed values invisible. */#btfo-app :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),textarea,select){background:var(--btfo-field-bg)!important;color:var(--btfo-field-ink)!important;-webkit-text-fill-color:var(--btfo-field-ink)!important;caret-color:var(--btfo-field-ink)!important;border-color:var(--btfo-field-border)!important;opacity:1!important}
#btfo-app :is(input,textarea)::placeholder{color:var(--btfo-field-placeholder)!important;-webkit-text-fill-color:var(--btfo-field-placeholder)!important;opacity:1!important}
#btfo-app :is(input,textarea,select):disabled{opacity:.6!important;cursor:not-allowed}
#btfo-app select option{background:var(--btfo-field-bg)!important;color:var(--btfo-field-ink)!important}
#btfo-app :is(input,textarea):-webkit-autofill,#btfo-app :is(input,textarea):-webkit-autofill:hover,#btfo-app :is(input,textarea):-webkit-autofill:focus{-webkit-text-fill-color:var(--btfo-field-ink)!important;box-shadow:0 0 0 1000px var(--btfo-field-bg) inset!important;caret-color:var(--btfo-field-ink)!important}
#btfo-app :is(input,textarea,select):focus-visible{outline:3px solid var(--bt-green)!important;outline-offset:2px}
#btfo-app :is(input,textarea,select)[aria-invalid=true]{border-color:#f78b99!important;outline-color:#f78b99!important}
/* v8.55 Watchlist: focused entry, compact empty state, readable forms */.btfo-app .btfo-watchlist{max-width:none}
.btfo-app .btfo-watch-editor{padding:14px 18px;margin:14px 0 10px;border-radius:12px}
.btfo-app .btfo-watch-editor[open]{background:var(--bt-card2)}
.btfo-app .btfo-watch-editor summary{font-size:14px;color:var(--bt-text);list-style-position:inside}
.btfo-app .btfo-watch-editor .btfo-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
.btfo-app .btfo-watch-editor .btfo-form label{min-width:0;display:grid;gap:6px;color:var(--bt-text);font-size:12px}
.btfo-app .btfo-watch-editor .btfo-form input,.btfo-app .btfo-watch-editor .btfo-form select{width:100%;min-width:0;min-height:43px;background:var(--bt-card);color:var(--bt-text);border:1px solid var(--bt-line);border-radius:9px;padding:10px 12px}
.btfo-app .btfo-watch-editor .btfo-form button[type=submit]{grid-column:1/-1;justify-self:start;min-height:43px;border:0;border-radius:9px;background:var(--bt-green);color:#052d25;padding:10px 22px;font-weight:750;cursor:pointer}
.btfo-app .btfo-watch-empty{padding:14px 4px 6px}
.btfo-app .btfo-watch-empty p{margin:5px 0;color:var(--bt-muted)}
.btfo-app .btfo-watch-tools{margin:12px 0}
@media(max-width:650px){
.btfo-app .btfo-watch-editor .btfo-form{grid-template-columns:1fr}
.btfo-app .btfo-watch-editor .btfo-form button[type=submit]{width:100%}}
/* Independent editorial filters share the native form and keyboard design. */
#btfo-app .btfo-editorial-filters{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:0 0 18px}
#btfo-app .btfo-editorial-filters label{max-width:none;min-width:0;width:100%}
#btfo-app .btfo-editorial-filters input,#btfo-app .btfo-editorial-filters select{min-width:0;width:100%;box-sizing:border-box}
#btfo-app .btfo-editorial-search{display:flex;align-items:stretch;gap:8px;max-width:100%;min-width:0}
#btfo-app .btfo-editorial-search input{flex:1 1 0;min-width:0;width:0;box-sizing:border-box}
#btfo-app .btfo-editorial-column [data-feed-search] label{min-width:0;max-width:100%}
#btfo-app .btfo-editorial-search button{flex:none;min-width:58px;min-height:42px}
#btfo-app .btfo-feed-reset{justify-self:start;border:0;background:transparent;color:var(--bt-muted);padding:2px 0;min-height:32px;font-size:12px;cursor:pointer}
#btfo-app .btfo-editorial-column h3{margin:0;font-size:20px;line-height:1.3}
#btfo-app .btfo-icon-button{min-width:42px;min-height:42px;font-size:20px;line-height:1}
/* Account settings and KORA use the same form/card surface as the finance workspace. */
#btfo-app .btfo-settings-form{padding-bottom:80px}
#btfo-app .btfo-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
#btfo-app .btfo-settings-grid>.btfo-card{min-width:0;margin:0;padding:24px}
#btfo-app .btfo-settings-grid h2{font-size:19px;margin:0 0 18px}
#btfo-app .btfo-settings-grid label{display:grid;gap:7px;margin:14px 0;color:var(--bt-muted);font-size:13px;min-width:0}
#btfo-app .btfo-settings-grid select{min-width:0;width:100%;min-height:44px;padding:10px;background:var(--bt-bg);border:1px solid var(--bt-line);color:var(--bt-text);border-radius:9px;box-sizing:border-box}
#btfo-app .btfo-settings-grid .btfo-settings-toggle,#btfo-app .btfo-settings-checks label{display:flex;align-items:center;gap:10px;min-height:36px;color:var(--bt-text)}
#btfo-app .btfo-settings-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px}
#btfo-app .btfo-settings-grid input[type=checkbox]{width:18px;height:18px;accent-color:var(--bt-green);flex:none}
#btfo-app .btfo-settings-account{grid-column:1/-1}
#btfo-app .btfo-settings-disclosure{grid-column:1/-1;margin:0;padding:20px 24px;border-left:4px solid var(--bt-green)}#btfo-app .btfo-settings-disclosure h2{margin:0 0 8px;font-size:17px}#btfo-app .btfo-settings-disclosure p{margin:0;color:var(--bt-muted);font-size:13px;line-height:1.7}#btfo-app .btfo-settings-disclosure nav{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}#btfo-app .btfo-settings-disclosure nav a{display:inline-flex;align-items:center;min-height:36px;padding:0 10px;border:1px solid var(--bt-line);border-radius:8px;color:var(--bt-text);font-size:12px;text-decoration:none}#btfo-app .btfo-settings-disclosure nav a:hover{border-color:var(--bt-green);color:var(--bt-green)}
#btfo-app .btfo-settings-account>div,#btfo-app .btfo-settings-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
#btfo-app .btfo-settings-actions{margin-top:18px;padding:16px 0}
#btfo-app .btfo-settings-actions p{flex:1;min-width:120px;font-size:13px}
#btfo-app .btfo-settings-actions button,#btfo-app .btfo-settings-grid button,#btfo-app .btfo-kora button{min-height:42px;padding:10px 14px;border-radius:9px;border:1px solid var(--bt-line);background:var(--bt-card2);color:var(--bt-text);font:inherit;font-size:13px;cursor:pointer}
#btfo-app .btfo-settings-actions [type=submit],#btfo-app .btfo-kora [type=submit]{background:var(--bt-green);border-color:var(--bt-green);color:#071812;font-weight:700}
#btfo-app .btfo-kora-topics{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 22px}
#btfo-app .btfo-kora-topics [aria-pressed=true]{border-color:#a78bfa;background:#a78bfa20}
#btfo-app .btfo-kora form label{display:grid;gap:8px;font-size:13px;color:var(--bt-muted)}
#btfo-app .btfo-kora input{min-width:0;width:100%;padding:12px;border:1px solid var(--bt-line);border-radius:9px;background:var(--bt-bg);color:var(--bt-text);font:inherit;box-sizing:border-box}
#btfo-app .btfo-kora-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin:20px 0}
#btfo-app .btfo-kora-metrics>div{border:1px solid var(--bt-line);border-radius:12px;padding:16px;min-width:0}
#btfo-app .btfo-kora-metrics dt{font-size:12px;color:var(--bt-muted)}
#btfo-app .btfo-kora-metrics dd{margin:7px 0 0;font-size:clamp(17px,2vw,23px);font-weight:750;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#btfo-app .btfo-kora-insights{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#btfo-app .btfo-kora-insight{padding:18px;background:var(--bt-card2);border:1px solid var(--bt-line);border-radius:12px;min-width:0}
#btfo-app .btfo-kora-insight h4{margin:0 0 8px;font-size:15px;color:var(--bt-text)}
#btfo-app .btfo-kora-insight p{font-size:13px;color:var(--bt-muted);line-height:1.6;margin:0 0 12px}
#btfo-app .btfo-kora-basis,#btfo-app .btfo-kora-time{display:block;font-size:11px;color:var(--bt-muted);margin-top:14px}
#btfo-app.btfo-compact .btfo-main .btfo-card{padding:16px}
@media(max-width:740px){#btfo-app .btfo-settings-grid,#btfo-app .btfo-kora-insights{grid-template-columns:minmax(0,1fr)}#btfo-app .btfo-settings-grid>.btfo-card{padding:18px}#btfo-app .btfo-settings-actions p{flex-basis:100%}#btfo-app .btfo-kora-metrics{grid-template-columns:minmax(0,1fr)}}
/* v8.56 chart terminal: isolated fullscreen workspace */.btfo-terminal-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.btfo-terminal-actions button{background:#1b3448!important;color:#f1f8fc!important;border:1px solid #426076!important;border-radius:9px;padding:9px 13px;cursor:pointer}
.btfo-ohlcv[data-btfo-ohlcv] .btfo-chart-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
#btfo-app .btfo-chart-fullscreen-shell{position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;background:var(--bt-bg);color:var(--bt-text);box-sizing:border-box}
#btfo-app .btfo-chart-fullscreen-shell::backdrop{background:#060b12}
#btfo-app .btfo-terminal-fullscreen{position:relative!important;inset:auto!important;max-width:none!important;width:100%!important;height:100dvh!important;overflow-y:auto!important;border-radius:0!important;margin:0!important;padding:16px 22px!important;background:var(--bt-bg)!important;box-sizing:border-box!important}
.btfo-terminal-active{overflow:hidden!important}
.btfo-terminal-fullscreen .btfo-ohlcv-stage{height:min(68dvh,850px)!important;min-height:340px!important}
.btfo-terminal-fullscreen>.btfo-ohlcv-stage>canvas[data-chart-canvas]{height:100%!important;width:100%!important;display:block}
.btfo-ohlcv [data-chart-share-form][hidden]{display:none!important}
@media(max-width:700px){
.btfo-terminal-fullscreen{padding:12px!important}
.btfo-terminal-fullscreen .btfo-ohlcv-stage{height:52dvh!important;min-height:260px!important}}
/* v8.57 – Account creation is the primary action, not a buried secondary panel. */.btfo-account-create{padding:20px 24px!important}
.btfo-account-create h2{font-size:19px!important;margin:0 0 12px!important}
.btfo-account-create .btfo-form{display:flex!important;align-items:end!important;gap:12px!important;flex-wrap:wrap}
.btfo-account-create .btfo-form label{flex:1 1 280px;min-width:0;color:#d5e6f0!important}
.btfo-account-create input{color:#f5fbff!important;background:#1a3346!important;-webkit-text-fill-color:#f5fbff!important}
.btfo-account-create button{min-height:44px;white-space:nowrap}@media(max-width:600px){
.btfo-account-create .btfo-form{display:grid!important;grid-template-columns:1fr}
.btfo-account-create button{width:100%}}
/* v8.58 Kanews-native market hub: compact, legible, responsive */.btfo-kanews-hub{box-sizing:border-box;max-width:1200px;margin:0 auto;padding:clamp(12px,2vw,24px);color:#e8f3fa;background:#0e2030;border-radius:16px}
.btfo-kanews-hub *{box-sizing:border-box}
.btfo-kanews-hub-head span{font-size:11px;letter-spacing:.12em;color:#48dbad;font-weight:700}
.btfo-kanews-hub-head h2{color:#f2f8fc;font-size:clamp(20px,2.2vw,28px);line-height:1.25;margin:8px 0 18px}
.btfo-kanews-hub-prices,.btfo-kanews-hub-chart,.btfo-kanews-hub-news{min-width:0;margin:0 0 16px}
.btfo-kanews-hub-news h3{color:#f2f8fc;font-size:19px;margin:0 0 10px}
.btfo-kanews-hub-news article{padding:12px 0;border-bottom:1px solid #294254;display:flex;gap:10px;justify-content:space-between;align-items:baseline}
.btfo-kanews-hub-news a{color:#eef7fc;text-decoration:none;font-weight:600}
.btfo-kanews-hub-news a:hover{text-decoration:underline;color:#4ee0b4}
.btfo-kanews-hub-news time{color:#a7bfce;font-size:12px;white-space:nowrap}
@media(max-width:680px){
.btfo-kanews-hub-news article{display:block}
.btfo-kanews-hub-news time{display:block;margin-top:5px}}
/* 8.155 international TradingView stock panel */
.btfo-tv-stock{box-sizing:border-box;max-width:100%;min-width:0;padding:14px;border:1px solid #263d4d;border-radius:14px;background:#102333;color:#ecf3f8;overflow:hidden}
.btfo-tv-stock *{box-sizing:border-box}
.btfo-tv-stock>header{margin:0 0 12px}
.btfo-tv-stock>header>span{font-size:10px;font-weight:750;letter-spacing:.1em;color:#65d7b4}
.btfo-tv-stock>header h2{margin:5px 0 0;color:#f3f7fa;font-size:clamp(18px,2vw,24px);line-height:1.3}
.btfo-tv-stock .btfo-market-widget{max-width:100%;min-width:0;margin:10px 0 14px;border-radius:10px;overflow:hidden;background:#fff}
.btfo-tv-stock .btfo-tv-symbol-info{height:112px!important}
.btfo-tv-stock .btfo-tv-chart{height:clamp(300px,48vw,470px)!important}
.btfo-tv-stock-financials{margin-top:10px;border-top:1px solid #294254}
.btfo-tv-stock-financials summary{padding:12px 2px;color:#edf5fa;font-size:13px;font-weight:650;cursor:pointer}
.btfo-tv-stock-financials .btfo-market-widget{height:580px!important}
.btfo-tv-data-note{margin:8px 0 0;color:#a9bfcd;font-size:10px;line-height:1.5}
.btfo-market-widget-error{padding:12px;border:1px solid #edd3a0;border-radius:8px;background:#fff8e7;color:#453b29;font-size:13px}
@media(max-width:600px){.btfo-tv-stock{padding:11px;border-radius:11px}.btfo-tv-stock .btfo-tv-chart{height:340px!important}.btfo-tv-stock-financials .btfo-market-widget{height:540px!important}}
/* 8.66: restrained financial workspace */.btfo-app .btfo-card{border-radius:14px;box-shadow:none!important;border:1px solid var(--bt-line)}
.btfo-app .btfo-card h2{font-size:17px;letter-spacing:-.025em;font-weight:700}
.btfo-app .btfo-form input,.btfo-app .btfo-form select{min-height:46px;border-radius:9px;font-size:14px;box-shadow:none}
.btfo-app .btfo-form input:focus-visible,.btfo-app .btfo-form select:focus-visible{outline:2px solid var(--bt-green);outline-offset:2px}
.btfo-app .btfo-account-create{padding:24px;max-width:760px}
.btfo-app .btfo-account-create-head{margin-bottom:17px}
.btfo-app .btfo-account-create-head h2{margin:6px 0 3px;font-size:20px}
.btfo-app .btfo-account-create-head p{margin:0}
.btfo-app .btfo-account-create .btfo-form{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px}
.btfo-app .btfo-account-create .btfo-form button{min-height:46px;padding:0 22px;border-radius:9px;white-space:nowrap;font-weight:650}
.btfo-app .btfo-notice{border-radius:10px;border:1px solid var(--bt-line);padding:12px 15px;margin-bottom:15px}
.btfo-app .btfo-row{gap:14px}
@media(max-width:600px){
.btfo-app .btfo-account-create{padding:18px}
.btfo-app .btfo-account-create .btfo-form{grid-template-columns:minmax(0,1fr)}
.btfo-app .btfo-account-create .btfo-form button{width:100%;justify-self:stretch}}
/* v8.67: restrained planning and watchlist portfolio details */.btfo-goal-summary{display:flex;align-items:center;gap:26px;padding:24px;border:1px solid var(--bt-line);border-radius:18px;background:var(--bt-card2);margin:18px 0 22px}
.btfo-goal-ring{--btfo-goal-progress:0%;width:150px;height:150px;flex:none;border-radius:50%;background:conic-gradient(#2563eb var(--btfo-goal-progress),rgba(127,127,127,.13) 0);display:grid;place-items:center}
.btfo-goal-ring>div{width:118px;height:118px;border-radius:50%;background:var(--bt-card);display:flex;flex-direction:column;align-items:center;justify-content:center}
.btfo-goal-ring strong{font-size:30px;letter-spacing:-1px}
.btfo-goal-ring small,.btfo-goal-summary-info small{color:var(--bt-muted)}
.btfo-goal-summary-info{display:grid;gap:8px}
.btfo-goal-summary-info>strong{font-size:25px}
.btfo-goal-summary-info p{font-size:12px;color:var(--bt-muted);margin:0}
.btfo-viz-item{padding:15px 0}
.btfo-viz-track{height:10px;border-radius:99px;overflow:hidden}
.btfo-watchlist .btfo-watch-row{grid-template-columns:minmax(90px,1fr) minmax(130px,1fr) minmax(140px,1fr) auto}
.btfo-watch-holding{grid-column:1/-1;border-radius:12px;background:var(--bt-card2);padding:13px 16px}
.btfo-watch-owned{display:inline-block;font-size:12px;font-weight:700;margin-bottom:10px}
.btfo-watch-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.btfo-watch-metrics>div{display:flex;flex-direction:column;gap:5px;min-width:0}
.btfo-watch-metrics small{font-size:11px;color:var(--bt-muted)}
.btfo-watch-metrics strong{font-size:14px;overflow-wrap:anywhere}
.btfo-watch-gain{color:#15803d}
.btfo-watch-loss{color:#dc2626}
.btfo-watch-warning{grid-column:1/-1;font-size:12px;color:var(--bt-muted)}
.btfo-watch-unowned{padding:10px 14px}
.btfo-watchlist input[list]{text-transform:uppercase}@media(max-width:700px){
.btfo-goal-summary{padding:18px;gap:16px}
.btfo-goal-ring{width:108px;height:108px}
.btfo-goal-ring>div{width:84px;height:84px}
.btfo-goal-ring strong{font-size:22px}
.btfo-goal-summary-info>strong{font-size:17px}
.btfo-watch-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
.btfo-watchlist .btfo-watch-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
/* v8.68 Kanews editorial link within member-owned watchlists */.btfo-watch-editorial{grid-column:1/-1;display:flex;align-items:baseline;gap:10px;min-width:0;padding:9px 12px;background:var(--bt-card2);border:1px solid var(--bt-line);border-radius:10px}
.btfo-watch-editorial span{flex:none;font-size:11px;color:var(--bt-muted)}
.btfo-watch-editorial a{font-size:12px;color:var(--bt-text);font-weight:600;text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.btfo-watch-editorial a:hover{text-decoration:underline}@media(max-width:600px){
.btfo-watch-editorial{display:grid;gap:5px}
.btfo-watch-editorial a{white-space:normal}}
/* v8.69: quieter member workspace */.btfo-paper-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;margin-top:18px}
.btfo-paper-item{border:1px solid rgba(130,150,175,.24);border-radius:12px;padding:16px;display:grid;gap:8px}
.btfo-paper-remove{background:transparent!important;border:1px solid rgba(130,150,175,.3)!important;color:inherit!important;padding:7px 12px!important}
.btfo-goal progress{width:100%;height:9px;border-radius:99px;overflow:hidden}
.btfo-goal{padding:16px 0;border-bottom:1px solid rgba(130,150,175,.2)}
.btfo-nav button.active{background:rgba(45,135,105,.15);box-shadow:inset 3px 0 #36b98a}
/* Shared local combobox. Native fields keep their submission names and values. */#btfo-app .btfo-symbol-picker{position:relative;display:block;min-width:0;width:100%;max-width:100%}
#btfo-app .btfo-symbol-search{box-sizing:border-box;width:100%;min-width:0;min-height:44px;margin:0;border:1px solid var(--bt-line);border-radius:9px;padding:11px 12px;background:var(--bt-card2);color:var(--bt-text);font:inherit;text-overflow:ellipsis}
#btfo-app .btfo-symbol-search:focus{outline:2px solid var(--bt-green);outline-offset:2px}
#btfo-app .btfo-symbol-results{position:absolute;z-index:100;top:calc(100% + 5px);left:0;right:0;max-height:300px;overflow-y:auto;overscroll-behavior:contain;background:var(--bt-card);color:var(--bt-text);border:1px solid var(--bt-line);box-shadow:0 12px 32px #0005;border-radius:10px;padding:5px}
#btfo-app .btfo-symbol-results[hidden]{display:none!important}
#btfo-app :is(.btfo-card,.btfo-auto-news,.btfo-ohlcv,.btfo-watch-editor):has(.btfo-symbol-results:not([hidden])){overflow:visible}
#btfo-app .btfo-symbol-option{display:grid;gap:3px;padding:10px;border-radius:6px;cursor:pointer;line-height:1.4;text-align:left}
#btfo-app .btfo-symbol-option strong{font-size:13px;color:var(--bt-text)}
#btfo-app .btfo-symbol-option span{font-size:11px;color:var(--bt-muted);overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#btfo-app .btfo-symbol-option[aria-selected="true"],#btfo-app .btfo-symbol-option:hover{background:var(--bt-card2);box-shadow:inset 3px 0 var(--bt-green)}
#btfo-app .btfo-symbol-empty{margin:0;padding:12px;color:var(--bt-muted);font-size:12px}
/* 8.71 shared market context */.btfo-news-with-image{display:flex;align-items:center;gap:14px}
.btfo-news-with-image img{width:96px;height:64px;object-fit:cover;border-radius:10px;flex:none}
.btfo-news-with-image>div{min-width:0}
.btfo-symbol-picker{min-width:0}
.btfo-symbol-search{width:100%;min-width:0}
@media(max-width:600px){
.btfo-news-with-image img{width:76px;height:60px}
.btfo-news-with-image{gap:10px}}
/* v8.72 – Planning and private notes UX */.btfo-notes-workspace .btfo-card,.btfo-goals-editor{color:#e6f0f6}
.btfo-note-header,.btfo-note-library-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:18px}
.btfo-note-header h2,.btfo-note-library-head h2{margin:5px 0 8px}
.btfo-note-count{flex:none;background:#163a42;color:#82e0bf;border:1px solid #2b645e;padding:7px 12px;border-radius:100px;font-size:12px;font-weight:700}
.btfo-note-search{width:100%;box-sizing:border-box;border:1px solid #456077!important;border-radius:12px!important;background:#102638!important;color:#f2f8fc!important;padding:13px 15px!important;line-height:1.55}
.btfo-note-search::placeholder{color:#93a9b9!important;opacity:1}
.btfo-note-notice{color:#b8f7dc!important;background:#153c35;border:1px solid #2e765c;border-radius:10px;padding:12px 14px;margin:12px 0}
.btfo-note-notice.is-error{color:#ffd4d4!important;background:#492a30;border-color:#a35460}
.btfo-note-search-label{display:grid;gap:7px;margin-bottom:18px;color:#c5d6e1}
.btfo-note-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:14px}
.btfo-note-item{border:1px solid #2d465d;border-radius:14px;background:#10283b;overflow:hidden;margin:0!important}
.btfo-note-item>summary{display:flex;justify-content:space-between;gap:14px;padding:18px;cursor:pointer;list-style:none}
.btfo-note-item>summary::-webkit-details-marker{display:none}
.btfo-note-summary-main{display:grid;gap:8px;min-width:0}
.btfo-note-summary-main strong{font-size:15px;color:#eff8fb;overflow-wrap:anywhere}
.btfo-note-preview{color:#afc3d0;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.btfo-note-date{font-size:11px;color:#9db4c3;white-space:nowrap}
.btfo-note-item[open]{border-color:#43aa91}
.btfo-note-body{padding:0 18px 18px;line-height:1.65;color:#e0edf4;overflow-wrap:anywhere}
.btfo-note-delete-form{margin:0 18px 16px}
.btfo-note-delete{background:transparent!important;border:1px solid #d37d84!important;color:#ffadb4!important;border-radius:9px!important;padding:8px 12px!important}
.btfo-note-empty{padding:30px 15px;text-align:center;color:#c5d6e1}
.btfo-goal-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}
.btfo-goal-stats>div{background:#102b3c;border:1px solid #29485c;border-radius:12px;padding:15px;display:grid;gap:7px}
.btfo-goal-stats small{color:#afc4d0}
.btfo-goal-stats strong{font-size:24px;color:#f0f8fc}
.btfo-plan-center .btfo-plan-item{border:1px solid #2c4a60;border-radius:14px;padding:16px;margin:10px 0;background:#10283b}
.btfo-plan-center .btfo-plan-item-completed{border-color:#38876e;background:#10372f}
.btfo-plan-center .btfo-plan-item-completed .btfo-plan-status{color:#8bf0c3!important}
.btfo-plan-progress-label{display:flex;justify-content:space-between;color:#b9cfda;font-size:12px;margin:12px 0 5px}
.btfo-plan-progress-label strong{color:#e8f7f2}
.btfo-plan-center progress{display:block;width:100%;height:10px;accent-color:#38b48d}
.btfo-plan-center .btfo-plan-meta{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:12px;color:#d7e7ee}
.btfo-plan-edit,.btfo-secondary-link{display:inline-block;margin-top:12px;color:#74dfbc!important}
@media(max-width:650px){
.btfo-note-header,.btfo-note-library-head{align-items:center}
.btfo-note-grid{grid-template-columns:1fr}
.btfo-goal-stats{gap:7px}
.btfo-goal-stats>div{padding:10px}
.btfo-goal-stats strong{font-size:19px}}
/* v8.73 — professional watchlist / discreet notifications */.btfo-app .btfo-watchlist{max-width:none;background:var(--bt-card);border:1px solid var(--bt-line);border-radius:18px;padding:clamp(16px,2.3vw,28px)}
.btfo-app .btfo-watchlist .btfo-card-heading h2{font-size:clamp(24px,2.5vw,32px);letter-spacing:-.7px;font-weight:800;margin:4px 0}
.btfo-watch-subtitle{color:var(--bt-muted);font-size:13px;line-height:1.6;margin:8px 0 0}
.btfo-watch-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:22px 0}
.btfo-watch-summary>div{background:var(--bt-card2);border:1px solid var(--bt-line);border-radius:13px;padding:17px;display:flex;flex-direction:column;gap:4px}
.btfo-watch-summary span,.btfo-watch-summary small{color:var(--bt-muted);font-size:11px}
.btfo-watch-summary strong{font-size:25px;color:var(--bt-text);line-height:1.3}
.btfo-app .btfo-watch-tools{display:grid;grid-template-columns:minmax(180px,2fr) minmax(130px,1fr) minmax(150px,1fr);gap:12px;margin:20px 0 16px}
.btfo-app .btfo-watch-tools label{font-weight:600}
.btfo-app .btfo-watch-tools input,.btfo-app .btfo-watch-tools select{height:45px;border-radius:11px}
.btfo-app .btfo-watch-row{border:1px solid var(--bt-line);background:var(--bt-card2);border-radius:14px;padding:17px;margin:10px 0;grid-template-columns:minmax(105px,1.3fr) minmax(130px,1fr) minmax(145px,1.1fr) auto;gap:12px}
.btfo-watch-ticker{font-size:17px;font-weight:800;letter-spacing:.3px;color:var(--bt-text)}
.btfo-watch-identity small{margin-top:5px!important}
.btfo-app .btfo-watch-price b{font-size:18px;font-variant-numeric:tabular-nums}
.btfo-watch-row-actions{gap:14px}
.btfo-watch-row-actions a,.btfo-watch-row-actions button{font-size:12px!important;text-decoration:none!important;font-weight:650;padding:8px!important;white-space:nowrap}
.btfo-watch-row-actions a:hover,.btfo-watch-row-actions button:hover{text-decoration:underline!important}
.btfo-app .btfo-watch-editorial{background:transparent;border-top:1px solid var(--bt-line);border-bottom:0;border-left:0;border-right:0;border-radius:0;padding:14px 0 0;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.btfo-watch-news-label{font-size:10px!important;font-weight:800;letter-spacing:.8px;color:var(--bt-green)!important;white-space:nowrap}
.btfo-app .btfo-watch-editorial a{font-size:13px;line-height:1.5;white-space:normal;overflow:visible;text-overflow:clip;color:var(--bt-text);font-weight:650}
.btfo-app .btfo-watch-holding{background:var(--bt-card);border:1px solid var(--bt-line)}
.btfo-app .btfo-watch-unowned{opacity:.75}
.btfo-app .btfo-note-notice.is-success,.btfo-app .btfo-notice[data-btfo-flash]{border-color:#218e6955;color:var(--bt-text)!important}
.btfo-flash-out{opacity:0;transition:opacity .25s ease}
@media(max-width:760px){
.btfo-app .btfo-watch-tools{grid-template-columns:1fr 1fr}
.btfo-app .btfo-watch-tools label:first-child{grid-column:1/-1}
.btfo-watch-summary{gap:8px}
.btfo-watch-summary>div{padding:12px}
.btfo-watch-summary strong{font-size:21px}
.btfo-app .btfo-watch-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.btfo-app .btfo-watch-row-actions{grid-column:1/-1;justify-content:flex-end}}
@media(max-width:420px){
.btfo-watch-summary{grid-template-columns:1fr 1fr}
.btfo-watch-summary>div:last-child{grid-column:1/-1}
.btfo-app .btfo-watch-tools{grid-template-columns:1fr}
.btfo-app .btfo-watch-tools label:first-child{grid-column:auto}}
/* v8.74 watchlist: inline edit, legible mobile rows */.btfo-watchlist .btfo-watch-ticker{display:flex;align-items:center;gap:9px;font-size:1.2rem;font-weight:800;letter-spacing:.03em;color:#f4f8fc}
.btfo-watch-star{color:#35c69b;font-size:1.15rem;line-height:1}
.btfo-watchlist .btfo-watch-row{position:relative;gap:14px;border-bottom:1px solid rgba(170,197,221,.13);padding:18px 16px}
.btfo-watchlist .btfo-watch-identity small{font-size:.82rem;color:#b7c6d6}
.btfo-watchlist .btfo-watch-price b{font-size:1.18rem;color:#f8fafc}
.btfo-watch-inline-editor{position:relative}
.btfo-watch-inline-editor>summary{cursor:pointer;list-style:none;color:#5bdfb4;font-weight:700;padding:9px 13px;border:1px solid rgba(91,223,180,.28);border-radius:10px}
.btfo-watch-inline-editor>summary::-webkit-details-marker{display:none}
.btfo-watch-inline-editor[open]{width:100%;flex-basis:100%}
.btfo-watch-inline-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px;margin-top:10px;border-radius:14px;background:#12283b;border:1px solid #36516b}
.btfo-watch-inline-form label{display:grid;gap:5px;color:#d4e2ef;font-size:.83rem}
.btfo-watch-inline-form input,.btfo-watch-inline-form select{width:100%;min-width:0;background:#1a3348;color:#fff;border:1px solid #4b6880;border-radius:9px;padding:10px}
.btfo-watch-inline-form button{align-self:end;background:#31ad89;color:#061b21;font-weight:750;border:0;border-radius:9px;padding:12px}
@media(max-width:650px){
.btfo-watch-inline-form{grid-template-columns:1fr}
.btfo-watchlist .btfo-watch-row{padding:16px 10px}}
/* v8.75 professional chart layer */.btfo-ohlcv-stage{position:relative;min-width:0;overflow:hidden;border-radius:14px;background:#101b2d}
.btfo-pro-chart{width:100%;height:450px;min-width:0}
.btfo-pro-chart[hidden],.btfo-ohlcv-stage canvas[hidden]{display:none!important}
.btfo-terminal-fullscreen .btfo-pro-chart{height:calc(100vh - 270px);min-height:430px}
@media(max-width:650px){
.btfo-pro-chart{height:380px}}
/* Finance OS v8.76 — Nebula / Metahol Violet. Scoped to member workspace. */#btfo-app .btfo-brand-mark{color:#c7a7ff;background:#8d55e324;border-color:#9563e455}
#btfo-app .btfo-brand em{color:#c7a5ff}
#btfo-app .btfo-nav-label,#btfo-app .btfo-eyebrow{color:#aaa5d1}
#btfo-app .btfo-nav button{color:#b9b9d3}
#btfo-app .btfo-nav button:hover{background:#9d6af61c;color:#fff}
#btfo-app .btfo-nav button.active{background:linear-gradient(95deg,#8e5cfb30,#8e5cfb0b);border-color:#8e5cfb65;box-shadow:inset 3px 0 #b08bff;color:#fff}
#btfo-app .btfo-nav-icon{color:#ac8bf8}
#btfo-app .btfo-status-dot{background:#ad88ff;box-shadow:0 0 0 3px #aa83ff24}
#btfo-app .btfo-card,#btfo-app .btfo-kpis article,#btfo-app .btfo-watch-row,#btfo-app .btfo-ohlcv-stage{background:#15172a;border-color:#33334e;color:#f1efff;box-shadow:0 8px 28px #03030e28}
#btfo-app .btfo-ohlcv-stage{background:#0d1021}
#btfo-app .btfo-primary,#btfo-app button[type=submit]:not(.btfo-danger){background:#8b5cf6;color:#fff;border-color:#a78bfa}
#btfo-app .btfo-primary:hover,#btfo-app button[type=submit]:not(.btfo-danger):hover{background:#a17bfa}
#btfo-app input:not([type=checkbox]):not([type=radio]),#btfo-app textarea,#btfo-app select{background:#111428;color:#f5f2ff;border-color:#464465}
#btfo-app input::placeholder,#btfo-app textarea::placeholder{color:#aaa8c6;opacity:1}
#btfo-app .btfo-watch-ticker,#btfo-app .btfo-watch-price b{color:#f7f5ff}
#btfo-app .btfo-watch-star,#btfo-app .btfo-watch-inline-editor>summary{color:#b18bff}
#btfo-app .btfo-watch-inline-form{background:#18182e;border-color:#504575}
#btfo-app .btfo-watch-inline-form input,#btfo-app .btfo-watch-inline-form select{background:#111428;border-color:#51456f}
#btfo-app .btfo-side-foot{padding:0;background:linear-gradient(135deg,#24143c,#17152c);border-color:#6f4c9c80;overflow:hidden}
#btfo-app .btfo-metahol-link{display:flex;align-items:center;gap:10px;padding:13px 12px;text-decoration:none;color:#f4ecff;font-weight:750;line-height:1.3;font-size:13px;transition:background .18s}
#btfo-app .btfo-metahol-link:hover{background:#ae79ff1a;color:#fff}
#btfo-app .btfo-metahol-link:focus-visible{outline:2px solid #c9a8ff;outline-offset:-3px}
#btfo-app .btfo-metahol-symbol{display:grid;place-items:center;flex:0 0 34px;height:34px;border-radius:11px;background:linear-gradient(140deg,#b985ff,#673bc0);color:white;font-size:23px}
#btfo-app .btfo-metahol-link strong{color:#d7bbff}
#btfo-app .btfo-metahol-link small{display:block;color:#b8a5d0;font-size:10px;font-weight:500;margin-top:4px}
/* Theme surfaces follow the shared palette in both modes. */#btfo-app.btfo-light .btfo-nav button{color:var(--bt-muted)}
#btfo-app.btfo-light .btfo-nav button.active{color:#fff}
#btfo-app.btfo-light .btfo-card,#btfo-app.btfo-light .btfo-kpis article{background:var(--bt-card);color:var(--bt-text);border-color:var(--bt-line)}
#btfo-app.btfo-light .btfo-side-foot{color:#f3f1ff}
@media(max-width:800px){
#btfo-app .btfo-side-foot{margin-top:24px}
#btfo-app .btfo-metahol-link{padding:11px}}
/* v8.85 — single unified terminal theme; replaces 8.77–8.84 theme overrides */#btfo-app .btfo-brand em{color:var(--bt-text)}
#btfo-app .btfo-nav-label,#btfo-app .btfo-eyebrow,#btfo-app .btfo-card-overline{color:#a6b4c3}
#btfo-app h1,#btfo-app h2,#btfo-app h3,#btfo-app h4,#btfo-app .btfo-card-heading{color:var(--bt-text);letter-spacing:-.015em}
#btfo-app h1{font-size:clamp(1.6rem,2.2vw,2.15rem);line-height:1.18}
#btfo-app h2{font-size:clamp(1.2rem,1.6vw,1.55rem);line-height:1.25}
#btfo-app p,#btfo-app small,#btfo-app .btfo-help{color:var(--bt-muted)}
#btfo-app .btfo-card,#btfo-app .btfo-home-card,#btfo-app .btfo-watch-row,#btfo-app .btfo-home-command,#btfo-app .btfo-home-market-jump{background:var(--bt-card);border-color:var(--bt-line);box-shadow:none}
#btfo-app input,#btfo-app select,#btfo-app textarea{background:var(--bt-bg);color:var(--bt-text);border-color:var(--bt-line)}
#btfo-app input::placeholder,#btfo-app textarea::placeholder{color:#a0adbc;opacity:1}
#btfo-app button,#btfo-app .btfo-tab{font-size:14px}
#btfo-app button:focus-visible,#btfo-app a:focus-visible,#btfo-app input:focus-visible,#btfo-app select:focus-visible,#btfo-app textarea:focus-visible{outline:2px solid #91a5b8;outline-offset:2px}
#btfo-app .btfo-side-foot,#btfo-app .btfo-metahol-link{background:#11161d;border-color:#303945;color:#f2f5f8;box-shadow:none}
#btfo-app .btfo-metahol-link strong{color:#f4f6fa}
#btfo-app .btfo-metahol-symbol{background:#1b242e;color:#e2e9f1;border-color:#3c4856}
#btfo-app .btfo-finance-hero{background:radial-gradient(ellipse at 95% 0%,rgba(0,166,188,.09),transparent 58%),#11161d;border:1px solid #303945;box-shadow:none}
#btfo-app .btfo-finance-hero h2{color:#f5f8fb}
#btfo-app .btfo-finance-hero p,#btfo-app .btfo-finance-hero small{color:#b2becb}
#btfo-app .btfo-finance-metrics>div{background:#151c24;border-color:#303945}
#btfo-app .btfo-finance-metrics strong,#btfo-app .btfo-finance-total strong{color:#f7f9fc;font-variant-numeric:tabular-nums}
#btfo-app .btfo-watch-ticker{color:var(--bt-text);font-size:1.1rem;font-weight:750}
#btfo-app .btfo-watch-star{color:#c6d0da}
#btfo-app .btfo-watch-identity small{color:#aebbc9}
#btfo-app .btfo-watch-price b{color:#f6f8fb}
#btfo-app .btfo-watch-inline-form{background:#151d26;border-color:#394654}
#btfo-app .btfo-watch-inline-form button{background:#dfe7ef;color:#0a1118}
#btfo-app .btfo-home-command-actions button,#btfo-app .btfo-finance-shortcuts button{border-color:#384452;color:#e7edf4}
#btfo-app .btfo-home-command-actions button:hover,#btfo-app .btfo-finance-shortcuts button:hover{background:#1d2833}
#btfo-app .btfo-positive,#btfo-app .btfo-up{color:#30c592}
#btfo-app .btfo-negative,#btfo-app .btfo-down{color:#f17882}
#btfo-app .btfo-home-grid{gap:16px}
#btfo-app .btfo-home-card{min-width:0}
@media(max-width:720px){
#btfo-app .btfo-home-grid{gap:12px}
#btfo-app .btfo-watch-row{padding:14px 10px}}
@media(prefers-reduced-motion:reduce){
#btfo-app *,#btfo-app *::before,#btfo-app *::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
/* Member alerts: quiet graphite controls */#btfo-app .btfo-alerts{margin-top:18px;background:#10151c;color:#edf1f6;border:1px solid #29313b;border-radius:14px;padding:22px}
#btfo-app .btfo-alert-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
#btfo-app .btfo-alert-heading h2{font-size:22px;margin:0;color:var(--bt-text)}
#btfo-app .btfo-alert-heading h2 small{font-size:13px;font-weight:500;color:#a9b6c5}
#btfo-app .btfo-alert-heading p,#btfo-app .btfo-alert-disclaimer{color:#a8b5c4;font-size:13px}
#btfo-app .btfo-alert-open,#btfo-app .btfo-alert-form button{background:#e6edf5;color:#10151c;border:0;border-radius:9px;padding:11px 16px;font-weight:700;cursor:pointer}
#btfo-app .btfo-alert-form{padding:16px 0}
#btfo-app .btfo-alert-form[hidden],#btfo-app [data-btfo-alert-panel][hidden]{display:none!important}
#btfo-app .btfo-alert-tabs{display:flex;gap:18px;border-bottom:1px solid #303945;margin-top:20px}
#btfo-app .btfo-alert-tabs button{background:transparent;border:0;border-bottom:2px solid transparent;color:#aab6c4;padding:12px 2px;cursor:pointer}
#btfo-app .btfo-alert-tabs button.active{color:#f6f8fa;border-color:#e6edf5}
#btfo-app .btfo-alert-empty{padding:30px 12px;text-align:center}
#btfo-app .btfo-alert-empty strong{color:#f5f7fa}
#btfo-app .btfo-alert-empty p{color:#9facbc;font-size:13px}
#btfo-app .btfo-alert-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(120px,.65fr) auto;align-items:center;gap:16px;padding:16px 0;border-bottom:1px solid var(--bt-line)}
#btfo-app .btfo-alert-identity{display:flex;align-items:center;gap:10px;min-width:0}
#btfo-app .btfo-alert-quote{display:grid;gap:3px;min-width:0}
#btfo-app .btfo-alert-quote strong{white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:600px){
#btfo-app .btfo-alert-row{grid-template-columns:minmax(0,1fr) auto;gap:10px}
#btfo-app .btfo-alert-quote{grid-column:1}
#btfo-app .btfo-alert-row-end{grid-column:2;grid-row:1/span 2}}
#btfo-app .btfo-alert-identity>div,#btfo-app .btfo-alert-row-end{display:flex;flex-direction:column;gap:5px}
#btfo-app .btfo-alert-row strong{color:#f6f8fa;font-size:16px}
#btfo-app .btfo-alert-row small{color:#aab8c7}
#btfo-app .btfo-alert-row-end{align-items:flex-end}
#btfo-app .btfo-alert-row-end button{border:1px solid var(--bt-line);border-radius:7px;background:var(--bt-card2);color:var(--bt-muted);cursor:pointer;text-decoration:none;padding:7px 10px;min-height:34px;font-size:12px}
#btfo-app .btfo-alert-hit{color:#49cba2}
#btfo-app .btfo-alert-active{color:#d6dce4}
#btfo-app .btfo-watch-alarm-button{background:#18212b;color:#e4edf7;border:1px solid #374452;border-radius:9px;padding:9px 13px;cursor:pointer}
/* v8.87: user-controlled quote panel; no decorative mini charts */#btfo-app .btfo-auto-tickers[hidden]{display:none!important}
#btfo-app .btfo-auto-ticker svg{display:none!important}
#btfo-app .btfo-auto-market [data-auto-customize]{font-weight:600;min-height:38px}
#btfo-app .btfo-auto-news-grid h4{color:#f1f5f9;font-weight:700}
/* 8.90: Layout containment and compact member-facing lists */#btfo-app [data-btfo-panel],#btfo-app .btfo-card{min-width:0;max-width:100%;box-sizing:border-box}
#btfo-app [data-btfo-panel="goals"] .btfo-debt-center{width:100%;max-width:100%;min-width:0;overflow:hidden;background:#11161d;color:#f4f6fa;border:1px solid #29333e;border-radius:16px;padding:clamp(14px,2vw,24px)}
#btfo-app .btfo-debt-center :is(.btfo-debt-row,.btfo-debt-tools,.btfo-debt-payments,.btfo-debt-editor,.btfo-debt-simulator,.btfo-debt-exposure,.btfo-debt-audit){min-width:0;max-width:100%;box-sizing:border-box}
#btfo-app .btfo-debt-center .btfo-debt-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:end}
#btfo-app .btfo-debt-center .btfo-debt-tools label{min-width:0;max-width:100%}
#btfo-app .btfo-debt-center :is(input,select){max-width:100%;min-width:0;box-sizing:border-box}
#btfo-app .btfo-auto-news .btfo-market-symbol-label{display:flex;flex-direction:column;align-items:stretch;gap:7px;max-width:460px;width:100%;min-width:0}
#btfo-app .btfo-auto-news .btfo-market-symbol-label select{display:block;width:100%;max-width:100%;min-width:0;box-sizing:border-box;min-height:44px;padding:9px 36px 9px 12px;border-radius:10px;appearance:auto;position:relative;transform:none;line-height:1.4}
#btfo-app .btfo-auto-news-grid{min-width:0;grid-template-columns:repeat(2,minmax(0,1fr))}
#btfo-app .btfo-auto-news-grid>.btfo-editorial-column{min-width:0;overflow-wrap:anywhere}
#btfo-app .btfo-watchlist .btfo-watch-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:12px 14px;border:0;border-bottom:1px solid #29333e;border-radius:0;background:transparent;box-shadow:none;margin:0}
#btfo-app .btfo-watchlist .btfo-watch-identity{display:flex;align-items:center;gap:11px;min-width:0}
#btfo-app .btfo-watchlist .btfo-watch-name{min-width:0;display:flex;flex-direction:column;gap:4px}
#btfo-app .btfo-watchlist .btfo-watch-name small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#94a3b8;font-size:12px;max-width:100%}
#btfo-app .btfo-watchlist .btfo-watch-ticker{font-size:15px;font-weight:750;color:#f4f6fa;white-space:nowrap}
#btfo-app .btfo-issuer-logo{position:relative;overflow:hidden;width:40px;height:40px;flex:0 0 40px;display:grid;place-items:center;border-radius:12px;background:#202b39;border:1px solid #334155;color:#e2e8f0;font-size:12px;font-weight:750;letter-spacing:-.3px}
#btfo-app .btfo-issuer-logo img{position:absolute;inset:0;width:100%;height:100%;max-width:none;box-sizing:border-box;padding:4px;object-fit:contain;background:#fff;opacity:0}
#btfo-app .btfo-issuer-logo img[data-btfo-logo-ready="1"]{opacity:1}
#btfo-app .btfo-issuer-identity,#btfo-app .btfo-feed-issuer,#btfo-app .btfo-kap-digest-item{display:flex;align-items:center;gap:10px;min-width:0}
#btfo-app .btfo-issuer-identity>div,#btfo-app .btfo-feed-issuer>div,#btfo-app .btfo-kap-digest-item>div{min-width:0;overflow-wrap:anywhere}
#btfo-app .btfo-watch-kap{margin-top:14px;border-top:1px solid var(--bt-line);padding-top:12px}
#btfo-app .btfo-watch-kap>summary{font-weight:650;cursor:pointer;padding:8px 0}
#btfo-app .btfo-feed-cover{display:block;width:90px;max-width:100%;height:54px;object-fit:cover;border-radius:6px;margin:0 0 8px}
#btfo-app .btfo-watchlist .btfo-watch-price{text-align:right;min-width:90px}
#btfo-app .btfo-watchlist .btfo-watch-price b{font-size:16px;white-space:nowrap}
#btfo-app .btfo-watchlist .btfo-watch-price small{font-size:11px;color:#8b99aa}
#btfo-app .btfo-watchlist .btfo-watch-daily{font-weight:750;font-size:13px;white-space:nowrap;min-width:70px;text-align:right}
#btfo-app .btfo-watchlist .btfo-watch-daily.btfo-watch-gain{color:#22c58b}
#btfo-app .btfo-watchlist .btfo-watch-daily.btfo-watch-loss{color:#f05d68}
#btfo-app .btfo-watchlist .btfo-watch-target{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
#btfo-app .btfo-watchlist .btfo-watch-target small{margin:0}
#btfo-app .btfo-watchlist .btfo-watch-change-label{display:block;white-space:normal;font-size:11px;color:var(--bt-muted)}
#btfo-app .btfo-watchlist .btfo-watch-row-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:10px}
#btfo-app .btfo-watchlist .btfo-watch-summary{display:none}
@media(max-width:760px){
#btfo-app .btfo-auto-news-grid{grid-template-columns:1fr}
#btfo-app .btfo-debt-center .btfo-debt-tools{grid-template-columns:1fr 1fr}
#btfo-app .btfo-debt-center .btfo-debt-tools label:first-child{grid-column:1/-1}
#btfo-app .btfo-watchlist .btfo-watch-row{grid-template-columns:minmax(0,1fr);gap:10px}
#btfo-app .btfo-watchlist .btfo-watch-price{grid-column:1;min-width:0;overflow-wrap:anywhere;text-align:left}
#btfo-app .btfo-watchlist .btfo-watch-price b{white-space:normal}
#btfo-app .btfo-watchlist .btfo-watch-daily{grid-column:1;grid-row:auto;text-align:left}
#btfo-app .btfo-watchlist .btfo-watch-row-actions{grid-column:1/-1}}
@media(max-width:480px){
#btfo-app .btfo-debt-center .btfo-debt-tools{grid-template-columns:1fr}
#btfo-app .btfo-debt-center .btfo-debt-tools label:first-child{grid-column:auto}
#btfo-app .btfo-issuer-logo{width:36px;height:36px;flex-basis:36px}
#btfo-app .btfo-watchlist .btfo-watch-name small{max-width:155px}}
/* Account workspace: restrained, consistent and responsive. */#btfo-app [data-btfo-panel="accounts"]{width:100%;max-width:1200px;margin-inline:auto;overflow:visible}
#btfo-app .btfo-account-workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;width:100%;min-width:0;align-content:start}
#btfo-app .btfo-account-workspace>.btfo-card{width:100%;max-width:none!important;min-width:0;margin:0!important;box-sizing:border-box;background:#11161d!important;border:1px solid #28313d!important;border-radius:15px!important;color:#f4f6fa!important;box-shadow:none!important}
#btfo-app .btfo-account-workspace .btfo-account-create{padding:24px!important}
#btfo-app .btfo-account-workspace .btfo-account-create-head{margin:0 0 18px}
#btfo-app .btfo-account-workspace .btfo-account-create-head h2{font-size:22px!important;line-height:1.25;margin:5px 0 6px!important}
#btfo-app .btfo-account-workspace .btfo-account-create-head p{font-size:13px;line-height:1.5;max-width:60ch;color:#a8b5c3!important}
#btfo-app .btfo-account-workspace .btfo-account-form{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:12px!important;align-items:end!important;width:100%;max-width:780px}
#btfo-app .btfo-account-workspace .btfo-account-form label{display:flex;flex-direction:column;gap:7px;min-width:0;margin:0;color:#dbe4ee!important;font-size:13px}
#btfo-app .btfo-account-workspace .btfo-account-form input{box-sizing:border-box;width:100%;min-width:0;height:46px;background:#0b1017!important;border:1px solid #3a4654!important;color:#f5f7fa!important;-webkit-text-fill-color:#f5f7fa!important;border-radius:9px;padding:10px 13px}
#btfo-app .btfo-account-workspace .btfo-account-form button{height:46px;min-height:46px;min-width:155px;background:#e5edf6!important;color:#111820!important;border:0!important;border-radius:9px;padding:0 18px;font-weight:700;cursor:pointer}
#btfo-app .btfo-account-workspace .btfo-account-form button:disabled{opacity:.6;cursor:wait}
#btfo-app .btfo-account-workspace .btfo-account-list{padding:22px!important}
#btfo-app .btfo-account-workspace .btfo-account-list>h2{font-size:19px;margin:0 0 16px}
#btfo-app .btfo-account-workspace .btfo-account-feedback{padding:11px 13px;margin-bottom:15px;border:1px solid #3b5062;border-radius:9px;background:#1b2936;color:#f4f6fa;font-size:13px}
#btfo-app .btfo-account-workspace .btfo-account-chart{min-width:0;max-width:100%;overflow:hidden}
@media(min-width:1050px){
#btfo-app .btfo-account-workspace{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr)}
#btfo-app .btfo-account-workspace .btfo-account-chart{grid-column:1/-1}}
@media(max-width:650px){
#btfo-app .btfo-account-workspace{gap:12px}
#btfo-app .btfo-account-workspace .btfo-account-create,#btfo-app .btfo-account-workspace .btfo-account-list{padding:17px!important}
#btfo-app .btfo-account-workspace .btfo-account-form{grid-template-columns:minmax(0,1fr)!important}
#btfo-app .btfo-account-workspace .btfo-account-form button{width:100%;min-width:0}}
#btfo-app .btfo-account-form button{white-space:nowrap}
/* 8.94: account form alignment; one coherent grid without inherited flex overrides. */#btfo-app .btfo-account-workspace .btfo-account-create .btfo-account-form{display:grid!important;grid-template-columns:minmax(0,1fr) 176px!important;column-gap:14px!important;row-gap:8px!important;align-items:end!important;max-width:100%!important;flex-wrap:nowrap!important}
#btfo-app .btfo-account-workspace .btfo-account-create .btfo-account-form>label{display:flex!important;flex-direction:column!important;min-width:0!important;width:100%!important;margin:0!important;align-self:stretch!important}
#btfo-app .btfo-account-workspace .btfo-account-create .btfo-account-form input{height:48px!important;min-height:48px!important;margin:0!important;box-sizing:border-box!important}
#btfo-app .btfo-account-workspace .btfo-account-create .btfo-account-form button{height:48px!important;min-height:48px!important;width:176px!important;min-width:0!important;margin:0!important;align-self:end!important;box-sizing:border-box!important;background:#e5edf6!important;color:#111820!important}
#btfo-app .btfo-account-workspace .btfo-account-hint{grid-column:1/-1;font-size:12px;color:#9ca9b8}
@media(max-width:650px){
#btfo-app .btfo-account-workspace .btfo-account-create .btfo-account-form{grid-template-columns:minmax(0,1fr)!important}
#btfo-app .btfo-account-workspace .btfo-account-create .btfo-account-form button{width:100%!important}}
#btfo-app .btfo-account-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#btfo-app .btfo-account-cash-action{min-width:0;position:relative}
#btfo-app .btfo-account-cash-action>summary{display:block;cursor:pointer;border:1px solid #354355;background:#1a2734;border-radius:8px;padding:10px 8px;text-align:center;color:#e8edf5;font-weight:600;list-style:none}
#btfo-app .btfo-account-cash-action>summary::-webkit-details-marker{display:none}
#btfo-app .btfo-account-cash-action[open]{grid-column:1/-1;border:1px solid #334155;border-radius:10px;background:#101720;padding:10px}
#btfo-app .btfo-account-cash-action[open]>summary{margin-bottom:12px}
#btfo-app .btfo-account-cash-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#btfo-app .btfo-account-cash-form label{min-width:0;display:grid;gap:5px;color:#c9d4e1;font-size:12px}
#btfo-app .btfo-account-cash-form input{min-width:0;width:100%;box-sizing:border-box}
#btfo-app .btfo-account-cash-form button{grid-column:1/-1}

@media(max-width:640px){
#btfo-app .btfo-account-cash-form{grid-template-columns:minmax(0,1fr)!important}}
/* The workspace has one full-width flow. Only the two entry cards share a grid. */#btfo-app .btfo-main > [data-btfo-panel="finance"]{
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
}
#btfo-app .btfo-budget-workspace{
  --bt-card: #10151c;
  --bt-card2: #151b23;
  --bt-line: #252b35;
  --bt-text: #f4f6fa;
  --bt-muted: #9ca9b8;
  --bt-green: #22c58b;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
  color: var(--bt-text);
  overflow-wrap: anywhere;
}

#btfo-app .btfo-budget-heading p{
  margin: 0;
}
#btfo-app .btfo-budget-primary{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  min-width: 0;
}
#btfo-app .btfo-budget-primary > .btfo-card,#btfo-app .btfo-budget-workspace > details{
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  border: 1px solid var(--bt-line);
  border-radius: 14px;
  background: var(--bt-card);
  color: var(--bt-text);
}
#btfo-app .btfo-budget-primary > .btfo-card{
  padding: clamp(16px, 2vw, 24px);
  container-type: inline-size;
  container-name: btfo-budget-card;
}
#btfo-app .btfo-budget-workspace :is(h3, h4, strong, dd){
  color: var(--bt-text);
}
#btfo-app .btfo-budget-workspace h3{
  margin: 0 0 10px;
  font-size: 18px;
}
#btfo-app .btfo-budget-workspace h4{
  margin: 16px 0 6px;
  font-size: 14px;
}
#btfo-app .btfo-budget-workspace :is(p, label, small, dt){
  color: var(--bt-muted);
}
#btfo-app .btfo-budget-workspace .btfo-form{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
  min-width: 0;
}
#btfo-app .btfo-budget-workspace :is(label, input, select, textarea, button){
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
#btfo-app .btfo-budget-workspace :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea){
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid var(--bt-line);
  border-radius: 9px;
  background: var(--bt-card2);
  color: var(--bt-text);
}
#btfo-app .btfo-budget-workspace button{
  min-height: 44px;
  border-radius: 9px;
  white-space: normal;
}
#btfo-app .btfo-budget-workspace button[type="submit"]{
  padding: 9px 15px;
  border: 1px solid #cbd5e1;
  background: #e5edf6;
  color: #111820;
  font-weight: 650;
}
#btfo-app .btfo-budget-workspace button[type="submit"]:hover{
  background: #f4f6fa;
}
#btfo-app .btfo-budget-record-actions button[type="submit"]{
  border-color: var(--bt-line);
  background: var(--bt-card2);
  color: var(--bt-text);
}
#btfo-app .btfo-budget-record-actions button[type="submit"]:hover{
  background: #212a36;
}
#btfo-app .btfo-budget-wide{
  grid-column: 1 / -1;
}
#btfo-app .btfo-budget-form-actions,#btfo-app .btfo-budget-record-actions{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
#btfo-app .btfo-budget-month-summary{
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 0 0 14px;
}
#btfo-app .btfo-budget-month-summary > div,#btfo-app .btfo-budget-empty{
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--bt-line);
  border-radius: 9px;
  background: var(--bt-card2);
}
#btfo-app .btfo-budget-month-summary > div{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
#btfo-app .btfo-budget-month-summary dt{
  font-size: 12px;
}
#btfo-app .btfo-budget-month-summary dd{
  margin: 0;
  font-weight: 700;
  white-space: nowrap;
  text-align: right;
}

@container btfo-budget-card (max-width: 360px) {
#btfo-app .btfo-budget-primary > .btfo-card .btfo-form{
    grid-template-columns: minmax(0, 1fr);
  }}
#btfo-app .btfo-budget-empty{
  margin: 0 0 14px;
  font-size: 13px;
}
#btfo-app .btfo-budget-workspace > details > summary{
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  padding: 16px 20px;
  list-style: none;
  font-weight: 650;
  cursor: pointer;
}
#btfo-app .btfo-budget-workspace > details > summary::-webkit-details-marker{
  display: none;
}
#btfo-app .btfo-budget-workspace > details > summary::after{
  content: '+';
  margin-inline-start: auto;
  color: var(--bt-muted);
}
#btfo-app .btfo-budget-workspace > details[open] > summary::after{
  content: '−';
}
#btfo-app .btfo-finance-report-body,#btfo-app .btfo-budget-tools-body{
  min-width: 0;
  padding: 0 20px 20px;
}
#btfo-app .btfo-budget-tools-body{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
#btfo-app .btfo-budget-tools-body > *{
  min-width: 0;
  max-width: 100%;
  margin: 0;
}
#btfo-app .btfo-budget-workspace .btfo-budget-record{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  align-items: center;
  gap: 10px;
}
#btfo-app .btfo-budget-workspace .btfo-budget-record-actions form{
  margin: 0;
}
#btfo-app .btfo-budget-workspace .btfo-trend-chart{
  border-color: var(--bt-line);
}
#btfo-app .btfo-budget-workspace .btfo-trend-month small{
  white-space: normal;
}
#btfo-app .btfo-account-cash-feedback{
  margin: 10px 0;
  font-size: 13px;
}

@media (max-width: 820px) {
#btfo-app .btfo-budget-primary,#btfo-app .btfo-budget-tools-body{
    grid-template-columns: minmax(0, 1fr);
  }}

@media (max-width: 540px) {
#btfo-app .btfo-budget-workspace{
    gap: 12px;
  }
#btfo-app .btfo-budget-workspace .btfo-form,#btfo-app .btfo-budget-workspace .btfo-budget-record{
    grid-template-columns: minmax(0, 1fr);
  }
#btfo-app .btfo-budget-workspace > details > summary{
    padding: 14px 16px;
  }
#btfo-app .btfo-finance-report-body,#btfo-app .btfo-budget-tools-body{
    padding: 0 16px 16px;
  }
#btfo-app .btfo-budget-month-summary > div{
    padding: 8px 6px;
  }}
#btfo-app .btfo-top-status{display:flex;flex:1;justify-content:flex-end;min-width:0}
#btfo-app .btfo-top-actions{position:relative;z-index:2;flex-shrink:0}
#btfo-app .btfo-header-notice{display:flex;align-items:center;gap:12px;max-width:520px;padding:8px 12px;margin:0;border-radius:8px;font-size:12px;line-height:1.4}
#btfo-app .btfo-header-notice button{border:0;background:transparent;color:inherit;font-size:20px;line-height:1;padding:4px;min-width:28px;flex:none}
#btfo-app .btfo-invest-nav,#btfo-app .btfo-service-nav{display:flex;align-items:center;gap:4px;margin:0 0 20px;padding:0;border:0;border-bottom:1px solid var(--bt-line);border-radius:0;background:transparent;overflow-x:auto;scrollbar-width:thin}
#btfo-app .btfo-invest-nav button,#btfo-app .btfo-service-nav button{flex:0 0 auto;min-height:48px;padding:12px 17px;border:0;border-bottom:2px solid transparent;border-radius:7px 7px 0 0;background:transparent;color:var(--bt-muted);font-size:13px;font-weight:650;white-space:nowrap;box-shadow:none}
#btfo-app .btfo-invest-nav button:is(.is-active,[aria-selected="true"]),#btfo-app .btfo-service-nav button[aria-pressed="true"]{border-bottom-color:#b18bff;background:#b18bff12;color:var(--bt-text)}
#btfo-app .btfo-invest-nav button:hover,#btfo-app .btfo-service-nav button:hover{background:#b18bff0a;color:var(--bt-text)}
#btfo-app .btfo-portfolio-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-top:20px}
#btfo-app .btfo-portfolio-metrics>div{display:flex;flex-direction:column;justify-content:center;gap:9px;padding:15px 12px;border:1px solid var(--bt-line);border-radius:10px;min-width:0;background:var(--bt-card2)}
#btfo-app .btfo-portfolio-metrics small{font-size:12px;color:var(--bt-muted)}
#btfo-app .btfo-portfolio-metrics strong{font-size:clamp(15px,1.25vw,22px);line-height:1.35;font-variant-numeric:tabular-nums;white-space:nowrap;overflow-wrap:normal}
#btfo-app [data-btfo-gain="positive"]{color:#69dcb0}
#btfo-app [data-btfo-gain="negative"]{color:#ff8a9e}
#btfo-app.btfo-light [data-btfo-gain="positive"]{color:#087b51}
#btfo-app.btfo-light [data-btfo-gain="negative"]{color:#c62848}
#btfo-app :is(.btfo-holdings-tools,.btfo-ohlcv-controls,.btfo-cash-filters,.btfo-budget-tools-body) :is(input,select,textarea){color:var(--bt-text)!important;background-color:var(--bt-card2)!important;border:1px solid var(--bt-line);font:inherit;line-height:1.4;min-height:42px;border-radius:8px;padding:9px 12px;opacity:1;-webkit-text-fill-color:var(--bt-text)}
#btfo-app select option{color:var(--bt-text);background:var(--bt-card)}
#btfo-app select.btfo-symbol-native[hidden]{display:none!important;width:0!important;height:0!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important}
#btfo-app .btfo-ohlcv-controls{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin:12px 0}
#btfo-app .btfo-ohlcv-controls>label{display:flex;flex-direction:column;align-items:stretch;flex:1 1 170px;gap:6px;font-size:12px;min-width:0;color:var(--bt-muted)}
#btfo-app .btfo-ohlcv-controls>label:first-child{flex:3 1 260px}
#btfo-app .btfo-ohlcv-controls>label:has([data-chart-type]){flex:0 1 100px}
#btfo-app .btfo-ohlcv-controls>label:has(input[type="checkbox"]){flex:0 0 auto;flex-direction:row;align-items:center;min-height:42px;gap:6px;white-space:nowrap}
#btfo-app .btfo-ohlcv-controls :is(select,input[type="search"]){width:100%;min-width:0;max-width:100%}
#btfo-app .btfo-ohlcv-controls input[type="checkbox"]{width:16px;height:16px;min-height:0;accent-color:#b18bff}
#btfo-app .btfo-ohlcv-controls :is(button,.btfo-chart-zoom button){min-height:42px;min-width:40px;padding:8px 11px;border:1px solid var(--bt-line);border-radius:8px;background:var(--bt-card2);color:var(--bt-text)}
#btfo-app .btfo-chart-zoom{display:flex;gap:4px}
#btfo-app .btfo-budget-tools-body :is(h2,h3){display:block;color:var(--bt-text)!important;font-size:17px;line-height:1.4;margin:0 0 12px;min-height:24px}
#btfo-app .btfo-budget-tools-body form{display:grid;gap:12px;min-width:0}
#btfo-app .btfo-budget-tools-body :is(input[type="file"],button){max-width:100%;white-space:normal;overflow-wrap:anywhere}
#btfo-app .btfo-cash-detail{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between}
#btfo-app .btfo-cash-detail p{flex-basis:100%;margin:0}
#btfo-app .btfo-correction-action{min-height:40px;border:1px solid var(--bt-line);border-radius:8px;background:var(--bt-card2);color:var(--bt-text);padding:8px 12px}
#btfo-app .btfo-symbol-activity summary{display:flex;align-items:center;gap:12px;padding:14px 0;cursor:pointer;color:var(--bt-text)}
#btfo-app .btfo-symbol-activity summary small{margin-left:auto;color:var(--bt-muted)}
#btfo-app .btfo-table-scroll{max-width:100%;overflow:auto}
#btfo-app .btfo-activity-table{width:100%;border-collapse:collapse;font-size:13px;margin:0}
#btfo-app .btfo-activity-table :is(th,td){padding:13px 12px;border:0;border-bottom:1px solid var(--bt-line);text-align:left;white-space:nowrap;color:var(--bt-text);font-variant-numeric:tabular-nums}
#btfo-app .btfo-activity-table th{font-size:11px;color:var(--bt-muted);font-weight:600}
#btfo-app .btfo-activity-kind{display:inline-flex;padding:3px 8px;border-radius:5px;background:#9d84ff20;color:#cbbcff;font-size:12px}
#btfo-app .btfo-activity-kind.buy{background:#5fd7ab18;color:#69dcb0}
#btfo-app .btfo-activity-kind.sell{background:#ff8a9e18;color:#ff8a9e}
#btfo-app .btfo-feed-footer{display:flex;justify-content:center;padding-top:15px}
#btfo-app .btfo-service-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 16px;color:var(--bt-muted);font-size:13px}
#btfo-app .btfo-service-heading p{margin:0;color:inherit}
#btfo-app .btfo-service-heading a{font-size:12px;color:var(--bt-text);text-decoration:none}
#btfo-app .btfo-service-frames iframe{display:block;width:100%;height:max(720px,76dvh);border:1px solid var(--bt-line);border-radius:12px;background:#fff}
@media(max-width:1100px){
#btfo-app .btfo-portfolio-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
#btfo-app .btfo-portfolio-metrics>div:first-child{grid-column:1/-1}
#btfo-app .btfo-portfolio-metrics>div:first-child strong{font-size:28px}}
@media(max-width:650px){
#btfo-app .btfo-top-status{order:3;flex-basis:100%;justify-content:flex-start}
#btfo-app .btfo-top-status:empty{display:none}
#btfo-app .btfo-header-notice{width:100%;max-width:none;justify-content:space-between}
#btfo-app .btfo-invest-nav{flex-wrap:wrap;overflow:visible;gap:0}
#btfo-app .btfo-invest-nav button{flex:1 1 24%;padding:9px 7px;min-height:42px;font-size:12px;text-align:center}
#btfo-app .btfo-ohlcv-controls>label:first-child{flex-basis:100%}
#btfo-app .btfo-portfolio-metrics{gap:8px}
#btfo-app .btfo-portfolio-metrics>div{padding:12px 10px}
#btfo-app .btfo-portfolio-metrics strong{font-size:15px}
#btfo-app .btfo-service-frames iframe{height:80dvh;min-height:600px}}
/* 8.105 canonical member editors, portfolio rows and chart drawings. */
#btfo-app .btfo-editor-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(480px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;border:0;border-left:1px solid var(--bt-line);border-radius:0;background:var(--bt-bg);color:var(--bt-text);padding:24px;overflow-y:auto;box-shadow:-12px 0 50px #0005;box-sizing:border-box;z-index:100000}
#btfo-app .btfo-editor-drawer:not([open]){display:none}
#btfo-app .btfo-editor-drawer::backdrop{background:#03081099;backdrop-filter:blur(3px)}
#btfo-app .btfo-editor-drawer>header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px;padding-bottom:16px;border-bottom:1px solid var(--bt-line)}
#btfo-app .btfo-editor-drawer h2{font-size:22px;margin:0}
#btfo-app .btfo-editor-drawer>header button{font-size:24px;min-width:44px;min-height:44px;padding:4px}
#btfo-app .btfo-editor-drawer .btfo-form{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;margin:0}
#btfo-app .btfo-editor-drawer label{display:grid;gap:8px;font-size:13px;font-weight:600;color:var(--bt-muted)}
#btfo-app .btfo-note-compose-form label{display:grid;gap:8px;font-size:13px;font-weight:600;color:var(--bt-muted)}
#btfo-app .btfo-editor-drawer input{box-sizing:border-box;width:100%;min-width:0;border:1px solid var(--bt-line);border-radius:9px;padding:12px 14px;background:var(--bt-card);color:var(--bt-text);font:inherit;line-height:1.5}
#btfo-app .btfo-editor-drawer select{box-sizing:border-box;width:100%;min-width:0;border:1px solid var(--bt-line);border-radius:9px;padding:12px 14px;background:var(--bt-card);color:var(--bt-text);font:inherit;line-height:1.5}
#btfo-app .btfo-editor-drawer textarea{box-sizing:border-box;width:100%;min-width:0;border:1px solid var(--bt-line);border-radius:9px;padding:12px 14px;background:var(--bt-card);color:var(--bt-text);font:inherit;line-height:1.5;min-height:180px;resize:vertical}
#btfo-app .btfo-note-compose-form input{box-sizing:border-box;width:100%;min-width:0;border:1px solid var(--bt-line);border-radius:9px;padding:12px 14px;background:var(--bt-card);color:var(--bt-text);font:inherit;line-height:1.5}
#btfo-app .btfo-note-compose-form textarea{box-sizing:border-box;width:100%;min-width:0;border:1px solid var(--bt-line);border-radius:9px;padding:12px 14px;background:var(--bt-card);color:var(--bt-text);font:inherit;line-height:1.5;min-height:170px;resize:vertical}
#btfo-app .btfo-editor-drawer .btfo-form>button[type=submit]{background:var(--bt-green);color:var(--bt-bg);font-weight:700;border:0;border-radius:9px;min-height:46px;padding:12px 18px}
#btfo-app .btfo-note-compose-footer button{background:var(--bt-green);color:var(--bt-bg);font-weight:700;border:0;border-radius:9px;min-height:46px;padding:12px 18px}
#btfo-app .btfo-home-toggles{display:grid;gap:0}
#btfo-app .btfo-home-setting{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid var(--bt-line)}
#btfo-app .btfo-home-setting label{display:flex;align-items:center;gap:10px;color:var(--bt-text);margin:0}
#btfo-app .btfo-home-setting input{width:18px;min-height:18px;height:18px;accent-color:var(--bt-green);padding:0}
#btfo-app .btfo-home-setting>div{display:flex;gap:4px}
#btfo-app .btfo-home-setting button{width:40px;min-height:40px;padding:6px}
#btfo-app .btfo-home-customize footer{display:flex;justify-content:space-between;gap:10px;margin:28px 0 12px}
#btfo-app .btfo-home-customize [data-home-layout-status]{font-size:12px;color:var(--bt-muted)}
#btfo-app .btfo-category-field{min-width:0;display:grid;gap:8px;align-content:start}
#btfo-app .btfo-category-picker{display:flex;align-items:flex-end;gap:6px}
#btfo-app .btfo-category-picker label{flex:1;min-width:0;display:grid;gap:8px;margin:0}
#btfo-app .btfo-category-picker button{min-width:44px;min-height:44px;padding:8px;font-size:20px}
#btfo-app .btfo-category-create{display:grid;gap:10px;border:1px solid var(--bt-line);border-radius:9px;padding:12px;background:var(--bt-card2)}
#btfo-app .btfo-category-create>div{display:flex;gap:8px}
#btfo-app .btfo-field-status{color:var(--bt-muted);font-size:12px;min-height:0}
#btfo-app .btfo-note-compose-form{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;max-width:none}
#btfo-app .btfo-note-compose-footer{display:flex;justify-content:flex-end}



#btfo-app .btfo-note-header{margin-bottom:20px;align-items:center}
#btfo-app .btfo-note-editor>summary{padding:12px 16px;border:1px solid var(--bt-line);border-radius:9px;font-weight:600;cursor:pointer;list-style:none}
#btfo-app .btfo-debt-editor>summary{padding:12px 16px;border:1px solid var(--bt-line);border-radius:9px;font-weight:600;cursor:pointer;list-style:none}
#btfo-app .btfo-debt-row{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--bt-line);padding:18px 0}
#btfo-app .btfo-debt-row small{display:block;color:var(--bt-muted);font-size:12px;margin-top:6px}
#btfo-app .btfo-debt-right{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}
#btfo-app .btfo-debt-right a{font-size:12px;color:var(--bt-muted);text-decoration:none}
#btfo-app .btfo-debt-kpis{gap:12px;margin:18px 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
#btfo-app .btfo-debt-kpis>div{background:var(--bt-card2);border-radius:10px;padding:16px;display:flex;flex-direction:column;gap:7px;min-width:0;border:1px solid var(--bt-line)}
#btfo-app .btfo-feed-more{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:auto;min-width:132px;min-height:44px;border-radius:9px;padding:10px 18px;font-size:13px;white-space:nowrap;background:var(--bt-card2);color:var(--bt-text);border:1px solid var(--bt-line);line-height:1.3}
#btfo-app .btfo-portfolio-hero{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:24px;align-items:center;padding-top:10px}
#btfo-app .btfo-portfolio-hero>div>span{display:block;color:var(--bt-muted);font-size:12px;margin-bottom:8px}
#btfo-app .btfo-portfolio-hero>div>strong{display:block;font-size:clamp(22px,2.5vw,38px);letter-spacing:-.025em;line-height:1.25;white-space:nowrap}
#btfo-app .btfo-portfolio-hero>div>b{font-size:18px;white-space:nowrap}
#btfo-app .btfo-return-switch{display:inline-flex;gap:3px;border:1px solid var(--bt-line);border-radius:10px;padding:3px;background:var(--bt-bg)}
#btfo-app .btfo-return-switch button{border:0;border-radius:7px;min-height:36px;padding:7px 14px;background:transparent;color:var(--bt-muted);font-size:12px;box-shadow:none}
#btfo-app .btfo-return-switch button[aria-pressed=true]{background:var(--bt-card2);color:var(--bt-text)}
#btfo-app .btfo-pnl{display:flex;gap:8px;align-items:baseline;justify-content:flex-end;font-variant-numeric:tabular-nums;white-space:nowrap}
#btfo-app .btfo-pnl b{font-size:14px;font-weight:650}
#btfo-app .btfo-pnl small{font-size:12px;color:inherit}
#btfo-app .btfo-portfolio-return .btfo-pnl{justify-content:flex-start;flex-wrap:wrap}
#btfo-app .btfo-portfolio-return .btfo-pnl b{font-size:19px}
#btfo-app .is-gain{color:var(--bt-green)}
#btfo-app .is-loss{color:var(--bt-red)}
#btfo-app .is-unknown{color:var(--bt-muted)}
#btfo-app .btfo-holdings h2{margin:0;font-size:21px}
#btfo-app .btfo-holdings h2 small{font-size:12px;color:var(--bt-muted);background:var(--bt-card2);border-radius:6px;padding:3px 7px;margin-left:6px}
#btfo-app .btfo-holdings-tools{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(110px,.65fr) minmax(0,1fr);gap:12px;margin:18px 0 8px}
#btfo-app .btfo-holdings-filter-feedback{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
#btfo-app .btfo-holdings-filter-feedback p{margin:0;color:var(--bt-muted);font-size:13px}
#btfo-app .btfo-holdings-filter-feedback button{min-height:42px;padding:8px 12px;border:1px solid var(--bt-line);border-radius:8px;background:var(--bt-card2);color:var(--bt-text)}
#btfo-app .btfo-portfolio-currency-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:12px}
#btfo-app .btfo-portfolio-currency-grid article{min-width:0;padding:16px;border:1px solid var(--bt-line);border-radius:12px;background:var(--bt-card2)}
#btfo-app .btfo-portfolio-currency-grid h3{margin:0 0 12px;font-size:16px}
#btfo-app .btfo-portfolio-currency-fields{display:grid;gap:10px;margin:0}
#btfo-app .btfo-portfolio-currency-fields dt{color:var(--bt-muted);font-size:12px}
#btfo-app .btfo-portfolio-currency-fields dd{margin:0;overflow-wrap:anywhere}
#btfo-app .btfo-holding-columns{display:grid!important;grid-template-columns:minmax(135px,1.1fr) minmax(110px,.8fr) minmax(170px,1.25fr) minmax(180px,1.5fr);align-items:center;gap:16px;padding:10px 0;color:var(--bt-muted);font-size:11px;border-bottom:1px solid var(--bt-line)}
#btfo-app .btfo-holding-row{display:grid!important;grid-template-columns:minmax(135px,1.1fr) minmax(110px,.8fr) minmax(170px,1.25fr) minmax(180px,1.5fr);align-items:center;gap:16px;padding:18px 0;min-height:94px;border-bottom:1px solid var(--bt-line);font-variant-numeric:tabular-nums;overflow-wrap:normal;word-break:normal}
#btfo-app .btfo-holding-columns>span:not(:first-child){text-align:right}
#btfo-app .btfo-holding-row:last-child{border-bottom:0}
#btfo-app .btfo-holding-identity{display:flex;align-items:center;gap:12px;min-width:0}
#btfo-app .btfo-holding-identity button{padding:0;min-height:26px;background:none;color:var(--bt-text);border:0;font-size:15px;font-weight:750;text-align:left}
#btfo-app .btfo-holding-identity small{display:block;font-size:12px;color:var(--bt-muted);white-space:nowrap;margin-top:3px}
#btfo-app .btfo-holding-price{text-align:right;min-width:0}
#btfo-app .btfo-holding-value{text-align:right;min-width:0}
#btfo-app .btfo-holding-return{text-align:right;min-width:0}
#btfo-app .btfo-holding-price>b{font-size:14px;font-weight:650;white-space:nowrap;display:block}
#btfo-app .btfo-holding-value>b{font-size:14px;font-weight:650;white-space:nowrap;display:block}
#btfo-app .btfo-holding-price>small{display:block;font-size:12px;margin-top:4px;white-space:nowrap}
#btfo-app .btfo-holding-value>small{display:block;font-size:12px;margin-top:4px;white-space:nowrap;color:var(--bt-muted)}
#btfo-app .btfo-holding-return a{font-size:11px;display:inline-block;margin-top:5px;color:var(--bt-muted);text-decoration:none}
#btfo-app .btfo-holding-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px 10px}
#btfo-app .btfo-holding-actions a{font-weight:650;text-decoration:underline}
#btfo-app .btfo-holding-price>.btfo-holding-quote{white-space:normal;color:var(--bt-muted);line-height:1.3}
#btfo-app .btfo-portfolio-update{display:block;font-size:11px;color:var(--bt-muted);margin-top:12px}

@media(max-width:1200px){#btfo-app .btfo-holding-row{grid-template-columns:minmax(120px,1fr) minmax(90px,.75fr) minmax(160px,1.2fr) minmax(160px,1.25fr);gap:12px}
#btfo-app .btfo-holding-columns{grid-template-columns:minmax(120px,1fr) minmax(90px,.75fr) minmax(160px,1.2fr) minmax(160px,1.25fr);gap:12px}
#btfo-app .btfo-pnl{display:grid;gap:2px}
#btfo-app .btfo-portfolio-hero{grid-template-columns:1fr 1fr}
#btfo-app .btfo-portfolio-hero>div:first-child{grid-column:1/-1}}

@media(max-width:1050px){#btfo-app .btfo-holding-columns{display:none!important}
#btfo-app .btfo-holding-row{grid-template-columns:1fr 1fr;gap:12px;padding:16px 0;row-gap:6px}
#btfo-app .btfo-holding-identity{grid-column:1}
#btfo-app .btfo-holding-price{grid-column:1;text-align:left;padding-left:56px;align-self:start}
#btfo-app .btfo-holding-value{grid-column:2;grid-row:1}
#btfo-app .btfo-holding-return{grid-column:2;grid-row:2;align-self:start}}

@media(max-width:520px){#btfo-app .btfo-editor-drawer{padding:20px 16px}
#btfo-app .btfo-holdings{padding:18px 14px}
#btfo-app .btfo-market-summary{padding:18px 14px}
#btfo-app .btfo-holdings-tools{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;margin:14px 0 8px}
#btfo-app .btfo-holdings-tools label:first-child{grid-column:1/-1}
#btfo-app .btfo-holding-row{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);column-gap:8px}
#btfo-app .btfo-holding-actions a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;margin:0;text-decoration:none;border:1px solid var(--bt-line);border-radius:8px}
#btfo-app .btfo-holding-price>b{font-size:13px}
#btfo-app .btfo-holding-value>b{font-size:13px}
#btfo-app .btfo-pnl b{font-size:13px}
#btfo-app .btfo-holding-identity{gap:8px}
#btfo-app .btfo-holding-identity .btfo-company-avatar{width:34px;height:34px}
#btfo-app .btfo-holding-price{padding-left:42px}
#btfo-app .btfo-holding-identity small{font-size:11px}
#btfo-app .btfo-pnl small{font-size:11px}
#btfo-app .btfo-return-switch button{padding:7px 10px}
#btfo-app .btfo-portfolio-hero{gap:16px}
#btfo-app .btfo-portfolio-hero>div>strong{font-size:25px}
#btfo-app .btfo-portfolio-hero>div>b{font-size:14px}
#btfo-app .btfo-portfolio-return .btfo-pnl b{font-size:16px}
#btfo-app .btfo-debt-row{align-items:flex-start}
#btfo-app .btfo-debt-right{flex-direction:column;align-items:flex-end;gap:8px}}
#btfo-app .btfo-holding-row[hidden]{display:none!important}
#btfo-app .btfo-drawing-tools{display:flex;gap:5px;align-items:center;flex-wrap:wrap;margin:14px 0 8px;padding:8px;border:1px solid var(--bt-line);border-radius:10px;background:var(--bt-bg)}
#btfo-app .btfo-drawing-tools button{font-size:12px;padding:7px 9px;min-height:36px;border:0;background:transparent;border-radius:6px;white-space:nowrap;box-shadow:none;color:var(--bt-text);display:inline-flex;gap:5px;align-items:center;justify-content:center}
#btfo-app .btfo-drawing-tools button[aria-pressed=true]{background:var(--bt-card2);color:var(--bt-green)}
#btfo-app .btfo-drawing-tools label{display:flex;align-items:center;gap:5px;margin:0 4px;font-size:11px;color:var(--bt-muted)}
#btfo-app .btfo-drawing-tools input[type=color]{width:28px;height:28px;min-height:28px;padding:2px;border-radius:4px}
#btfo-app .btfo-drawing-tools select{width:45px;min-height:32px;padding:4px;color:var(--bt-text);background:var(--bt-card2);border:1px solid var(--bt-line);border-radius:6px}
#btfo-app .btfo-drawing-tools input[type=text]{width:180px;min-height:36px;font-size:12px}
#btfo-app [data-draw-status]{color:var(--bt-muted);font-size:11px;flex-basis:100%;padding-left:4px}
#btfo-app .btfo-ohlcv-stage{position:relative;isolation:isolate}
#btfo-app .btfo-drawing-layer{position:absolute;inset:0;width:100%;height:100%;z-index:3;pointer-events:none;overflow:hidden}
#btfo-app .btfo-drawing-layer.is-drawing{pointer-events:all;cursor:crosshair;touch-action:none}
#btfo-app .btfo-drawing-layer g{pointer-events:stroke;cursor:pointer}
#btfo-app .btfo-drawing-layer text{font-family:system-ui,sans-serif;font-size:11px;pointer-events:all}
#btfo-app .btfo-drawing-layer circle{pointer-events:all;cursor:move}
#btfo-app .btfo-drawing-layer .is-selected line{filter:drop-shadow(0 0 3px #fff5)}
#btfo-app .btfo-drawing-layer .is-selected rect{filter:drop-shadow(0 0 3px #fff5)}
#btfo-app [data-chart-share-form]{margin-top:18px;padding:18px;background:var(--bt-card2);border:1px solid var(--bt-line);border-radius:10px}
#btfo-app [data-chart-share-form] label{display:grid;gap:8px;color:var(--bt-text)}
#btfo-app [data-chart-share-form] textarea{width:100%;min-height:110px;box-sizing:border-box;padding:12px;background:var(--bt-bg);color:var(--bt-text);border:1px solid var(--bt-line);border-radius:8px}
.btfo-chart-feed{box-sizing:border-box;max-width:1100px;margin:24px auto;padding:22px;color:#172b3c;background:#fff;border:1px solid #d4dde8;border-radius:14px;font-family:system-ui,sans-serif}
.btfo-chart-feed-item{padding:20px 0;border-bottom:1px solid #d4dde8}
.btfo-chart-feed-item:last-child{border:0}
.btfo-chart-feed-item header{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;margin-bottom:12px}
.btfo-chart-feed-item header strong{font-size:17px}
.btfo-chart-feed-item header .btfo-company-page-link{margin:0;color:#1769aa;font-size:17px;font-weight:750;text-decoration:none}
.btfo-chart-feed-item header span{color:#536879;font-size:12px}
.btfo-chart-feed-item img{display:block;width:100%;height:auto;border-radius:9px;background:#101b2d}
.btfo-chart-feed-item p{overflow-wrap:anywhere;line-height:1.7}
.btfo-chart-feed-item footer{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.btfo-analysis-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
.btfo-analysis-heading h2{margin:6px 0;font-size:23px}
.btfo-analysis-heading span{font-size:10px;letter-spacing:.15em;color:#536879}
.btfo-chart-feed button{min-height:40px;min-width:40px;border:1px solid #ccd8e1;border-radius:8px;padding:8px 12px;background:#f1f5f8;color:#172b3c;cursor:pointer}
.btfo-analysis-pending{border:1px solid #e3c579;border-radius:7px;padding:5px 8px;color:#775114}
.btfo-chart-feed [data-analysis-status]:empty{display:none}
.btfo-chart-feed-item small{font-size:12px;opacity:.75}
#btfo-app .btfo-category-field button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:9px 12px;background:var(--bt-card2);color:var(--bt-text);border:1px solid var(--bt-line);border-radius:8px;font-weight:600;grid-column:auto}
#btfo-app .btfo-category-create [data-category-save]{background:var(--bt-green);color:var(--bt-bg);border-color:var(--bt-green)}
#btfo-app .btfo-category-picker>button{flex:0 0 44px}

#btfo-app .btfo-budget-heading h2{display:none}
#btfo-app .btfo-chart-credit{font-size:10px;display:block;text-align:right;color:var(--bt-muted);margin-top:8px;text-decoration:none}
#btfo-app .btfo-legal-notice{border-top:1px solid var(--bt-line);padding-top:16px;margin-top:24px;color:var(--bt-muted);font-size:11px;line-height:1.6}
#btfo-app .btfo-drawing-tools button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}
#btfo-app .btfo-pro-chart{position:relative}
#btfo-app .btfo-rsi-label{position:absolute;left:8px;font-size:10px;background:#101b2ddd;color:#a7b8cb;z-index:2;pointer-events:none;padding:1px 4px}
#btfo-app .btfo-rsi-axis{position:absolute;right:0;width:58px;background:#101b2d;z-index:2;pointer-events:none;font-size:10px;color:#a7b8cb}
#btfo-app .btfo-rsi-axis span{position:absolute;left:8px;transform:translateY(-50%)}
#btfo-app .btfo-portfolio-realized{display:flex;justify-content:space-between;gap:12px;margin-top:18px;padding-top:12px;border-top:1px solid var(--bt-line);font-size:12px;color:var(--bt-muted)}
#btfo-app .btfo-editor-drawer button{font:inherit;min-height:40px;padding:8px 12px;border:1px solid var(--bt-line);border-radius:8px;background:var(--bt-card2);color:var(--bt-text)}
#btfo-app .btfo-editor-drawer button:disabled{opacity:.4;cursor:default}
#btfo-app .btfo-holdings-tools label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:600;min-width:0}
#btfo-app .btfo-holdings-tools :is(input,select){width:100%;min-height:42px;padding:9px 12px;border:1px solid var(--bt-line);border-radius:8px;background:var(--bt-card2);color:var(--bt-text)}
#btfo-app .btfo-debt-kpis strong{font-size:18px;overflow-wrap:anywhere}
#btfo-app .btfo-debt-kpis small{color:var(--bt-muted);font-size:12px}
#btfo-app .btfo-debt-editor{margin:16px 0}
#btfo-app .btfo-debt-right form{margin:0}
#btfo-app .btfo-debt-right button{min-height:36px;padding:7px 10px;border:1px solid var(--bt-line);background:var(--bt-card2);color:var(--bt-text);border-radius:7px;font-size:12px}
#btfo-app .btfo-feed-more[aria-busy=true]{opacity:.6}

@media(max-width:520px){#btfo-app .btfo-note-compose-footer button{width:100%}
#btfo-app .btfo-debt-kpis{grid-template-columns:1fr}}

#btfo-app [data-chart-fullscreen]{display:inline-flex;align-items:center;gap:6px}
#btfo-app [data-chart-fullscreen] svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

/* Market search, portfolio commands and personal account components. */
#btfo-app .btfo-news-symbol-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;margin:16px 0;align-items:end}
#btfo-app .btfo-news-symbol-controls>label{display:grid;gap:7px;margin:0;min-width:0;font-size:12px;font-weight:600}
#btfo-app .btfo-news-symbol-controls :is(select,input){width:100%;min-width:0;box-sizing:border-box;min-height:44px;padding:10px 12px;color:var(--bt-text);background:var(--bt-card2);border:1px solid var(--bt-line);border-radius:8px}
#btfo-app .btfo-chart-data-status button,#btfo-app .btfo-profile-steps button,#btfo-app .btfo-start-steps button{min-height:42px;padding:10px 14px;border:1px solid var(--bt-line);border-radius:9px;background:var(--bt-card2);color:var(--bt-text);font:inherit;font-size:12px;font-weight:650;cursor:pointer}
#btfo-app .btfo-chart-data-status{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0}
#btfo-app .btfo-chart-data-status p{margin:0;font-size:12px;color:var(--bt-muted)}
#btfo-app .btfo-drawing-tools .btfo-draw-magnet{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
#btfo-app .btfo-profile-trigger svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6}
#btfo-app .btfo-profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
#btfo-app .btfo-profile-steps{display:grid;gap:8px}
#btfo-app .btfo-profile-steps button{text-align:left;display:flex;gap:10px;align-items:center}
#btfo-app .btfo-profile-steps button span{color:var(--bt-green);font-size:17px}
#btfo-app .btfo-session-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid var(--bt-line)}
#btfo-app .btfo-session-row small{display:block;color:var(--bt-muted);font-size:12px;margin-top:6px;overflow-wrap:anywhere}
#btfo-app .btfo-current-session{color:var(--bt-green);font-size:11px;white-space:nowrap}
#btfo-app [data-end-other-sessions]{margin-top:18px}
#btfo-app .btfo-start-card{display:grid;grid-template-columns:1fr auto;gap:14px;padding:20px;margin-bottom:20px;background:var(--bt-card);border:1px solid var(--bt-line);border-radius:14px}
#btfo-app .btfo-start-card h2{font-size:21px;margin:6px 0 0}
#btfo-app .btfo-start-steps{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap}
#btfo-app [data-onboarding-status]:empty{display:none}
@media(max-width:700px){#btfo-app .btfo-news-symbol-controls,#btfo-app .btfo-profile-grid{grid-template-columns:1fr}.btfo-chart-feed{padding:16px;margin:16px 8px}#btfo-app .btfo-portfolio-actions{justify-content:flex-start}#btfo-app .btfo-session-row{align-items:flex-start}}
/* User-owned recurring investment reminders; no execution or ledger side effects. */
.btfo-dca{margin:18px 0}.btfo-dca-count{padding:6px 10px;border:1px solid var(--bt-line);border-radius:999px;color:var(--bt-muted);font-size:12px}.btfo-dca-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0;padding:16px;border:1px solid var(--bt-line);border-radius:13px;background:var(--bt-card2)}.btfo-dca-form label{min-width:0}.btfo-dca-form input,.btfo-dca-form select{width:100%;min-height:43px}.btfo-dca-form button{align-self:end;min-height:43px}.btfo-dca-form button:disabled{opacity:.5;cursor:not-allowed}.btfo-dca-notice{padding:10px 12px;border-radius:9px;background:rgba(22,163,106,.12);color:var(--bt-green);font-size:13px}.btfo-dca-notice.is-error{background:rgba(180,35,24,.1);color:var(--bt-red)}.btfo-dca-list{display:grid;gap:9px;margin-top:14px}.btfo-dca-item{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(110px,.8fr) minmax(120px,.8fr) minmax(0,1.3fr);align-items:center;gap:12px;padding:14px;border:1px solid var(--bt-line);border-radius:12px;background:var(--bt-card2)}.btfo-dca-item>div:not(.btfo-dca-actions){display:grid;gap:4px;min-width:0}.btfo-dca-item>div>strong{font-size:14px;overflow-wrap:anywhere}.btfo-dca-item>div>span{color:var(--bt-muted);font-size:11px;line-height:1.4}.btfo-dca-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.btfo-dca-actions form{margin:0}.btfo-dca-actions button{min-height:34px;padding:6px 9px;border:1px solid var(--bt-line);border-radius:8px;background:var(--bt-card);color:var(--bt-text);font-size:11px;cursor:pointer}.btfo-dca-actions button:hover{border-color:var(--bt-accent)}.btfo-dca-footnote{margin:12px 0 0;color:var(--bt-muted);font-size:11px;line-height:1.5}@media(max-width:800px){.btfo-dca-item{grid-template-columns:repeat(2,minmax(0,1fr))}.btfo-dca-actions{grid-column:1/-1;justify-content:flex-start}}@media(max-width:480px){.btfo-dca-form{grid-template-columns:1fr;padding:12px}.btfo-dca-item{gap:10px;padding:12px}}

.btfo-dca-item.is-archived{opacity:.7}
/* 8.139: member facing TCMB currency comparison. */
#btfo-app .btfo-fx-comparison{margin-top:18px;padding:clamp(16px,2vw,26px);overflow:hidden}
#btfo-app .btfo-fx-comparison .btfo-card-heading{align-items:center;gap:14px}
#btfo-app .btfo-fx-comparison .btfo-card-heading a{font-size:12px;text-decoration:none;color:var(--bt-accent)}
#btfo-app .btfo-fx-comparison h2{margin:3px 0 0;font-size:clamp(20px,2vw,26px)}
#btfo-app .btfo-fx-date{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin:13px 0;color:var(--bt-muted);font-size:12px}
#btfo-app .btfo-fx-date strong{color:var(--bt-text)}
#btfo-app .btfo-fx-date span{margin-left:auto}
#btfo-app .btfo-fx-table-wrap{max-width:100%;overflow:auto;border:1px solid var(--bt-line);border-radius:12px}
#btfo-app .btfo-fx-table{width:100%;min-width:570px;border-collapse:collapse;font-size:13px}
#btfo-app .btfo-fx-table th,#btfo-app .btfo-fx-table td{padding:11px 13px;text-align:right;border-bottom:1px solid var(--bt-line);white-space:nowrap}
#btfo-app .btfo-fx-table thead th{color:var(--bt-muted);font-size:11px;font-weight:600;background:var(--bt-card2)}
#btfo-app .btfo-fx-table th:first-child{text-align:left}
#btfo-app .btfo-fx-table tbody th{font-weight:600;color:var(--bt-text)}
#btfo-app .btfo-fx-table tbody th small{display:block;margin-top:2px;color:var(--bt-muted);font-size:10px;font-weight:400}
#btfo-app .btfo-fx-table tbody tr:last-child th,#btfo-app .btfo-fx-table tbody tr:last-child td{border-bottom:0}
#btfo-app .btfo-fx-change.is-up{color:var(--bt-positive,#16835d)}
#btfo-app .btfo-fx-change.is-down{color:var(--bt-negative,#cf4f54)}
#btfo-app .btfo-fx-info{margin-top:14px;border-top:1px solid var(--bt-line);padding-top:12px}
#btfo-app .btfo-fx-info summary{cursor:pointer;color:var(--bt-text);font-size:13px;font-weight:600}
#btfo-app .btfo-fx-footnote,#btfo-app .btfo-fx-empty{margin:12px 0 0;color:var(--bt-muted);font-size:11px;line-height:1.6}
@media(max-width:600px){#btfo-app .btfo-fx-comparison .btfo-card-heading{align-items:flex-start}#btfo-app .btfo-fx-date span{width:100%;margin-left:0}}
/* Named portfolio groups: compact, touch friendly, and visually quiet. */
.btfo-named-portfolios{margin-top:16px}.btfo-named-count,.btfo-named-account small,.btfo-named-group summary small{color:var(--bt-muted);font-size:11px}.btfo-named-manager{border:1px solid var(--bt-line);border-radius:13px;padding:13px;margin:12px 0 16px;background:#ffffff04}.btfo-named-manager>summary,.btfo-named-group>summary{cursor:pointer;list-style:none}.btfo-named-manager>summary::-webkit-details-marker,.btfo-named-group>summary::-webkit-details-marker{display:none}.btfo-named-manager>summary:after,.btfo-named-group>summary:after{content:'＋';float:right;color:var(--bt-green)}.btfo-named-manager[open]>summary:after,.btfo-named-group[open]>summary:after{content:'−'}.btfo-named-manager-body{padding-top:14px}.btfo-named-create{display:grid;grid-template-columns:minmax(160px,1fr) auto;align-items:end;gap:10px}.btfo-named-accounts{display:grid;gap:8px;margin-top:12px}.btfo-named-account,.btfo-named-manage-row{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(150px,.8fr) auto;align-items:center;gap:10px;padding:10px;border:1px solid var(--bt-line);border-radius:11px}.btfo-named-account strong{font-size:13px}.btfo-named-account select,.btfo-named-rename input{min-width:0;width:100%;background:#0d1721;color:var(--bt-text);border:1px solid var(--bt-line);border-radius:9px;padding:9px}.btfo-named-account button,.btfo-named-manage-row button,.btfo-named-create button{background:#ffffff08;color:var(--bt-text);border:1px solid var(--bt-line);border-radius:9px;padding:9px 12px}.btfo-named-account button:hover,.btfo-named-manage-row button:hover,.btfo-named-create button:hover{border-color:var(--bt-green)}.btfo-named-manage-list{display:grid;gap:8px;margin-top:10px}.btfo-named-manage-row{grid-template-columns:minmax(0,1fr) auto}.btfo-named-rename{display:grid;grid-template-columns:minmax(130px,1fr) auto;align-items:end;gap:8px}.btfo-named-rename label span{display:block;color:var(--bt-muted);font-size:11px;margin-bottom:5px}.btfo-named-group{border:1px solid var(--bt-line);border-radius:13px;margin:9px 0;background:#ffffff03}.btfo-named-group>summary{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px}.btfo-named-group>summary span{display:grid;gap:4px}.btfo-named-group>summary strong{color:var(--bt-text)}.btfo-named-group>summary b{white-space:nowrap;color:var(--bt-green)}.btfo-named-group-body{border-top:1px solid var(--bt-line);padding:8px 14px 12px}.btfo-named-line{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--bt-line);font-size:12px}.btfo-named-line strong{white-space:nowrap}.btfo-named-group-total{font-size:12px;color:var(--bt-muted)}.btfo-named-status{padding:10px 12px;border-radius:9px;background:#1ee0a012;color:var(--bt-text)}
.btfo-asset-portfolio-manager{margin:14px 0;border-top:1px solid var(--bt-line);padding-top:12px}.btfo-asset-portfolio-manager>summary{cursor:pointer;font-weight:650;color:var(--bt-text);padding:8px 0}.btfo-asset-portfolio-list{display:grid;gap:8px;margin-top:12px}.btfo-asset-portfolio-row{display:grid;grid-template-columns:minmax(80px,.5fr) minmax(130px,1fr) minmax(150px,1fr) auto;gap:10px;align-items:center;padding:10px;border:1px solid var(--bt-line);border-radius:10px}.btfo-asset-portfolio-row small{color:var(--bt-muted);overflow-wrap:anywhere}.btfo-asset-portfolio-row select{min-width:0;width:100%;padding:9px;border:1px solid var(--bt-line);border-radius:8px;background:var(--bt-card2);color:var(--bt-text)}.btfo-asset-portfolio-row button{padding:9px 12px}
@media(max-width:600px){.btfo-named-create,.btfo-named-account{grid-template-columns:1fr 1fr}.btfo-named-create label{grid-column:1/-1}.btfo-named-account strong{grid-column:1/-1}.btfo-named-account select{grid-column:1}.btfo-named-manage-row{grid-template-columns:1fr}.btfo-named-rename{grid-template-columns:1fr}.btfo-named-group>summary{align-items:flex-start}.btfo-asset-portfolio-row{grid-template-columns:1fr 1fr}.btfo-asset-portfolio-row small{grid-column:1/-1;grid-row:2}.btfo-asset-portfolio-row select{grid-column:1}.btfo-asset-portfolio-row button{grid-column:2;grid-row:3}}
.btfo-share-box{display:grid;gap:8px;margin-top:14px;padding:13px;border:1px solid var(--bt-line);border-radius:12px;background:#ffffff04}.btfo-share-box>strong{font-size:13px}.btfo-share-box p{margin:0}.btfo-share-box label{display:grid;gap:6px;font-size:11px;color:var(--bt-muted)}.btfo-share-box input{width:100%;box-sizing:border-box;padding:9px 10px;border:1px solid var(--bt-line);border-radius:8px;background:#0d1721;color:var(--bt-text);font-size:11px}.btfo-share-box form{margin:0}.btfo-share-box button{width:max-content;max-width:100%;padding:9px 12px;border:1px solid var(--bt-line);border-radius:9px;background:#ffffff08;color:var(--bt-text);cursor:pointer}.btfo-share-box button:hover{border-color:var(--bt-green)}.btfo-share-box small{color:var(--bt-muted);font-size:11px}
.btfo-position-split-manager{margin:14px 0;border:1px solid var(--bt-line);border-radius:12px;padding:13px;background:#ffffff03}.btfo-position-split-manager>summary{cursor:pointer;font-weight:650;padding:4px 0}.btfo-position-split-list{display:grid;gap:10px;margin-top:12px}.btfo-position-split-row{display:grid;grid-template-columns:minmax(110px,.65fr) minmax(0,2fr) auto;gap:12px;align-items:end;padding:12px;border:1px solid var(--bt-line);border-radius:10px}.btfo-position-split-heading{display:grid;gap:5px}.btfo-position-split-heading small{color:var(--bt-muted);font-size:11px}.btfo-position-split-inputs{display:grid;grid-template-columns:repeat(auto-fit,minmax(105px,1fr));gap:8px}.btfo-position-split-inputs label{display:grid;gap:5px;color:var(--bt-muted);font-size:11px}.btfo-position-split-inputs input{width:100%;box-sizing:border-box;min-height:38px;padding:8px;border:1px solid var(--bt-line);border-radius:8px;background:#0d1721;color:var(--bt-text)}.btfo-position-split-row button{padding:9px 12px;border:1px solid var(--bt-line);border-radius:9px;background:#ffffff08;color:var(--bt-text);cursor:pointer}.btfo-position-split-row button:hover{border-color:var(--bt-green)}
@media(max-width:700px){.btfo-position-split-row{grid-template-columns:1fr}.btfo-position-split-row button{width:100%}}
#btfo-app .btfo-cash-detail .btfo-fx-history-rate{flex-basis:100%;margin:0;padding:12px 14px;border:1px solid var(--bt-line);border-radius:10px;background:var(--bt-surface-soft,#f7f8fa);display:grid;gap:5px;color:var(--bt-text)}
#btfo-app .btfo-cash-detail .btfo-fx-cancel-form{flex-basis:100%;display:flex;flex-wrap:wrap;gap:10px;align-items:end;padding:12px;border:1px solid var(--bt-line);border-radius:10px;background:var(--bt-card2)}
#btfo-app .btfo-fx-cancel-form label{display:grid;gap:5px;flex:1 1 220px;font-size:12px;color:var(--bt-muted)}
#btfo-app .btfo-fx-cancel-form input{min-height:40px;border:1px solid var(--bt-line);border-radius:8px;padding:8px 10px;background:var(--bt-card);color:var(--bt-text)}
#btfo-app .btfo-fx-cancel-form button{min-height:40px;border:0;border-radius:8px;padding:8px 14px;background:var(--bt-accent);color:#fff;font-weight:700}
#btfo-app .btfo-fx-history-rate strong{font-size:13px}
#btfo-app .btfo-fx-history-rate small{font-size:12px;color:var(--bt-muted)}
/* Currency-isolated best / weakest open-position ranking. */
#btfo-app .btfo-portfolio-movers{margin-top:18px;padding-top:16px;border-top:1px solid var(--bt-line)}
#btfo-app .btfo-portfolio-movers-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:12px}
#btfo-app .btfo-portfolio-movers-heading h3{margin:4px 0 0;font-size:16px}
#btfo-app .btfo-portfolio-movers-heading>small,#btfo-app .btfo-portfolio-movers>p{color:var(--bt-muted);font-size:11px}
#btfo-app .btfo-movers-currency{display:grid;grid-template-columns:52px minmax(0,1fr);gap:10px;align-items:start;padding:10px 0;border-top:1px solid var(--bt-line)}
#btfo-app .btfo-movers-currency>h4{margin:7px 0;font-size:12px;color:var(--bt-muted)}
#btfo-app .btfo-movers-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#btfo-app .btfo-movers-columns>section{min-width:0}
#btfo-app .btfo-movers-columns h5{margin:4px 0 7px;font-size:11px;color:var(--bt-muted);font-weight:600}
#btfo-app .btfo-mover-row{display:grid;grid-template-columns:minmax(55px,.7fr) minmax(64px,1fr) minmax(75px,1fr);gap:8px;align-items:center;padding:7px 0;border-bottom:1px solid var(--bt-line);font-size:12px}
#btfo-app .btfo-mover-row strong{overflow:hidden;text-overflow:ellipsis}
#btfo-app .btfo-mover-row span,#btfo-app .btfo-mover-row small{text-align:right;white-space:nowrap}
#btfo-app .btfo-mover-row small{font-size:11px;color:var(--bt-muted)}
#btfo-app .btfo-portfolio-movers>p{margin:11px 0 0;line-height:1.5}
@media(max-width:520px){#btfo-app .btfo-portfolio-movers-heading{align-items:flex-start;flex-direction:column;gap:4px}#btfo-app .btfo-movers-currency{grid-template-columns:1fr;gap:2px}#btfo-app .btfo-movers-currency>h4{margin:2px 0}#btfo-app .btfo-movers-columns{gap:8px}#btfo-app .btfo-mover-row{grid-template-columns:minmax(40px,.55fr) minmax(54px,.7fr) minmax(65px,1fr);gap:5px;font-size:11px}#btfo-app .btfo-mover-row small{font-size:10px}}
#btfo-app .btfo-market-radar{margin:14px 0;padding:clamp(15px,2vw,22px)}
#btfo-app .btfo-market-radar .btfo-card-heading{align-items:center;gap:10px}
#btfo-app .btfo-market-radar .btfo-card-heading h2{margin:3px 0 0;font-size:clamp(18px,2vw,22px)}
#btfo-app .btfo-market-radar .btfo-card-heading>small,#btfo-app .btfo-market-radar-empty,#btfo-app .btfo-market-radar-date,#btfo-app .btfo-market-radar-note{color:var(--bt-muted);font-size:11px}
#btfo-app .btfo-market-radar-currency{margin-top:14px;padding-top:12px;border-top:1px solid var(--bt-line)}
#btfo-app .btfo-market-radar-currency>h3{margin:0 0 10px;font-size:13px;color:var(--bt-text)}
#btfo-app .btfo-market-radar-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#btfo-app .btfo-market-radar-columns>div{min-width:0}
#btfo-app .btfo-market-radar-columns h4{margin:3px 0 8px;color:var(--bt-muted);font-size:11px;font-weight:650}
#btfo-app .btfo-market-radar-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:8px 2px;border-bottom:1px solid var(--bt-line);font-size:12px}
#btfo-app .btfo-market-radar-row>div{display:grid;gap:2px;min-width:0}
#btfo-app .btfo-market-radar-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#btfo-app .btfo-market-radar-row strong a{color:inherit;text-decoration:none}
#btfo-app .btfo-market-radar-row strong a:hover{color:var(--bt-accent)}
#btfo-app .btfo-market-radar-row small{color:var(--bt-muted);font-size:10px;white-space:nowrap}
#btfo-app .btfo-market-radar-row>span{font-weight:700;white-space:nowrap}
#btfo-app .btfo-market-radar-date{display:block;margin-top:10px}
#btfo-app .btfo-market-radar-note{margin:12px 0 0;line-height:1.5}
@media(max-width:600px){#btfo-app .btfo-market-radar .btfo-card-heading{align-items:flex-start;flex-direction:column}.btfo-market-radar-columns{grid-template-columns:1fr!important;gap:8px!important}#btfo-app .btfo-market-radar-row{grid-template-columns:minmax(0,1fr) auto;gap:8px}#btfo-app .btfo-market-radar-row>small{grid-column:1/-1;text-align:right}}
#btfo-app .btfo-etf-radar{margin:14px 0;padding:clamp(15px,2vw,22px)}
#btfo-app .btfo-etf-radar .btfo-card-heading{align-items:center;gap:10px}
#btfo-app .btfo-etf-radar .btfo-card-heading h2{margin:3px 0 0;font-size:clamp(18px,2vw,22px)}
#btfo-app .btfo-etf-radar .btfo-card-heading>small,#btfo-app .btfo-etf-radar-empty,#btfo-app .btfo-etf-radar-date,#btfo-app .btfo-etf-radar-note{color:var(--bt-muted);font-size:11px}
#btfo-app .btfo-etf-period-form{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0 4px}
#btfo-app .btfo-etf-period-form label{color:var(--bt-muted);font-size:11px}
#btfo-app .btfo-etf-period-form select{min-width:100px;min-height:36px;padding:6px 28px 6px 10px;border:1px solid var(--bt-line);border-radius:8px;background:var(--bt-card);color:var(--bt-text)}
#btfo-app .btfo-etf-period-form button{min-height:36px;padding:6px 12px;border:1px solid var(--bt-line);border-radius:8px;background:var(--bt-card2);color:var(--bt-text);font-size:11px;font-weight:650;cursor:pointer}
#btfo-app .btfo-etf-period-form button:hover{border-color:var(--bt-accent);color:var(--bt-accent)}
#btfo-app .btfo-etf-radar-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:14px}
#btfo-app .btfo-etf-radar-grid>div{min-width:0}
#btfo-app .btfo-etf-radar-grid h3{margin:0 0 8px;font-size:12px;color:var(--bt-muted)}
#btfo-app .btfo-etf-radar-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:9px 2px;border-bottom:1px solid var(--bt-line);font-size:12px}
#btfo-app .btfo-etf-radar-row>div{display:grid;gap:3px;min-width:0}
#btfo-app .btfo-etf-radar-row strong{color:var(--bt-text)}
#btfo-app .btfo-etf-radar-row small{color:var(--bt-muted);font-size:10px}
#btfo-app .btfo-etf-radar-row .btfo-etf-radar-risk{font-size:9px;line-height:1.4}
#btfo-app .btfo-etf-radar-row b{font-size:12px;white-space:nowrap}
#btfo-app .btfo-etf-radar-date{display:block;margin-top:10px}
#btfo-app .btfo-etf-radar-note{margin:12px 0 0;line-height:1.5}
@media(max-width:600px){#btfo-app .btfo-etf-radar .btfo-card-heading{align-items:flex-start;flex-direction:column}#btfo-app .btfo-etf-radar-grid{grid-template-columns:1fr;gap:10px}}
#btfo-app .btfo-fund-disclosures{margin:14px 0;padding:clamp(15px,2vw,22px)}
#btfo-app .btfo-fund-disclosures .btfo-card-heading{align-items:center;gap:10px}
#btfo-app .btfo-fund-disclosures .btfo-card-heading h2{margin:3px 0 0;font-size:clamp(18px,2vw,22px)}
#btfo-app .btfo-fund-disclosures .btfo-card-heading>small,#btfo-app .btfo-fund-disclosures-empty,#btfo-app .btfo-fund-disclosures-note{color:var(--bt-muted);font-size:11px}
#btfo-app .btfo-fund-disclosures-list{margin-top:12px}
#btfo-app .btfo-fund-disclosure{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:11px 2px;border-bottom:1px solid var(--bt-line);color:var(--bt-text);text-decoration:none}
#btfo-app .btfo-fund-disclosure>span{display:grid;gap:4px;min-width:0}
#btfo-app .btfo-fund-disclosure strong{font-size:12px;line-height:1.45}
#btfo-app .btfo-fund-disclosure small{color:var(--bt-muted);font-size:10px}
#btfo-app .btfo-fund-disclosure>b{color:var(--bt-accent);font-size:13px}
#btfo-app .btfo-fund-disclosure:hover strong{color:var(--bt-accent)}
#btfo-app .btfo-fund-disclosures-note{margin:12px 0 0;line-height:1.5}
#btfo-app .btfo-fund-disclosures-filter{display:flex;align-items:flex-end;gap:9px;flex-wrap:wrap;margin:14px 0 8px}
#btfo-app .btfo-fund-disclosures-filter label{display:grid;gap:5px;min-width:150px;color:var(--bt-muted);font-size:10px}
#btfo-app .btfo-fund-disclosures-filter input,#btfo-app .btfo-fund-disclosures-filter select{min-height:38px;border:1px solid var(--bt-line);border-radius:9px;padding:0 10px;background:var(--bt-card2);color:var(--bt-text)}
#btfo-app .btfo-fund-disclosures-filter input{width:min(250px,70vw)}
#btfo-app .btfo-fund-disclosures-filter button{min-height:38px;padding:0 14px;border:0;border-radius:9px;background:var(--bt-green);color:#06251e;font-size:11px;font-weight:750;cursor:pointer}
#btfo-app .btfo-fund-filter-reset{padding:10px 5px;color:var(--bt-muted);font-size:10px;text-decoration:underline}
#btfo-app .btfo-fund-disclosures-count{margin:8px 0;color:var(--bt-muted);font-size:10px}
#btfo-app .btfo-fund-disclosures-pages{display:flex;align-items:center;justify-content:center;gap:18px;margin:14px 0 2px;font-size:11px}
#btfo-app .btfo-fund-disclosures-pages a{color:var(--bt-green);text-decoration:none;font-weight:700}
#btfo-app .btfo-fund-disclosures-pages span{color:var(--bt-muted)}
@media(max-width:600px){#btfo-app .btfo-fund-disclosures .btfo-card-heading{align-items:flex-start;flex-direction:column}}
@media(max-width:600px){#btfo-app .btfo-fund-disclosures-filter{align-items:stretch}#btfo-app .btfo-fund-disclosures-filter label,#btfo-app .btfo-fund-disclosures-filter input,#btfo-app .btfo-fund-disclosures-filter select{width:100%}#btfo-app .btfo-fund-disclosures-filter button{text-align:center;width:100%}}
#btfo-app .btfo-fund-holdings{margin:14px 0;padding:clamp(15px,2vw,22px)}
#btfo-app .btfo-fund-holdings .btfo-card-heading{align-items:center;gap:10px}
#btfo-app .btfo-fund-holdings .btfo-card-heading h2{margin:3px 0 0;font-size:clamp(18px,2vw,22px)}
#btfo-app .btfo-fund-holdings .btfo-card-heading>small,#btfo-app .btfo-fund-holdings-empty,#btfo-app .btfo-fund-holdings-note{color:var(--bt-muted);font-size:11px}
#btfo-app .btfo-fund-holdings-search,#btfo-app .btfo-fund-overlap-form{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin:14px 0}
#btfo-app .btfo-fund-holdings-search label,#btfo-app .btfo-fund-overlap-form label{display:grid;gap:5px;min-width:180px;color:var(--bt-muted);font-size:10px}
#btfo-app .btfo-fund-holdings-search input,#btfo-app .btfo-fund-overlap-form select{min-height:40px;border:1px solid var(--bt-line);border-radius:10px;padding:0 11px;background:var(--bt-card2);color:var(--bt-text)}
#btfo-app .btfo-fund-holdings-search input{width:min(270px,72vw)}
#btfo-app .btfo-fund-holdings-search button,#btfo-app .btfo-fund-overlap-form button{min-height:40px;border:0;border-radius:10px;padding:0 15px;background:var(--bt-green);color:#06251e;font-weight:750;cursor:pointer}
#btfo-app .btfo-fund-holders{margin:8px 0 14px}
#btfo-app .btfo-fund-holder{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 2px;border-bottom:1px solid var(--bt-line);color:var(--bt-text);text-decoration:none}
#btfo-app .btfo-fund-holder>span{display:grid;gap:3px;min-width:0}
#btfo-app .btfo-fund-holder strong{font-size:12px}
#btfo-app .btfo-fund-holder small{color:var(--bt-muted);font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#btfo-app .btfo-fund-holder>b{color:var(--bt-green);font-size:13px;white-space:nowrap}
#btfo-app .btfo-fund-overlap-result{margin:14px 0;padding:13px;border:1px solid var(--bt-line);border-radius:12px;background:var(--bt-card2)}
#btfo-app .btfo-fund-overlap-result>p:first-child{display:grid;gap:4px;margin:0 0 8px}
#btfo-app .btfo-fund-overlap-result>p:first-child strong{font-size:12px}
#btfo-app .btfo-fund-overlap-result>p:first-child small,#btfo-app .btfo-fund-holdings-sources{color:var(--bt-muted);font-size:10px}
#btfo-app .btfo-fund-overlap-row{display:grid;grid-template-columns:minmax(55px,.5fr) 1fr 1fr 1fr;gap:8px;align-items:center;padding:9px 0;border-top:1px solid var(--bt-line);font-size:10px}
#btfo-app .btfo-fund-overlap-row span{color:var(--bt-muted)}
#btfo-app .btfo-fund-overlap-row b{color:var(--bt-green);text-align:right}
#btfo-app .btfo-fund-holdings-sources{margin:12px 0 0}
#btfo-app .btfo-fund-holdings-sources a{color:var(--bt-green);text-decoration:none}
#btfo-app .btfo-fund-holdings-note{margin:12px 0 0;line-height:1.55}
@media(max-width:650px){#btfo-app .btfo-fund-holdings .btfo-card-heading{align-items:flex-start;flex-direction:column}#btfo-app .btfo-fund-holdings-search,#btfo-app .btfo-fund-overlap-form{align-items:stretch}#btfo-app .btfo-fund-holdings-search label,#btfo-app .btfo-fund-overlap-form label,#btfo-app .btfo-fund-holdings-search input,#btfo-app .btfo-fund-overlap-form select{width:100%}#btfo-app .btfo-fund-holdings-search button,#btfo-app .btfo-fund-overlap-form button{width:100%}#btfo-app .btfo-fund-overlap-row{grid-template-columns:1fr 1fr;gap:5px}#btfo-app .btfo-fund-overlap-row>b{text-align:left}}
#btfo-app .btfo-fund-compare{margin:14px 0;padding:clamp(15px,2vw,22px)}
#btfo-app .btfo-fund-compare .btfo-card-heading{align-items:center;gap:10px}
#btfo-app .btfo-fund-compare .btfo-card-heading h2{margin:3px 0 0;font-size:clamp(18px,2vw,22px)}
#btfo-app .btfo-fund-compare .btfo-card-heading>small,#btfo-app .btfo-fund-compare-empty,#btfo-app .btfo-fund-compare-note{color:var(--bt-muted);font-size:11px}
#btfo-app .btfo-fund-compare-form{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin:14px 0}
#btfo-app .btfo-fund-compare-form label{display:grid;gap:5px;color:var(--bt-muted);font-size:11px}
#btfo-app .btfo-fund-compare-form input,#btfo-app .btfo-fund-compare-form select{min-height:40px;border:1px solid var(--bt-line);border-radius:10px;padding:0 11px;background:var(--bt-card2);color:var(--bt-text)}
#btfo-app .btfo-fund-compare-form input{width:min(320px,72vw)}
#btfo-app .btfo-fund-compare-form button{min-height:40px;border:0;border-radius:10px;padding:0 16px;background:var(--bt-accent);color:#fff;font-weight:700;cursor:pointer}
#btfo-app .btfo-fund-compare-table-wrap{overflow-x:auto}
#btfo-app .btfo-fund-compare-table{width:100%;border-collapse:collapse;min-width:500px}
#btfo-app .btfo-fund-compare-table th,#btfo-app .btfo-fund-compare-table td{padding:11px 8px;border-bottom:1px solid var(--bt-line);text-align:right;font-size:12px;white-space:nowrap}
#btfo-app .btfo-fund-compare-table th:first-child{text-align:left}
#btfo-app .btfo-fund-compare-table tbody th{font-weight:600}
#btfo-app .btfo-fund-compare-table tbody th small{display:block;margin-top:4px;color:var(--bt-muted);font-size:10px;font-weight:400}
#btfo-app .btfo-fund-compare-table .is-up{color:var(--bt-green);font-weight:700}
#btfo-app .btfo-fund-compare-table .is-down{color:var(--bt-red);font-weight:700}
#btfo-app .btfo-fund-compare-omitted{margin-top:12px;color:var(--bt-muted);font-size:11px}
#btfo-app .btfo-fund-compare-omitted ul{margin:8px 0;padding-left:20px;line-height:1.8}
#btfo-app .btfo-fund-compare-note{margin:12px 0 0;line-height:1.5}
@media(max-width:600px){#btfo-app .btfo-fund-compare .btfo-card-heading{align-items:flex-start;flex-direction:column}#btfo-app .btfo-fund-compare-form{align-items:stretch}#btfo-app .btfo-fund-compare-form label,#btfo-app .btfo-fund-compare-form input,#btfo-app .btfo-fund-compare-form select{width:100%}#btfo-app .btfo-fund-compare-form button{width:100%}}
#btfo-app .btfo-fund-league{margin:14px 0;padding:clamp(15px,2vw,22px)}
#btfo-app .btfo-fund-league .btfo-card-heading{align-items:center;gap:10px}
#btfo-app .btfo-fund-league .btfo-card-heading h2{margin:3px 0 0;font-size:clamp(18px,2vw,22px)}
#btfo-app .btfo-fund-league .btfo-card-heading>small,#btfo-app .btfo-fund-league-empty,#btfo-app .btfo-fund-league-note,#btfo-app .btfo-fund-league-meta{color:var(--bt-muted);font-size:11px}
#btfo-app .btfo-fund-league-form{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin:14px 0}
#btfo-app .btfo-fund-league-form label{display:grid;gap:5px;min-width:180px;color:var(--bt-muted);font-size:11px}
#btfo-app .btfo-fund-league-form select{min-height:40px;border:1px solid var(--bt-line);border-radius:10px;padding:0 11px;background:var(--bt-card2);color:var(--bt-text)}
#btfo-app .btfo-fund-league-form button{min-height:40px;border:0;border-radius:10px;padding:0 16px;background:var(--bt-accent);color:#fff;font-weight:700;cursor:pointer}
#btfo-app .btfo-fund-league-table-wrap{overflow-x:auto}
#btfo-app .btfo-fund-league-table{width:100%;border-collapse:collapse;min-width:470px}
#btfo-app .btfo-fund-league-table th,#btfo-app .btfo-fund-league-table td{padding:10px 8px;border-bottom:1px solid var(--bt-line);text-align:right;font-size:12px;white-space:nowrap}
#btfo-app .btfo-fund-league-table th:first-child,#btfo-app .btfo-fund-league-table th:nth-child(2){text-align:left}
#btfo-app .btfo-fund-league-table tbody th{font-weight:600}
#btfo-app .btfo-fund-league-table tbody th small{display:block;margin-top:3px;color:var(--bt-muted);font-size:10px;font-weight:400}
#btfo-app .btfo-fund-league-table .is-up{color:var(--bt-green);font-weight:700}
#btfo-app .btfo-fund-league-table .is-down{color:var(--bt-red);font-weight:700}
#btfo-app .btfo-fund-league-omitted{margin-top:12px;color:var(--bt-muted);font-size:11px}
#btfo-app .btfo-fund-league-omitted ul{margin:8px 0;padding-left:20px;line-height:1.8}
#btfo-app .btfo-fund-league-note{margin:12px 0 0;line-height:1.5}
@media(max-width:600px){#btfo-app .btfo-fund-league .btfo-card-heading{align-items:flex-start;flex-direction:column}#btfo-app .btfo-fund-league-form{align-items:stretch}#btfo-app .btfo-fund-league-form label,#btfo-app .btfo-fund-league-form select{width:100%}#btfo-app .btfo-fund-league-form button{width:100%}}
#btfo-app .btfo-fund-detail{margin:14px 0;padding:clamp(15px,2vw,22px)}
#btfo-app .btfo-fund-detail .btfo-card-heading{align-items:center;gap:10px}
#btfo-app .btfo-fund-detail .btfo-card-heading h2{margin:3px 0 0;font-size:clamp(18px,2vw,22px)}
#btfo-app .btfo-fund-detail .btfo-card-heading>small,#btfo-app .btfo-fund-detail-empty,#btfo-app .btfo-fund-detail-note{color:var(--bt-muted);font-size:11px}
#btfo-app .btfo-fund-detail-form{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin:14px 0}
#btfo-app .btfo-fund-detail-form label{display:grid;gap:5px;min-width:180px;color:var(--bt-muted);font-size:11px}
#btfo-app .btfo-fund-detail-form input,#btfo-app .btfo-fund-detail-form select{min-height:40px;border:1px solid var(--bt-line);border-radius:10px;padding:0 11px;background:var(--bt-card2);color:var(--bt-text)}
#btfo-app .btfo-fund-detail-form input{width:min(280px,72vw)}
#btfo-app .btfo-fund-detail-form button{min-height:40px;border:0;border-radius:10px;padding:0 16px;background:var(--bt-accent);color:#fff;font-weight:700;cursor:pointer}
#btfo-app .btfo-fund-detail-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid var(--bt-line)}
#btfo-app .btfo-fund-detail-head>div{display:grid;gap:3px}
#btfo-app .btfo-fund-detail-head strong{font-size:15px}
#btfo-app .btfo-fund-detail-head span,#btfo-app .btfo-fund-detail-head small{color:var(--bt-muted);font-size:10px}
#btfo-app .btfo-fund-detail-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:10px 0}
#btfo-app .btfo-fund-detail-metrics>div{display:grid;gap:5px;min-width:0;padding:12px;border:1px solid var(--bt-line);border-radius:12px;background:var(--bt-card2)}
#btfo-app .btfo-fund-detail-metrics small,#btfo-app .btfo-fund-detail-metrics span{color:var(--bt-muted);font-size:10px}
#btfo-app .btfo-fund-detail-metrics strong{font-size:clamp(14px,2vw,18px);overflow-wrap:anywhere}
#btfo-app .btfo-fund-detail-metrics .is-up{color:var(--bt-green)}
#btfo-app .btfo-fund-detail-metrics .is-down{color:var(--bt-red)}
#btfo-app .btfo-fund-detail-chart{height:175px;margin:12px 0;padding:8px 2px;color:var(--bt-accent);border-bottom:1px solid var(--bt-line)}
#btfo-app .btfo-fund-detail-chart svg{width:100%;height:145px;overflow:visible}
#btfo-app .btfo-fund-detail-chart>div{display:flex;justify-content:space-between;color:var(--bt-muted);font-size:10px}
#btfo-app .btfo-fund-detail-holdings{margin-top:14px;padding-top:12px;border-top:1px solid var(--bt-line)}
#btfo-app .btfo-fund-detail-subhead{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px;font-size:12px}
#btfo-app .btfo-fund-detail-subhead a{color:var(--bt-accent);font-size:10px;text-decoration:none}
#btfo-app .btfo-fund-detail-holding-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}
#btfo-app .btfo-fund-detail-holding-list>div{display:flex;justify-content:space-between;gap:12px;padding:9px 2px;border-bottom:1px solid var(--bt-line);font-size:11px}
#btfo-app .btfo-fund-detail-holding-list span{color:var(--bt-muted)}
#btfo-app .btfo-fund-detail-note{margin:12px 0 0;line-height:1.5}
@media(max-width:1000px){#btfo-app .btfo-fund-detail-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){#btfo-app .btfo-fund-detail .btfo-card-heading{align-items:flex-start;flex-direction:column}#btfo-app .btfo-fund-detail-form{align-items:stretch}#btfo-app .btfo-fund-detail-form label,#btfo-app .btfo-fund-detail-form input,#btfo-app .btfo-fund-detail-form select{width:100%}#btfo-app .btfo-fund-detail-form button{width:100%}#btfo-app .btfo-fund-detail-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}#btfo-app .btfo-fund-detail-head{align-items:flex-start;flex-direction:column}}
#btfo-app .btfo-fund-detail-quality{display:grid;gap:4px;margin:10px 0;padding:11px 13px;border:1px solid var(--bt-line);border-radius:11px;background:var(--bt-card2);font-size:11px}
#btfo-app .btfo-fund-detail-quality>span,#btfo-app .btfo-fund-detail-quality>small,#btfo-app .btfo-fund-detail-coverage{color:var(--bt-muted);line-height:1.5}
#btfo-app .btfo-fund-detail-coverage{margin:4px 0 10px;font-size:10px}
#btfo-app .btfo-fund-detail-coverage strong{color:var(--bt-text)}
#btfo-app .btfo-fund-detail-history{margin-top:14px;padding-top:12px;border-top:1px solid var(--bt-line)}
#btfo-app .btfo-fund-detail-history>div:first-child{display:flex;justify-content:space-between;gap:10px;align-items:baseline;font-size:12px}
#btfo-app .btfo-fund-detail-history>div:first-child small,#btfo-app .btfo-fund-detail-history>p{color:var(--bt-muted);font-size:10px;line-height:1.5}
#btfo-app .btfo-fund-detail-history-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px;margin-top:6px}
#btfo-app .btfo-fund-detail-history-list>div{display:grid;grid-template-columns:minmax(58px,.6fr) minmax(128px,1.4fr) auto;align-items:center;gap:8px;padding:9px 2px;border-bottom:1px solid var(--bt-line);font-size:10px}
#btfo-app .btfo-fund-detail-history-list span{color:var(--bt-muted);white-space:nowrap}
#btfo-app .btfo-fund-detail-history-list b{white-space:nowrap;font-size:10px}
#btfo-app .btfo-fund-detail-history-list .is-up{color:var(--bt-green)}
#btfo-app .btfo-fund-detail-history-list .is-down{color:var(--bt-red)}
#btfo-app .btfo-fund-detail-history-links{display:flex;gap:12px;flex-wrap:wrap;font-size:10px}
#btfo-app .btfo-fund-detail-history-links a{color:var(--bt-accent);text-decoration:none}
@media(max-width:700px){#btfo-app .btfo-fund-detail-history-list{grid-template-columns:1fr}#btfo-app .btfo-fund-detail-history>div:first-child{align-items:flex-start;flex-direction:column}}
#btfo-app .btfo-fund-detail-concentration{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:10px 0;padding:10px;border:1px solid var(--bt-line);border-radius:11px;background:var(--bt-card2)}
#btfo-app .btfo-fund-detail-concentration>div{display:grid;gap:5px;min-width:0}
#btfo-app .btfo-fund-detail-concentration small{color:var(--bt-muted);font-size:10px}
#btfo-app .btfo-fund-detail-concentration strong{font-size:14px;overflow-wrap:anywhere}
#btfo-app .btfo-fund-detail-concentration>p{grid-column:1/-1;margin:0;color:var(--bt-muted);font-size:10px;line-height:1.5}
@media(max-width:700px){#btfo-app .btfo-fund-detail-concentration{grid-template-columns:repeat(2,minmax(0,1fr))}}
#btfo-app .btfo-fund-detail-monthly{margin:12px 0;padding:12px 0;border-top:1px solid var(--bt-line);border-bottom:1px solid var(--bt-line)}
#btfo-app .btfo-fund-detail-monthly .btfo-fund-detail-subhead small{color:var(--bt-muted);font-size:10px}
#btfo-app .btfo-fund-detail-monthly-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
#btfo-app .btfo-fund-detail-monthly-metrics>div{display:grid;gap:4px;min-width:0;padding:10px;border:1px solid var(--bt-line);border-radius:10px;background:var(--bt-card2)}
#btfo-app .btfo-fund-detail-monthly-metrics small,#btfo-app .btfo-fund-detail-monthly-metrics span{color:var(--bt-muted);font-size:10px}
#btfo-app .btfo-fund-detail-monthly-metrics strong{font-size:16px;overflow-wrap:anywhere}
#btfo-app .btfo-fund-detail-monthly-metrics .is-up{color:var(--bt-green)}
#btfo-app .btfo-fund-detail-monthly-metrics .is-down{color:var(--bt-red)}
#btfo-app .btfo-fund-detail-monthly-table{margin-top:9px;font-size:11px}
#btfo-app .btfo-fund-detail-monthly-table summary{cursor:pointer;color:var(--bt-accent);font-weight:650}
#btfo-app .btfo-fund-detail-monthly-table table{width:100%;margin-top:6px;border-collapse:collapse}
#btfo-app .btfo-fund-detail-monthly-table th,#btfo-app .btfo-fund-detail-monthly-table td{padding:7px;border-bottom:1px solid var(--bt-line);text-align:left}
#btfo-app .btfo-fund-detail-monthly-table td{text-align:right}
#btfo-app .btfo-fund-detail-monthly-table .is-up{color:var(--bt-green)}
#btfo-app .btfo-fund-detail-monthly-table .is-down{color:var(--bt-red)}
#btfo-app .btfo-fund-detail-monthly-note{margin:7px 0 0;color:var(--bt-muted);font-size:10px;line-height:1.5}
@media(max-width:700px){#btfo-app .btfo-fund-detail-monthly-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}#btfo-app .btfo-fund-detail-monthly .btfo-fund-detail-subhead{align-items:flex-start;flex-direction:column}}
#btfo-app .btfo-fund-simulation{margin:12px 0;padding:12px 0;border-bottom:1px solid var(--bt-line)}
#btfo-app .btfo-fund-simulation-form{display:flex;align-items:flex-end;gap:9px;flex-wrap:wrap;margin:10px 0}
#btfo-app .btfo-fund-simulation-form label{display:grid;gap:5px;min-width:145px;color:var(--bt-muted);font-size:10px}
#btfo-app .btfo-fund-simulation-form input,#btfo-app .btfo-fund-simulation-form select{min-height:38px;border:1px solid var(--bt-line);border-radius:9px;padding:0 10px;background:var(--bt-card2);color:var(--bt-text)}
#btfo-app .btfo-fund-simulation-form button{min-height:38px;border:0;border-radius:9px;padding:0 14px;background:var(--bt-accent);color:#fff;font-weight:700;cursor:pointer}
#btfo-app .btfo-fund-simulation-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:10px 0}
#btfo-app .btfo-fund-simulation-metrics>div{display:grid;gap:4px;min-width:0;padding:10px;border:1px solid var(--bt-line);border-radius:10px;background:var(--bt-card2)}
#btfo-app .btfo-fund-simulation-metrics small,#btfo-app .btfo-fund-simulation-metrics span{color:var(--bt-muted);font-size:10px}
#btfo-app .btfo-fund-simulation-metrics strong{font-size:15px;overflow-wrap:anywhere}
#btfo-app .btfo-fund-simulation-metrics .is-up{color:var(--bt-green)}
#btfo-app .btfo-fund-simulation-metrics .is-down{color:var(--bt-red)}
#btfo-app .btfo-fund-simulation-table{margin-top:8px;font-size:10px}
#btfo-app .btfo-fund-simulation-table summary{cursor:pointer;color:var(--bt-accent);font-weight:650}
#btfo-app .btfo-fund-simulation-table p,#btfo-app .btfo-fund-simulation-note{color:var(--bt-muted);line-height:1.5}
#btfo-app .btfo-fund-simulation-note{margin:7px 0 0;font-size:10px}
@media(max-width:700px){#btfo-app .btfo-fund-simulation-form{align-items:stretch}#btfo-app .btfo-fund-simulation-form label,#btfo-app .btfo-fund-simulation-form input,#btfo-app .btfo-fund-simulation-form select,#btfo-app .btfo-fund-simulation-form button{width:100%}#btfo-app .btfo-fund-simulation-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
#btfo-app .btfo-fund-simulation-form label{box-sizing:border-box;flex:1 1 180px;min-width:0}
#btfo-app .btfo-fund-simulation-form :is(input,select){box-sizing:border-box;max-width:100%}
#btfo-app .btfo-fund-simulation-form [aria-invalid=true]{border-color:var(--bt-red);box-shadow:0 0 0 1px color-mix(in srgb,var(--bt-red) 35%,transparent)}
#btfo-app .btfo-fund-simulation-error{display:block;color:var(--bt-red);font-size:12px;line-height:1.45}
#btfo-app .btfo-fund-simulation-error-summary{border-left:3px solid var(--bt-red);padding:10px 12px}
#btfo-app .btfo-fund-simulation-metrics{scroll-margin-top:18px}
#btfo-app .btfo-fund-simulation-metrics>div{overflow-wrap:anywhere}
@media(max-width:360px){#btfo-app .btfo-fund-simulation-metrics{grid-template-columns:minmax(0,1fr)}}

/* 8.177 fund contribution plan comparison */
#btfo-app .btfo-fund-plan-compare{margin:14px 0;padding:clamp(15px,2vw,22px)}
#btfo-app .btfo-fund-plan-compare .btfo-card-heading{align-items:center;gap:10px}
#btfo-app .btfo-fund-plan-compare .btfo-card-heading h2{margin:3px 0 0;font-size:clamp(18px,2vw,22px)}
#btfo-app .btfo-fund-plan-compare .btfo-card-heading>small,#btfo-app .btfo-fund-plan-compare-empty,#btfo-app .btfo-fund-plan-compare-note{color:var(--bt-muted);font-size:11px}
#btfo-app .btfo-fund-plan-compare-form{display:flex;align-items:flex-end;gap:9px;flex-wrap:wrap;margin:14px 0}
#btfo-app .btfo-fund-plan-compare-form label{display:grid;gap:5px;color:var(--bt-muted);font-size:10px}
#btfo-app .btfo-fund-plan-compare-form input,#btfo-app .btfo-fund-plan-compare-form select{min-height:39px;max-width:100%;border:1px solid var(--bt-line);border-radius:9px;padding:0 10px;background:var(--bt-card2);color:var(--bt-text)}
#btfo-app .btfo-fund-plan-compare-form input[name="btfo_fund_plan_codes"]{width:min(240px,72vw)}
#btfo-app .btfo-fund-plan-compare-form button{min-height:39px;border:0;border-radius:9px;padding:0 14px;background:var(--bt-accent);color:#fff;font-weight:700;cursor:pointer}
#btfo-app .btfo-fund-plan-compare-table-wrap{overflow-x:auto}
#btfo-app .btfo-fund-plan-compare-table{width:100%;min-width:760px;border-collapse:collapse}
#btfo-app .btfo-fund-plan-compare-table th,#btfo-app .btfo-fund-plan-compare-table td{padding:10px 8px;border-bottom:1px solid var(--bt-line);text-align:right;font-size:11px;white-space:nowrap}
#btfo-app .btfo-fund-plan-compare-table th:first-child{text-align:left}
#btfo-app .btfo-fund-plan-compare-table tbody th{font-weight:650}
#btfo-app .btfo-fund-plan-compare-table tbody th small{display:block;margin-top:4px;color:var(--bt-muted);font-size:9px;font-weight:400}
#btfo-app .btfo-fund-plan-compare-table .is-up{color:var(--bt-green);font-weight:700}
#btfo-app .btfo-fund-plan-compare-table .is-down{color:var(--bt-red);font-weight:700}
#btfo-app .btfo-fund-plan-compare-omitted{margin-top:10px;color:var(--bt-muted);font-size:10px}
#btfo-app .btfo-fund-plan-compare-omitted ul{margin:7px 0;padding-left:18px;line-height:1.7}
#btfo-app .btfo-fund-plan-compare-note{margin:10px 0 0;line-height:1.5}
@media(max-width:700px){#btfo-app .btfo-fund-plan-compare .btfo-card-heading{align-items:flex-start;flex-direction:column}#btfo-app .btfo-fund-plan-compare-form{align-items:stretch}#btfo-app .btfo-fund-plan-compare-form label,#btfo-app .btfo-fund-plan-compare-form input,#btfo-app .btfo-fund-plan-compare-form select,#btfo-app .btfo-fund-plan-compare-form button{width:100%}}

/* 8.179 KAP multi-period fund holdings history */
#btfo-app .btfo-fund-detail-timeline{margin-top:14px;padding-top:12px;border-top:1px solid var(--bt-line)}
#btfo-app .btfo-fund-detail-timeline .btfo-fund-detail-subhead{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
#btfo-app .btfo-fund-detail-timeline .btfo-fund-detail-subhead small,#btfo-app .btfo-fund-detail-timeline>p{color:var(--bt-muted);font-size:10px;line-height:1.5}
#btfo-app .btfo-fund-detail-timeline-summary{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
#btfo-app .btfo-fund-detail-timeline-summary span{padding:5px 8px;border:1px solid var(--bt-line);border-radius:999px;background:var(--bt-card2);color:var(--bt-muted);font-size:9px}
#btfo-app .btfo-fund-detail-timeline-table{margin-top:8px;font-size:10px}
#btfo-app .btfo-fund-detail-timeline-table summary{cursor:pointer;color:var(--bt-accent);font-weight:650}
#btfo-app .btfo-fund-detail-timeline-scroll{overflow:auto;max-height:420px;margin-top:7px}
#btfo-app .btfo-fund-detail-timeline table{width:100%;min-width:720px;border-collapse:collapse}
#btfo-app .btfo-fund-detail-timeline th,#btfo-app .btfo-fund-detail-timeline td{padding:7px 8px;border-bottom:1px solid var(--bt-line);text-align:right;white-space:nowrap}
#btfo-app .btfo-fund-detail-timeline th:first-child{text-align:left;position:sticky;left:0;background:var(--bt-card)}
#btfo-app .btfo-fund-detail-timeline thead th{position:sticky;top:0;background:var(--bt-card2);z-index:1}
#btfo-app .btfo-fund-detail-timeline thead th:first-child{z-index:2}
#btfo-app .btfo-fund-detail-timeline table a{color:var(--bt-accent);text-decoration:none}
#btfo-app .btfo-fund-detail-timeline tbody th small{display:block;margin-top:3px;color:var(--bt-muted);font-size:8px;font-weight:400}
#btfo-app .btfo-fund-detail-timeline .is-up{color:var(--bt-green);font-weight:700}
#btfo-app .btfo-fund-detail-timeline .is-down{color:var(--bt-red);font-weight:700}
@media(max-width:700px){#btfo-app .btfo-fund-detail-timeline .btfo-fund-detail-subhead{align-items:flex-start;flex-direction:column}}

/* 8.180 multi-fund KAP overlap matrix */
#btfo-app .btfo-fund-multi-overlap{margin-top:15px;padding-top:13px;border-top:1px solid var(--bt-line)}
#btfo-app .btfo-fund-multi-overlap h3{margin:0 0 8px;font-size:14px}
#btfo-app .btfo-fund-multi-overlap-form{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin:10px 0}
#btfo-app .btfo-fund-multi-overlap-form label{display:grid;gap:5px;min-width:180px;color:var(--bt-muted);font-size:10px}
#btfo-app .btfo-fund-multi-overlap-form input,#btfo-app .btfo-fund-multi-overlap-form select{min-height:39px;border:1px solid var(--bt-line);border-radius:9px;padding:0 10px;background:var(--bt-card2);color:var(--bt-text)}
#btfo-app .btfo-fund-multi-overlap-form input{width:min(280px,72vw)}
#btfo-app .btfo-fund-multi-overlap-form button{min-height:39px;border:0;border-radius:9px;padding:0 14px;background:var(--bt-accent);color:#fff;font-weight:700;cursor:pointer}
#btfo-app .btfo-fund-multi-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:10px 0}
#btfo-app .btfo-fund-multi-summary>div{display:grid;gap:4px;min-width:0;padding:9px;border:1px solid var(--bt-line);border-radius:9px;background:var(--bt-card2)}
#btfo-app .btfo-fund-multi-summary small{color:var(--bt-muted);font-size:9px}
#btfo-app .btfo-fund-multi-summary strong{font-size:12px;overflow-wrap:anywhere}
#btfo-app .btfo-fund-multi-table-wrap{overflow:auto;max-height:420px}
#btfo-app .btfo-fund-multi-table{width:100%;min-width:620px;border-collapse:collapse}
#btfo-app .btfo-fund-multi-table th,#btfo-app .btfo-fund-multi-table td{padding:8px;border-bottom:1px solid var(--bt-line);text-align:right;font-size:10px;white-space:nowrap}
#btfo-app .btfo-fund-multi-table th:first-child{text-align:left;position:sticky;left:0;background:var(--bt-card)}
#btfo-app .btfo-fund-multi-table thead th{position:sticky;top:0;background:var(--bt-card2);z-index:1}
#btfo-app .btfo-fund-multi-table thead th:first-child{z-index:2}
#btfo-app .btfo-fund-multi-table thead th small{display:block;margin-top:3px;color:var(--bt-muted);font-size:8px;font-weight:400}
#btfo-app .btfo-fund-multi-table a{color:var(--bt-accent);text-decoration:none}
#btfo-app .btfo-fund-multi-note,#btfo-app .btfo-fund-multi-overlap>p{color:var(--bt-muted);font-size:10px;line-height:1.5}
@media(max-width:700px){#btfo-app .btfo-fund-multi-overlap-form{align-items:stretch}#btfo-app .btfo-fund-multi-overlap-form label,#btfo-app .btfo-fund-multi-overlap-form input,#btfo-app .btfo-fund-multi-overlap-form select,#btfo-app .btfo-fund-multi-overlap-form button{width:100%}#btfo-app .btfo-fund-multi-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* 8.181 KAP concentration history */
#btfo-app .btfo-fund-detail-concentration-history{margin-top:10px;padding:9px;border:1px solid var(--bt-line);border-radius:9px;background:var(--bt-card2)}
#btfo-app .btfo-fund-detail-concentration-history summary{min-height:22px}
#btfo-app .btfo-fund-detail-concentration-history .btfo-fund-detail-timeline-scroll{max-height:320px}
#btfo-app .btfo-fund-detail-concentration-history table{min-width:670px}
#btfo-app .btfo-fund-detail-concentration-history>p{margin:8px 0 0;color:var(--bt-muted);font-size:9px;line-height:1.5}

/* 8.182 KAP sector rotation */
#btfo-app .btfo-fund-detail-sector{margin-top:14px;padding-top:12px;border-top:1px solid var(--bt-line)}
#btfo-app .btfo-fund-detail-sector .btfo-fund-detail-subhead{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
#btfo-app .btfo-fund-detail-sector .btfo-fund-detail-subhead small,#btfo-app .btfo-fund-detail-sector>p{color:var(--bt-muted);font-size:10px;line-height:1.5}
#btfo-app .btfo-fund-detail-sector-summary{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
#btfo-app .btfo-fund-detail-sector-summary span{padding:5px 8px;border:1px solid var(--bt-line);border-radius:999px;background:var(--bt-card2);color:var(--bt-muted);font-size:9px}
#btfo-app .btfo-fund-detail-sector table{width:100%;min-width:620px;border-collapse:collapse}
#btfo-app .btfo-fund-detail-sector th,#btfo-app .btfo-fund-detail-sector td{padding:7px 8px;border-bottom:1px solid var(--bt-line);text-align:right;white-space:nowrap;font-size:10px}
#btfo-app .btfo-fund-detail-sector th:first-child{text-align:left;position:sticky;left:0;background:var(--bt-card)}
#btfo-app .btfo-fund-detail-sector thead th{position:sticky;top:0;background:var(--bt-card2);z-index:1}
#btfo-app .btfo-fund-detail-sector thead th:first-child{z-index:2}
@media(max-width:700px){#btfo-app .btfo-fund-detail-sector .btfo-fund-detail-subhead{align-items:flex-start;flex-direction:column}}

/* 8.183 extended sector analytics */
#btfo-app .btfo-fund-detail-sector table{min-width:820px}
#btfo-app .btfo-fund-detail-sector .btfo-fund-detail-sector-coverage th,#btfo-app .btfo-fund-detail-sector .btfo-fund-detail-sector-coverage td{background:var(--bt-card2);font-weight:650}
#btfo-app .btfo-fund-detail-sector-coverage small{display:block;color:var(--bt-muted);font-size:8px;font-weight:400}
#btfo-app .btfo-fund-multi-sector{margin-top:14px;padding-top:12px;border-top:1px solid var(--bt-line)}
#btfo-app .btfo-fund-multi-sector h3{margin:0 0 8px;font-size:14px}
#btfo-app .btfo-fund-multi-sector-coverage{display:grid;gap:5px;margin:9px 0}
#btfo-app .btfo-fund-multi-sector-coverage span{padding:7px 9px;border:1px solid var(--bt-line);border-radius:8px;background:var(--bt-card2);color:var(--bt-muted);font-size:9px;line-height:1.5}
#btfo-app .btfo-fund-multi-sector-coverage a{color:var(--bt-accent);text-decoration:none}
#btfo-app .btfo-fund-multi-sector-table{width:100%;min-width:620px;border-collapse:collapse}
#btfo-app .btfo-fund-multi-sector-table th,#btfo-app .btfo-fund-multi-sector-table td{padding:8px;border-bottom:1px solid var(--bt-line);text-align:right;white-space:nowrap;font-size:10px}
#btfo-app .btfo-fund-multi-sector-table th:first-child{text-align:left;position:sticky;left:0;background:var(--bt-card)}
#btfo-app .btfo-fund-multi-sector-table thead th{position:sticky;top:0;background:var(--bt-card2);z-index:1}
#btfo-app .btfo-fund-multi-sector-table thead th:first-child{z-index:2}
#btfo-app .btfo-fund-multi-sector-table th small{display:block;margin-top:3px;color:var(--bt-muted);font-size:8px;font-weight:400}
@media(max-width:700px){#btfo-app .btfo-fund-multi-sector .btfo-fund-multi-overlap-form{align-items:stretch}#btfo-app .btfo-fund-multi-sector .btfo-fund-multi-overlap-form label,#btfo-app .btfo-fund-multi-sector .btfo-fund-multi-overlap-form input,#btfo-app .btfo-fund-multi-sector .btfo-fund-multi-overlap-form select,#btfo-app .btfo-fund-multi-sector .btfo-fund-multi-overlap-form button{width:100%}}

/* Finance OS 8.185.0 — dedicated, member-visible FVT research workspace */
#btfo-app .btfo-fund-research{display:grid;gap:14px}
#btfo-app .btfo-fund-research-hero{padding:clamp(18px,3vw,30px);border:1px solid var(--bt-line);border-radius:18px;background:radial-gradient(circle at 92% 5%,color-mix(in srgb,var(--bt-accent) 17%,transparent),transparent 35%),var(--bt-card)}
#btfo-app .btfo-fund-research-hero h2{margin:5px 0 8px;font-size:clamp(23px,3vw,34px);letter-spacing:-.03em}
#btfo-app .btfo-fund-research-hero p{max-width:780px;margin:0;color:var(--bt-muted);line-height:1.55}
#btfo-app .btfo-fund-research-eyebrow{color:var(--bt-accent);font-size:10px;font-weight:800;letter-spacing:.14em}
#btfo-app .btfo-fund-research-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:18px}
#btfo-app .btfo-fund-research-metrics>div{display:grid;gap:5px;min-width:0;padding:13px;border:1px solid var(--bt-line);border-radius:13px;background:var(--bt-card2)}
#btfo-app .btfo-fund-research-metrics small{color:var(--bt-muted);font-size:10px}
#btfo-app .btfo-fund-research-metrics strong{font-size:clamp(17px,2vw,23px);overflow-wrap:anywhere}
#btfo-app .btfo-fund-research-nav{display:flex;gap:8px;overflow:auto;padding:3px 0;scrollbar-width:thin}
#btfo-app .btfo-fund-research-nav a{flex:0 0 auto;padding:9px 12px;border:1px solid var(--bt-line);border-radius:999px;color:var(--bt-text);background:var(--bt-card);font-size:11px;font-weight:700;text-decoration:none}
#btfo-app .btfo-fund-research-nav a:hover,#btfo-app .btfo-fund-research-nav a:focus-visible{border-color:var(--bt-accent);color:var(--bt-accent)}
#btfo-app .btfo-fund-directory{padding:clamp(15px,2vw,22px)}
#btfo-app .btfo-fund-directory h2{margin:0;font-size:18px}
#btfo-app .btfo-fund-directory-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
#btfo-app .btfo-fund-directory-head small,#btfo-app .btfo-fund-directory-empty,#btfo-app .btfo-fund-directory-note{color:var(--bt-muted);font-size:11px}
#btfo-app .btfo-fund-directory-form{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin:12px 0}
#btfo-app .btfo-fund-directory-form label{display:grid;gap:5px;min-width:min(320px,100%);color:var(--bt-muted);font-size:11px}
#btfo-app .btfo-fund-directory-form input{min-height:40px;border:1px solid var(--bt-line);border-radius:10px;padding:0 11px;background:var(--bt-card2);color:var(--bt-text)}
#btfo-app .btfo-fund-directory-form button{min-height:40px;border:0;border-radius:10px;padding:0 15px;background:var(--bt-accent);color:#fff;font-weight:750;cursor:pointer}
#btfo-app .btfo-fund-directory-list{display:grid;gap:7px}
#btfo-app .btfo-fund-directory-item{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(90px,.7fr) minmax(85px,.6fr) auto;align-items:center;gap:12px;padding:12px;border:1px solid var(--bt-line);border-radius:12px;background:var(--bt-card2);text-decoration:none;color:var(--bt-text)}
#btfo-app .btfo-fund-directory-item:hover{border-color:var(--bt-accent)}
#btfo-app .btfo-fund-directory-item>span{display:grid;gap:3px;min-width:0}
#btfo-app .btfo-fund-directory-item strong{font-size:12px}
#btfo-app .btfo-fund-directory-item small{color:var(--bt-muted);font-size:10px;overflow-wrap:anywhere}
#btfo-app .btfo-fund-directory-item>b{color:var(--bt-accent);font-size:11px;white-space:nowrap}
#btfo-app .btfo-fund-research-source{margin:0;color:var(--bt-muted);font-size:10px;line-height:1.5}
@media(max-width:760px){#btfo-app .btfo-fund-research-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}#btfo-app .btfo-fund-directory-item{grid-template-columns:minmax(0,1fr) auto;gap:6px 12px}#btfo-app .btfo-fund-directory-item>span:nth-child(2),#btfo-app .btfo-fund-directory-item>span:nth-child(3){grid-column:1/-1;display:inline-flex;gap:5px}#btfo-app .btfo-fund-directory-item>b{grid-column:2;grid-row:1/3;align-self:center}#btfo-app .btfo-fund-directory-form label,#btfo-app .btfo-fund-directory-form input,#btfo-app .btfo-fund-directory-form button{width:100%}}

/* Finance OS 8.186.0 — BIST BYF directory and archive research */
#btfo-app .btfo-byf-research{margin:14px 0;padding:clamp(15px,2vw,22px)}
#btfo-app .btfo-byf-research .btfo-card-heading{align-items:center;gap:12px}
#btfo-app .btfo-byf-research .btfo-card-heading h2{margin:3px 0 0;font-size:clamp(19px,2vw,24px)}
#btfo-app .btfo-byf-source-link{color:var(--bt-accent);font-size:11px;font-weight:700;text-decoration:none}
#btfo-app .btfo-byf-intro,#btfo-app .btfo-byf-note,#btfo-app .btfo-byf-empty,#btfo-app .btfo-byf-archive-meta{color:var(--bt-muted);font-size:11px;line-height:1.55}
#btfo-app .btfo-byf-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:13px 0}
#btfo-app .btfo-byf-summary>div{display:grid;gap:5px;padding:12px;border:1px solid var(--bt-line);border-radius:12px;background:var(--bt-card2)}
#btfo-app .btfo-byf-summary small,#btfo-app .btfo-byf-themes span{color:var(--bt-muted);font-size:10px}
#btfo-app .btfo-byf-summary strong{font-size:17px}
#btfo-app .btfo-byf-themes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0 16px}
#btfo-app .btfo-byf-themes>div{display:grid;gap:5px}
#btfo-app .btfo-byf-themes span{display:flex;justify-content:space-between;gap:6px}
#btfo-app .btfo-byf-themes i{height:5px;overflow:hidden;border-radius:8px;background:var(--bt-line)}
#btfo-app .btfo-byf-themes em{display:block;height:100%;border-radius:8px;background:var(--bt-accent)}
#btfo-app .btfo-byf-filters{display:grid;grid-template-columns:2fr 1.3fr 1.2fr 1.1fr .8fr;gap:9px;align-items:end}
#btfo-app .btfo-byf-filters label{display:grid;gap:5px;min-width:0;color:var(--bt-muted);font-size:10px}
#btfo-app .btfo-byf-filters input,#btfo-app .btfo-byf-filters select{width:100%;min-height:39px;border:1px solid var(--bt-line);border-radius:9px;padding:0 9px;background:var(--bt-card2);color:var(--bt-text);font:inherit}
#btfo-app .btfo-byf-submit-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0}
#btfo-app .btfo-byf-submit-row button{min-height:38px;border:0;border-radius:9px;padding:0 14px;background:var(--bt-accent);color:#fff;font-weight:750;cursor:pointer}
#btfo-app .btfo-byf-submit-row a,#btfo-app .btfo-byf-submit-row span,#btfo-app .btfo-byf-submit-row small{color:var(--bt-muted);font-size:10px}
#btfo-app .btfo-byf-table-wrap,#btfo-app .btfo-byf-compare-table-wrap{overflow-x:auto}
#btfo-app .btfo-byf-table,#btfo-app .btfo-byf-comparison table{width:100%;min-width:900px;border-collapse:collapse}
#btfo-app .btfo-byf-table th,#btfo-app .btfo-byf-table td,#btfo-app .btfo-byf-comparison th,#btfo-app .btfo-byf-comparison td{padding:10px 8px;border-bottom:1px solid var(--bt-line);text-align:left;vertical-align:top;font-size:11px}
#btfo-app .btfo-byf-table>thead th,#btfo-app .btfo-byf-comparison thead th{color:var(--bt-muted);font-size:10px;font-weight:650}
#btfo-app .btfo-byf-table tbody th{min-width:230px}
#btfo-app .btfo-byf-table tbody th small,#btfo-app .btfo-byf-table td small{display:block;margin-top:4px;color:var(--bt-muted);font-size:9px;font-weight:400;line-height:1.45}
#btfo-app .btfo-byf-table input[type=checkbox]{width:17px;height:17px;accent-color:var(--bt-accent)}
#btfo-app .btfo-byf-empty-value{color:var(--bt-muted);font-size:10px}
#btfo-app .btfo-byf-table .is-up{color:var(--bt-green)}
#btfo-app .btfo-byf-table .is-down{color:var(--bt-red)}
#btfo-app .btfo-byf-comparison{margin-top:14px;padding:13px;border:1px solid var(--bt-line);border-radius:13px;background:var(--bt-card2)}
#btfo-app .btfo-byf-comparison h3{margin:0 0 8px;font-size:14px}
#btfo-app .btfo-byf-note{margin:12px 0 0}
@media(max-width:850px){#btfo-app .btfo-byf-filters{grid-template-columns:repeat(2,minmax(0,1fr))}#btfo-app .btfo-byf-themes{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){#btfo-app .btfo-byf-summary{grid-template-columns:repeat(2,minmax(0,1fr))}#btfo-app .btfo-byf-filters{grid-template-columns:1fr}#btfo-app .btfo-byf-research .btfo-card-heading{align-items:flex-start;flex-direction:column}#btfo-app .btfo-byf-submit-row button{width:100%}}
/* FVT #6: inspect the archived closes behind each BYF return. */
#btfo-app .btfo-byf-evidence{margin:12px 0;border:1px solid var(--bt-line);border-radius:12px;background:var(--bt-card2)}
#btfo-app .btfo-byf-evidence>summary{padding:12px 14px;color:var(--bt-text);font-size:12px;font-weight:750;cursor:pointer}
#btfo-app .btfo-byf-evidence>p{margin:0;padding:0 14px 12px;color:var(--bt-muted);font-size:10px;line-height:1.55}
#btfo-app .btfo-byf-evidence-table{width:100%;min-width:780px;border-collapse:collapse}
#btfo-app .btfo-byf-evidence-table th,#btfo-app .btfo-byf-evidence-table td{padding:9px;border-top:1px solid var(--bt-line);text-align:left;vertical-align:top;color:var(--bt-text);font-size:10px;line-height:1.5}
#btfo-app .btfo-byf-evidence-table th{color:var(--bt-muted);font-weight:700}
#btfo-app .btfo-byf-evidence-table td small,#btfo-app .btfo-byf-period-evidence,#btfo-app .btfo-byf-period-source,#btfo-app .btfo-byf-coverage{display:block;margin-top:4px;color:var(--bt-muted);font-size:9px;line-height:1.5;overflow-wrap:anywhere}
#btfo-app .btfo-byf-comparison td .btfo-byf-period-evidence{color:var(--bt-muted);font-weight:400}
#btfo-app .btfo-byf-research{overflow-x:clip}

/* FVT #26: member live broadcast, webinar and replay workspace */
.btfo-webinars{--btw-ink:#eff6fa;--btw-muted:#9cb2c0;--btw-panel:#102737;--btw-panel2:#142f40;--btw-border:#2b4b5d;--btw-green:#1ee0a0;color:var(--btw-ink);padding:18px 0 36px}
.btfo-webinars button,.btfo-webinars input,.btfo-webinars select{font:inherit}
.btfo-webinars-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:30px clamp(20px,4vw,44px);border:1px solid #2b5665;border-radius:24px;background:radial-gradient(circle at 88% 15%,#226b6855,transparent 32%),linear-gradient(120deg,#102838,#163849 70%,#12483f);box-shadow:0 18px 44px #0002}
.btfo-webinars-hero>div:first-child>span{font-size:11px;letter-spacing:.16em;font-weight:800;color:#76e8c2}
.btfo-webinars-hero h2{margin:9px 0 7px;font-size:clamp(26px,4vw,38px);line-height:1.15;color:#f3fbff}
.btfo-webinars-hero p{margin:0;max-width:650px;color:#bdd0d9}
.btfo-webinars-hero-mark{display:grid;place-items:center;width:86px;height:86px;flex:0 0 86px;border:1px solid #55c9a56b;border-radius:28px;background:#1ee0a019;color:#68ecc0;font-size:42px}
.btfo-webinar-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}
.btfo-webinar-stats article{display:flex;align-items:baseline;gap:10px;padding:16px 18px;border:1px solid var(--btw-border);border-radius:16px;background:var(--btw-panel)}
.btfo-webinar-stats strong{font-size:26px;color:#70eac1}.btfo-webinar-stats span{font-size:13px;color:var(--btw-muted)}
.btfo-webinar-tabs{display:flex;gap:8px;overflow:auto;padding:4px 0 12px;border-bottom:1px solid var(--btw-border)}
.btfo-webinar-tabs button{border:1px solid transparent;border-radius:11px;background:transparent;color:#b7c9d1;padding:10px 15px;white-space:nowrap;cursor:pointer}
.btfo-webinar-tabs button[aria-selected=true]{border-color:#47cfa44d;background:#1ee0a015;color:#71ecc2;font-weight:700}
.btfo-webinar-tabs button:focus-visible,.btfo-webinar-action:focus-visible,.btfo-webinar-calendar:focus-visible,.btfo-webinar-rsvp button:focus-visible{outline:3px solid #54e9b7;outline-offset:2px}
.btfo-webinar-filters{display:flex;align-items:end;gap:12px;margin:17px 0;color:var(--btw-muted)}
.btfo-webinar-filters label{display:grid;gap:6px;min-width:min(280px,100%);font-size:12px;font-weight:700}
.btfo-webinar-filters label+label{min-width:170px}.btfo-webinar-filters input,.btfo-webinar-filters select{width:100%;min-height:42px;padding:9px 12px;border:1px solid var(--btw-border);border-radius:10px;background:#0d2130;color:#f2f7fa}
.btfo-webinar-filters span{margin:0 0 12px auto;font-size:12px}
.btfo-webinar-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.btfo-webinar-card,.btfo-webinar-empty{min-width:0;padding:20px;border:1px solid var(--btw-border);border-radius:17px;background:linear-gradient(145deg,#122c3b,#102432)}
.btfo-webinar-card[hidden]{display:none}.btfo-webinar-card.is-cancelled{border-color:#82566b}
.btfo-webinar-card-top{display:flex;justify-content:space-between;gap:12px;align-items:center}
.btfo-webinar-kind,.btfo-webinar-status{padding:5px 9px;border-radius:999px;background:#1ee0a019;color:#6fe8bd;font-size:11px;font-weight:800}
.btfo-webinar-status{background:#ffffff0b;color:#bfd0d8}.is-cancelled .btfo-webinar-status{color:#ff9fa8}
.btfo-webinar-card h3{margin:15px 0 8px;color:#f4f8fb;font-size:20px;line-height:1.3}
.btfo-webinar-description{color:#b4c6cf;line-height:1.65}.btfo-webinar-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0;padding:14px 0;border-top:1px solid #ffffff12;border-bottom:1px solid #ffffff12;color:#eaf2f5;font-size:13px}
.btfo-webinar-meta span{display:grid;gap:4px}.btfo-webinar-meta b{font-size:10px;text-transform:uppercase;letter-spacing:.07em;color:#89a4b2}
.btfo-webinar-card-actions{display:flex;gap:8px}.btfo-webinar-action,.btfo-webinar-rsvp button,.btfo-webinar-calendar{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:9px 13px;border:1px solid #1ee0a066;border-radius:10px;background:#17b881;color:#06271d;font-weight:800;text-decoration:none;cursor:pointer}
.btfo-webinar-action:hover,.btfo-webinar-rsvp button:hover,.btfo-webinar-calendar:hover{filter:brightness(1.08);color:#06271d}
.btfo-webinar-rsvp{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:12px 0}
.btfo-webinar-rsvp label{display:flex;align-items:flex-start;gap:8px;max-width:100%;color:#bfd0d8;font-size:12px;line-height:1.45}
.btfo-webinar-rsvp label input{margin-top:2px;accent-color:#1ee0a0}.btfo-webinar-rsvp button{border-color:#426071;background:#19384a;color:#e7f2f7;font-size:12px}
.btfo-webinar-registered,.btfo-webinar-gate,.btfo-webinar-full{color:#76e8c2;font-size:13px}.btfo-webinar-gate,.btfo-webinar-full{padding:10px 12px;border-radius:10px;background:#ffffff08;color:#c5d6dd}
.btfo-webinar-calendar{margin:7px 0 0;border-color:#426071;background:transparent;color:#cce0e8;font-size:12px}.btfo-webinar-calendar:hover{color:#fff}
.btfo-webinar-empty{display:grid;gap:7px;color:#dce8ed}.btfo-webinar-empty span{color:var(--btw-muted);font-size:13px}
.btfo-webinar-notice{padding:12px 15px;border:1px solid #58cba66b;border-radius:11px;background:#1ee0a012;color:#8ef0cd}
.btfo-webinar-disclaimer{margin:18px 2px;color:#8ea7b3;font-size:11px;line-height:1.6}
.btfo-webinar-player{position:fixed;inset:0;z-index:100100;display:grid;align-content:center;justify-items:center;gap:12px;padding:20px;background:#02080ddf}
.btfo-webinar-player[hidden]{display:none}.btfo-webinar-player>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:20px;width:min(100%,1040px);color:white}
.btfo-webinar-player [data-webinar-close]{width:42px;height:42px;border:1px solid #ffffff44;border-radius:50%;background:#112838;color:white;font-size:25px;cursor:pointer}
.btfo-webinar-player [data-webinar-frame]{width:min(100%,1040px);aspect-ratio:16/9;background:#000;border-radius:14px;overflow:hidden;box-shadow:0 18px 60px #0008}
.btfo-webinar-player iframe{width:100%;height:100%;border:0}
.btfo-webinar-playing{overflow:hidden}
.btfo-webinar-admin .btfo-webinar-admin-layout{display:grid;grid-template-columns:minmax(340px,.9fr) minmax(480px,1.1fr);gap:18px;margin:18px 0}
.btfo-webinar-admin-panel{min-width:0;padding:20px;border:1px solid #d3dbe0;border-radius:12px;background:#fff}
.btfo-webinar-admin-panel h2{margin-top:0}.btfo-webinar-admin-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.btfo-webinar-admin-form label{display:grid;gap:5px;font-weight:600}.btfo-webinar-admin-form input:not([type=checkbox]),.btfo-webinar-admin-form select,.btfo-webinar-admin-form textarea{width:100%;min-height:39px;color:#172b39;background:#fff}.btfo-webinar-admin-form .btfo-webinar-check{grid-column:1/-1;display:flex;align-items:center;gap:8px}.btfo-webinar-description-field{margin-top:14px}.btfo-webinar-description-field textarea{min-height:130px}
.btfo-webinar-admin-filter{display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin:14px 0}.btfo-webinar-admin-filter label{display:grid;gap:4px}.btfo-webinar-admin-filter input,.btfo-webinar-admin-filter select{min-width:150px}.btfo-webinar-admin-table-wrap{max-width:100%;overflow:auto}.btfo-webinar-admin table{min-width:550px}.btfo-webinar-archive-form{display:inline-block;margin-left:5px}.btfo-webinar-history{margin-top:18px}
@media(max-width:950px){.btfo-webinar-admin .btfo-webinar-admin-layout{grid-template-columns:1fr}}
@media(max-width:680px){.btfo-webinars{padding-top:8px}.btfo-webinars-hero{padding:22px 18px;border-radius:17px}.btfo-webinars-hero-mark{width:58px;height:58px;flex-basis:58px;border-radius:18px;font-size:30px}.btfo-webinar-stats{gap:7px}.btfo-webinar-stats article{display:grid;gap:2px;padding:11px 9px}.btfo-webinar-stats strong{font-size:21px}.btfo-webinar-stats span{font-size:10px}.btfo-webinar-grid{grid-template-columns:1fr}.btfo-webinar-filters{align-items:stretch;flex-direction:column}.btfo-webinar-filters label,.btfo-webinar-filters label+label{min-width:0}.btfo-webinar-filters span{margin:0}.btfo-webinar-meta{grid-template-columns:1fr 1fr}.btfo-webinar-card{padding:16px}.btfo-webinar-player{padding:10px}.btfo-webinar-admin-panel{padding:14px}.btfo-webinar-admin-fields{grid-template-columns:1fr}}

/* FVT #23: source-traceable economic and investment calendar */
.btfo-market-calendar{--bm-ink:#edf5f8;--bm-muted:#9bb1bd;--bm-panel:#112a39;--bm-panel2:#153548;--bm-border:#2d4e5e;--bm-accent:#1ee0a0;color:var(--bm-ink);padding:18px 0 36px}
.btfo-market-calendar button,.btfo-market-calendar input,.btfo-market-calendar select{font:inherit}
.btfo-market-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:28px clamp(18px,4vw,40px);border:1px solid #2b5965;border-radius:22px;background:radial-gradient(circle at 90% 5%,#277d6850,transparent 34%),linear-gradient(120deg,#102938,#163a4a 68%,#135141);box-shadow:0 16px 42px #0002}
.btfo-market-hero span{color:#75e8bd;font-size:11px;font-weight:800;letter-spacing:.15em}.btfo-market-hero h2{margin:9px 0;font-size:clamp(25px,4vw,36px);line-height:1.15;color:#f4f9fc}.btfo-market-hero p{margin:0;color:#bbced6}.btfo-market-hero>a{white-space:nowrap;padding:10px 14px;border:1px solid #67d9b477;border-radius:11px;color:#91f0cf;text-decoration:none;font-weight:700}
.btfo-market-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0}.btfo-market-stats article{display:grid;gap:3px;padding:14px 16px;border:1px solid var(--bm-border);border-radius:14px;background:var(--bm-panel)}.btfo-market-stats strong{font-size:24px;color:#72eac0}.btfo-market-stats span{font-size:12px;color:var(--bm-muted)}
.btfo-market-monthbar{display:flex;align-items:center;justify-content:center;gap:22px;margin:16px 0 9px}.btfo-market-monthbar h3{min-width:200px;margin:0;text-align:center;text-transform:capitalize;color:#f1f7fa;font-size:21px}.btfo-market-month-arrow{display:grid;place-items:center;width:38px;height:38px;border:1px solid var(--bm-border);border-radius:12px;background:var(--bm-panel);color:#d7e6eb;text-decoration:none;font-size:19px}.btfo-market-tabs{display:flex;gap:8px;overflow:auto;padding:4px 0 12px;border-bottom:1px solid var(--bm-border)}.btfo-market-tabs button{padding:10px 15px;border:1px solid transparent;border-radius:10px;background:transparent;color:#b9cad1;white-space:nowrap;cursor:pointer}.btfo-market-tabs button[aria-selected=true]{border-color:#4ad4a85c;background:#1ee0a015;color:#79eac2;font-weight:800}
.btfo-market-filter{display:flex;align-items:end;gap:12px;margin:15px 0;color:var(--bm-muted)}.btfo-market-filter label{display:grid;gap:5px;min-width:min(260px,100%);font-size:12px;font-weight:700}.btfo-market-filter label+label{min-width:160px}.btfo-market-filter input,.btfo-market-filter select{width:100%;min-height:41px;padding:8px 11px;border:1px solid var(--bm-border);border-radius:9px;background:#0d2230;color:#f3f7f9}.btfo-market-filter [data-market-count]{margin:0 0 11px auto;font-size:12px;white-space:nowrap}
.btfo-market-weekdays,.btfo-market-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.btfo-market-weekdays{border:1px solid var(--bm-border);border-bottom:0;border-radius:13px 13px 0 0;background:#0e2533}.btfo-market-weekdays span{padding:10px 6px;text-align:center;color:#98b2bf;font-size:11px;font-weight:800}.btfo-market-day{min-width:0;min-height:105px;padding:6px;border:1px solid var(--bm-border);background:#102b3a}.btfo-market-day:nth-child(7n+1){border-left-radius:0}.btfo-market-day.is-outside{background:#0d2230;color:#667f8c}.btfo-market-day.is-today{box-shadow:inset 0 0 0 2px #1ee0a080}.btfo-market-day-number{display:grid;place-items:center;width:26px;height:26px;margin-bottom:5px;border:0;border-radius:50%;background:transparent;color:#c8d7de;font-size:12px;cursor:pointer}.btfo-market-day-number:hover{background:#1ee0a023;color:#7cebc3}.btfo-market-chip{display:block;width:100%;overflow:hidden;margin:3px 0;padding:4px 5px;border:0;border-left:2px solid #1ee0a0;border-radius:4px;background:#1ee0a014;color:#c7f8e5;text-align:left;text-overflow:ellipsis;white-space:nowrap;font-size:10px;cursor:pointer}.btfo-market-chip.type-capital{border-color:#66b5f1;background:#66b5f11a;color:#cbe7fc}.btfo-market-chip.type-ipo{border-color:#d7ad53;background:#d7ad531a;color:#f5e3b5}.btfo-market-chip.type-macro{border-color:#be8bf0;background:#be8bf01a;color:#e8d6fc}.btfo-market-chip.type-earnings{border-color:#ff9b70;background:#ff9b701a;color:#ffd6c6}.btfo-market-chip.type-market{border-color:#88adbb;background:#88adbb1a;color:#d6e4e9}.btfo-market-chip.is-cancelled{text-decoration:line-through;opacity:.65}.btfo-market-more{display:block;padding:3px;color:#9fb3bd;font-size:10px}
.btfo-market-view[hidden]{display:none}.btfo-market-list-actions{display:flex;align-items:center;gap:10px;margin:14px 0}.btfo-market-list-actions button{min-height:39px;padding:8px 12px;border:1px solid #1ee0a05c;border-radius:9px;background:#1ee0a015;color:#8ff0cf;font-weight:700;cursor:pointer}.btfo-market-list-actions button:disabled{opacity:.5;cursor:not-allowed}.btfo-market-list-actions [data-market-date-label]{color:#b7cbd3;font-size:12px}.btfo-market-list-actions [data-market-clear-date]{margin-left:auto;border-color:var(--bm-border);background:var(--bm-panel);color:#d5e3e8}
.btfo-market-event-list{display:grid;gap:11px}.btfo-market-event{display:grid;grid-template-columns:minmax(135px,.27fr) minmax(0,1fr);gap:15px;padding:17px;border:1px solid var(--bm-border);border-radius:15px;background:linear-gradient(145deg,#132f3e,#102633)}.btfo-market-event[hidden]{display:none}.btfo-market-event.is-cancelled{border-color:#714f5e}.btfo-market-event-date{display:grid;align-content:start;gap:8px;color:#dce9ed;font-size:13px}.btfo-market-event-date>span{width:max-content;padding:4px 7px;border-radius:99px;background:#1ee0a01a;color:#80e9c4;font-size:10px;font-weight:800}.btfo-market-event-main{min-width:0}.btfo-market-event-top{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.btfo-market-symbol,.btfo-market-certainty{padding:4px 8px;border-radius:99px;background:#ffffff0c;color:#d4e2e7;font-size:10px;font-weight:800}.btfo-market-certainty{background:#1ee0a01a;color:#82ebc5}.btfo-market-certainty.is-cancelled{background:#fc80921c;color:#ffa6ad}.btfo-market-event h3{margin:8px 0;color:#f1f7fa;font-size:17px;line-height:1.35}.btfo-market-event-main>p{margin:6px 0;color:#b8cbd3;line-height:1.55}.btfo-market-event-value{padding:8px 10px;border-left:2px solid #5fcba6;background:#ffffff08}.btfo-market-source{display:grid;gap:4px;margin-top:10px;padding-top:9px;border-top:1px solid #ffffff12;color:#8fa8b4;font-size:10px}.btfo-market-source a{width:max-content;color:#77e9c0;font-weight:700;text-decoration:none}.btfo-market-source a:hover{text-decoration:underline}.btfo-market-empty{display:grid;gap:7px;padding:18px;border:1px dashed #3a5c6e;border-radius:13px;background:#ffffff06;color:#dce8ec}.btfo-market-empty span{color:var(--bm-muted);font-size:12px}
.btfo-market-notice{padding:11px 14px;border:1px solid #47ce9c66;border-radius:10px;background:#1ee0a012;color:#8bedcc}.btfo-market-disclaimer{margin:15px 2px;color:#8da6b1;font-size:11px;line-height:1.6}.btfo-market-detail{position:fixed;width:min(620px,calc(100% - 24px));max-height:85vh;overflow:auto;padding:23px;border:1px solid #3a5a6c;border-radius:18px;background:#0e2431;color:#edf5f8;box-shadow:0 22px 90px #0009}.btfo-market-detail::backdrop{background:#02080dbb}.btfo-market-detail>button{float:right;width:38px;height:38px;border:1px solid var(--bm-border);border-radius:50%;background:#172f3e;color:white;font-size:23px;cursor:pointer}.btfo-market-detail h2{padding-right:42px;color:#f2f8fa}.btfo-market-detail .btfo-market-event{display:block;padding:0;border:0;background:transparent}.btfo-market-detail .btfo-market-event-date{display:none}
.btfo-market-compact{padding:15px;border:1px solid #2b4c5b;border-radius:15px;background:#102938}.btfo-market-compact .btfo-card-heading h2{margin:0;color:#eaf3f6;font-size:16px}.btfo-market-compact .btfo-card-heading button{border:0;background:transparent;color:#78e9c0;cursor:pointer}.btfo-market-compact-row{display:grid;grid-template-columns:48px 80px minmax(0,1fr);gap:7px;align-items:center;padding:9px 0;border-top:1px solid #ffffff10;font-size:11px}.btfo-market-compact-row time{color:#7cebc3;font-weight:800}.btfo-market-compact-row>span{color:#93adba}.btfo-market-compact-row strong{overflow:hidden;color:#e4eef2;text-overflow:ellipsis;white-space:nowrap}
.btfo-market-calendar button:focus-visible,.btfo-market-month-arrow:focus-visible,.btfo-market-source a:focus-visible{outline:3px solid #59e7b9;outline-offset:2px}
@media(max-width:760px){.btfo-market-hero{align-items:flex-start;flex-direction:column;padding:21px 17px}.btfo-market-hero>a{align-self:flex-start}.btfo-market-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.btfo-market-filter{align-items:stretch;flex-direction:column}.btfo-market-filter label,.btfo-market-filter label+label{min-width:0}.btfo-market-filter [data-market-count]{margin:0}.btfo-market-weekdays,.btfo-market-grid{min-width:700px}.btfo-market-calendar [data-market-view="month"]{overflow:auto;padding-bottom:6px}.btfo-market-day{min-height:92px}.btfo-market-event{grid-template-columns:1fr;gap:8px}.btfo-market-event-date{display:flex;align-items:center;flex-wrap:wrap}.btfo-market-monthbar{gap:10px}.btfo-market-monthbar h3{min-width:170px;font-size:18px}.btfo-market-compact-row{grid-template-columns:44px 68px minmax(0,1fr)}}
/* FVT #25: Finance OS member community */
.btfo-native-community[hidden]{display:none!important}.btfo-community{--bc-panel:#112b3a;--bc-panel2:#153647;--bc-line:#2b4d5d;--bc-muted:#a3b9c4;--bc-accent:#42deb0;color:#eaf4f7;padding:10px 0 30px}.btfo-community-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 22px;border:1px solid var(--bc-line);border-radius:16px;background:linear-gradient(120deg,#143546,#112735)}.btfo-community-hero span{font-size:11px;letter-spacing:.12em;color:#77d9ba}.btfo-community-hero h2{margin:6px 0;font-size:24px}.btfo-community-hero p,.btfo-community-disclaimer{margin:4px 0;color:var(--bc-muted);font-size:13px}.btfo-community-hero>a,.btfo-community-back{color:#7ee4c2;font-weight:700;text-decoration:none}.btfo-community-profile-edit,.btfo-community-composer,.btfo-community-filter,.btfo-community-post,.btfo-community-profile,.btfo-community-empty{margin:14px 0;padding:16px;border:1px solid var(--bc-line);border-radius:14px;background:var(--bc-panel)}.btfo-community-profile-edit summary{cursor:pointer;font-weight:700}.btfo-community-profile-edit form,.btfo-community-composer{display:grid;gap:11px}.btfo-community label{display:grid;gap:6px;color:#d7e7ec;font-size:13px}.btfo-community label small,.btfo-community-composer>small{color:var(--bc-muted);font-size:11px}.btfo-community input,.btfo-community textarea,.btfo-community select{box-sizing:border-box;width:100%;min-height:40px;padding:9px 11px;border:1px solid #3a5b6a;border-radius:9px;background:#0d202c;color:#f2f7f8}.btfo-community textarea{resize:vertical;min-height:74px}.btfo-community button,.btfo-community-filter button{min-height:38px;padding:8px 12px;border:1px solid #398d77;border-radius:9px;background:#163f3d;color:#8de6c9;font-weight:700;cursor:pointer}.btfo-community button:hover,.btfo-community a:hover{filter:brightness(1.13)}.btfo-community-tabs{display:flex;gap:8px;margin:14px 0;overflow:auto}.btfo-community-tabs a,.btfo-community-pagination a{padding:9px 13px;border:1px solid var(--bc-line);border-radius:9px;color:#c4d8df;text-decoration:none;white-space:nowrap}.btfo-community-tabs a.is-active,.btfo-community-pagination a.is-active{background:#164338;border-color:#278b6d;color:#9aefd4}.btfo-community-filter{display:grid;grid-template-columns:1fr minmax(130px,220px) auto;align-items:end;gap:10px}.btfo-community-post{padding:17px}.btfo-community-post.is-pending{border-color:#d5a84b}.btfo-community-post>header{display:flex;align-items:center;justify-content:space-between;gap:12px}.btfo-community-author{display:flex;align-items:center;gap:10px;color:#eaf4f7;text-decoration:none}.btfo-community-author>span:last-child{display:grid;gap:3px}.btfo-community-author small{max-width:420px;color:var(--bc-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.btfo-community-avatar{display:inline-grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:50%;background:#1b554b;color:#abf2db;font-size:17px;font-weight:800}.btfo-community-symbol{padding:6px 9px;border:1px solid var(--bc-line);border-radius:8px;color:#a6e9d5;text-decoration:none}.btfo-community-post h3{margin:15px 0 8px}.btfo-community-body,.btfo-community-comment p{white-space:normal;overflow-wrap:anywhere;line-height:1.6;color:#d9e7eb}.btfo-community-chart{display:block;width:min(100%,900px);height:auto;margin:12px auto;border-radius:10px;background:#0b1821}.btfo-community-pending{padding:8px 10px;border-radius:8px;background:#5b471d;color:#ffdf94;font-size:12px}.btfo-community-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:13px}.btfo-community-actions form{display:inline-flex;align-items:center;gap:5px}.btfo-community-actions a,.btfo-community-comment button{color:#8ee5ca;text-decoration:none}.btfo-community-report select{width:auto;min-width:115px}.btfo-community-comments{margin-top:13px;padding-top:10px;border-top:1px solid var(--bc-line)}.btfo-community-comments summary{cursor:pointer;color:#b9d2dc;font-weight:700}.btfo-community-comment{margin:10px 0;padding:11px;border-radius:9px;background:var(--bc-panel2)}.btfo-community-comment p{margin:5px 0}.btfo-community-comment small{color:var(--bc-muted)}.btfo-community-comment form{display:inline-block;margin:4px 5px 0 0}.btfo-community-comment form button{min-height:28px;padding:4px 8px;background:transparent;border-color:transparent;font-size:11px}.btfo-community-comment-form{display:grid;gap:8px;margin-top:12px}.btfo-community-profile{display:grid;justify-items:start;gap:8px}.btfo-community-profile h3,.btfo-community-profile p{margin:2px 0}.btfo-community-pagination{display:flex;justify-content:center;gap:7px;margin:18px}.btfo-community-notice{padding:10px 13px;border:1px solid #328266;border-radius:9px;background:#12382f;color:#a8eed4}.btfo-community-post.is-highlighted{outline:3px solid #42deb0;outline-offset:3px;transition:outline-color .4s}
@media(max-width:700px){.btfo-community-hero{align-items:flex-start;flex-direction:column;padding:17px}.btfo-community-filter{grid-template-columns:1fr}.btfo-community-author small{max-width:230px}.btfo-community-report select{min-width:0}.btfo-community-post{padding:13px}}
/* FVT #25: private member messaging */
.btfo-dm{--dm-panel:#102938;--dm-panel2:#142f3e;--dm-line:#294a59;--dm-muted:#9eb4bf;display:grid;gap:14px;margin:14px 0;padding:16px;border:1px solid var(--dm-line);border-radius:15px;background:#0c202b;color:#e8f2f5}.btfo-dm-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.btfo-dm-heading span:first-child{color:#77d9ba;font-size:10px;letter-spacing:.12em}.btfo-dm-heading h3{margin:5px 0;font-size:20px}.btfo-dm-heading p,.btfo-dm-privacy,.btfo-dm-poll-note{margin:4px 0;color:var(--dm-muted);font-size:12px;line-height:1.5}.btfo-dm-count{padding:6px 9px;border:1px solid var(--dm-line);border-radius:99px;color:#bcd0d8;font-size:11px}.btfo-dm-filter{display:flex;align-items:end;gap:12px}.btfo-dm-filter>label:first-child{display:grid;flex:1;gap:5px;color:#c4d9df;font-size:12px}.btfo-dm-filter input[type=search]{min-height:38px;padding:8px 10px;border:1px solid var(--dm-line);border-radius:8px;background:#0b1f2a;color:#edf5f7}.btfo-dm-filter>label:last-child{display:flex;align-items:center;gap:6px;color:var(--dm-muted);font-size:12px}.btfo-dm-filter input[type=checkbox]{accent-color:#36c99b}.btfo-dm-layout{display:grid;grid-template-columns:minmax(220px,.36fr) minmax(0,1fr);min-height:380px;overflow:hidden;border:1px solid var(--dm-line);border-radius:12px;background:#0e2430}.btfo-dm-inbox{display:flex;flex-direction:column;gap:4px;max-height:650px;overflow:auto;padding:8px;border-right:1px solid var(--dm-line)}.btfo-dm-inbox-item{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px;border-radius:9px;color:#e6f1f4;text-decoration:none}.btfo-dm-inbox-item:hover,.btfo-dm-inbox-item.is-current{background:#193849}.btfo-dm-inbox-item>span{display:grid;gap:4px;min-width:0}.btfo-dm-inbox-item strong,.btfo-dm-inbox-item small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.btfo-dm-inbox-item small{color:var(--dm-muted);font-size:11px}.btfo-dm-inbox-item>b{display:grid;place-items:center;min-width:22px;height:22px;border-radius:50%;background:#1e755f;color:white;font-size:11px}.btfo-dm-conversation{display:flex;flex-direction:column;min-width:0;min-height:380px;padding:12px}.btfo-dm-thread-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:10px;border-bottom:1px solid var(--dm-line);font-size:12px}.btfo-dm-thread-head a{color:#8fe5c9;text-decoration:none}.btfo-dm-thread-head span{color:var(--dm-muted)}.btfo-dm-transcript{display:flex;flex:1;flex-direction:column;gap:9px;max-height:390px;min-height:180px;overflow:auto;padding:12px 2px;scroll-behavior:smooth}.btfo-dm-message{max-width:min(88%,620px);padding:10px 12px;border:1px solid var(--dm-line);border-radius:11px;background:var(--dm-panel2)}.btfo-dm-message.is-mine{align-self:flex-end;border-color:#26745f;background:#124136}.btfo-dm-message header{display:flex;align-items:center;justify-content:space-between;gap:15px;color:#bfd0d6;font-size:11px}.btfo-dm-message time,.btfo-dm-message>small{color:var(--dm-muted);font-size:10px}.btfo-dm-message p{margin:8px 0;white-space:normal;overflow-wrap:anywhere;line-height:1.55}.btfo-dm-compose{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;padding-top:10px;border-top:1px solid var(--dm-line)}.btfo-dm-compose textarea,.btfo-dm-start textarea,.btfo-dm-report textarea,.btfo-dm-report select{box-sizing:border-box;width:100%;min-height:42px;padding:9px 10px;border:1px solid #3a5967;border-radius:8px;background:#0c1e29;color:#edf5f7}.btfo-dm button,.btfo-dm-start button,.btfo-dm-report button,.btfo-dm-controls button,.btfo-dm-request-actions button{min-height:36px;padding:7px 11px;border:1px solid #318c70;border-radius:8px;background:#144337;color:#91e7cb;font-weight:700;cursor:pointer}.btfo-dm-controls,.btfo-dm-request-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.btfo-dm-controls{padding-top:8px;border-top:1px solid var(--dm-line)}.btfo-dm-request-actions{padding:10px;border:1px solid #806b38;border-radius:9px;background:#3a321d}.btfo-dm-request-actions p{flex:1 1 100%;margin:0;color:#f4dfa5;font-size:12px}.btfo-dm-request-waiting{padding:9px;border-radius:8px;background:#30301f;color:#e8db9d;font-size:12px}.btfo-dm-report{margin-top:7px;font-size:11px}.btfo-dm-report summary{color:#e2b6ad;cursor:pointer}.btfo-dm-report form,.btfo-dm-start form{display:grid;gap:8px;margin-top:7px}.btfo-dm-report label,.btfo-dm-start label{display:grid;gap:5px;color:#d7e7ec}.btfo-dm-start{width:100%;margin-top:8px}.btfo-dm-start summary{color:#75dcbc;cursor:pointer;font-size:12px;font-weight:700}.btfo-dm-start small{color:var(--dm-muted);font-size:10px}.btfo-dm-empty{margin:auto;color:var(--dm-muted);font-size:13px;text-align:center}.btfo-dm-admin-report{margin:16px 0;padding:16px;border:1px solid #d5dce1;border-radius:11px;background:#fff}.btfo-dm-admin-report header{display:flex;justify-content:space-between;gap:12px}.btfo-dm-admin-report small{color:#637282}.btfo-dm-admin-report blockquote{margin:10px 0;padding:12px;border-left:3px solid #1f8064;background:#f4f8f7;color:#263d47}.btfo-dm-admin-report form{display:inline-flex;margin:4px 6px 0 0}.btfo-community-private-note{color:#beccd1;font-size:12px}
@media(max-width:700px){.btfo-dm{padding:11px}.btfo-dm-filter{align-items:stretch;flex-direction:column;gap:8px}.btfo-dm-layout{grid-template-columns:1fr;min-height:0}.btfo-dm-inbox{max-height:220px;border-right:0;border-bottom:1px solid var(--dm-line)}.btfo-dm-conversation{min-height:300px;padding:10px}.btfo-dm-message{max-width:95%}.btfo-dm-compose{grid-template-columns:1fr}.btfo-dm-compose button{justify-self:end}}

/* 8.192.0 · chart study panels and private research notebook */
.btfo-chart-replay{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:10px 0;padding:10px 12px;border:1px solid #2b4053;border-radius:12px;background:#101c2b;color:#dce8f2}
.btfo-chart-replay[hidden]{display:none}.btfo-chart-replay strong{font-size:12px;margin-right:4px}.btfo-chart-replay button{min-height:34px;padding:6px 10px;border:1px solid #3b5368;border-radius:8px;background:#17283a;color:#e6f0f7;cursor:pointer}.btfo-chart-replay input[type=range]{flex:1;min-width:120px;accent-color:#42d6a1}.btfo-chart-replay time{min-width:78px;color:#a9bdca;font-size:12px}
.btfo-chart-study-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}.btfo-chart-study-grid article{min-width:0;padding:10px 12px;border:1px solid #293e51;border-radius:11px;background:#0d1926}.btfo-chart-study-grid article[hidden]{display:none}.btfo-chart-study-grid header{display:flex;justify-content:space-between;gap:8px;color:#a9bdca;font-size:11px}.btfo-chart-study-grid header span{color:#e4edf5;font-variant-numeric:tabular-nums}.btfo-chart-study-grid canvas{display:block;width:100%;height:52px;margin-top:5px}
.btfo-study-notebook{margin:14px 0;padding:12px 14px;border:1px solid #2d465a;border-radius:12px;background:#101c2b;color:#e4edf5}.btfo-study-notebook>summary{cursor:pointer;font-weight:750}.btfo-study-notebook>p{color:#9fb2c2;font-size:12px}.btfo-study-notebook form{display:grid;gap:9px}.btfo-study-notebook form label{display:grid;gap:5px;font-size:12px;color:#c3d0db}.btfo-study-notebook input,.btfo-study-notebook textarea{width:100%;padding:9px 11px;border:1px solid #3b5266;border-radius:8px;background:#0a1420;color:#f2f6fa}.btfo-study-notebook button{min-height:35px;width:max-content;padding:7px 11px;border:1px solid #33596b;border-radius:8px;background:#163647;color:#e9f6fb;cursor:pointer}.btfo-study-list{display:grid;gap:8px;margin-top:10px}.btfo-study-list article{padding:10px;border:1px solid #293e51;border-radius:9px;background:#0c1722}.btfo-study-list article header{display:grid;gap:3px}.btfo-study-list small{color:#92a9b8}.btfo-study-list article p{color:#c7d5dd;white-space:pre-wrap}.btfo-study-list article button+button{margin-left:6px}.btfo-study-notebook [data-study-status]{min-height:1em;color:#84e1bf;font-size:12px}
/* Member-owned, server-saved home workspaces */
.btfo-home-workspace-controls{display:flex;align-items:end;gap:10px;padding:12px 0;border-bottom:1px solid #d9e0e5}.btfo-home-workspace-controls label{display:grid;gap:5px;font-size:12px;font-weight:700}.btfo-home-workspace-controls select{min-height:38px;padding:7px 10px}.btfo-home-workspace-controls button{min-height:38px;padding:7px 12px}.btfo-home-card{position:relative}.btfo-home-drag{position:absolute;z-index:2;top:7px;right:7px;width:30px;height:30px;border:1px solid #4c5b68;border-radius:8px;background:#111d29;color:#c4d3de;cursor:grab}.btfo-home-drag:active{cursor:grabbing}.btfo-home-grid [data-home-card][hidden]{display:none}
@media(max-width:720px){.btfo-chart-study-grid{grid-template-columns:1fr}.btfo-chart-replay{align-items:stretch}.btfo-chart-replay strong{width:100%}.btfo-chart-replay input[type=range]{order:3;flex-basis:100%}.btfo-home-workspace-controls{align-items:stretch;flex-direction:column}.btfo-home-workspace-controls label,.btfo-home-workspace-controls button{width:100%}}

/* 8.193.0 — persistent, member-owned Market Center widget terminal */
#btfo-app .btfo-market-terminal-controls{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:12px 0 16px;padding:11px 12px;border:1px solid #2a3c4e;border-radius:11px;background:#101a27}
#btfo-app .btfo-market-terminal-controls label{display:grid;gap:5px;color:#b6c6d5;font-size:12px;font-weight:700}
#btfo-app .btfo-market-terminal-controls select,#btfo-app .btfo-market-terminal-controls button{min-height:38px;padding:7px 11px;border:1px solid #40546a;border-radius:8px;background:#142337;color:#eef4fa}
#btfo-app [data-market-terminal-status]{min-height:1em;color:#91d9ba;font-size:12px}
#btfo-app .btfo-market-terminal-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:14px;align-items:start}
#btfo-app .btfo-market-terminal-widget{position:relative;grid-column:span 6;min-width:0;padding:10px;border:1px solid #273b4d;border-radius:13px;background:#0d1824}
#btfo-app .btfo-market-terminal-widget.btfo-terminal-span-12{grid-column:span 12}
#btfo-app .btfo-market-terminal-widget[hidden]{display:none!important}
#btfo-app .btfo-market-widget-body{min-width:0;padding-top:25px}
#btfo-app .btfo-market-widget-drag{position:absolute;z-index:3;top:8px;right:8px;width:29px;height:27px;border:1px solid #3c5368;border-radius:7px;background:#142438;color:#bdd0df;cursor:grab;touch-action:none}
#btfo-app .btfo-market-widget-drag:active{cursor:grabbing}
#btfo-app .btfo-market-terminal-widget[data-market-widget="tickers"] .btfo-market-widget-body{padding-top:0}
#btfo-app .btfo-market-ticker-grid .btfo-auto-tickers{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:8px}
#btfo-app .btfo-market-terminal-editor{width:min(640px,calc(100% - 24px));max-height:86vh;padding:20px;border:1px solid #354a5d;border-radius:15px;background:#101a27;color:#eaf1f6}
#btfo-app .btfo-market-terminal-editor::backdrop{background:rgba(2,8,15,.74)}
#btfo-app .btfo-market-terminal-editor>header{display:flex;align-items:center;justify-content:space-between;gap:12px}
#btfo-app .btfo-market-terminal-editor h3{margin:0;font-size:19px}
#btfo-app .btfo-market-terminal-editor>p{color:#a7b6c3;font-size:13px}
#btfo-app .btfo-market-terminal-widget-list{display:grid;gap:7px}
#btfo-app .btfo-market-terminal-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 10px;border:1px solid #2a3d50;border-radius:9px;background:#0d1722}
#btfo-app .btfo-market-terminal-row label{display:flex;align-items:center;gap:8px;color:#e3ebf2;font-size:13px}
#btfo-app .btfo-market-terminal-row>div{display:flex;gap:5px}
#btfo-app .btfo-market-terminal-row button,#btfo-app .btfo-market-terminal-editor footer button,#btfo-app .btfo-market-terminal-editor>header button{min-width:34px;min-height:34px;padding:5px 9px;border:1px solid #40566b;border-radius:7px;background:#17283a;color:#eaf1f6;cursor:pointer}
#btfo-app .btfo-market-terminal-row button:disabled{opacity:.4;cursor:not-allowed}
#btfo-app .btfo-market-terminal-editor footer{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:14px;padding-top:12px;border-top:1px solid #2b3e51}
#btfo-app .btfo-market-terminal-editor footer [data-market-terminal-save]{background:#d8e8ef;color:#0d1923;font-weight:750}
@media(max-width:760px){#btfo-app .btfo-market-terminal-grid{grid-template-columns:minmax(0,1fr)}#btfo-app .btfo-market-terminal-widget,#btfo-app .btfo-market-terminal-widget.btfo-terminal-span-12{grid-column:1}#btfo-app .btfo-market-terminal-controls{align-items:stretch;flex-direction:column}#btfo-app .btfo-market-terminal-controls label,#btfo-app .btfo-market-terminal-controls select,#btfo-app .btfo-market-terminal-controls button{width:100%}#btfo-app .btfo-market-terminal-editor{padding:14px}}
#btfo-app .btfo-market-terminal-empty{margin:14px 0;padding:14px;border:1px dashed #465b6e;border-radius:10px;color:#afbfcc}#btfo-app .btfo-market-terminal-empty[hidden]{display:none}#btfo-app .btfo-market-terminal-empty button{margin-left:8px;padding:7px 11px;border:1px solid #40566b;border-radius:7px;background:#17283a;color:#eaf1f6;cursor:pointer}
#btfo-app .btfo-market-ticker-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:2px 36px 9px 2px;color:#e4edf5}.btfo-market-ticker-heading>div{display:grid;gap:3px}.btfo-market-ticker-heading small{color:#9fb0bf;font-size:11px}.btfo-market-ticker-heading button{min-height:32px;padding:6px 10px;border:1px solid #3d5368;border-radius:8px;background:#142438;color:#eaf1f6;cursor:pointer}
@media(max-width:600px){#btfo-app .btfo-market-ticker-heading{align-items:stretch;flex-direction:column}}
@media(max-width:420px){#btfo-app .btfo-feed-footer{min-width:0;gap:8px}#btfo-app .btfo-feed-more{box-sizing:border-box;min-width:0;max-width:100%;padding-inline:10px;white-space:normal;overflow-wrap:anywhere;text-align:center}}

/* 8.197 dashboard shell — collapsible desktop navigation and high-contrast dark workspace */
#btfo-app.btfo-app{--bt-bg:#0b1119;--bt-side:#101923;--bt-card:#141f2b;--bt-card2:#192838;--bt-line:#2b3d4f;--bt-text:#f1f5f9;--bt-muted:#b0becc;--bt-green:#56dfb1;--bt-red:#ff8c9c;--bt-shadow:0 12px 34px #0003;grid-template-columns:230px minmax(0,1fr);transition:grid-template-columns .22s ease}
#btfo-app.btfo-app.btfo-sidebar-collapsed{grid-template-columns:76px minmax(0,1fr)}
#btfo-app .btfo-sidebar{position:sticky;top:0;align-self:start;height:calc(100dvh - 34px);max-height:calc(100dvh - 34px);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#34495d transparent;padding:18px 10px}
#btfo-app .btfo-brand{position:relative;min-height:54px;justify-content:flex-start;padding:4px 6px 18px;gap:10px}
#btfo-app .btfo-brand>span:nth-child(2){min-width:0}
#btfo-app .btfo-brand-mark{flex:0 0 40px}
#btfo-app .btfo-sidebar-toggle{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;margin-left:auto;padding:0;border:1px solid #3a4f62;border-radius:9px;background:#192736;color:#dbe7f0;font-size:17px;line-height:1;cursor:pointer;transition:background .16s,border-color .16s,transform .16s}
#btfo-app .btfo-sidebar-toggle:hover{background:#213448;border-color:#5a7891}
#btfo-app .btfo-sidebar-toggle:focus-visible{outline:3px solid #6de6bf;outline-offset:2px}
#btfo-app .btfo-nav{gap:4px}
#btfo-app .btfo-nav button{min-height:43px;padding:9px 11px;gap:11px;border-radius:10px;color:#c1ceda;transition:background .16s,border-color .16s,color .16s,transform .16s}
#btfo-app .btfo-nav button:hover{background:#1b2b3a;border-color:#2a4053;color:#f3f7fb;transform:translateX(1px)}
#btfo-app .btfo-nav button.active{background:linear-gradient(90deg,#56dfb126,#56dfb10b);border-color:#56dfb14d;color:#effff8;box-shadow:inset 3px 0 #56dfb1}
#btfo-app .btfo-nav-icon{flex:0 0 23px;color:#71e4bd}
#btfo-app .btfo-main{background:var(--bt-bg)}
#btfo-app .btfo-top{position:relative;min-height:62px;padding-bottom:14px;border-color:#2b3d4f}
#btfo-app .btfo-top h1{color:#f5f8fb}
#btfo-app .btfo-top-actions button{min-height:40px;border:1px solid #2f4355;border-radius:10px;background:#14202c;color:#e0e9f0;transition:background .16s,border-color .16s,transform .16s}
#btfo-app .btfo-top-actions button:hover{background:#1b2b3a;border-color:#4a667b;transform:translateY(-1px)}
#btfo-app :is(.btfo-card,.btfo-hero,.btfo-budget-workspace,.btfo-watch-empty,.btfo-study-notebook){box-shadow:0 8px 28px #00000018}
#btfo-app .btfo-card{border-color:#2c3e50}
#btfo-app :is(button,input,select,textarea,a):focus-visible{outline:3px solid #7ce8c7!important;outline-offset:2px!important}
#btfo-app.btfo-light{--bt-bg:#f4f7fb;--bt-side:#fff;--bt-card:#fff;--bt-card2:#eef3f8;--bt-line:#d5e0e9;--bt-text:#172b3d;--bt-muted:#52697d;--bt-green:#087e62;--bt-red:#bd344f;--bt-shadow:0 8px 22px #19395212}
#btfo-app.btfo-light .btfo-sidebar{box-shadow:4px 0 18px #203b5210}
#btfo-app.btfo-light .btfo-nav button{color:#41596e}
#btfo-app.btfo-light .btfo-nav button:hover{background:#edf4f7;border-color:#d4e4e2;color:#163548}
#btfo-app.btfo-light .btfo-nav button.active{background:linear-gradient(90deg,#087e6217,#087e6208);border-color:#087e6240;color:#123b31;box-shadow:inset 3px 0 #087e62}
#btfo-app.btfo-light .btfo-top h1{color:#183247}
#btfo-app.btfo-light .btfo-top-actions button{background:#fff;color:#28455a;border-color:#d4e0e8}
#btfo-app.btfo-light .btfo-sidebar-toggle{background:#f2f6f9;color:#28455a;border-color:#d1dce5}
#btfo-app.btfo-light .btfo-card{box-shadow:0 8px 24px #1f3b5210}
#btfo-app.btfo-sidebar-collapsed .btfo-sidebar{padding-inline:8px}
#btfo-app.btfo-sidebar-collapsed .btfo-brand{justify-content:center;padding-inline:0;gap:0}
#btfo-app.btfo-sidebar-collapsed .btfo-brand>span:nth-child(2){display:none}
#btfo-app.btfo-sidebar-collapsed .btfo-sidebar-toggle{position:absolute;right:-1px;top:48px;width:27px;height:27px;min-height:27px;flex-basis:27px;font-size:15px;border-radius:8px}
#btfo-app.btfo-sidebar-collapsed .btfo-brand-mark{width:38px;height:38px;flex-basis:38px}
#btfo-app.btfo-sidebar-collapsed .btfo-nav button{justify-content:center;gap:0;padding:9px 6px}
#btfo-app.btfo-sidebar-collapsed .btfo-nav button>span:not(.btfo-nav-icon){display:none}
#btfo-app.btfo-sidebar-collapsed .btfo-nav-icon{flex-basis:auto;width:auto;font-size:21px}
#btfo-app.btfo-sidebar-collapsed .btfo-side-foot{padding:8px;margin-top:auto}
#btfo-app.btfo-sidebar-collapsed .btfo-side-foot .btfo-metahol-link>span:last-child{display:none}
#btfo-app.btfo-sidebar-collapsed .btfo-metahol-link{justify-content:center;padding:8px}
#btfo-app.btfo-sidebar-collapsed .btfo-side-foot .btfo-metahol-symbol{margin:0}
@media(max-width:800px){
 #btfo-app.btfo-app,#btfo-app.btfo-app.btfo-sidebar-collapsed{display:block;grid-template-columns:minmax(0,1fr);transition:none}
 #btfo-app .btfo-sidebar{display:none!important}
 #btfo-app .btfo-sidebar-toggle{display:none!important}
}
@media(prefers-reduced-motion:reduce){#btfo-app.btfo-app,#btfo-app .btfo-sidebar,#btfo-app .btfo-nav button,#btfo-app .btfo-top-actions button{transition:none!important}}

/* 8.197 dashboard finishing pass: real empty states, chart loading and responsive calendar filters */
#btfo-app .btfo-empty-state{box-sizing:border-box;display:flex;align-items:center;gap:14px;min-width:0;margin:12px 0;padding:18px;border:1px dashed var(--bt-line);border-radius:13px;background:linear-gradient(120deg,color-mix(in srgb,var(--bt-card2) 82%,transparent),var(--bt-card));color:var(--bt-text)}
#btfo-app .btfo-empty-state[hidden]{display:none!important}
#btfo-app .btfo-empty-state-icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:12px;background:color-mix(in srgb,var(--bt-green) 15%,var(--bt-card));color:var(--bt-green);font-size:21px}
#btfo-app .btfo-empty-state>div,#btfo-app .btfo-empty-state>span:not(.btfo-empty-state-icon){min-width:0;flex:1}
#btfo-app .btfo-empty-state strong{display:block;color:var(--bt-text);font-size:14px;line-height:1.45}
#btfo-app .btfo-empty-state p,#btfo-app .btfo-empty-state small{display:block;margin:4px 0 0;color:var(--bt-muted);font-size:12px;line-height:1.6}
#btfo-app .btfo-empty-state button{flex:0 0 auto;min-height:40px;padding:9px 13px;border:1px solid color-mix(in srgb,var(--bt-green) 45%,var(--bt-line));border-radius:9px;background:color-mix(in srgb,var(--bt-green) 15%,var(--bt-card));color:var(--bt-text);font:inherit;font-size:12px;font-weight:700;cursor:pointer}
#btfo-app .btfo-empty-state button:hover{border-color:var(--bt-green);background:color-mix(in srgb,var(--bt-green) 22%,var(--bt-card))}
#btfo-app .btfo-empty-state-compact{min-height:44px;margin:8px 0;padding:10px 12px;gap:10px;border-radius:9px}
#btfo-app .btfo-empty-state-compact .btfo-empty-state-icon{flex-basis:30px;width:30px;height:30px;font-size:16px}
#btfo-app .btfo-watch-filter-empty{align-items:flex-start}
#btfo-app .btfo-watch-filter-empty[hidden]{display:none!important}
#btfo-app .btfo-chart-subtitle{margin:5px 0 0;color:var(--bt-muted);font-size:12px;line-height:1.55}
#btfo-app .btfo-ohlcv-controls{display:flex;align-items:end;gap:9px;flex-wrap:wrap;margin:14px 0 10px}
#btfo-app .btfo-ohlcv-controls>label{display:flex;align-items:center;gap:6px;min-height:38px;color:var(--bt-muted);font-size:12px}
#btfo-app .btfo-ohlcv-controls>label:has(select){align-items:stretch;flex-direction:column;gap:4px}
#btfo-app .btfo-ohlcv-controls select,#btfo-app .btfo-ohlcv-controls input[type=checkbox]{accent-color:var(--bt-green)}
#btfo-app .btfo-ohlcv-controls select{min-height:36px;padding:6px 9px;border:1px solid var(--bt-line);border-radius:8px;background:var(--bt-card2);color:var(--bt-text)}
#btfo-app .btfo-chart-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:8px 0}
#btfo-app .btfo-chart-toolbar>[data-chart-status]{flex:1 1 230px;min-width:0;color:var(--bt-muted);font-size:12px}
#btfo-app .btfo-chart-toolbar button,#btfo-app [data-chart-retry],#btfo-app .btfo-chart-replay button{min-height:36px;padding:7px 10px;border:1px solid var(--bt-line);border-radius:8px;background:var(--bt-card2);color:var(--bt-text);font:inherit;font-size:12px;cursor:pointer}
#btfo-app .btfo-chart-toolbar button:disabled,#btfo-app .btfo-chart-replay button:disabled{opacity:.5;cursor:not-allowed}
#btfo-app .btfo-chart-loading{position:relative;display:flex;align-items:end;gap:8px;height:86px;margin:8px 0;padding:12px 14px;overflow:hidden;border:1px solid var(--bt-line);border-radius:10px;background:linear-gradient(110deg,var(--bt-card2),var(--bt-card),var(--bt-card2));background-size:220% 100%;animation:btfo-chart-shimmer 1.45s linear infinite}
#btfo-app .btfo-chart-loading[hidden]{display:none!important}
#btfo-app .btfo-chart-loading span{display:block;flex:1;max-width:34px;border-radius:4px 4px 2px 2px;background:color-mix(in srgb,var(--bt-green) 58%,var(--bt-card));height:38%}
#btfo-app .btfo-chart-loading span:nth-child(2){height:66%}#btfo-app .btfo-chart-loading span:nth-child(3){height:48%}#btfo-app .btfo-chart-loading span:nth-child(4){height:82%}#btfo-app .btfo-chart-loading span:nth-child(5){height:58%}
#btfo-app .btfo-chart-loading i{position:absolute;right:12px;top:12px;width:8px;height:8px;border-radius:50%;background:var(--bt-green);box-shadow:0 0 0 5px color-mix(in srgb,var(--bt-green) 15%,transparent)}
@keyframes btfo-chart-shimmer{to{background-position:-220% 0}}
#btfo-app .btfo-ohlcv-stage{position:relative;width:100%;height:clamp(300px,48vw,520px);min-height:260px;overflow:hidden;border:1px solid var(--bt-line);border-radius:11px;background:linear-gradient(180deg,var(--bt-card),var(--bt-bg))}
#btfo-app .btfo-ohlcv-stage>canvas[data-chart-canvas]{display:block;width:100%;height:100%;touch-action:pan-y;opacity:1}
#btfo-app .btfo-ohlcv.btfo-chart-reveal .btfo-ohlcv-stage>canvas[data-chart-canvas]{animation:btfo-chart-enter .42s cubic-bezier(.2,.7,.2,1) both}
@keyframes btfo-chart-enter{from{opacity:.3;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
#btfo-app .btfo-ohlcv-detail{min-height:20px;margin:7px 2px;color:var(--bt-muted);font-size:12px}
#btfo-app .btfo-chart-replay{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0;padding:10px;border:1px solid var(--bt-line);border-radius:10px;background:var(--bt-card2)}
#btfo-app .btfo-chart-replay[hidden]{display:none!important}#btfo-app .btfo-chart-replay strong{margin-right:auto;color:var(--bt-text);font-size:12px}
#btfo-app .btfo-chart-replay input[type=range]{flex:1 1 160px;accent-color:var(--bt-green)}#btfo-app .btfo-chart-replay time{color:var(--bt-muted);font-size:12px;font-variant-numeric:tabular-nums}
#btfo-app .btfo-chart-study-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:10px 0}
#btfo-app .btfo-chart-study-grid article{min-width:0;padding:9px;border:1px solid var(--bt-line);border-radius:9px;background:var(--bt-card2)}
#btfo-app .btfo-chart-study-grid article[hidden]{display:none!important}#btfo-app .btfo-chart-study-grid article header{display:flex;justify-content:space-between;gap:8px;color:var(--bt-muted);font-size:11px}
#btfo-app .btfo-chart-study-grid canvas{display:block;width:100%;height:52px}
#btfo-app .btfo-drawing-panel,#btfo-app .btfo-study-notebook{margin:10px 0;padding:11px;border:1px solid var(--bt-line);border-radius:10px;background:var(--bt-card)}
#btfo-app .btfo-drawing-panel summary,#btfo-app .btfo-study-notebook summary{color:var(--bt-text);font-size:13px;font-weight:700;cursor:pointer}
#btfo-app .btfo-drawing-tools{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding-top:10px}
#btfo-app .btfo-drawing-tools button,#btfo-app .btfo-study-notebook button,#btfo-app [data-chart-share-form] button{min-height:36px;padding:7px 10px;border:1px solid var(--bt-line);border-radius:8px;background:var(--bt-card2);color:var(--bt-text);font:inherit;font-size:12px;cursor:pointer}
#btfo-app .btfo-drawing-tools button[aria-pressed=true]{border-color:var(--bt-green);color:var(--bt-green)}
#btfo-app .btfo-drawing-tools label,#btfo-app .btfo-study-notebook label,#btfo-app [data-chart-share-form] label{display:grid;gap:4px;color:var(--bt-muted);font-size:11px}
#btfo-app .btfo-drawing-tools input,#btfo-app .btfo-drawing-tools select,#btfo-app .btfo-study-notebook input,#btfo-app .btfo-study-notebook textarea,#btfo-app [data-chart-share-form] textarea{max-width:100%;padding:7px 9px;border:1px solid var(--bt-line);border-radius:7px;background:var(--bt-card2);color:var(--bt-text);font:inherit}
#btfo-app .btfo-study-notebook form,#btfo-app [data-chart-share-form]{display:grid;gap:9px;margin-top:10px}
#btfo-app .btfo-study-notebook form>label{margin:5px 0}
#btfo-app [data-chart-share-form][hidden]{display:none!important}
#btfo-app .btfo-chart-footnote{margin:12px 0 0;color:var(--bt-muted);font-size:11px;line-height:1.55}
.btfo-market-calendar .btfo-market-filter{align-items:end;gap:9px;flex-wrap:wrap}
.btfo-market-calendar .btfo-market-filter label{flex:1 1 190px;min-width:150px}
.btfo-market-calendar .btfo-market-filter label:first-child{flex:2 1 230px}
.btfo-market-calendar .btfo-market-filter input[type=date]{min-width:0;min-height:40px;padding:7px 8px;font-size:12px}
.btfo-market-calendar .btfo-market-filter [data-market-reset-filters]{min-height:40px;padding:8px 11px;border:1px solid var(--bm-border);border-radius:9px;background:var(--bm-panel2);color:var(--bm-ink);font-size:12px;cursor:pointer}
.btfo-market-calendar [data-market-filter-status]{min-height:0;margin:0;color:#ffb4a8;font-size:12px}
.btfo-market-calendar [data-market-filter-status]:empty{display:none}
@media(max-width:760px){#btfo-app .btfo-empty-state{align-items:flex-start;flex-wrap:wrap;padding:14px}#btfo-app .btfo-empty-state>div{flex:1 1 calc(100% - 58px)}#btfo-app .btfo-empty-state button{margin-left:56px}#btfo-app .btfo-chart-study-grid{grid-template-columns:1fr}#btfo-app .btfo-ohlcv-stage{height:clamp(260px,70vw,400px)}#btfo-app .btfo-ohlcv-controls{align-items:stretch}#btfo-app .btfo-ohlcv-controls>label:has(select){flex:1 1 130px}#btfo-app .btfo-chart-toolbar>[data-chart-status]{flex-basis:100%}.btfo-market-calendar .btfo-market-filter{align-items:stretch}.btfo-market-calendar .btfo-market-filter label,.btfo-market-calendar .btfo-market-filter label:first-child{box-sizing:border-box;flex:1 1 100%;width:100%;min-width:0}.btfo-market-calendar .btfo-market-filter [data-market-count]{margin:0}}
@media(prefers-reduced-motion:reduce){#btfo-app .btfo-chart-loading{animation:none;background:var(--bt-card2)}#btfo-app .btfo-ohlcv.btfo-chart-reveal .btfo-ohlcv-stage>canvas[data-chart-canvas]{animation:none}}

/* FVT #24 editorial feed: readable source links, document metadata and result states */
#btfo-app .btfo-editorial-column[aria-busy=true] .btfo-editorial-loading{min-height:44px;padding:12px;border:1px solid var(--bt-line);border-radius:9px;background:var(--bt-card);color:var(--bt-muted)}
#btfo-app .btfo-editorial-column[aria-busy=true] .btfo-editorial-loading::before{content:"";display:inline-block;width:8px;height:8px;margin-right:9px;border-radius:50%;background:var(--bt-green);box-shadow:0 0 0 4px color-mix(in srgb,var(--bt-green) 16%,transparent);vertical-align:middle}
#btfo-app .btfo-editorial-empty>a,#btfo-app .btfo-editorial-error button{flex:0 0 auto;align-self:center;padding:8px 10px;border:1px solid var(--bt-line);border-radius:8px;background:var(--bt-card2);color:var(--bt-text);font-size:12px;text-decoration:none}
#btfo-app .btfo-editorial-attachments{display:flex;gap:7px;flex-wrap:wrap;margin:8px 0 0}
#btfo-app .btfo-editorial-attachments :is(a,span){display:inline-flex;align-items:center;gap:5px;max-width:100%;padding:6px 8px;border:1px solid var(--bt-line);border-radius:7px;background:var(--bt-card);color:var(--bt-muted)!important;font-size:11px;line-height:1.45;overflow-wrap:anywhere}
#btfo-app .btfo-editorial-attachments a:hover,#btfo-app .btfo-editorial-source-link:hover{border-color:var(--bt-green);color:var(--bt-green)!important}
#btfo-app .btfo-editorial-attachments small{display:inline;color:var(--bt-muted);font-size:10px}
#btfo-app .btfo-feed-item small .btfo-editorial-source-link{display:inline;color:var(--bt-green)!important;font-size:11px;text-decoration:underline;text-underline-offset:2px}
#btfo-app .btfo-editorial-search-field{display:grid;align-content:start;gap:6px;min-width:0}
@media(max-width:600px){#btfo-app .btfo-editorial-empty{align-items:flex-start;flex-wrap:wrap}#btfo-app .btfo-editorial-empty>a{margin-left:40px}#btfo-app .btfo-editorial-error button{margin-left:40px}}

/* FVT #15: local TCMB FX archive workflow; no client-side quote fetching. */
#btfo-app .btfo-fx-history{margin-top:20px;padding-top:16px;border-top:1px solid var(--bt-line)}
#btfo-app .btfo-fx-history-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:12px}
#btfo-app .btfo-fx-history-heading h3,#btfo-app .btfo-fx-commodities h3{margin:0;color:var(--bt-text);font-size:17px}
#btfo-app .btfo-fx-history-heading p,#btfo-app .btfo-fx-commodities p{margin:5px 0 0;color:var(--bt-muted);font-size:12px;line-height:1.55}
#btfo-app .btfo-fx-history-heading [data-fx-history-count]{color:var(--bt-muted);font-size:12px;white-space:nowrap}
#btfo-app .btfo-fx-filter{display:grid;grid-template-columns:minmax(180px,1.5fr) repeat(4,minmax(130px,1fr)) auto auto;align-items:end;gap:10px;margin:12px 0 14px}
#btfo-app .btfo-fx-filter label{display:grid;gap:5px;min-width:0;color:var(--bt-muted);font-size:11px;font-weight:700}
#btfo-app .btfo-fx-filter input,#btfo-app .btfo-fx-filter select{box-sizing:border-box;width:100%;min-width:0;min-height:40px;padding:8px 9px;border:1px solid var(--bt-line);border-radius:8px;background:var(--bt-card2);color:var(--bt-text);font:inherit}
#btfo-app .btfo-fx-filter button,#btfo-app .btfo-fx-filter>a{box-sizing:border-box;display:inline-flex;min-height:40px;align-items:center;justify-content:center;padding:8px 12px;border:1px solid var(--bt-line);border-radius:8px;background:var(--bt-card2);color:var(--bt-text);font:inherit;font-size:12px;text-decoration:none;white-space:nowrap}
#btfo-app .btfo-fx-filter button{border-color:var(--bt-accent);background:var(--bt-accent);color:#fff;font-weight:700;cursor:pointer}
#btfo-app .btfo-fx-filter-error{margin:8px 0;color:var(--bt-negative,#cf4f54);font-size:12px}
#btfo-app .btfo-fx-history-note{margin:8px 0;color:var(--bt-muted);font-size:11px}
#btfo-app .btfo-fx-history-table caption{padding:10px;text-align:left;color:var(--bt-muted);font-weight:700}
#btfo-app .btfo-fx-history-table td:last-child{white-space:normal;min-width:150px}
#btfo-app .btfo-fx-history-table td:last-child small{display:block;margin-top:4px;color:var(--bt-muted);font-size:10px}
#btfo-app .btfo-fx-history-table td:last-child a{color:var(--bt-accent);text-decoration:none}
#btfo-app .btfo-fx-state{display:grid;gap:4px;margin:12px 0;padding:12px 14px;border:1px solid var(--bt-line);border-radius:10px;background:var(--bt-card2);color:var(--bt-muted);font-size:12px;line-height:1.55}
#btfo-app .btfo-fx-state strong{color:var(--bt-text)}
#btfo-app .btfo-fx-state.is-error{border-color:#cc667077;background:#cf4f5410}
#btfo-app .btfo-fx-state.is-stale,#btfo-app .btfo-freshness.is-stale{border-color:#c98c3977;background:#c98c3910;color:#a86a16}
#btfo-app .btfo-fx-state.is-warning{border-color:#c98c3977;background:#c98c3910}
#btfo-app .btfo-freshness{display:inline-flex;padding:4px 8px;border:1px solid #31876555;border-radius:999px;background:#169b6d10;color:#187b58;font-size:11px;font-weight:700}
#btfo-app .btfo-freshness.is-stale{border:1px solid #c98c3977}
#btfo-app .btfo-fx-commodities{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:16px;padding:15px;border:1px dashed var(--bt-line);border-radius:12px;background:var(--bt-card2)}
#btfo-app .btfo-fx-coverage-state{flex:0 0 auto;padding:5px 8px;border:1px solid var(--bt-line);border-radius:999px;color:var(--bt-muted);font-size:10px;font-weight:700}
#btfo-app [data-fx-history-row][hidden],#btfo-app [data-fx-history-empty][hidden],#btfo-app [data-fx-filter-error][hidden]{display:none!important}
@media(max-width:900px){#btfo-app .btfo-fx-filter{grid-template-columns:repeat(2,minmax(0,1fr))}#btfo-app .btfo-fx-filter label:first-child{grid-column:1/-1}}
@media(max-width:600px){#btfo-app .btfo-fx-history-heading{align-items:flex-start;flex-direction:column}#btfo-app .btfo-fx-filter{grid-template-columns:minmax(0,1fr);width:100%}#btfo-app .btfo-fx-filter label,#btfo-app .btfo-fx-filter button,#btfo-app .btfo-fx-filter>a{box-sizing:border-box;width:100%;min-width:0}#btfo-app .btfo-fx-commodities{align-items:flex-start;flex-direction:column}#btfo-app .btfo-fx-coverage-state{align-self:flex-start}}

/* 8.199: coherent visual tokens and true chart load placeholders; no fabricated prices. */
#btfo-app.btfo-app{
 --bt-focus:#55ddbc;--bt-radius-card:16px;
 color-scheme:dark;
}
#btfo-app.btfo-light{color-scheme:light;--bt-focus:#087a5c;}
#btfo-app :is(button,a,input,select,textarea,summary):focus-visible{
 outline:3px solid var(--bt-focus);outline-offset:2px;
}
#btfo-app .btfo-home-card{min-width:0;isolation:isolate;}
#btfo-app .btfo-home-card :is(canvas,svg){max-width:100%;}
#btfo-app .btfo-chart-loading{
 box-sizing:border-box;min-height:clamp(180px,30vw,300px);height:auto;
 align-items:flex-end;gap:clamp(8px,2vw,18px);padding:clamp(18px,3vw,30px);
 background:linear-gradient(105deg,var(--bt-card2) 10%,var(--bt-card) 42%,var(--bt-card2) 70%);
 background-size:240% 100%;animation:btfo-chart-shimmer 1.65s linear infinite;
}
#btfo-app .btfo-chart-loading span{height:45%;max-width:72px;border-radius:6px 6px 0 0;opacity:.72}
#btfo-app .btfo-chart-loading span:nth-child(2){height:62%}
#btfo-app .btfo-chart-loading span:nth-child(3){height:42%}
#btfo-app .btfo-chart-loading span:nth-child(4){height:76%}
#btfo-app .btfo-chart-loading span:nth-child(5){height:52%}
#btfo-app .btfo-chart-loading[hidden]{display:none!important}
#btfo-app .btfo-empty-state{min-height:92px;overflow-wrap:anywhere}
#btfo-app .btfo-empty-state :is(a,button){min-height:44px}
#btfo-app .btfo-top-actions button{min-height:44px}
@media(max-width:480px){
 #btfo-app .btfo-chart-loading{min-height:180px;padding:18px 12px}
 #btfo-app .btfo-empty-state{gap:10px}
 #btfo-app .btfo-empty-state button{margin-left:0;width:100%;flex:1 0 100%}
}
@media(prefers-reduced-motion:reduce){
 #btfo-app .btfo-chart-loading{animation:none;background:var(--bt-card2)}
 #btfo-app :is(.btfo-home-card,.btfo-empty-state,.btfo-sidebar-toggle){scroll-behavior:auto;transition:none!important}
}


/* 8.202 FVT comparative NAV chart: bounded viewport, categorical contrast and reduced motion. */
#btfo-app .btfo-fund-compare-chart{min-width:0;max-width:100%;margin:14px 0 18px;padding:clamp(12px,2vw,20px);border:1px solid var(--bt-line);border-radius:16px;background:var(--bt-card2);color:var(--bt-text);overflow:hidden}
#btfo-app .btfo-fund-compare-chart-head{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;margin-bottom:12px}
#btfo-app .btfo-fund-compare-chart-head strong{font-size:14px;color:var(--bt-text)}
#btfo-app .btfo-fund-compare-chart-head small{font-size:11px;color:var(--bt-muted)}
#btfo-app .btfo-fund-compare-svg{display:block;width:100%;height:clamp(170px,29vw,245px);overflow:visible}
#btfo-app .btfo-fund-chart-grid{stroke:var(--bt-line);stroke-width:1}
#btfo-app .btfo-fund-chart-baseline{stroke:var(--bt-muted);stroke-width:1;stroke-dasharray:4 6;opacity:.75}
#btfo-app .btfo-fund-chart-tick{fill:var(--bt-muted);font-size:11px;font-variant-numeric:tabular-nums}
#btfo-app .btfo-fund-chart-line-1{stroke:#16a6a6}#btfo-app .btfo-fund-chart-line-2{stroke:#6c7dff}#btfo-app .btfo-fund-chart-line-3{stroke:#d68a20}#btfo-app .btfo-fund-chart-line-4{stroke:#dc61a1}#btfo-app .btfo-fund-chart-line-5{stroke:#42a45c}
#btfo-app polyline.btfo-fund-chart-line{stroke-dasharray:1;stroke-dashoffset:1;animation:btfo-fund-trace 1.1s cubic-bezier(.25,.7,.4,1) forwards}
#btfo-app polyline.btfo-fund-chart-line:nth-of-type(2){animation-delay:.10s}#btfo-app polyline.btfo-fund-chart-line:nth-of-type(3){animation-delay:.18s}#btfo-app polyline.btfo-fund-chart-line:nth-of-type(4){animation-delay:.26s}#btfo-app polyline.btfo-fund-chart-line:nth-of-type(5){animation-delay:.34s}
@keyframes btfo-fund-trace{to{stroke-dashoffset:0}}
#btfo-app .btfo-fund-compare-chart-legend{display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:10px}
#btfo-app .btfo-fund-chart-legend-item{display:inline-flex;align-items:center;gap:6px;font-size:11px;white-space:nowrap}
#btfo-app .btfo-fund-chart-legend-item small{color:var(--bt-muted);font-variant-numeric:tabular-nums}
#btfo-app .btfo-fund-chart-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:currentColor}
#btfo-app .btfo-fund-chart-dot.btfo-fund-chart-line-1{color:#16a6a6}#btfo-app .btfo-fund-chart-dot.btfo-fund-chart-line-2{color:#6c7dff}#btfo-app .btfo-fund-chart-dot.btfo-fund-chart-line-3{color:#d68a20}#btfo-app .btfo-fund-chart-dot.btfo-fund-chart-line-4{color:#dc61a1}#btfo-app .btfo-fund-chart-dot.btfo-fund-chart-line-5{color:#42a45c}
#btfo-app .btfo-fund-compare-warning{padding:10px 12px;border-left:3px solid #d68a20;border-radius:7px;background:var(--bt-card2);font-size:12px;color:var(--bt-text)}
@media(max-width:480px){#btfo-app .btfo-fund-compare-chart{padding:9px}#btfo-app .btfo-fund-compare-svg{height:176px}#btfo-app .btfo-fund-compare-chart-head{align-items:flex-start}#btfo-app .btfo-fund-compare-chart-legend{gap:7px 10px}}
@media(prefers-reduced-motion:reduce){#btfo-app polyline.btfo-fund-chart-line{animation:none!important;stroke-dashoffset:0!important}}
/* 8.204.0: budget-vs-actual financial overview (cash and investment ledger remain separate). */
#btfo-app .btfo-budget-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
#btfo-app .btfo-budget-head h3{margin:4px 0;font-size:clamp(17px,2vw,21px);letter-spacing:-.02em}
#btfo-app .btfo-budget-head p{font-size:12px;color:var(--bt-muted);margin:4px 0}
#btfo-app .btfo-budget-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:17px 0}
#btfo-app .btfo-budget-kpi{min-width:0;padding:13px;border:1px solid var(--bt-line);border-radius:12px;background:var(--bt-card2);display:grid;gap:8px}
#btfo-app .btfo-budget-kpi small{font-size:11px;color:var(--bt-muted);line-height:1.4}
#btfo-app .btfo-budget-kpi strong{font-size:clamp(14px,1.5vw,20px);font-weight:750;overflow-wrap:anywhere}
#btfo-app .btfo-budget-progress-list{display:grid;gap:10px;margin-top:12px}
#btfo-app .btfo-budget-progress-row{display:grid;gap:8px;padding:14px;border:1px solid var(--bt-line);border-radius:12px;background:var(--bt-card2);min-width:0}
#btfo-app .btfo-budget-progress-heading,#btfo-app .btfo-budget-progress-values{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap}
#btfo-app .btfo-budget-progress-heading strong{font-size:14px}
#btfo-app .btfo-budget-progress-heading span,#btfo-app .btfo-budget-progress-values small{font-size:12px;color:var(--bt-muted)}
#btfo-app .btfo-budget-progress-track{height:9px;width:100%;overflow:hidden;background:var(--bt-line);border-radius:999px}
#btfo-app .btfo-budget-progress-track>span{display:block;height:100%;border-radius:999px;background:var(--bt-green);transform-origin:left;animation:btfo-budget-grow .6s ease-out both}
#btfo-app .btfo-budget-progress-row.is-over{border-color:#d29a5466}
#btfo-app .btfo-budget-progress-row.is-over .btfo-budget-progress-track>span{background:#d29a54}
#btfo-app .btfo-budget-alert,#btfo-app .btfo-budget-unverified{padding:12px 14px;border:1px solid #d29a5470;border-radius:11px;background:rgba(210,154,84,.08);margin:12px 0;font-size:13px;color:var(--bt-text)}
#btfo-app .btfo-budget-unplanned{margin-top:20px;padding-top:12px;border-top:1px solid var(--bt-line)}
#btfo-app .btfo-budget-unplanned h4{margin:0 0 5px;font-size:15px}
#btfo-app .btfo-budget-unplanned>p{font-size:12px;color:var(--bt-muted);margin:4px 0 12px}
@keyframes btfo-budget-grow{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@media(max-width:640px){#btfo-app .btfo-budget-summary{grid-template-columns:1fr}#btfo-app .btfo-budget-progress-row{padding:12px}#btfo-app .btfo-budget-progress-values{align-items:flex-start}}
@media(prefers-reduced-motion:reduce){#btfo-app .btfo-budget-progress-track>span{animation:none}}

#btfo-app .btfo-budget-period{display:flex;align-items:end;gap:9px;flex-wrap:wrap;margin:12px 0 16px}#btfo-app .btfo-budget-period label{display:grid;gap:5px;font-size:12px;color:var(--bt-muted)}#btfo-app .btfo-budget-period input{min-height:40px;border:1px solid var(--bt-line);color:var(--bt-text);background:var(--bt-card2);border-radius:8px;padding:6px 10px}#btfo-app .btfo-budget-period button{min-height:40px;padding:8px 14px;border-radius:8px}

/* 8.205: mobile navigation: no horizontal hunting for hidden modules. */
@media(max-width:800px){
 body.btfo-fullwidth-page .btfo-mobile,.btfo-mobile{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:2px!important;overflow:visible!important;max-width:calc(100vw - 16px);isolation:isolate}
 body.btfo-fullwidth-page .btfo-mobile>button,.btfo-mobile>button{box-sizing:border-box;min-width:0!important;min-height:52px!important;flex:initial!important;padding:7px 2px!important;white-space:normal}
 body.btfo-fullwidth-page .btfo-mobile>button small,.btfo-mobile>button small{font-size:10px!important}
 .btfo-mobile .btfo-mobile-more-menu{position:absolute;box-sizing:border-box;left:0;right:0;bottom:calc(100% + 9px);max-height:min(68dvh,520px);overflow-y:auto;overscroll-behavior:contain;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:12px;border:1px solid #415c70;border-radius:16px;background:#101e2b;box-shadow:0 18px 45px #0009;z-index:2}
 .btfo-mobile .btfo-mobile-more-menu[hidden]{display:none!important}
 body.btfo-fullwidth-page .btfo-mobile .btfo-mobile-more-menu>button,.btfo-mobile .btfo-mobile-more-menu>button{box-sizing:border-box;min-width:0!important;min-height:44px;display:flex;align-items:center;justify-content:flex-start;text-align:left;padding:8px 12px;border-radius:9px;border:1px solid #2f475a;background:#172b3c;color:#e7f3fa;font-size:12px!important;line-height:1.3;white-space:normal}
 .btfo-mobile .btfo-mobile-more-menu>button.active{border-color:#38d8a3;background:#16443c;color:#fff}
 .btfo-mobile [data-btfo-mobile-more][aria-expanded="true"]{background:#16443c;color:#a8fbe0}
 .btfo-mobile :is(button,a):focus-visible{outline:3px solid #75e3c6!important;outline-offset:2px}
 #btfo-app :is(.btfo-top-actions,.btfo-account-actions,.btfo-budget-period){min-width:0;max-width:100%;flex-wrap:wrap}
 #btfo-app :is(input,select,textarea,button){max-width:100%}
 #btfo-app .btfo-editor-drawer{width:min(100vw,480px);padding:clamp(12px,4vw,24px);overflow-x:hidden}
}
#btfo-app .btfo-ui-feedback{border:1px solid #d9985575;border-radius:11px;padding:12px 14px;background:color-mix(in srgb,#d99855 9%,var(--bt-card));color:var(--bt-text);margin:0 0 15px;font-size:13px;overflow-wrap:anywhere}
/* WordPress themes sometimes retain body margins in shortcode fullwidth pages.
 * The margin plus a 100vw panel used to create an eight-pixel horizontal overflow. */
@media(max-width:800px){
 body.btfo-fullwidth-page{margin:0!important;max-width:100%;overflow-x:clip}
 body.btfo-fullwidth-page #btfo-app.btfo-app{box-sizing:border-box;width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important;border-left:0;border-right:0;border-radius:0}
}
/* The mobile bar lives outside #btfo-app; mirror its user-selected light palette. */
@media(max-width:800px){
 body:has(#btfo-app.btfo-light) .btfo-mobile{background:#fff;border-color:#d0dfeb;box-shadow:0 8px 27px #203b521c}
 body:has(#btfo-app.btfo-light) .btfo-mobile>button{color:#486078;background:transparent}
 body:has(#btfo-app.btfo-light) .btfo-mobile>button.active{color:#075e4d;background:#e1f4ed}
 body:has(#btfo-app.btfo-light) .btfo-mobile .btfo-mobile-more-menu{background:#fff;border-color:#cbd9e6;box-shadow:0 16px 40px #102b4b35}
 body:has(#btfo-app.btfo-light) .btfo-mobile .btfo-mobile-more-menu>button{background:#f4f8fb;color:#1c3c52;border-color:#d8e4ed}
 body:has(#btfo-app.btfo-light) .btfo-mobile .btfo-mobile-more-menu>button.active{background:#e4f4ee;color:#075e4d;border-color:#4ab692}
}

#btfo-app .btfo-trade-side{grid-column:1/-1;margin:0;padding:0;border:0;min-width:0}
#btfo-app .btfo-trade-side legend{font-size:13px;font-weight:650;padding:0;margin-bottom:8px}
#btfo-app .btfo-trade-side-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#btfo-app .btfo-trade-side-options label{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px;margin:0;border:1px solid var(--bt-line);border-radius:9px;background:var(--bt-card2);color:var(--bt-text);cursor:pointer}
#btfo-app .btfo-trade-side-options input{appearance:auto;flex:0 0 auto;width:16px;height:16px;min-height:0;margin:0;padding:0;accent-color:var(--bt-green)}
#btfo-app .btfo-trade-side-options label:has(input:checked){border-color:var(--bt-green);color:var(--bt-green);font-weight:700}
#btfo-app .btfo-trade-side-options label:focus-within{outline:2px solid var(--bt-green);outline-offset:2px}

/* Portfolio transaction toolbar and form. */
#btfo-app [data-btfo-panel="portfolio"]>.btfo-invest-nav{margin-bottom:0}
#btfo-app [data-btfo-panel="portfolio"]>.btfo-named-portfolios{order:2}
#btfo-app [data-btfo-panel="portfolio"]>#btfo-investment-history{margin-top:0}
#btfo-app .btfo-portfolio-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 16px;border:1px solid var(--bt-line);border-radius:12px;background:var(--bt-card2)}
#btfo-app .btfo-portfolio-actions h2{margin:0;font-size:15px;line-height:1.4}
#btfo-app .btfo-portfolio-action-links{display:flex;gap:8px;flex-wrap:wrap;margin:0}
#btfo-app .btfo-portfolio-action-links button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 14px;border:1px solid var(--bt-line);border-radius:8px;background:var(--bt-card);color:var(--bt-text);font:inherit;font-weight:650;cursor:pointer}
#btfo-app .btfo-portfolio-action-links button[value="buy"]{background:var(--bt-green);border-color:var(--bt-green);color:var(--bt-bg)}
#btfo-app .btfo-portfolio-action-links button:hover{text-decoration:underline;text-underline-offset:3px}
#btfo-app .btfo-portfolio-action-links button:focus-visible{outline:3px solid var(--bt-green);outline-offset:3px}
#btfo-app .btfo-trade-form{scroll-margin-top:24px}
#btfo-app .btfo-trade-form>h2{margin:0 0 10px;font-size:18px}
#btfo-app .btfo-trade-form .btfo-help{margin:0 0 16px}
#btfo-app .btfo-trade-fields>label{min-width:0}
#btfo-app .btfo-trade-fields>button[type="submit"]{align-self:end;min-height:44px;justify-self:start}
#btfo-app .btfo-trade-fields>button[type="submit"]:disabled{opacity:.55;cursor:not-allowed}
#btfo-app .btfo-trade-fields>.btfo-trade-preview{grid-column:1/-1}
#btfo-app .btfo-trade-action-feedback{margin:2px 0 0}
#btfo-app[data-btfo-entry-route="trade"] [data-btfo-panel]:not([data-btfo-panel="portfolio"]){display:none!important}
@media(min-width:1100px){
 #btfo-app .btfo-trade-fields{grid-template-columns:repeat(3,minmax(0,1fr))}
 #btfo-app .btfo-trade-fields>.btfo-trade-preview{grid-column:span 2}
 #btfo-app .btfo-trade-fields>button[type="submit"]{align-self:center;justify-self:end}
}
@media(max-width:640px){
 #btfo-app .btfo-portfolio-actions{align-items:stretch;flex-direction:column}
 #btfo-app .btfo-portfolio-action-links>button{flex:1 1 0}
 #btfo-app .btfo-trade-fields>button[type="submit"]{justify-self:stretch}
}

/* 8.207.9 UI polish: focus, touch targets, disabled states, iOS zoom, overflow. Appended to the single design system, no new file. */
#btfo-app :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid var(--bt-green);outline-offset:2px;border-radius:6px}
#btfo-app :is(button,input[type=submit]):disabled,#btfo-app a[aria-disabled="true"]{opacity:.55;cursor:not-allowed;pointer-events:auto;filter:saturate(.6)}
#btfo-app button:not(:disabled),#btfo-app [role=button]{cursor:pointer;touch-action:manipulation}
#btfo-app :is(button,.btfo-btn,input[type=submit]){transition:background-color .15s ease,border-color .15s ease,transform .1s ease}
#btfo-app :is(button,input[type=submit]):not(:disabled):active{transform:translateY(1px)}
#btfo-app form[data-btfo-busy]{cursor:progress}
#btfo-app :is(h1,h2,h3,td,th,.btfo-card,.btfo-notice){overflow-wrap:anywhere}
#btfo-app :is(img,svg,video,canvas,iframe){max-width:100%}
#btfo-app [id]{scroll-margin-top:84px}
#btfo-app .btfo-table-autoscroll{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
#btfo-app .btfo-table-autoscroll:focus-visible{outline-offset:-3px}
@media(pointer:coarse){
 #btfo-app :is(button,input[type=submit],select,[role=button],summary){min-height:44px}
 #btfo-app :is(.btfo-tabs,.btfo-nav,[role=tablist]) :is(button,a){min-height:44px;min-width:44px}
}
@media(max-width:700px){
 #btfo-app :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){font-size:16px}
}
@media(prefers-reduced-motion:reduce){#btfo-app :is(button,.btfo-btn,input[type=submit]){transition:none}#btfo-app button:active{transform:none}}
@media(forced-colors:active){#btfo-app :is(button,a,input,select,textarea):focus-visible{outline:3px solid Highlight}}
