/* BLU Studio PWA — mobile-first, dark.
   Palette mirrors BLU CRM: deep midnight base (slate-950), the BLU brand blue
   (the bright royal of the production logo), warm white text. */

:root {
  --bg: #0b1220;            /* near-black with a blue cast — deep midnight */
  --bg-elevated: #131c2e;   /* one step lighter — the card surface */
  --bg-input: #1c2740;      /* input wells — slightly bluer */
  --border: #243049;        /* hairline dividers, cool slate */
  --text: #f1f5fb;           /* warm cool white */
  --muted: #97a3b8;          /* desaturated steel for secondary text */
  --blu: #4c9aff;            /* bright royal blue — the BLU brand color */
  --blu-deep: #2b6ee0;       /* hover/active state — deeper, more saturated */
  --green: #2ecc71;          /* success — bright emerald */
  --red: #ff5a5f;            /* error — coral-red, warm against the cool bg */
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }

.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(env(safe-area-inset-top), 12px) 16px 12px;
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 8px; }
.logo { height: 22px; width: auto; }
.brand-text { font-size: 15px; font-weight: 600; letter-spacing: 0.4px; color: var(--text); opacity: 0.92; }
.build-stamp { font-size: 10px; color: var(--muted); opacity: 0.6; margin-left: 6px; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.badge {
  font-size: 11px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(76, 154, 255, 0.16); color: var(--blu); border: 1px solid rgba(76, 154, 255, 0.3);
}

main { padding: 20px 16px 100px; max-width: 560px; margin: 0 auto; }

.view { display: block; }
.view[hidden] { display: none; }

h1 { font-size: 26px; font-weight: 700; margin: 8px 0 6px; }
h2 { font-size: 22px; font-weight: 700; margin: 12px 0 8px; }
p.muted { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0 0 16px; }
p.error { color: var(--red); font-size: 14px; margin: 8px 0 0; }
p.msg { color: var(--muted); font-size: 13px; margin: 8px 0 0; }

input[type="text"], #setupCode, #stockInput {
  width: 100%;
  background: var(--bg-input);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 14px;
  font-size: 17px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  margin-top: 8px;
  transition: border-color 120ms ease;
}
input:focus { border-color: var(--blu); }

.field { display: block; margin: 16px 0 10px; }
.field > span { font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); font-weight: 600; }

button {
  font: inherit;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.primary {
  width: 100%;
  background: var(--blu);
  color: #fff;
  border-radius: 14px;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  margin-top: 16px;
  transition: background 120ms ease, transform 80ms ease;
  box-shadow: var(--shadow);
}
.primary:active { background: var(--blu-deep); transform: scale(0.98); }
.primary:disabled { background: #2c3a5a; color: #6f7d96; box-shadow: none; cursor: not-allowed; }
.primary.big { padding: 18px; font-size: 17px; }

.link {
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  padding: 8px 4px;
  text-decoration: underline;
}

.phase-toggle {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 4px;
}
.phase-btn {
  background: transparent;
  color: var(--muted);
  padding: 10px 8px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: background 140ms ease, color 140ms ease;
}
.phase-btn .hint { display: block; font-size: 11px; font-weight: 400; opacity: 0.7; margin-top: 2px; }
.phase-btn.active { background: rgba(76, 154, 255, 0.16); color: var(--blu); }

.capture-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 8px; }
.big-button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 12px;
  color: var(--text);
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease;
  text-align: center;
}
.big-button:active { background: var(--bg-input); border-color: var(--blu); }
.big-button.camera-btn { background: linear-gradient(135deg, rgba(76, 154, 255, 0.16) 0%, rgba(43, 110, 224, 0.08) 100%); border-color: rgba(76, 154, 255, 0.3); }
.big-button span { font-size: 14px; font-weight: 600; }
.big-button .sub-hint { font-size: 11px; font-weight: 400; opacity: 0.65; }

.thumbs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  margin-top: 14px;
}
.thumbs:empty { display: none; }
.thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-input);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .remove {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff; font-size: 14px; line-height: 1; padding: 0;
  display: flex; align-items: center; justify-content: center;
}

.progress-bar {
  width: 100%; height: 10px;
  background: var(--bg-elevated);
  border-radius: 999px;
  overflow: hidden;
  margin: 18px 0 10px;
  border: 1px solid var(--border);
}
#progressFill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blu) 0%, var(--blu-deep) 100%);
  transition: width 240ms ease;
}

.success-icon { color: var(--green); display: flex; justify-content: center; margin: 32px 0 8px; }
.footer-actions { display: flex; justify-content: center; margin-top: 24px; }

