/* Señá SaaS · estilos. Neutral para cualquier rubro. Mobile-first, claro/oscuro. */
:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --surface-2: #f0eee9;
  --ink: #17161a;
  --ink-2: #3a3840;
  --muted: #6b6873;
  --line: #e1ded7;
  --accent: #4f46e5;
  --accent-ink: #ffffff;
  --accent-soft: #e8e7fc;
  --ok: #1f7a4a;
  --ok-soft: #dcf2e5;
  --warn: #8a5a00;
  --warn-soft: #faedd0;
  --bad: #b42318;
  --bad-soft: #fde4e1;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(23, 22, 26, .05), 0 12px 32px -20px rgba(23, 22, 26, .35);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111114; --surface: #1a1a1f; --surface-2: #222229; --ink: #f2f1f5; --ink-2: #d4d2da; --muted: #9c99a6;
    --line: #2e2d35; --accent: #8b85ff; --accent-ink: #111114; --accent-soft: #26244a;
    --ok: #6fd39b; --ok-soft: #173325; --warn: #f0c060; --warn-soft: #3a2c10; --bad: #ff8a80; --bad-soft: #3d1b18;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -20px rgba(0,0,0,.9);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111114; --surface: #1a1a1f; --surface-2: #222229; --ink: #f2f1f5; --ink-2: #d4d2da; --muted: #9c99a6;
  --line: #2e2d35; --accent: #8b85ff; --accent-ink: #111114; --accent-soft: #26244a;
  --ok: #6fd39b; --ok-soft: #173325; --warn: #f0c060; --warn-soft: #3a2c10; --bad: #ff8a80; --bad-soft: #3d1b18;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -20px rgba(0,0,0,.9);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; min-height: 100vh;
}
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .8em; }
code, .mono { font-family: var(--font-mono); font-size: .92em; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 440px; }

/* Encabezado */
.topbar { border-bottom: 1px solid var(--line); background: var(--surface); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: .95rem; }
.topbar nav { display: flex; gap: 8px; align-items: center; }

/* Tarjetas y formularios */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.auth { padding: 40px 0 64px; }
.auth .card { padding: 24px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.stack > * + * { margin-top: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

label.field { display: block; }
label.field > span { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
label.field > small { display: block; color: var(--muted); font-size: .82rem; margin-top: 5px; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 11px 12px; min-height: 46px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix > span { display: flex; align-items: center; padding: 0 10px; background: var(--surface-2); border: 1px solid var(--line); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); color: var(--muted); font-size: .9rem; white-space: nowrap; }
.input-prefix > input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; min-width: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600;
  border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  padding: 10px 16px; min-height: 44px; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--surface-2); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent); filter: brightness(1.08); }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: .9rem; }
.btn[disabled] { opacity: .6; cursor: progress; }
.linklike { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; }

.alert { border-radius: var(--radius-sm); padding: 12px 14px; font-size: .95rem; }
.alert-bad { background: var(--bad-soft); color: var(--bad); }
.alert-ok { background: var(--ok-soft); color: var(--ok); }
.alert-warn { background: var(--warn-soft); color: var(--warn); }
.alert-info { background: var(--accent-soft); color: var(--ink); }

.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 10px; font-size: .8rem; font-weight: 700; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-bad { background: var(--bad-soft); color: var(--bad); }
.badge-info { background: var(--accent-soft); color: var(--accent); }

