/* Super-admin "Find a guest" (admin-guest-review.js). Studio tokens only, so it follows the dark/light studio theme. */
.gr-step{display:grid;gap:16px;max-width:760px}
.gr-label{margin:0 0 8px;color:var(--soi-umber-soft);font:600 12px/1.4 var(--sans);letter-spacing:.04em;text-transform:uppercase}
.gr-help{display:grid;gap:8px}
.gr-help-item{display:grid;gap:3px;width:100%;padding:12px 14px;border:1px solid var(--soi-sand);border-radius:var(--radius-input);background:var(--soi-surface);color:var(--soi-umber);text-align:left;font:inherit;cursor:pointer;transition:border-color var(--duration-fast)}
.gr-help-item:hover:not(:disabled){border-color:var(--soi-sand-deep)}
.gr-help-item.is-picked{border-color:var(--primary);box-shadow:0 0 0 1px var(--primary)}
.gr-help-item:disabled{opacity:.55;cursor:not-allowed}
.gr-help-item span{color:var(--soi-umber-soft);font-size:13px}
.gr-form{display:grid;gap:14px}
.gr-form small{color:var(--soi-umber-soft);font-weight:400}
.gr-row{display:flex;gap:8px}
.gr-row input{flex:1;min-width:0}
.gr-sessions{border:0;padding:0;margin:0;min-width:0}
.gr-sessions legend{margin-bottom:8px}
.gr-session-list,.gr-searches{display:grid;gap:6px;max-height:320px;overflow:auto}
.gr-session{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border:1px solid var(--soi-sand);border-radius:var(--radius-input);cursor:pointer}
.gr-session input[type=checkbox],.gr-session input[type=radio]{flex:none;width:18px;height:18px;min-height:0;margin:2px 0 0;padding:0;accent-color:var(--primary)}
.gr-session span{text-align:left}
.gr-session span{display:grid;gap:2px;min-width:0}
.gr-session small{color:var(--soi-umber-soft);font-size:12px}
.gr-using-help{margin:0;padding:10px 12px;border-radius:var(--radius-input);background:var(--hover);color:var(--soi-umber);font-size:13px}
.gr-review{display:grid;gap:16px;margin-top:28px}
.gr-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px}
.gr-card{display:grid;gap:8px;padding:8px;border:1px solid var(--soi-sand);border-radius:var(--radius-card);background:var(--soi-surface);transition:border-color var(--duration-fast),opacity var(--duration-fast)}
.gr-card.is-yes{border-color:var(--success);box-shadow:0 0 0 1px var(--success)}
.gr-card.is-no{opacity:.45}
.gr-photo{position:relative;display:block;overflow:hidden;border-radius:calc(var(--radius-card) - 4px);background:var(--soi-canvas);aspect-ratio:3/2}
.gr-photo img{display:block;width:100%;height:100%;object-fit:cover}
/* The face that scored, outlined, so the call is about that person and not whoever else is in the frame. */
.gr-face{position:absolute;border:2px solid #FFD84D;border-radius:6px;box-shadow:0 0 0 1px rgba(0,0,0,.45);pointer-events:none}
.gr-face[hidden]{display:none}
.gr-meta{display:flex;justify-content:space-between;align-items:center;padding:0 4px}
.gr-score{font:600 13px/1 var(--sans);color:var(--soi-umber-soft)}
.gr-score.is-matched{color:var(--success)}
.gr-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.gr-actions button{min-height:36px;border:1px solid var(--soi-sand);border-radius:var(--radius-btn);background:transparent;color:var(--soi-umber);font:600 13px var(--sans);cursor:pointer}
.gr-actions .gr-yes[aria-pressed=true]{border-color:var(--success);background:var(--success-bg);color:var(--success)}
.gr-actions .gr-no[aria-pressed=true]{border-color:var(--danger-border);background:var(--error-bg);color:var(--danger)}
.gr-deliver{position:sticky;bottom:0;z-index:2;display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;padding:14px 16px;border:1px solid var(--soi-sand);border-radius:var(--radius-card);background:var(--soi-surface)}
.gr-deliver p{flex:1 1 100%;margin:0;color:var(--soi-umber-soft);font-size:13px}
.gr-contact{flex:1 1 180px;margin:0}
.gr-done{display:grid;gap:12px;max-width:640px;margin-top:20px}
.gr-done input{width:100%}
@media (max-width:640px){.gr-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.gr-actions button{min-height:40px}.gr-deliver{padding:12px;gap:8px}.gr-contact{flex:1 1 120px}.gr-deliver .publish-btn{flex:1 1 100%}}

/* Paid or not, always in view while reviewing. */
.gr-paid{margin:0;padding:12px 14px;border-radius:var(--radius-input);font-size:14px;line-height:1.5}
.gr-paid.is-paid{border:1px solid var(--success);background:var(--success-bg);color:var(--success)}
.gr-paid.is-unpaid{border:1px solid var(--soi-sand-deep);background:var(--hover);color:var(--soi-umber)}
.gr-paid-yes{color:var(--success)!important;font-weight:600}
.gr-paid-none{margin:0;color:var(--soi-umber-soft);font-size:13px}
.gr-session.is-paid{border-color:var(--success)}
/* The review header, like the crew's help picker: every selfie's face, pinned while scrolling the grid. */
.gr-head{position:sticky;top:8px;z-index:3;display:flex;align-items:center;gap:16px;padding:12px 16px;border:1px solid var(--soi-sand);border-radius:var(--radius-card);background:var(--soi-surface);box-shadow:0 8px 24px rgba(0,0,0,.18)}
.gr-head h3{margin:2px 0;font:600 20px/1.2 var(--sans)}
.gr-head .eyebrow{margin:0;color:var(--primary)}
.gr-head .help-picker-note{margin:0;color:var(--soi-umber-soft);font-size:13px;line-height:1.45}
.gr-selfie-strip{display:flex;gap:6px;flex:none}
.gr-selfie-strip canvas{width:56px;height:56px;border-radius:10px;background:var(--soi-canvas)}
.gr-selfie-strip canvas:first-child{width:96px;height:96px}
.gr-selfie-strip canvas.is-skipped{opacity:.35;outline:2px dashed var(--danger);outline-offset:-2px}
.gr-tools{padding:10px 0}
.gr-tools .more-cancel{margin-left:auto}
.gr-school{flex:1 1 100%;color:var(--soi-umber-soft);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Step 1: schools and dates as tickable chips; the chosen selfies as thumbnails. */
.gr-chips{display:flex;flex-wrap:wrap;gap:6px;max-height:180px;overflow:auto}
.gr-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border:1px solid var(--soi-sand);border-radius:999px;font-size:13px;cursor:pointer}
.gr-chip input{width:16px;height:16px;min-height:0;margin:0;padding:0;accent-color:var(--primary)}
.gr-chip:has(input:checked){border-color:var(--primary);background:var(--hover)}
.gr-chip--all{font-weight:600}
.gr-selfie-picks{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.gr-selfie-picks:empty{display:none}
.gr-pick{position:relative;margin:0}
.gr-pick img{display:block;width:72px;height:90px;object-fit:cover;border-radius:10px;background:var(--soi-canvas)}
.gr-pick button{position:absolute;top:-6px;right:-6px;width:24px;height:24px;min-height:0;padding:0;border:1px solid var(--soi-sand);border-radius:50%;background:var(--soi-surface);color:var(--soi-umber);font:600 14px/1 var(--sans);cursor:pointer}
.gr-photo{border:0;padding:0;width:100%;cursor:zoom-in}
.gr-meta{flex-wrap:wrap;gap:4px}
.gr-date{font:600 11px/1.3 var(--sans);padding:3px 7px;border-radius:999px}
.gr-date.is-free{background:var(--success-bg);color:var(--success)}
.gr-date.is-pay{background:var(--warning-bg,var(--hover));color:var(--soi-umber)}
/* The viewer. */
.gr-viewer{width:min(1100px,96vw);max-height:94vh;padding:14px;border:1px solid var(--soi-sand);border-radius:var(--radius-card);background:var(--soi-surface);color:var(--soi-umber)}
.gr-viewer::backdrop{background:rgba(0,0,0,.75)}
.gr-viewer.is-yes{box-shadow:0 0 0 3px var(--success)}
.gr-viewer.is-no{box-shadow:0 0 0 3px var(--danger)}
.gr-viewer-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}
.gr-viewer-head p{margin:0;font-size:14px;color:var(--soi-umber-soft)}
.gr-viewer-body{display:grid;grid-template-columns:minmax(120px,220px) 1fr;gap:12px;align-items:start}
.gr-viewer-selfie{width:100%;height:auto;aspect-ratio:1;border-radius:12px;background:var(--soi-canvas)}
.gr-viewer-frame{position:relative;overflow:hidden;border-radius:12px;background:#000;max-height:62vh;touch-action:pan-y}
.gr-viewer-stage{position:relative;transition:transform .2s ease}
.gr-viewer-stage img{display:block;width:100%;height:auto}
.gr-viewer-zoom{display:flex;align-items:center;gap:10px;margin-top:10px;flex-wrap:wrap}
.gr-viewer-zoom input{flex:1;min-width:120px;width:auto}
.gr-viewer-zoom output{min-width:3ch;font-variant-numeric:tabular-nums}
.gr-viewer-actions{display:grid;grid-template-columns:auto 1fr 1fr auto;gap:8px;margin-top:10px}
.gr-viewer-actions .gr-yes,.gr-viewer-actions .gr-no{min-height:48px;border:1px solid var(--soi-sand);border-radius:var(--radius-btn);background:transparent;color:var(--soi-umber);font:600 16px var(--sans);cursor:pointer}
.gr-viewer-actions .gr-yes[aria-pressed=true]{border-color:var(--success);background:var(--success-bg);color:var(--success)}
.gr-viewer-actions .gr-no[aria-pressed=true]{border-color:var(--danger-border);background:var(--error-bg);color:var(--danger)}
.gr-done-part{display:grid;gap:6px;padding:12px 14px;border:1px solid var(--soi-sand);border-radius:var(--radius-input)}
.gr-done-part h4{margin:0;font:600 15px var(--sans)}
.gr-done-part p{margin:0;color:var(--soi-umber-soft);font-size:14px}
.gr-link-row{display:flex;gap:8px}
.gr-link-row input{flex:1;min-width:0}
@media (max-width:640px){
  .gr-viewer{padding:10px;width:100vw;max-width:100vw;max-height:100dvh;height:100dvh;border-radius:0}
  .gr-viewer-body{grid-template-columns:1fr}
  .gr-viewer-selfie{width:88px;position:absolute;top:56px;left:18px;z-index:2;border:2px solid var(--soi-surface);box-shadow:0 4px 12px rgba(0,0,0,.5)}
  .gr-viewer-frame{max-height:58dvh}
  .gr-head{gap:10px;padding:10px}.gr-head h3{font-size:16px}
  .gr-selfie-strip canvas{width:40px;height:40px}.gr-selfie-strip canvas:first-child{width:64px;height:64px}
  .gr-head .help-picker-note{display:none}
}
.gr-score.is-none{color:var(--soi-umber-soft);font-weight:500}
.gr-more{justify-self:center;min-width:220px}

/* Studio session cards: the bar is red while photos are (re)indexing, green when done; "No face · Review" opens them. */
.card-progress-fill.is-working{background:var(--danger)!important}
.no-face-btn{padding:0;border:0;background:none;color:var(--soi-umber);font:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.no-face-btn:hover{color:var(--primary)}
.faces-found{color:var(--success)}
/* Send as: a paid link (the default) or free. */
.gr-price{display:flex;flex-wrap:wrap;gap:6px;flex:1 1 100%;margin:0;padding:0;border:0;min-width:0}
.gr-price legend{float:left;margin:0 6px 0 0;padding:7px 0;color:var(--soi-umber-soft);font-size:13px}
.gr-price small{color:var(--soi-umber-soft);font-size:12px;margin-left:4px}
.gr-price[hidden]{display:none}
div.gr-price{align-items:center}
div.gr-price label{color:var(--soi-umber-soft);font-size:13px}
div.gr-price select{width:auto;min-width:0;flex:0 1 auto}

/* Console: the Help requests tab (admin-console-desk.js) and its sidebar badge. */
.console-badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;margin-left:auto;padding:0 6px;border-radius:999px;background:var(--danger);color:#fff;font:600 11px/1 var(--sans)}
.console-badge[hidden]{display:none}
#cpanel-helpdesk .console-filter{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 14px}
.helpdesk-list{display:grid;gap:8px}
.helpdesk-row{display:grid;grid-template-columns:56px 1fr auto;align-items:center;gap:14px;padding:10px 14px;border:1px solid var(--soi-sand);border-radius:var(--radius-card);background:var(--soi-surface)}
.helpdesk-row.is-open{border-color:var(--soi-sand-deep)}
.helpdesk-selfie{width:56px;height:70px;border-radius:10px;overflow:hidden;background:var(--soi-canvas);display:grid;place-items:center;color:var(--soi-umber-soft)}
.helpdesk-selfie img{width:100%;height:100%;object-fit:cover}
.helpdesk-main{min-width:0}
.helpdesk-main p{margin:0}
.helpdesk-title{font-size:14px;color:var(--soi-umber)}
.helpdesk-sub{margin-top:3px!important;font-size:13px;color:var(--soi-umber-soft);overflow-wrap:anywhere}
.helpdesk-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.helpdesk-paid{border-color:var(--success);background:var(--success-bg);color:var(--success);font-weight:600}
.helpdesk-paid.is-refunded{border-color:var(--soi-sand-deep);background:transparent;color:var(--soi-umber-soft)}
/* Close: the row fades and slides aside, then folds its height so the rows below slide up. */
.helpdesk-row.is-leaving{overflow:hidden;opacity:0;transform:translateX(24px);height:0!important;padding-block:0;border-width:0;
  transition:opacity .2s ease,transform .2s ease,height .28s ease .14s,padding .28s ease .14s,border-width .28s ease .14s;pointer-events:none}
@media (max-width:640px){.helpdesk-row{grid-template-columns:48px 1fr;gap:10px}.helpdesk-selfie{width:48px;height:60px}.helpdesk-actions{grid-column:1 / -1;justify-content:flex-start}}
