/* ===== Finanzas · estilos (mobile-first) =====
   Todo el color sale de variables: el modo oscuro solo requiere redefinirlas
   (activable con <html data-theme="dark">; aún no se activa automáticamente). */
:root {
  --bg: #F4F5F8; --surface: #FFFFFF; --surface-2: #EEF0F5; --ink: #0A0E17; --ink-2: #454E61; --ink-3: #6B7488;
  --line: #E3E6EC; --brand: #1F5EFF; --brand-2: #1649CC; --brand-soft: #E8EFFF; --on-brand: #FFFFFF;
  --good: #138A4B; --good-soft: #E3F5EB; --bad: #C62F2F; --bad-soft: #FBE7E7; --warn: #9A5A08; --warn-soft: #FCF0DC;
  --hero-1: #0A0E17; --hero-2: #12204A;
  --radius: 18px; --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(10,14,23,.04), 0 8px 24px rgba(10,14,23,.06);
  --nav-h: 62px; --sab: env(safe-area-inset-bottom, 0px); --sat: env(safe-area-inset-top, 0px);
}
:root[data-theme="dark"] {
  --bg: #0A0E17; --surface: #131A2A; --surface-2: #1B2438; --ink: #EEF1F7; --ink-2: #B4BCCB; --ink-3: #8993A6;
  --line: #243049; --brand: #5B8CFF; --brand-2: #7FA4FF; --brand-soft: #172447; --on-brand: #0A0E17;
  --good: #4CC98A; --good-soft: #10281D; --bad: #FF7A7A; --bad-soft: #321517; --warn: #F2B35E; --warn-soft: #332410;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-tap-highlight-color: transparent; }
body.noscroll { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
a { color: var(--brand); }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.muted { color: var(--ink-3); font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.pos { color: var(--good); } .neg { color: var(--bad); } .warn { color: var(--warn); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Shell ---------- */
.shell { min-height: 100dvh; }
.sidebar { display: none; }
.main { padding-bottom: calc(var(--nav-h) + var(--sab) + 92px); }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; padding: calc(var(--sat) + 10px) 16px 8px;
  background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); min-height: 56px; }
.topbar h1 { font-size: 1.35rem; letter-spacing: -.01em; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iconbtn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; display: grid; place-items: center; color: var(--ink); }
.iconbtn:hover { background: var(--surface-2); }
#view { padding: 4px 16px 24px; max-width: 1080px; margin: 0 auto; outline: none; }
.boot { color: var(--ink-3); padding: 48px 0; text-align: center; }

.bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--nav-h) + var(--sab)); padding-bottom: var(--sab); background: var(--surface); border-top: 1px solid var(--line); }
.bottomnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 48px;
  font-size: .7rem; color: var(--ink-3); text-decoration: none; }
.bottomnav a[aria-current="page"] { color: var(--brand); font-weight: 650; }
.fab { position: fixed; right: 16px; bottom: calc(var(--nav-h) + var(--sab) + 16px); z-index: 31; width: 58px; height: 58px; border-radius: 50%;
  border: 0; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; box-shadow: 0 10px 28px rgba(31,94,255,.45); }
.fab:active { transform: scale(.96); }

@media (min-width: 960px) {
  .shell { padding-left: 252px; }
  .sidebar { display: flex; flex-direction: column; gap: 4px; position: fixed; inset: 0 auto 0 0; width: 252px; padding: 24px 14px; background: var(--surface); border-right: 1px solid var(--line); }
  .sidebar .brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.15rem; padding: 4px 10px 18px; }
  .sidebar .brand i { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--hero-1), var(--hero-2)); display: grid; place-items: center; color: #fff; }
  .sidebar a, .sidebar button.sidelink { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--ink-2); text-decoration: none; font-weight: 550; border: 0; background: none; width: 100%; text-align: left; }
  .sidebar a:hover, .sidebar button.sidelink:hover { background: var(--surface-2); }
  .sidebar a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
  .sidebar .newtx { margin: 6px 0 14px; justify-content: center; white-space: nowrap; width: 100%; }
  .sidebar .spacer { flex: 1; }
  .sidebar .who { padding: 10px 12px; font-size: .85rem; color: var(--ink-3); }
  .bottomnav { display: none; }
  .main { padding-bottom: 56px; }
  .fab { display: none; }
  #view { padding: 8px 32px 32px; }
  .topbar { padding-left: 32px; padding-right: 32px; }
}

