/* Mis finanzas — paleta E · Piedra y ciruela (claro, oscuro y automático) */
:root {
  color-scheme: light;
  --bg: #f8f4f6; --surface: #fffdfe; --ink: #26181f; --ink2: #67545e; --line: #ebdfe5; --track: #efe4ea;
  --accent: #7a2e63; --accent-soft: #f4e4ef; --on-accent: #ffffff;
  --ok: #1b7a3a; --warn: #8f5400; --bad: #b3261e;
  --warn-soft: #f7ecd9; --bad-soft: #f8e3e1;
  --r: 14px; --gap: 12px;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --bg: #150f14; --surface: #1f161d; --ink: #f3e8ef; --ink2: #b5a0ae; --line: #35283a; --track: #35283a;
    --accent: #d98ec3; --accent-soft: #3a1f33; --on-accent: #2e0d26;
    --ok: #5ad07c; --warn: #e6b04a; --bad: #f08a82; --warn-soft: #2b2415; --bad-soft: #2f1c1a;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #150f14; --surface: #1f161d; --ink: #f3e8ef; --ink2: #b5a0ae; --line: #35283a; --track: #35283a;
  --accent: #d98ec3; --accent-soft: #3a1f33; --on-accent: #2e0d26;
  --ok: #5ad07c; --warn: #e6b04a; --bad: #f08a82; --warn-soft: #2b2415; --bad-soft: #2f1c1a;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.muted { color: var(--ink2); }
[hidden] { display: none !important; }

/* ---------- estructura ---------- */
.app { min-height: 100vh; }
.side { display: none; }
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; background: var(--surface);
  border-top: 1px solid var(--line); padding: 4px 6px calc(env(safe-area-inset-bottom) + 4px); }
.nav { display: flex; flex-direction: column; align-items: center; gap: 2px; background: none; border: 0; padding: 8px 4px; font-size: 11.5px; color: var(--ink2); border-radius: 10px; }
.nav svg { width: 22px; height: 22px; }
.nav[aria-current="page"] { color: var(--accent); font-weight: 600; }
.mid { display: grid; place-items: center; background: none; border: 0; padding: 0; }
.mid span { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; margin-top: -16px;
  box-shadow: 0 4px 12px rgb(0 0 0 / .22); border: 3px solid var(--surface); }
.mid svg { width: 24px; height: 24px; }
main { padding: 0 16px calc(env(safe-area-inset-bottom) + 150px); max-width: 1040px; margin: 0 auto; }
.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: calc(env(safe-area-inset-top) + 18px) 0 10px; }
.top h1 { margin: 0; font-size: 22px; letter-spacing: -.01em; }
.top .sub { font-size: 13px; color: var(--ink2); margin-top: 2px; }
.iconbtn { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; width: 38px; height: 38px; display: grid; place-items: center; }
.iconbtn svg { width: 18px; height: 18px; }
.iconbtn.girando svg { animation: gira .8s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.grid { display: grid; gap: var(--gap); }
.estado { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); font-size: 14px; }
.estado.error { background: var(--bad-soft); color: var(--bad); }
.vacio { color: var(--ink2); text-align: center; padding: 22px 0; }

/* ---------- tarjetas ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.card > h2 { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
.card > h2 .count { float: right; letter-spacing: 0; text-transform: none; font-weight: 500; }
.hero .big { font-size: 40px; line-height: 1.1; font-weight: 700; letter-spacing: -.025em; margin: 2px 0 2px; }
.hero .when { color: var(--ink2); font-size: 14px; }
.split { height: 8px; border-radius: 99px; background: var(--accent-soft); margin-top: 14px; overflow: hidden; }
.split i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--ink2); margin-top: 6px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--accent); }
.dot.cred { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.calc { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 4px; }
.calc .r { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; width: 100%; background: none; border: 0; text-align: left; }
.calc .r.total { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 10px; font-weight: 600; cursor: default; }
.calc .r small { display: block; color: var(--ink2); font-size: 12px; font-weight: 400; }
button.r { cursor: pointer; }
button.r .num.muted { text-decoration: underline dotted; text-underline-offset: 3px; }
.note { font-size: 12.5px; color: var(--ink2); margin: 10px 0 0; }
.callout { background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; margin-top: 12px; }

.list > .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; }
.list > .row:first-child { border-top: 0; padding-top: 2px; }
button.row { cursor: pointer; }
.row .t { min-width: 0; overflow-wrap: anywhere; }
.row .t small { display: block; color: var(--ink2); font-size: 12.5px; }
.pos { color: var(--ok); }
.chip { display: inline-block; font-size: 11.5px; padding: 1px 8px; border-radius: 99px; background: var(--warn-soft); color: var(--warn); margin-left: 6px; vertical-align: 1px; white-space: nowrap; }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.ok { background: var(--accent-soft); color: var(--accent); }

.meter { margin-top: 7px; }
.meter .trk { height: 8px; background: var(--track); border-radius: 99px; overflow: hidden; }
.meter .trk > i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.meter.warn .trk > i { background: var(--warn); } .meter.bad .trk > i { background: var(--bad); }
.meter .cap { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--ink2); margin-top: 4px; }
.item { padding: 11px 0; border-top: 1px solid var(--line); } .item:first-child { border-top: 0; padding-top: 2px; }
.item .hd { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }

.seg { display: flex; gap: 3px; padding: 3px; background: var(--track); border-radius: 11px; margin-bottom: 12px; }
.seg button { flex: 1; border: 0; background: none; padding: 8px 4px; border-radius: 8px; font-size: 13.5px; color: var(--ink2); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgb(0 0 0 / .12); }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 8px; }
.chips button { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 6px 12px; font-size: 13px; }
.chips button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.day { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); margin: 16px 0 6px; }
.day:first-child { margin-top: 0; }
details summary { cursor: pointer; color: var(--accent); font-size: 14px; padding: 8px 0 2px; }
.btn { display: inline-block; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 9px 14px; font-size: 14px; font-weight: 600; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn:disabled { opacity: .5; }

/* ---------- barra superior, apariencia y edición ---------- */
.actions { display: flex; gap: 8px; align-items: center; position: relative; }
.pop { position: absolute; right: 0; top: 46px; z-index: 25; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px; width: 232px;
  box-shadow: 0 10px 28px rgb(0 0 0 / .18); display: none; }
