/* ================================================================
   TB DISTRIBUTION — Design System v2
   Dark-first · Mobile-first · iPhone X safe-area
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500&display=swap');

/* ── Design tokens — dark (default) ──────────────────────────── */
:root {
  /* Preserved fixed colors for JS mode detection */
  --purple:       rgb(140, 83, 255);
  --blue:         rgb(0, 123, 255);

  /* TBv2 surfaces */
  --bg:           #10131c;
  --surf:         #181c29;
  --surf2:        #1e2336;
  --surf3:        #242c42;
  --glass:        rgba(30,35,54,0.95);

  /* Borders */
  --brd:          #2a3550;
  --brd-soft:     #1a2038;

  /* Text */
  --tx:           #dde4f0;
  --tx-soft:      #7e95b8;
  --tx-mute:      #3d506c;

  /* Status */
  --green:        #22c55e;
  --green-bg:     rgba(34,197,94,0.1);
  --amber:        #f59e0b;
  --amber-bg:     rgba(245,158,11,0.1);
  --red:          #ef4444;
  --red-bg:       rgba(239,68,68,0.1);
  --blue-a:       #60a5fa;
  --blue-bg:      rgba(96,165,250,0.1);
  --indigo:       #818cf8;
  --indigo-bg:    rgba(129,140,248,0.12);

  /* Spiral cell states */
  --cell-ok:      #1c2a44;
  --cell-ok-brd:  #2d4878;
  --cell-low:     #162040;
  --cell-low-brd: #2563eb;
  --cell-med:     #2d1f08;
  --cell-med-brd: #b45309;
  --cell-crit:    #2d0e0e;
  --cell-crit-brd:#dc2626;
  --cell-empty:   #0c0f1a;
  --cell-empty-brd:#1a2040;

  /* Compat aliases — existing code uses these names */
  --card:         var(--surf);
  --border:       var(--brd);
  --text:         var(--tx);
  --text-2:       var(--tx-soft);
  --text-3:       var(--tx-mute);
  --purple-light: var(--indigo-bg);
  --blue-light:   var(--blue-bg);
  --green-light:  var(--green-bg);
  --red-light:    var(--red-bg);
  --shadow:       0 1px 4px rgba(0,0,0,.35), 0 4px 16px rgba(0,0,0,.3);
  --shadow-sm:    0 1px 3px rgba(0,0,0,.25);

  /* Tokens */
  --radius:       10px;
  --r-sm:         6px;
  --r-md:         10px;
  --r-lg:         16px;
  --mono:         "IBM Plex Mono", ui-monospace, monospace;
  --serif:        system-ui;
  --sans:         -apple-system, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --ease:         cubic-bezier(.4,0,.2,1);
}

/* ── Light theme ──────────────────────────────────────────────── */
[data-theme="light"] {
  --bg:           #f7f4ef;
  --surf:         #ffffff;
  --surf2:        #f2ede5;
  --surf3:        #e8e2d8;
  --glass:        rgba(247,244,239,0.96);
  --brd:          #d4cdc2;
  --brd-soft:     #e4ddd4;
  --tx:           #18140e;
  --tx-soft:      #6b6058;
  --tx-mute:      #a09888;
  --green:        #15803d;
  --green-bg:     rgba(21,128,61,0.08);
  --amber:        #b45309;
  --amber-bg:     rgba(180,83,9,0.10);
  --red:          #b91c1c;
  --red-bg:       rgba(185,28,28,0.08);
  --blue-a:       #1d4ed8;
  --blue-bg:      rgba(29,78,216,0.08);
  --indigo:       #4338ca;
  --indigo-bg:    rgba(67,56,202,0.10);
  --cell-ok:      #dbeafe;
  --cell-ok-brd:  #93c5fd;
  --cell-low:     #bfdbfe;
  --cell-low-brd: #3b82f6;
  --cell-med:     #fde68a;
  --cell-med-brd: #d97706;
  --cell-crit:    #fecaca;
  --cell-crit-brd:#dc2626;
  --cell-empty:   #ede8e0;
  --cell-empty-brd:#d4cdc2;
  --serif:        "Fraunces", "Times New Roman", serif;
  --shadow:       0 1px 3px rgba(0,0,0,.07), 0 4px 14px rgba(0,0,0,.05);
  --shadow-sm:    0 1px 2px rgba(0,0,0,.06);
}

/* ── Reset ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

/* Smooth theme transitions (not on buttons/SVG to avoid flicker) */
html, body, div, span, p, h1, h2, h3, h4, ul, li, input, select, textarea {
  transition: background-color .2s ease, border-color .2s ease, color .15s ease;
}

