.panel-booth {background:#fbf2ed}
.booth-layout {
  display:grid;
  grid-template-columns:minmax(0,1.06fr) minmax(0,.94fr);
  align-items:start;
  gap:22px;
}
.booth-stage {
  display:grid;
  place-items:center;
  min-width:0;
  padding:15px;
  border:1px solid #dbd3cc;
  border-radius:10px;
  background:repeating-linear-gradient(140deg,#ebe7df 0 2px,#eeebe5 2px 6px);
}
.booth-stage[data-theme="berry"] {
  border-color:#e6bdcb;
  background:repeating-linear-gradient(140deg,#f4dce2 0 2px,#fae7ec 2px 6px);
}
.booth-stage[data-theme="ribbon"] {
  border-color:#e1cabc;
  background:repeating-linear-gradient(140deg,#f3e7dd 0 2px,#f8ede2 2px 6px);
}
.booth-stage[data-theme="blue"] {
  border-color:#c9ceea;
  background:repeating-linear-gradient(140deg,#e5e7f4 0 2px,#ececfa 2px 6px);
}
.booth-preview {
  display:block;
  width:auto;
  height:auto;
  max-width:100%;
  max-height:min(62vh,610px);
  box-shadow:0 9px 19px #4d2d3e3c,0 1px 3px #4d2d3e45;
}
.booth-controls {display:grid;gap:14px;min-width:0}
.booth-picker {display:grid;gap:6px}
.booth-theme {
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:9px;
  min-height:46px;
  padding:8px 11px;
  border:1px solid #d9c0ba;
  border-radius:8px;
  background:#fffaf6;
  color:#51323d;
  text-align:left;
  font-size:14px;
}
.booth-theme[aria-pressed="true"] {border-color:#8c3c61;box-shadow:inset 0 0 0 1px #8c3c61;background:#fff0f5}
.booth-swatch {
  width:22px;
  height:25px;
  border:2px solid #a3294b;
  border-radius:3px;
  background:repeating-linear-gradient(#ca6b81 0 4px,#f9e4e9 4px 6px);
}
.booth-theme[data-theme="ribbon"] .booth-swatch {
  border-color:#a96565;
  background:repeating-linear-gradient(#b78d8a 0 4px,#faead7 4px 6px);
}
.booth-theme[data-theme="blue"] .booth-swatch {
  border-color:#3d6386;
  background:repeating-linear-gradient(#6b8aaf 0 4px,#dbe6f3 4px 6px);
}
.booth-format {color:#795f68;font-size:11px}
.pose-card {display:grid;grid-template-columns:minmax(0,1fr);gap:2px;padding:9px 11px;border-radius:8px;background:#f4e2eb}
.pose-card strong {color:var(--berry);font-size:14px}
.pose-card a,.booth-sources a {font-size:12px;text-underline-offset:2px}
.booth-controls .panel-actions {justify-content:flex-start;margin:0;gap:7px}
.booth-camera-window {position:relative;overflow:hidden;border-radius:7px;background:#d7cecd}
.booth-camera-window[hidden],.booth-camera-window video[hidden] {display:none}
.booth-camera-window canvas {display:block;width:100%;height:auto}
.booth-countdown {
  position:absolute;top:10px;left:12px;display:grid;place-items:center;
  width:42px;height:42px;border:1px solid #fff7;border-radius:50%;
  background:#382437b8;color:#fff;font:700 27px sans-serif;
}
.booth-countdown:empty {display:none}
.booth-controls output,.booth-hint {font-size:13px;color:#704c55}
.booth-hint {margin:0;line-height:1.55}
.booth-sources {display:flex;flex-wrap:wrap;gap:5px 10px}
@media (max-width:640px) {
  .booth-layout {
    grid-template-columns:minmax(0,1fr);
    grid-template-areas:"picker" "stage" "video" "actions" "status" "pose" "hint" "sources";
    gap:10px;
  }
  .booth-stage {grid-area:stage;padding:9px}
  .booth-preview {max-height:min(42vh,410px)}
  .booth-controls {display:contents}
  .booth-picker {grid-area:picker;grid-template-columns:repeat(3,minmax(0,1fr))}
  .booth-theme {grid-template-columns:auto minmax(0,1fr);gap:5px;padding:6px;font-size:12px}
  .booth-swatch {width:15px;height:22px}
  .booth-format {display:none}
  .booth-camera-window {grid-area:video}
  .booth-controls .panel-actions {grid-area:actions}
  .booth-controls output {grid-area:status}
  .pose-card {grid-area:pose}
  .booth-hint {grid-area:hint}
  .booth-sources {grid-area:sources}
}

/* Long-press save sheet for phones and in-app browsers */
.booth-save {text-align:center}
.booth-save img {display:block;margin:6px auto 0;width:auto;max-width:100%;height:min(62dvh,620px);aspect-ratio:auto;object-fit:contain;border-radius:4px;background:none;box-shadow:0 10px 30px -14px #4b2737;-webkit-touch-callout:default;user-select:auto}
.booth-save-hint {margin:12px 0 0;font-weight:700;color:var(--berry);font-size:15px}
.booth-save .panel-actions {display:flex;justify-content:center;gap:8px;flex-wrap:wrap}
