/* QC Event Manager - Quick Clean brand kit, mobile first */
:root {
  /* Brand kit palette */
  --blue-deep: #2F7FB0;
  --blue: #49A0D2;
  --blue-soft: #8BC3E4;
  --blue-mist: #D6ECF7;
  --green-deep: #168468;
  --green: #22A785;
  --green-mist: #D8F1EA;
  --ink: #1E1E1E;
  --slate: #5F6368;
  --grey: #A0A4A8;
  --line: #DCE4EA;
  --navy: #276C96;                 /* QC Deep Blue, pressed shade: app frame and strong text */
  --navy-ink: #1E5A80;             /* QC Deep Blue, darkest step */

  /* Roles */
  --bg: #F2F6F9;                   /* pale linen-blue canvas so white panels lift off it */
  --surface: #FFFFFF;
  --surface-2: #F4F7F9;           /* a lighter step of the kit's light shade, for quiet fills */
  --shadow-1: 0 1px 2px rgba(30, 90, 128, .06), 0 1px 1px rgba(30, 90, 128, .03);
  --shadow-2: 0 14px 32px -14px rgba(30, 90, 128, .28);
  --text: var(--ink);
  --muted: var(--slate);
  --action: var(--blue-deep);
  --action-press: #276C96;
  --ok: var(--green-deep);
  --danger: #B3261E;               /* errors only; not part of the brand palette */
  --danger-mist: #FBEAE9;
  --warn: #8A5A00;
  --warn-mist: #FFF4DB;

  --radius: 14px;
  --radius-sm: 10px;
  --nav-h: 64px;
  --top-h: 60px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: Calibri, Carlito, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* hidden always wins over a component's own display */
html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
}
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--action); text-decoration: none; }
img { max-width: 100%; display: block; }
svg { width: 1.15em; height: 1.15em; vertical-align: -0.2em; flex: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 700; }
h1 { font-size: 26px; } h2 { font-size: 20px; } h3 { font-size: 17px; }
p { margin: 0 0 10px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
small, .muted { color: var(--muted); }
small { font-size: 14px; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.tagline { font-family: var(--serif); font-style: italic; color: var(--ink); }
button, a, [role="button"], label.btn, .list-item, .chip-btn { touch-action: manipulation; }
button, [role="button"], .btn, .chip, .tabs a, .seg button, .bottomnav a { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
:focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- boot / spinner ---------- */
.boot { min-height: 100dvh; display: grid; place-items: center; }
.boot img { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.spinner { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--blue-mist); border-top-color: var(--blue-deep); animation: spin .8s linear infinite; }
.spinner.sm { width: 18px; height: 18px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- app shell ---------- */
.shell { min-height: 100dvh; }
.maincol { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 30; min-height: calc(var(--top-h) + var(--safe-t)); padding: var(--safe-t) 8px 0 16px; display: flex; align-items: center; gap: 8px; background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar .title { flex: 1; min-width: 0; font-weight: 700; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .back { margin-left: -8px; }
.topbar .logo { height: 30px; width: auto; }
.brandmark { display: flex; align-items: center; }
main.content { padding: 16px 16px calc(var(--nav-h) + var(--safe-b) + 24px); max-width: 1180px; margin: 0 auto; }

.bottomnav { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b); display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-top: 1px solid var(--line); }
.bottomnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; color: var(--muted); font-weight: 700; }
.bottomnav a.active { color: var(--blue-deep); }
.bottomnav a svg { width: 24px; height: 24px; }
.bottomnav .fab span.btn-fab { width: 60px; height: 60px; margin-top: -24px; border-radius: 50%; background: var(--blue-deep); color: #fff; display: grid; place-items: center; border: 4px solid var(--bg); box-shadow: 0 4px 14px rgba(47, 127, 176, .35); transition: transform 120ms var(--ease-out); }
.bottomnav .fab:active span.btn-fab { transform: scale(.94); }
.bottomnav .fab svg { width: 28px; height: 28px; }

.sidebar { display: none; }

@media (min-width: 960px) {
  .shell { display: grid; grid-template-columns: 248px 1fr; }
  .sidebar { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100dvh; padding: 22px 14px; background: var(--surface); border-right: 1px solid var(--line); }
  .sidebar .brandmark { padding: 0 8px 22px; }
  .sidebar .brandmark img { width: 190px; height: auto; }
  .sidebar a.nav { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--ink); font-weight: 700; }
  .sidebar a.nav svg { width: 20px; height: 20px; color: var(--slate); }
  .sidebar a.nav.active { background: var(--blue-mist); color: var(--blue-deep); }
  .sidebar a.nav.active svg { color: var(--blue-deep); }
  .sidebar .scan-cta { margin: 0 0 16px; }
  .sidebar .spacer { flex: 1; }
  .sidebar .me { padding: 12px; font-size: 14px; color: var(--slate); border-top: 1px solid var(--line); }
  .sidebar .me .tagline { display: block; margin-top: 10px; font-size: 14px; }
  .bottomnav { display: none; }
  main.content { padding: 28px 32px 56px; }
  .topbar { padding: 0 32px; }
  .hide-desktop { display: none !important; }
}
@media (max-width: 959px) { .hide-mobile { display: none !important; } }
@media (hover: hover) and (pointer: fine) {
  .sidebar a.nav:hover { background: var(--surface-2); }
  .sidebar a.nav.active:hover { background: var(--blue-mist); }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; transition: transform 120ms var(--ease-out), background-color 120ms; }
.btn:active { transform: scale(.97); background: var(--surface-2); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn svg { width: 19px; height: 19px; }
.btn.primary { background: var(--action); border-color: var(--action); color: #fff; }
.btn.primary:active { background: var(--action-press); }
.btn.green { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.btn.danger { color: var(--danger); border-color: #EBC4C1; }
.btn.danger.solid { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--action); }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn.lg { min-height: 56px; font-size: 17px; padding: 0 22px; }
.btn.block { width: 100%; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; border: 0; background: transparent; color: var(--ink); cursor: pointer; flex: none; transition: background-color 120ms; }
.icon-btn:active { background: var(--surface-2); }
.icon-btn svg { width: 22px; height: 22px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn-row.end { justify-content: flex-end; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--surface-2); }
  .btn.primary:hover { background: var(--action-press); }
  .btn.green:hover { background: #12705A; }
  .btn.ghost:hover { background: var(--blue-mist); }
  .icon-btn:hover { background: var(--surface-2); }
}

/* ---------- layout ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card.pad { padding: 16px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.card-h h3 { display: flex; align-items: center; gap: 8px; }
.card-b { padding: 16px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack.sm { gap: 8px; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.grid > *, .stack > * { min-width: 0; }
.grid.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid.stats { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .grid.main-side { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head .sub { color: var(--muted); margin-top: 4px; }
.section-title { font-size: 15px; font-weight: 700; color: var(--slate); margin: 4px 0 8px; }

.stat { padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
.stat b { display: block; font-size: 28px; line-height: 1.1; color: var(--blue-deep); }
.stat span { font-size: 14px; color: var(--slate); }
.stat.link:active { background: var(--surface-2); }

/* ---------- lists ---------- */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--ink); cursor: pointer; min-height: 56px; }
.list-item:last-child { border-bottom: 0; }
.list-item:active { background: var(--surface-2); }
.list-item .meta { flex: 1; min-width: 0; }
.list-item .meta b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .meta small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item input[type=checkbox] { width: 22px; height: 22px; flex: none; }
@media (hover: hover) and (pointer: fine) { .list-item:hover { background: var(--surface-2); } }
.empty { padding: 36px 16px; text-align: center; color: var(--muted); }
.empty svg { width: 40px; height: 40px; margin: 0 auto 8px; color: var(--grey); display: block; }

/* ---------- avatar ---------- */
.avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--blue-deep); overflow: hidden; font-size: 15px; position: relative; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 96px; height: 96px; font-size: 32px; }
.avatar.sm { width: 36px; height: 36px; font-size: 13px; }
.avatar .badge-li { position: absolute; right: -1px; bottom: -1px; width: 16px; height: 16px; border-radius: 50%; background: var(--green-deep); border: 2px solid #fff; }

/* ---------- chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--surface-2); color: var(--slate); border: 1px solid var(--line); white-space: nowrap; }
.chip.ok, .chip.brand { background: var(--green-mist); color: var(--green-deep); border-color: #B5E2D4; }
.chip.info, .chip.li { background: var(--blue-mist); color: var(--blue-deep); border-color: #B6DAEE; }
.chip.warn { background: var(--warn-mist); color: var(--warn); border-color: #F0D9A6; }
.chip.danger { background: var(--danger-mist); color: var(--danger); border-color: #EBC4C1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- forms ---------- */
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; color: var(--slate); }
input, select, textarea { font: inherit; font-size: 16px; color: var(--ink); width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); outline: none; transition: border-color 120ms, box-shadow 120ms; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue-deep); box-shadow: 0 0 0 3px var(--blue-mist); }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; accent-color: var(--blue-deep); }
input[type=color] { padding: 4px; width: 64px; }
input.code-input { font-size: 28px; letter-spacing: 10px; text-align: center; font-weight: 700; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; color: var(--ink); cursor: pointer; min-height: 44px; }
.check input { width: 22px; height: 22px; }
.form-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid .span2 { grid-column: span 2; } }
.hint { font-size: 13px; color: var(--muted); font-weight: 400; }
.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--slate); }
.search input { padding-left: 40px; }