/* ── Base ─────────────────────────────────────────────────────── */
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--tx);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  min-height: 100dvh;
}

/* ── OLD HEADER — hidden, replaced by sidebar / bottom-nav ───── */
.header { display: none !important; }

/* ── App shell ────────────────────────────────────────────────── */
.app-shell {
  display: flex;
  height: 100dvh;
  overflow: hidden;
  position: relative;
}

/* ── Sidebar (desktop only ≥ 768px) ──────────────────────────── */
.tbv2-sidebar {
  display: none;
}

@media (min-width: 768px) {
  .app-shell {
    flex-direction: row;
  }

  .tbv2-sidebar {
    display: flex;
    flex-direction: column;
    width: 200px;
    flex-shrink: 0;
    background: var(--surf);
    border-right: 1px solid var(--brd-soft);
    height: 100%;
    overflow-y: auto;
    position: sticky;
    top: 0;
  }

  .tbv2-bottom-nav { display: none !important; }
}

.tbs-header {
  padding: 20px 16px 16px;
  border-bottom: 1px solid var(--brd-soft);
}
.tbs-brand-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--tx-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.tbs-brand {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--tx);
}

.tbs-nav {
  flex: 1;
  padding: 8px 0;
}

.tbs-item {
  width: 100%;
  background: transparent;
  border: none;
  padding: 10px 16px;
  text-align: left;
  cursor: pointer;
  color: var(--tx-mute);
  font-size: 13px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  font-family: var(--sans);
}
.tbs-item:hover { background: var(--surf2); color: var(--tx-soft); }
.tbs-item.active {
  background: var(--surf2);
  color: var(--tx);
  font-weight: 600;
}
.tbs-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--indigo);
  border-radius: 0 2px 2px 0;
}
.tbs-icon {
  font-family: var(--mono);
  font-size: 14px;
  color: inherit;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}
.tbs-item.active .tbs-icon { color: var(--indigo); }
.tbs-badge {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--amber);
  background: var(--amber-bg);
  padding: 1px 5px;
  border-radius: 3px;
}

.tbs-footer {
  border-top: 1px solid var(--brd-soft);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tbs-theme-btn {
  width: 100%;
  background: var(--surf2);
  border: 1px solid var(--brd);
  border-radius: var(--r-sm);
  padding: 8px 10px;
  font-size: 12px;
  color: var(--tx-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  text-align: left;
}
.tbs-user {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tbs-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.tbs-user-name { font-size: 12px; font-weight: 500; color: var(--tx); }
.tbs-user-role { font-family: var(--mono); font-size: 10px; color: var(--tx-mute); }

/* ── Main content area ────────────────────────────────────────── */
.tbv2-main {
  flex: 1;
  overflow-y: auto;
  height: 100%;
  position: relative;  /* contain the absolute machine-picker overlay */
  /* safe area top on mobile (no header) */
  padding-top: env(safe-area-inset-top, 0px);
  /* bottom space for bottom-nav on mobile */
  padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 768px) {
  .tbv2-main { padding-bottom: 0; padding-top: 0; }
}

/* ── Bottom nav (mobile only) ─────────────────────────────────── */
.tbv2-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--brd-soft);
  display: flex;
  padding-bottom: env(safe-area-inset-bottom, 8px);
  padding-top: 4px;
  z-index: 100;
}

.bnav-item {
  flex: 1;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 0 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--tx-mute);
  position: relative;
  -webkit-tap-highlight-color: transparent;
  font-family: var(--sans);
}
.bnav-item.active { color: var(--indigo); }
.bnav-item .bnav-label {
  font-size: 9px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.bnav-item .bnav-badge {
  position: absolute;
  top: 2px;
  right: 18%;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  background: var(--amber);
  color: #000;
  font-size: 9px;
  font-family: var(--mono);
  font-weight: 600;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bnav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--indigo);
  border-radius: 1px;
}

/* ── Machine picker overlay ───────────────────────────────────── */
#machine-picker-overlay {
  position: absolute;
  inset: 0;
  background: var(--bg);
  z-index: 50;
  overflow-y: auto;
  padding-bottom: 80px;
}

