/* Referência visual fornecida: navegação azul, cartões claros e tema escuro opcional. */
:root{--surface:#fff;--surface-soft:#f6f9ff;--text:#14243d;--muted:#61718b;--stroke:#dce6f4;--accent:#0785ff;--radius:18px}
body{background:#eef3fa;color:var(--text)}.shell{background:transparent}.main{background:transparent}.side{background:linear-gradient(165deg,#071526,#0b2543 65%,#103760);border-right:1px solid #245281}.brand{padding-bottom:20px;border-bottom:1px solid #ffffff18}.nav button{border-radius:11px;margin:4px 0;transition:background .15s,transform .15s}.nav button.active{background:linear-gradient(110deg,#0071ee,#00a6ff);box-shadow:0 5px 18px #008cff33;color:white}.nav button:hover{transform:translateX(2px)}.top{border-bottom:1px solid var(--stroke);padding-bottom:20px}.top-actions{gap:8px}.top h1{letter-spacing:-.8px}.button{border-radius:11px;transition:box-shadow .15s,background .15s}.button:hover{box-shadow:0 4px 15px #0b5eab15}.button.primary{background:linear-gradient(105deg,#0073f3,#009cff);border-color:#0785ff;color:#fff}.panel,.metric,.account-card,.bank-month-card,.daily-company{background:var(--surface);border-color:var(--stroke);box-shadow:0 6px 24px #13325c08;border-radius:var(--radius)}.metric{position:relative;overflow:hidden;border-top:3px solid #2b8aff}.metric::after{content:'';position:absolute;right:-28px;top:-28px;width:90px;height:90px;background:#198dff0c;border-radius:50%;pointer-events:none}.metric:has(.money-negative){border-top-color:#ef4444}.metric:has(.money-planned){border-top-color:#16a34a}.metric-value{letter-spacing:-.7px}.metric-label{font-weight:600}.dashboard-welcome{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:25px 28px;margin:0 0 22px;border-radius:20px;border:1px solid #c9dff8;background:radial-gradient(ellipse at right,#b5e0ff88,transparent 65%),linear-gradient(125deg,#fff,#edf6ff);position:relative;overflow:hidden}.dashboard-welcome h2{margin:7px 0;font-size:29px;letter-spacing:-.8px}.dashboard-welcome p{margin:8px 0;color:var(--muted);max-width:550px}.welcome-kicker{font-size:11px;letter-spacing:1.8px;font-weight:700;color:#2376bb}.dashboard-welcome img{width:160px;height:100px;object-fit:contain;max-width:28%}.welcome-symbol{font-size:80px;line-height:1;color:#0095ff}.period-panel{box-shadow:none}.quote-strip{border-radius:14px}.workspace-identity{border-radius:12px}.field input,.field select,select,input,textarea{border-radius:10px}.table-wrap{border-radius:12px}thead{background:var(--surface-soft)}tbody tr:hover{background:#0785ff06}.pie-slice:hover{filter:brightness(1.08)}.section{animation:financeAppear .18s ease}@keyframes financeAppear{from{opacity:.65}to{opacity:1}}
body[data-module=personal] .side{background:linear-gradient(165deg,#062b25,#084b3d)}body[data-module=personal] .nav button.active,body[data-module=personal] .button.primary{background:linear-gradient(105deg,#087c5d,#10ac7d);border-color:#10a775}body[data-module=personal] .dashboard-welcome{background:radial-gradient(ellipse at right,#b2f0d688,transparent 65%),linear-gradient(125deg,#fff,#eefbf6);border-color:#b8e5d1}body[data-module=personal] .welcome-kicker{color:#0a805e}
body[data-theme=dark]{--surface:#101d2d;--surface-soft:#142439;--text:#ecf4ff;--muted:#a6b7cb;--stroke:#263b52;background:#08121f;color:var(--text);color-scheme:dark}body[data-theme=dark] .main{background:#08121f}body[data-theme=dark] .panel,body[data-theme=dark] .metric,body[data-theme=dark] .account-card,body[data-theme=dark] .bank-month-card,body[data-theme=dark] .card-item{background:var(--surface);color:var(--text);border-color:var(--stroke)}body[data-theme=dark] .dashboard-welcome{background:radial-gradient(ellipse at right,#006fb64d,transparent 70%),linear-gradient(125deg,#102134,#071a2d);border-color:#1f4970}body[data-theme=dark] .dashboard-welcome h2,body[data-theme=dark] h1,body[data-theme=dark] h2,body[data-theme=dark] h3,body[data-theme=dark] h4,body[data-theme=dark] .metric-label,body[data-theme=dark] label{color:var(--text)}body[data-theme=dark] .muted,body[data-theme=dark] .small.muted,body[data-theme=dark] .metric-sub,body[data-theme=dark] .daily-heading p,body[data-theme=dark] .period-panel p,body[data-theme=dark] .eyebrow{color:var(--muted)}body[data-theme=dark] .button{background:#192c40;color:#e5f1ff;border-color:#344a64}body[data-theme=dark] .button.primary{background:linear-gradient(105deg,#0073f3,#009cff);color:#fff}body[data-theme=dark][data-module=personal] .button.primary{background:linear-gradient(105deg,#087c5d,#10ac7d)}body[data-theme=dark] input,body[data-theme=dark] select,body[data-theme=dark] textarea{background:#0b1828;color:#e5f1ff;border-color:#344a64}body[data-theme=dark] th{background:#15273b;color:#b9cce4}body[data-theme=dark] td{border-color:#23374d}body[data-theme=dark] .workspace-identity,body[data-theme=dark] .quote-strip{background:#11273e;border-color:#244361;color:#c3e4ff}body[data-theme=dark] .quote-item,body[data-theme=dark] .quote-item small{color:#b5c8df}body[data-theme=dark] .notice{background:#162b3e;color:#c3d7ed;border-color:#29445e}body[data-theme=dark] .daily-group{background:linear-gradient(125deg,#102f4b,#12372f);border-color:#285579}body[data-theme=dark] .daily-categories>div,body[data-theme=dark] .bank-projection{background:#162c43}body[data-theme=dark] .daily-dialog,body[data-theme=dark] .modal,body[data-theme=dark] .modal-card{background:#101d2d;color:var(--text);border-color:#344a64}body[data-theme=dark] .money-positive,body[data-theme=dark] .money-positive .money{color:#59adff!important}body[data-theme=dark] .money-planned,body[data-theme=dark] .money-planned .money{color:#46d99b!important}body[data-theme=dark] .money-negative,body[data-theme=dark] .money-negative .money{color:#ff737d!important}body[data-theme=dark] .pie-legend-row,body[data-theme=dark] .pie-selection{background:#15273b;border-color:#2c465f;color:#e5f1ff}body[data-theme=dark] .auth-card,body[data-theme=dark] .chooser-inner{background:#101d2d;color:#e5f1ff}body[data-theme=dark] .company-option{background:#142439;color:#e5f1ff;border-color:#2c465f}body[data-theme=dark] .company-option small{color:#b4c5db}
@media(max-width:760px){.dashboard-welcome{padding:20px;gap:12px}.dashboard-welcome h2{font-size:25px}.dashboard-welcome p{font-size:13px}.dashboard-welcome img{width:85px;height:65px}.welcome-symbol{font-size:48px}.main{padding:14px}.top-actions{display:flex;flex-wrap:wrap}.top-actions .button{font-size:12px;padding:9px 11px}.nav button:hover{transform:none}.daily-heading p{font-size:13px}}
@media(prefers-reduced-motion:reduce){.section{animation:none}.nav button,.button{transition:none}}

body[data-theme=dark]{--ink:#ecf4ff;--line:#263b52;--card:#101d2d;--bg:#08121f;--accent-soft:#102a43}body[data-theme=dark] .top,body[data-theme=dark] .quote-item{background:#101d2d;border-color:#263b52}body[data-theme=dark] .quote-item b{color:#d9eaff}body[data-theme=dark] .top .eyebrow{color:#8ab9e6}body[data-theme=dark] .brand b{color:white}body[data-theme=dark] .quote-item.quote-stale{background:#17253a;color:#a6b7cb}body[data-theme=dark] .daily-company .notice{background:#302b1c;color:#eddbb0}body[data-theme=dark] .company-option{color:#ecf4ff}body[data-theme=dark] .chooser-greeting,body[data-theme=dark] .chooser-subtitle,body[data-theme=dark] .chooser-note{color:#dbeaff}.metric:has(.money-negative)::before{background:#ef4444}.metric:has(.money-planned)::before{background:#16a34a}.metric:has(.money-positive)::before{background:#258cff}
