:root {
  --brand: #0b7a53;
  --brand-dark: #075f40;
  --brand-deep: #063f2d;
  --brand-soft: #e4f5ed;
  --lime: #c8f06b;
  --lime-soft: #effbd3;
  --kitchen: #e56b2f;
  --kitchen-soft: #fff0e6;
  --bar: #4075d6;
  --bar-soft: #eaf1ff;
  --ink: #18221d;
  --muted: #66736b;
  --line: #dfe7e2;
  --surface: #ffffff;
  --canvas: #f4f7f4;
  --danger: #c93f45;
  --danger-soft: #fff0f0;
  --warning: #a56b00;
  --warning-soft: #fff6d8;
  --success: #13704d;
  --shadow-sm: 0 4px 16px rgba(25, 58, 42, .07);
  --shadow-md: 0 18px 50px rgba(25, 58, 42, .12);
  --shadow-lg: 0 28px 80px rgba(14, 55, 35, .18);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(200, 240, 107, .16), transparent 26rem),
    linear-gradient(180deg, #fbfdfb 0, var(--canvas) 38rem);
  font-family: "Segoe UI Variable", "Segoe UI", Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(11, 122, 83, .25);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(223, 231, 226, .86);
  background: rgba(255, 255, 255, .91);
  backdrop-filter: blur(18px);
}

.brand-lockup,
.phone-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 15px 15px 15px 5px;
  color: #fff;
  background: linear-gradient(145deg, #149567, var(--brand-dark));
  box-shadow: 0 8px 18px rgba(11, 122, 83, .24);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.app-title { font-size: 16px; font-weight: 850; letter-spacing: -.02em; }

.role-switcher,
.network-badge,
.current-role {
  display: flex;
  align-items: center;
  gap: 9px;
}

.network-badge,
.current-role {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #536158;
  background: #f9fbf9;
  font-size: 12px;
  font-weight: 750;
  text-transform: capitalize;
}

.language-toggle {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #536158;
  background: #fff;
  box-shadow: 0 4px 12px rgba(33, 68, 50, .05);
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.language-toggle:hover {
  border-color: rgba(11, 122, 83, .38);
  box-shadow: 0 6px 16px rgba(11, 122, 83, .10);
}

.language-toggle:active { transform: scale(.97); }

.language-toggle:focus-visible {
  outline: 3px solid rgba(20, 149, 103, .2);
  outline-offset: 2px;
}

.language-code {
  color: #94a098;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1;
}

.language-code.active { color: var(--brand-dark); }

.language-track {
  width: 31px;
  height: 19px;
  display: flex;
  align-items: center;
  padding: 2px;
  border-radius: 999px;
  background: #dce6df;
  transition: background .2s ease;
}

.language-knob {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(25, 53, 37, .22);
  transform: translateX(0);
  transition: transform .2s ease;
}

.language-toggle[aria-checked="true"] .language-track { background: var(--brand); }
.language-toggle[aria-checked="true"] .language-knob { transform: translateX(12px); }

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #21b778;
  box-shadow: 0 0 0 4px rgba(33, 183, 120, .12);
}

.role-button,
.primary-button,
.secondary-button,
.ghost-button,
.quantity-button,
.status-button,
.stock-button {
  min-height: 44px;
  border: 0;
  border-radius: 13px;
  cursor: pointer;
  font-weight: 780;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease, opacity .16s ease;
}

.primary-button,
.secondary-button,
.ghost-button,
.role-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 17px;
}