.pop.on { display: block; }
.pop h3 { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
.pop .seg { margin: 0; }
.pop .btn { width: 100%; margin-top: 10px; text-align: center; }
.bar-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
#v-editar { max-width: 680px; }
.edit-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.edit-row:first-child { border-top: 0; padding-top: 2px; }
.edit-row .nm { min-width: 0; overflow-wrap: anywhere; }
.edit-row .nm small { display: block; color: var(--ink2); font-size: 12px; }
.money { position: relative; width: 142px; flex: none; }
.money::before { content: "$"; position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink2); }
.money input { padding: 10px 10px 10px 24px; text-align: right; font-variant-numeric: tabular-nums; }
.day-in { width: 64px; flex: none; text-align: center; padding: 10px 6px; }
.totalbar { position: sticky; bottom: 70px; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin-top: 12px; box-shadow: 0 6px 20px rgb(0 0 0 / .12); }
.totalbar .lbl { font-size: 12.5px; color: var(--ink2); } .totalbar .val { font-size: 20px; font-weight: 700; }

/* ---------- hoja inferior (registrar, ajustes, fijo) ---------- */
.scrim { position: fixed; inset: 0; background: rgb(0 0 0 / .45); z-index: 30; display: none; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 31; background: var(--surface); border-radius: 20px 20px 0 0; padding: 10px 16px calc(env(safe-area-inset-bottom) + 18px);
  max-height: 90vh; overflow: auto; transform: translateY(105%); visibility: hidden; transition: transform .22s ease, visibility 0s .22s; max-width: 560px; margin: 0 auto; }
.sheet.on { transform: none; visibility: visible; transition: transform .22s ease, visibility 0s; } .scrim.on { display: block; }
.grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 12px; }
.sheet h2 { margin: 0 0 12px; font-size: 18px; }
label { display: block; font-size: 12.5px; color: var(--ink2); margin: 12px 0 4px; }
input, select { width: 100%; padding: 12px; font-size: 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.trm { display: flex; justify-content: space-between; margin-top: 12px; padding: 10px 12px; background: var(--accent-soft); border-radius: 10px; font-size: 14px; }
.sheet .go { width: 100%; margin-top: 16px; padding: 14px; border: 0; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 16px; }
.sheet .go:disabled { opacity: .5; }
.sheet .go.sec { background: var(--bg); color: var(--ink); border: 1px solid var(--line); margin-top: 8px; }
.errtxt { color: var(--bad); font-size: 13.5px; margin-top: 10px; }
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 92px); transform: translateX(-50%); background: var(--ink); color: var(--bg);
  padding: 10px 16px; border-radius: 99px; font-size: 14px; z-index: 40; max-width: 90vw; }

/* ---------- carga ---------- */
.skel { background: linear-gradient(90deg, var(--track), var(--line), var(--track)); background-size: 200% 100%; animation: brilla 1.2s infinite; border-radius: var(--r); height: 120px; margin-bottom: 12px; }
@keyframes brilla { to { background-position: -200% 0; } }
/* Barra fina arriba mientras se guarda o se actualiza */
.progreso { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; overflow: hidden; opacity: 0; transition: opacity .2s; pointer-events: none; }
.progreso::before { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; background: var(--accent); border-radius: 0 99px 99px 0; animation: avanza 1.1s ease-in-out infinite; }
body.ocupado .progreso { opacity: 1; }
@keyframes avanza { from { left: -40%; } to { left: 100%; } }
/* Botón guardando: ruedita y texto */
.cargando { position: relative; pointer-events: none; }
.cargando::before { content: ""; display: inline-block; width: 1em; height: 1em; margin-right: 8px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: gira .7s linear infinite; }
/* Categoría que se puede tocar */
button.item { display: block; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); color: inherit; font: inherit; cursor: pointer; }
button.item:first-child { border-top: 0; }
.ver { color: var(--accent); font-size: 12.5px; margin-left: 6px; }
button.item:active { opacity: .7; }
.sheet h3.sub { font-size: 14px; margin: 16px 0 4px; color: var(--ink2); font-weight: 600; }
/* Botones de subir y bajar 1.000 */
.paso { display: flex; align-items: center; gap: 6px; flex: none; }
.paso button { width: 36px; height: 40px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; font-size: 18px; line-height: 1; color: var(--ink); flex: none; }
.paso button:active { background: var(--accent-soft); }
.paso .money { width: 118px; }