/* switch */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; cursor: pointer; font-weight: 700; }
.switch input { appearance: none; -webkit-appearance: none; width: 48px; height: 28px; min-height: 0; padding: 0; border-radius: 999px; background: var(--line); border: 0; position: relative; flex: none; transition: background-color 160ms; cursor: pointer; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform 160ms var(--ease-out); }
.switch input:checked { background: var(--blue-deep); }
.switch input:checked::after { transform: translateX(20px); }
.switch input:focus { box-shadow: 0 0 0 3px var(--blue-mist); }

/* ---------- tabs / segmented ---------- */
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin: 0 -16px; padding: 0 16px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 12px; font-weight: 700; color: var(--slate); border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a.active { color: var(--blue-deep); border-color: var(--blue-deep); }
.seg { display: inline-flex; padding: 3px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; gap: 2px; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.seg button { border: 0; background: transparent; min-height: 36px; padding: 0 12px; border-radius: 8px; font: inherit; font-size: 14px; font-weight: 700; color: var(--slate); cursor: pointer; white-space: nowrap; }
.seg button.active { background: var(--surface); color: var(--blue-deep); box-shadow: 0 1px 2px rgba(30, 30, 30, .12); }
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters select { width: auto; min-height: 40px; font-size: 16px; padding: 6px 30px 6px 12px; border-radius: 999px; }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 15px; }
table.t th, table.t td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.t th { font-size: 14px; color: var(--slate); background: var(--surface-2); }

/* ---------- sheet / modal ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(30, 30, 30, .5); display: flex; align-items: flex-end; justify-content: center; animation: fade 160ms var(--ease-out); }
.sheet { background: var(--surface); width: 100%; max-height: 92dvh; overflow: auto; overscroll-behavior: contain; border-radius: 18px 18px 0 0; padding: 8px 16px calc(16px + var(--safe-b)); animation: up 220ms var(--ease-out); }
.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 4px auto 12px; }
.sheet-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
@media (min-width: 700px) {
  .overlay { align-items: center; }
  .sheet { width: min(640px, 94vw); border-radius: 16px; padding: 20px 22px; }
  .sheet.wide { width: min(980px, 96vw); }
  .sheet .grab { display: none; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(24px); opacity: .5; } }

/* ---------- toast ---------- */
#toasts { position: fixed; z-index: 200; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + var(--safe-b) + 14px); display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 10px; font-size: 15px; animation: up 200ms var(--ease-out); pointer-events: auto; box-shadow: 0 8px 24px rgba(30, 30, 30, .2); }
.toast.error { background: var(--danger); }
.toast.ok { background: var(--green-deep); }
@media (min-width: 960px) { #toasts { bottom: 24px; } }

/* ---------- scan ---------- */
.scan-wrap { max-width: 560px; margin: 0 auto; }
.event-pill { display: flex; align-items: center; gap: 10px; padding: 0 14px; min-height: 52px; border-radius: var(--radius); background: var(--blue-mist); color: var(--blue-deep); font-weight: 700; }
.event-pill select { flex: 1; background: transparent; border: 0; min-height: 48px; padding: 0; font-weight: 700; color: var(--blue-deep); box-shadow: none; }
.cam-btn { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 46dvh; padding: 24px; border-radius: 18px; background: var(--blue-deep); color: #fff; cursor: pointer; text-align: center; transition: transform 140ms var(--ease-out), background-color 140ms; }
.cam-btn:active { transform: scale(.985); background: var(--action-press); }
.cam-btn svg { width: 64px; height: 64px; }
.cam-btn b { font-size: 24px; }
.cam-btn span { font-size: 15px; opacity: .9; }
.cam-btn input, .gallery-btn input { display: none; }
.gallery-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--blue-deep); font-weight: 700; font-size: 17px; cursor: pointer; transition: transform 120ms var(--ease-out); }
.gallery-btn:active { transform: scale(.98); background: var(--surface-2); }
.gallery-btn svg { width: 22px; height: 22px; }

