:root {
  --bg: #f1f1f1;
  --page: #e5e5e5;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --muted: #555555;
  --line: #e1e1e1;
  --line-strong: #c8c8c8;
  --accent: #2b1a12;
  --gold: #8a6918;
  --gold-bg: #f4ead0;
  --on-ink: #ffffff;
  --on-primary: #ffffff;
  --primary: #1a1a1a;
  --ok: #0b5d32;
  --ok-bg: #e6f5ec;
  --ok-border: #b7dcc5;
  --warn: #754a00;
  --warn-bg: #fff4d8;
  --warn-border: #e9cf8c;
  --danger: #8b1e1e;
  --danger-bg: #fdecec;
  --danger-border: #d9b4b4;
  --neutral-bg: #ececec;
  --current-row: #f6f6f6;
  --scrim: rgba(26, 26, 26, 0.45);
  --chart-bar: #1a1a1a;
  --chart-bar-empty: #dedede;
  --theme-color: #f1f1f1;
  --radius: 12px;
  --top-h: 56px;
  --tab-h: 64px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #161112;
  --page: #100e0f;
  --surface: #22191b;
  --ink: #f3ece6;
  --muted: #c9bbb5;
  --line: #3a2e30;
  --line-strong: #5a4a4c;
  --accent: #c9a24b;
  --gold: #e0c078;
  --gold-bg: #3a2f18;
  --on-ink: #161112;
  --on-primary: #1a1210;
  --primary: #c9a24b;
  --ok: #8ee0b0;
  --ok-bg: #1a3a28;
  --ok-border: #2e5c42;
  --warn: #f0c56e;
  --warn-bg: #3a2e14;
  --warn-border: #6a5420;
  --danger: #f3a4a4;
  --danger-bg: #3a1a1a;
  --danger-border: #6a3030;
  --neutral-bg: #2c2426;
  --current-row: #2c2224;
  --scrim: rgba(8, 6, 6, 0.65);
  --chart-bar: #e0c078;
  --chart-bar-empty: #3a2e30;
  --theme-color: #161112;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--page);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.ur {
  font-family: "Noto Nastaliq Urdu", serif;
  direction: rtl;
  unicode-bidi: isolate;
  line-height: 2.2;
  display: inline-block;
}

.shell {
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  display: flex;
  flex-direction: column;
}

.accent-bar {
  height: 3px;
  background: var(--accent);
  flex-shrink: 0;
}

.topbar {
  height: var(--top-h);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 8px 0 12px;
  gap: 6px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.switcher-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: 44px;
  flex: 1;
  text-align: left;
  border-radius: 8px;
  padding: 4px 8px 4px 2px;
}

.mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--on-ink);
  background: var(--accent);
  flex-shrink: 0;
}

.shop-name { display: flex; flex-direction: column; min-width: 0; }
.shop-name strong {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shop-name span { font-size: 12px; color: var(--muted); }
.caret { color: var(--muted); flex-shrink: 0; }

.icon-btn {
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--ink);
  flex-shrink: 0;
}

.content {
  flex: 1;
  padding: 16px 16px calc(var(--tab-h) + 20px + env(safe-area-inset-bottom, 0px));
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.lead {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.info-pill, .trial-pill {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--warn);
  background: var(--warn-bg);
  border-radius: 999px;
  padding: 4px 10px;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  margin-top: 16px;
}

.field { display: block; margin-top: 14px; }
.field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }

input[type="password"], input[type="search"], input[type="text"], input[type="number"], select {
  width: 100%;
  min-height: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0 12px;
  background: var(--surface);
  color: var(--ink);
}

input::placeholder { color: var(--muted); }

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
  font-size: 15px;
  padding: 0 16px;
}

.btn-primary:disabled { opacity: 0.55; cursor: default; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
}

.err-msg {
  margin-top: 10px;
  color: var(--danger);
  font-size: 14px;
  font-weight: 500;
}

.ok-msg {
  margin-top: 10px;
  color: var(--ok);
  font-size: 14px;
  font-weight: 500;
}

.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

.card .label { font-size: 13px; color: var(--muted); font-weight: 500; }
.card .value {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  word-break: break-word;
}
.card .hint { margin-top: 6px; font-size: 12px; color: var(--muted); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 18px 2px 8px;
  gap: 8px;
}
.section-head h2 { font-size: 15px; font-weight: 600; }
.section-head .sub { font-size: 12px; color: var(--muted); font-weight: 500; }

