/* The counter app (/staff/): one column, 56 px main buttons, one hand at 360 px. Loaded after
   nimbu.css by staff/base.html; tokens only. Screens from docs/redesign/Staff-*. */
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* Header: the shop, "<outlet> counter" and a <details> menu. */
.bar-staff{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 8px 10px 16px;background:var(--leaf-deep);color:var(--surface)}
.bar-staff p{margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.bar-staff .t{font:700 17px/24px var(--font-display);color:var(--surface)}
.bar-staff .s{font-size:13px;line-height:18px;color:var(--mist)}
.bar-staff :focus-visible{outline-color:var(--lemon)}
.staff-menu{position:relative}
.staff-menu>summary{color:var(--surface)}
.staff-menu-box{position:absolute;top:calc(100% + 8px);right:0;z-index:10;min-width:200px;padding:var(--space-2);border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--paper);box-shadow:0 12px 40px var(--shadow)}
.staff-menu-box form{margin:0}
.staff-menu-box :is(a,button){display:flex;align-items:center;gap:var(--space-3);width:100%;min-height:44px;padding:0 var(--space-3);border:0;border-radius:8px;background:none;color:var(--ink);font:600 15px/1.2 var(--font-sans);text-align:left;text-decoration:none;cursor:pointer}
.staff-menu-box :is(a,button):hover{background:var(--fill-soft)}
.staff-offline{margin:0;padding:var(--space-3) var(--space-4);background:var(--lemon);color:var(--ink);font-weight:600;text-align:center}

/* Page: a stack of cards. */
.staff-main{display:flex;flex-direction:column;gap:var(--space-4);width:100%;max-width:480px;margin:0 auto;padding:var(--space-6) var(--space-4) var(--space-12)}
.staff-main>*,.staff-main .stack>*,.staff-main p{margin:0}
.staff-main h1{margin:0;font-size:30px;line-height:1.15}
.staff-main .h2{font-size:24px;line-height:1.25}
.staff-main .lead{margin:0}
.staff-main .card{padding:20px}
.staff-main .card-tight{padding:16px}
.staff-tight{gap:var(--space-3)}
.staff-center{text-align:center}
.staff-logo{display:block;align-self:flex-start;height:30px;width:auto;margin:var(--space-2) 0}
.staff-head{display:grid;gap:6px}
.staff-back{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;min-height:44px;font-size:15px;font-weight:600;text-decoration:none}

/* Fields: big, and a label is one target with its field (44 px, right on top of it). */
.staff .field>:is(input:not([type=checkbox],[type=radio],[type=file]),select),.staff .prefix .input{min-height:56px;font-size:19px}
.staff .field:not(fieldset){gap:0}
.staff .field>label{display:flex;align-items:center;min-height:44px}
.staff .field>.error,.staff .field>.errors,.staff .field>.help{margin-top:var(--space-2)}
.staff .prefix>span{font-size:20px}
.staff .prefix>input{border:0;border-radius:0;box-shadow:none}

/* Find: scan first, then the number, then today's list. */
.scan{display:flex;flex-direction:column;gap:var(--space-4)}
.scan .notice{margin:0}
.staff-scan{flex-direction:column;gap:10px;min-height:120px;border-radius:var(--radius-md);font-size:19px}
.scan-box{display:grid;gap:var(--space-3)}
.scan-box video{width:100%;aspect-ratio:1;object-fit:cover;border-radius:var(--radius-md);background:var(--ink)}
.staff-or{display:flex;align-items:center;gap:var(--space-3);margin:0;color:var(--ink-subtle);font-size:13px}
.staff-or::before,.staff-or::after{content:"";flex:1;height:1px;background:var(--line)}
#scan-start[hidden]+.scan-box[hidden]+.staff-or{display:none}
.staff-today{flex-wrap:nowrap;padding:12px 0;color:inherit;text-decoration:none}
.staff-today .row-title,.staff-today .row-meta{display:block}
.staff-new-icon{width:56px;height:56px}
.staff-optional{margin-left:4px;font-weight:400}

/* The card: who, a reward that is ready, the balance, and the earn form. */
.staff-avatar{width:48px;height:48px;font-size:18px}
.staff-ready{background:var(--lemon-tint);border-color:var(--lemon)}
.staff-ready-title{gap:10px;font-size:17px;font-weight:700}
.staff-count{font-size:24px;line-height:1.2}
.staff-count .small{font:500 15px var(--font-sans);letter-spacing:0}
.stamps{gap:8px}
.stamps.six{grid-template-columns:repeat(6,1fr)}
.staff-step{margin:0}
.stepper{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3)}
.stepper-btn{display:inline-flex;flex:none;align-items:center;justify-content:center;width:64px;height:64px;border:1.5px solid var(--leaf-deep);border-radius:50%;background:var(--paper);color:var(--leaf-deep);cursor:pointer}
.stepper-btn:disabled{opacity:.4;cursor:default}
.stepper input{width:112px;min-height:64px;padding:0;text-align:center;font:700 40px/1 var(--font-display);font-variant-numeric:tabular-nums}
.staff-bill .prefix>span{font-size:22px}
.staff-bill .prefix>input{min-height:64px;font:700 28px var(--font-display)}
.staff-lines{display:grid;gap:4px;text-align:center}
.staff-lines p{margin:0}
.staff-lines .error{justify-content:center}
.staff-last>summary{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;color:var(--leaf-deep);font-size:15px;font-weight:600}
.staff-last[open]>summary{margin-bottom:var(--space-3)}
.staff-full{flex-basis:100%;margin:0}
.staff-link{display:inline-flex;align-items:center;min-height:44px;font-weight:600}

/* Outlets: one big button each. */
.staff-places{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--space-3)}
.staff-place{display:flex;align-items:center;gap:14px;width:100%;padding:18px;border:1px solid var(--line);border-radius:var(--radius-md);background:var(--paper);color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.staff-place[aria-current]{border:2px solid var(--leaf-deep);box-shadow:0 0 0 4px var(--lemon-tint)}
.staff-place-icon{display:flex;flex:none;align-items:center;justify-content:center;width:48px;height:48px;border-radius:12px;background:var(--lemon-tint);color:var(--leaf-deep)}
.staff-place-name{display:block;font:600 18px/1.3 var(--font-display);overflow-wrap:anywhere}
.staff-place-line{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}

/* Redeem: "Give the reward" is dimmed until the code has 6 digits (the browser holds the post). */
.staff-code:invalid .btn-primary{opacity:.45}
.staff-again{display:flex;flex-wrap:wrap;align-items:center;gap:0 4px}

/* Done and offline: a big mark, what happened, what's next. */
.staff-done{display:flex;flex-direction:column;align-items:center;gap:14px;padding-top:var(--space-6);text-align:center}
.staff-done>*{margin:0}
.staff-mark{display:flex;align-items:center;justify-content:center;width:88px;height:88px;border:3px solid var(--leaf-deep);border-radius:50%;background:var(--lemon);color:var(--leaf-deep)}
.staff-mark-off{border:0;background:var(--prefix-bg);color:var(--ink-muted)}
.staff-done-label{color:var(--ink-muted);font-weight:600}
.staff-undo{text-align:center}
/* A link or button inside a sentence: a 44 px target whose negative margins keep the line's height. */
.staff-inline{display:inline-block;min-width:44px;min-height:44px;margin:-12px 0;padding:12px 4px;border:0;background:none;color:var(--leaf-deep);font:inherit;font-weight:600;line-height:inherit;text-align:center;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.staff-offline-page{padding-top:var(--space-12)}