/* ---------- escritorio ---------- */
@media (min-width: 900px) {
  .app { display: grid; grid-template-columns: 232px 1fr; }
  .side { display: flex; flex-direction: column; gap: 4px; padding: 24px 14px; position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--line); background: var(--surface); }
  .side .brand { font-weight: 700; font-size: 17px; padding: 0 10px 18px; }
  .side .nav { flex-direction: row; gap: 12px; padding: 10px 12px; font-size: 14.5px; width: 100%; justify-content: flex-start; }
  .side .nav[aria-current="page"] { background: var(--accent-soft); }
  .side .add { margin-top: 12px; }
  .bar { display: none; }
  main { padding: 0 32px 60px; width: 100%; }
  .cols { grid-template-columns: 1.15fr 1fr; align-items: start; }
  .totalbar { bottom: 16px; }
  .sheet { top: 0; bottom: 0; left: auto; right: 0; border-radius: 0; width: 420px; max-width: none; max-height: none; transform: translateX(105%); }
  .sheet.on { transform: none; }
  .toast { bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) { .sheet { transition: none; } .iconbtn.girando svg, .skel { animation: none; } .progreso::before { animation-duration: 3s; } }

/* Personas y gasto compartido (tanda 2) */
.linkbtn { display: block; background: none; border: 0; padding: 14px 0 4px; color: var(--accent); font-size: 14px; font-weight: 600; text-align: left; }
.reparto { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-top: 6px; }
.reparto .chips { flex-wrap: wrap; overflow: visible; }
.reparto .money { width: 132px; }
.acciones3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.acciones3 .btn { padding: 10px 6px; text-align: center; }
label.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); margin-top: 14px; }
label.check input { width: 20px; height: 20px; flex: none; accent-color: var(--accent); }
details summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 14px; padding: 6px 0; }

/* Arreglos iPhone (19-nov): fechas que caben en su columna y panel con teclado */
input, select { min-width: 0; max-width: 100%; }
.two > div { min-width: 0; }
input[type="date"] { -webkit-appearance: none; appearance: none; display: block; min-height: 46px; text-align: left; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.sheet { bottom: var(--kb, 0px); max-height: calc(var(--vvh, 100dvh) * .92); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sheet .grab { margin-top: 2px; margin-bottom: 14px; }
.sheet h2 { padding-right: 44px; }
.sheet .cerrar { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1; z-index: 1; }
.scrim { touch-action: none; }
@media (min-width: 900px) { .sheet { bottom: 0; max-height: none; } }

/* Tanda 3: administrar y categoría en vivo */
.nmbtn { background: none; border: 0; padding: 0; text-align: left; color: var(--ink); font: inherit; cursor: pointer; }
.nmbtn small { color: var(--accent); }
.catprev { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; padding: 8px 12px; border-radius: 10px; background: var(--accent-soft); font-size: 14px; }
.catprev strong { font-weight: 600; }
.linkbtn.inline { display: inline; padding: 0; flex: none; }

/* ---------- temas (19-nov): Ciruela y Liquid glass ---------- */
.temas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.temas button { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; text-align: left; }
.temas button[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 600; }
.temas i { flex: none; width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12); }

/* Liquid glass en Grafito (decisión del 19-nov): fondo gris con manchas de humo, vidrio en tarjetas, barras,
   botones y panel, y la barra de arriba fija para que el contenido pase por debajo.
   La intensidad se elige en Ajustes (data-vidrio: sutil, suave o medio). */
:root[data-paleta="liquid"][data-mode="light"] {
  --bg: #ececee; --surface: #ffffff; --ink: #111113; --ink2: rgb(0 0 0 / .58); --line: rgb(0 0 0 / .08); --track: rgb(0 0 0 / .07);
  --accent: #2c2c2e; --accent-soft: rgb(0 0 0 / .07); --on-accent: #ffffff;
  --b1: #b8b8c0; --b2: #d9d9de; --b3: #a9adb8; --r: 20px;
  --g: rgb(255 255 255 / .56); --gs: rgb(255 255 255 / .82); --edge: rgb(255 255 255 / .65); --edge2: rgb(255 255 255 / .15);
  --shine: rgb(255 255 255 / .9); --shine2: rgb(255 255 255 / .22); --shine3: rgb(255 255 255 / .06); --sh: rgb(20 20 40 / .09);
  --fondo: .6; --blur: blur(20px) saturate(165%);
}
:root[data-paleta="liquid"][data-mode="dark"] {
  --bg: #0c0c0d; --surface: #1c1c1e; --ink: #f5f5f7; --ink2: rgb(255 255 255 / .62); --line: rgb(255 255 255 / .1); --track: rgb(255 255 255 / .1);
  --accent: #f2f2f7; --accent-soft: rgb(255 255 255 / .1); --on-accent: #111113;
  --b1: #3a3a40; --b2: #26262b; --b3: #45474f; --r: 20px;
  --g: rgb(28 28 32 / .6); --gs: rgb(28 28 32 / .84); --edge: rgb(255 255 255 / .12); --edge2: rgb(255 255 255 / .04);
  --shine: rgb(255 255 255 / .18); --shine2: rgb(255 255 255 / .07); --shine3: rgb(255 255 255 / .02); --sh: rgb(0 0 0 / .38);
  --fondo: .6; --blur: blur(20px) saturate(165%);
}
/* Sutil: fondo apenas insinuado, vidrio casi opaco, sin reflejo */
:root[data-paleta="liquid"][data-mode="light"][data-vidrio="sutil"] { --g: rgb(255 255 255 / .72); --gs: rgb(255 255 255 / .9); --edge: rgb(255 255 255 / .7); --edge2: transparent; --shine: rgb(255 255 255 / .8); --shine2: transparent; --shine3: transparent; --sh: rgb(20 20 40 / .06); --fondo: .35; --blur: blur(24px) saturate(140%); }
:root[data-paleta="liquid"][data-mode="dark"][data-vidrio="sutil"] { --g: rgb(28 28 32 / .74); --gs: rgb(28 28 32 / .9); --edge: rgb(255 255 255 / .08); --edge2: transparent; --shine: rgb(255 255 255 / .1); --shine2: transparent; --shine3: transparent; --sh: rgb(0 0 0 / .3); --fondo: .35; --blur: blur(24px) saturate(140%); }
/* Medio: más transparencia y reflejo */
:root[data-paleta="liquid"][data-mode="light"][data-vidrio="medio"] { --g: rgb(255 255 255 / .34); --gs: rgb(255 255 255 / .72); --edge: rgb(255 255 255 / .6); --edge2: rgb(255 255 255 / .25); --shine: rgb(255 255 255 / .95); --shine2: rgb(255 255 255 / .45); --shine3: rgb(255 255 255 / .18); --sh: rgb(20 20 40 / .14); --fondo: 1; --blur: blur(18px) saturate(190%); }
:root[data-paleta="liquid"][data-mode="dark"][data-vidrio="medio"] { --g: rgb(30 30 36 / .4); --gs: rgb(30 30 36 / .76); --edge: rgb(255 255 255 / .16); --edge2: rgb(255 255 255 / .06); --shine: rgb(255 255 255 / .28); --shine2: rgb(255 255 255 / .12); --shine3: rgb(255 255 255 / .05); --sh: rgb(0 0 0 / .45); --fondo: 1; --blur: blur(18px) saturate(190%); }

:root[data-paleta="liquid"] body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: var(--fondo);
  background: radial-gradient(60% 45% at 0% 0%, var(--b1), transparent 70%), radial-gradient(55% 40% at 100% 35%, var(--b2), transparent 70%),
    radial-gradient(70% 45% at 30% 100%, var(--b3), transparent 70%); }