.mpo-header {
  padding: 16px 16px 12px;
}
.mpo-sub {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--tx-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.mpo-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--tx);
  margin-bottom: 4px;
}
.mpo-desc {
  font-size: 13px;
  color: var(--tx-soft);
}
.mpo-divider {
  height: 1px;
  background: var(--brd-soft);
  margin: 0 16px 12px;
}
.mpo-list {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mpo-machine {
  width: 100%;
  background: var(--surf);
  border: 1px solid var(--brd-soft);
  border-radius: var(--r-md);
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
}
.mpo-machine:hover { border-color: var(--brd); background: var(--surf2); }
.mpo-machine.alert-machine { border-color: var(--amber); }
.mpo-mname {
  font-size: 14px;
  font-weight: 500;
  color: var(--tx);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mpo-mid {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--tx-mute);
  margin-top: 3px;
}
.mpo-minfo { flex: 1; min-width: 0; }
.mpo-alert-badge {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber);
  flex-shrink: 0;
}

/* Status dot (used in machine picker + machine header) */
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot.online  { background: var(--green); box-shadow: 0 0 0 3px rgba(34,197,94,.15); }
.status-dot.offline { background: var(--red);   box-shadow: 0 0 0 3px rgba(239,68,68,.15); }
.status-dot.unknown { background: var(--amber);  box-shadow: 0 0 0 3px rgba(245,158,11,.15); }

/* ── Machine header bar (remplissage/monnayeur with machine selected) */
.machine-context-header {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--brd-soft);
  background: var(--surf);
  flex-shrink: 0;
}
.mch-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.mch-name {
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--tx);
}
.mch-id {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--tx-mute);
  margin-top: 1px;
}
.mch-change-btn {
  background: var(--surf2);
  border: 1px solid var(--brd);
  border-radius: var(--r-sm);
  padding: 5px 10px;
  font-size: 11px;
  color: var(--tx-soft);
  cursor: pointer;
  font-family: var(--mono);
  flex-shrink: 0;
  margin-left: 8px;
}

/* ── Container / grid (existing) ─────────────────────────────── */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 14px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}
@media (min-width: 600px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); } }

/* ── Cards ────────────────────────────────────────────────────── */
.card {
  background: var(--surf);
  padding: 16px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  border: 1px solid var(--brd-soft);
  color: var(--tx);
}
.card.selected {
  background: var(--surf2);
  border: 2px solid var(--indigo);
  box-shadow: 0 0 0 4px var(--indigo-bg);
}

/* ── Stats ────────────────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 600px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.stat-card {
  background: var(--surf);
  padding: 14px 12px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--brd-soft);
  text-align: center;
}
.stat-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--indigo);
  line-height: 1;
  margin-bottom: 5px;
  font-family: var(--mono);
  letter-spacing: -0.02em;
}
.stat-label {
  color: var(--tx-soft);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Machine list (new TBv2 design) ──────────────────────────── */
.machine-list { display: grid; gap: 8px; }

.machine-item {
  background: var(--surf);
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--brd-soft);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: none;
}
.machine-item:hover { border-color: var(--brd); background: var(--surf2); }
.machine-item.alert-item { border-color: var(--amber); border-left: 3px solid var(--amber); }
.machine-item.offline    { border-left: 1px solid var(--brd-soft); }

.machine-info { flex: 1; min-width: 0; }
.machine-info h3 {
  font-size: 14px;
  font-weight: 500;
  color: var(--tx);
  margin: 0 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.machine-info p {
  color: var(--tx-soft);
  font-size: 11px;
  line-height: 1.4;
  margin: 0;
}
.machine-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.machine-ca {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--tx);
  flex-shrink: 0;
}
.machine-stock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.stock-bar-track {
  flex: 1;
  height: 3px;
  background: var(--surf3);
  border-radius: 2px;
  overflow: hidden;
}
.stock-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width .3s ease;
}
.stock-bar-pct {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--tx-soft);
  min-width: 28px;
  text-align: right;
}
.machine-alert-badge {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--amber);
  background: var(--amber-bg);
  padding: 1px 6px;
  border-radius: 3px;
}

/* Legacy status badge (kept for compat) */
.status-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: var(--mono);
}
.status-online  { background: var(--green-bg); color: var(--green); border: 1px solid var(--green); }
.status-offline { background: var(--red-bg);   color: var(--red);   border: 1px solid var(--red); }

/* ── Section titres — CRITICAL: colors must stay for JS mode detection ── */
.titre {
  background-color: rgb(140, 83, 255);  /* purple — checked by getComputedStyle() in app-init.js */
  color: white;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .3px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}
.titre:active { filter: brightness(.9); }

