  /* ---------- Staff directory ---------- */
  .staff-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:16px;}
  .staff-card {
  padding:18px;
  transition:box-shadow .2s ease, transform .2s ease;
  display:flex;
  flex-direction:column;
  gap:12px;
}
  .staff-card:hover{box-shadow:var(--shadow-md); transform:translateY(-2px);}
  .staff-card.leave{opacity:.7;}
  .staff-card.inactive{opacity:.55;}
  .staff-card-top{display:flex; align-items:flex-start; gap:12px;}
  .staff-avatar-lg{
    width:48px;height:48px;border-radius:14px; background:linear-gradient(135deg,var(--purple-100),var(--purple-200));
    color:var(--purple-700); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:15px; flex-shrink:0;
  }
  .staff-name{font-size:15px; font-weight:700; letter-spacing:-.01em;}
  .staff-role{font-size:11.5px; font-weight:600; color:var(--purple-600); margin-top:1px;}
  .staff-status-pill{margin-left:auto; flex-shrink:0;}
  .status-onleave{background:var(--amber-50); color:var(--amber-600);}
  .staff-rating{font-size:12.5px; color:var(--amber-600); letter-spacing:1px;}
  .staff-rating span{color:var(--ink-300); margin-left:4px; font-size:11px; letter-spacing:normal;}
  .staff-contact-row{display:flex; align-items:center; gap:6px; font-size:12px; color:var(--ink-500);}
  .staff-contact-row svg{width:12px;height:12px; flex-shrink:0;}
  .staff-tags{display:flex; flex-wrap:wrap; gap:6px;}
  .staff-tag { background:var(--purple-50); color:var(--purple-600); }
  .staff-stats-row{display:flex; gap:10px;}
  .staff-stat-chip{flex:1; background:var(--ink-100); border-radius:10px; padding:8px 10px;}
  .staff-stat-chip b{display:block; font-size:13px;}
  .staff-stat-chip span{font-size:10.5px; color:var(--ink-500);}
  .staff-card-footer{display:flex; align-items:center; gap:6px; padding-top:10px; border-top:1px solid var(--border); justify-content:flex-end;}

/* ZENOTI-INSPIRED SLAVAOS OPERATIONS STRIP
   Quiet Atelier: warm paper, deep plum actions, blush live cues.
   Keep this surface calm and data-led; do not fabricate KPI values here. */