/* ── Inventory worklist ─────────────────────────────────────────────────── */
.inv-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.inv-header h1 { margin: 0 0 4px; font-size: 24px; }
.inv-header p { margin: 0; }
.inv-icon-btn {
  background: var(--bg-elevated); color: var(--muted);
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.inv-icon-btn:active { color: var(--blu); }
.inv-search {
  width: 100%; background: var(--bg-input); color: var(--text);
  border: 1px solid var(--border); border-radius: 12px; padding: 14px;
  font-size: 16px; outline: none; -webkit-appearance: none; margin-bottom: 10px;
}
.inv-search:focus { border-color: var(--blu); }
.inv-filter { display: flex; gap: 8px; margin-bottom: 14px; }
.inv-chip {
  background: var(--bg-elevated); color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 7px 16px;
  font-size: 13px; font-weight: 600;
}
.inv-chip.active { background: rgba(76, 154, 255, 0.16); color: var(--blu); border-color: rgba(76, 154, 255, 0.3); }

.shoot-cta { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; }
/* "360 a vehicle" — secondary style (outlined, not filled like the primary) */
.spin-cta {
  background: var(--bg-elevated);
  color: var(--blu);
  border: 1px solid rgba(76, 154, 255, 0.4);
  box-shadow: none;
}
.spin-cta:active { background: var(--bg-input); transform: scale(0.98); }

.spin-banner {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, rgba(76, 154, 255, 0.18) 0%, rgba(43, 110, 224, 0.06) 100%);
  border: 1px solid rgba(76, 154, 255, 0.35);
  border-radius: 14px; padding: 12px 14px; margin-bottom: 14px;
  color: var(--blu);
}
.spin-banner-title { font-size: 16px; font-weight: 700; color: var(--text); }
.spin-banner-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.inv-section-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); font-weight: 700; margin: 22px 0 10px; }
.field .opt { font-style: normal; color: var(--muted); opacity: 0.7; font-weight: 400; font-size: 11px; }
.field .req { font-style: normal; color: var(--muted); font-weight: 400; font-size: 11px; }
.cap-vin-badge { display: block; font-size: 12px; font-weight: 700; margin-top: 6px; min-height: 14px; }
.cap-vin-badge.ok { color: var(--green); }
.cap-vin-badge.bad { color: var(--red); }
.cap-vin-badge.req { color: #ffc832; }
#vinInput { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 1px; text-transform: uppercase; }
#vinInput.valid { border-color: rgba(46, 204, 113, 0.6); background: rgba(46, 204, 113, 0.07); }
#vinInput.invalid { border-color: rgba(255, 90, 95, 0.6); background: rgba(255, 90, 95, 0.07); }

.inv-list { display: flex; flex-direction: column; gap: 8px; }
.inv-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 16px; cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}
.inv-row:active { background: var(--bg-input); border-color: var(--blu); }
.inv-row.done { opacity: 0.55; }
.inv-row-main { flex: 1; min-width: 0; }
.inv-row-stock { font-size: 16px; font-weight: 700; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.inv-row-desc { font-size: 13px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-row-vin { font-size: 10px; color: var(--muted); opacity: 0.6; font-family: ui-monospace, monospace; margin-top: 2px; }
.inv-badge { font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 999px; white-space: nowrap; flex-shrink: 0; }
.inv-badge.need { background: rgba(255, 200, 50, 0.15); color: #ffc832; }
.inv-badge.done { background: rgba(46, 204, 113, 0.15); color: var(--green); }
.inv-empty { padding: 40px 20px; text-align: center; }

/* ── Car context banner in the capture view ─────────────────────────────── */
.car-banner {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, rgba(76, 154, 255, 0.16) 0%, rgba(43, 110, 224, 0.06) 100%);
  border: 1px solid rgba(76, 154, 255, 0.3);
  border-radius: 14px; padding: 12px 14px; margin-bottom: 14px;
}
.car-banner-back {
  background: rgba(0,0,0,0.25); color: var(--text);
  width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.car-banner-info { flex: 1; min-width: 0; }
.car-banner-title { font-size: 17px; font-weight: 700; }
.car-banner-sub { font-size: 12px; color: var(--muted); font-family: ui-monospace, monospace; margin-top: 2px; }

/* ── Full-screen burst camera ───────────────────────────────────────────── */
.view-camera {
  position: fixed; inset: 0; z-index: 50;
  background: #000;
  display: flex !important; flex-direction: column;
  padding: 0; margin: 0; max-width: none;
}
.view-camera[hidden] { display: none !important; }

.cam-topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(env(safe-area-inset-top), 12px) 16px 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 100%);
  color: #fff;
}
.cam-icon-btn {
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.cam-stock { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cam-stock-label { font-size: 9px; letter-spacing: 1.2px; opacity: 0.7; font-weight: 700; }
.cam-stock-value { font-size: 16px; font-weight: 700; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.cam-counter {
  font-size: 14px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-variant-numeric: tabular-nums;
}
.cam-counter.full { background: rgba(255, 90, 95, 0.85); }

.cam-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; background: #000;
  display: block;
}

/* Loading / tap-to-start overlays sit on top of the video.
   The loading overlay is pointer-events:none so it can NEVER trap taps — even
   if it somehow lingers, the shutter/Done/close buttons stay usable. Only the
   tap-to-start button captures taps (it needs to). */
.cam-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: #0b1220; color: var(--text);
  font-size: 15px; font-weight: 600;
  border: none;
  pointer-events: none;
}
.cam-overlay[hidden] { display: none; }
/* The loading overlay is permanently removed — it was the navy-blue coating
   over the feed. Force it gone no matter what. */
#camLoading { display: none !important; }
/* Loading is a small centered chip, NOT a full-screen shade — so it can never
   dim or hide the live feed even if it lingers. */
#camLoading {
  inset: auto;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: auto; height: auto;
  flex-direction: row; gap: 10px;
  background: rgba(0, 0, 0, 0.55);
  padding: 12px 18px; border-radius: 999px;
  font-size: 14px;
}
#camLoading .pro-spinner { width: 20px; height: 20px; margin: 0; border-width: 2px; }
/* Tap-to-start is a small centered button, NOT a full-screen shade, so it can
   never look like a filter over the feed. */
.cam-start {
  inset: auto;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: auto; height: auto;
  background: rgba(0, 0, 0, 0.72);
  padding: 22px 28px; border-radius: 18px;
  color: #fff; cursor: pointer; pointer-events: auto; z-index: 4;
}
.cam-start svg { color: var(--blu); }

.cam-flash {
  position: absolute; inset: 0; z-index: 1;
  background: #fff;
  opacity: 0; pointer-events: none;
  transition: opacity 80ms ease;
}
.cam-flash.flash { opacity: 0.85; transition: opacity 30ms ease; }

.cam-error {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  padding: 32px; text-align: center;
  background: rgba(11, 18, 32, 0.97);
  color: var(--text); font-size: 15px; line-height: 1.5;
  /* informational only — let the close/Done buttons underneath stay tappable */
  pointer-events: none;
}
.cam-error button { pointer-events: auto; }
.cam-error .primary { width: auto; }

.cam-bottombar {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 10px;
  padding: 16px 20px max(env(safe-area-inset-bottom), 20px);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 100%);
}
.cam-strip {
  display: flex; gap: 4px; align-items: center;
  justify-self: start;
}
.cam-strip .cam-strip-thumb {
  width: 44px; height: 44px;
  border-radius: 8px; overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: #000;
}
.cam-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cam-shutter {
  width: 78px; height: 78px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex; align-items: center; justify-content: center;
  border: 4px solid #fff;
  transition: transform 80ms ease;
}
.cam-shutter:active { transform: scale(0.92); }
.cam-shutter:disabled { opacity: 0.4; border-color: rgba(255, 255, 255, 0.4); }
.cam-shutter-inner {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #fff;
  transition: background 120ms ease;
}
.cam-shutter:active .cam-shutter-inner { background: #ddd; }

.cam-done {
  justify-self: end;
  background: #fff; color: #0b1220;
  font-size: 15px; font-weight: 700;
  padding: 10px 18px; border-radius: 999px;
  min-width: 72px;
}
.cam-done:active { background: #ddd; }

/* ── Pro mode (desktop) ─────────────────────────────────────────────────── */
#view-pro { max-width: 1200px; }

.pro-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  margin-bottom: 24px;
}
.pro-header h1 { margin: 0 0 6px; font-size: 30px; }
.pro-header p { margin: 0; max-width: 640px; }

.link-inline {
  background: transparent;
  color: var(--blu);
  padding: 0;
  font-size: inherit;
  text-decoration: underline;
}

.pro-drop {
  border: 2px dashed var(--border);
  border-radius: 20px;
  padding: 64px 32px;
  text-align: center;
  background: var(--bg-elevated);
  transition: border-color 160ms ease, background 160ms ease;
  color: var(--muted);
}
.pro-drop.drag-over {
  border-color: var(--blu);
  background: linear-gradient(135deg, rgba(76, 154, 255, 0.08) 0%, rgba(43, 110, 224, 0.04) 100%);
  color: var(--text);
}
.pro-drop svg { color: var(--blu); margin-bottom: 8px; opacity: 0.8; }
.pro-drop h2 { color: var(--text); margin: 6px 0 8px; }
.pro-drop p { max-width: 540px; margin: 6px auto 0; }
.pro-drop .hint { font-size: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); max-width: 580px; }

