/* Staff screens (2026-10-22): the invite link page (J1) and the shared phone (P1, a dark PIN pad like a till) */
.staff-page{min-height:100dvh;background:#fff;display:flex;justify-content:center}
.staff-page .sp-in{width:100%;max-width:420px;padding:28px 20px 24px;display:flex;flex-direction:column;min-height:100dvh}
.staff-page h1{font:700 26px/1.15 var(--display);letter-spacing:-.8px;margin:0 0 8px}
.sp-wait{color:var(--muted);margin:auto;text-align:center}
.sp-sub{color:var(--muted);font-size:15px;margin:0 0 16px}
.sp-fine{font-size:12px;color:var(--muted);text-align:center;margin:14px 0 0}
.sp-in>.sp-fine:last-child{margin-top:auto;padding-top:14px}
.sp-center{text-align:center;align-items:center}
.sp-brand{font:800 22px var(--display);letter-spacing:-1px;margin:4px 0 26px}.sp-brand i{color:var(--blue);font-style:normal}
.sp-logo{width:44px;height:44px;border-radius:11px;background:var(--c);color:#fff;display:inline-grid;place-items:center;font:800 19px var(--display);flex:none}
.sp-invite{border:1px solid var(--line);border-radius:14px;padding:16px;margin-bottom:18px}
.sp-invite p{margin:12px 0 8px;font-size:15px;color:var(--ink)}
.sp-biz{display:flex;gap:12px;align-items:center}.sp-biz b{display:block}.sp-biz small{color:var(--muted);font-size:13px}
.sp-role{display:inline-flex;background:#edf1fe;color:var(--blue);font-weight:700;font-size:12.5px;border-radius:99px;padding:3px 11px}
.sp-btn{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;border-radius:9px;font:600 15px var(--body);border:1px solid #cbd1db;background:#fff;color:var(--ink);width:100%;cursor:pointer}
.sp-btn.blue{background:var(--blue);border-color:var(--blue);color:#fff}
.sp-btn.sm{min-height:36px;width:auto;padding:0 14px;font-size:13.5px}
.sp-btn:disabled{opacity:.6}
.staff-page .auth-form{margin-top:0}.staff-page .auth-or{margin:16px 0 12px}
.staff-page .field input{width:100%;padding:12px;border:1px solid #ced5de;border-radius:8px;font-size:16px;min-height:48px}
.sp-badge{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;margin:40px auto 16px}
.sp-badge.ok{background:#e7f6ec;color:#1f8a4c}.sp-badge.warn{background:#fdf2e3;color:#b4660a}
.sp-steps{list-style:none;padding:0;margin:8px 0 22px;display:grid;gap:12px;text-align:left}
.sp-steps li{display:flex;gap:10px;font-size:14.5px;align-items:flex-start}
.sp-steps b{width:24px;height:24px;border-radius:50%;background:#edf1fe;color:var(--blue);display:grid;place-items:center;font-size:12.5px;flex:none}
.sp-qrhint{border:1px dashed #cbd1db;border-radius:12px;padding:14px;font-size:13.5px;color:var(--muted);display:flex;gap:12px;align-items:center;margin-top:18px}
/* P1: the PIN pad, dark like a till */
.staff-page:has(.sp-pin){background:#111418}
.sp-pin{background:#111418;color:#fff}
.sp-pin .sp-sub{color:#9aa4b2}
.sp-top{display:flex;flex-direction:column;gap:2px;margin-top:6px}.sp-top .sp-logo{margin-bottom:10px}.sp-top small{color:#9aa4b2;font-size:13px}
.sp-ask{font-weight:700;margin-top:26px}
.sp-dots{display:flex;gap:18px;justify-content:center;margin:16px 0 8px}
.sp-dots i{width:15px;height:15px;border-radius:50%;border:2px solid #fff}.sp-dots i.f{background:#fff}
.sp-dots.err i{border-color:#ff7a7a;animation:sp-shake .3s}
.sp-err{color:#ff9a9a;font-size:13.5px;text-align:center;min-height:20px}
.sp-pad{display:grid;grid-template-columns:repeat(3,76px);gap:14px 24px;justify-content:center;margin-top:auto;padding-bottom:12px}
.sp-pad button{width:76px;height:76px;border-radius:50%;border:0;background:#ffffff17;color:#fff;font:500 30px var(--body);cursor:pointer;display:grid;place-items:center}
.sp-pad button:active{background:#ffffff38}
.sp-pad button.sm{background:none;font-size:14px;font-weight:600}
@keyframes sp-shake{25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}
/* The compact scanner: a square frame, not the whole screen */
.sp-scan{gap:0}
.sp-bar{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}
.sp-chip{display:inline-flex;align-items:center;gap:8px;background:#f1f3f6;border-radius:99px;padding:4px 12px 4px 4px;font-size:13.5px;font-weight:700}
.sp-chip>span{width:28px;height:28px;border-radius:50%;background:#dbe5ff;color:var(--blue);display:grid;place-items:center;font-size:11.5px}
.sp-lock{border:0;background:none;color:var(--blue);font:700 14px var(--body);display:flex;gap:5px;align-items:center;cursor:pointer;padding:8px 0}
.sp-vf{width:min(320px,86vw);aspect-ratio:5/4;margin:8px auto 0;border-radius:20px;background:#1d2128;position:relative;overflow:hidden;display:grid;place-items:center}
.sp-vf video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0}
.sp-vf.live video{opacity:1}.sp-vf.live .sp-btn{display:none}
.sp-vf.live::before{content:"";position:absolute;z-index:1;inset:22px;border-radius:17px;background:#ffffff1f;box-shadow:0 0 0 999px #00000040;pointer-events:none}
.sp-vf span{position:absolute;z-index:2;inset:21px;border:2.5px solid #ffffffd9;border-radius:18px;clip-path:polygon(0 0,26% 0,26% 4%,4% 4%,4% 26%,0 26%,0 74%,4% 74%,4% 96%,26% 96%,26% 100%,74% 100%,74% 96%,96% 96%,96% 74%,100% 74%,100% 26%,96% 26%,96% 4%,74% 4%,74% 0,100% 0,100% 100%,0 100%);pointer-events:none}
.sp-hint{text-align:center;color:var(--muted);font-size:13.5px;margin:12px 0 18px}
.sp-row{display:flex;gap:8px}.sp-row input{flex:1;min-width:0;padding:12px;border:1px solid #ced5de;border-radius:9px;font-size:16px;min-height:48px}.sp-row .sp-btn{width:auto;padding:0 18px}
.sp-note{font-size:13.5px;border-radius:10px;padding:10px 12px;margin:12px 0 0}
.sp-note.ok{background:#e7f6ec;color:#17663a}.sp-note.warn{background:#fdf2e3;color:#8a4a06}
.sp-cardbox{border:1px solid var(--line);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px}
.sp-cardtop{display:flex;justify-content:space-between;gap:10px;align-items:baseline}.sp-cardtop b{font-size:18px}.sp-cardtop span{color:var(--muted);font-weight:600;white-space:nowrap}
.sp-meter{height:8px;border-radius:99px;background:#eef1f5;overflow:hidden}.sp-meter i{display:block;height:100%;background:var(--blue);border-radius:inherit}
.sp-offer{display:flex;justify-content:space-between;align-items:center;gap:10px;background:#f6f7f9;border-radius:12px;padding:10px 12px}
.sp-offer span{display:flex;gap:8px;align-items:center;font-size:14px}.sp-offer.ready{background:#edf1fe}
.sp-acts{display:grid;gap:8px}
.sp-next{align-self:center;margin-top:4px}

/* Restore card at the counter (variant A) */
.sp-restore{display:flex;flex-direction:column;gap:8px;flex:1}.sp-restore .sp-btn{margin-top:auto}
.sp-lbl{font-size:14px;font-weight:600}
.sp-in>.sp-restore~.sp-next,.sp-in>.sp-acts~.sp-next{margin-top:12px}
.sp-restore-link{display:flex;gap:6px;align-items:center;justify-content:center;margin:16px auto 0;font-size:14.5px;font-weight:600}
.sp-num{color:var(--muted)}
.sp-push{margin-top:auto}
.sp-ok{display:flex;gap:8px;align-items:center;justify-content:center;color:#17663a;font-weight:700;font-size:17px;margin:8px 0 6px}
.sp-qr{width:min(220px,62vw);aspect-ratio:1;margin:6px auto 4px}.sp-qr svg{width:100%;height:100%}
.sp-row .jp-phone{flex:1;min-width:0}.sp-row .jp-cc{min-height:48px}
/* Offline checkout (AU-25) */
.sp-off{margin:0 0 12px;line-height:1.4}.sp-note.sp-off:not(.warn){background:#e8f0ff;color:#1b3aa8}
.sp-off-failed{margin:0 0 12px;display:grid;gap:6px;line-height:1.4}.sp-off-failed span b{display:block}
.sp-off-failed .link-button{justify-self:start}
.sp-offer small{color:var(--muted);font-size:12px;white-space:nowrap}
/* every gift's button is the same: one word, one size, never wrapped */
.sp-offer .sp-btn{flex-shrink:0;white-space:nowrap}
.sp-offer>span{min-width:0}
.sp-o-txt{display:flex;flex-direction:column;gap:1px;font-style:normal;min-width:0}
.sp-offer.expired b{color:var(--muted)}.sp-offer.expired small{color:#c62828;font-weight:600}.sp-offer.expired .sp-btn[disabled]{opacity:.45}
/* many gifts: the stamp button and Scan the next card stay at the bottom of the screen, the gifts scroll under them */
.sp-foot{position:sticky;bottom:0;z-index:2;display:flex;flex-direction:column;gap:10px;margin:0 -16px -16px;padding:10px 16px 16px;background:#fff;border-radius:0 0 16px 16px}
.sp-foot::before{content:'';position:absolute;left:0;right:0;top:-28px;height:28px;background:linear-gradient(rgba(255,255,255,0),#fff);pointer-events:none}
.sp-foot .sp-next{margin-top:0}
.sp-cardbox .sp-hint{margin:0;text-align:left}
