/* Photo booth dashboard */
:root {
  --brown-900: #3e2723;
  --brown-700: #5d4037;
  --brown-600: #6d4c41;
  --brown-400: #8d6e63;
  --cream: #faf0e6;
  --line: #e6d9cc;
  --surface: #ffffff;
  --muted: #7a6a62;
  --accent: #cd7f32;
  --ok: #2e7d32;
  --danger: #b3261e;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Roboto, system-ui, sans-serif;
  background: var(--cream);
  color: var(--brown-900);
  line-height: 1.45;
}
[hidden] { display: none !important; }

.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  background: var(--brown-900);
  color: #fff;
}
.brand img { height: 40px; display: block; }
.topbar-title { font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: 1px; flex: 1; }
.topbar-user { display: flex; align-items: center; gap: 12px; font-size: 14px; opacity: 0.9; }
.topbar .btn-quiet { color: #fff; border-color: rgba(255,255,255,0.4); }
/* help and the gear, in the top bar once signed in */
.top-icon { background: none; border: 1px solid transparent; color: #fff; border-radius: 50%; width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; flex: none; }
.top-icon:hover, .top-icon:focus-visible { background: rgba(255,255,255,0.12); }
.top-icon.on { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.4); }
.top-icon .material-icons { font-size: 24px; }
body.settings-mode #boothApp, body.settings-mode #findCard, body.settings-mode #focusBar { display: none !important; }
.help-dialog { border: none; padding: 0; background: none; max-width: min(760px, calc(100vw - 24px)); width: 100%; max-height: calc(100vh - 32px); }
.help-dialog::backdrop { background: rgba(30, 18, 12, 0.55); }
.help-dialog .intro { position: relative; margin: 0; padding-right: 56px; }
.help-close { position: absolute; top: 12px; right: 12px; padding: 6px; }

.page { max-width: 980px; margin: 0 auto; padding: 24px 16px 80px; }

h1 { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 40px; letter-spacing: 0.5px; margin: 0 0 8px; }
h2 { font-size: 20px; margin: 0 0 14px; }
h3 { font-size: 19px; margin: 0; }

.card, .status-card, .intro {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}
.status-card { display: flex; gap: 12px; align-items: flex-start; }
.status-card.warn { border-color: #e9b8a3; background: #fff6f2; }
.status-card p { margin: 4px 0 0; color: var(--muted); }

.intro p { margin: 0 0 12px; }
.role-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.role-list li { display: flex; gap: 12px; align-items: flex-start; }
.role-list .material-icons, .hint .material-icons { color: var(--accent); }
.hint { display: flex; gap: 10px; align-items: flex-start; background: var(--cream); padding: 10px 12px; border-radius: 8px; margin: 0; font-size: 14px; }

.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; align-items: end; }
.settings-grid label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--brown-700); }
/* the prints guests can pick: checkboxes in a box */
.settings-grid .print-kinds { display: grid; gap: 6px; margin: 0; padding: 8px 12px; border: 1px solid #e0d2c4; border-radius: 10px; }
.settings-grid .print-kinds legend { font-size: 13px; font-weight: 500; color: var(--brown-700); padding: 0 4px; }
.settings-grid .print-kinds label { display: flex; align-items: center; gap: 8px; font-weight: 400; color: inherit; }
input, select {
  font: inherit;
  font-size: 15px;
  padding: 9px 10px;
  border: 1px solid #d3c3b5;
  border-radius: 8px;
  background: #fff;
  color: var(--brown-900);
  min-width: 0;
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-actions { display: flex; justify-content: flex-end; }

/* Guests find a booth's photos by its number */
.find-card h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.find-card h2 .material-icons { color: var(--accent); }
.find-card > p { margin: 0 0 12px; color: var(--muted); }
.find-form { display: flex; gap: 10px; flex-wrap: wrap; }
.find-form input { flex: 1 1 180px; max-width: 260px; font-size: 20px; letter-spacing: 2px; font-weight: 500; }
.find-error { margin: 8px 0 0; color: #b3261e; font-size: 14px; min-height: 1em; }
.find-error:empty { display: none; }
.owner-card { align-items: center; flex-wrap: wrap; }
.owner-card > div { flex: 1 1 220px; }
.owner-card > .material-icons { color: var(--accent); }
.booth-number-tag { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--brown-700); }
.booth-number-tag .material-icons { font-size: 16px; color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #d3c3b5;
  background: #fff;
  color: var(--brown-900);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: #f6ede4; }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn .material-icons { font-size: 18px; }
.btn-primary { background: var(--brown-600); border-color: var(--brown-600); color: #fff; }
.btn-primary:hover { background: var(--brown-700); }
.btn-quiet { background: transparent; }
.btn-small { padding: 6px 10px; font-size: 13px; }
.btn.danger { color: var(--danger); }

.list-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 28px 0 14px; }
.list-head .list-title { margin: 0; flex: 1 1 auto; }
.list-count { color: var(--muted); font-weight: 400; font-size: 16px; }
.booth-search { flex: 1 1 260px; max-width: 420px; padding: 9px 12px; border: 1px solid #d3c3b5; border-radius: 8px; font: inherit; font-size: 15px; background: #fff; }
.create-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.create-head h2 { margin: 0; }
.empty { color: var(--muted); }
.booth-list { display: grid; gap: 10px; margin-bottom: 20px; }
.booth-list .booth-card { padding: 14px 20px; margin-bottom: 0; }

.booth-card.is-off { opacity: 0.85; background: #fbf8f5; }
.booth-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.booth-toggle { display: flex; align-items: flex-start; gap: 8px; flex: 1; min-width: 0; padding: 4px 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.booth-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.booth-name { display: block; font-size: 19px; font-weight: 700; }
.booth-toggle:hover .booth-name { color: var(--brown-700); }
.booth-title { display: block; min-width: 0; }
.booth-chevron { color: var(--accent); transition: transform .2s; margin-top: -1px; }
.booth-card.open .booth-chevron { transform: rotate(180deg); }
.booth-body { display: none; margin-top: 14px; }
.booth-card.open .booth-body { display: block; }
.booth-meta { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.camera-status.online { color: var(--ok); font-weight: 500; }
.off-note { margin: -4px 0 14px; padding: 8px 12px; background: #fff6f2; border-radius: 8px; font-size: 14px; }

.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { width: 44px; height: 24px; border-radius: 12px; background: #cbbdb2; position: relative; transition: background 0.2s; }
.switch-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.switch input:checked + .switch-track { background: var(--ok); }
.switch input:checked + .switch-track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch-label { font-weight: 500; font-size: 14px; min-width: 24px; }

.link-rows { display: grid; gap: 8px; }
.link-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.link-icon { color: var(--accent); }
.link-text span { color: var(--muted); font-size: 13px; }
.link-buttons { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.qr-box { grid-column: 1 / -1; display: flex; gap: 16px; align-items: center; padding: 8px 4px 4px; }
.qr-box svg { width: 170px; height: 170px; flex-shrink: 0; }
.qr-box p { margin: 0; font-size: 14px; color: var(--muted); }

.tv-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--cream);
  border-radius: 10px;
}
.tv-row .material-icons { color: var(--accent); }
.cast-row { margin-top: 8px; }
.cast-row .cast-note { flex: 1; min-width: 180px; color: var(--muted); font-size: 13px; }
.cast-row .btn .material-icons { color: inherit; }
.tv-code { width: 120px; text-transform: uppercase; letter-spacing: 2px; font-weight: 500; }
.tv-row .btn-quiet .material-icons { color: inherit; }

/* Opened from a TV's QR code: pick the booth for that TV */
.tv-pick { border: none; border-radius: 16px; padding: 20px; width: min(460px, calc(100vw - 32px)); background: var(--surface); color: var(--brown-900); }
.tv-pick::backdrop { background: rgba(30, 18, 12, 0.55); }
.tv-pick h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 20px; }
.tv-pick h3 .material-icons { color: var(--accent); }
.tv-pick p { margin: 0 0 12px; color: var(--muted); line-height: 1.4; }
.tv-pick-list { display: grid; gap: 8px; max-height: 50vh; overflow: auto; }
.tv-pick-row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--cream); border-radius: 10px; }
.tv-pick-name { flex: 1; min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.tv-pick-name small { color: var(--muted); font-weight: 400; }
.tv-pick-error { color: var(--danger) !important; min-height: 1.2em; margin: 10px 0 0 !important; }
.tv-pick-foot { display: flex; justify-content: flex-end; }

.booth-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.devices-panel { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.booth-settings { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); }

.snackbar {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 120px);
  background: var(--brown-900);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  max-width: calc(100% - 32px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transition: transform 0.25s;
  z-index: 50;
}
.snackbar.show { transform: translate(-50%, 0); }
.snackbar.error { background: var(--danger); }

@media (max-width: 640px) {
  .topbar { padding: 8px 16px; gap: 10px; }
  .topbar-user span { display: none; }
  h1 { font-size: 32px; }
  .link-row { grid-template-columns: auto 1fr; }
  .link-buttons { grid-column: 1 / -1; justify-content: flex-start; }
  .qr-box { flex-direction: column; align-items: flex-start; }
  .booth-head { align-items: flex-start; }
  .booth-list .booth-card { padding: 12px 14px; }
}

/* Photo style tiles (number of photos + border) */
.style-field { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px 28px; }
.style-group { display: grid; gap: 6px; }
.style-label { font-size: 13px; font-weight: 500; color: var(--brown-700); }
.style-tiles { display: flex; flex-wrap: wrap; gap: 10px; }
.style-tile {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 104px;
  padding: 10px 8px 8px;
  font: inherit;
  font-size: 13px;
  color: var(--brown-700);
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.style-tile:hover { border-color: var(--brown-400); }
.style-tile.selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; color: var(--brown-900); font-weight: 500; }
.style-tile:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.style-art { display: flex; align-items: center; justify-content: center; height: 92px; width: 100%; background: #b9a392; border-radius: 6px; padding: 6px; }
.style-art svg, .style-art img { max-width: 100%; max-height: 100%; filter: drop-shadow(0 1px 2px rgba(62, 39, 35, 0.35)); }
.style-art .face-none { font-size: 40px; color: var(--brown-700); opacity: 0.6; }

/* Owner's settings: the bubble on each tile says whether the booth offers it to guests */
.style-picker.choosing .style-label { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.show-all { display: inline-flex; gap: 6px; font-weight: 400; }
.tile-wrap { position: relative; }
.tile-wrap.not-shown .style-tile { opacity: 0.45; }
.tile-wrap.not-shown .style-tile:hover, .tile-wrap.not-shown .style-tile.selected { opacity: 0.8; }
.show-bubble {
  position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; padding: 0; display: grid; place-items: center;
  border-radius: 50%; border: 2px solid #fff; background: #fffc; color: #fff; cursor: pointer;
  box-shadow: 0 1px 3px rgba(62, 39, 35, 0.45);
}
.show-bubble .material-icons { font-size: 17px; font-weight: 700; }
.show-bubble[aria-checked="true"], .show-bubble.demo { background: var(--ok, #2e7d32); }
.show-bubble[aria-checked="false"] { background: #fff; border-color: #b9a392; }
.show-bubble:hover { transform: scale(1.1); }
.show-bubble:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.show-bubble.demo { position: static; display: inline-grid; width: 20px; height: 20px; vertical-align: -5px; margin-right: 4px; cursor: default; }
.show-bubble.demo .material-icons { font-size: 14px; }
.style-help { grid-column: 1 / -1; margin: 6px 0 -4px; font-size: 13px; color: var(--muted); }

/* The Look part's own tabs: one section at a time (Borders, Backgrounds, Face fun, Hand props, Photos, Date & birthday) */
.look-tabs { grid-column: 1 / -1; display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin;
  position: sticky; top: var(--focus-bar-h, 0px); z-index: 12; background: var(--surface); margin: 0 -4px; padding: 8px 4px; }
.look-tab { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line, #d9cbbd); background: #fff; color: var(--brown-700); font: 500 14px Roboto, sans-serif; cursor: pointer; }
.look-tab .material-icons { font-size: 18px; }
.look-tab[aria-selected="true"] { background: var(--brown-700); border-color: var(--brown-700); color: #fff; }
.look-extras { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; align-items: end; }
.look-panel [data-look-group] { display: none; }
.look-panel .look-extras[data-look-group] { display: none; }
.look-panel[data-look-show="extras"] .look-extras { display: grid; }
.look-panel[data-look-show="extras"] .style-help { display: none; }
.look-panel[data-look-show="photos"] [data-look-group="photos"],
.look-panel[data-look-show="border"] [data-look-group="border"],
.look-panel[data-look-show="face"] [data-look-group="face"],
.look-panel[data-look-show="hand"] [data-look-group="hand"],
.look-panel[data-look-show="backdrop"] [data-look-group="backdrop"] { display: grid; }
/* hand props: the Hands button's on/off above the tiles; the tiles faded while it's off */
.hand-onoff { display: grid; gap: 6px; max-width: 520px; font-size: 13px; font-weight: 500; color: var(--brown-700); }
.style-tiles.hands-off { opacity: 0.55; }

/* Which designed borders / face props the booth may switch to */
.avail-picker { grid-column: 1 / -1; }
.avail-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.avail-head .style-label { flex: 1; }
.avail-all { font: inherit; font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid #d3c3b5; background: #fff; color: var(--brown-700); cursor: pointer; }
.avail-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.avail-tile { position: relative; display: grid; gap: 4px; justify-items: center; padding: 8px; border: 2px solid #e6d9cd; border-radius: 10px; background: #fff; cursor: pointer; font-size: 13px; text-align: center; opacity: 0.6; }
.avail-tile.on { border-color: var(--accent); opacity: 1; }
.avail-tile input { position: absolute; top: 6px; left: 6px; width: 18px; height: 18px; accent-color: var(--accent); }
.avail-tile img { height: 70px; max-width: 100%; object-fit: contain; }
.avail-tile small { display: block; color: var(--muted); font-size: 11px; }
.style-field + .form-actions { grid-column: 1 / -1; justify-content: flex-start; }
.backdrop-color { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; }
.backdrop-color input { width: 56px; height: 34px; padding: 2px; border: 1px solid #d3c3b5; border-radius: 6px; background: #fff; cursor: pointer; }

/* A booth's settings, in tabs */
.settings-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.settings-tab {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid #d3c3b5;
  background: #fff; color: var(--brown-700); font: inherit; font-size: 14px; cursor: pointer;
}
.settings-tab .material-icons { font-size: 18px; color: var(--accent); }
.settings-tab:hover { background: #f6ede4; }
.settings-tab[aria-selected="true"] { background: var(--brown-600); border-color: var(--brown-600); color: #fff; }
.settings-tab[aria-selected="true"] .material-icons { color: #fff; }
.settings-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.booth-settings .settings-grid[hidden] { display: none; }
.booth-settings .form-actions { margin-top: 16px; }
/* (2026-11-22, Hansen: Save always in reach) the settings' Save button stays on screen at the bottom while scrolling */
.booth-settings > .form-actions { position: sticky; bottom: 0; z-index: 15; margin: 16px -16px 0; padding: 10px 16px;
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 12px #3e272314; }
.booth-settings > .form-actions .btn { min-width: 140px; }
.volume-field { display: flex; align-items: center; gap: 10px; }
.volume-field input { flex: 1; accent-color: var(--accent); }
.volume-field output { min-width: 3.4em; font-weight: 500; }

/* Booths sorted under companies (admin): a folding section each, with its own New booth */
.company-group { display: grid; gap: 10px; }
.company-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.company-toggle {
  display: flex; align-items: center; gap: 8px; flex: 1 1 auto; background: none; border: 0; padding: 6px 0;
  font: inherit; font-size: 18px; font-weight: 700; color: var(--brown-900); cursor: pointer; text-align: left;
}
.company-toggle .material-icons { color: var(--accent); }
.company-toggle .chev { transition: transform 0.15s; }
.company-group.closed .company-toggle .chev { transform: rotate(-90deg); }
.company-group.closed .company-booths { display: none; }
.company-toggle small { color: var(--muted); font-weight: 400; font-size: 14px; }
.company-booths { display: grid; gap: 10px; }
.company-empty { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- Pay-per-event booths (billing.js) ---------- */
.event-panel { margin: 14px 0 4px; padding: 14px 16px; border: 1px solid #ecd9c6; border-radius: 12px; background: #fff9f2; }
.event-head { display: flex; gap: 12px; align-items: flex-start; }
.event-head > .material-icons { color: var(--accent); font-size: 28px; }
.event-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.event-panel .btn-row, .pay-box .btn-row, .admin-order .btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.event-credits { margin: 10px 0 0; font-size: 14px; display: flex; gap: 6px; align-items: center; }
.event-credits .material-icons { color: var(--accent); font-size: 18px; }
.event-order { margin-top: 12px; padding: 12px; border-radius: 10px; background: #fff; border: 1px dashed #d9b48f; }
.event-order p { margin: 0 0 6px; font-size: 14px; }
.event-small { color: var(--muted); font-size: 13px; }
.order-code { font-family: ui-monospace, Consolas, monospace; letter-spacing: 1px; color: #7a3f0e; }
.order-code.big { font-size: 20px; padding: 2px 8px; background: #fff3e4; border-radius: 6px; }
.event-tag { font-weight: 600; }
.event-tag.running { color: #2e7d32; }
.event-tag.ready { color: #1565c0; }
.event-tag.unpaid { color: #b45309; }
.pay-dialog { border: none; border-radius: 16px; padding: 0; width: min(520px, calc(100vw - 32px)); box-shadow: 0 30px 60px #0005; }
.pay-dialog::backdrop { background: #2b1d1899; }
.pay-box { padding: 22px; }
.pay-box h2 { margin: 0 0 8px; }
.pay-box p { color: var(--muted); }
.pay-label { font-weight: 600; color: inherit !important; margin-bottom: 8px; }
.pay-methods { display: grid; gap: 8px; }
.pay-method { justify-content: space-between; padding: 14px 16px; }
.pay-method span { color: var(--muted); font-size: 14px; }
.pay-steps { padding-left: 1.2em; line-height: 1.8; }
.admin-pay h2 { display: flex; gap: 8px; align-items: center; margin-top: 0; }
.admin-pay h3 { font-size: 15px; margin: 16px 0 8px; color: var(--muted); }
.admin-order { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid #f0e4d8; }
.admin-order.sent { background: #f3f9ff; }
.admin-order .btn-row { margin-top: 0; }
.admin-order small { color: var(--muted); }

/* ---------- One booth at a time (2026-11-14): the list is rows; a booth opens on its own page ---------- */
/* the list: rows that open their booth (no folding open in place) */
body:not(.focus-mode) .booth-card .booth-body { display: none; }
body:not(.focus-mode) .booth-chevron { transform: rotate(-90deg); }
body:not(.focus-mode) .booth-card .focus-sec[data-sec="links"]:not(.booth-body *) { display: none; }
/* one booth open: everything else on the page steps aside */
body.focus-mode #boothApp > :not(#boothList),
body.focus-mode #findCard,
body.focus-mode .company-group:not(.has-focus),
body.focus-mode .company-head,
body.focus-mode .booth-card:not(.focused) { display: none !important; }
body.focus-mode .company-group.closed .company-booths { display: grid; }
body.focus-mode .booth-card.focused .booth-body { display: block; margin-top: 0; }
body.focus-mode .booth-card.focused .booth-head .booth-toggle { cursor: default; }
body.focus-mode .booth-card.focused .booth-head .booth-name,
body.focus-mode .booth-card.focused .booth-chevron { display: none; }
body.focus-mode .booth-card.focused .settings-tabs,
body.focus-mode .booth-card.focused .booth-actions > button:first-child,
body.focus-mode .booth-card.focused .booth-actions > button:nth-child(2) { display: none; }
/* only the chosen part shows */
body.focus-mode .booth-card.focused .focus-sec { display: none; }
body.focus-mode .booth-card.focused[data-sec="links"] .focus-sec[data-sec="links"],
body.focus-mode .booth-card.focused[data-sec="settings"] .focus-sec[data-sec="settings"],
body.focus-mode .booth-card.focused[data-sec="devices"] .focus-sec[data-sec="devices"] { display: block; }
body.focus-mode .booth-card.focused[data-sec="more"] .focus-sec[data-sec="more"] { display: flex; }
body.focus-mode .booth-card.focused[data-sec="links"] .focus-sec[data-sec="links"] .link-rows { display: grid; }

/* the bar at the top: Back, the booth's name, its parts */
.focus-bar { position: sticky; top: 0; z-index: 20; margin: -24px -16px 16px; padding: 10px 16px 8px; background: var(--cream);
  border-bottom: 1px solid var(--line); box-shadow: 0 4px 12px #3e272314; }
.focus-top { display: flex; align-items: center; gap: 10px; }
.focus-back { flex: none; }
.focus-title { display: grid; min-width: 0; }
.focus-title strong { font-size: 22px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.focus-title small { color: var(--muted); font-size: 13px; }
.focus-nav { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.focus-tab { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--brown-900); font: 500 15px Roboto, sans-serif; cursor: pointer; white-space: nowrap; }
.focus-tab .material-icons { font-size: 18px; color: var(--accent); }
.focus-tab.on { background: var(--brown-700); border-color: var(--brown-700); color: #fff; }
.focus-tab.on .material-icons { color: #fff; }
@media (max-width: 640px) {
  .focus-bar { margin: -24px -16px 12px; }
  .focus-back { padding: 8px 10px; }
  .focus-title strong { font-size: 19px; }
  body.focus-mode .booth-card.focused { padding: 14px; }
  body.focus-mode .settings-grid { grid-template-columns: 1fr; }
}
/* the print offer's numbers (More) */
.offer-stats { width: 100%; margin-bottom: 14px; }
.offer-stats h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 17px; }
.offer-stats h3 .material-icons { color: var(--accent); }
.offer-table-wrap { overflow-x: auto; }
.offer-table { border-collapse: collapse; width: 100%; font-size: 14px; }
.offer-table th, .offer-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.offer-table th:first-child, .offer-table td:first-child { text-align: left; }
.offer-table th { color: var(--muted); font-weight: 500; }
.offer-stats-note { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
body.focus-mode .booth-card.focused[data-sec="more"] .offer-stats { display: block; }
.offer-stats.focus-sec { flex-direction: column; align-items: stretch; }

/* A booth's Instagram part (ig-panel.js) */
body.focus-mode .booth-card.focused[data-sec="instagram"] .focus-sec[data-sec="instagram"] { display: block; }
.ig-panel h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.ig-panel h3 .material-icons { color: var(--accent); }
.ig-handle { font-size: 15px; font-weight: 500; color: var(--accent); }
.ig-note { color: var(--muted); margin: 0 0 12px; }
.ig-small { font-size: 13px; }
.ig-warn { background: #fff3e6; border: 1px solid #f0c9a0; border-radius: 8px; padding: 8px 12px; margin: 0 0 12px; }
.ig-settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 0 0 14px; align-items: end; }
.ig-settings label, .ig-caption { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--brown-700); }
.ig-settings .ig-wide { grid-column: 1 / -1; }
.ig-settings select, .ig-settings input, .ig-caption textarea { font: inherit; font-size: 15px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; width: 100%; box-sizing: border-box; }
.ig-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ig-picknow { margin: 0 0 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.ig-busy { display: flex; align-items: center; gap: 10px; color: var(--brown-700); margin: 0 0 12px; }
.ig-spin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: ig-spin 0.9s linear infinite; }
@keyframes ig-spin { to { transform: rotate(360deg); } }
.ig-drafts { display: grid; gap: 14px; margin: 0 0 12px; }
.ig-draft { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.ig-draft-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.ig-chip { font-size: 12px; font-weight: 500; border-radius: 999px; padding: 3px 10px; background: var(--cream); white-space: nowrap; }
.ig-chip.ready { background: #fdebd6; color: #8a4b12; }
.ig-chip.posted { background: #e3f3e6; color: #1e6b32; }
.ig-chip.failed { background: #fde3e0; color: #a3271b; }
.ig-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-bottom: 10px; }
.ig-pick { position: relative; margin: 0; }
.ig-pick img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; background: var(--cream); }
.ig-pick.removed img { opacity: 0.25; filter: grayscale(1); }
.ig-cover { position: absolute; left: 6px; bottom: 6px; background: #000a; color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 4px; }
.ig-x { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; border-radius: 50%; border: none; background: #000b; color: #fff;
  display: grid; place-items: center; cursor: pointer; padding: 0; }
.ig-x .material-icons { font-size: 18px; }
.ig-caption { margin-bottom: 8px; }
.ig-link { background: none; border: none; color: var(--accent); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }

/* ---------- "Add it to your home screen" (install-app.js) ---------- */
.install-card { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 1000;
  width: min(560px, calc(100vw - 24px)); box-sizing: border-box; display: flex; gap: 14px; align-items: flex-start;
  padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 14px 40px rgba(62, 39, 35, .25); animation: install-in .3s ease-out; }
@keyframes install-in { from { opacity: 0; transform: translate(-50%, 20px); } }
.install-card > img { border-radius: 12px; border: 1px solid var(--line); flex: none; }
.install-body { flex: 1; min-width: 0; }
.install-body strong { display: block; font-size: 17px; color: var(--brown-900); }
.install-body p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.install-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.install-actions .btn { padding: 8px 14px; }
.install-steps { margin: 10px 0 0; padding-left: 20px; font-size: 15px; line-height: 1.7; color: var(--brown-900); }
.install-steps .material-icons { font-size: 18px; vertical-align: -3px; color: #1a73e8; }
.install-steps-box[hidden] { display: none; }
.install-again { margin-top: 8px; }
.install-again-row { text-align: center; }
@media (max-width: 520px) {
  .install-card { flex-direction: column; align-items: stretch; }
  .install-card > img { width: 44px; height: 44px; }
}

/* Turning a booth off: type "yes" first (dashboard.js confirmTurnOff) */
.off-confirm-label { display: grid; gap: 6px; margin: 0 0 14px; font-size: 14px; color: var(--brown-900); }
.off-confirm-label input { padding: 10px 12px; border: 1px solid var(--line, #d9c8b8); border-radius: 10px; font: inherit; font-size: 16px; }
.off-confirm .tv-pick-foot { gap: 8px; }
.off-confirm .off-confirm-go:not(:disabled) { background: var(--danger, #b3261e); border-color: var(--danger, #b3261e); }

/* Instagram: adding photos to a post, and the caption written for them (ig-panel.js addPhotos, writeCaption) */
.ig-addrow { margin: -2px 0 10px; }
.ig-write { margin: 6px 0 4px; }
.ig-write .ig-about { flex: 1; min-width: 200px; padding: 9px 12px; border: 1px solid var(--line, #d9c8b8); border-radius: 10px; font: inherit; font-size: 14px; }
.ig-chooser { border: none; border-radius: 16px; padding: 0; width: min(920px, calc(100vw - 24px)); max-height: calc(100vh - 32px);
  background: var(--surface, #fff); color: var(--brown-900); display: none; }
.ig-chooser[open] { display: flex; flex-direction: column; }
.ig-chooser::backdrop { background: rgba(30, 18, 12, 0.55); }
.ig-ch-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 18px 10px; border-bottom: 1px solid var(--line, #eadfd5); }
.ig-ch-head h3 { margin: 0; font-size: 20px; }
.ig-ch-tabs { display: flex; gap: 6px; }
.ig-ch-tabs button { border: 1px solid var(--line, #d9c8b8); background: transparent; border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 14px; cursor: pointer; color: inherit; }
.ig-ch-tabs button[aria-selected="true"] { background: var(--brown-600); border-color: var(--brown-600); color: #fff; }
.ig-ch-count { margin-left: auto; color: var(--muted); font-size: 14px; }
.ig-ch-grid { overflow: auto; padding: 12px 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; align-content: start; min-height: 200px; }
.ig-ch-day { grid-column: 1 / -1; margin: 10px 0 0; font-size: 14px; color: var(--muted); font-weight: 500; }
.ig-ch-day:first-child { margin-top: 0; }
.ig-ch-photo { position: relative; padding: 0; border: 3px solid transparent; border-radius: 10px; background: none; cursor: pointer; overflow: hidden; }
.ig-ch-photo img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--cream); }
.ig-ch-photo.on { border-color: var(--accent, #e07a2e); }
.ig-ch-photo:disabled { cursor: default; }
.ig-ch-photo.adult img { opacity: 0.35; }
.ig-ch-tick, .ig-ch-lock { position: absolute; top: 4px; right: 4px; color: #fff; background: var(--accent, #e07a2e); border-radius: 50%; font-size: 24px; }
.ig-ch-lock { background: #000a; padding: 2px; font-size: 18px; }
.ig-ch-msg, .ig-ch-more { grid-column: 1 / -1; justify-self: center; }
.ig-ch-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 18px 16px; border-top: 1px solid var(--line, #eadfd5); }
.ig-ch-photo[hidden] { display: none; }
