/* ============================================================
   MemoTab — sistema de diseño "Consumer fresco"
   Verde vivo + naranja · esquinas redondeadas · tipografía
   redondeada · avatares · micro-animaciones · claro/oscuro
   ============================================================ */

@font-face { font-family: Nunito; font-weight: 400; font-display: swap;
  src: url(/static/fonts/nunito-400.woff2) format("woff2"); }
@font-face { font-family: Nunito; font-weight: 600; font-display: swap;
  src: url(/static/fonts/nunito-600.woff2) format("woff2"); }
@font-face { font-family: Nunito; font-weight: 700; font-display: swap;
  src: url(/static/fonts/nunito-700.woff2) format("woff2"); }
@font-face { font-family: Nunito; font-weight: 800; font-display: swap;
  src: url(/static/fonts/nunito-800.woff2) format("woff2"); }

:root {
  /* Color */
  --bg: #f4f8f4;
  --surface: #ffffff;
  --surface-2: #f0f5f1;
  --ink: #16261d;
  --muted: #647a6e;
  --line: #e4ece6;
  --primary: #16a34a;
  --primary-strong: #15803d;
  --primary-soft: #dcfce7;
  --accent: #f97316;
  --accent-soft: #ffedd5;
  --warn-bg: #fef3c7; --warn-ink: #92400e; --warn-line: #fcd34d;
  --err-bg: #fee2e2; --err-ink: #b91c1c; --err-line: #fca5a5;
  --ok-bg: #dcfce7; --ok-ink: #15803d; --ok-line: #86efac;
  --info-bg: #e0e7ff; --info-ink: #3730a3; --info-line: #c7d2fe;
  /* Forma */
  --r-sm: 6px; --r: 8px; --r-lg: 8px; --r-pill: 999px;
  /* Sombra */
  --sh-sm: 0 1px 2px rgba(20,40,30,.06), 0 1px 3px rgba(20,40,30,.05);
  --sh: 0 2px 6px rgba(20,40,30,.06), 0 8px 24px rgba(20,40,30,.07);
  --sh-lg: 0 8px 20px rgba(20,40,30,.10), 0 18px 48px rgba(20,40,30,.10);
  --sh-press: 0 1px 2px rgba(20,40,30,.10);
  /* Tipo */
  --font: Nunito, ui-rounded, "Segoe UI", system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1814; --surface: #16221c; --surface-2: #1c2b23;
    --ink: #e8f0ea; --muted: #93a89c; --line: #28382f;
    --primary: #22c55e; --primary-strong: #16a34a; --primary-soft: #14331f;
    --accent: #fb923c; --accent-soft: #3a2a14;
    --warn-bg: #3a2e0a; --warn-ink: #fcd34d; --warn-line: #715200;
    --err-bg: #3a1414; --err-ink: #fca5a5; --err-line: #7f1d1d;
    --ok-bg: #0f2e1b; --ok-ink: #86efac; --ok-line: #166534;
    --info-bg: #1e1b3a; --info-ink: #c7d2fe; --info-line: #3730a3;
    --sh-sm: 0 1px 3px rgba(0,0,0,.4);
    --sh: 0 2px 8px rgba(0,0,0,.4), 0 10px 28px rgba(0,0,0,.35);
    --sh-lg: 0 12px 40px rgba(0,0,0,.5);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: 0; margin: .6rem 0 .8rem; }
h2 { font-size: 1.15rem; font-weight: 800; letter-spacing: 0; margin: .2rem 0 .6rem; }
h3 { font-size: .95rem; font-weight: 700; margin: .8rem 0 .3rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1rem 0; }
code.block { display: block; background: var(--surface-2); padding: .6rem .7rem; border-radius: var(--r-sm); overflow-x: auto; font-size: .82rem; }

