:root{
  --business-accent:#D4A64F;
  --bg:#07090c;
  --surface:#11151b;
  --surface-2:#181d24;
  --surface-3:#20262f;
  --line:#262d37;
  --text:#f7f8fa;
  --muted:#929ba8;
  --gold:#f3c96c;
  --green:#50d6a0;
  --amber:#f6ca67;
  --red:#ff8294;
  --blue:#7db8ff;
  --shadow:0 24px 70px rgba(0,0,0,.42);
}
*{box-sizing:border-box}
html{background:#05070a}
body{margin:0;min-height:100vh;background:radial-gradient(circle at 50% 0,#1b2028 0,#090b0f 42%,#05070a 100%);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
button,input{font:inherit}
button{color:inherit}
.phone-shell{position:relative;width:100%;max-width:430px;min-height:100dvh;margin:0 auto;background:linear-gradient(180deg,#0b0e12 0%,#080a0e 100%);overflow:hidden;padding:0 16px calc(92px + env(safe-area-inset-bottom));box-shadow:var(--shadow)}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:calc(18px + env(safe-area-inset-top)) 2px 16px;position:sticky;top:0;z-index:20;background:linear-gradient(180deg,rgba(11,14,18,.98) 78%,rgba(11,14,18,.72) 90%,rgba(11,14,18,0));backdrop-filter:blur(14px)}
.topbar h1,.page-head h2,.section-heading h2{margin:3px 0 0;letter-spacing:-.03em}.topbar h1{font-size:27px}.page-head h2,.section-heading h2{font-size:22px}.eyebrow{margin:0;color:var(--muted);font-size:10px;letter-spacing:.16em;font-weight:800}.icon-button{width:42px;height:42px;border:1px solid var(--line);border-radius:50%;background:linear-gradient(145deg,#d69c68,#70482e);font-weight:900;font-size:15px;box-shadow:0 10px 24px rgba(0,0,0,.22)}
.view{display:none}.view.active{display:block}.page-head{padding:10px 2px 8px}.page-head .muted{margin-top:8px;line-height:1.5}.capacity-card{background:linear-gradient(145deg,#171c23,#11151b);border:1px solid var(--line);border-radius:24px;padding:18px;box-shadow:0 14px 34px rgba(0,0,0,.22)}.capacity-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.label{margin:0 0 6px;color:var(--muted);font-size:11px;font-weight:800;letter-spacing:.08em}.capacity-card h2{margin:0;font-size:25px;letter-spacing:-.03em}.status-pill{border-radius:999px;padding:8px 10px;font-size:11px;font-weight:800;border:1px solid transparent}.status-pill.available{color:#a5f0cf;background:#113228;border-color:#1d5843}.status-pill.full{color:#ffe4a8;background:#38290e;border-color:#654b18}.capacity-track{height:8px;background:#252b34;border-radius:999px;overflow:hidden;margin-top:18px}.capacity-fill{height:100%;border-radius:999px;background:linear-gradient(90deg,var(--green),var(--gold));transition:width .25s ease}.muted{color:var(--muted);font-size:13px}.capacity-card .muted{margin:10px 0 0}.notice{margin-top:12px;padding:12px 14px;border-radius:15px;border:1px solid #664d19;background:#37290f;color:#ffe2a0;font-size:12px;line-height:1.45}.notice.success{border-color:#1f5c46;background:#113126;color:#aaf2d2}.hidden{display:none!important}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:12px;padding:24px 2px 10px}.section-heading.compact{padding-top:28px}.count-badge{min-width:26px;height:26px;border-radius:999px;display:grid;place-items:center;background:#2a210d;color:var(--gold);font-size:12px;font-weight:900}.text-button{border:0;background:none;color:var(--gold);font-size:12px;font-weight:800;padding:6px}.stack{display:grid;gap:12px}.request-card,.table-card,.request-item,.settings-card{border:1px solid var(--line);background:linear-gradient(180deg,#151a21,#10141a);border-radius:20px;padding:15px}.request-card{box-shadow:0 12px 28px rgba(0,0,0,.18)}.card-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.table-label{font-size:17px;font-weight:900;letter-spacing:-.02em}.card-meta{margin-top:4px;color:var(--muted);font-size:12px;line-height:1.4}.amount{font-weight:900;color:var(--gold);font-size:14px;white-space:nowrap}.button-row{display:grid;grid-template-columns:1.25fr .75fr;gap:9px;margin-top:14px}.primary,.secondary,.quiet{border:0;border-radius:14px;padding:12px 14px;font-weight:900;font-size:13px}.primary{background:var(--gold);color:#15110a}.secondary{background:#1a2028;border:1px solid var(--line)}.quiet{background:#12171d;border:1px solid var(--line);color:#c7ced7}.wide{width:100%;margin-top:14px}.table-card .button-row{grid-template-columns:1fr}.chips{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.chip{padding:6px 9px;border-radius:999px;background:#202630;color:#d5dae1;font-size:11px}.chip.pay{background:#32260e;color:#f5d787}.chip.follow{background:#14283a;color:#9bc7ff}.empty{padding:24px 16px;text-align:center;border:1px dashed #343c48;border-radius:18px;color:var(--muted);font-size:13px;line-height:1.5}.request-item{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.request-item .right{display:grid;gap:8px;justify-items:end}.request-item button{padding:9px 11px}.settings-card{margin-top:14px}.setting-row{display:flex;justify-content:space-between;gap:14px;padding:14px 0;border-bottom:1px solid var(--line);font-size:13px}.setting-row:first-child{padding-top:2px}.setting-row:last-child{border-bottom:0;padding-bottom:2px}.setting-row span{color:var(--muted)}.bottom-nav{position:fixed;left:50%;bottom:0;transform:translateX(-50%);width:min(430px,100%);height:76px;padding:7px 10px calc(9px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(4,1fr);background:rgba(9,11,15,.96);border-top:1px solid var(--line);backdrop-filter:blur(16px);z-index:50}.nav-item{position:relative;border:0;background:none;color:#7f8995;display:grid;place-items:center;align-content:center;gap:3px;padding:5px}.nav-item span{font-size:20px;line-height:1}.nav-item small{font-size:10px;font-weight:800}.nav-item.active{color:var(--gold)}.nav-dot{position:absolute;top:7px;right:27%;width:7px;height:7px;border-radius:50%;background:var(--red);border:2px solid #090b0f}.toast{position:fixed;left:50%;bottom:88px;transform:translate(-50%,18px);width:min(390px,calc(100% - 32px));padding:12px 14px;background:#f8fafc;color:#111827;border-radius:14px;font-size:12px;font-weight:800;opacity:0;pointer-events:none;transition:.22s ease;z-index:60;box-shadow:0 16px 40px rgba(0,0,0,.35)}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(min-width:700px){body{padding:24px}.phone-shell{min-height:calc(100dvh - 48px);border:1px solid #2a3039;border-radius:30px}.bottom-nav{bottom:24px;border-radius:0 0 30px 30px}}
.detail-button{width:100%;margin-top:12px;border:1px solid #313946;background:#12171e;color:#e7ebf0;border-radius:13px;padding:11px 12px;text-align:left;font-weight:800;font-size:12px}.detail-button::after{content:'›';float:right;color:var(--gold);font-size:18px;line-height:14px}.sheet-open{overflow:hidden}.sheet-backdrop{position:fixed;inset:0;z-index:100;background:rgba(2,4,7,.72);display:flex;align-items:flex-end;justify-content:center;padding:0 0 env(safe-area-inset-bottom);backdrop-filter:blur(4px)}.detail-sheet{width:min(430px,100%);max-height:92dvh;overflow:auto;background:linear-gradient(180deg,#171b22 0,#0d1015 100%);border:1px solid #303743;border-bottom:0;border-radius:28px 28px 0 0;padding:8px 16px calc(22px + env(safe-area-inset-bottom));box-shadow:0 -24px 70px rgba(0,0,0,.55)}.sheet-handle{width:42px;height:5px;border-radius:999px;background:#444c58;margin:4px auto 12px}.sheet-head{position:sticky;top:-8px;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:16px;background:linear-gradient(180deg,#171b22 78%,rgba(23,27,34,.92) 90%,rgba(23,27,34,0));padding:8px 0 16px}.sheet-head h2{margin:3px 0 0;font-size:25px;letter-spacing:-.03em}.sheet-close{width:38px;height:38px;border-radius:50%;border:1px solid var(--line);background:#202630;color:#d8dde5;font-size:24px;line-height:1}.detail-content{display:grid;gap:12px}.summary-card,.detail-block{border:1px solid var(--line);background:#11161c;border-radius:18px;padding:14px}.info-row{display:flex;justify-content:space-between;gap:18px;padding:10px 0;border-bottom:1px solid #252b34;font-size:12px}.info-row:first-child{padding-top:0}.info-row:last-child{border-bottom:0;padding-bottom:0}.info-row>span:first-child{color:var(--muted)}.detail-block-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:12px}.detail-block-head>div{display:grid;gap:4px}.detail-block-head span{color:var(--muted);font-size:11px}.detail-total{color:var(--gold);white-space:nowrap}.item-list{display:grid;gap:0;border-top:1px solid #252b34}.item-row{display:flex;justify-content:space-between;gap:14px;padding:12px 0;border-bottom:1px solid #252b34}.item-row:last-child{border-bottom:0;padding-bottom:2px}.item-row>div{display:grid;gap:4px}.item-row span{font-size:11px;color:var(--muted)}.item-row strong{font-size:12px}.customer-note{border:1px solid #50411d;background:#2a220f;border-radius:14px;padding:12px;margin-top:12px}.customer-note span{color:#d8ba72;font-size:10px;text-transform:uppercase;letter-spacing:.08em;font-weight:900}.customer-note p{margin:5px 0 0;font-size:12px;line-height:1.5;color:#fff2ce}.pending-block{border-color:#4b3c18;background:#1e190e}.pending-request{display:flex;justify-content:space-between;gap:14px;padding:10px 0;border-top:1px solid #413719}.pending-request>div{display:grid;gap:4px}.pending-request span{font-size:11px;color:#c2ab73}.wide-action{width:100%;margin-top:12px}.sheet-actions{display:grid;grid-template-columns:1.2fr .8fr;gap:9px;padding-top:2px}.sheet-actions.single{grid-template-columns:1fr}
@media(min-width:700px){.sheet-backdrop{align-items:center;padding:24px}.detail-sheet{border-bottom:1px solid #303743;border-radius:28px;max-height:calc(100dvh - 48px)}}

.login-view{min-height:calc(100dvh - 32px);display:flex;flex-direction:column;justify-content:center;padding:28px 2px 90px}
.login-view h1{font-size:34px;letter-spacing:-.04em;margin:8px 0 6px}
.login-brand{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;margin-bottom:22px;background:linear-gradient(145deg,var(--gold),#9d7133);color:#17110a;font-size:22px;font-weight:1000;box-shadow:0 16px 34px rgba(0,0,0,.26)}
.login-form{display:grid;gap:13px;margin-top:26px}
.login-form label{display:grid;gap:7px;color:var(--muted);font-size:11px;font-weight:800;letter-spacing:.04em}
.login-form input{width:100%;border:1px solid var(--line);border-radius:15px;background:#11161c;color:var(--text);padding:14px;outline:none}
.login-form input:focus{border-color:var(--gold)}
.login-form .notice{margin-top:0}

/* Feedback must stay above the open order/details sheet. */
.sheet-backdrop{z-index:90!important}
.detail-sheet{z-index:100!important}
.toast{z-index:140!important;position:fixed!important}

.payment-ledger-block{margin-top:14px}
.payment-summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:10px 0 12px}
.payment-summary-grid>div{background:#10151b;border:1px solid var(--line);border-radius:13px;padding:10px}
.payment-summary-grid span,.payment-summary-grid strong{display:block}
.payment-summary-grid span{font-size:9px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}
.payment-summary-grid strong{margin-top:5px;font-size:13px}
.payment-history-mini{display:grid;gap:7px;margin:10px 0 13px}
.payment-history-mini>div{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-top:1px solid var(--line);font-size:10px}
.payment-history-mini span{color:var(--muted)}
.payment-entry{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px}
.payment-entry label{display:grid;gap:6px}
.payment-entry label span{font-size:9px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em;font-weight:800}
.payment-entry select,.payment-entry input{width:100%;border:1px solid var(--line);border-radius:11px;background:#0f141a;color:var(--text);padding:11px;outline:none}
.payment-entry select:focus,.payment-entry input:focus{border-color:var(--gold)}
.payment-entry .payment-reference,.payment-entry .wide-action{grid-column:1/-1}
.payment-reference em{font-style:normal;text-transform:none;letter-spacing:0;font-weight:500}
.payment-waiting{border:1px dashed var(--line);border-radius:12px;padding:12px;color:var(--muted);font-size:11px;line-height:1.5}
.payment-complete{border:1px solid rgba(88,190,124,.3);background:rgba(88,190,124,.08);border-radius:13px;padding:13px}
.payment-complete strong,.payment-complete span{display:block}
.payment-complete strong{color:#79d39a}
.payment-complete span{font-size:10px;color:var(--muted);margin-top:4px}
@media(max-width:390px){.payment-summary-grid{grid-template-columns:1fr}.payment-entry{grid-template-columns:1fr}.payment-entry .payment-reference,.payment-entry .wide-action{grid-column:auto}}

/* FINAL UI / UX CLEANUP — STAFF */
html{overscroll-behavior:none;text-rendering:optimizeLegibility}
body{overscroll-behavior-y:none}
button,input,select,textarea{font:inherit}
button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(243,201,108,.24);outline-offset:2px}
button:disabled{opacity:.55;cursor:not-allowed}
.primary,.secondary,.quiet,.detail-button,.nav-item,.icon-button,.sheet-close,.request-card,.table-card,.request-item{
 transition:transform .14s ease,border-color .14s ease,background-color .14s ease,opacity .14s ease,box-shadow .14s ease
}
.primary:active,.secondary:active,.quiet:active,.detail-button:active,.nav-item:active,.icon-button:active{transform:scale(.985)}
.primary,.secondary,.quiet,.detail-button,.wide-action{min-height:44px}
.request-card,.table-card,.request-item,.settings-card{box-shadow:0 10px 28px rgba(0,0,0,.12)}
.topbar{min-height:72px}.bottom-nav{min-height:78px}.nav-item{min-height:54px}
.detail-sheet{overscroll-behavior:contain;scrollbar-width:thin}.sheet-head{backdrop-filter:blur(16px)}.sheet-close{min-width:40px;min-height:40px}
.payment-entry input,.payment-entry select,.login-form input{min-height:46px;font-size:16px}
.payment-entry input:focus,.payment-entry select:focus,.login-form input:focus{border-color:#8b7440!important;box-shadow:0 0 0 3px rgba(243,201,108,.10)}
.payment-summary-grid>div{min-width:0}.payment-summary-grid strong{overflow-wrap:anywhere}
.staff-action-busy{pointer-events:none;opacity:.68!important}
.staff-action-busy::after{
 content:"";display:inline-block;width:12px;height:12px;margin-left:8px;vertical-align:-2px;border-radius:50%;
 border:2px solid currentColor;border-right-color:transparent;animation:staffSpin .7s linear infinite
}
@keyframes staffSpin{to{transform:rotate(360deg)}}
@media(max-width:360px){
 .phone-shell{padding-left:12px;padding-right:12px}.topbar h1{font-size:24px}.button-row{grid-template-columns:1fr}.payment-summary-grid{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
 *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
}

/* =========================================================
   REQUIRED STAFF PWA INSTALL + ALERT ONBOARDING
   ========================================================= */
body.pwa-locked{overflow:hidden}
body.pwa-locked>.phone-shell{
  filter:blur(9px);
  pointer-events:none;
  user-select:none;
}
.pwa-onboarding{
  position:fixed;
  inset:0;
  z-index:1000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:calc(22px + env(safe-area-inset-top)) 18px calc(22px + env(safe-area-inset-bottom));
  overflow:auto;
  background:
    radial-gradient(circle at 50% -10%,rgba(243,201,108,.16),transparent 42%),
    rgba(4,6,9,.88);
  backdrop-filter:blur(18px);
}
.pwa-card{
  width:min(430px,100%);
  border:1px solid rgba(255,255,255,.10);
  border-radius:26px;
  padding:24px;
  background:linear-gradient(180deg,#171b22 0%,#0d1015 100%);
  box-shadow:0 28px 90px rgba(0,0,0,.58);
}
.pwa-card-wide{width:min(560px,100%)}
.pwa-app-icon{
  width:58px;height:58px;border-radius:18px;display:grid;place-items:center;
  margin-bottom:18px;background:linear-gradient(145deg,#f3c96c,#ad7935);
  color:#17110a;font-size:26px;font-weight:1000;
  box-shadow:0 14px 32px rgba(0,0,0,.28)
}
.pwa-app-icon.small{width:48px;height:48px;border-radius:15px;margin:0;flex:0 0 auto;font-size:21px}
.pwa-required-badge{
  display:inline-flex;align-items:center;min-height:24px;padding:0 9px;border-radius:999px;
  margin-bottom:10px;background:#2b2414;border:1px solid #5a4924;color:#f3c96c;
  font-size:9px;font-weight:900;letter-spacing:.12em
}
.pwa-card h1{margin:0;color:#f6f8fb;font-size:27px;line-height:1.08;letter-spacing:-.04em}
.pwa-card>p,.pwa-steps-head p{
  margin:10px 0 0;color:#9aa4b2;font-size:13px;line-height:1.6
}
.pwa-main-action{margin-top:20px;min-height:50px;font-size:14px}
.pwa-footnote{margin-top:12px!important;text-align:center;font-size:10px!important;color:#747f8d!important}
.pwa-steps-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:18px}
.pwa-steps-head h1{font-size:25px}
.pwa-step-list{display:grid;gap:10px}
.pwa-step{
  display:grid;grid-template-columns:36px minmax(0,1fr) 118px;gap:12px;align-items:center;
  padding:13px;border:1px solid #2c333d;border-radius:17px;background:#11161c
}
.pwa-step-number{
  width:32px;height:32px;border-radius:50%;display:grid;place-items:center;
  background:#2b2414;border:1px solid #5a4924;color:#f3c96c;font-size:12px;font-weight:900
}
.pwa-step-copy{display:grid;gap:4px}
.pwa-step-copy strong{color:#eef2f7;font-size:12px}
.pwa-step-copy small{color:#8b96a4;font-size:10px;line-height:1.45}
.pwa-step-visual{
  min-height:62px;border-radius:12px;border:1px solid #2a313a;background:#0b0f14;
  display:flex;align-items:center;justify-content:center;gap:8px;padding:8px;
  color:#c9d0d8;font-size:9px
}
.pwa-step-visual em{font-style:normal;font-size:9px;color:#8f9aa7}
.share-box{width:34px;height:34px;border-radius:9px;border:1px solid #39414b;display:grid;place-items:center;position:relative}
.share-box b{font-size:19px;color:#d9e0e8;font-weight:400;transform:translateY(-2px)}
.share-box i{position:absolute;width:15px;height:11px;border:1px solid #8d98a4;border-top:0;bottom:5px;border-radius:0 0 4px 4px}
.mini-menu-row{display:flex;align-items:center;gap:7px;width:100%;padding:7px 8px;border-radius:8px;background:#151b22}
.mini-menu-row b{width:20px;height:20px;border-radius:6px;display:grid;place-items:center;background:#28313b;color:#f3c96c}
.mini-menu-row em{font-size:8px;color:#d9dfe6}
.mini-toggle{width:32px;height:18px;padding:2px;border-radius:999px;background:#4f9c69;display:flex;justify-content:flex-end}
.mini-toggle i{width:14px;height:14px;border-radius:50%;background:#fff}
.add-visual>em{padding:5px 9px;border-radius:7px;background:#1d6bf2;color:#fff;font-weight:800}
.mini-app-icon{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:linear-gradient(145deg,#f3c96c,#a97432);color:#17110a;font-size:17px;font-weight:1000}
.pwa-fallback{
  padding:13px 14px;border-radius:14px;border:1px solid #3a3424;background:#1f1b12;
  color:#d7c999;font-size:11px;line-height:1.55
}
.pwa-fallback strong{display:block;color:#f4dda2;margin-bottom:6px}
.pwa-fallback ol{margin:0;padding-left:18px}
.pwa-check-message{
  margin-top:12px;padding:12px 14px;border-radius:14px;border:1px solid #5a4924;
  background:#241e11;color:#f2d58f;font-size:11px;line-height:1.5
}
.pwa-check-message.success{border-color:#1f5c46;background:#113126;color:#aaf2d2}
.pwa-bell{
  width:54px;height:54px;border-radius:17px;display:grid;place-items:center;margin-bottom:18px;
  background:#182520;border:1px solid #284739;color:#6fd6a3;font-size:18px;position:relative
}
.pwa-bell::after{
  content:"";position:absolute;width:20px;height:22px;border:2px solid currentColor;border-radius:12px 12px 7px 7px;
  border-bottom-width:3px
}
@media(max-width:520px){
  .pwa-onboarding{align-items:flex-start;padding-left:12px;padding-right:12px}
  .pwa-card{padding:20px;border-radius:22px;margin:auto 0}
  .pwa-card h1{font-size:25px}
  .pwa-step{grid-template-columns:34px minmax(0,1fr);padding:12px}
  .pwa-step-visual{grid-column:2/-1;min-height:54px}
}
@media(max-width:360px){
  .pwa-card{padding:17px}
  .pwa-steps-head h1{font-size:22px}
  .pwa-app-icon.small{display:none}
}


/* =========================================================
   PWA ONBOARDING V2 — PHONE-FIRST / CLEAN DESKTOP PREVIEW
   ========================================================= */
.pwa-preview-notice{
  margin-bottom:14px;padding:8px 10px;border:1px solid #294f3f;border-radius:10px;
  background:#11251d;color:#9ce5c1;font-size:10px;font-weight:800;text-align:center
}
.pwa-phone-illustration{
  width:76px;height:104px;margin-bottom:18px;padding:6px;border:1px solid #39434d;border-radius:20px;
  background:#080b0f;box-shadow:0 14px 30px rgba(0,0,0,.25)
}
.pwa-phone-screen{
  width:100%;height:100%;display:grid;place-items:center;border-radius:14px;
  background:radial-gradient(circle at 50% 15%,rgba(224,173,82,.16),transparent 42%),#12171d
}
.pwa-preview-links{display:grid;gap:8px;margin-top:18px}
.pwa-preview-links a{
  min-height:44px;display:flex;align-items:center;justify-content:center;padding:0 12px;
  border:1px solid #353e48;border-radius:12px;background:#11161c;color:#edf2f6;
  font-size:12px;font-weight:800;text-decoration:none
}
.pwa-preview-links a:hover{border-color:#e0ad52;color:#f3c96c}
.dots-visual b{font-size:28px;color:#dfe5ec;line-height:1}


/* PWA onboarding V3 — preview the full install → notifications journey */
.pwa-success-mark{
  width:58px;height:58px;border-radius:18px;display:grid;place-items:center;
  margin-bottom:18px;background:#143326;border:1px solid #28543f;color:#8be2b9;
  font-size:28px;font-weight:1000
}
.pwa-preview-back{
  display:flex;align-items:center;justify-content:center;text-decoration:none
}


/* BUSINESS-BRANDED STAFF EXPERIENCE */
.staff-business-lockup{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:18px;
}
.staff-business-lockup .login-brand{
  margin:0;
  background:var(--business-accent);
  color:#111;
  box-shadow:0 16px 34px rgba(0,0,0,.26);
}
.staff-business-lockup strong{
  display:block;
  margin-top:4px;
  color:#f7f8fa;
  font-size:16px;
  letter-spacing:-.02em;
}
.staff-powered{
  margin:22px 0 0;
  color:#6f7884;
  font-size:10px;
  text-align:center;
}
.staff-powered strong{color:#929ba8}
.staff-powered.authenticated{margin:22px 0 0}
.login-form input:focus{
  border-color:var(--business-accent)!important;
  box-shadow:0 0 0 3px color-mix(in srgb,var(--business-accent) 16%,transparent)!important;
}
.login-view .primary,
.pwa-main-action{
  background:var(--business-accent);
  color:#111;
}
@supports not (background:color-mix(in srgb,#000 50%,#fff)){
  .login-form input:focus{box-shadow:0 0 0 3px rgba(212,168,79,.12)!important}
}

.staff-business-lockup .login-brand.has-logo{
  overflow:hidden;
  padding:0;
  background:#fff!important;
}
.staff-business-lockup .login-brand.has-logo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Desktop Staff QA: intentionally active only when server-verified staging
   permits it. Production browsers retain the mandatory PWA install screen. */
body.staff-desktop-test-mode{padding:24px 14px}
body.staff-desktop-test-mode .phone-shell{max-width:510px;min-height:calc(100dvh - 48px);border:1px solid #334039;border-radius:24px;padding-top:18px;padding-bottom:108px}
body.staff-desktop-test-mode .desktop-test-notice{display:grid;gap:5px;background:#182922;border:1px solid #43634e;border-radius:13px;padding:12px 14px;color:#d9ede0;font-size:11px;line-height:1.5}
body.staff-desktop-test-mode .desktop-test-notice strong{color:#a9e3b8;font-size:10px;letter-spacing:.12em}
body.staff-desktop-test-mode .bottom-nav{width:min(510px,calc(100vw - 28px));bottom:24px;border-radius:0 0 23px 23px}
body.staff-desktop-test-mode .login-view{min-height:min(650px,calc(100dvh - 190px));padding-bottom:44px}
body.staff-desktop-test-mode .sheet-backdrop{align-items:center;padding:20px}
body.staff-desktop-test-mode .detail-sheet{width:min(510px,100%);max-height:calc(100dvh - 40px);border:1px solid #303743;border-radius:24px}
@media(max-width:699px){
  body.staff-desktop-test-mode{padding:0}
  body.staff-desktop-test-mode .phone-shell{min-height:100dvh;border:0;border-radius:0;max-width:100%;padding-bottom:92px}
  body.staff-desktop-test-mode .bottom-nav{bottom:0;width:100%;border-radius:0}
}

.staff-push-status{margin-top:14px;border:1px solid #303e38;border-radius:16px;background:#131e19;padding:13px 14px}
.staff-push-status-head{display:flex;align-items:flex-start;justify-content:space-between;gap:11px}
.staff-push-status strong{display:block;font-size:13px;color:#eaf5ed}
.staff-push-status p{font-size:12px;line-height:1.5;margin:7px 0 0;color:#c6d4cc}
.staff-push-status p[data-state="success"]{color:#9fe3af}
.staff-push-status p[data-state="warning"]{color:#f1cf8e}
.staff-push-status p[data-state="error"]{color:#ffacb2}
.staff-push-status small{display:block;color:#9eaaa2;line-height:1.5;margin-top:12px;font-size:11px}
.staff-push-status button{flex:0 0 auto;padding:9px 10px;min-height:36px;font-size:11px;border-radius:10px}