.pro-processing {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 32px;
  background: var(--bg-elevated);
  text-align: center;
}
.pro-spinner {
  width: 44px; height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--blu);
  border-radius: 50%;
  margin: 0 auto 18px;
  animation: spin 800ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.pro-processing .progress-bar { max-width: 360px; margin: 18px auto 0; }
#proProcessingFill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blu) 0%, var(--blu-deep) 100%);
  transition: width 200ms ease;
}

.pro-review-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  margin-bottom: 18px; flex-wrap: wrap;
}
.pro-review-header h2 { margin: 0 0 4px; }
.pro-review-header p { margin: 0; max-width: 640px; }
.pro-review-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.pro-review-actions .primary { width: auto; margin: 0; padding: 12px 20px; }

.pro-groups { display: flex; flex-direction: column; gap: 14px; }

.pro-group {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-elevated);
  padding: 16px;
}
.pro-group.confidence-medium { border-color: rgba(255, 90, 95, 0.4); }
.pro-group.confidence-unknown { border-color: rgba(255, 200, 50, 0.4); background: rgba(255, 200, 50, 0.04); }
.pro-group.uploaded { border-color: rgba(46, 204, 113, 0.5); background: rgba(46, 204, 113, 0.04); }

.pro-group-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
  flex-wrap: wrap;
}
.pro-group-stock {
  background: var(--bg-input);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 17px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-weight: 600;
  width: 180px;
  outline: none;
  letter-spacing: 0.5px;
}
.pro-group-stock:focus { border-color: var(--blu); }
.pro-group-stock.unknown { border-color: rgba(255, 200, 50, 0.6); background: rgba(255, 200, 50, 0.08); }