/* ---- Topbar ---- */
.topbar {
  display: flex; align-items: center; gap: .8rem;
  padding: .6rem 1rem; background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30; flex-wrap: wrap;
}
.brand {
  font-weight: 800; font-size: 1.1rem; letter-spacing: 0;
  display: inline-flex; align-items: center; gap: .45rem; color: var(--ink) !important;
  text-decoration: none !important;
}
.brand-mark {
  width: 1.9rem; height: 1.9rem; border-radius: 8px; box-shadow: var(--sh-sm);
}
.topnav { margin-left: auto; display: flex; gap: .6rem; align-items: center; }
.tabs { display: flex; gap: .25rem; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  text-decoration: none; padding: .4rem .85rem; border-radius: var(--r-pill);
  color: var(--muted); font-size: .92rem; font-weight: 700; white-space: nowrap;
  transition: background .15s, color .15s;
}
.tabs a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.tabs a.active { background: var(--primary); color: #fff; box-shadow: var(--sh-sm); }

/* ---- Layout ---- */
.container { max-width: 920px; margin: 0 auto; padding: 1rem; }
.container.wide { max-width: 1240px; }
.grid.two { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid.two { grid-template-columns: 1fr 1fr; } }
.row { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }

/* ---- Cards ---- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.1rem; margin-bottom: 1rem;
  box-shadow: var(--sh-sm);
}
.card.narrow { max-width: 440px; margin: 2.5rem auto; box-shadow: var(--sh); }
.card.center { text-align: center; margin-top: 2.5rem; }
.cardlist { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.cardlink {
  display: flex; justify-content: space-between; gap: .6rem; text-decoration: none !important;
  color: inherit; transition: transform .12s, box-shadow .12s, border-color .12s;
}
.cardlink:hover { transform: translateY(-2px); box-shadow: var(--sh); border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }
.plainlist { list-style: none; padding: 0; margin: .3rem 0; }
.plainlist li { padding: .3rem 0; }

/* ---- Texto util ---- */
.muted { color: var(--muted); }
.small, .small-card { font-size: .86rem; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 16rem; }
.pos { color: var(--primary-strong); }
.neg { color: var(--err-ink); }
.center { text-align: center; }

/* ---- Formularios ---- */
label { display: block; margin-bottom: .7rem; font-size: .9rem; font-weight: 700; color: var(--ink); }
input, select, textarea {
  width: 100%; padding: .65rem .8rem; margin-top: .3rem;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); font: inherit;
  background: var(--surface); color: var(--ink); font-weight: 600;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent);
}
input[type="checkbox"] { width: auto; accent-color: var(--primary); }
fieldset { border: 1.5px solid var(--line); border-radius: var(--r-sm); margin: 0 0 .7rem; }
legend { font-weight: 800; padding: 0 .4rem; font-size: .85rem; }
.inline-label { display: inline-block; width: auto; margin-right: .9rem; }
.inline-label input { width: 5.5rem; }

/* ---- Botones ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .6rem 1.1rem; border-radius: var(--r-pill);
  border: 1.5px solid var(--line); background: var(--surface);
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none !important;
  color: var(--ink); transition: transform .1s, box-shadow .12s, background .12s, border-color .12s;
}
.btn:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); }
.btn:active { transform: scale(.97); box-shadow: var(--sh-press); }
.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff; border-color: transparent; box-shadow: var(--sh-sm);
}
.btn.primary:hover { box-shadow: var(--sh); filter: brightness(1.04); }
.btn.primary:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; filter: none; }
.btn.danger { background: var(--err-bg); color: var(--err-ink); border-color: var(--err-line); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.small { padding: .4rem .8rem; font-size: .86rem; }
.btn.tiny { padding: .25rem .6rem; font-size: .8rem; }
.btn.big { padding: .8rem 1.6rem; font-size: 1.05rem; }
.linklike { background: none; border: none; padding: 0; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; }
.linklike:hover { color: var(--ink); }
.linklike.danger { color: var(--err-ink); }
form.inline { display: inline; }

/* ---- Avisos / estados ---- */
.alert { background: var(--err-bg); color: var(--err-ink); padding: .65rem .85rem; border-radius: var(--r-sm); border: 1px solid var(--err-line); font-weight: 600; }
.okline { color: var(--ok-ink); font-weight: 800; }
.badge { display: inline-flex; align-items: center; gap: .25rem; padding: .12rem .6rem; border-radius: var(--r-pill); font-size: .76rem; font-weight: 800; background: var(--surface-2); border: 1px solid var(--line); }
.badge.warn { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--warn-line); }
.badge.err { background: var(--err-bg); color: var(--err-ink); border-color: var(--err-line); }
.badge.ok { background: var(--ok-bg); color: var(--ok-ink); border-color: var(--ok-line); }
.badge.auto { background: var(--info-bg); color: var(--info-ink); border-color: var(--info-line); }

