:root {
  --bg: #FAF6F0;
  --surface: #FFFFFF;
  --surface-2: #F4EDE4;
  --line: #E8DFD3;
  --ink: #2A1D14;
  --ink-2: #6B5A4C;
  --brand: #B5693A;
  --brand-dark: #8F4F27;
  --brand-soft: #F6E6D8;
  --ok: #2F9E5B;
  --ok-soft: #DDF3E5;
  --busy: #D64545;
  --busy-soft: #FBE1E1;
  --warn: #E39B2D;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(42,29,20,.06), 0 8px 24px rgba(42,29,20,.06);
  --sidebar-w: 248px;
}

* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1 { font-size: 24px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.muted { color: var(--ink-2); }

/* ── Layout ── */
.app { display: flex; min-height: 100dvh; }

.sidebar {
  position: fixed; inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  z-index: 50;
  transition: transform .25s ease;
  padding-top: env(safe-area-inset-top);
}
.sidebar-brand {
  padding: 22px 20px 14px;
  display: flex; align-items: center;
  min-height: 84px;
}
.sidebar-brand img { max-height: 52px; max-width: 100%; object-fit: contain; }
.brand-text { font-family: 'Dancing Script', cursive; font-size: 36px; font-weight: 700; line-height: 1; }
.brand-text.big { font-size: 52px; }

.sidebar-nav {
  flex: 1; overflow-y: auto;
  padding: 8px 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--ink-2);
  font-weight: 500;
  border: 0; background: none;
  width: 100%; text-align: left;
  transition: background .15s, color .15s;
}
.nav-link i { font-size: 18px; }
.nav-link:hover { background: var(--surface-2); color: var(--ink); }
.nav-link.active { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.nav-link.logout:hover { background: var(--busy-soft); color: var(--busy); }

.sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--line);
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}
.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px 14px 12px; }
.user-chip strong { display: block; font-size: 14px; }
.user-chip small { color: var(--ink-2); font-size: 12px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 600;
}

.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; }
.topbar { display: none; }
.content { padding: 28px 32px; width: 100%; max-width: 1400px; }
.backdrop { display: none; }

/* ── Componentes ── */
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  transition: transform .05s, background .15s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-block { width: 100%; padding: 14px; font-size: 16px; }

.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit; font-size: 16px; /* 16px evita el zoom en iPhone */
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--brand-soft);
  border-color: var(--brand);
}

.alerts { margin-bottom: 16px; display: grid; gap: 8px; }
.alert { padding: 12px 14px; border-radius: 10px; font-weight: 500; background: var(--surface-2); }
.alert-success { background: var(--ok-soft); color: #1d6b3e; }
.alert-error, .alert-danger { background: var(--busy-soft); color: #a02828; }
.alert-warning { background: #FBEFD5; color: #8a5a0a; }

.icon-btn {
  width: 42px; height: 42px; border-radius: 10px;
  border: 0; background: var(--surface-2); color: var(--ink);
  font-size: 22px; display: grid; place-items: center;
}

/* ── Login ── */
.login-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 20px; }
.login-card {
  width: 100%; max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 32px 26px;
}
.login-brand { text-align: center; margin-bottom: 24px; }
.login-brand img { max-height: 90px; max-width: 100%; }
.login-brand p { color: var(--ink-2); letter-spacing: .2em; text-transform: uppercase; font-size: 12px; margin-top: 4px; }

/* ── Responsive (celular y tablet) ── */
@media (max-width: 991px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }

  .topbar {
    display: flex; align-items: center; gap: 12px;
    position: sticky; top: 0; z-index: 40;
    height: calc(58px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 14px 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }
  .topbar-title { font-weight: 600; }

  .backdrop.show {
    display: block; position: fixed; inset: 0;
    background: rgba(42,29,20,.45); z-index: 45;
  }
  .content { padding: 18px 14px calc(18px + env(safe-area-inset-bottom)); }
  h1 { font-size: 21px; }
}
/* ── Tablas, badges y formularios de gestión ── */
.table-card { padding: 0; overflow: hidden; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; min-width: 640px; }
.table th {
  text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-2); padding: 14px 16px; background: var(--surface-2);
}
.table td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.table tr.inactivo td { opacity: .5; }
.acciones { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.acciones form { margin: 0; }

.badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-dark);
  font-size: 12px; font-weight: 600;
}
.badge-ok { background: var(--ok-soft); color: #1d6b3e; }
.badge-off { background: var(--surface-2); color: var(--ink-2); }

.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 16px; margin-bottom: 8px; }
.perm-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.perm-group {
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--bg);
}
.perm-group h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-dark); margin-bottom: 8px; }
.check { display: flex; align-items: center; gap: 10px; padding: 8px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); flex-shrink: 0; }
.form-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