.search-bar {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  align-items: center;
}
.search-bar input { flex: 1; min-width: 0; }

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0 6px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}
.chip[aria-pressed="true"] {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
}

.list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 6px;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 12px 14px;
  text-align: left;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.list .row:first-child { border-top: 0; }
a.row { display: flex; }

.row .body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.row .title {
  display: block;
  width: 100%;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}
.row .meta {
  display: block;
  width: 100%;
  font-size: 13px;
  color: var(--muted);
}
.row .right {
  text-align: right;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.row .amount { font-size: 15px; font-weight: 600; }
.chev { color: var(--muted); flex-shrink: 0; }

.pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border-radius: 999px;
  line-height: 1.2;
}
.pill.ok { color: var(--ok); background: var(--ok-bg); }
.pill.warn { color: var(--warn); background: var(--warn-bg); }
.pill.danger { color: var(--danger); background: var(--danger-bg); }
.pill.neutral { color: var(--ink); background: var(--neutral-bg); }

.empty {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
}

.tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 430px;
  min-height: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px));
  padding: 4px 6px env(safe-area-inset-bottom, 0px);
  background: var(--surface);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 15;
}
.tabbar button {
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  border-radius: 8px;
}
.tabbar button[aria-current="page"] { color: var(--ink); font-weight: 700; }

.sheet {
  position: fixed;
  inset: 0;
  background: var(--scrim);
  z-index: 30;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.sheet[hidden] { display: none; }

.sheet-panel {
  width: 100%;
  max-width: 430px;
  background: var(--surface);
  border-radius: 16px 16px 0 0;
  max-height: 88dvh;
  overflow: auto;
  padding: 8px 0 calc(16px + env(safe-area-inset-bottom, 0px));
}
.sheet-grab {
  width: 40px;
  height: 4px;
  background: var(--line-strong);
  border-radius: 4px;
  margin: 6px auto 4px;
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px 10px;
}
.sheet-head h2 { font-size: 18px; font-weight: 700; }
.close-btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 8px;
  margin-right: -8px;
}
.group-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 16px 6px;
}
.shop-row { min-height: 64px; }
.shop-row.is-current { background: var(--current-row); }

.badge {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.check { color: var(--ok); flex-shrink: 0; }

.soon-panel {
  padding: 36px 12px 24px;
  text-align: center;
}
.soon-panel .mark {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  font-size: 16px;
  margin: 0 auto 14px;
}
.soon-panel p {
  color: var(--muted);
  margin: 10px auto 0;
  max-width: 300px;
}

.detail-pad { padding: 4px 16px 12px; }
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
}
.detail-kv {
  background: var(--bg);
  border-radius: 8px;
  padding: 10px;
}
.detail-kv span { display: block; font-size: 12px; color: var(--muted); }
.detail-kv strong { display: block; font-size: 14px; margin-top: 2px; word-break: break-word; }

.hidden { display: none !important; }