/* ---- Avatares y chips ---- */
.avatar {
  display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem;
  border-radius: var(--r-pill); background: var(--member-color, var(--muted));
  color: #fff; font-weight: 800; font-size: .8rem; flex: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.avatar.sm { width: 1.35rem; height: 1.35rem; font-size: .68rem; }
.dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; margin-right: .25rem; background: var(--member-color); }
.chip {
  display: inline-flex; align-items: center; gap: .25rem; padding: .1rem .55rem; border-radius: var(--r-pill); font-size: .78rem; font-weight: 700;
  background: color-mix(in srgb, var(--member-color, #888) 14%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--member-color, #888) 45%, transparent);
  color: var(--ink);
}
.chip.diet { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }

/* ---- Subida ---- */
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .5rem; padding: 2rem 1rem; border: 2.5px dashed var(--line); border-radius: var(--r-lg);
  cursor: pointer; text-align: center; color: var(--muted); font-weight: 700;
  background: var(--surface-2); transition: border-color .15s, background .15s, transform .12s;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--primary); background: var(--primary-soft); color: var(--ink); transform: translateY(-1px); }
.dropzone-icon { font-size: 2.2rem; }
.dropzone input { display: none; }
.filestatus .row { border-top: 1px dashed var(--line); padding: .45rem 0; }
.spinner { display: inline-block; width: 1rem; height: 1rem; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--primary); animation: spin .7s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Hero del dashboard ---- */
.hero { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .4rem; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1rem 1.1rem; box-shadow: var(--sh-sm); display: flex; flex-direction: column; gap: .15rem;
}
.stat .stat-label { color: var(--muted); font-weight: 700; font-size: .82rem; display: flex; align-items: center; gap: .35rem; }
.stat .stat-value { font-size: 1.7rem; font-weight: 800; letter-spacing: 0; }
.stat-grid { display: grid; gap: .8rem; grid-template-columns: 1fr 1fr; }

