/* /photo-booth/ page styles. Built from /assets/polyatic.css tokens only (no new UI colours or fonts);
   the viewfinder sits on the cutting mat. The swatch colours are the strip's paper colours (data), set by JS. */
.nojs{margin:1.25rem 0 0;padding:0.875rem 1rem;border:1px solid var(--line);border-left:0.25rem solid var(--accent);border-radius:0.625rem;background:var(--surface);color:var(--ink);font-size:0.9375rem;line-height:1.6}
@media(min-width:920px){.pb-duo{grid-template-columns:minmax(0,1.2fr) minmax(20.5rem,.8fr)}}
.pb-col{display:grid;gap:1rem;align-content:start}
.pb-booth{padding:0.75rem}
.sec{font-size:0.8125rem;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:var(--muted);margin:0 0 0.625rem}
.pb-k{font-family:var(--mono);font-size:0.75rem;font-weight:500;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:0.875rem 0 0.375rem}
.pb-modes{margin-bottom:0}

/* the viewfinder */
.pb-view{position:relative;aspect-ratio:4/3;max-height:58vh;margin:0 auto;border-radius:0.625rem;background:var(--mat);overflow:hidden;box-shadow:inset 0 0 0 1px var(--mat-2)}
.pb-view video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.pb-view.mirror video{transform:scaleX(-1)}
.pb-idle{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0.625rem;padding:1rem;text-align:center;color:var(--mat-ink)}
.pb-idle small{color:var(--mat-muted);font-size:0.8125rem;line-height:1.45;max-width:30ch}
.pb-idle .btn{height:3.25rem;padding:0 1.5rem;font-size:1.0625rem}
.pb-count{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;font-family:var(--mono);font-weight:700;font-size:clamp(5rem,30vw,11rem);line-height:1;color:var(--mat-ink);text-shadow:0 0.25rem 1.5rem rgba(0,0,0,.55);font-variant-numeric:tabular-nums}
.pb-count:empty{display:none}
.pb-count.small{font-size:clamp(1.75rem,8vw,3rem)}
.pb-flash{position:absolute;inset:0;background:#fff;opacity:0;pointer-events:none}
.pb-flash.on{opacity:1}
.pb-flash.off{opacity:0;transition:opacity .35s ease-out}

.hint{font-size:0.8125rem;color:var(--muted);margin:0.625rem 0.125rem 0;min-height:1.125rem;line-height:1.5;overflow-wrap:anywhere}
.hint.bad{color:var(--bad);font-weight:600}
.pb-actions{display:flex;flex-wrap:wrap;gap:0.5rem;margin-top:0.625rem}
.pb-actions .btn{flex:1 1 auto}
#shoot{flex:2 1 10rem}

/* shots: one tile per shot, Retake under it */
.pb-shots{list-style:none;margin:0.75rem 0 0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0.5rem}
.pb-shots li{display:grid;gap:0.25rem;min-width:0}
.pb-shots canvas,.pb-shots .ph{width:100%;aspect-ratio:4/3;border-radius:0.375rem;background:var(--surface-2);border:1px dashed var(--line-2);display:block;object-fit:cover}
.pb-shots canvas{border-style:solid;border-color:var(--line)}
.pb-shots .ph{display:grid;place-items:center;font-family:var(--mono);font-size:0.8125rem;color:var(--muted)}
.pb-shots button{font:inherit;font-size:0.75rem;font-weight:600;padding:0.3125rem 0.25rem;border:1px solid var(--line-2);border-radius:0.375rem;background:var(--surface);color:var(--ink);cursor:pointer}
.pb-shots button:hover{border-color:var(--ink)}
.pb-shots button:disabled{opacity:.45;cursor:default}
.pb-shots li.now .ph,.pb-shots li.now canvas{outline:2px solid var(--accent);outline-offset:1px}
.pb-opts{display:grid;grid-template-columns:1fr 1fr;gap:0 0.75rem}
.pb-checks{display:flex;flex-wrap:wrap;gap:0.5rem 1.25rem;margin-top:0.875rem}
.pb-checks label{font-size:0.875rem}

/* the strip preview, on the cutting mat */
.pb-stage{display:grid;place-items:center;padding:1rem;border-radius:0.625rem;background:var(--mat);min-height:12rem}
.pb-stage canvas{display:block;max-width:100%;max-height:min(30rem,62vh);width:auto;height:auto;box-shadow:0 0.375rem 1.25rem rgba(0,0,0,.35)}
.pb-dim{font-family:var(--mono);font-size:0.75rem;color:var(--muted);margin:0.5rem 0.125rem 0;overflow-wrap:anywhere}
.pb-dim:empty{display:none}
.pb-save{display:flex;flex-wrap:wrap;gap:0.5rem;margin-top:0.75rem}
.pb-save .btn{flex:1 1 auto}
.pb-save .btn:disabled,.pb-actions .btn:disabled{opacity:.5;cursor:not-allowed;filter:none}
.pb-k+.pb-save{margin-top:0}
.pb-note{font-size:0.8125rem;color:var(--muted);margin:0.625rem 0.125rem 0;line-height:1.5}
.pb-note:empty{display:none}
.pb-note.bad{color:var(--bad);font-weight:600}

.pb-swatches{display:flex;flex-wrap:wrap;gap:0.4375rem}
.pb-swatches button{width:2.25rem;height:2.25rem;border-radius:0.5rem;border:1px solid var(--line-2);cursor:pointer;padding:0}
.pb-swatches button.on{outline:2px solid var(--accent);outline-offset:2px}
.pb-chips .chip{padding:0.4375rem 0.6875rem}
.pb-cap{display:grid;gap:0.5rem;margin-bottom:0.625rem}

.pb-visit{list-style:none;margin:0.75rem 0 0;padding:0;display:flex;gap:0.5rem;overflow-x:auto}
.pb-visit:empty{display:none}
.pb-visit li{flex:none}
.pb-visit img{display:block;height:7.5rem;width:auto;border-radius:0.25rem;border:1px solid var(--line)}

.pb-steps li,.pb-cannot li{margin-bottom:0.5rem}
@media(max-width:520px){.pb-booth{padding:0.625rem}.pb-view{max-height:46vh}}
@media (prefers-reduced-motion:reduce){.pb-flash.off{transition:none}}
