/* ═══════════════════════════════════════════════════════════════════
   MenuApp — Estilos globales
   Mobile First · Design tokens con CSS custom properties
   ═══════════════════════════════════════════════════════════════════ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ─── Design Tokens ─────────────────────────────────────────────── */
:root {
  /* Colores de marca */
  --color-primary:       #1a6b3c;
  --color-primary-dark:  #12502d;
  --color-primary-light: #e8f5ed;
  --color-secondary:     #f5a623;
  --color-danger:        #d93025;
  --color-danger-light:  #fdecea;
  --color-warning:       #f59e0b;
  --color-warning-light: #fffbeb;
  --color-success:       #16a34a;
  --color-success-light: #dcfce7;

  /* Grises */
  --color-text:          #1a1a1a;
  --color-text-secondary:#6b7280;
  --color-text-muted:    #9ca3af;
  --color-border:        #e5e7eb;
  --color-bg:            #f9fafb;
  --color-surface:       #ffffff;
  --color-surface-2:     #f3f4f6;

  /* Tipografía */
  --font-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs:   12px;
  --font-size-sm:   14px;
  --font-size-base: 16px;
  --font-size-lg:   18px;
  --font-size-xl:   22px;
  --font-size-2xl:  28px;

  /* Espaciado */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;

  /* Radios */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-full: 9999px;

  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.12);

  /* Layout */
  --header-height:  56px;
  --bottom-nav-h:   64px;
  --content-max-w:  640px;
  --content-padding: var(--space-4);

  /* Transiciones */
  --transition-fast:   150ms ease;
  --transition-normal: 250ms ease;
}

/* ─── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: var(--font-size-base); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100dvh;
  overflow: hidden;
}
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ─── Screens ────────────────────────────────────────────────────── */
.screen { display: none; width: 100%; min-height: 100dvh; }
.screen.active { display: flex; flex-direction: column; }

/* ─── Loading ────────────────────────────────────────────────────── */
#screen-loading {
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
}
.loading-container { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); }
.loading-spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-message { color: var(--color-text-secondary); font-size: var(--font-size-sm); }

/* ─── App shell ──────────────────────────────────────────────────── */
#screen-app {
  background: var(--color-bg);
  position: fixed;
  top: var(--app-top, 0px);
  left: 0;
  height: var(--app-height, 100dvh);
  min-height: 0;
  overflow: hidden;
}

.app-header {
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-4);
  box-shadow: var(--shadow-sm);
}
.header-left { display: flex; align-items: center; gap: var(--space-2); }
.header-logo { font-size: 22px; }
.header-title { color: #fff; font-size: var(--font-size-lg); font-weight: 700; letter-spacing: .3px; }
.header-right { display: flex; align-items: center; gap: var(--space-2); }

.btn-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.85);
  transition: background var(--transition-fast);
}
.btn-icon:hover, .btn-icon:active { background: rgba(255,255,255,.15); }
.btn-icon svg { width: 20px; height: 20px; }

.app-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: var(--content-padding);
  overscroll-behavior-y: contain;
  scroll-padding-block: var(--space-4);
  max-width: var(--content-max-w);
  margin: 0 auto;
  width: 100%;
}

/* ─── Bottom navigation ──────────────────────────────────────────── */
.bottom-nav {
  position: relative;
  flex-shrink: 0;
  height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  display: flex;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--color-text-muted);
  font-size: 10px;
  font-weight: 500;
  transition: color var(--transition-fast);
  padding: var(--space-1) 0;
}
.nav-item svg { width: 22px; height: 22px; stroke: currentColor; }
.nav-item.active { color: var(--color-primary); }
.nav-item:active { background: var(--color-primary-light); }
.nav-item--more[aria-expanded="true"] { color: var(--color-primary); }

.nav-more-menu {
  position: fixed;
  z-index: 110;
  width: 220px;
  max-width: calc(100vw - 16px);
  max-height: calc(var(--visible-height, 100dvh) - 16px);
  overscroll-behavior: contain;
  overflow-y: auto;
  padding: var(--space-2);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.nav-more-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  min-height: 44px;
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  text-align: left;
}
.nav-more-item:hover,
.nav-more-item:active { background: var(--color-primary-light); }
.nav-more-item:focus-visible,
.nav-item--more:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}
.nav-more-item svg { flex-shrink: 0; }