.staff-ops-strip{
  display:grid;
  grid-template-columns:minmax(220px,1.3fr) auto auto;
  align-items:center;
  gap:18px;
  margin:0 0 20px;
  padding:16px 18px;
  background:linear-gradient(105deg, rgba(255,250,247,.96), rgba(250,241,248,.92));
  border:1px solid rgba(126,42,99,.12);
  border-radius:18px;
  box-shadow:0 12px 28px rgba(91,47,79,.08);
}
.staff-ops-context{display:flex; flex-direction:column; gap:3px; min-width:0;}
.staff-ops-eyebrow{text-transform:uppercase; letter-spacing:.12em; font-size:10px; font-weight:800; color:var(--purple-600,#9b3f83);}
.staff-ops-context strong{font-size:17px; color:var(--ink-900,#27212a); letter-spacing:-.02em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.staff-ops-muted{font-size:11px; color:var(--ink-500,#756d75);}
.staff-ops-status{display:flex; align-items:center; gap:7px; white-space:nowrap; font-size:12px; font-weight:700; color:var(--ink-700,#4d454d);}
.staff-live-dot{width:8px; height:8px; border-radius:50%; background:#4e9c76; box-shadow:0 0 0 4px rgba(78,156,118,.14);}
.staff-ops-actions{display:flex; align-items:center; gap:8px; justify-content:flex-end;}
.staff-ops-action{border:0; border-radius:10px; padding:10px 13px; font-size:12px; font-weight:800; cursor:pointer; transition:transform .16s ease, box-shadow .16s ease, background .16s ease;}
.staff-ops-action:active{transform:scale(.97);}
.staff-ops-action-secondary{color:var(--purple-700,#74305f); background:rgba(255,255,255,.72); border:1px solid rgba(126,42,99,.16);}
.staff-ops-action-secondary:hover{background:#fff; box-shadow:0 5px 14px rgba(91,47,79,.1);}
.staff-ops-action-primary{color:#fff; background:var(--purple-700,#74305f); box-shadow:0 7px 16px rgba(116,48,95,.22);}
.staff-ops-action-primary:hover{background:var(--purple-800,#5d244c);}
@media (max-width: 860px){
  .staff-ops-strip{grid-template-columns:1fr auto; gap:12px; padding:14px;}
  .staff-ops-status{grid-column:1 / 2; grid-row:2;}
  .staff-ops-actions{grid-column:2 / 3; grid-row:1 / span 2; flex-direction:column; align-items:stretch;}
  .staff-ops-action{white-space:nowrap;}
}
@media (max-width: 520px){
  .staff-ops-strip{grid-template-columns:1fr; margin-bottom:14px;}
  .staff-ops-status,.staff-ops-actions{grid-column:auto; grid-row:auto;}
  .staff-ops-actions{display:grid; grid-template-columns:1fr 1fr;}
  .staff-ops-action{width:100%;}
}

/* SMOOTH UI PASS: Quiet Atelier motion, restrained to transform/opacity and interaction feedback. */
.staff-dashboard-page .card,
.staff-dashboard-page .ci-card-list > *,
.staff-dashboard-page .staff-card,
.staff-dashboard-page .staff-ops-strip{
  transition:box-shadow .22s cubic-bezier(.23,1,.32,1), transform .22s cubic-bezier(.23,1,.32,1), border-color .22s ease, background-color .22s ease;
}
.staff-dashboard-page .card:hover,
.staff-dashboard-page .staff-card:hover,
.staff-dashboard-page .ci-card-list > *:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 30px rgba(82,39,70,.10);
}
.staff-dashboard-page button,
.staff-dashboard-page a,
.staff-dashboard-page input,
.staff-dashboard-page select{
  transition:color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .16s ease;
}
.staff-dashboard-page button:active,
.staff-dashboard-page .ci-btn:active,
.staff-dashboard-page .action-btn-primary-sm:active{transform:scale(.975);}
.staff-dashboard-page button:focus-visible,
.staff-dashboard-page a:focus-visible,
.staff-dashboard-page input:focus-visible,
.staff-dashboard-page select:focus-visible{
  outline:3px solid rgba(180,72,136,.24);
  outline-offset:3px;
}
.staff-dashboard-page .staff-ops-strip{animation:staffOpsEnter .36s cubic-bezier(.23,1,.32,1) both;}
.staff-dashboard-page .staff-ops-context{animation:staffOpsEnter .42s .04s cubic-bezier(.23,1,.32,1) both;}
.staff-dashboard-page .staff-ops-status{animation:staffOpsEnter .42s .08s cubic-bezier(.23,1,.32,1) both;}
.staff-dashboard-page .staff-ops-actions{animation:staffOpsEnter .42s .12s cubic-bezier(.23,1,.32,1) both;}
@keyframes staffOpsEnter{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@media (prefers-reduced-motion: reduce){
  .staff-dashboard-page *, .staff-dashboard-page *::before, .staff-dashboard-page *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important;}
}

/* MOBILE-FIRST TYPE SYSTEM: Playfair for moments of hierarchy, DM Sans for operational clarity. */
.staff-dashboard-page{font-family:'DM Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;}
.staff-dashboard-page h1,.staff-dashboard-page h2,.staff-dashboard-page h3,.staff-dashboard-page .greet h1,.staff-dashboard-page .card-head-title{font-family:'Playfair Display',Georgia,serif; letter-spacing:-.025em;}
.staff-dashboard-page .greet{min-width:0;}
.staff-dashboard-page .greet-kicker{display:block; margin:0 0 3px; color:var(--purple-600,#9b3f83); font-size:9px; font-weight:800; letter-spacing:.14em; line-height:1.2; text-transform:uppercase;}
.staff-dashboard-page .greet h1{margin:0; color:var(--ink-900,#27212a); font-size:clamp(22px,3vw,30px); line-height:1.08;}
.staff-dashboard-page .greet-sub{display:block; margin:5px 0 0; max-width:520px; color:var(--ink-500,#756d75); font-family:'DM Sans',system-ui,sans-serif; font-size:12px; line-height:1.4;}
.staff-dashboard-page p,.staff-dashboard-page label,.staff-dashboard-page input,.staff-dashboard-page button,.staff-dashboard-page select{line-height:1.45;}
.staff-dashboard-page .staff-ops-context strong{font-size:clamp(16px,4vw,19px); line-height:1.2;}
.staff-dashboard-page .staff-ops-action{min-height:42px; font-size:12px; letter-spacing:.005em;}
@media (max-width:520px){
  .staff-dashboard-page .topbar{min-height:60px;}
  .staff-dashboard-page .greet h1{font-size:clamp(21px,7vw,29px); line-height:1.08;}
  .staff-dashboard-page .greet-sub{font-size:11px; max-width:330px; margin-top:4px;}
  .staff-dashboard-page .greet-kicker{font-size:8px;}
  .staff-dashboard-page .staff-ops-strip{padding:13px; border-radius:15px;}
  .staff-dashboard-page .staff-ops-eyebrow{font-size:9px;}
  .staff-dashboard-page .staff-ops-muted{font-size:10.5px;}
  .staff-dashboard-page .staff-ops-action{min-height:44px; padding:10px 11px;}
}

/* NAV REDESIGN: grouped operational chapters, not a flat list of modules. */
.staff-dashboard-page .sidebar { padding:24px 14px 18px; }
.staff-dashboard-page .nav-group{display:flex; flex-direction:column; gap:4px; margin-top:14px;}
.staff-dashboard-page .nav-section-label{padding:14px 12px 5px; color:var(--ink-500,#91858f); font-size:8px; font-weight:700; line-height:1.25; letter-spacing:.14em; text-transform:uppercase;}
.staff-dashboard-page .nav-section-label:first-child{padding-top:4px;}
.staff-dashboard-page .nav-item { min-height:42px; padding:10px 12px; border:1px solid transparent; border-radius:12px; font-size:13.6px; font-weight:650; gap:10px; }
.staff-dashboard-page .nav-item svg{width:17px; height:17px; opacity:.68; transition:opacity .18s ease, transform .18s ease, stroke .18s ease;}
.staff-dashboard-page .nav-item:hover svg{opacity:1; transform:translateX(1px);}
.staff-dashboard-page .nav-item.active svg { opacity:1; }
.staff-dashboard-page .nav-parent{font-weight:750;}
.staff-dashboard-page .nav-group-item.expanded .nav-parent svg { opacity:1; }
.staff-dashboard-page .nav-children{margin:2px 0 2px 17px; padding-left:8px; border-left:1px solid rgba(116,48,95,.14);}
.staff-dashboard-page .nav-child{min-height:36px; padding:8px 10px; font-size:12px; border-radius:9px;}
.staff-dashboard-page .nav-child.active { box-shadow:none; }
.staff-dashboard-page .nav-badge { margin-left:6px; border-radius:99px; font-size:9px; padding:2px 6px; font-weight:800; }
.staff-dashboard-page .nav-chevron{opacity:.5;}
@media(max-width:860px){
  .staff-dashboard-page .nav-item{min-height:44px;}
  .staff-dashboard-page .nav-section-label{padding-top:16px;}
}

/* MOBILE DRAWER + BOTTOM BAR: coordinated motion and safe-area behavior. */
@media(max-width:980px){
  body.nav-drawer-open{overflow:hidden; touch-action:none;}
  .staff-dashboard-page .sidebar{z-index:80; will-change:transform; transition:transform .28s cubic-bezier(.23,1,.32,1), box-shadow .28s ease; box-shadow:18px 0 42px rgba(64,31,54,.16);}
  .staff-dashboard-page .sidebar.open{box-shadow:18px 0 42px rgba(64,31,54,.22);}
  .staff-dashboard-page .sidebar-overlay{z-index:70; opacity:0; visibility:hidden; transition:opacity .24s ease, visibility .24s ease; background:rgba(42,24,38,.36); backdrop-filter:blur(3px);}
  .staff-dashboard-page .sidebar-overlay.show{display:block; opacity:1; visibility:visible;}
  .staff-dashboard-page .menu-toggle{transition:background-color .18s ease, transform .16s ease, color .18s ease;}
  .staff-dashboard-page .menu-toggle[aria-expanded="true"]{background:var(--purple-50,#f8eef5); color:var(--purple-700,#74305f);}
}
@media(max-width:720px){
  .staff-dashboard-page .main{padding-bottom:calc(92px + env(safe-area-inset-bottom, 0px));}
  .staff-dashboard-page .topbar{padding-top:max(8px, env(safe-area-inset-top, 0px));}
  .staff-dashboard-page .sidebar{padding-bottom:calc(20px + env(safe-area-inset-bottom, 0px));}
}

/* CHECKOUT + BILLING REFINEMENT: mobile-first Zenoti-style front-desk flow. Keep salon context, basket, payment method, totals, and receipt state visibly separated. */
.checkout-flow{display:flex;flex-direction:column;gap:16px;padding-top:2px;}
.checkout-context{display:flex;flex-direction:column;gap:4px;padding:13px 14px;background:linear-gradient(135deg,var(--purple-50,#faf5ff),var(--blush-50,#fff1f7));border:1px solid var(--border);border-radius:14px;}
.checkout-context b{font-family:'Playfair Display',Georgia,serif;font-size:18px;color:var(--ink-800);}
.checkout-context>span:last-child{font-size:12px;line-height:1.5;color:var(--ink-500);}
.checkout-field-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.checkout-field-grid .form-group,.checkout-payment-row .form-group{display:flex;flex-direction:column;gap:5px;min-width:0;}
.form-label em{font-style:normal;font-weight:500;color:var(--ink-400);}
.checkout-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;border-top:1px solid var(--border);padding-top:15px;}
.checkout-section-head>div{display:flex;flex-direction:column;gap:3px;}
.checkout-section-head b{font-size:14px;color:var(--ink-800);}
.checkout-hint{font-size:10.5px;color:var(--ink-500);text-align:right;}
.checkout-add-row{display:grid;grid-template-columns:minmax(0,1fr) 72px auto;gap:8px;align-items:end;}
.checkout-add-row .form-input{min-width:0;}
.checkout-qty{text-align:center;}
.checkout-lines{display:flex;flex-direction:column;gap:0;min-height:42px;padding:8px 12px;border:1px solid var(--border);border-radius:12px;background:var(--page-bg);}
.checkout-lines:empty{display:none;}
.checkout-lines>p{margin:4px 0!important;}
.checkout-payment-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(130px,.75fr);gap:14px;align-items:end;border-top:1px solid var(--border);padding-top:14px;}
.checkout-total{display:flex;flex-direction:column;align-items:flex-end;gap:4px;padding:9px 0;}
.checkout-total span{font-size:10.5px;color:var(--ink-500);}
.checkout-total strong{font-size:24px;letter-spacing:-.02em;color:var(--purple-700,#6d28d9);}
.checkout-actions{display:grid;grid-template-columns:1fr 1.45fr;gap:8px;border-top:1px solid var(--border);padding-top:14px;}
.checkout-actions button{min-height:44px;}
.inv-mobile-list,.billing-mobile-list{display:none;}
.billing-summary-strip{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid var(--border);}
.billing-summary-strip strong{font-size:20px;color:var(--ink-800);}
.billing-summary-strip span{font-size:11px;color:var(--ink-500);}
@media (max-width:640px){
  .checkout-flow{gap:13px;}
  .checkout-field-grid,.checkout-payment-row{grid-template-columns:1fr;gap:10px;}
  .checkout-add-row{grid-template-columns:minmax(0,1fr) 64px;}
  .checkout-add-row #invPosAddBtn{grid-column:1 / -1;min-height:42px;}
  .checkout-section-head{align-items:flex-start;flex-direction:column;gap:4px;}
  .checkout-hint{text-align:left;}
  .checkout-total{align-items:flex-start;border-top:1px dashed var(--border);padding-top:12px;}
  .checkout-actions{grid-template-columns:1fr;}
  .checkout-actions #invPosCompleteBtn{order:-1;}
  .inv-mobile-list,.billing-mobile-list{display:flex;flex-direction:column;gap:8px;padding:12px 14px 14px;}
  #invTable,#billingTable{display:none!important;}
  .invoice-mobile-row,.billing-mobile-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 12px;padding:13px 12px;border:1px solid var(--border);border-radius:12px;background:var(--card-bg);}
  .invoice-mobile-row strong,.billing-mobile-row strong{font-size:13px;color:var(--ink-800);}
  .invoice-mobile-row .mobile-meta,.billing-mobile-row .mobile-meta{font-size:11px;color:var(--ink-500);line-height:1.45;}
  .invoice-mobile-row .mobile-actions,.billing-mobile-row .mobile-actions{grid-column:1 / -1;display:flex;justify-content:flex-end;gap:6px;padding-top:4px;border-top:1px solid var(--border);}
  .billing-summary-strip{padding:13px 14px;}
}
@media (prefers-reduced-motion:no-preference){
  .checkout-flow>*{animation:checkoutRise .24s cubic-bezier(.23,1,.32,1) both;}
  .checkout-flow>*:nth-child(2){animation-delay:25ms}.checkout-flow>*:nth-child(3){animation-delay:50ms}.checkout-flow>*:nth-child(4){animation-delay:75ms}
  @keyframes checkoutRise{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
}
@media (prefers-reduced-motion:reduce){.checkout-flow>*{animation:none!important;}}
/* END CHECKOUT + BILLING REFINEMENT */

/* STAFF SCHEDULE REFINEMENT: turn booking preferences into a calm, mobile-first schedule center. */
.schedule-command-header{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 16px;padding:18px 20px;background:linear-gradient(115deg,#fffaf6 0%,#f8edf5 100%);border:1px solid rgba(116,48,95,.12);border-radius:18px;box-shadow:0 12px 28px rgba(91,47,79,.07);}
.schedule-command-copy{display:flex;flex-direction:column;gap:4px;min-width:0;}
.schedule-command-copy b{font-family:'Playfair Display',Georgia,serif;font-size:22px;line-height:1.1;letter-spacing:-.025em;color:var(--ink-900,#27212a);}
.schedule-command-copy>span:last-child{max-width:560px;font-size:12px;line-height:1.5;color:var(--ink-500,#756d75);}
.schedule-command-meta{display:flex;align-items:center;gap:9px;flex-shrink:0;padding:10px 12px;border:1px solid rgba(116,48,95,.12);border-radius:12px;background:rgba(255,255,255,.7);font-size:11px;font-weight:750;color:var(--ink-700,#4d454d);}
.schedule-command-meta span:last-child{display:flex;flex-direction:column;gap:2px;}
.schedule-command-meta small{font-size:10px;font-weight:500;color:var(--ink-500,#756d75);}
.schedule-live-dot{width:8px;height:8px;border-radius:50%;background:#4e9c76;box-shadow:0 0 0 4px rgba(78,156,118,.13);}
.schedule-settings-card{overflow:hidden;}
.schedule-settings-card .card-head{background:rgba(255,250,247,.62);}
@media(max-width:640px){
  .schedule-command-header{align-items:flex-start;flex-direction:column;gap:13px;padding:15px;border-radius:15px;}
  .schedule-command-copy b{font-size:20px;}
  .schedule-command-copy>span:last-child{font-size:11px;}
  .schedule-command-meta{width:100%;}
  .schedule-settings-card .card-head{padding:14px 15px;}
  .schedule-settings-card>div:not(.card-head){padding-left:15px!important;padding-right:15px!important;}
}
/* END STAFF SCHEDULE REFINEMENT */

/* INVENTORY REFINEMENT: mobile-first stock health, catalogue clarity, and safe POS handoff. */
.inventory-command-header{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 16px;padding:18px 20px;background:linear-gradient(115deg,#fffaf6 0%,#f8edf5 100%);border:1px solid rgba(116,48,95,.12);border-radius:18px;box-shadow:0 12px 28px rgba(91,47,79,.07);}
.inventory-command-copy{display:flex;flex-direction:column;gap:4px;min-width:0;}
.inventory-command-copy b{font-family:'Playfair Display',Georgia,serif;font-size:23px;line-height:1.08;letter-spacing:-.025em;color:var(--ink-900,#27212a);}
.inventory-command-copy>span:last-child{max-width:600px;font-size:12px;line-height:1.5;color:var(--ink-500,#756d75);}
.inventory-command-actions{display:flex;gap:8px;flex-shrink:0;}
.inventory-catalogue-card{overflow:hidden;}
.inventory-catalogue-head{background:rgba(255,250,247,.62);}
.inventory-catalogue-note{font-size:11px;color:var(--ink-500,#756d75);}
.inventory-filter-row .form-input{min-height:42px;}
.inventory-usage-chips{padding:0 20px 16px;}
@media(max-width:640px){
  .inventory-command-header{align-items:flex-start;flex-direction:column;gap:13px;padding:15px;border-radius:15px;}
  .inventory-command-copy b{font-size:21px;}
  .inventory-command-copy>span:last-child{font-size:11px;}
  .inventory-command-actions{width:100%;}
  .inventory-command-actions button{flex:1;min-height:44px;}
  .inventory-catalogue-head{padding:14px 15px;}
  .inventory-catalogue-note{width:100%;font-size:10px;}
  .inventory-filter-row{padding:0 15px 14px!important;gap:8px!important;}
  .inventory-filter-row #invSearchInput{min-width:100%!important;flex-basis:100%;}
  .inventory-filter-row #invBranchFilter{max-width:none!important;width:100%;}
  .inventory-usage-chips{padding:0 15px 14px;overflow-x:auto;flex-wrap:nowrap;}
  .inventory-usage-chips .chip{flex:0 0 auto;min-height:38px;}
}
/* END INVENTORY REFINEMENT */

/* STAFF PORTAL ENTRY + SELF-SIGNUP */
.staff-portal-entry{width:100%;}
.staff-portal-entry-head{margin:4px 0 18px;}
.staff-portal-eyebrow{display:block;text-transform:uppercase;letter-spacing:.14em;font-size:10px;font-weight:800;color:var(--purple-600,#9b3f83);margin-bottom:6px;}
.staff-portal-entry-head h1{font-family:'Playfair Display',Georgia,serif;color:var(--ink-900,#27212a);font-size:28px;line-height:1.08;margin:0 0 7px;letter-spacing:-.03em;}
.staff-portal-entry-head p{font-size:12.5px;line-height:1.5;color:var(--ink-500,#756d75);margin:0;}
.staff-portal-context{display:flex;align-items:center;gap:8px;margin:0 0 17px;padding:10px 12px;border:1px solid rgba(126,42,99,.14);border-radius:12px;background:linear-gradient(135deg,#fff8fb,#faf5ff);color:var(--purple-700,#74305f);font-size:12px;line-height:1.4;}
.staff-portal-context strong{font-weight:800;}
.staff-portal-context-warn{background:#fffaf2;border-color:#f6d7a8;color:#9a5a11;}
.staff-portal-context-dot{width:7px;height:7px;border-radius:50%;background:var(--purple-600,#9b3f83);box-shadow:0 0 0 4px rgba(155,63,131,.1);flex:0 0 auto;}
.staff-portal-context-warn .staff-portal-context-dot{background:#d97706;box-shadow:0 0 0 4px rgba(217,119,6,.1);}
.staff-portal-form{display:flex;flex-direction:column;gap:12px;}
.staff-portal-secret-field{position:relative;display:flex;align-items:center;}
.staff-portal-secret-field .form-input{padding-right:62px;}
.staff-portal-show-secret{position:absolute;right:7px;border:0;background:transparent;color:var(--purple-700,#74305f);font-weight:800;font-size:11px;cursor:pointer;padding:7px;}
.staff-portal-entry-links{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:17px;font-size:11.5px;}
.staff-portal-entry-links a,.staff-portal-entry-links .auth-link{color:var(--purple-700,#74305f);font-weight:700;text-decoration:none;}
.staff-portal-entry-links a:hover,.staff-portal-entry-links .auth-link:hover{text-decoration:underline;}
.staff-portal-callout{margin:0 0 14px;padding:10px 12px;border-radius:11px;background:#f7f0ff;color:#6d28d9;border:1px solid #e8ddff;font-size:12px;line-height:1.45;}
.staff-portal-callout-warning{background:#fff8ef;color:#9a5a11;border-color:#f6d7a8;}
.staff-portal-entry .staff-portal-wizard-steps{display:flex;align-items:center;justify-content:center;gap:0;margin:2px 0 20px;}
.staff-portal-wizard-steps span{position:relative;display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:#f3edf2;color:var(--ink-400,#a79aa5);font-size:11px;font-weight:800;}
.staff-portal-wizard-steps span+span{margin-left:40px;}
.staff-portal-wizard-steps span+span:before{content:'';position:absolute;right:28px;width:40px;height:1px;background:#e8dfe7;}
.staff-portal-wizard-steps span.active{background:var(--purple-700,#74305f);color:#fff;box-shadow:0 5px 14px rgba(116,48,95,.18);}
.staff-portal-wizard-steps span.done{background:#e8f4ed;color:#31805b;}
.staff-portal-entry .staff-portal-step{display:none!important;}
.staff-portal-entry .staff-portal-step.active{display:block!important;}
.staff-portal-step-title{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:12px;}
.staff-portal-step-title strong{font-size:14px;color:var(--ink-800,#3e3540);}
.staff-portal-step-title span{font-size:10.5px;color:var(--ink-400,#a79aa5);}
.staff-portal-photo-row{display:flex;align-items:center;gap:12px;margin-bottom:14px;padding:11px;border:1px dashed rgba(126,42,99,.22);border-radius:13px;background:#fffbfd;}
.staff-portal-photo-row p{font-size:11px;color:var(--ink-500,#756d75);line-height:1.4;margin:3px 0 8px;}
.staff-portal-photo-preview{width:62px;height:62px;border-radius:16px;overflow:hidden;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#f5dbe9,#eee7ff);color:var(--purple-700,#74305f);font-size:22px;font-weight:800;flex:0 0 auto;}
.staff-portal-photo-preview img{width:100%;height:100%;object-fit:cover;}
.staff-portal-photo-placeholder{font-size:28px;font-weight:400;}
.staff-portal-help{margin-top:5px;padding:11px 12px;border-radius:11px;background:#f9f7fb;color:var(--ink-500,#756d75);font-size:11.5px;line-height:1.45;}
.staff-portal-form .optional{font-size:10px;color:var(--ink-400,#a79aa5);font-weight:500;}
.staff-portal-form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:7px;padding-top:13px;border-top:1px solid var(--border,#eee8ed);}
.staff-portal-form-actions #staffPortalSignupBack{margin-right:auto;}
.staff-portal-review{display:flex;flex-direction:column;gap:3px;padding:12px 13px;margin-top:5px;border-radius:12px;background:linear-gradient(135deg,#fbf5f9,#f7f3ff);border:1px solid rgba(126,42,99,.12);font-size:11px;color:var(--ink-500,#756d75);}
.staff-portal-review strong{font-size:14px;color:var(--purple-700,#74305f);}
.staff-portal-review div{display:flex;flex-direction:column;gap:2px;margin-top:6px;color:var(--ink-700,#4d454d);}
.staff-portal-review span{font-size:11px;color:var(--ink-500,#756d75);}
.staff-portal-success-icon{width:46px;height:46px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#e8f4ed;color:#31805b;font-size:24px;font-weight:800;margin:3px 0 15px;}
.staff-portal-status-card { display:flex; align-items:flex-start; gap:10px; padding:12px 13px; background:#fffaf2; border:1px solid #f6d7a8; color:#7a4a14; }
.staff-portal-status-card strong{font-size:12px;display:block;}
.staff-portal-status-card p{margin:3px 0 0;font-size:11px;line-height:1.4;color:#9a6a2f;}
.staff-portal-status-dot{width:8px;height:8px;border-radius:50%;background:#d97706;box-shadow:0 0 0 4px rgba(217,119,6,.12);margin-top:4px;flex:0 0 auto;}
.notif-staff-actions{display:flex;gap:6px;margin-top:8px;}
.notif-staff-action{border:1px solid transparent;border-radius:7px;padding:5px 9px;font-size:10.5px;font-weight:800;cursor:pointer;}
.notif-staff-action.approve{color:#25734f;background:#edf8f1;border-color:#b9e3c9;}
.notif-staff-action.reject{color:#a33636;background:#fff0f0;border-color:#f3c3c3;}
.notif-staff-action:disabled{opacity:.55;cursor:wait;}
@media(max-width:560px){
  .staff-portal-entry-head h1{font-size:25px;}
  .staff-portal-photo-row{align-items:flex-start;}
  .staff-portal-entry-links{flex-direction:column;align-items:flex-start;}
}

/* STAFF AUTH UX POLISH: focused, calm entry flow without changing shared business auth. */
.staff-dashboard-page .staff-auth-card{max-width:430px;padding:32px 30px 28px;box-shadow:0 22px 55px rgba(82,43,70,.12);}
.staff-dashboard-page .staff-auth-card .brand{justify-content:flex-start;margin-bottom:22px;}
.staff-dashboard-page .staff-auth-card .brand-mark{width:34px;height:34px;}
.staff-dashboard-page .staff-auth-card .brand-text b{font-size:16px;}
.staff-dashboard-page .staff-auth-card .brand-text span{font-size:11px;}
.staff-dashboard-page .staff-portal-entry{animation:staffAuthEnter .24s cubic-bezier(.23,1,.32,1) both;}
.staff-dashboard-page .staff-portal-entry-head{margin:0 0 20px;}
.staff-dashboard-page .staff-portal-entry-head h1{font-size:30px;letter-spacing:-.035em;}
.staff-dashboard-page .staff-portal-entry-head p{max-width:340px;}
.staff-dashboard-page .staff-portal-form{gap:14px;}
.staff-dashboard-page .staff-portal-form .form-group{gap:6px;}
.staff-dashboard-page .staff-portal-form .form-label{font-size:12px;font-weight:700;color:var(--ink-700,#4d454d);}
.staff-dashboard-page .staff-portal-form .form-input{min-height:44px;border-radius:11px;transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease;}
.staff-dashboard-page .staff-portal-form .form-input:focus { outline:none; }
.staff-dashboard-page .staff-portal-form .form-error{min-height:0;margin-top:2px;font-size:11px;line-height:1.35;}
.staff-dashboard-page .staff-portal-show-secret{right:6px;min-height:32px;border-radius:8px;transition:background-color .16s ease,color .16s ease;}
.staff-dashboard-page .staff-portal-show-secret:hover{background:rgba(245,219,233,.55);}
.staff-dashboard-page .staff-portal-form .auth-submit{min-height:46px;border-radius:11px;font-weight:750;transition:transform .16s ease,box-shadow .16s ease,opacity .16s ease;}
.staff-dashboard-page .staff-portal-form .auth-submit:not(:disabled):hover{box-shadow:0 10px 20px rgba(116,48,95,.18);transform:translateY(-1px);}
.staff-dashboard-page .staff-portal-form .auth-submit:active{transform:scale(.98);}
.staff-dashboard-page .staff-portal-form button:disabled{opacity:.72;cursor:wait;}
.staff-dashboard-page .staff-portal-login-links{justify-content:center;align-items:center;margin-top:20px;padding-top:16px;border-top:1px solid var(--border,#eee8ed);}
.staff-dashboard-page .staff-portal-login-links>span{font-size:11.5px;color:var(--ink-500,#756d75);}
.staff-dashboard-page .staff-portal-login-links .auth-link{padding:3px 5px;font-size:12px;}
.staff-dashboard-page .staff-portal-entry-links .auth-link:focus-visible,.staff-dashboard-page .staff-portal-show-secret:focus-visible{outline:2px solid var(--purple-500,#a14a88);outline-offset:2px;}
.staff-dashboard-page .staff-portal-callout{animation:staffAuthNotice .2s ease-out both;}
.staff-dashboard-page .staff-portal-wizard-steps{margin-bottom:22px;}
.staff-dashboard-page .staff-portal-step.active{animation:staffAuthStep .2s cubic-bezier(.23,1,.32,1) both;}
.staff-dashboard-page .staff-portal-form-actions button{min-height:42px;border-radius:10px;}
@keyframes staffAuthEnter{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes staffAuthStep{from{opacity:0;transform:translateX(6px)}to{opacity:1;transform:none}}
@keyframes staffAuthNotice{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){
  .staff-dashboard-page .staff-portal-entry,.staff-dashboard-page .staff-portal-step.active,.staff-dashboard-page .staff-portal-callout{animation:none;}
  .staff-dashboard-page .staff-portal-form .auth-submit{transition:none;}
}
@media(max-width:560px){
  .staff-dashboard-page .staff-auth-card{padding:26px 20px 23px;}
  .staff-dashboard-page .staff-auth-card .brand{margin-bottom:19px;}
  .staff-dashboard-page .staff-portal-entry-head h1{font-size:27px;}
  .staff-dashboard-page .staff-portal-entry-head p{font-size:12px;}
  .staff-dashboard-page .staff-portal-login-links{flex-direction:row;justify-content:center;align-items:center;}
  .staff-dashboard-page .staff-portal-form-actions{gap:7px;}
}
/* END STAFF AUTH UX POLISH */

/* COLOR BALANCE: keep purple for the brand and primary actions; use quiet neutrals for operational UI. */
.staff-dashboard-page .greet-kicker,
.staff-dashboard-page .staff-ops-eyebrow{color:var(--ink-500,#756d75);}
.staff-dashboard-page .staff-role{color:var(--ink-600,#665b65);}
.staff-dashboard-page .staff-tag{background:#f2efed;color:var(--ink-700,#4d454d);}
.staff-dashboard-page .staff-avatar-lg{background:linear-gradient(135deg,#f2eeeb,#e7e1df);color:var(--ink-700,#4d454d);}
.staff-dashboard-page .sidebar{background:linear-gradient(180deg,#fffdfb 0%,#faf8f6 100%);}
.staff-dashboard-page .nav-item{color:var(--ink-700,#4d454d);}
.staff-dashboard-page .nav-item:hover{background:#f3f1ef;color:var(--ink-900,#27212a);}
.staff-dashboard-page .nav-item.active{background:#eee9e8;color:var(--ink-900,#27212a);box-shadow:inset 3px 0 0 var(--purple-600,#6d28d9);}
.staff-dashboard-page .nav-item.active svg{stroke:var(--ink-900,#27212a);}
.staff-dashboard-page .nav-group-item.expanded .nav-parent{background:#f4f1ef;color:var(--ink-900,#27212a);}
.staff-dashboard-page .nav-group-item.expanded .nav-parent svg{stroke:var(--ink-700,#4d454d);}
.staff-dashboard-page .nav-children{border-left-color:#ddd7d4;}
.staff-dashboard-page .nav-child.active{background:#f3f0ee;color:var(--ink-800,#3e3540);}
.staff-dashboard-page .nav-child.active svg{stroke:var(--ink-800,#3e3540);}
.staff-dashboard-page .nav-badge{background:#ebe7e4;color:var(--ink-700,#4d454d);}
.staff-dashboard-page .nav-item.active .nav-badge{background:rgba(255,255,255,.75);color:var(--ink-800,#3e3540);}
.staff-dashboard-page .menu-toggle[aria-expanded="true"]{background:#f2efed;color:var(--ink-900,#27212a);}
.staff-dashboard-page .checkout-context{background:linear-gradient(135deg,#faf8f6,#f7f3f1);}
.staff-dashboard-page .checkout-total strong{color:var(--ink-900,#27212a);}
.staff-dashboard-page .schedule-command-header,
.staff-dashboard-page .inventory-command-header{background:linear-gradient(115deg,#fffaf6 0%,#faf7f4 100%);border-color:#e7dfdc;}
.staff-dashboard-page .schedule-command-meta{border-color:#e7dfdc;background:rgba(255,255,255,.82);}
.staff-dashboard-page .staff-portal-context{border-color:#e7dfdc;background:#faf8f6;color:var(--ink-700,#4d454d);}
.staff-dashboard-page .staff-portal-context-dot{background:var(--green-600,#31805b);box-shadow:0 0 0 4px rgba(49,128,91,.12);}
.staff-dashboard-page .staff-portal-show-secret{color:var(--ink-700,#4d454d);}
.staff-dashboard-page .staff-portal-entry-links a,
.staff-dashboard-page .staff-portal-entry-links .auth-link{color:var(--ink-700,#4d454d);}
.staff-dashboard-page .staff-portal-login-links .auth-link{color:var(--purple-700,#74305f);}
.staff-dashboard-page .staff-portal-callout{background:#f5f3f1;color:var(--ink-700,#4d454d);border-color:#e6dfdc;}
.staff-dashboard-page .staff-portal-callout-warning{background:var(--amber-50,#fff8e8);color:#8a5b19;border-color:#edd3a2;}
.staff-dashboard-page .staff-portal-photo-row{border-color:#ded5d1;background:#fdfaf8;}
.staff-dashboard-page .staff-portal-photo-preview{background:linear-gradient(135deg,#f2eeeb,#e7e1df);color:var(--ink-700,#4d454d);}
.staff-dashboard-page .staff-portal-review{background:linear-gradient(135deg,#faf8f6,#f7f4f2);border-color:#e7dfdc;}
.staff-dashboard-page .staff-portal-review strong{color:var(--ink-900,#27212a);}
.staff-dashboard-page .staff-portal-form .form-input:hover{border-color:#c9bfbb;}
.staff-dashboard-page .staff-portal-form .form-input:focus{border-color:var(--purple-500,#a14a88);box-shadow:0 0 0 3px rgba(155,63,131,.12);}
/* END COLOR BALANCE */

/* FINAL ACCENT CONTROL: brand purple remains in the logo, primary actions, and active progress only. */
.staff-dashboard-page .staff-portal-badge{background:#343033;color:#fff;box-shadow:none;}
.staff-dashboard-page .plan-card{background:linear-gradient(160deg,#fbfaf9,#fff);border-color:#e7dfdc;}
.staff-dashboard-page .card-head-title svg{color:var(--ink-500,#756d75);}
.staff-dashboard-page .staff-portal-eyebrow{color:var(--ink-500,#756d75);}
/* END FINAL ACCENT CONTROL */

  /* ---------- Staff > AI Assistant ---------- */
  .staff-ai-subtabs{display:flex; gap:6px; margin-bottom:14px; overflow-x:auto;}
  .staff-ai-subtab{white-space:nowrap; padding:8px 14px; border-radius:10px; font-size:12.6px; font-weight:600; color:var(--ink-700); background:transparent; border:1px solid var(--border); cursor:pointer;}
  .staff-ai-subtab.active{background:var(--purple-50); color:var(--purple-700); border-color:var(--purple-200);}
  .staff-ai-card{padding:16px; margin-bottom:14px;}
  .staff-ai-head{display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:4px;}
  .staff-ai-controls{display:flex; gap:12px; align-items:flex-end; flex-wrap:wrap;}
  .staff-ai-field{display:flex; flex-direction:column; gap:5px; font-size:12px; font-weight:600; color:var(--ink-500); min-width:180px; flex:1;}
  .staff-ai-actions{display:flex; gap:8px; margin-left:auto;}
  .staff-ai-note{font-size:12.5px; color:var(--ink-500); margin:10px 0 0; line-height:1.5;}
  .staff-ai-sub{font-size:12px; color:var(--ink-500); margin-top:2px;}
  .staff-ai-summary{font-size:13.5px; color:var(--ink-700); margin:10px 0 0; line-height:1.55;}
  .staff-ai-busy, .staff-ai-empty{color:var(--ink-500); font-size:13.5px; text-align:center; padding:28px 16px;}
  .staff-ai-empty b{display:block; color:var(--ink-900); margin-bottom:4px;}
  .staff-ai-cov{display:grid; grid-template-columns:repeat(7,1fr); gap:6px; margin:14px 0 4px;}
  .staff-ai-cov-day{border:1px solid var(--border); border-radius:10px; padding:6px 0; text-align:center; background:var(--green-50); color:var(--green-600);}
  .staff-ai-cov-day.low{background:var(--amber-50); color:var(--amber-600);}
  .staff-ai-cov-day b{display:block; font-size:15px;}
  .staff-ai-cov-day span{font-size:10.5px; font-weight:600;}
  .staff-ai-day{margin-top:14px;}
  .staff-ai-day-title{font-size:12px; font-weight:700; color:var(--ink-500); text-transform:uppercase; letter-spacing:.04em; margin-bottom:6px;}
  .staff-ai-row{display:flex; gap:10px; align-items:flex-start; padding:10px 0; border-bottom:1px solid var(--border); cursor:pointer;}
  .staff-ai-row input{margin-top:3px; flex-shrink:0;}
  .staff-ai-row-main{flex:1; min-width:0;}
  .staff-ai-row-top{display:flex; gap:8px; align-items:center; flex-wrap:wrap; font-size:13.5px;}
  .staff-ai-reason{font-size:12.5px; color:var(--ink-500); margin-top:3px; line-height:1.45;}
  .staff-ai-chip{font-size:11px; font-weight:700; padding:3px 9px; border-radius:20px; background:var(--purple-50); color:var(--purple-700);}
  .staff-ai-chip.off{background:var(--red-50); color:var(--red-600);}
  .staff-ai-chip.shift{background:var(--blue-50); color:var(--blue-600);}
  .staff-ai-chip.st-applied, .staff-ai-chip.st-accepted{background:var(--green-50); color:var(--green-600);}
  .staff-ai-chip.st-pending{background:var(--amber-50); color:var(--amber-600);}
  .staff-ai-chip.st-rejected, .staff-ai-chip.st-expired{background:var(--ink-100); color:var(--ink-500);}
  .staff-ai-footer{display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-top:16px;}
  .staff-ai-skiplist{margin:6px 0 0; padding-left:18px; font-size:13px; color:var(--ink-700); line-height:1.6;}
  .staff-ai-stats{display:grid; grid-template-columns:repeat(4,1fr); gap:10px; text-align:center;}
  .staff-ai-stats b{display:block; font-size:20px; color:var(--ink-900);}
  .staff-ai-stats span{font-size:11.5px; color:var(--ink-500);}
  .staff-ai-hist-row{display:flex; gap:10px; align-items:center; flex-wrap:wrap; padding:10px 0; border-bottom:1px solid var(--border);}
  .staff-ai-toggle{display:flex; gap:10px; align-items:flex-start; padding:10px 0; border-bottom:1px solid var(--border); cursor:pointer;}
  .staff-ai-toggle.disabled{opacity:.55; cursor:default;}
  .staff-ai-toggle input{margin-top:3px;}
  @media (max-width:640px){
    .staff-ai-field{min-width:100%;}
    .staff-ai-actions{width:100%; margin-left:0;}
    .staff-ai-actions .btn-primary{width:100%;}
    .staff-ai-stats{grid-template-columns:repeat(2,1fr);}
  }

  .staff-ai-chip.sev-alert{background:var(--red-50); color:var(--red-600);}
  .staff-ai-chip.sev-watch{background:var(--amber-50); color:var(--amber-600);}
  .staff-ai-chip.sev-info{background:var(--green-50); color:var(--green-600);}
  .staff-ai-ins{border-left:3px solid var(--border);}
  .staff-ai-ins.sev-alert{border-left-color:var(--red-600);}
  .staff-ai-ins.sev-watch{border-left-color:var(--amber-600);}
  .staff-ai-ins.sev-info{border-left-color:var(--green-600);}
  .staff-ai-metrics{display:flex; gap:6px; flex-wrap:wrap; margin-top:8px;}
  .staff-ai-metric{font-size:11.5px; font-weight:600; padding:3px 9px; border-radius:8px; background:var(--ink-100); color:var(--ink-700);}
  .staff-ai-metric.up{background:var(--green-50); color:var(--green-600);}
  .staff-ai-metric.down{background:var(--red-50); color:var(--red-600);}
