/* ==========================================================================
   LifeControl - identidade visual
   Verde escuro (principal) • verde claro (destaques) • branco (fundos) • cinza (secundário)
   ========================================================================== */
:root {
  --lc-primary: #14532d;
  --lc-primary-600: #166534;
  --lc-primary-700: #0f4023;
  --lc-accent: #4ade80;
  --lc-accent-soft: #dcfce7;
  --lc-bg: #f4f7f5;
  --lc-card: #ffffff;
  --lc-border: #e5ebe7;
  --lc-text: #14231b;
  --lc-muted: #6b7a72;
  --lc-income: #16a34a;
  --lc-expense: #dc2626;
  --lc-radius: 18px;
  --lc-shadow: 0 1px 2px rgba(16, 40, 28, .04), 0 8px 24px rgba(16, 40, 28, .05);
  --lc-sidebar-w: 268px;

  --bs-primary: #14532d;
  --bs-primary-rgb: 20, 83, 45;
  --bs-link-color: #166534;
  --bs-link-hover-color: #14532d;
  --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bs-body-bg: var(--lc-bg);
  --bs-body-color: var(--lc-text);
  --bs-border-radius: 12px;
  --bs-border-radius-lg: 16px;
  --bs-secondary-color: var(--lc-muted);
}

[data-bs-theme="dark"] {
  --lc-primary: #22c55e;
  --lc-primary-600: #16a34a;
  --lc-primary-700: #15803d;
  --lc-accent: #4ade80;
  --lc-accent-soft: rgba(74, 222, 128, .14);
  --lc-bg: #0c1511;
  --lc-card: #131f19;
  --lc-border: #1f2e26;
  --lc-text: #e6f0ea;
  --lc-muted: #92a79b;
  --lc-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  --bs-body-bg: var(--lc-bg);
  --bs-body-color: var(--lc-text);
  --bs-link-color: #4ade80;
  --bs-link-hover-color: #86efac;
  --bs-border-color: var(--lc-border);
  --bs-secondary-color: var(--lc-muted);
}