/* ─── Views ──────────────────────────────────────────────────────── */
.view { display: none; }
.view.active { display: block; }

/* ─── Cards ──────────────────────────────────────────────────────── */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-3);
}
.card-empty {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  color: var(--color-text-secondary);
}
.card-empty p { margin-bottom: var(--space-4); }

/* ─── Sections ───────────────────────────────────────────────────── */
.dashboard-section { margin-bottom: var(--space-6); }
.section-title {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: var(--space-3);
}

/* ─── Quick actions ──────────────────────────────────────────────── */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-2);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.quick-action-btn:active { transform: scale(.95); box-shadow: none; }
.qa-icon { font-size: 28px; }
.qa-label { font-size: var(--font-size-xs); color: var(--color-text-secondary); font-weight: 600; }

/* ─── Botones ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:active { background: var(--color-primary-dark); }

.btn-secondary {
  background: var(--color-surface-2);
  color: var(--color-text);
}
.btn-secondary:active { background: var(--color-border); }

.btn-danger {
  background: var(--color-danger);
  color: #fff;
}

.btn-text {
  color: var(--color-primary);
  font-size: var(--font-size-sm);
  font-weight: 600;
  padding: var(--space-2);
}

.btn-full { width: 100%; }
.btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--font-size-xs); }

/* ─── Alertas ────────────────────────────────────────────────────── */
.alerts-list { display: flex; flex-direction: column; gap: var(--space-2); }
.alert-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
}
.alert-item.danger  { background: var(--color-danger-light); color: var(--color-danger); }
.alert-item.warning { background: var(--color-warning-light); color: #92400e; }
.alert-item.info    { background: var(--color-primary-light); color: var(--color-primary-dark); }
.alert-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

/* ─── Drive Status Block ─────────────────────────────────────────── */
#drive-status {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}
#drive-status p { margin-bottom: var(--space-2); }
#drive-status p:last-child { margin-bottom: 0; }
.status-ok    { color: var(--color-success); font-weight: 600; }
.status-error { color: var(--color-danger);  font-weight: 600; }
.status-warn  { color: var(--color-warning); font-weight: 600; }

/* ─── Toast ──────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: calc(100dvh - var(--visible-height, 100dvh) - var(--visible-top, 0px) + var(--bottom-nav-h) + var(--space-4));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1a1a1a;
  color: #fff;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal), transform var(--transition-normal);
  z-index: 999;
  white-space: nowrap;
  max-width: 90vw;
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.success { background: var(--color-success); }
.toast.error   { background: var(--color-danger); }
.toast.warning { background: var(--color-warning); color: #1a1a1a; }

/* ─── PWA Banner ─────────────────────────────────────────────────── */
.pwa-banner {
  position: fixed;
  top: var(--header-height);
  left: var(--space-4); right: var(--space-4);
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--font-size-sm);
  box-shadow: var(--shadow-md);
  z-index: 200;
}
.pwa-banner strong { font-weight: 700; }
.pwa-banner .btn-text { color: rgba(255,255,255,.85); }
.hidden { display: none !important; }

/* ─── Forms ──────────────────────────────────────────────────────── */
.form-group { margin-bottom: var(--space-4); }
.form-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.form-label .required { color: var(--color-danger); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color var(--transition-fast);
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
}
.form-control::placeholder { color: var(--color-text-muted); }
.form-hint { font-size: var(--font-size-xs); color: var(--color-text-muted); margin-top: var(--space-1); }
.form-error { font-size: var(--font-size-xs); color: var(--color-danger); margin-top: var(--space-1); }
.form-control.is-invalid { border-color: var(--color-danger); }

