/* ALUMIA · Identidade 2.0
   Preto fosco, branco marfim e dourado antigo.
   Os dados financeiros e as regras da versão anterior não foram alterados. */
:root {
  --ink: #F4F0E8;
  --muted: #ABA49A;
  --line: #312C25;
  --page: #0D0C0B;
  --navy: #080808;
  --navy2: #161411;
  --teal: #D5B46E;
  --teal-light: #2A241B;
  --red: #DE8B83;
  --orange: #D9B978;
  --gold: #D2AD65;
  --gold-bright: #E8CA8B;
  --cream: #F4F0E8;
  --surface: #171614;
  --surface-alt: #1E1B17;
  --shadow: 0 14px 45px rgba(0,0,0,.20);
}
html { color-scheme: dark; }
body {
  background: #0D0C0B;
  color: var(--ink);
  font-family: 'DM Sans', -apple-system, system-ui, sans-serif;
}
button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}
a {color: var(--gold-bright)}
.sidebar {
  width: 254px;
  background: linear-gradient(178deg,#0B0A09 0%,#10100E 70%,#0B0A09 100%);
  border-right: 1px solid #3A3022;
  padding: 29px 15px 24px;
}
.workspace {margin-left:254px;width:calc(100% - 254px)}
.brand {gap: 12px;margin:0 9px 51px;min-height: 58px}
.brand-symbol {width:51px;height:51px;border:0;border-radius:14px;background:#201A13;padding:2px;overflow:hidden;box-shadow: 0 0 0 1px #624C2C}
.brand-symbol img {width:100%;height:100%;object-fit:contain;display:block}
.brand b {font-family:Georgia,'Times New Roman',serif;font-size:25px;letter-spacing:2.3px;font-weight:500;color:#F9F4E9;line-height:1.25}
.brand small {color:#BB985A;letter-spacing:1.6px;font-size:8px;margin-top:6px;display:block}
.sidebar-label {color:#977C53;font-size:10px;letter-spacing:1.8px;font-weight:700;margin-left:21px}
.sidebar-nav {gap:7px}
.nav-item {color:#BEB8AD;font-weight:600;font-size:12px;border-radius:9px;padding:13px 15px;position:relative}
.nav-item:hover {color:#FBF4E6;background:#211E19}
.nav-item.active {color:#FFF7E9;background:linear-gradient(90deg,#322719,#252019);border:1px solid #6B502A;padding:12px 14px}
.nav-item.active:before {content:'';position:absolute;left:-1px;top:10px;bottom:10px;width:2px;background:#E1BA70;border-radius:8px}
.nav-item.active .nav-ico {color:var(--gold-bright)}
.nav-ico {color:#AF9B7C}
.side-bottom {background:linear-gradient(155deg,#1C1914,#141312);border:1px solid #4D3B24;border-radius:12px;padding:18px 17px}
.side-bottom-icon {width:61px;height:35px;overflow:hidden}
.side-bottom-icon img {width:62px;height:40px;display:block}
.side-bottom p {font-family:Georgia,'Times New Roman',serif;font-size:16px;line-height:1.4;color:#F2E8D4;margin:12px 0 23px}
.side-bottom span {color:#AC8F60;font-size:9px;letter-spacing:1.7px}
.topbar {background:rgba(18,17,15,.97);height:79px;border-bottom:1px solid #393024;padding:0 38px}
.breadcrumb {color:#AE986E;font-size:10px;letter-spacing:1.6px;gap:11px}
.breadcrumb .top-brand {display:flex;align-items:center;gap:6px;color:#DEBD7D;font-weight:700;letter-spacing:2px}
.breadcrumb .top-brand img {width:26px;height:23px;object-fit:contain}
.breadcrumb b {color:#EDE5D5;font-size:12px;font-weight:600}
.slash {color:#736047}
.status-chip {border:1px solid #453C2F;color:#C4B6A3;background:#1C1A17;padding:9px 12px}
.status-chip i {background:#CFA65B}
.status-chip.synced i {background:#9DBB8E}
.status-chip.error i {background:#DD8A80}
.btn {border-radius:9px;font-weight:700;letter-spacing:.1px}
.btn-primary {background:linear-gradient(110deg,#E0C07F,#BC8E45);color:#15110D;box-shadow:0 4px 20px #B5853230}
.btn-primary:hover {background:linear-gradient(115deg,#EFCE8E,#CBA058)}
.btn-secondary {color:#ECD8B1;background:#2A251E;border:1px solid #51412B}
.btn-secondary:hover {background:#393025}
.btn-ghost {color:#D6C6AD;border:1px solid #4C4135;background:#1E1B17}
.btn-danger {background:#34201F;color:#F2A69B}
.page {max-width:1540px;padding:34px 39px 95px}
.page-intro {margin-bottom:29px;position:relative;z-index:1}
.page-intro:after {content:'';position:absolute;right:5%;top:-19px;width:340px;height:120px;background:radial-gradient(ellipse at 60% 0%,rgba(193,139,55,.16),transparent 72%);pointer-events:none;z-index:-1}
.eyebrow {color:#C6A15C;letter-spacing:2.5px;font-size:10px;font-weight:700;margin-bottom:12px}
h1,h2,h3 {color:#F3ECE0}
.page-title {font-family:Georgia,'Times New Roman',serif;font-size:37px;font-weight:500;letter-spacing:-.6px;line-height:1.13}
.subheading {color:#ABA49A;font-size:12px;letter-spacing:.12px;margin-top:11px}
.panel {background:linear-gradient(145deg,#1A1916,#141311);border:1px solid #383026;border-radius:14px;box-shadow:var(--shadow);padding:25px}
.panel-title {font-size:15px;font-weight:700;color:#F6F0E4;letter-spacing:-.18px}
.panel-subtitle {color:#A39B8E;font-size:11px;line-height:1.5}
.card-link {color:#D5AF69;font-weight:700}
.card-link:hover {color:#F3CE88}
.balance-grid {gap:17px;margin-bottom:19px}
.balance-card {min-height:202px;border-radius:15px;padding:27px 29px;border:1px solid #6B5232;box-shadow:inset 0 0 28px #D8B26905, 0 16px 35px #00000029}
.balance-card.euro {background:linear-gradient(120deg,#30261A 0%,#1A1713 52%,#151413 100%)}
.balance-card.real {background:linear-gradient(120deg,#26211A 0%,#171614 54%,#131312 100%);border-color:#56462F}
.balance-card:after {border:1px solid #CCA86026;box-shadow:0 0 0 46px #C59D4712,0 0 0 92px #B98B2D08;width:250px;height:250px;top:-145px;right:-23px}
.balance-card:before {content:'';position:absolute;height:1px;left:28px;right:28px;top:0;background:linear-gradient(90deg,transparent,#DCBD75,transparent);opacity:.72}
.balance-label {color:#DCCFB7;font-weight:500}
.flag-coin {background:#58432A;color:#F3D28E;border:1px solid #765C38;font-size:13px;font-weight:700;width:30px;height:30px}
.balance-value {font-family:Georgia,'Times New Roman',serif;font-weight:500;font-size:40px;letter-spacing:-.4px;color:#FFF7E9;margin-top:26px}
.balance-foot {color:#AFA496;margin-top:19px;font-size:10px}
.balance-foot strong {color:#D7BB86;font-weight:600}
.summary-grid,.layout-bottom {gap:19px}
.stat-row {gap:11px}
.mini-stat,.period-analysis .mini-stat {background:#211F1B;border:1px solid #3A3228;border-radius:10px;padding:16px 13px}
.stat-label {color:#C1B5A2;font-weight:600;font-size:11px}
.stat-label .dot {background:#D7B46E}
.stat-label .dot.red {background:#C9847E}
.stat-label .dot.blue {background:#879EB2}
.mini-stat .val {font-family:Georgia,'Times New Roman',serif;color:#FBF4E8;font-weight:600;font-size:21px;letter-spacing:-.35px}
.thin-divider {border-top:1px solid #3A332A}
.segment {background:#211E1A;border:1px solid #463C2D}
.segment button {color:#A49B8C}
.segment button.active {color:#24190C;background:#D6B776;box-shadow:none}
.donut {box-shadow:0 0 0 1px #41372B;background:conic-gradient(#39352F 0 100%)}
.donut-hole {background:#191714;border:1px solid #393127}
.donut-hole span {color:#B0A494}
.donut-hole b {color:#F7EDDB;font-family:Georgia,'Times New Roman',serif;font-size:19px;font-weight:500}
.legend-row .name {color:#C4B9A7}
.legend-row b {color:#F0DBB8}
.legend-row .legend-swatch {border-radius:50%}
.activity-table th {color:#AE9369;border-bottom-color:#473A29;font-size:9px}
.activity-table td {color:#C2B8AA;border-bottom-color:#332C24}
.activity-table .amount,.activity-table .item-title {color:#F2EBDD}
.activity-table .amount.positive {color:#A2BE9B}
.activity-table .amount.negative {color:#E8A197}
.activity-table .item-note {color:#94897A}
.cat-ico {background:#30291E;border:1px solid #4A3923;color:#F1D08C}
.category-pill {background:#302920;color:#DDC49A;border:1px solid #493A27}
.rate-badge {background:#30291E;border:1px solid #57452D;color:#EAC681}
.rate-line {border-bottom:1px solid #393027}
.rate-line span {color:#BDB1A1}
.rate-line b {color:#F6EBDC;font-weight:700}
.empty {color:#A59A88}
.empty .symbol {color:#D4B477}
.empty b {color:#EADAC0}
.empty p {color:#9D9387}
.muted,.foot-note,.pwa-tip {color:#A89E90}
.period-select,.field select,.field input,.field textarea {background:#24211C;border:1px solid #514331;color:#F2E7D4;border-radius:9px}
.period-select:focus,.field select:focus,.field input:focus,.field textarea:focus {border-color:#D3B370;box-shadow:0 0 0 3px #D6B67322}
select option {background:#25221E;color:#FAEFE0}
input::placeholder, textarea::placeholder {color:#8D8276;opacity:1}
.field label {color:#CBBBA3;font-weight:600}
.field-hint {color:#AEA292}
.icon-button {background:#2A251F;border:1px solid #52422E;color:#D6BB88}
.icon-button:hover {color:#FFEAC1;border-color:#BC9556}
.tag {background:#2C261E;border:1px solid #4A3C29;color:#D9BD8D}
.notice {background:#292219;border-color:#604B2E;color:#D9C1A1}
.notice.warn {background:#29231C;border-color:#665035;color:#E5C897}
.message {background:#24211D;border-color:#493D30;color:#D1C6B9}
.shortcut-box,.chips,.chip {background:#28231E;color:#D0B88F}
.shortcut-box span {color:#B7A895}
.shortcut-box b {color:#F1DFBB}
.modal-wrap {background:#000000C4;backdrop-filter:blur(7px)}
.modal {background:linear-gradient(150deg,#211D18,#151412);border:1px solid #654F2F;color:#F5F0E8;box-shadow:0 24px 100px #000000A8}
.modal-header h2 {font-family:Georgia,'Times New Roman',serif;color:#F7E9D0;font-size:26px;font-weight:500;letter-spacing:0}
.modal-header p {color:#AFA190}
.close {background:#3A3025;color:#E6D0A7}
.toggle-row button {background:#24201A;color:#BEB09C;border:1px solid #4E4030}
.toggle-row button.active {background:#433323;color:#F9DBA1;border-color:#B89254}
.big-number {font-family:Georgia,'Times New Roman',serif;color:#F2DFB8;font-weight:500}
.toast {background:#322616;border:1px solid #98713D;color:#F5E4C4}
@media(max-width:1260px) {
  .page {padding:31px 28px 95px}
  .topbar {padding:0 28px}
}
@media(max-width:830px) {
  .sidebar {width:202px}
  .workspace {margin-left:202px;width:calc(100% - 202px)}
  .brand {margin-left:2px;gap:7px}
  .brand b {font-size:21px;letter-spacing:1.2px}
  .brand small {font-size:7px;letter-spacing:1px}
  .page-title {font-size:32px}
  .balance-value {font-size:31px}
}
@media(max-width:680px) {
  .workspace {margin:0;width:100%}
  .topbar {height:67px;padding:0 17px}
  .breadcrumb .top-brand {display:flex;letter-spacing:1.6px}
  .breadcrumb .top-brand img {width:24px;height:20px}
  .breadcrumb b {font-size:10px;color:#BEB5A8}
  .slash {display:inline}
  .status-chip {font-size:9px;padding:7px 9px}
  .page {padding:29px 16px 115px}
  .page-intro {gap:10px}
  .page-title {font-size:29px}
  .page-intro .period-select {font-size:10px;padding:8px 7px;max-width:130px}
  .balance-grid {gap:9px}
  .balance-card {padding:17px 13px;min-height:170px}
  .balance-label {font-size:10px;gap:5px}
  .flag-coin {width:25px;height:25px;font-size:11px}
  .balance-value {font-size:23px;letter-spacing:0;margin-top:28px}
  .balance-foot {font-size:9px;margin-top:15px}
  .panel {padding:19px 16px}
  .mini-stat {padding:12px 8px}
  .mini-stat .val {font-size:16px}
  .donut-hole b {font-size:15px}
  .mobile-nav {background:#12110F;border-top:1px solid #56442A;box-shadow:0 -10px 30px #00000080}
  .mobile-nav button {color:#AFA396}
  .mobile-nav button.active {color:#E8BE75}
  .mobile-nav .mobile-add {background:linear-gradient(145deg,#ECC77F,#B8843F);color:#20160A;box-shadow:0 6px 18px #CCA15638}
  .modal {background:#191714;border:1px solid #493B29;border-bottom:0}
  .donut {width:152px;height:152px}
}
@media(max-width:390px){
  .balance-card {min-height:153px}
  .balance-value {font-size:20px}
  .donut {height:122px;width:122px}
  .donut-hole b {font-size:12px}
}
/* Acabamentos de usabilidade no iPhone */
@media(max-width:680px) {
  .breadcrumb span.top-brand:first-child {display:flex;align-items:center}
  .panel-head {gap:8px}
  .segment button {padding:7px 8px;white-space:nowrap;font-size:10px}
  .mobile-nav {padding-bottom:max(6px,env(safe-area-inset-bottom))}
}

/* Correções iPhone (safe areas, altura dinâmica, zoom em campos) · v2.3 */
html { background:#0D0C0B; -webkit-text-size-adjust:100%; text-size-adjust:100%; }
html, body { overscroll-behavior:none; }
.app-shell { min-height:100vh; min-height:100dvh; }
.sidebar { height:100vh; height:100dvh; }
@media(max-width:680px) {
  .topbar {
    height:auto;
    min-height:calc(67px + env(safe-area-inset-top));
    padding-top:env(safe-area-inset-top);
    padding-left:max(17px, env(safe-area-inset-left));
    padding-right:max(17px, env(safe-area-inset-right));
  }
  .page { padding-bottom:calc(115px + env(safe-area-inset-bottom)); }
  .mobile-nav {
    height:auto;
    min-height:calc(70px + env(safe-area-inset-bottom));
    padding:6px max(12px, env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-right));
    transform:translateZ(0);
    -webkit-transform:translateZ(0);
    will-change:transform;
  }
  /* Evita o zoom automático do Safari ao tocar em campos (< 16px) */
  input, select, textarea,
  .field input, .field select, .field textarea,
  .auth-card input,
  .page-intro .period-select { font-size:16px; }
  .page-intro .period-select { padding:7px 6px; }
  .modal {
    max-height:94vh;
    max-height:94dvh;
    padding-bottom:calc(25px + env(safe-area-inset-bottom));
  }
  .toast {
    left:16px;
    right:16px;
    max-width:none;
    bottom:calc(92px + env(safe-area-inset-bottom));
  }
}

/* Ícones uniformes do menu inferior (evita emoji colorido no iPhone) */
.mobile-nav button .nav-svg{display:flex;align-items:center;justify-content:center;width:24px;height:24px;font-size:0;line-height:0}
.mobile-nav button .nav-svg svg{width:22px;height:22px;display:block}

/* Alumia 2.4: adapta seis itens no menu inferior preservando as melhorias do iPhone. */
@media(max-width:680px){
  .mobile-nav{justify-content:space-between;gap:0}
  .mobile-nav button{flex:1 1 0;min-width:0;padding:6px 1px;font-size:9px}
  .mobile-nav button .nav-svg{width:22px;height:24px}
  .mobile-nav .mobile-add{flex:0 0 45px;min-width:45px;max-width:45px}
  .mobile-nav .mobile-add span{font-size:27px}
}
@media(max-width:350px){.mobile-nav button{font-size:8px}.mobile-nav{padding-left:5px;padding-right:5px}}


/* Alumia 2.4.1 · correção do formulário em iOS/Safari
   Os controles de Data e Categoria não disputam a largura da mesma linha.
   Mantém intactos os estilos de identidade visual e navegação existentes. */
@media (max-width:680px) {
  .modal-wrap .modal {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .modal #recordForm .form-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 14px;
    width: 100%;
  }
  .modal #recordForm .form-grid > .field,
  .modal #recordForm .form-grid > .full {
    grid-column: 1 / -1;
    min-width: 0;
    max-width: 100%;
  }
  .modal #recordForm .form-grid .field input,
  .modal #recordForm .form-grid .field select,
  .modal #recordForm .form-grid .field textarea {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 16px;
  }
  .modal #recordForm .form-grid input[type="date"] {
    -webkit-appearance: auto;
    appearance: auto;
    min-height: 46px;
  }
}

/* Alumia 2.5.4 — Correcoes de navegacao e formulario Safari/iPhone */
/* Campos opcionais de investimento nao aparecem para gastos ou recebimentos. */
.investment-fields[hidden],#entryCategoryField[hidden]{display:none!important}
.investment-inner{padding:16px 14px;border:1px solid #58472F;background:#242019;border-radius:12px}
.investment-details-title{font-size:13px;font-weight:750;color:#F0D6A1;margin-bottom:13px}
.investment-details-title span{font-size:10px;color:#A99A82;font-weight:500;margin-left:6px}
.investment-details-grid{gap:12px}
.investment-inner .field-hint{margin:12px 0 0}
.investment-breakdown{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px}
.investment-kind-row{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:10px;background:#242019;border:1px solid #483826;border-radius:9px;padding:12px;color:#C8B89C;font-size:12px}
.investment-kind-row b{color:#F1DAB0;white-space:nowrap}
.field input[readonly]{border-color:#977748;background:#282217;color:#EBD6AC}
@media(max-width:680px){
  /* Sete posicoes iguais: o + fica SEMPRE na quarta posicao, exatamente no centro. */
  .mobile-nav{
    display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr));
    align-items:start;justify-content:initial;gap:0;
    padding-left:max(5px,env(safe-area-inset-left));padding-right:max(5px,env(safe-area-inset-right));
    box-sizing:border-box;
  }
  .mobile-nav button{min-width:0!important;max-width:none!important;width:100%;padding:6px 0!important;font-size:clamp(7px,2vw,9px);flex:none!important;white-space:nowrap;overflow:visible}
  .mobile-nav button .nav-svg{height:24px;margin:0 auto;width:22px}
  .mobile-nav button .nav-svg svg{height:21px;width:21px}
  .mobile-nav .mobile-add{justify-self:center;align-self:start;max-width:48px!important;min-width:0!important;width:min(48px,100%)!important;height:48px;padding:0!important;margin:0;border-radius:14px;transform:translateY(-10px)}
  .mobile-nav .mobile-add span{font-size:28px!important}
  .modal-wrap{width:100%;overflow:hidden}
  .modal-wrap .modal{box-sizing:border-box;width:100%;max-width:100%;overflow-x:hidden;max-height:95dvh;overscroll-behavior:contain}
  .modal #recordForm,.modal #recordForm .form-grid{min-width:0;width:100%;max-width:100%}
  .modal #recordForm .form-grid{grid-template-columns:minmax(0,1fr)!important;gap:13px}
  .modal #recordForm .form-grid>.field,.modal #recordForm .form-grid>.full{grid-column:1/-1;min-width:0;width:100%;max-width:100%;box-sizing:border-box}
  .modal #recordForm input,.modal #recordForm select,.modal #recordForm textarea{min-width:0!important;max-width:100%!important;width:100%!important;box-sizing:border-box;font-size:16px!important;-webkit-text-size-adjust:100%;}
  .modal #recordForm input[type=date]{appearance:auto;-webkit-appearance:auto;display:block;min-width:0!important;max-width:100%;width:100%;overflow:hidden;min-height:48px}
  .modal #recordForm input[type=date]::-webkit-date-and-time-value{min-width:0;text-align:left}
  .modal #recordForm input[type=date]::-webkit-calendar-picker-indicator{max-width:24px;flex-shrink:0}
  .modal #recordForm .toggle-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  .modal #recordForm .toggle-row button{min-width:0;max-width:100%;font-size:12px}
  .investment-breakdown{grid-template-columns:1fr}
  .investment-inner{padding:13px 11px}
  /* Safari amplia campos de fonte inferior a 16px mesmo dentro de modal. */
  input,textarea,select,.period-select,.market-converter input,.auth-card input,.field input,.field select,.field textarea{font-size:16px!important}
}


/* Alumia 2.6.0 — redesign premium com menu lateral retrátil */
:root{--sidebar-w:292px;--mobile-header-h:76px;--fab-size:64px;--radius-xl:24px;--radius-lg:18px;--panel-pad:30px;--text-soft:#B8AD9A;--gold-1:#F0D294;--gold-2:#C89A52;--gold-3:#8E6A33;--surface-1:#161411;--surface-2:#1C1915;--surface-3:#25211B;--line-gold:#4B3D2B}
body.auth-signedin{background:radial-gradient(circle at top, rgba(198,153,74,.08), transparent 28%), #0d0c0b;color:#F3ECE0}
.app-shell{background:transparent;min-height:100vh;min-height:100dvh}
.sidebar{width:var(--sidebar-w);padding:28px 18px 18px;border-right:1px solid #2e261d;background:linear-gradient(180deg,#0f0e0c,#15120f 42%,#12100d 100%);box-shadow:12px 0 50px rgba(0,0,0,.24)}
.workspace{margin-left:var(--sidebar-w);width:calc(100% - var(--sidebar-w));min-height:100vh;min-height:100dvh;background:linear-gradient(180deg,rgba(255,255,255,.01),transparent)}
.brand{gap:15px;margin:0 8px 34px}.brand-symbol{width:58px;height:58px;border-radius:18px;background:#171513;border:1px solid #5A452B;box-shadow:inset 0 0 0 1px rgba(240,210,148,.08)}.brand-symbol img{width:40px;height:40px}.brand-letter b{font-family:Georgia,'Times New Roman',serif;font-size:30px;letter-spacing:1.5px;font-weight:500}.brand-letter small{display:block;margin-top:5px;font-size:11px;color:#c4a46d;letter-spacing:3px;text-transform:uppercase}
.sidebar-label{font-size:11px;color:#887558;letter-spacing:2.4px;margin:0 16px 16px}.sidebar-nav{gap:8px}.nav-item{min-height:54px;border:1px solid transparent;color:#d7cdc0;border-radius:15px;padding:14px 16px;font-size:15px;font-weight:700;background:transparent}.nav-item:hover{background:#1f1a15;border-color:#3d3124}.nav-item.active{background:linear-gradient(180deg,#312617,#251d14);border-color:#75572e;color:#fff;box-shadow:0 10px 24px rgba(0,0,0,.25)}.nav-item .nav-ico{font-size:20px;color:#c8a35f}.nav-item.active .nav-ico{color:#f1d594}
.side-bottom{margin:18px 8px 0;padding:22px 18px;border-radius:22px;background:linear-gradient(180deg,#1b1712,#14110f);border:1px solid #4c3c29;box-shadow:inset 0 1px 0 rgba(240,210,148,.08)}.side-bottom-icon img{width:34px}.side-bottom p{font-size:15px;line-height:1.55;color:#ede4d6;margin:12px 0 18px}.side-bottom span{font-size:11px;color:#9a8767;letter-spacing:1.2px}
.topbar{position:sticky;top:0;z-index:4;height:94px;padding:0 36px;background:rgba(13,12,11,.88);backdrop-filter:blur(18px);border-bottom:1px solid rgba(202,159,80,.18)}.top-left{display:flex;align-items:center;gap:18px}.sidebar-toggle{display:none;width:48px;height:48px;border-radius:14px;border:1px solid #54402b;background:#1a1713;color:#f5e6ca;align-items:center;justify-content:center;gap:5px;padding:0}.sidebar-toggle span{display:block;width:18px;height:2px;background:currentColor;border-radius:2px}.sidebar-close{display:none}
.breadcrumb{gap:14px;font-size:12px;color:#a89577;letter-spacing:1.6px}.breadcrumb b{font-size:16px;color:#fff;font-weight:700}.top-brand{display:flex;align-items:center;gap:10px;font-family:Georgia,'Times New Roman',serif;font-size:22px;letter-spacing:3px;color:#f4ece0}.top-brand img{width:26px;height:auto}.slash{color:#6d5840}.status-chip{padding:10px 15px;border-radius:999px;border:1px solid #4d3e2d;background:#171411;color:#ddcfba;font-size:12px}.status-chip.synced{border-color:#6a5332;color:#efd9b1}.status-chip i{background:#d1a453}.status-chip.synced i{background:#27b18b}
.btn{min-height:48px;padding:13px 19px;border-radius:14px;font-size:13px}.btn-primary{background:linear-gradient(145deg,#efce8c,#b7833f);color:#20150a;box-shadow:0 12px 30px rgba(196,144,62,.25)}.btn-primary:hover{background:linear-gradient(145deg,#f6da9c,#c98f42)}.btn-secondary{background:#201b16;border:1px solid #56422c;color:#e9ddc7}.btn-secondary:hover{background:#2a241d}.btn-ghost{background:transparent;border:1px solid #4f4234;color:#dfcfb8}.plus{font-size:22px}
.page{max-width:none;padding:38px 34px 120px}.page-intro{margin-bottom:28px}.eyebrow{font-size:11px;letter-spacing:2.6px;color:#c79f59}.page-title{font-family:Georgia,'Times New Roman',serif;font-size:46px;line-height:1.12;letter-spacing:-.8px;color:#fff;font-weight:500}.subheading{font-size:15px;line-height:1.7;color:#b8ad9a;margin-top:12px;max-width:72ch}.period-select,.field select,.field input,.field textarea{border:1px solid #52422f;background:#1e1a16;color:#f5efe4;border-radius:14px;font-size:16px}.field input,.field select,.field textarea{padding:14px 16px;min-height:54px}.field label{font-size:12px;color:#dac7ac;letter-spacing:.4px}.field-hint{font-size:11px;color:#ab9c87}.period-select{padding:13px 16px;background:#1a1713;color:#eedcc0}
.balance-grid{gap:22px;margin-bottom:22px}.balance-card{min-height:250px;padding:34px 34px 28px;border-radius:24px;border:1px solid #70552f;box-shadow:0 22px 50px rgba(0,0,0,.18), inset 0 0 0 1px rgba(255,255,255,.02)}.balance-card.euro{background:linear-gradient(135deg,#2a2117 0%,#17130f 55%,#12100d 100%)}.balance-card.real{background:linear-gradient(135deg,#30261a 0%,#1a1611 55%,#12100d 100%)}.balance-card:after{border:1px solid rgba(240,210,148,.12);box-shadow:0 0 0 52px rgba(200,163,95,.06),0 0 0 104px rgba(200,163,95,.03);right:-48px;top:-122px;width:270px;height:270px}.balance-label{font-size:14px;color:#d8ccb8}.flag-coin{width:34px;height:34px;font-size:16px;background:#3a2e20;border:1px solid #6b5434;color:#f4dcad}.balance-value{margin-top:28px;font-size:46px;letter-spacing:-1.4px;color:#fff7ea;font-family:Georgia,'Times New Roman',serif;font-weight:500}.balance-foot{margin-top:20px;font-size:12px;color:#bba98d}.balance-foot strong{color:#e9d4ae}
.summary-grid,.layout-bottom{gap:22px}.panel{background:linear-gradient(180deg,#181512,#13110e);border:1px solid #3c3126;border-radius:22px;padding:var(--panel-pad);box-shadow:0 18px 44px rgba(0,0,0,.18)}.panel-title{font-size:18px;color:#f7efde}.panel-subtitle{font-size:12px;color:#a99d8b}.card-link{color:#e4c37e}.mini-stat{background:#211d18;border:1px solid #3d3227;border-radius:16px;padding:20px 16px}.mini-stat .val{font-size:26px;color:#fff6e8;font-family:Georgia,'Times New Roman',serif;font-weight:500}.stat-label{font-size:12px;color:#cbbba3}.stat-label .dot{width:8px;height:8px}.segment{padding:4px;background:#221d17;border:1px solid #44392b;border-radius:12px}.segment button{padding:9px 14px;font-size:12px;color:#c4b59d}.segment button.active{background:linear-gradient(145deg,#ecd086,#bc8742);color:#26180c;box-shadow:none}
.thin-divider{border-top:1px solid #3b3228}.donut{box-shadow:inset 0 0 0 1px #3c3328}.donut-hole{background:#16130f;border:1px solid #3a3126}.donut-hole span{color:#aa9d88}.donut-hole b{font-size:20px;color:#fff4e2;font-family:Georgia,'Times New Roman',serif;font-weight:500}.legend-row{font-size:12px}.legend-row .name{color:#d0c4b2}.legend-row b{color:#eddcbc}.activity-table th{font-size:10px;color:#b89a69;border-bottom-color:#423529}.activity-table td{font-size:13px;color:#cabdad;border-bottom-color:#332a21}.activity-table .item-title{font-size:14px;color:#f4ece0}.activity-table .item-note{font-size:11px;color:#978b7d}.activity-table .amount{font-size:13px;color:#f0e7d7}.activity-table .amount.positive{color:#9fbe9d}.activity-table .amount.negative{color:#e4a091}.cat-ico{width:38px;height:38px;border-radius:12px;background:#282218;border:1px solid #473721;color:#f1cf8b}.category-pill{background:#2a241c;border:1px solid #463828;color:#dec59b}.empty{color:#a99b88}.empty b{color:#ece0cc}.empty p{font-size:12px;color:#9d9284}.rate-badge{background:#241e17;border:1px solid #4e402e;color:#e8ca8a}.rate-line{padding:14px 0;border-bottom:1px solid #393027}.rate-line span{color:#b6ab9a}.rate-line b{color:#fff1d6}.muted,.foot-note,.pwa-tip{color:#a99d8c}.filters{gap:12px}.icon-button{min-width:34px;min-height:34px;background:#1c1915;border:1px solid #4b3b29;color:#dfc79b}.icon-button:hover{border-color:#ba9354;color:#fff0d0}
.settings-grid{gap:20px}.modal-wrap{background:rgba(6,6,6,.72);backdrop-filter:blur(10px)}.modal{width:min(700px,100%);padding:32px;border-radius:26px;background:linear-gradient(180deg,#1b1713,#13110e);border:1px solid #665131;color:#f5efe5}.modal-header h2{font-family:Georgia,'Times New Roman',serif;font-size:30px;font-weight:500;color:#fff1d6}.modal-header p{font-size:13px;color:#ac9f8c}.close{width:38px;height:38px;border-radius:12px;background:#2c241c;color:#e9d6af}.form-grid{gap:16px}.toggle-row button{min-height:48px;background:#211c16;color:#c3b49d;border:1px solid #4b3d2d}.toggle-row button.active{background:#423322;color:#f6d89f;border-color:#b38b4f}.notice{background:#231d16;border:1px solid #5c4930;color:#dcc4a2;border-radius:14px}.notice.warn{background:#2a231a;border-color:#6e5435;color:#e6c88d}.message{background:#201c17;border:1px solid #46392c;color:#d7cab8}.tag,.chip{background:#26211b;color:#d8bf90}.shortcut-box{background:#221d18}.shortcut-box span{color:#b09f84}.shortcut-box b{color:#f5e3be}.toast{background:#251c12;border:1px solid #9a7340;color:#f7e6c6;border-radius:14px}
.mobile-nav{display:none!important}.floating-add{display:none}
.sidebar-backdrop{display:none}
@media (max-width: 1280px){:root{--sidebar-w:270px}.page{padding:32px 26px 110px}.topbar{padding:0 28px}.balance-value{font-size:40px}.page-title{font-size:40px}}
@media (max-width: 980px){:root{--sidebar-w:248px}.topbar .btn{padding:12px 16px}.page-title{font-size:36px}.balance-card{min-height:220px;padding:28px}.balance-value{font-size:34px}}
@media (max-width: 820px){body.auth-signedin{background:#0d0c0b}.workspace{margin-left:0;width:100%}.sidebar{display:flex;transform:translateX(-110%);transition:transform .26s ease;width:min(86vw,340px);padding:22px 16px 18px;z-index:30}.sidebar-close{display:flex;align-items:center;justify-content:center;position:absolute;right:14px;top:14px;width:40px;height:40px;border-radius:12px;border:1px solid #4b3b29;background:#1b1713;color:#ead5ae;font-size:24px}.sidebar-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:24}.drawer-open .sidebar{transform:translateX(0)}.drawer-open .sidebar-backdrop{display:block}.topbar{height:auto;min-height:var(--mobile-header-h);padding:14px 18px calc(14px + env(safe-area-inset-top));align-items:flex-start;flex-direction:column;gap:12px}.top-left,.top-actions{width:100%;justify-content:space-between}.top-left{gap:12px;align-items:center}.top-actions{display:flex;align-items:center}.sidebar-toggle{display:inline-flex}.top-brand{font-size:20px;letter-spacing:2.6px}.breadcrumb{gap:10px;min-width:0}.breadcrumb .slash{display:none}.breadcrumb b{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:42vw}.topbar .btn{display:none}.status-chip{font-size:11px;padding:9px 12px}.page{padding:22px 18px 110px}.page-intro{flex-direction:column;align-items:flex-start;gap:14px}.page-title{font-size:34px}.subheading{font-size:14px;max-width:none}.balance-grid{grid-template-columns:1fr;gap:14px}.balance-card{min-height:198px;padding:24px 22px}.balance-value{font-size:32px;margin-top:24px}.summary-grid,.layout-bottom,.settings-grid,.donut-layout,.period-analysis,.form-grid,.conversion-summary{grid-template-columns:1fr!important}.panel{padding:22px 18px;border-radius:20px}.panel-head,.analysis-top{align-items:flex-start;flex-direction:column}.stat-row{grid-template-columns:1fr}.mini-stat .val{font-size:24px}.donut-layout{gap:18px;justify-items:center}.legend{width:100%}.table-scroll{overflow:auto}.activity-table{min-width:620px}.activity-table th:nth-child(3),.activity-table td:nth-child(3){display:table-cell}.modal-wrap{align-items:flex-end;padding:0}.modal{width:100%;max-height:92vh;max-height:92dvh;border-radius:26px 26px 0 0;padding:26px 18px calc(26px + env(safe-area-inset-bottom))}.floating-add{display:flex;position:fixed;right:18px;bottom:calc(20px + env(safe-area-inset-bottom));width:var(--fab-size);height:var(--fab-size);border-radius:50%;border:1px solid #88632f;background:linear-gradient(145deg,#efcf90,#b88644);color:#23170b;align-items:center;justify-content:center;box-shadow:0 16px 34px rgba(0,0,0,.34),0 0 0 7px rgba(15,12,10,.45);z-index:22}.floating-add span{font-size:34px;line-height:1}}
@media (max-width: 480px){.topbar{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}.page{padding-left:16px;padding-right:16px}.page-title{font-size:30px}.top-brand{font-size:18px}.balance-card{padding:22px 18px}.balance-value{font-size:28px}.field input,.field select,.field textarea,.period-select{font-size:16px}.breadcrumb b{max-width:46vw}.floating-add{right:16px;bottom:calc(16px + env(safe-area-inset-bottom));width:60px;height:60px}}


/* Alumia 2.6.1 — cabeçalho editorial, centralizado e discreto */
.mobile-wordmark{display:none}
/* Destaca a marca sem contaminar o título da seção com a tipografia decorativa. */
.breadcrumb b{font-family:'DM Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-weight:600;letter-spacing:.1px}
/* Controle de acesso: nunca mostrar o FAB na tela de login ou com sessão bloqueada. */
body:not(.auth-signedin) .floating-add{display:none!important}
/* O FAB deve ficar abaixo do modal, cuja camada é z-index:20. */
.floating-add{z-index:12!important}
/* Evita que uma sombra de backdrop apareça após o encerramento do menu. */
.sidebar-backdrop[hidden]{display:none!important}
@media(max-width:820px){
  .topbar{position:sticky;top:0;z-index:4;box-sizing:border-box;min-height:calc(72px + env(safe-area-inset-top));height:calc(72px + env(safe-area-inset-top));max-height:none;padding:env(safe-area-inset-top) max(17px,env(safe-area-inset-right)) 0 max(17px,env(safe-area-inset-left));display:grid;grid-template-columns:46px minmax(0,1fr) 46px;grid-template-rows:72px;align-items:center;justify-items:center;gap:0;background:rgba(15,14,12,.97);border-bottom:1px solid rgba(231,218,192,.12);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
  .topbar::after{content:'';display:block;grid-column:3;grid-row:1;width:46px;height:46px;pointer-events:none}
  .top-left{grid-column:1;grid-row:1;display:flex;align-items:center;justify-content:flex-start;width:46px;height:46px;min-width:0;gap:0}
  .topbar .breadcrumb{display:none!important}
  .topbar .top-actions{display:none!important}
  .sidebar-toggle{display:flex!important;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;background:transparent!important;border:none!important;border-radius:12px!important;color:#f0e9dd!important;width:46px;height:46px;padding:0 10px;box-shadow:none!important;transition:background .15s ease}
  .sidebar-toggle span{height:1.75px;width:23px;border-radius:2px;background:currentColor;opacity:.92}
  .sidebar-toggle span:nth-child(2){width:17px}
  .sidebar-toggle:active{background:rgba(247,240,224,.08)!important}
  .sidebar-toggle:focus-visible{outline:2px solid #d6b776;outline-offset:2px}
  .mobile-wordmark{grid-column:2;grid-row:1;display:block;justify-self:center;align-self:center;min-width:0;margin:0;color:#f5efe5;white-space:nowrap;font-family:Georgia,'Times New Roman',serif;font-weight:400;font-size:24px;letter-spacing:3.9px;line-height:1;transform:translateX(2px);text-align:center}
  .sidebar{padding-top:calc(22px + env(safe-area-inset-top))}
  .sidebar-close{top:calc(14px + env(safe-area-inset-top))}
  .sidebar .nav-item{font-family:'DM Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-weight:600;letter-spacing:.1px}
  .drawer-open{overflow:hidden}
  .drawer-open .sidebar-backdrop{display:block}
  .floating-add{z-index:12!important}
}
@media(max-width:360px){
  .mobile-wordmark{font-size:21px;letter-spacing:3.2px}
}
@media(prefers-reduced-motion:reduce){.sidebar{transition:none!important}}

/* Alumia 2.6.2: ícones vetoriais uniformes e simulador de juros compostos */
.sidebar-nav .nav-ico{display:inline-flex;align-items:center;justify-content:center;flex:0 0 23px;width:23px;height:23px;line-height:0;font-size:0;}
.sidebar-nav .nav-ico svg{width:21px;height:21px;display:block;stroke:currentColor;}
.sidebar-nav{min-height:0;overflow-x:hidden;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#4b3a25 transparent}
.sim-invest-link{width:100%;display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 18px;padding:16px 20px;border:1px solid #6b5436;border-radius:15px;background:linear-gradient(90deg,#211b14,#171410);color:#e9c88d;font-weight:700;text-align:left;font-size:14px}
.sim-invest-link:hover{background:#2c241b;border-color:#a47c42}
.sim-layout{display:grid;grid-template-columns:minmax(300px,.72fr) minmax(0,1.5fr);gap:22px;align-items:start}
.sim-settings{position:sticky;top:114px;padding:28px}
.sim-panel-title{display:flex;align-items:center;gap:12px;margin-bottom:26px}.sim-panel-badge{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:13px;border:1px solid #69502f;background:#33271a;color:#eccb89;font-size:15px;font-weight:700}.sim-panel-title h2{font-size:18px;font-weight:700;color:#fff2dd}.sim-panel-title p{font-size:12px;line-height:1.5;color:#a99c88;margin-top:4px}
.sim-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 14px}.sim-form-grid .field{min-width:0}.sim-form-grid .field label{line-height:1.35;font-size:12px}.sim-form-grid input,.sim-form-grid select{width:100%;min-width:0;max-width:100%;min-height:51px;font-size:16px;padding:12px 11px;border:1px solid #544331;border-radius:12px;background:#211c16;color:#f5ead7;outline:none}.sim-form-grid input:focus,.sim-form-grid select:focus{border-color:#e1bd7a;box-shadow:0 0 0 3px #d6b77622}.sim-form-foot{margin-top:21px;padding-top:19px;border-top:1px solid #3e3428;display:flex;flex-direction:column;align-items:flex-start;gap:10px}.sim-form-foot span{font-size:11px;color:#a99c88;line-height:1.6}.sim-reset{border:1px solid #625038;background:#2c251c;color:#e6c89b;border-radius:10px;min-height:38px;padding:9px 14px;font-size:12px;font-weight:700}
.sim-results{min-width:0;display:flex;flex-direction:column;gap:18px}.sim-summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.sim-big-result{grid-column:1/-1;background:linear-gradient(120deg,#36291a,#211910 65%,#18130e);border:1px solid #927043;min-height:184px;border-radius:22px;padding:25px 28px;display:flex;flex-direction:column;gap:16px;box-shadow:inset 0 1px 0 #d8ac6d22}.sim-big-result strong{font-family:Georgia,'Times New Roman',serif;font-size:clamp(30px,3.2vw,52px);line-height:1.1;font-weight:500;color:#fff3dc;letter-spacing:-1px;overflow-wrap:anywhere}.sim-caption{font-size:12px;font-weight:600;color:#dbc9ab;letter-spacing:.3px}.sim-small-note{font-size:11px;color:#b0a08a}.sim-figure{display:flex;flex-direction:column;justify-content:space-between;gap:12px;padding:22px 23px;background:linear-gradient(135deg,#1c1915,#161411);border-radius:19px;border:1px solid #463729;min-height:141px}.sim-figure strong{font-size:clamp(20px,2vw,27px);line-height:1.15;font-family:Georgia,'Times New Roman',serif;font-weight:500;color:#f1e7d5;overflow-wrap:anywhere}.sim-figure strong.sim-gain{color:#e7c98b}.sim-figure strong.sim-loss{color:#e9a29a}
.sim-chart-panel,.sim-table-panel{border:1px solid #3c3126;border-radius:22px;background:linear-gradient(180deg,#181512,#13110e);padding:24px;min-width:0}.sim-chart-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:17px}.sim-chart-heading h2{font-size:18px;color:#f8efe0;margin-bottom:6px}.sim-chart-heading p{font-size:12px;color:#a69986;line-height:1.55}.sim-legend{display:flex;gap:18px;flex-wrap:wrap;justify-content:flex-end;margin-top:4px}.sim-legend span{display:inline-flex;align-items:center;gap:7px;font-size:11px;color:#c1b19b;white-space:nowrap}.sim-legend i{display:block;width:20px;border-top:3px solid #ddbd75}.sim-legend i.sim-line-muted{border-color:#aaa096;border-top-style:dashed}.sim-chart-container{position:relative;min-width:0}.sim-chart-svg{display:block;width:100%;height:auto;touch-action:pan-y}.sim-dot-hit{cursor:crosshair}.sim-chart-tooltip{position:absolute;display:flex;flex-direction:column;gap:4px;min-width:175px;max-width:220px;transform:translate(-50%,calc(-100% - 14px));padding:12px 15px;border-radius:12px;border:1px solid #80603a;background:#261d15;box-shadow:0 12px 24px #0009;z-index:2;pointer-events:none;color:#e8d3ad;font-size:11px;white-space:nowrap}.sim-chart-tooltip strong{font-size:12px;color:#f9edda;margin-bottom:4px}.sim-chart-tooltip.below{transform:translate(-50%,15px)}.sim-chart-tooltip[hidden]{display:none}.sim-chart-hint{font-size:11px;color:#9f917f;line-height:1.5;margin-top:8px}.sim-table-wrap{overflow-x:auto}.sim-table{width:100%;border-collapse:collapse;min-width:460px;font-variant-numeric:tabular-nums}.sim-table th{font-size:10px;text-transform:uppercase;letter-spacing:.8px;color:#b7a17e;text-align:left;padding:13px 10px;border-bottom:1px solid #483827}.sim-table td{font-size:12px;color:#cbbda9;padding:14px 10px;border-bottom:1px solid #322920}.sim-table tr:last-child td{border-bottom:0}.sim-table td strong{color:#f5ebd9}.sim-error{padding:20px;border:1px solid #915a4f;border-radius:14px;background:#33211e;color:#f4c0b6;line-height:1.5}.sim-disclaimer{border:1px solid #443827;background:#1d1914;border-radius:17px;margin-top:22px;padding:16px 20px;color:#ab9d88;font-size:12px;line-height:1.75}.sim-disclaimer strong{color:#e6c994}
@media(max-height:760px){.sidebar .side-bottom{display:none}.sidebar{padding-bottom:14px}}
@media(max-width:1400px){.sim-layout{grid-template-columns:minmax(280px,.8fr) minmax(0,1.1fr)}.sim-settings{padding:20px}.sim-form-grid{grid-template-columns:1fr}.sim-chart-heading{flex-direction:column}.sim-legend{justify-content:flex-start}}
@media(max-width:1040px){.sim-layout{grid-template-columns:1fr}.sim-settings{position:static}.sim-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){.sim-layout{gap:16px}.sim-settings{padding:20px}.sim-chart-panel,.sim-table-panel{padding:20px}.sim-panel-title{margin-bottom:20px}}
@media(max-width:480px){.sim-form-grid{grid-template-columns:1fr 1fr;gap:15px 10px}.sim-form-grid .field label{font-size:12px}.sim-form-grid input,.sim-form-grid select{font-size:16px;padding:12px 9px}.sim-summary-grid{gap:10px}.sim-big-result{padding:23px 19px;min-height:165px}.sim-big-result strong{font-size:35px}.sim-figure{padding:17px 14px;min-height:130px}.sim-figure strong{font-size:19px}.sim-chart-panel,.sim-table-panel{padding:19px 13px}.sim-chart-heading h2{font-size:16px}.sim-chart-tooltip{min-width:145px;font-size:10px}.sim-legend{gap:11px}}
@media(max-width:350px){.sim-form-grid{grid-template-columns:1fr}.sim-figure strong{font-size:17px}.sim-big-result strong{font-size:31px}}

.sim-table-hint{display:none;font-size:11px;color:#b69f75;line-height:1.4;margin:4px 0 12px}
@media(max-width:600px){.sim-table-hint{display:block}}
