/* Stage71B Staff Mode — scoped operational UI, isolated from approved storefront visuals. */
:root {
  --cl-staff-gold: var(--cl-color-gold-400, #e8c46a);
  --cl-staff-violet: var(--cl-color-violet-400, #a98cff);
  --cl-staff-pink: var(--cl-color-pink-400, #f19ac5);
  --cl-staff-ink: var(--cl-text-primary, #fff7fb);
  --cl-staff-muted: var(--cl-text-muted, rgba(243, 221, 232, 0.72));
  --cl-staff-soft: var(--cl-text-soft, rgba(243, 221, 232, 0.52));
  --cl-staff-surface: rgba(var(--cl-color-raised-rgb, 26, 11, 32), 0.9);
  --cl-staff-line: var(--cl-color-border, rgba(232, 196, 106, 0.2));
  --cl-staff-radius: var(--cl-radius-card, 16px);
}

body[data-view="staff"] {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 88% 4%, rgba(169, 140, 255, 0.14), transparent 34%),
    radial-gradient(circle at 6% 18%, rgba(241, 154, 197, 0.07), transparent 28%),
    #08040b;
}

body[data-view="staff"] .app-shell {
  width: min(100%, 720px);
  overflow-x: clip;
  overflow-y: auto;
  outline: none;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

body[data-view="staff"] .toast {
  position: sticky;
  z-index: 80;
  top: 8px;
  width: calc(100% - 28px);
  max-width: 692px;
  margin: 8px auto 10px;
  border-radius: 12px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(16px);
}

body[data-view="staff"] .bottom-nav {
  display: none !important;
}

.cl-staff-shell {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

body[data-view="staff"] .page-motion,
.cl-staff-shell > *,
.cl-staff-orders,
.cl-staff-order-list,
.cl-staff-order,
.cl-staff-checklist,
.cl-staff-check-item {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.cl-staff-kicker {
  margin: 0 0 5px;
  color: var(--cl-staff-gold);
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-transform: uppercase;
}

.cl-staff-nav {
  position: fixed;
  z-index: 32;
  right: max(10px, env(safe-area-inset-right));
  bottom: max(8px, env(safe-area-inset-bottom));
  left: max(10px, env(safe-area-inset-left));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
  max-width: 700px;
  margin-inline: auto;
  padding: 7px 8px 6px;
  border: 1px solid rgba(232, 196, 106, 0.18);
  border-radius: 20px;
  background: rgba(8, 4, 11, 0.97);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(18px);
}

.cl-staff-nav button {
  min-width: 0;
  min-height: 58px;
  padding: 2px 1px 0;
  border: 0;
  border-radius: 14px;
  color: var(--cl-staff-soft);
  background: transparent;
  font: inherit;
  font-size: clamp(0.56rem, 2.65vw, 0.68rem);
  cursor: pointer;
}

.cl-staff-nav-icon {
  display: grid;
  width: 34px;
  height: 34px;
  margin: 0 auto 2px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 46% 54% 50% 50%;
  color: inherit;
}

.cl-staff-nav-icon .line-icon { width: 19px; height: 19px; }
.cl-staff-nav-label { display: block; color: inherit; line-height: 1.1; }
.cl-staff-nav button.is-active { color: var(--cl-staff-gold); background: transparent; }
.cl-staff-nav button.is-active .cl-staff-nav-icon {
  color: #120a15;
  border-color: rgba(255, 247, 251, 0.42);
  background: linear-gradient(145deg, #f6dda1, var(--cl-staff-gold));
  box-shadow: 0 6px 20px rgba(232, 196, 106, 0.24);
}

.cl-staff-hero,
.cl-staff-money-card,
.cl-staff-order-stats,
.cl-staff-action-grid > button,
.cl-staff-shell > .panel,
.cl-staff-owner,
.cl-staff-owner-detail {
  border: 1px solid var(--cl-staff-line);
  background: linear-gradient(145deg, rgba(26, 11, 32, 0.94), rgba(12, 6, 15, 0.96));
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}

.cl-staff-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  overflow: hidden;
  padding: clamp(17px, 5vw, 22px);
  border-radius: 18px;
}

.cl-staff-hero::after {
  position: absolute;
  right: -42px;
  bottom: -62px;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(241, 154, 197, 0.22);
  border-radius: 50%;
  box-shadow: inset 0 0 54px rgba(169, 140, 255, 0.08);
  content: "";
  pointer-events: none;
}

.cl-staff-hero h1 {
  max-width: 22ch;
  margin: 0;
  color: var(--cl-staff-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 6.6vw, 2.15rem);
  font-weight: 500;
  line-height: 1.04;
}

.cl-staff-hero-copy { min-width: 0; }
.cl-staff-shift-state { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-top: 12px; }
.cl-staff-shift-state span { display: inline-flex; gap: 6px; align-items: center; color: var(--cl-staff-muted); font-size: 0.78rem; }
.cl-staff-shift-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px rgba(120, 214, 178, 0.44); }
.cl-staff-hero.is-shift-closed .cl-staff-shift-state i { background: var(--cl-staff-soft); box-shadow: none; }
.cl-staff-shift-state strong { color: var(--cl-staff-ink); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.cl-staff-hero > button {
  position: relative;
  z-index: 1;
  width: auto;
  min-width: 138px;
  padding-inline: 14px;
}

.cl-staff-hero button,
.cl-staff-lookup-form button,
.cl-staff-pickup button,
.cl-staff-add-form button {
  min-height: 48px;
}

.cl-staff-money-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
}

.cl-staff-money-card > div:first-child > strong,
.cl-staff-total > strong {
  display: block;
  color: var(--cl-staff-ink);
  font-size: clamp(2rem, 9vw, 2.8rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.cl-staff-money-card > div:first-child > span,
.cl-staff-total > small {
  display: block;
  margin-top: 8px;
  color: var(--cl-staff-muted);
}

.cl-staff-money-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cl-staff-money-grid > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.cl-staff-money-grid span,
.cl-staff-money-grid strong {
  display: block;
  overflow-wrap: anywhere;
}

.cl-staff-money-grid span {
  margin-bottom: 5px;
  color: var(--cl-staff-muted);
  font-size: 0.76rem;
}

.cl-staff-money-grid strong { color: var(--cl-staff-ink); }
.cl-staff-money-breakdown { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.cl-staff-money-breakdown > div { padding: 10px; }
.cl-staff-money-breakdown span { font-size: 0.69rem; }
.cl-staff-money-breakdown strong { font-size: 0.88rem; white-space: nowrap; }
.cl-staff-pending { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border-left: 2px solid var(--cl-staff-violet); color: var(--cl-staff-muted); background: rgba(169, 140, 255, 0.05); font-size: 0.76rem; }
.cl-staff-pending strong { color: var(--cl-staff-violet); white-space: nowrap; }
.cl-staff-link { justify-self: start; padding: 8px 0; border: 0; color: var(--cl-staff-gold); background: none; font: inherit; cursor: pointer; }

.cl-staff-orders-overview {
  overflow: hidden;
  border: 1px solid var(--cl-staff-line);
  border-radius: 16px;
  background: rgba(16, 8, 19, 0.88);
}
.cl-staff-overview-title { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px 4px; }
.cl-staff-overview-title .cl-staff-kicker { margin: 0; }
.cl-staff-overview-title > span { color: var(--cl-staff-muted); font-size: 0.72rem; }
.cl-staff-order-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border-radius: 0;
  border: 0;
  background: transparent;
}

.cl-staff-order-stats button {
  min-width: 0;
  min-height: 64px;
  padding: 8px 4px 11px;
  border: 0;
  border-right: 1px solid rgba(232, 196, 106, 0.12);
  color: var(--cl-staff-ink);
  background: transparent;
  cursor: pointer;
}

.cl-staff-order-stats button:last-child { border-right: 0; }
.cl-staff-order-stats strong, .cl-staff-order-stats span { display: block; }
.cl-staff-order-stats strong { color: var(--cl-staff-gold); font-size: 1.35rem; }
.cl-staff-order-stats span { margin-top: 3px; color: var(--cl-staff-muted); font-size: 0.72rem; }

.cl-staff-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cl-staff-action-grid > button {
  min-width: 0;
  min-height: 94px;
  padding: 14px;
  border-radius: 16px;
  color: var(--cl-staff-ink);
  text-align: left;
  cursor: pointer;
}

.cl-staff-action-grid > button > span { display: grid; margin-bottom: 9px; color: var(--cl-staff-gold); }
.cl-staff-action-icon { width: 28px; height: 28px; place-items: center; border: 1px solid rgba(232, 196, 106, 0.18); border-radius: 50%; }
.cl-staff-action-icon .line-icon { width: 16px; height: 16px; }
.cl-staff-action-grid strong, .cl-staff-action-grid small { display: block; }
.cl-staff-action-grid strong { font-size: 0.95rem; }
.cl-staff-action-grid small { margin-top: 5px; color: var(--cl-staff-muted); line-height: 1.35; }
.cl-staff-secondary-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cl-staff-secondary-actions button { min-width: 0; min-height: 44px; padding: 9px 10px; font-size: 0.78rem; }

.cl-staff-search { position: relative; margin: 16px 0 12px; }
.cl-staff-search .search-input { width: 100%; padding-right: 42px; }
.cl-staff-search > span { position: absolute; top: 50%; right: 16px; color: var(--cl-staff-gold); transform: translateY(-50%); }
.cl-staff-filter-row { width: 100%; max-width: 100%; flex-wrap: nowrap; overflow-x: auto; margin-inline: -2px; padding: 2px 2px 8px; scrollbar-width: none; }
.cl-staff-filter-row::-webkit-scrollbar { display: none; }
.cl-staff-order-list { display: grid; gap: 12px; }

.cl-staff-order {
  min-width: 0;
  padding: 16px;
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(11, 6, 13, 0.58);
}

.cl-staff-order.is-free { border-color: rgba(232, 196, 106, 0.5); background: linear-gradient(145deg, rgba(34, 20, 30, 0.84), rgba(13, 7, 16, 0.94)); }
.cl-staff-order.is-mine { border-color: rgba(169, 140, 255, 0.34); }
.cl-staff-order.is-ready { border-color: rgba(120, 214, 178, 0.34); }
.cl-staff-order .staff-order-head { align-items: flex-start; gap: 10px; }
.cl-staff-order .staff-order-head > div { min-width: 0; }
.cl-staff-order .staff-order-head strong, .cl-staff-order .staff-order-head span { overflow-wrap: anywhere; }
.cl-staff-order .status-badge { flex: 0 0 auto; max-width: 42%; }

.cl-staff-order-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 16px 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.cl-staff-order-meta > div { min-width: 0; padding: 10px; background: #130b16; }
.cl-staff-order-meta span, .cl-staff-order-meta strong { display: block; overflow-wrap: anywhere; }
.cl-staff-order-meta span { margin-bottom: 4px; color: var(--cl-staff-muted); font-size: 0.68rem; }
.cl-staff-order-meta strong { color: var(--cl-staff-ink); font-size: 0.8rem; }

.cl-staff-assignment { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; color: var(--cl-staff-muted); font-size: 0.78rem; }
.cl-staff-assignment strong { max-width: 52%; color: var(--cl-staff-gold); text-align: right; }
.cl-staff-checklist { display: grid; gap: 8px; margin: 16px 0; }
.cl-staff-checklist h3 { margin: 0 0 4px; color: var(--cl-staff-ink); font-size: 0.92rem; }

.cl-staff-check-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.cl-staff-check-item > div { min-width: 0; }
.cl-staff-check-item strong, .cl-staff-check-item small { display: block; overflow-wrap: anywhere; }
.cl-staff-check-item small { margin-top: 3px; color: var(--cl-staff-muted); }
.cl-staff-check-item label { display: grid; justify-items: center; gap: 3px; min-height: 44px; color: var(--cl-staff-muted); font-size: 0.67rem; }
.cl-staff-check-item input { width: 22px; height: 22px; accent-color: var(--cl-staff-gold); }
.cl-staff-check-item select { grid-column: 1 / -1; width: 100%; min-height: 44px; }
.cl-staff-order .quick-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
.cl-staff-order .quick-actions > * { width: 100%; max-width: 100%; min-width: 0; }

.cl-staff-pickup { display: grid; gap: 10px; margin-top: 14px; padding: 14px; border: 1px solid rgba(169, 140, 255, 0.24); border-radius: 14px; background: rgba(169, 140, 255, 0.06); }
.cl-staff-pickup label span { display: block; margin-bottom: 6px; color: var(--cl-staff-muted); font-size: 0.75rem; }
.cl-staff-pickup input { width: 100%; letter-spacing: 0.28em; text-align: center; }
.cl-staff-pickup small { color: var(--cl-staff-muted); line-height: 1.4; }

.cl-staff-lookup-form, .cl-staff-add-form { display: grid; gap: 9px; margin: 16px 0 12px; }
.cl-staff-lookup-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.cl-staff-lookup-form input { min-width: 0; }
.cl-staff-scan { display: inline-flex; align-items: center; justify-content: center; justify-self: start; min-height: 42px; padding: 8px 14px; cursor: pointer; font-size: 0.78rem; }
.cl-staff-scan input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cl-staff-product-list, .cl-staff-customer-list, .cl-staff-employee-list, .cl-staff-history { display: grid; gap: 9px; }
.cl-staff-product-list article, .cl-staff-customer-list article, .cl-staff-employee { display: grid; gap: 10px; min-width: 0; padding: 14px; border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 14px; background: rgba(255, 255, 255, 0.025); }
.cl-staff-product-list article { grid-template-columns: 62px minmax(0, 1fr) auto; align-items: start; }
.cl-staff-product-list article > div, .cl-staff-customer-list article > div { min-width: 0; }
.cl-staff-product-thumb { width: 62px; height: 74px; overflow: hidden; border: 1px solid rgba(232, 196, 106, 0.22); border-radius: 12px; background: rgba(232, 196, 106, 0.08); }
.cl-staff-product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cl-staff-product-thumb span { display: grid !important; width: 100%; height: 100%; place-items: center; color: var(--cl-staff-gold) !important; font-family: Georgia, serif; }
.cl-staff-product-list article strong, .cl-staff-product-list article span, .cl-staff-customer-list article strong, .cl-staff-customer-list article span { display: block; overflow-wrap: anywhere; }
.cl-staff-product-list article > p { grid-column: 1 / -1; margin: 0; padding-top: 9px; border-top: 1px solid rgba(255,255,255,.06); color: var(--cl-staff-gold); font-size: 0.78rem; }
.cl-staff-product-list article > p span { margin: 0 0 3px; color: var(--cl-staff-muted); font-size: 0.67rem; text-transform: uppercase; letter-spacing: .08em; }
.cl-staff-product-list article > div:last-of-type { text-align: right; }
.cl-staff-product-list article span, .cl-staff-customer-list article span { margin-top: 4px; color: var(--cl-staff-muted); font-size: 0.76rem; }
.cl-staff-customer-list article > div { min-width: 0; }
.cl-staff-customer-head { display: flex; justify-content: space-between; gap: 10px; }
.cl-staff-customer-card { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px; border: 1px solid rgba(232,196,106,.18); border-radius: 10px; background: rgba(232,196,106,.04); }
.cl-staff-customer-card strong { color: var(--cl-staff-gold); }
.cl-staff-customer-benefits { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.cl-staff-customer-benefits > span { padding: 8px 10px; border-left: 1px solid rgba(169,140,255,.28); }
.cl-staff-customer-benefits small { display: block; color: var(--cl-staff-muted); font-size: .67rem; }
.cl-staff-customer-benefits strong { margin-top: 2px; color: var(--cl-staff-ink); }
.cl-staff-customer-list article p { margin: 0; color: var(--cl-staff-gold); font-size: 0.78rem; }
.cl-staff-customer-list article p.is-muted { color: var(--cl-staff-muted); }

.cl-staff-total { margin: 16px 0; padding: 17px; border: 1px solid rgba(232, 196, 106, 0.24); border-radius: 14px; background: linear-gradient(140deg, rgba(232, 196, 106, 0.07), rgba(169, 140, 255, 0.035)); }
.cl-staff-total > span { display: block; margin-bottom: 9px; color: var(--cl-staff-muted); }
.cl-staff-history { margin-top: 20px; }
.cl-staff-history h3 { margin: 0 0 4px; color: var(--cl-staff-ink); font-size: 0.94rem; }
.cl-staff-history > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.cl-staff-history > div span { color: var(--cl-staff-muted); font-size: 0.76rem; line-height: 1.4; }
.cl-staff-history > div strong { flex: 0 0 auto; color: var(--cl-staff-ink); font-variant-numeric: tabular-nums; }
.cl-staff-history .is-negative { color: #ff9ca9; }
.cl-staff-owner-alerts { display: grid; gap: 8px; margin: 12px 0 18px; padding: 14px; border: 1px solid rgba(241, 154, 197, 0.28); border-radius: 16px; background: rgba(241, 154, 197, 0.06); }
.cl-staff-owner-alerts h3 { margin: 0 0 3px; color: var(--cl-staff-pink); font-size: 0.9rem; }
.cl-staff-owner-alerts > div span, .cl-staff-owner-alerts > div strong { display: block; overflow-wrap: anywhere; }
.cl-staff-owner-alerts > div span { color: var(--cl-staff-muted); font-size: 0.7rem; }
.cl-staff-owner-alerts > div strong { margin-top: 3px; color: var(--cl-staff-ink); font-size: 0.82rem; }

.cl-staff-add-form label { display: grid; gap: 6px; color: var(--cl-staff-muted); font-size: 0.75rem; }
.cl-staff-employee { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.cl-staff-employee > div:first-child { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 8px; min-width: 0; }
.cl-staff-employee > div:first-child small { grid-column: 2; color: var(--cl-staff-muted); }
.cl-staff-dot { width: 8px; height: 8px; border-radius: 50%; background: #83d5a1; box-shadow: 0 0 12px rgba(131, 213, 161, 0.5); }
.cl-staff-employee.is-inactive { opacity: 0.58; }
.cl-staff-employee.is-inactive .cl-staff-dot { background: #80767f; box-shadow: none; }
.cl-staff-employee-pay { min-width: 0; text-align: right; }
.cl-staff-employee-pay span, .cl-staff-employee-pay small { display: block; color: var(--cl-staff-muted); font-size: 0.7rem; }
.cl-staff-employee-pay strong { color: var(--cl-staff-gold); }
.cl-staff-employee > .quick-actions { grid-column: 1 / -1; }

@media (min-width: 620px) {
  .cl-staff-add-form { grid-template-columns: 1fr 1.4fr 1fr auto; align-items: end; }
  .cl-staff-lookup-form { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
}

@media (max-width: 520px) {
  .cl-staff-employee { grid-template-columns: 1fr; }
  .cl-staff-employee-pay { text-align: left; padding-left: 16px; border-left: 1px solid rgba(232,196,106,.18); }
  .cl-staff-employee > .quick-actions { grid-column: 1; }
  .cl-staff-employee > .quick-actions > * { min-width: 0; }
}

@media (max-width: 359px) {
  .cl-staff-nav { right: 5px; left: 5px; padding: 5px; }
  .cl-staff-nav button { min-height: 50px; font-size: 0.54rem; }
  .cl-staff-hero { grid-template-columns: 1fr; align-items: start; }
  .cl-staff-hero > button { width: 100%; }
  .cl-staff-hero, .cl-staff-money-card, .cl-staff-shell > .panel { padding: 14px; border-radius: 14px; }
  .cl-staff-action-grid > button { min-height: 90px; padding: 12px; }
  .cl-staff-order { padding: 13px; }
  .cl-staff-order-meta { grid-template-columns: .7fr 1fr 1.25fr; }
  .cl-staff-order-meta > div { padding: 8px 6px; }
  .cl-staff-check-item { grid-template-columns: minmax(0, 1fr) auto; }
  .cl-staff-check-item label:last-of-type { grid-column: 2; }
  .cl-staff-lookup-row { grid-template-columns: minmax(0, 1fr) auto; }
  .cl-staff-money-grid { grid-template-columns: 1fr; }
  .cl-staff-money-breakdown { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .cl-staff-product-list article { grid-template-columns: 54px minmax(0, 1fr); }
  .cl-staff-product-list article > div:last-of-type { grid-column: 2; text-align: left; }
  .cl-staff-product-thumb { width: 54px; height: 66px; }
}

@media (prefers-reduced-motion: reduce) {
  .cl-staff-shell *, .cl-staff-nav * { scroll-behavior: auto !important; transition: none !important; }
}

/* Stage71D — actual Figma Employees Workspace (node 13:2) */
body[data-view="staff"].final-locked-visuals {
  min-width: 0;
  background: #08040b;
  color: #fff7fb;
}

body[data-view="staff"].final-locked-visuals .app-shell {
  width: 100%;
  max-width: 390px;
  height: 100vh;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 15px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid #5e3a64;
  border-radius: 24px;
  background: #08040b;
  box-shadow: none;
  scrollbar-width: none;
}

@supports (height: 100dvh) {
  body[data-view="staff"].final-locked-visuals .app-shell {
    height: 100dvh;
    min-height: 100dvh;
  }
}

body[data-view="staff"].final-locked-visuals .app-shell::-webkit-scrollbar { display: none; }
body[data-view="staff"].final-locked-visuals .page-motion { padding: 0 0 calc(100px + env(safe-area-inset-bottom, 0px)); }
body[data-view="staff"] .bottom-nav,
body[data-view="staff"] .demo-ribbon,
body[data-view="staff"] .mode-banner { display: none !important; }

body[data-view="staff"] button,
body[data-view="staff"] input,
body[data-view="staff"] select { font: inherit; }

body[data-view="staff"] button:focus-visible,
body[data-view="staff"] input:focus-visible,
body[data-view="staff"] select:focus-visible {
  outline: 2px solid #e8c46a;
  outline-offset: 2px;
}

body[data-view="staff"] .cl-staff-shell {
  display: block;
  width: 100%;
  max-width: 358px;
  margin: 0 auto;
}

body[data-view="staff"] .cl-staff-mobile-header {
  display: grid;
  grid-template-columns: minmax(88px, 1fr) auto minmax(88px, 1fr);
  gap: 4px;
  align-items: center;
  width: 100%;
  height: 56px;
  margin-top: 10px;
}

body[data-view="staff"] .cl-staff-mobile-header h1 {
  margin: 0;
  color: #fff7fb;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

body[data-view="staff"] .cl-staff-wordmark,
body[data-view="staff"] .cl-staff-header-back {
  justify-self: start;
  min-width: 0;
  color: #e8c46a;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

body[data-view="staff"] .cl-staff-header-back,
body[data-view="staff"] .cl-staff-home {
  min-width: 44px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

body[data-view="staff"] .cl-staff-home {
  display: grid;
  width: 44px;
  height: 44px;
  justify-self: end;
  place-items: center;
  color: #e8c46a;
}

body[data-view="staff"] .cl-staff-home .line-icon { width: 18px; height: 18px; }

body[data-view="staff"] .cl-staff-content {
  display: grid;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 12px 0 4px;
}

body[data-view="staff"] .cl-staff-screen-meta,
body[data-view="staff"] .cl-staff-footnote {
  margin: 0;
  color: #f3dde8;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}

body[data-view="staff"] .cl-staff-footnote { color: rgba(243, 221, 232, 0.72); }

body[data-view="staff"] .cl-staff-status-chip {
  display: inline-flex;
  width: max-content;
  min-height: 28px;
  align-items: center;
  padding: 4px 19px;
  border: 1px solid #f3dde8;
  border-radius: 999px;
  color: #f3dde8;
  background: #120715;
  font-size: 12px;
  line-height: 18px;
}

body[data-view="staff"] .cl-staff-status-chip.is-success {
  border-color: #78d6b2;
  color: #78d6b2;
}

body[data-view="staff"] .cl-staff-list-row,
body[data-view="staff"] .cl-staff-order-row {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 15px;
  border: 1px solid #5e3a64;
  border-radius: 8px;
  color: #fff7fb;
  background: #120715;
  text-align: left;
  box-shadow: none;
}

body[data-view="staff"] button.cl-staff-list-row,
body[data-view="staff"] button.cl-staff-order-row { cursor: pointer; }

body[data-view="staff"] .cl-staff-list-row > span,
body[data-view="staff"] .cl-staff-order-row > span { min-width: 0; }

body[data-view="staff"] .cl-staff-list-row strong,
body[data-view="staff"] .cl-staff-list-row small {
  display: block;
  overflow-wrap: anywhere;
}

body[data-view="staff"] .cl-staff-list-row strong {
  color: #fff7fb;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

body[data-view="staff"] .cl-staff-list-row small {
  margin-top: 4px;
  color: #f3dde8;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

body[data-view="staff"] .cl-staff-list-row > b {
  flex: 0 0 auto;
  color: #e8c46a;
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
}

body[data-view="staff"] .cl-staff-list-row.is-muted { opacity: 0.58; }
body[data-view="staff"] .cl-staff-list-row.is-danger { border-color: #ff7f9f; }

body[data-view="staff"] .cl-staff-state-panel {
  min-height: 88px;
  padding: 15px;
  border: 1px solid #a98cff;
  border-radius: 8px;
  background: #120715;
}

body[data-view="staff"] .cl-staff-state-panel strong {
  display: block;
  margin: 0 0 7px;
  color: #a98cff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

body[data-view="staff"] .cl-staff-state-panel p {
  margin: 0;
  color: #f3dde8;
  font-size: 12px;
  line-height: 1.45;
}

body[data-view="staff"] .cl-staff-state-panel.is-success { border-color: #78d6b2; }
body[data-view="staff"] .cl-staff-state-panel.is-success strong { color: #78d6b2; }
body[data-view="staff"] .cl-staff-state-panel.is-gold { border-color: #e8c46a; }
body[data-view="staff"] .cl-staff-state-panel.is-gold strong { color: #e8c46a; }
body[data-view="staff"] .cl-staff-state-panel.is-danger { border-color: #ff7f9f; }
body[data-view="staff"] .cl-staff-state-panel.is-danger strong { color: #ff7f9f; }

body[data-view="staff"] .cl-staff-finance-card {
  display: grid;
  min-height: 150px;
  align-content: start;
  gap: 8px;
  padding: 18px;
  border: 1px solid #5e3a64;
  border-radius: 16px;
  background: #2b1632;
}

body[data-view="staff"] .cl-staff-finance-card span,
body[data-view="staff"] .cl-staff-finance-card small {
  color: #f3dde8;
  font-size: 13px;
  line-height: 1.4;
}

body[data-view="staff"] .cl-staff-finance-card strong {
  color: #fff7fb;
  font-size: clamp(34px, 10vw, 40px);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

body[data-view="staff"] .cl-staff-finance-card small { color: #e8c46a; }

body[data-view="staff"] .cl-staff-button {
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border: 1px solid #5e3a64;
  border-radius: 8px;
  color: #fff7fb;
  background: #120715;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}

body[data-view="staff"] .cl-staff-button.is-primary {
  border-color: #e8c46a;
  color: #08040b;
  background: #e8c46a;
}

body[data-view="staff"] .cl-staff-button.is-danger {
  border-color: #ff7f9f;
  color: #ff7f9f;
}

body[data-view="staff"] .cl-staff-button:disabled { cursor: wait; opacity: 0.62; }

body[data-view="staff"] .cl-staff-title-line {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

body[data-view="staff"] .cl-staff-title-line > button {
  width: 44px;
  min-width: 44px;
  height: 44px;
  border: 0;
  color: #e8c46a;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}

body[data-view="staff"] .cl-staff-filter-row {
  display: flex;
  width: 100%;
  max-width: 100%;
  gap: 7px;
  margin: 0;
  padding: 0 0 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

body[data-view="staff"] .cl-staff-filter-row::-webkit-scrollbar { display: none; }

body[data-view="staff"] .cl-staff-filter {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 5px 13px;
  border: 1px solid #5e3a64;
  border-radius: 999px;
  color: #f3dde8;
  background: #120715;
  font-size: 12px;
  cursor: pointer;
}

body[data-view="staff"] .cl-staff-filter.is-active {
  border-color: #e8c46a;
  color: #08040b;
  background: #e8c46a;
}

body[data-view="staff"] .cl-staff-order-list { display: grid; gap: 12px; }

body[data-view="staff"] .cl-staff-order-row {
  display: grid;
  min-height: 124px;
  align-content: start;
  gap: 10px;
  padding: 16px;
}

body[data-view="staff"] .cl-staff-order-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

body[data-view="staff"] .cl-staff-order-row-head strong {
  overflow-wrap: anywhere;
  color: #fff7fb;
  font-size: 15px;
  line-height: 1.3;
}

body[data-view="staff"] .cl-staff-order-row-head em {
  flex: 0 0 auto;
  color: #78d6b2;
  font-size: 10px;
  font-style: normal;
  line-height: 1.2;
  text-transform: uppercase;
}

body[data-view="staff"] .cl-staff-order-row > span:not(.cl-staff-order-row-head) {
  color: #f3dde8;
  font-size: 12px;
}

body[data-view="staff"] .cl-staff-order-row > b {
  color: #e8c46a;
  font-size: 12px;
  font-weight: 500;
}

body[data-view="staff"] .cl-staff-field {
  display: grid;
  gap: 7px;
  color: #f3dde8;
  font-size: 12px;
}

body[data-view="staff"] .cl-staff-field input,
body[data-view="staff"] .cl-staff-product-form input,
body[data-view="staff"] .cl-staff-check-item select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #5e3a64;
  border-radius: 8px;
  outline: 0;
  color: #fff7fb;
  background: #1a0b20;
}

body[data-view="staff"] .cl-staff-field input::placeholder,
body[data-view="staff"] .cl-staff-product-form input::placeholder { color: rgba(243, 221, 232, 0.72); }

body[data-view="staff"] .cl-staff-product-form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  width: 100%;
}

body[data-view="staff"] .cl-staff-product-form input { padding-right: 8px; border-radius: 8px 0 0 8px; border-right: 0; }
body[data-view="staff"] .cl-staff-product-form button {
  min-height: 48px;
  border: 1px solid #5e3a64;
  border-left: 0;
  border-radius: 0 8px 8px 0;
  color: #e8c46a;
  background: #1a0b20;
  font-size: 22px;
  cursor: pointer;
}

body[data-view="staff"] .cl-staff-scan { position: relative; }
body[data-view="staff"] .cl-staff-scan input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

body[data-view="staff"] .cl-staff-scan-row { position: relative; cursor: pointer; }
body[data-view="staff"] .cl-staff-scan-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

body[data-view="staff"] .cl-staff-checklist {
  display: grid;
  gap: 12px;
  margin: 0;
}

body[data-view="staff"] .cl-staff-checklist h2 {
  margin: 0;
  color: #fff7fb;
  font-size: 15px;
}

body[data-view="staff"] .cl-staff-check-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 9px;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 14px;
  border: 1px solid #5e3a64;
  border-radius: 8px;
  background: #120715;
}

body[data-view="staff"] .cl-staff-check-item strong,
body[data-view="staff"] .cl-staff-check-item small { display: block; overflow-wrap: anywhere; }
body[data-view="staff"] .cl-staff-check-item strong { color: #fff7fb; font-size: 14px; }
body[data-view="staff"] .cl-staff-check-item small { margin-top: 4px; color: #f3dde8; font-size: 11px; }
body[data-view="staff"] .cl-staff-check-item label { display: grid; gap: 3px; justify-items: center; color: #f3dde8; font-size: 10px; }
body[data-view="staff"] .cl-staff-check-item input { width: 22px; height: 22px; accent-color: #e8c46a; }
body[data-view="staff"] .cl-staff-check-item select { grid-column: 1 / -1; }

body[data-view="staff"] .cl-staff-inline-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body[data-view="staff"] .cl-staff-inline-values > span {
  padding: 12px 14px;
  border: 1px solid #5e3a64;
  border-radius: 8px;
  color: #f3dde8;
  background: #120715;
  font-size: 12px;
}

body[data-view="staff"] .cl-staff-inline-values strong { display: block; margin-top: 5px; color: #fff7fb; font-size: 18px; }

body[data-view="staff"] .toast {
  position: sticky;
  z-index: 80;
  top: 8px;
  width: 100%;
  max-width: 358px;
  margin: 8px auto 0;
  border-radius: 8px;
  backdrop-filter: none;
}

body[data-view="staff"] .cl-staff-nav {
  position: fixed;
  z-index: 32;
  right: auto;
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  left: 50%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  width: calc(100% - 32px);
  max-width: 358px;
  height: 72px;
  margin: 0;
  padding: 8px 6px 6px;
  overflow: hidden;
  border: 0;
  border-top: 1px solid #5e3a64;
  border-radius: 0;
  background: #120715;
  box-shadow: none;
  backdrop-filter: none;
  transform: translateX(-50%);
}

body[data-view="staff"] .cl-staff-nav button {
  display: grid;
  grid-template-rows: 29px 16px;
  min-width: 0;
  min-height: 56px;
  align-content: center;
  justify-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #f3dde8;
  background: transparent;
  font-size: clamp(9px, 2.8vw, 11px);
  cursor: pointer;
}

body[data-view="staff"] .cl-staff-nav-icon {
  display: grid;
  width: 28px;
  height: 28px;
  margin: 0;
  place-items: center;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  box-shadow: none;
}

body[data-view="staff"] .cl-staff-nav-icon .line-icon { width: 17px; height: 17px; }
body[data-view="staff"] .cl-staff-nav-label { display: block; color: inherit; line-height: 16px; }
body[data-view="staff"] .cl-staff-nav button.is-active,
body[data-view="staff"] .cl-staff-nav button.is-active .cl-staff-nav-icon {
  border: 0;
  color: #e8c46a;
  background: transparent;
  box-shadow: none;
}

@media (max-width: 359px) {
  body[data-view="staff"].final-locked-visuals .app-shell { padding: 0 15px; border-radius: 22px; }
  body[data-view="staff"] .cl-staff-mobile-header { grid-template-columns: minmax(72px, 1fr) auto minmax(72px, 1fr); }
  body[data-view="staff"] .cl-staff-mobile-header h1 { font-size: 17px; }
  body[data-view="staff"] .cl-staff-header-back { font-size: 10px; }
  body[data-view="staff"] .cl-staff-content { gap: 10px; }
  body[data-view="staff"] .cl-staff-list-row { min-height: 72px; padding: 11px 13px; }
  body[data-view="staff"] .cl-staff-state-panel { min-height: 82px; padding: 13px; }
  body[data-view="staff"] .cl-staff-order-row { min-height: 116px; padding: 14px; }
  body[data-view="staff"] .cl-staff-finance-card { min-height: 142px; padding: 16px; }
  body[data-view="staff"] .cl-staff-nav { width: calc(100% - 32px); padding-inline: 3px; }
  body[data-view="staff"] .cl-staff-nav button { min-height: 56px; font-size: 9px; }
  body[data-view="staff"] .cl-staff-check-item { grid-template-columns: minmax(0, 1fr) auto; }
  body[data-view="staff"] .cl-staff-check-item label:last-of-type { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-view="staff"] .cl-staff-shell *,
  body[data-view="staff"] .cl-staff-nav * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