/* ─── Modal / Popup ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  top: var(--visible-top, 0px);
  left: var(--visible-left, 0px);
  width: var(--visible-width, 100%);
  height: var(--visible-height, 100dvh);
  overscroll-behavior: contain;
  background: rgba(0,0,0,.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 500;
  padding: var(--space-4);
}
.modal {
  background: var(--color-surface);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-md) var(--radius-md);
  width: 100%;
  max-width: var(--content-max-w);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: var(--space-4);
}
.modal-header {
  flex-shrink: 0;
  gap: var(--space-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}
.modal-title { overflow-wrap: anywhere; font-size: var(--font-size-lg); font-weight: 700; }
.modal-close {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-muted);
  font-size: 20px;
  transition: background var(--transition-fast);
}
.modal-close:hover { background: var(--color-surface-2); }
.modal-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-padding-block: var(--space-3);
}
body.modal-open .app-content { overflow: hidden; }
.modal-footer {
  flex-shrink: 0;
  flex-wrap: wrap;
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}
.modal-footer .btn { flex: 1; min-width: 0; white-space: normal; }

/* ─── Chip / Badge ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
}
.badge-green  { background: var(--color-success-light); color: var(--color-success); }
.badge-orange { background: var(--color-warning-light); color: #92400e; }
.badge-red    { background: var(--color-danger-light);  color: var(--color-danger); }
.badge-blue   { background: var(--color-primary-light); color: var(--color-primary-dark); }
.badge-gray   { background: var(--color-surface-2);     color: var(--color-text-secondary); }

/* ─── List items ─────────────────────────────────────────────────── */
.list-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2);
  box-shadow: var(--shadow-sm);
}
.list-item-content { flex: 1; min-width: 0; }
.list-item-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.list-item-subtitle { font-size: var(--font-size-xs); color: var(--color-text-secondary); margin-top: 2px; }
.list-item-actions { display: flex; gap: var(--space-2); flex-shrink: 0; }

/* ─── Search bar ─────────────────────────────────────────────────── */
.search-bar {
  position: relative;
  margin-bottom: var(--space-4);
}
.search-bar input {
  min-width: 0;
  width: 100%;
  padding: var(--space-3) var(--space-4) var(--space-3) 40px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  font-size: var(--font-size-base);
}
.search-bar input:focus { outline: none; border-color: var(--color-primary); }
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  width: 18px; height: 18px;
  pointer-events: none;
}