html { scroll-behavior: smooth; }
body { background: var(--lc-bg); color: var(--lc-text); font-size: .94rem; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; }
.text-secondary { color: var(--lc-muted) !important; }
.text-income { color: var(--lc-income) !important; }
.text-expense { color: var(--lc-expense) !important; }
.fw-600 { font-weight: 600; }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- Estrutura ---------- */
.lc-shell { display: flex; min-height: 100vh; }
.lc-sidebar {
  width: var(--lc-sidebar-w); flex: 0 0 var(--lc-sidebar-w); position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: linear-gradient(180deg, #0b3d22 0%, #14532d 100%); color: #e8f5ec; padding: 22px 16px; flex-direction: column;
}
.lc-sidebar--mobile { position: static; width: 100%; height: auto; display: flex; flex: 1; }
.lc-offcanvas { background: #0b3d22; width: 290px !important; }
.lc-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 22px; color: #fff; }
.lc-brand--dark { color: var(--lc-primary); padding: 0; }
.lc-brand__logo {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem;
  background: linear-gradient(135deg, #4ade80, #16a34a); color: #072e17;
}
.lc-brand__name { font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; }
.lc-nav__group { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; opacity: .55; padding: 16px 12px 6px; }
.lc-nav__link {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: #d3e8da; font-weight: 500;
  transition: background .15s, color .15s, transform .15s;
}
.lc-nav__link i { font-size: 1.1rem; width: 22px; text-align: center; opacity: .9; }
.lc-nav__link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.lc-nav__link.active { background: rgba(74, 222, 128, .18); color: #fff; box-shadow: inset 3px 0 0 var(--lc-accent); }
.lc-nav__badge { margin-left: auto; background: #4ade80; color: #072e17; border-radius: 999px; }
.lc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lc-topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 14px 28px;
  background: color-mix(in srgb, var(--lc-bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--lc-border);
}
.lc-topbar__title { flex: 1; min-width: 0; }
.lc-topbar__title h1 { font-size: 1.3rem; font-weight: 700; margin: 0; letter-spacing: -.02em; }
.lc-topbar__title p { margin: 0; color: var(--lc-muted); font-size: .82rem; }
.lc-topbar__actions { display: flex; align-items: center; gap: 8px; }
.lc-content { padding: 24px 28px 48px; max-width: 1480px; width: 100%; margin: 0 auto; animation: lcFade .35s ease both; }
@keyframes lcFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.lc-bell-dot {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; font-size: .65rem; font-weight: 700;
  display: grid; place-items: center; background: var(--lc-expense); color: #fff;
}
.lc-avatar {
  width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--lc-primary); color: #fff; font-weight: 700;
}
[data-bs-theme="dark"] .lc-avatar { color: #052e16; }

/* ---------- Cards ---------- */
.card, .lc-card {
  background: var(--lc-card); border: 1px solid var(--lc-border); border-radius: var(--lc-radius); box-shadow: var(--lc-shadow);
}
.lc-card { padding: 20px; height: 100%; }
.lc-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.lc-card__title { font-size: 1rem; font-weight: 650; margin: 0; }
.lc-card__sub { color: var(--lc-muted); font-size: .8rem; }
.stat-card { display: flex; gap: 14px; align-items: center; padding: 18px; transition: transform .2s, box-shadow .2s; }
.stat-card:hover { transform: translateY(-2px); }
.stat-card__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; background: var(--lc-accent-soft); color: var(--lc-primary-600); flex: none; }
.stat-card__icon.is-danger { background: rgba(220, 38, 38, .12); color: var(--lc-expense); }
.stat-card__icon.is-blue { background: rgba(14, 165, 233, .14); color: #0284c7; }
.stat-card__label { font-size: .78rem; color: var(--lc-muted); font-weight: 500; }
.stat-card__value { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.stat-card__hint { font-size: .74rem; color: var(--lc-muted); }
.stat-card--hero { background: linear-gradient(135deg, #14532d, #166534 60%, #15803d); color: #fff; border: 0; }
.stat-card--hero .stat-card__label, .stat-card--hero .stat-card__hint { color: rgba(255, 255, 255, .75); }
.stat-card--hero .stat-card__icon { background: rgba(255, 255, 255, .16); color: #bbf7d0; }

/* ---------- Botões ---------- */
.btn { font-weight: 550; border-radius: 12px; }
.btn-primary { --bs-btn-bg: var(--lc-primary); --bs-btn-border-color: var(--lc-primary); --bs-btn-hover-bg: var(--lc-primary-700); --bs-btn-hover-border-color: var(--lc-primary-700);
  --bs-btn-active-bg: var(--lc-primary-700); --bs-btn-active-border-color: var(--lc-primary-700); --bs-btn-disabled-bg: var(--lc-primary); --bs-btn-disabled-border-color: var(--lc-primary); }
[data-bs-theme="dark"] .btn-primary { --bs-btn-color: #052e16; --bs-btn-hover-color: #052e16; --bs-btn-active-color: #052e16; }
.btn-outline-primary { --bs-btn-color: var(--lc-primary-600); --bs-btn-border-color: var(--lc-primary-600); --bs-btn-hover-bg: var(--lc-primary); --bs-btn-hover-border-color: var(--lc-primary); --bs-btn-active-bg: var(--lc-primary); }
.btn-soft { background: var(--lc-accent-soft); color: var(--lc-primary-600); border: 0; }
.btn-soft:hover { background: color-mix(in srgb, var(--lc-accent-soft) 70%, var(--lc-accent)); color: var(--lc-primary-700); }
[data-bs-theme="dark"] .btn-soft { color: #86efac; }
.btn-icon { width: 38px; height: 38px; padding: 0; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--lc-border); background: var(--lc-card); color: var(--lc-text); }
.btn-icon:hover { background: var(--lc-accent-soft); color: var(--lc-primary-600); }
.btn-icon.btn-sm, .btn-icon-sm { width: 30px; height: 30px; border-radius: 9px; font-size: .85rem; }
.btn-ghost { background: transparent; border: 0; color: var(--lc-muted); }
.btn-ghost:hover { color: var(--lc-text); background: var(--lc-accent-soft); }

/* ---------- Formulários ---------- */
.form-control, .form-select { border-radius: 12px; border-color: var(--lc-border); background-color: var(--lc-card); padding: .6rem .85rem; }
.form-control:focus, .form-select:focus { border-color: var(--lc-primary-600); box-shadow: 0 0 0 .2rem rgba(34, 197, 94, .18); }
.form-label { font-size: .8rem; font-weight: 600; color: var(--lc-muted); margin-bottom: .3rem; }
.form-control-color { width: 100%; height: 42px; padding: 4px; }
.form-check-input:checked { background-color: var(--lc-primary-600); border-color: var(--lc-primary-600); }
.modal-content { border-radius: 20px; border: 1px solid var(--lc-border); background: var(--lc-card); }
.modal-header { border-bottom-color: var(--lc-border); }
.modal-footer { border-top-color: var(--lc-border); }
.modal-title { font-weight: 650; font-size: 1.05rem; }
.seg { display: flex; background: var(--lc-bg); border-radius: 12px; padding: 4px; gap: 4px; border: 1px solid var(--lc-border); }
.seg input { display: none; }
.seg label { flex: 1; text-align: center; padding: 8px 10px; border-radius: 9px; cursor: pointer; font-weight: 600; font-size: .85rem; color: var(--lc-muted); margin: 0; transition: .15s; }
.seg input:checked + label { background: var(--lc-card); color: var(--lc-text); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.seg input[value="income"]:checked + label { color: var(--lc-income); }
.seg input[value="expense"]:checked + label { color: var(--lc-expense); }

/* ---------- Tabelas e listas ---------- */
.table { --bs-table-bg: transparent; --bs-table-border-color: var(--lc-border); margin: 0; }
.table > :not(caption) > * > * { padding: .8rem .75rem; vertical-align: middle; }
.table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--lc-muted); font-weight: 600; border-bottom-width: 1px; white-space: nowrap; }
.table-hover > tbody > tr:hover > * { --bs-table-hover-bg: var(--lc-accent-soft); }
.badge-soft-success { background: rgba(22, 163, 74, .14); color: #15803d; }
.badge-soft-danger { background: rgba(220, 38, 38, .12); color: #dc2626; }
.badge-soft-warning { background: rgba(234, 179, 8, .18); color: #a16207; }
.badge-soft-secondary { background: rgba(100, 116, 139, .14); color: #64748b; }
.badge-soft-info { background: rgba(14, 165, 233, .14); color: #0369a1; }
[data-bs-theme="dark"] .badge-soft-success { color: #86efac; }
[data-bs-theme="dark"] .badge-soft-warning { color: #fde047; }
[data-bs-theme="dark"] .badge-soft-danger { color: #fca5a5; }
[data-bs-theme="dark"] .badge-soft-info { color: #7dd3fc; }
.badge { font-weight: 600; padding: .4em .65em; border-radius: 8px; }
.cat-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; flex: none; }
.cat-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 600; background: var(--lc-bg); border: 1px solid var(--lc-border); }
.row-actions { white-space: nowrap; }

/* ---------- Progresso ---------- */
.progress { height: 10px; border-radius: 99px; background: var(--lc-bg); border: 1px solid var(--lc-border); }
.progress-bar { border-radius: 99px; background: linear-gradient(90deg, #16a34a, #4ade80); transition: width .8s ease; }
.progress-bar.is-warn { background: linear-gradient(90deg, #eab308, #facc15); }
.progress-bar.is-danger { background: linear-gradient(90deg, #dc2626, #f87171); }
.progress-lg { height: 14px; }

/* ---------- Estados vazios ---------- */
.empty-state { text-align: center; padding: 34px 16px; color: var(--lc-muted); }
.empty-state i { font-size: 2.2rem; color: var(--lc-primary-600); opacity: .55; }
.empty-state h6 { margin: 10px 0 4px; color: var(--lc-text); font-weight: 650; }
.empty-state p { font-size: .85rem; margin-bottom: 12px; }

/* ---------- Navegação de mês ---------- */
.month-switcher { display: inline-flex; align-items: center; gap: 6px; }
.month-switcher__label { min-width: 150px; text-align: center; font-weight: 650; }

/* ---------- Tarefas ---------- */
.task-row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--lc-border); }
.task-row:last-child { border-bottom: 0; }
.task-check { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--lc-border); background: transparent; display: grid; place-items: center; cursor: pointer; flex: none; color: transparent; transition: .15s; padding: 0; }
.task-check:hover { border-color: var(--lc-primary-600); }
.task-row.is-done .task-check { background: var(--lc-primary-600); border-color: var(--lc-primary-600); color: #fff; }
.task-row.is-done .task-title { text-decoration: line-through; color: var(--lc-muted); }
.task-title { font-weight: 550; }
.task-meta { font-size: .78rem; color: var(--lc-muted); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.prio-bar { width: 4px; align-self: stretch; border-radius: 4px; flex: none; }
.prio-high { background: #ef4444; } .prio-medium { background: #eab308; } .prio-low { background: #94a3b8; }
.date-heading { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--lc-muted); font-weight: 650; padding: 16px 4px 4px; }

/* ---------- Calendário ---------- */
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-head { text-align: center; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--lc-muted); font-weight: 600; padding: 6px 0; }
.cal-day { min-height: 106px; border: 1px solid var(--lc-border); border-radius: 14px; padding: 6px; background: var(--lc-card); cursor: pointer; transition: .15s; overflow: hidden; }
.cal-day:hover { border-color: var(--lc-primary-600); transform: translateY(-1px); }
.cal-day.is-other { opacity: .45; }
.cal-day.is-today { border-color: var(--lc-primary-600); box-shadow: inset 0 0 0 1px var(--lc-primary-600); }
.cal-day__num { font-weight: 650; font-size: .82rem; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }
.cal-day.is-today .cal-day__num { background: var(--lc-primary); color: #fff; }
.cal-chip { display: block; font-size: .7rem; padding: 2px 6px; margin-top: 3px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid; background: var(--lc-bg); }
.cal-more { font-size: .68rem; color: var(--lc-muted); margin-top: 2px; }

/* ---------- Semana ---------- */
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(190px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.week-col { background: var(--lc-card); border: 1px solid var(--lc-border); border-radius: 16px; padding: 10px; min-height: 320px; display: flex; flex-direction: column; }
.week-col.is-today { border-color: var(--lc-primary-600); box-shadow: inset 0 0 0 1px var(--lc-primary-600); }
.week-col.drag-over { background: var(--lc-accent-soft); border-style: dashed; }
.week-col__head { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 4px 8px; border-bottom: 1px solid var(--lc-border); margin-bottom: 8px; }
.week-item { background: var(--lc-bg); border: 1px solid var(--lc-border); border-left-width: 4px; border-radius: 10px; padding: 8px 9px; margin-bottom: 8px; font-size: .82rem; cursor: grab; }
.week-item.is-done { opacity: .55; text-decoration: line-through; }
.week-item.dragging { opacity: .4; }
.week-item.fixed { cursor: default; }
.week-item__time { font-size: .72rem; color: var(--lc-muted); font-weight: 600; }
.week-add { margin-top: auto; padding-top: 6px; }

/* ---------- Hábitos ---------- */
.habit-card { padding: 18px; }
.habit-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 1.25rem; flex: none; }
.habit-dots { display: flex; gap: 5px; }
.habit-dot { width: 14px; height: 14px; border-radius: 5px; background: var(--lc-border); }
.habit-dot.done { background: var(--lc-primary-600); }
.habit-dot.miss { background: rgba(220, 38, 38, .35); }
.habit-dot.today { background: transparent; border: 2px solid var(--lc-primary-600); }
.habit-dot.off { background: transparent; border: 1px dashed var(--lc-border); }
.streak-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; background: rgba(249, 115, 22, .14); color: #ea580c; font-weight: 650; font-size: .8rem; }
.hcal-day { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; font-size: .8rem; font-weight: 600; border: 1px solid var(--lc-border); background: var(--lc-card); cursor: pointer; padding: 0; color: var(--lc-text); }
.hcal-day.done { background: var(--lc-primary-600); color: #fff; border-color: transparent; }
.hcal-day.partial { background: var(--lc-accent-soft); border-color: var(--lc-primary-600); }
.hcal-day.off { opacity: .35; cursor: default; }
.hcal-day.future { opacity: .5; cursor: default; }
.hcal-day.today { box-shadow: 0 0 0 2px var(--lc-accent); }

/* ---------- Foco ---------- */
.focus-ring { position: relative; width: min(320px, 78vw); aspect-ratio: 1; margin: 0 auto; }
.focus-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.focus-ring circle { fill: none; stroke-width: 10; }
.focus-ring .track { stroke: var(--lc-border); }
.focus-ring .bar { stroke: var(--lc-primary-600); stroke-linecap: round; transition: stroke-dashoffset .5s linear; }
.focus-ring.is-break .bar { stroke: #0ea5e9; }
.focus-time { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.focus-time strong { font-size: 3.2rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.focus-time span { color: var(--lc-muted); font-weight: 600; margin-top: 6px; }

/* ---------- Notificações ---------- */
.notif { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 14px; border: 1px solid var(--lc-border); background: var(--lc-card); margin-bottom: 10px; }
.notif__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; font-size: 1.1rem; }
.notif--danger .notif__icon { background: rgba(220, 38, 38, .12); color: #dc2626; }
.notif--warning .notif__icon { background: rgba(234, 179, 8, .18); color: #a16207; }
.notif--success .notif__icon { background: rgba(22, 163, 74, .14); color: #15803d; }
.notif--info .notif__icon { background: rgba(14, 165, 233, .14); color: #0284c7; }

/* ---------- Diversos ---------- */
.chart-box { position: relative; height: 280px; }
.chart-box--sm { height: 220px; }
.confirm-icon { width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; font-size: 1.5rem; background: rgba(220, 38, 38, .12); color: #dc2626; }
.lc-flash { border-radius: 14px; border: 0; }
.color-swatch { width: 14px; height: 14px; border-radius: 4px; display: inline-block; vertical-align: -2px; }
.list-clean { list-style: none; padding: 0; margin: 0; }
.nav-pills .nav-link { color: var(--lc-muted); border-radius: 10px; font-weight: 600; }
.nav-pills .nav-link.active { background: var(--lc-primary); color: #fff; }
[data-bs-theme="dark"] .nav-pills .nav-link.active { color: #052e16; }
.settings-nav .nav-link { text-align: left; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.limit-bar { font-size: .78rem; }
.print-only { display: none; }

/* ---------- Login / cadastro ---------- */
.auth-body { background: var(--lc-bg); }
.auth-wrap { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }
.auth-hero { background: linear-gradient(160deg, #0b3d22, #14532d 60%, #166534); color: #fff; padding: 48px 56px; flex-direction: column; justify-content: space-between; }
.auth-hero h2 { font-weight: 700; font-size: 2.2rem; letter-spacing: -.03em; line-height: 1.15; max-width: 460px; }
.auth-hero p { color: rgba(255, 255, 255, .8); max-width: 420px; font-size: 1.05rem; }
.auth-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.auth-points li { display: flex; gap: 12px; align-items: center; color: #e2f5e9; }
.auth-points i { width: 38px; height: 38px; border-radius: 12px; background: rgba(255, 255, 255, .12); display: grid; place-items: center; color: #86efac; }
.auth-panel { display: grid; place-items: center; padding: 32px 20px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; }

/* ---------- Responsivo ---------- */
@media (max-width: 991.98px) {
  .lc-topbar { padding: 12px 16px; }
  .lc-content { padding: 18px 14px 40px; }
  .auth-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
  .lc-topbar__title h1 { font-size: 1.1rem; }
  .cal-day { min-height: 64px; padding: 3px; }
  .cal-chip { font-size: 0; padding: 0; height: 5px; border-left: 0; border-radius: 3px; background: var(--lc-primary-600); }
  .cal-more { display: none; }
  .stat-card__value { font-size: 1.15rem; }
  .month-switcher__label { min-width: 120px; }
  .focus-time strong { font-size: 2.4rem; }
}

/* ---------- Impressão (exportar PDF) ---------- */
@media print {
  .lc-sidebar, .lc-topbar, .no-print, .btn, .offcanvas, .toast-container { display: none !important; }
  .print-only { display: block !important; }
  body { background: #fff !important; }
  .lc-content { padding: 0; max-width: 100%; animation: none; }
  .lc-card, .card { box-shadow: none; break-inside: avoid; border: 1px solid #ddd; }
  .tab-pane { display: block !important; opacity: 1 !important; }
  .chart-box { break-inside: avoid; }
  [data-bs-theme="dark"] { --lc-card: #fff; --lc-text: #111; --lc-muted: #555; --lc-border: #ddd; --lc-bg: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- Complementos ---------- */
.min-w-0 { min-width: 0; }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 6px; max-height: 150px; overflow-y: auto; padding: 2px; }
.icon-grid label { margin: 0; cursor: pointer; }
.icon-grid input { position: absolute; opacity: 0; pointer-events: none; }
.icon-grid span { display: grid; place-items: center; height: 40px; border-radius: 10px; border: 1px solid var(--lc-border); background: var(--lc-bg); color: var(--lc-muted); font-size: 1.05rem; transition: .15s; }
.icon-grid label:hover span { border-color: var(--lc-primary-600); color: var(--lc-primary-600); }
.icon-grid input:checked + span { background: var(--lc-primary); border-color: var(--lc-primary); color: #fff; }
.icon-grid input:focus-visible + span { outline: 2px solid var(--lc-accent); outline-offset: 2px; }
.cat-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.credit-card { border-radius: 18px; color: #fff; padding: 18px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--lc-shadow); cursor: pointer; transition: transform .2s; position: relative; border: 2px solid transparent; }
.credit-card:hover { transform: translateY(-3px); }
.credit-card.is-selected { border-color: var(--lc-accent); box-shadow: 0 0 0 3px rgba(74, 222, 128, .35); }
.credit-card .progress { background: rgba(255, 255, 255, .25); border-color: transparent; height: 8px; }
.credit-card .progress-bar { background: #fff; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.upcoming-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--lc-border); }
.upcoming-item:last-child { border-bottom: 0; }
.upcoming-date { width: 46px; text-align: center; flex: none; line-height: 1.1; }
.upcoming-date strong { display: block; font-size: 1.15rem; }
.upcoming-date span { font-size: .68rem; text-transform: uppercase; color: var(--lc-muted); font-weight: 600; }
.habit-quick { display: flex; align-items: center; gap: 8px; }
.habit-card.is-complete { border-color: var(--lc-primary-600); }
.habit-big-check { width: 44px; height: 44px; border-radius: 14px; border: 2px solid var(--lc-border); background: transparent; font-size: 1.3rem; color: transparent; display: grid; place-items: center; }
.habit-card.is-complete .habit-big-check { background: var(--lc-primary-600); border-color: var(--lc-primary-600); color: #fff; }
.cal-more-btn { cursor: pointer; }
.cal-chip.is-done { opacity: .5; text-decoration: line-through; }
.day-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--lc-border); }
.day-item:last-child { border-bottom: 0; }
.day-item__dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: none; }
.week-item.fixed { border-style: dashed; }
.week-item .move-btn { opacity: 0; transition: .15s; }
.week-item:hover .move-btn, .week-item:focus-within .move-btn { opacity: 1; }
@media (hover: none) { .week-item .move-btn { opacity: 1; } }
.invoice-status { font-size: .75rem; }
.stat-mini { font-size: .8rem; color: var(--lc-muted); }
.report-tab-pane { animation: lcFade .3s ease both; }
.table-compare td.up { color: var(--lc-expense); } .table-compare td.down { color: var(--lc-income); }