/* Phase 2 additions */
textarea {
  width: 100%;
  min-height: 76px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  resize: vertical;
}
textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.page-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-compact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--danger-border);
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 14px;
  font-weight: 600;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px 0 2px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.sheet-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.sheet-section h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 8px;
}
.inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
.inline-form input, .inline-form select { flex: 1; min-width: 0; }
.inline-form button { flex-shrink: 0; }

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.timeline {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.tl-item {
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.tl-item:first-child { border-top: 0; }
.tl-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
}
.tl-title { font-weight: 600; color: var(--ink); }
.tl-time { font-size: 11px; color: var(--muted); white-space: nowrap; }
.tl-meta { font-size: 12px; color: var(--muted); word-break: break-word; }

.ledger-delta { font-size: 15px; font-weight: 700; }
.ledger-delta.plus { color: var(--ok); }
.ledger-delta.minus { color: var(--danger); }

.variant-badge {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: var(--neutral-bg);
  padding: 2px 7px;
  border-radius: 999px;
  vertical-align: middle;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 8px;
  font-size: 14px;
}
.check-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Utility classes replace inline styles so the CSP can forbid them. */
.u-mt0 { margin-top: 0 !important; }
.u-mt4 { margin-top: 4px; }
.u-mt6 { margin-top: 6px; }
.u-mt8 { margin-top: 8px; }
.u-mt10 { margin-top: 10px; }
.u-mt12 { margin-top: 12px; }
.u-small { font-size: 13px; }
.u-muted { color: var(--muted); }
.u-danger { color: var(--danger); }
.u-strong { font-weight: 600; }
.u-mx16 { margin: 0 16px; }
.u-span { grid-column: 1 / -1; }
.u-flex1 { flex: 1; }
.u-sheetnote { padding: 0 16px 6px; color: var(--muted); font-size: 13px; }
.u-rowbtn { text-align: left; width: 100%; border: 1px solid var(--line); }
.mark[data-accent="sohni-mehek"] { background: #2b1a12; }
.mark[data-accent="kings-county"] { background: #111111; }
.mark[data-accent="jmco"] { background: #3a4540; }
.mark[data-accent="potb"] { background: #16302b; }

/* Security */
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.notice-card {
  margin: 14px 0 4px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.notice-card h2 { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.notice-card p { font-size: 14px; margin-top: 4px; }
.notice-card .meta { color: var(--muted); font-size: 13px; }
.notice-card.warn { background: var(--warn-bg); border-color: var(--warn-border); }
.notice-card.ok { background: var(--ok-bg); border-color: var(--ok-border); }
.notice-card .btn-compact, .notice-card .btn-primary { align-self: flex-start; margin-top: 0; }
.notice-card .action-row { margin-top: 0; }
.plain-list { margin: 0 0 4px 20px; font-size: 14px; }
.plain-list li { padding: 3px 0; }
.btn-danger {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 48px; margin-top: 14px; border-radius: 10px;
  background: var(--surface); color: var(--danger); border: 1px solid var(--danger);
  font-weight: 600; font-size: 15px;
}
.link-btn {
  display: block; min-height: 44px; margin-top: 6px; padding: 0 4px;
  color: var(--ink); text-decoration: underline; font-size: 14px; font-weight: 500;
}
.link-as-btn { margin-top: 18px; }
.sheet-body { padding: 0 16px 8px; }
.sheet-body p { font-size: 14px; margin-top: 8px; }
.sheet-body .meta { color: var(--muted); font-size: 13px; }
.steps { margin: 10px 0 0 20px; font-size: 14px; }
.steps li { padding: 3px 0; }
.qr-wrap { display: flex; justify-content: center; padding: 8px 0; }
.qr { width: 220px; height: 220px; border: 1px solid var(--line); border-radius: 8px; background: #ffffff; }
.secret {
  margin-top: 6px; padding: 10px 12px; border-radius: 8px; background: var(--neutral-bg);
  font-size: 15px; letter-spacing: 0.04em; word-break: break-all; user-select: all;
}
.codes {
  margin: 12px 0 0; padding: 12px 12px 12px 36px; border-radius: 8px; background: var(--neutral-bg);
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: 15px;
}
.check-row { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 10px; font-size: 14px; font-weight: 500; }
.check-row input { width: 22px; height: 22px; }
.stepup {
  position: fixed; inset: 0; z-index: 50; background: rgba(26, 26, 26, 0.55);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.stepup[hidden] { display: none; }
.stepup-card {
  width: 100%; max-width: 380px; background: var(--surface); border-radius: 14px; padding: 18px 16px 12px;
}
.stepup-card h2 { font-size: 18px; font-weight: 700; }
.stepup-card .meta { color: var(--muted); font-size: 13px; margin-top: 6px; }
.stepup-card .action-row { display: flex; gap: 10px; margin-top: 14px; }
.stepup-card .action-row > * { flex: 1; margin-top: 0; min-height: 48px; }
.activity-row .title .mono { font-size: 13px; font-weight: 500; color: var(--muted); }
.activity-row .diff { font-size: 12px; word-break: break-word; }
.export-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 4px; }
.export-row .meta { color: var(--muted); font-size: 13px; }

/* Phase 3 Reports & Packing slip */
.date-range-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 4px; }
.date-range-form .field { min-width: 0; }
.date-range-form input[type="date"] {
  width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line-strong);
  border-radius: 10px; background: var(--surface);
}
.date-range-form .btn-secondary { min-height: 44px; grid-column: 1 / -1; width: 100%; }
.chart-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 12px 10px;
}
.bar-chart { width: 100%; height: 108px; display: block; }
.chart-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--muted); }
.funnel-row .body { width: 100%; }
.funnel-bar { width: 100%; height: 6px; margin-top: 6px; display: block; }
.slip-head { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.slip-id { text-align: right; }
.slip-box { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.slip-box .meta { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.slip-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
.slip-table th, .slip-table td { text-align: left; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.slip-table th { font-size: 12px; color: var(--muted); font-weight: 600; }
.slip-table .num { text-align: right; white-space: nowrap; }
.slip-table td .meta { font-size: 11px; color: var(--muted); }

@media print {
  .topbar, .tabbar, .content, .accent-bar, .no-print, .stepup { display: none !important; }
  .sheet { position: static; background: none; display: block; }
  .sheet-panel { max-height: none; max-width: none; box-shadow: none; }
}

/* Web Push alerts row */
.row .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.row .actions .btn-primary, .row .actions .btn-secondary { width: auto; padding: 10px 14px; }

.app-wordmark {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 42%;
  margin-left: auto;
  padding: 0 8px;
  flex-shrink: 1;
  min-width: 0;
  text-align: right;
}

.sound-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.sound-opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
}
.sound-opt.is-on {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--ink);
}

/* ---------- accounts, alerts, passkeys (family.js) ---------- */
.fb-switch { position: relative; flex-shrink: 0; width: 46px; height: 28px; border-radius: 999px; border: 0; background: var(--line-strong); padding: 0; cursor: pointer; display: inline-block; transition: background .15s; }
.fb-switch > span { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: transform .15s; }
.fb-switch.is-on { background: var(--ok); }
.fb-switch.is-on > span { transform: translateX(18px); }
.fb-switch:disabled { opacity: .5; cursor: default; }
.fb-switch-row { width: 100%; text-align: left; }
.fb-switch-row .fb-switch { pointer-events: none; }
.fb-type .actions { margin-top: 8px; }
.fb-testpill { margin-right: 4px; }
.fb-event.fb-test { background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(255, 190, 60, .09) 10px 20px); }
.fb-bad .title { color: var(--danger); }
.fb-perms { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.fb-link { word-break: break-all; font-size: 12px; background: var(--neutral-bg); padding: 10px; border-radius: 10px; margin: 8px 0; user-select: all; }
.fb-invite .action-row { flex-wrap: wrap; gap: 8px; }
.fb-invite .action-row > * { flex: 1 1 140px; text-align: center; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
.fb-note { margin-top: 16px; }
.fb-ok { color: var(--ok); }
.fb-face { margin-top: 10px; }
.fb-filters { display: grid; gap: 0 12px; grid-template-columns: 1fr 1fr; }
.fb-filters .field:last-child { grid-column: 1 / -1; }
.fb-filters select, .fb-filters input, .auth-card select { width: 100%; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 10px; background: var(--surface); color: var(--ink); font: inherit; }
.row[hidden], [data-open-sub][hidden] { display: none !important; }

:root[data-theme="dark"] .mark[data-accent="sohni-mehek"] { background: #8a3a2c; color: #f3ece6; }
:root[data-theme="dark"] .mark[data-accent="kings-county"] { background: #2a2a2a; color: #e0c078; box-shadow: inset 0 0 0 1px #c9a24b; }
:root[data-theme="dark"] .mark[data-accent="jmco"] { background: #4a5852; color: #f3ece6; }
:root[data-theme="dark"] .mark[data-accent="potb"] { background: #1e4a42; color: #f3ece6; }
:root[data-theme="dark"] .qr { background: #ffffff; }

.theme-picks { margin-top: 8px; }
.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 8px;
  background: none;
  border: 0;
  color: var(--ink);
  text-decoration: underline;
  font-weight: 600;
  font-size: 14px;
  width: 100%;
  cursor: pointer;
}
:root[data-theme="dark"] .btn-primary:focus-visible,
:root[data-theme="dark"] .chip[aria-pressed="true"]:focus-visible {
  outline-color: var(--gold);
}
.fb-newhost { margin-top: 10px; } .fb-newhost a { color: var(--gold); text-decoration: underline; font-weight: 600; }