/* ── Selections container ─────────────────────────────────────── */
#selections-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 14px;
}
@media (min-width: 640px)  { #selections-container { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { #selections-container { grid-template-columns: repeat(3, 1fr); } }

#selections-container > button {
  grid-column: 1 / -1;
  min-height: 48px;
  border-radius: 10px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#selections-container > button:active { opacity: .82; transform: scale(.98); }

#selections-container > div:first-of-type {
  grid-column: 1 / -1;
  background: var(--surf);
  border-radius: 10px;
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--brd-soft);
  color: var(--tx);
}

#cb-partiel {
  width: 18px;
  height: 18px;
  accent-color: var(--indigo);
  cursor: pointer;
  flex-shrink: 0;
}

/* ── Spiral card ──────────────────────────────────────────────── */
.selection.grid { display: block !important; grid-template-columns: unset !important; }
.selection-pleine-cachee { display: none !important; }

.selection {
  position: relative;
  padding: 14px 14px 0 !important;
  border-radius: var(--r-md) !important;
  overflow: hidden;
  border: 1.5px solid var(--brd-soft) !important;
  box-shadow: var(--shadow) !important;
  background: var(--surf) !important;
  color: var(--tx) !important;
}
.selection::after {
  content: '';
  display: block;
  height: 3px;
  margin: 0 -14px;
  background: linear-gradient(90deg, var(--green), #34d399);
  opacity: .6;
}
.selection.selection-pleine::after { background: var(--brd); opacity: 1; }

/* ── Product name ─────────────────────────────────────────────── */
.nom {
  font-size: 15px;
  font-weight: 700;
  color: var(--tx);
  padding-right: 68px;
  margin-bottom: 10px;
  line-height: 1.35;
}

/* ── Stock zone + buttons ─────────────────────────────────────── */
.stock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-bottom: 12px;
  font-size: 13px;
  color: var(--tx-soft);
  font-weight: 500;
}

.stock-input {
  width: 58px;
  padding: 6px 4px;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  border: 2px solid var(--brd);
  border-radius: 9px;
  color: var(--indigo);
  background: var(--surf2);
  -moz-appearance: textfield;
  -webkit-appearance: none;
  appearance: none;
}
.stock-input::-webkit-outer-spin-button,
.stock-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stock-input:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px var(--indigo-bg);
}

.stock button {
  flex: 1 1 auto;
  min-height: 40px;
  min-width: 60px;
  padding: 8px 10px;
  border: none;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  white-space: nowrap;
}
.stock button:active { opacity: .72; transform: scale(.95); }
.stock button:nth-of-type(1) { background: var(--indigo-bg); color: var(--indigo); }
.stock button:nth-of-type(2) { background: var(--surf2); color: var(--tx-soft); }
.stock button:nth-of-type(3) { background: var(--blue-bg); color: var(--blue-a); }

/* ── Low-stock badge ──────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--red-bg);
  color: var(--red);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  position: absolute;
  top: 12px;
  right: 12px;
  white-space: nowrap;
}

/* ── Lot panel ────────────────────────────────────────────────── */
.lot-panel {
  border-top: 1px solid var(--brd-soft) !important;
  padding: 12px 0 8px !important;
  margin: 0 -14px;
  padding-left: 14px !important;
  padding-right: 14px !important;
  background: var(--surf) !important;
  color: var(--tx);
}

/* ── Utilities ────────────────────────────────────────────────── */
.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}
.form-group { margin-bottom: 15px; }
.log-entry {
  font-size: 13px;
  padding: 4px 0;
  border-bottom: 1px solid var(--brd-soft);
  color: var(--tx-soft);
}

/* ── Lists ────────────────────────────────────────────────────── */
ul { padding-left: 18px; margin: 0; }
li { margin-bottom: 4px; font-size: 14px; color: var(--tx-soft); }

/* ── Scrollbars ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-thumb { background: var(--surf3); border-radius: 2px; }

/* ── Pulse animation (for critical alerts) ───────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
.anim-pulse { animation: pulse 2s ease-in-out infinite; }

/* ── Misc ─────────────────────────────────────────────────────── */
.mono { font-family: var(--mono); }
.tx-soft { color: var(--tx-soft); }
.tx-mute { color: var(--tx-mute); }

/* ── Admin FAB — moved up from inline style ───────────────────── */
#admin-fab { z-index: 200 !important; }

/* ── Push banner ──────────────────────────────────────────────── */
#push-banner {
  background: var(--indigo) !important;
  bottom: calc(70px + env(safe-area-inset-bottom, 0px)) !important;
}
@media (min-width: 768px) {
  #push-banner { bottom: 20px !important; }
}
