:root{--primary:#173b7a;--secondary:#19a974;--accent:#f3a83b;--app-bg:#f5f7fb;--ink:#152033;--muted:#6f7d93;--line:#e6ebf2}*{box-sizing:border-box}html,body{margin:0;padding:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--app-bg);color:var(--ink)}a{text-decoration:none;color:inherit}button,input,select,textarea{font:inherit}.shell{display:flex;min-height:100vh;background:var(--app-bg)}.sidebar{width:270px;background:linear-gradient(180deg,color-mix(in srgb,var(--primary) 92%,#071126),color-mix(in srgb,var(--primary) 70%,#061026));color:#fff;padding:20px 14px;position:fixed;inset:0 auto 0 0;overflow:auto;box-shadow:10px 0 30px rgba(4,16,40,.07)}.brandrow{display:flex;align-items:center;gap:11px;margin:4px 8px 22px}.brandmark,.brandlogo{width:42px;height:42px;border-radius:13px;background:white;color:var(--primary);display:grid;place-items:center;font-weight:900;object-fit:contain;padding:5px}.brand{font-size:18px;font-weight:850;letter-spacing:.1px;min-width:0}.brand small{display:block;color:#c8d8f5;font-weight:500;font-size:11px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nav{display:grid;gap:4px}.nav a{padding:10px 12px;border-radius:11px;color:#d5e0f5;font-size:13px;display:flex;align-items:center;gap:10px;transition:.16s}.nav a em{font-style:normal}.nav a:hover,.nav a.active{background:rgba(255,255,255,.11);color:#fff;transform:translateX(2px)}.main{margin-left:270px;width:calc(100% - 270px);padding:28px;max-width:1600px}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.title{font-size:28px;font-weight:850;margin:0;letter-spacing:-.02em}.muted{color:var(--muted)}.grid{display:grid;gap:16px}.grid4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid2{grid-template-columns:repeat(2,minmax(0,1fr))}.card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;box-shadow:0 6px 22px rgba(14,31,53,.05)}.metriccard{position:relative;overflow:hidden}.metriccard:after{content:'';position:absolute;width:72px;height:72px;border-radius:50%;right:-28px;top:-28px;background:color-mix(in srgb,var(--primary) 10%,transparent)}.metric{font-size:27px;font-weight:850;margin-top:7px;letter-spacing:-.03em}.metriclabel{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px}.good{color:#128c58}.bad{color:#c23d4a}.warn{color:#b9780e}.pill{display:inline-flex;align-items:center;gap:6px;padding:7px 11px;border-radius:999px;background:color-mix(in srgb,var(--primary) 10%,white);color:var(--primary);font-size:12px;font-weight:800}.btn{border:0;border-radius:11px;padding:10px 14px;background:var(--primary);color:white;font-weight:750;cursor:pointer;transition:.15s}.btn:hover{filter:brightness(.96);transform:translateY(-1px)}.btn.alt{background:color-mix(in srgb,var(--primary) 9%,white);color:var(--primary)}.btn.danger{background:#fff0f1;color:#ad2e3b}.btn.small{padding:7px 10px;font-size:12px}.tablewrap{overflow:auto}.table{width:100%;border-collapse:collapse;font-size:14px}.table th,.table td{padding:12px 10px;border-bottom:1px solid #edf0f5;text-align:left;white-space:nowrap}.table th{color:#64728a;font-size:11px;text-transform:uppercase;letter-spacing:.05em}.form{display:grid;gap:12px}.row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.row3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.field label{display:block;font-size:12px;font-weight:750;color:#5b6980;margin-bottom:5px}.field input,.field select,.field textarea{width:100%;padding:10px 11px;border:1px solid #dfe5ee;border-radius:10px;background:white;outline:none}.field input:focus,.field select:focus,.field textarea:focus{border-color:color-mix(in srgb,var(--primary) 55%,#dfe5ee);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 8%,transparent)}.modalish{max-width:980px}.empty{padding:26px;text-align:center;color:#718097}.loginwrap{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#0b1736,var(--primary))}.login{width:min(440px,92vw);background:white;border-radius:20px;padding:30px;box-shadow:0 20px 70px rgba(0,0,0,.22)}.login h1{margin:0 0 6px}.notice{padding:10px 12px;border-radius:10px;background:#fff8dd;color:#755b00;font-size:13px}.success{background:#eaf8f1;color:#176a47}.sectionhead{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.sectionhead h2{margin:0;font-size:18px}.subtle{font-size:12px;color:var(--muted)}.kpirow{display:flex;gap:8px;flex-wrap:wrap}.tag{padding:5px 8px;background:#f1f4f9;border-radius:8px;font-size:12px}.progress{height:9px;background:#eef1f6;border-radius:999px;overflow:hidden}.progress>div{height:100%;background:linear-gradient(90deg,var(--primary),var(--secondary));border-radius:inherit}.chartbox{min-height:235px}.chartlegend{display:flex;gap:18px;font-size:12px;color:var(--muted);margin-bottom:12px}.chartlegend span{display:flex;align-items:center;gap:6px}.legenddot{width:9px;height:9px;border-radius:50%}.incomeDot{background:var(--secondary)}.expenseDot{background:var(--primary)}.bars{height:185px;display:flex;gap:12px;align-items:flex-end;padding:0 4px;border-bottom:1px solid #edf0f5}.barcol{flex:1;min-width:34px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:6px}.barpair{height:155px;display:flex;align-items:flex-end;gap:4px}.bar{width:13px;border-radius:7px 7px 3px 3px;min-height:3px}.incomeBar{background:linear-gradient(180deg,color-mix(in srgb,var(--secondary) 82%,white),var(--secondary))}.expenseBar{background:linear-gradient(180deg,color-mix(in srgb,var(--primary) 70%,white),var(--primary))}.barcol span{font-size:10px;color:var(--muted)}.donutrow{display:flex;align-items:center;gap:24px;min-height:210px}.donut{width:166px;height:166px;border-radius:50%;display:grid;place-items:center;flex:0 0 auto}.donutcenter{width:105px;height:105px;background:white;border-radius:50%;display:grid;place-content:center;text-align:center;box-shadow:inset 0 0 0 1px #eef1f5}.donutcenter b{font-size:15px}.donutcenter span{font-size:11px;color:var(--muted)}.donutlegend{flex:1;display:grid;gap:9px}.donutlegend>div{display:grid;grid-template-columns:10px 1fr auto;align-items:center;gap:8px;font-size:12px}.donutlegend i{width:9px;height:9px;border-radius:3px}.linewrap{min-height:220px}.linechart{width:100%;height:180px;overflow:visible}.axislabels{display:flex;justify-content:space-between;color:var(--muted);font-size:10px;padding:0 15px}.health{display:flex;align-items:center;gap:16px}.score{width:76px;height:76px;border-radius:50%;display:grid;place-content:center;text-align:center;background:color-mix(in srgb,var(--secondary) 12%,white);border:7px solid color-mix(in srgb,var(--secondary) 32%,white)}.score b{font-size:23px}.score span{font-size:9px;color:var(--muted)}.quick{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.quick a{padding:12px;border:1px solid var(--line);border-radius:12px;background:#fff;font-size:12px;font-weight:750;text-align:center}.quick a:hover{border-color:color-mix(in srgb,var(--primary) 35%,var(--line));color:var(--primary)}.presetrow{display:flex;gap:10px;flex-wrap:wrap}.preset{width:46px;height:46px;border-radius:14px;border:3px solid white;box-shadow:0 0 0 1px #dfe5ee;cursor:pointer}.logopreview{width:120px;height:70px;object-fit:contain;border:1px dashed #d8dfeb;border-radius:12px;padding:8px}.statline{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #edf0f5}.statline:last-child{border:0}.hero{background:linear-gradient(135deg,var(--primary),color-mix(in srgb,var(--primary) 65%,var(--secondary)));color:white;border:0}.hero .muted{color:#dce7fb}.hero .metric{font-size:34px}.hero .pill{background:rgba(255,255,255,.14);color:white}.filterbar{display:flex;gap:8px;flex-wrap:wrap;align-items:flex-end}.filterbar .field{min-width:140px;flex:1}.badge{display:inline-flex;padding:4px 7px;border-radius:7px;background:#f1f4f9;font-size:11px;font-weight:700}.badge.paid{background:#eaf8f1;color:#176a47}.badge.pending{background:#fff7dd;color:#7b5f00}.badge.overdue{background:#ffebed;color:#a62939}
@media(max-width:1100px){.grid4{grid-template-columns:repeat(2,minmax(0,1fr))}.grid3{grid-template-columns:1fr 1fr}.quick{grid-template-columns:1fr 1fr}}
@media(max-width:900px){.sidebar{width:78px;padding:18px 9px}.brandrow{margin:4px 8px 20px}.brand{display:none}.brandmark,.brandlogo{width:42px;height:42px}.nav a{justify-content:center;padding:11px}.nav a em{display:none}.main{margin-left:78px;width:calc(100% - 78px);padding:18px}}
@media(max-width:650px){.main{padding:14px}.grid4,.grid3,.grid2,.row,.row3{grid-template-columns:1fr}.title{font-size:23px}.topbar{align-items:flex-start;gap:12px}.pill{font-size:10px}.donutrow{flex-direction:column}.quick{grid-template-columns:1fr 1fr}.hero .metric{font-size:29px}}
.detailsSummary{cursor:pointer;font-size:13px;font-weight:800;color:var(--primary);padding:10px 0;user-select:none}.investmentHero{display:flex;align-items:center;justify-content:space-between;gap:22px;background:linear-gradient(120deg,#fff,color-mix(in srgb,var(--primary) 5%,white));border-color:color-mix(in srgb,var(--primary) 15%,var(--line))}.investmentTitle{font-size:22px;font-weight:850;margin:6px 0 4px}.investmentStats{display:flex;align-items:center;gap:22px;flex-wrap:wrap}.investmentStats>div{display:grid;gap:3px;min-width:115px}.investmentStats span{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}.investmentStats b{font-size:18px}.investmentStats .btn{white-space:nowrap}
@media(max-width:900px){.investmentHero{align-items:flex-start;flex-direction:column}.investmentStats{width:100%}}
.themePreview{border:2px solid;border-radius:15px;overflow:hidden;min-height:120px;transition:.18s}.previewTop{padding:13px 16px;color:white;font-weight:850}.previewBody{padding:16px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}.previewBody span{color:white;padding:7px 10px;border-radius:9px;font-size:12px;font-weight:800}.previewBody button{border:0;color:white;padding:8px 11px;border-radius:9px;font-weight:800}

/* ===== V5 PREMIUM EXPERIENCE ===== */
body{min-width:320px;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.shell{--surface:#ffffff;--surface-soft:color-mix(in srgb,var(--app-bg) 72%,#fff);--shadow:0 12px 34px rgba(16,31,56,.07);--shadow-hover:0 18px 42px rgba(16,31,56,.11)}
.sidebar{width:278px;padding:18px 14px;background:linear-gradient(180deg,color-mix(in srgb,var(--primary) 93%,#071126) 0%,color-mix(in srgb,var(--primary) 72%,#061026) 70%,#07101f 100%);border-right:1px solid rgba(255,255,255,.06);z-index:40}
.sidebarTop{display:flex;align-items:center;justify-content:space-between}.sidebarClose{display:none!important;color:#fff;background:rgba(255,255,255,.1)!important}.sideCaption{padding:2px 12px 9px;color:rgba(255,255,255,.42);font-size:9px;font-weight:850;letter-spacing:.16em}.brandrow{margin:3px 8px 20px}.brandmark,.brandlogo{width:44px;height:44px;border-radius:14px;box-shadow:0 8px 24px rgba(0,0,0,.16)}.brand{font-size:17px;line-height:1.15}.brand small{font-size:10px;color:rgba(225,235,255,.72);margin-top:4px}.nav{gap:3px;padding-bottom:150px}.nav a{position:relative;padding:10px 11px;border-radius:12px;font-size:12.5px;gap:10px;color:rgba(231,239,255,.76);font-weight:650}.nav a span{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:rgba(255,255,255,.045)}.nav a:hover{background:rgba(255,255,255,.075);transform:none}.nav a.active{background:linear-gradient(90deg,rgba(255,255,255,.15),rgba(255,255,255,.08));box-shadow:inset 3px 0 0 rgba(255,255,255,.92);transform:none}.nav a.active span{background:rgba(255,255,255,.12)}.navArrow{margin-left:auto;opacity:.65}.sidebarFoot{position:absolute;left:14px;right:14px;bottom:15px;display:grid;gap:9px}.premiumBadge{display:flex;align-items:center;gap:9px;padding:10px 11px;border-radius:13px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.08)}.premiumBadge svg{color:var(--accent)}.premiumBadge b{display:block;font-size:11px}.premiumBadge small{display:block;font-size:9px;color:rgba(255,255,255,.55);margin-top:2px}.logoutBtn{border:0;background:transparent;color:rgba(255,255,255,.65);display:flex;align-items:center;gap:9px;padding:9px 11px;border-radius:10px;cursor:pointer;font-size:12px}.logoutBtn:hover{background:rgba(255,255,255,.07);color:#fff}
.main{margin-left:278px;width:calc(100% - 278px);padding:0 30px 36px;max-width:none}.pageContent{max-width:1480px;margin:0 auto}.topbar{height:88px;position:sticky;top:0;z-index:20;margin:0 -30px 26px;padding:0 30px;background:color-mix(in srgb,var(--app-bg) 88%,transparent);backdrop-filter:blur(18px);border-bottom:1px solid color-mix(in srgb,var(--line) 70%,transparent)}.topbarLeft,.topActions{display:flex;align-items:center;gap:11px}.title{font-size:25px;letter-spacing:-.035em}.topSubtitle{font-size:11.5px;margin-top:3px}.iconbtn,.searchBtn{height:39px;border:1px solid color-mix(in srgb,var(--line) 90%,#d9e0ea);background:rgba(255,255,255,.88);border-radius:11px;display:inline-flex;align-items:center;justify-content:center;gap:7px;color:#536177;cursor:pointer;position:relative}.iconbtn{width:39px}.searchBtn{padding:0 12px;font-size:12px;font-weight:700}.iconbtn:hover,.searchBtn:hover{border-color:color-mix(in srgb,var(--primary) 24%,var(--line));color:var(--primary);box-shadow:0 5px 16px rgba(16,31,56,.06)}.notifyDot{position:absolute;width:7px;height:7px;border-radius:50%;background:#ef5c66;right:8px;top:8px;border:1.5px solid white}.menuBtn{display:none}.quickAdd{height:39px;padding:0 14px;display:inline-flex;align-items:center;gap:7px;box-shadow:0 8px 20px color-mix(in srgb,var(--primary) 17%,transparent)}
.card{border:1px solid rgba(223,229,239,.9);border-radius:20px;padding:20px;background:rgba(255,255,255,.96);box-shadow:var(--shadow);transition:box-shadow .2s ease,border-color .2s ease,transform .2s ease}.card:hover{border-color:color-mix(in srgb,var(--primary) 12%,var(--line));box-shadow:var(--shadow-hover)}
.dashboardHero{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:5px 2px 24px}.dashboardHero h2{font-size:32px;margin:7px 0 6px;letter-spacing:-.045em;line-height:1.05}.dashboardHero p{margin:0;color:var(--muted);font-size:13px;max-width:620px}.eyebrow{display:inline-flex;align-items:center;gap:6px;color:var(--primary);font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.1em}.heroActions{display:flex;gap:9px}.heroBtn,.ghostBtn{display:inline-flex;align-items:center;gap:7px}.ghostBtn{background:white;color:var(--ink);border:1px solid var(--line);box-shadow:none}.ghostBtn:hover{filter:none;border-color:color-mix(in srgb,var(--primary) 25%,var(--line));color:var(--primary)}
.kpiGrid{gap:14px}.metriccard{min-height:154px;padding:18px 18px 16px}.metriccard:after{width:105px;height:105px;right:-52px;top:-54px}.metricTop{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.metricIcon{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;color:var(--primary);background:color-mix(in srgb,var(--primary) 9%,white)}.metricIcon.positive{color:#128c58;background:#ebf8f2}.metricIcon.negative{color:#c23d4a;background:#fff0f2}.metricIcon.neutral{color:#6557d9;background:#f0efff}.tinyPill{font-size:9px;font-weight:800;padding:5px 8px;border-radius:999px;background:color-mix(in srgb,var(--primary) 8%,white);color:var(--primary)}.mutedPill{color:#6c7788;background:#f2f4f8}.successPill{background:#eaf8f1;color:#118252}.dangerPill{background:#fff0f2;color:#b73644}.metriclabel{font-size:11px;font-weight:700;letter-spacing:.01em}.metric{font-size:27px;margin-top:5px}.metricFoot{font-size:10.5px;color:#8a95a5;margin-top:7px}.featuredKpi{background:linear-gradient(145deg,color-mix(in srgb,var(--primary) 96%,#061326),color-mix(in srgb,var(--primary) 78%,#0b1430));color:white;border-color:transparent}.featuredKpi:hover{border-color:transparent}.featuredKpi .metriclabel,.featuredKpi .metricFoot{color:rgba(255,255,255,.65)}.featuredKpi .metricIcon{background:rgba(255,255,255,.12);color:white}.featuredKpi .tinyPill{background:rgba(255,255,255,.13);color:white}.featuredKpi:after{background:rgba(255,255,255,.055)}
.contentSpacer{height:14px}.dashboardMainGrid{grid-template-columns:minmax(0,1.35fr) minmax(360px,.65fr);gap:14px}.sectionhead{margin-bottom:15px}.sectionhead h2{font-size:16px;letter-spacing:-.02em}.sectionKicker{display:block;font-size:8px;letter-spacing:.15em;font-weight:900;color:var(--primary);margin-bottom:4px}.textLink{display:inline-flex;align-items:center;gap:2px;font-size:10.5px;color:var(--primary);font-weight:800}.chartCard{min-height:330px}.chartbox{position:relative;min-height:242px}.chartlegend{font-size:10.5px;margin-bottom:7px}.chartGrid{position:absolute;left:6px;right:5px;top:36px;height:166px;display:flex;flex-direction:column;justify-content:space-between;pointer-events:none}.chartGrid i{height:1px;background:#edf1f6}.bars{position:relative;z-index:2;height:202px;border-bottom:0;padding:0 6px}.barpair{height:166px;gap:6px}.bar{width:14px;border-radius:8px 8px 4px 4px}.barcol span{text-transform:capitalize;font-size:9.5px}.donutrow{gap:20px;min-height:230px}.donut{width:156px;height:156px;box-shadow:0 10px 30px rgba(22,37,60,.08)}.donutcenter{width:106px;height:106px;box-shadow:inset 0 0 0 1px #eef2f6}.donutcenter span{order:0;font-size:9px}.donutcenter b{order:1;font-size:13px;margin-top:2px}.donutlegend>div{font-size:10.5px;padding:3px 0}.donutlegend b{font-size:10px}.chartSvgGrid{color:#edf1f6}.linechart{height:185px}
.investmentHero{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:22px 24px;background:linear-gradient(120deg,#0e1c37 0%,color-mix(in srgb,var(--primary) 78%,#0c1c38) 56%,color-mix(in srgb,var(--primary) 55%,#213555) 100%);border-color:transparent;color:white;overflow:hidden;position:relative}.investmentHero:after{content:'';position:absolute;width:240px;height:240px;border-radius:50%;right:-100px;top:-130px;background:radial-gradient(circle,rgba(255,255,255,.12),transparent 68%)}.investmentIntro{display:flex;align-items:center;gap:14px;min-width:260px}.investmentIcon{width:46px;height:46px;border-radius:14px;background:rgba(255,255,255,.11);display:grid;place-items:center}.lightKicker{color:rgba(255,255,255,.55)}.investmentTitle{font-size:20px;font-weight:850;letter-spacing:-.03em}.investmentSub{font-size:10.5px;color:rgba(255,255,255,.58);margin-top:4px}.investmentStats{display:flex;align-items:center;justify-content:flex-end;gap:30px;position:relative;z-index:2}.investmentStats>div{min-width:120px}.investmentStats span{display:block;color:rgba(255,255,255,.55);font-size:9.5px;margin-bottom:4px}.investmentStats b{font-size:16px}.investmentPositive{color:#63e0a3}.investmentNegative{color:#ff8492}.investmentLink{display:inline-flex;align-items:center;gap:5px;background:white;color:#152033;padding:10px 13px;border-radius:10px;font-size:10.5px;font-weight:850;white-space:nowrap}
.lowerGrid{grid-template-columns:1.05fr .9fr 1fr;gap:14px}.health{gap:13px;margin-bottom:12px}.score{width:72px;height:72px;border-radius:50%;padding:6px;background:conic-gradient(var(--secondary) var(--score),#eef2f6 0);box-shadow:none}.score>div{height:100%;border-radius:50%;background:white;display:grid;place-content:center;text-align:center}.score b{font-size:19px}.score span{font-size:8px;color:var(--muted)}.healthTitle{font-size:14px}.healthCopy{font-size:10.5px!important;line-height:1.45}.statline{font-size:11px;padding:9px 0}.dueRow{display:grid;grid-template-columns:32px 1fr auto;align-items:center;gap:9px;padding:9px 0;border-bottom:1px solid #edf1f5}.dueRow>.btn{grid-column:2/-1;justify-self:start;min-width:44px;max-width:100%;white-space:normal}.dueRow:last-child{border-bottom:0}.dueIcon{width:30px;height:30px;border-radius:9px;background:#f3f6fa;display:grid;place-items:center;color:#718097}.dueInfo b{display:block;font-size:11px;max-width:160px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dueInfo span{font-size:9px;color:var(--muted)}.dueRow>b{font-size:10.5px}.bottomGrid{gap:14px}.modernTable th{font-size:9px}.modernTable td{font-size:11px}.modernQuick{grid-template-columns:repeat(2,1fr);gap:10px}.modernQuick a{display:grid;grid-template-columns:34px 1fr;grid-template-rows:auto auto;column-gap:9px;padding:11px;border:1px solid #e8edf4;border-radius:13px;background:#fbfcfe}.modernQuick a:hover{border-color:color-mix(in srgb,var(--primary) 25%,#e8edf4);background:color-mix(in srgb,var(--primary) 3%,white)}.modernQuick a span{grid-row:1/3;width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:color-mix(in srgb,var(--primary) 8%,white);color:var(--primary)}.modernQuick a b{font-size:10.5px;align-self:flex-end}.modernQuick a small{font-size:8.5px;color:var(--muted);align-self:flex-start}
.mobileBottom{display:none}.overlay{display:none}

/* forms/tables refined globally */
.field label{font-size:10.5px;color:#637189;margin-bottom:6px}.field input,.field select,.field textarea{min-height:42px;border-radius:11px;border-color:#dfe6ef;font-size:12px;padding:10px 12px;background:#fff}.field textarea{min-height:90px}.btn{border-radius:11px;font-size:11px;padding:10px 14px}.table th{font-size:9px}.table td{font-size:11px}.notice{font-size:11px}.pill{font-size:10px}.empty{font-size:11px}

@media (max-width:1180px){.grid4{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboardMainGrid{grid-template-columns:1fr 1fr}.lowerGrid{grid-template-columns:1fr 1fr}.lowerGrid>.card:last-child{grid-column:1/-1}.investmentStats{gap:18px}.investmentStats>div{min-width:100px}}

@media (max-width:900px){
  .sidebar{transform:translateX(-105%);transition:transform .22s ease;width:min(310px,86vw);box-shadow:20px 0 55px rgba(0,0,0,.23)}.sidebar.open{transform:translateX(0)}.sidebarClose{display:grid!important}.overlay{display:block;position:fixed;inset:0;border:0;background:rgba(5,12,24,.46);backdrop-filter:blur(2px);z-index:35}.main{margin-left:0;width:100%;padding:0 18px 94px}.topbar{height:76px;margin:0 -18px 20px;padding:0 18px}.menuBtn{display:inline-flex}.searchBtn span,.quickAdd{display:none}.title{font-size:20px}.topSubtitle{font-size:9.5px}.dashboardHero{padding:2px 0 18px}.dashboardHero h2{font-size:27px}.dashboardHero p{font-size:11.5px}.heroActions{display:none}.dashboardMainGrid,.grid2,.grid3{grid-template-columns:1fr}.lowerGrid>.card:last-child{grid-column:auto}.investmentHero{align-items:flex-start;flex-direction:column}.investmentStats{width:100%;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.investmentLink{grid-column:1/-1;justify-content:center}.mobileBottom{position:fixed;z-index:30;display:grid;grid-template-columns:repeat(5,1fr);left:10px;right:10px;bottom:10px;padding:7px 7px calc(7px + env(safe-area-inset-bottom));border:1px solid rgba(222,229,238,.9);background:rgba(255,255,255,.94);backdrop-filter:blur(18px);border-radius:18px;box-shadow:0 14px 42px rgba(13,28,50,.18)}.mobileBottom a{display:flex;flex-direction:column;align-items:center;gap:3px;color:#8490a1;font-size:9px;font-weight:700}.mobileBottom a span{height:28px;display:grid;place-items:center}.mobileBottom a.active{color:var(--primary)}.mobileBottom .mobileAdd{width:45px;height:45px;border-radius:15px;margin-top:-19px;background:var(--primary);color:white;box-shadow:0 9px 20px color-mix(in srgb,var(--primary) 27%,transparent)}.mobileBottom a:has(.mobileAdd) small{margin-top:-2px;color:var(--primary)}.nav{padding-bottom:145px}
}

@media (max-width:640px){
  .main{padding-left:12px;padding-right:12px}.topbar{margin-left:-12px;margin-right:-12px;padding-left:12px;padding-right:12px}.topActions{gap:6px}.iconbtn{width:36px;height:36px}.topSubtitle{max-width:210px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dashboardHero h2{font-size:25px}.dashboardHero p{max-width:95%}.grid4{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.kpiGrid .card{padding:14px 13px;min-height:143px}.metricTop{margin-bottom:11px}.metricIcon{width:32px;height:32px}.metric{font-size:20px;white-space:nowrap}.metriclabel{font-size:9.5px}.metricFoot{font-size:8.5px}.tinyPill{font-size:7.5px;padding:4px 6px}.card{padding:15px;border-radius:17px}.sectionhead h2{font-size:14px}.sectionKicker{font-size:7px}.chartCard{min-height:auto}.dashboardMainGrid{grid-template-columns:1fr}.donutrow{flex-direction:column;align-items:center;gap:15px}.donutlegend{width:100%}.donutlegend>div{grid-template-columns:10px 1fr auto}.investmentHero{padding:18px 16px;border-radius:18px}.investmentIntro{min-width:0}.investmentTitle{font-size:17px}.investmentStats{grid-template-columns:1fr 1fr}.investmentStats>div:nth-child(3){grid-column:1/-1}.investmentStats b{font-size:14px}.linechart{height:165px}.modernQuick{grid-template-columns:1fr 1fr}.row,.row3{grid-template-columns:1fr}.form{gap:10px}.tablewrap{margin:0 -5px;padding:0 5px}.table th,.table td{padding:10px 8px}.login{padding:23px;border-radius:18px}.themePreview{overflow:hidden}.presetrow{flex-wrap:wrap}
}

@media (max-width:390px){.grid4{grid-template-columns:1fr}.kpiGrid .card{min-height:130px}.metric{font-size:23px}.modernQuick{grid-template-columns:1fr}.investmentStats{grid-template-columns:1fr}.investmentStats>div:nth-child(3){grid-column:auto}.mobileBottom{left:6px;right:6px;bottom:6px}.title{font-size:18px}.topSubtitle{max-width:165px}}

/* V5.1 — navegação inferior estilo app em todas as telas */
.shellNoSidebar{display:block;min-height:100vh}.mainFull{margin-left:0;width:100%;max-width:none;padding:26px clamp(18px,3vw,48px) 112px}.topbarClean{max-width:1520px;margin:0 auto 22px}.pageContent{max-width:1520px;margin:0 auto}.topBrandMini{display:flex;align-items:center}.topBrandMark,.topBrandLogo{width:39px;height:39px;border-radius:12px;background:var(--primary);color:#fff;display:grid;place-items:center;font-weight:900;object-fit:contain;padding:5px;box-shadow:0 7px 18px color-mix(in srgb,var(--primary) 20%,transparent)}.topBrandLogo{background:#fff;border:1px solid var(--line)}.topbarLeft{display:flex;align-items:center;gap:12px}.desktopBrandName{display:flex;flex-direction:column;text-align:right}.desktopBrandName b{font-size:11px}.desktopBrandName small{font-size:9px;color:var(--muted);margin-top:2px}

.bottomDock{position:fixed;z-index:40;left:50%;bottom:18px;transform:translateX(-50%);width:min(690px,calc(100vw - 32px));height:72px;padding:8px 13px;display:grid;grid-template-columns:repeat(5,1fr);align-items:center;background:rgba(255,255,255,.94);border:1px solid rgba(221,228,237,.92);border-radius:24px;backdrop-filter:blur(20px);box-shadow:0 18px 55px rgba(14,31,53,.18)}.bottomDock a,.bottomDock button{appearance:none;border:0;background:transparent;color:#8190a4;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;height:54px;border-radius:15px;font-weight:750;cursor:pointer;transition:.18s}.bottomDock a span,.bottomDock button span{height:25px;display:grid;place-items:center}.bottomDock small{font-size:9px;line-height:1}.bottomDock a:hover,.bottomDock button:hover,.bottomDock a.active,.bottomDock button.active{color:var(--primary);background:color-mix(in srgb,var(--primary) 6%,white)}.bottomDock .dockLaunch{height:76px;margin-top:-30px;background:transparent!important}.bottomDock .dockLaunch span{width:57px;height:57px;border-radius:18px;background:linear-gradient(145deg,var(--primary),color-mix(in srgb,var(--primary) 76%,#06152f));color:#fff;box-shadow:0 11px 25px color-mix(in srgb,var(--primary) 32%,transparent);transition:.18s}.bottomDock .dockLaunch:hover span{transform:translateY(-2px) scale(1.02)}.bottomDock .dockLaunch small{font-size:9.5px;color:var(--primary);font-weight:850;margin-top:1px}

.moreOverlay{position:fixed;z-index:48;inset:0;border:0;background:rgba(7,15,29,.38);backdrop-filter:blur(3px)}.morePanel{position:fixed;z-index:50;left:50%;bottom:100px;transform:translateX(-50%);width:min(940px,calc(100vw - 34px));max-height:min(74vh,720px);display:flex;flex-direction:column;background:rgba(255,255,255,.985);border:1px solid rgba(222,229,238,.96);border-radius:26px;box-shadow:0 28px 90px rgba(9,24,48,.28);overflow:hidden;animation:menuRise .18s ease-out}.moreHandle{display:none}.moreHeader{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:22px 24px 16px;border-bottom:1px solid #edf1f5}.moreHeader h2{margin:0;font-size:22px;letter-spacing:-.03em}.moreHeader p{margin:5px 0 0;color:var(--muted);font-size:11px}.moreBody{padding:17px 20px 20px;overflow:auto}.menuGroup+.menuGroup{margin-top:19px}.menuGroupTitle{font-size:8.5px;font-weight:900;letter-spacing:.13em;color:#8390a1;margin:0 5px 8px}.menuGroupGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.menuTile{display:grid;grid-template-columns:38px 1fr 18px;align-items:center;gap:10px;min-height:68px;padding:10px 11px;border:1px solid #e8edf4;border-radius:14px;background:#fbfcfe;transition:.16s}.menuTile:hover,.menuTile.active{border-color:color-mix(in srgb,var(--primary) 28%,#e8edf4);background:color-mix(in srgb,var(--primary) 4%,white);transform:translateY(-1px)}.menuTileIcon{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:color-mix(in srgb,var(--primary) 8%,white);color:var(--primary)}.menuTileCopy{min-width:0}.menuTileCopy b{display:block;font-size:10.5px}.menuTileCopy small{display:block;font-size:8.5px;color:var(--muted);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.menuTileArrow{color:#a2adbb}.moreFooter{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:13px 20px 15px;border-top:1px solid #edf1f5;background:#fbfcfe}.premiumBadge.light{color:var(--ink);margin:0}.premiumBadge.light small{color:var(--muted)}.lightLogout{color:#a73340!important;background:#fff0f2!important;border:0!important;padding:9px 12px!important;border-radius:10px!important}.logoutBtn.lightLogout:hover{background:#ffe8eb!important}.moreFooter .premiumBadge{display:flex;align-items:center;gap:9px}.moreFooter .premiumBadge b,.moreFooter .premiumBadge small{display:block}.moreFooter .premiumBadge b{font-size:10px}.moreFooter .premiumBadge small{font-size:8.5px}@keyframes menuRise{from{opacity:0;transform:translate(-50%,12px) scale(.985)}to{opacity:1;transform:translate(-50%,0) scale(1)}}

/* desativa componentes antigos de menu */
.sidebar,.mobileBottom,.menuBtn{display:none!important}

@media(max-width:900px){.mainFull{padding:0 14px 100px}.topbarClean{height:72px;margin:0 -14px 16px;padding:0 14px}.desktopBrandName{display:none}.bottomDock{bottom:9px;width:calc(100vw - 18px);height:68px;border-radius:20px;padding:7px 8px}.bottomDock .dockLaunch{height:72px;margin-top:-27px}.bottomDock .dockLaunch span{width:52px;height:52px;border-radius:17px}.morePanel{left:0;right:0;bottom:0;transform:none;width:100%;max-height:82vh;border-radius:25px 25px 0 0;border-left:0;border-right:0;border-bottom:0;animation:sheetRise .2s ease-out;padding-bottom:84px}.moreHandle{display:block;width:42px;height:4px;background:#d5dbe5;border-radius:999px;margin:9px auto 0}.moreHeader{padding:13px 16px 13px}.moreHeader h2{font-size:19px}.moreHeader p{font-size:9.5px}.moreBody{padding:13px 12px 18px}.menuGroupGrid{grid-template-columns:1fr 1fr;gap:8px}.menuTile{min-height:64px;padding:9px}.menuTileCopy small{font-size:8px}.moreFooter{padding:11px 13px}.topBrandMark,.topBrandLogo{width:36px;height:36px}.title{font-size:19px}@keyframes sheetRise{from{opacity:.7;transform:translateY(35px)}to{opacity:1;transform:translateY(0)}}}

@media(max-width:560px){.searchBtn{display:none}.topbarLeft{gap:9px}.topSubtitle{max-width:230px}.bottomDock{grid-template-columns:repeat(5,1fr)}.bottomDock small{font-size:8px}.bottomDock a,.bottomDock button{gap:3px}.menuGroupGrid{grid-template-columns:1fr}.menuTile{grid-template-columns:36px 1fr 16px}.menuTileIcon{width:36px;height:36px}.moreFooter .premiumBadge{display:none}.moreFooter{justify-content:flex-end}.moreHeader p{max-width:280px}}

/* V5.3 — menu Mais consistente no mobile e acesso admin */
@media(max-width:900px){
  .morePanel{inset:12px 10px 84px 10px;bottom:84px;width:auto;max-height:none;border:1px solid rgba(222,229,238,.96);border-radius:24px;padding-bottom:0;animation:mobileMenuIn .18s ease-out}
  .moreHandle{display:none}
  .moreHeader{padding:16px 16px 13px;position:sticky;top:0;background:rgba(255,255,255,.985);z-index:2}
  .moreBody{padding:14px 12px 18px}
  .menuGroupGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .menuTile{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:7px;min-height:104px;padding:11px;border-radius:15px;position:relative}
  .menuTileIcon{width:35px;height:35px;border-radius:10px}
  .menuTileCopy b{font-size:10.5px;line-height:1.2}
  .menuTileCopy small{font-size:8.5px;line-height:1.25;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .menuTileArrow{position:absolute;right:9px;bottom:9px}
  .moreFooter{position:sticky;bottom:0;background:#fbfcfe}
  @keyframes mobileMenuIn{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:none}}
}
@media(max-width:380px){
  .menuGroupGrid{grid-template-columns:1fr 1fr}
  .menuTile{min-height:98px;padding:9px}
  .menuTileCopy small{font-size:8px}
}
/* V6 FINAL RC — perfis PF/PJ, comercial e mobile refinado */
.workspaceSwitcherWrap{margin-left:8px}.workspaceSwitcher{max-width:240px;border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:12px;padding:9px 12px;font-weight:750;font-size:11px;box-shadow:0 5px 14px rgba(14,31,53,.04)}
.compactHero{min-height:auto}.contextList{display:grid;gap:10px}.contextCard{width:100%;border:1px solid var(--line);background:#fbfcfe;border-radius:15px;padding:13px;display:grid;grid-template-columns:42px 1fr 22px;align-items:center;gap:11px;text-align:left;cursor:pointer;color:var(--ink)}.contextCard.active{border-color:color-mix(in srgb,var(--primary) 40%,var(--line));background:color-mix(in srgb,var(--primary) 5%,white)}.contextIcon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:color-mix(in srgb,var(--primary) 9%,white);color:var(--primary)}.contextCard b,.contextCard small{display:block}.contextCard small{font-size:10px;color:var(--muted);margin-top:3px}
.calendarList{display:grid;gap:10px}.calendarRow{display:grid;grid-template-columns:54px 1fr auto;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #edf1f5}.calendarDate{width:48px;height:48px;border-radius:13px;background:color-mix(in srgb,var(--primary) 8%,white);display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--primary)}.calendarDate b{font-size:16px}.calendarDate small,.calendarRow small{display:block;font-size:9px;color:var(--muted);margin-top:2px}.integrationCard h2{margin:12px 0 6px}.integrationCard p{font-size:12px;line-height:1.55;color:var(--muted)}.integrationIcon{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;background:color-mix(in srgb,var(--primary) 10%,white);color:var(--primary)}.integrationIcon.secondary{background:color-mix(in srgb,var(--secondary) 11%,white);color:var(--secondary)}.uploadBox{border:1.5px dashed color-mix(in srgb,var(--primary) 30%,var(--line));border-radius:15px;padding:18px;display:flex;flex-direction:column;align-items:center;gap:5px;background:color-mix(in srgb,var(--primary) 3%,white);cursor:pointer;margin:12px 0}.uploadBox input{display:none}.uploadBox small{font-size:9px;color:var(--muted)}.featureCheck{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:700;margin:10px 0}.featureCheck svg{color:var(--secondary);width:17px}.planCard{position:relative}.featuredPlan{border-color:color-mix(in srgb,var(--primary) 34%,var(--line));box-shadow:0 16px 42px color-mix(in srgb,var(--primary) 12%,transparent)}.planSeat{display:flex;align-items:center;gap:8px;font-weight:800;margin:18px 0}.planFeatures{display:grid;gap:9px;margin:16px 0}.planFeatures span{display:flex;align-items:center;gap:7px;font-size:10px}.planFeatures svg{width:15px;color:var(--secondary)}
@media(max-width:900px){.topbarLeft{flex:1;min-width:0}.workspaceSwitcherWrap{margin-left:auto}.workspaceSwitcher{max-width:150px;padding:8px 9px;font-size:9px}.menuGroupGrid{grid-template-columns:repeat(2,minmax(0,1fr))}.mainFull{padding-bottom:98px}.morePanel{inset:10px 8px 82px}.moreBody{overscroll-behavior:contain}.calendarRow{grid-template-columns:48px 1fr auto}.calendarRow strong{font-size:11px}}
@media(max-width:560px){.topbarLeft{display:grid;grid-template-columns:38px 1fr}.workspaceSwitcherWrap{grid-column:1/-1;margin:5px 0 0}.workspaceSwitcher{width:100%;max-width:none}.topbarClean{height:auto;min-height:82px;padding-top:10px;padding-bottom:9px}.topActions{position:absolute;right:14px;top:12px}.title{padding-right:44px}.menuTile{min-height:100px}.calendarRow{grid-template-columns:44px 1fr}.calendarRow strong{grid-column:2}.calendarDate{width:42px;height:42px}}

/* V6.1 — navegação PF/PJ, dashboard compacto e mobile estável */
.topbarClean{display:grid;grid-template-columns:minmax(220px,1fr) auto minmax(220px,1fr);align-items:center;gap:18px;position:relative}
.topActions{justify-self:end}.topTitleBlock{min-width:0}.contextTabs{display:flex;align-items:center;gap:4px;padding:4px;background:#edf2f8;border:1px solid #e3e9f1;border-radius:14px;justify-self:center}.contextTabs button{border:0;background:transparent;color:#687589;display:flex;align-items:center;justify-content:center;gap:7px;min-width:100px;height:36px;padding:0 14px;border-radius:10px;font-weight:800;font-size:11px;cursor:pointer;transition:.18s}.contextTabs button.active{background:#fff;color:var(--primary);box-shadow:0 4px 14px rgba(18,38,65,.09)}
.dashboardIntro{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:4px 2px 18px;border-bottom:1px solid rgba(221,228,237,.8);margin-bottom:18px}.dashboardIntro h2{margin:5px 0 3px;font-size:25px;letter-spacing:-.035em}.dashboardIntro p{margin:0;color:var(--muted);font-size:11px}.introActions{display:flex;gap:8px;flex-shrink:0}
.kpiGrid .metriccard{min-height:146px}.kpiGrid .metriccard:first-child{background:#fff;color:var(--ink);border-color:var(--line)}.kpiGrid .metriccard:first-child .metric,.kpiGrid .metriccard:first-child .metriclabel{color:var(--ink)}.kpiGrid .metriccard:first-child .metricFoot{color:var(--muted)}
.bottomDock{overflow:visible}.bottomDock .dockLaunch{margin-top:-20px;height:68px}.bottomDock .dockLaunch span{width:52px;height:52px;border-radius:17px}
@media(max-width:900px){
  .topbarClean{grid-template-columns:1fr auto;gap:10px;padding-top:10px;padding-bottom:10px;height:auto;min-height:76px}.topbarLeft{min-width:0}.topActions{grid-column:2;grid-row:1}.contextTabs{grid-column:1/-1;grid-row:2;width:100%;justify-self:stretch}.contextTabs button{flex:1;min-width:0;height:38px;font-size:11px}.topSubtitle{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:240px}
  .dashboardIntro{padding:2px 0 14px;margin-bottom:14px}.dashboardIntro h2{font-size:21px}.dashboardIntro p{font-size:10px;line-height:1.45}.introActions{display:none}
  .kpiGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.kpiGrid .metriccard{min-height:128px;padding:14px!important}.metric{font-size:22px!important}.metriclabel{font-size:10px!important}.metricFoot{font-size:8.5px!important}.tinyPill{font-size:7.5px!important}
  .chartCard{min-height:0}.chartCard .chartWrap,.chartCard svg{max-height:270px}.dashboardMainGrid{grid-template-columns:1fr!important}.lowerGrid,.bottomGrid{grid-template-columns:1fr!important}
  .bottomDock{left:9px;right:9px;transform:none;width:auto;bottom:calc(8px + env(safe-area-inset-bottom));height:66px;border-radius:20px;padding:7px 6px;grid-template-columns:repeat(5,minmax(0,1fr));overflow:visible}.bottomDock a,.bottomDock button{min-width:0}.bottomDock .dockLaunch{height:66px;margin-top:-18px}.bottomDock .dockLaunch span{width:50px;height:50px;border-radius:16px}.bottomDock small{font-size:8px}.mainFull{padding-bottom:calc(96px + env(safe-area-inset-bottom))}
}
@media(max-width:560px){
  .mainFull{padding-left:10px;padding-right:10px}.topbarClean{margin-left:-10px;margin-right:-10px;padding-left:10px;padding-right:10px}.topBrandMark,.topBrandLogo{width:34px;height:34px}.title{font-size:17px;padding-right:0}.topSubtitle{font-size:8.5px;max-width:200px}.topActions .iconbtn{width:34px;height:34px}.contextTabs{border-radius:13px;padding:3px}.contextTabs button{height:36px}
  .kpiGrid{gap:9px!important}.kpiGrid .metriccard{min-height:122px;padding:12px!important;border-radius:18px!important}.metricTop{margin-bottom:8px!important}.metricIcon{width:38px!important;height:38px!important}.metric{font-size:20px!important}.dashboardIntro h2{font-size:19px}
  .morePanel{inset:8px 7px calc(80px + env(safe-area-inset-bottom))}.menuGroupGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.menuTile{min-height:100px!important}
}
@media(max-width:360px){.kpiGrid{grid-template-columns:1fr!important}.kpiGrid .metriccard{min-height:112px}.contextTabs button{font-size:10px}.bottomDock small{font-size:7px}}
.selfAccessCard .btn{margin-top:12px}.accessChoice{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.accessChoice button{border:1px solid var(--line);background:#fbfcfe;border-radius:14px;padding:12px;text-align:left;color:var(--ink);cursor:pointer;min-height:92px}.accessChoice button svg{color:var(--primary);margin-bottom:8px}.accessChoice button b,.accessChoice button small{display:block}.accessChoice button b{font-size:10.5px}.accessChoice button small{font-size:8.5px;color:var(--muted);margin-top:3px;line-height:1.3}.accessChoice button.active{border-color:color-mix(in srgb,var(--primary) 42%,var(--line));background:color-mix(in srgb,var(--primary) 6%,white);box-shadow:0 8px 20px color-mix(in srgb,var(--primary) 9%,transparent)}
@media(max-width:700px){.teamTopGrid{grid-template-columns:1fr!important}.accessChoice{grid-template-columns:1fr}.accessChoice button{min-height:72px;display:grid;grid-template-columns:32px 1fr;align-items:center}.accessChoice button svg{grid-row:1/3;margin:0}.accessChoice button small{grid-column:2}}

/* V6.2 — isolamento PF/PJ e revisão funcional */
.contextRedirect{display:flex;flex-direction:column;gap:5px;max-width:520px;margin:40px auto;text-align:center}.contextRedirect span{color:var(--muted);font-size:12px}
.businessHero{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:24px 26px;background:linear-gradient(135deg,#10284e 0%,color-mix(in srgb,var(--primary) 72%,#10284e) 100%);color:#fff;border:0;overflow:hidden;position:relative}.businessHero:after{content:"";position:absolute;width:240px;height:240px;border-radius:50%;right:-90px;top:-120px;background:rgba(255,255,255,.08)}.businessHeroTitle{display:flex;align-items:center;gap:13px;position:relative;z-index:1}.businessHero .investmentStats{position:relative;z-index:1}.businessHero .investmentStats>div span{color:rgba(255,255,255,.68)}
.contextTabs button{white-space:nowrap}
@media(max-width:900px){.businessHero{align-items:flex-start;flex-direction:column;padding:20px}.businessHero .investmentStats{width:100%;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.businessHero .investmentLink{grid-column:1/-1;justify-content:center}}
@media(max-width:560px){.dashboardIntro h2{line-height:1.15}.dashboardIntro p{max-width:96%}.businessHero .investmentStats{grid-template-columns:1fr 1fr}.businessHero .investmentStats>div:nth-child(3){grid-column:1/-1}.contextTabs button{padding:0 8px}.bottomDock{max-width:calc(100vw - 14px)}}
.tableSelect{min-width:125px;height:34px;border:1px solid var(--line);border-radius:9px;background:#fff;padding:0 8px;font-size:10px;color:var(--ink)}.tableActions{display:flex;gap:6px;white-space:nowrap}
.readonlyField{min-height:42px;border:1px solid var(--line);background:#f5f7fa;border-radius:11px;padding:12px 13px;font-weight:800;color:#526174}.contextSummary{appearance:none;width:100%;text-align:left;display:grid;grid-template-columns:48px 1fr 22px;align-items:center;gap:13px;cursor:pointer;transition:.18s}.contextSummary:hover,.contextSummary.active{border-color:color-mix(in srgb,var(--primary) 35%,var(--line));box-shadow:0 10px 28px rgba(20,38,65,.08)}.contextSummaryCopy{display:flex;flex-direction:column;gap:4px}.contextSummaryCopy small{font-size:8px;letter-spacing:.12em;font-weight:900;color:var(--primary)}.contextSummaryCopy b{font-size:15px}.contextSummaryCopy em{font-style:normal;color:var(--muted);font-size:10px;line-height:1.45}
.transferBox{margin:12px 0;padding:13px;border:1px solid color-mix(in srgb,var(--primary) 20%,var(--line));border-radius:13px;background:color-mix(in srgb,var(--primary) 4%,white)}

/* V6.6 — navegação adaptativa, preferências por dispositivo e organização visual */
.modernShell{background:#f4f7fb;min-height:100vh}.modernMain{min-width:0;flex:1;padding:0 26px 110px}.modernPage{max-width:1480px;margin:0 auto}.modernTopbar{max-width:1480px;margin:0 auto;border-bottom:1px solid #e5ebf3;background:rgba(244,247,251,.88);backdrop-filter:blur(18px);position:sticky;top:0;z-index:30}.withSidebar .modernMain{padding-left:28px}.withSidebar .modernPage,.withSidebar .modernTopbar{max-width:1600px}
.appSidebar{width:260px;min-width:260px;height:100vh;position:sticky;top:0;background:#fff;border-right:1px solid #e5ebf3;display:flex;flex-direction:column;z-index:50}.sideBrand{display:flex;align-items:center;gap:11px;padding:20px 18px 16px;border-bottom:1px solid #eef2f7}.sideBrandMark{width:38px;height:38px;border-radius:12px;background:var(--primary);color:#fff;display:grid;place-items:center;font-size:11px;font-weight:900;overflow:hidden}.sideBrandMark img{width:100%;height:100%;object-fit:contain}.sideBrand b,.sideBrand small{display:block}.sideBrand b{font-size:13px}.sideBrand small{font-size:9px;color:var(--muted);margin-top:2px}.sideContext{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:12px}.sideContext button{border:1px solid #e6ebf2;background:#f8fafc;border-radius:10px;height:38px;display:flex;align-items:center;justify-content:center;gap:6px;color:#687589;font-weight:800;font-size:10px;cursor:pointer}.sideContext button.active{background:color-mix(in srgb,var(--primary) 8%,white);color:var(--primary);border-color:color-mix(in srgb,var(--primary) 26%,#e6ebf2)}.sideScroll{overflow:auto;padding:4px 10px 14px;flex:1}.sideGroup{margin-top:14px}.sideGroupTitle{font-size:8px;letter-spacing:.12em;font-weight:900;color:#9aa6b6;padding:0 10px 7px}.sideItem{display:flex;align-items:center;gap:10px;min-height:40px;padding:0 10px;border-radius:10px;color:#526174;font-size:10.5px;font-weight:750;margin:2px 0}.sideItem:hover{background:#f5f8fc;color:#24364e}.sideItem.active{background:color-mix(in srgb,var(--primary) 9%,white);color:var(--primary);font-weight:900}.sideFooter{padding:12px;border-top:1px solid #eef2f7}.sideFooter button{width:100%;border:0;background:#f8fafc;border-radius:10px;height:40px;display:flex;align-items:center;gap:9px;padding:0 11px;color:#637087;cursor:pointer}.sideClose{margin-left:auto;border:0;background:#f3f6fa;border-radius:8px;width:32px;height:32px;display:grid;place-items:center}.drawerOverlay{position:fixed;inset:0;background:rgba(15,23,42,.35);z-index:70;border:0}.mobileDrawer{position:fixed;left:0;top:0;z-index:80;box-shadow:16px 0 40px rgba(20,38,65,.16)}.mobileMenuTrigger{width:38px;height:38px;border:1px solid #e5ebf3;background:#fff;border-radius:11px;display:grid;place-items:center;color:#42516a}.settingsStack{display:grid;gap:18px}.settingsHero{padding:24px 26px;background:linear-gradient(135deg,#fff 0%,color-mix(in srgb,var(--primary) 6%,white) 100%)}.settingsHero h2{margin:5px 0 5px;font-size:24px}.settingsHero p{margin:0;color:var(--muted);font-size:11px}.settingsGrid{display:grid;grid-template-columns:1.2fr .8fr;gap:18px}.devicePrefGrid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.devicePref{border:1px solid #e6ebf2;border-radius:16px;padding:16px;background:#fbfcfe}.devicePrefHead{display:flex;flex-direction:column;gap:3px;margin-bottom:12px}.devicePrefHead b{font-size:12px}.devicePrefHead small{font-size:9px;color:var(--muted)}.navChoiceGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.navChoiceCard{border:1px solid #e1e7ef;background:#fff;border-radius:13px;padding:13px;text-align:left;display:flex;flex-direction:column;gap:7px;min-height:100px;cursor:pointer;color:#5d6b80}.navChoiceCard b{font-size:10.5px;color:#24364e}.navChoiceCard small{font-size:8.5px;line-height:1.35;color:#7c899a}.navChoiceCard.active{border-color:color-mix(in srgb,var(--primary) 38%,#e1e7ef);background:color-mix(in srgb,var(--primary) 5%,white);box-shadow:0 8px 22px color-mix(in srgb,var(--primary) 9%,transparent);color:var(--primary)}.settingsActions{display:flex;align-items:center;gap:12px;margin-top:14px}.form input:disabled,.form select:disabled{background:#f1f4f8!important;color:#9aa6b5!important;cursor:not-allowed;opacity:1}.form:has(input:disabled){opacity:.88}.card{border-radius:18px;border-color:#e4eaf2;box-shadow:0 6px 22px rgba(26,45,73,.035)}.sectionhead h2{letter-spacing:-.02em}.tablewrap{border:1px solid #edf1f5;border-radius:14px;overflow:auto}.table thead th{background:#f8fafc;color:#7d8999;font-size:8px;letter-spacing:.08em}.table tbody tr:hover{background:#fbfcfe}.notice{border-radius:12px}.btn{border-radius:10px;min-height:38px}.field input,.field select,.field textarea{border-radius:10px;border-color:#dfe6ef;background:#fff}.field input:focus,.field select:focus,.field textarea:focus{outline:0;border-color:color-mix(in srgb,var(--primary) 45%,#dfe6ef);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 8%,transparent)}
@media(max-width:1100px){.settingsGrid,.devicePrefGrid{grid-template-columns:1fr}.navChoiceGrid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:900px){.modernMain{padding:0 10px calc(96px + env(safe-area-inset-bottom))}.modernTopbar{margin:0 -10px;padding-left:10px;padding-right:10px}.mobileDrawer{width:min(84vw,310px)}.settingsHero{padding:20px}.settingsHero h2{font-size:20px}.navChoiceGrid{grid-template-columns:1fr}.navChoiceCard{min-height:72px;display:grid;grid-template-columns:28px 1fr;align-items:center;gap:3px 8px}.navChoiceCard svg{grid-row:1/3}.navChoiceCard small{grid-column:2}.devicePref{padding:13px}.settingsActions{align-items:flex-start;flex-direction:column}.card{border-radius:16px}}

/* V6.6.1 — correção de proporções e aproveitamento de espaço no desktop */
/* O AppShell moderno usa flex; remove o deslocamento legado da antiga sidebar fixa. */
.modernShell > .modernMain{
  margin-left:0;
  width:auto;
  max-width:none;
  flex:1 1 auto;
}

/* Desktop: conteúdo acompanha a navegação escolhida e ocupa a área realmente disponível. */
@media(min-width:901px){
  .modernMain{
    padding-left:22px;
    padding-right:22px;
    padding-bottom:108px;
  }
  .modernPage,
  .modernTopbar{
    width:100%;
    max-width:1760px;
  }
  .withSidebar .modernMain{
    padding-left:18px;
    padding-right:20px;
  }
  .withSidebar .modernPage,
  .withSidebar .modernTopbar{
    width:100%;
    max-width:none;
    margin-left:0;
    margin-right:0;
  }
  .withSidebar .modernTopbar{
    padding-left:4px;
    padding-right:4px;
  }
  .withSidebar .pageContent{
    max-width:none;
    width:100%;
  }

  /* Sidebar um pouco mais compacta para priorizar o conteúdo. */
  .appSidebar{
    width:238px;
    min-width:238px;
  }
  .sideBrand{padding:16px 14px 13px}
  .sideContext{padding:10px}
  .sideScroll{padding-left:8px;padding-right:8px}
  .sideGroup{margin-top:11px}
  .sideItem{min-height:37px;padding:0 9px;font-size:10px}
  .sideGroupTitle{padding-left:9px;padding-bottom:5px}

  /* Menu inferior no computador: aspecto de dock desktop, não de barra de celular. */
  .modernShell:not(.withSidebar) .bottomDock{
    width:min(900px,calc(100vw - 96px));
    height:68px;
    bottom:14px;
    border-radius:20px;
    padding:7px 16px;
  }
  .modernShell:not(.withSidebar) .bottomDock a,
  .modernShell:not(.withSidebar) .bottomDock button{height:50px}
  .modernShell:not(.withSidebar) .bottomDock .dockLaunch{height:66px;margin-top:-18px}
  .modernShell:not(.withSidebar) .bottomDock .dockLaunch span{width:50px;height:50px;border-radius:16px}

  /* Preferências: blocos mais próximos e melhor distribuição horizontal. */
  .settingsStack{gap:14px}
  .settingsHero{padding:20px 22px}
  .settingsHero h2{font-size:22px}
  .devicePrefGrid{gap:14px}
  .devicePref{padding:14px}
  .settingsGrid{grid-template-columns:minmax(0,1.35fr) minmax(320px,.85fr);gap:14px}
  .navChoiceGrid{gap:8px}
  .navChoiceCard{min-height:92px;padding:12px}
}

/* Telas largas: permitir que dashboards usem o espaço sem parecerem "soltos" no centro. */
@media(min-width:1500px){
  .modernShell:not(.withSidebar) .modernPage,
  .modernShell:not(.withSidebar) .modernTopbar{max-width:1640px}
  .withSidebar .modernMain{padding-left:20px;padding-right:22px}
}

/* V6.7 — acesso silencioso + PWA */
.silentGate{min-height:100dvh;background:var(--app-bg,#f4f7fb);display:flex;align-items:center;justify-content:center;gap:10px;color:#64748b;font-size:14px}
.silentGate:empty{background:var(--app-bg,#f4f7fb)}
.silentGateSpinner{width:18px;height:18px;border:2px solid #dbe3ef;border-top-color:#1769e0;border-radius:50%;animation:isiSpin .7s linear infinite}
@keyframes isiSpin{to{transform:rotate(360deg)}}
.pwaInstallToast{position:fixed;z-index:9999;right:18px;bottom:18px;max-width:420px;background:#fff;border:1px solid #e4eaf2;box-shadow:0 20px 50px rgba(15,23,42,.16);border-radius:18px;padding:14px 48px 14px 16px;display:flex;align-items:center;gap:12px}
.pwaInstallToast>div{display:flex;flex-direction:column;min-width:0}.pwaInstallToast span{font-size:12px;color:#64748b;margin-top:2px}.pwaInstallToast>button:not(.pwaClose){border:0;border-radius:12px;background:#1769e0;color:#fff;padding:10px 14px;font-weight:700;white-space:nowrap}.pwaInstallToast>button:disabled{background:#94a3b8}.pwaInstallToast .pwaClose{position:absolute;right:10px;top:8px;border:0;background:transparent;font-size:24px;color:#94a3b8}
@media(max-width:700px){.pwaInstallToast{left:10px;right:10px;bottom:calc(90px + env(safe-area-inset-bottom));max-width:none;flex-wrap:wrap}.pwaInstallToast>button:not(.pwaClose){width:100%}}


/* V6.7.1 — cabeçalho PWA/mobile: marca sempre visível e seletor PF/PJ abaixo */
.mobileGreetingGroup{display:none}
@media(max-width:900px){
  .modernTopbar{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-rows:auto auto;
    column-gap:10px;
    row-gap:10px;
    min-height:0;
    padding-top:12px;
    padding-bottom:10px;
    background:rgba(248,250,253,.96);
    border-bottom:1px solid #e6ecf3;
  }
  .modernTopbar .topbarLeft{
    grid-column:1;
    grid-row:1;
    display:flex;
    align-items:center;
    gap:11px;
    min-width:0;
  }
  .modernTopbar .topActions{
    grid-column:2;
    grid-row:1;
    position:static;
    align-self:center;
    display:flex;
    gap:6px;
  }
  .modernTopbar .contextTabs{
    grid-column:1/-1;
    grid-row:2;
    width:100%;
    margin:0;
    padding:4px;
    border-radius:16px;
    background:#eef3f8;
    border:1px solid #e3e9f1;
    box-shadow:none;
  }
  .modernTopbar .contextTabs button{
    flex:1;
    min-width:0;
    height:44px;
    border-radius:12px;
    font-size:12px;
    gap:8px;
  }
  .modernTopbar .contextTabs button.active{
    background:var(--primary);
    color:#fff;
    box-shadow:0 7px 18px color-mix(in srgb,var(--primary) 22%,transparent);
  }
  .modernTopbar .topBrandMini{
    flex:0 0 auto;
    display:flex;
    align-items:center;
  }
  .modernTopbar .topBrandMark,
  .modernTopbar .topBrandLogo{
    width:52px;
    height:52px;
    border-radius:14px;
    padding:5px;
  }
  .modernTopbar .topTitleBlock{min-width:0}
  .modernTopbar .desktopTitleGroup{display:none}
  .modernTopbar .mobileGreetingGroup{display:block;min-width:0}
  .modernTopbar .mobileGreetingGroup h1{
    margin:0;
    font-size:18px;
    line-height:1.15;
    letter-spacing:-.025em;
    color:#172033;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .modernTopbar .mobileGreetingGroup div{
    margin-top:4px;
    font-size:10.5px;
    color:#718096;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .modernTopbar .searchBtn{display:none}
  .modernTopbar .desktopBrandName{display:none}
  .modernTopbar .iconbtn{
    width:42px;
    height:42px;
    border-radius:13px;
    background:#fff;
  }
  .modernPage{padding-top:14px}
}
@media(max-width:420px){
  .modernTopbar{column-gap:7px;padding-top:10px}
  .modernTopbar .topbarLeft{gap:9px}
  .modernTopbar .topBrandMark,
  .modernTopbar .topBrandLogo{width:46px;height:46px;border-radius:13px}
  .modernTopbar .mobileGreetingGroup h1{font-size:16px}
  .modernTopbar .mobileGreetingGroup div{font-size:9.5px;max-width:210px}
  .modernTopbar .iconbtn{width:38px;height:38px;border-radius:12px}
  .modernTopbar .contextTabs button{height:42px;font-size:11.5px}
}


/* V6.7.6 — mobile: seletor PF/PJ nunca sobrepõe conteúdo */
@media(max-width:900px){
  .modernTopbar{
    height:auto!important;
    min-height:0!important;
    overflow:visible!important;
    align-items:stretch!important;
  }
  .modernTopbar .contextTabs{
    position:static!important;
    inset:auto!important;
    transform:none!important;
    float:none!important;
    z-index:auto!important;
    order:initial!important;
  }
  .modernTopbar .topActions{
    position:static!important;
    inset:auto!important;
    transform:none!important;
  }
  .modernPage{
    position:relative;
    z-index:1;
    padding-top:12px!important;
  }
  .modernPage>.notice:first-child,
  .modernPage>.card:first-child{scroll-margin-top:150px}
}
@media(max-width:420px){
  .modernTopbar .contextTabs{margin-top:1px!important}
  .modernPage{padding-top:10px!important}
}


/* V6.7.9 — fechamento mobile/SSO: cabeçalho em fluxo normal em todas as telas */
@media(max-width:900px){
  .modernTopbar{
    position:relative!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-rows:auto auto!important;
    height:auto!important;
    min-height:0!important;
    overflow:visible!important;
  }
  .modernTopbar .topbarLeft{grid-column:1!important;grid-row:1!important;min-width:0!important}
  .modernTopbar .topActions{grid-column:2!important;grid-row:1!important;position:static!important}
  .modernTopbar .contextTabs{
    grid-column:1/-1!important;
    grid-row:2!important;
    position:relative!important;
    width:100%!important;
    max-width:none!important;
    left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
    transform:none!important;
    margin:0!important;
    z-index:1!important;
  }
  .modernTopbar .contextTabs button{min-width:0!important;flex:1 1 0!important}
  .modernPage{clear:both!important;padding-top:12px!important}
}
@media(max-width:420px){
  .modernTopbar{row-gap:8px!important}
  .modernTopbar .contextTabs{margin:0!important}
  .modernTopbar .contextTabs button{height:42px!important;padding-inline:7px!important}
}

/* V6.8.0 — central de notificações */
.notifyOverlay{position:fixed;inset:0;border:0;background:rgba(10,20,35,.28);z-index:120}
.notifyPanel{position:fixed;right:18px;top:18px;bottom:18px;width:min(430px,calc(100vw - 28px));z-index:121;background:#fff;border:1px solid #dce4ee;border-radius:22px;box-shadow:0 24px 70px rgba(15,35,60,.24);display:flex;flex-direction:column;overflow:hidden;color:#172033}
.notifyHeader{display:flex;align-items:center;justify-content:space-between;padding:22px 22px 14px;border-bottom:1px solid #edf1f5}.notifyHeader h2{margin:3px 0 0}.notifyPermission{margin:14px;display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:13px;border-radius:14px;background:#f3f7ff;border:1px solid #dce8ff}.notifyPermission div{display:flex;flex-direction:column;gap:3px}.notifyPermission small{color:#667085;line-height:1.35}.notifySummary{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0 14px 14px}.notifySummary>div{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:7px;padding:12px;border:1px solid #e7ebf0;border-radius:14px}.notifySummary span{font-size:12px;color:#667085}.notifySummary b{font-size:18px}.notifySummary small{grid-column:2/4;color:#667085}.notifyList{overflow:auto;padding:0 14px;flex:1}.notifyItem{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:12px 4px;border-bottom:1px solid #edf1f5;color:inherit;text-decoration:none}.notifyItem>div{display:flex;flex-direction:column;gap:3px;min-width:0}.notifyItem b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.notifyItem small{color:#667085}.notifyItem strong{font-size:13px}.notifyState{width:32px;height:32px;border-radius:10px;background:#fff5df;color:#b26b00;display:grid;place-items:center}.notifyState.overdue{background:#fff0f0;color:#c93636}.notifyEmpty{display:flex;min-height:190px;align-items:center;justify-content:center;flex-direction:column;gap:7px;color:#667085;text-align:center}.notifyEmpty b{color:#25324a}.notifyFooter{padding:15px 20px;text-align:center;border-top:1px solid #edf1f5;text-decoration:none;font-weight:700;color:var(--primary)}
@media(max-width:600px){.notifyPanel{inset:10px;width:auto;border-radius:18px}.notifyPermission{grid-template-columns:auto 1fr}.notifyPermission .btn{grid-column:1/3;width:100%}}

/* V6.8.0 — cores por conta/cartão */
.bankColorCard,.creditVisual{position:relative;overflow:hidden}.bankColorStripe{position:absolute;inset:0 auto 0 0;width:6px;background:var(--bank-color)}.inlineColor{display:flex;align-items:center;justify-content:space-between;margin-top:14px;padding-top:10px;border-top:1px solid #edf1f5;font-size:12px;color:#667085}.inlineColor input,.creditVisualTop input{width:34px;height:28px;padding:0;border:0;background:transparent}.creditVisual:before{content:"";position:absolute;left:0;right:0;top:0;height:6px;background:var(--card-color)}.creditVisualTop{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.creditVisualTop h3{margin:7px 0 12px}.row4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}@media(max-width:900px){.row4{grid-template-columns:1fr 1fr}}@media(max-width:520px){.row4{grid-template-columns:1fr}}

/* V6.8.0 — leitura mensal e compromissos futuros */
.statusMini{display:flex;flex-direction:column;gap:5px;border-top:4px solid #dce4ee}.statusMini>span{font-size:12px;color:#667085}.statusMini>b{font-size:22px}.statusMini>small{color:#8490a3}.statusMini.paid{border-top-color:#22a06b}.statusMini.pending{border-top-color:#f2a93b}.statusMini.overdue{border-top-color:#e34b4b}.statusMini.future{border-top-color:var(--primary)}.futureMonthGrid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.futureMonthGrid>div{padding:14px;border:1px solid #e7ebf0;border-radius:14px;display:flex;flex-direction:column;gap:6px}.futureMonthGrid span{text-transform:uppercase;font-size:12px;color:#667085}.futureMonthGrid b{font-size:18px}.futureBar{height:7px;border-radius:10px;background:#edf1f5;overflow:hidden}.futureBar i{display:block;height:100%;background:var(--primary);border-radius:10px}@media(max-width:760px){.futureMonthGrid{grid-template-columns:1fr 1fr}}@media(max-width:420px){.futureMonthGrid{grid-template-columns:1fr}}

/* V6.8.1 — navegação mobile respeita a área segura do aparelho/navegador. */
@media(max-width:900px){
  .bottomDock{
    left:0!important;
    right:0!important;
    bottom:0!important;
    width:100%!important;
    max-width:none!important;
    height:calc(68px + env(safe-area-inset-bottom, 0px))!important;
    padding:7px 9px max(7px, env(safe-area-inset-bottom, 0px))!important;
    border-radius:20px 20px 0 0!important;
    transform:none!important;
  }
  .modernMain,.mainFull{
    padding-bottom:calc(104px + env(safe-area-inset-bottom, 0px))!important;
  }
}


/* V6.9.0 — tutorial completo + leitura dos gráficos de rosca */
.donutlegend>div span{display:flex;flex-direction:column;min-width:0}.donutlegend>div span small{font-size:10px;color:#8a96a8;margin-top:2px}.balanceDonutGrid{align-items:stretch}.donutExplain{display:flex;flex-direction:column}.tutorialTip{margin-top:auto;padding:14px;border-radius:14px;background:color-mix(in srgb,var(--primary) 7%,white);border:1px solid color-mix(in srgb,var(--primary) 18%,white);display:flex;flex-direction:column;gap:4px}.tutorialTip span{font-size:12px;color:#667085;line-height:1.5}
.tutorialPage{display:flex;flex-direction:column;gap:16px}.tutorialHero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:26px}.tutorialHero h2{margin:7px 0 8px;font-size:27px}.tutorialHero p{margin:0;max-width:760px;color:#667085;line-height:1.55}.tutorialStart>div{display:flex;flex-direction:column;gap:7px;min-height:145px}.tutorialStart svg{color:var(--primary)}.tutorialStart b{font-size:15px}.tutorialStart span{font-size:12px;color:#667085;line-height:1.5}.whatsNew{display:grid;grid-template-columns:minmax(210px,.7fr) 1.3fr;gap:24px}.whatsNew h2{margin:6px 0 0}.newItems{display:grid;grid-template-columns:1fr 1fr;gap:10px}.newItems span{padding:12px;border-radius:12px;background:#f7f9fc;font-size:12px;color:#667085;line-height:1.45}.newItems b{color:#263247}.tutorialSearch{height:48px;display:flex;align-items:center;gap:10px;padding:0 15px;background:#fff;border:1px solid #dfe6ef;border-radius:15px}.tutorialSearch svg{color:#8490a3}.tutorialSearch input{border:0;outline:0;background:transparent;width:100%;font:inherit;color:#263247}.tutorialList{display:flex;flex-direction:column;gap:9px}.tutorialItem{padding:0!important;overflow:hidden}.tutorialItem>button{width:100%;border:0;background:transparent;display:grid;grid-template-columns:42px 1fr 24px;gap:12px;align-items:center;text-align:left;padding:15px 17px;cursor:pointer;color:inherit}.tutorialIcon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:color-mix(in srgb,var(--primary) 8%,white);color:var(--primary)}.tutorialItem>button>span:nth-child(2){display:flex;flex-direction:column;gap:4px}.tutorialItem>button small{font-size:11px;color:#7a8798;line-height:1.35}.tutorialChevron{color:#8995a5;transition:.18s}.tutorialItem.active .tutorialChevron{transform:rotate(180deg)}.tutorialAnswer{padding:0 17px 17px 71px;border-top:1px solid #edf1f5}.tutorialAnswer p{margin:14px 0;color:#59667a;line-height:1.65;font-size:13px}.tutorialAnswer a{display:inline-flex;align-items:center;gap:4px;color:var(--primary);font-weight:800;text-decoration:none;font-size:12px}.tutorialFooter{border-left:4px solid var(--primary)}.tutorialFooter b{font-size:15px}.tutorialFooter p{margin:6px 0 0;color:#667085;line-height:1.55;font-size:12px}
@media(max-width:760px){.tutorialHero{align-items:flex-start;flex-direction:column;padding:20px}.tutorialHero h2{font-size:22px}.tutorialHero .btn{width:100%;justify-content:center}.tutorialStart{grid-template-columns:1fr!important}.tutorialStart>div{min-height:auto}.whatsNew{grid-template-columns:1fr}.newItems{grid-template-columns:1fr}.tutorialItem>button{grid-template-columns:38px 1fr 20px;padding:13px}.tutorialIcon{width:38px;height:38px}.tutorialAnswer{padding:0 13px 15px 13px}.balanceDonutGrid{grid-template-columns:1fr!important}}


/* ISI Demo isolado: sem persistência e sem acesso a APIs */
.demoRoot{--accent:#1769e0;min-height:100vh;background:#f4f7fb;color:#172033;display:grid;grid-template-columns:250px 1fr;font-family:Inter,system-ui,sans-serif}.demoSide{background:#101828;color:#fff;padding:20px 14px;position:sticky;top:0;height:100vh;overflow:auto}.demoBrand{display:flex;gap:11px;align-items:center;padding:6px 8px 20px}.demoBrand>b{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--accent);font-size:18px}.demoBrand span{display:flex;flex-direction:column}.demoBrand small{color:#98a2b3;margin-top:2px}.demoSide nav{display:grid;gap:4px}.demoSide nav button{border:0;background:transparent;color:#d0d5dd;text-align:left;padding:10px 11px;border-radius:9px;display:flex;align-items:center;gap:7px;cursor:pointer}.demoSide nav button.active{background:var(--accent);color:#fff;font-weight:700}.demoSide nav button.locked{color:#667085;cursor:pointer}.demoSide nav button.locked:hover{background:#1d2939;color:#98a2b3}.demoSep{font-size:10px;color:#667085;padding:18px 10px 5px;font-weight:800;letter-spacing:.08em}.demoMain{min-width:0}.demoBanner{background:#eaf2ff;border-bottom:1px solid #cfe0ff;padding:10px 24px;display:flex;justify-content:space-between;gap:12px;align-items:center;color:#1849a9;font-size:13px}.demoBanner button{border:0;background:transparent;color:inherit;font-weight:700;display:flex;gap:6px;cursor:pointer}.demoMain header{padding:28px 30px 16px;display:flex;justify-content:space-between;align-items:flex-end;gap:20px}.demoMain header small{font-weight:800;color:var(--accent);letter-spacing:.08em}.demoMain header h1{margin:5px 0 2px;font-size:30px}.demoMain header p{margin:0;color:#667085}.demoPrimary{border:0;border-radius:10px;background:var(--accent);color:#fff;padding:11px 15px;font-weight:800;display:flex;align-items:center;justify-content:center;gap:7px;cursor:pointer}.demoStats{padding:0 30px 18px;display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.demoStats article,.demoCard{background:#fff;border:1px solid #e4e7ec;border-radius:14px;box-shadow:0 2px 8px #1018280a}.demoStats article{padding:17px;display:grid;gap:4px}.demoStats small,.demoStats span,.demoCardHead span,.demoRow span{color:#667085}.demoStats b{font-size:22px}.demoCard{margin:0 30px 30px;overflow:hidden}.demoCardHead{padding:18px;display:flex;justify-content:space-between;border-bottom:1px solid #eaecf0}.demoCardHead>div{display:grid;gap:3px}.demoPill{display:flex;align-items:center;gap:5px;background:#ecfdf3;padding:6px 9px;border-radius:999px;color:#027a48!important;font-size:12px}.demoRow{padding:15px 18px;border-bottom:1px solid #f2f4f7;display:grid;grid-template-columns:1fr 140px 100px;gap:15px;align-items:center}.demoRow>div{display:grid}.demoRow em{font-style:normal;font-size:12px;background:#f2f4f7;padding:6px 8px;border-radius:999px;text-align:center}.demoOverlay{position:fixed;inset:0;background:#10182899;display:grid;place-items:center;padding:20px;z-index:9999}.demoModal{width:min(440px,100%);background:#fff;border-radius:16px;padding:24px;position:relative;display:grid;gap:13px}.demoModal .close{position:absolute;right:12px;top:12px;border:0;background:transparent;cursor:pointer}.demoModal h2,.demoModal p{margin:0}.demoModal>small{color:var(--accent);font-weight:800}.demoModal label{display:grid;gap:5px;font-weight:700;font-size:13px}.demoModal input{border:1px solid #d0d5dd;border-radius:9px;padding:11px;font:inherit}@media(max-width:800px){.demoRoot{display:block}.demoSide{height:auto;position:relative;padding:12px}.demoSide nav{display:flex;overflow:auto}.demoSide nav button{white-space:nowrap}.demoSep{display:none}.demoSide nav button.locked{display:none}.demoBrand{padding:2px 4px 10px}.demoBanner{padding:9px 13px}.demoBanner span{font-size:11px}.demoMain header{padding:20px 15px 13px;align-items:flex-start}.demoMain header h1{font-size:24px}.demoMain header p{font-size:12px}.demoPrimary{padding:10px}.demoStats{padding:0 15px 14px;grid-template-columns:1fr}.demoCard{margin:0 15px 90px}.demoCardHead{gap:10px}.demoPill{display:none}.demoRow{grid-template-columns:1fr auto}.demoRow em{grid-column:1/-1;justify-self:start}.demoSide nav button.locked:first-of-type{display:flex}}

/* V7.1.5 — refinamento de dashboard preservando a identidade e as cores escolhidas pelo usuário */
.chartSummary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px}.chartSummary>span{display:grid;gap:2px;padding:9px 10px;border:1px solid var(--line);border-radius:12px;background:color-mix(in srgb,var(--primary) 2%,#fff)}.chartSummary small{font-size:9px;color:var(--muted);font-weight:700;text-transform:uppercase;letter-spacing:.04em}.chartSummary b{font-size:12px}.dashboardGoals{overflow:hidden}.goalPreviewGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.goalPreview{border:1px solid var(--line);border-radius:14px;padding:13px;background:color-mix(in srgb,var(--primary) 2%,#fff)}.goalPreviewHead{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px}.goalPreviewHead>div{display:grid;gap:2px;min-width:0}.goalPreviewHead b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.goalPreviewHead span{font-size:9.5px;color:var(--muted)}.goalPreviewHead strong{font-size:13px;color:var(--primary)}.goalPreviewValues{display:flex;justify-content:space-between;gap:8px;margin-top:7px;font-size:10px;color:var(--muted)}.goalPreviewValues b{color:var(--ink)}.compactEmpty{padding:12px;text-align:left}.compactEmpty a{color:var(--primary);font-weight:800}@media(max-width:900px){.goalPreviewGrid{grid-template-columns:1fr}.chartSummary{grid-template-columns:1fr 1fr 1fr}}@media(max-width:420px){.chartSummary{gap:5px}.chartSummary>span{padding:7px}.chartSummary b{font-size:10.5px}.chartSummary small{font-size:7.5px}}
/* V7.1.6 — notificações e refinamento visual sem alterar a paleta do usuário */
.notificationTrigger{position:relative}.notifyBadge{position:absolute;right:-5px;top:-5px;min-width:18px;height:18px;padding:0 5px;border-radius:10px;background:#d92d20;color:white;border:2px solid white;display:grid;place-items:center;font-size:10px;font-weight:800;line-height:1}.notifyHeaderActions{display:flex;gap:6px}.notifyHeader small{display:block;margin-top:4px;color:#667085}.notifyPermission.warning{background:#fff8e7;border-color:#f6d58a}.notifyItem.unread{background:color-mix(in srgb,var(--primary) 6%,white);border-radius:12px;padding-left:10px;padding-right:10px}.notifyState.normal{background:color-mix(in srgb,var(--primary) 10%,white);color:var(--primary)}.notifyState.high{background:#fff4e5;color:#b54708}.notifyState.critical{background:#fff0f0;color:#c93636}.notifyState.low{background:#f2f4f7;color:#667085}.unreadPulse{width:8px;height:8px;border-radius:50%;background:var(--primary)}.readCheck{color:#98a2b3}.notifyFooterBar{padding:12px 18px;border-top:1px solid #edf1f5;display:flex;justify-content:space-between;align-items:center;gap:10px}.notifyFooterBar button,.notifyFooterBar a{border:0;background:transparent;color:var(--primary);font-weight:750;text-decoration:none;cursor:pointer}.notificationSettings{margin-top:16px}.notificationSettings .sectionhead svg{color:var(--primary)}.notificationPermissionRow{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;border:1px solid #e7ebf0;border-radius:14px;margin-bottom:14px}.notificationPermissionRow>div{display:flex;flex-direction:column;gap:3px}.notificationPermissionRow span{font-size:12px;color:#667085}.notificationToggleGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:14px}.notificationToggleGrid label{display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid #e7ebf0;border-radius:12px;background:#fff}.notificationToggleGrid input{margin-top:3px}.notificationToggleGrid span{display:flex;flex-direction:column;gap:2px}.notificationToggleGrid small{color:#667085}.notificationSettings select{width:100%;padding:10px;border:1px solid #d5dce5;border-radius:10px;background:#fff}@media(max-width:700px){.notificationToggleGrid{grid-template-columns:1fr}.notifyBadge{right:-3px;top:-3px}.notificationPermissionRow{align-items:flex-start}.notificationPermissionRow .btn{white-space:nowrap}}


/* V7.1.7 — tutorial guiado no elemento real */
.tutorialAnswerActions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.tutorialPlay{display:inline-flex!important;align-items:center;gap:6px;background:var(--primary);color:white!important;padding:8px 11px;border-radius:10px;text-decoration:none}.finTourLayer{position:fixed;inset:0;z-index:9999;pointer-events:none}.finTourShade{position:absolute;inset:0;background:rgba(5,16,30,.48);pointer-events:auto}.finTourFocus{position:fixed;border:3px solid var(--primary);border-radius:16px;box-shadow:0 0 0 9999px rgba(5,16,30,.38),0 0 0 5px color-mix(in srgb,var(--primary) 24%,transparent);z-index:2;pointer-events:none;transition:.2s}.finTourBubble{position:fixed;z-index:3;width:min(350px,calc(100vw - 24px));background:#fff;color:#263247;border:1px solid #dce5ef;border-radius:16px;padding:17px;box-shadow:0 22px 70px rgba(5,20,38,.28);pointer-events:auto}.finTourBubble>span{font-size:10px;font-weight:900;letter-spacing:.08em;color:var(--primary)}.finTourBubble h3{margin:6px 28px 7px 0;font-size:17px}.finTourBubble p{margin:0;color:#607086;font-size:13px;line-height:1.55}.finTourBubble small{display:block;margin-top:8px;color:#7a8798}.finTourClose{position:absolute;right:9px;top:9px;border:0;background:#f3f6fa;width:30px;height:30px;border-radius:9px;display:grid;place-items:center;cursor:pointer}.finTourActions{display:flex;gap:7px;justify-content:flex-end;margin-top:15px}.finTourActions button{border:1px solid #dce5ef;background:#fff;padding:8px 11px;border-radius:9px;font-weight:800;cursor:pointer}.finTourActions button.primary{background:var(--primary);border-color:var(--primary);color:#fff}@media(max-width:760px){.finTourBubble{left:12px!important;right:12px!important;bottom:auto;width:auto}.finTourFocus{border-radius:12px}}

/* V7.1.8 — tabelas críticas viram cards somente no mobile; desktop permanece intacto */
@media(max-width:650px){
  .mobileCardsTable{display:block;min-width:0!important;width:100%}
  .mobileCardsTable thead{display:none}
  .mobileCardsTable tbody{display:grid;gap:10px}
  .mobileCardsTable tr{display:block;background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px 12px;box-shadow:0 4px 14px rgba(14,31,53,.035)}
  .mobileCardsTable td{display:grid;grid-template-columns:minmax(86px,34%) minmax(0,1fr);gap:10px;align-items:flex-start;width:100%;padding:8px 0!important;border-bottom:1px solid #edf0f5!important;white-space:normal!important;overflow-wrap:anywhere}
  .mobileCardsTable td:last-child{display:block;border-bottom:0!important;padding-bottom:0!important}
  .mobileCardsTable td::before{font-size:9px;line-height:1.25;font-weight:850;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
  .mobileCardsTable td:last-child::before{display:block;margin-bottom:7px}
  .mobileCardsTable td:last-child>div{flex-wrap:wrap!important}
  .mobileTransactionsTable td:nth-child(1)::before{content:'Data'}.mobileTransactionsTable td:nth-child(2)::before{content:'Descrição'}.mobileTransactionsTable td:nth-child(3)::before{content:'Categoria'}.mobileTransactionsTable td:nth-child(4)::before{content:'Status'}.mobileTransactionsTable td:nth-child(5)::before{content:'Valor'}.mobileTransactionsTable td:nth-child(6)::before{content:'Ações'}
  .mobileDebtsTable td:nth-child(1)::before{content:'Compromisso'}.mobileDebtsTable td:nth-child(2)::before{content:'Original'}.mobileDebtsTable td:nth-child(3)::before{content:'Saldo'}.mobileDebtsTable td:nth-child(4)::before{content:'Parcela'}.mobileDebtsTable td:nth-child(5)::before{content:'Progresso'}.mobileDebtsTable td:nth-child(6)::before{content:'Próximo venc.'}.mobileDebtsTable td:nth-child(7)::before{content:'Ações'}
  .mobileInvestmentsTable td:nth-child(1)::before{content:'Ativo'}.mobileInvestmentsTable td:nth-child(2)::before{content:'Tipo'}.mobileInvestmentsTable td:nth-child(3)::before{content:'Instituição'}.mobileInvestmentsTable td:nth-child(4)::before{content:'Aplicado'}.mobileInvestmentsTable td:nth-child(5)::before{content:'Valor atual'}.mobileInvestmentsTable td:nth-child(6)::before{content:'Resultado'}.mobileInvestmentsTable td:nth-child(7)::before{content:'Vencimento'}.mobileInvestmentsTable td:nth-child(8)::before{content:'Ações'}
  .mobileAssetsTable td:nth-child(1)::before{content:'Bem'}.mobileAssetsTable td:nth-child(2)::before{content:'Tipo'}.mobileAssetsTable td:nth-child(3)::before{content:'Aquisição'}.mobileAssetsTable td:nth-child(4)::before{content:'Valor atual'}.mobileAssetsTable td:nth-child(5)::before{content:'Variação'}.mobileAssetsTable td:nth-child(6)::before{content:'Ações'}
  .mobileContactsTable td:nth-child(1)::before{content:'Nome'}.mobileContactsTable td:nth-child(2)::before{content:'Tipo'}.mobileContactsTable td:nth-child(3)::before{content:'Documento'}.mobileContactsTable td:nth-child(4)::before{content:'Contato'}.mobileContactsTable td:nth-child(5)::before{content:'Ações'}
}

/* V7.1.9 — Dívidas/Financiamentos: cronograma, pagamentos e auditoria */
.debtTopMetrics .card{min-height:118px}.debtFormHint{padding:10px 12px;border:1px solid var(--line);border-radius:11px;background:color-mix(in srgb,var(--primary) 4%,white);font-size:12px;color:var(--muted)}.debtFormHint b{color:var(--ink)}.debtActions{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.debtProgress{width:120px;max-width:100%;margin-top:6px}.debtDetail{overflow:hidden}.debtSummaryGrid{margin-top:4px}.debtMiniMetric{border:1px solid var(--line);border-radius:14px;padding:13px;background:color-mix(in srgb,var(--primary) 2%,#fff);display:grid;gap:4px}.debtMiniMetric span{font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:800}.debtMiniMetric b{font-size:18px}.debtMiniMetric small{font-size:10px;color:var(--muted)}.debtLegacyNotice{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:16px}.debtTimeline{display:grid;gap:9px}.debtTimelineItem{border:1px solid var(--line);border-radius:13px;padding:12px 13px;display:flex;justify-content:space-between;gap:14px;align-items:flex-start;background:#fff}.debtTimelineItem>div:first-child{display:grid;gap:3px;min-width:0}.debtTimelineItem span,.debtTimelineItem small{font-size:11px;color:var(--muted);line-height:1.45}.debtTimelineItem.reversed{opacity:.68;background:#fafafa}.debtTimelineItem.reversed b{text-decoration:line-through}.debtPaymentPanel{border-color:color-mix(in srgb,var(--primary) 26%,var(--line));box-shadow:0 12px 34px color-mix(in srgb,var(--primary) 9%,transparent)}
@media(max-width:900px){.debtSummaryGrid{grid-template-columns:1fr 1fr}.debtTimelineItem{flex-direction:column}.debtTimelineItem .debtActions{width:100%}}
@media(max-width:650px){
  .debtTopMetrics{grid-template-columns:1fr}.debtSummaryGrid{grid-template-columns:1fr 1fr;gap:8px}.debtMiniMetric{padding:10px}.debtMiniMetric b{font-size:15px}.debtProgress{width:100%}
  .mobileDebtInstallmentsTable td:nth-child(1)::before{content:'Parcela'}.mobileDebtInstallmentsTable td:nth-child(2)::before{content:'Vencimento'}.mobileDebtInstallmentsTable td:nth-child(3)::before{content:'Base'}.mobileDebtInstallmentsTable td:nth-child(4)::before{content:'Acréscimos'}.mobileDebtInstallmentsTable td:nth-child(5)::before{content:'Desconto'}.mobileDebtInstallmentsTable td:nth-child(6)::before{content:'Devido'}.mobileDebtInstallmentsTable td:nth-child(7)::before{content:'Pago'}.mobileDebtInstallmentsTable td:nth-child(8)::before{content:'Saldo'}.mobileDebtInstallmentsTable td:nth-child(9)::before{content:'Status'}.mobileDebtInstallmentsTable td:nth-child(10)::before{content:'Ações'}
}
@media(max-width:420px){.debtSummaryGrid{grid-template-columns:1fr}.debtActions .btn,.debtActions label.btn{flex:1 1 auto;text-align:center}.debtTimelineItem{padding:10px}}

/* V7.1.10 — Compartilhados / Rateios (PF) */
.sharedPage{display:grid;gap:0}.sharedHero{display:flex;align-items:center;justify-content:space-between;gap:22px;background:linear-gradient(125deg,#fff,color-mix(in srgb,var(--primary) 6%,white));border-color:color-mix(in srgb,var(--primary) 18%,var(--line))}.sharedHero h2{margin:5px 0 4px;font-size:23px;letter-spacing:-.02em}.sharedHero p{margin:0;max-width:760px;color:var(--muted);font-size:12px;line-height:1.5}.sharedHeroStats{display:flex;gap:10px;flex:0 0 auto}.sharedHeroStats>div,.sharedMetric{min-width:105px;border:1px solid #e7ecf3;border-radius:14px;padding:12px;background:rgba(255,255,255,.82);display:grid;gap:3px}.sharedHeroStats span,.sharedMetric span{font-size:9px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:800}.sharedHeroStats b,.sharedMetric b{font-size:19px}.sharedTopGrid,.sharedTwoCols{display:grid;grid-template-columns:1fr 1fr;gap:16px}.sharedGroupList,.sharedParticipantList,.sharedSuggestionList,.sharedSettlementList{display:grid;gap:8px}.sharedGroupCard{width:100%;border:1px solid #e4eaf2;background:#fff;border-radius:13px;padding:12px;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;cursor:pointer;color:var(--ink)}.sharedGroupCard:hover{border-color:color-mix(in srgb,var(--primary) 30%,#e4eaf2)}.sharedGroupCard.active{background:color-mix(in srgb,var(--primary) 5%,white);border-color:color-mix(in srgb,var(--primary) 38%,#e4eaf2);box-shadow:0 8px 22px color-mix(in srgb,var(--primary) 7%,transparent)}.sharedGroupCard b,.sharedGroupCard small{display:block}.sharedGroupCard b{font-size:12px}.sharedGroupCard small{font-size:9px;color:var(--muted);margin-top:3px}.sharedMetrics{margin-top:14px}.sharedMetric{min-width:0}.sharedInlineEdit{padding:14px;margin:0 0 14px;border:1px solid #edf1f5;border-radius:14px;background:#fbfcfe}.sharedParticipant{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 12px;border:1px solid #edf1f5;border-radius:12px}.sharedParticipant b,.sharedParticipant small{display:block}.sharedParticipant b{font-size:11px}.sharedParticipant small{font-size:9px;color:var(--muted);margin-top:2px}.sharedParticipant strong{font-size:12px}.sharedAddParticipant{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:10px}.sharedAddParticipant input{border:1px solid #dfe6ef;border-radius:10px;padding:9px 10px;outline:none}.sharedAddParticipant input:focus{border-color:color-mix(in srgb,var(--primary) 45%,#dfe6ef);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 8%,transparent)}.sharedSuggestion{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:11px 12px;border:1px solid #edf1f5;border-radius:12px;background:#fff}.sharedSuggestion b,.sharedSuggestion small{display:block}.sharedSuggestion b{font-size:11px}.sharedSuggestion small{font-size:9px;color:var(--muted);margin-top:2px}.sharedSuggestion strong{font-size:12px;color:var(--primary)}.sharedSplitEditor{border:1px solid #e8edf4;border-radius:14px;overflow:hidden}.sharedSplitTitle{display:flex;justify-content:space-between;gap:12px;padding:11px 12px;background:#f8fafc;border-bottom:1px solid #edf1f5;font-size:10px}.sharedSplitRow{display:grid;grid-template-columns:minmax(0,1fr) 150px 100px;align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid #f0f3f7;opacity:.66}.sharedSplitRow:last-child{border-bottom:0}.sharedSplitRow.active{opacity:1;background:#fff}.sharedSplitRow>label{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:750}.sharedSplitRow>label input{accent-color:var(--primary)}.sharedSplitValue{display:flex;align-items:center;gap:5px}.sharedSplitValue input{width:100%;min-width:0;border:1px solid #dfe6ef;border-radius:9px;padding:7px 8px}.sharedSplitValue span{font-size:10px;color:var(--muted)}.sharedSplitRow>strong{text-align:right;font-size:11px}.sharedVoided{opacity:.6}.sharedVoided td{text-decoration:none!important}.sharedSettlement{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;align-items:center;padding:11px 12px;border:1px solid #edf1f5;border-radius:12px}.sharedSettlement>div:first-child b,.sharedSettlement>div:first-child small{display:block}.sharedSettlement>div:first-child b{font-size:11px}.sharedSettlement>div:first-child small{font-size:9px;color:var(--muted);margin-top:2px}.sharedSettlement>strong{font-size:12px}.sharedSettlement>.debtActions{grid-column:1/-1}.sharedSettlement.reversed{opacity:.58;background:#fafbfc}.sharedReportGrid{display:grid;grid-template-columns:.8fr 1.2fr;gap:22px;margin-top:18px}.sharedReportGrid h3{font-size:13px;margin:0 0 8px}.sharedTimeline{display:grid;gap:0}.sharedTimeline>div{display:grid;grid-template-columns:12px minmax(0,1fr) auto;gap:9px;align-items:center;padding:9px 0;border-bottom:1px solid #edf1f5}.sharedTimeline>div:last-child{border-bottom:0}.sharedTimeline b,.sharedTimeline small{display:block}.sharedTimeline b{font-size:10.5px}.sharedTimeline small{font-size:8.5px;color:var(--muted);margin-top:2px}.sharedTimeline strong{font-size:10.5px}.sharedDot{width:8px;height:8px;border-radius:50%}.sharedDot.expense{background:var(--primary)}.sharedDot.settlement{background:var(--secondary)}.sharedTable .debtActions{display:flex;gap:5px;flex-wrap:wrap}.contentSpacer{height:16px}
@media(max-width:1100px){.sharedTopGrid,.sharedTwoCols,.sharedReportGrid{grid-template-columns:1fr}.sharedHero{align-items:flex-start}.sharedSuggestion{grid-template-columns:minmax(0,1fr) auto}.sharedSuggestion .btn{grid-column:1/-1}.sharedSplitRow{grid-template-columns:minmax(0,1fr) 135px 90px}}
@media(max-width:650px){.sharedHero{flex-direction:column;padding:16px}.sharedHeroStats{width:100%}.sharedHeroStats>div{flex:1;min-width:0}.sharedMetrics{grid-template-columns:1fr 1fr!important}.sharedSuggestion{grid-template-columns:1fr auto}.sharedSuggestion .btn{width:100%}.sharedSplitTitle{align-items:flex-start;flex-direction:column}.sharedSplitRow{grid-template-columns:minmax(0,1fr) auto}.sharedSplitValue{grid-column:1/-1}.sharedSplitRow>strong{grid-column:2;grid-row:1}.sharedTable,.sharedReportTable{display:block}.sharedTable thead,.sharedReportTable thead{display:none}.sharedTable tbody,.sharedReportTable tbody{display:grid;gap:10px;padding:8px}.sharedTable tr,.sharedReportTable tr{display:grid!important;grid-template-columns:1fr 1fr;gap:8px;border:1px solid #e7ecf3;border-radius:13px;padding:11px;background:#fff}.sharedTable td,.sharedReportTable td{display:block;border:0!important;padding:0!important;white-space:normal!important;font-size:11px}.sharedTable td:nth-child(2),.sharedTable td:last-child,.sharedReportTable td:first-child,.sharedReportTable td:last-child{grid-column:1/-1}.sharedTable td:last-child{padding-top:5px!important;border-top:1px solid #edf1f5!important}.sharedReportTable td:before{display:block;font-size:8px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin-bottom:2px}.sharedReportTable td:nth-child(2):before{content:'Pagou despesas'}.sharedReportTable td:nth-child(3):before{content:'Deveria pagar'}.sharedReportTable td:nth-child(4):before{content:'Acertos enviados'}.sharedReportTable td:nth-child(5):before{content:'Acertos recebidos'}.sharedReportTable td:nth-child(6):before{content:'Saldo'}.sharedSettlement{grid-template-columns:1fr auto}.sharedAddParticipant{grid-template-columns:1fr}.sharedAddParticipant .btn{width:100%}}


/* V7.1.11 — homologação PF: agenda e tabelas mobile sem alterar desktop */
.calendarRow{grid-template-columns:54px minmax(0,1fr) auto auto}
@media(max-width:900px){.calendarRow{grid-template-columns:48px minmax(0,1fr) auto auto}}
@media(max-width:560px){.calendarRow{grid-template-columns:44px minmax(0,1fr)}.calendarRow strong,.calendarRow>.btn{grid-column:2}.calendarRow>.btn{justify-self:start}}
@media(max-width:650px){
  .mobileBankingTable td:nth-child(1)::before{content:'Data'}
  .mobileBankingTable td:nth-child(2)::before{content:'Descrição'}
  .mobileBankingTable td:nth-child(3)::before{content:'Tipo'}
  .mobileBankingTable td:nth-child(4)::before{content:'Valor'}
  .mobileBankingTable td:nth-child(5)::before{content:'Situação'}
  .mobileFixedTable td:nth-child(1)::before{content:'Descrição'}
  .mobileFixedTable td:nth-child(2)::before{content:'Valor'}
  .mobileFixedTable td:nth-child(3)::before{content:'Vencimento'}
  .mobileFixedTable td:nth-child(4)::before{content:'Ações'}
  .mobileReportsTable td:nth-child(1)::before{content:'Data'}
  .mobileReportsTable td:nth-child(2)::before{content:'Descrição'}
  .mobileReportsTable td:nth-child(3)::before{content:'Tipo'}
  .mobileReportsTable td:nth-child(4)::before{content:'Status'}
  .mobileReportsTable td:nth-child(5)::before{content:'Valor'}
}

/* PROMPT 06: posição medida pelo guia; sem paleta nova. */
.finTourBubble{overflow:auto}.finTourActions{flex-wrap:wrap}.silentGate{gap:14px;text-align:center;padding:20px}.viewerNotice{margin-bottom:12px}
@media(max-width:760px){.finTourBubble{bottom:auto!important;left:12px!important;right:12px!important;width:auto;max-height:calc(100dvh - 24px)}}

.accessPause{position:fixed;inset:0;z-index:11000;background:var(--app-bg,#f5f7fb);display:flex;flex-direction:column;align-items:center;justify-content:center}

/* V7.1.14 — proposta visual: identidade preservada, leitura e toque consistentes. */
.modernShell{background:var(--app-bg)}
.modernTopbar{background:color-mix(in srgb,var(--app-bg) 96%,transparent)}
.modernPage{padding-top:24px}
.modernPage>.card,.modernPage>div>.card,.modernPage .grid>.card{min-width:0}
.sideBrandMark{background:#fff;width:44px;height:44px;border-radius:12px;flex-shrink:0}
.sideBrand>div:last-child{min-width:0}
.sideBrand b{font-size:15px;line-height:1.3}
.sideBrand small{font-size:12px;overflow-wrap:anywhere}
.sideGroupTitle{font-size:10px;color:#65758a;letter-spacing:.075em}
.sideItem{font-size:13px;min-height:42px;font-weight:650}
.sideItem.active{font-weight:750}
.sideContext button,.sideFooter button{font-size:13px;min-height:42px}
.topSubtitle{font-size:13px}
.title{font-size:26px}
.dashboardIntro h2{font-size:25px;line-height:1.25}
.dashboardIntro p{font-size:14px;line-height:1.5}
.sectionKicker,.eyebrow{font-size:11px;letter-spacing:.06em}
.sectionhead h2,.card h2{font-size:18px;line-height:1.3}
.subtle,.metricFoot{font-size:12px;line-height:1.5}
.metriclabel{font-size:13px!important}
.metric{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.metriccard:after{display:none}
.metricTop{margin-bottom:12px}
.tinyPill{font-size:11px}
.kpiGrid .metriccard{min-height:158px}
.textLink{font-size:13px;min-height:36px}
.modernPage .btn{font-size:13px;min-height:40px}
.modernPage .field label{font-size:13px}
.modernPage .field input,.modernPage .field select,.modernPage .field textarea{min-height:44px;font-size:14px}
.statusMini span{font-size:13px}
.statusMini small{font-size:12px}
.chartCard{min-height:0}
.cashFlowChart .chartSummary{gap:10px;margin-bottom:16px}
.cashFlowChart .chartSummary>span{border:0;padding:0;background:transparent;min-width:0}
.cashFlowChart .chartSummary small{font-size:11px;text-transform:none;letter-spacing:0}
.cashFlowChart .chartSummary b{font-size:15px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.cashFlowChart .chartlegend{display:flex;align-items:center;gap:14px;flex-wrap:wrap;font-size:12px;margin:0 0 14px}
.cashFlowChart .chartlegend span{display:flex;align-items:center;gap:5px}
.cashFlowChart .chartlegend small{font-size:11px;color:var(--muted)}
.cashPlot{display:grid;grid-template-columns:64px minmax(0,1fr);gap:8px}
.cashScale{display:flex;flex-direction:column;justify-content:space-between;height:168px;font-size:11px;color:#526174;white-space:nowrap}
.cashColumns{display:flex;gap:6px;align-items:stretch;background:repeating-linear-gradient(to top,transparent 0,transparent 82px,#e8edf4 83px,#e8edf4 84px);background-size:100% 168px;background-repeat:no-repeat}
.cashColumn{flex:1;min-width:0;padding:0 2px 0;border:0;background:transparent;display:flex;flex-direction:column;align-items:stretch;color:#526174;cursor:pointer;border-radius:5px}
.cashColumn:focus-visible{outline:2px solid var(--primary);outline-offset:3px}
.cashColumn[aria-pressed=true]{background:color-mix(in srgb,var(--primary) 7%,transparent)}
.cashPair{height:168px;display:flex;justify-content:center;align-items:flex-end;gap:5px;border-bottom:1px solid #d7e0eb}
.cashPair i{width:clamp(10px,24%,20px);min-height:0;border-radius:4px 4px 0 0;display:block}
.cashIncome,.incomeDot{background:var(--secondary)}
.cashExpense,.expenseDot{background:var(--primary)}
.cashMonth{font-size:12px;line-height:1.4;padding-top:8px;padding-bottom:8px;overflow-wrap:anywhere;text-transform:capitalize}
.chartReadout{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:12px;line-height:1.5;color:#526174;min-height:22px;padding-top:10px}
.chartReadout b{color:var(--ink);text-transform:capitalize}
.chartDetails{margin-top:12px;font-size:12px}
.chartDetails summary{cursor:pointer;color:var(--primary);min-height:36px;display:list-item;padding:8px 0;font-weight:650}
.chartDetails .table{font-size:12px;white-space:normal}
.chartDetails .table th,.chartDetails .table td{padding:9px 8px}
.chartValueList>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--line)}
.chartValueList b{font-variant-numeric:tabular-nums;white-space:nowrap}
.trendSvg{display:block;width:100%;height:auto;overflow:visible}
.trendSvg text{font-size:12px;fill:#526174}
.trendGrid{stroke:#e8edf4;stroke-width:1}
.trendZero{stroke:#8190a4;stroke-width:1}
.donutChart .donutrow{gap:18px;flex-wrap:wrap;min-height:0;align-items:center}
.donutChart .donut{width:158px;height:158px;box-shadow:none}
.donutChart .donutcenter{width:110px;height:110px;padding:8px}
.donutChart .donutcenter b{font-size:15px;overflow-wrap:anywhere}
.donutChart .donutcenter span{font-size:11px;line-height:1.4}
.donutChart .donutlegend{min-width:170px;gap:10px}
.donutChart .donutlegend>div{font-size:12px;align-items:start;min-width:0;grid-template-columns:9px minmax(0,1fr) auto;gap:8px}
.donutChart .donutlegend>div span{overflow-wrap:anywhere;white-space:normal}
.donutChart .donutlegend>div span small{font-size:12px;color:#526174;margin-top:2px}
.donutChart .donutlegend>div b{font-size:12px;font-variant-numeric:tabular-nums}
.donutChart .donutlegend>div>i{margin-top:4px}
.menuGroupTitle{font-size:11px;color:#65758a}
.menuTileCopy b{font-size:13px;line-height:1.35;white-space:normal}
.menuTileCopy small{font-size:12px;line-height:1.4;white-space:normal}
.moreHeader p{font-size:12px}
.moreHeader h2{font-size:21px}
.morePanel .iconbtn{min-width:44px;min-height:44px}
.srOnly{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:901px){
 .appSidebar{width:246px;min-width:246px}
 .sideBrand{padding:20px 16px}
 .sideItem{font-size:13px;min-height:42px}
 .withSidebar .modernMain{padding:0 28px 40px}
 .modernTopbar{min-height:84px}
 .dashboardMainGrid{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}
}
@media(min-width:901px) and (max-width:1190px){
 .dashboardMainGrid,.balanceDonutGrid,.lowerGrid{grid-template-columns:1fr!important}
 .kpiGrid,.monthStatusGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:900px){
 .modernMain{padding-inline:16px}
 .modernTopbar{margin-inline:-16px;padding-inline:16px;background:var(--app-bg);row-gap:12px!important}
 .modernPage{padding-top:20px}
 .modernTopbar .topBrandLogo{width:40px;height:40px;padding:0;background:#fff}
 .modernTopbar .mobileGreetingGroup h1{font-size:19px;line-height:1.25;white-space:normal;overflow-wrap:anywhere}
 .modernTopbar .mobileGreetingGroup div{font-size:12px;color:#526174;max-width:none;white-space:normal}
 .modernTopbar .iconbtn{width:44px;height:44px;flex-shrink:0}
 .modernTopbar .contextTabs button{font-size:13px;height:44px}
 .dashboardIntro{display:block;padding:0 0 18px;margin-bottom:18px}
 .dashboardIntro h2{font-size:23px;line-height:1.3}
 .dashboardIntro p{font-size:13px;line-height:1.5;max-width:none}
 .introActions{margin-top:14px;display:flex;flex-wrap:wrap;gap:10px}
 .introActions .btn{flex:1;justify-content:center;min-height:44px;min-width:0}
 .grid.dashboardMainGrid,.balanceDonutGrid,.lowerGrid{grid-template-columns:1fr!important}
 .kpiGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
 .kpiGrid .metriccard{min-height:148px;padding:16px!important;border-radius:18px!important}
 .metriclabel{font-size:12px!important}
 .kpiGrid .metric{font-size:22px!important;line-height:1.3}
 .metricFoot{font-size:12px;line-height:1.4}
 .tinyPill{font-size:10px}
 .metricTop{margin-bottom:10px}
 .monthStatusGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px}
 .monthStatusGrid .statusMini{padding:14px}
 .statusMini b{font-size:18px}
 .modernPage .card{padding:18px}
 .modernPage .field input,.modernPage .field select,.modernPage .field textarea{font-size:16px}
 .modernPage .btn,.modernPage .textLink{min-height:44px}
 .sectionhead{align-items:flex-start;gap:12px;flex-wrap:wrap}
 .sectionhead h2,.card h2{font-size:18px}
 .cashFlowChart .chartSummary b{font-size:14px}
 .cashFlowChart .chartSummary small{font-size:12px}
 .cashFlowChart .chartSummary{gap:8px}
 .cashColumn{min-height:44px}
 .cashPlot{grid-template-columns:60px minmax(0,1fr);gap:4px}
 .cashColumns{gap:3px}
 .cashPair{gap:3px}
 .cashMonth{font-size:11px}
 .donutChart .donutrow{flex-direction:column;align-items:stretch;gap:20px}
 .donutChart .donut{align-self:center;width:166px;height:166px}
 .donutChart .donutcenter{width:116px;height:116px}
 .donutChart .donutlegend{width:100%;min-width:0;gap:12px}
 .donutChart .donutlegend>div{font-size:13px}
 .bottomDock a,.bottomDock button{min-height:44px;gap:5px}
 .bottomDock small,.bottomDock .dockLaunch small{font-size:11px;line-height:1.2}
 .bottomDock .dockLaunch span{width:48px;height:48px}
 .morePanel{inset:12px 10px calc(80px + env(safe-area-inset-bottom))!important}
 .menuGroupGrid{grid-template-columns:1fr!important}
 .menuTile{min-height:70px}
 .moreBody{padding:16px;overscroll-behavior:contain}
 .moreHeader{padding:18px 16px}
 .dueRow{flex-wrap:wrap}
 .dueInfo{flex:1 1 130px;min-width:0}
 .dueInfo b{font-size:13px;overflow-wrap:anywhere;white-space:normal}
 .dueInfo span{font-size:12px}
 .goalPreviewHead b,.goalPreviewValues{font-size:13px}
 .goalPreviewHead span{font-size:12px}
}
@media(max-width:380px){
 .modernMain{padding-inline:12px}
 .modernTopbar{margin-inline:-12px;padding-inline:12px;column-gap:8px!important}
 .modernTopbar .topbarLeft{gap:8px}
 .modernTopbar .topBrandLogo{width:34px;height:34px}
 .modernTopbar .mobileGreetingGroup h1{font-size:18px}
 .modernTopbar .mobileGreetingGroup div{font-size:11px}
 .kpiGrid .metriccard{padding:12px!important}
 .kpiGrid .metric{font-size:20px!important}
 .metricTop .tinyPill{max-width:78px;text-align:center;white-space:normal}
 .bottomDock small,.bottomDock .dockLaunch small{font-size:10px}
}
@media(prefers-reduced-motion:reduce){.modernShell *{animation:none!important;transition:none!important}}

/* V7.1.15 — responsive product mark; organization retains its own identity. */
.sideBrandMark{width:44px;height:44px;aspect-ratio:1;background:#030d38;padding:0;flex-shrink:0}
.sideBrandMark img,.modernTopbar .topBrandLogo{display:block;object-fit:cover;object-position:center;padding:0;border:0;aspect-ratio:1;background:#030d38;flex-shrink:0}
.modernTopbar .topBrandLogo{width:44px;height:44px;border-radius:12px}
.organizationIdentity{display:flex;align-items:center;gap:6px;min-width:0;color:var(--muted);font-size:12px;line-height:1.35}
.organizationIdentity img{display:block;width:20px;height:20px;flex:0 0 20px;object-fit:contain;border-radius:4px}
.organizationIdentity>span{min-width:0;overflow-wrap:anywhere}
.moreHeader .organizationIdentity{margin-top:8px}
@media(max-width:900px){.modernTopbar .topBrandLogo{width:40px;height:40px}}
@media(max-width:380px){.modernTopbar .topBrandLogo{width:34px;height:34px;border-radius:10px}}

/* Notification permission is opt-in; leave the bottom navigation usable. */
.notificationInstallOffer{position:fixed;z-index:110;right:18px;bottom:calc(18px + env(safe-area-inset-bottom));width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - 140px);overflow:auto;display:grid;grid-template-columns:40px minmax(0,1fr);gap:12px;padding:16px;border:1px solid var(--line);border-radius:18px;background:var(--card,#fff);box-shadow:0 14px 40px rgba(15,23,42,.18)}
.notificationInstallOffer>img{border-radius:10px;display:block;object-fit:cover}
.notificationInstallCopy{min-width:0}.notificationInstallCopy b{font-size:15px}.notificationInstallCopy p{font-size:13px;line-height:1.5;color:var(--muted);margin:6px 0 0;overflow-wrap:anywhere}
.notificationInstallActions{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap}.notificationInstallActions .btn{min-height:44px;flex:1;white-space:normal}
@media(max-width:900px){.notificationInstallOffer{left:12px;right:12px;bottom:calc(100px + env(safe-area-inset-bottom));width:auto}}

/* Leitura de valores e ações em telas estreitas */
.donutCenter strong,.donutCenter b{overflow-wrap:normal;word-break:normal;white-space:nowrap}
@media(max-width:600px){.dueRow{grid-template-columns:auto minmax(0,1fr);gap:10px}.dueRow>strong,.dueRow>a,.dueRow>button{grid-column:2;justify-self:start}}

.isi-demo-banner{padding:12px 18px;border-bottom:1px solid currentColor;background:var(--seg-soft,#f4f4f8);display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:13px}.isi-demo-banner span{flex:1;min-width:200px}.isi-demo-banner button{min-height:44px}.isi-demo-banner+div.shell{min-height:calc(100vh - 80px)}

/* Demonstração: controles visíveis ao lado do menu fixo. */
@media(min-width:901px){.isi-demo-banner{margin-left:278px}}
.isi-demo-banner button{border:0;border-radius:10px;padding:10px 14px;cursor:pointer;font-weight:700;background:var(--tenant-secondary,var(--seg-accent,var(--primary,#173b7a)));color:white}

/* Tema por usuário: preserva as cores contratadas e a composição existente. */
.fin-theme-light{--ink:#111;--line:#bdc8d6;color:#111;color-scheme:light}
.fin-theme-light .modernPage .card{border-color:#bdc8d6}
.fin-theme-light .modernPage :is(h2,h3,label,.table td,.table th){color:#111}
html[data-finance-theme=dark],html[data-finance-theme=dark] body{background:#071522}
.fin-theme-dark{--ink:#eef5ff;--muted:#b0c2d7;--line:#42617e;color:#eef5ff;color-scheme:dark}
.fin-theme-dark :is(.card,.notificationPanel,.morePanel,.bottomDock,.pwaInstallToast){background:#0d2035;border-color:#42617e;color:#eef5ff}
.fin-theme-dark :is(.hero,.dashboardHero,.investmentHero,.settingsHero){background:linear-gradient(120deg,#102942,#0d2035);border-color:#42617e;color:#eef5ff}
.fin-theme-dark :is(h1,h2,h3,label,.table td,.table th,.readonlyField,.topTitleBlock,.mobileGreetingGroup){color:#eef5ff}
.fin-theme-dark :is(input:not([type=color]):not([type=checkbox]),select,textarea,.readonlyField){background:#091a2c;border-color:#63819e;color:#fff}
.fin-theme-dark :is(.iconbtn,.searchBtn,.textLink,.menuTile,.sharedGroupCard,.contextSummary){background:#102942;border-color:#42617e;color:#eef5ff}
.fin-theme-dark :is(.btn.alt,.btn.ghostBtn){background:#18344e;border-color:#63819e;color:#f3f7fc}
.fin-theme-dark :is(.notice,.transferBox,.badge,.calendarDate,.statline,.chartDetails){background:#102942;border-color:#42617e;color:#e4ecf5}
.fin-theme-dark :is(.muted,.subtle,.field small,.metriclabel,.topSubtitle){color:#b0c2d7}
.fin-theme-dark :is(.good,.badge.paid){color:#67e2ab}.fin-theme-dark :is(.bad,.badge.overdue){color:#ff9daa}
:is(.fin-theme-light,.fin-theme-dark) :is(button,a,input,select,textarea):focus-visible{outline:3px solid #1687ee;outline-offset:3px}
.grid.grid2>.card:only-child{grid-column:1/-1}
@media print{.fin-theme-dark{--ink:#111;--muted:#333;color:#111;background:white!important}.fin-theme-dark :is(.card,.table td,.table th,h1,h2,h3){background:white!important;color:#111!important;border-color:#999!important}}
/* Nested surfaces and chart centers also need an opaque dark background. */
.fin-theme-dark .kpiGrid .metriccard:first-child{background:#0d2035;color:#eef5ff}
.fin-theme-dark :is(.donutcenter,.score>div,.goalPreview,.chartSummary>span,.quick a,.quickList a,.quickActions a,.tipBox,.infoTip,.debtMiniMetric,.debtTimelineItem,.debtFormHint,.sharedHero,.sharedMetric,.sharedHeroStats>div,.sharedSuggestion,.sharedSplitTitle,.sharedSplitRow.active,.sharedTable tr,.sharedReportTable tr,.mobileCardsTable tr,.notificationToggleGrid label,.notifyPanel,.notifyItem.unread,.tutorialSearch,.tutorialTip,.finTourBubble){background:#102942;border-color:#42617e;color:#eef5ff}
.fin-theme-dark :is(.sectionKicker,.eyebrow,.textLink,.investmentLink,.chartDetails summary,.goalPreviewHead strong){color:#85baff}
.fin-theme-dark .modernTopbar .iconbtn{background:#102942;color:#eef5ff}
.fin-theme-dark :is(.metricFoot,.chartCaption,.tinyPill,.legend,.donutLegend){color:#b0c2d7}
.fin-theme-light .modernPage .table td.good{color:#176a47}.fin-theme-light .modernPage .table td.bad{color:#a62939}
.reportIdentity{font-size:13px;margin-bottom:12px;overflow-wrap:anywhere}
@media print{
 .appSidebar,.bottomDock,.topActions,.isi-demo-banner,.pwaInstallToast,.notificationInstallOffer,.reportIdentity~.filterbar button{display:none!important}
 .modernMain{margin:0!important;width:100%!important;max-width:none!important;padding:12px!important}
 .modernShell{display:block!important;background:white!important}
 .tablewrap{overflow:visible!important}.mobileCardsTable{display:table!important;width:100%!important}.mobileCardsTable thead{display:table-header-group!important}.mobileCardsTable tbody{display:table-row-group!important}.mobileCardsTable tr{display:table-row!important;break-inside:avoid}.mobileCardsTable th,.mobileCardsTable td{display:table-cell!important;background:white!important;color:#111!important}.mobileCardsTable td:before{display:none!important}
}
.fin-theme-dark .table th{background:#102942;color:#eef5ff}
.fin-theme-dark .investmentLink{background:#18344e;color:#f3f7fc;border-color:#63819e}
.fin-theme-dark .tinyPill{background:#17334d;color:#d6e4f5}
.fin-theme-dark .successPill{background:#123d31;color:#67e2ab}
.fin-theme-dark .dangerPill{background:#4b202a;color:#ffb5bf}

/* Importação: seletor de arquivo legível no tema escuro. */
.fin-theme-dark .uploadBox{background:#102942;border-color:#607d96;color:#eef5ff}
.fin-theme-dark .uploadBox small{color:#b0c2d7}

.isiInstallToast{position:fixed;z-index:9999;right:16px;bottom:20px;width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - 140px);overflow:auto;padding:16px;border:1px solid var(--line,#d7e4f1);border-radius:18px;box-shadow:0 14px 40px #06132b33;background:var(--card,#fff);color:var(--text,var(--ink,#17324d));font-family:inherit}
.isiInstallToast p{font-size:13px;line-height:1.5;margin:6px 0 0;overflow-wrap:anywhere;color:inherit}
.isiInstallHeading{display:flex;gap:12px;align-items:center}.isiInstallHeading>div{min-width:0}.isiInstallHeading img{flex:none;border-radius:10px;object-fit:cover}.isiInstallHeading b{font-size:15px;line-height:1.4;overflow-wrap:anywhere}
.isiInstallGuide{margin-top:12px;font-size:13px;line-height:1.6}.isiInstallGuide ol{padding-left:22px;margin:6px 0 0}
.isiInstallActions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.isiInstallActions button{min-width:44px;min-height:44px;flex:1;white-space:normal;padding:10px 12px;border:0;border-radius:10px;cursor:pointer;background:var(--tenant-secondary,var(--seg-accent,var(--primary,#1769e0)));color:white;font-size:14px;font-weight:700}.isiInstallActions .isiInstallSecondary{background:transparent;color:inherit;border:1px solid var(--line,#d7e4f1)}.isiInstallActions button:disabled{opacity:.6;cursor:wait}
.isiInstallToast button:focus-visible{outline:2px solid currentColor;outline-offset:3px}
@media(max-width:980px){.isiInstallToast{left:12px;right:12px;width:auto;bottom:calc(108px + env(safe-area-inset-bottom));max-height:calc(100dvh - 140px - env(safe-area-inset-bottom))}}
.theme-dark~.isiInstallToast{background:#0d2035;color:#eef5ff;border-color:#31506d}