.pro-group-vin-wrap { display: flex; align-items: center; gap: 8px; }
.pro-group-vin {
  background: var(--bg-input);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 1px;
  width: 230px;
  outline: none;
  text-transform: uppercase;
}
.pro-group-vin:focus { border-color: var(--blu); }
.pro-group-vin.valid { border-color: rgba(46, 204, 113, 0.6); background: rgba(46, 204, 113, 0.07); }
.pro-group-vin.invalid { border-color: rgba(255, 90, 95, 0.6); background: rgba(255, 90, 95, 0.07); }
.pro-group-vin-badge { font-size: 11px; font-weight: 700; letter-spacing: 0.4px; white-space: nowrap; }
.pro-group-vin-badge.ok { color: var(--green); }
.pro-group-vin-badge.bad { color: var(--red); }
.pro-group-vin-badge.req { color: #ffc832; }
.pro-group-meta { font-size: 13px; color: var(--muted); }
.pro-group-meta .ai { color: var(--blu); }
.pro-group-meta .uploaded-tag { color: var(--green); }
.pro-group-actions { margin-left: auto; display: flex; gap: 6px; }
.pro-group-actions button { background: transparent; color: var(--muted); padding: 6px 8px; border-radius: 6px; font-size: 12px; }
.pro-group-actions button:hover { color: var(--text); background: var(--bg-input); }

.pro-group-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 6px;
}
.pro-group-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-input);
}
.pro-group-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pro-group-photo.marker {
  outline: 2px solid rgba(255, 200, 50, 0.6);
  outline-offset: -2px;
}
.pro-group-photo.marker::after {
  content: "MARKER";
  position: absolute; bottom: 4px; left: 4px;
  background: rgba(255, 200, 50, 0.9);
  color: #1a1300; font-size: 9px; font-weight: 700; letter-spacing: 0.6px;
  padding: 2px 5px; border-radius: 3px;
}
.pro-group-photo .remove {
  position: absolute; top: 3px; right: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff; font-size: 13px; line-height: 1; padding: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 120ms ease;
}
.pro-group-photo:hover .remove { opacity: 1; }

@media (max-width: 768px) {
  /* On phone, Pro mode is hidden in favor of the capture view, but if a user
     forces it, scale gracefully. */
  .pro-drop { padding: 36px 18px; }
  .pro-drop h2 { font-size: 18px; }
  .pro-review-actions { width: 100%; }
  .pro-review-actions .primary { flex: 1; }
}