@media (max-width: 991px) {
  .form-grid { grid-template-columns: 1fr; }
  .page-head { flex-wrap: wrap; }
}
/* ── Accesos rápidos del inicio ── */
.shortcuts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.shortcut {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 14px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px; font-weight: 600;
  transition: transform .1s, border-color .15s;
}
.shortcut:hover { border-color: var(--brand); transform: translateY(-2px); }
.shortcut i { font-size: 28px; color: var(--brand); }

/* ── Avisos ── */
.toasts {
  position: fixed; top: calc(14px + env(safe-area-inset-top)); right: 14px; z-index: 200;
  display: grid; gap: 10px; width: min(360px, calc(100vw - 28px));
}
.toast {
  background: var(--ink); color: #fff; padding: 14px 16px; border-radius: 12px;
  box-shadow: var(--shadow); font-weight: 600; cursor: pointer; animation: toast-in .2s ease;
}
.toast.ok { background: #1f7a46; }
.toast.error { background: #b23a3a; }
.toast.listo { background: var(--brand); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ── Utilidades ── */
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.filtros { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.filtros select, .search {
  padding: 11px 14px; font: inherit; font-size: 16px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--surface); color: var(--ink);
}
.search { flex: 1; min-width: 180px; }
.btn-ok { background: var(--ok-soft); border-color: #b7e4c7; color: #1d6b3e; }

dialog { border: 0; border-radius: 18px; padding: 0; width: min(520px, calc(100vw - 24px)); max-height: 90dvh; box-shadow: 0 20px 60px rgba(0,0,0,.3); color: var(--ink); }
dialog::backdrop { background: rgba(42, 29, 20, .5); }
.dlg { padding: 22px; }
.dlg h3 { margin-bottom: 14px; }
.cat-list { display: grid; gap: 8px; max-height: 260px; overflow-y: auto; }
.cat-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }

/* ── Mesas ── */
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; }
.dot-ok { background: var(--ok); } .dot-busy { background: var(--busy); } .dot-warn { background: var(--warn); }

.mesas-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; align-items: start; }
.sector { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.sector h3 { margin-bottom: 12px; color: var(--ink-2); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.sector-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }

.mesa {
  position: relative; text-align: left; border: 2px solid transparent; border-radius: 12px;
  padding: 12px; min-height: 90px; display: flex; flex-direction: column; justify-content: space-between; gap: 4px;
  transition: transform .08s;
}
.mesa:active { transform: scale(.97); }
.mesa.libre { background: var(--ok-soft); border-color: #b7e4c7; color: #17603a; }
.mesa.ocupada { background: var(--busy-soft); border-color: #f2b8b8; color: #8c2323; }
.mesa.sel { border-color: var(--ink); box-shadow: 0 0 0 3px var(--brand-soft); }
.mesa.listo { animation: pulso 1.4s infinite; }
@keyframes pulso { 0%, 100% { box-shadow: 0 0 0 0 rgba(227,155,45,.7); } 50% { box-shadow: 0 0 0 8px rgba(227,155,45,0); } }
.mesa-nombre { font-size: 20px; font-weight: 700; }
.mesa-info { font-size: 12px; font-weight: 600; opacity: .85; }
.mesa-listo { font-size: 11px; font-weight: 700; color: #8a5a0a; background: #FBEFD5; border-radius: 999px; padding: 2px 8px; align-self: flex-start; }
.mesa-sep { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,.75); display: grid; place-items: center; }

.selbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 70; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  padding: 12px 16px; width: max-content; max-width: calc(100vw - 24px);
}
.selbar[hidden] { display: none; }
.selbar .btn:disabled { opacity: .5; }

/* ── Pedido del mozo ── */
.pedido-layout { display: grid; grid-template-columns: 1fr 380px; gap: 18px; align-items: start; }
.catalogo { min-width: 0; }
.cat-top { display: flex; gap: 10px; margin-bottom: 12px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { white-space: nowrap; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; color: var(--ink-2); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }

.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 8px; }
.prod {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-align: left;
  min-height: 86px; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; color: var(--ink);
}
.prod:hover { border-color: var(--brand); }
.prod:active { transform: scale(.97); }
.prod b { font-size: 14px; line-height: 1.25; }
.prod span { color: var(--brand-dark); font-weight: 700; }

.orden {
  position: sticky; top: 18px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column;
  max-height: calc(100dvh - 36px);
}
.orden-head, .orden-foot { padding: 14px 16px; }
.orden-head { border-bottom: 1px solid var(--line); }
.orden-foot { border-top: 1px solid var(--line); padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
.orden-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.orden-close { display: none; }
.orden-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; font-size: 14px; }
.orden-meta input { width: 64px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 16px; }
.orden-meta select { padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px; max-width: 150px; }
.orden-meta [hidden] { display: none; }
.orden-body { overflow-y: auto; padding: 4px 16px; flex: 1; min-height: 120px; }

.ronda h5 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-dark); margin: 14px 0 4px; }
.it { padding: 10px 0; border-bottom: 1px dashed var(--line); display: grid; gap: 6px; }
.it-main { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; }
.it.anulado .it-main { text-decoration: line-through; color: var(--ink-2); }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); font-size: 18px; font-weight: 700; color: var(--ink); }
.qty b { min-width: 22px; text-align: center; }
.qty .q-del { margin-left: auto; color: var(--busy); }
.it-nota { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; font: inherit; font-size: 15px; background: var(--bg); }
.entregar { padding: 8px 0 2px; display: flex; gap: 8px; flex-wrap: wrap; }