.primary-button {
  color: #fff;
  background: linear-gradient(145deg, #0f8a5e, var(--brand-dark));
  box-shadow: 0 8px 20px rgba(11, 122, 83, .20);
}

.secondary-button {
  color: var(--brand-dark);
  border: 1px solid #c9dfd3;
  background: #fff;
}

.ghost-button,
.role-button {
  color: #526159;
  background: transparent;
}

.role-button { border: 1px solid var(--line); }
.danger-button { color: var(--danger); border-color: #efc9cb; background: var(--danger-soft); }

button:hover:not(:disabled),
a.secondary-button:hover { transform: translateY(-2px); }
.primary-button:hover:not(:disabled) { box-shadow: 0 12px 26px rgba(11, 122, 83, .26); }
button:active:not(:disabled) { transform: translateY(0); }
button:disabled { cursor: not-allowed; opacity: .46; box-shadow: none; }

.feedback-toast {
  position: fixed;
  z-index: 100;
  top: 90px;
  left: 50%;
  max-width: min(90vw, 440px);
  transform: translateX(-50%);
  padding: 13px 18px;
  border: 1px solid #bfe2d0;
  border-radius: 14px;
  color: #075f40;
  background: #effaf4;
  box-shadow: var(--shadow-md);
  font-size: 14px;
  font-weight: 750;
  animation: toast-in .25s ease both;
}

.feedback-toast[hidden] { display: none; }
.feedback-error { color: #9b2c32; border-color: #efc6c8; background: #fff2f2; }

@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.stock-alert {
  position: relative;
  z-index: 45;
  width: 100%;
  padding: 11px 18px;
  color: #922f34;
  background: #ffe8e9;
  border-bottom: 1px solid #f3cfd1;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.stock-alert::before { content: "!"; display: inline-grid; place-items: center; width: 19px; height: 19px; margin-right: 8px; border-radius: 50%; color: #fff; background: currentColor; font-size: 11px; }
.stock-alert.maintenance { color: #775400; background: var(--warning-soft); border-color: #f0dfaa; }
.stock-alert.pending-start { color: #3e5e84; background: #edf4ff; border-color: #d2e2f8; }

/* First-time setup */
.setup-shell { width: min(1280px, calc(100% - 48px)); display: grid; grid-template-columns: minmax(250px, .36fr) minmax(0, 1fr); align-items: start; gap: 24px; }
.setup-intro { position: sticky; top: 112px; overflow: hidden; padding: 36px; border-radius: 30px; color: #fff; background: radial-gradient(circle at 95% 8%, rgba(200, 240, 107, .32), transparent 12rem), linear-gradient(155deg, var(--brand-deep), var(--brand)); box-shadow: var(--shadow-lg); }
.setup-intro::after { content: ""; position: absolute; width: 190px; height: 190px; right: -110px; bottom: -100px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.setup-intro .eyebrow { color: var(--lime); }
.setup-intro h1 { position: relative; z-index: 1; margin: 0; font-size: clamp(38px, 4vw, 54px); line-height: 1; letter-spacing: -.055em; }
.setup-intro > p { position: relative; z-index: 1; margin: 22px 0 30px; color: rgba(255,255,255,.77); font-size: 14px; line-height: 1.65; }
.setup-checklist { position: relative; z-index: 1; display: grid; gap: 10px; }
.setup-checklist span { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.9); font-size: 12px; font-weight: 750; }
.setup-checklist b { width: 27px; height: 27px; display: inline-grid; place-items: center; border-radius: 9px; color: var(--brand-deep); background: var(--lime); font-size: 10px; }
.setup-panel { padding: 30px; border: 1px solid var(--line); border-radius: 30px; background: rgba(255,255,255,.94); box-shadow: var(--shadow-md); }
.setup-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.setup-panel-heading h2 { margin: 0; font-size: 29px; letter-spacing: -.04em; }
.setup-once-badge { padding: 7px 11px; border: 1px solid #c9e0d4; border-radius: 999px; color: var(--brand-dark); background: var(--brand-soft); font-size: 10px; font-weight: 850; white-space: nowrap; }
.setup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.setup-card { position: relative; padding: 21px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fbfcfb; }
.setup-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--brand); }
.setup-kitchen-card::before { background: var(--kitchen); }
.setup-bar-card::before { background: var(--bar); }
.setup-customer-card::before { background: #8a64c5; }
.setup-card-number { position: absolute; top: 17px; right: 18px; color: #b6c1ba; font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.setup-card h3 { margin: 0 0 4px; font-size: 19px; letter-spacing: -.025em; }
.setup-card > p { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.setup-card .form-group { margin: 14px 0 0; }
.setup-card .form-group small { color: var(--muted); font-size: 9px; }
.setup-card .form-group .password-requirement { transition: color .16s ease, font-weight .16s ease; }
.setup-card .form-group .password-requirement.invalid { color: #e01822; font-weight: 900; }
.setup-error { margin-top: 17px; }
.setup-finish { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 22px; padding-top: 21px; border-top: 1px solid var(--line); }
.setup-finish p { max-width: 460px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.setup-finish .primary-button { min-width: 235px; }

/* Landing */
.landing-shell { padding-top: 28px; }

.landing-hero {
  position: relative;
  min-height: 390px;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(330px, .94fr);
  align-items: center;
  gap: 46px;
  overflow: hidden;
  padding: clamp(38px, 6vw, 72px);
  border-radius: 36px;
  background:
    radial-gradient(circle at 80% 18%, rgba(200, 240, 107, .35), transparent 12rem),
    linear-gradient(135deg, #073d2c 0%, #0a6848 62%, #0b7a53 100%);
  box-shadow: var(--shadow-lg);
}

.landing-hero::before,
.landing-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.11);
}

.landing-hero::before { width: 360px; height: 360px; right: -100px; top: -170px; }
.landing-hero::after { width: 240px; height: 240px; left: 38%; bottom: -190px; }

.landing-intro { position: relative; z-index: 2; }
.landing-intro .eyebrow { color: var(--lime); }
.landing-intro h1 {
  margin: 0;
  max-width: 630px;
  color: #fff;
  font-size: clamp(48px, 6vw, 78px);
  line-height: .98;
  letter-spacing: -.055em;
}
.landing-intro h1 span { color: var(--lime); }
.landing-intro > p { max-width: 510px; margin: 22px 0 0; color: rgba(255,255,255,.76); font-size: 17px; line-height: 1.65; }

.hero-points { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 27px; color: rgba(255,255,255,.86); font-size: 12px; font-weight: 700; }
.hero-points span { display: flex; align-items: center; gap: 7px; }
.hero-points strong { width: 22px; height: 22px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--brand-deep); background: var(--lime); font-size: 11px; }

.food-showcase { position: relative; min-height: 300px; z-index: 2; }
.showcase-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 28px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 30px 60px rgba(0,0,0,.23);
}
.showcase-card strong { margin-top: 6px; font-size: 16px; }
.showcase-card small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.showcase-main { top: 4px; right: 62px; width: 235px; padding: 26px; transform: rotate(4deg); }
.showcase-drink { right: -6px; bottom: 8px; width: 190px; padding: 21px; transform: rotate(-7deg); }
.showcase-art { height: 115px; display: grid; place-items: center; border-radius: 20px; background: linear-gradient(145deg, #fff2df, #ffd8b4); font-size: 66px; }
.showcase-drink .showcase-art { height: 90px; background: linear-gradient(145deg, #e5f0ff, #bcd4ff); font-size: 51px; }
.showcase-bubble { position: absolute; display: grid; place-items: center; border-radius: 50%; color: var(--brand-deep); background: var(--lime); box-shadow: 0 10px 30px rgba(0,0,0,.14); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.bubble-one { width: 65px; height: 65px; top: 8px; left: 2px; transform: rotate(-10deg); }
.bubble-two { width: 56px; height: 56px; left: 54px; bottom: 22px; background: #fff; transform: rotate(8deg); }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin: 48px 0 20px; }
.section-heading h2 { margin: 0; font-size: 28px; letter-spacing: -.035em; }
.section-heading > p { max-width: 360px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; text-align: right; }

.role-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.role-card {
  position: relative;
  isolation: isolate;
  min-height: 205px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow-sm);
  text-align: left;
  cursor: pointer;
}

.role-card::after { content: ""; position: absolute; z-index: 0; width: 110px; height: 110px; right: -58px; top: -58px; border-radius: 50%; background: var(--card-glow, var(--brand-soft)); pointer-events: none; transition: transform .2s ease; }
.role-card:hover { border-color: #bed6ca; box-shadow: var(--shadow-md); }
.role-card:hover::after { transform: scale(1.18); }
.role-customer { --card-glow: var(--lime-soft); }
.role-kitchen { --card-glow: var(--kitchen-soft); }
.role-bar { --card-glow: var(--bar-soft); }
.role-manager { --card-glow: #f1ebff; }

.role-marker { z-index: 1; min-width: 58px; height: 34px; display: inline-flex; align-items: center; justify-content: center; padding: 0 11px; border-radius: 999px; color: var(--brand-dark); background: var(--brand-soft); font-size: 10px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.role-kitchen .role-marker { color: #a34719; background: var(--kitchen-soft); }
.role-bar .role-marker { color: #2856aa; background: var(--bar-soft); }
.role-manager .role-marker { color: #6b48a5; background: #f1ebff; }
.role-copy { z-index: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding-right: 20px; }
.role-copy strong { font-size: 18px; letter-spacing: -.02em; }
.role-copy > span { color: var(--muted); font-size: 13px; line-height: 1.5; }
.role-link { position: absolute; z-index: 2; right: 19px; bottom: 19px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--brand); font-size: 18px; }
.staff-role-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.qr-gate-shell { min-height: calc(100vh - 76px); display: grid; place-items: center; }
.qr-gate-card { width: min(100%, 650px); padding: clamp(32px, 6vw, 62px); border: 1px solid #cddfd5; border-radius: 34px; background: radial-gradient(circle at 90% 4%, var(--lime-soft), transparent 33%), #fff; box-shadow: var(--shadow-lg); text-align: center; }
.qr-gate-icon { width: 82px; height: 82px; display: grid; place-items: center; margin: 0 auto 24px; border-radius: 26px; color: #fff; background: var(--brand); box-shadow: 0 0 0 12px var(--brand-soft); font-size: 34px; font-weight: 900; }
.qr-gate-card h1 { max-width: 520px; margin: 8px auto 12px; font-size: clamp(34px, 5vw, 52px); line-height: 1.02; letter-spacing: -.05em; }
.qr-gate-card > p { max-width: 480px; margin: 0 auto; color: var(--muted); font-size: 15px; line-height: 1.6; }
.qr-gate-help { display: flex; flex-direction: column; gap: 4px; margin-top: 28px; padding: 15px 18px; border: 1px solid #deebe4; border-radius: 16px; background: #f7fbf8; }
.qr-gate-help strong { font-size: 12px; }
.qr-gate-help span { color: var(--muted); font-size: 10px; line-height: 1.45; }

.access-note { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 18px 20px; border: 1px solid #d7e6de; border-radius: 20px; background: #f9fcfa; }
.access-note div { display: flex; flex-direction: column; gap: 3px; }
.access-note strong { font-size: 13px; }
.access-note div span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.access-icon { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 13px; color: var(--brand-dark); background: var(--brand-soft); font-size: 11px; font-weight: 900; }

/* Login */
.login-shell { min-height: calc(100vh - 76px); display: grid; place-items: center; padding-block: 46px; }
.login-card { width: min(100%, 450px); padding: 38px; border: 1px solid var(--line); border-radius: 30px; background: #fff; box-shadow: var(--shadow-lg); }
.login-illustration { position: relative; isolation: isolate; height: 105px; display: flex; align-items: center; justify-content: center; margin: -12px -12px 30px; border-radius: 22px; background: linear-gradient(135deg, #e5f7ee, #f2fbdc); overflow: hidden; }
.login-illustration::before, .login-illustration::after { content: ""; position: absolute; z-index: 0; border-radius: 50%; background: rgba(11,122,83,.08); pointer-events: none; }
.login-illustration::before { width: 150px; height: 150px; left: -55px; top: -75px; }
.login-illustration::after { width: 110px; height: 110px; right: -25px; bottom: -70px; }
.login-illustration > .brand-mark { position: relative; z-index: 1; }
.login-role-chip { position: absolute; z-index: 1; right: 20px; bottom: 14px; padding: 6px 10px; border-radius: 999px; color: var(--brand-dark); background: #fff; box-shadow: var(--shadow-sm); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.login-card h1 { margin: 0 0 8px; font-size: 34px; letter-spacing: -.045em; }
.login-card > p { margin: 0 0 25px; color: var(--muted); line-height: 1.55; }
.login-card > .primary-button { width: 100%; margin-top: 8px; }
.login-back { width: 100%; margin-top: 7px; }
.manager-recovery-link { width: 100%; margin-top: 9px; color: var(--brand-dark); }
.recovery-login-card > p { margin-bottom: 16px; }
.recovery-login-warning { margin: 0 0 18px; padding: 13px 14px; border: 1px solid #efc8ca; border-radius: 13px; color: #93353a; background: #fff0f1; font-size: 11px; font-weight: 750; line-height: 1.55; }
.recovery-login-card .password-requirement { color: var(--muted); font-size: 9px; }
.recovery-login-card .password-requirement.invalid { color: #e01822; font-weight: 900; }

/* Shared forms */
.form-group { display: flex; flex-direction: column; gap: 8px; margin: 18px 0; }
.form-group label, .note-label, .menu-create-form label > span { color: #445148; font-size: 12px; font-weight: 800; }
.form-group input,
.menu-create-form input,
.menu-create-form select,
.room-create-form input,
.stock-row input,
.item-note {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #cfdbd4;
  border-radius: 13px;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.form-group input:focus, .menu-create-form input:focus, .menu-create-form select:focus, .room-create-form input:focus, .stock-row input:focus, .item-note:focus { border-color: #5da989; box-shadow: 0 0 0 4px rgba(11, 122, 83, .10); outline: 0; }
.helper { display: block; color: var(--muted); font-size: 11px; line-height: 1.5; }
.validation { margin: 12px 0; padding: 11px 13px; border: 1px solid #f0c6c8; border-radius: 12px; color: #9c3036; background: #fff1f2; font-size: 12px; font-weight: 700; }

/* Customer frame */
.customer-shell { display: grid; grid-template-columns: minmax(220px, 300px) minmax(420px, 510px); justify-content: center; align-items: start; gap: clamp(40px, 7vw, 90px); }
.page-heading { position: sticky; top: 126px; padding-top: 56px; }
.page-heading h1 { margin: 0; font-size: clamp(38px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -.055em; }
.page-heading p { margin: 18px 0 0; color: var(--muted); line-height: 1.65; }

.phone-frame { position: relative; overflow: hidden; border: 1px solid #d5dfd9; border-radius: 34px; background: #fff; box-shadow: var(--shadow-lg); }
.phone-top { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 20px; color: #fff; background: linear-gradient(135deg, #075f40, #0b7a53); }
.phone-top .brand-mark { width: 36px; height: 36px; flex-basis: 36px; border-radius: 12px 12px 12px 4px; color: var(--brand-dark); background: var(--lime); box-shadow: none; font-size: 22px; }
.phone-brand > span:last-child, .phone-room { display: flex; flex-direction: column; }
.phone-brand strong { font-size: 13px; }
.phone-brand small, .phone-room small { color: rgba(255,255,255,.67); font-size: 9px; }
.phone-room { max-width: 165px; align-items: flex-end; text-align: right; }
.phone-room strong { max-width: 100%; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.screen { min-height: 680px; padding: 26px 24px 30px; background: #fff; }
.screen h2 { margin: 4px 0 8px; font-size: 29px; line-height: 1.12; letter-spacing: -.04em; }
.screen-copy { margin: 0 0 23px; color: var(--muted); font-size: 13px; line-height: 1.58; }
.back-row { margin: -3px 0 15px; }
.back-row .ghost-button { min-height: 36px; margin-left: -12px; padding: 7px 11px; font-size: 11px; }

.stepper { position: relative; display: flex; justify-content: space-between; gap: 5px; margin: 0 0 26px; }
.stepper::before { content: ""; position: absolute; left: 24px; right: 24px; top: 15px; height: 2px; background: #e6ece8; }
.step-item { position: relative; z-index: 1; min-width: 52px; display: flex; flex-direction: column; align-items: center; gap: 5px; color: #8a958e; }
.step-dot { width: 31px; height: 31px; display: grid; place-items: center; border: 2px solid #dce5df; border-radius: 50%; background: #fff; font-size: 10px; font-weight: 900; }
.step-item small { font-size: 9px; font-weight: 750; }
.step-item.done .step-dot { color: #fff; border-color: var(--brand); background: var(--brand); }
.step-item.done { color: var(--brand-dark); }
.step-item.current .step-dot { box-shadow: 0 0 0 5px var(--brand-soft); }

.screen-hero-icon { width: 62px; height: 62px; display: grid; place-items: center; margin: 5px 0 20px; border-radius: 20px; color: var(--brand-dark); background: linear-gradient(145deg, var(--lime-soft), var(--brand-soft)); font-size: 30px; font-weight: 900; }
.room-grid { display: grid; gap: 10px; margin: 21px 0; }
.room-choice { min-height: 70px; display: grid; grid-template-columns: 42px 1fr 28px; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; text-align: left; cursor: pointer; transition: border-color .15s, background .15s, transform .15s, box-shadow .15s; }
.room-choice:hover { border-color: #9ac7b1; box-shadow: var(--shadow-sm); }
.room-choice.active { border-color: var(--brand); background: #f0faf5; box-shadow: 0 0 0 3px rgba(11,122,83,.08); }
.room-choice-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--brand); background: var(--brand-soft); font-size: 13px; }
.room-choice > span:nth-child(2) { display: flex; flex-direction: column; gap: 3px; }
.room-choice strong { font-size: 13px; }
.room-choice small { color: var(--muted); font-size: 10px; }
.room-check { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid #d7e0db; border-radius: 50%; color: transparent; font-size: 11px; }
.room-choice.active .room-check { color: #fff; border-color: var(--brand); background: var(--brand); }
.mobile-action > .primary-button { width: 100%; }
.room-helper { display: flex; justify-content: center; align-items: center; gap: 7px; margin: 13px 0 0; text-align: center; }
.room-helper > span { padding: 3px 5px; border-radius: 5px; color: var(--brand-dark); background: var(--brand-soft); font-size: 8px; font-weight: 900; }

.room-card { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 13px; margin: 22px 0 26px; padding: 14px; border: 1px solid #cfe1d7; border-radius: 17px; background: #f2faf6; }
.room-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: var(--brand-dark); background: #dff3e8; font-size: 23px; }
.room-card > div:nth-child(2) { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.room-card > div:nth-child(2) > span { color: var(--muted); font-size: 9px; text-transform: uppercase; font-weight: 800; }
.room-card strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.room-card small { color: var(--muted); font-size: 9px; }
.confirmed-chip { padding: 6px 8px; border-radius: 999px; color: var(--brand-dark); background: #dff3e8; font-size: 9px; font-weight: 800; }
.screen > .primary-button { width: 100%; }

.delivery-strip { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; margin-bottom: 24px; padding: 10px 12px; border-radius: 15px; background: #f1f8f4; }
.delivery-strip-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: var(--brand-dark); background: #dcefe5; font-weight: 900; }
.delivery-strip > span:nth-child(2) { display: flex; flex-direction: column; }
.delivery-strip small { color: var(--muted); font-size: 9px; }
.delivery-strip strong { font-size: 11px; }
.delivery-person { max-width: 110px; overflow: hidden; padding: 6px 9px; border: 1px solid #d5e4dc; border-radius: 999px; color: #456155; background: #fff; font-size: 9px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.menu-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.menu-header h2 { margin-top: 0; }
.menu-header .screen-copy { margin-bottom: 13px; }
.cart-chip { min-width: 48px; height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 15px; color: var(--brand-dark); background: var(--lime-soft); font-size: 15px; font-weight: 900; line-height: 1; }
.cart-chip small { margin-top: 3px; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.category-tabs { position: sticky; z-index: 5; top: 0; display: flex; gap: 8px; margin: 7px -3px 17px; padding: 4px 3px; background: rgba(255,255,255,.96); }
.category-tab { min-height: 36px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: #59675f; background: #fff; font-size: 11px; font-weight: 800; cursor: pointer; }
.category-tab.active { color: #fff; border-color: var(--brand); background: var(--brand); box-shadow: 0 6px 14px rgba(11,122,83,.18); }
.menu-list { display: grid; gap: 12px; padding-bottom: 8px; }
.menu-item { position: relative; min-height: 128px; display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px; border: 1px solid #e1e8e4; border-radius: 19px; background: #fff; box-shadow: 0 5px 18px rgba(28,62,45,.055); }
.menu-item.out-of-stock { background: #fbfbfb; }
.food-placeholder { position: relative; height: 104px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; overflow: hidden; border-radius: 16px; background: linear-gradient(145deg, #fff3e6, #ffd7b6); }
.station-bar .food-placeholder { background: linear-gradient(145deg, #eaf2ff, #cbdcff); }
.food-placeholder::before { content: ""; position: absolute; width: 72px; height: 72px; left: -28px; bottom: -35px; border-radius: 50%; background: rgba(255,255,255,.45); }
.food-placeholder span { position: relative; font-size: 39px; filter: drop-shadow(0 6px 7px rgba(70,45,20,.12)); }
.food-placeholder small { position: relative; padding: 3px 7px; border-radius: 999px; color: #8f451f; background: rgba(255,255,255,.75); font-size: 7px; font-weight: 900; text-transform: uppercase; }
.station-bar .food-placeholder small { color: #315caa; }
.food-placeholder.has-picture::before { display: none; }
.food-placeholder.has-picture img { width: 100%; height: 100%; display: block; object-fit: cover; }
.menu-item-copy { min-width: 0; }
.menu-route { display: none; }
.menu-item h3 { margin: 0 0 5px; font-size: 14px; line-height: 1.25; }
.menu-item p { display: -webkit-box; overflow: hidden; margin: 0 0 9px; color: var(--muted); font-size: 10px; line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.stock-count { display: inline-flex; align-items: center; gap: 5px; color: var(--brand); font-size: 9px; font-weight: 800; }
.stock-count::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.stock-count.out { padding: 4px 7px; border-radius: 999px; color: var(--danger); background: var(--danger-soft); }
.menu-item.out-of-stock .food-placeholder { filter: grayscale(.8); opacity: .62; }
.add-button { min-width: 54px; min-height: 34px; padding: 7px 12px; border-color: #a5cdb9; color: var(--brand); border-radius: 11px; font-size: 10px; }
.menu-quantity, .quantity-control { display: flex; align-items: center; gap: 8px; }
.menu-quantity { align-self: end; margin-bottom: 4px; }
.quantity-button { width: 30px; min-height: 30px; display: grid; place-items: center; padding: 0; border: 1px solid #bdd7ca; border-radius: 10px; color: var(--brand-dark); background: #f6fbf8; font-size: 17px; line-height: 1; }
.menu-quantity strong, .quantity-control strong { min-width: 16px; text-align: center; font-size: 12px; }
.menu-empty, .empty-state { padding: 50px 22px; border: 1px dashed #ccd9d1; border-radius: 20px; color: var(--muted); background: #fbfcfb; text-align: center; }
.menu-empty { display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.menu-empty strong, .empty-state h2 { color: var(--ink); }
.continue-area { position: sticky; z-index: 10; bottom: 0; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; margin: 19px -24px -30px; padding: 14px 18px 17px; border-top: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); box-shadow: 0 -12px 30px rgba(24,54,39,.08); }
.continue-area > div { display: flex; flex-direction: column; }
.continue-area > div span { color: var(--muted); font-size: 9px; }
.continue-area > div strong { font-size: 11px; }
.continue-area .primary-button { min-height: 42px; padding: 9px 14px; font-size: 11px; }

.cart-list { display: grid; gap: 13px; margin-top: 19px; }
.cart-item { padding: 15px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.cart-item-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cart-product { min-width: 0; display: flex; align-items: center; gap: 11px; }
.cart-item-icon { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border-radius: 13px; background: var(--kitchen-soft); font-size: 23px; }
.cart-item.station-bar .cart-item-icon { background: var(--bar-soft); }
.cart-item-icon.has-picture { overflow: hidden; }
.cart-item-icon.has-picture img { width: 100%; height: 100%; display: block; object-fit: cover; }
.cart-item h3 { margin: 2px 0 0; font-size: 13px; }
.route-label { color: var(--kitchen); font-size: 8px; font-weight: 900; text-transform: uppercase; }
.station-bar .route-label { color: var(--bar); }
.note-label { display: flex; justify-content: space-between; margin: 15px 0 7px; }
.note-label span { color: #929c96; font-size: 9px; font-weight: 600; }
.item-note { min-height: 70px; resize: vertical; font-size: 12px; line-height: 1.45; }
.note-save-state { display: flex; align-items: center; gap: 5px; margin-top: 6px; color: #718078; font-size: 8px; }
.note-save-state span { color: var(--brand); }
.summary-card { margin: 17px 0; padding: 5px 15px; border: 1px solid #dce5e0; border-radius: 17px; background: #f8faf9; }
.summary-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid #e7ece9; }
.summary-row:last-child { border: 0; }
.summary-row span { color: var(--muted); font-size: 10px; }
.summary-row strong { font-size: 11px; text-align: right; }
.order-submit { min-height: 50px; }

.tracking-screen { text-align: center; }
.success-mark { width: 66px; height: 66px; display: grid; place-items: center; margin: 8px auto 18px; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #21a977, var(--brand)); box-shadow: 0 0 0 9px var(--brand-soft); font-size: 25px; font-weight: 900; }
.tracking-screen > .screen-copy { max-width: 365px; margin-inline: auto; }
.qr-session-note, .qr-session-complete { margin: 18px 0 0; padding: 14px 16px; border: 1px solid #dbe8e1; border-radius: 15px; color: var(--muted); background: #f7faf8; font-size: 10px; line-height: 1.5; }
.qr-session-complete { display: flex; flex-direction: column; gap: 4px; color: var(--brand-dark); background: var(--brand-soft); }
.qr-session-complete span { color: #4f6659; }
.tracking-pulse { display: grid; grid-template-columns: 10px 1fr; align-items: center; column-gap: 9px; margin: 19px 0; padding: 12px 14px; border: 1px solid #d8e7df; border-radius: 15px; background: #f5faf7; text-align: left; }
.tracking-pulse > span { grid-row: span 2; width: 9px; height: 9px; border-radius: 50%; background: #24b47e; box-shadow: 0 0 0 5px rgba(36,180,126,.12); animation: live-pulse 1.7s ease infinite; }
.tracking-pulse strong { font-size: 10px; }
.tracking-pulse small { color: var(--muted); font-size: 8px; line-height: 1.45; }
@keyframes live-pulse { 50% { box-shadow: 0 0 0 8px rgba(36,180,126,.04); } }
.tracking-section { margin: 13px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; text-align: left; }
.tracking-section-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--kitchen-soft); }
.tracking-section.station-bar .tracking-section-head { background: var(--bar-soft); }
.tracking-station-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: rgba(255,255,255,.7); font-size: 18px; }
.tracking-section-head small { display: block; color: var(--muted); font-size: 8px; }
.tracking-section h3 { margin: 1px 0 0; font-size: 12px; }
.tracking-item { display: flex; align-items: center; justify-content: space-between; gap: 13px; padding: 14px; border-top: 1px solid #edf1ee; }
.tracking-name { font-size: 11px; font-weight: 800; }
.tracking-note { margin-top: 4px; color: var(--muted); font-size: 9px; }
.status { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 5px 8px; border-radius: 999px; color: #55625a; background: #edf1ef; font-size: 8px; font-weight: 850; white-space: nowrap; }
.status-waiting-for-staff { color: #8b6300; background: #fff1bd; }
.status-accepted { color: #235ea8; background: #e7f0ff; }
.status-unavailable { color: #aa343a; background: #ffe9ea; }
.status-ready, .status-delivered { color: #08704a; background: #ddf5e9; }
.customer-sound-button { width: 100%; min-height: 54px; display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 11px; margin: 0 0 15px; padding: 9px 12px; border: 1px solid #c9ddd2; border-radius: 15px; color: var(--brand-dark); background: #f8fbf9; text-align: left; cursor: pointer; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.customer-sound-button:hover, .customer-sound-button:focus-visible { transform: translateY(-1px); border-color: #77ad91; background: #f2f9f5; }
.customer-sound-button.needs-enable { border-color: #ead09b; color: #765010; background: #fffaf0; }
.customer-sound-button > span:first-child { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--brand); font-size: 17px; }
.customer-sound-button.needs-enable > span:first-child { background: #d7952d; }
.customer-sound-button > span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.customer-sound-button strong { font-size: 10px; line-height: 1.25; }
.customer-sound-button small { color: var(--muted); font-size: 8px; line-height: 1.4; }

/* Staff */
.staff-shell, .manager-shell { padding-top: 36px; }
.staff-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 26px; }
.staff-header h1 { margin: 0 0 7px; font-size: clamp(34px, 4vw, 50px); letter-spacing: -.05em; }
.staff-header p { margin: 0; color: var(--muted); }
.staff-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.staff-sound-button { min-height: 50px; display: inline-flex; align-items: center; gap: 10px; padding: 8px 13px 8px 9px; border: 1px solid #b8d5c6; border-radius: 15px; color: var(--brand-dark); background: #fff; box-shadow: var(--shadow-sm); text-align: left; cursor: pointer; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.staff-sound-button:hover, .staff-sound-button:focus-visible { transform: translateY(-1px); border-color: #6eac8d; box-shadow: var(--shadow-md); }
.staff-sound-button.needs-enable { border-color: #e8b86d; color: #764c0d; background: #fff9ef; }
.staff-sound-icon { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: var(--brand); font-size: 17px; }
.staff-sound-button.needs-enable .staff-sound-icon { background: #d88920; }
.staff-sound-button > span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.staff-sound-button strong { font-size: 10px; line-height: 1.2; }
.staff-sound-button small { max-width: 190px; color: var(--muted); font-size: 8px; line-height: 1.35; }
.station-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; color: #a34b1e; background: var(--kitchen-soft); font-size: 12px; font-weight: 900; }
.station-bar .station-pill { color: #2d5aac; background: var(--bar-soft); }
.manager-header .station-pill { color: #62409f; background: #f0eaff; }
.staff-order-alert { position: relative; isolation: isolate; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 14px; margin: -7px 0 22px; padding: 15px 16px; overflow: hidden; border: 2px solid #df9e4c; border-radius: 19px; color: #5e3a0c; background: #fff8e9; box-shadow: 0 14px 32px rgba(128, 82, 16, .16); animation: staff-order-arrival .32s ease-out; }
.staff-order-alert::after { content: ""; position: absolute; z-index: 0; width: 120px; height: 120px; right: -56px; top: -72px; border-radius: 50%; background: rgba(239, 164, 60, .15); pointer-events: none; }
.staff-order-alert.station-bar { border-color: #80a9e4; color: #244f8d; background: #f1f6ff; box-shadow: 0 14px 32px rgba(38, 84, 151, .14); }
.staff-order-alert.station-bar::after { background: rgba(86, 137, 210, .14); }
.staff-order-alert > * { position: relative; z-index: 1; }
.staff-order-alert-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; color: #fff; background: #d88920; box-shadow: 0 8px 18px rgba(168, 100, 17, .24); font-size: 23px; animation: staff-order-bell .72s ease-in-out 2; }
.staff-order-alert.station-bar .staff-order-alert-icon { background: #3f75c4; box-shadow: 0 8px 18px rgba(43, 91, 161, .24); }
.staff-order-alert > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.staff-order-alert .eyebrow { color: currentColor; }
.staff-order-alert strong { overflow-wrap: anywhere; font-size: 15px; }
.staff-order-alert small { color: #715c3e; font-size: 10px; line-height: 1.45; }
.staff-order-alert.station-bar small { color: #536c91; }
.staff-order-alert .ghost-button { min-height: 38px; padding: 8px 12px; border-color: currentColor; color: currentColor; background: rgba(255,255,255,.72); }
@keyframes staff-order-arrival { from { opacity: 0; transform: translateY(-9px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes staff-order-bell { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
.queue-summary, .manager-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin: 22px 0; }
.queue-summary > div, .manager-metrics > div { position: relative; isolation: isolate; min-height: 120px; display: flex; flex-direction: column; padding: 19px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); }
.queue-summary > div::after, .manager-metrics > div::after { content: ""; position: absolute; z-index: 0; width: 80px; height: 80px; right: -35px; bottom: -40px; border-radius: 50%; background: var(--brand-soft); pointer-events: none; }
.queue-summary > div > *, .manager-metrics > div > * { position: relative; z-index: 1; }
.queue-summary span, .manager-metrics span { color: var(--muted); font-size: 11px; font-weight: 700; }
.queue-summary strong, .manager-metrics strong { margin: 6px 0 1px; font-size: 31px; line-height: 1; letter-spacing: -.05em; }
.queue-summary small, .manager-metrics small { color: #8c9890; font-size: 9px; }
.ticket-tabs, .manager-tabs { display: flex; gap: 7px; overflow-x: auto; margin: 24px 0 18px; padding: 5px; border: 1px solid var(--line); border-radius: 16px; background: #ebf0ed; scrollbar-width: none; }
.ticket-tabs::-webkit-scrollbar, .manager-tabs::-webkit-scrollbar { display: none; }
.ticket-tab { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: 1 0 auto; padding: 9px 15px; border: 0; border-radius: 12px; color: #5d6961; background: transparent; font-size: 11px; font-weight: 800; cursor: pointer; }
.ticket-tab span { min-width: 23px; height: 23px; display: grid; place-items: center; padding: 0 5px; border-radius: 999px; color: #68746c; background: rgba(255,255,255,.8); font-size: 9px; }
.ticket-tab.active { color: var(--brand-dark); background: #fff; box-shadow: 0 4px 12px rgba(27,58,43,.09); }
.ticket-tab.active span { color: #fff; background: var(--brand); }
.ticket-tab.rejected { color: #a1474b; }
.ticket-tab.rejected.active { color: #a32d34; background: #fff5f5; }
.ticket-tab.rejected.active span { background: var(--danger); }
.staff-ticket-list { display: grid; gap: 12px; }
.ticket-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); }
.ticket-card.open { border-color: #9fc5b2; box-shadow: var(--shadow-md); }
.ticket-summary { width: 100%; min-height: 100px; display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 15px; padding: 17px 19px; border: 0; background: #fff; text-align: left; cursor: pointer; }
.ticket-number { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 15px; color: var(--brand-dark); background: var(--brand-soft); font-size: 13px; font-weight: 900; }
.ticket-summary > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ticket-eyebrow { color: var(--warning); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.ticket-summary strong { overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.ticket-summary > div > span:last-child { color: var(--muted); font-size: 10px; }
.ticket-open-label { color: var(--brand); font-size: 10px; font-weight: 850; }
.ticket-open-label > span { margin-left: 4px; }
.ticket-detail { border-top: 1px solid var(--line); background: #fbfcfb; }
.staff-item { padding: 18px 20px; border-bottom: 1px solid #e7ece9; }
.staff-item-line { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.staff-item-name { font-size: 14px; font-weight: 850; }
.staff-note { margin-top: 10px; padding: 11px 13px; border-left: 3px solid #e39c36; border-radius: 0 10px 10px 0; color: #644a21; background: #fff7e8; font-size: 11px; line-height: 1.5; }
.no-note { margin-top: 8px; color: #8a958e; font-size: 10px; font-style: italic; }
.availability-actions { display: flex; gap: 9px; margin-top: 15px; }
.stock-button { min-width: 120px; padding: 9px 15px; border: 1px solid #bfd9cc; color: var(--brand-dark); background: #fff; font-size: 11px; }
.stock-button.active { color: #fff; border-color: var(--brand); background: var(--brand); }
.stock-button.unavailable { color: var(--danger); border-color: #edc6c8; }
.stock-button.unavailable.active { color: #fff; border-color: var(--danger); background: var(--danger); }
.verify-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 20px; background: #f1f7f4; }
.verify-footer p { margin: 0; color: var(--muted); font-size: 10px; }
.verify-footer .primary-button { min-width: 150px; }
.delivery-footer { background: #edf4ff; }

/* Manager */
.manager-tabs { position: sticky; z-index: 12; top: 88px; margin-bottom: 28px; background: rgba(235,240,237,.94); backdrop-filter: blur(12px); }
.manager-tabs .ticket-tab { flex-basis: auto; }
.manager-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 34px 0 17px; }
.manager-section-heading h2 { margin: 0; font-size: 24px; letter-spacing: -.035em; }
.manager-section-heading p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.readonly-chip { padding: 7px 10px; border-radius: 999px; color: #5a6875; background: #edf1f4; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.manager-live-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.manager-live-list > .empty-state { grid-column: 1 / -1; }
.manager-station-card, .credential-card { padding: 19px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); }
.manager-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.manager-card-head h2 { margin: 0; font-size: 17px; }
.manager-order-meta { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 15px 0; padding: 11px 5px; border: 0; border-block: 1px solid #edf1ef; color: inherit; background: transparent; font: inherit; font-size: 10px; text-align: left; cursor: pointer; transition: color .16s ease, background .16s ease; }
.manager-order-meta:hover, .manager-order-meta:focus-visible { color: var(--brand-dark); background: #f4faf6; }
.manager-order-meta-right { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 9px; color: var(--muted); }
.manager-order-meta > strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.manager-order-meta-right b { color: var(--brand); font-size: 8px; }
.manager-order-details { display: grid; gap: 7px; margin: -7px 0 13px; padding: 12px; border: 1px solid #dce8e1; border-radius: 13px; background: #f7faf8; animation: manager-details-in .18s ease-out; }
.manager-order-details-title { color: var(--brand-dark); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.manager-order-detail-row { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 9px 10px; border: 1px solid #e6ece8; border-left: 3px solid var(--kitchen); border-radius: 10px; background: #fff; }
.manager-order-detail-row.station-bar { border-left-color: var(--bar); }
.manager-order-detail-row > div { min-width: 0; }
.manager-order-detail-row strong { display: block; overflow-wrap: anywhere; font-size: 10px; }
.manager-order-detail-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.manager-order-detail-row .status { flex: 0 0 auto; font-size: 8px; }
@keyframes manager-details-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
.manager-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding: 9px 10px; border-radius: 10px; background: var(--kitchen-soft); font-size: 10px; }
.manager-item.station-bar { background: var(--bar-soft); }
.manager-item span { color: #7f563d; }
.manager-item.station-bar span { color: #49658f; }
.manager-readonly, .security-note { margin-top: 16px; padding: 12px 15px; border: 1px solid #dfe5e1; border-radius: 13px; color: var(--muted); background: #f8faf9; font-size: 10px; text-align: center; }
.credential-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.credential-card { padding: 24px; }
.credential-card h2 { margin: 0 0 16px; font-size: 21px; }
.credential-card > p { min-height: 47px; margin: -4px 0 16px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.credential-card .primary-button { width: 100%; }
.credential-qr-mode { display: flex; flex-direction: column; }
.qr-mode-switch { width: 100%; display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 12px; padding: 13px; border: 1px solid #dfe6e2; border-radius: 15px; color: var(--ink); background: #f7f9f8; text-align: left; cursor: pointer; }
.qr-mode-switch-track { width: 44px; height: 25px; display: flex; align-items: center; padding: 3px; border-radius: 999px; background: #aeb8b2; transition: background .18s ease; }
.qr-mode-switch-track span { width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.18); transition: transform .18s ease; }
.qr-mode-switch.enabled .qr-mode-switch-track { background: var(--brand); }
.qr-mode-switch.enabled .qr-mode-switch-track span { transform: translateX(19px); }
.qr-mode-switch > span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.qr-mode-switch strong { font-size: 11px; }
.qr-mode-switch small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.staff-portal-link { display: flex; flex-direction: column; gap: 7px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #e6ece8; }
.staff-portal-link > span { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.staff-portal-link code { overflow: hidden; padding: 8px 9px; border-radius: 9px; color: #536158; background: #f2f5f3; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.staff-portal-link .secondary-button { width: 100%; }
.credential-status { display: inline-flex; margin: -5px 0 14px; padding: 5px 9px; border-radius: 999px; font-size: 10px; font-weight: 850; }
.credential-status.configured { color: var(--brand-dark); background: var(--brand-soft); }
.credential-status.unset { color: #8b6426; background: #fff1d6; }
.danger-zone { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 20px; margin-top: 25px; padding: 20px; border: 1px solid #edc9cb; border-radius: 18px; background: #fff7f7; }
.danger-zone strong { color: #9d3137; }
.danger-zone span { color: #866d6e; font-size: 10px; }
.danger-zone button { grid-column: 2; grid-row: 1 / span 2; }

.room-manager-create, .menu-manager-create { display: grid; grid-template-columns: 1fr minmax(420px, .95fr); align-items: center; gap: 32px; margin-bottom: 26px; padding: 27px; border: 1px solid #d8e5dd; border-radius: 24px; background: linear-gradient(135deg, #f3faf6, #fbfdf9); }
.room-manager-create h2, .menu-manager-create h2 { margin: 0 0 7px; font-size: 24px; letter-spacing: -.035em; }
.room-manager-create p, .menu-manager-create p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.room-create-form { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.room-list-heading { margin-top: 34px; }
.registered-room-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.registered-room-card { display: grid; grid-template-columns: minmax(0, 1fr) 144px; gap: 20px; padding: 20px; border: 1px solid var(--line); border-radius: 21px; background: #fff; box-shadow: var(--shadow-sm); }
.registered-room-info { min-width: 0; }
.registered-room-info h3 { margin: 0 0 12px; font-size: 19px; }
.registered-room-info code { display: block; overflow: hidden; padding: 9px 10px; border-radius: 9px; color: #536158; background: #f2f5f3; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.room-card-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.room-card-actions .secondary-button, .room-card-actions .ghost-button { min-height: 36px; padding: 7px 10px; font-size: 9px; text-decoration: none; }
.qr-regenerate-confirm { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 10px; border: 1px solid #efd1a3; border-radius: 12px; background: #fff8eb; }
.qr-regenerate-confirm > span { width: 100%; color: #835b22; font-size: 9px; line-height: 1.45; }
.qr-box { width: 144px; height: 144px; display: grid; place-items: center; padding: 6px; border: 1px solid #dfe6e2; border-radius: 15px; background: #fff; }
.qr-box canvas, .qr-box img { max-width: 100%; height: auto; }
.qr-download-backdrop { z-index: 1320; }
.qr-download-modal { width: min(100%, 760px); background: #fff; }
.qr-download-intro { margin: -7px 0 22px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.qr-download-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.qr-format-card { position: relative; min-width: 0; display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 18px; min-height: 230px; padding: 20px; border: 2px solid #dce6e0; border-radius: 22px; color: var(--ink); background: #f8fbf9; text-align: left; cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.qr-format-card:hover:not(:disabled), .qr-format-card:focus-visible { transform: translateY(-2px); border-color: #68aa87; background: #fff; box-shadow: 0 18px 42px rgba(22,55,37,.14); }
.qr-format-card:disabled { cursor: wait; opacity: .72; }
.qr-format-preview { justify-self: center; display: flex; flex-direction: column; align-items: center; padding: 13px 10px 11px; border: 1px solid #d7dfda; color: #17211b; background: #fff; box-shadow: 0 10px 24px rgba(22,42,31,.12); }
.qr-format-preview.format-portrait { width: 108px; aspect-ratio: 2 / 3; }
.qr-format-preview.format-square { width: 142px; aspect-ratio: 1; }
.qr-format-preview strong { width: 100%; min-height: 25%; display: grid; place-items: center; overflow: hidden; font-size: 8px; line-height: 1.15; text-align: center; overflow-wrap: anywhere; }
.qr-format-preview i { width: 76%; aspect-ratio: 1; display: block; margin: auto; border: 6px solid #fff; outline: 1px solid #d7dfda; background: repeating-conic-gradient(#17211b 0 25%, #fff 0 50%) 0 0 / 12px 12px; }
.qr-format-copy { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.qr-format-copy > strong { font-size: 17px; line-height: 1.15; }
.qr-format-copy small { color: var(--brand-dark); font-size: 11px; font-weight: 850; }
.qr-format-copy > span { color: var(--muted); font-size: 10px; }
.qr-format-busy { position: absolute; inset: auto 18px 15px; color: var(--brand); font-size: 9px; font-weight: 900; text-align: right; text-transform: uppercase; }

.menu-manager-create { grid-template-columns: minmax(250px, .65fr) 1fr; }
.menu-manager-create.locked { background: #f5f6f5; }
.menu-manager-create.locked .menu-create-form { opacity: .58; }
.menu-create-form { display: grid; grid-template-columns: 1fr 1.25fr .8fr; gap: 10px; align-items: end; }
.menu-create-form label { display: flex; flex-direction: column; gap: 7px; }
.menu-image-field { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 7px; }
.menu-image-label { color: #445148; font-size: 12px; font-weight: 800; }
.menu-image-label small { color: var(--muted); font-size: 9px; font-weight: 650; }
.menu-image-picker { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 13px; padding: 11px; border: 1px dashed #bfcfc6; border-radius: 16px; background: rgba(255,255,255,.72); }
.menu-image-preview { width: 92px; height: 92px; display: grid; place-items: center; overflow: hidden; border-radius: 12px; color: #597065; background: #edf4f0; font-size: 25px; }
.menu-image-preview.has-picture { background: #dfe8e3; }
.menu-image-preview img { width: 100%; height: 100%; display: block; object-fit: cover; }
.menu-image-copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.menu-image-copy strong { max-width: 100%; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.menu-image-copy > small { color: var(--muted); font-size: 9px; line-height: 1.45; }
.menu-image-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 5px; }
.menu-image-actions .secondary-button, .menu-image-actions .ghost-button { min-height: 34px; padding: 7px 10px; font-size: 9px; }
.menu-image-actions label.secondary-button { cursor: pointer; }
.menu-image-actions label.secondary-button.disabled { pointer-events: none; cursor: not-allowed; opacity: .46; }
.menu-create-form .primary-button { grid-column: 1 / -1; justify-self: end; }
.stock-date-bar { position: sticky; z-index: 11; top: 154px; display: grid; grid-template-columns: 1fr auto minmax(270px, auto); align-items: center; gap: 26px; margin: 22px 0; padding: 16px 18px; border: 1px solid #d9e4de; border-radius: 18px; background: rgba(255,255,255,.96); box-shadow: var(--shadow-sm); backdrop-filter: blur(14px); }
.stock-business-date { font-size: 16px; }
.stock-status-block { display: flex; flex-direction: column; gap: 2px; }
.stock-status-block > span { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.stock-status-value { font-size: 11px; }
.stock-status-value.set { color: var(--success); }
.stock-status-value.unset { color: var(--danger); }
.stock-date-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.stock-date-actions .primary-button, .stock-date-actions .secondary-button { min-height: 38px; padding: 8px 12px; font-size: 10px; }
.stock-simulator { display: flex; justify-content: flex-end; margin: -10px 0 12px; }
.stock-simulator .ghost-button { min-height: 34px; font-size: 9px; }
.stock-setup-note { padding: 13px 15px; border: 1px solid #e6dfbe; border-radius: 13px; color: #72632a; background: #fffbed; font-size: 11px; }
.stock-day-heading { display: flex; align-items: center; justify-content: space-between; margin: 23px 0 15px; }
.stock-day-heading h2 { margin: 0 0 5px; font-size: 25px; }
.stock-day-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.stock-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stock-station-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); }
.stock-station-head { padding: 18px 19px; background: var(--kitchen-soft); }
.stock-station-card:nth-child(2) .stock-station-head { background: var(--bar-soft); }
.stock-station-head h3 { margin: 0; font-size: 17px; }
.stock-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 15px; min-height: 78px; padding: 13px 18px; border-top: 1px solid #edf1ef; }
.stock-row > span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.stock-row strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.stock-row small { color: var(--muted); font-size: 9px; }
.stock-row-controls { min-width: 0; display: flex; align-items: center; gap: 8px; }
.stock-row input { width: 86px; min-height: 40px; padding: 8px 10px; text-align: center; }
.stock-row input[readonly] { border-color: transparent; background: #f1f4f2; }
.stock-remove, .stock-remove-confirm .secondary-button, .stock-remove-confirm .ghost-button { min-height: 34px; padding: 7px 9px; font-size: 9px; }
.stock-remove-confirm { display: flex; gap: 5px; }
.stock-station-empty { padding: 40px 20px; color: var(--muted); font-size: 11px; text-align: center; }
.stock-save-row, .stock-start-row { display: flex; justify-content: center; margin: 18px 0; }
.stock-save-row .primary-button, .stock-start-row .primary-button { min-width: 220px; }
.stock-attention-card, .stock-closed-card { margin: 18px 0; padding: 24px; border: 1px solid #ead9a2; border-radius: 21px; background: #fffbec; }
.stock-attention-card h2, .stock-closed-card h2 { margin: 0 0 8px; font-size: 23px; }
.stock-attention-card p, .stock-closed-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.stock-closed-card { border-color: #cfe3d8; background: #f3faf6; }
.stock-decision-actions { display: flex; justify-content: center; gap: 9px; margin-top: 18px; }
.modal-backdrop { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 28px; overflow-y: auto; background: rgba(20, 31, 25, .56); backdrop-filter: blur(8px); }
.stock-check-overlay { position: fixed; z-index: 1200; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(20, 31, 25, .62); backdrop-filter: blur(10px); }
.stock-check-card { width: min(100%, 390px); padding: 31px 28px 28px; border: 1px solid #d1e4d9; border-radius: 27px; background: #fff; box-shadow: 0 30px 90px rgba(13, 42, 27, .34); text-align: center; }
.stock-check-ring { position: relative; width: 112px; height: 112px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 50%; color: var(--brand-dark); background: #f1f9f4; }
.stock-check-ring::before { content: ""; position: absolute; inset: 0; border: 7px solid #c8e7d6; border-top-color: var(--brand); border-right-color: var(--lime); border-radius: 50%; animation: stock-check-rotate .8s linear infinite; }
.stock-check-ring::after { content: "\21BB"; position: absolute; top: -13px; right: 5px; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--brand); box-shadow: 0 5px 14px rgba(11, 122, 83, .25); font-size: 19px; font-weight: 900; animation: stock-check-rotate .8s linear infinite; }
.stock-check-ring span { position: relative; z-index: 1; font-size: 10px; font-weight: 900; letter-spacing: .06em; line-height: 1.25; text-transform: uppercase; }
.stock-check-card .eyebrow { color: var(--brand); }
.stock-check-card h2 { margin: 5px 0 8px; font-size: 25px; letter-spacing: -.04em; }
.stock-check-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
@keyframes stock-check-rotate { to { transform: rotate(360deg); } }
.customer-status-overlay { position: fixed; z-index: 1250; inset: 0; display: grid; place-items: center; padding: 20px; overflow: hidden; background: rgba(21, 39, 29, .25); backdrop-filter: blur(3px); pointer-events: none; animation: customer-status-backdrop .28s ease-out both; }
.customer-status-popup { width: min(100%, 370px); padding: 30px 25px 27px; border: 1px solid #cfe5d8; border-radius: 30px; color: var(--ink); background: rgba(255,255,255,.98); box-shadow: 0 30px 90px rgba(13, 42, 27, .3); text-align: center; animation: customer-status-pop .52s cubic-bezier(.18,.89,.32,1.28) both; }
.customer-status-overlay.status-rejected .customer-status-popup { border-color: #efc7c9; box-shadow: 0 30px 90px rgba(83, 32, 34, .25); }
.customer-status-popup .eyebrow { color: var(--brand); }
.customer-status-overlay.status-rejected .eyebrow { color: #ae4248; }
.customer-status-popup h2 { margin: 7px 0 8px; font-size: 27px; letter-spacing: -.04em; }
.customer-status-popup p { margin: 0 auto; max-width: 290px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.customer-status-face { position: relative; width: 132px; height: 132px; margin: 0 auto 21px; overflow: hidden; border: 5px solid rgba(255,255,255,.82); border-radius: 50%; background: linear-gradient(145deg, #ffe873, #ffc43f); box-shadow: 0 13px 30px rgba(195, 132, 20, .3), inset -10px -12px 20px rgba(220, 139, 16, .2), inset 8px 9px 16px rgba(255,255,255,.48); }
.customer-status-face.face-happy { animation: customer-face-happy 1.05s ease-in-out .35s 3; }
.customer-status-face.face-sad { background: linear-gradient(145deg, #ffe19a, #f4af66); box-shadow: 0 13px 30px rgba(151, 83, 31, .27), inset -10px -12px 20px rgba(174, 89, 35, .16), inset 8px 9px 16px rgba(255,255,255,.44); animation: customer-face-sad 1.15s ease-in-out .35s 3; }
.face-eye { position: absolute; top: 42px; width: 15px; height: 20px; border-radius: 50%; background: #593816; transform-origin: center; animation: customer-face-blink 2.2s ease-in-out .7s 2; }
.eye-left { left: 33px; }
.eye-right { right: 33px; }
.face-mouth { position: absolute; left: 50%; bottom: 25px; width: 53px; height: 28px; border-bottom: 8px solid #633918; border-radius: 0 0 55px 55px; transform: translateX(-50%); animation: customer-smile .7s ease-out .24s both; }
.face-sad .face-mouth { bottom: 21px; border-top: 8px solid #633918; border-bottom: 0; border-radius: 55px 55px 0 0; animation: customer-frown .7s ease-out .24s both; }
.face-cheek { position: absolute; top: 68px; width: 20px; height: 10px; border-radius: 50%; background: rgba(239, 99, 77, .32); }
.cheek-left { left: 17px; }
.cheek-right { right: 17px; }
.face-tear { position: absolute; top: 60px; right: 22px; width: 12px; height: 19px; border-radius: 70% 30% 65% 35%; background: #67b7e8; transform: rotate(10deg); animation: customer-tear 1.05s ease-in .55s 3; }
@keyframes customer-status-backdrop { from { opacity: 0; } to { opacity: 1; } }
@keyframes customer-status-pop { from { opacity: 0; transform: translateY(20px) scale(.68); } 68% { transform: translateY(-5px) scale(1.035); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes customer-face-happy { 0%, 100% { transform: translateY(0) rotate(0); } 38% { transform: translateY(-8px) rotate(-3deg); } 68% { transform: translateY(-3px) rotate(3deg); } }
@keyframes customer-face-sad { 0%, 100% { transform: translateX(0) rotate(0); } 35% { transform: translateX(-3px) rotate(-2deg); } 65% { transform: translateX(3px) rotate(2deg); } }
@keyframes customer-face-blink { 0%, 43%, 53%, 100% { transform: scaleY(1); } 48% { transform: scaleY(.12); } }
@keyframes customer-smile { from { width: 28px; transform: translateX(-50%) scaleY(.45); } to { width: 53px; transform: translateX(-50%) scaleY(1); } }
@keyframes customer-frown { from { width: 28px; transform: translateX(-50%) scaleY(.45); } to { width: 53px; transform: translateX(-50%) scaleY(1); } }
@keyframes customer-tear { 0% { opacity: 0; transform: translateY(-5px) rotate(10deg) scale(.7); } 28% { opacity: 1; } 100% { opacity: 0; transform: translateY(30px) rotate(10deg) scale(1); } }
.customer-expiry-overlay { position: fixed; z-index: 1230; inset: 0; display: grid; place-items: center; padding: 22px; overflow-y: auto; color: var(--ink); background: rgba(35, 39, 37, .73); backdrop-filter: blur(5px) grayscale(.7); animation: customer-expiry-backdrop .35s ease-out both; }
.customer-expiry-card { width: min(100%, 430px); padding: 34px 30px 30px; border: 1px solid rgba(255,255,255,.72); border-radius: 30px; background: rgba(249,251,249,.98); box-shadow: 0 34px 100px rgba(8, 19, 13, .42); text-align: center; animation: customer-expiry-card-in .5s cubic-bezier(.18,.89,.32,1.18) both; }
.customer-expiry-card .eyebrow { color: var(--brand); }
.customer-expiry-card h2 { margin: 7px auto 9px; max-width: 330px; font-size: 29px; line-height: 1.08; letter-spacing: -.045em; }
.customer-expiry-card > p { margin: 0 auto; max-width: 330px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.customer-expiry-clock { position: relative; width: 142px; height: 142px; display: grid; place-items: center; margin: 23px auto 21px; }
.customer-expiry-clock svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: rotate(-90deg); }
.customer-expiry-clock circle { fill: none; stroke-width: 8; }
.customer-expiry-track { stroke: #dce7e1; }
.customer-expiry-progress { stroke: var(--brand); stroke-linecap: round; stroke-dasharray: 289.1; stroke-dashoffset: var(--expiry-ring-offset, 0); filter: drop-shadow(0 3px 5px rgba(11,122,83,.24)); transition: stroke-dashoffset .42s linear; }
.customer-expiry-clock > span { position: relative; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.customer-expiry-clock strong { font-size: 45px; letter-spacing: -.07em; font-variant-numeric: tabular-nums; }
.customer-expiry-clock small { margin-top: 6px; color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.customer-expiry-instruction { padding: 13px 15px; border: 1px solid #cfe2d7; border-radius: 15px; color: var(--brand-dark) !important; background: #eef7f1; font-weight: 800; }
.customer-expiry-overlay[data-seconds="15"] { --expiry-ring-offset: 0; }
.customer-expiry-overlay[data-seconds="14"] { --expiry-ring-offset: 19.27; }
.customer-expiry-overlay[data-seconds="13"] { --expiry-ring-offset: 38.55; }
.customer-expiry-overlay[data-seconds="12"] { --expiry-ring-offset: 57.82; }
.customer-expiry-overlay[data-seconds="11"] { --expiry-ring-offset: 77.09; }
.customer-expiry-overlay[data-seconds="10"] { --expiry-ring-offset: 96.36; }
.customer-expiry-overlay[data-seconds="9"] { --expiry-ring-offset: 115.64; }
.customer-expiry-overlay[data-seconds="8"] { --expiry-ring-offset: 134.91; }
.customer-expiry-overlay[data-seconds="7"] { --expiry-ring-offset: 154.19; }
.customer-expiry-overlay[data-seconds="6"] { --expiry-ring-offset: 173.46; }
.customer-expiry-overlay[data-seconds="5"] { --expiry-ring-offset: 192.73; }
.customer-expiry-overlay[data-seconds="4"] { --expiry-ring-offset: 212.01; }
.customer-expiry-overlay[data-seconds="3"] { --expiry-ring-offset: 231.28; }
.customer-expiry-overlay[data-seconds="2"] { --expiry-ring-offset: 250.55; }
.customer-expiry-overlay[data-seconds="1"] { --expiry-ring-offset: 269.83; }
.customer-expiry-overlay[data-seconds="0"] { --expiry-ring-offset: 289.1; }
@keyframes customer-expiry-backdrop { from { opacity: 0; } to { opacity: 1; } }
@keyframes customer-expiry-card-in { from { opacity: 0; transform: translateY(18px) scale(.92); } to { opacity: 1; transform: translateY(0) scale(1); } }
.manager-modal { width: min(100%, 1080px); max-height: calc(100vh - 56px); overflow-y: auto; padding: 28px; border: 1px solid #d8e3dd; border-radius: 26px; background: #f8faf8; box-shadow: 0 28px 80px rgba(18, 42, 29, .28); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.modal-header h2 { margin: 4px 0 0; font-size: 30px; letter-spacing: -.04em; }
.modal-close { min-width: 42px; min-height: 42px; padding: 6px; border-radius: 50%; font-size: 24px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.menu-crop-backdrop { z-index: 1300; }
.menu-crop-modal { width: min(100%, 760px); background: #fff; }
.menu-crop-instructions { margin: -9px 0 20px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.menu-crop-workspace { display: grid; grid-template-columns: minmax(280px, 430px) minmax(170px, 1fr); align-items: center; justify-content: center; gap: 25px; }
.menu-crop-stage { position: relative; width: min(100%, 430px); aspect-ratio: 1; justify-self: center; overflow: hidden; border: 3px solid #fff; border-radius: 22px; outline: 2px solid #2d855f; background: #dfe8e3; box-shadow: 0 18px 42px rgba(22, 55, 37, .24); cursor: grab; touch-action: none; user-select: none; }
.menu-crop-stage:focus-visible { outline: 4px solid #63c390; outline-offset: 3px; }
.menu-crop-stage.dragging { cursor: grabbing; }
.menu-crop-stage > img { position: absolute; max-width: none; display: block; opacity: 0; object-fit: fill; pointer-events: none; user-select: none; transform: translateZ(0); transition: opacity .16s ease; -webkit-user-drag: none; }
.menu-crop-stage.picture-ready > img { opacity: 1; }
.menu-crop-loading { position: absolute; z-index: 1; inset: 0; display: grid; place-items: center; color: var(--brand-dark); background: #e8f0eb; font-size: 11px; font-weight: 850; pointer-events: none; transition: opacity .16s ease; }
.menu-crop-stage.picture-ready .menu-crop-loading { opacity: 0; }
.menu-crop-grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(to right, transparent 33.1%, rgba(255,255,255,.68) 33.1%, rgba(255,255,255,.68) 33.5%, transparent 33.5%, transparent 66.4%, rgba(255,255,255,.68) 66.4%, rgba(255,255,255,.68) 66.8%, transparent 66.8%), linear-gradient(to bottom, transparent 33.1%, rgba(255,255,255,.68) 33.1%, rgba(255,255,255,.68) 33.5%, transparent 33.5%, transparent 66.4%, rgba(255,255,255,.68) 66.4%, rgba(255,255,255,.68) 66.8%, transparent 66.8%); box-shadow: inset 0 0 0 1px rgba(17, 55, 36, .28), inset 0 0 70px rgba(9, 33, 21, .1); }
.menu-crop-size { position: absolute; right: 12px; bottom: 12px; padding: 6px 9px; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; color: #fff; background: rgba(18, 38, 28, .72); box-shadow: 0 4px 12px rgba(0,0,0,.17); font-size: 9px; font-weight: 900; letter-spacing: .04em; }
.menu-crop-help { display: flex; flex-direction: column; gap: 10px; padding: 19px; border: 1px solid #d7e6dd; border-radius: 17px; color: var(--brand-dark); background: #f2f8f4; }
.menu-crop-help strong { font-size: 14px; }
.menu-crop-help span { color: #385548; font-size: 11px; font-weight: 750; line-height: 1.5; }
.menu-crop-help small { color: var(--muted); font-size: 9px; line-height: 1.5; }
.close-day-modal { width: min(100%, 680px); padding: 32px; background: #fff; }
.close-day-explanation { margin: -6px 0 22px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.close-day-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.close-day-choice { display: flex; align-items: flex-start; gap: 14px; min-height: 132px; padding: 20px; border: 2px solid var(--line); border-radius: 18px; background: #fff; text-align: left; cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.close-day-choice:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.close-day-choice.keep:hover, .close-day-choice.keep:focus-visible { border-color: #59a785; background: #f4fbf7; }
.close-day-choice.empty:hover, .close-day-choice.empty:focus-visible { border-color: #df8f93; background: #fff7f7; }
.close-day-choice-icon { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 13px; color: var(--brand-dark); background: var(--brand-soft); font-size: 22px; font-weight: 900; }
.close-day-choice.empty .close-day-choice-icon { color: #a93238; background: var(--danger-soft); }
.close-day-choice > span:last-child { display: flex; flex-direction: column; gap: 7px; }
.close-day-choice strong { font-size: 14px; }
.close-day-choice small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.close-day-actions { justify-content: center; padding-top: 18px; border-top: 1px solid var(--line); }
.reopen-day-modal { width: min(100%, 570px); background: #fff; }
.reopen-day-notice { display: flex; flex-direction: column; gap: 6px; padding: 17px 18px; border: 1px solid #cfe3d8; border-radius: 15px; color: var(--brand-dark); background: #f3faf6; }
.reopen-day-notice strong { font-size: 13px; }
.reopen-day-notice span { color: var(--muted); font-size: 10px; line-height: 1.55; }
.recovery-key-modal { width: min(100%, 680px); padding: 32px; background: #fff; }
.recovery-key-alert { display: flex; align-items: center; gap: 15px; margin-bottom: 18px; }
.recovery-key-alert-icon { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; border-radius: 15px; color: #fff; background: #c93038; box-shadow: 0 10px 24px rgba(201, 48, 56, .24); font-size: 25px; font-weight: 950; }
.recovery-key-alert .eyebrow { color: #a92e35; }
.recovery-key-alert h2 { margin: 3px 0 0; font-size: 29px; letter-spacing: -.04em; }
.recovery-key-hard-warning { display: flex; flex-direction: column; gap: 7px; padding: 17px 18px; border: 2px solid #db5960; border-radius: 16px; color: #8f242b; background: #fff0f1; }
.recovery-key-hard-warning strong { font-size: 14px; }
.recovery-key-hard-warning span { font-size: 11px; font-weight: 700; line-height: 1.55; }
.recovery-key-replaced { margin: 14px 0 0; color: #8f242b; font-size: 11px; font-weight: 800; }
.recovery-key-value { margin: 18px 0 12px; padding: 18px; border: 1px dashed #7b9185; border-radius: 15px; background: #f4f8f5; text-align: center; }
.recovery-key-value code { color: #143e2b; font-family: Consolas, "Courier New", monospace; font-size: clamp(14px, 2.3vw, 19px); font-weight: 850; letter-spacing: .04em; overflow-wrap: anywhere; user-select: all; }
.recovery-key-tools { display: flex; gap: 9px; }
.recovery-key-tools > button { flex: 1; }
.recovery-key-confirm { display: flex; align-items: flex-start; gap: 11px; margin-top: 18px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfb; cursor: pointer; }
.recovery-key-confirm input { width: 19px; height: 19px; flex: 0 0 19px; margin-top: 1px; accent-color: var(--brand); }
.recovery-key-confirm span { display: flex; flex-direction: column; gap: 4px; }
.recovery-key-confirm strong { font-size: 12px; }
.recovery-key-confirm small { color: var(--muted); font-size: 9px; line-height: 1.5; }
.history-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.history-month-tabs { display: flex; gap: 7px; overflow-x: auto; padding: 5px; border: 1px solid var(--line); border-radius: 15px; background: #eaf0ec; scrollbar-width: none; }
.history-month-tab { min-height: 38px; padding: 8px 14px; border: 0; border-radius: 11px; color: #69756e; background: transparent; font-size: 11px; font-weight: 850; white-space: nowrap; cursor: pointer; }
.history-month-tab.active { color: var(--brand-dark); background: #fff; box-shadow: var(--shadow-sm); }
.history-days { display: grid; gap: 16px; }
.history-day { padding: 22px; border: 1px solid var(--line); border-radius: 21px; background: #fff; box-shadow: var(--shadow-sm); }
.history-day-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.history-day-head h3 { margin: 3px 0 0; font-size: 22px; letter-spacing: -.03em; }
.history-result { padding: 6px 10px; border-radius: 999px; color: var(--brand-dark); background: var(--brand-soft); font-size: 10px; font-weight: 800; }
.history-stations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.history-station { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fbfcfb; }
.history-station h4 { margin: 0; padding: 13px 15px; font-size: 13px; }
.history-station.station-kitchen h4 { background: var(--kitchen-soft); }
.history-station.station-bar h4 { background: var(--bar-soft); }
.history-item { display: grid; grid-template-columns: minmax(100px, 1fr) repeat(3, minmax(55px, auto)); align-items: center; gap: 12px; padding: 12px 15px; border-top: 1px solid #e7ece9; font-size: 11px; }
.history-item > span { text-align: right; font-weight: 850; }
.history-item small { display: block; margin-bottom: 2px; color: var(--muted); font-size: 8px; font-weight: 700; }
.history-empty-station { padding: 16px; color: var(--muted); font-size: 10px; }
.history-empty { min-height: 180px; }
.reset-modal { width: min(100%, 620px); }
.reset-warning { padding: 14px 16px; border: 1px solid #efc8ca; border-radius: 14px; color: #93353a; background: #fff0f1; font-size: 12px; font-weight: 750; line-height: 1.5; }
.reset-fields { display: grid; gap: 2px; margin-top: 18px; }

@media (max-width: 1000px) {
  .setup-shell { grid-template-columns: 1fr; }
  .setup-intro { position: relative; top: auto; }
  .setup-checklist { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .staff-role-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .landing-hero { grid-template-columns: 1fr .75fr; }
  .food-showcase { transform: scale(.87); transform-origin: center right; }
  .manager-live-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .credential-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .room-manager-create, .menu-manager-create { grid-template-columns: 1fr; }
  .menu-create-form { grid-template-columns: 1fr 1fr; }
  .menu-create-form label:nth-child(3) { grid-column: 1; }
  .menu-create-form .primary-button { grid-column: 2; align-self: end; }
  .registered-room-list { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .app-bar { min-height: 66px; padding: 10px 15px; }
  .brand-mark { width: 37px; height: 37px; flex-basis: 37px; font-size: 23px; }
  .network-badge { display: none; }
  .current-role { max-width: 125px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .language-toggle { min-height: 34px; gap: 5px; padding: 4px 7px; }
  .role-button { min-height: 36px; padding: 7px 10px; font-size: 11px; }
  .shell { width: min(100% - 28px, 600px); padding: 25px 0 50px; }
  .landing-shell { width: min(100% - 20px, 600px); }
  .landing-hero { min-height: auto; grid-template-columns: 1fr; padding: 40px 28px; border-radius: 28px; }
  .landing-intro h1 { font-size: clamp(46px, 14vw, 66px); }
  .landing-intro > p { font-size: 14px; }
  .food-showcase { display: none; }
  .hero-points { gap: 10px; }
  .section-heading { align-items: flex-start; margin-top: 35px; }
  .section-heading > p { display: none; }
  .section-heading h2 { font-size: 24px; }
  .role-grid { grid-template-columns: 1fr; }
  .staff-role-grid { grid-template-columns: 1fr; }
  .role-card { min-height: 112px; display: grid; grid-template-columns: 58px minmax(0, 1fr) 34px; align-items: center; gap: 14px; padding: 17px; }
  .role-copy { padding: 0; }
  .role-link { position: static; }
  .qr-gate-shell { min-height: calc(100vh - 66px); }
  .qr-gate-card { padding: 34px 22px; border-radius: 26px; }
  .qr-gate-card h1 { font-size: 37px; }
  .access-note { align-items: flex-start; }
  .login-shell { min-height: calc(100vh - 66px); }
  .login-card { padding: 27px; border-radius: 25px; }
  .recovery-key-modal { padding: 22px; }
  .recovery-key-alert h2 { font-size: 24px; }
  .recovery-key-tools { flex-direction: column; }
  .recovery-key-modal .modal-actions .primary-button { width: 100%; }
  .setup-shell { width: min(100% - 20px, 600px); padding-top: 18px; }
  .setup-intro { padding: 28px; border-radius: 25px; }
  .setup-intro h1 { font-size: 40px; }
  .setup-checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .setup-panel { padding: 20px; border-radius: 24px; }
  .setup-panel-heading { align-items: flex-start; flex-direction: column; }
  .setup-panel-heading h2 { font-size: 25px; }
  .setup-grid { grid-template-columns: 1fr; }
  .setup-finish { align-items: stretch; flex-direction: column; }
  .setup-finish .primary-button { width: 100%; min-width: 0; }

  .customer-shell { display: block; width: min(100%, 520px); padding: 0; }
  .customer-shell .page-heading { display: none; }
  .phone-frame { border: 0; border-radius: 0; box-shadow: none; }
  .phone-top { position: static; }
  .category-tabs { top: 66px; }
  .screen { min-height: calc(100vh - 142px); padding-inline: 19px; }
  .continue-area { margin-inline: -19px; }

  .staff-header { align-items: flex-start; flex-direction: column; }
  .staff-header h1 { font-size: 36px; }
  .staff-header p { font-size: 12px; }
  .staff-header-actions { width: 100%; justify-content: space-between; }
  .staff-sound-button { flex: 1 1 250px; }
  .staff-order-alert { margin-top: -10px; }
  .queue-summary, .manager-metrics { grid-template-columns: repeat(3, minmax(115px, 1fr)); overflow-x: auto; padding-bottom: 4px; }
  .queue-summary > div, .manager-metrics > div { min-height: 105px; padding: 15px; }
  .queue-summary strong, .manager-metrics strong { font-size: 26px; }
  .ticket-tabs, .manager-tabs { margin-inline: -4px; }
  .manager-tabs { top: 74px; }
  .ticket-summary { grid-template-columns: 44px 1fr; padding: 14px; }
  .ticket-number { width: 44px; height: 44px; }
  .ticket-open-label { grid-column: 2; }
  .verify-footer { align-items: stretch; flex-direction: column; }
  .verify-footer .primary-button { width: 100%; }
  .manager-live-list, .credential-grid, .stock-grid { grid-template-columns: 1fr; }
  .manager-section-heading { align-items: flex-start; flex-direction: column; }
  .registered-room-card { grid-template-columns: 1fr; }
  .qr-box { width: 100%; height: auto; min-height: 155px; }
  .room-create-form, .menu-create-form { grid-template-columns: 1fr; }
  .menu-create-form label:nth-child(3), .menu-create-form .primary-button { grid-column: 1; width: 100%; }
  .menu-image-picker { grid-template-columns: 72px minmax(0, 1fr); }
  .menu-image-preview { width: 72px; height: 72px; }
  .stock-date-bar { position: static; grid-template-columns: 1fr auto; gap: 12px; }
  .stock-date-actions { grid-column: 1 / -1; justify-content: stretch; }
  .stock-date-actions > button { flex: 1 1 130px; }
  .danger-zone { grid-template-columns: 1fr; }
  .danger-zone button { grid-column: 1; grid-row: auto; margin-top: 10px; }
  .modal-backdrop { place-items: start center; padding: 12px; }
  .manager-modal { max-height: calc(100vh - 24px); padding: 19px; border-radius: 20px; }
  .qr-download-options { grid-template-columns: 1fr; }
  .qr-format-card { min-height: 205px; }
  .menu-crop-workspace { grid-template-columns: 1fr; gap: 16px; }
  .menu-crop-stage { width: min(100%, 390px); border-radius: 17px; }
  .menu-crop-help { width: min(100%, 390px); justify-self: center; padding: 14px 16px; }
  .history-toolbar { align-items: stretch; flex-direction: column; }
  .close-day-modal { padding: 22px; }
  .close-day-options { grid-template-columns: 1fr; }
  .close-day-choice { min-height: 108px; }
  .history-stations { grid-template-columns: 1fr; }
  .history-day { padding: 15px; }
  .history-day-head { align-items: flex-start; flex-direction: column; }
  .history-item { grid-template-columns: minmax(90px, 1fr) repeat(3, minmax(42px, auto)); gap: 7px; padding-inline: 11px; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions button { width: 100%; }
}

@media (max-width: 430px) {
  .app-bar { gap: 10px; padding-inline: 10px; }
  .brand-lockup { min-width: 0; gap: 8px; }
  .app-title { font-size: 14px; }
  .current-role { display: none; }
  .role-switcher { gap: 6px; }
  .language-toggle { gap: 4px; padding-inline: 6px; }
  .language-code { font-size: 9px; }
  .screen { padding: 22px 16px 28px; }
  .continue-area { margin: 18px -16px -28px; padding-inline: 14px; }
  .menu-item { grid-template-columns: 84px minmax(0, 1fr); grid-template-areas: "picture copy" "picture action"; min-height: 112px; align-items: start; padding: 10px; }
  .menu-item .food-placeholder { grid-area: picture; }
  .menu-item-copy { grid-area: copy; padding-bottom: 0; }
  .food-placeholder { height: 86px; }
  .food-placeholder span { font-size: 33px; }
  .menu-item .add-button, .menu-item .menu-quantity { grid-area: action; align-self: end; justify-self: end; margin: 0; }
  .role-card { grid-template-columns: 58px minmax(0, 1fr) 34px; gap: 11px; padding: 15px; }
  .role-card::after { width: 96px; height: 96px; right: -44px; top: -44px; }
  .role-copy strong { overflow-wrap: anywhere; }
  .delivery-strip { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .delivery-person { max-width: 88px; }
  .cart-item-top { align-items: flex-start; }
  .cart-product > div { min-width: 0; }
  .cart-item h3 { overflow-wrap: anywhere; }
  .summary-row strong { min-width: 0; overflow-wrap: anywhere; }
  .room-card { grid-template-columns: 44px 1fr; }
  .confirmed-chip { grid-column: 2; justify-self: start; }
  .phone-room { max-width: 118px; }
  .tracking-item { align-items: flex-start; flex-direction: column; }
  .customer-status-overlay { padding: 13px; }
  .customer-status-popup { padding: 25px 18px 23px; border-radius: 24px; }
  .customer-status-popup h2 { font-size: 24px; }
  .customer-expiry-overlay { padding: 13px; }
  .customer-expiry-card { padding: 28px 18px 23px; border-radius: 24px; }
  .customer-expiry-card h2 { font-size: 25px; }
  .customer-expiry-clock { width: 126px; height: 126px; margin-block: 19px 18px; }
  .customer-expiry-clock strong { font-size: 40px; }
  .qr-format-card { grid-template-columns: 108px minmax(0, 1fr); gap: 12px; min-height: 184px; padding: 14px; }
  .qr-format-preview.format-portrait { width: 84px; }
  .qr-format-preview.format-square { width: 104px; }
  .qr-format-copy > strong { font-size: 15px; }
  .customer-status-face { width: 118px; height: 118px; margin-bottom: 18px; }
  .face-eye { top: 37px; width: 14px; height: 18px; }
  .eye-left { left: 29px; }
  .eye-right { right: 29px; }
  .face-mouth { bottom: 22px; width: 48px; height: 25px; }
  .face-sad .face-mouth { bottom: 18px; }
  .face-cheek { top: 61px; }
  .cheek-left { left: 14px; }
  .cheek-right { right: 14px; }
  .face-tear { top: 54px; right: 18px; }
  .availability-actions { flex-direction: column; }
  .stock-button { width: 100%; }
  .staff-item-line { align-items: flex-start; }
  .staff-item-name { min-width: 0; overflow-wrap: anywhere; }
  .staff-header .station-pill { display: none; }
  .staff-sound-button { width: 100%; flex-basis: 100%; }
  .staff-order-alert { grid-template-columns: 42px minmax(0, 1fr); padding: 13px; }
  .staff-order-alert-icon { width: 42px; height: 42px; font-size: 20px; }
  .staff-order-alert .ghost-button { grid-column: 2; justify-self: start; }
  .stock-row { grid-template-columns: 1fr; }
  .stock-row-controls { flex-wrap: wrap; justify-content: space-between; }
  .stock-row input { min-width: 80px; flex: 1 1 80px; }
  .stock-remove-confirm { margin-left: auto; }
  .manager-order-detail-row { align-items: flex-start; flex-direction: column; }
  .history-item { grid-template-columns: minmax(0, 1fr) repeat(3, minmax(36px, auto)); gap: 5px; padding-inline: 8px; font-size: 10px; }
  .modal-header h2 { overflow-wrap: anywhere; font-size: clamp(22px, 7vw, 30px); }
  .recovery-key-alert { align-items: flex-start; }
  .stock-decision-actions { flex-direction: column; }
  .stock-decision-actions > button { width: 100%; }
  .menu-crop-modal .modal-header h2 { font-size: 25px; }
  .menu-crop-instructions { margin-bottom: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