/* Live in-app camera */
body.no-scroll { overflow: hidden; }
.camera { position: fixed; inset: 0; z-index: 120; background: #000; color: #fff; display: flex; flex-direction: column; animation: fade 160ms var(--ease-out); }
.camera-top, .camera-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(10px + var(--safe-t)) 16px 10px; }
.camera-title { flex: 1; min-width: 0; font-weight: 700; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.camera-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.camera-icon.on { background: #fff; color: var(--navy-ink); }
.camera-icon b { font-size: 14px; }
.camera-pill { min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.camera-view video.mirror { transform: scaleX(-1); }
.camera.photo-mode .camera-top { position: absolute; z-index: 2; left: 0; right: 0; top: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0)); }
.camera.photo-mode .camera-bottom { background: #000; }
.camera-view.grid::before, .camera-view.grid::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.camera-view.grid::before { background: linear-gradient(to right, transparent calc(33.33% - .5px), rgba(255, 255, 255, .45) calc(33.33% - .5px) calc(33.33% + .5px), transparent calc(33.33% + .5px) calc(66.66% - .5px), rgba(255, 255, 255, .45) calc(66.66% - .5px) calc(66.66% + .5px), transparent calc(66.66% + .5px)); }
.camera-view.grid::after { background: linear-gradient(to bottom, transparent calc(33.33% - .5px), rgba(255, 255, 255, .45) calc(33.33% - .5px) calc(33.33% + .5px), transparent calc(33.33% + .5px) calc(66.66% - .5px), rgba(255, 255, 255, .45) calc(66.66% - .5px) calc(66.66% + .5px), transparent calc(66.66% + .5px)); }
.camera-count { position: absolute; inset: 0; display: grid; place-items: center; font-size: 120px; font-weight: 700; color: #fff; text-shadow: 0 4px 24px rgba(0, 0, 0, .5); pointer-events: none; }
.camera-count.tick { animation: tick 1s var(--ease-out); }
@keyframes tick { from { transform: scale(1.35); opacity: 0; } 30% { opacity: 1; } }
.camera-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.camera-flash.go { animation: shutter 260ms ease-out; }
@keyframes shutter { from { opacity: .85; } to { opacity: 0; } }
.camera-zoom { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 6px; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, .4); }
.camera-zoom button { min-width: 40px; height: 34px; padding: 0 8px; border: 0; border-radius: 999px; background: transparent; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.camera-zoom button.on { background: rgba(255, 255, 255, .92); color: var(--navy-ink); }
.camera.busy .camera-shutter { opacity: .5; }
.camera-bottom { padding: 18px 28px calc(22px + var(--safe-b)); }
.camera-view { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.camera-view video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.camera-frame { position: absolute; left: 50%; top: 50%; width: min(86%, 560px); aspect-ratio: 1.75; transform: translate(-50%, -50%); border: 2px solid rgba(255, 255, 255, .9); border-radius: 14px; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .35); }
.camera-icon { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; display: grid; place-items: center; cursor: pointer; }
.camera-icon svg { width: 24px; height: 24px; }
.camera-shutter { width: 76px; height: 76px; border-radius: 50%; border: 5px solid #fff; background: rgba(255, 255, 255, .25); cursor: pointer; transition: transform 120ms var(--ease-out); }
.camera-shutter:active { transform: scale(.92); background: #fff; }
.camera-msg { margin: auto; width: min(100%, 420px); padding: 24px 16px calc(24px + var(--safe-b)); display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.camera-msg p { color: rgba(255, 255, 255, .85); }
.camera-msg .stack { width: 100%; }
.camera-msg-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--blue-deep); display: grid; place-items: center; }
.camera-msg-icon svg { width: 36px; height: 36px; }
.camera-msg .btn.ghost { color: #fff; }
.shot { position: relative; border-radius: 14px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); aspect-ratio: 1.6; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot .tag { position: absolute; left: 10px; top: 10px; }
.shot .remove { position: absolute; right: 8px; top: 8px; background: rgba(255, 255, 255, .92); }
.shots { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.shots.multi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.add-back { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border: 1px dashed var(--blue-soft); border-radius: var(--radius); color: var(--blue-deep); font-weight: 700; cursor: pointer; background: var(--surface); }
.add-back input { display: none; }
button.cam-btn, button.add-back { width: 100%; border: 0; font: inherit; }
button.add-back { border: 1px dashed var(--blue-soft); }
.temp-opts { display: flex; gap: 8px; }
.temp-opts button { flex: 1; min-height: 46px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; transition: transform 120ms var(--ease-out); }
.temp-opts button:active { transform: scale(.97); }
.temp-opts button.on[data-v=hot] { background: var(--danger-mist); border-color: #E0A8A3; color: var(--danger); }
.temp-opts button.on[data-v=warm] { background: var(--warn-mist); border-color: #E8C98A; color: var(--warn); }
.temp-opts button.on[data-v=cold] { background: var(--blue-mist); border-color: var(--blue-soft); color: var(--blue-deep); }
.queue-item .thumb-sm { width: 56px; height: 36px; border-radius: 6px; object-fit: cover; flex: none; border: 1px solid var(--line); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--grey); }
.status-dot.processing, .status-dot.queued { background: var(--blue); animation: pulse 1.2s ease-in-out infinite; }
.status-dot.done { background: var(--green); }
.status-dot.needs_review, .status-dot.failed { background: #D98A00; }
.reading { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 16px; text-align: center; }
.match-box { border: 1px solid var(--blue-soft); background: var(--blue-mist); border-radius: var(--radius); padding: 12px; }
.match-opt { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); margin-top: 8px; cursor: pointer; }
.match-opt.sel { border-color: var(--blue-deep); box-shadow: 0 0 0 2px var(--blue-mist); }
.sticky-actions { position: sticky; bottom: calc(var(--nav-h) + var(--safe-b)); background: linear-gradient(to top, var(--bg) 75%, rgba(255, 255, 255, 0)); padding: 14px 0 8px; margin-top: 8px; z-index: 5; }
@media (min-width: 960px) { .sticky-actions { bottom: 0; } }

/* ---------- profile ---------- */
.profile-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 22px 16px 16px; }
.profile-head h1 { font-size: 24px; }
.profile-head .role { color: var(--slate); }
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0 16px 16px; }
.quick-actions a, .quick-actions button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 10px; background: var(--blue-mist); border: 0; color: var(--blue-deep); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: transform 120ms var(--ease-out); }
.quick-actions a:active { transform: scale(.96); }
.quick-actions svg { width: 22px; height: 22px; }
.quick-actions .disabled { opacity: .4; pointer-events: none; background: var(--surface-2); color: var(--slate); }
.kv { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 8px 12px; font-size: 15px; margin: 0; }
.kv dt { color: var(--slate); font-weight: 700; }
.kv dd { margin: 0; word-break: break-word; }
.timeline { display: flex; flex-direction: column; }
.tl-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.tl-item:last-child { border: 0; }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); margin-top: 7px; flex: none; }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 640px) { .thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 6px; font-size: 12px; color: #fff; background: rgba(30, 30, 30, .62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb.card-img { aspect-ratio: 1.6; }
.check-list { list-style: none; padding: 0; margin: 6px 0 0; font-size: 14px; }
.check-list li { display: flex; gap: 6px; align-items: center; padding: 2px 0; }
.check-list .y { color: var(--green-deep); font-weight: 700; } .check-list .n { color: var(--danger); font-weight: 700; }
.meter { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.meter > i { display: block; height: 100%; background: var(--green); }

/* ---------- events ---------- */
.event-card { display: flex; gap: 12px; padding: 14px; cursor: pointer; color: var(--ink); }
.event-card:active { background: var(--surface-2); }
.date-tile { width: 56px; flex: none; text-align: center; border-radius: 10px; background: var(--blue-mist); color: var(--blue-deep); padding: 6px 0; }
.date-tile b { display: block; font-size: 24px; line-height: 1; }
.date-tile span { font-size: 13px; font-weight: 700; }

/* ---------- campaign ---------- */
.steps { display: flex; flex-direction: column; gap: 10px; }
.step { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.step.off { opacity: .55; }
.step .num { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--blue-deep); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.step.off .num { background: var(--grey); }
.campaign-banner { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius); flex-wrap: wrap; }
.campaign-banner.running { background: var(--green-mist); }
.campaign-banner.draft, .campaign-banner.paused { background: var(--blue-mist); }
.campaign-banner.completed { background: var(--surface-2); }

/* ---------- studio ---------- */
.studio { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .studio { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } .studio .preview-pane { position: sticky; top: 76px; } }
.toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius-sm) var(--radius-sm) 0 0; background: var(--surface-2); }
.toolbar button { min-width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; font: inherit; font-weight: 700; color: var(--ink); padding: 0 8px; }
.toolbar button:active { background: var(--surface); }
.editor { min-height: 320px; padding: 14px; border: 1px solid var(--line); border-radius: 0 0 var(--radius-sm) var(--radius-sm); background: var(--surface); outline: none; overflow: auto; font-size: 16px; }
.editor:focus { border-color: var(--blue-deep); }
textarea.code { font-family: ui-monospace, Consolas, monospace; font-size: 14px; min-height: 320px; border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.preview-frame { width: 100%; height: 680px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.tag-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-pick button { border: 1px solid var(--blue-soft); background: var(--blue-mist); color: var(--blue-deep); border-radius: 8px; min-height: 34px; padding: 0 10px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }

/* ---------- import ---------- */
.dropzone { display: grid; place-items: center; gap: 8px; padding: 36px 16px; border: 2px dashed var(--blue-soft); border-radius: 16px; background: var(--surface); text-align: center; cursor: pointer; color: var(--blue-deep); }
.dropzone.over { background: var(--blue-mist); }
.dropzone svg { width: 42px; height: 42px; }
.dropzone input { display: none; }
.file-chip { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--green-mist); color: var(--green-deep); font-weight: 700; }
.map-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .map-row { grid-template-columns: 1fr 1fr 1.4fr; align-items: center; gap: 12px; } }
.map-row .sample { font-size: 14px; color: var(--slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- sign in ---------- */
.auth { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: calc(24px + var(--safe-t)) 16px calc(24px + var(--safe-b)); background: var(--bg); }
.auth .panel { width: min(420px, 100%); }
.auth .logo { width: 230px; height: auto; margin: 0 auto 6px; }
.auth .tagline { text-align: center; font-size: 17px; margin-bottom: 18px; }
.auth .foot { font-size: 14px; color: var(--slate); text-align: center; }

.integration { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.integration:last-child { border: 0; }
.callout { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--blue-mist); font-size: 15px; color: var(--ink); }
.callout.warn { background: var(--warn-mist); color: #5C3D00; }
.callout.ok { background: var(--green-mist); color: #0E5543; }
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(30, 30, 30, .92); display: grid; place-items: center; padding: 16px; }
.lightbox img { max-height: 90dvh; max-width: 100%; border-radius: 8px; }
.count-badge { background: var(--blue-deep); color: #fff; border-radius: 999px; padding: 0 8px; font-size: 12px; font-weight: 700; min-width: 22px; text-align: center; }

/* =====================================================================
   Premium finish in QC colours: Deep Blue frame, pale blue canvas, lifted panels.
   The one bold element is the capture panel on Scan / Photo.
   ===================================================================== */
h1 { font-size: 28px; letter-spacing: -0.015em; }
h2 { font-size: 21px; letter-spacing: -0.01em; }
.page-head h1 { color: var(--navy-ink); }

/* frame */
.topbar { background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-bottom-color: rgba(30, 90, 128, .08); }
.topbar .title { font-size: 19px; color: var(--navy-ink); }
.bottomnav { background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-top-color: rgba(30, 90, 128, .08); box-shadow: 0 -8px 24px -18px rgba(30, 90, 128, .35); }
.bottomnav a.active { color: var(--navy); }
.bottomnav .fab span.btn-fab { background: var(--navy); border-color: var(--bg); box-shadow: 0 10px 22px -8px rgba(30, 90, 128, .6); }
@media (min-width: 960px) {
  .sidebar { background: var(--navy); border-right: 0; color: #fff; }
  .sidebar .brandmark { justify-content: center; margin-bottom: 18px; padding: 14px 12px; border-radius: 14px; background: #fff; box-shadow: 0 8px 20px -12px rgba(0, 0, 0, .35); }
  .sidebar .brandmark img { width: 176px; }
  .sidebar a.nav { color: rgba(255, 255, 255, .78); position: relative; }
  .sidebar a.nav svg { color: rgba(255, 255, 255, .6); }
  .sidebar a.nav.active { background: rgba(255, 255, 255, .1); color: #fff; }
  .sidebar a.nav.active svg { color: var(--green); }
  .sidebar a.nav.active::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--green); }
  .sidebar .scan-cta.btn { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 10px 22px -10px rgba(34, 167, 133, .8); }
  .sidebar .me { color: rgba(255, 255, 255, .66); border-top-color: rgba(255, 255, 255, .12); }
  .sidebar .me b { color: #fff; }
  .sidebar .me a { color: #9FD3EE; }
  .sidebar .me .tagline { color: rgba(255, 255, 255, .82); }
}
@media (min-width: 960px) and (hover: hover) and (pointer: fine) {
  .sidebar a.nav:hover { background: rgba(255, 255, 255, .06); color: #fff; }
  .sidebar a.nav.active:hover { background: rgba(255, 255, 255, .1); }
  .sidebar .scan-cta.btn:hover { background: var(--green-deep); }
}

/* panels and controls */
.card, .stat, .step, .match-opt { box-shadow: var(--shadow-1); }
.card { border-color: rgba(30, 90, 128, .09); }
.stat b { font-size: 32px; color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.btn.primary { background: var(--action); box-shadow: 0 8px 18px -10px rgba(47, 127, 176, .9); }
.btn.lg { border-radius: 12px; }
input, select, textarea { border-color: #D3DDE5; }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 4px var(--blue-mist); }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--navy); box-shadow: 0 1px 3px rgba(30, 90, 128, .14); }
.date-tile { background: var(--navy); color: #fff; }
.date-tile span { opacity: .8; }
.toast { background: var(--navy-ink); border-radius: 12px; }
.overlay { background: rgba(30, 90, 128, .46); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.sheet { border-radius: 22px 22px 0 0; }
@media (min-width: 700px) { .sheet { border-radius: 20px; box-shadow: var(--shadow-2); } }
.sticky-actions { background: linear-gradient(to top, var(--bg) 75%, rgba(242, 246, 249, 0)); }
.event-pill { background: var(--surface); border: 1px solid rgba(30, 90, 128, .09); box-shadow: var(--shadow-1); color: var(--navy); }
.event-pill select { color: var(--navy); }
.auth { background: radial-gradient(120% 60% at 50% 0%, #E3EFF7 0%, var(--bg) 60%); }
.auth .card { box-shadow: var(--shadow-2); border: 0; }
.sso-btn { gap: 12px; border-color: #C9D2D9; background: #fff; color: #2F2F2F; font-weight: 700; }
.zoho-mark { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 5px; background: #E42527; color: #fff; font-size: 14px; font-weight: 700; line-height: 1; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
a.forgot { font-weight: 700; font-size: 14px; }

/* QuickClean home: app tiles. Event Manager's menu is hidden here. */
body.on-hub .sidebar, body.on-hub .bottomnav { display: none; }
body.on-hub .shell { display: block; }
body.on-hub main.content { padding-bottom: calc(32px + var(--safe-b)); }
body.on-hub .install-pop { bottom: calc(var(--safe-b) + 12px); }
.hub { max-width: 980px; margin: 0 auto; }
.hub-live, .hub-grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .hub-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hub-app { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid rgba(30, 90, 128, .09); box-shadow: var(--shadow-1); color: var(--ink); }
.hub-icon { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--blue-mist); color: var(--navy); }
.hub-icon svg { width: 26px; height: 26px; }
.hub-text { flex: 1; min-width: 0; }
.hub-text b, .hub-text small { display: block; }
.hub-text b { font-size: 17px; }
.hub-app.live { padding: 22px 20px; color: #fff; background: linear-gradient(150deg, var(--blue) 0%, var(--blue-deep) 55%, var(--action-press) 100%); border: 0; box-shadow: 0 22px 44px -22px rgba(47, 127, 176, .75); transition: transform 140ms var(--ease-out); }
.hub-app.live:active { transform: scale(.985); }
.hub-app.live .hub-icon { width: 64px; height: 64px; border-radius: 18px; background: rgba(255, 255, 255, .18); color: #fff; }
.hub-app.live .hub-icon svg { width: 32px; height: 32px; }
.hub-app.live .hub-text b { font-size: 22px; }
.hub-app.live small { color: rgba(255, 255, 255, .88); }
.hub-open { display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 8px 14px; border-radius: 999px; background: #fff; color: var(--navy); font-weight: 700; }
.hub-open svg.flip-x { transform: scaleX(-1); }
.hub-app.soon { opacity: .78; align-items: flex-start; }
.hub-app.soon .chip { margin-top: 8px; }
body.on-hub .topbar .brandmark.hide-desktop { display: flex !important; }
.hub-user { font-weight: 700; color: var(--slate); margin-right: 4px; }
.hub-app.soon .hub-icon { background: var(--surface-2); color: var(--slate); }
.sidebar .app-label { margin: 14px 12px 8px; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .6); }
@media (max-width: 520px) { .hub-app.live { flex-wrap: wrap; } .hub-app.live .hub-text { flex: 1 1 calc(100% - 82px); } .hub-open { margin-left: 78px; } }

/* installed app on a computer with "window controls overlay": the page draws its own title bar */
@media (display-mode: window-controls-overlay) {
  body::before { content: "QC Event Manager"; position: fixed; z-index: 300; left: env(titlebar-area-x, 0); top: env(titlebar-area-y, 0); width: env(titlebar-area-width, 100%); height: env(titlebar-area-height, 33px); display: flex; align-items: center; padding-left: 12px; font-size: 13px; font-weight: 700; color: #fff; background: var(--navy); -webkit-app-region: drag; app-region: drag; }
  body { padding-top: env(titlebar-area-height, 33px); }
  .topbar { top: env(titlebar-area-height, 33px); }
  .sidebar { top: env(titlebar-area-height, 33px); height: calc(100dvh - env(titlebar-area-height, 33px)); }
}

/* install the app */
.install-pop { position: fixed; z-index: 110; left: 12px; right: 12px; bottom: calc(var(--nav-h) + var(--safe-b) + 12px); display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: var(--surface); box-shadow: 0 18px 40px -12px rgba(30, 90, 128, .45); border: 1px solid rgba(30, 90, 128, .1); animation: up 240ms var(--ease-out); }
.install-pop img { border-radius: 10px; flex: none; }
.install-pop b { display: block; }
.install-pop small { display: block; line-height: 1.3; }
body:not(:has(.bottomnav)) .install-pop { bottom: calc(var(--safe-b) + 12px); } /* sign-in page has no bottom bar */
@media (min-width: 960px) { .install-pop { left: auto; right: 24px; bottom: 24px; width: 440px; } }
.install-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.install-head img { border-radius: 12px; box-shadow: var(--shadow-1); }
.install-head b, .install-head small { display: block; }
.install-steps { margin: 0 0 14px; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.install-steps li { padding-left: 4px; }

/* capture panel: clean QC Blue (cards) / QC Green (photos), with the QC mark faintly in the corner */
.cam-btn {
  min-height: 44dvh; border-radius: 24px; overflow: hidden; isolation: isolate;
  background: linear-gradient(150deg, var(--blue) 0%, var(--blue-deep) 55%, var(--action-press) 100%);
  box-shadow: 0 22px 44px -22px rgba(47, 127, 176, .75), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.cam-btn.photo {
  background: linear-gradient(150deg, #3DBB99 0%, var(--green) 50%, var(--green-deep) 100%);
  box-shadow: 0 22px 44px -22px rgba(22, 132, 104, .75), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.cam-btn::after { content: ""; position: absolute; z-index: -1; right: -40px; bottom: -48px; width: min(62%, 240px); aspect-ratio: 56 / 58; background: url('/brand/qc-mark.png') center / contain no-repeat; opacity: .12; filter: brightness(0) invert(1); pointer-events: none; }
.cam-btn svg { width: 104px; height: 104px; padding: 22px; border-radius: 50%; background: rgba(255, 255, 255, .16); box-shadow: 0 0 0 1px rgba(255, 255, 255, .28), 0 0 0 10px rgba(255, 255, 255, .07); }
.cam-btn b { font-size: 25px; letter-spacing: -0.01em; }
.cam-btn span { max-width: 34ch; line-height: 1.4; }
.cam-btn:active { filter: brightness(.94); }
.gallery-btn { border-color: rgba(30, 90, 128, .1); box-shadow: var(--shadow-1); color: var(--navy); }
button.gallery-btn { width: 100%; font: inherit; font-size: 17px; font-weight: 700; }

/* card / photo switch */
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid rgba(30, 90, 128, .09); box-shadow: var(--shadow-1); }
.mode-switch a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 10px; font-weight: 700; color: var(--slate); transition: background-color 160ms var(--ease-out), color 160ms; }
.mode-switch a[aria-selected="true"] { background: var(--navy); color: #fff; }

/* photo with guest */
.avatar.xs { width: 28px; height: 28px; font-size: 11px; }
.avatar.xs .badge-li { display: none; }
.photo-hero { position: relative; border-radius: 20px; overflow: hidden; background: var(--navy-ink); box-shadow: var(--shadow-2); }
.photo-hero img { width: 100%; max-height: 52dvh; object-fit: contain; margin: 0 auto; }
.photo-hero .retake { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--navy); font: inherit; font-weight: 700; cursor: pointer; }
.photo-edit { position: relative; display: flex; flex-direction: column; gap: 12px; }
.photo-edit .retake { position: absolute; right: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--navy); font: inherit; font-weight: 700; cursor: pointer; box-shadow: var(--shadow-1); }
.photo-stage { display: grid; place-items: center; padding: 12px; border-radius: 20px; background: #E6EEF4; }
.photo-stage canvas { display: block; max-width: 100%; max-height: 56dvh; width: auto; height: auto; border-radius: 6px; box-shadow: var(--shadow-2); }
.edit-tools { display: flex; flex-direction: column; gap: 12px; }
.edit-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 8px; }
.edit-row > span { font-size: 14px; font-weight: 700; color: var(--slate); }
.edit-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.edit-chips::-webkit-scrollbar { display: none; }
.edit-chips button { flex: none; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid #D3DDE5; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background-color 120ms, color 120ms, border-color 120ms; }
.edit-chips button[aria-checked="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.picker { display: flex; flex-direction: column; gap: 12px; }
.picker .seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
@media (min-width: 560px) { .picker .seg { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.guest-results { max-height: 320px; overflow-y: auto; }
.picker .seg button { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 6px; }
.picker .seg button svg { width: 16px; height: 16px; flex: none; }
.picker .seg button span { overflow: hidden; text-overflow: ellipsis; }
.picked { display: flex; flex-wrap: wrap; gap: 8px; }
.picked-empty { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px; width: 100%; border-radius: var(--radius-sm); border: 1px dashed #C6D3DD; color: var(--slate); font-size: 15px; }
.person-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 4px; border-radius: 999px; background: var(--blue-mist); color: var(--navy); }
.person-chip > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.person-chip b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person-chip small { font-size: 12px; color: var(--slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person-chip .x { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .7); color: var(--navy); cursor: pointer; }
.person-chip .x svg { width: 15px; height: 15px; }
.tagnew, .tagzoho, .tagin { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; white-space: nowrap; }
.tagnew { background: var(--green-mist); color: var(--green-deep); }
.tagzoho { background: #FDECDC; color: #A04B0B; }
.tagin { background: var(--blue-mist); color: var(--blue-deep); }
.searchbox { display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid #D3DDE5; border-radius: var(--radius-sm); background: var(--surface); transition: border-color 120ms, box-shadow 120ms; }
.searchbox:focus-within { border-color: var(--blue-deep); box-shadow: 0 0 0 4px var(--blue-mist); }
.searchbox svg { color: var(--slate); }
.searchbox input, .searchbox input:focus { border: 0; box-shadow: none; padding-left: 0; }
.results { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.results-hint { display: flex; justify-content: center; margin: 0; padding: 14px 8px; color: var(--muted); font-size: 15px; text-align: center; }
.results-hint.error { color: var(--danger); }
.result { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 1px solid rgba(30, 90, 128, .08); border-radius: 12px; background: var(--surface); font: inherit; text-align: left; color: var(--ink); cursor: pointer; transition: transform 120ms var(--ease-out), border-color 120ms; }
.result:active { transform: scale(.985); }
.result .meta { flex: 1; min-width: 0; }
.result .meta b, .result .meta small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result .add { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; }
.result .add svg { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) { .result:hover { border-color: var(--blue-soft); } }
.newlead .btn { border-style: dashed; color: var(--navy); }

/* event photos */
.photo-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
@media (min-width: 640px) { .photo-actions { grid-template-columns: 1.4fr 1fr; } }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gallery-item { position: relative; display: block; aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: var(--surface-2); cursor: pointer; box-shadow: var(--shadow-1); font: inherit; transition: transform 140ms var(--ease-out); }
.gallery-item:active { transform: scale(.98); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 6px; padding: 28px 10px 10px; color: #fff; font-size: 14px; font-weight: 700; text-align: left; background: linear-gradient(to top, rgba(30, 90, 128, .86), rgba(30, 90, 128, 0)); }
.gallery-cap .faces { display: flex; flex: none; }
.gallery-cap .faces .avatar { box-shadow: 0 0 0 2px #fff; }
.gallery-cap .faces .avatar + .avatar { margin-left: -8px; }
.gallery-cap .names { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gallery-item.untagged { outline: 2px dashed rgba(34, 167, 133, .9); outline-offset: -2px; }
.gallery-item.untagged .gallery-cap { background: linear-gradient(to top, rgba(22, 132, 104, .9), rgba(22, 132, 104, 0)); }
.sheet-photo { width: 100%; max-height: 34dvh; object-fit: contain; border-radius: 14px; background: var(--navy-ink); margin-bottom: 14px; cursor: zoom-in; }

/* =====================================================================
   QC Moments: event photo booth, live gallery and the big screens
   ===================================================================== */
.hub-app.live.app-moments { background: linear-gradient(150deg, #3DBB99 0%, var(--green) 50%, var(--green-deep) 100%); box-shadow: 0 22px 44px -22px rgba(22, 132, 104, .75); }
.hub-app.live.app-moments .hub-open { color: var(--green-deep); }
@media (min-width: 900px) { .hub-live { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.moment-events { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .moment-events { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.moment-event { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; min-height: 96px; padding: 18px; border-radius: 18px; color: #fff; box-shadow: var(--shadow-2); }
.moment-event.theme-diwali { background: linear-gradient(135deg, #5B1338 0%, #8C1C3F 45%, #C2410C 100%); }
.moment-event.theme-quickclean { background: linear-gradient(150deg, var(--blue) 0%, var(--blue-deep) 60%, var(--navy-ink) 100%); }
.moment-event.theme-plain { background: linear-gradient(150deg, #475569, #1E293B); }
.moment-event .me-glow { position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 210, 110, .55), rgba(255, 210, 110, 0) 70%); }
.moment-event .me-body { flex: 1; min-width: 0; position: relative; }
.moment-event b { display: block; font-size: 19px; }
.moment-event small { color: rgba(255, 255, 255, .85); }
.moment-event .chip { position: relative; }

.moment-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.moment-head h1 { font-size: 24px; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #DC2626; color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.2s ease-in-out infinite; }
.m-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 14px; background: var(--surface); border: 1px solid rgba(30, 90, 128, .09); box-shadow: var(--shadow-1); }
.m-tabs button { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 52px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: 13px; font-weight: 700; color: var(--slate); cursor: pointer; }
.m-tabs button svg { width: 20px; height: 20px; }
.m-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.moment.theme-diwali .m-tabs button[aria-selected="true"] { background: linear-gradient(135deg, #8C1C3F, #C2410C); }
@media (min-width: 640px) { .m-tabs button { flex-direction: row; justify-content: center; gap: 8px; font-size: 15px; min-height: 46px; } }

.m-capture { max-width: 620px; margin: 0 auto; }
.moment.theme-diwali .cam-btn.m-shoot { background: linear-gradient(150deg, #E2742B 0%, #B3203F 55%, #5B1338 100%); box-shadow: 0 22px 44px -22px rgba(140, 28, 63, .8); }
.m-stage { display: grid; place-items: center; padding: 12px; border-radius: 20px; background: #E6EEF4; }
.moment.theme-diwali .m-stage { background: linear-gradient(135deg, #2A0B1E, #4A1430); }
.m-stage canvas { display: block; max-width: 100%; max-height: 58dvh; width: auto; height: auto; border-radius: 8px; box-shadow: var(--shadow-2); }
.frame-strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.frame-strip::-webkit-scrollbar { display: none; }
.frame-opt { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 82px; padding: 6px; border: 2px solid transparent; border-radius: 12px; background: var(--surface-2); font: inherit; cursor: pointer; }
.frame-opt canvas { width: 66px; height: 66px; object-fit: contain; border-radius: 6px; background: #fff; }
.frame-opt small { font-size: 12px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.frame-opt[aria-checked="true"] { border-color: var(--navy); background: var(--blue-mist); }
.moment.theme-diwali .frame-opt[aria-checked="true"] { border-color: #C2410C; background: #FFF1E6; }
.m-posted { max-width: 520px; margin: 0 auto; }
.m-posted-card { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-2); background: #000; }
.m-posted-card img { width: 100%; max-height: 60dvh; object-fit: contain; }
.m-posted-card .live-dot { position: absolute; left: 12px; top: 12px; }

.m-count { margin: 0 0 8px; font-size: 14px; }
.m-grid { display: grid; gap: 4px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 640px) { .m-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; } }
@media (min-width: 1000px) { .m-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.m-tile { position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: var(--surface-2); cursor: pointer; }
.m-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 200ms var(--ease-out); }
.m-tile:active img { transform: scale(.97); }
.m-tile.is-hidden img { opacity: .35; }
.m-tile .chip { position: absolute; left: 6px; top: 6px; }
.m-tile.is-new { animation: m-new 700ms var(--ease-out); box-shadow: 0 0 0 3px var(--green); }
@keyframes m-new { from { opacity: 0; transform: scale(.85); } }
.m-view { width: 100%; max-height: 70dvh; object-fit: contain; border-radius: 12px; background: #000; }
.m-seg { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
.m-seg button { display: flex; align-items: center; justify-content: center; gap: 6px; }
.m-selfie { max-width: 520px; }
.m-finding { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.m-qr-card { align-items: flex-start; }
.m-qr { width: 200px; height: 200px; padding: 8px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; }
.m-qr svg { width: 100%; height: 100%; }
.m-screen { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); flex-wrap: wrap; }
.m-screen > span { display: flex; align-items: center; gap: 8px; }
.check-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14px; cursor: pointer; }
.check-chip input { width: 18px; height: 18px; }
.chip-x { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 4px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.chip-x svg { width: 12px; height: 12px; }

/* ----- live screens (TV, OBS) ----- */
body.on-live { overflow: hidden; background: #0B0710; }
.live-screen { position: fixed; inset: 0; overflow: hidden; color: #fff; display: flex; flex-direction: column; font-family: var(--font); }
.live-screen.hide-cursor { cursor: none; }
.live-bg { position: absolute; inset: 0; z-index: 0; }
.live-screen.theme-diwali .live-bg { background: radial-gradient(120% 90% at 20% 0%, #6B1A3A 0%, #3A0D24 45%, #12060E 100%); }
.live-screen.theme-diwali .live-bg::after { content: ""; position: absolute; inset: 0; opacity: .5; background-image: radial-gradient(2px 2px at 12% 18%, #FFD86B, transparent), radial-gradient(1.5px 1.5px at 72% 12%, #FFB347, transparent), radial-gradient(2px 2px at 88% 64%, #FFD86B, transparent), radial-gradient(1.5px 1.5px at 34% 82%, #FF8A65, transparent), radial-gradient(2px 2px at 54% 42%, #FFE6A0, transparent), radial-gradient(1.5px 1.5px at 6% 58%, #FFD86B, transparent); animation: twinkle 5s ease-in-out infinite alternate; }
.live-screen.theme-quickclean .live-bg, .live-screen.theme-plain .live-bg { background: radial-gradient(120% 90% at 20% 0%, #2F7FB0 0%, #1E5A80 40%, #0A1E2C 100%); }
@keyframes twinkle { to { opacity: .9; } }
.live-head { position: relative; z-index: 2; display: flex; align-items: center; gap: 2vmin; padding: 2.2vmin 3vmin 1.4vmin; }
.live-logo { height: 4.6vmin; width: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)); }
.live-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .4vmin; }
.live-title b { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 4.4vmin; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-screen.theme-diwali .live-title b { background: linear-gradient(90deg, #F8DE8A, #E9B44C, #F8DE8A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.live-badge { display: inline-flex; align-items: center; gap: .8vmin; font-size: 1.9vmin; font-weight: 700; letter-spacing: .02em; color: rgba(255, 255, 255, .85); }
.live-badge i { width: 1.2vmin; height: 1.2vmin; border-radius: 50%; background: #EF4444; box-shadow: 0 0 0 .5vmin rgba(239, 68, 68, .3); animation: pulse 1.2s ease-in-out infinite; }
.live-join { display: flex; align-items: center; gap: 1.2vmin; padding: 1vmin 1.4vmin 1vmin 1vmin; border-radius: 1.8vmin; background: rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 1.8vmin; font-weight: 700; line-height: 1.2; }
.live-join small { font-weight: 400; opacity: .8; }
.live-qr { width: 9vmin; height: 9vmin; padding: .6vmin; border-radius: 1vmin; background: #fff; }
.live-qr svg { width: 100%; height: 100%; display: block; }
.live-stage { position: relative; z-index: 1; flex: 1; min-height: 0; display: grid; gap: 1.6vmin; padding: 0 3vmin 3vmin; }
.live-stage.layout-spotlight { grid-template-columns: 2fr 1fr; grid-template-rows: repeat(4, minmax(0, 1fr)); }
.live-stage.layout-spotlight .live-tile.is-main { grid-row: 1 / -1; }
.live-tile { position: relative; overflow: hidden; border-radius: 2.2vmin; background: rgba(255, 255, 255, .06); box-shadow: 0 2vmin 5vmin -2vmin rgba(0, 0, 0, .6); }
.live-layer { position: absolute; inset: 0; transition: opacity 1000ms ease, transform 1000ms cubic-bezier(.16, 1, .3, 1); }
.live-layer.entering { opacity: 0; transform: scale(1.04); }
.live-blur { position: absolute; inset: -20px; background-size: cover; background-position: center; filter: blur(24px) brightness(.55) saturate(1.2); }
.live-layer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; animation: kenburns 14s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.05); } }
.live-by { position: absolute; left: 1.4vmin; bottom: 1.4vmin; padding: .5vmin 1.2vmin; border-radius: 999px; background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 1.6vmin; font-weight: 700; }
.live-by:empty { display: none; }
.live-toast { position: absolute; z-index: 3; left: 50%; bottom: 4vmin; transform: translateX(-50%); padding: 1.2vmin 2.4vmin; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #1E1E1E; font-size: 2.2vmin; box-shadow: 0 1vmin 4vmin rgba(0, 0, 0, .4); }
.live-empty { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1vmin; text-align: center; }
.live-empty b { font-size: 4vmin; }
.live-empty span { font-size: 2.4vmin; opacity: .8; }
.live-controls { position: absolute; z-index: 4; right: 2vmin; bottom: 2vmin; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(15, 10, 20, .78); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity 250ms ease; }
.live-controls.show { opacity: 1; pointer-events: auto; }
.live-controls label { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.live-controls select { width: auto; min-height: 34px; padding: 4px 8px; font-size: 14px; background: #fff; }
.live-controls button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 0; border-radius: 10px; background: #fff; color: #1E1E1E; font: inherit; font-weight: 700; cursor: pointer; }
/* 9:16 story screen for OBS → Instagram Live: stays 9:16 and centred in any window */
.live-screen.live-story { width: min(100vw, calc(100vh * 9 / 16)); height: min(100vh, calc(100vw * 16 / 9)); inset: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.live-story .live-head { flex-wrap: wrap; justify-content: center; text-align: center; padding: 4vmin 4vmin 2vmin; }
.live-story .live-logo { height: 5vmin; }
.live-story .live-title { flex-basis: 100%; align-items: center; }
.live-story .live-title b { font-size: 6vmin; white-space: normal; }
.live-story .live-badge { font-size: 2.6vmin; }
.live-story .live-join { position: absolute; right: 3vmin; bottom: 3vmin; z-index: 3; font-size: 2.2vmin; }
.live-story .live-qr { width: 12vmin; height: 12vmin; }
.live-story .live-stage { padding: 0 4vmin 18vmin; }
.live-story .live-by { font-size: 2.6vmin; left: 2vmin; bottom: 2vmin; }
@media (prefers-reduced-motion: reduce) { .live-layer img, .live-screen.theme-diwali .live-bg::after { animation: none; } }
.live-empty[hidden], .live-toast[hidden] { display: none; }
/* live chat on the big screens */
.live-body { position: relative; z-index: 1; flex: 1; min-height: 0; display: flex; }
.live-body .live-stage { flex: 1; min-width: 0; }
.live-chat { width: 26vw; max-width: 420px; margin: 0 3vmin 3vmin 0; padding: 2vmin; border-radius: 2.2vmin; background: rgba(255, 255, 255, .07); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); display: flex; flex-direction: column; overflow: hidden; }
.live-chat-title { font-size: 1.6vmin; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .6); margin-bottom: 1.4vmin; }
.live-chat-list { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 1.2vmin; overflow: hidden; }
.live-msg { display: flex; flex-direction: column; gap: .3vmin; padding: 1.2vmin 1.5vmin; border-radius: 1.6vmin; background: rgba(0, 0, 0, .28); animation: up 400ms var(--ease-out); }
.live-msg b { font-size: 1.6vmin; color: #E8C77A; }
.live-msg span { font-size: 2.1vmin; line-height: 1.3; overflow-wrap: anywhere; }
.live-screen.live-story .live-body { flex-direction: column; }
.live-screen.live-story .live-chat { position: absolute; left: 4vmin; right: 4vmin; bottom: 19vmin; width: auto; max-width: none; margin: 0; background: rgba(0, 0, 0, .35); z-index: 2; }
.live-screen.live-story .live-chat-title { display: none; }
.live-screen.live-story .live-msg span { font-size: 2.6vmin; }

/* ----- Print studio: polaroids on A4 ----- */
.print-studio { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .print-studio { grid-template-columns: 380px minmax(0, 1fr); align-items: start; } .ps-side { position: sticky; top: 76px; max-height: calc(100dvh - 96px); overflow-y: auto; } }
.ps-side { display: flex; flex-direction: column; gap: 14px; }
.ps-block { display: flex; flex-direction: column; gap: 8px; }
.ps-row { flex-direction: row; flex-wrap: wrap; gap: 12px; }
.ps-row label { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 150px; font-size: 13px; font-weight: 700; color: var(--cine-mute, var(--slate)); }
.ps-row label.switch { flex-direction: row; align-items: center; }
.ps-label { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cine-mute, var(--slate)); }
.ps-sizes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ps-sizes button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px; border-radius: 14px; border: 1px solid var(--cine-line, var(--line)); background: rgba(255, 255, 255, .04); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ps-sizes button[aria-pressed="true"] { border-color: var(--cine-accent, var(--blue-deep)); background: rgba(232, 199, 122, .1); }
.ps-sizes small { font-size: 12px; }
.ps-summary { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); font-size: 15px; }
.ps-summary b { color: var(--cine-accent, var(--blue-deep)); font-size: 18px; }
.ps-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ps-thumb { position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: rgba(255, 255, 255, .05); cursor: pointer; }
.ps-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .45; transition: opacity 150ms; }
.ps-thumb[aria-pressed="true"] img { opacity: 1; }
.ps-tick { position: absolute; right: 4px; top: 4px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .45); color: transparent; }
.ps-thumb[aria-pressed="true"] .ps-tick { background: var(--cine-accent, var(--blue-deep)); color: #1A1208; }
.ps-tick svg { width: 13px; height: 13px; }
.ps-preview { --ps-scale: .5; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 12px; border-radius: 18px; background: rgba(255, 255, 255, .03); overflow: hidden; }
.ps-preview .a4 { zoom: var(--ps-scale); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); }
.a4 { position: relative; background: #FFFFFF; overflow: hidden; flex: none; }
.pol { position: absolute; background: #FBFAF6; box-shadow: 0 0 0 .2mm rgba(0, 0, 0, .06); }
.pol.guides { outline: .2mm dashed #C9C4BC; outline-offset: 1.8mm; }
.pol-photo { position: absolute; overflow: hidden; background: #ECE8E1; }
.pol-photo img { width: 100%; height: 100%; display: block; }
.pol-cap { position: absolute; left: 0; right: 0; display: flex; align-items: center; justify-content: center; padding: 0 3mm; font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 600; color: #2A2420; text-align: center; line-height: 1.1; }
.print-root { display: none; }
@media print {
  body > *:not(.print-root) { display: none !important; }
  .print-root { display: block !important; }
  .print-root .a4 { page-break-after: always; break-after: page; box-shadow: none; zoom: 1; }
  .print-root .a4:last-child { page-break-after: auto; break-after: auto; }
  html, body { background: #fff !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.m-print-link { color: inherit; }

/* chat tab (phones) */
.m-chat { display: flex; flex-direction: column; gap: 12px; max-width: 680px; margin: 0 auto; }
.m-chat-list { display: flex; flex-direction: column; gap: 8px; min-height: 40vh; max-height: 60dvh; overflow-y: auto; padding: 4px; }
.m-msg { display: flex; align-items: flex-start; gap: 4px; }
.m-msg.is-me { flex-direction: row-reverse; }
.m-msg-bubble { max-width: 80%; display: flex; flex-direction: column; gap: 2px; padding: 9px 13px; border-radius: 16px 16px 16px 4px; background: rgba(255, 255, 255, .08); }
.m-msg.is-me .m-msg-bubble { border-radius: 16px 16px 4px 16px; background: var(--cine-accent, var(--blue-deep)); color: #1A1208; }
.m-msg-bubble b { font-size: 12px; opacity: .75; }
.m-msg-bubble span { font-size: 15px; overflow-wrap: anywhere; }
.m-msg-x { width: 32px; height: 32px; color: var(--cine-mute, var(--muted)); }
.m-chat-form { position: sticky; bottom: 8px; display: flex; gap: 8px; padding: 8px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid var(--cine-line, var(--line)); }
.m-chat-form input { flex: 1; border: 0; background: transparent; color: inherit; box-shadow: none; }
.m-chat-form input:focus { box-shadow: none; }
.m-switches { display: flex; flex-direction: column; gap: 4px; }

/* ----- Team & access ----- */
.hub-app.live.app-access { background: linear-gradient(150deg, #475569 0%, #334155 55%, #1E293B 100%); box-shadow: 0 22px 44px -22px rgba(30, 41, 59, .7); }
.hub-app.live.app-access .hub-open { color: #1E293B; }
.access { max-width: 1100px; margin: 0 auto; }
.access-legend { display: grid; gap: 10px 18px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.access-legend span { display: flex; flex-direction: column; }
.access-legend b { color: var(--navy-ink); }
.access-add-sum { cursor: pointer; font-weight: 700; color: var(--action); display: flex; align-items: center; gap: 8px; }
.access-head { flex-wrap: wrap; }
.access-search { flex: 1; max-width: 320px; min-width: 200px; }
.access-table { display: flex; flex-direction: column; }
.access-row { display: grid; align-items: center; gap: 10px 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); grid-template-columns: minmax(0, 1fr); }
.access-row:last-child { border-bottom: 0; }
.access-row.is-off { opacity: .6; }
.access-cols { display: none; }
.access-person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.access-person .meta { min-width: 0; }
.access-person b, .access-person small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.access-person .chips { margin-top: 4px; }
.access-cell { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 700; color: var(--slate); }
.access-cell select { width: auto; min-width: 140px; min-height: 40px; padding: 6px 10px; font-size: 15px; }
.access-cell.switch { min-height: 40px; }
@media (min-width: 900px) {
  .access-row { grid-template-columns: minmax(220px, 1.6fr) repeat(var(--tools, 2), minmax(150px, 1fr)) 110px 100px; }
  .access-cols { display: grid; font-size: 13px; font-weight: 700; color: var(--slate); background: var(--surface-2); padding-top: 10px; padding-bottom: 10px; }
  .access-cell-label { display: none; }
  .access-cell { justify-content: flex-start; }
  .access-cell select { width: 100%; min-width: 0; }
}

/* Team & access grid: people × tools */
.access-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.access-bulk.is-on { background: var(--blue-mist); }
.access-bulk b { margin-right: 4px; font-size: 14px; }
.access-bulk select { width: auto; min-height: 36px; padding: 4px 10px; font-size: 14px; }
.access-matrix { overflow-x: auto; }
.am-row { display: grid; grid-template-columns: 36px minmax(230px, 1.4fr) repeat(var(--tools, 2), minmax(170px, 1fr)) 96px 92px; align-items: center; gap: 10px; min-width: calc(36px + 230px + var(--tools, 2) * 170px + 96px + 92px + 60px); padding: 10px 16px; border-bottom: 1px solid var(--line); }
.am-row:last-child { border-bottom: 0; }
.am-head { position: sticky; top: 0; z-index: 1; padding-top: 10px; padding-bottom: 10px; background: var(--surface-2); font-size: 13px; font-weight: 700; color: var(--slate); }
.am-row.is-off { opacity: .55; }
.am-check { display: grid; place-items: center; }
.am-check input { width: 20px; height: 20px; }
.am-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.am-person .meta { min-width: 0; }
.am-person b, .am-person small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-person .chips { margin-top: 4px; }
.am-cell select { width: 100%; min-height: 38px; padding: 4px 8px; font-size: 14px; }
.am-cell.switch { justify-content: flex-start; min-height: 38px; }
.am-label { display: none; }
.am-full { font-size: 14px; font-weight: 700; color: var(--green-deep); }
.am-hidden { font-style: normal; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--warn-mist); color: var(--warn); }
.am-tool { flex-wrap: wrap; gap: 12px 20px; cursor: default; }
.am-tool .meta { flex: 1 1 260px; }
.am-inline { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--slate); }
.am-inline select { width: auto; min-height: 36px; padding: 4px 10px; font-size: 14px; }
.am-inline.switch { justify-content: flex-start; min-height: 36px; }

/* Home (all apps) in the top bar */
.topbar .home-btn { margin-left: 2px; color: var(--navy); }

/* =====================================================================
   QC Moments, cinematic: dark canvas, gold or QC light, quiet type
   ===================================================================== */
body.cine { --cine-bg: #0D0A0C; --cine-ink: #F5EFE6; --cine-mute: rgba(245, 239, 230, .62); --cine-line: rgba(245, 239, 230, .1); --cine-accent: #E8C77A; --cine-glow: rgba(140, 40, 70, .55); background: var(--cine-bg); color: var(--cine-ink); }
body.cine[data-cine="quickclean"], body.cine[data-cine="plain"] { --cine-bg: #081521; --cine-accent: #7CC6EA; --cine-glow: rgba(47, 127, 176, .45); }
body.cine[data-cine="moments"] { --cine-bg: #0C0C10; --cine-accent: #E8C77A; --cine-glow: rgba(90, 60, 140, .4); }
body.cine .maincol { background: radial-gradient(120% 60% at 50% -10%, var(--cine-glow), transparent 60%), var(--cine-bg); min-height: 100dvh; }
body.cine .topbar { background: rgba(13, 10, 12, .72); border-bottom-color: var(--cine-line); }
body.cine[data-cine="quickclean"] .topbar, body.cine[data-cine="plain"] .topbar { background: rgba(8, 21, 33, .72); }
body.cine .topbar .title, body.cine .topbar .icon-btn, body.cine .topbar .home-btn { color: var(--cine-ink); }
body.cine .muted, body.cine small { color: var(--cine-mute); }
body.cine .page-head h1, body.cine h1, body.cine h2, body.cine h3 { color: var(--cine-ink); }
body.cine .page-head .sub { color: var(--cine-mute); }
body.cine .card { background: rgba(255, 255, 255, .04); border-color: var(--cine-line); box-shadow: none; color: var(--cine-ink); }
body.cine .btn:not(.primary):not(.danger) { background: rgba(255, 255, 255, .06); border-color: var(--cine-line); color: var(--cine-ink); }
body.cine .btn.primary { background: var(--cine-accent); border-color: var(--cine-accent); color: #1A1208; box-shadow: 0 10px 28px -12px var(--cine-accent); }
body.cine .gallery-btn { background: rgba(255, 255, 255, .05); border-color: var(--cine-line); color: var(--cine-ink); box-shadow: none; }
body.cine .sticky-actions { background: linear-gradient(to top, var(--cine-bg) 70%, transparent); }
body.cine .seg { background: rgba(255, 255, 255, .05); border-color: var(--cine-line); }
body.cine .seg button { color: var(--cine-mute); }
body.cine .seg button[aria-selected="true"] { background: rgba(255, 255, 255, .12); color: var(--cine-ink); box-shadow: none; }
body.cine .edit-row > span { color: var(--cine-mute); }
body.cine .edit-chips button { background: transparent; border-color: var(--cine-line); color: var(--cine-ink); }
body.cine .edit-chips button[aria-checked="true"] { background: var(--cine-ink); border-color: var(--cine-ink); color: #111; }
body.cine .spinner { border-color: rgba(255, 255, 255, .12); border-top-color: var(--cine-accent); }

.m-header { text-align: center; padding: 18px 0 6px; }
.m-kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--cine-accent, var(--blue-deep)); }
.m-header h1 { margin: 8px 0 6px; font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 600; font-size: clamp(32px, 6vw, 52px); line-height: 1.05; letter-spacing: -.01em; }
body.cine[data-cine="diwali"] .m-header h1 { background: linear-gradient(90deg, #F6DFA0, #D9A84E 50%, #F6DFA0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.m-meta { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--cine-mute, var(--muted)); }
.m-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #FF6B6B; }
.m-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #FF4D4D; box-shadow: 0 0 0 4px rgba(255, 77, 77, .18); animation: pulse 1.4s ease-in-out infinite; }
.moment .m-tabs { display: flex; justify-content: center; gap: 28px; padding: 0; margin: 18px 0 22px; background: transparent; border: 0; border-bottom: 1px solid var(--cine-line, var(--line)); border-radius: 0; box-shadow: none; }
.moment .m-tabs button { flex: none; flex-direction: row; gap: 8px; min-height: 46px; padding: 0 2px; border-radius: 0; background: transparent; color: var(--cine-mute, var(--slate)); font-size: 15px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.moment .m-tabs button svg { width: 18px; height: 18px; }
.moment .m-tabs button[aria-selected="true"] { background: transparent; color: var(--cine-ink, var(--ink)); border-bottom-color: var(--cine-accent, var(--blue-deep)); }
.moment.theme-diwali .m-tabs button[aria-selected="true"] { background: transparent; }
@media (max-width: 640px) { .moment .m-tabs { gap: 18px; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding: 0 2px; } .moment .m-tabs::-webkit-scrollbar { display: none; } .moment .m-tabs button { flex: none; } .moment .m-tabs button span { font-size: 14px; } }

body.cine .cam-btn.m-shoot { min-height: 52dvh; background: radial-gradient(90% 70% at 50% 0%, rgba(232, 199, 122, .22), transparent 70%), rgba(255, 255, 255, .03); border: 1px solid rgba(232, 199, 122, .35); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03), 0 30px 60px -30px rgba(0, 0, 0, .8); }
body.cine[data-cine="quickclean"] .cam-btn.m-shoot { background: radial-gradient(90% 70% at 50% 0%, rgba(124, 198, 234, .22), transparent 70%), rgba(255, 255, 255, .03); border-color: rgba(124, 198, 234, .35); }
body.cine .cam-btn.m-shoot::after { display: none; }
body.cine .cam-btn.m-shoot svg { color: var(--cine-accent); background: rgba(255, 255, 255, .04); box-shadow: 0 0 0 1px rgba(232, 199, 122, .4), 0 0 60px rgba(232, 199, 122, .18); }
body.cine .cam-btn.m-shoot b { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 34px; font-weight: 600; }
body.cine .m-stage { background: transparent; padding: 0; }
body.cine .m-stage canvas { border-radius: 14px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); }
body.cine .frame-opt { background: rgba(255, 255, 255, .04); }
body.cine .frame-opt small { color: var(--cine-mute); }
body.cine .frame-opt[aria-checked="true"] { border-color: var(--cine-accent); background: rgba(255, 255, 255, .08); }
body.cine .frame-opt[aria-checked="true"] small { color: var(--cine-ink); }
body.cine .frame-opt canvas { background: #2A2428; }
body.cine .m-posted-card { box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); }

.m-hero { position: relative; display: block; width: 100%; height: min(62dvh, 640px); margin-bottom: 18px; padding: 0; border: 0; border-radius: 22px; overflow: hidden; background: #000; cursor: pointer; box-shadow: 0 40px 80px -36px rgba(0, 0, 0, .9); }
.m-hero-bg { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(30px) brightness(.5) saturate(1.25); }
.m-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; animation: kenburns 16s ease-out forwards; }
.m-hero-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: baseline; gap: 10px; padding: 46px 22px 18px; background: linear-gradient(to top, rgba(0, 0, 0, .78), transparent); color: #fff; text-align: left; }
.m-hero-cap b { font-size: 18px; }
.m-hero-cap small { color: rgba(255, 255, 255, .7); }
.m-just { font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--cine-accent, #E8C77A); }
.m-grid-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 2px 10px; font-size: 14px; font-weight: 700; color: var(--cine-mute, var(--muted)); }
body.cine .m-grid { gap: 8px; }
body.cine .m-tile { border-radius: 12px; background: rgba(255, 255, 255, .04); }
.m-tile-by { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; font-size: 12px; font-weight: 700; color: #fff; text-align: left; background: linear-gradient(to top, rgba(0, 0, 0, .65), transparent); opacity: 0; transition: opacity 200ms ease; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-tile:hover .m-tile-by, .m-tile:focus-visible .m-tile-by { opacity: 1; }
@media (hover: none) { .m-tile-by { opacity: 1; } }
@media (hover: hover) { body.cine .m-tile:hover img { transform: scale(1.04); } }
.m-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 60px 16px; text-align: center; color: var(--cine-mute, var(--muted)); }
.m-empty svg { width: 40px; height: 40px; color: var(--cine-accent, var(--grey)); }
.m-empty b { font-size: 20px; color: var(--cine-ink, var(--ink)); }
body.cine .moment-event { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); border: 1px solid rgba(255, 255, 255, .06); }

/* ----- booth camera (Snapchat-style) ----- */
.booth { position: fixed; inset: 0; z-index: 130; display: flex; flex-direction: column; background: #050505; color: #fff; animation: fade 180ms ease; }
.booth-top { display: flex; align-items: center; justify-content: space-between; padding: calc(10px + var(--safe-t)) 14px 8px; }
.booth-top-right { display: flex; align-items: center; gap: 8px; }
.booth-icon { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.booth-icon svg { width: 22px; height: 22px; }
.booth-icon.on { background: #fff; color: #111; }
.booth-icon b { font-size: 13px; }
.booth-pill { min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.booth-stage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 4px 12px; }
.booth-view { position: relative; overflow: hidden; border-radius: 16px; background: #111; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9); transition: width 260ms cubic-bezier(.16, 1, .3, 1), height 260ms cubic-bezier(.16, 1, .3, 1); }
.booth-photo { position: absolute; overflow: hidden; }
.booth-photo video { width: 100%; height: 100%; object-fit: cover; }
.booth-photo video.mirror { transform: scaleX(-1); }
.booth-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.booth-count { position: absolute; inset: 0; display: grid; place-items: center; font-size: 120px; font-weight: 700; text-shadow: 0 4px 24px rgba(0, 0, 0, .5); pointer-events: none; }
.booth-count.tick { animation: tick 1s var(--ease-out); }
.booth-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.booth-flash.go { animation: shutter 300ms ease-out; }
.booth-bottom { display: flex; flex-direction: column; gap: 12px; padding: 10px 0 calc(16px + var(--safe-b)); }
.booth-formats { display: flex; justify-content: center; gap: 4px; padding: 0 12px; overflow-x: auto; scrollbar-width: none; }
.booth-formats::-webkit-scrollbar { display: none; }
.booth-formats button { flex: none; min-height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: rgba(255, 255, 255, .62); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.booth-formats button[aria-checked="true"] { background: rgba(255, 255, 255, .16); color: #FFD98A; }
.booth-frames { display: flex; gap: 12px; padding: 4px calc(50% - 34px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.booth-frames::-webkit-scrollbar { display: none; }
.booth-frame { flex: none; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 68px; padding: 0; border: 0; background: transparent; color: rgba(255, 255, 255, .7); font: inherit; cursor: pointer; }
.booth-frame-thumb { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 30% 30%, #3A3438, #151215); box-shadow: 0 0 0 2px rgba(255, 255, 255, .14); transition: transform 180ms cubic-bezier(.16, 1, .3, 1), box-shadow 180ms; }
.booth-frame-thumb canvas { max-width: 100%; max-height: 100%; }
.booth-frame small { font-size: 11px; font-weight: 700; color: inherit; white-space: nowrap; max-width: 68px; overflow: hidden; text-overflow: ellipsis; }
.booth-frame[aria-checked="true"] { color: #FFD98A; }
.booth-frame[aria-checked="true"] .booth-frame-thumb { transform: scale(1.12); box-shadow: 0 0 0 3px #FFD98A; }
.booth-controls { display: flex; align-items: center; justify-content: space-around; padding: 0 24px; }
.booth-shutter { width: 78px; height: 78px; display: grid; place-items: center; border: 4px solid #fff; border-radius: 50%; background: transparent; cursor: pointer; }
.booth-shutter span { width: 62px; height: 62px; border-radius: 50%; background: #fff; transition: transform 140ms ease; }
.booth-shutter:active span { transform: scale(.88); }
.booth.busy .booth-shutter { opacity: .5; }
.live-story .live-head { position: static; }
body.on-live .install-pop { display: none; }
/* QC Moments has its own screens: Event Manager's menu is hidden there, as on the home screen */
body.no-em-nav .sidebar, body.no-em-nav .bottomnav { display: none; }
body.no-em-nav .shell { display: block; }
body.no-em-nav main.content { padding-bottom: calc(32px + var(--safe-b)); }
body.no-em-nav .install-pop { bottom: calc(var(--safe-b) + 12px); }
body.no-em-nav .topbar .brandmark.hide-desktop { display: flex !important; }
