/* =========================================================================
   Restaurant Booking Site — shared stylesheet.

   The palette defaults to the main Campus Eats app (Orioles orange / black)
   and every accent is driven by the --brand* variables that theme.js writes
   from config.js / the server configuration.
   ========================================================================= */
:root {
  --brand: #FC4C02;
  --brand-dark: #C93B02;
  --brand-soft: #FFF1EA;
  --yellow: #DF4601;
  --ink: #111827;
  --ink-soft: #2B2B2B;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f6f7f9;
  --ok: #16a34a;
  --ok-soft: #e8f7ee;
  --warn: #b45309;
  --warn-soft: #fff7e6;
  --err: #dc2626;
  --err-soft: #fdecec;
  --radius: 16px;
  --shadow: 0 10px 25px -12px rgba(17, 24, 39, .25);
}

* { box-sizing: border-box; }
/* Author `display` rules must not defeat the hidden attribute. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; display: block; }

/* ------------------------------------------------------------- top bar -- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: linear-gradient(120deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: 0 8px 24px -14px rgba(0,0,0,.6);
}
.topbar-inner {
  max-width: 1180px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo {
  width: 40px; height: 40px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35);
  flex: 0 0 auto;
}
.brand-name { display: block; font-weight: 800; font-size: 1.05rem; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand small { display: block; font-size: .72rem; color: rgba(255,255,255,.82); }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  padding: 8px 10px; border-radius: 10px; font-size: .86rem; font-weight: 700;
  color: rgba(255,255,255,.9); transition: background .18s, color .18s;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav a:hover { background: rgba(255,255,255,.16); color: #fff; }
.nav a.active { background: #fff; color: var(--brand); }
.badge {
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: #fff; color: var(--brand); font-size: .7rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.nav a.active .badge { background: var(--brand); color: #fff; }

/* --------------------------------------------------------------- layout -- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 22px 16px 110px; }
h1 { font-size: 1.6rem; line-height: 1.2; margin: 0 0 6px; font-weight: 900; letter-spacing: -.02em; }
h2 { font-size: 1.15rem; margin: 0 0 12px; font-weight: 800; }
.sub { color: var(--muted); margin: 0 0 18px; font-size: .95rem; }
.hint { color: var(--muted); font-size: .78rem; margin-top: 4px; }
.req { color: var(--err); }
.footer {
  max-width: 1180px; margin: 0 auto; padding: 20px 16px 30px;
  color: #94a3b8; font-size: .78rem; text-align: center;
}
.cols { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 900px) { .cols { grid-template-columns: 1.35fr .9fr; align-items: start; } }

/* ---------------------------------------------------------------- cards -- */
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
}
.panel h2 { display: flex; align-items: center; gap: 8px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
/* Two columns on phones (a menu should fit a screen), fluid above 700px. */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; } }