/* ─── Empty state ────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: var(--space-12) var(--space-6);
  color: var(--color-text-secondary);
}
.empty-state-icon { font-size: 48px; margin-bottom: var(--space-4); }
.empty-state-title { font-size: var(--font-size-lg); font-weight: 700; color: var(--color-text); margin-bottom: var(--space-2); }
.empty-state-desc { font-size: var(--font-size-sm); margin-bottom: var(--space-6); }

/* ─── Utilidades ─────────────────────────────────────────────────── */
.text-muted    { color: var(--color-text-muted); }
.text-sm       { font-size: var(--font-size-sm); }
.text-xs       { font-size: var(--font-size-xs); }
.text-center   { text-align: center; }
.font-bold     { font-weight: 700; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mb-4 { margin-bottom: var(--space-4); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.w-full { width: 100%; }

/* ─── Responsive: Tablet ─────────────────────────────────────────── */
@media (min-width: 768px) {
  :root { --content-padding: var(--space-6); }
  .quick-actions { grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
  .modal { border-radius: var(--radius-lg); }
  .modal-overlay { align-items: center; }
}

/* ─── Responsive: Desktop ────────────────────────────────────────── */
@media (min-width: 1024px) {
  #screen-app.active {
    display: grid;
    grid-template-columns: 240px 1fr;
    grid-template-rows: var(--header-height) 1fr;
  }
  .app-header { grid-column: 1 / -1; }
  .bottom-nav { grid-column: 1; grid-row: 2; }
  .app-content { grid-column: 2; grid-row: 2; min-width: 0; }
  .bottom-nav {
    position: static;
    flex-direction: column;
    height: auto;
    border-top: none;
    border-right: 1px solid var(--color-border);
    padding: var(--space-6) var(--space-3);
    gap: var(--space-1);
  }
  .nav-item {
    flex-direction: row;
    justify-content: flex-start;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    gap: var(--space-3);
  }
  .nav-item.active { background: var(--color-primary-light); }
  .app-content { padding-bottom: var(--space-6); }
}

/* ═══════════════════════════════════════════════════════════════════
   Datepicker propio
   ═══════════════════════════════════════════════════════════════════ */
.dp-overlay {
  position: fixed;
  top: var(--visible-top, 0px); left: var(--visible-left, 0px);
  width: var(--visible-width, 100%); height: var(--visible-height, 100dvh);
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  padding: var(--space-4);
}
.dp-modal {
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  width: 100%; max-width: 320px;
  box-shadow: var(--shadow-lg);
}
.dp-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--space-4);
}
.dp-title { font-weight: 700; font-size: var(--font-size-base); }
.dp-nav {
  width: 32px; height: 32px;
  border-radius: var(--radius-md);
  font-size: 20px; font-weight: 700;
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition-fast);
}
.dp-nav:hover { background: var(--color-primary-light); }
.dp-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 2px; margin-bottom: var(--space-4);
}
.dp-cell {
  height: 36px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--font-size-sm); cursor: pointer;
  transition: background var(--transition-fast);
}
.dp-head   { font-weight: 700; font-size: 10px; color: var(--color-text-muted); cursor: default; height: 28px; }
.dp-other  { color: var(--color-text-muted); cursor: default; }
.dp-day:hover      { background: var(--color-primary-light); color: var(--color-primary); }
.dp-today          { font-weight: 700; border: 2px solid var(--color-primary); color: var(--color-primary); }
.dp-selected       { background: var(--color-primary) !important; color: #fff !important; font-weight: 700; }
.dp-disabled       { opacity: .3; cursor: not-allowed; pointer-events: none; }
.dp-footer {
  display: flex; gap: var(--space-3); justify-content: flex-end;
  border-top: 1px solid var(--color-border); padding-top: var(--space-3);
}

/* Las sugerencias escapan del recorte del formulario sin moverlo ni desplazar el fondo. */
.floating-suggestions {
  position: fixed;
  right: auto;
  z-index: 600;
  margin: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}
.floating-suggestions [role="option"] { min-height: 44px; overflow-wrap: anywhere; }
.floating-suggestions [aria-selected="true"] { background: var(--color-primary-light); color: var(--color-primary); }
@media (max-height: 450px) {
  .modal-overlay, .dp-overlay { padding: var(--space-2); }
  .modal { padding: var(--space-3); }
  .modal-header { margin-bottom: var(--space-2); }
  .modal-footer { margin-top: var(--space-2); padding-top: var(--space-2); }
}

/* First visit and private account setup. */
.welcome-screen.active { display: flex; align-items: safe center; justify-content: center; overflow-y: auto; padding: 24px 16px; background: #f2f7f3; min-height: 100dvh; }
.welcome-card { width: min(100%, 460px); margin: auto; padding: clamp(22px, 5vw, 40px); background: white; border: 1px solid #dce8df; border-radius: 24px; box-shadow: 0 16px 60px #183e1710; }
.welcome-mark { font-size: 42px; }
.welcome-eyebrow { font-weight: 750; letter-spacing: .15em; font-size: 13px; color: var(--color-primary); margin-block: 10px; }
.welcome-card h1 { font-size: clamp(28px, 6vw, 38px); line-height: 1.15; margin-bottom: 16px; }
.welcome-card > p { margin-bottom: 20px; }
.welcome-card > .btn { margin-block: 8px 14px; }
.welcome-card fieldset { border: 0; margin-block: 22px; }
.welcome-card legend { font-weight: 650; margin-bottom: 10px; }
.onboard-option { display: flex; align-items: start; gap: 12px; padding: 14px 0; line-height: 1.5; }
.onboard-option input { margin-top: 6px; }
.onboard-counts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
#local-login { border-top: 1px solid var(--color-border); padding-top: 20px; }
#local-login .btn { margin-top: 12px; }
.modal-body { min-width: 0; overflow-x: hidden; }
.modal-body .form-control { min-width: 0; max-width: 100%; }
@media(max-width:767px) {
  body.shopping-search { --header-height: 40px; --bottom-nav-h: 0px; }
  body.shopping-search .bottom-nav { display: none; }
  body.shopping-search .app-header { height: 40px; min-height: 40px; }
  body.shopping-search #app-content { padding-bottom: 8px; }
}