:root[data-paleta="liquid"] :is(.card, .bar, .side, .iconbtn, .top, .totalbar) {
  background-color: var(--g); background-image: linear-gradient(135deg, var(--shine2) 0%, transparent 38%, transparent 70%, var(--shine3) 100%);
  border-color: var(--edge); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: inset 0 1px 0 var(--shine), inset 0 -1px 0 var(--edge2), 0 8px 24px var(--sh); }
:root[data-paleta="liquid"] .sheet { background-color: var(--gs); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: inset 0 1px 0 var(--shine), 0 -10px 40px var(--sh); }
:root[data-paleta="liquid"] .sheet :is(input, select), :root[data-paleta="liquid"] .buscar :is(input, select) { background: var(--g); border-color: var(--edge); }
:root[data-paleta="liquid"] .scrim { background: rgb(0 0 0 / .25); }
:root[data-paleta="liquid"] .mid span { border-color: transparent; box-shadow: 0 6px 16px var(--sh); }
/* Barra superior fija con vidrio: el contenido pasa por debajo */
:root[data-paleta="liquid"] .top { position: sticky; top: 0; z-index: 15; margin: 0 -16px 12px; padding: calc(env(safe-area-inset-top) + 14px) 16px 10px;
  border: 1px solid var(--edge); border-top: 0; border-radius: 0 0 22px 22px; }
:root[data-paleta="liquid"] .top .iconbtn { box-shadow: inset 0 1px 0 var(--shine); }
@media (min-width: 900px) { :root[data-paleta="liquid"] .top { margin: 0 -32px 16px; padding-left: 32px; padding-right: 32px; } }
@media (max-width: 899px) {
  :root[data-paleta="liquid"] .bar { left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 8px); border: 1px solid var(--edge); border-radius: 28px; padding: 4px 6px; }
  :root[data-paleta="liquid"] .totalbar { bottom: calc(env(safe-area-inset-bottom) + 88px); }
}
@media (prefers-reduced-transparency: reduce) {
  :root[data-paleta="liquid"] :is(.card, .bar, .side, .iconbtn, .top, .totalbar, .sheet) { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- estilo sobrio (19-nov) ---------- */
/* Títulos de sección en minúscula normal, sin mayúsculas sostenidas */
.card > h2 { font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink); }
.card > h2 .count { color: var(--ink2); font-size: 13.5px; }
.day { font-size: 13px; letter-spacing: 0; text-transform: none; }
/* El acento queda para la acción principal y lo seleccionado: barras en gris, ámbar al acercarse y rojo al pasarse */
.meter .trk > i { background: var(--ink2); }
.chip.ok { background: var(--track); color: var(--ink2); }
.chips button[aria-pressed="true"] { background: var(--surface); border-color: var(--ink); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 600; }
.seg button[aria-pressed="true"] { color: var(--ink); }
/* Cómo se calcula (plegado) */
.como { margin-top: 12px; border-top: 1px solid var(--line); }
.como > summary { font-size: 13.5px; font-weight: 500; padding: 10px 0 2px; color: var(--ink2); }
.como .calc { border-top: 0; margin-top: 4px; }
/* Pendientes: avisos con un punto de color */
.row.aviso .t { font-size: 14px; display: flex; gap: 10px; align-items: baseline; }
.pt { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ink2); transform: translateY(-1px); }
.pt.bad { background: var(--bad); } .pt.warn { background: var(--warn); }
/* Acciones de administración al pie de la pantalla */
.linkbtn.pie { margin: 14px auto 0; text-align: center; font-weight: 500; display: block; }
/* Búsqueda y periodo en Movimientos */
.buscar { display: flex; gap: 8px; margin-bottom: 10px; }
.buscar .caja { position: relative; flex: 1; min-width: 0; }
.buscar .caja svg { position: absolute; left: 11px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--ink2); pointer-events: none; }
.buscar input { padding: 10px 36px 10px 34px; background: var(--surface); -webkit-appearance: none; appearance: none; }
.buscar input::-webkit-search-cancel-button { display: none; }
.buscar .limpiar { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--track); color: var(--ink2); font-size: 12px; }
.buscar select { width: auto; flex: none; padding: 10px 12px; background: var(--surface); font-size: 15px; }
.chips { scrollbar-width: none; } .chips::-webkit-scrollbar { display: none; }

