/* Financial command center: measured density, quiet surfaces and functional colour. */
:root{--accent:#b4c5ec;--green:#91d9bb;--bg:#121619;--surface:#1b2125;--raised:#262f35;--muted:#9aa8af;--text:#f2f5f4}
body{background:var(--bg)}header{padding-top:18px}.brand-mark{background:#c4d6c9;color:#203229;border-radius:10px}main{padding-top:12px}.positive{color:var(--green)!important}.negative{color:var(--red)!important}.fin-heading{display:flex;align-items:center;justify-content:space-between;margin:12px 0 24px;gap:10px}.fin-heading h1{font-size:28px;letter-spacing:-1px;margin:8px 0 0}.fin-heading .eyebrow{font-size:8px;letter-spacing:2px}.title-dot{display:inline-block;width:6px;height:6px;background:var(--green);border-radius:50%;margin:0 0 5px 7px}.fin-status{background:#91d9bb0b;border:1px solid #91d9bb16;border-radius:30px;font-size:10px;color:var(--green);padding:10px;white-space:nowrap;min-height:44px}.status-dot{display:inline-block;height:5px;width:5px;background:var(--green);border-radius:50%;margin-right:4px}.fin-toolbar{display:flex;justify-content:space-between;align-items:center;margin:0 0 16px;gap:8px}.fin-period{display:flex;gap:2px;background:#1a2024;border-radius:10px;padding:3px}.fin-period button{border:0;background:none;font-size:11px;color:var(--muted);min-height:38px;padding:8px 12px;border-radius:8px}.fin-period .selected{background:#303a40;color:white;box-shadow:0 2px 8px #0002}.fin-export{background:var(--surface);border:0;width:44px;height:44px;border-radius:10px;font-size:19px;color:var(--muted)}.balance-hero{position:relative;overflow:hidden;background:radial-gradient(ellipse at 95% -40%,#668c7445,transparent 75%),linear-gradient(115deg,#253630,#202c29);border-radius:20px;padding:23px 22px 0;box-shadow:inset 0 1px #c5ead512,0 16px 35px #00000013}.balance-hero .eyebrow{color:#b5c8be;letter-spacing:1.6px;font-size:9px}.tiny-label{font-size:10px;color:var(--muted)}.hero-amount{font-size:clamp(27px,8.8vw,44px);font-weight:580;line-height:1.15;letter-spacing:-1.5px;margin:18px 0 9px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.hero-sub{font-size:10px;color:#a1b6ac}.hero-bottom{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #c9edd414;margin-top:22px;padding:4px 0;font-size:10px;color:#b6c8bf}.hero-link{border:0;background:none;font-size:11px;color:#dceae1;min-height:43px}.money-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:22px 0 25px}.money-actions button{border:0;background:none;font-size:11px;color:#c1cbd0;display:flex;flex-direction:column;align-items:center;gap:8px}.money-actions button span{width:43px;height:43px;background:#242d32;border-radius:15px;display:grid;place-items:center;font-size:22px;color:#d2dfdd;box-shadow:inset 0 1px #ffffff06}.money-actions button:first-child span{background:#91d9bb15;color:var(--green)}.fin-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 20px}.fin-stat{position:relative;text-align:left;min-width:0;background:var(--surface);border:0;border-radius:15px;padding:15px 14px 45px;overflow:hidden}.fin-stat .spread{font-size:11px;color:var(--muted)}.fin-stat strong{display:block;margin:9px 0 6px;font-size:23px;font-weight:590;letter-spacing:-.7px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.fin-stat small{font-size:10px;color:var(--muted)}.stat-mark{height:4px;width:4px;border-radius:50%}.stat-delta{font-size:9px;line-height:1.5;min-height:27px}.stat-delta>span:last-child{color:var(--muted)}.spark{display:block;width:100%;height:28px;overflow:visible}.fin-stat .spark{position:absolute;bottom:7px;left:14px;width:calc(100% - 28px);height:28px;opacity:.85}.fin-chart{margin-top:22px;padding:18px;position:relative}.fin-chart .section-head{margin-bottom:20px}.chart-switch{display:flex;background:#11191c;border-radius:8px;padding:3px}.chart-switch button{background:none;border:0;color:var(--muted);font-size:10px;padding:7px 9px;min-height:32px;border-radius:6px}.chart-switch button.active{background:var(--raised);color:#e2ebe7}.chart-value{font-size:27px;font-weight:560;letter-spacing:-.6px}.chart-value small{display:block;color:var(--muted);font-size:10px;letter-spacing:0;font-weight:400;margin:4px 0 22px}.fin-chart>svg{width:100%;height:130px;display:block}.chart-scale{display:flex;justify-content:space-between;font-size:9px;color:var(--muted);margin-bottom:7px}.chart-dates{display:flex;justify-content:space-between;font-size:9px;color:var(--muted);margin-top:6px}.chart-scrub{font-size:10px;color:var(--muted);display:block;margin-top:18px}.chart-scrub output{color:var(--text)}.chart-scrub input{display:block;width:100%;accent-color:var(--green);margin:8px 0 0;min-height:25px}.fin-chart>.text-button{font-size:10px;padding-left:0}.fx-panel{background:#1b2327;padding:17px 16px;border-radius:15px;margin:18px 0 26px}.fx-panel .eyebrow{font-size:9px;letter-spacing:1.4px}.fx-panel>small{font-size:9px;color:var(--muted)}.fx-grid{display:grid;grid-template-columns:repeat(3,1fr);margin:15px 0 10px;gap:12px}.fx-grid button{border:0;border-right:1px solid #ffffff09;background:none;text-align:left;padding:0 10px 0 0;min-width:0}.fx-grid button:last-child{border:0}.fx-grid small{display:block;font-size:10px;color:var(--muted)}.fx-grid b{display:block;font-size:18px;font-weight:560;margin:3px 0 7px;letter-spacing:-.4px}.fx-grid .spark{height:12px;opacity:.7}.expense-layout{display:flex;align-items:center;gap:20px;padding:20px 15px}.donut{border-radius:50%;width:117px;height:117px;flex-shrink:0;display:grid;place-items:center}.donut>div{width:93px;height:93px;background:var(--surface);border-radius:50%;display:flex;flex-direction:column;justify-content:center;text-align:center}.donut b{font-size:15px;letter-spacing:-.4px}.donut small{font-size:9px;color:var(--muted)}.expense-legend{flex:1;min-width:0}.expense-legend button{border:0;background:none;display:flex;align-items:center;width:100%;gap:7px;font-size:10px;text-align:left;padding:8px 0;min-height:33px}.expense-legend button i{width:5px;height:5px;border-radius:50%;flex-shrink:0}.expense-legend span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}.expense-legend b{font-size:10px}.channel-bars{padding:10px 16px}.channel-bars button{width:100%;background:none;border:0;padding:12px 0;text-align:left}.channel-bars .spread{font-size:11px}.channel-bars small{font-size:8px;color:var(--muted);margin-left:5px}.channel-bars b{font-size:12px;font-weight:550}.bar-track{height:4px;border-radius:4px;background:#ffffff07;margin-top:12px;overflow:hidden}.bar-track i{display:block;height:100%;border-radius:4px;background:var(--accent)}.owner-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.owner-card{background:var(--surface);border:0;border-radius:15px;padding:15px;text-align:left;min-width:0}.owner-avatar{width:29px;height:29px;border-radius:50%;background:#32453d;color:#c1ddcb;display:grid;place-items:center;font-size:11px}.owner-card:nth-child(2) .owner-avatar{background:#35404e;color:#d0dcf0}.owner-card h3{margin:12px 0 2px;font-size:12px;overflow-wrap:anywhere}.owner-card>small{font-size:9px;color:var(--muted);display:block;min-height:27px}.owner-card>strong{display:block;font-size:22px;font-weight:560;margin:4px 0 15px;letter-spacing:-.7px;overflow-wrap:anywhere}.owner-debt{border-top:1px solid var(--line);padding-top:10px;font-size:9px}.owner-debt span{display:block;color:var(--muted);margin-bottom:2px}.owner-debt b{font-size:12px;font-weight:550}.fin-note{font-size:10px;color:var(--muted);line-height:1.6;margin:10px 0 18px}.fin-operations{border-radius:15px;background:var(--surface);overflow:hidden}.fin-operation{width:100%;display:flex;align-items:center;gap:10px;padding:16px 13px;border:0;border-bottom:1px solid var(--line);background:none;text-align:left}.fin-operation:last-child{border-bottom:0}.operation-symbol{flex-shrink:0;width:30px;height:30px;background:#ffffff04;display:grid;place-items:center;border-radius:10px;font-size:18px}.operation-body{flex:1;min-width:0}.operation-body b{display:block;font-size:11px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.operation-body small{display:block;font-size:9px;color:var(--muted);margin-top:3px}.fin-operation>strong{font-size:12px;font-weight:560;white-space:nowrap}.fin-footer{display:flex;justify-content:space-between;font-size:9px;color:#73858a;margin:25px 0 8px}.chart-empty{color:var(--muted);font-size:11px;line-height:1.6;padding:22px 18px}.fin-tabs{display:flex;overflow:auto;gap:5px;margin:0 0 24px}.fin-tabs button{border:0;border-radius:9px;background:none;padding:10px 13px;font-size:11px;color:var(--muted);min-height:42px}.fin-tabs button.active{color:var(--text);background:var(--raised)}.account-card{width:100%;text-align:left;background:var(--surface);border:0;border-radius:16px;padding:18px;margin:0 0 12px}.account-name{display:flex;align-items:center;gap:10px;min-width:0}.account-name b{font-size:12px;overflow-wrap:anywhere}.account-name small{display:block;font-size:9px;color:var(--muted);margin-top:3px}.account-logo{width:34px;height:34px;border-radius:10px;background:#39433c;color:#d2e6d6;display:grid;place-items:center;flex-shrink:0;font-weight:600;font-size:13px}.account-logo.bybit{color:#efc571;background:#efc57115}.account-logo.cryptobot{color:#8ccbea;background:#8ccbea15}.account-card>strong{display:block;margin:17px 0 14px;font-size:26px;font-weight:550;letter-spacing:-.7px;overflow-wrap:anywhere}.account-card>strong small{font-size:12px;color:var(--muted)}.fin-alert{display:flex;gap:12px;align-items:center;background:#f1bd7210;border-radius:14px;padding:14px;font-size:11px}.fin-alert>svg{width:22px;height:22px;color:var(--amber);flex-shrink:0}.fin-alert p{font-size:10px}.fin-details{display:grid;grid-template-columns:1fr 1fr;gap:14px 12px;margin:24px 0;font-size:12px}.fin-details dt{color:var(--muted)}.fin-details dd{margin:0;text-align:right;overflow-wrap:anywhere}.journal-amount{font-size:32px;letter-spacing:-1px;overflow-wrap:anywhere}.integrity-mark{width:55px;height:55px;display:grid;place-items:center;border-radius:50%;background:#91d9bb15;color:var(--green);font-size:28px;margin-bottom:16px}#operation-search{margin-bottom:16px}nav{background:#192125f2}dialog{background:#1b2328}a{color:var(--accent)}@media(min-width:700px){.fin-stats{grid-template-columns:repeat(4,1fr)}.hero-amount{font-size:50px}.money-actions{max-width:420px;margin:25px auto}.fin-chart>svg{height:190px}.expense-layout{justify-content:space-between;gap:40px}.expense-legend{max-width:380px}.donut{width:145px;height:145px}.donut>div{width:117px;height:117px}.owner-card>strong{font-size:30px}}@media(max-width:360px){main{padding-left:14px;padding-right:14px}.fin-period button{padding:8px}.fin-heading h1{font-size:25px}.fin-stat strong{font-size:20px}.expense-layout{gap:12px}.donut{width:100px;height:100px}.donut>div{width:80px;height:80px}}

.fin-stat strong{font-size:clamp(18px,5.5vw,23px);white-space:nowrap}.owner-card>strong{font-size:clamp(18px,5.5vw,23px);white-space:nowrap}
/* Tools retain the compact mobile typography and safe long-text wrapping. */
[data-deal] { text-align:left; color:inherit; gap:12px; }
[data-deal] .body { min-width:0; overflow-wrap:anywhere; }
[data-deal] > b { font-variant-numeric:tabular-nums; font-size:13px; max-width:38%; overflow-wrap:anywhere; }
#ai-form input[type=checkbox] { width:auto; accent-color:var(--accent); }
#ai-answer { overflow-wrap:anywhere; }
button[data-deal] { width:100%; background:transparent; border:0; font:inherit; cursor:pointer; }
button[data-deal]:focus-visible { outline:2px solid var(--accent); outline-offset:-3px; }