/* Grouped menu (the "All" view): one section per category. */
.menu-groups { display: block; }
.menu-group + .menu-group { margin-top: 24px; }
.group-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 1rem; font-weight: 900; margin: 0 0 10px;
  padding-bottom: 6px; border-bottom: 2px solid var(--brand-soft);
}
.menu-groups.filtered .group-title { display: none; }
.group-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-dark);
  font-size: .7rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.card-body { padding: 11px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
@media (min-width: 700px) { .card-body { padding: 14px; gap: 8px; } }
.card h3 { margin: 0; font-size: .88rem; font-weight: 800; line-height: 1.25; }
@media (min-width: 700px) { .card h3 { font-size: 1rem; } }
.desc { color: var(--muted); font-size: .84rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { color: var(--brand); font-weight: 900; font-size: 1.05rem; }
.thumb {
  height: 118px; background-size: cover; background-position: center;
  position: relative; background-color: var(--brand-soft);
}
@media (min-width: 700px) { .thumb { height: 140px; } }
.thumb .cat, .thumb .stock {
  position: absolute; top: 8px; padding: 3px 7px; border-radius: 999px;
  font-size: .62rem; font-weight: 800; background: rgba(255,255,255,.94);
}
@media (min-width: 700px) {
  .thumb .cat, .thumb .stock { top: 10px; padding: 4px 9px; font-size: .68rem; }
}
.thumb .cat { left: 10px; color: var(--ink-soft); max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thumb .stock { right: 10px; }
.stock.in { color: var(--ok); }
.stock.out { color: var(--err); }

/* --------------------------------------------------------------- forms -- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #6b7280; margin-bottom: 6px; }
input[type=text], input[type=tel], input[type=password], input[type=number],
input[type=date], input[type=time], input[type=datetime-local], select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #d1d5db; border-radius: 11px;
  background: #fff; color: var(--ink); outline: none; transition: border .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}
textarea { resize: vertical; min-height: 84px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.checkline { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #f9fafb; }
.checkline input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--brand); }
.checkline strong { display: block; font-size: .9rem; }
.checkline span { color: var(--muted); font-size: .78rem; }

/* ------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 16px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 800; font-size: .9rem; cursor: pointer; transition: transform .12s, background .18s, box-shadow .18s;
  text-align: center;
}
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--brand); color: #fff; box-shadow: 0 10px 20px -12px rgba(0,0,0,.5); }
.btn.primary:hover { background: var(--brand-dark); }
.btn.dark { background: var(--ink-soft); color: #fff; }
.btn.dark:hover { background: #000; }
.btn.ghost { background: #fff; border-color: var(--line); color: var(--ink-soft); }
.btn.ghost:hover { background: #f3f4f6; }
.btn.danger { background: var(--err-soft); color: var(--err); border-color: #f6caca; }
.btn.danger:hover { background: #fbdcdc; }
.btn.ok { background: var(--ok-soft); color: var(--ok); border-color: #bfe8cd; }
.btn.ok:hover { background: #d9f3e3; }
.btn.sm { padding: 7px 11px; font-size: .78rem; border-radius: 9px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btnrow { display: flex; flex-wrap: wrap; gap: 8px; }

/* --------------------------------------------------------------- chips -- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; }
.chip {
  flex: 0 0 auto; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-soft); font-weight: 700; font-size: .82rem; cursor: pointer;
}
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* --------------------------------------------------------------- cart --- */
.addrow { display: flex; gap: 6px; margin-top: auto; }
.addrow .qty { width: 56px; padding: 8px 4px; text-align: center; font-size: .85rem; }
.addrow .btn { padding: 9px 6px; font-size: .8rem; }
@media (min-width: 700px) {
  .addrow { gap: 8px; }
  .addrow .qty { width: 72px; padding: 9px 8px; }
  .addrow .btn { padding: 11px 16px; font-size: .9rem; }
}
/* Long label on wide screens, "Add" on phones. */
.lbl-short { display: inline; }
.lbl-full { display: none; }
@media (min-width: 700px) {
  .lbl-short { display: none; }
  .lbl-full { display: inline; }
}
.cart-line {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.cart-line:last-child { border-bottom: 0; }
.cart-line .cl-main { flex: 1; min-width: 0; }
.cart-line .cl-name { font-weight: 800; font-size: .95rem; }
.cart-line .cl-meta { color: var(--muted); font-size: .78rem; }
.qtyctl { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; }
.qtyctl button {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; font-weight: 900; cursor: pointer; color: var(--ink-soft);
}
.qtyctl button:hover { border-color: var(--brand); color: var(--brand); }
.qtyctl .n { min-width: 28px; text-align: center; font-weight: 800; font-size: .9rem; }
.totals { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.tc-title { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.totals .row { display: flex; justify-content: space-between; padding: 6px 0; font-size: .9rem; color: var(--ink-soft); }
.totals .grand { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; font-weight: 900; font-size: 1.05rem; }
.totals .grand strong { color: var(--brand); }

/* ---------------------------------------------------------- payment ---- */
.payment-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .payment-cards { grid-template-columns: 1fr; } }
.pay-card {
  display: block; border: 2px solid var(--line); border-radius: 13px; padding: 12px;
  cursor: pointer; background: #fff; transition: border .15s, background .15s;
}
.pay-card input { display: none; }
.pay-card .p-title { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: .88rem; }
.pay-card .p-sub { color: var(--muted); font-size: .76rem; margin-top: 4px; }
.pay-card.sel { border-color: var(--brand); background: var(--brand-soft); }

/* ------------------------------------------------------------- tables -- */
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .86rem; min-width: 720px; }
thead th {
  text-align: left; padding: 10px 12px; background: #f9fafb; color: var(--muted);
  font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; font-weight: 800;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
tbody td { padding: 12px; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcfcfd; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .84rem; }
.code-pill {
  display: inline-flex; align-items: center; gap: 8px; background: #f3f4f6;
  border: 1px solid var(--line); border-radius: 9px; padding: 5px 9px;
}
.code-pill code { font-family: ui-monospace, Menlo, monospace; font-weight: 700; font-size: .84rem; }
.iconbtn {
  border: 0; background: transparent; color: #9ca3af; cursor: pointer;
  width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
}
.iconbtn:hover { color: var(--brand); background: var(--brand-soft); }

/* ------------------------------------------------------------ statuses -- */
.pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px;
  border-radius: 999px; font-size: .72rem; font-weight: 800; white-space: nowrap;
}
.pill.pending { background: var(--warn-soft); color: var(--warn); }
.pill.completed { background: var(--ok-soft); color: var(--ok); }
.pill.refused { background: var(--err-soft); color: var(--err); }
.pill.cancelled { background: #f1f5f9; color: #64748b; }

/* --------------------------------------------------------------- stats -- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); }
.stat .n { font-size: 1.6rem; font-weight: 900; line-height: 1.1; }
.stat .l { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; }
.stat.brand { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); border-color: var(--brand-dark); color: #fff; }
.stat.brand .l { color: rgba(255,255,255,.8); }

/* -------------------------------------------------------------- states -- */
.empty, .loading {
  text-align: center; padding: 44px 18px; color: var(--muted);
}
.empty .big, .loading .big { color: #cbd5e1; margin-bottom: 10px; }
.spinner {
  width: 26px; height: 26px; border-radius: 50%; display: inline-block;
  border: 3px solid #e5e7eb; border-top-color: var(--brand);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.banner {
  padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; font-size: .88rem; font-weight: 600;
}
.banner.warn { background: var(--warn-soft); color: var(--warn); border: 1px solid #f3dcb4; }
.banner.ok { background: var(--ok-soft); color: var(--ok); border: 1px solid #bfe8cd; }
.banner.err { background: var(--err-soft); color: var(--err); border: 1px solid #f6caca; }

/* --------------------------------------------------------------- toast -- */
#toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: var(--ink-soft); color: #fff; padding: 12px 18px; border-radius: 12px;
  font-size: .88rem; font-weight: 700; box-shadow: 0 18px 40px -18px rgba(0,0,0,.7);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 90;
  max-width: min(92vw, 480px); text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.err { background: var(--err); }
#toast.ok { background: var(--ok); }

/* ------------------------------------------------------- floating cart -- */
.float-checkout {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  background: linear-gradient(120deg, var(--brand), var(--brand-dark)); color: #fff;
  border-radius: 999px; padding: 12px 18px; display: none; align-items: center; gap: 12px;
  font-weight: 800; box-shadow: 0 20px 40px -16px rgba(0,0,0,.55); cursor: pointer; z-index: 60;
}
.float-checkout.show { display: inline-flex; }
.float-checkout .f-total { background: rgba(255,255,255,.2); padding: 4px 10px; border-radius: 999px; font-size: .85rem; }
.float-checkout .f-count { background: #fff; color: var(--brand); min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; font-size: .75rem; display: inline-flex; align-items: center; justify-content: center; }

/* ---------------------------------------------------------- manager ----- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 16px; }
.toolbar .field { margin: 0; min-width: 150px; }
.toolbar .grow { flex: 1; min-width: 200px; }
.split { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 1000px) { .split { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.items-mini { margin: 6px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .78rem; }
.items-mini li { padding: 1px 0; }
.refusal { color: var(--err); font-size: .78rem; margin-top: 4px; }
.signed-in {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 25%, #fff);
  border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; font-size: .85rem;
}
.signed-in strong { color: var(--brand-dark); }
.auth-panel { max-width: 430px; margin: 8vh auto 0; }
.who { color: var(--muted); font-size: .8rem; }

/* ------------------------------------------------------ contact cell --- */
/* The customer's phone number in the manager table: always visible, tappable
   on a phone, with explicit Call / WhatsApp actions. */
.contact-line { margin-top: 4px; }
.contact-phone {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--brand-dark); font-weight: 800; font-size: .9rem;
  padding: 4px 8px; border-radius: 9px; background: var(--brand-soft);
  text-decoration: underline; text-underline-offset: 2px;
}
.contact-phone:hover { background: color-mix(in srgb, var(--brand) 18%, #fff); }
.contact-phone svg { width: 15px; height: 15px; flex: 0 0 auto; }
.contact-phone span { white-space: nowrap; }
.contact-actions { margin-top: 6px; flex-wrap: nowrap; }
.contact-actions .btn { white-space: nowrap; }
.contact-actions .btn svg { width: 15px; height: 15px; }

/* ------------------------------------------------------- bottom nav ----- */
/* Phones navigate from the bottom (thumb reach); the top links are hidden. */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: flex; align-items: stretch;
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px -18px rgba(0,0,0,.5);
  padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px));
}
.bottomnav a, .bottomnav button {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 7px 2px 5px; border: 0; background: transparent; cursor: pointer;
  color: var(--muted); font-size: .64rem; font-weight: 800; line-height: 1.1;
  border-radius: 10px; position: relative;
}
.bottomnav a:active, .bottomnav button:active { background: var(--brand-soft); }
.bottomnav a.active, .bottomnav button.active { color: var(--brand); }
.bottomnav a.active::before, .bottomnav button.active::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand);
}
.bottomnav svg { width: 21px; height: 21px; }
.bottomnav .bn-badge {
  position: absolute; top: 2px; right: calc(50% - 20px);
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: .6rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.bottomnav .bn-badge:empty { display: none; }

/* The bottom bar only exists on small screens. */
@media (min-width: 700px) { .bottomnav { display: none; } }
@media (max-width: 699px) {
  .nav { display: none; }
  .topbar-inner { padding: 10px 12px; }
  .logo { width: 34px; height: 34px; border-radius: 10px; }
  .brand-name { font-size: .98rem; }
  .wrap { padding: 16px 12px calc(96px + env(safe-area-inset-bottom, 0px)); }
  .footer { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  h1 { font-size: 1.32rem; }
  .float-checkout { bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }
  #toast { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
}

/* --------------------------------------------------------- services ----- */
.install-card-top { display: flex; align-items: center; gap: 12px; }
.install-icon {
  width: 46px; height: 46px; flex: 0 0 auto; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand-dark);
}
.install-copy { min-width: 0; }
.install-copy strong { display: block; font-size: 1rem; }
.install-copy span { color: var(--muted); font-size: .82rem; }

.code-list { display: grid; gap: 12px; }
.code-card {
  border: 1px solid var(--line); border-radius: 14px; padding: 14px;
  background: #fcfcfd;
}
.cc-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-start; }
.cc-merchant { min-width: 0; flex: 1 1 170px; }
.cc-merchant strong { display: block; font-size: 1rem; font-weight: 900; }
.cc-code { flex: 0 0 auto; }
.cc-label {
  display: block; font-size: .64rem; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 3px;
}
.cc-account {
  margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line);
}
.cc-account strong { display: block; font-size: .95rem; font-weight: 800; }
.cc-notes { margin: 8px 0 0; }
@media (max-width: 420px) {
  .cc-code { flex-basis: 100%; }
}

/* ---------------------------------------------------------- install ----- */
.install-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.16); color: #fff; font-size: .78rem; font-weight: 800;
  cursor: pointer; white-space: nowrap;
}
.install-btn:hover { background: rgba(255,255,255,.28); }
.install-btn svg { width: 16px; height: 16px; }
@media (max-width: 699px) { .install-btn.topbar-install { display: none; } }

.install-banner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.install-banner .ib-text { flex: 1; min-width: 160px; }
.install-banner strong { display: block; font-size: .9rem; }
.install-banner span { color: var(--muted); font-size: .78rem; }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(17, 24, 39, .55);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal-backdrop .panel { max-width: 430px; width: 100%; }
.modal-backdrop ol { margin: 8px 0 0; padding-left: 20px; color: var(--muted); font-size: .86rem; }
.modal-backdrop ol li { margin: 4px 0; }
.modal-backdrop .btnrow { margin-top: 16px; justify-content: flex-end; }

/* --------------------------------------------------------------- misc --- */
.stack > * + * { margin-top: 16px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