/* ---------- mismo diseño en todos los temas (19-nov): barra superior fija y barra inferior flotante ---------- */
.top { position: sticky; top: 0; z-index: 15; margin: 0 -16px 12px; padding: calc(env(safe-area-inset-top) + 14px) 16px 10px;
  background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--line); border-top: 0; border-radius: 0 0 22px 22px; }
@media (min-width: 900px) { .top { margin: 0 -32px 16px; padding-left: 32px; padding-right: 32px; } }
@media (max-width: 899px) {
  .bar { left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 8px); border: 1px solid var(--line); border-radius: 28px; padding: 4px 6px;
    box-shadow: 0 8px 24px rgb(0 0 0 / .10); }
  .totalbar { bottom: calc(env(safe-area-inset-bottom) + 88px); }
}
/* Gastos frecuentes y detalle de tarjetas */
.chips.frecuentes { margin: 4px 0 2px; }
.tdet { margin-top: 8px; font-size: 13px; color: var(--ink2); }
.tdet > div { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
.tdet > div .num { color: var(--ink); }
.tdet .linkbtn { font-size: 13px; margin-top: 4px; }
/* Libre: selector Pago / Ciclo */
.hero-hd { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.hero-hd h2 { margin: 0; font-size: 15px; font-weight: 600; }
.seg.mini { margin: 0; flex: none; padding: 2px; border-radius: 9px; }
.seg.mini button { padding: 4px 10px; font-size: 12.5px; border-radius: 7px; }

/* ---------- temas Medianoche, Azul profundo y Nord (19-nov) ---------- */
:root[data-paleta="medianoche"][data-mode="light"] { --bg: #f5f5f7; --surface: #ffffff; --ink: #111111; --ink2: #6b6b70; --line: #e4e4e8; --track: #ebebef; --accent: #3b4bd8; --accent-soft: #e8eafc; --on-accent: #fff; }
:root[data-paleta="medianoche"][data-mode="dark"] { --bg: #000000; --surface: #0f0f10; --ink: #f2f2f2; --ink2: #8e8e93; --line: #1f1f22; --track: #1f1f22; --accent: #9db4ff; --accent-soft: #141a33; --on-accent: #0a0f2e; }
:root[data-paleta="azul"][data-mode="light"] { --bg: #eef3f9; --surface: #ffffff; --ink: #0d1b2a; --ink2: #50627a; --line: #dbe4ef; --track: #e3ebf4; --accent: #0b6fb8; --accent-soft: #e0eef9; --on-accent: #fff; }
:root[data-paleta="azul"][data-mode="dark"] { --bg: #000814; --surface: #0d1b2a; --ink: #e6eef7; --ink2: #8ea3bb; --line: #1b2c40; --track: #1b2c40; --accent: #4cc9f0; --accent-soft: #0b2a3d; --on-accent: #001522; }
:root[data-paleta="nord"][data-mode="light"] { --bg: #eceff4; --surface: #ffffff; --ink: #2e3440; --ink2: #5e6779; --line: #d8dee9; --track: #e5e9f0; --accent: #5e81ac; --accent-soft: #e3eaf3; --on-accent: #fff; --bad: #bf616a; --bad-soft: #f3e1e3; }
:root[data-paleta="nord"][data-mode="dark"] { --bg: #2e3440; --surface: #3b4252; --ink: #eceff4; --ink2: #aab3c5; --line: #434c5e; --track: #434c5e; --accent: #88c0d0; --accent-soft: #3d4a5a; --on-accent: #2e3440; --bad: #e08a92; --bad-soft: #4a3a42; }
.temas { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

/* ---------- temas Salvia, Café y Lavanda niebla (19-nov) ---------- */
:root[data-paleta="salvia"][data-mode="light"] { --bg: #eef1ea; --surface: #fbfcf9; --ink: #1f2a22; --ink2: #5f6d62; --line: #dde3d7; --track: #e4e9de; --accent: #5b7f63; --accent-soft: #e3ece4; --on-accent: #fff; }
:root[data-paleta="salvia"][data-mode="dark"] { --bg: #121713; --surface: #1a211b; --ink: #e6efe7; --ink2: #9fb0a2; --line: #28322a; --track: #28322a; --accent: #9cc3a3; --accent-soft: #1f3023; --on-accent: #0f2414; }
:root[data-paleta="cafe"][data-mode="light"] { --bg: #f3ece4; --surface: #fffaf5; --ink: #2a1d14; --ink2: #7b6656; --line: #e6dacd; --track: #ece1d5; --accent: #6f4e37; --accent-soft: #efe3d8; --on-accent: #fff; }
:root[data-paleta="cafe"][data-mode="dark"] { --bg: #17110d; --surface: #211812; --ink: #f1e7dc; --ink2: #ad9886; --line: #33261d; --track: #33261d; --accent: #d1a57a; --accent-soft: #3a2a1c; --on-accent: #2a1a0c; }
:root[data-paleta="lavanda"][data-mode="light"] { --bg: #f3f1f8; --surface: #ffffff; --ink: #1f1b2e; --ink2: #6a6480; --line: #e3dff0; --track: #e9e6f3; --accent: #6c5ca7; --accent-soft: #ebe7f6; --on-accent: #fff; }
:root[data-paleta="lavanda"][data-mode="dark"] { --bg: #14121c; --surface: #1d1a28; --ink: #ece9f7; --ink2: #a39dbb; --line: #2c2840; --track: #2c2840; --accent: #b4a6f0; --accent-soft: #2a2442; --on-accent: #1a1240; }
/* Pago a tarjetas: filas por tarjeta y casilla "Pagarla en este periodo" */
.calc .r.sub { padding: 5px 0 5px 12px; font-size: 13.5px; }
.calc .r.sub small { font-size: 11.5px; }
.calc label.r.incl { margin: 0; color: var(--ink); cursor: pointer; }
.calc label.r.incl input { width: 17px; height: 17px; margin: 0 6px 0 0; vertical-align: -3px; accent-color: var(--accent); }

/* ---------- 14 temas nuevos (19-nov): paletas abiertas, tendencias 2026 y diseño ---------- */
:root[data-paleta="catppuccin"][data-mode="light"] { --bg: #e6e9ef; --surface: #eff1f5; --ink: #4c4f69; --ink2: #6c6f85; --line: #ccd0da; --track: #dce0e8; --accent: #8839ef; --accent-soft: #e3dbf4; --on-accent: #fff; --bad: #d20f39; --bad-soft: #ecd6de; }
:root[data-paleta="catppuccin"][data-mode="dark"] { --bg: #181825; --surface: #1e1e2e; --ink: #cdd6f4; --ink2: #a6adc8; --line: #313244; --track: #313244; --accent: #cba6f7; --accent-soft: #413956; --on-accent: #181825; --bad: #f38ba8; --bad-soft: #443244; }
:root[data-paleta="rosepine"][data-mode="light"] { --bg: #faf4ed; --surface: #fffaf3; --ink: #575279; --ink2: #797593; --line: #f2e9e1; --track: #f2e9e1; --accent: #7a6596; --accent-soft: #efe8e8; --on-accent: #fff; --bad: #b4637a; --bad-soft: #f6e8e4; }
:root[data-paleta="rosepine"][data-mode="dark"] { --bg: #191724; --surface: #1f1d2e; --ink: #e0def4; --ink2: #908caa; --line: #26233a; --track: #26233a; --accent: #c4a7e7; --accent-soft: #403953; --on-accent: #191724; --bad: #eb6f92; --bad-soft: #442c40; }
:root[data-paleta="flexoki"][data-mode="light"] { --bg: #f2f0e5; --surface: #fffcf0; --ink: #100f0f; --ink2: #6f6e69; --line: #e6e4d9; --track: #e6e4d9; --accent: #24837b; --accent-soft: #e5ede2; --on-accent: #fff; --bad: #af3029; --bad-soft: #f5e4d8; }
:root[data-paleta="flexoki"][data-mode="dark"] { --bg: #100f0f; --surface: #1c1b1a; --ink: #cecdc3; --ink2: #878580; --line: #282726; --track: #282726; --accent: #3aa99f; --accent-soft: #223735; --on-accent: #100f0f; --bad: #d14d41; --bad-soft: #3d2421; }
:root[data-paleta="everforest"][data-mode="light"] { --bg: #f4f0d9; --surface: #fdf6e3; --ink: #5c6a72; --ink2: #6b7a6a; --line: #e6e2cc; --track: #e6e2cc; --accent: #237a5a; --accent-soft: #e3e7d3; --on-accent: #fff; --bad: #e64545; --bad-soft: #fae1d0; }
:root[data-paleta="everforest"][data-mode="dark"] { --bg: #272e33; --surface: #2d353b; --ink: #d3c6aa; --ink2: #9da9a0; --line: #3d484d; --track: #3d484d; --accent: #a7c080; --accent-soft: #455149; --on-accent: #272e33; --bad: #e67e80; --bad-soft: #4e4247; }
:root[data-paleta="tokyo"][data-mode="light"] { --bg: #e1e2e7; --surface: #f4f4f7; --ink: #343b58; --ink2: #5a6292; --line: #c8cbd9; --track: #d0d5e3; --accent: #2463c4; --accent-soft: #dbe3f1; --on-accent: #fff; --bad: #d61e5a; --bad-soft: #f0dae4; }
:root[data-paleta="tokyo"][data-mode="dark"] { --bg: #16161e; --surface: #1a1b26; --ink: #c0caf5; --ink2: #a9b1d6; --line: #24283b; --track: #292e42; --accent: #7aa2f7; --accent-soft: #2d3650; --on-accent: #16161e; --bad: #f7768e; --bad-soft: #422b39; }
:root[data-paleta="dracula"][data-mode="light"] { --bg: #f5f0dc; --surface: #fffbeb; --ink: #1f1f1f; --ink2: #6c664b; --line: #e6dfc3; --track: #e6dfc3; --accent: #644ac9; --accent-soft: #ece6e7; --on-accent: #fff; --bad: #cb3a2a; --bad-soft: #f9e4d4; }
:root[data-paleta="dracula"][data-mode="dark"] { --bg: #21222c; --surface: #282a36; --ink: #f8f8f2; --ink2: #9aa3c7; --line: #44475a; --track: #44475a; --accent: #bd93f9; --accent-soft: #463f5d; --on-accent: #21222c; --bad: #ff5555; --bad-soft: #4f323c; }
:root[data-paleta="ayu"][data-mode="light"] { --bg: #f3f4f5; --surface: #fcfcfc; --ink: #4b5056; --ink2: #6b7279; --line: #e7eaed; --track: #e7eaed; --accent: #b85a12; --accent-soft: #f4e9e0; --on-accent: #fff; --bad: #e65050; --bad-soft: #f9e7e7; }
:root[data-paleta="ayu"][data-mode="dark"] { --bg: #1a1f29; --surface: #1f2430; --ink: #cccac2; --ink2: #8a93a5; --line: #2d3442; --track: #2d3442; --accent: #ffcc66; --accent-soft: #4c463b; --on-accent: #1a1f29; --bad: #ff6666; --bad-soft: #47303a; }
:root[data-paleta="cloud"][data-mode="light"] { --bg: #f0eee9; --surface: #fbfaf7; --ink: #26241f; --ink2: #77736a; --line: #e2ded5; --track: #e6e2da; --accent: #3d3a34; --accent-soft: #e4e3e0; --on-accent: #fff; }
:root[data-paleta="cloud"][data-mode="dark"] { --bg: #1a1918; --surface: #22211f; --ink: #f0eee9; --ink2: #a29d93; --line: #312f2c; --track: #312f2c; --accent: #f0eee9; --accent-soft: #4b4a47; --on-accent: #1a1918; }
:root[data-paleta="teal"][data-mode="light"] { --bg: #edf3f2; --surface: #fbfdfd; --ink: #12302e; --ink2: #587270; --line: #d6e4e2; --track: #dce8e6; --accent: #1d6e68; --accent-soft: #e0eceb; --on-accent: #fff; }
:root[data-paleta="teal"][data-mode="dark"] { --bg: #0c1a19; --surface: #122422; --ink: #e2f0ee; --ink2: #8fb0ac; --line: #1d3533; --track: #1d3533; --accent: #5cc2b7; --accent-soft: #214440; --on-accent: #0c1a19; }
:root[data-paleta="restaurador"][data-mode="light"] { --bg: #f3f0ea; --surface: #fbf9f5; --ink: #2e2a24; --ink2: #7a7266; --line: #e5e0d6; --track: #e8e3d9; --accent: #8a6a3a; --accent-soft: #ede8df; --on-accent: #fff; }
:root[data-paleta="restaurador"][data-mode="dark"] { --bg: #22201d; --surface: #2a2824; --ink: #dcd6cc; --ink2: #9b9489; --line: #36332e; --track: #36332e; --accent: #c9b08a; --accent-soft: #4a4338; --on-accent: #22201d; }
:root[data-paleta="bauhaus"][data-mode="light"] { --bg: #efe9dc; --surface: #faf6ec; --ink: #1a1a1a; --ink2: #5e5a52; --line: #d8d0bf; --track: #e2dccd; --accent: #d0342c; --accent-soft: #f5dfd5; --on-accent: #fff; }
:root[data-paleta="bauhaus"][data-mode="dark"] { --bg: #151515; --surface: #1e1e1e; --ink: #f0ebe0; --ink2: #a8a296; --line: #333333; --track: #333333; --accent: #f2c230; --accent-soft: #483f22; --on-accent: #151515; --bad: #e5483f; --bad-soft: #422624; }
:root[data-paleta="wabisabi"][data-mode="light"] { --bg: #ece6da; --surface: #f6f1e7; --ink: #2b2926; --ink2: #7a7368; --line: #ddd5c6; --track: #e0d8c9; --accent: #2e4a6b; --accent-soft: #deddd8; --on-accent: #fff; --bad: #a33a2c; --bad-soft: #ecdbd1; }
:root[data-paleta="wabisabi"][data-mode="dark"] { --bg: #1a1917; --surface: #23221f; --ink: #e6dfd2; --ink2: #9c958a; --line: #33312d; --track: #33312d; --accent: #8fa8c8; --accent-soft: #393d41; --on-accent: #1a1917; }
:root[data-paleta="tinta"][data-mode="light"] { --bg: #e8e6e1; --surface: #efede8; --ink: #1e1e1e; --ink2: #5c5c5a; --line: #c9c7c2; --track: #d5d3ce; --accent: #1e1e1e; --accent-soft: #d6d4d0; --on-accent: #fff; }
:root[data-paleta="tinta"][data-mode="dark"] { --bg: #232322; --surface: #2b2b2a; --ink: #d6d4cf; --ink2: #8f8d89; --line: #3c3c3a; --track: #3c3c3a; --accent: #d6d4cf; --accent-soft: #4d4d4b; --on-accent: #232322; }
:root[data-paleta="monocromo"][data-mode="light"] { --bg: #f2f2f2; --surface: #ffffff; --ink: #000000; --ink2: #6b6b6b; --line: #e0e0e0; --track: #e0e0e0; --accent: #d71921; --accent-soft: #fae3e4; --on-accent: #fff; }
:root[data-paleta="monocromo"][data-mode="dark"] { --bg: #000000; --surface: #111111; --ink: #ffffff; --ink2: #8a8a8a; --line: #222222; --track: #222222; --accent: #ff2d2d; --accent-soft: #411717; --on-accent: #000000; }
/* Detalles propios de algunos temas */
:root[data-paleta="flexoki"] .hero .big, :root[data-paleta="wabisabi"] .hero .big { font-family: Georgia, 'Times New Roman', serif; letter-spacing: -.01em; }
:root[data-paleta="monocromo"] body { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0; }
:root[data-paleta="bauhaus"] { --r: 4px; }

/* ---------- tanda 6 (20-nov): registro sin señal, persona nueva, cuotas, cierre de ciclo y metas ---------- */
.bad-txt { color: var(--bad); } .warn-txt { color: var(--warn); }
.card.cola { border: 1px dashed var(--warn); }
.card.cola .row { align-items: center; gap: 10px; }
.card.cola .row .num { margin-left: auto; }
.sheet-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-right: 44px; }
.sheet-hd h2 { padding-right: 0; }
.sheet-hd .linkbtn { font-size: 13.5px; font-weight: 500; }
.nueva-persona { margin-top: 10px; padding: 10px 12px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.nueva-persona label { margin-top: 0; }
.np-fila { display: flex; gap: 8px; align-items: stretch; }
.np-fila input { flex: 1; min-width: 0; }
.np-fila .btn { flex: none; }
.nueva-persona .linkbtn { font-size: 13px; margin-top: 8px; }
.item small.vs { display: block; font-size: 12px; color: var(--ink2); font-weight: 400; }
.fila-btn { display: flex; width: 100%; justify-content: space-between; gap: 10px; padding: 2px 0; background: none; border: 0; color: inherit; font: inherit; text-align: left; }
.fila-btn .num { color: var(--ink); text-decoration: underline dotted; }
.note.cuadre { margin-top: 2px; }
details.cuotas { margin-top: 6px; }
details.cuotas summary { color: var(--ink); cursor: pointer; }
details.cuotas .row { font-size: 13.5px; }
.barras { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 14px; align-items: end; height: 150px; margin-top: 6px; }
.barra { display: flex; flex-direction: column; align-items: stretch; height: 100%; background: none; border: 0; padding: 0; color: var(--ink2); font: inherit; }
.barra .col { position: relative; flex: 1; display: flex; align-items: flex-end; }
.barra .v { display: block; width: 100%; border-radius: 6px 6px 2px 2px; background: var(--track); }
.barra.sel .v { background: var(--accent); }
.barra.pasada .v { box-shadow: inset 0 3px 0 var(--bad); }
.barra .tope { position: absolute; left: 10%; right: 10%; height: 0; border-top: 2px dashed var(--ink2); opacity: .6; }
.barra small { font-size: 11.5px; text-align: center; margin-top: 4px; white-space: nowrap; }
.barra.sel small { color: var(--ink); font-weight: 600; }

/* ---------- barra de estado del iPhone (20-nov): transparente, toma el fondo del tema ----------
   Con "black-translucent" el iPhone pinta la hora y la batería en blanco. En los temas claros una franja suave
   detrás de la hora mantiene la lectura. Solo existe en la app instalada (fuera de ella el borde superior mide 0). */
:root[data-mode="light"] body::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: env(safe-area-inset-top); z-index: 60; pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, .34), rgba(0, 0, 0, .22)); }


/* ---------- mejoras de interfaz (20-nov): deshacer, deslizar para actualizar, sumas en el monto e íconos ---------- */
.toast.accion { display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 16px; }
.toast.accion button { background: none; border: 0; color: var(--bg); font: inherit; font-weight: 700; padding: 6px 10px; border-radius: 99px; text-decoration: underline; text-underline-offset: 3px; }
.ptr { position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 6px); transform: translate(-50%, -8px); z-index: 45; pointer-events: none;
  background: var(--surface); color: var(--ink2); border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; font-size: 13px; opacity: 0; transition: opacity .15s; }
.ptr.on { opacity: 1; } .ptr.listo { color: var(--accent); font-weight: 600; }
.monto-fila { display: flex; gap: 8px; align-items: stretch; }
.monto-fila input { flex: 1; min-width: 0; }
.monto-fila .sumar { flex: none; width: 46px; padding: 0; font-size: 20px; font-weight: 500; color: var(--ink2); }
.note.suma { margin-top: 4px; color: var(--ink); font-variant-numeric: tabular-nums; }
.list > .row .ico-c { flex: none; align-self: center; width: 30px; height: 30px; border-radius: 9px; background: var(--track); color: var(--ink2); display: grid; place-items: center; margin-right: -2px; }
.list > .row .ico-c svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.list > .row .ico-c + .t { flex: 1; }
