
  html{ color-scheme: light only; }
  :root{
    --bg: #F2F5FA;
    --surface: #FFFFFF;
    --surface-alt: #EEF2F8;
    --ink: #10162A;
    --ink-soft: #6B7280;
    --ink-faint: #9AA3B5;
    --line: #E6E9F2;

    --paper: #FFFFFF;
    --paper-deep: #EEF2F8;
    --rule: #E6E9F2;

    --green: #00A876;
    --green-deep: #027A56;
    --green-soft: #E1F8EF;
    --red: #F0473F;
    --red-deep: #C93830;
    --red-soft: #FDE9E8;
    --accent: #7B5CFA;
    --accent-deep: #5E3FE0;
    --accent-soft: #EFEAFE;
    --warn: #FFA726;
    --warn-soft: #FFF2DE;

    --green-lime: #7ED321;
    --green-forest: #0D4F2B;

    --r-lg: 22px;
    --r-md: 16px;
    --r-sm: 11px;
    --shadow: 0 10px 28px rgba(16,22,42,0.07);
    --shadow-lift: 0 16px 36px rgba(16,22,42,0.12);
    --shadow-btn: 0 8px 18px rgba(0,168,118,0.28);
  }

  /* ---------- Tutorial de boas-vindas ---------- */
  .onboarding-overlay{
    position:fixed; inset:0; z-index:99999;
    background:
      radial-gradient(720px 420px at 85% -8%, rgba(123,92,250,0.12), transparent 60%),
      radial-gradient(600px 380px at -10% 0%, rgba(0,168,118,0.12), transparent 55%),
      var(--bg);
    display:flex; flex-direction:column;
    padding:18px 18px calc(24px + env(safe-area-inset-bottom));
  }
  .onboarding-body{
    flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center;
    text-align:center; max-width:420px; margin:0 auto; width:100%;
  }
  .onboarding-icon{
    font-size:64px; line-height:1; margin-bottom:22px;
    filter:drop-shadow(0 8px 18px rgba(16,22,42,0.12));
  }
  .onboarding-icon img{
    max-width:150px; max-height:150px; width:auto; height:auto;
    border-radius:22px;
  }
  .onboarding-title{
    font-family:'Sora', sans-serif; font-weight:800; font-size:23px;
    color:var(--ink); margin:0 0 12px;
  }
  .onboarding-desc{
    font-family:'Inter', sans-serif; font-size:15px; line-height:1.55;
    color:var(--ink-soft); margin:0;
  }
  .onboarding-dots{ display:flex; justify-content:center; gap:8px; margin:26px 0 8px; }
  .onboarding-dot{
    width:8px; height:8px; border-radius:50%; background:var(--line);
    transition:all .2s ease;
  }
  .onboarding-dot.active{ width:22px; border-radius:5px; background:var(--green); }
  .onboarding-actions{
    display:flex; align-items:center; gap:10px; max-width:420px; margin:14px auto 0; width:100%;
  }
  .onboarding-back-btn{
    background:none; border:none; color:var(--ink-soft);
    font-family:'Inter',sans-serif; font-size:15px; font-weight:600;
    padding:14px 10px; cursor:pointer; visibility:hidden;
  }
  .onboarding-next-btn{
    flex:1; border:none; border-radius:var(--r-md);
    background:var(--green); color:#fff;
    font-family:'Inter',sans-serif; font-weight:700; font-size:16px;
    padding:15px; cursor:pointer; box-shadow:var(--shadow-btn);
  }
  .onboarding-next-btn:active{ transform:scale(0.98); }

  /* ---------- Badge de destaque (avatar ainda não visitado) ---------- */
  .app-topbar-avatar{ position:relative; }
  .avatar-ping{
    position:absolute; top:-3px; right:-3px; width:12px; height:12px;
    border-radius:50%; background:var(--accent);
    box-shadow:0 0 0 2px var(--bg);
    animation:avatarPing 1.6s ease-in-out infinite;
  }
  @keyframes avatarPing{
    0%{ transform:scale(1); opacity:1; }
    50%{ transform:scale(1.35); opacity:0.6; }
    100%{ transform:scale(1); opacity:1; }
  }

  /* ---------- Dicas contextuais (aparecem uma vez, dispensáveis) ---------- */
  .hint-card{
    display:flex; align-items:flex-start; gap:10px;
    background:var(--accent-soft); border:1px solid rgba(123,92,250,0.18);
    border-radius:var(--r-sm); padding:12px 12px 12px 14px;
    margin:0 0 10px; font-family:'Inter',sans-serif;
  }
  .hint-card .hint-text{ flex:1; font-size:13.5px; line-height:1.5; color:var(--ink); }
  .hint-card .hint-close{
    background:none; border:none; color:var(--ink-faint); font-size:15px;
    cursor:pointer; padding:2px 4px; line-height:1; flex:none;
  }

  /* ---------- Paywall / acesso Premium ---------- */
  .paywall-overlay{
    position:fixed; inset:0; z-index:99998;
    background:
      radial-gradient(720px 420px at 85% -8%, rgba(123,92,250,0.14), transparent 60%),
      radial-gradient(600px 380px at -10% 0%, rgba(0,168,118,0.14), transparent 55%),
      var(--bg);
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    text-align:center; padding:28px;
  }
  .paywall-icon{ font-size:56px; margin-bottom:18px; }
  .paywall-title{ font-family:'Sora',sans-serif; font-weight:800; font-size:22px; color:var(--ink); margin:0 0 10px; }
  .paywall-desc{ font-family:'Inter',sans-serif; font-size:15px; line-height:1.55; color:var(--ink-soft); max-width:340px; margin:0 0 26px; }
  .paywall-btn{
    width:100%; max-width:340px; border:none; border-radius:var(--r-md);
    background:var(--green); color:#fff; font-family:'Inter',sans-serif; font-weight:700; font-size:16px;
    padding:15px; cursor:pointer; box-shadow:var(--shadow-btn); margin-bottom:12px;
  }
  .paywall-logout{ background:none; border:none; color:var(--ink-faint); font-family:'Inter',sans-serif; font-size:13px; cursor:pointer; }

  .payment-tab-btn{
    flex:1; padding:11px; border-radius:10px; border:1.5px solid var(--line); background:var(--surface-alt);
    font-family:'Inter',sans-serif; font-weight:700; font-size:14px; color:var(--ink-soft); cursor:pointer;
  }
  .payment-tab-btn.active{ background:var(--ink); color:#fff; border-color:var(--ink); }

  /* ---------- Status da assinatura (dentro do Perfil) ---------- */
  .assinatura-status-card{
    display:flex; align-items:center; gap:12px; padding:14px; border-radius:var(--r-md);
    background:var(--surface); border:1px solid var(--line); box-shadow:var(--shadow);
  }
  .assinatura-status-icon{ font-size:26px; flex-shrink:0; }
  .assinatura-status-title{ font-family:'Sora',sans-serif; font-weight:700; font-size:14.5px; color:var(--ink); margin:0 0 3px; }
  .assinatura-status-sub{ font-family:'Inter',sans-serif; font-size:13px; color:var(--ink-soft); margin:0; }

  *{box-sizing:border-box; -webkit-tap-highlight-color:transparent;}
  html{ overflow-x:hidden; width:100%; }
  body{
    margin:0;
    overflow-x:hidden;
    width:100%;
    touch-action:manipulation;
    background:
      radial-gradient(720px 420px at 85% -8%, rgba(123,92,250,0.10), transparent 60%),
      radial-gradient(600px 380px at -10% 0%, rgba(0,168,118,0.10), transparent 55%),
      var(--bg);
    color:var(--ink);
    font-family:'Inter', sans-serif;
    -webkit-font-smoothing:antialiased;
    min-height:100vh;
    display:flex;
    justify-content:center;
    padding: 22px 14px 104px;
  }
  .sheet{ width:100%; max-width:480px; min-width:0; overflow-x:hidden; touch-action:manipulation; margin:0 auto; }

  .eyebrow{
    font-family:'Sora', sans-serif;
    font-size:22px; font-weight:700; letter-spacing:-0.01em;
    color:var(--ink); margin:2px 0 16px 2px;
  }

  /* ---------- month bar ---------- */
  .month-bar{
    display:flex; align-items:center; gap:8px; margin-bottom:14px;
    background: var(--surface); border:1px solid var(--line); border-radius:var(--r-md);
    padding:6px 8px; box-shadow:var(--shadow);
  }
  .month-bar button{
    width:34px; height:34px; flex-shrink:0; border-radius:10px;
    background:var(--surface-alt); color:var(--ink); font-family:'Sora',sans-serif;
    font-size:16px; font-weight:600; border:none; cursor:pointer; transition:transform .1s ease, background .15s ease;
  }
  .month-bar button:active{ transform:scale(0.92); background:var(--accent-soft); }
  .month-bar button:disabled{ opacity:0.35; cursor:default; }
  .month-bar button:disabled:active{ transform:none; background:var(--surface-alt); }
  .month-bar input[type="month"]{
    flex:1; border:none; background:transparent; font-family:'Sora', sans-serif;
    font-weight:600; font-size:16px; color:var(--ink); padding:4px 2px; text-transform:capitalize;
  }
  .month-bar input[type="month"]:focus{ outline:none; }

  .today-date-label{
    margin:-6px 0 14px 4px; font-family:'Inter',sans-serif; font-size:13px;
    font-weight:600; color:var(--ink-soft); text-transform:capitalize;
  }

  .history-toggle{
    background:none; border:none; width:auto; padding:0; margin:0 0 16px 4px;
    color:var(--accent-deep); font-weight:600; font-size:14px; cursor:pointer;
    font-family:'Inter',sans-serif;
  }
  .history-panel{
    background: var(--surface); border:1px solid var(--line); border-radius:var(--r-md);
    padding:6px 12px; margin-bottom:16px; display:none; box-shadow:var(--shadow);
  }
  .history-panel.open{ display:block; }
  .history-row{
    display:flex; justify-content:space-between; align-items:center;
    padding:11px 2px; border-bottom:1px solid var(--line); cursor:pointer; font-size:15px;
  }
  .history-row:last-child{ border-bottom:none; }
  .history-row:hover{ background: var(--surface-alt); }
  .history-row .h-label{ font-family:'Inter',sans-serif; font-weight:500; }
  .history-row .h-balance{ font-family:'Sora',sans-serif; font-size:14px; font-weight:600; color:var(--ink-soft); }
  .history-empty{ font-size:14.5px; color:var(--ink-soft); padding:12px 2px; }

  /* ---------- Manual do Motorista Positivo ---------- */
  .manual-intro{ font-size:14.5px; color:var(--ink-soft); text-align:justify; margin:0 0 18px; line-height:1.55; }
  .manual-chapter{ padding:14px 16px; }
  .manual-chapter-head{
    width:100%; display:flex; justify-content:space-between; align-items:center; gap:10px;
    background:none; border:none; padding:0; cursor:pointer; text-align:left;
    font-family:'Sora',sans-serif; font-weight:700; font-size:14.5px; color:var(--ink);
  }
  .manual-chevron{ color:var(--ink-faint); font-size:17px; flex-shrink:0; transition:transform .2s ease; }
  .manual-chevron.open{ transform:rotate(90deg); color:var(--accent-deep); }
  .manual-chapter-body{ display:none; margin-top:12px; font-family:'Inter',sans-serif; font-size:13.5px; color:var(--ink-soft); line-height:1.55; }
  .manual-chapter-body.open{ display:block; }
  .manual-chapter-body h4{ font-family:'Sora',sans-serif; font-size:13px; font-weight:700; color:var(--ink); margin:14px 0 6px; }
  .manual-chapter-body h4:first-child{ margin-top:0; }
  .manual-chapter-body p{ margin:0 0 10px; text-align:justify; }
  .manual-chapter-body ul{ margin:0 0 10px; padding-left:18px; }
  .manual-chapter-body li{ margin-bottom:4px; }
  .manual-table{ width:100%; border-collapse:collapse; margin:6px 0 14px; font-size:12.5px; }
  .manual-table th, .manual-table td{ border-bottom:1px solid var(--line); padding:7px 6px; text-align:left; vertical-align:top; }
  .manual-table th{ font-family:'Sora',sans-serif; color:var(--ink); font-weight:700; }
  .manual-tip{ background:var(--accent-soft); border-radius:var(--r-sm); padding:10px 12px; margin:4px 0 12px; font-size:12.5px; color:var(--ink); }
  .manual-tip b{ color:var(--accent-deep); }
  .manual-warn{ background:var(--warn-soft); border-radius:var(--r-sm); padding:10px 12px; margin:4px 0 12px; font-size:12.5px; color:var(--ink); }
  .manual-warn b{ color:#B7791F; }
  .manual-dot{ display:inline-block; width:9px; height:9px; border-radius:50%; margin-right:6px; flex-shrink:0; }

  /* ---------- signature: wallet balance card ---------- */
  .balance-card{
    background: linear-gradient(150deg, #00C48C 0%, #00A876 46%, #027A56 100%);
    border:none;
    border-radius:26px;
    padding:26px 22px 22px;
    margin-bottom:20px;
    position:relative;
    overflow:hidden;
    box-shadow: 0 18px 40px rgba(0,124,87,0.30);
    color:#fff;
  }
  .balance-card::before{
    content:""; position:absolute; top:-60%; right:-25%; width:220px; height:220px; border-radius:50%;
    background: radial-gradient(circle, rgba(255,255,255,0.22), transparent 70%);
    opacity:1;
  }
  .balance-label-row{
    display:flex; justify-content:space-between; align-items:center; position:relative; z-index:1;
  }
  .balance-label{
    font-family:'Inter', sans-serif; font-size:13px; font-weight:600;
    letter-spacing:0.04em; text-transform:uppercase; color:rgba(255,255,255,0.82);
  }
  .eye-toggle{
    background:rgba(255,255,255,0.18); border:none; cursor:pointer; font-size:15px; line-height:1;
    padding:6px 8px; border-radius:9px; color:#fff;
  }
  .eye-toggle:active{ transform:scale(0.9); }
  .balance-value{
    font-family:'Sora', sans-serif; font-weight:700; font-size:40px; line-height:1.15;
    margin:6px 0 2px; font-variant-numeric: tabular-nums;
    display:inline-block; position:relative; z-index:1; color:#fff; letter-spacing:-0.01em;
  }
  .balance-value.positive{ color:#fff; }
  .balance-value.negative{ color:#FFE3E1; }

  .data-loading{
    display:inline-block;
    min-width:118px;
    color:transparent !important;
    border-radius:10px;
    background:linear-gradient(
      90deg,
      rgba(255,255,255,0.16) 0%,
      rgba(255,255,255,0.34) 48%,
      rgba(255,255,255,0.16) 100%
    );
    background-size:220% 100%;
    animation:dataShimmer 1.15s linear infinite;
    user-select:none;
  }
  .data-loading-line{
    display:inline-block;
    min-width:160px;
    min-height:14px;
    border-radius:8px;
    color:transparent !important;
    background:linear-gradient(
      90deg,
      rgba(255,255,255,0.12) 0%,
      rgba(255,255,255,0.28) 48%,
      rgba(255,255,255,0.12) 100%
    );
    background-size:220% 100%;
    animation:dataShimmer 1.15s linear infinite;
  }
  @keyframes dataShimmer{
    0%{ background-position:220% 0; }
    100%{ background-position:-220% 0; }
  }
  .balance-sub{ font-size:14.5px; color:rgba(255,255,255,0.82); position:relative; z-index:1; }
  .spent-total{ font-size:16px; color:#FFE3E1; font-weight:700; margin-top:10px; position:relative; z-index:1; }
  .income-total{ font-size:16px; color:#DFFBEF; font-weight:700; margin-top:10px; position:relative; z-index:1; }

  /* ---------- income / expense forms ---------- */
  .forms{ display:grid; grid-template-columns: 1fr 1fr; gap:12px; margin-bottom:26px; }
  .form-box{ background: var(--surface); border:1px solid var(--line); border-radius:var(--r-md); padding:16px 14px; position:relative; box-shadow:var(--shadow); }
  .form-box h3{
    font-family:'Sora', sans-serif; font-size:14px; font-weight:700;
    margin:0 0 12px; color:var(--ink);
  }
  .form-box.income h3{ color: var(--green-deep); }
  .form-box.expense h3{ color: var(--red-deep); }
  input[type="text"], input[type="number"]{
    width:100%; font-family:'Inter', sans-serif; font-size:16px; padding:10px 11px;
    border:1.5px solid var(--line); border-radius:var(--r-sm); background: var(--surface-alt);
    color:var(--ink); margin-bottom:9px;
  }
  input:focus{ outline:none; border-color:var(--accent); background:var(--surface); }
  input[type="time"]{ cursor:pointer; }
  .cat-btn{
    font-family:'Inter', sans-serif; font-size:13px; font-weight:600;
    padding:6px 11px; border-radius:999px; cursor:pointer;
    border:1.5px solid var(--line); background:var(--surface-alt); color:var(--ink-soft);
    display:inline-flex; align-items:center; gap:4px; margin:-2px 0 11px; width:auto;
  }
  .cat-btn.chosen{ border-style:solid; color:#fff; }
  button.action{
    width:100%; font-family:'Sora', sans-serif; font-size:15px;
    letter-spacing:0; font-weight:700;
    padding:12px; border-radius:var(--r-sm); border:none; cursor:pointer;
    transition: transform 0.08s ease, box-shadow .15s ease;
  }
  button.action:active{ transform: scale(0.97); }
  .btn-income{ background:var(--green); color:white; box-shadow:0 8px 18px rgba(0,168,118,0.30); }
  .btn-expense{ background:var(--red); color:white; box-shadow:0 8px 18px rgba(240,71,63,0.28); }

  .section-title{
    font-family:'Sora', sans-serif; font-size:16px; font-weight:700;
    color:var(--ink); margin:0 0 12px 2px; padding-right:6px;
    display:flex; justify-content:space-between; align-items:center;
  }
  .reset-link{
    background:none; border:none; width:auto; padding:0; color:var(--ink-faint);
    text-decoration:none; font-size:13px; cursor:pointer; font-weight:500;
  }

  .app-toast{
    position:fixed; left:50%; bottom:86px; transform:translate(-50%, 12px);
    max-width:calc(480px - 32px); width:calc(100% - 32px);
    background:var(--ink); color:#fff; font-family:'Sora', sans-serif;
    font-size:13.5px; font-weight:600; line-height:1.4;
    padding:12px 16px; border-radius:var(--r-md); box-shadow:var(--shadow-lift);
    opacity:0; pointer-events:none; transition:opacity .22s ease, transform .22s ease;
    z-index:500; text-align:center;
  }
  .app-toast.show{ opacity:1; transform:translate(-50%, 0); }

  /* ---------- ledger / transaction list ---------- */
  .ledger{ border-top:none; margin-bottom:28px; display:flex; flex-direction:column; gap:10px; }
  .day-group{
    border-bottom:none; background:var(--surface); border:1px solid var(--line);
    border-radius:var(--r-md); overflow:hidden; box-shadow:var(--shadow);
  }
  .day-group-head{
    display:flex; align-items:center; gap:8px; padding:13px 14px; cursor:pointer;
    font-family:'Inter', sans-serif; font-size:13.5px; font-weight:600;
  }
  .day-group-chevron{ color:var(--ink-faint); width:12px; flex-shrink:0; }
  .day-group-date{ font-weight:700; color:var(--ink); font-family:'Sora',sans-serif; }
  .day-group-count{ color:var(--ink-soft); flex:1; font-weight:400; }
  .day-group-saldo{ color:var(--ink-soft); white-space:nowrap; }
  .day-group-rows .row:last-child{ border-bottom:none; }
  .week-group{ margin-bottom:10px; }
  .week-group-head{
    display:flex; flex-direction:column; gap:4px; padding:12px 14px; cursor:pointer;
    font-family:'Inter', sans-serif; font-size:13px; font-weight:700;
    background:var(--surface-alt); border:1px solid var(--line); border-radius:var(--r-md);
  }
  .week-group-head.open{ border-radius:var(--r-md) var(--r-md) 0 0; border-bottom:none; }
  .week-group-top-row{ display:flex; align-items:center; gap:8px; }
  .week-group-bottom-row{ display:flex; align-items:center; gap:8px; padding-left:20px; }
  .week-group-chevron{ color:var(--ink-faint); width:12px; flex-shrink:0; }
  .week-group-label{ font-weight:700; color:var(--ink); font-family:'Sora',sans-serif; }
  .week-group-count{ color:var(--ink-soft); flex:1; font-weight:400; }
  .week-group-saldo{ color:var(--ink-soft); white-space:nowrap; }
  .week-group-days{
    display:flex; flex-direction:column; gap:10px; padding:10px;
    background:var(--bg); border:1px solid var(--line); border-top:none;
    border-radius:0 0 var(--r-md) var(--r-md);
  }
  .row{
    display:grid; grid-template-columns: 1fr auto; gap:10px; align-items:baseline;
    padding:11px 14px; border-bottom:1px solid var(--line);
  }
  .row .amounts{ display:flex; flex-direction:column; align-items:flex-end; gap:2px; }
  .row .desc{ font-size:15px; color:var(--ink); min-width:0; font-weight:500; }
  .row .meta{ display:flex; gap:6px; align-items:center; margin-top:2px; }
  .row .date{ font-family:'Inter', sans-serif; font-size:12px; color:var(--ink-faint); }
  .row .tag{
    font-family:'Inter', sans-serif; font-size:11px; font-weight:600;
    padding:2px 7px; border-radius:999px; letter-spacing:0.01em;
  }
  .row .amount{ font-family:'Sora', sans-serif; font-size:15px; font-weight:600; text-align:right; white-space:nowrap; }
  .row .amount.in{ color:var(--green-deep); }
  .row .amount.out{ color:var(--red-deep); }
  .row .running{ font-family:'Inter', sans-serif; font-size:13px; color:var(--ink-faint); text-align:right; white-space:nowrap; }
  .empty{ padding:30px 4px; text-align:center; color:var(--ink-soft); font-size:15px; }
  .chart-card{
    background: var(--surface); border:1px solid var(--line); border-radius:var(--r-md);
    padding:18px; margin-bottom:16px; box-shadow:var(--shadow);
  }
  .chart-cols{ display:flex; gap:14px; margin-bottom:16px; }
  .chart-col{ flex:1; min-width:0; }
  .chart-wrap{ width:100%; height:230px; position:relative; overflow:hidden; }
  .chart-wrap canvas{ max-width:100% !important; }
  .legend-cols{ display:flex; gap:14px; }
  .legend-col{ flex:1; min-width:0; display:flex; flex-direction:column; gap:7px; }
  .legend-col-title{
    font-family:'Sora', sans-serif; font-size:12.5px; font-weight:700;
    margin-bottom:2px; display:flex; align-items:center; justify-content:space-between;
    gap:6px; cursor:pointer; padding:4px 0;
  }
  .legend-col-title:active{ opacity:0.7; }
  .legend-col-title .cat-legend-chevron{ transition:transform .18s ease; }
  .legend-col-title.open .cat-legend-chevron{ transform:rotate(90deg); }
  .legend-col-title.in{ color:var(--green-deep); }
  .legend-col-title.out{ color:var(--red-deep); }
  .legend-row{ display:flex; align-items:center; justify-content:space-between; font-size:13.5px; gap:4px; min-width:0; }
  .legend-left{ display:flex; align-items:center; gap:5px; min-width:0; flex-shrink:1; }
  .legend-left span:last-child{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .legend-dot{ width:9px; height:9px; border-radius:3px; flex-shrink:0; }
  .legend-amount{ font-family:'Inter', sans-serif; color:var(--ink-soft); font-size:12.5px; white-space:nowrap; font-weight:600; flex-shrink:0; }
  .legend-row-stacked{
    display:flex; flex-direction:column; align-items:center; text-align:center;
    font-size:13px; gap:1px; min-width:0; padding:2px 0;
  }
  .legend-row-stacked .legend-left{
    display:flex; align-items:center; justify-content:center; gap:5px; min-width:0; max-width:100%;
  }
  .legend-row-stacked .legend-left span:last-child{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .legend-row-stacked .legend-amount{ white-space:nowrap; }
  .cat-legend-item{ border-bottom:1px solid var(--line); }
  .cat-legend-item:last-child{ border-bottom:none; }
  .cat-legend-head{
    display:flex; align-items:center; justify-content:space-between; gap:8px;
    padding:7px 0; cursor:pointer; min-width:0;
  }
  .cat-legend-head:active{ opacity:0.7; }
  .cat-legend-left{ display:flex; align-items:center; gap:6px; min-width:0; flex:1; }
  .cat-legend-left span:last-child{
    overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
    font-family:'Inter', sans-serif; font-size:13.5px; color:var(--ink); text-align:left;
  }
  .cat-legend-chevron{
    font-family:'Inter', sans-serif; font-size:15px; color:var(--ink-faint);
    flex-shrink:0; transition:transform .18s ease;
  }
  .cat-legend-item.open .cat-legend-chevron{ transform:rotate(90deg); }
  .cat-legend-detail{
    display:none; text-align:left; padding:0 0 8px 15px;
    font-family:'Inter', sans-serif; font-size:12.5px; color:var(--ink-soft); font-weight:600;
  }
  .cat-legend-item.open .cat-legend-detail{ display:block; }
  .recorrente-day-badge{
    font-size:11px; font-weight:700; color:var(--ink-soft); background:var(--surface-alt);
    padding:2px 8px; border-radius:999px; white-space:nowrap;
  }
  .empty-chart{ text-align:center; color:var(--ink-soft); font-size:14.5px; padding:10px 0; }
  .saldo-mes-msg{
    font-size:12px; line-height:1.55; margin:0; padding:0; border-radius:0;
    border:none; font-family:'Inter', sans-serif; text-align:justify; background:none;
  }
  .saldo-mes-msg.positive{ color:var(--green-deep); }
  .saldo-mes-msg.negative{ color:var(--red-deep); }
  .saldo-mes-msg.neutral{ color:var(--ink-soft); }

  .day-summary-card{
    background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md);
    padding:16px; margin-bottom:16px; cursor:pointer; box-shadow:var(--shadow);
  }
  .day-summary-card:active{ opacity:0.85; }
  .day-summary-label{ font-family:'Sora',sans-serif; font-weight:700; font-size:15px; color:var(--ink); margin-bottom:6px; }
  .day-summary-text{ font-family:'Inter',sans-serif; font-size:14px; color:var(--ink-soft); line-height:1.5; margin-bottom:8px; }
  .day-summary-cta{ font-family:'Inter',sans-serif; font-size:13px; font-weight:600; color:var(--accent-deep); }

  .dia-cal-grid{ display:grid; grid-template-columns:repeat(7,1fr); gap:6px; margin-bottom:10px; }
  .dia-cal-weekday{ text-align:center; font-family:'Inter',sans-serif; font-size:11px; color:var(--ink-faint); font-weight:600; padding-bottom:2px; }
  .dia-cal-cell{
    aspect-ratio:1; border-radius:10px; display:flex; align-items:center; justify-content:center;
    font-family:'Sora',sans-serif; font-weight:700; font-size:13px; cursor:pointer; border:2px solid transparent;
    background:var(--surface-alt); color:var(--ink-faint);
  }
  .dia-cal-cell.empty-cell{ visibility:hidden; cursor:default; }
  .dia-cal-cell.lucro{ background:var(--green-soft); color:var(--green-deep); }
  .dia-cal-cell.prejuizo{ background:var(--red-soft); color:var(--red-deep); }
  .dia-cal-cell.today{ border-color:var(--accent); }
  .dia-cal-cell:active{ opacity:0.75; }
  .dia-cal-legend{ display:flex; flex-wrap:wrap; gap:14px; font-family:'Inter',sans-serif; font-size:12px; color:var(--ink-soft); }
  .dia-cal-legend span{ display:flex; align-items:center; gap:5px; }
  .dia-cal-dot{ width:9px; height:9px; border-radius:50%; background:var(--surface-alt); border:1px solid var(--line); display:inline-block; }
  .dia-cal-dot.lucro{ background:var(--green-soft); border-color:var(--green-deep); }
  .dia-cal-dot.prejuizo{ background:var(--red-soft); border-color:var(--red-deep); }

  .status{ text-align:center; font-size:12.5px; color:var(--ink-faint); margin-top:18px; font-family:'Inter', sans-serif; }

  /* ---------- budget / goal progress cards ---------- */
  .budget-card{
    background: var(--surface); border:1px solid var(--line); border-radius:var(--r-md);
    padding:16px; margin-bottom:22px; box-shadow:var(--shadow);
  }
  .budget-head{ display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:10px; }
  .budget-head h3{
    font-family:'Sora', sans-serif; font-size:14.5px; font-weight:700;
    margin:0; color:var(--ink);
  }
  .budget-edit{ background:none; border:none; padding:0; color:var(--accent-deep); text-decoration:none; font-size:13px; font-weight:600; cursor:pointer; font-family:'Inter',sans-serif; }
  .budget-actions{ display:flex; flex-direction:column; align-items:flex-end; gap:5px; flex-shrink:0; }
  .budget-reset{ color:var(--red-deep); font-size:12px; opacity:0.75; }
  .budget-reset:active{ opacity:1; }
  .budget-set{ display:flex; gap:8px; margin-bottom:2px; }
  .budget-set input{ margin-bottom:0; }
  .budget-set button{ width:auto; padding:9px 14px; font-family:'Sora',sans-serif; font-weight:700; font-size:14px; border:none; border-radius:var(--r-sm); background:var(--ink); color:var(--surface); cursor:pointer; }
  .budget-bar-track{ height:9px; border-radius:999px; background:var(--surface-alt); border:none; overflow:hidden; margin-bottom:8px; }
  .budget-bar-fill{ height:100%; border-radius:999px; background:var(--green); transition: width 0.25s ease; }
  .budget-bar-fill.reached{ background:var(--green); }
  .budget-bar-fill.over{ background:var(--red); }
  .budget-text{ font-size:14px; font-weight:700; color:var(--ink-soft); font-family:'Sora', sans-serif; }
  .budget-subtitle{ font-size:13.5px; font-weight:400; color:var(--ink-faint); margin-top:2px; }
  .budget-text.reached{ color:var(--green-deep); }
  .budget-text.over{ color:var(--red-deep); }
  .budget-empty{ font-size:14.5px; color:var(--ink-soft); }

  /* ---------- km performance ---------- */
  .km-log-row{ display:flex; gap:6px; margin-bottom:10px; }
  .km-log-row input{ margin-bottom:0; flex:1; min-width:0; }
  .km-log-row button{ width:auto; padding:9px 12px; font-family:'Sora',sans-serif; font-weight:700; font-size:14px; border:none; border-radius:var(--r-sm); background:var(--ink); color:var(--surface); cursor:pointer; white-space:nowrap; }
  .km-stats{ display:flex; flex-direction:column; gap:5px; }
  .km-stat-row{ display:flex; justify-content:space-between; font-size:14.5px; color:var(--ink-soft); }
  .km-period-row{ font-size:13px; color:var(--ink-faint); font-family:'Inter', sans-serif; padding:2px 0; }
  .km-history-row{
    display:flex; align-items:center; justify-content:space-between; gap:8px;
    font-family:'Inter', sans-serif; font-size:13.5px; color:var(--ink-soft);
    padding:8px 0; border-bottom:1px solid var(--line);
  }
  .km-history-row:last-child{ border-bottom:none; }
  .km-history-date{ color:var(--ink); min-width:38px; font-weight:600; }
  .km-history-stat{ flex:1; text-align:right; }
  .km-history-icon{ width:18px; text-align:center; }
  .km-perf-dot{ display:inline-block; width:11px; height:11px; border-radius:50%; }
  .km-perf-dot.vivo{ background:var(--green-forest); }
  .km-perf-dot.claro{ background:var(--green-lime); }
  .km-perf-dot.neg{ background:var(--red-deep); }
  .km-history-detail{
    background:var(--surface-alt); border:none; border-radius:var(--r-sm);
    padding:10px 12px; margin:-2px 0 8px; display:flex; flex-direction:column; gap:4px;
  }
  .km-stat-row b{ color:var(--ink); font-family:'Sora',sans-serif; }
  .km-empty{ font-size:14.5px; color:var(--ink-soft); }

  /* ---------- journey tracking ---------- */
  .journey-row{ margin:0 0 12px; }
  .journey-btn{
    width:100%; font-family:'Sora', sans-serif; font-size:15px;
    font-weight:700; padding:12px; border-radius:var(--r-sm); border:none;
    background:linear-gradient(135deg, var(--ink) 0%, #29314A 100%); color:var(--surface); cursor:pointer;
    box-shadow:0 8px 18px rgba(16,22,42,0.20);
  }
  .journey-live{
    display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap;
    background:var(--surface-alt); border:none; border-radius:var(--r-sm); padding:10px 12px; margin-bottom:8px;
  }
  .journey-live-item{ font-size:13px; color:var(--ink-soft); display:flex; flex-direction:column; gap:1px; }
  .journey-live-item b{ font-family:'Sora', sans-serif; font-size:15px; color:var(--ink); }
  .journey-time-input{
    font-family:'Sora', sans-serif; font-size:15px; color:var(--ink); border:none; background:none;
    padding:0; margin:0; width:auto;
  }
  .journey-end-btn{
    font-family:'Inter', sans-serif; font-size:13px; font-weight:700;
    padding:6px 10px; border-radius:999px; border:1.5px solid var(--red); background:var(--surface); color:var(--red-deep); cursor:pointer;
  }
  .journey-end-btn.full{ width:100%; padding:11px; font-size:14.5px; border-radius:var(--r-sm); }
  .journey-warn{ font-size:14px; color:var(--red-deep); margin-top:6px; }

  .maint-alert{
    display:flex; align-items:center; justify-content:space-between; gap:8px;
    padding:11px 13px; border-radius:var(--r-sm); margin-bottom:10px; font-size:14px; line-height:1.4;
  }
  .maint-alert.soon{ background:var(--warn-soft); color:#8A5A00; }
  .maint-alert.overdue{ background:var(--red-soft); color:var(--red-deep); }
  .maint-alert.agenda{ background:var(--accent-soft); color:var(--accent-deep); }
  .maint-alert button{
    background:none; border:none; font-size:15px; line-height:1; cursor:pointer; color:inherit; opacity:0.65; padding:0 2px;
  }

  .simulator-card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md); padding:18px; margin-bottom:16px; box-shadow:var(--shadow); }
  .simulator-hint{ font-size:14px; color:var(--ink-soft); margin:2px 0 10px; }
  .simulator-row{ display:flex; gap:8px; margin-bottom:10px; }
  .simulator-row input{ flex:1; margin-bottom:0; }
  .simulator-row button{
    font-family:'Sora', sans-serif; font-size:14px; font-weight:700;
    padding:0 16px; border-radius:var(--r-sm); border:none; background:var(--accent); color:white; cursor:pointer;
  }
  .maint-custom-name-wrap{ flex:1; min-width:0; display:flex; align-items:center; gap:4px; }
  .maint-custom-label{ flex:1; min-width:0; max-width:none; margin-bottom:0; font-size:14px; }
  .maint-custom-remove{
    flex-shrink:0; width:22px; height:22px; border:none; background:transparent;
    color:var(--ink-soft); opacity:0.55; font-size:16px; line-height:1; cursor:pointer;
  }
  .maint-custom-remove:active{ opacity:1; color:var(--red-deep); }
  .maint-chip-wrap{ display:flex; align-items:center; gap:6px; flex-shrink:0; position:relative; }
  .maint-feito-submenu{
    font-family:'Inter',sans-serif; font-size:12.5px; color:#1a8f4e; background:#E7F8EF;
    border-radius:8px; padding:5px 10px; margin:2px 0 8px; display:inline-block;
  }
  .maint-chip-btn{
    font-family:'Inter', sans-serif; font-size:13px; font-weight:700; white-space:nowrap;
    padding:6px 13px; border-radius:999px; cursor:pointer;
    border:1.5px dashed var(--line); background:var(--surface); color:var(--ink-faint);
  }
  .maint-chip-btn:active{ background:var(--accent-soft); border-color:var(--accent); color:var(--accent); }
  .maint-chip-btn.filled{
    border:1.5px solid transparent; background:var(--accent-soft); color:var(--accent);
  }
  .maint-chip-clear{
    flex-shrink:0; width:22px; height:22px; border:none; background:transparent;
    color:var(--ink-soft); opacity:0.55; font-size:15px; line-height:1; cursor:pointer;
  }
  .maint-chip-clear:active{ opacity:1; color:var(--red-deep); }
  .maint-chip-hidden-date{
    position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
    clip:rect(0,0,0,0); white-space:nowrap; border:0;
  }

  .period-hint{ font-size:12.5px; color:var(--ink-faint); margin:-4px 0 8px 0; line-height:1.4; }

  .compare{ font-size:14px; color:var(--ink-soft); margin-top:4px; }
  .compare .up{ color:var(--red-deep); font-weight:700; }
  .compare .down{ color:var(--green-deep); font-weight:700; }

  .row{ position:relative; padding-right:28px; }
  .row .del-btn{
    position:absolute; right:6px; top:12px; width:20px; height:20px; border:none; background:none;
    color:var(--ink-faint); font-size:16px; line-height:1; cursor:pointer; font-family:'Inter',sans-serif;
  }
  .row .del-btn:hover{ color:var(--red-deep); }
  .sonho-info-toggle{
    background:var(--accent-soft); border:1px solid var(--line); border-radius:50%;
    width:24px; height:24px; flex-shrink:0; padding:0; margin:0 3px 12px 0; cursor:pointer;
    font-size:13px; line-height:1; display:inline-flex; align-items:center; justify-content:center;
    box-shadow:0 2px 6px rgba(123,92,250,0.18); transition:transform .1s ease, box-shadow .15s ease;
  }
  .sonho-info-toggle:active{ transform:scale(0.9); box-shadow:none; }
  .sonho-info-box{
    background:var(--accent-soft); border:1px solid var(--line); border-radius:12px;
    padding:10px 12px; margin:8px 0 14px; font-size:13px; color:var(--ink-soft); line-height:1.5; display:none;
  }
  .sonho-info-box.open{ display:block; }
  .sonho-x-btn{
    flex-shrink:0; width:22px; height:22px; border:none; background:transparent;
    color:var(--ink-soft); opacity:0.55; font-size:16px; line-height:1; cursor:pointer;
  }
  .sonho-x-btn:active{ opacity:1; color:var(--red-deep); }
  .sonho-conquistado-row{
    display:flex; justify-content:space-between; align-items:center;
    padding:10px 2px; border-bottom:1px solid var(--line); font-size:14.5px;
  }
  .sonho-conquistado-row:last-child{ border-bottom:none; }
  .sonho-conquistado-row .sc-title{ font-family:'Inter',sans-serif; font-weight:500; }
  .sonho-conquistado-row .sc-date{ display:block; font-size:12px; color:var(--ink-faint); font-weight:400; }
  .sonho-conquistado-row .sc-valor{ font-family:'Sora',sans-serif; font-size:14px; font-weight:600; color:var(--green-deep); }
  .row .tag{ cursor:pointer; }
  .cat-select{
    font-family:'Inter', sans-serif; font-size:12.5px; margin-top:4px;
    border:1px solid var(--line); border-radius:8px; background:var(--surface-alt); color:var(--ink); padding:3px 6px;
  }
  /* Espaçamento igual entre os 4 campos dos formulários de Entrada/Saída (descrição, classificar,
     valor, registrar) — inclui o select de categoria quando expandido, que antes ficava sem
     nenhum espaço abaixo e saía grudado no campo de valor. */
  .form-box .cat-select{ width:100%; margin:0 0 9px; }
  #incomeCatBtn, #expenseCatBtn{ margin:0 0 9px; }
  .note-edit-btn{ cursor:pointer; font-size:12px; opacity:0.7; }
  .note-edit-btn:hover{ opacity:1; }
  .note-input{
    font-family:'Inter', sans-serif; font-size:13px; margin-top:4px; width:100%;
    max-width:220px; border:1px solid var(--line); border-radius:8px; background:var(--surface-alt);
    color:var(--ink); padding:4px 7px; box-sizing:border-box;
  }
  .note-input:focus{ outline:none; border-color:var(--accent); }

  .tools-row{ display:flex; gap:10px; margin:-10px 0 24px; }
  .tool-btn{
    flex:1; font-family:'Sora', sans-serif; font-size:13.5px; font-weight:700;
    padding:10px; border-radius:var(--r-sm); border:1px solid var(--line);
    background: var(--surface); color:var(--ink); cursor:pointer; box-shadow:var(--shadow);
  }
  .tool-btn:active{ transform: scale(0.97); }

  /* ---------- floating bottom nav ---------- */
  .bottom-nav{
    position:fixed; left:0; right:0; bottom:0; z-index:50;
    background: transparent;
    border-top:none;
    box-shadow:none;
    padding: 0;
    display:flex; justify-content:center;
    pointer-events:none;
  }
  .bottom-nav-inner{
    width:100%; max-width:480px; margin:0 auto;
    display:flex; justify-content:space-around; align-items:stretch;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
    background:var(--surface);
    border-radius:22px 22px 0 0;
    box-shadow:var(--shadow-lift);
    border:1px solid var(--line);
    border-bottom:none;
    pointer-events:auto;
  }
  .nav-btn{
    flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center;
    gap:3px; background:none; border:none; cursor:pointer;
    padding:6px 2px; color:var(--ink-faint); border-radius:14px;
  }
  .nav-btn:active{ transform: scale(0.94); }
  .nav-icon{ font-size:19px; line-height:1; filter:grayscale(30%); opacity:0.7; height:24px; display:flex; align-items:center; justify-content:center; }
  .nav-label{
    font-family:'Inter', sans-serif; font-size:10.5px; font-weight:600;
    letter-spacing:0.01em; line-height:1;
  }
  .nav-btn.active{ color:var(--green-deep); background:var(--green-soft); }
  .nav-btn.active .nav-icon{ filter:none; opacity:1; }
  .nav-btn.active .nav-label{ font-weight:700; }

  /* ---------- notes ---------- */
  .notes-actions-row{ display:flex; gap:8px; margin-bottom:18px; }
  .notes-add{
    flex:1; font-family:'Sora', sans-serif; font-size:14.5px;
    font-weight:700; padding:12px; border-radius:var(--r-sm); border:none;
    background: var(--ink); color:var(--surface); cursor:pointer;
  }
  .notes-add:active{ transform: scale(0.97); }
  .notes-agenda-btn{
    flex:1; font-family:'Sora', sans-serif; font-size:14.5px; font-weight:700;
    padding:12px; border-radius:var(--r-sm); border:1px solid var(--line);
    background: var(--surface); color:var(--ink); cursor:pointer;
  }
  .notes-agenda-btn:active{ transform: scale(0.97); }
  .note-card{
    background: var(--surface); border:1px solid var(--line); border-radius:var(--r-md);
    padding:14px 16px; margin-bottom:10px; cursor:pointer; box-shadow:var(--shadow); position:relative;
    touch-action:manipulation;
  }
  .note-card:has(.note-check-btn){ padding-left:44px; }
  .note-card:active{ transform: scale(0.99); }
  .note-card.note-done{ opacity:0.65; }
  .note-card.note-done .note-title{ text-decoration:line-through; }
  .note-check-btn{
    position:absolute; left:12px; top:14px; background:none; border:none; font-size:18px;
    cursor:pointer; padding:2px; line-height:1; width:auto;
  }
  .note-title{ font-family:'Sora', sans-serif; font-weight:700; font-size:16px; margin:0 0 3px; }
  .note-preview{ font-size:14px; color:var(--ink-soft); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; margin:0 0 6px; }
  .note-date{ font-family:'Inter', sans-serif; font-size:12px; color:var(--ink-faint); }
  .notes-empty{ padding:36px 4px; text-align:center; color:var(--ink-soft); font-size:15px; }

  .note-concluida-btn{
    display:inline-flex; align-items:center; gap:6px; background:var(--surface-alt);
    border:1.5px solid var(--line); border-radius:999px; padding:7px 14px; margin:0 0 14px;
    font-family:'Inter',sans-serif; font-size:13.5px; font-weight:600; color:var(--ink-soft); cursor:pointer;
  }
  .note-concluida-btn.checked{ background:#E7F8EF; border-color:#2ecc71; color:#1a8f4e; }

  .note-editor-head{ display:flex; align-items:center; gap:10px; margin-bottom:14px; touch-action:manipulation; }
  .note-back{ background:none; border:none; font-size:20px; color:var(--ink); cursor:pointer; padding:0; width:auto; }
  .note-toggle-edit-btn{
    margin-left:auto; background:none; border:none; color:var(--accent-deep); font-size:13px; font-weight:600;
    cursor:pointer; font-family:'Inter',sans-serif; padding:0; width:auto;
  }
  .note-toggle-edit-btn:active{ opacity:0.7; }
  .note-del{ margin-left:0; background:none; border:none; color:var(--red-deep); text-decoration:none; font-size:13px; font-weight:600; cursor:pointer; font-family:'Inter',sans-serif; }
  .note-title-view{ font-family:'Sora', sans-serif; font-weight:700; font-size:22px; color:var(--ink); margin:2px 0 12px; }
  .note-content-view{
    font-family:'Inter', sans-serif; font-size:16px; line-height:1.6; color:var(--ink);
    white-space:pre-wrap; word-break:break-word; margin:0;
  }
  .note-time-display{
    font-family:'Inter', sans-serif; font-size:13px; color:var(--accent-deep); font-weight:600;
    background:var(--accent-soft); border-radius:999px; padding:6px 12px; margin-bottom:12px; display:inline-block;
  }
  .note-date-badge{
    font-family:'Inter', sans-serif; font-size:13px; color:var(--ink-soft); font-weight:600;
    background:var(--surface-alt); border:none; border-radius:999px;
    padding:7px 12px; margin-bottom:12px; display:inline-block;
  }
  .note-time-block{ margin-bottom:14px; }
  .note-allday-toggle{
    font-family:'Inter',sans-serif; font-size:13px; font-weight:600; padding:8px 14px;
    border-radius:999px; border:1px solid var(--line); background:var(--surface-alt); color:var(--ink-soft);
    cursor:pointer; margin-bottom:10px; transition:background .15s ease, color .15s ease, border-color .15s ease;
  }
  .note-allday-toggle.active{ background:var(--accent); border-color:var(--accent); color:#fff; }
  .note-time-row{ display:flex; gap:10px; }
  .note-time-field{ flex:1; }
  .note-time-field label{ display:block; font-size:12px; color:var(--ink-faint); font-weight:600; margin-bottom:4px; }
  .note-time-field input[type="time"]{
    width:100%; font-family:'Sora',sans-serif; font-weight:600; font-size:15px; padding:10px;
    border:1px solid var(--line); border-radius:var(--r-sm); background:var(--surface); color:var(--ink);
    box-sizing:border-box;
  }
  .note-time-field input[type="time"]:focus{ outline:none; border-color:var(--accent); }
  .note-time-tag{
    display:inline-block; font-family:'Inter',sans-serif; font-size:12px; font-weight:600;
    color:var(--accent-deep); background:var(--accent-soft); border-radius:999px; padding:2px 9px; margin-left:6px;
  }

  .agenda-calendar-block{
    width:100%; box-sizing:border-box; contain:layout;
    touch-action:manipulation; isolation:isolate;
  }
  .agenda-panel-block{ width:100%; box-sizing:border-box; contain:layout; }
  .agenda-month-bar{
    display:flex; align-items:center; justify-content:space-between; margin-bottom:14px;
  }
  .agenda-month-bar button{
    width:auto; padding:7px 13px; background:var(--surface); border:1px solid var(--line);
    border-radius:var(--r-sm); font-size:16px; color:var(--ink); cursor:pointer;
  }
  .agenda-month-bar span{ font-family:'Sora', sans-serif; font-weight:700; font-size:16px; text-transform:capitalize; }
  .agenda-weekdays{
    display:grid; grid-template-columns:repeat(7,1fr); text-align:center;
    font-family:'Inter', sans-serif; font-size:11.5px; color:var(--ink-faint); font-weight:600;
    text-transform:uppercase; margin-bottom:6px;
  }
  .agenda-grid{ display:grid; grid-template-columns:repeat(7,1fr); gap:5px; margin-bottom:18px; width:100%; touch-action:manipulation; }
  .agenda-day{
    aspect-ratio:1; border:1px solid var(--line); background:var(--surface); border-radius:12px;
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    font-size:14.5px; color:var(--ink); cursor:pointer; position:relative; padding:0;
    touch-action:manipulation;
  }
  .agenda-day.empty{ visibility:hidden; cursor:default; }
  .agenda-day.today{ font-weight:700; border-color:var(--accent); color:var(--accent-deep); }
  .agenda-day.selected{ background:var(--ink); color:var(--surface); border-color:var(--ink); }
  .agenda-day .dot{ width:4px; height:4px; border-radius:50%; background:var(--accent); position:absolute; bottom:5px; }
  .agenda-day.selected .dot{ background:#fff; }
  .agenda-day-panel-title{
    font-family:'Sora', sans-serif; font-size:14px; font-weight:700;
    text-transform:none; color:var(--ink); margin-bottom:10px;
  }
  .agenda-add-note{
    width:100%; font-family:'Inter', sans-serif; font-size:13.5px; font-weight:600;
    padding:10px; border-radius:var(--r-sm); border:1.5px dashed var(--line);
    background:none; color:var(--ink-soft); cursor:pointer; margin-bottom:10px;
  }
  #noteTitleInput{
    width:100%; font-family:'Sora', sans-serif; font-weight:700; font-size:20px; padding:8px 2px;
    border:none; border-bottom:2px solid var(--line); background:transparent; color:var(--ink); margin-bottom:12px;
  }
  #noteTitleInput:focus{ outline:none; border-color:var(--accent); }
  #noteContentInput{
    width:100%; min-height:340px; font-family:'Inter', sans-serif; font-size:16px; line-height:1.6;
    padding:12px; border:1px solid var(--line); border-radius:var(--r-md); background: var(--surface-alt);
    color:var(--ink); resize:vertical;
  }
  #noteContentInput:focus{ outline:none; border-color:var(--accent); background:var(--surface); }
  .note-saved{ font-family:'Inter', sans-serif; font-size:12px; color:var(--ink-faint); text-align:right; margin-top:6px; }

  .eval-card{
    background: var(--surface); border:1px solid var(--line); border-radius:var(--r-md);
    padding:18px; margin-bottom:4px; box-shadow:var(--shadow);
  }
  .eval-card h3{
    font-family:'Sora', sans-serif; font-size:14.5px; font-weight:700;
    margin:0 0 12px; color:var(--ink);
  }
  .eval-tip{ display:flex; gap:8px; font-size:14.5px; line-height:1.5; margin-bottom:10px; }
  .eval-tip:last-child{ margin-bottom:0; }
  .eval-tip .dot{ flex-shrink:0; }
  .eval-tip.good .dot{ color:var(--green-deep); }
  .eval-tip.warn .dot{ color:var(--red-deep); }
  .eval-tip.neutral .dot{ color:var(--ink-soft); }
  .eval-empty{ font-size:14.5px; color:var(--ink-soft); }

  /* ---------- health / score card ---------- */
  .health-card{
    background: linear-gradient(150deg, #6366F1 0%, #8B5CF6 45%, #EC4899 100%);
    border:none; color:#fff;
    border-radius:24px;
    padding:20px 18px 18px; margin-bottom:22px; box-shadow:0 18px 40px rgba(139,92,246,0.35);
    position:relative; overflow:hidden;
  }
  .health-card::before{
    content:""; position:absolute; top:-50%; left:-20%; width:220px; height:220px; border-radius:50%;
    background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 70%);
  }
  .health-head{ display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:12px; position:relative; z-index:1; }
  .health-score-label{
    font-family:'Inter', sans-serif; font-size:12.5px; font-weight:600;
    letter-spacing:0.04em; text-transform:uppercase; color:rgba(255,255,255,0.82); margin-bottom:3px;
  }
  .health-score-row{ display:flex; align-items:baseline; gap:3px; }
  .health-score{ font-family:'Sora', sans-serif; font-weight:700; font-size:42px; line-height:1; color:#fff; }
  .health-score-max{ font-family:'Inter', sans-serif; font-size:14px; color:rgba(255,255,255,0.7); }
  .health-status{
    font-family:'Inter', sans-serif; font-size:12px; font-weight:700;
    letter-spacing:0.01em; padding:5px 10px; border-radius:999px; margin-top:2px; white-space:nowrap;
  }
  .health-status.good{ background: #FFE9B0; color:#8A5A00; }
  .health-status.great{ background: #E8A93A; color:#fff; }
  .health-status.warn{ background: #fff; color:#5E3FE0; }
  .health-bar-track{
    height:9px; border-radius:999px; background:rgba(255,255,255,0.25); border:none;
    overflow:hidden; margin-bottom:12px; position:relative; z-index:1;
  }
  .health-bar-fill{ height:100%; border-radius:999px; transition: width 0.3s ease; background: #fff; }
  .health-bar-fill.good{ background: #FFE9B0; }
  .health-bar-fill.great{ background: #E8A93A; }
  .health-bar-fill.warn{ background: #fff; }

  .health-card-compact{
    background: linear-gradient(150deg, #6366F1 0%, #8B5CF6 45%, #EC4899 100%);
    border-radius:18px; padding:13px 14px; margin-bottom:16px; box-shadow:0 10px 26px rgba(139,92,246,0.3);
    display:flex; align-items:center; gap:10px; cursor:pointer;
  }
  .health-card-compact:active{ transform: scale(0.99); }
  .health-compact-left{ display:flex; align-items:center; gap:9px; flex:1; min-width:0; }
  .health-compact-icon{ font-size:22px; flex-shrink:0; }
  .health-compact-label{ font-family:'Inter', sans-serif; font-size:11.5px; font-weight:600; color:rgba(255,255,255,0.85); margin-bottom:3px; }
  .health-status-compact{ font-size:11px; padding:3px 8px; margin-top:0; }
  .health-compact-right{ flex-shrink:0; min-width:76px; }
  .health-compact-score-row{ display:flex; align-items:baseline; gap:2px; justify-content:flex-end; }
  .health-compact-right .health-score{ font-size:22px; color:#fff; }
  .health-compact-right .health-score-max{ font-size:11px; }
  .health-bar-track-compact{ height:5px; margin-bottom:0; margin-top:4px; }
  .health-compact-chevron{ font-size:22px; color:rgba(255,255,255,0.75); flex-shrink:0; }
  .challenge-card{
    margin-top:14px; padding:15px; border-radius:var(--r-sm); border:none;
    background: rgba(255,255,255,0.14); position:relative; z-index:1;
  }
  .challenge-card.active{ border:1.5px solid rgba(255,255,255,0.5); background: rgba(255,255,255,0.20); }
  .challenge-label{
    font-family:'Inter', sans-serif; font-size:12px; font-weight:700;
    letter-spacing:0.02em; text-transform:uppercase; color:rgba(255,255,255,0.75); margin-bottom:6px;
  }
  .challenge-text{ font-size:15px; line-height:1.5; margin-bottom:6px; color:#fff; }
  .challenge-reward{ font-family:'Inter', sans-serif; font-size:13px; color:rgba(255,255,255,0.8); margin-bottom:10px; }
  .challenge-accept{
    width:100%; font-family:'Sora', sans-serif; font-size:14.5px;
    font-weight:700; padding:11px; border-radius:var(--r-sm); border:none;
    background: #fff; color:var(--accent-deep); cursor:pointer; transition: transform 0.08s ease;
  }
  .challenge-accept:active{ transform: scale(0.98); }
  .challenge-cancel{
    width:100%; background:none; border:1px dashed rgba(255,255,255,0.4); border-radius:var(--r-sm); padding:8px;
    font-family:'Inter', sans-serif; font-size:13px; color:rgba(255,255,255,0.85); cursor:pointer;
  }
  .health-subtitle{ font-size:14px; color:var(--ink-soft); line-height:1.5; margin-bottom:14px; }
  .health-goal-line{ color:var(--ink); font-weight:600; margin-top:4px; }
  .health-history{
    font-family:'Inter', sans-serif; font-size:13px; color:var(--ink-soft); margin-top:6px;
  }
  .health-records{
    font-family:'Inter', sans-serif; font-size:12px; color:var(--ink-soft); margin-top:8px;
    display:flex; flex-wrap:wrap; gap:10px 14px;
  }
  .health-records b{ font-weight:700; }
  .health-card .health-records{ color:rgba(255,255,255,0.85); }
  .health-growth{
    font-family:'Inter', sans-serif; font-size:12.5px; color:var(--green-deep); margin-top:8px;
    line-height:1.5; font-weight:600;
  }
  .health-card .health-growth{ color:#fff; }
  .carta-evolucao{ font-family:'Inter', sans-serif; font-size:13.5px; color:var(--ink-soft); line-height:1.6; }
  .carta-evolucao p{ margin:0 0 10px; }
  .carta-evolucao p:last-child{ margin-bottom:0; }
  .carta-evolucao b{ color:var(--ink); font-weight:700; }
  .carta-titulo{ font-family:'Sora', sans-serif; font-weight:700; font-size:16px; color:var(--ink) !important; margin-bottom:12px !important; }
  .carta-fechamento{ font-style:italic; padding-top:8px; border-top:1px solid var(--line); }
  .health-factor-block{ margin-bottom:16px; }
  .health-factor-block:last-child{ margin-bottom:0; }
  .health-factor-lines{ margin-top:6px; }
  .health-line{ font-size:14px; line-height:1.7; color:var(--ink); }
  .health-line.warn{ color:var(--red-deep); }
  .health-line.good{ color:var(--ink); }
  .health-line.tip{ color:var(--ink-soft); font-style:italic; }
  .health-info-title{
    font-family:'Sora', sans-serif; font-size:14px; font-weight:700;
    color:var(--ink); margin:0 0 8px;
  }
  .health-info-row{ display:flex; justify-content:space-between; font-size:15px; margin-bottom:2px; }
  .health-info-example{ font-size:13.5px; color:var(--ink-soft); font-style:italic; margin:0 0 10px; }
  .health-info-footer{ font-size:13.5px; color:var(--ink-soft); margin-top:12px; line-height:1.5; }
  .celebration-toast{
    position:fixed; top:16px; left:50%; transform:translateX(-50%) translateY(-16px) scale(0.9);
    background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color:#fff; padding:13px 22px; border-radius:var(--r-md);
    font-size:15px; font-weight:700; box-shadow:0 12px 28px rgba(94,63,224,0.35); z-index:999;
    opacity:0; pointer-events:none; transition:opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align:center; max-width:88%; line-height:1.5;
  }
  .celebration-toast.show{ opacity:1; transform:translateX(-50%) translateY(0) scale(1); }
  .celebration-toast.special{
    background: linear-gradient(135deg, #E8A93A, #C4832A); box-shadow:0 14px 32px rgba(196,131,42,0.45);
    font-size:16.5px;
  }
  .confetti-piece{
    position:fixed; top:8%; width:7px; height:13px; z-index:998; pointer-events:none;
    opacity:0.95; border-radius:2px; animation: confetti-fall 1.3s ease-in forwards;
  }
  @keyframes confetti-fall{
    0%{ transform:translateY(0) rotate(0deg); opacity:1; }
    100%{ transform:translateY(65vh) rotate(560deg); opacity:0; }
  }
  .celebration-sub{ font-weight:400; font-size:13px; opacity:0.9; }
  .score-history-row{ display:flex; align-items:center; gap:8px; margin-bottom:9px; }
  .score-history-row:last-child{ margin-bottom:0; }
  .score-history-month{
    font-family:'Inter', sans-serif; font-size:12.5px; color:var(--ink-soft); font-weight:600;
    width:42px; flex-shrink:0;
  }
  .score-history-track{
    flex:1; height:8px; border-radius:999px; background:var(--surface-alt); border:none;
    overflow:hidden;
  }
  .score-history-fill{ height:100%; background:var(--ink-faint); border-radius:999px; }
  .score-history-fill.current{ background:var(--accent); }
  .score-history-value{ font-family:'Inter', sans-serif; font-size:13.5px; font-weight:600; width:28px; text-align:right; flex-shrink:0; }
  .score-history-empty{ font-size:14.5px; color:var(--ink-soft); }
  .score-history-delta{ font-size:13px; color:var(--ink-soft); margin-top:10px; text-align:center; }
  .health-factor-label{
    display:flex; justify-content:space-between; font-family:'Inter', sans-serif;
    font-size:14px; font-weight:700; color:var(--ink); margin-bottom:5px;
  }
  .health-factor-label.full{ color:var(--green-deep); }
  .health-factor-label.low{ color:var(--red-deep); }
  .health-factor-track{ height:6px; border-radius:999px; background:var(--surface-alt); border:none; overflow:hidden; }
  .health-factor-fill{ height:100%; border-radius:999px; background:var(--ink-faint); }
  .health-factor-fill.full{ background:var(--green); }
  .health-factor-fill.low{ background:var(--red); }

  /* ---------- consultor ---------- */
  .consultor-intro{
    background:linear-gradient(150deg, #2A3350, #10162A); color:#fff;
    border:none; border-radius:var(--r-lg);
    padding:22px 20px; margin-bottom:14px; box-shadow:var(--shadow-lift);
  }
  .consultor-intro h2{ font-family:'Sora',sans-serif; font-size:21px; margin:0 0 6px; font-weight:700; }
  .consultor-intro p{ font-size:14.5px; line-height:1.5; color:rgba(255,255,255,0.75); margin:0; }
  .free-consultor-card{
    background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md);
    padding:18px; margin-bottom:16px; box-shadow:var(--shadow);
  }
  .free-consultor-head{ display:flex; align-items:center; gap:8px; margin-bottom:5px; }
  .free-consultor-head h3{ font-family:'Sora',sans-serif; font-size:15px; margin:0; font-weight:700; }
  .free-consultor-card > p{ font-size:14.5px; color:var(--ink-soft); line-height:1.45; margin:0 0 12px; }
  .free-question-grid{ display:grid; grid-template-columns:1fr 1fr; gap:8px; }
  .free-question{
    min-height:58px; text-align:left; font-family:'Inter',sans-serif; font-size:14px; font-weight:500;
    line-height:1.3; padding:11px; border-radius:var(--r-sm); border:1px solid var(--line);
    background:var(--surface-alt); color:var(--ink); cursor:pointer;
  }
  .free-question:active{ transform:scale(.98); }
  .free-answer{
    display:none; margin-top:12px; padding:13px; border-left:3px solid var(--accent);
    background:var(--surface-alt); border-radius:0 var(--r-sm) var(--r-sm) 0; font-size:15px; line-height:1.55; white-space:pre-wrap;
  }
  .free-answer-section:last-child{ margin-bottom:0 !important; padding-bottom:0 !important; border-bottom:none !important; }

  .eyebrow-row{
    display:flex; align-items:center; gap:10px; margin:2px 0 16px 2px; padding-right:6px;
  }
  .eyebrow-row .eyebrow{ margin:0; font-size:17px; }
  .app-topbar-avatar{
    width:34px; height:34px; border-radius:50%; background:#DDD1FB; color:var(--accent-deep);
    display:flex; align-items:center; justify-content:center; font-family:'Sora',sans-serif; font-weight:700;
    font-size:14px; flex-shrink:0; cursor:pointer; border:2px solid var(--surface);
    box-shadow:0 0 0 2px var(--accent), 0 4px 10px rgba(123,92,250,0.28);
    transition:transform .12s ease, box-shadow .15s ease;
    margin-right:6px;
  }
  .app-topbar-avatar:active{ transform:scale(0.92); box-shadow:0 0 0 2px var(--accent), 0 2px 6px rgba(123,92,250,0.2); }
  .topbar-veiculo-badge{
    margin-left:auto; background:var(--surface); border:1px solid var(--line); border-radius:999px;
    padding:6px 12px; font-family:'Inter',sans-serif; font-size:12.5px; font-weight:600; color:var(--ink-soft);
    cursor:pointer; white-space:nowrap; flex-shrink:0;
  }
  .topbar-veiculo-badge:active{ opacity:0.7; }
  .perfil-avatar-big{
    width:76px; height:76px; border-radius:50%; background:#DDD1FB; color:var(--accent-deep);
    display:flex; align-items:center; justify-content:center; font-family:'Sora',sans-serif; font-weight:700;
    font-size:26px; margin:0 auto;
  }
  @media(max-width:380px){ .free-question-grid{ grid-template-columns:1fr; } }

  .storage-note-full{
    font-size:13px; color:var(--ink-faint); line-height:1.5; margin-top:16px;
    padding-top:14px; border-top:1px solid var(--line);
  }
  .consultor-tools{
    margin-top:20px; padding-top:16px; border-top:1px solid var(--line);
  }
  .consultor-tools .tools-row{ margin:0 0 10px; }
  .consultor-tools .tools-row:last-child{ margin-bottom:0; }

  .planning-form{
    background: var(--surface); border:1px solid var(--line); border-radius:var(--r-md);
    padding:16px; margin-bottom:22px; box-shadow:var(--shadow);
  }
  .planning-form input{ margin-bottom:9px; }
  .planning-form .two-col{ display:grid; grid-template-columns:1fr 1fr; gap:8px; }
  .planning-form .two-col input{ margin-bottom:9px; }

  /* ---------- goals ---------- */
  .goal-card{
    background: var(--surface); border:1px solid var(--line); border-radius:var(--r-md);
    padding:16px; margin-bottom:12px; position:relative; box-shadow:var(--shadow);
  }
  .goal-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:9px; padding-right:20px; }
  .goal-name{ font-family:'Sora', sans-serif; font-weight:700; font-size:16px; }
  .goal-bar-track{ height:9px; border-radius:999px; background:var(--surface-alt); border:none; overflow:hidden; margin-bottom:7px; }
  .goal-bar-fill{ height:100%; border-radius:999px; background:var(--green); transition: width 0.25s ease; }
  .goal-text{ font-family:'Inter', sans-serif; font-size:15px; font-weight:700; color:var(--green-deep); margin-bottom:10px; }
  .goal-bar-fill.over{ background:var(--red); }
  .goal-text.over{ color:var(--red-deep); }
  .work-goal-suggestions{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; }
  .work-goal-sugg{
    display:flex; flex-direction:column; align-items:center; text-align:center; gap:8px;
    background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md);
    padding:16px 10px; box-shadow:var(--shadow); cursor:pointer;
    transition:transform .1s ease;
  }
  .work-goal-sugg:active{ transform:scale(0.96); }
  .work-goal-sugg-icon{
    flex-shrink:0; width:38px; height:38px; border-radius:12px;
    background:var(--accent-soft); display:flex; align-items:center; justify-content:center;
    font-size:18px;
  }
  .work-goal-sugg-text{
    font-family:'Sora',sans-serif; font-weight:700; font-size:13px; line-height:1.32; color:var(--ink);
  }
  .goal-card .del-btn{
    position:absolute; right:14px; top:16px; width:20px; height:20px; border:none; background:none;
    color:var(--ink-faint); font-size:17px; line-height:1; cursor:pointer;
  }
  .goal-card .del-btn:hover{ color:var(--red-deep); }

  /* ---------- desafios (daily challenges) ---------- */
  .desafio-card{
    background: linear-gradient(150deg, #FFB74D, #FF9F1C); color:#fff;
    border:none; border-radius:var(--r-lg);
    padding:24px 20px; margin-bottom:16px; text-align:center; box-shadow:0 16px 34px rgba(255,159,28,0.30);
    position:relative;
  }
  .desafio-card.done{ background:linear-gradient(150deg, #00C48C, #00A876); box-shadow:0 16px 34px rgba(0,168,118,0.30); }
  .desafio-card.week{ background:linear-gradient(150deg, #5AB2F5, #2E7FE0); box-shadow:0 16px 34px rgba(46,127,224,0.30); }
  .desafio-card.month{ background:linear-gradient(150deg, #2BB6A3, #0E7C71); box-shadow:0 16px 34px rgba(14,124,113,0.30); }
  .desafio-icon{ font-size:34px; line-height:1; margin-bottom:8px; }
  .desafio-card h3{ font-family:'Sora', sans-serif; font-weight:700; font-size:20px; margin:0 0 6px; color:#fff; }
  .desafio-desc{ font-size:15px; color:rgba(255,255,255,0.9); line-height:1.5; margin:0 0 12px; }
  .desafio-value{
    font-family:'Inter', sans-serif; font-size:13.5px; font-weight:700; color:#fff;
    background:rgba(255,255,255,0.22); display:inline-block; padding:5px 12px; border-radius:999px; margin-bottom:14px;
  }
  .desafio-value.habit{ color:#fff; background:rgba(255,255,255,0.18); border:none; }
  .desafio-live-badge-wrap{ text-align:center; margin-top:10px; }
  .desafio-live-badge{
    display:inline-block;
    font-family:'Inter', sans-serif; font-size:9.5px; font-weight:700;
    color:rgba(255,255,255,0.92); background:rgba(255,255,255,0.18);
    padding:3px 8px; border-radius:999px; letter-spacing:0.01em; white-space:nowrap;
  }
  .desafio-msg{ font-size:15.5px; line-height:1.55; margin:0; color:#fff; }
  .streak-row{
    display:flex; justify-content:space-between; align-items:center; padding:12px 14px;
    background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md); margin-bottom:8px; font-size:15px; box-shadow:var(--shadow);
  }
  .streak-row b{ font-family:'Sora', sans-serif; font-size:17px; color:var(--warn); }
  .streak-badge-home{
    font-size:13px; color:var(--ink-soft); white-space:nowrap; margin-top:6px;
  }
  .streak-badge-icon{ font-size:15px; line-height:1; }
  .streak-badge-num{ font-family:'Sora', sans-serif; font-size:15px; font-weight:700; color:#C97A00; }
  .balance-card .streak-badge-home{ color:rgba(255,255,255,0.92); position:relative; z-index:1; }
  .balance-card .streak-badge-num{ color:#fff; }
  .achievements-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; }
  .achievement-card{
    background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md); padding:14px; text-align:center; box-shadow:var(--shadow);
  }
  .achievement-card.locked{ opacity:0.5; box-shadow:none; }
  .achievement-icon{ font-size:24px; margin-bottom:6px; }
  .achievement-title{ font-family:'Sora', sans-serif; font-weight:700; font-size:14.5px; margin-bottom:4px; line-height:1.3; }
  .achievement-detail{ font-size:12.5px; color:var(--ink-soft); font-family:'Inter', sans-serif; }
  .achievement-card.unlocked .achievement-detail{ color:var(--green-deep); font-weight:600; }
  .achievement-month-detail{
    font-size:11px; color:var(--ink-faint); font-family:'Inter', sans-serif;
    margin-top:5px; padding-top:5px; border-top:1px dashed var(--line);
  }
  .achievement-card.unlocked .achievement-month-detail:not(.achievement-month-empty){ color:var(--accent); font-weight:600; }
  .desafio-actions{ display:flex; gap:8px; }
  .desafio-actions button{ width:auto; flex:1; }
  .ajustar-link{
    background:none; border:none; width:auto; padding:0; color:rgba(255,255,255,0.85);
    text-decoration:underline; font-size:13px; cursor:pointer; font-family:'Inter',sans-serif; display:block; margin:0 auto 10px;
  }
  #ajustarValorBox{ margin-bottom:10px; }
  #ajustarValorBox input{ margin-bottom:0; text-align:center; }
  .desafio-resumo{
    display:flex; gap:8px; margin-bottom:10px;
  }
  .desafio-resumo-item{
    flex:1; background: var(--surface); border:1px solid var(--line); border-radius:var(--r-md);
    padding:11px 6px; text-align:center; box-shadow:var(--shadow);
  }
  .desafio-resumo-item span{
    display:block; font-family:'Inter', sans-serif; font-size:11.5px; font-weight:600;
    color:var(--ink-faint); margin-bottom:4px;
  }
  .desafio-resumo-item b{ font-family:'Sora', sans-serif; font-size:15px; color:var(--ink); }
  .desafio-note{ text-align:center; font-size:13.5px; color:var(--ink-faint); margin:0; }
  .desafio-card .desafio-note{ color:rgba(255,255,255,0.85); }
  .desafio-card .budget-text{ color:#fff; }
  .desafio-card .budget-bar-track{ background:rgba(255,255,255,0.28); }
  .desafio-card .budget-bar-fill{ background:#fff; }
  .desafio-weeks-of-month{
    margin-top:8px; padding:10px 12px; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md); box-shadow:var(--shadow);
  }
  .desafio-log-row{
    display:flex; justify-content:space-between; font-size:13.5px; color:var(--ink-soft);
    padding:5px 0; border-bottom:1px solid var(--line);
  }
  .desafio-log-row:last-child{ border-bottom:none; }

  /* ---------- readability fixes: text nested inside the purple health-card ---------- */
  .health-card .history-toggle{ color:rgba(255,255,255,0.92); text-decoration-color:rgba(255,255,255,0.6); }
  .health-card .history-panel{ background:rgba(255,255,255,0.14); border:1px solid rgba(255,255,255,0.22); box-shadow:none; }
  .health-card .health-subtitle{ color:rgba(255,255,255,0.88); }
  .health-card .health-goal-line{ color:#fff; font-weight:700; }
  .health-card .health-history{ color:rgba(255,255,255,0.78); }
  .health-card .health-factor-label{ color:#fff; }
  .health-card .health-factor-label.full{ color:#B9FBD0; }
  .health-card .health-factor-label.low{ color:#FFD3D0; }
  .health-card .health-factor-track{ background:rgba(255,255,255,0.25); }
  .health-card .health-factor-fill{ background:#fff; }
  .health-card .health-factor-fill.full{ background:#B9FBD0; }
  .health-card .health-factor-fill.low{ background:#FFD3D0; }
  .health-card .health-line{ color:rgba(255,255,255,0.88); }
  .health-card .health-line.warn{ color:#FFD3D0; }
  .health-card .health-line.good{ color:#fff; }
  .health-card .health-line.tip{ color:rgba(255,255,255,0.68); }
  .health-card .eval-empty{ color:rgba(255,255,255,0.92); }
  .health-card .score-history-month{ color:rgba(255,255,255,0.75); }
  .health-card .score-history-track{ background:rgba(255,255,255,0.22); }
  .health-card .score-history-fill{ background:#fff; }
  .health-card .score-history-fill.warn{ background:#fff; }
  .health-card .score-history-fill.good{ background:#FFE9B0; }
  .health-card .score-history-fill.great{ background:#E8A93A; }
  .health-card .score-history-fill.current{ box-shadow: 0 0 0 2px rgba(255,255,255,0.9) inset; }
  .health-card .score-history-value{ color:#fff; }
  .health-card .score-history-empty{ color:rgba(255,255,255,0.75); }
  .health-card .score-history-delta{ color:rgba(255,255,255,0.75); }
  .health-card .health-info-title{ color:#fff; }
  .health-card .health-info-row{ color:rgba(255,255,255,0.92); }
  .health-card .health-info-row b{ color:#fff; }
  .health-card .health-info-example{ color:rgba(255,255,255,0.72); }
  .health-card .health-info-footer{ color:rgba(255,255,255,0.72); border-top:1px solid rgba(255,255,255,0.22); }

  /* ---------- tela de autenticação (login/cadastro) ---------- */
  .auth-bg{
    position:fixed; inset:0; z-index:0;
    background:
      radial-gradient(900px 560px at 12% -10%, rgba(0,196,140,0.35), transparent 55%),
      radial-gradient(760px 520px at 100% 110%, rgba(0,124,87,0.55), transparent 60%),
      linear-gradient(160deg, #06301F 0%, #052A1B 45%, #041F14 100%);
  }
  .auth-wrap{ position:relative; z-index:1; padding-top:6px; }
  .auth-logo-wrap{ display:flex; flex-direction:column; align-items:center; margin:8px 0 26px; }
  .auth-logo-img{
    width:92px; height:92px; border-radius:24px; box-shadow:0 14px 34px rgba(0,0,0,0.35);
    margin-bottom:14px;
  }
  .auth-brand-title{
    font-family:'Sora', sans-serif; font-weight:800; font-size:22px; letter-spacing:-0.01em;
    color:#fff; text-align:center; line-height:1.2;
  }
  .auth-brand-title span{ color:#5CE0AC; }
  .auth-brand-sub{
    font-family:'Inter', sans-serif; font-size:13.5px; color:rgba(255,255,255,0.62);
    text-align:center; margin-top:4px;
  }
  .auth-card{
    background: rgba(255,255,255,0.98);
    border-radius: 24px;
    padding: 26px 22px 24px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.08);
  }
  .auth-card h2{
    font-family:'Sora',sans-serif; font-size:20px; font-weight:700; margin:0 0 4px; color:var(--ink);
  }
  .auth-card .auth-card-sub{
    font-size:13.5px; color:var(--ink-soft); margin:0 0 18px;
  }
  .auth-field{ position:relative; margin-bottom:11px; }
  .auth-field input{
    width:100%; font-family:'Inter', sans-serif; font-size:15px;
    padding:13px 14px 13px 42px; border-radius:13px; border:1.5px solid var(--line);
    background:var(--surface-alt); color:var(--ink); transition:border-color .15s ease, background .15s ease;
  }
  .auth-field input:focus{ outline:none; border-color:var(--green); background:#fff; }
  .auth-field .auth-field-icon{
    position:absolute; left:14px; top:50%; transform:translateY(-50%);
    font-size:15px; opacity:0.55; pointer-events:none;
  }
  .auth-btn-primary{
    width:100%; padding:15px; border:none; border-radius:13px;
    background:linear-gradient(135deg,#00C48C,#00875F);
    color:#fff; font-family:'Sora',sans-serif; font-weight:700; font-size:15px;
    cursor:pointer; box-shadow:0 10px 24px rgba(0,135,95,0.35);
    transition:transform .1s ease;
  }
  .auth-btn-primary:active{ transform:scale(0.985); }
  .auth-btn-google{
    width:100%; padding:13px; border:1.5px solid var(--line); border-radius:13px;
    background:#fff; font-family:'Inter',sans-serif; font-weight:600; font-size:14.5px;
    cursor:pointer; display:flex; align-items:center; justify-content:center; gap:9px;
    transition:background .15s ease;
  }
  .auth-btn-google:active{ background:var(--surface-alt); }
  .auth-divider{
    display:flex; align-items:center; gap:12px; margin:18px 0 14px;
    color:var(--ink-faint); font-size:12.5px; font-weight:600;
  }
  .auth-divider::before, .auth-divider::after{
    content:""; flex:1; height:1px; background:var(--line);
  }
  .auth-link-row{ text-align:center; font-size:14px; color:var(--ink-soft); margin:18px 0 0; }
  .auth-link-row button{ background:none; border:none; color:var(--green-deep); font-weight:700; cursor:pointer; font-size:14px; padding:0; }
  .auth-back-link{ width:100%; background:none; border:none; color:var(--ink-soft); font-size:13.5px; font-weight:600; margin-top:14px; cursor:pointer; }

  /* ---------- Modo somente leitura (Premium inativo) ---------- */
  .readonly-access-banner{
    position:fixed;
    top:10px;
    left:50%;
    transform:translateX(-50%);
    z-index:9997;
    width:min(448px, calc(100% - 20px));
    background:#102A20;
    border:1px solid rgba(34,227,142,.18);
    border-radius:14px;
    box-shadow:0 8px 24px rgba(0,0,0,.22);
    padding:10px 11px;
    display:none;
    align-items:center;
    justify-content:center;
    gap:9px;
    font-family:'Inter',sans-serif;
  }
  .readonly-access-banner.show{ display:flex; }
  body.modo-somente-leitura #appRoot{ padding-top:72px; }
  .readonly-access-banner-text{ min-width:0; flex:1; }
  .readonly-access-banner-title{
    font-family:'Sora',sans-serif; font-size:13.5px; font-weight:800;
    color:#F4FAF6; margin:0 0 2px;
  }
  .readonly-access-banner-sub{
    font-size:11.5px; line-height:1.35; color:#AFC2B8; margin:0;
  }
  .readonly-access-banner button{
    flex:none; border:none; border-radius:10px; background:var(--green); color:#fff;
    font-family:'Sora',sans-serif; font-size:12.5px; font-weight:800; padding:10px 12px; cursor:pointer;
  }
  body.modo-somente-leitura .readonly-locked{
    opacity:.42 !important;
    filter:grayscale(.15);
    cursor:not-allowed !important;
  }
  body.modo-somente-leitura .form-box{
    position:relative;
  }
  body.modo-somente-leitura .form-box::after{
    content:"🔒 Somente consulta";
    position:absolute; inset:0;
    display:flex; align-items:center; justify-content:center;
    border-radius:inherit;
    background:rgba(242,245,250,.72);
    backdrop-filter:blur(1.5px);
    -webkit-backdrop-filter:blur(1.5px);
    font-family:'Sora',sans-serif; font-size:13px; font-weight:800; color:var(--ink-soft);
    z-index:5;
  }



/* ==========================================================
   HOME MODERNA — Fase 1 do redesign
   Escopo concentrado em #pageSaldo para preservar as demais
   telas enquanto a nova linguagem visual é aprovada.
   ========================================================== */

.page-home-modern{
  --home-bg:#071510;
  --home-surface:#0D2018;
  --home-surface-2:#123025;
  --home-line:rgba(162,255,210,.11);
  --home-green:#22E38E;
  --home-green-2:#16C97C;
  --home-green-soft:rgba(34,227,142,.12);
  --home-gold:#E6C56A;
  --home-white:#F6FFF9;
  --home-muted:#8FA99B;
  background:
    radial-gradient(420px 260px at 82% -4%, rgba(34,227,142,.10), transparent 62%),
    radial-gradient(320px 220px at -14% 5%, rgba(230,197,106,.055), transparent 65%),
    var(--home-bg);
  color:var(--home-white);
  border-radius:30px 30px 0 0;
  padding:22px 16px 34px;
  margin:-2px -2px 0;
  min-height:100vh;
}

.page-home-modern .home-modern-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin:2px 0 24px;
}

.page-home-modern .home-greeting-block{ min-width:0; }
.page-home-modern .home-kicker{
  font-family:'Inter',sans-serif;
  font-size:10px;
  font-weight:800;
  letter-spacing:.15em;
  color:var(--home-green);
  margin-bottom:5px;
}
.page-home-modern .home-greeting{
  font-family:'Sora',sans-serif;
  font-size:23px;
  line-height:1.1;
  font-weight:750;
  letter-spacing:-.03em;
  color:var(--home-white);
}
.page-home-modern .home-daily-message{
  display:flex;
  align-items:center;
  gap:7px;
  max-width:330px;
  margin-top:8px;
  font-size:12.5px;
  line-height:1.4;
  color:var(--home-muted);
}
.page-home-modern .home-daily-dot{
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--home-gold);
  box-shadow:0 0 0 4px rgba(230,197,106,.07);
  flex:none;
}
.page-home-modern .home-avatar-btn{
  width:46px;
  height:46px;
  border-radius:15px;
  border:1px solid var(--home-line);
  background:linear-gradient(145deg,#163629,#0C2118);
  color:var(--home-green);
  font-family:'Sora',sans-serif;
  font-weight:800;
  font-size:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 12px 30px rgba(0,0,0,.22);
  cursor:pointer;
}

.page-home-modern .home-section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin:0 0 12px;
}
.page-home-modern .home-section-eyebrow{
  font-size:10px;
  letter-spacing:.13em;
  font-weight:800;
  color:var(--home-muted);
  margin-bottom:4px;
}
.page-home-modern .home-section-head h1{
  font-family:'Sora',sans-serif;
  font-size:18px;
  margin:0;
  color:var(--home-white);
  letter-spacing:-.02em;
}

.page-home-modern .health-card-compact{
  background:linear-gradient(135deg,rgba(18,48,37,.92),rgba(10,31,23,.94));
  border:1px solid var(--home-line);
  box-shadow:none;
  color:var(--home-white);
  margin-bottom:14px;
}
.page-home-modern .health-compact-label,
.page-home-modern .health-score,
.page-home-modern .health-score-max{ color:var(--home-white); }
.page-home-modern .health-status{ color:var(--home-green); }
.page-home-modern .health-bar-track{ background:rgba(255,255,255,.08); }
.page-home-modern .health-bar-fill{ background:linear-gradient(90deg,var(--home-green-2),var(--home-green)); }

.page-home-modern .home-period-toolbar{
  display:flex;
  align-items:center;
  gap:9px;
  margin-bottom:6px;
}
.page-home-modern .home-period-toolbar .month-bar{
  flex:1;
  margin:0;
  background:#0C2118;
  border:1px solid var(--home-line);
  box-shadow:none;
  padding:5px;
}
.page-home-modern .month-bar button{
  background:#153329;
  color:var(--home-white);
}
.page-home-modern .month-bar input[type="month"]{
  color:var(--home-white);
  color-scheme:dark;
}
.page-home-modern .home-history-btn{
  width:46px;
  height:46px;
  border-radius:14px;
  border:1px solid var(--home-line);
  background:#0C2118;
  color:var(--home-green);
  display:grid;
  place-items:center;
  padding:0;
}
.page-home-modern .home-history-btn svg{
  width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
}
.page-home-modern .today-date-label{
  color:var(--home-muted);
  margin:4px 0 14px 5px;
  font-size:11.5px;
}
.page-home-modern .history-panel{
  background:#0C2118;
  border-color:var(--home-line);
  box-shadow:none;
  color:var(--home-white);
}

.page-home-modern .balance-card{
  background:
    radial-gradient(220px 130px at 100% 0%,rgba(255,255,255,.12),transparent 72%),
    linear-gradient(145deg,#0D3B29 0%,#0A2C20 52%,#082419 100%);
  border:1px solid rgba(54,239,155,.16);
  border-radius:24px;
  padding:21px 18px 17px;
  box-shadow:0 22px 55px rgba(0,0,0,.25);
  margin-bottom:12px;
}
.page-home-modern .balance-label{
  color:var(--home-muted);
  font-size:10.5px;
  letter-spacing:.12em;
}
.page-home-modern .balance-value{
  font-size:39px;
  letter-spacing:-.045em;
  margin-top:8px;
  color:var(--home-white);
}
.page-home-modern .balance-value.negative{ color:#FF9D98; }
.page-home-modern .balance-sub{
  color:#9DB8AA;
  font-size:12.5px;
}
.page-home-modern .eye-toggle{
  background:rgba(255,255,255,.06);
  color:var(--home-muted);
}
.page-home-modern .income-total,
.page-home-modern .spent-total{ display:none !important; }
.page-home-modern .compare{ color:var(--home-muted); font-size:12px; }
.page-home-modern .compare .up{ color:#FF9D98; }
.page-home-modern .compare .down{ color:var(--home-green); }

.page-home-modern .home-flow-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:17px;
  padding-top:14px;
  border-top:1px solid var(--home-line);
}
.page-home-modern .home-flow-item{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
}
.page-home-modern .home-flow-icon{
  width:31px;height:31px;border-radius:10px;display:grid;place-items:center;flex:none;
}
.page-home-modern .home-flow-icon svg{
  width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;
}
.page-home-modern .home-flow-item.income .home-flow-icon{
  background:rgba(34,227,142,.10);color:var(--home-green);
}
.page-home-modern .home-flow-item.expense .home-flow-icon{
  background:rgba(255,107,107,.10);color:#FF8B85;
}
.page-home-modern .home-flow-item span{
  display:block;font-size:10.5px;color:var(--home-muted);margin-bottom:2px;
}
.page-home-modern .home-flow-item strong{
  display:block;font-family:'Sora',sans-serif;font-size:13px;color:var(--home-white);white-space:nowrap;
}

.page-home-modern .home-metrics-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin:12px 0;
}
.page-home-modern .home-metric-card{
  min-width:0;
  background:linear-gradient(145deg,#102A20,#0B2018);
  border:1px solid var(--home-line);
  border-radius:17px;
  padding:13px 10px 12px;
  box-shadow:0 12px 28px rgba(0,0,0,.13);
}
.page-home-modern .home-metric-icon{
  width:29px;height:29px;border-radius:9px;background:var(--home-green-soft);color:var(--home-green);
  display:grid;place-items:center;margin-bottom:10px;
}
.page-home-modern .home-metric-icon svg{
  width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
}
.page-home-modern .home-metric-card span{
  display:block;color:var(--home-muted);font-size:9.5px;font-weight:700;text-transform:uppercase;letter-spacing:.045em;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.page-home-modern .home-metric-card strong{
  display:block;margin-top:4px;color:var(--home-white);font-family:'Sora',sans-serif;font-size:14px;letter-spacing:-.02em;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}

.page-home-modern .home-smart-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:9px;
  margin:0 0 14px;
}
.page-home-modern .home-smart-card{
  width:100%;
  display:flex;
  align-items:center;
  gap:12px;
  text-align:left;
  padding:14px;
  border-radius:18px;
  border:1px solid var(--home-line);
  background:#0C2118;
  color:var(--home-white);
  box-shadow:none;
}
.page-home-modern .home-smart-card.consultant{
  background:linear-gradient(135deg,rgba(230,197,106,.08),rgba(13,32,24,.96) 46%);
}
.page-home-modern .home-smart-icon{
  width:40px;height:40px;border-radius:13px;display:grid;place-items:center;flex:none;
  background:var(--home-green-soft);color:var(--home-green);
}
.page-home-modern .home-smart-card.consultant .home-smart-icon{
  background:rgba(230,197,106,.10);color:var(--home-gold);
}
.page-home-modern .home-smart-icon svg{
  width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;
}
.page-home-modern .home-smart-content{ min-width:0; flex:1; }
.page-home-modern .home-smart-content small{
  display:block;font-size:9px;font-weight:800;letter-spacing:.11em;color:var(--home-muted);margin-bottom:2px;
}
.page-home-modern .home-smart-content strong{
  display:block;font-family:'Sora',sans-serif;font-size:13px;color:var(--home-white);
}
.page-home-modern .home-smart-content em{
  display:block;margin-top:2px;font-style:normal;font-size:10.5px;color:var(--home-muted);
}
.page-home-modern .home-smart-arrow{
  color:var(--home-green);font-size:24px;font-weight:300;
}

.page-home-modern .budget-card,
.page-home-modern .form-box,
.page-home-modern .day-group,
.page-home-modern .week-group-head,
.page-home-modern .eval-card{
  background:#0C2118;
  border-color:var(--home-line);
  box-shadow:none;
  color:var(--home-white);
}
.page-home-modern .budget-head h3,
.page-home-modern .form-box h3,
.page-home-modern .section-title,
.page-home-modern .day-group-date,
.page-home-modern .week-group-label,
.page-home-modern .row .desc,
.page-home-modern .km-stat-row b{
  color:var(--home-white);
}
.page-home-modern .budget-subtitle,
.page-home-modern .km-stat-row,
.page-home-modern .km-empty,
.page-home-modern .day-group-count,
.page-home-modern .day-group-saldo,
.page-home-modern .week-group-count,
.page-home-modern .week-group-saldo,
.page-home-modern .row .date,
.page-home-modern .running,
.page-home-modern .status{
  color:var(--home-muted);
}
.page-home-modern input[type="text"],
.page-home-modern input[type="number"],
.page-home-modern input[type="time"],
.page-home-modern select{
  background:#102A20;
  border-color:var(--home-line);
  color:var(--home-white);
}
.page-home-modern input::placeholder{ color:#648072; }
.page-home-modern .cat-btn{
  background:#102A20;
  border-color:var(--home-line);
  color:var(--home-muted);
}
.page-home-modern .journey-btn{
  background:linear-gradient(135deg,#19C97B,#11A665);
  color:#03120C;
  box-shadow:0 10px 24px rgba(34,227,142,.15);
}
.page-home-modern .journey-live{ background:#102A20; }
.page-home-modern .journey-live-item{ color:var(--home-muted); }
.page-home-modern .journey-live-item b{ color:var(--home-white); }
.page-home-modern .tool-btn{
  background:#102A20;
  border-color:var(--home-line);
  color:var(--home-white);
  box-shadow:none;
}
.page-home-modern .btn-income{ background:#18C87B; box-shadow:none; color:#04120C; }
.page-home-modern .btn-expense{ background:#D95C58; box-shadow:none; }
.page-home-modern .ledger{ gap:8px; }
.page-home-modern .week-group-days{ background:#071510;border-color:var(--home-line); }
.page-home-modern .row{ border-color:var(--home-line); }
.page-home-modern .history-toggle{ color:var(--home-green); }
.page-home-modern .empty{ color:var(--home-muted); }
.page-home-modern .hint-card{
  background:rgba(230,197,106,.06);
  border-color:rgba(230,197,106,.13);
}
.page-home-modern .hint-card .hint-text{ color:#C7D9D0; }
.page-home-modern .streak-badge-home{ color:var(--home-gold); }

/* Navegação inferior modernizada com SVG, sem alterar a lógica das páginas. */
.bottom-nav-inner{
  background:rgba(8,24,18,.96);
  border-color:rgba(162,255,210,.10);
  box-shadow:0 -12px 32px rgba(0,0,0,.20);
  backdrop-filter:blur(16px);
}
.nav-btn{ color:#789386; }
.nav-btn.active{
  background:rgba(34,227,142,.11);
  color:#22E38E;
}
.nav-icon{
  filter:none;
  opacity:1;
}
.nav-icon svg{
  width:20px;height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.75;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.nav-btn.active .nav-icon{ filter:none;opacity:1; }
.nav-label{ color:inherit; }

/* Ajustes responsivos */
@media (max-width:360px){
  .page-home-modern{ padding-left:12px;padding-right:12px; }
  .page-home-modern .home-metric-card{ padding:11px 8px; }
  .page-home-modern .home-metric-card strong{ font-size:12.5px; }
  .page-home-modern .balance-value{ font-size:35px; }
}


/* ==========================================================
   FASE 2 — Navegação final + Financeiro + Metas + Mais
   ========================================================== */

.page-dark-modern{
  --page-bg:#071510;
  --page-surface:#0D2018;
  --page-surface-2:#112B21;
  --page-line:rgba(162,255,210,.11);
  --page-green:#22E38E;
  --page-gold:#E6C56A;
  --page-white:#F6FFF9;
  --page-muted:#8FA99B;
  background:
    radial-gradient(420px 260px at 86% -5%,rgba(34,227,142,.08),transparent 62%),
    var(--page-bg);
  color:var(--page-white);
  border-radius:30px 30px 0 0;
  padding:22px 16px 38px;
  min-height:100vh;
}

.modern-page-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:15px;
  margin:2px 0 20px;
}
.modern-page-kicker{
  font-size:10px;
  font-weight:800;
  letter-spacing:.14em;
  color:var(--page-green);
  margin-bottom:5px;
}
.modern-page-header h1{
  margin:0;
  font-family:'Sora',sans-serif;
  font-size:25px;
  line-height:1.1;
  letter-spacing:-.035em;
  color:var(--page-white);
}
.modern-page-header p{
  margin:7px 0 0;
  max-width:315px;
  font-size:12.5px;
  line-height:1.45;
  color:var(--page-muted);
}
.modern-page-icon{
  width:46px;height:46px;border-radius:15px;
  display:grid;place-items:center;
  background:rgba(34,227,142,.10);
  border:1px solid var(--page-line);
  color:var(--page-green);
  flex:none;
}
.modern-page-icon.goal{ color:var(--page-gold); background:rgba(230,197,106,.08); }
.modern-page-icon svg,
.modern-feature-link-icon svg,
.more-menu-icon svg,
.finance-report-icon svg{
  width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;
}

/* Financeiro */
.finance-overview-strip{
  display:grid;
  grid-template-columns:1.08fr 1fr 1fr;
  gap:7px;
  margin-bottom:14px;
}
.finance-overview-strip>div{
  min-width:0;
  padding:12px 10px;
  background:linear-gradient(145deg,#102A20,#0B2018);
  border:1px solid var(--page-line);
  border-radius:15px;
}
.finance-overview-strip span{
  display:block;
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:.06em;
  font-weight:700;
  color:var(--page-muted);
  margin-bottom:4px;
}
.finance-overview-strip strong{
  display:block;
  font-family:'Sora',sans-serif;
  font-size:12.5px;
  color:var(--page-white);
  white-space:nowrap;
  overflow:visible;
  text-overflow:clip;
}
.page-financeiro-modern .hint-card,
.page-financeiro-modern .form-box,
.page-financeiro-modern .day-group,
.page-financeiro-modern .eval-card,
.page-financeiro-modern .history-panel{
  background:var(--page-surface);
  border-color:var(--page-line);
  box-shadow:none;
}
.page-financeiro-modern .form-box h3,
.page-financeiro-modern .section-title,
.page-financeiro-modern .row .desc,
.page-financeiro-modern .day-group-date{
  color:var(--page-white);
}
.page-financeiro-modern input,
.page-financeiro-modern select,
.page-financeiro-modern .cat-btn{
  background:var(--page-surface-2);
  border-color:var(--page-line);
  color:var(--page-white);
}
.page-financeiro-modern input::placeholder{ color:#658073; }
.page-financeiro-modern .btn-income{
  background:#18C87B;color:#04120C;box-shadow:none;
}
.page-financeiro-modern .btn-expense{
  background:#D95C58;color:#fff;box-shadow:none;
}
.page-financeiro-modern .status,
.page-financeiro-modern .row .date,
.page-financeiro-modern .row .running{
  color:var(--page-muted);
}
.finance-report-shortcut{
  margin-top:16px;
  display:flex;
  align-items:center;
  gap:11px;
  padding:13px;
  border:1px solid rgba(230,197,106,.14);
  border-radius:17px;
  background:linear-gradient(135deg,rgba(230,197,106,.06),var(--page-surface));
}
.finance-report-icon{
  width:38px;height:38px;border-radius:12px;
  display:grid;place-items:center;
  color:var(--page-gold);
  background:rgba(230,197,106,.08);
  flex:none;
}
.finance-report-shortcut>div:nth-child(2){ min-width:0;flex:1; }
.finance-report-shortcut small{
  display:block;color:var(--page-gold);font-size:8.5px;font-weight:800;letter-spacing:.1em;
}
.finance-report-shortcut strong{
  display:block;font-family:'Sora',sans-serif;font-size:12.5px;color:var(--page-white);margin-top:2px;
}
.finance-report-shortcut span{
  display:block;font-size:10.5px;color:var(--page-muted);margin-top:1px;
}
.finance-report-shortcut button{
  border:none;border-radius:999px;background:rgba(34,227,142,.10);color:var(--page-green);
  padding:7px 10px;font-size:11px;font-weight:700;
}

/* Metas / Planejamento */
.page-metas-modern .hint-card,
.page-metas-modern .budget-card,
.page-metas-modern .planning-form,
.page-metas-modern .simulator-card{
  background:var(--page-surface);
  border-color:var(--page-line);
  box-shadow:none;
  color:var(--page-white);
}
.page-metas-modern .budget-head h3,
.page-metas-modern .section-title,
.page-metas-modern .budget-text{ color:var(--page-white); }
.page-metas-modern .budget-subtitle,
.page-metas-modern .simulator-hint,
.page-metas-modern .budget-empty{ color:var(--page-muted); }
.page-metas-modern input,
.page-metas-modern select{
  background:var(--page-surface-2);
  border-color:var(--page-line);
  color:var(--page-white);
}
.modern-feature-link{
  width:100%;
  display:flex;
  align-items:center;
  gap:11px;
  padding:13px;
  margin-bottom:14px;
  background:linear-gradient(135deg,rgba(230,197,106,.065),var(--page-surface));
  border:1px solid rgba(230,197,106,.15);
  border-radius:17px;
  color:var(--page-white);
  text-align:left;
}
.modern-feature-link-icon{
  width:38px;height:38px;border-radius:12px;display:grid;place-items:center;flex:none;
  background:rgba(34,227,142,.10);color:var(--page-green);
}
.modern-feature-link-icon.gold{ background:rgba(230,197,106,.09);color:var(--page-gold); }
.modern-feature-link>span:nth-child(2){ flex:1;min-width:0; }
.modern-feature-link small{
  display:block;font-size:8.5px;font-weight:800;letter-spacing:.1em;color:var(--page-gold);
}
.modern-feature-link strong{
  display:block;font-family:'Sora',sans-serif;font-size:12.5px;margin-top:2px;
}
.modern-feature-link em{ font-size:24px;font-style:normal;color:var(--page-gold); }

/* Mais */
.more-menu-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:9px;
}
.more-menu-card{
  width:100%;
  display:flex;
  align-items:center;
  gap:11px;
  padding:13px;
  text-align:left;
  color:var(--page-white);
  background:var(--page-surface);
  border:1px solid var(--page-line);
  border-radius:17px;
}
.more-menu-icon{
  width:39px;height:39px;border-radius:12px;display:grid;place-items:center;
  color:var(--page-green);background:rgba(34,227,142,.09);flex:none;
}
.more-menu-card>span:nth-child(2){ flex:1;min-width:0; }
.more-menu-card strong{
  display:block;font-family:'Sora',sans-serif;font-size:13px;color:var(--page-white);
}
.more-menu-card small{
  display:block;margin-top:2px;font-size:10.5px;color:var(--page-muted);
}
.more-menu-card em{
  font-style:normal;font-size:23px;color:var(--page-green);
}
.more-premium-card{
  margin-top:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px;
  border-radius:18px;
  background:linear-gradient(135deg,rgba(230,197,106,.09),#0D2018 58%);
  border:1px solid rgba(230,197,106,.16);
}
.more-premium-card small{
  display:block;color:var(--page-gold);font-size:8.5px;font-weight:800;letter-spacing:.1em;
}
.more-premium-card strong{
  display:block;color:var(--page-white);font-family:'Sora',sans-serif;font-size:13px;margin-top:3px;
}
.more-premium-card span:not(.more-premium-mark){
  display:block;color:var(--page-muted);font-size:10.5px;margin-top:2px;
}
.more-premium-mark{ color:var(--page-gold);font-size:28px; }

/* Consultor agora compartilha a base escura, sem alterar conteúdo. */
.page-consultor-modern .chart-card,
.page-consultor-modern .budget-card,
.page-consultor-modern .simulator-card,
.page-consultor-modern .day-summary-card,
.page-consultor-modern .consultor-section,
.page-consultor-modern .free-question{
  border-color:var(--page-line);
}

/* Consultor destacado no centro da barra inferior */
.nav-btn-featured .nav-icon{
  width:34px;height:34px;border-radius:12px;
  background:rgba(230,197,106,.10);
  color:#E6C56A;
  display:grid;place-items:center;
  margin-top:-8px;
  border:1px solid rgba(230,197,106,.13);
}
.nav-btn-featured.active{
  color:#E6C56A;
  background:rgba(230,197,106,.065);
}
.nav-btn-featured.active .nav-icon{ color:#E6C56A; }

@media(max-width:360px){
  .finance-overview-strip{ grid-template-columns:1fr 1fr; }
  .finance-overview-strip>div:first-child{ grid-column:1/-1; }
}


/* ==========================================================
   FASE 3 — Veículo + Consultor + Metas
   ========================================================== */

.gold-kicker{ color:#E6C56A !important; }

/* Subpáginas */
.subpage-back-row{ margin:-2px 0 10px; }
.subpage-back-btn{
  width:38px;height:38px;border-radius:12px;border:1px solid var(--page-line);
  background:var(--page-surface);color:var(--page-white);display:grid;place-items:center;padding:0;
}
.subpage-back-btn svg{
  width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;
}

/* Veículo */
.modern-page-icon.vehicle{
  color:#22E38E;
  background:rgba(34,227,142,.09);
}
.vehicle-hero-card{
  display:flex;align-items:center;gap:13px;
  padding:16px;margin-bottom:14px;border-radius:20px;
  background:
    radial-gradient(180px 100px at 100% 0%,rgba(34,227,142,.11),transparent 72%),
    linear-gradient(145deg,#103326,#0A231A);
  border:1px solid rgba(34,227,142,.14);
}
.vehicle-hero-icon{
  width:48px;height:48px;border-radius:15px;display:grid;place-items:center;flex:none;
  background:rgba(34,227,142,.10);color:#22E38E;
}
.vehicle-hero-icon svg{
  width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;
}
.vehicle-hero-card small{
  display:block;font-size:8.5px;font-weight:800;letter-spacing:.12em;color:#22E38E;margin-bottom:3px;
}
.vehicle-hero-card strong{
  display:block;font-family:'Sora',sans-serif;font-size:15px;color:var(--page-white);
}
.vehicle-hero-card span{
  display:block;margin-top:3px;font-size:10.5px;color:var(--page-muted);
}
.vehicle-section-block{
  margin-top:13px;
  padding:14px;
  border-radius:20px;
  background:var(--page-surface);
  border:1px solid var(--page-line);
}
.vehicle-section-title{
  margin-bottom:11px;
  padding-bottom:10px;
  border-bottom:1px solid var(--page-line);
}
.vehicle-section-title>span{
  display:block;font-family:'Sora',sans-serif;font-size:14px;font-weight:700;color:var(--page-white);
}
.vehicle-section-title small{
  display:block;margin-top:2px;font-size:10.5px;color:var(--page-muted);
}
.page-veiculo-modern .hint-card,
.page-veiculo-modern .budget-card{
  background:var(--page-surface-2);
  border-color:var(--page-line);
  box-shadow:none;
  margin-bottom:0;
}
.page-veiculo-modern .budget-head h3,
.page-veiculo-modern .section-title,
.page-veiculo-modern .km-stat-row b{
  color:var(--page-white);
}
.page-veiculo-modern .budget-subtitle,
.page-veiculo-modern .km-stat-row,
.page-veiculo-modern .km-empty{
  color:var(--page-muted);
}
.page-veiculo-modern input[type="text"],
.page-veiculo-modern input[type="number"],
.page-veiculo-modern input[type="time"],
.page-veiculo-modern select{
  background:#0D261D;
  border-color:var(--page-line);
  color:var(--page-white);
}
.page-veiculo-modern input::placeholder{ color:#627D70; }
.page-veiculo-modern .journey-btn{
  background:linear-gradient(135deg,#20DD8B,#13B56F);
  color:#03120C;box-shadow:none;
}
.page-veiculo-modern .journey-live{
  background:#0D261D;border-color:var(--page-line);
}
.page-veiculo-modern .journey-live-item{ color:var(--page-muted); }
.page-veiculo-modern .journey-live-item b{ color:var(--page-white); }
.page-veiculo-modern .history-toggle{ color:#22E38E; }
.page-veiculo-modern .history-panel{
  background:#0A1D16;border-color:var(--page-line);box-shadow:none;
}
.page-veiculo-modern .maint-row,
.page-veiculo-modern .planning-form{
  border-color:var(--page-line);
  background:#0D261D;
}
.page-veiculo-modern .tool-btn{
  background:#123126;border-color:var(--page-line);color:var(--page-white);box-shadow:none;
}

/* Consultor */
.modern-page-avatar{
  width:46px;height:46px;border-radius:15px;border:1px solid rgba(230,197,106,.15);
  background:linear-gradient(145deg,#2A2717,#161B13);
  color:#E6C56A;font-family:'Sora',sans-serif;font-weight:800;
}
.consultor-hero-card{
  display:flex;align-items:center;gap:13px;
  padding:16px;margin-bottom:16px;border-radius:20px;
  background:
    radial-gradient(210px 110px at 100% 0%,rgba(230,197,106,.09),transparent 72%),
    linear-gradient(145deg,#151F17,#0C1912);
  border:1px solid rgba(230,197,106,.14);
}
.consultor-hero-mark{
  width:45px;height:45px;border-radius:14px;display:grid;place-items:center;flex:none;
  background:rgba(230,197,106,.09);color:#E6C56A;
}
.consultor-hero-mark svg{
  width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;
}
.consultor-hero-card small{
  display:block;color:#E6C56A;font-size:8.5px;font-weight:800;letter-spacing:.11em;
}
.consultor-hero-card strong{
  display:block;margin-top:3px;color:var(--page-white);font-family:'Sora',sans-serif;font-size:13.5px;
}
.consultor-hero-card span{
  display:block;margin-top:3px;color:var(--page-muted);font-size:10.5px;line-height:1.4;
}
.consultor-section-label{
  margin:5px 0 12px;
}
.consultor-section-label span{
  display:block;font-family:'Sora',sans-serif;font-size:15px;font-weight:700;color:var(--page-white);
}
.consultor-section-label small{
  display:block;margin-top:2px;font-size:10.5px;color:var(--page-muted);
}
.page-consultor-modern .section-title{ color:var(--page-white); }
.page-consultor-modern .chart-card,
.page-consultor-modern .day-summary-card,
.page-consultor-modern .simulator-card,
.page-consultor-modern .free-consultor-card{
  background:var(--page-surface);
  border-color:var(--page-line);
  box-shadow:none;
  border-radius:19px;
}
.page-consultor-modern .free-consultor-head h3,
.page-consultor-modern .simulator-card h3{
  color:var(--page-white);
  font-family:'Sora',sans-serif;
  font-size:14px;
}
.page-consultor-modern .simulator-hint,
.page-consultor-modern .day-summary-text,
.page-consultor-modern .day-summary-cta{
  color:var(--page-muted);
}
.page-consultor-modern .day-summary-card{
  border-left:3px solid #22E38E;
}
.page-consultor-modern .day-summary-label{
  color:#22E38E;
  font-weight:800;
}
.page-consultor-modern .simulator-row input{
  background:#0D261D;border-color:var(--page-line);color:var(--page-white);
}
.page-consultor-modern .simulator-row button{
  background:#22E38E;color:#03120C;border:none;
}
.page-consultor-modern .free-question-grid{
  gap:8px;
}
.page-consultor-modern .free-question{
  min-height:60px;
  padding:12px;
  background:#0D261D;
  border:1px solid var(--page-line);
  color:var(--page-white);
  border-radius:14px;
  text-align:left;
  font-size:11.5px;
  line-height:1.35;
}
.page-consultor-modern .consultor-tools .tool-btn{
  background:#102A20;border-color:var(--page-line);color:var(--page-white);box-shadow:none;
}
.page-consultor-modern .storage-note-full{
  color:var(--page-muted);
  background:rgba(34,227,142,.04);
  border-color:var(--page-line);
}

/* Metas */
.metas-overview-grid{
  display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px;
}
.metas-overview-grid article{
  display:flex;align-items:center;gap:9px;min-width:0;
  padding:12px 10px;border-radius:16px;
  background:var(--page-surface);border:1px solid var(--page-line);
}
.metas-overview-icon{
  width:34px;height:34px;border-radius:11px;display:grid;place-items:center;flex:none;
  color:#22E38E;background:rgba(34,227,142,.09);
}
.metas-overview-icon.gold{
  color:#E6C56A;background:rgba(230,197,106,.09);
}
.metas-overview-icon svg{
  width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;
}
.metas-overview-grid small{
  display:block;font-size:8px;font-weight:800;letter-spacing:.09em;color:var(--page-muted);
}
.metas-overview-grid strong{
  display:block;margin-top:2px;font-family:'Sora',sans-serif;font-size:11.5px;color:var(--page-white);
}
.page-metas-modern .budget-card{
  border-radius:18px;
}
.page-metas-modern .budget-bar-track{
  background:rgba(255,255,255,.07);
}
.page-metas-modern .budget-bar-fill{
  background:linear-gradient(90deg,#18C87B,#22E38E);
}
.page-metas-modern .budget-edit{
  color:#22E38E;
}
.page-metas-modern .budget-reset{ color:#FF8B85; }

/* Desafios agora compartilham a identidade de Metas */
.page-desafios-modern .sonho-info-box,
.page-desafios-modern #desafioCard > *,
.page-desafios-modern #desafioSemanaCard > *,
.page-desafios-modern #desafioMesCard > *,
.page-desafios-modern #conquistasWrap > *{
  border-color:var(--page-line);
}
.page-desafios-modern .section-title{ color:var(--page-white); }
.page-desafios-modern .sonho-info-box{
  background:var(--page-surface);color:var(--page-muted);
}


/* ==========================================================
   FASE 4 — Mais + Perfil + Premium + Notas + Manual
   ========================================================== */
.more-account-strip{display:flex;align-items:center;gap:11px;padding:14px;margin-bottom:12px;border-radius:18px;background:linear-gradient(135deg,rgba(34,227,142,.06),var(--page-surface));border:1px solid var(--page-line);}
.more-account-avatar{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:rgba(34,227,142,.10);color:#22E38E;font-family:'Sora',sans-serif;font-weight:800;flex:none;}
.more-account-strip>div:nth-child(2){flex:1;min-width:0}.more-account-strip small{display:block;font-size:8.5px;font-weight:800;letter-spacing:.1em;color:var(--page-muted)}
.more-account-strip strong{display:block;margin-top:2px;font-family:'Sora',sans-serif;font-size:13px;color:var(--page-white)}.more-account-strip span{display:block;margin-top:2px;font-size:10.5px;color:var(--page-muted)}
.more-account-strip button{border:none;border-radius:999px;background:rgba(34,227,142,.10);color:#22E38E;padding:7px 10px;font-size:11px;font-weight:700}
.more-menu-icon.danger{color:#FF8B85;background:rgba(255,139,133,.09)}.more-menu-logout strong{color:#FF8B85}

.profile-header-modern{margin-bottom:12px}.profile-avatar-modern{width:52px;height:52px;border-radius:17px;display:grid;place-items:center;flex:none;background:linear-gradient(145deg,#17382B,#0E2119);border:1px solid var(--page-line);color:#22E38E;font-family:'Sora',sans-serif;font-weight:800}
.profile-summary-card{display:flex;align-items:center;gap:12px;padding:15px;margin-bottom:12px;border-radius:19px;background:var(--page-surface);border:1px solid var(--page-line)}
.profile-summary-card>div{flex:1;min-width:0}.profile-summary-card small{display:block;font-size:8.5px;font-weight:800;letter-spacing:.1em;color:var(--page-muted)}.profile-summary-card strong{display:block;margin-top:2px;font-family:'Sora',sans-serif;font-size:14px;color:var(--page-white)}
.profile-summary-card span{display:block;margin-top:2px;font-size:10.5px;color:var(--page-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-summary-card button{border:none;border-radius:999px;background:rgba(34,227,142,.10);color:#22E38E;padding:7px 10px;font-size:11px;font-weight:700}
.profile-name-form{gap:7px;align-items:center;margin-bottom:12px}.profile-name-form input{flex:1}.page-profile-modern .budget-card,.page-profile-modern .hint-card,.page-profile-modern .history-panel{background:var(--page-surface);border-color:var(--page-line);box-shadow:none}
.page-profile-modern .section-title,.page-profile-modern .perfil-value{color:var(--page-white)}.page-profile-modern input,.page-profile-modern select{background:#0D261D;border-color:var(--page-line);color:var(--page-white)}.page-profile-modern .tool-btn{background:#102A20;border-color:var(--page-line);color:var(--page-white);box-shadow:none}
.profile-section-heading{margin:22px 0 10px}.profile-section-heading span{display:block;font-family:'Sora',sans-serif;font-size:15px;font-weight:700;color:var(--page-white)}.profile-section-heading small{display:block;margin-top:2px;font-size:10.5px;color:var(--page-muted)}
.premium-hero-card{display:flex;align-items:center;gap:12px;padding:16px;margin-bottom:11px;border-radius:20px;background:radial-gradient(190px 100px at 100% 0%,rgba(230,197,106,.11),transparent 70%),linear-gradient(145deg,#1A2116,#0E1911);border:1px solid rgba(230,197,106,.16)}
.premium-hero-mark{width:46px;height:46px;border-radius:15px;display:grid;place-items:center;background:rgba(230,197,106,.10);color:#E6C56A;font-size:22px;flex:none}.premium-hero-card small{display:block;font-size:8.5px;font-weight:800;letter-spacing:.11em;color:#E6C56A}.premium-hero-card strong{display:block;margin-top:3px;font-family:'Sora',sans-serif;font-size:13.5px;color:var(--page-white)}.premium-hero-card span{display:block;margin-top:3px;font-size:10.5px;color:var(--page-muted);line-height:1.4}
.page-profile-modern #perfilAssinaturaCard{background:#0D2018!important;border-color:rgba(230,197,106,.13)!important;box-shadow:none!important}

.page-notas-modern .hint-card,.page-notas-modern .agenda-calendar-block,.page-notas-modern .agenda-panel-block,.page-notas-modern .note-editor{background:var(--page-surface);border-color:var(--page-line);box-shadow:none}.page-notas-modern input,.page-notas-modern textarea,.page-notas-modern select{background:#0D261D;border-color:var(--page-line);color:var(--page-white)}
.page-notas-modern .notes-add{background:#22E38E;color:#03120C;box-shadow:none}.page-notas-modern .notes-agenda-btn,.page-notas-modern .tool-btn{background:#102A20;border-color:var(--page-line);color:var(--page-white);box-shadow:none}

.page-manual-modern .manual-intro,.page-manual-modern .manual-chapter{background:var(--page-surface);border-color:var(--page-line);box-shadow:none;color:var(--page-white)}.page-manual-modern .manual-intro,.page-manual-modern .manual-chapter-body p,.page-manual-modern .manual-chapter-body li{color:var(--page-muted)}.page-manual-modern .manual-chapter-head{color:var(--page-white);background:#102A20}.page-manual-modern .manual-chevron{color:#22E38E}


/* ==========================================================
   FASE 5 — acabamento após teste em aparelho real
   ========================================================== */

/* Dicas/lâmpadas: contraste alto e sem lilás/branco */
.page-dark-modern .hint-card{
  background:#102A20 !important;
  border:1px solid rgba(34,227,142,.15) !important;
  box-shadow:none !important;
}
.page-dark-modern .hint-card .hint-text{
  color:#E3E7E5 !important;
  font-size:13px;
}
.page-dark-modern .hint-card .hint-close{ color:#8FA79B !important; }

/* Frase do dia volta a ser elemento visível da Home */
.home-daily-message-featured{
  margin-top:12px !important;
  padding:11px 12px !important;
  display:flex !important;align-items:center;gap:10px;
  background:rgba(230,197,106,.075);
  border:1px solid rgba(230,197,106,.13);
  border-radius:14px;
}
.daily-quote-icon{
  width:32px;height:32px;border-radius:10px;display:grid;place-items:center;flex:none;
  background:rgba(230,197,106,.10);color:#E6C56A;
}
.daily-quote-icon svg,.modern-action-btn svg,.section-svg-icon svg{
  width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;
}
.home-daily-message-featured>span:last-child{display:block;min-width:0}
.home-daily-message-featured small{
  display:block;color:#E6C56A;font-size:8px;font-weight:800;letter-spacing:.11em;margin-bottom:2px;
}
.home-daily-message-featured strong{
  display:block;color:#E3E7E5;font-size:10.5px;line-height:1.4;font-weight:500;
}

/* Jornada vira ação de primeira linha no Financeiro */
.finance-journey-hero{
  width:100%;display:flex;align-items:center;gap:12px;text-align:left;
  margin:0 0 14px;padding:15px;border-radius:19px;
  background:linear-gradient(135deg,#143A2B,#0D271D);
  border:1px solid rgba(34,227,142,.18);color:#fff;
}
.finance-journey-icon{
  width:44px;height:44px;border-radius:14px;display:grid;place-items:center;flex:none;
  background:#22E38E;color:#062016;
}
.finance-journey-icon svg{
  width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
}
.finance-journey-copy{flex:1;min-width:0}
.finance-journey-copy small{display:block;color:#22E38E;font-size:8px;font-weight:800;letter-spacing:.11em}
.finance-journey-copy strong{display:block;font-family:'Sora',sans-serif;font-size:14px;color:#F5FAF7;margin-top:2px}
.finance-journey-copy em{display:block;font-style:normal;font-size:10.5px;color:#9FB5AA;margin-top:2px;line-height:1.35}
.finance-journey-arrow{font-size:25px;color:#22E38E}

/* SVGs de ações secundárias */
.modern-action-btn{display:flex!important;align-items:center;justify-content:center;gap:8px}
.modern-action-btn svg{color:#22E38E;flex:none}
.modern-section-title{display:flex!important;align-items:center;gap:8px}
.section-svg-icon{width:29px;height:29px;border-radius:9px;display:grid;place-items:center;background:rgba(34,227,142,.09);color:#22E38E}
.section-svg-icon.gold{background:rgba(230,197,106,.09);color:#E6C56A}

/* Remove ilhas brancas das telas modernas */
.page-dark-modern .day-group,
.page-dark-modern .week-group-head,
.page-dark-modern .week-group-days,
.page-dark-modern .eval-card,
.page-dark-modern .simulator-card,
.page-dark-modern .planning-form,
.page-dark-modern .goal-card,
.page-dark-modern .streak-row,
.page-dark-modern .achievement-card,
.page-dark-modern .assinatura-status-card,
.page-dark-modern .sonho-info-box,
.page-dark-modern .km-history-detail{
  background:#10261D !important;border-color:rgba(255,255,255,.08) !important;box-shadow:none !important;
}
.page-dark-modern .day-group-date,
.page-dark-modern .week-group-label,
.page-dark-modern .row .desc,
.page-dark-modern .eval-card h3,
.page-dark-modern .goal-name,
.page-dark-modern .assinatura-status-title,
.page-dark-modern .sonho-conquistado-row .sc-title{
  color:#F3F8F5 !important;
}
.page-dark-modern .day-group-count,.page-dark-modern .day-group-saldo,
.page-dark-modern .week-group-count,.page-dark-modern .week-group-saldo,
.page-dark-modern .row .date,.page-dark-modern .row .running,
.page-dark-modern .eval-empty,.page-dark-modern .simulator-hint,
.page-dark-modern .assinatura-status-sub,.page-dark-modern .budget-empty{
  color:#9FB5AA !important;
}
.page-dark-modern .row,.page-dark-modern .sonho-conquistado-row{border-color:rgba(255,255,255,.08)!important}

/* Consultor: todos os nomes, legendas e respostas legíveis */
.page-consultor-modern,.page-consultor-modern .chart-card{color:#F3F8F5}
.page-consultor-modern .legend-row,
.page-consultor-modern .legend-left,
.page-consultor-modern .legend-left span,
.page-consultor-modern .cat-legend-left,
.page-consultor-modern .cat-legend-left span{
  color:#E3E7E5 !important;
}
.page-consultor-modern .legend-amount{color:#F3F8F5!important}
.page-consultor-modern .empty-chart{color:#9FB5AA!important}
.page-consultor-modern .free-answer{
  background:#0D261D!important;border-left:3px solid #22E38E!important;color:#E3E7E5!important;
}
.app-dark-modal-sheet{
  background:#0A1D16;border:1px solid rgba(255,255,255,.08);
  border-radius:20px;padding:20px 18px 24px;max-width:480px;width:100%;
  max-height:84vh;overflow-y:auto;box-shadow:0 22px 55px rgba(0,0,0,.35);color:#F3F8F5;
}
.health-modal-sheet{border-radius:20px 20px 0 0;max-height:88vh;padding-bottom:28px}
.free-answer-modal-title{font-family:'Sora',sans-serif;font-weight:700;font-size:16px;color:#F3F8F5;margin:0 0 14px}
.app-dark-modal-sheet .paywall-logout{color:#CBD2CF!important}

/* Pontuação: sai o lilás e entra identidade verde/dourada */
.health-card{
  background:
    radial-gradient(220px 150px at 100% 0%,rgba(230,197,106,.16),transparent 70%),
    linear-gradient(145deg,#123A2A 0%,#0B281D 58%,#102319 100%) !important;
  box-shadow:0 16px 38px rgba(0,0,0,.22)!important;
  border:1px solid rgba(230,197,106,.13)!important;
}
.health-card::before{background:radial-gradient(circle,rgba(34,227,142,.12),transparent 70%)!important}
.health-card .health-bar-fill{background:linear-gradient(90deg,#22E38E,#E6C56A)!important}

/* Manual e Perfil: conteúdo claro dentro de cards escuros */
.page-manual-modern .manual-tip{
  background:#102A20!important;border:1px solid rgba(34,227,142,.12)!important;color:#E3E7E5!important;
}
.page-manual-modern .manual-tip b{color:#E6C56A!important}
.page-profile-modern #perfilScoreBox .health-card,
.page-profile-modern #perfilStreaksBox .streak-row{box-shadow:none!important}

/* Formulários e botões cancel em dark pages nunca voltam a branco */
.page-dark-modern button[style*="background:transparent"]{
  background:#0D261D!important;color:#CBD2CF!important;border-color:rgba(255,255,255,.10)!important;
}


/* ==========================================================
   FASE 6 — UNIFICAÇÃO VISUAL COMPLETA APÓS TESTE EM CELULAR
   ========================================================== */

/* ----- Login ----- */
.auth-card{
  background:linear-gradient(145deg,#0D241A,#091A13) !important;
  border:1px solid rgba(255,255,255,.09) !important;
  box-shadow:0 24px 60px rgba(0,0,0,.32) !important;
}
.auth-card h2{color:#F4FAF6 !important}
.auth-card .auth-card-sub{color:#9DB1A7 !important}
.auth-field input{
  background:#102A20 !important;
  border-color:rgba(255,255,255,.10) !important;
  color:#F4FAF6 !important;
}
.auth-field input:focus{
  background:#123126 !important;
  border-color:#22E38E !important;
}
.auth-field input::placeholder{color:#738A7F !important}
.auth-field .auth-field-icon{color:#8FA79B !important;opacity:1 !important}
.auth-btn-google{
  background:#102A20 !important;
  border-color:rgba(255,255,255,.10) !important;
  color:#F4FAF6 !important;
}
.auth-btn-google:active{background:#15372A !important}
.auth-divider::before,.auth-divider::after{background:rgba(255,255,255,.10) !important}
.auth-divider span,.auth-link,.auth-footer{color:#9DB1A7 !important}

/* ----- Tutorial inicial / Rever tutorial ----- */
.onboarding-overlay{
  background:
    radial-gradient(620px 360px at 90% -5%,rgba(34,227,142,.09),transparent 62%),
    radial-gradient(500px 320px at -10% 5%,rgba(230,197,106,.05),transparent 62%),
    #071510 !important;
}
.onboarding-title{color:#F4FAF6 !important}
.onboarding-desc{color:#A1B5AA !important}
.onboarding-dot{background:#244035 !important}
.onboarding-dot.active{background:#22E38E !important}
.onboarding-back-btn{color:#A1B5AA !important}
.onboarding-next-btn{
  background:#22E38E !important;color:#052017 !important;
  box-shadow:0 10px 22px rgba(34,227,142,.15) !important;
}

/* ----- Pontuação Financeira ----- */
.health-status.good,
.health-status-compact.good{
  background:rgba(34,227,142,.11) !important;
  color:#22E38E !important;
  border:1px solid rgba(34,227,142,.18) !important;
  box-shadow:none !important;
}
.health-status.great,
.health-status-compact.great{
  background:rgba(230,197,106,.10) !important;
  color:#E6C56A !important;
  border:1px solid rgba(230,197,106,.16) !important;
}
.health-status.warn,
.health-status-compact.warn{
  background:rgba(255,139,133,.09) !important;
  color:#FF9D98 !important;
  border:1px solid rgba(255,139,133,.15) !important;
}
.health-card .health-score,
.health-card .health-score-max,
.health-card .health-score-label,
.health-card .challenge-text{color:#F4FAF6 !important}

/* ----- Perfil: títulos e editar legíveis ----- */
.page-profile-modern .section-title,
.page-profile-modern .section-title span,
.page-profile-modern .perfil-label,
.page-profile-modern .perfil-value,
.page-profile-modern #perfilDadosBox,
.page-profile-modern #perfilDadosBox *{
  color:#F1F7F3 !important;
}
.page-profile-modern .perfil-sub,
.page-profile-modern #perfilDadosBox .perfil-sub{color:#A0B4A9 !important}
.page-profile-modern button[onclick*="editar"],
.page-profile-modern button[onclick*="Editar"],
.page-profile-modern button[onclick*="iniciarEdicao"],
.page-profile-modern .note-toggle-edit-btn{
  color:#22E38E !important;
}

/* ----- Notas e Agenda: nenhuma caixa branca ----- */
.page-notas-modern .note-card{
  background:#10261D !important;
  border:1px solid rgba(255,255,255,.09) !important;
  box-shadow:none !important;
  opacity:1;
}
.page-notas-modern .note-card.note-done{
  background:#0E2119 !important;
  opacity:.72 !important;
}
.page-notas-modern .note-title{color:#F4FAF6 !important}
.page-notas-modern .note-preview{color:#A5B8AE !important}
.page-notas-modern .note-date{color:#748C80 !important}
.page-notas-modern .note-check-btn{filter:saturate(.75)}
.page-notas-modern .note-concluida-btn{
  background:#102A20 !important;border-color:rgba(255,255,255,.10) !important;color:#CBD2CF !important;
}
.page-notas-modern .note-concluida-btn.checked{
  background:rgba(34,227,142,.10) !important;border-color:rgba(34,227,142,.18) !important;color:#22E38E !important;
}
.page-notas-modern .agenda-month-bar button{
  background:#102A20 !important;border-color:rgba(255,255,255,.10) !important;color:#F4FAF6 !important;
}
.page-notas-modern .agenda-month-bar span{color:#F4FAF6 !important}
.page-notas-modern .agenda-weekdays{color:#8FA79B !important}
.page-notas-modern .agenda-day{
  background:#102A20 !important;
  border-color:rgba(255,255,255,.09) !important;
  color:#E8F0EC !important;
}
.page-notas-modern .agenda-day.today{
  background:rgba(34,227,142,.08) !important;
  border-color:#22E38E !important;
  color:#22E38E !important;
}
.page-notas-modern .agenda-day.selected{
  background:#22E38E !important;
  color:#052017 !important;
  border-color:#22E38E !important;
}
.page-notas-modern .agenda-day .dot{background:#E6C56A !important}
.page-notas-modern .agenda-day.selected .dot{background:#052017 !important}
.page-notas-modern .agenda-day-panel-title{color:#F4FAF6 !important}
.page-notas-modern .agenda-add-note{
  color:#22E38E !important;border-color:rgba(34,227,142,.22) !important;
}

/* ----- Metas do Dia: padronização dark ----- */
.page-metas-modern .work-goal-sugg{
  background:#10261D !important;
  border:1px solid rgba(255,255,255,.09) !important;
  box-shadow:none !important;
}
.page-metas-modern .work-goal-sugg-icon{
  background:rgba(34,227,142,.08) !important;
  border:1px solid rgba(34,227,142,.10);
}
.page-metas-modern .work-goal-sugg-text{color:#F4FAF6 !important}
.page-metas-modern .period-hint{color:#9FB4A9 !important}

/* ----- Desafios: um único padrão de card, sem laranja/azul/turquesa ----- */
.page-desafios-modern .desafio-card,
.page-desafios-modern .desafio-card.done,
.page-desafios-modern .desafio-card.week,
.page-desafios-modern .desafio-card.month{
  background:
    radial-gradient(220px 130px at 100% 0%,rgba(34,227,142,.075),transparent 72%),
    linear-gradient(145deg,#113326,#0B241A) !important;
  border:1px solid rgba(34,227,142,.13) !important;
  box-shadow:none !important;
  color:#F4FAF6 !important;
}
.page-desafios-modern .desafio-card h3{color:#F4FAF6 !important}
.page-desafios-modern .desafio-desc{color:#B5C7BE !important}
.page-desafios-modern .desafio-value,
.page-desafios-modern .desafio-value.habit,
.page-desafios-modern .desafio-live-badge{
  background:rgba(230,197,106,.08) !important;
  color:#E6C56A !important;
  border:1px solid rgba(230,197,106,.11) !important;
}
.page-desafios-modern .desafio-card .budget-bar-track{background:rgba(255,255,255,.08) !important}
.page-desafios-modern .desafio-card .budget-bar-fill{background:#22E38E !important}
.page-desafios-modern .desafio-resumo-item,
.page-desafios-modern .desafio-weeks-of-month{
  background:#10261D !important;
  border-color:rgba(255,255,255,.09) !important;
  box-shadow:none !important;
}
.page-desafios-modern .desafio-resumo-item span{color:#8FA79B !important}
.page-desafios-modern .desafio-resumo-item b{color:#F4FAF6 !important}
.page-desafios-modern .desafio-actions button:first-child{
  background:#152C22 !important;
  color:#C5D5CD !important;
  border:1px solid rgba(255,255,255,.10) !important;
}
.page-desafios-modern .desafio-actions button:last-child{
  background:#22E38E !important;
  color:#052017 !important;
  border:none !important;
}

/* ----- Consultor: respostas rápidas e modal ----- */
.page-consultor-modern .free-question{
  background:#10261D !important;
  border:1px solid rgba(255,255,255,.09) !important;
  color:#EAF2EE !important;
}
.free-answer-modal-sheet .free-answer{
  background:#10261D !important;
  border-left:3px solid #22E38E !important;
  color:#EAF2EE !important;
}
.free-answer-modal-sheet .free-answer *{color:inherit}
.free-answer-modal-sheet .free-answer b{color:#FFFFFF !important}
.free-answer-modal-sheet .free-answer-section{
  border-bottom-color:rgba(255,255,255,.08) !important;
}

/* ----- Botões do Consultor: nada de branco ----- */
.page-consultor-modern .modern-action-btn,
.page-consultor-modern .tool-btn.modern-action-btn{
  background:#10261D !important;
  border:1px solid rgba(255,255,255,.09) !important;
  color:#F4FAF6 !important;
  box-shadow:none !important;
}
.page-consultor-modern .modern-action-btn svg{color:#22E38E !important}

/* ----- Caixas gerais claras restantes dentro das páginas escuras ----- */
.page-dark-modern .goal-card,
.page-dark-modern .note-card,
.page-dark-modern .streak-row,
.page-dark-modern .achievement-card,
.page-dark-modern .desafio-resumo-item,
.page-dark-modern .desafio-weeks-of-month,
.page-dark-modern .history-row,
.page-dark-modern .agenda-row{
  background:#10261D !important;
  border-color:rgba(255,255,255,.09) !important;
  box-shadow:none !important;
}

/* ----- Evita títulos herdando roxo/azul quase preto ----- */
.page-dark-modern h1,
.page-dark-modern h2,
.page-dark-modern h3,
.page-dark-modern h4,
.page-dark-modern .section-title,
.page-dark-modern .section-title span{
  color:#F4FAF6;
}


/* ==========================================================
   FASE 7 — acabamento visual + jornada ativa + manual
   ========================================================== */

/* Veículo na Home sem pílula branca */
.page-home-modern .topbar-veiculo-badge{
  background:#102A20 !important;
  color:#DDEAE3 !important;
  border:1px solid rgba(34,227,142,.12) !important;
  box-shadow:none !important;
}

/* Caixas claras remanescentes */
.page-dark-modern .week-card,
.page-dark-modern .achievement-month-detail,
.page-dark-modern .achievement-detail,
.page-dark-modern .score-detail-card,
.page-dark-modern .profile-score-card,
.page-dark-modern .goal-suggestion-card,
.page-dark-modern .manual-card,
.page-dark-modern .dialog-card{
  background:#10261D !important;
  border:1px solid rgba(255,255,255,.09) !important;
  box-shadow:none !important;
  color:#F4FAF6 !important;
}

/* Pontuação no Perfil */
.page-profile-modern #perfilScoreBox,
.page-profile-modern #perfilScoreBox *{
  color:#F4FAF6 !important;
}
.page-profile-modern #perfilScoreBox .health-status,
.page-profile-modern #perfilScoreBox .health-status-compact{
  color:#22E38E !important;
}
.page-profile-modern #perfilScoreBox .health-score,
.page-profile-modern #perfilScoreBox .health-score-max{
  color:#FFFFFF !important;
}
.page-profile-modern #perfilScoreBox .challenge-text,
.page-profile-modern #perfilScoreBox .health-score-label{
  color:#A8BBAF !important;
}

/* Conquistas com verde mais vivo */
.page-desafios-modern .achievement-card .achievement-value,
.page-desafios-modern .achievement-card .achievement-detail,
.page-desafios-modern .achievement-card .achievement-month,
.page-desafios-modern .achievement-card .achievement-month-detail,
.page-desafios-modern .achievement-card .month-line,
.page-desafios-modern .achievement-card .current-month{
  color:#22E38E !important;
}
.page-desafios-modern .achievement-card .locked{
  color:#789187 !important;
}

/* Jornada ativa no Financeiro */
.finance-journey-live-card{
  display:none;
  margin:0 0 14px;
  padding:15px;
  border-radius:19px;
  background:linear-gradient(135deg,#123A2A,#0D271D);
  border:1px solid rgba(34,227,142,.20);
}
.finance-journey-live-card.active{display:block}
.finance-journey-live-top{
  display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;
}
.finance-journey-live-top small{
  color:#22E38E;font-size:8px;font-weight:800;letter-spacing:.11em;
}
.finance-journey-live-top strong{
  color:#F4FAF6;font-family:'Sora',sans-serif;font-size:14px;
}

.finance-journey-active-title{
  color:#F4FAF6;
  font-family:'Sora',sans-serif;
  font-size:18px;
  line-height:1.1;
  font-weight:800;
  letter-spacing:.04em;
  white-space:nowrap;
}
.finance-journey-live-top{
  min-height:28px;
}
.finance-journey-gps-signal{
  flex-shrink:0;
}

.finance-journey-live-stats{
  display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:11px;
}
.finance-journey-live-stats div{
  background:#102A20;border:1px solid rgba(255,255,255,.08);border-radius:13px;padding:10px;
}
.finance-journey-live-stats span{display:block;color:#8FA79B;font-size:9px;text-transform:uppercase;letter-spacing:.07em}
.finance-journey-live-stats b{display:block;color:#F4FAF6;font-size:13px;margin-top:3px}
.finance-journey-end-btn{
  width:100%;border:none;border-radius:13px;padding:12px 14px;
  background:#22E38E;color:#052017;font-weight:800;font-size:13px;
}

/* Manual novo em padrão escuro */
.page-manual-modern .manual-nav-current{
  background:#10261D !important;
  border:1px solid rgba(255,255,255,.09) !important;
  border-radius:16px;
  margin-bottom:12px;
}
.page-manual-modern .manual-nav-current .manual-chapter-head{
  background:#10261D !important;
}


/* ==========================================================
   FASE 8 — Início, notificações, jornada e consistência visual
   ========================================================== */

/* Barra inferior */
.bottom-nav .nav-btn .nav-label{color:inherit}

/* Ações do cabeçalho da Home */
.home-header-actions{display:flex;align-items:center;gap:8px}
.home-notification-btn{
  position:relative;width:46px;height:46px;border-radius:15px;
  display:grid;place-items:center;padding:0;
  background:#102A20;border:1px solid rgba(255,255,255,.09);color:#E3E7E5;
}
.home-notification-btn svg{
  width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
}
.notification-badge{
  position:absolute;right:-3px;top:-4px;min-width:18px;height:18px;padding:0 4px;
  border-radius:999px;background:#22E38E;color:#052017;font:800 10px/1 'Inter',sans-serif;
  place-items:center;border:2px solid #071510;
}

/* Central de notificações */
.notification-center-overlay{
  display:none;position:fixed;inset:0;z-index:10020;
  background:rgba(0,0,0,.58);align-items:flex-start;justify-content:center;padding:78px 14px 90px;
}
.notification-center-overlay.open{display:flex}
.notification-center-sheet{
  width:min(100%,480px);max-height:72vh;overflow:auto;padding:16px;
  border-radius:22px;background:#091C14;border:1px solid rgba(255,255,255,.09);
  box-shadow:0 28px 70px rgba(0,0,0,.42);
}
.notification-center-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.notification-center-head small{display:block;color:#22E38E;font-size:8px;font-weight:800;letter-spacing:.12em}
.notification-center-head strong{display:block;color:#F4FAF6;font-family:'Sora',sans-serif;font-size:18px;margin-top:2px}
.notification-center-head button{
  width:34px;height:34px;border-radius:11px;background:#102A20;border:1px solid rgba(255,255,255,.08);
  color:#CBD2CF;font-size:22px;
}
.notification-center-sheet .maint-alert{
  background:#102A20!important;border:1px solid rgba(255,255,255,.08)!important;
  color:#E7F0EB!important;margin:8px 0!important;
}
.notification-center-sheet .maint-alert.overdue{border-color:rgba(255,112,112,.20)!important}
.notification-challenge-card{
  width:100%;display:flex;align-items:center;gap:10px;text-align:left;padding:13px;margin-bottom:8px;
  background:linear-gradient(135deg,rgba(230,197,106,.08),#10261D);
  border:1px solid rgba(230,197,106,.14);border-radius:16px;color:#F4FAF6;
}
.notification-challenge-card>span:first-child{font-size:22px}
.notification-challenge-card>span:nth-child(2){flex:1;min-width:0}
.notification-challenge-card small{display:block;color:#E6C56A;font-size:8px;font-weight:800;letter-spacing:.1em}
.notification-challenge-card strong{display:block;font-size:12.5px;margin-top:2px;color:#F4FAF6}
.notification-challenge-card em{display:block;font-style:normal;font-size:10px;color:#9FB4A9;margin-top:2px}
.notification-challenge-card b{color:#E6C56A;font-size:22px}
.notification-empty{text-align:center;padding:20px 10px;color:#7F958A;font-size:12px}

/* Jornada agora é ação principal na Home */
.home-smart-card.home-journey-card{
  background:linear-gradient(135deg,rgba(34,227,142,.09),#0D2119 58%);
  border-color:rgba(34,227,142,.15);
}
.home-smart-icon.journey{background:rgba(34,227,142,.12)!important;color:#22E38E!important}

/* Desafio da pontuação em destaque dentro de Metas */
.metas-challenge-spotlight{
  align-items:center;gap:11px;padding:14px;margin:0 0 12px;border-radius:18px;
  background:linear-gradient(135deg,rgba(230,197,106,.09),#10261D);
  border:1px solid rgba(230,197,106,.15);
}
.metas-challenge-icon{
  width:40px;height:40px;border-radius:13px;display:grid;place-items:center;flex:none;
  background:rgba(230,197,106,.10);color:#E6C56A;font-size:20px;
}
.metas-challenge-copy{flex:1;min-width:0}
.metas-challenge-copy small{display:block;color:#E6C56A;font-size:8px;font-weight:800;letter-spacing:.1em}
.metas-challenge-copy strong{display:block;color:#F4FAF6;font-family:'Sora',sans-serif;font-size:12.5px;margin-top:2px}
.metas-challenge-copy span{display:block;color:#9FB4A9;font-size:10px;margin-top:2px}
.metas-challenge-spotlight button{
  border:none;border-radius:999px;background:#E6C56A;color:#211B08;padding:8px 11px;font-weight:800;font-size:10.5px;
}

/* Não usar botões brancos nas páginas internas */
.page-dark-modern .tool-btn,
.page-dark-modern .maint-chip-btn,
.page-dark-modern .work-goal-sugg,
.page-dark-modern .notes-agenda-btn,
.page-dark-modern .history-toggle:not(.challenge-accept),
.page-dark-modern button.cat-btn{
  background:#102A20!important;
  color:#EAF2EE!important;
  border:1px solid rgba(255,255,255,.10)!important;
  box-shadow:none!important;
}
.page-dark-modern .tool-btn:hover,
.page-dark-modern .maint-chip-btn:hover{background:#143428!important}
.page-dark-modern .maint-chip-btn.filled{color:#22E38E!important;border-color:rgba(34,227,142,.18)!important}
.page-metas-modern #addRecorrenteBtn{color:#F4FAF6!important}
.page-metas-modern #addRecorrenteBtn svg{color:#22E38E!important}

/* Datas/linhas de desempenho por dia visíveis */
.page-veiculo-modern .km-history-detail,
.page-veiculo-modern .km-history-detail *,
.page-veiculo-modern .day-detail,
.page-veiculo-modern .day-detail *,
.page-veiculo-modern .week-detail,
.page-veiculo-modern .week-detail *{
  color:#E3E7E5!important;
}
.page-veiculo-modern .km-history-detail b,
.page-veiculo-modern .day-detail b{color:#F4FAF6!important}

/* Manutenção: deixa claro que existe conteúdo expansível */
.maint-expand-hint{
  display:flex;align-items:center;justify-content:flex-end;gap:6px;
  margin:-1px 4px 5px auto;width:max-content;cursor:pointer;
  color:#22E38E;font-size:10px;font-weight:700;
}
.maint-expand-hint b{font-size:12px;color:#22E38E}
.maint-feito-submenu{
  background:#0D261D!important;border:1px solid rgba(34,227,142,.11)!important;
  color:#BFD0C7!important;border-radius:10px;padding:7px 9px!important;
}

/* Conquistas: recordes vivos em verde; conquista principal do meio em dourado */
.page-desafios-modern .achievement-card.unlocked .achievement-detail,
.page-desafios-modern .achievement-card.unlocked .achievement-month-detail{
  color:#22E38E!important;
}
.page-desafios-modern .achievements-grid .achievement-card:nth-child(2).unlocked{
  border-color:rgba(230,197,106,.24)!important;
  background:linear-gradient(145deg,rgba(230,197,106,.08),#10261D)!important;
}
.page-desafios-modern .achievements-grid .achievement-card:nth-child(2).unlocked .achievement-detail,
.page-desafios-modern .achievements-grid .achievement-card:nth-child(2).unlocked .achievement-month-detail{
  color:#E6C56A!important;
}

/* Salvamento automático */
.autosave-status{color:#8FA79B!important;font-size:11px!important;text-align:center}


/* Jornada ativa — indicador visual de movimento */
.page-home-modern .home-journey-motion{
  margin:2px 0 11px;
  padding:0 2px;
}
.page-home-modern .home-journey-road{
  position:relative;
  height:38px;
  overflow:hidden;
  border-radius:13px;
  background:linear-gradient(180deg,#18362B 0 20%,#26372F 20% 80%,#18362B 80% 100%);
  border:1px solid rgba(255,255,255,.07);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}
.page-home-modern .home-journey-road::before,
.page-home-modern .home-journey-road::after{
  content:'';position:absolute;left:0;right:0;height:1px;background:rgba(98,236,170,.18);
}
.page-home-modern .home-journey-road::before{top:7px}
.page-home-modern .home-journey-road::after{bottom:7px}
.page-home-modern .home-journey-road-line{
  position:absolute;left:-30px;right:-30px;top:50%;height:2px;transform:translateY(-50%);
  background:repeating-linear-gradient(90deg,rgba(230,197,106,.85) 0 15px,transparent 15px 29px);
  animation:journeyRoadFlow 1.15s linear infinite;
  opacity:.62;
}
.page-home-modern .home-journey-moving-car{
  position:absolute;left:7%;top:3px;width:50px;height:29px;z-index:2;
  filter:drop-shadow(0 5px 5px rgba(0,0,0,.34));
  animation:journeyCarCruise 3.3s ease-in-out infinite alternate;
}
.page-home-modern .home-journey-moving-car svg{width:100%;height:100%;overflow:visible}
.page-home-modern .home-journey-moving-car svg>path:first-child{fill:#22E38E;stroke:#A9F8D2;stroke-width:1}
.page-home-modern .home-journey-moving-car .car-window{fill:#0B2118;opacity:.9}
.page-home-modern .home-journey-moving-car .car-wheel{fill:#09130F;stroke:#587065;stroke-width:1}
.page-home-modern .home-journey-moving-car .car-hub{fill:#A7B8AF}
@keyframes journeyCarCruise{
  0%{left:7%;transform:translateY(0)}
  45%{transform:translateY(-.5px)}
  100%{left:calc(100% - 58px);transform:translateY(0)}
}
@keyframes journeyRoadFlow{to{transform:translate(29px,-50%)}}
@media (prefers-reduced-motion:reduce){
  .page-home-modern .home-journey-moving-car,
  .page-home-modern .home-journey-road-line{animation:none!important}
  .page-home-modern .home-journey-moving-car{left:calc(50% - 25px)!important}
}

/* FASE 9 */
.page-home-modern .finance-journey-live-card{display:none;margin:9px 0 12px;background:linear-gradient(135deg,#123A2A,#0D271D);border:1px solid rgba(34,227,142,.20)}
.page-home-modern .finance-journey-live-card.active{display:block}
.page-financeiro-modern .finance-journey-live-card{display:none!important}

.page-metas-modern .metas-overview-grid + .metas-challenge-spotlight{margin-top:10px;margin-bottom:12px}

.page-veiculo-modern .journey-btn,
.page-veiculo-modern #journeyEndBtn,
.page-veiculo-modern button[onclick*="promptEndJourney"],
.page-veiculo-modern button[onclick*="endJourney"]{
  background:#22E38E!important;color:#052017!important;border:none!important;box-shadow:none!important;font-weight:800!important;
}

.maint-expand-row .legend-left{display:flex;align-items:center;gap:8px;flex:1}
.maint-row-chevron{margin-left:auto;color:#22E38E!important;font-size:13px}
.maint-expand-hint{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  width:100%!important;margin:6px 0 5px!important;padding:8px 10px!important;border-radius:10px!important;
  background:#0D261D!important;border:1px solid rgba(255,255,255,.08)!important;color:#AFC1B8!important;
  cursor:pointer!important;box-sizing:border-box!important;
}
.maint-expand-hint span{font-size:10px!important;font-weight:700!important}
.maint-expand-hint b{color:#22E38E!important;font-size:13px!important}
.maint-feito-submenu{margin:0 0 7px!important}


/* ==========================================================
   FASE 10 — ajustes pontuais de manutenção, recorrentes e jornada
   ========================================================== */

/* Manutenção: só a setinha indica expansão, sem frase duplicada */
.maint-expand-hint{display:none!important}
.maint-expand-row .legend-left{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  flex:1!important;
}
.maint-row-chevron{
  display:inline-block!important;
  margin-left:auto!important;
  color:#22E38E!important;
  font-size:14px!important;
  font-weight:800!important;
}

/* Despesas recorrentes: nenhum chip/botão branco */
.page-metas-modern .recurring-row,
.page-metas-modern .recurring-item{
  color:#F4FAF6!important;
}
.page-metas-modern .recurring-day,
.page-metas-modern .recurring-date,
.page-metas-modern .recurring-due,
.page-metas-modern .recurring-due-date,
.page-metas-modern .recurring-chip{
  background:#102A20!important;
  color:#E3E7E5!important;
  border:1px solid rgba(255,255,255,.10)!important;
  box-shadow:none!important;
}
.page-metas-modern .recurring-paid-btn,
.page-metas-modern button[onclick*="markRecurringPaid"],
.page-metas-modern button[onclick*="marcarRecorrentePago"],
.page-metas-modern button[onclick*="paguei"]{
  background:rgba(34,227,142,.11)!important;
  color:#22E38E!important;
  border:1px solid rgba(34,227,142,.18)!important;
  box-shadow:none!important;
  font-weight:800!important;
}
.page-metas-modern .recurring-amount,
.page-metas-modern .recurring-value,
.page-metas-modern .recorrente-valor{
  color:#FFFFFF!important;
  opacity:1!important;
}
.page-metas-modern .recurring-paid,
.page-metas-modern .recurring-status-paid{
  color:#22E38E!important;
}

/* Jornada ativa: evita dupla sensação de estado no Início */
.page-home-modern #homeJourneyKicker{
  color:#22E38E!important;
}
.page-home-modern #homeJourneyTitle{
  color:#F4FAF6!important;
}


/* ==========================================================
   FASE 11 — Tutorial e Manual 100% atualizados
   ========================================================== */
.onboarding-icon svg{
  width:58px;height:58px;fill:none;stroke:#22E38E;stroke-width:1.65;
  stroke-linecap:round;stroke-linejoin:round;
}
.onboarding-icon img{max-width:112px;max-height:112px;object-fit:contain}
.page-manual-modern .manual-intro{
  padding:14px 15px!important;
  border-radius:16px!important;
  background:#10261D!important;
  border:1px solid rgba(255,255,255,.09)!important;
  color:#B7C8BF!important;
  line-height:1.55!important;
  margin-bottom:12px!important;
}
.page-manual-modern .manual-intro b{color:#F4FAF6!important}
.page-manual-modern .manual-chapter{
  margin-bottom:9px!important;
  overflow:hidden!important;
  border-radius:16px!important;
  background:#10261D!important;
  border:1px solid rgba(255,255,255,.08)!important;
}
.page-manual-modern .manual-chapter-head{
  width:100%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:14px 15px!important;
  border:0!important;
  background:#10261D!important;
  color:#F4FAF6!important;
  font-family:'Sora',sans-serif!important;
  font-size:13px!important;
  font-weight:700!important;
  text-align:left!important;
}
.page-manual-modern .manual-chapter-body{
  display:none;
  padding:0 15px 15px!important;
  background:#10261D!important;
}
.page-manual-modern .manual-chapter.open .manual-chapter-body{display:block!important}
.page-manual-modern .manual-chapter-body p{
  margin:9px 0!important;
  color:#AFC1B8!important;
  font-size:12px!important;
  line-height:1.55!important;
}
.page-manual-modern .manual-chapter-body b{color:#F4FAF6!important}
.page-manual-modern .manual-chevron{
  color:#22E38E!important;
  font-size:20px!important;
  transition:transform .18s ease;
}
.page-manual-modern .manual-chapter.open .manual-chevron{transform:rotate(90deg)}
.page-manual-modern .manual-tip{
  background:rgba(34,227,142,.07)!important;
  border:1px solid rgba(34,227,142,.13)!important;
  color:#BFD0C7!important;
  border-radius:13px!important;
  padding:11px 12px!important;
  margin:10px 0!important;
  font-size:11.5px!important;
  line-height:1.5!important;
}
.page-manual-modern .manual-tip b{color:#22E38E!important}
.page-manual-modern .manual-final-tip{
  margin-top:14px!important;
  background:linear-gradient(135deg,rgba(230,197,106,.08),#10261D)!important;
  border-color:rgba(230,197,106,.14)!important;
}
.page-manual-modern .manual-final-tip b{color:#E6C56A!important}


/* ==========================================================
   FASE 12 — Jornada, recorrentes e documentação final
   ========================================================== */

/* Histórico "ver desempenho por dia" */
.page-veiculo-modern #kmHistoryPanel .km-history-row{
  background:#0D261D !important;
  border-color:rgba(255,255,255,.09) !important;
}
.page-veiculo-modern #kmHistoryPanel .km-history-date{
  color:#F4FAF6 !important;
  opacity:1 !important;
  font-weight:800 !important;
}
.page-veiculo-modern #kmHistoryPanel .km-history-stat{
  color:#CBD2CF !important;
  opacity:1 !important;
}
.page-veiculo-modern #kmHistoryPanel .km-history-detail,
.page-veiculo-modern #kmHistoryPanel .km-history-detail span{
  color:#B9CBC1 !important;
}
.page-veiculo-modern #kmHistoryPanel .km-history-detail b{
  color:#F4FAF6 !important;
}

/* Despesas recorrentes — classes reais do componente */
.page-metas-modern #recorrentesList .recorrente-day-badge{
  background:#102A20 !important;
  color:#DDEAE3 !important;
  border:1px solid rgba(255,255,255,.10) !important;
  box-shadow:none !important;
}
.page-metas-modern #recorrentesList .legend-amount{
  color:#FFFFFF !important;
  opacity:1 !important;
  font-weight:700 !important;
}
.page-metas-modern #recorrentesList .tool-btn{
  background:rgba(34,227,142,.10) !important;
  color:#22E38E !important;
  border:1px solid rgba(34,227,142,.18) !important;
  box-shadow:none !important;
}
.page-metas-modern #recorrentesList .budget-text{
  color:#E3E7E5 !important;
}
.page-metas-modern #recorrentesList .budget-text.over{
  color:#FF8F89 !important;
}
.page-metas-modern #recorrentesList .budget-text.reached{
  color:#22E38E !important;
}

/* ==========================================================
   FASE 13 — desafios, carta, notificações e edição de jornada
   ========================================================== */

/* Home: cabeçalho em grade para a Frase do Dia ocupar toda a largura útil */
.page-home-modern .home-modern-header{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:start;
  gap:12px 10px;
}
.page-home-modern .home-greeting-block{grid-column:1;min-width:0}
.page-home-modern .home-header-actions{grid-column:2;grid-row:1;align-self:start}
.page-home-modern .home-daily-message-featured{
  grid-column:1 / -1;
  width:100% !important;
  margin-top:0 !important;
  min-height:58px;
}
.page-home-modern .home-daily-message-featured strong{font-size:11.5px;line-height:1.45}

/* Carta de evolução: alto contraste no tema escuro */
.page-dark-modern .carta-evolucao,
.page-profile-modern .carta-evolucao{
  color:#E3E7E5 !important;
}
.page-dark-modern .carta-evolucao p,
.page-profile-modern .carta-evolucao p{
  color:#E3E7E5 !important;
  opacity:1 !important;
}
.page-dark-modern .carta-evolucao .carta-titulo,
.page-profile-modern .carta-evolucao .carta-titulo{
  color:#F7FBF9 !important;
}
.page-dark-modern .carta-evolucao b,
.page-profile-modern .carta-evolucao b{
  color:#7AF0B7 !important;
}
.page-dark-modern .carta-evolucao .carta-economia,
.page-profile-modern .carta-evolucao .carta-economia{
  color:#5DEAA8 !important;
}
.page-dark-modern .carta-fechamento,
.page-profile-modern .carta-fechamento{
  color:#CBD2CF !important;
  border-top-color:rgba(255,255,255,.16) !important;
}

/* Central de notificações */
.notification-head-actions{display:flex;align-items:center;gap:7px}
.notification-center-head .notification-read-all{
  width:auto;height:32px;padding:0 10px;border-radius:10px;
  font-size:9px;font-weight:800;line-height:1.1;
  background:rgba(34,227,142,.10);color:#22E38E;border:1px solid rgba(34,227,142,.20);
}
.notification-center-head .notification-close-btn{width:34px;height:34px;padding:0}
.notification-center-sheet [data-notification-key]{position:relative;padding-bottom:42px!important}
.notification-read-btn{
  position:absolute;right:10px;bottom:9px;z-index:3;
  width:auto!important;height:26px!important;padding:0 9px!important;border-radius:999px!important;
  background:rgba(34,227,142,.10)!important;color:#22E38E!important;
  border:1px solid rgba(34,227,142,.20)!important;
  font:800 9px/1 'Inter',sans-serif!important;
}
.notification-read-btn:disabled{color:#8FA79B!important;background:rgba(255,255,255,.04)!important;border-color:rgba(255,255,255,.08)!important}
.notification-read{opacity:.68}
.notification-read::after{
  content:'LIDA';position:absolute;left:12px;bottom:14px;color:#8FA79B;font:800 8px/1 'Inter',sans-serif;letter-spacing:.08em;
}
.notification-center-sheet .maint-alert .notification-read-btn{right:10px;bottom:9px}
.notification-center-sheet .maint-alert>button:not(.notification-read-btn){top:9px;right:8px;position:absolute}

/* Modais de recurso */
.app-feature-modal{
  position:fixed;inset:0;z-index:10030;background:rgba(0,0,0,.68);
  align-items:center;justify-content:center;padding:max(18px,env(safe-area-inset-top)) 12px max(18px,env(safe-area-inset-bottom));
}
.challenge-progress-sheet,.journey-edit-sheet{
  width:min(100%,520px);max-height:86vh;overflow:auto;
  background:#091C14!important;border:1px solid rgba(255,255,255,.10)!important;
  border-radius:22px!important;padding:18px!important;
  box-shadow:0 28px 70px rgba(0,0,0,.48)!important;
}
.feature-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.feature-modal-head small{display:block;color:#E6C56A;font-size:8px;font-weight:800;letter-spacing:.12em}
.feature-modal-head strong{display:block;color:#F7FBF9;font:800 20px/1.15 'Sora',sans-serif;margin-top:3px}
.feature-modal-head>button{width:36px;height:36px;border-radius:12px;background:#102A20;border:1px solid rgba(255,255,255,.09);color:#CBD2CF;font-size:22px}
.challenge-progress-objective{padding:15px;border-radius:17px;background:linear-gradient(135deg,rgba(230,197,106,.10),#10261D);border:1px solid rgba(230,197,106,.16)}
.challenge-progress-objective small,.challenge-progress-details>small{display:block;color:#E6C56A;font-size:8px;font-weight:800;letter-spacing:.11em;margin-bottom:5px}
.challenge-progress-objective strong{display:block;color:#F7FBF9;font:750 15px/1.4 'Sora',sans-serif}
.challenge-progress-meta{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}
.challenge-progress-meta span{padding:12px;border-radius:14px;background:#102A20;border:1px solid rgba(255,255,255,.08)}
.challenge-progress-meta small{display:block;color:#8FA79B;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.challenge-progress-meta b{display:block;color:#EAF2EE;font-size:11px;margin-top:3px}
.challenge-progress-score{display:flex;align-items:end;justify-content:space-between;margin:15px 0 7px;color:#F7FBF9}
.challenge-progress-score small{display:block;color:#9FB4A9;font-size:8px;font-weight:800;letter-spacing:.1em}
.challenge-progress-score strong{display:block;font:800 16px 'Sora',sans-serif;margin-top:2px}
.challenge-progress-score>b{color:#22E38E;font-size:18px}
.challenge-progress-track{height:10px;border-radius:999px;background:#173126;overflow:hidden}
.challenge-progress-track span{display:block;height:100%;border-radius:inherit;background:#22E38E}
.challenge-progress-remaining{margin-top:10px;color:#CBD2CF;font-size:12px;line-height:1.5}
.challenge-progress-remaining b{color:#F7FBF9}
.challenge-progress-details{margin-top:14px;padding:13px;border-radius:15px;background:#0D261D;border:1px solid rgba(255,255,255,.08)}
.challenge-progress-line{color:#E3E7E5;font-size:11.5px;line-height:1.5;margin-top:5px}
.challenge-progress-reward{margin-top:13px;padding:12px;border-radius:14px;background:rgba(230,197,106,.08);color:#E3E7E5;font-size:12px}
.challenge-progress-reward b{color:#E6C56A}

/* Edição de jornada encerrada */
.journey-period-with-edit,.km-history-period-item{display:flex;align-items:center;justify-content:space-between;gap:8px}
.journey-period-with-edit>span,.km-history-period-item>span{min-width:0;flex:1}
.journey-edit-inline{
  flex:none;border:1px solid rgba(34,227,142,.22)!important;background:rgba(34,227,142,.08)!important;
  color:#22E38E!important;border-radius:999px!important;padding:4px 8px!important;font:800 9px/1 'Inter',sans-serif!important;
}
.km-history-periods{margin-top:10px;padding-top:8px;border-top:1px solid rgba(255,255,255,.08);display:flex;flex-direction:column;gap:8px}
.km-history-period-item{color:#B9CBC1;font-size:11px}
.journey-edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.journey-edit-grid label{display:block;color:#AFC2B8;font-size:10px;font-weight:700}
.journey-edit-grid input{
  width:100%;margin-top:5px;padding:11px 10px;border-radius:12px;
  background:#0D261D!important;color:#F7FBF9!important;border:1px solid rgba(255,255,255,.10)!important;
  font-size:14px;
}
.journey-edit-note{margin:12px 0;color:#9FB4A9;font-size:11px;line-height:1.45}
.journey-edit-actions{display:grid;grid-template-columns:1fr 1.35fr;gap:9px;margin-top:12px}.journey-edit-save{width:100%;padding:13px;border:none;border-radius:14px;background:#22E38E;color:#04160E;font-weight:900;font-size:13px}.journey-edit-delete{width:100%;padding:13px;border:1px solid rgba(255,95,95,.28);border-radius:14px;background:rgba(255,95,95,.08);color:#FF8B85;font-weight:850;font-size:12px}.journey-day-toggle{width:100%;border:0;background:none;padding:7px 0;display:flex;align-items:center;justify-content:space-between;color:#E3E7E5;cursor:pointer;text-align:left}.journey-day-toggle span{font-size:11px;color:#B9CBC1}.journey-day-toggle b{font-size:10px;color:#22E38E}.journey-day-periods{display:none;margin-top:2px;padding-top:8px;border-top:1px dashed rgba(255,255,255,.08)}.journey-day-periods.open{display:block}@media(max-width:380px){.journey-edit-actions{grid-template-columns:1fr}.journey-edit-delete{order:2}}

/* Fase 14 — ícone padrão de visibilidade do saldo */
.eye-toggle{display:grid!important;place-items:center!important}
.eye-toggle svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}

/* Fase 14 — Financeiro: data e quantidade em duas linhas */
.day-group-date-stack{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0;flex:1}
.day-group-date-stack .day-group-date,.day-group-date-stack .day-group-count{display:block;line-height:1.2}
.day-group-date-stack .day-group-count{flex:none!important;font-size:11px!important}
.day-group-head .day-group-saldo{flex:none;margin-left:6px;text-align:right;font-size:12px}
@media (max-width:380px){.day-group-head{gap:6px!important;padding-left:10px!important;padding-right:10px!important}.day-group-head .day-group-saldo{font-size:11px}.day-group-date-stack .day-group-count{font-size:10.5px!important}}

/* Fase 14 — Conquistas: título branco, recorde dourado, recorde do mês verde */
.page-desafios-modern .achievement-title{color:#F4FAF6!important}
.page-desafios-modern .achievement-card.unlocked .achievement-detail{color:#E6C56A!important;font-weight:700}
.page-desafios-modern .achievement-card.unlocked .achievement-month-detail:not(.achievement-month-empty){color:#22E38E!important;font-weight:700}
.page-desafios-modern .achievement-month-detail{border-top-color:rgba(255,255,255,.10)!important}

/* FASE 15 — hierarquia do Início */
.page-home-modern .home-period-toolbar{margin-top:8px;margin-bottom:4px;justify-content:center}
.page-home-modern .today-date-label{text-align:center;margin:2px 0 10px}
.page-home-modern .home-daily-message-featured{margin:0 0 14px;width:100%}
.home-saved-months-toggle{width:100%;margin:0 0 8px;padding:11px 14px;border-radius:14px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);color:#CBD2CF;display:flex;align-items:center;justify-content:space-between;font:700 11px 'Inter',sans-serif}
.home-saved-months-toggle .home-saved-months-chevron{font-size:17px;transition:transform .2s ease}
.home-saved-months-toggle[aria-expanded="true"] .home-saved-months-chevron{transform:rotate(180deg)}
.home-history-inline{margin:0 0 14px}
.home-journey-vehicle-link{display:inline-flex!important;width:auto!important;align-items:center;gap:5px;margin-top:8px;padding:0!important;border:0!important;background:none!important;color:#22E38E!important;font:750 11px 'Inter',sans-serif!important;text-align:left}
.home-journey-vehicle-link span{font-size:16px;line-height:1}

/* Fase 16 — hierarquia do topo e atalho do veículo */
.page-home-modern .topbar-veiculo-badge{
  width:auto;
  min-width:0;
  height:34px;
  padding:0 10px 0 11px;
  border-radius:10px;
  gap:5px;
  font:750 11px 'Inter',sans-serif;
  white-space:nowrap;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.page-home-modern .topbar-veiculo-badge span{font-size:16px;line-height:1}
.page-home-modern .home-daily-message-featured{margin-bottom:14px}
.page-home-modern .home-section-head{margin-top:2px}

/* Fase 17 — Início sempre no presente; meses anteriores somente pelo histórico */
.historical-month-banner{
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:10px 0 14px;
  padding:11px 13px;
  border:1px solid rgba(123,92,250,.26);
  border-radius:14px;
  background:rgba(123,92,250,.10);
  color:var(--ink-soft);
  font-size:12.5px;
}
.historical-month-banner strong{color:var(--ink);font-weight:800;}
.historical-month-banner button{
  width:auto;
  border:0;
  border-radius:10px;
  padding:8px 10px;
  background:var(--green-soft);
  color:var(--green-deep);
  font:700 12px 'Inter',sans-serif;
  cursor:pointer;
  white-space:nowrap;
}

/* FASE 18 — contraste de mês histórico e verdes financeiros mais vivos */
.historical-month-banner strong{
  color:#FFFFFF !important;
}
.page-financeiro-modern .row .amount.in,
.page-dark-modern .row .amount.in{
  color:#22E38E !important;
  font-weight:800;
}
.page-home-modern .history-row .h-balance,
.page-dark-modern .history-row .h-balance{
  font-weight:800;
}

/* Fase 20 — legibilidade e cores de ação */
/* Jornadas de hoje no mesmo padrão de leitura do restante do app */
.journey-day-toggle span{font-size:13.5px!important;color:#E3E7E5!important;font-weight:650!important}
.journey-day-toggle b{font-size:13px!important;color:#22E38E!important;font-weight:750!important}

/* Meu veículo: ações de edição em lilás mais vivo */
.page-veiculo-modern .budget-edit,
.page-veiculo-modern button[class*="edit"],
.page-veiculo-modern [class*="edit-btn"],
.page-veiculo-modern [class*="edit-link"]{color:#C7B8FF!important}

/* Login: links de apoio com contraste mais vivo */
#loginBox button[onclick="mostrarReset()"]{color:#C7B8FF!important}
#loginBox .auth-link-row button[onclick="mostrarCadastro()"]{color:#22E38E!important}

/* FASE 21 — varredura de contraste em páginas escuras e lançamentos */
/* Descrição do lançamento (ex.: Uber) sempre legível no Financeiro. */
.page-financeiro-modern #ledger .row .desc,
.page-dark-modern #ledger .row .desc{
  color:#F4FAF6 !important;
  font-weight:600;
}

/* Textos auxiliares dos lançamentos mantêm contraste sem competir com a descrição. */
.page-financeiro-modern #ledger .row .date,
.page-financeiro-modern #ledger .row .running,
.page-dark-modern #ledger .row .date,
.page-dark-modern #ledger .row .running{
  color:#CBD2CF !important;
}

/* Lilás funcional em fundo escuro: usar tom claro/vivo em vez do roxo profundo. */
.page-dark-modern .budget-edit,
.page-dark-modern .day-summary-cta,
.page-dark-modern .note-edit,
.page-dark-modern .note-edit-btn,
.page-dark-modern .note-reminder-badge,
.page-dark-modern .agenda-day.today,
.page-dark-modern .maint-alert.agenda,
.page-dark-modern .maint-chip-btn.active,
.page-dark-modern .achievement-month-detail:not(.achievement-month-empty){
  color:#C7B8FF !important;
}

/* Corrige estilos inline antigos que ainda usam tokens pensados para fundo claro. */
.page-dark-modern [style*="color:var(--accent-deep)"],
.page-dark-modern [style*="color: var(--accent-deep)"],
.page-dark-modern [style*="color:var(--accent)"],
.page-dark-modern [style*="color: var(--accent)"]{
  color:#C7B8FF !important;
}
.page-dark-modern [style*="color:var(--ink)"],
.page-dark-modern [style*="color: var(--ink)"]{
  color:#F4FAF6 !important;
}
.page-dark-modern [style*="color:var(--ink-soft)"],
.page-dark-modern [style*="color: var(--ink-soft)"]{
  color:#CBD2CF !important;
}
.page-dark-modern [style*="color:var(--ink-faint)"],
.page-dark-modern [style*="color: var(--ink-faint)"]{
  color:#93A99E !important;
}

/* Verdes associados a entradas/resultado positivo ficam vivos e consistentes. */
.page-financeiro-modern .form-box.income h3,
.page-financeiro-modern .row .amount.in,
.page-dark-modern .row .amount.in,
.page-financeiro-modern .day-group-saldo.positive,
.page-dark-modern .day-group-saldo.positive,
.page-home-modern .history-row .h-balance.positive,
.page-dark-modern .history-row .h-balance.positive{
  color:#22E38E !important;
}

/* FASE 24 — somente o selo/categoria Uber no lançamento recebe fundo preto.
   A descrição do lançamento continua igual às demais. */
.page-financeiro-modern #ledger .row .tag.uber-category-tag,
.page-dark-modern #ledger .row .tag.uber-category-tag{
  background:#050505 !important;
  color:#FFFFFF !important;
  border:1px solid rgba(255,255,255,.18);
  font-weight:700;
  position:relative;
  z-index:2;
}

/* FASE 25 — editor de Notas & Agenda no padrão escuro do app */
.page-notas-modern #noteTitleInput{
  background:transparent !important;
  color:#F4FAF6 !important;
  border:0 !important;
  border-bottom:2px solid rgba(255,255,255,.12) !important;
  caret-color:#22E38E;
}
.page-notas-modern #noteTitleInput::placeholder{
  color:#8FA79B !important;
  opacity:1;
}
.page-notas-modern #noteTitleInput:focus{
  background:transparent !important;
  color:#FFFFFF !important;
  border-bottom-color:#C7B8FF !important;
  outline:none !important;
}
.page-notas-modern #noteContentInput{
  background:#0D261D !important;
  color:#F4FAF6 !important;
  border:1px solid rgba(255,255,255,.10) !important;
  box-shadow:none !important;
  caret-color:#22E38E;
}
.page-notas-modern #noteContentInput::placeholder{
  color:#8FA79B !important;
  opacity:1;
}
.page-notas-modern #noteContentInput:focus{
  background:#0D261D !important;
  color:#FFFFFF !important;
  border-color:rgba(185,167,255,.55) !important;
  outline:none !important;
  box-shadow:0 0 0 2px rgba(185,167,255,.08) !important;
}
.page-notas-modern .note-time-field label{
  color:#CBD2CF !important;
}
.page-notas-modern .note-time-field input[type="time"]{
  background:#0D261D !important;
  color:#F4FAF6 !important;
  border:1px solid rgba(255,255,255,.10) !important;
  color-scheme:dark;
}
.page-notas-modern .note-time-field input[type="time"]:focus{
  border-color:rgba(185,167,255,.55) !important;
  outline:none !important;
}
.page-notas-modern .note-date-badge,
.page-notas-modern .note-time-display,
.page-notas-modern .note-allday-toggle{
  background:#102A20 !important;
  border-color:rgba(255,255,255,.10) !important;
  color:#DDEAE3 !important;
}
.page-notas-modern .note-allday-toggle.active{
  background:#B9A7FF !important;
  border-color:#C7B8FF !important;
  color:#07130D !important;
}
.page-notas-modern .note-title-view{
  color:#F4FAF6 !important;
}
.page-notas-modern .note-content-view{
  color:#E3E7E5 !important;
}
.page-notas-modern .note-saved{
  color:#8FA79B !important;
}


/* FASE 26 — calendário "Como foi seu dia?" no mesmo padrão visual da Agenda/Notas */
#diaCalendarView{background:var(--page-bg);color:var(--page-white);}
#diaCalendarView .note-back{background:#102A20;border-color:var(--page-line);color:var(--page-white);}
#diaCalendarView h3,#diaCalendarMonthLabel{color:var(--page-white)!important;}
#diaCalendarView .dia-cal-weekday{color:var(--page-muted);}
#diaCalendarView .dia-cal-cell{background:var(--page-surface);border:1px solid var(--page-line);color:var(--page-white);box-shadow:none;}
#diaCalendarView .dia-cal-cell.today{border-color:#22E38E;color:#22E38E;font-weight:700;}
#diaCalendarView .dia-cal-cell.lucro{background:rgba(34,227,142,.10);border-color:rgba(34,227,142,.28);color:#22E38E;}
#diaCalendarView .dia-cal-cell.prejuizo{background:rgba(255,139,133,.09);border-color:rgba(255,139,133,.22);color:#FF8B85;}
#diaCalendarView .dia-cal-legend{color:var(--page-muted);}
#diaCalendarView .dia-cal-dot{background:var(--page-surface);border-color:var(--page-line);}
#diaCalendarView .dia-cal-dot.lucro{background:#22E38E;border-color:#22E38E;}
#diaCalendarView .dia-cal-dot.prejuizo{background:#FF8B85;border-color:#FF8B85;}


/* ---------- Tela de autenticação sem conexão ---------- */
.auth-offline-view{
  min-height:56vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:34px 20px 28px;
}
.auth-offline-icon{
  width:116px;
  height:116px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:2px auto 18px;
  border-radius:30px;
  background:rgba(20,211,139,.08);
  border:1px solid rgba(76,226,163,.14);
  box-shadow:0 18px 42px rgba(0,0,0,.20);
}
.auth-offline-icon svg{
  width:72px;
  height:72px;
  fill:none;
  stroke:#d7e4de;
  stroke-width:4.2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.auth-offline-icon .auth-offline-dot{
  fill:#49dfa3;
  stroke:none;
}
.auth-offline-icon .auth-offline-slash{
  stroke:#49dfa3;
  stroke-width:5;
}
.auth-offline-view h2{
  margin:0 0 12px;
  font-family:'Sora',sans-serif;
  font-size:28px;
  line-height:1.15;
  font-weight:800;
  color:#fff;
}
.auth-offline-view p{
  max-width:370px;
  margin:0 auto 28px;
  font-size:16px;
  line-height:1.55;
  color:rgba(232,241,237,.72);
}
.auth-offline-view p strong{
  color:#fff;
  font-weight:700;
}
.auth-offline-retry{
  width:min(330px,100%);
  border:0;
  border-radius:999px;
  padding:15px 22px;
  background:linear-gradient(135deg,#19d37f,#0bb9ae);
  color:#fff;
  font-family:'Sora',sans-serif;
  font-size:16px;
  font-weight:800;
  box-shadow:0 14px 32px rgba(11,185,174,.22);
  cursor:pointer;
}
.auth-offline-retry:active{
  transform:scale(.985);
}
.auth-offline-retry span{
  display:inline-block;
  margin-right:8px;
  font-size:23px;
  line-height:0;
  vertical-align:-2px;
}
.auth-offline-status{
  min-height:22px;
  margin-top:14px;
  font-size:13.5px;
  color:#f1c17d;
}

/* Jornada — escolha entre GPS e hodômetro */
.journey-start-mode-backdrop{position:fixed;inset:0;z-index:12000;background:rgba(2,10,7,.72);display:flex;align-items:center;justify-content:center;padding:16px;backdrop-filter:blur(5px)}
.journey-start-mode-sheet{position:relative;width:min(100%,480px);background:#102A20;border:1px solid rgba(98,236,170,.22);border-radius:24px;padding:22px 16px 18px;box-shadow:0 24px 70px rgba(0,0,0,.45)}
.journey-start-mode-close{position:absolute;right:13px;top:13px;width:34px;height:34px;border:0;border-radius:50%;background:rgba(255,255,255,.07);color:#E3E7E5;font-size:15px;cursor:pointer}
.journey-start-mode-icon{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:rgba(34,227,142,.12);font-size:23px;margin-bottom:10px}
.journey-start-mode-sheet h3{margin:0;color:#F5FAF7;font:800 19px 'Sora',sans-serif}
.journey-start-mode-sheet>p{margin:7px 0 16px;color:#9FB5AA;font-size:12.5px;line-height:1.45}
.journey-mode-option{width:100%;display:grid;grid-template-columns:42px 1fr 18px;gap:10px;align-items:center;text-align:left;border-radius:17px;padding:13px 12px;margin:9px 0;background:#16382A;color:#F5FAF7;border:1px solid rgba(255,255,255,.08);cursor:pointer}
.journey-mode-option.gps{border-color:rgba(34,227,142,.35);background:linear-gradient(135deg,rgba(34,227,142,.13),rgba(22,56,42,.92))}
.journey-mode-option-icon{width:42px;height:42px;border-radius:13px;background:rgba(255,255,255,.07);display:grid;place-items:center;font-size:21px}
.journey-mode-option b{display:block;font:750 13px 'Sora',sans-serif;color:#F5FAF7;margin-bottom:3px}
.journey-mode-option small{display:block;color:#AFC2B8;font-size:10.5px;line-height:1.38;font-weight:500}
.journey-mode-option>strong{color:#22E38E;font-size:23px;font-weight:500}
.journey-gps-note{margin-top:12px;padding:10px 11px;border-radius:13px;background:rgba(255,255,255,.045);color:#91A99D;font-size:10.5px;line-height:1.42}
#journeyGpsLiveItem small{display:block;margin-top:2px;color:#22E38E;font-size:9px;line-height:1.2}
.journey-gps-active .km-log-row{opacity:.38;pointer-events:none}


/* Jornada rápida — popup direto na tela inicial */
.home-journey-start-sheet{padding-top:24px}
.home-journey-primary{width:100%;border:0;border-radius:16px;padding:15px 16px;background:linear-gradient(135deg,#22E38E,#13C98A);color:#082217;font:800 14px 'Sora',sans-serif;cursor:pointer;box-shadow:0 12px 28px rgba(34,227,142,.18)}
.home-journey-primary:active{transform:scale(.985)}
.home-journey-km-label{display:block;margin:4px 0 7px;color:#CFE1D8;font:700 11px 'Sora',sans-serif}
.home-journey-km-input{width:100%;box-sizing:border-box;border:1px solid rgba(98,236,170,.28);border-radius:15px;background:#0C2118;color:#fff;padding:14px 14px;margin-bottom:12px;font:700 18px 'Sora',sans-serif;outline:none}
.home-journey-km-input:focus{border-color:#22E38E;box-shadow:0 0 0 3px rgba(98,236,170,.10)}
.home-journey-km-input::placeholder{color:#6F8B7C;font-weight:500}
.home-journey-km-warn{margin:-2px 0 12px;padding:9px 10px;border-radius:11px;background:rgba(255,191,92,.10);color:#FFC76F;font-size:11px;line-height:1.35}


/* Jornada Home — horário manual, encerramento e status GPS */
.home-journey-time-choice{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 10px}
.home-journey-time-choice button{border:1px solid rgba(255,255,255,.09);border-radius:13px;padding:11px 10px;background:#153629;color:#AFC2B8;font:700 11px 'Sora',sans-serif;cursor:pointer}
.home-journey-time-choice button.active{background:rgba(34,227,142,.14);border-color:rgba(98,236,170,.48);color:#22E38E}
.home-journey-time-input{width:100%;box-sizing:border-box;border:1px solid rgba(98,236,170,.28);border-radius:15px;background:#0C2118;color:#fff;padding:13px 14px;margin:0 0 12px;font:700 17px 'Sora',sans-serif;outline:none;color-scheme:dark}
.home-journey-end-gps{grid-template-columns:1fr 1fr;gap:10px;margin:2px 0 14px}
.home-journey-end-gps>div{padding:12px;border-radius:14px;background:#0C2118;border:1px solid rgba(98,236,170,.13)}
.home-journey-end-gps span{display:block;color:#91A99D;font-size:10px;margin-bottom:4px}
.home-journey-end-gps b{display:block;color:#F5FAF7;font:750 14px 'Sora',sans-serif}
.home-journey-end-gps small{grid-column:1/-1;color:#8FA69A;font-size:10px;line-height:1.4}
.finance-journey-gps-signal{align-items:center;white-space:nowrap;border-radius:999px;padding:6px 9px;background:rgba(255,193,92,.10);color:#FFC76F;font:750 9px 'Sora',sans-serif}
.finance-journey-gps-signal.active{background:rgba(34,227,142,.11);color:#22E38E}

/* Financeiro — despesas recorrentes logo abaixo do resumo mensal */
.page-financeiro-modern > .section-title:has(+ .budget-card){ margin-top:2px; }
.page-financeiro-modern > .budget-card{ margin-bottom:14px; }

/* Financeiro — seletor de categorias de Entrada/Saída no padrão visual do app */
.page-financeiro-modern #incomeCatSelect,
.page-financeiro-modern #expenseCatSelect{
  background:#0D261D;
  color:#F5FAF7;
  border-color:rgba(255,255,255,.12);
  color-scheme:dark;
}
.page-financeiro-modern #incomeCatSelect option,
.page-financeiro-modern #expenseCatSelect option{
  background:#102A20;
  color:#F5FAF7;
}
.page-financeiro-modern #incomeCatSelect option:checked,
.page-financeiro-modern #expenseCatSelect option:checked{
  background:#16382A;
  color:#FFFFFF;
}


/* Metas — Desafios e Conquistas em destaque antes das metas */
.metas-evolution-links{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin:4px 0 16px;
}
.metas-evolution-card{
  width:100%;
  display:grid;
  grid-template-columns:46px minmax(0,1fr) auto;
  align-items:center;
  gap:11px;
  padding:13px 14px;
  border-radius:17px;
  border:1px solid rgba(34,227,142,.18);
  background:linear-gradient(135deg,rgba(34,227,142,.08),rgba(15,42,31,.94));
  color:#F4FAF6;
  text-align:left;
  cursor:pointer;
}
.metas-evolution-card.achievement{
  border-color:rgba(230,197,106,.20);
  background:linear-gradient(135deg,rgba(230,197,106,.07),rgba(15,42,31,.94));
}
.metas-evolution-card-icon{
  width:46px;height:46px;border-radius:14px;
  display:grid;place-items:center;
  background:rgba(255,255,255,.055);
  font-size:23px;
}
.metas-evolution-card-copy{min-width:0;display:flex;flex-direction:column;gap:2px}
.metas-evolution-card-copy strong{color:#22E38E;font:800 11px 'Sora',sans-serif;letter-spacing:.7px}
.metas-evolution-card.achievement .metas-evolution-card-copy strong{color:#E6C56A}
.metas-evolution-card-copy b{color:#F4FAF6;font:750 13px 'Sora',sans-serif;white-space:normal}
.metas-evolution-card-copy small{color:#93AA9E;font-size:10.5px;line-height:1.3}
.metas-evolution-card-action{color:#D9E7E0;font:700 10.5px 'Sora',sans-serif;white-space:nowrap}
.metas-evolution-card:active{transform:scale(.992)}

/* Metas do Dia: título no mesmo eixo esquerdo de Metas Fixas */
.page-metas-modern .modern-section-title{
  justify-content:flex-start!important;
  text-align:left!important;
}
.page-metas-modern .modern-section-title > span:last-child{
  text-align:left!important;
}

/* Conquistas: a linha inferior com calendário é sempre verde */
.page-desafios-modern .achievement-card.unlocked .achievement-month-detail,
.page-desafios-modern .achievements-grid .achievement-card:nth-child(2).unlocked .achievement-month-detail,
.page-desafios-modern .achievement-card.unlocked .achievement-month-detail:not(.achievement-month-empty){
  color:#22E38E!important;
  font-weight:700;
}

@media (max-width:380px){
  .metas-evolution-card{grid-template-columns:42px minmax(0,1fr);padding:12px}
  .metas-evolution-card-icon{width:42px;height:42px}
  .metas-evolution-card-action{grid-column:2;justify-self:start;margin-top:3px}
}

#pageConsultor select,#pageConsultor input,#pageConsultor textarea,#pageConsultor .form-control,#pageConsultor .input-modern,#pageConsultor .select-modern{background:#10281F!important;color:#F4FAF6!important;border-color:rgba(34,227,142,.20)!important}
#pageConsultor select option,#pageConsultor optgroup{background:#10281F!important;color:#F4FAF6!important}
#pageConsultor .dropdown-menu,#pageConsultor .select-options,#pageConsultor .custom-select-options,#pageConsultor [role="listbox"],#pageConsultor .category-options,#pageConsultor .source-options{background:#10281F!important;color:#F4FAF6!important;border:1px solid rgba(34,227,142,.20)!important;box-shadow:0 16px 34px rgba(0,0,0,.30)!important}
#pageConsultor [role="option"],#pageConsultor .dropdown-menu *,#pageConsultor .select-options *{color:#F4FAF6!important}
.recorrentes-toggle-row{display:flex;align-items:center;gap:6px;margin:12px 0 8px}.recorrentes-toggle-row>span{flex:none}.recorrentes-toggle{flex:1;display:grid;grid-template-columns:40px minmax(0,1fr) 26px;align-items:center;gap:9px;padding:11px 12px;border:1px solid rgba(34,227,142,.18);border-radius:15px;background:linear-gradient(135deg,rgba(34,227,142,.075),#10281F);color:#F4FAF6;text-align:left}.recorrentes-toggle-icon{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;color:#22E38E;background:rgba(34,227,142,.09);font-size:20px}.recorrentes-toggle-copy{min-width:0;display:flex;flex-direction:column;gap:2px}.recorrentes-toggle-copy strong{color:#F4FAF6;font:750 13px 'Sora',sans-serif}.recorrentes-toggle-copy small{color:#91A99D;font-size:10.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.recorrentes-toggle-chevron{color:#22E38E;font-size:21px;transition:transform .2s}.recorrentes-toggle.is-open .recorrentes-toggle-chevron{transform:rotate(180deg)}
#recorrentesExpandable .budget-card{background:#0F261D!important;border-color:rgba(34,227,142,.14)!important;color:#F4FAF6!important}
.home-journey-moving-car.journey-neon-car{width:72px!important;height:34px!important;filter:drop-shadow(0 0 4px rgba(34,227,142,.30))}.journey-neon-car svg{width:100%;height:100%;overflow:visible}.journey-neon-outline,.journey-neon-window,.journey-neon-detail,.journey-neon-light{fill:none;stroke:#62ECAA;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.journey-neon-outline{stroke-width:2}.journey-neon-window{stroke:rgba(174,255,218,.92);stroke-width:1.25}.journey-neon-detail{stroke:rgba(98,236,170,.70);stroke-width:1.15}.journey-neon-light{stroke:#E6C56A;stroke-width:2.2}.journey-neon-glow{filter:drop-shadow(0 0 2px rgba(34,227,142,.72));animation:journeyNeonPulse 2.6s ease-in-out infinite}.journey-neon-wheel{transform-box:fill-box;transform-origin:center;animation:journeyWheelSpin .85s linear infinite}.journey-wheel-outer{fill:#0B1712;stroke:#62ECAA;stroke-width:1.8}.journey-wheel-spoke{fill:none;stroke:rgba(210,255,233,.88);stroke-width:1.15;stroke-linecap:round}@keyframes journeyWheelSpin{to{transform:rotate(360deg)}}@keyframes journeyNeonPulse{0%,100%{opacity:.88}50%{opacity:1}}@media(prefers-reduced-motion:reduce){.journey-neon-wheel,.journey-neon-glow{animation:none!important}}


/* Financeiro — seletor de categorias próprio, no padrão do app */
.finance-category-modal{position:fixed;inset:0;z-index:2600;display:flex;align-items:center;justify-content:center;padding:22px;background:rgba(2,12,8,.72);backdrop-filter:blur(3px)}
.finance-category-sheet{width:min(92vw,430px);max-height:78vh;display:flex;flex-direction:column;overflow:hidden;border-radius:20px;background:#10281F;border:1px solid rgba(34,227,142,.20);box-shadow:0 24px 60px rgba(0,0,0,.48)}
.finance-category-head{display:flex;align-items:center;justify-content:space-between;padding:15px 16px;border-bottom:1px solid rgba(255,255,255,.07)}
.finance-category-head strong{color:#F4FAF6;font:750 15px 'Sora',sans-serif}.finance-category-head button{width:34px;height:34px;border:0;border-radius:10px;background:rgba(255,255,255,.055);color:#AFC1B8;font-size:17px}
.finance-category-list{overflow-y:auto;overscroll-behavior:contain;padding:4px 0}
.finance-category-option{width:100%;min-height:54px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 16px;border:0;border-bottom:1px solid rgba(255,255,255,.055);background:#10281F;color:#EDF5F1;text-align:left;font:600 15px 'Sora',sans-serif}
.finance-category-option:last-child{border-bottom:0}.finance-category-option:active{background:#163428}.finance-category-option i{width:21px;height:21px;flex:none;border-radius:50%;border:2px solid #80978C;position:relative}.finance-category-option.selected{background:rgba(34,227,142,.07)}.finance-category-option.selected i{border-color:#22E38E}.finance-category-option.selected i::after{content:'';position:absolute;inset:4px;border-radius:50%;background:#62ECAA}
#recorrentesExpandable .legend-amount{color:#E2ECE7!important;font-weight:700!important}
.page-home-modern .home-journey-moving-car.journey-neon-car{width:55px!important;height:26px!important;top:6px!important}
@keyframes journeyCarCruise{0%{left:7%;transform:translateY(0)}45%{transform:translateY(-.25px)}100%{left:calc(100% - 62px);transform:translateY(0)}}
@media (prefers-reduced-motion:reduce){.page-home-modern .home-journey-moving-car.journey-neon-car{left:calc(50% - 27.5px)!important;top:6px!important}}


/* Ajuste fino Jornada Ativa — carro mais alto e centralizado visualmente na pista */
.page-home-modern .home-journey-moving-car.journey-neon-car{
  top:2px!important;
}
@media (prefers-reduced-motion:reduce){
  .page-home-modern .home-journey-moving-car.journey-neon-car{
    top:2px!important;
  }
}

/* Nova categoria de Entrada — ícones no padrão escuro do app */
#newCatIconGrid button{
  background:#143126!important;
  color:#F4FAF6!important;
  border-color:rgba(98,236,170,.28)!important;
  box-shadow:none!important;
}
#newCatIconGrid button:active{
  background:#1A3C2E!important;
}

/* Metas — Desafio de Pontuação em primeiro lugar */
.metas-evolution-card.score-challenge{border-color:rgba(230,197,106,.30);background:linear-gradient(135deg,rgba(230,197,106,.11),rgba(15,42,31,.96));}
.metas-evolution-card.score-challenge .metas-evolution-card-icon{background:rgba(230,197,106,.10);}
.metas-evolution-card.score-challenge .metas-evolution-card-copy strong{color:#E6C56A;}

/* R$/km Inteligente — integrado à Jornada Ativa */
.smart-km-target{margin:14px 0 12px;padding:14px 14px 13px;border:1px solid rgba(230,197,106,.28);border-radius:16px;background:linear-gradient(135deg,rgba(230,197,106,.10),rgba(10,38,27,.92));text-align:left;box-shadow:inset 0 1px 0 rgba(255,255,255,.03)}
.smart-km-target-head{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#E8EDEB;font-size:11px;font-weight:800;letter-spacing:.055em}
.smart-km-info-btn{border:0;background:transparent;color:#E6C56A;font-size:19px;line-height:1;padding:2px 0 2px 8px;cursor:pointer}
.smart-km-target>strong{display:block;margin:7px 0 4px;color:#E6C56A;font-size:29px;line-height:1.05;font-weight:900;letter-spacing:-.035em}
.smart-km-target-stage{display:inline-flex;align-items:center;margin-top:3px;padding:4px 8px;border-radius:999px;background:rgba(255,255,255,.07);color:#DDE7E2;font-size:10.5px;font-weight:800}
.smart-km-target-stage.learning{color:#F2D887;background:rgba(230,197,106,.10)}
.smart-km-target-stage.personalizing{color:#AEE8CC;background:rgba(54,184,125,.11)}
.smart-km-target-stage.personalized{color:#E6C56A;background:rgba(230,197,106,.10)}
.smart-km-target p{margin:8px 0 0;color:#B9C8C1;font-size:11.5px;line-height:1.42}
.smart-km-info-backdrop{position:fixed;inset:0;z-index:10050;background:rgba(0,0,0,.70);display:flex;align-items:center;justify-content:center;padding:22px}
.smart-km-info-sheet{position:relative;width:min(100%,390px);border:1px solid rgba(230,197,106,.24);border-radius:22px;background:#0D2A1F;padding:24px 20px 20px;color:#E8EDEB;box-shadow:0 22px 60px rgba(0,0,0,.45);text-align:left}
.smart-km-info-close{position:absolute;right:13px;top:12px;border:0;background:transparent;color:#DDE7E2;font-size:20px;padding:5px;cursor:pointer}
.smart-km-info-icon{font-size:28px;margin-bottom:8px}.smart-km-info-sheet h3{margin:0 34px 14px 0;color:#E6C56A;font-size:21px}.smart-km-info-sheet p{margin:10px 0;color:#D3DED9;font-size:13px;line-height:1.5}.smart-km-info-sheet p b{color:#F2F5F3}.smart-km-info-note{color:#AFC0B8!important;font-size:11.5px!important}


/* FASE 27 — paleta semantica padrao e contraste total no tema escuro
   As cores abaixo sao a fonte oficial para TEXTO/IDENTIDADE.
   Tons de superficie/fundo podem variar para criar profundidade. */
:root{
  --mp-positive:#22E38E;
  --mp-negative:#FF8B85;
  --mp-text-light:#E3E7E5;
  --mp-text-muted:#CBD2CF;
  --mp-gold:#E6C56A;
  --mp-purple:#C7B8FF;
  --mp-orange:#FFB65C;
  --mp-blue:#79C6FF;
  --mp-teal:#63E5B4;
}

/* Nos perfis/telas escuras, tokens antigos passam a apontar para a mesma
   tonalidade oficial. Isso evita um verde/vermelho/lilas diferente em cada tela. */
.page-dark-modern,
.page-home-modern,
.page-financeiro-modern,
.page-veiculo-modern,
.page-metas-modern,
.page-desafios-modern,
.page-consultor-modern,
.page-notas-modern,
.page-manual-modern{
  --green:var(--mp-positive);
  --green-deep:var(--mp-positive);
  --red:var(--mp-negative);
  --red-deep:var(--mp-negative);
  --accent:var(--mp-purple);
  --accent-deep:var(--mp-purple);
}

/* Valores financeiros: uma unica cor positiva e uma unica cor negativa. */
.page-financeiro-modern #ledger .row .amount.in,
.page-dark-modern #ledger .row .amount.in,
.page-financeiro-modern .day-group-saldo.positive,
.page-dark-modern .day-group-saldo.positive{
  color:var(--mp-positive)!important;
}
.page-financeiro-modern #ledger .row .amount.out,
.page-dark-modern #ledger .row .amount.out,
.page-financeiro-modern .day-group-saldo.negative,
.page-dark-modern .day-group-saldo.negative,
.page-financeiro-modern .budget-reset,
.page-metas-modern .budget-reset{
  color:var(--mp-negative)!important;
}

/* Texto claro e texto auxiliar seguem somente duas intensidades oficiais. */
.page-financeiro-modern #ledger .row .desc,
.page-dark-modern #ledger .row .desc,
.journey-day-toggle span{
  color:var(--mp-text-light)!important;
}
.page-financeiro-modern #ledger .row .date,
.page-financeiro-modern #ledger .row .running,
.page-dark-modern #ledger .row .date,
.page-dark-modern #ledger .row .running{
  color:var(--mp-text-muted)!important;
}

/* Lilas funcional padronizado em todas as telas escuras. */
.page-dark-modern .budget-edit,
.page-dark-modern .day-summary-cta,
.page-dark-modern .note-edit,
.page-dark-modern .note-edit-btn,
.page-dark-modern .note-reminder-badge,
.page-dark-modern .agenda-day.today,
.page-dark-modern .maint-alert.agenda,
.page-dark-modern .maint-chip-btn.active,
.page-dark-modern .achievement-month-detail:not(.achievement-month-empty),
.page-veiculo-modern .budget-edit,
.page-veiculo-modern button[class*="edit"],
.page-veiculo-modern [class*="edit-btn"],
.page-veiculo-modern [class*="edit-link"],
#loginBox button[onclick="mostrarReset()"]{
  color:var(--mp-purple)!important;
}

/* Compatibilidade com estilos inline legados de fases antigas. */
.page-dark-modern [style*="color:#C93830"],
.page-dark-modern [style*="color: #C93830"],
.page-dark-modern [style*="color:#F0473F"],
.page-dark-modern [style*="color: #F0473F"],
.page-dark-modern [style*="color:#E76B66"],
.page-dark-modern [style*="color: #E76B66"]{
  color:var(--mp-negative)!important;
}
.page-dark-modern [style*="color:#7B4FA0"],
.page-dark-modern [style*="color: #7B4FA0"],
.page-dark-modern [style*="color:#8A5FA3"],
.page-dark-modern [style*="color: #8A5FA3"]{
  color:var(--mp-purple)!important;
}
.page-dark-modern [style*="color:#DCE9E2"],
.page-dark-modern [style*="color: #DCE9E2"]{
  color:var(--mp-text-light)!important;
}

/* Consultor: totais sempre simetricos em uma linha, sem quebra em telas estreitas. */
#pageConsultor .legend-col-title > span:first-child{
  white-space:nowrap;
  overflow:visible;
  font-size:clamp(10.5px,3.05vw,12.5px);
  letter-spacing:-.01em;
}
#pageConsultor .legend-col-title{min-width:0;gap:3px;}
#pageConsultor .legend-col-title .cat-legend-chevron{flex:0 0 auto;}

/* FASE 28 — Jornada ativa como painel central + status compacto na Home */
.home-journey-live-backdrop{
  display:none;position:fixed;inset:0;z-index:10045;background:rgba(2,10,7,.72);
  backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);
}
.home-journey-live-backdrop.open{display:block}
.finance-journey-live-card.active{display:none}
.finance-journey-live-card.active.expanded{
  display:block;position:fixed;z-index:10046;left:50%;top:50%;transform:translate(-50%,-50%);
  width:min(calc(100vw - 28px),440px);max-height:calc(100vh - 120px);overflow:auto;
  margin:0;padding:18px;border-radius:23px;border:1px solid rgba(34,227,142,.34);
  background:linear-gradient(145deg,#123A2A,#091E16 68%);box-shadow:0 28px 80px rgba(0,0,0,.55),0 0 0 1px rgba(34,227,142,.04);
}
.finance-journey-live-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.finance-journey-minimize-btn{
  width:34px;height:34px;border-radius:11px;border:1px solid rgba(255,255,255,.10);
  background:#102A20;color:#E3E7E5;font:800 20px/1 'Inter',sans-serif;display:grid;place-items:center;cursor:pointer;
}
.home-smart-card.home-journey-card.journey-active-compact{
  min-height:62px;padding:11px 13px;background:linear-gradient(135deg,rgba(34,227,142,.16),#0D281D 68%);
  border:1px solid rgba(34,227,142,.48);box-shadow:0 8px 24px rgba(34,227,142,.08),inset 0 0 0 1px rgba(34,227,142,.04);
}
.home-smart-card.home-journey-card.journey-active-compact .home-smart-icon{width:38px;height:38px;border-radius:12px}
.home-smart-card.home-journey-card.journey-active-compact small{color:#22E38E!important;font-size:7.5px!important;letter-spacing:.08em}
.home-smart-card.home-journey-card.journey-active-compact small::first-letter{color:#22E38E}
.home-smart-card.home-journey-card.journey-active-compact strong{font-size:13px!important;color:#F4FAF6!important}
.home-smart-card.home-journey-card.journey-active-compact em{font-size:9.5px!important;color:#BFD1C7!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-smart-card.home-journey-card.journey-active-compact .home-smart-arrow{color:#22E38E;font-size:24px}
@media(max-width:380px){
  .finance-journey-live-card.active.expanded{width:calc(100vw - 20px);max-height:calc(100vh - 92px);padding:15px}
  .home-smart-card.home-journey-card.journey-active-compact em{font-size:9px!important}
}


/* FASE 29 — Jornada na Home: início após Frase do Dia + card ativo inline */
.page-home-modern .home-smart-grid{margin:10px 0 14px;}
.page-home-modern .home-journey-live-backdrop{display:none!important;}
.page-home-modern .finance-journey-live-card.active,
.page-home-modern .finance-journey-live-card.active.expanded{
  display:block!important;position:relative!important;inset:auto!important;transform:none!important;
  width:auto!important;max-width:none!important;max-height:none!important;overflow:visible!important;
  z-index:auto!important;margin:9px 0 12px!important;
}
body.home-journey-live-open{overflow:auto!important;}
.page-home-modern .finance-journey-minimize-btn{display:none!important;}
.page-home-modern .finance-journey-live-stats{grid-template-columns:repeat(3,minmax(0,1fr));}
.page-home-modern .finance-journey-live-stats b{white-space:nowrap;}
@media(max-width:380px){.page-home-modern .finance-journey-live-stats b{font-size:11px;}}

/* FASE 30 — Home: hierarquia operacional + desempenho em bloco único */
.page-home-modern .home-performance-label{
  margin:16px 2px 8px;
  color:var(--home-muted);
  font-size:10px;
  font-weight:800;
  letter-spacing:.13em;
}
.page-home-modern .home-metrics-grid{
  display:block;
  margin:0 0 14px;
  overflow:hidden;
  border:1px solid var(--home-line);
  border-radius:18px;
  background:linear-gradient(145deg,#102A20,#0B2018);
  box-shadow:0 12px 28px rgba(0,0,0,.13);
}
.page-home-modern .home-metric-card{
  display:grid;
  grid-template-columns:30px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  min-height:54px;
  padding:10px 14px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.page-home-modern .home-metric-card + .home-metric-card{
  border-top:1px solid var(--home-line);
}
.page-home-modern .home-metric-icon{
  width:28px;height:28px;
  margin:0;
  border-radius:0;
  background:transparent;
}
.page-home-modern .home-metric-icon svg{
  width:21px;height:21px;
  stroke-width:1.9;
}
.page-home-modern .home-metric-card span{
  display:block;
  color:var(--home-muted);
  font-size:12px;
  font-weight:600;
  text-transform:none;
  letter-spacing:0;
  white-space:nowrap;
  overflow:visible;
  text-overflow:clip;
}
.page-home-modern .home-metric-card strong{
  display:block;
  margin:0;
  color:var(--home-white);
  font-family:'Sora',sans-serif;
  font-size:14px;
  text-align:right;
  white-space:nowrap;
  overflow:visible;
  text-overflow:clip;
}
.page-home-modern .home-smart-grid{margin:10px 0 14px;}
.page-home-modern .health-card-compact{margin:0 0 14px;}


/* Home: pontuacao integrada ao topo do card de saldo */
.page-home-modern .balance-card > .health-card-compact{
  margin:-5px 0 16px;
  padding:0 0 15px;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  border:none;
}
.page-home-modern .balance-card > .health-card-compact:active{ transform:none; opacity:.92; }
.page-home-modern .balance-card > .health-card-compact .health-compact-icon{
  display:flex; align-items:center; justify-content:center;
  width:38px; height:38px; border-radius:12px;
  background:rgba(230,197,106,.10);
}
.page-home-modern .balance-card > .health-card-compact .health-compact-label{
  color:var(--home-white); font-size:12px; letter-spacing:.01em;
}
.page-home-modern .balance-card > .health-card-compact .health-status-compact{ color:var(--home-muted); }
.page-home-modern .balance-card > .health-card-compact .health-bar-track-compact{ background:rgba(255,255,255,.10); }
.page-home-modern .balance-card > .health-card-compact .health-compact-chevron{ color:var(--home-muted); }
.page-home-modern .balance-score-divider{
  height:1px; background:var(--home-line); margin:0 0 16px;
}

/* Home: resumo financeiro mais compacto e eixo vertical equilibrado */
.page-home-modern .balance-card{
  padding:17px 18px 15px;
}
.page-home-modern .balance-card > .health-card-compact{
  margin:0;
  padding:0 0 12px;
}
.page-home-modern .balance-score-divider{
  margin:0 0 12px;
}
.page-home-modern .balance-label-row{
  margin-top:0;
}

/* Home — refinamento visual de Km rodados e ação Iniciar jornada */
.page-home-modern .home-metric-card .home-metric-icon svg{
  stroke-width:1.75;
}
.page-home-modern .home-smart-card.home-journey-card{
  position:relative;
  min-height:54px;
  padding:8px 14px;
  border-radius:999px;
  border:1.5px solid rgba(34,227,142,.72);
  background:#08170F;
  box-shadow:inset 0 0 0 1px rgba(34,227,142,.03);
  gap:10px;
}
.page-home-modern .home-smart-card.home-journey-card .home-smart-icon.journey{
  color:#22E38E;
  width:36px;height:36px;
  border-radius:0;
  background:transparent!important;
  color:#22E38E!important;
}
.page-home-modern .home-smart-card.home-journey-card .home-smart-icon.journey svg{
  width:29px;height:20px;
  stroke-width:1.55;
}
.page-home-modern .home-journey-main-label{
  position:absolute;
  left:50%;top:50%;
  transform:translate(-50%,-50%);
  color:#22E38E;
  font-family:'Sora',sans-serif;
  font-size:13px;
  font-weight:800;
  white-space:nowrap;
  pointer-events:none;
}
.page-home-modern .home-smart-card.home-journey-card .home-smart-arrow{
  margin-left:auto;
  color:#22E38E;
  font-size:25px;
  line-height:1;
}

/* Home — ajuste fino aprovado: estrada aberta + jornada no raio padrão */
.page-home-modern .home-metric-icon .home-road-svg{
  width:26px;height:23px;stroke-width:1.65;
}
.page-home-modern .home-smart-card.home-journey-card{
  min-height:54px;
  padding:8px 14px;
  border-radius:18px;
  border-width:1px;
  border-color:rgba(34,227,142,.58);
  box-shadow:none;
}
.page-home-modern .home-smart-card.home-journey-card .home-smart-icon.journey{
  width:40px;height:36px;
}
.page-home-modern .home-smart-card.home-journey-card .home-journey-car-svg{
  width:108px;height:84px;stroke-width:1.35;
  fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;
}

/* Home — carro frontal aprovado no botão Iniciar jornada */
.page-home-modern .home-smart-card.home-journey-card .home-smart-icon.journey{
  width:112px;
  height:88px;
  flex:0 0 112px;
}
.page-home-modern .home-smart-card.home-journey-card .home-journey-car-svg{
  width:44px;
  height:44px;
  display:block;
  fill:currentColor;
  stroke:none;
}


/* CORREÇÃO FINAL — Iniciar jornada: ampliar o DESENHO, não a caixa */
.page-home-modern .home-smart-card.home-journey-card .home-smart-icon.journey{
  width:58px !important;
  height:46px !important;
  flex:0 0 58px !important;
  overflow:visible !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
}

.page-home-modern .home-smart-card.home-journey-card .home-journey-car-svg{
  width:108px !important;
  height:54px !important;
  max-width:none !important;
  flex:none !important;
  display:block !important;
  color:#22E38E !important;
  fill:#22E38E !important;
  stroke:none !important;
  overflow:visible !important;
  transform:translateX(-2px);
}


/* AJUSTE — Iniciar jornada: metade do tamanho anterior */
.page-home-modern .home-smart-card.home-journey-card .home-journey-car-svg{
  width:54px !important;
  height:27px !important;
}


/* AJUSTE — Iniciar jornada: 25% menor que o tamanho anterior */
.page-home-modern .home-smart-card.home-journey-card .home-journey-car-svg{
  width:40.5px !important;
  height:20.25px !important;
}


/* HOME — equilibrar o Iniciar jornada entre Desempenho e menu inferior */
.page-home-modern .home-smart-card.home-journey-card{
  margin-top:14px !important;
  margin-bottom:14px !important;
}


/* AJUSTE GLOBAL — reduzir espaço excessivo entre o fim das páginas e o menu inferior */
body{
  padding-bottom:calc(76px + env(safe-area-inset-bottom, 0px)) !important;
}

/* Mantém uma folga visual curta e consistente no fim das páginas principais */
.sheet{
  padding-bottom:0 !important;
}


/* MANUAL — capítulos largos, em coluna, com área de toque ampla */
.page-manual-modern .manual-chapter{
  width:100%;
  margin:0 0 10px 0;
}
.page-manual-modern .manual-chapter-head{
  width:100% !important;
  min-height:58px;
  display:flex !important;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:15px 16px !important;
  text-align:left;
  border-radius:16px;
}
.page-manual-modern .manual-chapter-head > span:first-child{
  flex:1;
  min-width:0;
  line-height:1.3;
}
.page-manual-modern .manual-chapter-body{
  width:100%;
  padding-left:16px;
  padding-right:16px;
}
.page-manual-modern .manual-intro,
.page-manual-modern .manual-final-tip{
  width:100%;
}


/* MANUAL — navegação mais compacta verticalmente */
.page-manual-modern .manual-chapter{
  width:calc(100% - 28px) !important;
  margin:0 auto 7px auto !important;
}
.page-manual-modern .manual-chapter-head{
  width:100% !important;
  min-height:34px !important;
  padding:7px 14px !important;
  gap:10px !important;
  border-radius:13px !important;
}
.page-manual-modern .manual-chapter-head > span:first-child{
  line-height:1.15 !important;
}
.page-manual-modern .manual-chevron{
  line-height:1 !important;
}


/* Notificações lidas: opção de excluir definitivamente da Central */
.notification-center-sheet [data-notification-key].notification-read{padding-bottom:42px!important}
.notification-delete-btn{
  position:absolute;right:58px;bottom:9px;z-index:4;
  width:auto!important;height:26px!important;padding:0 9px!important;border-radius:999px!important;
  display:inline-flex;align-items:center;justify-content:center;
  background:rgba(255,139,133,.08)!important;color:#FF8B85!important;
  border:1px solid rgba(255,139,133,.20)!important;
  font:800 9px/1 'Inter',sans-serif!important;
}
.notification-center-sheet .maint-alert>button.notification-delete-btn{top:auto!important;right:58px!important;bottom:9px!important;position:absolute!important}

/* Copiloto — referência flutuante do R$/km ideal */
.copilot-card{align-items:flex-start;}
.copilot-mark{font-size:22px;line-height:1;}
.copilot-card-content{min-width:0;flex:1;}
.copilot-ideal-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:5px 0 4px;}
.copilot-ideal-row b{font-family:'Sora',sans-serif;font-size:21px;line-height:1.1;color:#22E38E;}
.copilot-status{display:inline-flex!important;width:auto!important;margin:0!important;padding:4px 7px;border-radius:999px;background:rgba(255,255,255,.06);color:var(--page-muted)!important;font-size:9px!important;font-weight:700;}
.copilot-status.active{background:rgba(34,227,142,.10);color:#58EDAC!important;}
.copilot-toggle-btn{margin-top:11px;width:100%;min-height:42px;border:0;border-radius:13px;background:#22E38E;color:#062016;font-family:'Sora',sans-serif;font-size:12px;font-weight:800;}
.copilot-toggle-btn.active{background:#17362A;color:#EAF7F1;border:1px solid rgba(34,227,142,.20);}
.copilot-toggle-btn:disabled{opacity:.48;cursor:not-allowed;}

.journey-copilot-reference{margin:14px 0 16px;padding:13px 15px;border-radius:14px;background:rgba(34,227,142,.07);border:1px solid rgba(34,227,142,.16);display:flex;align-items:center;justify-content:space-between;gap:12px;}
.journey-copilot-reference span{font-size:12px;color:var(--page-muted);}
.journey-copilot-reference b{font-family:'Sora',sans-serif;font-size:20px;color:#22E38E;white-space:nowrap;}
.journey-copilot-actions{display:grid;grid-template-columns:1fr 1.25fr;gap:9px;margin-top:6px;}
.journey-copilot-actions button{min-height:44px;border-radius:13px;font-family:'Sora',sans-serif;font-size:12px;font-weight:800;}
.journey-copilot-later{background:#173027;color:#EAF7F1;border:1px solid rgba(255,255,255,.09);}
.journey-copilot-activate{background:#22E38E;color:#062016;border:0;}
@media(max-width:360px){.journey-copilot-actions{grid-template-columns:1fr;}}


/* Consultor — Jornada & desempenho: card no padrão escuro e fechado por padrão */
.page-consultor-modern .consultor-performance-block{
  margin-top:13px;
  border:1px solid var(--page-line);
  border-radius:20px;
  background:var(--page-surface);
  overflow:hidden;
}
.page-consultor-modern .consultor-performance-head{
  width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:14px;background:transparent;border:0;color:var(--page-white);text-align:left;cursor:pointer;
}
.page-consultor-modern .consultor-performance-title strong{
  display:block;font-family:'Sora',sans-serif;font-size:14px;font-weight:700;color:var(--page-white);
}
.page-consultor-modern .consultor-performance-title small{
  display:block;margin-top:2px;font-size:10.5px;color:var(--page-muted);
}
.page-consultor-modern .consultor-performance-chevron{
  flex:0 0 auto;font-size:24px;line-height:1;color:#22E38E;
}
.page-consultor-modern .consultor-performance-body{
  display:none;padding:0 14px 14px;border-top:1px solid var(--page-line);
}
.page-consultor-modern .consultor-performance-body.open{display:block;}
.page-consultor-modern .consultor-performance-block .budget-card{
  margin:12px 0 0;background:var(--page-surface-2);border-color:var(--page-line);box-shadow:none;color:var(--page-white);
}
.page-consultor-modern .consultor-performance-block .budget-head h3,
.page-consultor-modern .consultor-performance-block .km-stat-row b{color:var(--page-white);}
.page-consultor-modern .consultor-performance-block .budget-subtitle,
.page-consultor-modern .consultor-performance-block .km-stat-row,
.page-consultor-modern .consultor-performance-block .km-empty{color:var(--page-muted);}
.page-consultor-modern .consultor-performance-block .history-toggle{color:#22E38E;}
.page-consultor-modern .consultor-performance-block .history-panel{
  background:#0A1D16;border-color:var(--page-line);box-shadow:none;
}

/* Consultor — respiro antes de "Como foi o seu dia?" e histórico diário legível */
.page-consultor-modern .consultor-performance-block{
  margin-bottom:14px;
}
.page-consultor-modern #kmHistoryPanel .km-history-row{
  background:#0D261D !important;
  border-color:rgba(255,255,255,.09) !important;
}
.page-consultor-modern #kmHistoryPanel .km-history-date{
  color:#F4FAF6 !important;
  opacity:1 !important;
  font-weight:800 !important;
}
.page-consultor-modern #kmHistoryPanel .km-history-stat{
  color:#D7E2DC !important;
  opacity:1 !important;
}
.page-consultor-modern #kmHistoryPanel .km-history-detail,
.page-consultor-modern #kmHistoryPanel .km-history-detail span{
  color:#C7D6CE !important;
  opacity:1 !important;
}
.page-consultor-modern #kmHistoryPanel .km-history-detail b{
  color:#F4FAF6 !important;
  opacity:1 !important;
}
.page-consultor-modern #kmHistoryPanel .km-history-period-item,
.page-consultor-modern #kmHistoryPanel .km-history-period-item span{
  color:#D7E2DC !important;
}

/* CONSULTOR COMPACTO — 30/08/2026 */
.page-consultor-modern .consultor-section-label{margin-bottom:8px}
.page-consultor-modern .consultor-resumo-title{margin-bottom:8px}
.page-consultor-modern .chart-card{padding:14px;margin-bottom:12px}
.page-consultor-modern .chart-cols{display:flex;flex-direction:column;gap:10px;margin-bottom:8px}
.page-consultor-modern .chart-col{width:100%}
.page-consultor-modern .chart-wrap{height:66px}
.page-consultor-modern .legend-cols{display:flex;flex-direction:column;gap:4px}
.page-consultor-modern .legend-col{width:100%}
.page-consultor-modern .legend-col-title{min-height:28px;padding:3px 0;margin:0}
.page-consultor-modern .consultor-performance-block{margin-top:10px;margin-bottom:10px;border-radius:16px}
.page-consultor-modern .consultor-performance-head{padding:12px 14px}
.page-consultor-modern .day-summary-card{padding:12px 14px;margin-bottom:10px;border-radius:16px}
.page-consultor-modern .consultor-insights-card{padding:14px;margin-bottom:10px}
.page-consultor-modern .weekday-chart-shell{display:grid;grid-template-columns:56px minmax(0,1fr);gap:7px;align-items:stretch;margin-top:4px}
.page-consultor-modern .weekday-axis{height:116px;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end;padding:0 0 19px;font-size:10px;font-weight:600;line-height:1;color:#9EB4A8;white-space:nowrap}
.page-consultor-modern .weekday-chart-main{position:relative;min-width:0;height:116px}
.page-consultor-modern .weekday-grid-lines{position:absolute;inset:0 0 19px 0;display:flex;flex-direction:column;justify-content:space-between;pointer-events:none}
.page-consultor-modern .weekday-grid-lines i{display:block;width:100%;height:1px;background:rgba(255,255,255,.075)}
.page-consultor-modern .weekday-compact-chart{position:relative;z-index:1;height:116px;display:flex;align-items:flex-end;justify-content:space-between;gap:4px;padding:0;margin:0}
.page-consultor-modern .weekday-compact-item{appearance:none;-webkit-appearance:none;border:0;background:transparent;padding:0;flex:1;min-width:0;text-align:center;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;height:100%;cursor:pointer;color:inherit;border-radius:7px}
.page-consultor-modern .weekday-compact-item:disabled{cursor:default;opacity:.55}
.page-consultor-modern .weekday-compact-item:not(:disabled):active{background:rgba(255,255,255,.035)}
.page-consultor-modern .weekday-compact-bar-wrap{height:97px;width:100%;display:flex;align-items:flex-end;justify-content:center}
.page-consultor-modern .weekday-compact-bar{width:min(24px,68%);min-height:4px;border-radius:6px 6px 2px 2px;background:#22E38E;opacity:.76;transition:height .22s ease,opacity .18s ease,filter .18s ease}
.page-consultor-modern .weekday-compact-item.best .weekday-compact-bar{background:#E6C56A;opacity:1}
.page-consultor-modern .weekday-compact-item.negative .weekday-compact-bar{background:#FF6B78}
.page-consultor-modern .weekday-compact-item.selected .weekday-compact-bar{opacity:1;filter:brightness(1.18)}
.page-consultor-modern .weekday-compact-item.selected .weekday-compact-day{color:#F4FAF6;font-weight:800}
.page-consultor-modern .weekday-compact-day{font-size:9.5px;color:#AFC1B8;margin-top:5px;white-space:nowrap}
.page-consultor-modern .weekday-compact-item.best .weekday-compact-day{color:#E6C56A;font-weight:800}
.page-consultor-modern .weekday-compact-empty{font-size:10px;color:#6F897C;margin-bottom:6px}
.page-consultor-modern .weekday-detail{min-height:34px;margin-top:7px;padding:8px 10px;border-radius:10px;background:rgba(255,255,255,.035);display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:10px;color:#AFC1B8}
.page-consultor-modern .weekday-detail strong{font-family:'Sora',sans-serif;color:#F4FAF6;font-size:10.5px}
.page-consultor-modern .weekday-detail b{color:#F4FAF6}
.page-consultor-modern .weekday-detail-best{color:#E6C56A;font-weight:800}
@media(max-width:360px){.page-consultor-modern .weekday-chart-shell{grid-template-columns:50px minmax(0,1fr);gap:5px}.page-consultor-modern .weekday-axis{font-size:9px}.page-consultor-modern .weekday-compact-chart{gap:2px}.page-consultor-modern .weekday-compact-bar{width:min(20px,68%)}}
.page-consultor-modern .consultor-simulator-inline{border-top:1px solid var(--page-line);margin-top:12px;padding-top:12px}
.page-consultor-modern .consultor-simulator-inline .simulator-hint{margin:3px 0 8px}
.page-consultor-modern .free-consultor-card{padding:14px;margin-bottom:10px}
.page-consultor-modern .free-question-extra{display:none}
.page-consultor-modern .free-question-grid.show-all .free-question-extra{display:block}
.page-consultor-modern .consultor-show-all{width:100%;margin-top:9px;padding:8px;border:0;background:transparent;color:#22E38E;font:700 11px 'Sora',sans-serif}
.page-consultor-modern .consultor-show-all span{display:inline-block;margin-left:4px;transition:transform .18s}
.page-consultor-modern .consultor-show-all.open span{transform:rotate(180deg)}
.page-consultor-modern .consultor-help-title{margin:16px 0 8px!important}
.page-consultor-modern .consultor-help-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.page-consultor-modern .consultor-help-actions .tool-btn{width:100%;min-height:44px}
.page-consultor-modern .consultor-storage-last{margin-top:12px!important;margin-bottom:4px!important}
@media(max-width:360px){.page-consultor-modern .consultor-help-actions{grid-template-columns:1fr}}

/* AJUSTES CONSULTOR COMPACTO — 30/08/2026 */
.page-consultor-modern .copilot-top-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:2px}
.page-consultor-modern .copilot-toggle-btn{margin:0;width:auto;min-height:30px;padding:0 10px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;gap:5px;font-size:10px;white-space:nowrap}
.page-consultor-modern .copilot-toggle-check{font-size:13px;font-weight:900;line-height:1}
.page-consultor-modern .copilot-toggle-btn.active{background:rgba(34,227,142,.10);color:#58EDAC;border-color:rgba(34,227,142,.28)}
.page-consultor-modern .copilot-toggle-btn.active .copilot-toggle-check{color:#58EDAC}

.page-consultor-modern .chart-main-label{font-family:'Sora',sans-serif;font-size:11px;font-weight:800;text-align:center;margin-top:2px}
.page-consultor-modern .chart-main-label-in{color:#58EDAC}
.page-consultor-modern .chart-main-label-out{color:#FF8B85}
.page-consultor-modern .chart-cols{gap:8px}
.page-consultor-modern .chart-col + .chart-col{margin-top:2px}

.page-consultor-modern .consultor-performance-head-main{display:flex;align-items:center;gap:10px;min-width:0;flex:1}
.page-consultor-modern .consultor-performance-icon{width:24px;height:24px;flex:0 0 24px;fill:none;stroke:#22E38E;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.page-consultor-modern .consultor-performance-title{min-width:0}

.page-consultor-modern .day-summary-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:5px}
.page-consultor-modern .day-summary-label{margin-bottom:0;white-space:nowrap}
.page-consultor-modern .day-summary-cta{margin-left:auto;font-size:10px;white-space:nowrap;text-align:right}
.page-consultor-modern .day-summary-text{margin-bottom:0}
@media(max-width:350px){
  .page-consultor-modern .day-summary-label{font-size:14px}
  .page-consultor-modern .day-summary-cta{font-size:9px}
}

.page-consultor-modern .consultor-questions-head{justify-content:space-between;gap:10px;margin-bottom:8px}
.page-consultor-modern .consultor-questions-head .consultor-show-all{width:auto;margin:0;padding:2px 0 2px 8px;flex:0 0 auto;font-size:10px;white-space:nowrap}

/* Ajuste Consultor 30/08 — rótulos dos gráficos e estado do Copiloto */
.page-consultor-modern .chart-top-label{
  margin:0 0 -10px 2px;
  color:#F4FAF6;
  font-family:'Sora',sans-serif;
  font-size:11px;
  font-weight:700;
  line-height:1;
  text-align:left;
  position:relative;
  z-index:2;
}
.page-consultor-modern .chart-main-label{display:none!important;}

.page-consultor-modern .copilot-toggle-btn{
  background:transparent!important;
  color:#F4FAF6!important;
  border:1px solid #22E38E!important;
  box-shadow:none!important;
}
.page-consultor-modern .copilot-toggle-btn .copilot-toggle-check{color:#22E38E;}
.page-consultor-modern .copilot-toggle-btn.active{
  background:transparent!important;
  color:#FFFFFF!important;
  border-color:rgba(255,255,255,.28)!important;
  box-shadow:none!important;
}
.page-consultor-modern .copilot-toggle-btn.active .copilot-toggle-check{color:#22E38E!important;}
.page-consultor-modern .copilot-status.active{
  background:rgba(34,227,142,.18)!important;
  color:#7CFFC2!important;
  border:1px solid rgba(34,227,142,.48);
  box-shadow:0 0 12px rgba(34,227,142,.18);
  animation:consultorCopilotStatusPulse 1.55s ease-in-out infinite;
}
@keyframes consultorCopilotStatusPulse{
  0%,100%{opacity:1;box-shadow:0 0 7px rgba(34,227,142,.12);}
  50%{opacity:.72;box-shadow:0 0 15px rgba(34,227,142,.30);}
}
@media (prefers-reduced-motion:reduce){
  .page-consultor-modern .copilot-status.active{animation:none;}
}

/* Consultor — ajuste do botão "ver desempenho por dia" */
.page-consultor-modern .consultor-performance-block .km-stats + .history-toggle,
.page-consultor-modern .consultor-performance-block .history-toggle{
  display:block!important;
  width:max-content!important;
  margin:7px 0 0 0!important;
  padding:7px 11px!important;
  text-align:left!important;
  border-radius:12px!important;
}

.page-consultor-modern .simulator-result-actions{display:flex;justify-content:flex-end;margin-top:7px}
.page-consultor-modern .simulator-reset-btn{appearance:none;-webkit-appearance:none;border:1px solid rgba(255,255,255,.16);background:transparent;color:#C7D6CF;border-radius:9px;padding:6px 10px;font:600 10px 'Inter',sans-serif;cursor:pointer}
.page-consultor-modern .simulator-reset-btn:active{background:rgba(255,255,255,.05)}


/* Consultor — Melhor dia da semana: escala fixa de R$ 200 */
.page-consultor-modern .weekday-chart-shell{
  grid-template-columns:62px minmax(0,1fr);
  gap:3px;
  margin-top:6px;
}
.page-consultor-modern .weekday-axis{
  height:128px;
  align-items:flex-start;
  padding:0 0 19px 0;
  font-size:11px;
  font-weight:700;
  line-height:1;
}
.page-consultor-modern .weekday-chart-main{height:128px;}
.page-consultor-modern .weekday-grid-lines{inset:0 0 19px 0;}
.page-consultor-modern .weekday-compact-chart{height:128px;gap:5px;}
.page-consultor-modern .weekday-compact-bar-wrap{height:109px;}
.page-consultor-modern .weekday-compact-bar{width:min(26px,72%);}
.page-consultor-modern .weekday-compact-day{font-size:10px;margin-top:5px;}
@media(max-width:360px){
  .page-consultor-modern .weekday-chart-shell{grid-template-columns:57px minmax(0,1fr);gap:2px;}
  .page-consultor-modern .weekday-axis{font-size:10px;}
  .page-consultor-modern .weekday-compact-chart{gap:3px;}
  .page-consultor-modern .weekday-compact-bar{width:min(22px,70%);}
}


/* Metas do Dia — opções compactas no padrão das Respostas rápidas do Consultor */
.page-metas-modern .work-goal-suggestions{
  gap:8px !important;
}
.page-metas-modern .work-goal-sugg{
  min-height:58px !important;
  padding:9px 10px !important;
  gap:7px !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:flex-start !important;
  text-align:left !important;
  border-radius:var(--r-sm) !important;
}
.page-metas-modern .work-goal-sugg-icon{
  width:30px !important;
  height:30px !important;
  min-width:30px !important;
  border-radius:9px !important;
  font-size:15px !important;
}
.page-metas-modern .work-goal-sugg-text{
  font-size:12.5px !important;
  line-height:1.28 !important;
}
@media(max-width:380px){
  .page-metas-modern .work-goal-sugg{
    min-height:56px !important;
    padding:8px 9px !important;
  }
  .page-metas-modern .work-goal-sugg-icon{
    width:28px !important;
    height:28px !important;
    min-width:28px !important;
    font-size:14px !important;
  }
  .page-metas-modern .work-goal-sugg-text{font-size:12px !important;}
}

/* Ajuste de peso visual — ações do Consultor e opções de Metas do Dia */
.page-consultor-modern .consultor-tools .tool-btn,
.page-consultor-modern .consultor-help-actions .tool-btn,
.page-consultor-modern .consultor-help-actions .tool-btn span{
  font-weight:500 !important;
}
.page-metas-modern .work-goal-sugg-text{
  font-weight:500 !important;
}


/* Despesas recorrentes — vencimento no mesmo padrão das datas de manutenção. */
.recorrente-day-badge,
#recorrentesList .recorrente-day-badge,
#recorrentesExpandable .recorrente-day-badge{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:28px !important;
  padding:5px 10px !important;
  border-radius:8px !important;
  border:1px solid rgba(34,227,142,.22) !important;
  background:#102A20 !important;
  color:#22E38E !important;
  box-shadow:none !important;
  font-family:'Inter',sans-serif !important;
  font-size:12.5px !important;
  font-weight:700 !important;
  line-height:1 !important;
  white-space:nowrap !important;
}

/* ==========================================================
   MODO CLARO — camada opcional. O tema escuro original permanece intacto.
   ========================================================== */
.more-theme-card{cursor:default!important}
.more-theme-card>span:nth-child(2){flex:1;min-width:0}
.mp-theme-switch{position:relative;display:inline-flex;align-items:center;flex:none;cursor:pointer;margin-left:auto}
.mp-theme-switch input{position:absolute;opacity:0;pointer-events:none}
.mp-theme-switch-track{width:44px;height:25px;border-radius:999px;background:#31473D;border:1px solid rgba(255,255,255,.12);padding:2px;display:block;transition:.2s ease}
.mp-theme-switch-thumb{display:block;width:19px;height:19px;border-radius:50%;background:#B7C5BE;transform:translateX(0);transition:.2s ease;box-shadow:0 2px 7px rgba(0,0,0,.28)}
.mp-theme-switch input:checked + .mp-theme-switch-track{background:#22E38E;border-color:#22E38E}
.mp-theme-switch input:checked + .mp-theme-switch-track .mp-theme-switch-thumb{background:#071510;transform:translateX(19px)}

html.mp-light-theme{color-scheme:light}
html.mp-light-theme body{
  background:#F4F7F5!important;color:#173027!important;
}
html.mp-light-theme .page-home-modern,
html.mp-light-theme .page-dark-modern,
html.mp-light-theme .page-financeiro-modern,
html.mp-light-theme .page-veiculo-modern,
html.mp-light-theme .page-metas-modern,
html.mp-light-theme .page-desafios-modern,
html.mp-light-theme .page-consultor-modern,
html.mp-light-theme .page-notas-modern,
html.mp-light-theme .page-manual-modern,
html.mp-light-theme .page-profile-modern{
  --home-bg:#F4F7F5;--home-surface:#FFFFFF;--home-surface-2:#EDF3EF;--home-line:#DCE7E1;
  --home-green:#0B9B63;--home-green-2:#087D51;--home-green-soft:#E1F4EA;--home-gold:#A97813;
  --home-white:#173027;--home-muted:#667A70;
  --page-bg:#F4F7F5;--page-surface:#FFFFFF;--page-surface-2:#EDF3EF;--page-line:#DCE7E1;
  --page-green:#0B9B63;--page-gold:#A97813;--page-white:#173027;--page-muted:#667A70;
  --green:#0B9B63;--green-deep:#087D51;--red:#D94C49;--red-deep:#B83E3B;
  --accent:#7159C7;--accent-deep:#5942AA;--ink:#173027;--ink-soft:#61736A;--ink-faint:#819087;
  --surface:#FFFFFF;--surface-alt:#EDF3EF;--line:#DCE7E1;--bg:#F4F7F5;
  --mp-positive:#087D51;--mp-negative:#C94744;--mp-text-light:#173027;--mp-text-muted:#61736A;
  --mp-gold:#9B6D0D;--mp-purple:#6A50B8;--mp-orange:#B96500;--mp-blue:#2676A8;--mp-teal:#147D64;
  background:#F4F7F5!important;color:#173027!important;
}
html.mp-light-theme .page-home-modern{background:linear-gradient(180deg,#F7FAF8 0%,#F1F5F2 100%)!important}
html.mp-light-theme .page-dark-modern{background:linear-gradient(180deg,#F7FAF8 0%,#F1F5F2 100%)!important}
html.mp-light-theme .modern-page-header h1,
html.mp-light-theme .modern-page-header p,
html.mp-light-theme .home-greeting-block h1,
html.mp-light-theme .home-greeting-block p,
html.mp-light-theme .page-dark-modern h1,
html.mp-light-theme .page-dark-modern h2,
html.mp-light-theme .page-dark-modern h3,
html.mp-light-theme .page-dark-modern h4{color:#173027!important}
html.mp-light-theme .modern-page-kicker,
html.mp-light-theme .home-kicker{color:#087D51!important}

/* superfícies e cards */
html.mp-light-theme .more-account-strip,
html.mp-light-theme .more-menu-card,
html.mp-light-theme .more-premium-card,
html.mp-light-theme .home-smart-card,
html.mp-light-theme .home-performance-panel,
html.mp-light-theme .history-panel,
html.mp-light-theme .form-box,
html.mp-light-theme .health-card-compact,
html.mp-light-theme .vehicle-card,
html.mp-light-theme .consultor-card,
html.mp-light-theme .consultor-section,
html.mp-light-theme .manual-chapter-head,
html.mp-light-theme .manual-intro,
html.mp-light-theme .manual-tip,
html.mp-light-theme .note-card,
html.mp-light-theme .agenda-card,
html.mp-light-theme .metas-card{
  background:#FFFFFF!important;border-color:#DCE7E1!important;color:#173027!important;box-shadow:0 5px 18px rgba(26,59,44,.055)!important;
}
html.mp-light-theme .more-menu-card strong,
html.mp-light-theme .more-account-strip strong,
html.mp-light-theme .more-premium-card strong{color:#173027!important}
html.mp-light-theme .more-menu-card small,
html.mp-light-theme .more-account-strip span,
html.mp-light-theme .more-premium-card span{color:#667A70!important}
html.mp-light-theme .more-menu-icon{background:#E7F5ED!important;color:#087D51!important;border-color:#D2EADF!important}
html.mp-light-theme .more-menu-icon.danger{background:#FDECEB!important;color:#C94744!important;border-color:#F4D2D0!important}
html.mp-light-theme .more-menu-card em{color:#71837A!important}
html.mp-light-theme .mp-theme-switch-track{background:#DCE5E0;border-color:#CBD8D1}
html.mp-light-theme .mp-theme-switch-thumb{background:#FFFFFF;box-shadow:0 2px 6px rgba(20,45,33,.18)}

/* Home: mantém o saldo como card de identidade, porém claro e legível */
html.mp-light-theme .page-home-modern .balance-card{
  background:linear-gradient(145deg,#E8F6EF 0%,#DDF1E7 100%)!important;
  border-color:#CBE7D8!important;box-shadow:0 8px 24px rgba(22,89,57,.08)!important;
}
html.mp-light-theme .page-home-modern .balance-value,
html.mp-light-theme .page-home-modern .health-score,
html.mp-light-theme .page-home-modern .health-score-max{color:#173027!important}
html.mp-light-theme .page-home-modern .balance-label,
html.mp-light-theme .page-home-modern .balance-sub{color:#61736A!important}
html.mp-light-theme .page-home-modern .eye-toggle{background:rgba(8,125,81,.08)!important;color:#087D51!important}
html.mp-light-theme .page-home-modern .month-bar,
html.mp-light-theme .page-home-modern .home-history-btn{background:#FFFFFF!important;border-color:#DCE7E1!important;color:#087D51!important}
html.mp-light-theme .page-home-modern .month-bar button{background:#EDF3EF!important;color:#173027!important}
html.mp-light-theme .page-home-modern .month-bar input[type="month"]{color:#173027!important;color-scheme:light}

/* textos auxiliares */
html.mp-light-theme .page-dark-modern p,
html.mp-light-theme .page-dark-modern small,
html.mp-light-theme .page-dark-modern .date,
html.mp-light-theme .page-dark-modern .running,
html.mp-light-theme .page-dark-modern .budget-text,
html.mp-light-theme .page-dark-modern .journey-day-toggle span,
html.mp-light-theme .page-manual-modern .manual-chapter-body{color:#61736A!important}
html.mp-light-theme .page-dark-modern [style*="color:var(--ink)"],
html.mp-light-theme .page-dark-modern [style*="color: var(--ink)"]{color:#173027!important}
html.mp-light-theme .page-dark-modern [style*="color:var(--ink-soft)"],
html.mp-light-theme .page-dark-modern [style*="color: var(--ink-soft)"],
html.mp-light-theme .page-dark-modern [style*="color:var(--ink-faint)"],
html.mp-light-theme .page-dark-modern [style*="color: var(--ink-faint)"]{color:#61736A!important}

/* campos */
html.mp-light-theme input,
html.mp-light-theme select,
html.mp-light-theme textarea,
html.mp-light-theme .journey-edit-grid input{
  background:#FFFFFF!important;color:#173027!important;border-color:#CBD8D1!important;color-scheme:light!important;
}
html.mp-light-theme input::placeholder,
html.mp-light-theme textarea::placeholder{color:#8A9991!important}

/* modais / painéis que eram fixos no verde escuro */
html.mp-light-theme .challenge-progress-sheet,
html.mp-light-theme .journey-edit-sheet,
html.mp-light-theme .smart-km-info-sheet{
  background:#FFFFFF!important;color:#173027!important;border-color:#DCE7E1!important;box-shadow:0 24px 60px rgba(18,49,35,.18)!important;
}
html.mp-light-theme .feature-modal-head strong,
html.mp-light-theme .challenge-progress-objective strong,
html.mp-light-theme .challenge-progress-score,
html.mp-light-theme .challenge-progress-remaining b,
html.mp-light-theme .smart-km-info-sheet p b{color:#173027!important}
html.mp-light-theme .feature-modal-head>button,
html.mp-light-theme .challenge-progress-meta span,
html.mp-light-theme .challenge-progress-details,
html.mp-light-theme .challenge-progress-objective{background:#EDF3EF!important;border-color:#DCE7E1!important;color:#173027!important}
html.mp-light-theme .challenge-progress-line,
html.mp-light-theme .challenge-progress-remaining,
html.mp-light-theme .challenge-progress-reward,
html.mp-light-theme .smart-km-info-sheet p,
html.mp-light-theme .smart-km-info-note{color:#61736A!important}
html.mp-light-theme .smart-km-info-close{color:#61736A!important}

/* notificações */
html.mp-light-theme .notification-center-sheet{background:#F4F7F5!important;color:#173027!important}
html.mp-light-theme .notification-center-sheet [data-notification-key],
html.mp-light-theme .notification-center-sheet .maint-alert{background:#FFFFFF!important;border-color:#DCE7E1!important;color:#173027!important}
html.mp-light-theme .notification-read{opacity:.72}
html.mp-light-theme .notification-read-btn:disabled{color:#71837A!important;background:#EDF3EF!important;border-color:#DCE7E1!important}

/* navegação inferior */
html.mp-light-theme .bottom-nav-inner{background:#FFFFFF!important;border-color:#DCE7E1!important;box-shadow:0 -7px 22px rgba(24,57,42,.08)!important}
html.mp-light-theme .bottom-nav .nav-btn{color:#75867D!important}
html.mp-light-theme .bottom-nav .nav-btn.active{color:#087D51!important}

/* cores semânticas precisam ser mais profundas sobre branco */
html.mp-light-theme .page-financeiro-modern #ledger .row .amount.in,
html.mp-light-theme .page-dark-modern #ledger .row .amount.in,
html.mp-light-theme .page-financeiro-modern .day-group-saldo.positive,
html.mp-light-theme .page-dark-modern .day-group-saldo.positive{color:#087D51!important}
html.mp-light-theme .page-financeiro-modern #ledger .row .amount.out,
html.mp-light-theme .page-dark-modern #ledger .row .amount.out,
html.mp-light-theme .page-financeiro-modern .day-group-saldo.negative,
html.mp-light-theme .page-dark-modern .day-group-saldo.negative{color:#C94744!important}
html.mp-light-theme .page-dark-modern .budget-edit,
html.mp-light-theme .page-dark-modern .day-summary-cta,
html.mp-light-theme .page-dark-modern .note-edit,
html.mp-light-theme .page-dark-modern .note-edit-btn,
html.mp-light-theme .page-dark-modern .note-reminder-badge,
html.mp-light-theme .page-dark-modern .agenda-day.today{color:#6A50B8!important}

/* vencimentos e chips escuros específicos */
html.mp-light-theme .recorrente-day-badge,
html.mp-light-theme #recorrentesList .recorrente-day-badge,
html.mp-light-theme #recorrentesExpandable .recorrente-day-badge{background:#E7F5ED!important;color:#087D51!important;border-color:#CDE8DA!important}

/* preserva contraste em cards intencionalmente coloridos */
html.mp-light-theme .desafio-card,
html.mp-light-theme .health-card{color:#FFFFFF}
html.mp-light-theme .desafio-card h3,
html.mp-light-theme .desafio-card .desafio-msg,
html.mp-light-theme .health-card .health-score{color:#FFFFFF!important}

/* ==========================================================
   MODO CLARO — correção de contraste dos componentes legados
   ========================================================== */
html.mp-light-theme .page-home-modern .home-metrics-grid,
html.mp-light-theme .page-home-modern .home-metric-card,
html.mp-light-theme .page-home-modern .home-smart-card.home-journey-card,
html.mp-light-theme .page-financeiro-modern .finance-overview-strip > *,
html.mp-light-theme .page-financeiro-modern .recorrentes-toggle,
html.mp-light-theme .page-financeiro-modern .week-group-head,
html.mp-light-theme .page-financeiro-modern .month-evaluation,
html.mp-light-theme .page-consultor-modern .consultor-hero-card,
html.mp-light-theme .page-consultor-modern .weekday-performance-card,
html.mp-light-theme .page-consultor-modern .free-question,
html.mp-light-theme .page-consultor-modern .tool-btn,
html.mp-light-theme .page-profile-modern .tool-btn,
html.mp-light-theme .page-profile-modern #perfilAssinaturaCard,
html.mp-light-theme .page-profile-modern .streak-card,
html.mp-light-theme .page-profile-modern .sonho-card,
html.mp-light-theme .page-profile-modern .logout-card,
html.mp-light-theme .page-veiculo-modern .maint-row,
html.mp-light-theme .page-veiculo-modern .planning-form,
html.mp-light-theme .page-veiculo-modern .history-panel,
html.mp-light-theme #recorrentesExpandable .budget-card,
html.mp-light-theme .maint-feito-submenu{
  background:#FFFFFF!important;
  border-color:#D7E3DD!important;
  color:#173027!important;
  box-shadow:0 5px 18px rgba(26,59,44,.045)!important;
}
html.mp-light-theme .page-home-modern .home-metric-card + .home-metric-card{border-top-color:#DCE7E1!important}
html.mp-light-theme .page-home-modern .home-metric-card span,
html.mp-light-theme .page-home-modern .home-metric-card strong,
html.mp-light-theme .page-home-modern .home-journey-main-label{color:#173027!important}
html.mp-light-theme .page-home-modern .home-smart-card.home-journey-card{border-color:#BFDCCE!important}
html.mp-light-theme .page-home-modern .home-smart-card.home-journey-card .home-smart-icon.journey,
html.mp-light-theme .page-home-modern .home-smart-card.home-journey-card .home-smart-arrow{color:#0B9B63!important}

html.mp-light-theme .page-financeiro-modern .finance-overview-strip > * strong,
html.mp-light-theme .page-financeiro-modern .finance-overview-strip > * b,
html.mp-light-theme .page-financeiro-modern .week-group-head strong,
html.mp-light-theme .page-financeiro-modern .week-group-head b,
html.mp-light-theme .page-financeiro-modern .month-evaluation strong,
html.mp-light-theme .page-financeiro-modern .month-evaluation b,
html.mp-light-theme .page-financeiro-modern .recorrentes-toggle-copy strong{color:#173027!important}
html.mp-light-theme .page-financeiro-modern .finance-overview-strip > * small,
html.mp-light-theme .page-financeiro-modern .week-group-head span,
html.mp-light-theme .page-financeiro-modern .week-group-head small,
html.mp-light-theme .page-financeiro-modern .month-evaluation p,
html.mp-light-theme .page-financeiro-modern .month-evaluation li,
html.mp-light-theme .page-financeiro-modern .recorrentes-toggle-copy small{color:#61736A!important}
html.mp-light-theme .page-financeiro-modern .recorrentes-toggle{background:linear-gradient(135deg,#E7F6EF,#FFFFFF)!important}
html.mp-light-theme .page-financeiro-modern #incomeCatSelect,
html.mp-light-theme .page-financeiro-modern #expenseCatSelect{background:#FFFFFF!important;color:#173027!important;border-color:#CBD8D1!important;color-scheme:light!important}

html.mp-light-theme .page-consultor-modern .consultor-hero-card{background:linear-gradient(145deg,#F7F3E8,#FFFFFF)!important;border-color:#E8DFC8!important}
html.mp-light-theme .page-consultor-modern .consultor-hero-card strong,
html.mp-light-theme .page-consultor-modern .consultor-section-label span,
html.mp-light-theme .page-consultor-modern .free-question,
html.mp-light-theme .page-consultor-modern .weekday-performance-card h3,
html.mp-light-theme .page-consultor-modern .weekday-performance-card strong{color:#173027!important}
html.mp-light-theme .page-consultor-modern .consultor-hero-card span,
html.mp-light-theme .page-consultor-modern .weekday-performance-card p,
html.mp-light-theme .page-consultor-modern .weekday-performance-card small{color:#61736A!important}
html.mp-light-theme .page-consultor-modern .weekday-grid-lines i{background:#DCE7E1!important}
html.mp-light-theme .page-consultor-modern .weekday-compact-day,
html.mp-light-theme .page-consultor-modern .weekday-axis{color:#61736A!important}
html.mp-light-theme .page-consultor-modern .weekday-compact-item.selected .weekday-compact-day{color:#173027!important}
html.mp-light-theme .page-consultor-modern .weekday-detail{background:#EDF3EF!important;color:#61736A!important}
html.mp-light-theme .page-consultor-modern .weekday-detail strong,
html.mp-light-theme .page-consultor-modern .weekday-detail b{color:#173027!important}
html.mp-light-theme .page-consultor-modern .simulator-reset-btn{border-color:#CBD8D1!important;color:#61736A!important}

html.mp-light-theme .page-metas-modern .desafio-card,
html.mp-light-theme .page-metas-modern .challenge-card,
html.mp-light-theme .page-metas-modern .conquista-card{color:#173027!important}
html.mp-light-theme .page-metas-modern .desafio-card h3,
html.mp-light-theme .page-metas-modern .desafio-card .desafio-msg{color:#173027!important}

html.mp-light-theme .page-profile-modern #perfilAssinaturaCard{background:linear-gradient(145deg,#FBF7EA,#FFFFFF)!important;border-color:#E9DFC2!important}
html.mp-light-theme .page-profile-modern #perfilAssinaturaCard *,
html.mp-light-theme .page-profile-modern .streak-card *,
html.mp-light-theme .page-profile-modern .sonho-card *{color:#173027}
html.mp-light-theme .page-profile-modern .streak-card small,
html.mp-light-theme .page-profile-modern .sonho-card small{color:#61736A!important}

/* botões continuam destacados, mas nunca com texto escuro sobre fundo escuro */
html.mp-light-theme .page-financeiro-modern .voice-btn,
html.mp-light-theme .page-financeiro-modern .category-btn,
html.mp-light-theme .page-consultor-modern .free-question,
html.mp-light-theme .page-consultor-modern .consultor-tools .tool-btn,
html.mp-light-theme .page-consultor-modern .consultor-help-actions .tool-btn,
html.mp-light-theme .page-profile-modern .tool-btn{
  background:#EAF4EF!important;border-color:#D2E5DB!important;color:#173027!important;
}
html.mp-light-theme .page-financeiro-modern .voice-btn *,
html.mp-light-theme .page-financeiro-modern .category-btn *,
html.mp-light-theme .page-consultor-modern .free-question *,
html.mp-light-theme .page-consultor-modern .tool-btn *,
html.mp-light-theme .page-profile-modern .tool-btn *{color:inherit!important}

/* textos brancos fixos que ficavam invisíveis sobre o fundo claro */
html.mp-light-theme .page-home-modern .section-title,
html.mp-light-theme .page-financeiro-modern .section-title,
html.mp-light-theme .page-consultor-modern .section-title,
html.mp-light-theme .page-metas-modern .section-title,
html.mp-light-theme .page-profile-modern .section-title{color:#173027!important}

/* ==========================================================
   MODO CLARO — AUDITORIA VISUAL COMPLETA v3
   Regra: no tema claro nenhuma superfície estrutural permanece
   verde/preta. Cores fortes ficam nos acentos, ícones e ações.
   ========================================================== */
html.mp-light-theme{
  --mp-light-bg:#F6F9F7;
  --mp-light-card:#FFFFFF;
  --mp-light-soft:#EAF7F1;
  --mp-light-soft-2:#F1F7F4;
  --mp-light-line:#D7E5DE;
  --mp-light-ink:#16352A;
  --mp-light-muted:#64786E;
  --mp-light-green:#0A9B63;
  --mp-light-green-bright:#18C985;
  --mp-light-gold:#B98616;
  --mp-light-red:#D65252;
  --mp-light-purple:#6D55BD;
  --mp-light-blue:#347FC0;
  --mp-light-teal:#168873;
}
html.mp-light-theme body,
html.mp-light-theme .page-home-modern,
html.mp-light-theme .page-dark-modern,
html.mp-light-theme .page-financeiro-modern,
html.mp-light-theme .page-consultor-modern,
html.mp-light-theme .page-metas-modern,
html.mp-light-theme .page-desafios-modern,
html.mp-light-theme .page-veiculo-modern,
html.mp-light-theme .page-profile-modern,
html.mp-light-theme .page-manual-modern,
html.mp-light-theme .page-notas-modern{
  background:linear-gradient(180deg,#FAFCFB 0%,var(--mp-light-bg) 100%)!important;
  color:var(--mp-light-ink)!important;
}

/* HOME — carro, frase, desempenho e jornada */
html.mp-light-theme .page-home-modern .topbar-veiculo-badge{
  background:var(--mp-light-soft)!important;
  color:var(--mp-light-green)!important;
  border:1px solid #CDEBDD!important;
  box-shadow:none!important;
}
html.mp-light-theme .page-home-modern .topbar-veiculo-badge span{color:var(--mp-light-green)!important}
html.mp-light-theme .page-home-modern .home-daily-message-featured{
  background:linear-gradient(135deg,#FFF8E8,#FFFCF4)!important;
  border-color:#F1DFB5!important;
  box-shadow:0 5px 16px rgba(115,86,19,.04)!important;
}
html.mp-light-theme .page-home-modern .daily-quote-icon{
  background:#FFF1C9!important;color:#C99010!important;
}
html.mp-light-theme .page-home-modern .home-daily-message-featured small{color:#A8780E!important}
html.mp-light-theme .page-home-modern .home-daily-message-featured strong{
  color:#405D50!important;font-weight:600!important;
}
html.mp-light-theme .page-home-modern .home-performance-panel,
html.mp-light-theme .page-home-modern .home-metrics-grid{
  background:#FFFFFF!important;border:1px solid var(--mp-light-line)!important;
  box-shadow:0 7px 22px rgba(27,75,53,.055)!important;
}
html.mp-light-theme .page-home-modern .home-metric-card{
  background:#FFFFFF!important;color:var(--mp-light-ink)!important;
}
html.mp-light-theme .page-home-modern .home-metric-card span{color:#536D60!important}
html.mp-light-theme .page-home-modern .home-metric-card strong{color:var(--mp-light-ink)!important}
html.mp-light-theme .page-home-modern .home-metric-card svg{color:var(--mp-light-green)!important;stroke:currentColor!important}
html.mp-light-theme .page-home-modern .home-smart-card.home-journey-card{
  background:linear-gradient(135deg,#FFFFFF,#F3FBF7)!important;
  border:1px solid #BFE8D4!important;
  box-shadow:0 7px 22px rgba(22,122,77,.055)!important;
}
html.mp-light-theme .page-home-modern .home-journey-main-label{
  color:#0A8155!important;font-weight:800!important;opacity:1!important;
}
html.mp-light-theme .page-home-modern .home-smart-card.home-journey-card .home-smart-icon.journey,
html.mp-light-theme .page-home-modern .home-smart-card.home-journey-card .home-journey-car-svg,
html.mp-light-theme .page-home-modern .home-smart-card.home-journey-card .home-smart-arrow{
  color:#17B978!important;fill:currentColor!important;opacity:1!important;
}
html.mp-light-theme .page-home-modern .home-history-btn,
html.mp-light-theme .page-home-modern .month-bar{opacity:1!important}

/* FINANCEIRO — nenhum botão auxiliar preto */
html.mp-light-theme .page-financeiro-modern .finance-overview-strip>div{
  background:#FFFFFF!important;border-color:var(--mp-light-line)!important;
  box-shadow:0 4px 15px rgba(26,65,47,.04)!important;
}
html.mp-light-theme .page-financeiro-modern .finance-overview-strip span{color:#667B70!important}
html.mp-light-theme .page-financeiro-modern .finance-overview-strip strong{color:var(--mp-light-ink)!important;opacity:1!important}
html.mp-light-theme .page-financeiro-modern .form-box{
  background:#FFFFFF!important;border-color:var(--mp-light-line)!important;
}
html.mp-light-theme .page-financeiro-modern .cat-btn,
html.mp-light-theme .page-financeiro-modern .category-btn,
html.mp-light-theme .page-financeiro-modern .voice-btn{
  background:#EAF8F2!important;
  color:#087F54!important;
  border:1px solid #C9EBDD!important;
  box-shadow:none!important;
}
html.mp-light-theme .page-financeiro-modern .cat-btn *,
html.mp-light-theme .page-financeiro-modern .category-btn *,
html.mp-light-theme .page-financeiro-modern .voice-btn *{color:inherit!important;opacity:1!important}
html.mp-light-theme .page-financeiro-modern .eval-card,
html.mp-light-theme .page-financeiro-modern .month-evaluation{
  background:linear-gradient(135deg,#FFFFFF,#F4FAF7)!important;
  border:1px solid var(--mp-light-line)!important;
  color:var(--mp-light-ink)!important;
  box-shadow:0 5px 18px rgba(26,59,44,.045)!important;
}
html.mp-light-theme .page-financeiro-modern .eval-card h3,
html.mp-light-theme .page-financeiro-modern .eval-card b,
html.mp-light-theme .page-financeiro-modern .month-evaluation h3,
html.mp-light-theme .page-financeiro-modern .month-evaluation b{color:var(--mp-light-ink)!important}
html.mp-light-theme .page-financeiro-modern .eval-card p,
html.mp-light-theme .page-financeiro-modern .eval-card li,
html.mp-light-theme .page-financeiro-modern .month-evaluation p,
html.mp-light-theme .page-financeiro-modern .month-evaluation li{color:#587064!important}
html.mp-light-theme .page-financeiro-modern .week-group-head{
  background:#F0F8F4!important;border:1px solid #D3E8DE!important;color:var(--mp-light-ink)!important;
}
html.mp-light-theme .page-financeiro-modern .week-group-saldo,
html.mp-light-theme .page-financeiro-modern .week-group-label{color:var(--mp-light-ink)!important}
html.mp-light-theme .page-financeiro-modern .week-group-count{color:#61776C!important}
html.mp-light-theme .page-financeiro-modern .recorrentes-toggle{
  background:linear-gradient(135deg,#E6F7EF,#F8FCFA)!important;
  border-color:#CBE9DA!important;
}

/* CONSULTOR — cards de análise, melhor dia e ações */
html.mp-light-theme .page-consultor-modern .consultor-hero-card{
  background:linear-gradient(135deg,#FFF7DE,#F8FCFA)!important;
  border-color:#EADDB7!important;
}
html.mp-light-theme .page-consultor-modern .weekday-performance-card,
html.mp-light-theme .page-consultor-modern .consultor-performance-block .budget-card{
  background:#FFFFFF!important;
  border:1px solid var(--mp-light-line)!important;
  color:var(--mp-light-ink)!important;
  box-shadow:0 6px 20px rgba(25,68,48,.045)!important;
}
html.mp-light-theme .page-consultor-modern .weekday-performance-card h3,
html.mp-light-theme .page-consultor-modern .weekday-performance-card strong,
html.mp-light-theme .page-consultor-modern .weekday-performance-card .weekday-detail strong{color:var(--mp-light-ink)!important;opacity:1!important}
html.mp-light-theme .page-consultor-modern .weekday-performance-card p,
html.mp-light-theme .page-consultor-modern .weekday-performance-card small,
html.mp-light-theme .page-consultor-modern .weekday-axis,
html.mp-light-theme .page-consultor-modern .weekday-compact-day{color:#60776B!important;opacity:1!important}
html.mp-light-theme .page-consultor-modern .weekday-grid-lines i{background:#DDE9E3!important}
html.mp-light-theme .page-consultor-modern .weekday-detail{background:#F0F7F3!important;border-color:#DCE9E2!important}
html.mp-light-theme .page-consultor-modern .free-question,
html.mp-light-theme .page-consultor-modern .modern-action-btn,
html.mp-light-theme .page-consultor-modern .tool-btn{
  background:#ECF8F2!important;
  color:#146C4D!important;
  border:1px solid #CFE9DD!important;
  box-shadow:none!important;
}
html.mp-light-theme .page-consultor-modern .free-question *,
html.mp-light-theme .page-consultor-modern .modern-action-btn *,
html.mp-light-theme .page-consultor-modern .tool-btn *{color:inherit!important;opacity:1!important}
html.mp-light-theme .page-consultor-modern .free-answer-modal-sheet .free-answer{
  background:#FFFFFF!important;color:var(--mp-light-ink)!important;border:1px solid var(--mp-light-line)!important;border-left:3px solid var(--mp-light-green-bright)!important;
}
html.mp-light-theme .page-consultor-modern .free-answer-modal-sheet .free-answer *{color:inherit!important}

/* METAS — cards superiores vivos, mas claros */
html.mp-light-theme .page-metas-modern .metas-evolution-card{
  background:linear-gradient(135deg,#E9F8F1 0%,#F8FCFA 58%,#E4F5EC 100%)!important;
  border:1px solid #BFE7D4!important;
  color:var(--mp-light-ink)!important;
  box-shadow:0 7px 20px rgba(15,122,77,.065)!important;
}
html.mp-light-theme .page-metas-modern .metas-evolution-card.score-challenge{
  background:linear-gradient(135deg,#FFF2C9 0%,#FFF9E8 55%,#EAF7F0 100%)!important;
  border-color:#E8D28F!important;
}
html.mp-light-theme .page-metas-modern .metas-evolution-card.achievement{
  background:linear-gradient(135deg,#FFF4D5 0%,#FFFBF0 56%,#F1F8F4 100%)!important;
  border-color:#E8D9A5!important;
}
html.mp-light-theme .page-metas-modern .metas-evolution-card-icon{
  background:rgba(255,255,255,.72)!important;border:1px solid rgba(23,124,81,.08)!important;
}
html.mp-light-theme .page-metas-modern .metas-evolution-card-copy strong{color:#0A9B63!important}
html.mp-light-theme .page-metas-modern .metas-evolution-card.score-challenge .metas-evolution-card-copy strong,
html.mp-light-theme .page-metas-modern .metas-evolution-card.achievement .metas-evolution-card-copy strong{color:#B07C0B!important}
html.mp-light-theme .page-metas-modern .metas-evolution-card-copy b{color:#173D30!important;opacity:1!important}
html.mp-light-theme .page-metas-modern .metas-evolution-card-copy small{color:#61766B!important;opacity:1!important}
html.mp-light-theme .page-metas-modern .metas-evolution-card-action{color:#087D51!important;opacity:1!important}
html.mp-light-theme .page-metas-modern .budget-card,
html.mp-light-theme .page-metas-modern .planning-form,
html.mp-light-theme .page-metas-modern .goal-card{
  background:#FFFFFF!important;border:1px solid var(--mp-light-line)!important;color:var(--mp-light-ink)!important;box-shadow:0 5px 18px rgba(26,59,44,.045)!important;
}
html.mp-light-theme .page-metas-modern .work-goal-sugg{
  background:linear-gradient(135deg,#FFFFFF,#ECF8F2)!important;
  border:1px solid #CFE7DB!important;
  color:var(--mp-light-ink)!important;
  box-shadow:0 4px 14px rgba(25,86,56,.045)!important;
}
html.mp-light-theme .page-metas-modern .work-goal-sugg-icon{
  background:#DDF5E9!important;color:#0A9B63!important;
}
html.mp-light-theme .page-metas-modern .work-goal-sugg-text{color:#214C3B!important;opacity:1!important}

/* DESAFIOS — troca os 3 cartões escuros por pastéis fortes e legíveis */
html.mp-light-theme .page-desafios-modern .desafio-card,
html.mp-light-theme .page-desafios-modern .desafio-card.done,
html.mp-light-theme .page-desafios-modern .desafio-card.week,
html.mp-light-theme .page-desafios-modern .desafio-card.month{
  color:var(--mp-light-ink)!important;
  border:1px solid var(--mp-light-line)!important;
  box-shadow:0 7px 20px rgba(24,79,54,.055)!important;
}
html.mp-light-theme .page-desafios-modern .desafio-card{background:linear-gradient(135deg,#FFF1C9,#FFF9E9)!important;border-color:#ECD699!important}
html.mp-light-theme .page-desafios-modern .desafio-card.done{background:linear-gradient(135deg,#DDF7EB,#F4FCF8)!important;border-color:#B9E7D2!important}
html.mp-light-theme .page-desafios-modern .desafio-card.week{background:linear-gradient(135deg,#E3F1FC,#F7FBFE)!important;border-color:#C5DFF2!important}
html.mp-light-theme .page-desafios-modern .desafio-card.month{background:linear-gradient(135deg,#DCF5F0,#F6FCFA)!important;border-color:#BCE4DB!important}
html.mp-light-theme .page-desafios-modern .desafio-card h3,
html.mp-light-theme .page-desafios-modern .desafio-card .desafio-msg,
html.mp-light-theme .page-desafios-modern .desafio-card .desafio-desc,
html.mp-light-theme .page-desafios-modern .desafio-card .budget-text{color:#21493A!important;opacity:1!important}
html.mp-light-theme .page-desafios-modern .desafio-value,
html.mp-light-theme .page-desafios-modern .desafio-live-badge{
  background:rgba(255,255,255,.72)!important;color:#176B4C!important;border:1px solid rgba(23,107,76,.13)!important;
}
html.mp-light-theme .page-desafios-modern .desafio-resumo-item,
html.mp-light-theme .page-desafios-modern .desafio-weeks-of-month{
  background:#FFFFFF!important;border:1px solid var(--mp-light-line)!important;color:var(--mp-light-ink)!important;
}
html.mp-light-theme .page-desafios-modern .desafio-resumo-item span{color:#62776C!important}
html.mp-light-theme .page-desafios-modern .desafio-resumo-item b{color:#173D30!important}
html.mp-light-theme .page-desafios-modern .desafio-actions button:first-child{
  background:#F0F5F2!important;color:#536B60!important;border:1px solid #D9E5DF!important;
}
html.mp-light-theme .page-desafios-modern .desafio-actions button:last-child{
  background:#18C985!important;color:#062B1D!important;border:none!important;
}

/* MANUAL — remove caixas e contornos pretos de todos os tópicos */
html.mp-light-theme .page-manual-modern .manual-intro,
html.mp-light-theme .page-manual-modern .manual-chapter,
html.mp-light-theme .page-manual-modern .manual-chapter-head,
html.mp-light-theme .page-manual-modern .manual-chapter-body{
  background:#FFFFFF!important;
  border-color:var(--mp-light-line)!important;
  color:var(--mp-light-ink)!important;
  box-shadow:none!important;
}
html.mp-light-theme .page-manual-modern .manual-chapter{border:1px solid var(--mp-light-line)!important}
html.mp-light-theme .page-manual-modern .manual-chapter-head{color:#214C3B!important}
html.mp-light-theme .page-manual-modern .manual-chapter-body p,
html.mp-light-theme .page-manual-modern .manual-intro{color:#5B7166!important}
html.mp-light-theme .page-manual-modern .manual-chapter-body b,
html.mp-light-theme .page-manual-modern .manual-intro b{color:#173D30!important}
html.mp-light-theme .page-manual-modern .manual-chevron{color:#0A9B63!important}
html.mp-light-theme .page-manual-modern .manual-tip{
  background:#EAF8F2!important;border-color:#CAEADC!important;color:#45685A!important;
}

/* MEU VEÍCULO — hero e todos os blocos informativos claros */
html.mp-light-theme .page-veiculo-modern .vehicle-hero-card{
  background:linear-gradient(135deg,#E4F7EE,#F8FCFA)!important;
  border:1px solid #C7E9D9!important;
  color:var(--mp-light-ink)!important;
  box-shadow:0 7px 22px rgba(20,103,65,.05)!important;
}
html.mp-light-theme .page-veiculo-modern .vehicle-hero-icon{
  background:#FFFFFF!important;color:#0A9B63!important;border:1px solid #CDEBDD!important;
}
html.mp-light-theme .page-veiculo-modern .vehicle-hero-card small{color:#0A8B5A!important}
html.mp-light-theme .page-veiculo-modern .vehicle-hero-card strong{color:#173D30!important}
html.mp-light-theme .page-veiculo-modern .vehicle-hero-card span{color:#5F756A!important}
html.mp-light-theme .page-veiculo-modern .budget-card,
html.mp-light-theme .page-veiculo-modern .planning-form,
html.mp-light-theme .page-veiculo-modern .history-panel,
html.mp-light-theme .page-veiculo-modern .maint-row,
html.mp-light-theme .page-veiculo-modern .maint-card,
html.mp-light-theme .page-veiculo-modern .week-group-head,
html.mp-light-theme .page-veiculo-modern .abastecimento-week-head{
  background:#FFFFFF!important;border:1px solid var(--mp-light-line)!important;color:var(--mp-light-ink)!important;box-shadow:none!important;
}
html.mp-light-theme .page-veiculo-modern .maint-row *,
html.mp-light-theme .page-veiculo-modern .budget-card *{opacity:1}

/* MEU PERFIL — pontuação, Premium, sequências, sonho e conta */
html.mp-light-theme .page-profile-modern .profile-summary-card,
html.mp-light-theme .page-profile-modern .budget-card,
html.mp-light-theme .page-profile-modern .streak-row,
html.mp-light-theme .page-profile-modern .history-panel,
html.mp-light-theme .page-profile-modern .sonho-card,
html.mp-light-theme .page-profile-modern .sonho-info-box,
html.mp-light-theme .page-profile-modern .score-detail-card,
html.mp-light-theme .page-profile-modern .profile-score-card{
  background:#FFFFFF!important;border:1px solid var(--mp-light-line)!important;color:var(--mp-light-ink)!important;box-shadow:none!important;
}
html.mp-light-theme .page-profile-modern .premium-hero-card{
  background:linear-gradient(135deg,#FFF4D5,#FFFBF0)!important;
  border:1px solid #E9D69B!important;
  color:var(--mp-light-ink)!important;
  box-shadow:0 6px 18px rgba(124,92,18,.05)!important;
}
html.mp-light-theme .page-profile-modern .premium-hero-mark{background:#FFF0C2!important;color:#B47D0C!important}
html.mp-light-theme .page-profile-modern .premium-hero-card small{color:#A9760E!important}
html.mp-light-theme .page-profile-modern .premium-hero-card strong{color:#173D30!important}
html.mp-light-theme .page-profile-modern .premium-hero-card span{color:#66796F!important}
html.mp-light-theme .page-profile-modern #perfilScoreBox,
html.mp-light-theme .page-profile-modern #perfilScoreBox *{color:var(--mp-light-ink)!important}
html.mp-light-theme .page-profile-modern #perfilScoreBox [style*="color:#fff"],
html.mp-light-theme .page-profile-modern #perfilScoreBox [style*="color: #fff"]{color:#173D30!important}
html.mp-light-theme .page-profile-modern #perfilScoreBox [style*="color:#CBD2CF"],
html.mp-light-theme .page-profile-modern #perfilScoreBox [style*="color:#E3E7E5"]{color:#60746A!important}
html.mp-light-theme .page-profile-modern #perfilScoreBox [style*="border-top:1px solid rgba(255,255,255"]{border-top-color:#DCE7E1!important}
html.mp-light-theme .page-profile-modern #perfilStreaksBox .streak-row span{color:#4F695C!important}
html.mp-light-theme .page-profile-modern #perfilStreaksBox .streak-row b{color:#D18B13!important}
html.mp-light-theme .page-profile-modern .tool-btn{
  background:#ECF8F2!important;color:#146C4D!important;border:1px solid #CFE9DD!important;
}
html.mp-light-theme .page-profile-modern .profile-summary-card button{background:#E4F7EE!important;color:#087D51!important}

/* NOTAS / AGENDA e cartões legados: proteção contra superfícies escuras esquecidas */
html.mp-light-theme .page-notas-modern .note-card,
html.mp-light-theme .page-notas-modern .agenda-calendar-block,
html.mp-light-theme .page-notas-modern .agenda-panel-block,
html.mp-light-theme .page-notas-modern .agenda-row,
html.mp-light-theme .page-notas-modern .note-view-block,
html.mp-light-theme .page-notas-modern .note-editor-card{
  background:#FFFFFF!important;border-color:var(--mp-light-line)!important;color:var(--mp-light-ink)!important;
}

/* overlays de uso diário também precisam acompanhar o claro */
html.mp-light-theme .journey-start-mode-sheet,
html.mp-light-theme .finance-category-sheet,
html.mp-light-theme .free-answer-modal-sheet,
html.mp-light-theme .feature-modal-sheet,
html.mp-light-theme .smart-km-info-sheet{
  background:#FFFFFF!important;border-color:var(--mp-light-line)!important;color:var(--mp-light-ink)!important;
}
html.mp-light-theme .journey-mode-option,
html.mp-light-theme .finance-category-option,
html.mp-light-theme .home-journey-end-gps>div,
html.mp-light-theme .home-journey-time-choice button{
  background:#F1F8F4!important;border-color:#D7E7DF!important;color:#244C3B!important;
}
html.mp-light-theme .finance-category-option.selected,
html.mp-light-theme .home-journey-time-choice button.active{background:#E2F6EC!important;color:#087D51!important;border-color:#BFE6D3!important}
html.mp-light-theme .home-journey-km-label,
html.mp-light-theme .home-journey-end-gps span,
html.mp-light-theme .home-journey-end-gps small{color:#60776B!important}
html.mp-light-theme .home-journey-end-gps b{color:#173D30!important}

/* contraste final: textos que no tema escuro tinham opacidade/cores brancas fixas */
html.mp-light-theme .page-dark-modern [style*="color:#F4FAF6"],
html.mp-light-theme .page-dark-modern [style*="color: #F4FAF6"],
html.mp-light-theme .page-dark-modern [style*="color:#FFFFFF"],
html.mp-light-theme .page-dark-modern [style*="color: #FFFFFF"]{color:#173D30!important}
html.mp-light-theme .page-dark-modern [style*="color:#AFC1B8"],
html.mp-light-theme .page-dark-modern [style*="color:#BFD1C7"],
html.mp-light-theme .page-dark-modern [style*="color:#CBD2CF"],
html.mp-light-theme .page-dark-modern [style*="color:#E3E7E5"]{color:#60766B!important}

/* mantém as cores funcionais vivas no claro */
html.mp-light-theme .page-financeiro-modern .btn-income{background:#1CCF86!important;color:#062A1C!important}
html.mp-light-theme .page-financeiro-modern .btn-expense{background:#DF5D5D!important;color:#FFFFFF!important}
html.mp-light-theme .page-metas-modern .budget-edit{color:#674DB0!important}
html.mp-light-theme .page-metas-modern .budget-bar-fill,
html.mp-light-theme .page-dark-modern .goal-bar-fill{background:#1BC985!important}
html.mp-light-theme .page-consultor-modern .weekday-compact-bar{background:#20B97A!important}
html.mp-light-theme .page-consultor-modern .weekday-compact-item.best .weekday-compact-bar{background:#E3B94C!important}
html.mp-light-theme .page-consultor-modern .weekday-compact-item.negative .weekday-compact-bar{background:#D85A5A!important}

/* AUDITORIA FINAL — componentes que tinham regras escuras tardias */
html.mp-light-theme .page-home-modern .home-notification-btn{
  background:#FFFFFF!important;color:#0A8D5B!important;border:1px solid #CFE7DB!important;box-shadow:0 5px 16px rgba(24,77,53,.045)!important;
}
html.mp-light-theme .page-home-modern .notification-badge{border-color:#FFFFFF!important}
html.mp-light-theme .page-financeiro-modern .finance-journey-live-card{
  background:linear-gradient(135deg,#E6F8EF,#F8FCFA)!important;border:1px solid #BFE8D4!important;color:#173D30!important;
}
html.mp-light-theme .page-financeiro-modern .finance-journey-active-title,
html.mp-light-theme .page-financeiro-modern .finance-journey-live-top strong,
html.mp-light-theme .page-financeiro-modern .finance-journey-live-stats b{color:#173D30!important}
html.mp-light-theme .page-financeiro-modern .finance-journey-live-stats div{background:#FFFFFF!important;border-color:#D7E6DE!important}
html.mp-light-theme .page-financeiro-modern .finance-journey-live-stats span{color:#62776C!important}
html.mp-light-theme .page-metas-modern .metas-challenge-spotlight{
  background:linear-gradient(135deg,#FFF3D1,#F8FCFA)!important;border:1px solid #E6D39A!important;
}
html.mp-light-theme .page-metas-modern .metas-challenge-copy strong{color:#173D30!important}
html.mp-light-theme .page-metas-modern .metas-challenge-copy span{color:#61766B!important}
html.mp-light-theme .page-metas-modern .metas-challenge-copy small{color:#AA780D!important}
html.mp-light-theme .page-dark-modern .tool-btn,
html.mp-light-theme .page-dark-modern .maint-chip-btn,
html.mp-light-theme .page-dark-modern .notes-agenda-btn,
html.mp-light-theme .page-dark-modern .history-toggle:not(.challenge-accept),
html.mp-light-theme .page-dark-modern button.cat-btn{
  background:#ECF8F2!important;color:#146C4D!important;border:1px solid #CFE9DD!important;box-shadow:none!important;
}
html.mp-light-theme .page-veiculo-modern #kmHistoryPanel .km-history-row,
html.mp-light-theme .page-veiculo-modern .km-history-detail,
html.mp-light-theme .page-veiculo-modern .day-detail,
html.mp-light-theme .page-veiculo-modern .week-detail{
  background:#FFFFFF!important;border-color:#D8E6DF!important;color:#173D30!important;
}
html.mp-light-theme .page-veiculo-modern #kmHistoryPanel .km-history-date,
html.mp-light-theme .page-veiculo-modern #kmHistoryPanel .km-history-detail b,
html.mp-light-theme .page-veiculo-modern .km-history-detail b,
html.mp-light-theme .page-veiculo-modern .day-detail b{color:#173D30!important}
html.mp-light-theme .page-veiculo-modern #kmHistoryPanel .km-history-stat,
html.mp-light-theme .page-veiculo-modern #kmHistoryPanel .km-history-detail,
html.mp-light-theme .page-veiculo-modern #kmHistoryPanel .km-history-detail span,
html.mp-light-theme .page-veiculo-modern .km-history-detail *,
html.mp-light-theme .page-veiculo-modern .day-detail *,
html.mp-light-theme .page-veiculo-modern .week-detail *{color:#60766B!important}
html.mp-light-theme .page-veiculo-modern .maint-feito-submenu{background:#EFF8F4!important;border-color:#D2E8DD!important;color:#526F61!important}
html.mp-light-theme .page-profile-modern .carta-evolucao,
html.mp-light-theme .page-profile-modern .carta-evolucao p{color:#526F61!important}
html.mp-light-theme .page-profile-modern .carta-evolucao .carta-titulo{color:#173D30!important}
html.mp-light-theme .page-profile-modern .carta-evolucao b,
html.mp-light-theme .page-profile-modern .carta-evolucao .carta-economia{color:#078A59!important}
html.mp-light-theme .page-profile-modern .carta-fechamento{color:#60766B!important;border-top-color:#DCE7E1!important}
html.mp-light-theme .page-desafios-modern .achievement-card{
  background:#FFFFFF!important;border:1px solid #D8E6DF!important;color:#173D30!important;box-shadow:0 5px 16px rgba(24,75,53,.04)!important;
}
html.mp-light-theme .page-desafios-modern .achievements-grid .achievement-card:nth-child(2).unlocked{
  background:linear-gradient(145deg,#FFF5D9,#FFFFFF)!important;border-color:#E8D49B!important;
}
html.mp-light-theme .page-desafios-modern .achievement-title{color:#173D30!important}
html.mp-light-theme .page-desafios-modern .achievement-card .achievement-detail,
html.mp-light-theme .page-desafios-modern .achievement-card .achievement-value,
html.mp-light-theme .page-desafios-modern .achievement-card .achievement-month,
html.mp-light-theme .page-desafios-modern .achievement-card .achievement-month-detail{color:#087D51!important}
html.mp-light-theme .page-manual-modern .manual-final-tip{background:linear-gradient(135deg,#FFF5D9,#FFFCF4)!important;border-color:#E8D49B!important;color:#5D6F66!important}
html.mp-light-theme .page-manual-modern .manual-final-tip b{color:#A9760E!important}
html.mp-light-theme .notification-challenge-card{
  background:linear-gradient(135deg,#FFF4D7,#FFFFFF)!important;border-color:#E7D6A5!important;color:#173D30!important;
}
html.mp-light-theme .notification-challenge-card strong{color:#173D30!important}
html.mp-light-theme .notification-challenge-card em{color:#60766B!important}
html.mp-light-theme .notification-challenge-card small,
html.mp-light-theme .notification-challenge-card b{color:#A9760E!important}
html.mp-light-theme .notification-center-head strong{color:#173D30!important}
html.mp-light-theme .notification-center-head button{background:#FFFFFF!important;border-color:#D8E6DF!important;color:#60766B!important}

/* ==========================================================
   MODO CLARO — PALETA DEFINITIVA v4
   Off-white + cards brancos + grafite + esmeralda + âmbar.
   Mantém o tema escuro original sem alterações.
   ========================================================== */
html.mp-light-theme{
  --mp-light-bg:#F5F7F6;
  --mp-light-card:#FFFFFF;
  --mp-light-soft:#E1F7ED;
  --mp-light-soft-2:#F8F9FA;
  --mp-light-line:#E2E8E5;
  --mp-light-ink:#111827;
  --mp-light-muted:#6B7280;
  --mp-light-green:#10B981;
  --mp-light-green-bright:#10B981;
  --mp-light-gold:#D6A936;
  --mp-light-amber:#D97706;
  --mp-light-red:#EF5B5B;
  --mp-light-red-soft:#FDECEC;
  --mp-light-nav:#7B8782;
}
html.mp-light-theme body,
html.mp-light-theme .page-home-modern,
html.mp-light-theme .page-dark-modern,
html.mp-light-theme .page-financeiro-modern,
html.mp-light-theme .page-consultor-modern,
html.mp-light-theme .page-metas-modern,
html.mp-light-theme .page-desafios-modern,
html.mp-light-theme .page-veiculo-modern,
html.mp-light-theme .page-profile-modern,
html.mp-light-theme .page-manual-modern,
html.mp-light-theme .page-notas-modern{
  --home-bg:#F5F7F6;--home-surface:#FFFFFF;--home-surface-2:#F8F9FA;--home-line:#E2E8E5;
  --home-green:#10B981;--home-green-2:#059669;--home-green-soft:#E1F7ED;--home-gold:#D6A936;
  --home-white:#111827;--home-muted:#6B7280;
  --page-bg:#F5F7F6;--page-surface:#FFFFFF;--page-surface-2:#F8F9FA;--page-line:#E2E8E5;
  --page-green:#10B981;--page-gold:#D6A936;--page-white:#111827;--page-muted:#6B7280;
  --green:#10B981;--green-deep:#059669;--red:#EF5B5B;--red-deep:#DC4444;
  --ink:#111827;--ink-soft:#6B7280;--ink-faint:#8A9490;
  --surface:#FFFFFF;--surface-alt:#F8F9FA;--line:#E2E8E5;--bg:#F5F7F6;
  --mp-positive:#059669;--mp-negative:#DC4444;--mp-text-light:#111827;--mp-text-muted:#6B7280;
  background:#F5F7F6!important;color:#111827!important;
}

/* Cabeçalhos: toque verde muito leve para o tema não ficar morto */
html.mp-light-theme .modern-page-header,
html.mp-light-theme .home-header-modern{
  background:linear-gradient(135deg,rgba(225,247,237,.88),rgba(255,255,255,.18))!important;
}
html.mp-light-theme .modern-page-header h1,
html.mp-light-theme .home-greeting-block h1,
html.mp-light-theme .page-dark-modern h1,
html.mp-light-theme .page-dark-modern h2,
html.mp-light-theme .page-dark-modern h3{color:#111827!important}
html.mp-light-theme .modern-page-header p,
html.mp-light-theme .home-greeting-block p{color:#6B7280!important}
html.mp-light-theme .modern-page-kicker,
html.mp-light-theme .home-kicker{color:#047857!important}

/* Superfícies estruturais: no claro são brancas, nunca verde-preto */
html.mp-light-theme .home-performance-panel,
html.mp-light-theme .home-metrics-grid,
html.mp-light-theme .home-metric-card,
html.mp-light-theme .home-smart-card,
html.mp-light-theme .finance-overview-strip>*,
html.mp-light-theme .recorrentes-toggle,
html.mp-light-theme .form-box,
html.mp-light-theme .week-group-head,
html.mp-light-theme .month-evaluation,
html.mp-light-theme .eval-card,
html.mp-light-theme .consultor-card,
html.mp-light-theme .consultor-section,
html.mp-light-theme .weekday-performance-card,
html.mp-light-theme .budget-card,
html.mp-light-theme .planning-form,
html.mp-light-theme .goal-card,
html.mp-light-theme .history-panel,
html.mp-light-theme .vehicle-card,
html.mp-light-theme .maint-row,
html.mp-light-theme .profile-summary-card,
html.mp-light-theme .streak-row,
html.mp-light-theme .sonho-card,
html.mp-light-theme .logout-card,
html.mp-light-theme .manual-intro,
html.mp-light-theme .manual-chapter,
html.mp-light-theme .manual-chapter-head,
html.mp-light-theme .manual-chapter-body,
html.mp-light-theme .note-card,
html.mp-light-theme .agenda-card{
  background:#FFFFFF!important;
  border-color:#E2E8E5!important;
  color:#111827!important;
  box-shadow:0 5px 16px rgba(17,24,39,.045)!important;
}

/* HOME */
html.mp-light-theme .page-home-modern .home-daily-message-featured{
  background:linear-gradient(135deg,#FFF8E8,#FFFFFF)!important;border-color:#F1E2B9!important;
}
html.mp-light-theme .page-home-modern .home-daily-message-featured strong,
html.mp-light-theme .page-home-modern .home-daily-message-featured b{color:#B7791F!important;opacity:1!important}
html.mp-light-theme .page-home-modern .home-daily-message-featured p,
html.mp-light-theme .page-home-modern .home-daily-message-featured span{color:#6B7280!important;opacity:1!important}
html.mp-light-theme .page-home-modern .balance-card{
  background:linear-gradient(145deg,#E7F8F0,#DDF5E9)!important;border-color:#C8EADB!important;
}
html.mp-light-theme .page-home-modern .home-metric-card span{color:#6B7280!important;opacity:1!important}
html.mp-light-theme .page-home-modern .home-metric-card strong{color:#111827!important;opacity:1!important}
html.mp-light-theme .page-home-modern .home-smart-card.home-journey-card{
  background:#FFFFFF!important;border-color:#BFE8D5!important;
}
html.mp-light-theme .page-home-modern .home-journey-main-label{color:#047857!important;opacity:1!important}
html.mp-light-theme .page-home-modern .topbar-veiculo-badge{background:#FFFFFF!important;color:#047857!important;border-color:#D5E9DF!important}

/* FINANCEIRO */
html.mp-light-theme .page-financeiro-modern .cat-btn,
html.mp-light-theme .page-financeiro-modern .category-btn,
html.mp-light-theme .page-financeiro-modern .voice-btn{
  background:#FFFFFF!important;color:#374151!important;border:1px solid #DCE5E1!important;
  box-shadow:0 3px 10px rgba(17,24,39,.035)!important;
}
html.mp-light-theme .page-financeiro-modern .voice-btn{color:#047857!important}
html.mp-light-theme .page-financeiro-modern .month-evaluation,
html.mp-light-theme .page-financeiro-modern .eval-card{background:#FFFFFF!important}
html.mp-light-theme .page-financeiro-modern .month-evaluation h3,
html.mp-light-theme .page-financeiro-modern .eval-card h3{color:#111827!important;opacity:1!important}
html.mp-light-theme .page-financeiro-modern .month-evaluation p,
html.mp-light-theme .page-financeiro-modern .month-evaluation li,
html.mp-light-theme .page-financeiro-modern .eval-card p,
html.mp-light-theme .page-financeiro-modern .eval-card li{color:#6B7280!important;opacity:1!important}
html.mp-light-theme .page-financeiro-modern .btn-income{background:#10B981!important;color:#FFFFFF!important}
html.mp-light-theme .page-financeiro-modern .btn-expense{background:#EF5B5B!important;color:#FFFFFF!important}
html.mp-light-theme .page-financeiro-modern .recorrentes-toggle{background:linear-gradient(135deg,#E1F7ED,#FFFFFF)!important}

/* CONSULTOR */
html.mp-light-theme .page-consultor-modern .consultor-hero-card{
  background:linear-gradient(135deg,#FFF8E7,#FFFFFF)!important;border-color:#EBDDAE!important;
}
html.mp-light-theme .page-consultor-modern .weekday-performance-card{background:#FFFFFF!important}
html.mp-light-theme .page-consultor-modern .weekday-grid-lines i{background:#E5E7EB!important}
html.mp-light-theme .page-consultor-modern .weekday-axis,
html.mp-light-theme .page-consultor-modern .weekday-compact-day{color:#6B7280!important}
html.mp-light-theme .page-consultor-modern .weekday-detail{background:#F8F9FA!important;color:#6B7280!important;border:1px solid #E5E7EB!important}
html.mp-light-theme .page-consultor-modern .free-question,
html.mp-light-theme .page-consultor-modern .modern-action-btn,
html.mp-light-theme .page-consultor-modern .tool-btn{background:#FFFFFF!important;color:#047857!important;border-color:#DCE8E2!important}

/* METAS: claros com acentos, sem grandes gradientes escuros */
html.mp-light-theme .page-metas-modern .metas-evolution-card,
html.mp-light-theme .page-metas-modern .metas-evolution-card.score-challenge,
html.mp-light-theme .page-metas-modern .metas-evolution-card.achievement{
  background:#FFFFFF!important;border-color:#CDE9DC!important;color:#111827!important;
  box-shadow:0 5px 16px rgba(16,185,129,.075)!important;
}
html.mp-light-theme .page-metas-modern .metas-evolution-card.score-challenge{border-color:#EAD9A5!important}
html.mp-light-theme .page-metas-modern .metas-evolution-card.achievement{border-color:#E8D8A3!important}
html.mp-light-theme .page-metas-modern .metas-evolution-card-icon{background:#E1F7ED!important}
html.mp-light-theme .page-metas-modern .metas-evolution-card.score-challenge .metas-evolution-card-icon,
html.mp-light-theme .page-metas-modern .metas-evolution-card.achievement .metas-evolution-card-icon{background:#FFF6D9!important}
html.mp-light-theme .page-metas-modern .metas-evolution-card-copy b{color:#111827!important}
html.mp-light-theme .page-metas-modern .metas-evolution-card-copy small{color:#6B7280!important}
html.mp-light-theme .page-metas-modern .goal-card{background:#FFFFFF!important;border-color:#E2E8E5!important}
html.mp-light-theme .page-metas-modern .goal-card *{opacity:1}

/* DESAFIOS: todos os cards brancos; a categoria fica no acento */
html.mp-light-theme .page-desafios-modern .desafio-card,
html.mp-light-theme .page-desafios-modern .desafio-card.done,
html.mp-light-theme .page-desafios-modern .desafio-card.week,
html.mp-light-theme .page-desafios-modern .desafio-card.month{
  background:#FFFFFF!important;color:#111827!important;border:1px solid #E2E8E5!important;
  box-shadow:0 5px 16px rgba(17,24,39,.045)!important;
}
html.mp-light-theme .page-desafios-modern .desafio-card h3,
html.mp-light-theme .page-desafios-modern .desafio-card .desafio-msg,
html.mp-light-theme .page-desafios-modern .desafio-card .desafio-desc{color:#111827!important;opacity:1!important}
html.mp-light-theme .page-desafios-modern .desafio-card .budget-text{color:#6B7280!important;opacity:1!important}
html.mp-light-theme .page-desafios-modern .desafio-value,
html.mp-light-theme .page-desafios-modern .desafio-live-badge{background:#E1F7ED!important;color:#047857!important;border-color:#CBECDD!important}

/* MAIS */
html.mp-light-theme .more-account-strip,
html.mp-light-theme .more-menu-card,
html.mp-light-theme .more-premium-card{background:#FFFFFF!important;border-color:#DCE8E2!important;box-shadow:0 4px 14px rgba(17,24,39,.045)!important}
html.mp-light-theme .more-menu-icon{background:#E1F7ED!important;color:#059669!important;border-color:#CDEBDD!important}
html.mp-light-theme .more-menu-card strong,
html.mp-light-theme .more-account-strip strong{color:#111827!important}
html.mp-light-theme .more-menu-card small,
html.mp-light-theme .more-account-strip span{color:#6B7280!important}

/* MANUAL / VEÍCULO / PERFIL */
html.mp-light-theme .page-manual-modern .manual-chapter-head{background:#FFFFFF!important;color:#111827!important;border-color:#E2E8E5!important}
html.mp-light-theme .page-manual-modern .manual-chapter-body p,
html.mp-light-theme .page-manual-modern .manual-chapter-body li{color:#6B7280!important}
html.mp-light-theme .page-manual-modern .manual-chapter-body b{color:#111827!important}
html.mp-light-theme .page-veiculo-modern .vehicle-hero-card{background:linear-gradient(135deg,#E1F7ED,#FFFFFF)!important;border-color:#CBECDD!important}
html.mp-light-theme .page-veiculo-modern .vehicle-hero-card strong{color:#111827!important}
html.mp-light-theme .page-veiculo-modern .vehicle-hero-card span{color:#6B7280!important}
html.mp-light-theme .page-profile-modern #perfilAssinaturaCard,
html.mp-light-theme .page-profile-modern .premium-hero-card{background:linear-gradient(135deg,#FFF8E7,#FFFFFF)!important;border-color:#E9DDB8!important}
html.mp-light-theme .page-profile-modern .streak-row,
html.mp-light-theme .page-profile-modern .sonho-card,
html.mp-light-theme .page-profile-modern .profile-score-card{background:#FFFFFF!important;border-color:#E2E8E5!important}

/* Campos */
html.mp-light-theme input,
html.mp-light-theme select,
html.mp-light-theme textarea,
html.mp-light-theme .home-journey-km-input,
html.mp-light-theme .home-journey-time-input{
  background:#FFFFFF!important;color:#111827!important;border-color:#D1D5DB!important;color-scheme:light!important;
}
html.mp-light-theme input::placeholder,
html.mp-light-theme textarea::placeholder{color:#9CA3AF!important}

/* Bottom bar */
html.mp-light-theme .bottom-nav-inner{background:#FFFFFF!important;border-color:#E5E7EB!important;box-shadow:0 -5px 18px rgba(17,24,39,.06)!important}
html.mp-light-theme .bottom-nav .nav-btn{color:#7B8782!important}
html.mp-light-theme .bottom-nav .nav-btn.active{color:#059669!important;background:#E1F7ED!important}

/* Switch */
html.mp-light-theme .mp-theme-switch-track{background:#D1D5DB!important;border-color:#D1D5DB!important}
html.mp-light-theme .mp-theme-switch-thumb{background:#FFFFFF!important}

/* Segurança de contraste para textos claros herdados do escuro */
html.mp-light-theme .page-dark-modern [style*="color:#F4FAF6"],
html.mp-light-theme .page-dark-modern [style*="color: #F4FAF6"],
html.mp-light-theme .page-dark-modern [style*="color:#FFFFFF"],
html.mp-light-theme .page-dark-modern [style*="color: #FFFFFF"],
html.mp-light-theme .page-dark-modern [style*="color:#fff"],
html.mp-light-theme .page-dark-modern [style*="color: #fff"]{color:#111827!important}
html.mp-light-theme .page-dark-modern [style*="color:#AFC1B8"],
html.mp-light-theme .page-dark-modern [style*="color:#CBD2CF"],
html.mp-light-theme .page-dark-modern [style*="color:#E3E7E5"]{color:#6B7280!important}

/* ==========================================================
   MODO CLARO — AUDITORIA DE CONTRASTE v5
   Correções finais pedidas após teste em aparelho.
   ========================================================== */
html.mp-light-theme .page-home-modern .home-avatar-btn,
html.mp-light-theme .page-home-modern .app-topbar-avatar{
  background:#FFFFFF!important;
  color:#059669!important;
  border:1px solid #D6E9DF!important;
  box-shadow:0 4px 14px rgba(17,24,39,.055)!important;
}
html.mp-light-theme .page-home-modern .home-avatar-btn #topbarAvatarLabel{color:#059669!important}

/* Iniciar jornada: texto bem legível no branco */
html.mp-light-theme .page-home-modern .home-smart-card.home-journey-card .home-journey-main-label,
html.mp-light-theme .page-home-modern #homeJourneyTitle{
  color:#111827!important;
  opacity:1!important;
  text-shadow:none!important;
}

/* Pontuação da Home: modal inteiro claro, inclusive card interno */
html.mp-light-theme #healthDetailModal .health-modal-sheet,
html.mp-light-theme #healthDetailModal .app-dark-modal-sheet{
  background:#F5F7F6!important;
  border-color:#DDE7E2!important;
  color:#111827!important;
}
html.mp-light-theme #healthDetailModal .health-card,
html.mp-light-theme #healthDetailModal #healthCard{
  background:#FFFFFF!important;
  border:1px solid #E2E8E5!important;
  color:#111827!important;
  box-shadow:0 8px 24px rgba(17,24,39,.07)!important;
}
html.mp-light-theme #healthDetailModal .health-card::before{display:none!important}
html.mp-light-theme #healthDetailModal .health-score-label,
html.mp-light-theme #healthDetailModal .health-score,
html.mp-light-theme #healthDetailModal .health-score-max,
html.mp-light-theme #healthDetailModal .health-factor-label,
html.mp-light-theme #healthDetailModal .health-goal-line,
html.mp-light-theme #healthDetailModal .health-info-title,
html.mp-light-theme #healthDetailModal .health-info-row,
html.mp-light-theme #healthDetailModal .health-info-row b,
html.mp-light-theme #healthDetailModal .score-history-value{
  color:#111827!important;
}
html.mp-light-theme #healthDetailModal .health-subtitle,
html.mp-light-theme #healthDetailModal .health-history,
html.mp-light-theme #healthDetailModal .health-line,
html.mp-light-theme #healthDetailModal .health-info-example,
html.mp-light-theme #healthDetailModal .health-info-footer,
html.mp-light-theme #healthDetailModal .score-history-month,
html.mp-light-theme #healthDetailModal .score-history-empty,
html.mp-light-theme #healthDetailModal .score-history-delta{
  color:#6B7280!important;
}
html.mp-light-theme #healthDetailModal .history-panel{
  background:#F8FAF9!important;border:1px solid #E2E8E5!important;color:#111827!important;
}
html.mp-light-theme #healthDetailModal .history-toggle{color:#047857!important;text-decoration-color:#A7D8C3!important}
html.mp-light-theme #healthDetailModal .health-bar-track,
html.mp-light-theme #healthDetailModal .health-factor-track,
html.mp-light-theme #healthDetailModal .score-history-track{background:#E5E7EB!important}
html.mp-light-theme #healthDetailModal .health-bar-fill,
html.mp-light-theme #healthDetailModal .health-factor-fill{background:#10B981!important}
html.mp-light-theme #healthDetailModal .health-factor-fill.full{background:#10B981!important}
html.mp-light-theme #healthDetailModal .health-factor-fill.low{background:#EF5B5B!important}
html.mp-light-theme #healthDetailModal .health-info-footer{border-top-color:#E5E7EB!important}

/* Banner/troféu e pontuação compacta: sem quadrado duro/preto */
html.mp-light-theme .page-home-modern .health-card-compact,
html.mp-light-theme .page-home-modern .balance-card>.health-card-compact{
  background:#FFFFFF!important;
  border:1px solid #E5E7EB!important;
  box-shadow:0 3px 10px rgba(17,24,39,.035)!important;
}
html.mp-light-theme .page-home-modern .health-compact-icon{background:#FFF7DF!important;border-color:#F0DFAB!important}
html.mp-light-theme .page-home-modern .health-compact-label,
html.mp-light-theme .page-home-modern .health-compact-score-row,
html.mp-light-theme .page-home-modern .health-compact-score-row *{color:#111827!important;opacity:1!important}
html.mp-light-theme .page-home-modern .health-status-compact,
html.mp-light-theme .page-home-modern .health-compact-chevron{color:#6B7280!important}
html.mp-light-theme .page-home-modern .health-bar-track-compact{background:#E5E7EB!important}

/* Financeiro: expandíveis e valores recorrentes */
html.mp-light-theme .page-financeiro-modern .day-group,
html.mp-light-theme .page-financeiro-modern .day-group-head,
html.mp-light-theme .page-financeiro-modern .week-group,
html.mp-light-theme .page-financeiro-modern .week-group-head,
html.mp-light-theme .page-financeiro-modern .history-toggle,
html.mp-light-theme .page-financeiro-modern .history-panel,
html.mp-light-theme .page-financeiro-modern #recorrentesExpandable .budget-card,
html.mp-light-theme .page-financeiro-modern #recorrentesList .budget-card,
html.mp-light-theme .page-financeiro-modern .recorrente-row{
  background:#FFFFFF!important;
  border-color:#E2E8E5!important;
  color:#111827!important;
  box-shadow:none!important;
}
html.mp-light-theme .page-financeiro-modern #recorrentesExpandable .legend-amount,
html.mp-light-theme .page-financeiro-modern #recorrentesList .legend-amount,
html.mp-light-theme .page-financeiro-modern .recorrente-valor,
html.mp-light-theme .page-financeiro-modern .recorrente-row strong,
html.mp-light-theme .page-financeiro-modern .recorrente-row b{
  color:#111827!important;opacity:1!important;
}
html.mp-light-theme .page-financeiro-modern #recorrentesExpandable .budget-text,
html.mp-light-theme .page-financeiro-modern #recorrentesList .budget-text,
html.mp-light-theme .page-financeiro-modern .recorrente-row span,
html.mp-light-theme .page-financeiro-modern .recorrente-row small{color:#6B7280!important;opacity:1!important}

/* Consultor: Melhor dia da semana realmente claro */
html.mp-light-theme .page-consultor-modern .weekday-performance-card,
html.mp-light-theme .page-consultor-modern .weekday-performance-card>*{
  border-color:#E2E8E5!important;
}
html.mp-light-theme .page-consultor-modern .weekday-performance-card{
  background:#FFFFFF!important;
  color:#111827!important;
  box-shadow:0 5px 16px rgba(17,24,39,.045)!important;
}
html.mp-light-theme .page-consultor-modern .weekday-performance-card h2,
html.mp-light-theme .page-consultor-modern .weekday-performance-card h3,
html.mp-light-theme .page-consultor-modern .weekday-performance-card strong{color:#111827!important;opacity:1!important}
html.mp-light-theme .page-consultor-modern .weekday-performance-card p,
html.mp-light-theme .page-consultor-modern .weekday-performance-card span:not(.weekday-compact-bar),
html.mp-light-theme .page-consultor-modern .weekday-performance-card small{color:#6B7280!important;opacity:1!important}

/* Dicas com lâmpada / onboarding contextual: sempre claras */
html.mp-light-theme .hint-card,
html.mp-light-theme .page-dark-modern .hint-card,
html.mp-light-theme .page-home-modern .hint-card,
html.mp-light-theme .page-financeiro-modern .hint-card,
html.mp-light-theme .page-metas-modern .hint-card,
html.mp-light-theme .page-veiculo-modern .hint-card,
html.mp-light-theme .page-profile-modern .hint-card,
html.mp-light-theme .page-notas-modern .hint-card{
  background:#FFFBEF!important;
  border:1px solid #F0E1B7!important;
  color:#374151!important;
  box-shadow:0 3px 12px rgba(17,24,39,.03)!important;
}
html.mp-light-theme .hint-card .hint-text,
html.mp-light-theme .page-dark-modern .hint-card .hint-text{color:#4B5563!important;opacity:1!important}
html.mp-light-theme .hint-card .hint-close,
html.mp-light-theme .page-dark-modern .hint-card .hint-close{color:#9A7A24!important}

/* Desafios e conquistas: elimina qualquer fundo escuro residual */
html.mp-light-theme .page-desafios-modern .desafio-card,
html.mp-light-theme .page-desafios-modern .achievement-card,
html.mp-light-theme .page-desafios-modern .challenge-card,
html.mp-light-theme .page-desafios-modern .daily-challenge-card,
html.mp-light-theme .page-desafios-modern .weekly-challenge-card,
html.mp-light-theme .page-desafios-modern .monthly-challenge-card{
  background:#FFFFFF!important;
  border-color:#E2E8E5!important;
  color:#111827!important;
}
html.mp-light-theme .page-desafios-modern .achievement-card *,
html.mp-light-theme .page-desafios-modern .desafio-card *{opacity:1}
html.mp-light-theme .page-desafios-modern .achievement-title,
html.mp-light-theme .page-desafios-modern .desafio-card h3{color:#111827!important}

/* Perfil: avatar, resumo e pontuação sem bloco preto */
html.mp-light-theme .page-profile-modern .profile-avatar-modern{
  background:#E1F7ED!important;color:#047857!important;border-color:#CBECDD!important;box-shadow:none!important;
}
html.mp-light-theme .page-profile-modern .profile-summary-card,
html.mp-light-theme .page-profile-modern #perfilScoreBox,
html.mp-light-theme .page-profile-modern #perfilScoreBox .perfil-score-card,
html.mp-light-theme .page-profile-modern .perfil-score-card{
  background:#FFFFFF!important;
  border-color:#E2E8E5!important;
  color:#111827!important;
  box-shadow:0 4px 14px rgba(17,24,39,.04)!important;
}
html.mp-light-theme .page-profile-modern .perfil-score-icon{background:#FFF7DF!important}
html.mp-light-theme .page-profile-modern .perfil-score-copy>small{color:#B7791F!important}
html.mp-light-theme .page-profile-modern .perfil-score-number strong,
html.mp-light-theme .page-profile-modern .perfil-score-number em,
html.mp-light-theme .page-profile-modern .perfil-score-status{color:#111827!important}
html.mp-light-theme .page-profile-modern .perfil-score-status{color:#6B7280!important}
html.mp-light-theme .page-profile-modern .perfil-score-track{background:#E5E7EB!important}
html.mp-light-theme .page-profile-modern .perfil-score-chevron{color:#B7791F!important}

/* Veículo: cards e dados sem superfícies antigas */
html.mp-light-theme .page-veiculo-modern .vehicle-section-block .budget-card,
html.mp-light-theme .page-veiculo-modern #perfilVeiculoCard,
html.mp-light-theme .page-veiculo-modern #consumoVeiculoCard,
html.mp-light-theme .page-veiculo-modern .maint-card,
html.mp-light-theme .page-veiculo-modern .maint-row{
  background:#FFFFFF!important;border-color:#E2E8E5!important;color:#111827!important;
}

/* Manual: cabeçalhos e contornos claros */
html.mp-light-theme .page-manual-modern .manual-chapter,
html.mp-light-theme .page-manual-modern .manual-chapter-head,
html.mp-light-theme .page-manual-modern .manual-chapter-body{
  background:#FFFFFF!important;border-color:#E2E8E5!important;color:#111827!important;
  box-shadow:none!important;
}
html.mp-light-theme .page-manual-modern .manual-chevron{color:#059669!important}

/* Metas: trilho da meta visível no claro */
html.mp-light-theme .page-metas-modern .budget-bar-track,
html.mp-light-theme .page-metas-modern .goal-bar-track,
html.mp-light-theme .page-metas-modern .challenge-progress-track,
html.mp-light-theme .challenge-progress-track{
  background:#DDE3E0!important;
  border:1px solid #D5DDD9!important;
}
html.mp-light-theme .page-metas-modern .budget-bar-fill,
html.mp-light-theme .page-metas-modern .goal-bar-fill,
html.mp-light-theme .challenge-progress-track span{background:#10B981!important}

/* Textos cinza/brancos inline que ainda vinham do tema escuro */
html.mp-light-theme .page-home-modern [style*="opacity:.3"],
html.mp-light-theme .page-home-modern [style*="opacity: .3"]{opacity:1!important}

/* ==========================================================
   MODO CLARO — AUDITORIA v6
   Ajustes específicos após teste real em aparelho.
   ========================================================== */

/* 1) DESAFIO DE PONTUAÇÃO — modal disponível/aceitar totalmente claro */
html.mp-light-theme #challengeProgressModal .challenge-progress-sheet,
html.mp-light-theme #challengeProgressModal .app-dark-modal-sheet{
  background:#F5F7F6!important;
  border:1px solid #DDE7E2!important;
  color:#111827!important;
  box-shadow:0 18px 48px rgba(17,24,39,.16)!important;
}
html.mp-light-theme #challengeProgressModal .feature-modal-head,
html.mp-light-theme #challengeProgressModal .feature-modal-head strong{color:#111827!important}
html.mp-light-theme #challengeProgressModal .feature-modal-head small{color:#B7791F!important}
html.mp-light-theme #challengeProgressModal .feature-modal-head button{
  background:#FFFFFF!important;color:#374151!important;border:1px solid #E2E8E5!important;
}
html.mp-light-theme #challengeProgressModal .challenge-progress-objective{
  background:linear-gradient(135deg,#FFF7DF,#FFFFFF)!important;
  border:1px solid #EAD8A3!important;
}
html.mp-light-theme #challengeProgressModal .challenge-progress-objective small,
html.mp-light-theme #challengeProgressModal .challenge-progress-details>small{color:#A16207!important}
html.mp-light-theme #challengeProgressModal .challenge-progress-objective strong,
html.mp-light-theme #challengeProgressModal .challenge-progress-score,
html.mp-light-theme #challengeProgressModal .challenge-progress-score strong,
html.mp-light-theme #challengeProgressModal .challenge-progress-score b,
html.mp-light-theme #challengeProgressModal .challenge-progress-remaining,
html.mp-light-theme #challengeProgressModal .challenge-progress-remaining b,
html.mp-light-theme #challengeProgressModal .challenge-progress-line,
html.mp-light-theme #challengeProgressModal .challenge-progress-reward{
  color:#111827!important;opacity:1!important;
}
html.mp-light-theme #challengeProgressModal .challenge-progress-meta span,
html.mp-light-theme #challengeProgressModal .challenge-progress-details{
  background:#FFFFFF!important;border:1px solid #E2E8E5!important;color:#111827!important;
}
html.mp-light-theme #challengeProgressModal .challenge-progress-meta small{color:#6B7280!important}
html.mp-light-theme #challengeProgressModal .challenge-progress-meta b{color:#111827!important}
html.mp-light-theme #challengeProgressModal .challenge-progress-reward{
  background:#FFF7DF!important;border:1px solid #F0DFAB!important;
}
html.mp-light-theme #challengeProgressModal .challenge-progress-reward b{color:#A16207!important}
html.mp-light-theme #challengeProgressModal .challenge-progress-track{background:#DDE3E0!important;border:1px solid #D5DDD9!important}
html.mp-light-theme #challengeProgressModal .challenge-progress-track span{background:#10B981!important}
html.mp-light-theme #challengeProgressModal .challenge-accept{
  background:#10B981!important;color:#FFFFFF!important;border-color:#10B981!important;opacity:1!important;
}

/* 2) FINANCEIRO — área revelada ao expandir data/semana em verde suave */
html.mp-light-theme .page-financeiro-modern .week-group-days,
html.mp-light-theme .page-financeiro-modern .day-group-rows{
  background:linear-gradient(145deg,#E1F7ED,#F5FBF8)!important;
  border-color:#CBECDD!important;
  color:#111827!important;
}
html.mp-light-theme .page-financeiro-modern .day-group-rows .row{
  background:transparent!important;
  border-color:#CFE5D9!important;
  color:#111827!important;
}
html.mp-light-theme .page-financeiro-modern .day-group-rows .row .desc,
html.mp-light-theme .page-financeiro-modern .day-group-rows .launch-desc-text{color:#111827!important;opacity:1!important}
html.mp-light-theme .page-financeiro-modern .day-group-rows .row .date,
html.mp-light-theme .page-financeiro-modern .day-group-rows .row .running{color:#53665D!important;opacity:1!important}
html.mp-light-theme .page-financeiro-modern .day-group-rows select,
html.mp-light-theme .page-financeiro-modern .day-group-rows input{
  background:#FFFFFF!important;color:#111827!important;border-color:#CFE0D8!important;
}

/* 3) CONSULTOR — Melhor dia da semana usa .consultor-insights-card, não weekday-performance-card */
html.mp-light-theme .page-consultor-modern .simulator-card.consultor-insights-card,
html.mp-light-theme .page-consultor-modern .consultor-insights-card,
html.mp-light-theme .page-consultor-modern .consultor-insights-card .consultor-simulator-inline{
  background:#FFFFFF!important;
  border-color:#E2E8E5!important;
  color:#111827!important;
  box-shadow:0 5px 16px rgba(17,24,39,.045)!important;
}
html.mp-light-theme .page-consultor-modern .consultor-insights-card h3,
html.mp-light-theme .page-consultor-modern .consultor-insights-card strong,
html.mp-light-theme .page-consultor-modern .consultor-insights-card b{color:#111827!important;opacity:1!important}
html.mp-light-theme .page-consultor-modern .consultor-insights-card .simulator-hint,
html.mp-light-theme .page-consultor-modern .consultor-insights-card .weekday-axis,
html.mp-light-theme .page-consultor-modern .consultor-insights-card .weekday-compact-day,
html.mp-light-theme .page-consultor-modern .consultor-insights-card .weekday-detail{color:#6B7280!important;opacity:1!important}
html.mp-light-theme .page-consultor-modern .consultor-insights-card .weekday-grid-lines i{background:#E5E7EB!important}
html.mp-light-theme .page-consultor-modern .consultor-insights-card .weekday-detail{
  background:#F8F9FA!important;border:1px solid #E5E7EB!important;
}
html.mp-light-theme .page-consultor-modern .consultor-insights-card .weekday-detail strong,
html.mp-light-theme .page-consultor-modern .consultor-insights-card .weekday-detail b{color:#111827!important}
html.mp-light-theme .page-consultor-modern .consultor-insights-card input{
  background:#FFFFFF!important;color:#111827!important;border-color:#D8E2DD!important;
}

/* Receitas e Despesas no topo dos gráficos: preto/grafite no claro */
html.mp-light-theme .page-consultor-modern .chart-top-label,
html.mp-light-theme .page-consultor-modern .chart-col .chart-top-label{
  color:#111827!important;
  opacity:1!important;
  text-shadow:none!important;
}

/* 4) PERFIL — Criar novo sonho e assinatura ativa sem superfícies pretas */
html.mp-light-theme .page-profile-modern #sonhoWrap .simulator-card,
html.mp-light-theme .page-profile-modern #sonhoWrap .sonho-card,
html.mp-light-theme .page-profile-modern #sonhoWrap .sonho-info-box,
html.mp-light-theme .page-profile-modern #sonhoWrap .sonho-conquistado-row{
  background:#FFFFFF!important;
  border-color:#E2E8E5!important;
  color:#111827!important;
  box-shadow:none!important;
}
html.mp-light-theme .page-profile-modern #sonhoWrap .simulator-hint,
html.mp-light-theme .page-profile-modern #sonhoWrap .sc-date{color:#6B7280!important;opacity:1!important}
html.mp-light-theme .page-profile-modern #sonhoWrap input{
  background:#F8F9FA!important;color:#111827!important;border:1px solid #DDE5E1!important;
}
html.mp-light-theme .page-profile-modern #sonhoWrap input::placeholder{color:#8A9490!important}
html.mp-light-theme .page-profile-modern #sonhoWrap .tool-btn{
  background:#FFFFFF!important;color:#047857!important;border-color:#CFE6DB!important;
}
html.mp-light-theme .page-profile-modern #sonhoWrap #sonhoNovoBtn{
  background:#E1F7ED!important;color:#047857!important;border-color:#CBECDD!important;
}
html.mp-light-theme .page-profile-modern #perfilAssinaturaCard,
html.mp-light-theme .page-profile-modern #perfilAssinaturaCard .assinatura-status-card,
html.mp-light-theme .page-profile-modern .assinatura-status-card{
  background:#FFFFFF!important;
  border:1px solid #E2E8E5!important;
  color:#111827!important;
  box-shadow:none!important;
}
html.mp-light-theme .page-profile-modern #perfilAssinaturaCard .assinatura-status-title,
html.mp-light-theme .page-profile-modern .assinatura-status-title{color:#111827!important;opacity:1!important}
html.mp-light-theme .page-profile-modern #perfilAssinaturaCard .assinatura-status-sub,
html.mp-light-theme .page-profile-modern .assinatura-status-sub{color:#6B7280!important;opacity:1!important}
html.mp-light-theme .page-profile-modern #perfilAssinaturaCard>.tool-btn{
  background:#FFFFFF!important;color:#047857!important;border-color:#CFE6DB!important;
}

/* ==========================================================
   MODO CLARO — AUDITORIA v7
   Home pontuação integrada + categorias + jornada + histórico.
   ========================================================== */

/* HOME — pontuação faz parte do próprio card de saldo, como no tema escuro.
   Remove o 'quadrado branco' e mantém apenas a separação sutil. */
html.mp-light-theme .page-home-modern .balance-card > .health-card-compact,
html.mp-light-theme .page-home-modern .health-card-compact{
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  padding-left:0!important;
  padding-right:0!important;
}
html.mp-light-theme .page-home-modern .balance-card > .health-card-compact{
  border-bottom:1px solid #CFE6DB!important;
  padding-bottom:13px!important;
  margin-bottom:13px!important;
}
html.mp-light-theme .page-home-modern .balance-score-divider{
  display:none!important;
}
html.mp-light-theme .page-home-modern .health-compact-icon{
  background:#FFF7DF!important;
  border:0!important;
}
html.mp-light-theme .page-home-modern .health-compact-label,
html.mp-light-theme .page-home-modern .health-compact-score-row,
html.mp-light-theme .page-home-modern .health-compact-score-row *{color:#111827!important}
html.mp-light-theme .page-home-modern .health-status-compact,
html.mp-light-theme .page-home-modern .health-compact-chevron{color:#6B7280!important}
html.mp-light-theme .page-home-modern .health-bar-track-compact{background:#D9E4DF!important}

/* Um pouco mais de vida nos cards claros, sem perder a limpeza */
html.mp-light-theme .page-home-modern .balance-card,
html.mp-light-theme .page-financeiro-modern .finance-summary-card,
html.mp-light-theme .page-financeiro-modern .recorrentes-toggle,
html.mp-light-theme .page-consultor-modern .consultor-summary-card,
html.mp-light-theme .page-metas-modern .metas-evolution-card{
  border-color:#BFE6D3!important;
}

/* FINANCEIRO — configurar categorias / nova categoria nunca herda o preto */
html.mp-light-theme .finance-category-sheet,
html.mp-light-theme .finance-category-head,
html.mp-light-theme .finance-category-list{
  background:#FFFFFF!important;
  color:#111827!important;
  border-color:#D6E7DF!important;
}
html.mp-light-theme .finance-category-head strong{color:#111827!important}
html.mp-light-theme .finance-category-head button{
  background:#F1F8F4!important;
  color:#047857!important;
  border:1px solid #D6E7DF!important;
}
html.mp-light-theme .finance-category-option{
  background:#FFFFFF!important;
  color:#111827!important;
  border-bottom-color:#E5ECE8!important;
}
html.mp-light-theme .finance-category-option:active,
html.mp-light-theme .finance-category-option.selected{
  background:#EAF8F1!important;
  color:#047857!important;
}
html.mp-light-theme #newCatIconGrid,
html.mp-light-theme #newCatIconGrid button{
  background:#FFFFFF!important;
  color:#111827!important;
  border-color:#CFE6DB!important;
  box-shadow:none!important;
}
html.mp-light-theme #newCatIconGrid button:active,
html.mp-light-theme #newCatIconGrid button.selected{
  background:#E1F7ED!important;
  color:#047857!important;
  border-color:#9FD7BE!important;
}
html.mp-light-theme .page-financeiro-modern #incomeCatSelect,
html.mp-light-theme .page-financeiro-modern #expenseCatSelect{
  background:#FFFFFF!important;
  color:#111827!important;
  border-color:#D1D9D5!important;
  color-scheme:light!important;
}
html.mp-light-theme .page-financeiro-modern #incomeCatSelect option,
html.mp-light-theme .page-financeiro-modern #expenseCatSelect option{
  background:#FFFFFF!important;
  color:#111827!important;
}

/* INICIAR JORNADA — tanto o botão da Home quanto a opção aberta ficam grafite */
html.mp-light-theme .page-home-modern #homeJourneyTitle,
html.mp-light-theme .page-home-modern .home-journey-main-label,
html.mp-light-theme .journey-start-mode-sheet strong,
html.mp-light-theme .journey-start-mode-sheet b,
html.mp-light-theme .journey-start-mode-sheet .journey-mode-option strong,
html.mp-light-theme .journey-start-mode-sheet .journey-mode-option b{
  color:#111827!important;
  opacity:1!important;
  text-shadow:none!important;
}

/* FINANCEIRO — semana/dia expandido: nomes e valores sempre legíveis */
html.mp-light-theme .page-financeiro-modern .week-group-days,
html.mp-light-theme .page-financeiro-modern .day-group,
html.mp-light-theme .page-financeiro-modern .day-group-head,
html.mp-light-theme .page-financeiro-modern .day-group-head strong,
html.mp-light-theme .page-financeiro-modern .day-group-head b,
html.mp-light-theme .page-financeiro-modern .day-group-head span,
html.mp-light-theme .page-financeiro-modern .day-group-head small,
html.mp-light-theme .page-financeiro-modern .day-group-date,
html.mp-light-theme .page-financeiro-modern .day-group-label,
html.mp-light-theme .page-financeiro-modern .day-group-count,
html.mp-light-theme .page-financeiro-modern .day-group-saldo{
  color:#111827!important;
  opacity:1!important;
}
html.mp-light-theme .page-financeiro-modern .week-group-days{
  background:#EAF8F1!important;
  border:1px solid #CBECDD!important;
}
html.mp-light-theme .page-financeiro-modern .day-group,
html.mp-light-theme .page-financeiro-modern .day-group-head{
  background:#FFFFFF!important;
  border-color:#D8E4DE!important;
}

/* ==========================================================
   MODO CLARO — AUDITORIA v8
   Varredura geral de contraste: títulos claros residuais,
   Conquistas, Metas do Dia, Veículo/Manutenção e Financeiro.
   ========================================================== */

/* 1) REGRA-BASE DO TEMA CLARO — títulos de seção não podem herdar branco */
html.mp-light-theme .page-dark-modern .section-title,
html.mp-light-theme .page-dark-modern .section-title > span,
html.mp-light-theme .page-dark-modern .modern-section-title,
html.mp-light-theme .page-dark-modern .modern-section-title > span:last-child,
html.mp-light-theme .page-dark-modern .vehicle-section-title > span,
html.mp-light-theme .page-dark-modern .budget-head h3,
html.mp-light-theme .page-dark-modern .budget-head h3 span,
html.mp-light-theme .page-dark-modern h2,
html.mp-light-theme .page-dark-modern h3 {
  color:#111827!important;
  opacity:1!important;
  text-shadow:none!important;
}
html.mp-light-theme .page-dark-modern .vehicle-section-title small,
html.mp-light-theme .page-dark-modern .budget-subtitle,
html.mp-light-theme .page-dark-modern .period-hint {
  color:#6B7280!important;
  opacity:1!important;
}

/* 2) HOME — sequência de lucro legível no card verde-claro */
html.mp-light-theme .page-home-modern .balance-card .streak-badge-home,
html.mp-light-theme .page-home-modern .balance-card .streak-badge-home > span:not(.streak-badge-icon),
html.mp-light-theme .page-home-modern .balance-card .streak-badge-home:not(.streak-badge-icon){
  color:#66736D!important;
  opacity:1!important;
}
html.mp-light-theme .page-home-modern .balance-card .streak-badge-num{
  color:#B7791F!important;
  opacity:1!important;
}
html.mp-light-theme .page-home-modern .balance-card .streak-badge-icon{opacity:1!important}

/* 3) FINANCEIRO — cabeçalho Classificar entrada/saída e categorias */
html.mp-light-theme #financeCategoryTitle,
html.mp-light-theme .finance-category-head #financeCategoryTitle,
html.mp-light-theme .finance-category-head strong,
html.mp-light-theme .finance-category-head b{
  color:#111827!important;
  opacity:1!important;
}
html.mp-light-theme .finance-category-option,
html.mp-light-theme .finance-category-option span,
html.mp-light-theme .finance-category-option b,
html.mp-light-theme .finance-category-option strong{
  color:#185C46!important;
  opacity:1!important;
}
html.mp-light-theme .finance-category-option.selected,
html.mp-light-theme .finance-category-option.selected span,
html.mp-light-theme .finance-category-option.selected b,
html.mp-light-theme .finance-category-option.selected strong{
  color:#047857!important;
}

/* Financeiro — títulos dos blocos e dias expandidos */
html.mp-light-theme .page-financeiro-modern .section-title,
html.mp-light-theme .page-financeiro-modern .section-title span,
html.mp-light-theme .page-financeiro-modern .day-group-date,
html.mp-light-theme .page-financeiro-modern .day-group-count,
html.mp-light-theme .page-financeiro-modern .day-group-saldo,
html.mp-light-theme .page-financeiro-modern .day-group-head span,
html.mp-light-theme .page-financeiro-modern .day-group-head b,
html.mp-light-theme .page-financeiro-modern .day-group-head strong{
  color:#111827!important;
  opacity:1!important;
}
html.mp-light-theme .page-financeiro-modern .week-group-label{color:#334B40!important;opacity:1!important}
html.mp-light-theme .page-financeiro-modern .week-group-count,
html.mp-light-theme .page-financeiro-modern .week-group-saldo{color:#61736A!important;opacity:1!important}

/* 4) METAS DO DIA — título e cards ativos/formulário */
html.mp-light-theme .page-metas-modern #workGoalsList .goal-card,
html.mp-light-theme .page-metas-modern #workGoalForm,
html.mp-light-theme .page-metas-modern .work-goal-suggestions{
  color:#111827!important;
}
html.mp-light-theme .page-metas-modern .goal-card .goal-name,
html.mp-light-theme .page-metas-modern .goal-card .goal-head,
html.mp-light-theme .page-metas-modern .goal-card .goal-head span{
  color:#111827!important;
  opacity:1!important;
}
html.mp-light-theme .page-metas-modern .goal-card .goal-text{
  color:#047857!important;
  opacity:1!important;
}
html.mp-light-theme .page-metas-modern #workGoalFormLabel,
html.mp-light-theme .page-metas-modern #workGoalForm label,
html.mp-light-theme .page-metas-modern #workGoalForm p,
html.mp-light-theme .page-metas-modern #workGoalForm span{
  color:#4B5563!important;
  opacity:1!important;
}

/* 5) CONQUISTAS — remove os pequenos retângulos pretos e recupera hierarquia */
html.mp-light-theme .page-desafios-modern #conquistasWrap .section-title,
html.mp-light-theme .page-desafios-modern #conquistasWrap .section-title span{
  color:#111827!important;
  opacity:1!important;
}
html.mp-light-theme .page-desafios-modern .achievement-card{
  background:#FFFFFF!important;
  border:1px solid #DDE7E2!important;
  color:#111827!important;
  box-shadow:0 5px 16px rgba(17,24,39,.045)!important;
}
html.mp-light-theme .page-desafios-modern .achievement-card.unlocked{
  border-color:#C7E7D7!important;
}
html.mp-light-theme .page-desafios-modern .achievements-grid .achievement-card:nth-child(2).unlocked{
  background:#FFFBF0!important;
  border-color:#E8D8A3!important;
}
html.mp-light-theme .page-desafios-modern .achievement-title{
  color:#111827!important;
  opacity:1!important;
}
html.mp-light-theme .page-desafios-modern .achievement-detail,
html.mp-light-theme .page-desafios-modern .achievement-month-detail{
  background:transparent!important;
  border-radius:0!important;
  box-shadow:none!important;
  opacity:1!important;
  padding-left:0!important;
  padding-right:0!important;
}
html.mp-light-theme .page-desafios-modern .achievement-card.unlocked .achievement-detail{
  color:#047857!important;
}
html.mp-light-theme .page-desafios-modern .achievement-card.unlocked .achievement-month-detail:not(.achievement-month-empty){
  color:#059669!important;
  border-top-color:#D9E7E0!important;
}
html.mp-light-theme .page-desafios-modern .achievement-card.locked .achievement-detail,
html.mp-light-theme .page-desafios-modern .achievement-card.locked .achievement-month-detail,
html.mp-light-theme .page-desafios-modern .achievement-month-empty{
  color:#7A8781!important;
  background:transparent!important;
}

/* 6) MEU VEÍCULO — Consumo/abastecimentos e Manutenção */
html.mp-light-theme .page-veiculo-modern #consumoVeiculoSection .vehicle-section-title span,
html.mp-light-theme .page-veiculo-modern #manutencaoSectionTitle,
html.mp-light-theme .page-veiculo-modern [id*="manutencao"] .section-title,
html.mp-light-theme .page-veiculo-modern [id*="manutencao"] .section-title span{
  color:#111827!important;
  opacity:1!important;
}
html.mp-light-theme .page-veiculo-modern #consumoVeiculoCard .history-toggle,
html.mp-light-theme .page-veiculo-modern #consumoVeiculoCard button[onclick*="HistoricoAbastecimento"],
html.mp-light-theme .page-veiculo-modern #consumoVeiculoCard button[onclick*="historicoAbastecimento"]{
  color:#047857!important;
  background:#EAF8F1!important;
  border-color:#BFE5D2!important;
  opacity:1!important;
}
html.mp-light-theme .page-veiculo-modern #consumoVeiculoCard .week-group-label,
html.mp-light-theme .page-veiculo-modern #consumoVeiculoCard .day-group-date,
html.mp-light-theme .page-veiculo-modern #consumoVeiculoCard .day-group-head b,
html.mp-light-theme .page-veiculo-modern #consumoVeiculoCard .day-group-head strong{
  color:#111827!important;
  opacity:1!important;
}
html.mp-light-theme .page-veiculo-modern #consumoVeiculoCard .week-group-count,
html.mp-light-theme .page-veiculo-modern #consumoVeiculoCard .week-group-saldo,
html.mp-light-theme .page-veiculo-modern #consumoVeiculoCard .day-group-count{
  color:#61736A!important;
  opacity:1!important;
}
html.mp-light-theme .page-veiculo-modern .maint-row,
html.mp-light-theme .page-veiculo-modern .maint-row *,
html.mp-light-theme .page-veiculo-modern #maintPlanejarPanel,
html.mp-light-theme .page-veiculo-modern #maintPlanejarPanel .legend-left,
html.mp-light-theme .page-veiculo-modern #maintPlanejarPanel .legend-left span,
html.mp-light-theme .page-veiculo-modern #maintPlanejarPanel .legend-left b{
  color:#111827!important;
  opacity:1!important;
}
html.mp-light-theme .page-veiculo-modern #maintPlanejarPanel .budget-subtitle,
html.mp-light-theme .page-veiculo-modern #maintPlanejarPanel small{
  color:#6B7280!important;
}
html.mp-light-theme .page-veiculo-modern .maint-chip-btn,
html.mp-light-theme .page-veiculo-modern .maint-chip-btn b,
html.mp-light-theme .page-veiculo-modern .maint-chip-btn span{
  color:#047857!important;
  opacity:1!important;
}

/* 7) Varredura complementar: textos que eram brancos por regras antigas
   dentro de superfícies claras, sem alterar botões sólidos coloridos. */
html.mp-light-theme .page-dark-modern .budget-card:not(.premium-card) > .section-title,
html.mp-light-theme .page-dark-modern .budget-card:not(.premium-card) > .section-title span,
html.mp-light-theme .page-dark-modern .vehicle-section-block > .section-title,
html.mp-light-theme .page-dark-modern .vehicle-section-block > .section-title span{
  color:#111827!important;
  opacity:1!important;
}

/* ==========================================================
   MODO CLARO — AUDITORIA v9
   Desafio de pontuação + organização final da página Mais.
   ========================================================== */

/* Pontuação financeira: o desafio disponível vive dentro do health-card,
   não apenas no modal de acompanhamento. No claro ele deve ser branco/menta,
   com textos escuros e CTA sólido. */
html.mp-light-theme .health-card .challenge-card,
html.mp-light-theme #healthCard .challenge-card,
html.mp-light-theme #healthBody .challenge-card{
  background:#F4FBF7!important;
  border:1px solid #CBECDD!important;
  color:#111827!important;
  box-shadow:none!important;
}
html.mp-light-theme .health-card .challenge-card.active,
html.mp-light-theme #healthCard .challenge-card.active,
html.mp-light-theme #healthBody .challenge-card.active{
  background:#EAF8F1!important;
  border-color:#A9DEC5!important;
}
html.mp-light-theme .health-card .challenge-label,
html.mp-light-theme #healthBody .challenge-label{
  color:#047857!important;
  opacity:1!important;
}
html.mp-light-theme .health-card .challenge-text,
html.mp-light-theme #healthBody .challenge-text{
  color:#111827!important;
  opacity:1!important;
}
html.mp-light-theme .health-card .challenge-reward,
html.mp-light-theme #healthBody .challenge-reward{
  color:#5F6F68!important;
  opacity:1!important;
}
html.mp-light-theme .health-card .challenge-accept,
html.mp-light-theme #healthBody .challenge-accept,
html.mp-light-theme #challengeProgressModal .challenge-accept{
  background:#10B981!important;
  color:#FFFFFF!important;
  border:1px solid #10B981!important;
  opacity:1!important;
  box-shadow:0 5px 14px rgba(16,185,129,.18)!important;
}
html.mp-light-theme .health-card .challenge-cancel,
html.mp-light-theme #healthBody .challenge-cancel{
  background:#FFFFFF!important;
  color:#B45309!important;
  border:1px solid #E5C98D!important;
  opacity:1!important;
}

/* Página Mais: preserva cartões claros e a ordem visual definida.
   Minha Conta continua sendo o único acesso ao Perfil. */
html.mp-light-theme .page-more-modern .more-theme-card{
  background:#FFFFFF!important;
  border-color:#D9E6E0!important;
}
html.mp-light-theme .page-more-modern .more-theme-card strong{color:#111827!important}
html.mp-light-theme .page-more-modern .more-theme-card small{color:#6B7280!important}

/* ==========================================================
   MODO CLARO — AUDITORIA v10
   Prompt de combustível + Jornada ativa + Conquistas +
   abastecimentos expandidos no Meu Veículo.
   ========================================================== */

/* 1) Prompt após lançamento de combustível — respeita o tema claro,
   mesmo tendo estilos inline criados pelo JS. */
html.mp-light-theme #fuelConsumptionPrompt{
  background:rgba(18,35,29,.38)!important;
  backdrop-filter:blur(4px)!important;
  -webkit-backdrop-filter:blur(4px)!important;
}
html.mp-light-theme #fuelConsumptionPrompt > div{
  background:#FFFFFF!important;
  border:1px solid #BFE6D3!important;
  color:#111827!important;
  box-shadow:0 20px 55px rgba(17,24,39,.16)!important;
}
html.mp-light-theme #fuelConsumptionPrompt > div > div:nth-child(2){
  color:#111827!important;
}
html.mp-light-theme #fuelConsumptionPrompt > div > div:nth-child(3){
  color:#5F6F68!important;
}
html.mp-light-theme #fuelConsumptionPrompt button:first-child{
  background:#FFFFFF!important;
  color:#374151!important;
  border:1px solid #CFE1D8!important;
}
html.mp-light-theme #fuelConsumptionPrompt button:last-child{
  background:#10B981!important;
  color:#FFFFFF!important;
  border:1px solid #10B981!important;
}

/* 2) Jornada ativa da Home — versão clara completa, não apenas o botão compacto. */
html.mp-light-theme .page-home-modern .finance-journey-live-card,
html.mp-light-theme .page-home-modern .finance-journey-live-card.active,
html.mp-light-theme .page-home-modern .finance-journey-live-card.active.expanded{
  background:linear-gradient(145deg,#E6F8EF,#F9FCFA 72%)!important;
  border:1px solid #B9E4CF!important;
  color:#111827!important;
  box-shadow:0 10px 30px rgba(16,87,59,.08)!important;
}
html.mp-light-theme .page-home-modern .finance-journey-active-title,
html.mp-light-theme .page-home-modern .finance-journey-live-top strong,
html.mp-light-theme .page-home-modern .finance-journey-live-stats b{
  color:#111827!important;
}
html.mp-light-theme .page-home-modern .finance-journey-gps-signal{
  background:#DDF6EA!important;
  color:#047857!important;
  border-color:#BDE5D1!important;
}
html.mp-light-theme .page-home-modern .finance-journey-live-stats div{
  background:#FFFFFF!important;
  border:1px solid #D5E5DD!important;
}
html.mp-light-theme .page-home-modern .finance-journey-live-stats span{
  color:#6B7280!important;
}
html.mp-light-theme .page-home-modern .home-journey-road{
  background:#E7ECE9!important;
  border-color:#D3DED8!important;
}
html.mp-light-theme .page-home-modern .home-journey-road::before,
html.mp-light-theme .page-home-modern .home-journey-road::after,
html.mp-light-theme .page-home-modern .home-journey-road-line{
  opacity:.58!important;
}
html.mp-light-theme .page-home-modern .smart-km-target{
  background:linear-gradient(135deg,#FFF8E5,#FFFFFF)!important;
  border:1px solid #E7D7A5!important;
  box-shadow:none!important;
}
html.mp-light-theme .page-home-modern .smart-km-target-head{
  color:#374151!important;
}
html.mp-light-theme .page-home-modern .smart-km-target > strong{
  color:#B7791F!important;
}
html.mp-light-theme .page-home-modern .smart-km-target p,
html.mp-light-theme .page-home-modern .smart-km-target span:not(.smart-km-stage-dot){
  color:#5F6F68!important;
}
html.mp-light-theme .page-home-modern .smart-km-target .smart-km-stage,
html.mp-light-theme .page-home-modern .smart-km-target .smart-km-status{
  background:#EEF5F1!important;
  color:#4B5E55!important;
}
html.mp-light-theme .page-home-modern .finance-journey-end-btn{
  background:#10B981!important;
  color:#FFFFFF!important;
  border-color:#10B981!important;
}

/* 3) Conquistas — Melhor semana segue exatamente o padrão dos demais cards. */
html.mp-light-theme .page-desafios-modern .achievements-grid .achievement-card:nth-child(2).unlocked{
  background:#FFFFFF!important;
  border:1px solid #C7E7D7!important;
  box-shadow:0 5px 16px rgba(17,24,39,.045)!important;
}
html.mp-light-theme .page-desafios-modern .achievements-grid .achievement-card:nth-child(2).unlocked .achievement-title{
  color:#111827!important;
}
html.mp-light-theme .page-desafios-modern .achievements-grid .achievement-card:nth-child(2).unlocked .achievement-detail,
html.mp-light-theme .page-desafios-modern .achievements-grid .achievement-card:nth-child(2).unlocked .achievement-month-detail{
  color:#047857!important;
  background:transparent!important;
}

/* 4) Meu Veículo — abastecimentos expandidos no mesmo verde suave dos registros/dias. */
html.mp-light-theme .page-veiculo-modern #consumoVeiculoCard .week-group-days{
  background:#EAF8F1!important;
  border:1px solid #CBECDD!important;
  border-top:0!important;
  color:#111827!important;
}
html.mp-light-theme .page-veiculo-modern #consumoVeiculoCard .day-group,
html.mp-light-theme .page-veiculo-modern #consumoVeiculoCard .day-group-head,
html.mp-light-theme .page-veiculo-modern #consumoVeiculoCard .day-group-rows{
  background:#F3FBF7!important;
  color:#111827!important;
  border-color:#D3E8DD!important;
}
html.mp-light-theme .page-veiculo-modern #consumoVeiculoCard .day-group-rows > div{
  border-top-color:#CFE1D8!important;
}
html.mp-light-theme .page-veiculo-modern #consumoVeiculoCard .day-group-date,
html.mp-light-theme .page-veiculo-modern #consumoVeiculoCard .day-group-rows b{
  color:#111827!important;
  opacity:1!important;
}
html.mp-light-theme .page-veiculo-modern #consumoVeiculoCard .day-group-count,
html.mp-light-theme .page-veiculo-modern #consumoVeiculoCard .day-group-rows .budget-subtitle{
  color:#61736A!important;
  opacity:1!important;
}
html.mp-light-theme .page-veiculo-modern #consumoVeiculoCard .maint-chip-clear{
  color:#6B7280!important;
}

/* ==========================================================
   MODO CLARO — AUDITORIA v11
   Refinamento de verdes/contornos + jornada + respostas rápidas
   + histórico de desempenho + tutorial + Mais/Premium.
   ========================================================== */
html.mp-light-theme{
  --mp-light-accent:#0B7A55;
  --mp-light-accent-2:#119C6B;
  --mp-light-accent-soft:#E6F6EE;
  --mp-light-line-green:#BFDCCE;
  --mp-light-line-green-strong:#A8D8C1;
  --mp-light-ink:#111827;
  --mp-light-muted:#64736C;
  --mp-light-gold:#D6A936;
}

/* Verde limão em fundo branco: usar verde mais profundo e confortável. */
html.mp-light-theme .page-dark-modern a:not(.danger),
html.mp-light-theme .page-dark-modern .history-toggle,
html.mp-light-theme .page-dark-modern .day-summary-label,
html.mp-light-theme .page-dark-modern .day-summary-cta,
html.mp-light-theme .page-dark-modern .section-link,
html.mp-light-theme .page-dark-modern .free-consultor-head a,
html.mp-light-theme .page-dark-modern .free-consultor-head button:not(.primary),
html.mp-light-theme .page-more-modern .more-account-avatar,
html.mp-light-theme .page-more-modern .more-account-strip button{
  color:var(--mp-light-accent)!important;
}

/* Contornos claros com personalidade verde, aplicados aos cards principais. */
html.mp-light-theme .page-dark-modern .budget-card,
html.mp-light-theme .page-dark-modern .simulator-card,
html.mp-light-theme .page-dark-modern .tool-card,
html.mp-light-theme .page-dark-modern .goal-card,
html.mp-light-theme .page-dark-modern .more-menu-card,
html.mp-light-theme .page-dark-modern .more-account-strip,
html.mp-light-theme .page-dark-modern .more-premium-card,
html.mp-light-theme .page-dark-modern .vehicle-section-block,
html.mp-light-theme .page-dark-modern .profile-summary-card,
html.mp-light-theme .page-dark-modern .streak-row,
html.mp-light-theme .page-dark-modern .sonho-card,
html.mp-light-theme .page-dark-modern .achievement-card,
html.mp-light-theme .page-dark-modern .day-summary-card{
  border-color:var(--mp-light-line-green)!important;
  box-shadow:0 6px 18px rgba(21,91,61,.055)!important;
}

/* HOME — saldo com degradê mais rico, mas ainda leve. */
html.mp-light-theme .page-home-modern .balance-card{
  background:linear-gradient(145deg,#EFFAF5 0%,#DDF5E9 46%,#E7F8F0 100%)!important;
  border:1px solid #ACDCC5!important;
  box-shadow:0 12px 30px rgba(15,105,68,.09)!important;
}

/* Ver meses salvos: texto/seta mais escuros. */
html.mp-light-theme .page-home-modern .home-saved-months-toggle{
  background:transparent!important;
  border-color:transparent!important;
  color:#4C6258!important;
  opacity:1!important;
}
html.mp-light-theme .page-home-modern .home-saved-months-toggle span,
html.mp-light-theme .page-home-modern .home-saved-months-chevron{
  color:#4C6258!important;
  opacity:1!important;
}

/* Botão compacto Jornada ativa / Iniciar jornada: carro no mesmo verde dos ícones de desempenho. */
html.mp-light-theme .page-home-modern .home-smart-card.home-journey-card .home-smart-icon.journey,
html.mp-light-theme .page-home-modern .home-smart-card.home-journey-card .home-journey-car-svg,
html.mp-light-theme .page-home-modern .home-smart-card.home-journey-card .home-smart-arrow{
  color:#0B9364!important;
  fill:currentColor!important;
}

/* Jornada ativa: escurece somente a pista para destacar o carro. */
html.mp-light-theme .page-home-modern .home-journey-road{
  background:linear-gradient(180deg,#B8C2BD 0%,#9FAEAA 100%)!important;
  border-color:#91A19B!important;
  box-shadow:inset 0 1px 3px rgba(17,24,39,.10)!important;
}
html.mp-light-theme .page-home-modern .home-journey-road::before,
html.mp-light-theme .page-home-modern .home-journey-road::after,
html.mp-light-theme .page-home-modern .home-journey-road-line{
  opacity:.78!important;
}
/* Aprendendo / Otimizado / Sob medida: nunca apagados no claro. */
html.mp-light-theme .page-home-modern .smart-km-target .smart-km-stage,
html.mp-light-theme .page-home-modern .smart-km-target .smart-km-status,
html.mp-light-theme .page-home-modern .smart-km-target .smart-km-stage span,
html.mp-light-theme .page-home-modern .smart-km-target .smart-km-status span{
  color:#365248!important;
  opacity:1!important;
  font-weight:800!important;
}

/* Como foi o seu dia: tira o verde neon em fundo branco. */
html.mp-light-theme .page-consultor-modern .day-summary-label,
html.mp-light-theme .page-consultor-modern .day-summary-card .day-summary-label{
  color:#0A8058!important;
}
html.mp-light-theme .page-consultor-modern .day-summary-card{
  border-left-color:#16996A!important;
}

/* CONSULTOR — Respostas rápidas: modal inteiro claro e título legível. */
html.mp-light-theme #freeAnswerModal .free-answer-modal-sheet,
html.mp-light-theme .free-answer-modal-sheet{
  background:#FFFFFF!important;
  color:var(--mp-light-ink)!important;
  border:1px solid var(--mp-light-line-green)!important;
  box-shadow:0 20px 55px rgba(17,24,39,.16)!important;
}
html.mp-light-theme #freeAnswerModal .free-answer-modal-title,
html.mp-light-theme .free-answer-modal-sheet .free-answer-modal-title{
  color:var(--mp-light-ink)!important;
  opacity:1!important;
}
html.mp-light-theme #freeAnswerModal .paywall-logout{
  color:#65736D!important;
  background:transparent!important;
}
html.mp-light-theme #freeAnswerModal .free-answer,
html.mp-light-theme .free-answer-modal-sheet .free-answer{
  background:linear-gradient(135deg,#ECF8F2,#F8FCFA)!important;
  color:#243B32!important;
  border:1px solid #C9E5D8!important;
  border-left:4px solid #119C6B!important;
}
html.mp-light-theme #freeAnswerModal .free-answer *,
html.mp-light-theme .free-answer-modal-sheet .free-answer *{
  color:inherit!important;
  opacity:1!important;
}
html.mp-light-theme #freeAnswerModal .free-answer b,
html.mp-light-theme .free-answer-modal-sheet .free-answer b{
  color:#111827!important;
}
html.mp-light-theme .free-answer-modal-sheet .free-answer-section{
  border-bottom-color:#D9E7E0!important;
}

/* CONSULTOR — ver desempenho por dia: remove o último bloco preto. */
html.mp-light-theme .page-consultor-modern .consultor-performance-block .history-panel,
html.mp-light-theme .page-consultor-modern #kmHistoryPanel{
  background:#F4FAF7!important;
  border:1px solid #CFE5DA!important;
  color:#111827!important;
}
html.mp-light-theme .page-consultor-modern #kmHistoryPanel .km-history-row{
  background:linear-gradient(135deg,#E8F7EF,#F8FCFA)!important;
  border:1px solid #C6E2D4!important;
  color:#111827!important;
  box-shadow:none!important;
}
html.mp-light-theme .page-consultor-modern #kmHistoryPanel .km-history-date,
html.mp-light-theme .page-consultor-modern #kmHistoryPanel .km-history-detail b{
  color:#111827!important;
  opacity:1!important;
}
html.mp-light-theme .page-consultor-modern #kmHistoryPanel .km-history-stat,
html.mp-light-theme .page-consultor-modern #kmHistoryPanel .km-history-detail,
html.mp-light-theme .page-consultor-modern #kmHistoryPanel .km-history-detail span,
html.mp-light-theme .page-consultor-modern #kmHistoryPanel .km-history-period-item,
html.mp-light-theme .page-consultor-modern #kmHistoryPanel .km-history-period-item span{
  color:#52675E!important;
  opacity:1!important;
}
html.mp-light-theme .page-consultor-modern #kmHistoryPanel .km-history-row button,
html.mp-light-theme .page-consultor-modern #kmHistoryPanel .tool-btn{
  background:#DFF4E9!important;
  color:#0A7C55!important;
  border-color:#BFE2D1!important;
}

/* Rever tutorial / onboarding: tema claro de verdade. */
html.mp-light-theme .onboarding-overlay{
  background:
    radial-gradient(620px 360px at 90% -5%,rgba(16,185,129,.10),transparent 62%),
    radial-gradient(500px 320px at -10% 5%,rgba(214,169,54,.07),transparent 62%),
    #F5F7F6!important;
}
html.mp-light-theme .onboarding-body{
  color:#111827!important;
}
html.mp-light-theme .onboarding-title{color:#111827!important;opacity:1!important}
html.mp-light-theme .onboarding-desc{color:#5F6F68!important;opacity:1!important}
html.mp-light-theme .onboarding-dot{background:#D4DED9!important}
html.mp-light-theme .onboarding-dot.active{background:#0B8B60!important}
html.mp-light-theme .onboarding-back-btn{color:#53665D!important}
html.mp-light-theme .onboarding-next-btn{
  background:#0F9F6E!important;
  color:#FFFFFF!important;
  box-shadow:0 8px 20px rgba(15,159,110,.16)!important;
}
html.mp-light-theme .onboarding-icon{
  color:#0B8B60!important;
}

/* MAIS — iniciais e Abrir em verde mais escuro; Premium com estrela dourada. */
html.mp-light-theme .page-more-modern .more-account-avatar{
  color:#0A7C55!important;
  background:#E3F6ED!important;
}
html.mp-light-theme .page-more-modern .more-account-strip button{
  color:#0A7C55!important;
  background:#E7F7EF!important;
  border:1px solid #C9E7D8!important;
}
html.mp-light-theme .page-more-modern .more-premium-mark,
html.mp-light-theme .more-premium-mark{
  color:#D6A936!important;
  text-shadow:0 1px 0 rgba(255,255,255,.7)!important;
}

/* Verde de links/botões auxiliares em superfícies claras: menos fluorescente. */
html.mp-light-theme .page-financeiro-modern .history-toggle,
html.mp-light-theme .page-financeiro-modern .cat-btn,
html.mp-light-theme .page-financeiro-modern .category-btn,
html.mp-light-theme .page-financeiro-modern .voice-btn,
html.mp-light-theme .page-consultor-modern .free-question,
html.mp-light-theme .page-consultor-modern .modern-action-btn,
html.mp-light-theme .page-consultor-modern .tool-btn,
html.mp-light-theme .page-veiculo-modern .history-toggle,
html.mp-light-theme .page-veiculo-modern .maint-chip-btn,
html.mp-light-theme .page-metas-modern .history-toggle,
html.mp-light-theme .page-metas-modern .tool-btn{
  color:#0B7653!important;
}


/* ==========================================================
   MODO CLARO — AUDITORIA V12
   desempenho por dia, carro GPS, calendário de notas e pontuação
   ========================================================== */

/* CONSULTOR — histórico por dia: linha e detalhe claros, arredondados */
html.mp-light-theme .page-consultor-modern #kmHistoryPanel{
  background:#F4FAF7!important;
  border:1px solid #C8E4D6!important;
  border-radius:22px!important;
  padding:10px!important;
  overflow:hidden!important;
}
html.mp-light-theme .page-consultor-modern #kmHistoryPanel .km-history-row{
  background:linear-gradient(135deg,#EAF8F1 0%,#F8FCFA 100%)!important;
  border:1px solid #C5E2D3!important;
  border-radius:18px!important;
  color:#111827!important;
  overflow:hidden!important;
  box-shadow:none!important;
}
html.mp-light-theme .page-consultor-modern #kmHistoryPanel .km-history-detail{
  background:linear-gradient(135deg,#E2F4EA 0%,#F5FBF8 100%)!important;
  border:1px solid #C5E2D3!important;
  border-top:0!important;
  border-radius:0 0 18px 18px!important;
  color:#24372F!important;
  margin:-8px 0 4px!important;
  padding:22px 16px 14px!important;
  overflow:hidden!important;
}
html.mp-light-theme .page-consultor-modern #kmHistoryPanel .km-history-detail .km-stat-row,
html.mp-light-theme .page-consultor-modern #kmHistoryPanel .km-history-detail .km-stat-row span{
  color:#52675E!important;
  opacity:1!important;
}
html.mp-light-theme .page-consultor-modern #kmHistoryPanel .km-history-detail .km-stat-row b{
  color:#111827!important;
  opacity:1!important;
}
html.mp-light-theme .page-consultor-modern #kmHistoryPanel .km-history-periods{
  border-top-color:#C7DED3!important;
}
html.mp-light-theme .page-consultor-modern #kmHistoryPanel .km-history-period-item,
html.mp-light-theme .page-consultor-modern #kmHistoryPanel .km-history-period-item span{
  color:#52675E!important;
}

/* JORNADA ATIVA — contorno do carro escuro para leitura sobre pista clara */
html.mp-light-theme .page-home-modern .journey-neon-outline{
  stroke:#087451!important;
  stroke-width:2.15!important;
}
html.mp-light-theme .page-home-modern .journey-neon-window{
  stroke:#126B52!important;
}
html.mp-light-theme .page-home-modern .journey-neon-detail{
  stroke:#17805F!important;
}
html.mp-light-theme .page-home-modern .journey-wheel-outer{
  fill:#F7FBF9!important;
  stroke:#087451!important;
}
html.mp-light-theme .page-home-modern .journey-wheel-spoke{
  stroke:#087451!important;
}
html.mp-light-theme .page-home-modern .journey-neon-glow{
  filter:drop-shadow(0 0 2px rgba(8,116,81,.28))!important;
}

/* NOTAS & AGENDA — mesmo idioma visual do calendário "Como foi seu dia" */
html.mp-light-theme .page-notas-modern .agenda-calendar-block{
  background:#FFFFFF!important;
  border:1px solid #D5E5DD!important;
  border-radius:22px!important;
  box-shadow:0 10px 28px rgba(18,55,44,.06)!important;
  padding:16px!important;
}
html.mp-light-theme .page-notas-modern .agenda-month-bar span{
  color:#111827!important;
  opacity:1!important;
}
html.mp-light-theme .page-notas-modern .agenda-month-bar button{
  background:#E7F6EF!important;
  color:#0B6F50!important;
  border:1px solid #C7E2D5!important;
  border-radius:14px!important;
}
html.mp-light-theme .page-notas-modern .agenda-weekdays{
  color:#70827A!important;
  opacity:1!important;
}
html.mp-light-theme .page-notas-modern .agenda-day{
  background:#F7FAF8!important;
  border:1px solid #D8E4DE!important;
  color:#24312C!important;
  border-radius:14px!important;
  box-shadow:none!important;
}
html.mp-light-theme .page-notas-modern .agenda-day.today{
  background:#E8F7F0!important;
  border:2px solid #4FCBA0!important;
  color:#6F54A8!important;
}
html.mp-light-theme .page-notas-modern .agenda-day.selected{
  background:#DDF4E9!important;
  border:2px solid #2DBA89!important;
  color:#0B6F50!important;
}
html.mp-light-theme .page-notas-modern .agenda-day .dot{
  background:#D6A936!important;
}
html.mp-light-theme .page-notas-modern .agenda-day.selected .dot{
  background:#D6A936!important;
}
html.mp-light-theme .page-notas-modern .agenda-day-panel-title,
html.mp-light-theme .page-notas-modern .agenda-panel-block h3,
html.mp-light-theme .page-notas-modern .agenda-panel-block h4{
  color:#111827!important;
  opacity:1!important;
}

/* PONTUAÇÃO FINANCEIRA — textos ao lado dos emojis/records nunca claros */
html.mp-light-theme #healthCard .health-records,
html.mp-light-theme #healthCard .health-records span,
html.mp-light-theme #healthCard .health-records b,
html.mp-light-theme .health-card .health-records,
html.mp-light-theme .health-card .health-records span,
html.mp-light-theme .health-card .health-records b{
  color:#26352F!important;
  opacity:1!important;
}
html.mp-light-theme #healthCard .health-growth,
html.mp-light-theme #healthCard .health-growth b,
html.mp-light-theme .health-card .health-growth,
html.mp-light-theme .health-card .health-growth b{
  color:#26352F!important;
  opacity:1!important;
}
html.mp-light-theme #healthCard .health-history,
html.mp-light-theme #healthCard .health-subtitle,
html.mp-light-theme #healthCard .health-subtitle *:not(.health-goal-line),
html.mp-light-theme .health-card .health-history{
  color:#6B7280!important;
  opacity:1!important;
}
html.mp-light-theme #healthCard .health-factor-label,
html.mp-light-theme #healthCard .health-factor-label span,
html.mp-light-theme #healthCard .health-factor-lines,
html.mp-light-theme #healthCard .health-factor-lines .health-line{
  color:#374151!important;
  opacity:1!important;
}
html.mp-light-theme #healthCard .health-factor-label b,
html.mp-light-theme #healthCard .health-factor-label strong{
  color:#111827!important;
}

/* ==========================================================
   MODO CLARO — AUDITORIA v13
   Correções: meses salvos, títulos Entrada/Saída, Nova nota,
   ajuda Resumo do mês e fluxo Iniciar Jornada.
   ========================================================== */

/* HOME — meses salvos: verde escuro, inclusive valores que vêm com cor inline */
html.mp-light-theme .page-home-modern .home-saved-months-toggle,
html.mp-light-theme .page-home-modern .home-saved-months-toggle span,
html.mp-light-theme .page-home-modern .home-saved-months-chevron{
  color:#176F55 !important;
  opacity:1 !important;
}
html.mp-light-theme .page-home-modern #historyPanel .history-row{
  background:#FFFFFF !important;
  border:1px solid #CFE8DC !important;
  border-radius:15px !important;
  color:#111827 !important;
}
html.mp-light-theme .page-home-modern #historyPanel .h-label{
  color:#111827 !important;
  opacity:1 !important;
}
html.mp-light-theme .page-home-modern #historyPanel .h-balance{
  color:#176F55 !important;
  opacity:1 !important;
  font-weight:800 !important;
}
html.mp-light-theme .page-home-modern #historyPanel .history-empty{
  color:#5F6F68 !important;
}

/* FINANCEIRO — Entrada verde escuro e Saída vermelho no tema claro */
html.mp-light-theme .page-financeiro-modern .form-box.income h3 > span,
html.mp-light-theme .page-financeiro-modern .form-box.income h3 span[style*="22E38E"]{
  color:#147A59 !important;
  opacity:1 !important;
}
html.mp-light-theme .page-financeiro-modern .form-box.expense h3,
html.mp-light-theme .page-financeiro-modern .form-box.expense h3 > span,
html.mp-light-theme .page-financeiro-modern .form-box.out h3,
html.mp-light-theme .page-financeiro-modern .form-box.out h3 > span{
  color:#D94D4D !important;
  opacity:1 !important;
}
/* cobre a estrutura atual em que “− Saída” pode não ter classe expense/out */
html.mp-light-theme .page-financeiro-modern .forms .form-box:nth-child(2) h3,
html.mp-light-theme .page-financeiro-modern .forms .form-box:nth-child(2) h3 *{
  color:#D94D4D !important;
  opacity:1 !important;
}
html.mp-light-theme .page-financeiro-modern .finance-overview-strip > div:nth-child(2) > span{
  color:#147A59 !important;
}
html.mp-light-theme .page-financeiro-modern .finance-overview-strip > div:nth-child(3) > span{
  color:#D94D4D !important;
}

/* NOTAS — editor de nova nota totalmente claro */
html.mp-light-theme .page-notas-modern #noteEditorView,
html.mp-light-theme .page-notas-modern #noteEditBlock,
html.mp-light-theme .page-notas-modern #noteViewBlock{
  background:transparent !important;
  color:#111827 !important;
}
html.mp-light-theme .page-notas-modern #noteEditBlock{
  padding:14px !important;
  border:1px solid #DCE6E1 !important;
  border-radius:20px !important;
  background:#FFFFFF !important;
  box-shadow:0 8px 24px rgba(17,55,44,.06) !important;
}
html.mp-light-theme .page-notas-modern #noteTitleInput,
html.mp-light-theme .page-notas-modern #noteContentInput,
html.mp-light-theme .page-notas-modern #noteStartTimeInput,
html.mp-light-theme .page-notas-modern #noteEndTimeInput{
  background:#F8FAF9 !important;
  color:#111827 !important;
  border:1px solid #D6DFDB !important;
  -webkit-text-fill-color:#111827 !important;
  opacity:1 !important;
}
html.mp-light-theme .page-notas-modern #noteTitleInput::placeholder,
html.mp-light-theme .page-notas-modern #noteContentInput::placeholder{
  color:#8A9691 !important;
  opacity:1 !important;
}
html.mp-light-theme .page-notas-modern .note-time-field label,
html.mp-light-theme .page-notas-modern .note-date-badge,
html.mp-light-theme .page-notas-modern .note-saved{
  color:#5F6F68 !important;
}
html.mp-light-theme .page-notas-modern .note-allday-toggle,
html.mp-light-theme .page-notas-modern #noteEditBlock .tool-btn{
  background:#E7F7EF !important;
  color:#176F55 !important;
  border:1px solid #C6E6D7 !important;
}

/* CONSULTOR — caixa “Resumo do mês”/diferença entre entradas e saídas */
html.mp-light-theme .page-consultor-modern #saldoMesInfoBox,
html.mp-light-theme .page-consultor-modern #saldoMesInfoBox.sonho-info-box,
html.mp-light-theme .page-consultor-modern .consultor-resumo-title + .sonho-info-box{
  background:#FFFFFF !important;
  border:1px solid #CFE8DC !important;
  color:#111827 !important;
  border-radius:16px !important;
  box-shadow:0 7px 20px rgba(17,55,44,.05) !important;
}
html.mp-light-theme .page-consultor-modern #saldoMesInfoBox,
html.mp-light-theme .page-consultor-modern #saldoMesInfoBox *,
html.mp-light-theme .page-consultor-modern #saldoMesMsg,
html.mp-light-theme .page-consultor-modern #saldoMesMsg *{
  color:#26352F !important;
  opacity:1 !important;
  text-shadow:none !important;
}

/* INICIAR JORNADA — primeira caixa e escolha do modo no padrão claro */
html.mp-light-theme #homeJourneyStartModal .journey-start-mode-sheet,
html.mp-light-theme #homeJourneyModeModal .journey-start-mode-sheet,
html.mp-light-theme #homeJourneyKmModal .journey-start-mode-sheet{
  background:#FFFFFF !important;
  border:1px solid #CFE8DC !important;
  color:#111827 !important;
  box-shadow:0 20px 55px rgba(17,55,44,.18) !important;
}
html.mp-light-theme #homeJourneyStartTitle,
html.mp-light-theme #homeJourneyModeTitle,
html.mp-light-theme #homeJourneyKmModal h3,
html.mp-light-theme #homeJourneyStartModal h3,
html.mp-light-theme #homeJourneyModeModal h3{
  color:#111827 !important;
  opacity:1 !important;
  text-shadow:none !important;
}
html.mp-light-theme #homeJourneyStartModal p,
html.mp-light-theme #homeJourneyModeModal p,
html.mp-light-theme #homeJourneyKmModal p,
html.mp-light-theme #homeJourneyModeModal .journey-mode-option small{
  color:#5F6F68 !important;
  opacity:1 !important;
}
html.mp-light-theme #homeJourneyModeModal .journey-mode-option{
  background:#F4FAF7 !important;
  border:1px solid #CFE8DC !important;
  color:#111827 !important;
}
html.mp-light-theme #homeJourneyModeModal .journey-mode-option.gps{
  background:linear-gradient(135deg,#E8F8F0 0%,#F7FBF9 100%) !important;
  border-color:#A9DDC5 !important;
}
html.mp-light-theme #homeJourneyModeModal .journey-mode-option b,
html.mp-light-theme #homeJourneyModeModal .journey-mode-option strong{
  color:#111827 !important;
  opacity:1 !important;
}
html.mp-light-theme #homeJourneyStartModal .journey-start-mode-close,
html.mp-light-theme #homeJourneyModeModal .journey-start-mode-close,
html.mp-light-theme #homeJourneyKmModal .journey-start-mode-close{
  background:#F1F5F3 !important;
  color:#566760 !important;
}
html.mp-light-theme #homeJourneyStartModal .journey-start-mode-icon,
html.mp-light-theme #homeJourneyModeModal .journey-start-mode-icon,
html.mp-light-theme #homeJourneyKmModal .journey-start-mode-icon{
  background:#E6F7EF !important;
}

/* FASE 28 — Modo claro: estágio do R$/km ideal bem legível */
html.mp-light-theme .page-home-modern .smart-km-target .smart-km-target-stage,
html.mp-light-theme .page-home-modern .smart-km-target .smart-km-target-stage.learning,
html.mp-light-theme .page-home-modern .smart-km-target .smart-km-target-stage.personalizing,
html.mp-light-theme .page-home-modern .smart-km-target .smart-km-target-stage.personalized{
  color:#214C3D!important;
  background:#E2F1E9!important;
  border:1px solid #B8D8C9!important;
  opacity:1!important;
  font-weight:800!important;
}

/* FASE 29 — Modo claro: Copiloto + refinamento visual da pista */
/* Pergunta de ativação do Copiloto, tanto após iniciar a jornada quanto no Consultor. */
html.mp-light-theme .journey-start-mode-sheet .journey-copilot-reference,
html.mp-light-theme .journey-copilot-reference{
  background:#F1F8F4!important;
  border:1px solid #CFE5DA!important;
  color:#173D30!important;
}
html.mp-light-theme .journey-start-mode-sheet .journey-copilot-reference span,
html.mp-light-theme .journey-copilot-reference span{
  color:#526A5F!important;
  opacity:1!important;
}
html.mp-light-theme .journey-start-mode-sheet .journey-copilot-reference b,
html.mp-light-theme .journey-copilot-reference b{
  color:#176B50!important;
  opacity:1!important;
}
html.mp-light-theme .journey-start-mode-sheet .journey-copilot-actions .journey-copilot-later,
html.mp-light-theme .journey-copilot-later{
  background:#FFFFFF!important;
  color:#244C3B!important;
  border:1px solid #CFE0D8!important;
}
html.mp-light-theme .journey-start-mode-sheet .journey-copilot-actions .journey-copilot-activate,
html.mp-light-theme .journey-copilot-activate{
  background:#15966B!important;
  color:#FFFFFF!important;
  border:1px solid #15966B!important;
}
/* Proteção para títulos/textos do prompt que herdavam branco do tema escuro. */
html.mp-light-theme .journey-start-mode-sheet .copilot-card-content,
html.mp-light-theme .journey-start-mode-sheet .copilot-card-content *,
html.mp-light-theme .journey-start-mode-sheet [class*="copilot"] h2,
html.mp-light-theme .journey-start-mode-sheet [class*="copilot"] h3,
html.mp-light-theme .journey-start-mode-sheet [class*="copilot"] strong{
  color:#17202F!important;
  opacity:1!important;
  text-shadow:none!important;
}
html.mp-light-theme .journey-start-mode-sheet [class*="copilot"] p,
html.mp-light-theme .journey-start-mode-sheet [class*="copilot"] small{
  color:#66736D!important;
  opacity:1!important;
  text-shadow:none!important;
}
/* Consultor: o card permanece claro e o botão Ativar ganha contraste sóbrio. */
html.mp-light-theme .page-consultor-modern .copilot-card{
  background:#FFFFFF!important;
  border-color:#CFE3D9!important;
  color:#17202F!important;
}
html.mp-light-theme .page-consultor-modern .copilot-card .copilot-toggle-btn:not(.active){
  background:#F1F8F4!important;
  color:#176B50!important;
  border:1px solid #BFDCCE!important;
}
html.mp-light-theme .page-consultor-modern .copilot-card .copilot-toggle-btn.active{
  background:#E2F4EB!important;
  color:#176B50!important;
  border:1px solid #B9DCCB!important;
}
/* Se o Consultor abrir o mesmo overlay genérico, nunca deixar superfície escura. */
html.mp-light-theme .page-consultor-modern .journey-start-mode-sheet,
html.mp-light-theme .page-consultor-modern [class*="copilot"][class*="sheet"],
html.mp-light-theme .page-consultor-modern [class*="copilot"][class*="modal"]{
  background:#FFFFFF!important;
  color:#17202F!important;
  border-color:#CFE0D8!important;
}
/* Pista um pouco mais clara agora que o contorno do carro está verde-escuro. */
html.mp-light-theme .page-home-modern .home-journey-road{
  background:linear-gradient(180deg,#E7ECE9 0%,#D9E2DD 100%)!important;
  border-color:#C8D5CF!important;
  box-shadow:inset 0 1px 3px rgba(17,24,39,.06)!important;
}
html.mp-light-theme .page-home-modern .home-journey-road::before,
html.mp-light-theme .page-home-modern .home-journey-road::after,
html.mp-light-theme .page-home-modern .home-journey-road-line{
  opacity:.64!important;
}

/* FASE 30 — Modo claro: correção exata dos dois fluxos do Copiloto */
/* Prompt exibido logo após iniciar a jornada. */
html.mp-light-theme #journeyCopilotPromptModal .journey-start-mode-sheet{
  background:#FFFFFF!important;
  color:#17202F!important;
  border:1px solid #CFE0D8!important;
  box-shadow:0 18px 48px rgba(22,53,43,.16)!important;
}
html.mp-light-theme #journeyCopilotPromptTitle{
  color:#17202F!important;
  opacity:1!important;
  -webkit-text-fill-color:#17202F!important;
  text-shadow:none!important;
}
html.mp-light-theme #journeyCopilotPromptModal .journey-start-mode-sheet > p{
  color:#66736D!important;
  opacity:1!important;
  -webkit-text-fill-color:#66736D!important;
}
html.mp-light-theme #journeyCopilotPromptModal .journey-start-mode-close{
  color:#5E6D66!important;
  opacity:1!important;
}

/* Divulgação de privacidade usada pelo botão Ativar do Consultor.
   O componente nasce via JS com estilos inline do tema escuro, por isso
   esta regra precisa atingir o ID real e sobrescrever os inline styles. */
html.mp-light-theme #mpPrivacyDisclosureModal > div[role="dialog"]{
  background:#FFFFFF!important;
  color:#17202F!important;
  border:1px solid #CFE0D8!important;
  box-shadow:0 18px 48px rgba(22,53,43,.18)!important;
}
html.mp-light-theme #mpPrivacyDisclosureTitle{
  color:#17202F!important;
  -webkit-text-fill-color:#17202F!important;
  opacity:1!important;
}
html.mp-light-theme #mpPrivacyDisclosureModal > div[role="dialog"] > div:nth-child(2){
  color:#5F6D67!important;
  -webkit-text-fill-color:#5F6D67!important;
  opacity:1!important;
}
html.mp-light-theme #mpPrivacyDisclosureModal > div[role="dialog"] > div:nth-child(2) b{
  color:#214C3D!important;
  -webkit-text-fill-color:#214C3D!important;
}
html.mp-light-theme #mpPrivacyDisclosureModal button[data-action="cancel"]{
  background:#F3F8F5!important;
  color:#214C3D!important;
  -webkit-text-fill-color:#214C3D!important;
  border:1px solid #C9DDD3!important;
}
html.mp-light-theme #mpPrivacyDisclosureModal button[data-action="continue"]{
  background:#15966B!important;
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  border:1px solid #15966B!important;
}

/* ==========================================================
   MODO CLARO — AUDITORIA v17
   Verde textual mais sóbrio + Consultor + ícone Meu Veículo.
   ========================================================== */
html.mp-light-theme{
  --mp-light-green-text:#047857;
  --mp-light-green-text-strong:#065F46;
}

/* Varredura geral: no tema claro, o verde neon/lima fica reservado a
   preenchimentos e ações. Textos/ícones sobre branco usam verde escuro. */
html.mp-light-theme .page-home-modern .home-months-toggle,
html.mp-light-theme .page-home-modern .home-months-toggle *,
html.mp-light-theme .page-financeiro-modern .voice-btn,
html.mp-light-theme .page-financeiro-modern .section-svg-icon,
html.mp-light-theme .page-financeiro-modern .recorrentes-toggle-icon,
html.mp-light-theme .page-financeiro-modern .recorrentes-toggle-chevron,
html.mp-light-theme .page-consultor-modern .copilot-ideal-row b,
html.mp-light-theme .page-consultor-modern #consultorCopilotValue,
html.mp-light-theme .page-consultor-modern .consultor-performance-icon,
html.mp-light-theme .page-consultor-modern .consultor-performance-block .history-toggle,
html.mp-light-theme .page-consultor-modern .history-toggle,
html.mp-light-theme .page-consultor-modern .journey-day-toggle b,
html.mp-light-theme .page-consultor-modern .journey-edit-save,
html.mp-light-theme .page-consultor-modern .consultor-show-all,
html.mp-light-theme .page-consultor-modern .modern-action-btn svg,
html.mp-light-theme .page-consultor-modern .free-question,
html.mp-light-theme .page-consultor-modern .tool-btn,
html.mp-light-theme .page-metas-modern .history-toggle,
html.mp-light-theme .page-metas-modern .maint-row-chevron,
html.mp-light-theme .page-metas-modern .maint-expand-hint b,
html.mp-light-theme .page-veiculo-modern .history-toggle,
html.mp-light-theme .page-veiculo-modern .maint-row-chevron,
html.mp-light-theme .page-veiculo-modern .maint-expand-hint b,
html.mp-light-theme .page-manual-modern .manual-chevron,
html.mp-light-theme .page-manual-modern .manual-tip b,
html.mp-light-theme .page-notas-modern .notes-agenda-btn,
html.mp-light-theme .page-notas-modern .tool-btn,
html.mp-light-theme .more-account-avatar,
html.mp-light-theme .more-account-strip button,
html.mp-light-theme .profile-summary-card button,
html.mp-light-theme [style*="color:#22E38E"],
html.mp-light-theme [style*="color: #22E38E"],
html.mp-light-theme [style*="color:#10B981"],
html.mp-light-theme [style*="color: #10B981"]{
  color:var(--mp-light-green-text)!important;
  -webkit-text-fill-color:var(--mp-light-green-text)!important;
  opacity:1!important;
}

/* Consultor: R$/km ideal e controles de Jornada & desempenho. */
html.mp-light-theme .page-consultor-modern #consultorCopilotValue,
html.mp-light-theme .page-consultor-modern .copilot-ideal-row b{
  color:#065F46!important;
  -webkit-text-fill-color:#065F46!important;
}
html.mp-light-theme .page-consultor-modern .consultor-performance-icon{
  stroke:#047857!important;
  color:#047857!important;
}
html.mp-light-theme .page-consultor-modern .consultor-performance-block .history-toggle,
html.mp-light-theme .page-consultor-modern .journey-day-toggle b,
html.mp-light-theme .page-consultor-modern .consultor-show-all{
  color:#047857!important;
  -webkit-text-fill-color:#047857!important;
}
html.mp-light-theme .page-consultor-modern .journey-edit-save{
  background:#E1F7ED!important;
  color:#065F46!important;
  -webkit-text-fill-color:#065F46!important;
  border:1px solid #BFE4D2!important;
}

/* Avatar/iniciais do Consultor: mesmo padrão claro da Home/Meu Perfil. */
html.mp-light-theme .page-consultor-modern .modern-page-avatar{
  background:#FFFFFF!important;
  color:#047857!important;
  border:1px solid #CFE7DC!important;
  box-shadow:0 4px 14px rgba(17,55,44,.06)!important;
}
html.mp-light-theme .page-consultor-modern .modern-page-avatar #consultorAvatarLabel{
  color:#047857!important;
  -webkit-text-fill-color:#047857!important;
}

/* Meu Veículo: o carro do cabeçalho passa a ser o mesmo SVG do card “Seu carro”. */
html.mp-light-theme .page-veiculo-modern .modern-page-icon.vehicle{
  background:#E1F7ED!important;
  color:#047857!important;
  border:1px solid #C8E8D9!important;
}
html.mp-light-theme .page-veiculo-modern .modern-page-icon.vehicle svg{
  width:31px!important;
  height:31px!important;
  color:#047857!important;
  fill:currentColor!important;
}

/* Evita neon remanescente em links de texto no claro, sem alterar barras/botões sólidos. */
html.mp-light-theme .history-toggle,
html.mp-light-theme .maint-expand-hint b,
html.mp-light-theme .maint-row-chevron,
html.mp-light-theme .home-journey-vehicle-link,
html.mp-light-theme .metas-evolution-card-copy strong{
  color:#047857!important;
  -webkit-text-fill-color:#047857!important;
}


/* ===== MODO CLARO v18 — Consultor > Resumo do mês > Entradas/Saídas =====
   Mantém as cores do gráfico, mas deixa ícones e nomes das categorias legíveis.
*/
body:not(.dark-theme) .consultor-breakdown-item,
body:not(.dark-theme) .consultor-breakdown-item .label,
body:not(.dark-theme) .consultor-breakdown-item .name,
body:not(.dark-theme) .consultor-breakdown-item .category-name,
body:not(.dark-theme) .consultor-breakdown-item .cat-name,
body:not(.dark-theme) .consultor-breakdown-row,
body:not(.dark-theme) .consultor-breakdown-row .label,
body:not(.dark-theme) .consultor-breakdown-row .name,
body:not(.dark-theme) .consultor-breakdown-row .category-name,
body:not(.dark-theme) .consultor-breakdown-row .cat-name,
body:not(.dark-theme) .consultor-detail-item,
body:not(.dark-theme) .consultor-detail-item .label,
body:not(.dark-theme) .consultor-detail-item .name,
body:not(.dark-theme) .consultor-detail-item .category-name,
body:not(.dark-theme) .consultor-detail-row,
body:not(.dark-theme) .consultor-detail-row .label,
body:not(.dark-theme) .consultor-detail-row .name,
body:not(.dark-theme) .consultor-detail-row .category-name,
body:not(.dark-theme) .chart-breakdown-item,
body:not(.dark-theme) .chart-breakdown-item .label,
body:not(.dark-theme) .chart-breakdown-item .name,
body:not(.dark-theme) .chart-breakdown-item .category-name,
body:not(.dark-theme) .chart-detail-row,
body:not(.dark-theme) .chart-detail-row .label,
body:not(.dark-theme) .chart-detail-row .name,
body:not(.dark-theme) .chart-detail-row .category-name {
  color:#1F2937 !important;
  opacity:1 !important;
}

body:not(.dark-theme) .consultor-breakdown-item svg,
body:not(.dark-theme) .consultor-breakdown-row svg,
body:not(.dark-theme) .consultor-detail-item svg,
body:not(.dark-theme) .consultor-detail-row svg,
body:not(.dark-theme) .chart-breakdown-item svg,
body:not(.dark-theme) .chart-detail-row svg {
  opacity:1 !important;
}

/* nomes gerados inline no detalhamento de Entradas/Saídas */
body:not(.dark-theme) #consultorResumoMes [style*="color"],
body:not(.dark-theme) #consultorResumoMesDetalhes [style*="color"],
body:not(.dark-theme) #consultorMonthSummary [style*="color"],
body:not(.dark-theme) #consultorMonthDetails [style*="color"] {
  --mp-light-detail-text:#1F2937;
}

body:not(.dark-theme) #consultorResumoMes .consultor-category-name,
body:not(.dark-theme) #consultorResumoMesDetalhes .consultor-category-name,
body:not(.dark-theme) #consultorMonthSummary .consultor-category-name,
body:not(.dark-theme) #consultorMonthDetails .consultor-category-name {
  color:#1F2937 !important;
  opacity:1 !important;
}


/* ==========================================================
   MODO CLARO — AUDITORIA v19
   Correção EXATA:
   1) Consultor > gráfico > Entradas/Saídas expandidas
   2) Financeiro > lançamentos dentro dos dias expandidos
   ========================================================== */

/* CONSULTOR — os itens expandidos são gerados por renderCatLegend()
   com .cat-legend-left e .cat-legend-detail. As regras antigas do tema
   escuro deixavam estes nomes em cinza quase branco. */
html.mp-light-theme #pageConsultor #legend .cat-legend-item,
html.mp-light-theme #pageConsultor #legend .cat-legend-head{
  color:#1F2937!important;
}

html.mp-light-theme #pageConsultor #legend .cat-legend-left,
html.mp-light-theme #pageConsultor #legend .cat-legend-left span,
html.mp-light-theme #pageConsultor #legend .cat-legend-left span:last-child{
  color:#1F2937!important;
  -webkit-text-fill-color:#1F2937!important;
  opacity:1!important;
}

html.mp-light-theme #pageConsultor #legend .cat-legend-detail{
  color:#4B5563!important;
  -webkit-text-fill-color:#4B5563!important;
  opacity:1!important;
}

html.mp-light-theme #pageConsultor #legend .cat-legend-chevron{
  color:#52645C!important;
  -webkit-text-fill-color:#52645C!important;
  opacity:1!important;
}

/* Mantém a bolinha na cor da categoria; só o NOME/ícone textual fica escuro. */
html.mp-light-theme #pageConsultor #legend .legend-dot{
  opacity:1!important;
}

/* FINANCEIRO — descrição, data, categoria e saldo dos lançamentos
   exibidos dentro do dia expandido. */
html.mp-light-theme #pageFinanceiro #ledger .day-group-rows .row,
html.mp-light-theme #pageFinanceiro #ledger .day-group-rows .row .desc,
html.mp-light-theme #pageFinanceiro #ledger .day-group-rows .row .launch-desc-text{
  color:#1F2937!important;
  -webkit-text-fill-color:#1F2937!important;
  opacity:1!important;
}

html.mp-light-theme #pageFinanceiro #ledger .day-group-rows .row .date,
html.mp-light-theme #pageFinanceiro #ledger .day-group-rows .row .running{
  color:#4B5F56!important;
  -webkit-text-fill-color:#4B5F56!important;
  opacity:1!important;
}

/* Tags de categoria tinham cor inline pensada para o tema escuro.
   No claro, preserva o fundo suave mas escurece o texto para leitura. */
html.mp-light-theme #pageFinanceiro #ledger .day-group-rows .row .tag,
html.mp-light-theme #pageFinanceiro #ledger .day-group-rows .row .uber-category-tag{
  color:#1F5F49!important;
  -webkit-text-fill-color:#1F5F49!important;
  border:1px solid rgba(31,95,73,.16)!important;
  opacity:1!important;
}

/* Valores continuam semânticos, mas com tons próprios para fundo claro. */
html.mp-light-theme #pageFinanceiro #ledger .day-group-rows .row .amount.in{
  color:#047857!important;
  -webkit-text-fill-color:#047857!important;
}
html.mp-light-theme #pageFinanceiro #ledger .day-group-rows .row .amount.out{
  color:#DC2626!important;
  -webkit-text-fill-color:#DC2626!important;
}


/* ==========================================================
   MODO CLARO — AUDITORIA v20
   Ajuste pelos elementos reais vistos nas telas.
   ========================================================== */

/* CONSULTOR > Resumo do mês > Entradas/Saídas:
   os nomes Uber, 99, InDrive, Particular, Taxi, Combustível etc.
   pertencem diretamente a .cat-legend-left. */
html.mp-light-theme .page-consultor-modern .cat-legend-left,
html.mp-light-theme .page-consultor-modern .cat-legend-left span,
html.mp-light-theme .page-consultor-modern .cat-legend-left span:last-child,
html.mp-light-theme .page-consultor-modern .legend-left,
html.mp-light-theme .page-consultor-modern .legend-left span,
html.mp-light-theme .page-consultor-modern .legend-left span:last-child {
  color:#1F2937!important;
  -webkit-text-fill-color:#1F2937!important;
  opacity:1!important;
}

html.mp-light-theme .page-consultor-modern .cat-legend-detail,
html.mp-light-theme .page-consultor-modern .legend-amount {
  color:#4B5563!important;
  -webkit-text-fill-color:#4B5563!important;
  opacity:1!important;
}

html.mp-light-theme .page-consultor-modern .cat-legend-chevron {
  color:#66756E!important;
  -webkit-text-fill-color:#66756E!important;
  opacity:1!important;
}

/* FINANCEIRO:
   mantém os nomes dos lançamentos como ficaram na v19.
   Somente a etiqueta Uber volta a ter texto branco sobre o fundo preto. */
html.mp-light-theme .page-financeiro-modern #ledger .row .tag.uber-category-tag,
html.mp-light-theme .page-dark-modern #ledger .row .tag.uber-category-tag,
html.mp-light-theme #pageFinanceiro #ledger .row .tag.uber-category-tag,
html.mp-light-theme #pageFinanceiro #ledger .day-group-rows .row .tag.uber-category-tag {
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  opacity:1!important;
}


/* =========================================================
   HOME V2 — layout aprovado (tema escuro padrão)
   ========================================================= */
.page-home-modern{--home-v2-green:#22E38E;--home-v2-card:#0D261C;--home-v2-card2:#103426;--home-v2-line:rgba(34,227,142,.16);}
.page-home-modern .home-modern-header-v2{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:2px 0 8px;}
.page-home-modern .home-modern-header-v2 .home-greeting-block{min-width:0;flex:1;padding-top:2px;}
.page-home-modern .home-modern-header-v2 .home-greeting{font-family:'Sora','Inter',sans-serif;font-size:29px;font-weight:800;line-height:1.06;color:#F8FBF9;letter-spacing:-.8px;}
.page-home-modern .home-modern-header-v2 .home-greeting-sub{margin-top:5px;color:#C5D2CC;font-size:12.5px;font-weight:500;white-space:nowrap;}
.page-home-modern .home-modern-header-v2 .home-header-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto;}
.page-home-modern .home-modern-header-v2 .home-notification-btn{width:48px;height:48px;border-radius:17px;background:rgba(14,47,34,.72);border:1px solid rgba(255,255,255,.06);box-shadow:none;}
.page-home-modern .home-score-top{height:58px;min-width:138px;max-width:154px;padding:7px 9px 7px 10px;border-radius:17px;border:1px solid rgba(34,227,142,.18);background:linear-gradient(145deg,#103528,#0A2118);display:flex;align-items:center;gap:8px;color:#fff;cursor:pointer;box-shadow:0 8px 20px rgba(0,0,0,.12);font:inherit;text-align:left;}
.page-home-modern .home-score-bars{width:25px;height:28px;display:flex;align-items:flex-end;gap:3px;flex:0 0 25px;}
.page-home-modern .home-score-bars i{width:5px;border-radius:4px;background:#22E38E;display:block;box-shadow:0 0 10px rgba(34,227,142,.22);}.page-home-modern .home-score-bars i:nth-child(1){height:10px}.page-home-modern .home-score-bars i:nth-child(2){height:17px}.page-home-modern .home-score-bars i:nth-child(3){height:24px}
.page-home-modern .home-score-copy{min-width:0;flex:1;display:flex;flex-direction:column;}.page-home-modern .home-score-number{display:flex;align-items:baseline;gap:2px;line-height:1}.page-home-modern .home-score-number strong{font-family:'Sora','Inter',sans-serif;font-size:21px;font-weight:800;color:#fff}.page-home-modern .home-score-number em{font-style:normal;font-size:10px;color:#D5DEDA;font-weight:600}.page-home-modern .home-score-top .health-status-compact{margin-top:3px;color:#22E38E!important;font-size:8.5px!important;font-weight:800!important;line-height:1.05;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:80px}.page-home-modern .home-score-top .health-bar-track-compact{display:block;height:4px;margin-top:5px;border-radius:99px;background:rgba(255,255,255,.10);overflow:hidden}.page-home-modern .home-score-top .health-bar-fill{display:block;height:100%;border-radius:inherit;background:#22E38E}.page-home-modern .home-score-chevron{color:#22E38E;font-size:23px;line-height:1;margin-left:0}
.page-home-modern .today-date-label{margin:4px 0 11px;color:#C9D4CF;font-size:13px;}
.page-home-modern .home-daily-message-featured{margin-bottom:10px;}
.page-home-modern .home-smart-grid{margin:10px 0 17px!important;}
.page-home-modern .home-smart-card.home-journey-card{min-height:64px!important;padding:9px 14px!important;border-radius:18px!important;background:linear-gradient(135deg,#103528,#0A2118 72%)!important;border:1px solid rgba(34,227,142,.28)!important;box-shadow:0 10px 24px rgba(0,0,0,.13)!important;}
.page-home-modern .home-smart-card.home-journey-card .home-journey-main-label{font-size:17px!important;color:#F7FBF9!important;}.page-home-modern .home-smart-card.home-journey-card .home-smart-arrow{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#22E38E;color:#052417!important;font-size:30px;box-shadow:0 0 20px rgba(34,227,142,.25)}
.page-home-modern .home-section-head{align-items:end;margin-top:4px;margin-bottom:10px;}.page-home-modern .home-section-head h1{font-size:25px;letter-spacing:-.5px}.page-home-modern .home-evolution-link{border:1px solid rgba(34,227,142,.20);background:rgba(16,53,40,.72);color:#EAF6F0;border-radius:14px;padding:10px 12px;font:700 11px 'Inter',sans-serif;cursor:pointer;white-space:nowrap}.page-home-modern .home-evolution-link span{color:#22E38E;font-size:17px;vertical-align:-1px;margin-left:3px}
.page-home-modern .balance-card{padding:18px!important;border-color:rgba(34,227,142,.22)!important;background:linear-gradient(145deg,#10422F,#0B2D21 72%)!important;box-shadow:0 14px 34px rgba(0,0,0,.16)!important}.page-home-modern .balance-label-row{margin-top:0!important}.page-home-modern .balance-value{font-size:42px!important;letter-spacing:-1.7px}.page-home-modern .home-flow-grid{margin-top:15px!important;padding-top:14px!important}
.page-home-modern .home-ideal-km-card{width:100%;min-height:66px;margin:10px 0 9px;padding:9px 13px;border:1px solid rgba(34,227,142,.18);border-radius:18px;background:linear-gradient(145deg,#103528,#0A2118);display:grid;grid-template-columns:46px minmax(0,1fr) 34px;align-items:center;gap:10px;color:#fff;text-align:left;cursor:pointer;font:inherit;box-shadow:0 8px 20px rgba(0,0,0,.10)}.page-home-modern .home-ideal-icon{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:rgba(34,227,142,.09);color:#22E38E}.page-home-modern .home-ideal-icon svg{width:31px;height:31px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.page-home-modern .home-ideal-copy{min-width:0;display:flex;flex-direction:column}.page-home-modern .home-ideal-copy small{font-size:10px;color:#D2DDD7}.page-home-modern .home-ideal-copy strong{font-family:'Sora','Inter',sans-serif;font-size:19px;color:#fff;margin-top:1px}.page-home-modern .home-ideal-copy em{font-style:normal;color:#AFC3B9;font-size:10px;margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.page-home-modern .home-ideal-arrow{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:rgba(34,227,142,.08);color:#22E38E;font-size:27px}
.page-home-modern .home-saved-months-toggle{margin-top:0!important;}
.page-home-modern .home-performance-label{margin-top:16px!important}.page-home-modern .home-metrics-grid{margin-bottom:10px!important}
.page-home-modern .home-motivation-banner{position:relative;height:98px;margin:12px 0 16px;border:1px solid rgba(34,227,142,.45);border-radius:18px;overflow:hidden;background:#09261B;box-shadow:0 10px 24px rgba(0,0,0,.13)}.page-home-modern .home-motivation-banner img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.page-home-modern .home-motivation-banner::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,31,21,.96) 0%,rgba(5,31,21,.76) 34%,rgba(5,31,21,.12) 65%,rgba(5,31,21,.02) 100%)}.page-home-modern .home-motivation-copy{position:absolute;z-index:1;left:15px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;line-height:.98}.page-home-modern .home-motivation-copy strong{font-family:'Sora','Inter',sans-serif;font-size:19px;color:#F8FBF9;letter-spacing:-.3px}.page-home-modern .home-motivation-copy strong:nth-child(2){color:#22E38E}
@media(max-width:380px){.page-home-modern .home-modern-header-v2 .home-greeting{font-size:25px}.page-home-modern .home-modern-header-v2 .home-greeting-sub{font-size:10.5px}.page-home-modern .home-score-top{min-width:124px;padding-left:8px;gap:6px}.page-home-modern .home-score-bars{width:21px;flex-basis:21px}.page-home-modern .home-score-bars i{width:4px}.page-home-modern .home-score-number strong{font-size:19px}.page-home-modern .home-score-top .health-status-compact{max-width:68px}.page-home-modern .balance-value{font-size:37px!important}}

/* HOME V2 — conteúdo do botão Jornada em três linhas */
.page-home-modern .home-smart-card.home-journey-card{display:grid!important;grid-template-columns:58px minmax(0,1fr) 42px!important;align-items:center!important;gap:10px!important;}
.page-home-modern .home-smart-card.home-journey-card .home-journey-copy{display:flex;min-width:0;flex-direction:column;align-items:flex-start;justify-content:center;line-height:1.08;}
.page-home-modern .home-smart-card.home-journey-card .home-journey-copy small{display:block;color:#C3D2CB;font-size:9px;font-weight:600;letter-spacing:0;text-transform:none;}
.page-home-modern .home-smart-card.home-journey-card .home-journey-main-label{position:static!important;left:auto!important;top:auto!important;transform:none!important;display:block;font-size:17px!important;line-height:1.12!important;margin-top:2px;pointer-events:none;}
.page-home-modern .home-smart-card.home-journey-card .home-journey-copy em{display:block;color:#AFC2B8;font-size:10px;font-style:normal;font-weight:500;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;}
.page-home-modern .home-smart-card.home-journey-card .home-smart-arrow{margin-left:0!important;justify-self:end;}


/* HOME V2 — tipografia compacta no padrão do restante do app */
.page-home-modern .home-modern-header-v2 .home-greeting{font-size:23px!important;letter-spacing:-.45px!important;}
.page-home-modern .home-modern-header-v2 .home-greeting-sub{font-size:11px!important;}
.page-home-modern .today-date-label{font-size:11px!important;}
.page-home-modern .home-score-number strong{font-size:18px!important;}
.page-home-modern .home-score-number em{font-size:9px!important;}
.page-home-modern .home-score-top .health-status-compact{font-size:8px!important;}
.page-home-modern .home-score-chevron{font-size:20px!important;}
.page-home-modern .home-smart-card.home-journey-card .home-journey-main-label{font-size:14px!important;}
.page-home-modern .home-smart-card.home-journey-card .home-journey-copy small{font-size:8.5px!important;}
.page-home-modern .home-smart-card.home-journey-card .home-journey-copy em{font-size:9.5px!important;}
.page-home-modern .home-smart-card.home-journey-card .home-smart-arrow{font-size:25px!important;}
.page-home-modern .home-section-head h1{font-size:19px!important;letter-spacing:-.25px!important;}
.page-home-modern .home-evolution-link{font-size:10px!important;padding:8px 10px!important;}
.page-home-modern .home-evolution-link span{font-size:15px!important;}
.page-home-modern .balance-value{font-size:34px!important;letter-spacing:-1.1px!important;}
.page-home-modern .home-ideal-copy small{font-size:9.5px!important;}
.page-home-modern .home-ideal-copy strong{font-size:16px!important;}
.page-home-modern .home-ideal-copy em{font-size:9.5px!important;}
.page-home-modern .home-ideal-arrow{font-size:23px!important;}
.page-home-modern .home-motivation-copy strong{font-size:16px!important;}
@media(max-width:380px){
  .page-home-modern .home-modern-header-v2 .home-greeting{font-size:21px!important;}
  .page-home-modern .home-modern-header-v2 .home-greeting-sub{font-size:10px!important;}
  .page-home-modern .home-score-number strong{font-size:17px!important;}
  .page-home-modern .home-section-head h1{font-size:18px!important;}
  .page-home-modern .balance-value{font-size:31px!important;}
}

/* HOME V2 — correções finais de alinhamento e popup */

/* Nome e ações na primeira linha; frase motivacional embaixo, sem sobreposição. */
.page-home-modern .home-modern-header-v2{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  grid-template-rows:auto auto!important;
  column-gap:10px!important;
  row-gap:5px!important;
  align-items:start!important;
}
.page-home-modern .home-modern-header-v2 .home-greeting-block{
  display:contents!important;
}
.page-home-modern .home-modern-header-v2 .home-greeting{
  grid-column:1!important;
  grid-row:1!important;
  align-self:center!important;
  font-size:19px!important;
  line-height:1.08!important;
  letter-spacing:-.25px!important;
  white-space:nowrap!important;
}
.page-home-modern .home-modern-header-v2 .home-header-actions{
  grid-column:2!important;
  grid-row:1!important;
  align-self:start!important;
}
.page-home-modern .home-modern-header-v2 .home-greeting-sub{
  grid-column:1 / -1!important;
  grid-row:2!important;
  width:100%!important;
  margin:0!important;
  font-size:10.5px!important;
  line-height:1.35!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
}

/* Data alinhada à margem esquerda da Home. */
.page-home-modern .today-date-label{
  display:block!important;
  width:100%!important;
  margin:7px 0 11px!important;
  padding:0!important;
  text-align:left!important;
  align-self:stretch!important;
  justify-self:stretch!important;
  font-size:10.5px!important;
}

/* Carro um pouco mais à esquerda, alinhado visualmente com as aspas do card acima. */
.page-home-modern .home-smart-card.home-journey-card{
  padding-left:7px!important;
  grid-template-columns:60px minmax(0,1fr) 42px!important;
}
.page-home-modern .home-smart-card.home-journey-card .home-smart-icon.journey{
  justify-self:start!important;
  margin-left:-8px!important;
  transform:translateX(-2px)!important;
}

/* Carta de evolução como popup real sobre a tela. */
html.home-evolution-modal-open,
body.home-evolution-modal-open{
  overflow:hidden!important;
}
.home-evolution-modal{
  position:fixed!important;
  inset:0!important;
  z-index:100500!important;
  display:none;
  align-items:center!important;
  justify-content:center!important;
  padding:18px!important;
  background:rgba(0,10,6,.80)!important;
  backdrop-filter:blur(7px);
  -webkit-backdrop-filter:blur(7px);
}
.home-evolution-modal[style*="display: flex"],
.home-evolution-modal.is-open{
  display:flex!important;
}
.home-evolution-dialog{
  position:relative!important;
  width:min(100%,430px)!important;
  max-height:min(78vh,660px)!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  margin:0!important;
  border:1px solid rgba(34,227,142,.24)!important;
  border-radius:22px!important;
  background:linear-gradient(180deg,#0D2118 0%,#091810 100%)!important;
  box-shadow:0 22px 70px rgba(0,0,0,.52),0 0 0 1px rgba(255,255,255,.025) inset!important;
}
.home-evolution-dialog-head{
  flex:0 0 auto!important;
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:14px!important;
  padding:18px 18px 14px!important;
  border-bottom:1px solid rgba(255,255,255,.07)!important;
}
.home-evolution-dialog-head small{
  display:block!important;
  margin-bottom:4px!important;
  color:#22E38E!important;
  font:800 9px 'Sora',sans-serif!important;
  letter-spacing:1.1px!important;
}
.home-evolution-dialog-head h3{
  margin:0!important;
  color:#F3F8F5!important;
  font:750 17px 'Sora',sans-serif!important;
  letter-spacing:-.25px!important;
}
.home-evolution-close{
  width:34px!important;
  height:34px!important;
  flex:0 0 34px!important;
  display:grid!important;
  place-items:center!important;
  margin:-3px -3px 0 0!important;
  padding:0!important;
  border:1px solid rgba(255,255,255,.09)!important;
  border-radius:50%!important;
  background:rgba(255,255,255,.055)!important;
  color:#D8E7DE!important;
  font-size:18px!important;
  line-height:1!important;
  cursor:pointer!important;
}
.home-evolution-dialog-body{
  min-height:120px!important;
  overflow-y:auto!important;
  padding:17px 18px 19px!important;
  overscroll-behavior:contain;
}
.home-evolution-dialog-body .carta-evolucao{
  font-size:12.5px!important;
  line-height:1.58!important;
  color:#B8CBC0!important;
}
.home-evolution-dialog-body .carta-evolucao p{
  color:#B8CBC0!important;
  margin:0 0 10px!important;
}
.home-evolution-dialog-body .carta-evolucao b{color:#F3F8F5!important;}
.home-evolution-dialog-body .carta-evolucao .carta-titulo{
  color:#F3F8F5!important;
  font-size:14.5px!important;
  margin-bottom:12px!important;
}
.home-evolution-dialog-body .carta-evolucao .carta-economia{color:#22E38E!important;}
.home-evolution-dialog-body .carta-fechamento{
  color:#9CB2A6!important;
  border-top-color:rgba(255,255,255,.08)!important;
  padding-top:11px!important;
}
.home-evolution-loading{
  padding:28px 4px!important;
  color:#9CB2A6!important;
}
.home-evolution-dialog-body .eval-empty{
  color:#AFC3B7!important;
  font-size:12.5px!important;
  line-height:1.55!important;
}

@media(max-width:380px){
  .page-home-modern .home-modern-header-v2 .home-greeting{
    font-size:18px!important;
  }
  .page-home-modern .home-modern-header-v2 .home-greeting-sub{
    font-size:10px!important;
  }
  .home-evolution-modal{padding:13px!important;}
  .home-evolution-dialog{
    border-radius:19px!important;
    max-height:82vh!important;
  }
  .home-evolution-dialog-head{padding:16px 15px 13px!important;}
  .home-evolution-dialog-body{padding:15px 15px 17px!important;}
  .home-evolution-dialog-head h3{font-size:16px!important;}
}

/* HOME V2 — ajuste solicitado: nome embaixo, tipografia e calendário */

/* Saudação em duas linhas: evita qualquer conflito com sino/pontuação quando o nome for grande. */
.page-home-modern .home-modern-header-v2 .home-greeting{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  gap:1px!important;
  min-width:0!important;
  font-size:18px!important;
  line-height:1.08!important;
  letter-spacing:-.2px!important;
  white-space:normal!important;
}
.page-home-modern .home-modern-header-v2 .home-greeting-hello,
.page-home-modern .home-modern-header-v2 .home-greeting-name{
  display:block!important;
  max-width:100%!important;
}
.page-home-modern .home-modern-header-v2 .home-greeting-name{
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

/* "Resumo financeiro" na mesma escala visual da saudação. */
.page-home-modern .home-section-head h1{
  font-size:18px!important;
  line-height:1.08!important;
  letter-spacing:-.2px!important;
}

/* Frase e data um pouco maiores que no ajuste anterior, sem voltar ao tamanho exagerado. */
.page-home-modern .home-modern-header-v2 .home-greeting-sub{
  font-size:12px!important;
  line-height:1.4!important;
  margin-top:2px!important;
}
.page-home-modern .today-date-label{
  font-size:12px!important;
  line-height:1.35!important;
  margin-top:7px!important;
}

/* Ver meses salvos com ícone SVG de calendário verde. */
.page-home-modern .home-saved-months-toggle{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
}
.page-home-modern .home-saved-months-main{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  min-width:0!important;
}
.page-home-modern .home-saved-months-icon{
  width:27px!important;
  height:27px!important;
  flex:0 0 27px!important;
  display:grid!important;
  place-items:center!important;
  color:#22E38E!important;
}
.page-home-modern .home-saved-months-icon svg{
  width:22px!important;
  height:22px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.8!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}

@media(max-width:380px){
  .page-home-modern .home-modern-header-v2 .home-greeting,
  .page-home-modern .home-section-head h1{
    font-size:17px!important;
  }
  .page-home-modern .home-modern-header-v2 .home-greeting-sub,
  .page-home-modern .today-date-label{
    font-size:11.5px!important;
  }
}


/* ==========================================================
   AJUSTES 08/09/2026 — notificações e despesas recorrentes
   ========================================================== */
/* Centraliza verticalmente o texto do botão do cabeçalho de notificações. */
.notification-center-head .notification-read-all{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  line-height:1.15!important;
  padding-top:0!important;
  padding-bottom:0!important;
  text-align:center!important;
}

/* Categoria de despesa recorrente usa o mesmo seletor visual de Classificar. */
.page-financeiro-modern .recorrente-category-btn{
  flex:1;
  width:auto;
  min-height:38px;
  margin:0!important;
  padding:8px 11px!important;
  border-radius:10px!important;
  justify-content:flex-start;
  background:#102A20!important;
  color:#EAF2EE!important;
  border:1px solid rgba(255,255,255,.10)!important;
  box-shadow:none!important;
  font:600 13px 'Inter',sans-serif!important;
}

/* Ações da engrenagem usam a mesma folha escura de Classificar. */
.finance-category-option.recurring-delete-option{
  color:#FF8B85!important;
}
.finance-category-option.recurring-delete-option i{
  border-color:rgba(255,139,133,.65)!important;
}

/* Jornada & desempenho — mês > semana > dia */
.performance-month-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:2px 0 12px;border-bottom:1px solid var(--rule);margin-bottom:8px}
.performance-month-heading strong{color:var(--ink);font-size:15px;font-weight:800}.performance-month-heading small{color:var(--ink-soft);font-size:11px}
.performance-view-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0 10px}.performance-view-tab{min-height:38px;border:1px solid var(--rule);border-radius:9px;background:transparent;color:var(--ink-soft);font-weight:700;font-size:13px}.performance-view-tab.active{border-color:rgba(34,227,142,.5);background:rgba(34,227,142,.10);color:var(--ink)}
.performance-history-panel{display:block!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important}.performance-period-card{border-top:1px solid var(--rule);padding:10px 0 9px}.performance-period-card:first-child{border-top:0}.performance-period-head{width:100%;display:flex;align-items:center;justify-content:space-between;padding:0 0 7px;border:0;background:transparent;color:var(--ink);font-size:13.5px;font-weight:800;text-align:left}.performance-period-head b{font-size:17px;color:var(--ink-soft);font-weight:600}.performance-primary-lines>div,.performance-extra-lines>div{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:3px 0;font-size:12.5px}.performance-primary-lines span,.performance-extra-lines span{color:var(--ink-soft)}.performance-primary-lines b,.performance-extra-lines b{color:var(--ink);font-weight:650;text-align:right}.performance-primary-lines .performance-rkm span,.performance-primary-lines .performance-rkm b{color:var(--ink);font-weight:800}.performance-extra-lines{margin-top:8px;padding-top:8px;border-top:1px dashed var(--rule)}
.performance-months-toggle,.performance-current-month-btn{width:100%;margin-top:10px;min-height:38px;border:1px solid var(--rule);border-radius:9px;background:transparent;color:var(--ink);font-size:12.5px;font-weight:700;display:flex;align-items:center;justify-content:space-between;padding:0 12px}.performance-current-month-btn{justify-content:center;color:var(--green)}.performance-months-panel{display:none;margin-top:8px;border:1px solid var(--rule);border-radius:10px;background:var(--paper-deep);overflow:hidden}.performance-months-panel.open{display:block}.performance-months-title{padding:11px 12px 7px;color:var(--ink-soft);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.performance-month-option{width:100%;min-height:42px;border:0;border-top:1px solid var(--rule);background:transparent;color:var(--ink);display:flex;align-items:center;justify-content:space-between;padding:0 12px;text-align:left;font-size:13px}.performance-month-option.selected{color:var(--green);font-weight:800}.performance-month-option b{font-weight:700}


/* Ajuste final — R$/km Inteligente na Início + Jornada & desempenho no tema escuro */
.page-home-modern .home-ideal-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.page-home-modern .home-ideal-info-btn{display:inline-flex!important;align-items:center;justify-content:center;position:relative;z-index:2;color:#E8B84A!important;border-color:rgba(232,184,74,.62)!important;background:rgba(232,184,74,.08)!important;cursor:pointer}

.page-consultor-modern .consultor-performance-body .budget-card{background:#0D2119!important;border-color:rgba(255,255,255,.09)!important;color:#EAF2EE!important}
.page-consultor-modern .performance-view-tab{background:#102A20!important;border-color:rgba(255,255,255,.10)!important;color:#C7D3CD!important;box-shadow:none!important}
.page-consultor-modern .performance-view-tab.active{background:rgba(34,227,142,.12)!important;border-color:rgba(34,227,142,.48)!important;color:#F2F7F4!important}
.page-consultor-modern .performance-period-card{border-color:rgba(255,255,255,.09)!important}
.page-consultor-modern .performance-period-head{color:#F2F7F4!important}
.page-consultor-modern .performance-period-head b{color:#B9C8C1!important}
.page-consultor-modern .performance-primary-lines span,
.page-consultor-modern .performance-extra-lines span{color:#B9C8C1!important}
.page-consultor-modern .performance-primary-lines b,
.page-consultor-modern .performance-extra-lines b,
.page-consultor-modern .performance-primary-lines .performance-rkm span,
.page-consultor-modern .performance-primary-lines .performance-rkm b{color:#F2F7F4!important}
.page-consultor-modern .performance-extra-lines{border-color:rgba(255,255,255,.10)!important}
.page-consultor-modern .performance-month-heading{border-color:rgba(255,255,255,.10)!important}
.page-consultor-modern .performance-month-heading strong{color:#F2F7F4!important}
.page-consultor-modern .performance-month-heading small{color:#B9C8C1!important}
.page-consultor-modern .performance-months-toggle,
.page-consultor-modern .performance-current-month-btn{background:#102A20!important;border-color:rgba(255,255,255,.10)!important;color:#EAF2EE!important}
.page-consultor-modern .performance-current-month-btn{color:#22E38E!important}
.page-consultor-modern .performance-months-panel{background:#0B1D16!important;border-color:rgba(255,255,255,.10)!important;box-shadow:0 16px 34px rgba(0,0,0,.28)!important}
.page-consultor-modern .performance-months-title{background:#102A20!important;color:#AFC0B8!important}
.page-consultor-modern .performance-month-option{background:#0D2119!important;border-color:rgba(255,255,255,.08)!important;color:#EAF2EE!important}
.page-consultor-modern .performance-month-option:hover,
.page-consultor-modern .performance-month-option:focus{background:#123126!important}
.page-consultor-modern .performance-month-option.selected{background:rgba(34,227,142,.10)!important;color:#22E38E!important}


/* Ajuste Home — info do R$/km Inteligente ao lado do histórico, sem caixa */
.page-home-modern .home-ideal-subline{display:flex;align-items:center;gap:5px;min-width:0;margin-top:1px}
.page-home-modern .home-ideal-subline em{min-width:0;margin-top:0!important}
.page-home-modern .home-ideal-info-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#E8B84A!important;font-size:13px!important;line-height:1!important;font-weight:800!important;cursor:pointer!important}
.page-home-modern .home-ideal-info-btn:focus{outline:1px solid rgba(232,184,74,.55);outline-offset:2px;border-radius:50%!important}

/* Home — títulos dos indicadores de desempenho com leitura mais forte no tema escuro */
.page-home-modern .home-metrics-grid .home-metric-card > span{color:#F2F7F4!important;opacity:1!important;}


/* Diálogos internos do app: substituem alert/confirm brancos do navegador. */
.app-standard-dialog-overlay{
  position:fixed; inset:0; z-index:1000000; display:none;
  align-items:center; justify-content:center; padding:20px;
  background:rgba(0,0,0,.72); backdrop-filter:blur(2px);
}
.app-standard-dialog-overlay.open{display:flex;}
.app-standard-dialog{
  width:min(100%, 390px); border-radius:20px; padding:20px;
  background:#171a1f; border:1px solid rgba(255,255,255,.10);
  box-shadow:0 22px 60px rgba(0,0,0,.48);
  color:#f5f7f6; font-family:'Inter',sans-serif;
}
.app-standard-dialog-title{
  margin:0 0 9px; color:#fff; font-family:'Sora',sans-serif;
  font-size:17px; font-weight:700; line-height:1.25;
}
.app-standard-dialog-message{
  color:#d8ddda; font-size:14px; line-height:1.55; white-space:pre-line;
}
.app-standard-dialog-actions{
  display:flex; justify-content:flex-end; gap:9px; margin-top:20px; flex-wrap:wrap;
}
.app-standard-dialog-btn{
  appearance:none; border:0; border-radius:12px; min-height:42px;
  padding:0 16px; font:700 13px/1 'Inter',sans-serif; cursor:pointer;
}
.app-standard-dialog-btn.secondary{
  background:#24292d; color:#eef1ef; border:1px solid rgba(255,255,255,.10);
}
.app-standard-dialog-btn.primary{
  background:var(--green, #2ecb70); color:#07140c;
}
.app-standard-dialog-btn:focus-visible{outline:2px solid #d6aa4a; outline-offset:2px;}

/* Jornada GPS: reforço discreto de acompanhamento em tempo real */
.finance-journey-active-heading{display:flex;align-items:center;gap:9px;min-width:0}
.finance-journey-live-badge{display:none;align-items:center;white-space:nowrap;border-radius:999px;padding:5px 8px;background:rgba(34,227,142,.10);border:1px solid rgba(34,227,142,.20);color:#22E38E;font:800 9px 'Sora',sans-serif;letter-spacing:.06em}
.finance-journey-live-card.active .finance-journey-live-badge{display:inline-flex}


/* Fale conosco — Mais */
body.contact-modal-open{overflow:hidden}
.contact-modal-overlay{
  position:fixed;inset:0;z-index:100500;align-items:flex-end;justify-content:center;
  padding:18px;background:rgba(0,0,0,.72);backdrop-filter:blur(6px);
}
.contact-modal-sheet{
  width:min(100%,520px);max-height:92vh;overflow:auto;padding:20px;
  background:#0D1C16;border:1px solid rgba(255,255,255,.10);border-radius:22px;
  box-shadow:0 24px 70px rgba(0,0,0,.45);
}
.contact-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:18px}
.contact-modal-head small{display:block;color:#22E38E;font-size:9px;font-weight:800;letter-spacing:.13em;margin-bottom:5px}
.contact-modal-head h2{margin:0;color:#F4F8F6;font:800 19px/1.2 'Sora',sans-serif}
.contact-modal-head p{margin:6px 0 0;color:#9DB0A7;font-size:12px;line-height:1.45}
.contact-modal-head>button{width:36px;height:36px;flex:none;border-radius:12px;border:1px solid rgba(255,255,255,.09);background:#102A20;color:#CBD2CF;font-size:20px}
.contact-form{display:grid;gap:12px}
.contact-form label{display:grid;gap:6px;color:#C9D6D0;font-size:11px;font-weight:700}
.contact-form input,.contact-form select,.contact-form textarea{
  width:100%;box-sizing:border-box;border:1px solid rgba(255,255,255,.10);border-radius:13px;
  background:#091510;color:#F4F8F6;padding:12px 13px;font:500 13px/1.4 'Inter',sans-serif;outline:none;
}
.contact-form textarea{resize:vertical;min-height:118px}
.contact-form input:focus,.contact-form select:focus,.contact-form textarea:focus{border-color:rgba(34,227,142,.58);box-shadow:0 0 0 3px rgba(34,227,142,.08)}
.contact-form select option{background:#091510;color:#F4F8F6}
.contact-form input::placeholder,.contact-form textarea::placeholder{color:#6F8178}
.contact-submit-btn{width:100%;border:0;border-radius:14px;padding:13px 16px;background:#22E38E;color:#06130D;font:800 13px 'Sora',sans-serif}
.contact-submit-btn:disabled{opacity:.62}
.contact-status{display:none;font-size:12px;line-height:1.45;padding:10px 12px;border-radius:12px}
.contact-status.success{display:block;color:#BDF5D9;background:rgba(34,227,142,.09);border:1px solid rgba(34,227,142,.20)}
.contact-status.error{display:block;color:#FFD0D0;background:rgba(255,91,91,.08);border:1px solid rgba(255,91,91,.18)}
.contact-honeypot{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
@media (min-width:600px){.contact-modal-overlay{align-items:center}.contact-modal-sheet{border-radius:22px}}
