:root{color-scheme:dark;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC",sans-serif;background:#0d1011;color:#ebe4d3}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at top,#b59c6410,transparent 45%)}[hidden]{display:none!important}button,input{font:inherit}button,a,input{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.4;cursor:default}a{color:#dbc28c;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #e9cb8e;outline-offset:3px}.staff-shell{max-width:560px;padding:24px 18px max(24px,env(safe-area-inset-bottom));margin:auto}.staff-brand{display:flex;align-items:center;gap:12px;margin:8px 0 28px}.staff-brand img{width:48px;height:48px;object-fit:contain}.staff-brand strong{display:block;font-size:23px;letter-spacing:1px}.staff-brand small{display:block;font-size:8px;letter-spacing:1.5px;color:#b5a07b;margin-top:6px}.staff-brand>span{margin-left:auto;font-size:11px;color:#bda97c}.staff-card{padding:23px;border:1px solid #b79b5c32;border-radius:15px;background:linear-gradient(135deg,#202525,#151a1d);margin-bottom:16px;box-shadow:0 12px 36px #0002}.login-card{margin-top:58px}.eyebrow{letter-spacing:3px;font-size:9px;color:#b69b62;margin:0 0 16px}h1{font-size:25px;line-height:1.5;margin:0 0 14px}h2{font-size:18px;line-height:1.5;margin:10px 0}p{font-size:13px;line-height:1.8}.muted{color:#a1a795;font-size:12px}.error{color:#e9a8a3;font-size:12px;line-height:1.7}.error:empty,.message:empty{display:none}form{display:grid;gap:18px;margin-top:22px}label{display:grid;gap:10px;font-size:12px;color:#c1beac}input:not([type=checkbox]):not([type=file]){width:100%;min-width:0;border:1px solid #b29b643a;background:#101617;color:#f0e5cb;border-radius:9px;padding:13px;font-size:16px}.primary,.outline,.quiet,.file-button{border-radius:8px;padding:12px 15px;border:1px solid #b6a0753b;min-height:44px;text-align:center}.primary{width:100%;font-weight:700;color:#191711;background:linear-gradient(110deg,#b2945d,#eed3a0,#c5a06b);border-color:#d5b77a}.outline,.quiet{color:#d9c393;background:#d6b77205}.quiet{padding:8px 13px;font-size:12px}.staff-user{display:flex;align-items:center;justify-content:space-between;margin:0 1px 18px}.staff-user b,.staff-user small{display:block}.staff-user small{font-size:10px;color:#9a9e8e;margin-top:5px}.scan-main{font-size:23px;padding:22px;margin:12px 0 14px}.secondary-actions{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:11px}.file-button{display:block;cursor:pointer;color:#cdb78a;font-size:11px;min-height:38px;padding:10px}.file-button input{display:none}.manual-row{display:flex;gap:9px}.manual-row .outline{flex:0 0 65px;padding:10px}.message{color:#d7c18e;font-size:12px;margin-bottom:0}.camera{margin-top:16px;border:1px solid #c7a86b55;border-radius:11px;overflow:hidden;position:relative;background:#000;text-align:center}.camera video{display:block;width:100%;max-height:350px;object-fit:cover}.camera-guide{position:absolute;top:12%;left:16%;width:68%;aspect-ratio:1;border:2px solid #dfc491;border-radius:12px;pointer-events:none;box-shadow:0 0 0 100px #0003}.camera p{margin:10px;font-size:11px}.camera button{margin-bottom:12px}.result-heading{display:flex;justify-content:space-between;gap:10px;color:#bca77c;font-size:12px}.result-heading b{color:#b9cca1}.result h2{font-size:22px;color:#e7ce9c}.confirm-line{display:flex;align-items:center;gap:10px;margin:20px 0;font-size:13px;line-height:1.6}.confirm-line input{width:18px;height:18px;flex:0 0 18px;accent-color:#d4b572}.history-heading{display:flex;align-items:center;justify-content:space-between}.history-heading h2{margin:0}.history-row{padding:16px 0;border-bottom:1px solid #bca46c25}.history-row strong{font-size:14px;display:block;color:#e1c893}.history-row small{display:block;color:#9ca18f;font-size:11px;margin-top:7px}.history-row span{float:right;color:#d4bd89;font-size:12px}.pager{display:flex;align-items:center;justify-content:space-between;margin-top:18px;gap:10px}.pager span{font-size:11px;color:#999f8e}footer{font-size:9px;letter-spacing:1.5px;text-align:center;color:#777f73;margin:32px 0 12px}@media(max-width:350px){.staff-shell{padding:18px 12px}.staff-card{padding:18px}.staff-brand>span{font-size:10px}.staff-brand strong{font-size:21px}}

/* The same quiet black and champagne material as the management interface. */
:root{background:#111618;color:#eee8db;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}
body{min-height:100vh;background:radial-gradient(ellipse at 50% 0,#d4ba8710,transparent 55%),#111618;-webkit-font-smoothing:antialiased}
svg{width:18px;height:18px;stroke-width:1.7;flex-shrink:0}
button,a,input,.file-button{transition:background .18s,border-color .18s,box-shadow .18s,transform .18s,color .18s;-webkit-tap-highlight-color:transparent}
button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #e0c48e;outline-offset:4px}
.staff-shell{max-width:620px;padding:27px 22px max(26px,env(safe-area-inset-bottom))}
.staff-brand{gap:13px;margin:5px 2px 27px}.staff-brand img{width:46px;height:46px}.staff-brand strong{font-size:22px;letter-spacing:1px;color:#e9e1ce;font-weight:650}.staff-brand small{font-size:7px;letter-spacing:1.5px;color:#a38f6d}
.staff-brand>span{display:flex;align-items:center;gap:6px;padding:7px 9px;border:1px solid #d1b78524;border-radius:20px;background:#d1b78507;color:#cab58e;font-size:10px;white-space:nowrap}.staff-brand>span svg{width:13px;height:13px}
.staff-card{padding:25px;border-radius:23px;border:1px solid #c6ae7f2e;background:linear-gradient(135deg,#242d2e,#1b2428);box-shadow:inset 0 1px #ffffff08,0 10px 35px #00000012;margin-bottom:18px}
.staff-user{gap:11px;margin:0 4px 20px}.staff-user-mark{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:13px;background:#d3b8860b;border:1px solid #d3b88622;color:#d9c194}.staff-user-mark svg{width:18px;height:18px}.staff-user-copy{margin-right:auto;min-width:0}.staff-user b{font-size:12px;font-weight:500;color:#d4d4c2;overflow-wrap:anywhere}.staff-user small{font-size:10px;color:#879e8e;margin-top:5px}
.primary,.outline,.quiet,.file-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:12px;min-height:44px;border:1px solid #d6bb862c;padding:12px 15px;font-size:13px;font-weight:500}
.primary{background:linear-gradient(115deg,#e9d3ad,#c8a570);color:#2e261a;border-color:#ead6ad70;box-shadow:inset 0 1px #fff6,0 5px 15px #0001;font-weight:650}
.outline,.quiet,.file-button{background:#ddc38d05;color:#cabd9e}.quiet{min-height:36px;padding:8px 11px;font-size:11px}.quiet svg{width:14px;height:14px}
button:disabled{opacity:.4;cursor:default}button:active:not(:disabled),.file-button:active{transform:scale(.98)}
@media(hover:hover){.primary:hover:not(:disabled){background:linear-gradient(115deg,#f1dfbd,#d7b77f);box-shadow:0 7px 22px #0002;transform:translateY(-1px)}.outline:hover:not(:disabled),.quiet:hover:not(:disabled),.file-button:hover{border-color:#dac28e66;background:#dac28e0d}}
.primary[aria-busy=true]::after,.outline[aria-busy=true]::after{content:'';width:14px;height:14px;flex:0 0 14px;border:1.5px solid currentColor;border-right-color:transparent;border-radius:50%;animation:staff-spin .7s linear infinite}.primary[aria-busy=true]>svg,.outline[aria-busy=true]>svg{display:none}
.scan-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:17px}.scan-heading .eyebrow{margin-bottom:10px;font-size:8px;color:#a99b80;letter-spacing:2px}.scan-heading h1{font-size:24px;margin:0;font-weight:550;letter-spacing:.4px;color:#f0e4cf}.scan-heading>span{width:36px;height:36px;display:grid;place-items:center;background:#a6c6a909;border:1px solid #a6c6a91c;border-radius:12px;color:#9eb6a0}.scan-heading>span svg{width:18px;height:18px}
.scan-main{min-height:116px;padding:22px;gap:18px;border-radius:18px;justify-content:flex-start;margin:0 0 14px;text-align:left}
.scan-button-icon{display:grid;place-items:center;width:64px;height:64px;flex:0 0 64px;border-radius:19px;background:#ffffff24;border:1px solid #ffffff70;box-shadow:inset 0 1px #fff7;color:#4c402b}.scan-button-icon svg{width:39px;height:39px;stroke-width:1.35}
.scan-button-copy{display:grid;gap:8px;min-width:0}.scan-button-copy strong{font-size:25px;line-height:1;font-weight:650}.scan-button-copy small{font-size:10px;color:#776548;font-weight:400}.scan-main>svg{align-self:flex-start;margin-left:auto;width:19px;height:19px;color:#665538}
.secondary-actions{gap:12px;align-items:stretch}.file-button{position:relative;flex:1;min-height:43px;font-size:11px;gap:7px;border-radius:12px;overflow:hidden}.file-button svg{width:16px;height:16px}.file-button input{display:block;opacity:0;position:absolute;inset:0;width:100%;height:100%;cursor:pointer}.file-button:focus-within{outline:2px solid #e0c48e;outline-offset:3px}
.secondary-actions>a{display:flex;align-items:center;justify-content:center;gap:6px;min-height:43px;font-size:11px;color:#a9b3a1}.secondary-actions>a svg{width:14px;height:14px}
#staff-code-form{margin-top:24px;padding-top:20px;border-top:1px solid #c8b18518;gap:16px}label{color:#adb9ac;font-size:12px;gap:10px}
input:not([type=checkbox]):not([type=file]){min-height:46px;border-radius:12px;border:1px solid #cab18430;background:#141d20;box-shadow:inset 0 2px 5px #0001;color:#eee5d3;padding:12px 13px;font-size:16px}
input::placeholder{color:#72867a}input:not([type=checkbox]):not([type=file]):focus{outline:none;border-color:#d5b680;box-shadow:0 0 0 3px #d5b68016;background:#192326}
.manual-row{gap:9px}.manual-row .outline{flex:0 0 78px;font-size:12px;border-radius:12px;padding:10px}.manual-row .outline svg{width:15px;height:15px}
.message{padding:12px 14px;border:1px solid #d4b78126;background:#d4b78108;border-radius:12px;color:#dbcaab;font-size:12px;line-height:1.8}
.camera{border-radius:17px;border-color:#cfb7855c;margin-top:18px}.camera-guide{border-color:#ebd3a1;border-radius:18px;box-shadow:0 0 0 120px #0004}.camera p{color:#d6d8bd;margin:13px;font-size:12px}.camera button{margin-bottom:15px}.camera video{max-height:410px}
.result{border-color:#dfc18c55;background:linear-gradient(130deg,#302f26,#202c29)}.result-heading{gap:13px;font-size:11px}.result-heading>small{display:flex;align-items:center;gap:8px;color:#bcae8d;font-size:11px}.result-heading svg{width:16px;height:16px}.result-heading>b{border:1px solid #d7bc842f;border-radius:20px;padding:3px 9px;color:#d6be8d;background:#d7bc8407;font-size:10px;font-weight:400}
.result h2{font-size:24px;font-weight:550;line-height:1.6;margin:17px 0 8px;color:#f0d9ad}.result>p{color:#b8c2ae;font-size:13px}.result>p.muted{font-size:11px;color:#8fa58e}.confirm-line{background:#d5ba8710;border:1px solid #d5ba8730;border-radius:13px;padding:14px;margin:21px 0 16px;font-size:12px;color:#d7c9a9}.confirm-line input{width:18px;height:18px;accent-color:#d4b681}
.result[data-status=used]{border-color:#98bba74d;background:linear-gradient(135deg,#26382f,#1c2a27)}.result[data-status=used] .result-heading>b{background:#9abd9b0a;border-color:#9abd9b30;color:#aecab0}.result[data-status=expired]{border-color:#c7998355}.result[data-status=expired] .result-heading>b{color:#d0a291;border-color:#c7998335}
.history-heading{margin-bottom:7px}.history-heading h2{display:flex;align-items:center;gap:9px;font-size:15px;color:#d9d4c0;font-weight:550}.history-heading h2 svg{width:17px;height:17px;color:#c9b58c}.history-heading .quiet{border-color:transparent;background:transparent;color:#95a58f}.history-heading .quiet[aria-busy=true] svg{animation:staff-spin 1s linear infinite}
.history-row{border-bottom-color:#cbb58114;padding:18px 0}.history-row strong{font-size:14px;color:#d5c6a4;font-weight:500}.history-row small{color:#829b87;font-size:11px;line-height:1.6}.history-row span{background:#d4bb8708;border:1px solid #d4bb871c;border-radius:8px;padding:3px 7px;font-size:10px}.history>.muted{padding-top:12px}.pager{margin-top:19px;padding-top:5px}.pager span{color:#8d9e8e;font-size:11px}
.login-card{margin-top:48px;text-align:center;padding:30px}.staff-login-mark{display:grid;place-items:center;width:61px;height:61px;margin:0 auto 22px;border-radius:20px;background:#d2b7820e;border:1px solid #d2b7822e;color:#dbc18c}.staff-login-mark svg{width:31px;height:31px;stroke-width:1.5}.login-card .eyebrow{font-size:8px;letter-spacing:2px;margin-bottom:11px}.login-card h1{font-size:26px;font-weight:550;margin-bottom:9px}.login-card .muted{font-size:12px;color:#8c9f8e}.login-card form{text-align:left;gap:18px;margin-top:26px}.login-card form>.primary{margin-top:5px;min-height:47px}
.password-field{display:block;position:relative}.password-field input{padding-right:49px!important}.password-toggle{display:grid;place-items:center;position:absolute;right:4px;top:50%;transform:translateY(-50%);width:38px;height:36px;border:0;border-radius:10px;background:transparent;color:#94a18f;padding:0;cursor:pointer}.password-toggle svg{width:18px;height:18px}.password-toggle:hover,.password-toggle[aria-pressed=true]{background:#d5bc8710;color:#e0c595}.password-toggle:active{transform:translateY(-50%) scale(.96)}
.error{padding:11px 13px;border:1px solid #dda48c30;background:#dda48c08;border-radius:11px;color:#e0ac97;font-size:12px}
footer{margin-top:30px;color:#5f7d68;font-size:8px;letter-spacing:1.7px}
@keyframes staff-spin{to{transform:rotate(360deg)}}
@media(max-width:450px){.staff-shell{padding:21px 16px max(23px,env(safe-area-inset-bottom))}.staff-brand{margin-bottom:24px;gap:10px}.staff-brand img{width:40px;height:40px}.staff-brand strong{font-size:20px}.staff-brand small{font-size:6px;letter-spacing:1.3px}.staff-brand>span{font-size:9px;padding:6px 8px;gap:5px}.staff-brand>span svg{width:12px;height:12px}.staff-card{padding:21px 18px;border-radius:20px;margin-bottom:15px}.scan-heading{gap:12px;margin-bottom:18px}.scan-heading h1{font-size:23px}.scan-heading>span{width:31px;height:31px;flex:0 0 31px;border-radius:11px}.scan-main{min-height:110px;padding:21px 17px;gap:14px;border-radius:17px}.scan-button-icon{width:57px;height:57px;flex-basis:57px;border-radius:18px}.scan-button-icon svg{width:35px;height:35px}.scan-button-copy strong{font-size:24px}.scan-button-copy small{font-size:9px}.scan-main>svg{width:16px;height:16px}.secondary-actions{gap:11px}.secondary-actions>a{font-size:10px;gap:4px}.secondary-actions>a svg{width:12px;height:12px}.file-button{font-size:11px;padding:10px 9px}.login-card{padding:28px 23px;margin-top:40px}.staff-user{margin-bottom:17px}.result h2{font-size:22px}.history-heading h2{font-size:14px}}
@media(max-width:350px){.staff-shell{padding-left:12px;padding-right:12px}.staff-card{padding:19px 16px}.staff-brand>span{padding:6px}.staff-brand>span svg{display:none}.scan-heading h1{font-size:21px}.scan-main{gap:12px;padding:19px 14px}.scan-button-icon{width:49px;height:49px;flex-basis:49px;border-radius:16px}.scan-button-icon svg{width:30px;height:30px}.scan-button-copy strong{font-size:23px}.scan-button-copy small{font-size:8px}.scan-main>svg{width:14px;height:14px}.secondary-actions>a svg{display:none}.file-button{gap:5px}.manual-row .outline{flex-basis:70px;gap:5px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.scan-button-copy small{color:#655338}

/* Full-viewport scan surface. A dialog also keeps background controls inert. */
body.staff-scanning{overflow:hidden;overscroll-behavior:none}
#staff-camera{position:fixed;inset:0;margin:0;padding:0;width:100vw;max-width:none;height:100vh;height:100dvh;max-height:none;border:0;border-radius:0;background:#05080a;color:#f6f0e4;overflow:hidden;box-shadow:none;z-index:1000;overscroll-behavior:none;touch-action:none}
#staff-camera[open]{display:block}
#staff-camera::backdrop{background:#05080a}
#staff-video{position:absolute;inset:0;display:block;width:100%;height:100%;max-height:none;object-fit:cover;background:#05080a}
#staff-camera .camera-toolbar{position:absolute;z-index:3;left:0;right:0;top:0;display:grid;grid-template-columns:48px 1fr 48px;align-items:center;gap:12px;padding:calc(15px + env(safe-area-inset-top)) max(19px,env(safe-area-inset-right)) 25px;background:linear-gradient(#05080ab8,transparent)}
#staff-camera-title{margin:0;text-align:center;font-size:17px;font-weight:550;letter-spacing:1px;color:#f3eddf}
#staff-camera .camera-back{display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;margin:0;border:1px solid #ffffff24;border-radius:50%;background:#10171970;color:#f4e4c8;backdrop-filter:blur(12px);touch-action:manipulation}
.camera-back svg{width:23px;height:23px;stroke-width:1.7}
#staff-camera .camera-guide{position:absolute;left:50%;top:46%;transform:translate(-50%,-50%);width:min(74vw,340px,58vh);width:min(74vw,340px,58dvh);height:auto;aspect-ratio:1;border:1px solid #dec7996b;border-radius:23px;box-shadow:0 0 0 200vmax #02070a70;pointer-events:none;overflow:hidden}
#staff-camera .camera-guide::before{content:'';position:absolute;inset:0;border:3px solid #e8d0a0;border-radius:22px;clip-path:polygon(0 0,23% 0,23% 3%,3% 3%,3% 23%,0 23%,0 0,100% 0,100% 23%,97% 23%,97% 3%,77% 3%,77% 0,100% 0,100% 100%,77% 100%,77% 97%,97% 97%,97% 77%,100% 77%,100% 100%,0 100%,0 77%,3% 77%,3% 97%,23% 97%,23% 100%,0 100%)}
.camera-scan-line{position:absolute;left:9%;right:9%;height:1px;top:15%;background:linear-gradient(90deg,transparent,#efdcaf,transparent);box-shadow:0 0 13px #e9cb8566;animation:camera-sweep 2.4s ease-in-out infinite}
#staff-camera .camera-actions{position:absolute;z-index:3;left:0;right:0;bottom:0;margin:0;padding:28px 20px calc(30px + env(safe-area-inset-bottom));display:grid;justify-items:center;gap:24px;background:linear-gradient(transparent,#05080abd);color:#e3dccb;letter-spacing:0}
#staff-camera-status{margin:0;font-size:13px;color:#ece5d5;line-height:1.7;min-height:22px;text-shadow:0 1px 5px #000}
#staff-camera .camera-album{display:grid;justify-items:center;align-content:center;gap:10px;margin:0;min-width:88px;min-height:76px;padding:9px 13px;border:0;border-radius:16px;background:transparent;color:#ede1c9;touch-action:manipulation;font-size:11px;font-weight:400}
.camera-album svg{width:26px;height:26px;stroke-width:1.5}
.camera-album:hover,.camera-back:hover{background:#ffffff12!important}
.camera-album:focus-visible,.camera-back:focus-visible{outline:2px solid #ebd1a1;outline-offset:4px}
@keyframes camera-sweep{0%,100%{top:15%;opacity:.45}50%{top:85%;opacity:1}}
@media(max-height:500px){#staff-camera .camera-toolbar{padding-top:max(9px,env(safe-area-inset-top));padding-bottom:12px}#staff-camera .camera-guide{top:48%;width:min(44vw,55dvh)}#staff-camera .camera-actions{left:auto;width:160px;top:50%;bottom:auto;transform:translateY(-50%);padding:12px 14px;gap:12px;background:none}#staff-camera-status{font-size:11px}.camera-album svg{width:23px;height:23px}}
@media(prefers-reduced-motion:reduce){.camera-scan-line{animation:none;top:50%;opacity:.8}}

/* Obvious return controls on the workbench and the camera surface. */
.staff-return-bar{position:sticky;top:0;z-index:25;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:calc(10px + env(safe-area-inset-top)) 0 12px;margin-bottom:18px;background:#111618f5;backdrop-filter:blur(16px)}
.staff-return-bar>a{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:46px;padding:10px 15px;border:1px solid #d4b98466;border-radius:13px;background:#d4b98414;color:#f0d5a3;font-size:15px;font-weight:600;white-space:nowrap;text-decoration:none}
.staff-return-bar>a svg{width:21px;height:21px}.staff-return-bar>span{font-size:12px;color:#94a38f}
#staff-camera .camera-toolbar{grid-template-columns:84px minmax(0,1fr) 96px;gap:8px;padding-left:max(14px,env(safe-area-inset-left));padding-right:max(14px,env(safe-area-inset-right))}
#staff-camera .camera-back{display:flex;align-items:center;justify-content:center;gap:3px;width:84px;min-height:46px;border-radius:14px;padding:8px;font-size:15px;font-weight:500}
#staff-camera .camera-back svg{width:21px;height:21px}
#staff-camera .camera-return{display:flex;align-items:center;justify-content:center;min-height:46px;padding:9px 12px;border:1px solid #e0c38b66;border-radius:14px;background:#d4b9841c;color:#f1d8ad;font-size:14px;font-weight:550;text-decoration:none;white-space:nowrap;backdrop-filter:blur(12px);touch-action:manipulation}
#staff-camera .camera-return:hover,.staff-return-bar>a:hover{background:#d4b9842b;border-color:#e4ca95}
#staff-camera .camera-return:focus-visible,.staff-return-bar>a:focus-visible{outline:2px solid #ebd1a1;outline-offset:3px}