/* ---------- Tarjetas y listas ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0 0 14px; box-shadow: var(--shadow); }
.card > h2, .card-head h2 { font-size: 1rem; font-weight: 700; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.card-head a, .linkbtn { font-size: .85rem; text-decoration: none; font-weight: 600; background: none; border: 0; color: var(--brand); padding: 6px 0; min-height: 36px; }
.grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.grid > .card { margin: 0; }
.stack { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }

.list { list-style: none; margin: 0; padding: 0; }
.row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; color: inherit; text-decoration: none; min-height: 56px; }
.list > li:first-child > .row, .row:first-child { border-top: 0; }
button.row, a.row { cursor: pointer; }
.row-icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem; background: var(--surface-2); }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-sub { color: var(--ink-3); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-amt { flex: none; font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; }
.row-amt small { display: block; font-weight: 500; color: var(--ink-3); font-size: .75rem; }
.daygroup { margin: 18px 0 2px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; color: var(--ink-3); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-radius: 24px; padding: 20px; color: #fff; margin-bottom: 14px;
  background: radial-gradient(120% 140% at 100% 0%, #1F5EFF33 0%, transparent 55%), linear-gradient(160deg, var(--hero-1), var(--hero-2)); box-shadow: 0 14px 40px rgba(10,14,23,.28); }
.hero-top { display: flex; align-items: center; gap: 16px; }
.hero-q { font-size: .8rem; opacity: .75; }
.hero-status { font-size: 1.5rem; font-weight: 750; letter-spacing: -.01em; margin: 2px 0 6px; }
.hero-note { font-size: .85rem; opacity: .8; }
.hero-ring { flex: none; }
.hero-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.hero-metric { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 12px; }
.hero-metric .l { font-size: .75rem; opacity: .75; display: flex; align-items: center; gap: 4px; }
.hero-metric .v { font-size: 1.3rem; font-weight: 750; margin-top: 2px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.hero .neg { color: #FF9C9C; } .hero .pos { color: #7BE0AD; }
.hero .iconbtn { color: #fff; width: 36px; height: 36px; border-radius: 10px; margin: -6px 0; }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; box-shadow: var(--shadow); min-width: 0; }
.kpi .l { font-size: .72rem; color: var(--ink-3); }
.kpi .v { font-size: 1.02rem; font-weight: 750; font-variant-numeric: tabular-nums; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.kpi .d { font-size: .7rem; color: var(--ink-3); margin-top: 2px; }
@media (min-width: 760px) { .kpi .v { font-size: 1.3rem; } }

/* ---------- Insights / badges / alerts ---------- */
.insight { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.insight:first-child { border-top: 0; }
.insight .dot { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; }
.insight .txt { flex: 1; font-size: .92rem; }
.lv-critical .dot, .lv-bad .dot { background: var(--bad-soft); color: var(--bad); }
.lv-warning .dot, .lv-warn .dot { background: var(--warn-soft); color: var(--warn); }
.lv-info .dot { background: var(--brand-soft); color: var(--brand); }
.lv-good .dot, .lv-ok .dot { background: var(--good-soft); color: var(--good); }
.badge { white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 650; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.badge.good { background: var(--good-soft); color: var(--good); } .badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.warn { background: var(--warn-soft); color: var(--warn); } .badge.brand { background: var(--brand-soft); color: var(--brand); }
.alert { padding: 10px 12px; border-radius: 12px; margin: 10px 0; font-size: .9rem; }
.alert-error { background: var(--bad-soft); color: var(--bad); } .alert-info { background: var(--brand-soft); color: var(--brand-2); }

/* ---------- Progreso ---------- */
.progress { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; position: relative; }
.progress > i { display: block; height: 100%; border-radius: 999px; background: var(--brand); min-width: 0; }
.progress.lv-ok > i, .progress.lv-good > i { background: var(--good); }
.progress.lv-warning > i, .progress.lv-warn > i { background: #D98A12; }
.progress.lv-reached > i, .progress.lv-exceeded > i, .progress.lv-bad > i, .progress.lv-high > i { background: var(--bad); }
.progress.lv-info > i { background: var(--brand); }
.progress.thin { height: 6px; }
.pmeta { display: flex; justify-content: space-between; font-size: .8rem; color: var(--ink-2); margin-top: 6px; gap: 8px; }

/* ---------- Controles ---------- */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 650; text-decoration: none; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn-primary:disabled { opacity: .6; }
.btn-ghost { background: transparent; } .btn-danger { color: var(--bad); border-color: var(--bad-soft); background: var(--bad-soft); }
.btn-block { width: 100%; } .btn-sm { min-height: 38px; padding: 0 12px; border-radius: 10px; font-size: .88rem; }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; } .btnrow > .btn { flex: 1; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field > label, .lbl { font-size: .8rem; color: var(--ink-2); font-weight: 600; }
.input, input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], select, textarea {
  font: inherit; width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); }
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.err { color: var(--bad); font-size: .8rem; min-height: 0; } .err:empty { display: none; }
.amount-input { font-size: 2.2rem; font-weight: 750; text-align: center; min-height: 72px; letter-spacing: -.02em; border: 0; background: var(--surface-2); border-radius: 18px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 14px; }
.seg button { min-height: 40px; border: 0; border-radius: 10px; background: transparent; font-weight: 650; color: var(--ink-2); }
.seg button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(10,14,23,.12); }
.seg button:disabled { opacity: .5; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.catgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font-size: .7rem; min-height: 72px; text-align: center; line-height: 1.15; color: var(--ink-2); }
.cat span.e { font-size: 1.35rem; }
.cat[aria-checked="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-2); font-weight: 700; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 2px var(--ink); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.switch button { width: 52px; height: 30px; border-radius: 999px; border: 0; background: var(--line); position: relative; flex: none; }
.switch button::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch button[aria-checked="true"] { background: var(--brand); } .switch button[aria-checked="true"]::after { transform: translateX(22px); }
.hint { background: var(--brand-soft); color: var(--brand-2); border-radius: 12px; padding: 10px 12px; font-size: .88rem; margin-top: 8px; }

/* ---------- Sheets / toasts ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(8,11,20,.5); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s ease-out; }
.sheet { width: 100%; max-height: 92dvh; display: flex; flex-direction: column; background: var(--bg); border-radius: 24px 24px 0 0; animation: rise .2s ease-out; }
.sheet-head { display: flex; align-items: center; gap: 8px; padding: 14px 8px 6px 20px; }
.sheet-head h2 { flex: 1; font-size: 1.1rem; }
.sheet-body { overflow-y: auto; padding: 8px 20px calc(20px + var(--sab)); -webkit-overflow-scrolling: touch; }
@media (min-width: 760px) { .overlay { align-items: center; } .sheet { width: 520px; border-radius: 24px; max-height: 88dvh; } }
@keyframes fade { from { opacity: 0; } } @keyframes rise { from { transform: translateY(24px); opacity: .6; } }
.toasts { position: fixed; top: calc(var(--sat) + 10px); left: 0; right: 0; z-index: 200; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { pointer-events: auto; max-width: 440px; padding: 12px 16px; border-radius: 14px; background: var(--ink); color: var(--surface); font-size: .92rem; box-shadow: var(--shadow); animation: rise .2s ease-out; }
.toast.error { background: var(--bad); color: #fff; } .toast.good { background: var(--good); color: #fff; }

/* ---------- Estados ---------- */
.empty { text-align: center; padding: 36px 16px; color: var(--ink-2); }
.empty .ico { width: 64px; height: 64px; border-radius: 20px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin: 0 auto 14px; }
.empty h2 { font-size: 1.1rem; color: var(--ink); margin-bottom: 6px; } .empty p { margin-bottom: 16px; font-size: .92rem; }
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--line) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: shimmer 1.3s infinite; border-radius: 14px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ---------- Tarjeta digital ---------- */
.dcard { position: relative; border-radius: 22px; padding: 18px; color: #fff; min-height: 196px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; text-align: left; border: 0; width: 100%; box-shadow: 0 12px 30px rgba(10,14,23,.25); }
.dcard::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 90% at 100% 0%, rgba(255,255,255,.2), transparent 60%); pointer-events: none; }
.dcard > * { position: relative; }
.dcard .top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.dcard .pan { letter-spacing: .14em; font-size: .95rem; opacity: .9; margin: 10px 0; }
.dcard .avail { font-size: 1.7rem; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dcard .small { font-size: .78rem; opacity: .82; display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; }
.dcard .progress { background: rgba(255,255,255,.25); height: 7px; margin-top: 10px; } .dcard .progress > i { background: #fff !important; }
.statgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.stat .l { font-size: .74rem; color: var(--ink-3); } .stat .v { font-weight: 750; font-variant-numeric: tabular-nums; margin-top: 2px; } .stat .s { font-size: .72rem; color: var(--ink-3); margin-top: 2px; }
.cardlist { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .cardlist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Gráficas ---------- */
.chart { width: 100%; display: block; } .chart text { fill: var(--ink-3); font-size: 11px; font-family: inherit; }
.chart .big { fill: var(--ink); font-weight: 750; }
.legend { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 2px; }
.legend li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: .9rem; }
.legend .sw { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.legend .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legend .pc { color: var(--ink-3); font-size: .8rem; width: 44px; text-align: right; }
.legend button { all: unset; display: flex; align-items: center; gap: 10px; width: 100%; cursor: pointer; }
.hbar { display: grid; grid-template-columns: 96px 1fr auto; gap: 10px; align-items: center; padding: 6px 0; font-size: .88rem; }
.hbar .progress { height: 12px; }
details.data { margin-top: 10px; font-size: .85rem; } details.data summary { color: var(--brand); cursor: pointer; min-height: 32px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .82rem; margin-top: 6px; } .tbl th, .tbl td { text-align: right; padding: 5px 6px; border-top: 1px solid var(--line); } .tbl th:first-child, .tbl td:first-child { text-align: left; }
.monthnav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.monthnav strong { font-size: 1.02rem; }

/* ---------- Calendario ---------- */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .dow { text-align: center; font-size: .7rem; color: var(--ink-3); font-weight: 700; padding: 4px 0; }
.cal button.day { aspect-ratio: 1; min-height: 44px; border: 1px solid transparent; border-radius: 12px; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-weight: 600; color: var(--ink); }
.cal .day.out { visibility: hidden; }
.cal button.day.today { border-color: var(--brand); }
.cal button.day[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.cal .dots { display: flex; gap: 3px; height: 6px; } .cal .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.cal .dots i.due { background: var(--bad); } .cal .dots i.cut { background: #D98A12; } .cal .dots i.inc { background: var(--good); }
.keys { display: flex; gap: 14px; flex-wrap: wrap; font-size: .75rem; color: var(--ink-3); margin-top: 10px; } .keys i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }

/* ---------- Auth (login / registro) ---------- */
body.auth { background: radial-gradient(100% 60% at 50% 0%, #12204A 0%, #0A0E17 70%); min-height: 100dvh; }
.auth-card { max-width: 420px; margin: 0 auto; padding: 56px 20px 32px; color: #fff; }
.auth-card h1 { font-size: 1.8rem; margin-bottom: 4px; } .auth-card .muted { color: rgba(255,255,255,.7); margin-bottom: 18px; }
.auth-card .field > label { color: rgba(255,255,255,.8); } .auth-card a { color: #8FB0FF; }
.auth-card .input, .auth-card input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
.auth-card .btn-primary { width: 100%; margin-top: 6px; }
.auth-card .check { display: flex; gap: 8px; align-items: center; margin: 0 0 14px; font-size: .9rem; color: rgba(255,255,255,.85); }
.auth-card .check input { width: 20px; min-height: 20px; }
.auth-card .alert-error { background: rgba(255,120,120,.15); color: #FFB4B4; } .auth-card .alert-info { background: rgba(120,160,255,.18); color: #C9D8FF; }
.auth-card .field-error { color: #FFB4B4; font-size: .8rem; }
.auth-card pre.debug { white-space: pre-wrap; font-size: .75rem; }
.toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.search { position: relative; flex: 1; } .search svg { position: absolute; left: 12px; top: 14px; color: var(--ink-3); } .search input { padding-left: 38px; }