/* Panel */
.panel-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 24px 0 64px; }
.sidenav { display: flex; flex-direction: column; gap: 2px; }
.sidenav a, .sidenav span {
  display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem;
}
.sidenav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.sidenav span { color: var(--muted); }
.sidenav span small { font-size: .72rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { font-size: 1.6rem; font-weight: 800; }
.url-box { display: flex; gap: 8px; align-items: center; background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; overflow: hidden; }
.url-box code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 760px) {
  .panel-layout { grid-template-columns: 1fr; padding-top: 12px; }
  .sidenav { flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 6px; }
  .sidenav a, .sidenav span { white-space: nowrap; }
  .sidenav span small { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* Utilidades */
.loading { display: flex; gap: 10px; align-items: center; justify-content: center; color: var(--muted); padding: 40px 0; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: .92rem; z-index: 50; }
.hero { padding: 64px 0 40px; text-align: center; }
.hero p.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 620px; margin: 0 auto 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 28px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: .9rem; color: var(--ink-2); }
footer.site { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: .88rem; }
.grid-2 > .card { margin-top: 0; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
label.check input { width: 18px; height: 18px; min-height: 0; margin-top: 2px; flex: none; }
.panel-layout > *, .grid-2 > * { min-width: 0; }
.url-box code { min-width: 0; }
@media (max-width: 760px) { .url-box { flex-wrap: wrap; } .url-box code { flex-basis: 100%; } }
.brand-logo { width: 30px; height: 30px; display: block; }

/* ---------- Fase 2: panel de configuración ---------- */
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
textarea { resize: vertical; min-height: 0; line-height: 1.45; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn.danger { color: var(--bad); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.panel-main { min-width: 0; }
.panel-main > h1, .section-head h1 { margin-bottom: .2em; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.section-head p { margin: 0; }
.grid-2.tight { gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid-3 > *, .grid-2 > * { min-width: 0; }
.field-label { display: block; font-weight: 600; font-size: .92rem; }
.check-cell { display: flex; align-items: flex-end; padding-bottom: 12px; }
.empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 20px; text-align: center; }
.empty p { margin: 0; }
ul.plain { margin: 0; padding-left: 18px; }
ul.plain li { margin: 2px 0; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Listas editables (servicios, profesionales, bloqueos) */
.card.list { padding: 0; }
.list-item { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 16px; border-top: 1px solid var(--line); }
.list-item:first-child { border-top: 0; }
.list-item.is-off .list-main strong { color: var(--muted); }
.list-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.list-main .badge { align-self: flex-start; margin-top: 2px; }
.list-actions { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; flex: none; }
.list-edit { width: 100%; }
@media (max-width: 760px) {
  .list-item { flex-direction: column; align-items: stretch; }
  .list-actions { justify-content: flex-start; }
  .grid-3 { grid-template-columns: 1fr; }
}

/* Logo */
.logo-row { display: flex; gap: 16px; align-items: center; }
.logo-preview { width: 88px; height: 88px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; flex: none; font-weight: 800; font-size: 1.4rem; color: var(--muted); }
.logo-preview img { width: 100%; height: 100%; object-fit: contain; background: #fff; }

/* Semana de horarios */
.week { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.day { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: start; padding: 10px 12px; border-top: 1px solid var(--line); }
.day:first-child { border-top: 0; }
.day.closed { background: var(--surface-2); }
.day-name { display: flex; gap: 10px; align-items: center; font-weight: 600; min-height: 40px; }
.day-name input { width: 18px; height: 18px; min-height: 0; flex: none; }
.ranges { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; justify-content: center; min-height: 40px; }
.range { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
input.time { width: auto; min-height: 40px; padding: 7px 10px; }
@media (max-width: 760px) { .day { grid-template-columns: 1fr; gap: 6px; } }

/* Preguntas del formulario */
.question { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.question-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* Progreso y checklist */
.progress { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .3s; }
ul.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
ul.checks li { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
ul.checks .tick { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); display: inline-grid; place-items: center; font-size: .75rem; font-weight: 800; flex: none; transform: translateY(4px); }
ul.checks li.ok .tick { background: var(--ok); border-color: var(--ok); color: #fff; }
ul.checks li.ok a { color: var(--ink-2); }

/* Asistente */
.wizard-wrap { max-width: 760px; margin: 0 auto; padding: 24px 0 64px; }
.wizard { display: flex; flex-direction: column; gap: 16px; }
.wizard h1 { margin-bottom: .2em; }
.wizard-top { display: flex; justify-content: space-between; align-items: center; }
.wizard-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.wizard .card + .card { margin-top: 0; }
@media (max-width: 560px) { .hide-mobile { display: none; } }

/* Página pública del negocio */
.public-page { display: flex; flex-direction: column; gap: 16px; }
.biz-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0; }
.biz-head h1 { margin: 0; }
.biz-head .btn svg { width: 18px; height: 18px; }
.biz-logo { width: 96px; height: 96px; border-radius: 24px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.biz-logo-fallback { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 1.6rem; }
.lead-text { font-size: 1.08rem; margin: 4px 0 0; }
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.svc-list li:first-child { border-top: 0; padding-top: 0; }
.svc-price { font-weight: 700; white-space: nowrap; }
table.hours { border-collapse: collapse; width: 100%; }
table.hours th, table.hours td { text-align: left; padding: 6px 0; border-top: 1px solid var(--line); font-size: .95rem; }
table.hours tr:first-child th, table.hours tr:first-child td { border-top: 0; }
table.hours th { font-weight: 600; padding-right: 12px; }
.pre { white-space: pre-line; }
.public-page.narrow { max-width: 620px; }
.public-page .card + .card { margin-top: 0; }
@media (max-width: 760px) { .range { flex-wrap: nowrap; width: 100%; } .range input.time { flex: 1; min-width: 0; } }
@media (max-width: 760px) { .ranges { align-items: stretch; } .range input.time { width: 0; padding: 7px 6px; } .range .btn { flex: none; padding: 6px 8px; } }

/* ---------- Fase 3: reservar ---------- */
.booking h2 { margin: 0; }
.step { display: flex; flex-direction: column; gap: 12px; }
.step h3 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.step-n { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: inline-grid; place-items: center; font-size: .85rem; font-weight: 800; flex: none; }
.step-done { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; background: var(--surface-2); border-radius: var(--radius-sm); }
.step-done > div { display: flex; flex-direction: column; min-width: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.choice { text-align: left; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; min-height: 44px; }
.choice:hover, .choice:focus-visible { border-color: var(--accent); background: var(--accent-soft); }
.day-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day-chip { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 2px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.day-chip .dow, .day-chip .mon { font-size: .72rem; color: var(--muted); text-transform: capitalize; }
.day-chip .num { font-weight: 800; font-size: 1.05rem; }
.day-chip:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); }
.day-chip:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.day-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.day-chip[aria-pressed="true"] .dow, .day-chip[aria-pressed="true"] .mon { color: var(--accent-ink); }
.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; }
.time-btn { padding: 10px 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.time-btn:hover, .time-btn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.summary { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); }
.summary > div:first-child { display: flex; flex-direction: column; }
.summary-money { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .92rem; }
details.policy summary { cursor: pointer; color: var(--accent); font-size: .92rem; }
.svc-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.copy-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; background: var(--surface-2); border-radius: var(--radius-sm); }
.copy-row > div { display: flex; flex-direction: column; min-width: 0; }
.copy-row strong { overflow-wrap: anywhere; }
.copy-row .btn svg, .row .btn svg { width: 16px; height: 16px; }
.status-banner { font-weight: 700; text-align: center; }
.turno-when { font-size: 1.4rem; margin: 0; }
@media (max-width: 560px) { .day-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } .choice-grid { grid-template-columns: 1fr; } }

/* ---------- Fase 3: agenda, reservas y estadísticas ---------- */
.agenda-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.agenda-nav input[type=date] { width: auto; min-height: 36px; padding: 5px 8px; }
.agenda-week .day-chip { padding: 8px 2px; }
.agenda-week .day-chip .mon { text-transform: none; }
.day-chip.is-today .num { color: var(--accent); }
.day-chip.is-today[aria-pressed="true"] .num { color: var(--accent-ink); }
.agenda-day-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.agenda-day-head h2 { margin: 0; font-size: 1.15rem; }
.inline-field { display: inline-flex; align-items: center; gap: 8px; }
.inline-field select { width: auto; min-height: 36px; padding: 5px 8px; }
.booking-item { flex-direction: column; align-items: stretch; gap: 0; padding: 0; }
.booking-head { display: grid; grid-template-columns: 112px 1fr auto; gap: 12px; align-items: center; width: 100%; padding: 12px 16px; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.booking-head:hover { background: var(--surface-2); }
.booking-time { font-weight: 800; font-variant-numeric: tabular-nums; }
.booking-main { display: flex; flex-direction: column; min-width: 0; }
.booking-main strong, .booking-main span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.booking-item.is-open { background: var(--surface-2); }
.booking-detail { padding: 4px 16px 16px; }
.booking-item.is-off .booking-main strong { color: var(--muted); text-decoration: line-through; }
dl.answers { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 0; font-size: .92rem; }
dl.answers dt { color: var(--muted); }
dl.answers dd { margin: 0; overflow-wrap: anywhere; }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.tab { border: 0; background: none; padding: 10px 12px; font: inherit; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.tab[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.stat-grid .card { margin: 0; }
.stat-tile { display: flex; flex-direction: column; gap: 2px; padding: 16px; }
.bars { display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(70px, 160px) 1fr auto; gap: 10px; align-items: center; font-size: .92rem; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--accent); border-radius: 999px; min-width: 2px; }
.bar-value { font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.today-list li { padding: 2px 0; }
@media (max-width: 760px) {
  .booking-head { grid-template-columns: 1fr auto; }
  .booking-time { grid-column: 1 / -1; }
  .agenda-week { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
  .agenda-week .day-chip .mon { font-size: .62rem; }
  .bar-row { grid-template-columns: 80px 1fr auto; }
}
.booking-detail .grid-2 > div { display: flex; flex-direction: column; }

/* WhatsApp: sub-sección de Configuración, paquetes de créditos y movimientos */
.sidenav a.sub { padding-left: 26px; font-size: .9rem; }
.sidenav a.sub::before { content: "›"; margin-right: 6px; color: var(--muted); }
.sidenav a.sub { justify-content: flex-start; }
@media (max-width: 760px) { .sidenav a.sub { padding-left: 12px; } }
.breadcrumb { margin: 0 0 -8px; }
.pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.pack { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.pack .btn { margin-top: 8px; }
.ledger-amount { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.ledger-amount .plus { color: var(--ok); }
.ledger-amount .minus { color: var(--bad); }
details > summary { cursor: pointer; color: var(--accent); font-size: .92rem; }