.b-draft { background: var(--surface-2); color: var(--ink-2); }
.b-wait { background: #FBEFD5; color: #8a5a0a; }
.b-prep { background: #DCE8FA; color: #2a54a0; }
.b-ready { background: var(--ok-soft); color: #1d6b3e; }
.b-done { background: var(--surface-2); color: var(--ink-2); }
.b-void { background: var(--busy-soft); color: #a02828; }

.total-row { display: flex; justify-content: space-between; font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.fab-orden { display: none; }

/* ── Cocina y barra ── */
.tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.ticket { background: var(--surface); border: 2px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.ticket.nuevo { border-color: var(--warn); }
.ticket.preparando { border-color: #4a7bd0; }
.ticket.anulado { border-color: var(--busy); }
.ticket header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 12px 14px; background: var(--surface-2); }
.ticket header strong { display: block; font-size: 18px; }
.ticket header small, .t-time { color: var(--ink-2); font-size: 12px; font-weight: 600; }
.ticket ul { list-style: none; padding: 12px 14px; display: grid; gap: 10px; flex: 1; margin: 0; }
.ticket li { font-size: 17px; font-weight: 600; }
.ticket li.anulado { color: var(--busy); text-decoration: line-through; }
.ticket li em { font-size: 11px; font-style: normal; font-weight: 700; background: var(--busy-soft); border-radius: 6px; padding: 2px 6px; text-decoration: none; display: inline-block; }
.nota { font-size: 14px; font-weight: 600; color: #8a5a0a; background: #FBEFD5; border-radius: 8px; padding: 6px 9px; margin-top: 4px; text-decoration: none; }
.ticket footer { display: flex; gap: 8px; padding: 12px 14px; }
.ticket footer .btn { flex: 1; }
.vacio { grid-column: 1 / -1; text-align: center; color: var(--ink-2); padding: 60px 0; }
.vacio i { font-size: 44px; color: var(--brand); }

/* ── Celular ── */
@media (max-width: 991px) {
  .pedido-layout { grid-template-columns: 1fr; }
  .orden {
    position: fixed; inset: auto 0 0 0; max-height: 88dvh; border-radius: 20px 20px 0 0;
    transform: translateY(110%); transition: transform .25s ease; z-index: 60;
  }
  .orden.open { transform: none; }
  .orden-close { display: grid; }
  .fab-orden {
    display: flex; justify-content: space-between; align-items: center;
    position: fixed; left: 14px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 55;
    background: var(--ink); color: #fff; border: 0; border-radius: 14px; padding: 16px 18px;
    font-size: 16px; font-weight: 600; box-shadow: var(--shadow);
  }
  .catalogo { padding-bottom: 80px; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .toasts { left: 14px; right: 14px; width: auto; }
}
/* ═════════ REDISEÑO v2 ═════════ */
:root {
  --bg: #F5F0E8;
  --line: #E9E0D4;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(42,29,20,.05), 0 10px 30px rgba(42,29,20,.07);
  --sidebar-w: 264px;
  --grad: linear-gradient(135deg, #C97A47, #8F4F27);
}
body { background: var(--bg); }

/* Menú lateral oscuro */
.sidebar { background: linear-gradient(180deg, #33231A 0%, #1E140D 100%); border-right: 0; color: #E8DCCD; }
.sidebar-brand { padding: 18px 16px 8px; min-height: 0; }
.brand-box {
  background: #fff; border-radius: 16px; padding: 12px 16px; width: 100%; min-height: 68px;
  display: flex; justify-content: center; align-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.brand-box img { max-height: 48px; max-width: 100%; object-fit: contain; }
.brand-box .brand-text { color: var(--ink); font-size: 38px; }
.sidebar-nav { padding: 6px 14px 10px; gap: 2px; }
.nav-group { margin: 16px 10px 6px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #9A8470; }
.nav-link { color: #D8C8B6; padding: 11px 14px; border-radius: 12px; }
.nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-link.active { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(181,105,58,.4); }
.nav-link.logout:hover { background: rgba(214,69,69,.2); color: #ff9c9c; }
.sidebar-footer { border-top: 1px solid rgba(255,255,255,.08); }
.user-chip strong { color: #fff; }
.user-chip small { color: #A8957F; }

/* Barra superior (también en compu) */
.topbar {
  display: flex; align-items: center; gap: 14px; position: sticky; top: 0; z-index: 40;
  height: 64px; padding: 0 28px; background: rgba(245,240,232,.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-title { font-weight: 700; font-size: 17px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.caja-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.caja-chip i { font-size: 8px; }
.caja-chip.on { background: var(--ok-soft); color: #1d6b3e; }
.caja-chip.off { background: var(--busy-soft); color: #a02828; }
.clock { font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (min-width: 992px) { #menuBtn { display: none; } }
@media (max-width: 991px) {
  .topbar { padding: env(safe-area-inset-top) 14px 0; height: calc(60px + env(safe-area-inset-top)); }
  .clock { display: none; }
}

/* Entrada suave */
.content > * { animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Botones y campos */
.btn { border-radius: 12px; }
.btn-primary { background: var(--grad); border-color: transparent; box-shadow: 0 6px 16px rgba(181,105,58,.3); }
.btn-primary:hover { background: var(--grad); filter: brightness(1.06); }
.card, .panel, .kpi, .sector, .metodo-card { border-radius: var(--radius); }

/* Utilidades */
.num { text-align: right; font-variant-numeric: tabular-nums; }
.pos { color: #1d6b3e; }
.neg { color: #a02828; }
.badge-warn { background: #FBEFD5; color: #8a5a0a; }
.badge-bad { background: var(--busy-soft); color: #a02828; }
.badge-info { background: #DCE8FA; color: #2a54a0; }
.row-kv { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.row-kv:last-child { border-bottom: 0; }
.row-kv.big { font-size: 19px; font-weight: 800; }
.sub-title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin: 18px 0 6px; }
.paginacion { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 16px; }

/* Inicio */
.hero {
  position: relative; overflow: hidden; border-radius: 22px; padding: 26px 28px; color: #fff; margin-bottom: 20px;
  background: linear-gradient(120deg, #2A1D14 0%, #5A3720 55%, #B5693A 125%); box-shadow: var(--shadow);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.hero::after { content: ''; position: absolute; right: -60px; top: -70px; width: 250px; height: 250px; border-radius: 50%; background: rgba(255,255,255,.07); }
.hero h1 { color: #fff; font-size: 26px; }
.hero p { color: rgba(255,255,255,.75); margin-top: 4px; text-transform: capitalize; }
.hero-actions { position: relative; z-index: 1; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hero-chip { padding: 9px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; background: rgba(255,255,255,.14); }
.hero-chip.off { background: rgba(214,69,69,.35); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpis.sm { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.kpi { background: var(--surface); border: 1px solid var(--line); padding: 18px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: flex-start; }
.kpi-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 21px; background: var(--brand-soft); color: var(--brand-dark); flex-shrink: 0; }
.kpi-ico.ok { background: var(--ok-soft); color: #1d6b3e; }
.kpi-ico.busy { background: var(--busy-soft); color: #a02828; }
.kpi-ico.warn { background: #FBEFD5; color: #8a5a0a; }
.kpi-ico.blue { background: #DCE8FA; color: #2a54a0; }
.kpi-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.kpi-val { font-size: 24px; font-weight: 800; line-height: 1.15; margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi-val small { font-size: 15px; color: var(--ink-2); font-weight: 600; }
.kpi.big .kpi-val { font-size: 29px; }
.kpi-sub { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }

.grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 20px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.panel-head { padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); font-weight: 700; }
.panel-body { padding: 16px 18px; }
.chart-box { position: relative; height: 270px; padding: 12px 16px 16px; }
.rank { list-style: none; padding: 0; margin: 0; }
.rank li { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); }
.rank li:first-child { border-top: 0; }
.rank .n { width: 26px; height: 26px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.rank .grow { flex: 1; font-weight: 600; }
.mis-mesas { display: flex; gap: 10px; flex-wrap: wrap; padding: 16px 18px; }
.mesa-chip { padding: 10px 16px; border-radius: 12px; background: var(--busy-soft); color: #8c2323; font-weight: 700; display: flex; flex-direction: column; }
.mesa-chip small { font-weight: 500; opacity: .8; }

/* Filtros de fecha */
.fechas { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 8px 14px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.seg button.on { background: var(--ink); color: #fff; }
.rango { display: flex; align-items: center; gap: 6px; }
.rango input, .fechas select { padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 15px; background: var(--surface); color: var(--ink); }

/* Caja */
.actions-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.metodos { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; margin-bottom: 18px; }
.metodo-card { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 18px; border-top: 4px solid var(--brand); }
.metodo-card.ef { border-top-color: var(--ok); }
.metodo-card.tr { border-top-color: #4a7bd0; }
.metodo-card.ta { border-top-color: var(--warn); }
.metodo-card h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.metodo-card .big { font-size: 31px; font-weight: 800; margin: 6px 0 10px; font-variant-numeric: tabular-nums; }
.tl { display: flex; gap: 12px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); }
.tl-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.tl-ico.venta { background: var(--brand-soft); color: var(--brand-dark); }
.tl-ico.in { background: var(--ok-soft); color: #1d6b3e; }
.tl-ico.out { background: var(--busy-soft); color: #a02828; }
.tl-main { flex: 1; min-width: 0; }
.tl-main b { display: block; }
.tl-main small { color: var(--ink-2); }
.tl-amt { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.falta { padding: 11px 14px; border-radius: 10px; background: var(--surface-2); color: var(--ink-2); font-weight: 700; text-align: center; margin-top: 8px; }
.falta.ok { background: var(--ok-soft); color: #1d6b3e; }
.falta.mal { background: var(--busy-soft); color: #a02828; }

/* Cobro */
.cobro-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: start; }
.cobro-item { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); }
.cobro-item.off { opacity: .55; }
.ci-main { flex: 1; min-width: 0; }
.ci-main b { display: block; }
.ci-main small { color: var(--ink-2); }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); font-size: 19px; font-weight: 700; color: var(--ink); }
.stepper b { min-width: 42px; text-align: center; }
.pago-row { display: grid; grid-template-columns: 1fr 130px auto; gap: 8px; align-items: center; padding: 6px 0; }
.pago-row label { font-weight: 600; display: flex; gap: 8px; align-items: center; }
.pago-row input, .pago-row select, .cliente-row select { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 16px; width: 100%; background: var(--surface); color: var(--ink); }
.pago-row input[data-m] { text-align: right; }
.cliente-row { display: flex; gap: 8px; }
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.radio-card { border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; display: flex; gap: 8px; align-items: center; cursor: pointer; font-weight: 600; font-size: 14px; }
.radio-card:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.radio-card input { accent-color: var(--brand); }
.ok-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-soft); color: #1d6b3e; display: grid; place-items: center; font-size: 34px; margin: 0 auto 12px; }

@media (max-width: 991px) {
  .grid-2, .cobro-layout { grid-template-columns: 1fr; }
  .hero { padding: 20px; }
  .hero h1 { font-size: 22px; }
  .kpi-val, .kpi.big .kpi-val { font-size: 22px; }
  .pago-row { grid-template-columns: 1fr 110px auto; }
}
/* ── ABM de usuarios ── */
.perm-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.perm-section { margin-bottom: 18px; }
.perm-title { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 10px; color: var(--brand-dark); }
.perm-group-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.perm-group-head h4 { margin: 0; }
.link-btn { border: 0; background: none; color: var(--brand-dark); font-weight: 700; font-size: 13px; padding: 4px 6px; }
.link-btn:hover { text-decoration: underline; }
/* ── Facturas y reportes ── */
.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tabs a { padding: 10px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; color: var(--ink-2); display: inline-flex; gap: 8px; align-items: center; }
.tabs a b { background: var(--surface-2); border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.tabs a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.tabs a.on b { background: rgba(255,255,255,.2); }
.bulkbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; box-shadow: var(--shadow); }
.badge-star { background: #DCE8FA; color: #2a54a0; }
.err-afip { margin-top: 6px; font-size: 12px; font-weight: 600; color: #a02828; background: var(--busy-soft); border-radius: 8px; padding: 5px 8px; max-width: 320px; }
tr.hecha td { background: var(--ok-soft); }
.sec { margin: 26px 0 12px; font-size: 18px; }
.grid-2.even { grid-template-columns: 1fr 1fr; }
.mini-select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 14px; background: var(--surface); color: var(--ink); }
@media (max-width: 991px) { .grid-2.even { grid-template-columns: 1fr; } }
/* ── Diálogos de confirmación ── */
.confirm-dlg { width: min(400px, calc(100vw - 32px)); border-radius: 20px; }
.confirm-dlg[open] { animation: pop .18s ease; }
@keyframes pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.confirm-body { text-align: center; padding: 26px 22px 22px; }
.confirm-ico { width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; font-size: 30px; background: var(--brand-soft); color: var(--brand-dark); }
.confirm-ico.danger { background: var(--busy-soft); color: #a02828; }
.confirm-body h3 { margin-bottom: 6px; }
.confirm-body p { color: var(--ink-2); margin: 0 0 18px; }
.confirm-input { width: 100%; padding: 12px 14px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 16px; }
.confirm-actions { display: flex; gap: 10px; }
.confirm-actions .btn { flex: 1; }
.btn-danger { background: #D64545; border-color: #D64545; color: #fff; box-shadow: 0 6px 16px rgba(214,69,69,.3); }
.btn-danger:hover { filter: brightness(1.08); }
/* ═════════ Configuración, tema oscuro y ajustes de celular ═════════ */
.cfg-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; align-items: start; }
.logo-prev { background: #fff; border: 1px dashed var(--line); border-radius: 16px; min-height: 120px; display: grid; place-items: center; padding: 16px; }
.logo-prev img { max-width: 100%; max-height: 110px; object-fit: contain; }
.icons-prev { display: flex; gap: 18px; align-items: flex-end; margin-top: 14px; flex-wrap: wrap; }
.icons-prev figure { margin: 0; text-align: center; font-size: 12px; color: var(--ink-2); }
.icons-prev img { border-radius: 22%; border: 1px solid var(--line); display: block; margin: 0 auto 4px; }
.tema-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tema-card { position: relative; border: 2px solid var(--line); border-radius: 14px; padding: 10px; cursor: pointer; display: grid; gap: 8px; text-align: center; font-weight: 600; font-size: 14px; }
.tema-card input { position: absolute; opacity: 0; pointer-events: none; }
.tema-card:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.tema-mini { height: 54px; border-radius: 9px; display: grid; grid-template-columns: 28% 1fr; overflow: hidden; border: 1px solid rgba(0,0,0,.12); }
.tema-mini i { display: block; }
.tema-mini.claro { background: #F5F0E8; } .tema-mini.claro i { background: #2A1D14; }
.tema-mini.oscuro { background: #17110C; } .tema-mini.oscuro i { background: #33231A; }
.tema-mini.auto { background: linear-gradient(90deg, #F5F0E8 50%, #17110C 50%); } .tema-mini.auto i { background: #2A1D14; }
.brand-text.long { font-size: 24px; text-align: center; line-height: 1.1; }
.brand-text.big.long { font-size: 34px; }
.login-brand .brand-box { max-width: 260px; margin: 0 auto; }
#temaBtn { width: 40px; height: 40px; font-size: 19px; }
.topbar-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 991px) {
  .cfg-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .topbar { gap: 8px; }
  .topbar-right { gap: 8px; }
  .caja-chip { padding: 6px 10px; font-size: 12px; }
  .tema-card { padding: 8px; font-size: 12.5px; }
  .tema-mini { height: 44px; }
  .icon-btn { width: 40px; height: 40px; }
}

/* ── Modo oscuro ── */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #17110C; --surface: #231A13; --surface-2: #2F2319; --line: #3D2F23;
  --ink: #F3EBE1; --ink-2: #B8A794;
  --brand: #D08450; --brand-dark: #E8A878; --brand-soft: #3B2819;
  --ok-soft: #163625; --busy-soft: #3E1E1E;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35);
}
html[data-theme="dark"] dialog { background: var(--surface); }
html[data-theme="dark"] .topbar { background: rgba(23,17,12,.88); }
html[data-theme="dark"] .brand-box .brand-text { color: #2A1D14; }
html[data-theme="dark"] .pos { color: #6FD39A; }
html[data-theme="dark"] .neg { color: #FF8E8E; }
html[data-theme="dark"] .alert-success { color: #8EE3B0; }
html[data-theme="dark"] .alert-error, html[data-theme="dark"] .alert-danger { color: #FFA3A3; }
html[data-theme="dark"] .alert-warning { background: #3D2E12; color: #F2C46D; }
html[data-theme="dark"] .badge-ok, html[data-theme="dark"] .b-ready { color: #8EE3B0; }
html[data-theme="dark"] .badge-bad, html[data-theme="dark"] .b-void { color: #FFA3A3; }
html[data-theme="dark"] .badge-warn, html[data-theme="dark"] .b-wait { background: #3D2E12; color: #F2C46D; }
html[data-theme="dark"] .badge-info, html[data-theme="dark"] .badge-star, html[data-theme="dark"] .b-prep { background: #1D2C47; color: #9CBEF5; }
html[data-theme="dark"] .kpi-ico.ok { color: #8EE3B0; }
html[data-theme="dark"] .kpi-ico.busy { color: #FFA3A3; }
html[data-theme="dark"] .kpi-ico.warn { background: #3D2E12; color: #F2C46D; }
html[data-theme="dark"] .kpi-ico.blue { background: #1D2C47; color: #9CBEF5; }
html[data-theme="dark"] .caja-chip.on { color: #8EE3B0; }
html[data-theme="dark"] .caja-chip.off { color: #FFA3A3; }
html[data-theme="dark"] .mesa.libre { border-color: #2C6B48; color: #8EE3B0; }
html[data-theme="dark"] .mesa.ocupada { border-color: #7A3434; color: #FFA3A3; }
html[data-theme="dark"] .mesa-listo, html[data-theme="dark"] .nota { background: #3D2E12; color: #F2C46D; }
html[data-theme="dark"] .mesa-sep { background: rgba(0,0,0,.35); }
html[data-theme="dark"] .mesa-chip { color: #FFA3A3; }
html[data-theme="dark"] .btn-ok { border-color: #2C6B48; color: #8EE3B0; }
html[data-theme="dark"] .falta.ok, html[data-theme="dark"] .ok-ico, html[data-theme="dark"] .tl-ico.in { color: #8EE3B0; }
html[data-theme="dark"] .falta.mal, html[data-theme="dark"] .tl-ico.out, html[data-theme="dark"] .err-afip, html[data-theme="dark"] .confirm-ico.danger { color: #FFA3A3; }
html[data-theme="dark"] .seg button.on,
html[data-theme="dark"] .chip.on,
html[data-theme="dark"] .tabs a.on { background: var(--brand); border-color: var(--brand); color: #fff; }
html[data-theme="dark"] .fab-orden { background: var(--brand); }
html[data-theme="dark"] .toast { background: #3D2F23; }
/* ── Logo: la caja se adapta al tamaño del logo ── */
.sidebar-brand { justify-content: center; }
.brand-box {
  width: fit-content;
  max-width: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  line-height: 0;
}
.brand-box img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 72px;
  object-fit: contain;
}
/* Si no hay logo cargado, el nombre en texto sí lleva aire alrededor */
.brand-box:has(.brand-text) { padding: 12px 18px; line-height: 1.1; }
.login-brand .brand-box img { max-height: 110px; }

/* ── Barra de scroll del menú, finita y discreta ── */
.sidebar-nav { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.22) transparent; }
.sidebar-nav::-webkit-scrollbar { width: 6px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.22); border-radius: 6px; }
.sidebar-nav::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.4); }
/* ── Logo grande, ocupa el ancho del menú ── */
.brand-box { width: 100%; padding: 10px 14px; line-height: 0; }
.brand-box img { width: 100%; height: auto; max-height: 96px; object-fit: contain; }
.brand-box:has(.brand-text) { padding: 12px 18px; line-height: 1.1; }
/* ── Carta digital (panel del dueño) ── */
.pasos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.paso { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.paso b { background: var(--brand); color: #fff; border-radius: 50%; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.cm-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 16px; }
.cm-head { background: var(--brand-soft); padding: 12px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cm-title { flex: 1; min-width: 140px; display: grid; }
.cm-title strong { font-size: 17px; }
.cm-ico { width: 46px; height: 46px; border-radius: 14px; background: var(--brand); display: grid; place-items: center; font-size: 22px; overflow: hidden; flex: 0 0 auto; }
.cm-ico img { width: 100%; height: 100%; object-fit: cover; }
.cm-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.cm-actions form { margin: 0; }
.cm-row { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cm-row.off { opacity: .55; }
.cm-thumb { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: var(--brand-soft); flex: 0 0 auto; display: grid; place-items: center; font-size: 24px; }
.cm-info { flex: 1; min-width: 160px; }
.cm-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 5px; }
.d-blk { display: block; }
.cm-pricebox { text-align: right; }
.cm-price { background: var(--brand); color: #fff; font-weight: 800; border-radius: 999px; padding: 4px 13px; white-space: nowrap; }
.emoji-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.emoji-q { font-size: 20px; padding: 3px 9px; }
.img-actual { display: flex; align-items: center; gap: 12px; margin: 8px 0; }
.img-actual img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.etiquetas { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.qr-box { display: grid; place-items: center; }
.qr-box canvas, .qr-box img { width: 240px !important; height: 240px !important; background: #fff; padding: 10px; border-radius: 14px; }
.qr-url { font-size: 12px; word-break: break-all; margin-top: 10px; }
.vacio i { font-size: 44px; color: var(--brand); }
dialog .form-grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 991px) {
  .pasos { grid-template-columns: 1fr; }
  .cm-pricebox { text-align: left; }
}
@media (max-width: 480px) {
  dialog .form-grid { grid-template-columns: 1fr; }
}
/* ── Escala general en compu ── */
@media (min-width: 992px) {
  html { zoom: 0.9; }
}
/* ── Cocina y barra: botón por ítem, aviso de sonido ── */
.ticket li { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.li-txt { flex: 1; min-width: 0; }
.it-ok {
  width: 46px; height: 46px; flex: 0 0 auto; border: 0; border-radius: 12px;
  background: var(--ok-soft); color: #1d6b3e; font-size: 24px; display: grid; place-items: center;
}
.it-ok:active { transform: scale(.92); }
.it-ok:disabled { opacity: .5; }
html[data-theme="dark"] .it-ok { color: #8EE3B0; }

.sonido-banner {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 250;
  top: calc(10px + env(safe-area-inset-top)); width: min(440px, calc(100vw - 24px));
}
.sonido-banner[hidden] { display: none; }
.sonido-banner button {
  width: 100%; padding: 14px 16px; border: 0; border-radius: 14px;
  background: #D64545; color: #fff; font: inherit; font-weight: 700; font-size: 15px;
  box-shadow: 0 10px 28px rgba(214,69,69,.45); animation: pulso-banner 1.4s infinite;
}
@keyframes pulso-banner { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
/* ── Avisos push: campana y cartel de activación ── */
.push-banner {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 240;
  top: calc(70px + env(safe-area-inset-top)); width: min(460px, calc(100vw - 24px));
  background: var(--ink); color: #fff; border-radius: 16px; padding: 14px 16px;
  box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.push-banner[hidden] { display: none; }
.push-banner p { margin: 0; flex: 1 1 220px; font-size: 14px; line-height: 1.35; }
.push-banner .btn { padding: 9px 14px; }
.push-banner .no { background: transparent; border: 0; color: #cdbfae; font: inherit; font-size: 13px; }
#pushBtn.on { color: #1d6b3e; background: var(--ok-soft); }
html[data-theme="dark"] .push-banner { background: var(--surface-2); }
html[data-theme="dark"] #pushBtn.on { color: #8EE3B0; }