/* ---- Pantalla de revisión ---- */
.review-layout { display: grid; gap: 1rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) {
  .review-layout { grid-template-columns: minmax(280px, 410px) 1fr; }
  .review-image { position: sticky; top: 4.5rem; }
}
.image-panel summary { cursor: pointer; color: var(--muted); font-weight: 700; margin-bottom: .4rem; }
.image-scroll { max-height: 80vh; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-sm); }
.image-scroll img { width: 100%; display: block; }
.review-header .meta-form { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.inline-input { width: auto; margin-top: 0; padding: .4rem .6rem; font-weight: 700; }
.inline-input.merchant { width: 11rem; font-weight: 800; }
.inline-input.amount, input.amount { width: 6.4rem; text-align: right; }
input.qty { width: 6rem; }
.totalbox { white-space: nowrap; font-size: .85rem; color: var(--muted); font-weight: 700; }
.payer select { width: auto; display: inline-block; }
.sumcheck { font-variant-numeric: tabular-nums; font-weight: 800; padding: .2rem .6rem; border-radius: var(--r-pill); }
.sumcheck.ok { color: var(--ok-ink); background: var(--ok-bg); }
.sumcheck.bad { color: var(--err-ink); background: var(--err-bg); }

.itemlist { list-style: none; padding: 0; margin: .5rem 0; display: grid; gap: .6rem; }
.itemlist .item { padding: .8rem .9rem; margin: 0; transition: box-shadow .12s; animation: pop .18s ease; }
.itemlist.compact .item { padding: .5rem .8rem; }
.item.adjustment { border-left: 4px solid var(--accent); background: var(--accent-soft); }
.item-name { display: inline-flex; gap: .4rem; align-items: baseline; flex-wrap: wrap; font-weight: 700; }
.assign-row { margin-top: .6rem; }
.assign-buttons { display: flex; gap: .4rem; flex-wrap: wrap; }
.btn.member {
  border: 1.5px solid color-mix(in srgb, var(--member-color, var(--line)) 55%, var(--line));
  background: color-mix(in srgb, var(--member-color, #888) 10%, var(--surface));
  padding: .45rem .8rem;
}
.btn.member:hover { background: color-mix(in srgb, var(--member-color, #888) 22%, var(--surface)); transform: translateY(-1px); }
.btn.member.all { --member-color: #475569; }
.btn.member.custom { --member-color: #94a3b8; color: var(--muted); }
.btn.member.eligible { --member-color: var(--primary); background: var(--primary-soft); color: var(--primary-strong); }
.btn.member.suggested { box-shadow: 0 0 0 2.5px color-mix(in srgb, var(--member-color) 55%, var(--surface)); font-weight: 800; }
.learn { display: inline-flex; align-items: center; gap: .3rem; margin-top: .5rem; font-size: .82rem; color: var(--muted); font-weight: 700; width: auto; }
.custom-split { margin-top: .5rem; display: flex; gap: .5rem; align-items: end; flex-wrap: wrap; padding: .6rem; background: var(--surface-2); border-radius: var(--r-sm); }
.custom-split label { width: auto; font-size: .82rem; }
.custom-split input { width: 4.6rem; }
.editline summary { cursor: pointer; color: var(--muted); font-size: .85rem; font-weight: 700; list-style: none; }
.editline summary::-webkit-details-marker { display: none; }
.editline .row { margin: .5rem 0; }
.editline input[name="name"] { flex: 2; min-width: 9rem; }
.assigned summary, .addline summary { cursor: pointer; color: var(--muted); font-weight: 700; }
.addline input[name="name"] { flex: 2; min-width: 9rem; }
.diet-note { margin: .4rem 0; font-size: .82rem; display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; }
.allergy-alert {
  margin: .4rem 0; padding: .5rem .7rem; border-radius: var(--r-sm); font-size: .85rem; font-weight: 700;
  background: var(--err-bg); color: var(--err-ink); border: 1.5px solid var(--err-line);
}
.chip.diet.allergy { background: var(--err-bg); border-color: var(--err-line); color: var(--err-ink); }
.okline.big, .okline { font-size: .95rem; }

/* barra de acción fija (móvil) */
.review-actions {
  display: flex; justify-content: space-between; align-items: center; gap: .8rem;
  margin: 1.2rem 0 2rem; padding: .8rem 1rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh);
  position: sticky; bottom: .6rem;
}

/* ---- Balance ---- */
.balance-row { padding: .5rem 0; border-bottom: 1px dashed var(--line); }
.balance-row:last-child { border-bottom: 0; }
.balance-name { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid var(--line); }
.table th { color: var(--muted); font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: 0; }
.table tr:last-child td { border-bottom: 0; }
.transfer { display: flex; align-items: center; gap: .5rem; padding: .5rem .7rem; background: var(--surface-2); border-radius: var(--r-sm); margin-bottom: .4rem; font-weight: 700; }
.settle-card { border: 1px solid var(--line); border-radius: var(--r); padding: .7rem .8rem; margin-bottom: .7rem; }
.pay-options { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: .5rem 0; }
.pay-qr summary { cursor: pointer; font-weight: 700; color: var(--primary-strong); }
.pay-qr .qr { width: 160px; margin: .5rem 0; }
.pay-qr .qr svg { width: 100%; height: auto; background: #fff; padding: 6px; border-radius: 8px; }

/* ---- Admin ---- */
.big-metric { font-size: 2.4rem; font-weight: 800; letter-spacing: 0; margin: .2rem 0; }
.progress { height: .7rem; background: var(--surface-2); border-radius: var(--r-pill); overflow: hidden; margin: .5rem 0; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width .4s; }
.progress-fill.over { background: var(--err-ink); }

/* ---- Pie y legales ---- */
.sitefooter { text-align: center; padding: 1.6rem 1rem 2.4rem; color: var(--muted); font-size: .85rem; font-weight: 600; }
.sitefooter a { color: var(--muted); margin: 0 .3rem; }
.prose { max-width: 46rem; margin: 1rem auto; line-height: 1.7; }
.prose h2 { margin-top: 1.4rem; }
.prose ul { padding-left: 1.2rem; }

/* ---- Varios ---- */
.invite-link { width: 15rem; font-size: .78rem; font-weight: 600; }
.danger-zone { border-color: var(--err-line); }
.diet-editor { border-bottom: 1px dashed var(--line); padding: .5rem 0; }
.diet-editor summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: .5rem; }
.diet-checks { display: flex; flex-wrap: wrap; gap: .35rem .9rem; margin: .6rem 0; }
.diet-check { width: auto; display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; margin: 0; font-weight: 600; }
.diet-check input { width: auto; margin: 0; }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty .emoji { font-size: 3rem; display: block; margin-bottom: .5rem; }

/* ---- Encabezado de página ---- */
.page-head { margin: .4rem 0 1.2rem; }
.page-head h1 { margin: 0 0 .2rem; }
.page-head .sub { color: var(--muted); font-weight: 600; font-size: 1rem; }
.auth-mark {
  width: 3.2rem; height: 3.2rem; margin: 0 auto .6rem; display: grid; place-items: center;
  border-radius: 8px; box-shadow: var(--sh-sm);
  background: var(--surface);
}
.auth-mark img { width: 100%; height: 100%; display: block; border-radius: 8px; }

/* ---- Campo de chips (tagfield) ---- */
.field-hint { color: var(--muted); font-weight: 600; font-size: .82rem; margin: .15rem 0 .4rem; }
.tagfield {
  display: flex; flex-wrap: wrap; gap: .4rem; align-items: center;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: .45rem .5rem;
  background: var(--surface); margin-top: .3rem; cursor: text; transition: border-color .15s, box-shadow .15s;
}
.tagfield.focus { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.tagfield-chips { display: contents; }
.tag {
  display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .3rem .25rem .3rem;
  border-radius: var(--r-pill); font-weight: 700; font-size: .88rem;
  background: color-mix(in srgb, var(--member-color, var(--primary)) 16%, var(--surface));
  border: 1.5px solid color-mix(in srgb, var(--member-color, var(--primary)) 45%, transparent);
  animation: pop .15s ease;
}
.tag .tag-x {
  border: none; background: color-mix(in srgb, var(--member-color, var(--primary)) 30%, transparent);
  color: var(--ink); width: 1.2rem; height: 1.2rem; border-radius: 50%; cursor: pointer;
  font-weight: 800; line-height: 1; display: grid; place-items: center; font-size: .85rem;
}
.tag .tag-x:hover { background: var(--member-color, var(--primary)); color: #fff; }
.tagfield-input {
  flex: 1; min-width: 8rem; border: none; outline: none; padding: .25rem; margin: 0;
  background: transparent; font: inherit; font-weight: 600; box-shadow: none;
}
.tagfield-input:focus { box-shadow: none; }

/* ---- Control segmentado (divisa) ---- */
.seg { display: inline-flex; gap: 0; background: var(--surface-2); border-radius: var(--r-pill); padding: .2rem; margin-top: .3rem; }
.seg input { position: absolute; opacity: 0; pointer-events: none; width: 0; }
.seg label {
  margin: 0; padding: .35rem .85rem; border-radius: var(--r-pill); cursor: pointer;
  font-weight: 700; font-size: .9rem; color: var(--muted); transition: background .15s, color .15s;
}
.seg input:checked + label { background: var(--surface); color: var(--ink); box-shadow: var(--sh-sm); }

/* ---- Tarjetas de grupo ---- */
.group-grid { display: grid; gap: .8rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .group-grid { grid-template-columns: 1fr 1fr; } }
.group-card { display: flex; align-items: center; gap: .8rem; padding: 1rem; }
.group-icon {
  width: 2.6rem; height: 2.6rem; border-radius: 8px; display: grid; place-items: center;
  flex: none; background: var(--surface-2); box-shadow: var(--sh-sm);
}
.group-icon img { width: 100%; height: 100%; display: block; border-radius: 8px; }
.group-card .group-meta { display: flex; flex-direction: column; min-width: 0; }
.group-card strong { font-size: 1.05rem; }
.group-card .arrow { margin-left: auto; color: var(--muted); font-size: 1.2rem; }

/* ---- Animaciones / htmx ---- */
@keyframes pop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
#review-body, #file-status { animation: fadein .2s ease; }
.htmx-swapping { opacity: .4; transition: opacity .15s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
