:root {
  color-scheme: dark;
  --ink: #f0e4ca;
  --muted: #cabfa9;
  --line: rgba(240, 228, 202, 0.22);
  --paper: #152735;
  --panel: #102331;
  --soft: #0d2338;
  --navy: #0d2338;
  --cream: #f0e4ca;
  --cream-soft: #e8dcc8;
  --berry: #25d366;
  --berry-dark: #18ad51;
  --teal: #f0e4ca;
  --mint: rgba(240, 228, 202, 0.12);
  --gold: #c8a96d;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Josefin Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--soft);
}

button,
input {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 14px clamp(16px, 4vw, 44px);
  background: rgba(13, 35, 56, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.brand-logo {
  width: 65px;
  height: 65px;
  border-radius: 0;
  object-fit: cover;
  background: var(--navy);
}

.brand strong {
  font-size: clamp(0.95rem, 2.4vw, 1.12rem);
}

.brand small,
.choice-grid small,
.payment-strip small,
.receipt small,
.order-card small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.topnav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.topnav a,
.secondary-btn,
.order-actions button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--ink);
  background: rgba(240, 228, 202, 0.08);
  text-decoration: none;
  cursor: pointer;
}

.screen-menu {
  position: relative;
  display: inline-flex;
}

.screen-menu-options {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  display: none;
  min-width: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.screen-menu:hover .screen-menu-options,
.screen-menu:focus-within .screen-menu-options {
  display: grid;
}

.screen-menu-options a {
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  text-decoration: none;
}

.screen-menu-options a:hover {
  background: rgba(240, 228, 202, 0.1);
}

.order-hero {
  min-height: 430px;
  display: grid;
  place-items: center;
  padding: clamp(34px, 8vw, 88px) clamp(18px, 5vw, 72px);
  color: var(--cream);
  background: var(--navy);
}

.hero-copy {
  display: grid;
  justify-items: center;
  max-width: 780px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.order-hero .eyebrow {
  color: var(--cream);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  max-width: 760px;
  font-size: clamp(2.65rem, 8vw, 6.6rem);
  line-height: 0.96;
  letter-spacing: 0.08em;
}

.hero-logo {
  width: min(288px, 72vw);
  height: auto;
  margin-bottom: 18px;
  border-radius: 0;
  box-shadow: none;
}

.open-status,
.api-status,
.closed-notice {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--cream);
  background: rgba(240, 228, 202, 0.08);
}

.open-status {
  margin: 14px 0 0;
  padding: 8px 12px;
  font-weight: 700;
}

.api-status {
  margin: 8px 0 0;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.api-status.connected {
  border-color: rgba(37, 211, 102, 0.4);
  color: #25d366;
}

.api-status.demo {
  border-color: rgba(200, 169, 109, 0.65);
}

.open-status.open {
  border-color: rgba(37, 211, 102, 0.55);
  color: white;
  background: rgba(37, 211, 102, 0.18);
}

.open-status.closed {
  border-color: rgba(200, 169, 109, 0.65);
  color: var(--cream);
}

.closed-notice {
  display: flex;
  justify-content: center;
  gap: 12px;
  max-width: 1220px;
  margin: 18px auto -14px;
  padding: 14px 18px;
}

.hero-statement {
  margin-bottom: 8px;
  color: var(--cream-soft);
  font-size: clamp(1.35rem, 3.4vw, 2.5rem);
  line-height: 1.08;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
}

.hero-note {
  max-width: 620px;
  color: rgba(240, 228, 202, 0.82);
  font-size: 1rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 10px;
  border-radius: 8px;
  padding: 13px 20px;
  color: white;
  background: #25d366;
  text-decoration: none;
  font-weight: 800;
}

.launch-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 34px 18px;
  color: var(--cream);
  background: var(--navy);
}

.launch-inner {
  display: grid;
  justify-items: center;
  width: min(920px, 100%);
  text-align: center;
}

.launch-logo {
  width: min(320px, 76vw);
  height: auto;
  margin-bottom: 24px;
}

.launch-page h1 {
  max-width: none;
  margin: 4px 0 18px;
  font-size: clamp(2.2rem, 4vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.launch-page .launch-eyebrow {
  margin-bottom: 26px;
  font-size: 1.22rem;
  line-height: 1.25;
}

.launch-date-label {
  margin: 0;
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 800;
}

.launch-lead {
  max-width: 820px;
  margin: 6px 0 8px;
  color: var(--cream-soft);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.45;
}

.launch-availability {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.9rem;
}

.launch-countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(80px, 1fr));
  gap: 10px;
  width: min(620px, 100%);
}

.launch-countdown span {
  display: grid;
  gap: 4px;
  min-height: 94px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(240, 228, 202, 0.06);
}

.launch-countdown strong {
  font-size: 2.1rem;
}

.launch-countdown small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.launch-location {
  display: grid;
  justify-items: center;
  gap: 5px;
  margin-top: 30px;
}

.launch-location span {
  color: var(--muted);
}

.launch-location .hero-cta {
  margin-top: 12px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 20px;
  max-width: 1220px;
  margin: -36px auto 44px;
  padding: 0 clamp(14px, 4vw, 32px);
  align-items: start;
}

.panel,
.local-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.panel {
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
}

.section-title,
.local-head,
.receipt-head,
.order-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.section-title {
  justify-content: flex-start;
  margin-bottom: 22px;
}

.section-title span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--teal);
  font-weight: 800;
}

fieldset {
  min-width: 0;
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 10px;
  font-weight: 800;
}

.choice-grid {
  display: grid;
  gap: 10px;
}

.store-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(240, 228, 202, 0.06);
}

.store-picker > span {
  margin-right: 4px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.store-picker label {
  cursor: pointer;
}

.store-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.store-picker strong {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--cream);
  background: rgba(13, 35, 56, 0.42);
}

.store-picker input:checked + strong {
  border-color: var(--gold);
  color: var(--navy);
  background: var(--mint);
}

.location-assistant {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 0.55fr);
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
  border: 1px solid rgba(200, 169, 109, 0.55);
  border-radius: 8px;
  padding: 12px;
  background: rgba(200, 169, 109, 0.1);
}

.location-assistant strong,
.location-assistant small,
.location-assistant label,
.location-assistant span {
  display: block;
}

.location-assistant small {
  margin-top: 4px;
  color: var(--muted);
}

.location-assistant small[data-tone="ok"] {
  color: #25d366;
  font-weight: 800;
}

.location-assistant small[data-tone="warn"] {
  color: var(--gold);
  font-weight: 800;
}

.location-assistant label {
  color: var(--muted);
  font-weight: 700;
}

.location-assistant select {
  width: 100%;
  min-height: 38px;
  margin-top: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--navy);
  background: var(--cream);
}

.store-redirect-notice {
  display: grid;
  gap: 8px;
  margin: 12px 0 18px;
  border: 1px solid rgba(200, 169, 109, 0.72);
  border-radius: 8px;
  padding: 14px;
  color: var(--cream);
  background: rgba(200, 169, 109, 0.12);
}

.store-redirect-notice strong {
  font-size: 1.08rem;
}

.store-redirect-notice p {
  margin: 0;
  color: var(--cream);
  font-weight: 800;
}

.store-redirect-notice span {
  color: #25d366;
  font-weight: 900;
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.choice-grid label,
.flavor-grid label {
  display: block;
  min-width: 0;
  cursor: pointer;
}

.choice-grid input,
.flavor-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-grid span,
.flavor-grid span {
  display: block;
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  color: var(--cream);
  background: rgba(240, 228, 202, 0.06);
}

.choice-grid em {
  display: block;
  margin-top: 8px;
  color: #25d366;
  font-style: normal;
  font-weight: 800;
}

.product-grid label:first-of-type span {
  border-color: rgba(37, 211, 102, 0.7);
}

.choice-grid input:checked + span,
.flavor-grid input:checked + span {
  border-color: var(--gold);
  background: var(--mint);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.flavor-groups {
  display: grid;
  gap: 12px;
}

.flavor-search {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--muted);
  font-weight: 700;
}

.flavor-search input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--navy);
  background: var(--cream);
}

.flavor-category {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(12, 29, 42, 0.46);
}

.flavor-category h3 {
  margin-bottom: 4px;
  color: var(--cream);
  font-size: 1.08rem;
}

.flavor-category p {
  margin-bottom: 12px;
  color: var(--muted);
}

.flavor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.flavor-grid span {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 58px;
  font-weight: 700;
}

.flavor-grid span strong,
.flavor-grid span small {
  display: block;
}

.flavor-grid span small {
  margin-top: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.12;
  font-weight: 600;
}

.flavor-grid span strong {
  line-height: 1.05;
}

.flavor-best-seller span {
  padding-right: 96px;
  border-color: var(--line);
  background: rgba(240, 228, 202, 0.04);
}

.best-seller-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  white-space: nowrap;
  border: 1px solid rgba(37, 211, 102, 0.55);
  border-radius: 999px;
  padding: 3px 8px 2px;
  color: #25d366;
  background: rgba(37, 211, 102, 0.1);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}

.flavor-best-seller input:checked + span {
  border-color: var(--gold);
  background: var(--mint);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.empty-flavors {
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 16px;
  color: var(--muted);
}

.customer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.customer-grid label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-weight: 700;
}

.customer-grid input,
.customer-grid select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--navy);
  background: var(--cream);
}

.customer-grid select {
  overflow: hidden;
  text-overflow: ellipsis;
}

.delivery-zone {
  margin: -4px 0 22px;
  border: 1px solid rgba(200, 169, 109, 0.55);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--cream);
  background: rgba(200, 169, 109, 0.11);
}

.delivery-zone p {
  margin: 4px 0 0;
  color: var(--muted);
}

.delivery-zone a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--cream);
  font-weight: 800;
}

.wide-field {
  grid-column: span 2;
}

.payment-strip {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin: 22px 0;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(240, 228, 202, 0.1);
  border: 1px solid rgba(240, 228, 202, 0.28);
}

.cart-panel {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  padding: 16px;
  margin: 18px 0;
}

.cart-panel-head,
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cart-panel-head strong,
.cart-item strong {
  display: block;
}

.cart-panel-head small,
.cart-item small,
.cart-empty {
  color: var(--muted);
  margin: 4px 0 0;
}

.cart-items {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.cart-item {
  border: 1px solid rgba(244, 232, 204, 0.22);
  background: rgba(10, 33, 49, 0.55);
  padding: 12px;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cart-item-actions button {
  min-width: 78px;
}

.form-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.35;
}

.price-box {
  display: grid;
  justify-items: end;
  gap: 3px;
}

.discount-badge {
  border-radius: 999px;
  padding: 4px 8px;
  color: white;
  background: #25d366;
  font-size: 0.8rem;
  font-weight: 900;
}

.list-price {
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 700;
}

#totalPrice {
  color: #25d366;
  font-size: 1.45rem;
  font-weight: 900;
  white-space: nowrap;
}

.primary-btn {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: var(--berry);
  font-weight: 900;
  cursor: pointer;
}

.primary-btn:hover {
  background: var(--berry-dark);
}

.summary-panel {
  position: sticky;
  top: 92px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.receipt {
  display: grid;
  gap: 18px;
}

.arrival-box {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(37, 211, 102, 0.38);
  border-radius: 8px;
  padding: 14px;
  background: rgba(37, 211, 102, 0.1);
}

.arrival-box p {
  margin-bottom: 0;
  color: var(--muted);
}

#arrivalStatus {
  color: #25d366;
  font-weight: 800;
}

.receipt-head span,
.order-status {
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--cream);
  background: rgba(240, 228, 202, 0.12);
  font-size: 0.84rem;
  font-weight: 800;
}

#qrCanvas {
  width: 180px;
  height: 180px;
  border: 10px solid white;
  box-shadow: 0 0 0 1px var(--line);
}

dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px 12px;
  margin: 0;
}

dt {
  color: var(--muted);
  font-weight: 800;
}

dd {
  margin: 0;
}

.tracking-band {
  padding: clamp(24px, 5vw, 52px) clamp(16px, 4vw, 32px);
  background: #102326;
  color: white;
}

.tracking-inner {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 20px;
  max-width: 1220px;
  margin: 0 auto;
  align-items: center;
}

.status-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.status-track span {
  min-height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 10px;
  color: rgba(240, 228, 202, 0.82);
  text-align: center;
  font-weight: 800;
}

.status-track span.active {
  color: var(--navy);
  background: #9ff0df;
  border-color: #9ff0df;
}

.local-panel {
  max-width: 1220px;
  margin: 44px auto 72px;
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
}

.local-dashboard {
  max-width: 1320px;
}

.local-logo {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-bottom: 10px;
  object-fit: contain;
}

.local-brand-mark {
  width: 300px;
  max-width: 58vw;
  overflow: hidden;
}

.branch-note {
  margin-bottom: 2px;
  color: var(--cream);
  font-size: 1.05rem;
  font-weight: 900;
}

.master-panel {
  margin-top: -40px;
}

.master-admin-page {
  max-width: 1320px;
}

.master-admin-page h1 {
  max-width: none;
  margin: 12px 0 4px;
  font-size: clamp(0.85rem, 0.9vw, 0.95rem);
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.master-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.master-nav a {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--ink);
  background: rgba(240, 228, 202, 0.08);
  text-decoration: none;
  font-weight: 800;
}

.master-login,
.admin-grid,
.manual-state {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.manual-state {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(240, 228, 202, 0.08);
}

.manual-state p {
  margin-bottom: 0;
  color: var(--muted);
}

.client-visible-stores {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
}

.client-store-row {
  grid-template-columns: minmax(180px, 1.2fr) auto minmax(150px, 0.8fr) minmax(220px, 1.4fr);
}

.client-store-row .redirect-toggle {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--cream);
  font-weight: 800;
}

.client-store-row input[type="url"] {
  min-height: 38px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--navy);
  background: var(--cream);
}

.service-availability-admin {
  grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(150px, 0.8fr)) auto;
  align-items: center;
}

.service-availability-admin label {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--cream);
  font-weight: 800;
}

.launch-admin-block {
  grid-column: 1 / -1;
}

.test-link-field {
  grid-column: span 2;
}

.test-link-field input {
  width: 100%;
}

.print-copy-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cream-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.print-copy-control select {
  width: 58px;
  min-height: 40px;
  padding: 6px;
}

.master-login label,
.admin-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}

.master-login input,
.admin-grid input,
.admin-grid select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--navy);
  background: var(--cream);
}

.master-note {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(240, 228, 202, 0.08);
}

.master-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.inline-note {
  margin-top: 14px;
}

.branch-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.branch-admin-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(13, 35, 56, 0.52);
}

.branch-admin-card label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}

.branch-admin-card input,
.branch-admin-card select,
.add-flavor-form input,
.add-flavor-form select,
.add-product-form input,
.add-product-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--navy);
  background: var(--cream);
}

.add-flavor-form,
.add-product-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  align-items: end;
  margin-top: 14px;
}

.add-flavor-form label,
.add-product-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}

.branch-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.branch-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(240, 228, 202, 0.06);
}

.branch-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.branch-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.recovery-note {
  grid-column: 1 / -1;
  margin-bottom: 0;
  color: var(--muted);
}

.master-flavor-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.stock-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: rgba(240, 228, 202, 0.06);
}

.stock-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.stock-row input[type="checkbox"] {
  width: 26px;
  height: 26px;
  accent-color: #25d366;
}

.flavor-admin-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.9fr) minmax(160px, 0.9fr) minmax(190px, 1.1fr) minmax(160px, 0.9fr) minmax(95px, auto) auto auto auto;
}

.flavor-admin-row input[type="text"],
.flavor-admin-row select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--navy);
  background: var(--cream);
}

.best-seller-admin {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 800;
}

.best-seller-admin input {
  width: 22px;
  height: 22px;
  accent-color: var(--gold);
}

.master-section {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(240, 228, 202, 0.06);
}

.compact-head h2 {
  margin-bottom: 0;
  font-size: clamp(1.4rem, 4vw, 2.4rem);
}

.products-admin {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.product-admin-card {
  display: grid;
  grid-template-columns: minmax(170px, 0.8fr) minmax(0, 2.8fr);
  gap: 16px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(13, 35, 56, 0.52);
}

.product-admin-summary {
  display: grid;
  gap: 4px;
  align-content: start;
  min-width: 0;
}

.product-admin-summary strong {
  overflow-wrap: anywhere;
}

.product-admin-card small {
  display: block;
  color: var(--muted);
}

.product-admin-fields {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(110px, 0.75fr)) minmax(150px, 0.9fr);
  gap: 10px;
  align-items: end;
}

.product-name-field {
  grid-column: span 2;
}

.product-admin-card label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}

.product-admin-card input,
.product-admin-card select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--navy);
  background: var(--cream);
}

.product-admin-card .active-product input {
  width: 26px;
  height: 26px;
  accent-color: #25d366;
}

.product-switches {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.product-switches .active-product {
  justify-items: center;
}

.hours-grid {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.hour-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) repeat(3, minmax(110px, 0.7fr));
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(13, 35, 56, 0.52);
}

.hour-row label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}

.hour-row input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--navy);
  background: var(--cream);
}

.hour-row input[type="checkbox"] {
  width: 26px;
  height: 26px;
  accent-color: #25d366;
}

.orders-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
  margin-top: 18px;
  align-items: stretch;
}

.order-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.order-filter button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--ink);
  background: rgba(240, 228, 202, 0.08);
  cursor: pointer;
}

.order-filter button.active,
.secondary-btn.active {
  border-color: rgba(37, 211, 102, 0.62);
  color: white;
  background: rgba(37, 211, 102, 0.18);
}

.local-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.local-stats div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: rgba(240, 228, 202, 0.07);
}

.local-stats small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.local-stats strong {
  display: block;
  margin-top: 4px;
  color: var(--cream);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.order-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(240, 228, 202, 0.06);
}

.order-card-local {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 18px;
  border-left: 6px solid rgba(240, 228, 202, 0.24);
}

.order-card-local.status-paid {
  border-left-color: #25d366;
}

.order-card-local.status-preparing {
  border-left-color: #c8a96d;
}

.order-card-local.status-ready {
  border-left-color: #9ff0df;
}

.order-card-local.status-sent {
  opacity: 0.72;
}

.order-card-local.status-cancelled {
  opacity: 0.7;
  border-left-color: #ff5b5b;
}

.compact-order-card {
  min-height: 166px;
  gap: 8px;
  padding: 10px;
  border-left-width: 4px;
}

.compact-order-main {
  display: grid;
  width: 100%;
  min-height: 112px;
  gap: 5px;
  border: 0;
  padding: 0;
  color: var(--cream);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.compact-order-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.compact-order-top strong {
  font-size: 1.05rem;
  line-height: 1;
}

.compact-order-top small {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.1;
}

.compact-order-service,
.compact-order-status {
  color: var(--cream);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.05;
}

.compact-order-time {
  color: #25d366;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1;
}

.compact-order-meta {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-order-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}

.compact-order-actions button {
  width: 100%;
  min-height: 32px;
  padding: 7px 8px;
  overflow: hidden;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.primary-step {
  border-color: rgba(37, 211, 102, 0.75);
  color: white;
  background: rgba(37, 211, 102, 0.2);
}

.order-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3, 18, 31, 0.78);
}

.order-modal {
  width: min(680px, 100%);
  max-height: 90vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.order-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.order-modal-head small {
  color: var(--muted);
  font-weight: 900;
}

.order-modal-head h2 {
  margin: 4px 0 0;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
}

.icon-close {
  width: 38px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--cream);
  background: rgba(240, 228, 202, 0.08);
  cursor: pointer;
  font-weight: 900;
}

.order-modal-status {
  display: grid;
  gap: 3px;
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(240, 228, 202, 0.07);
}

.order-modal-status span {
  color: var(--muted);
  font-weight: 800;
}

.order-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.order-modal-grid p,
.order-modal-block {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(240, 228, 202, 0.06);
}

.order-modal-block {
  margin-top: 10px;
}

.order-modal-grid span,
.order-modal-block span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.order-modal-grid strong,
.order-modal-block strong {
  color: var(--cream);
  line-height: 1.25;
}

.order-modal-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.public-menu-page {
  min-height: 100vh;
  background: var(--navy);
}

.public-menu-shell {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 4vw, 42px) clamp(16px, 4vw, 34px) 44px;
}

.public-menu-head {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.public-menu-logo {
  width: min(660px, 88vw);
  height: auto;
  object-fit: contain;
}

.public-menu-head h1 {
  max-width: 960px;
  margin: 2px 0 0;
  color: var(--cream);
  font-size: clamp(1.4rem, 3.2vw, 2.5rem);
  line-height: 1.05;
  text-transform: uppercase;
}

.public-menu-head p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 800;
}

.public-menu-order {
  width: min(360px, 100%);
  margin-top: 8px;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}

.public-menu-full .public-menu-section {
  display: block;
  margin-top: 34px;
}

.public-menu-tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 28px 0 20px;
  padding: 8px 0;
  background: var(--navy);
}

.public-menu-tabs button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--cream);
  background: rgba(240, 228, 202, 0.08);
  cursor: pointer;
  font-weight: 900;
}

.public-menu-tabs button.active {
  border-color: rgba(200, 169, 109, 0.9);
  background: rgba(200, 169, 109, 0.18);
}

.public-menu-section {
  display: none;
}

.public-menu-section.active {
  display: block;
}

.public-menu-title {
  display: grid;
  justify-items: center;
  margin-bottom: 12px;
  text-align: center;
}

.public-menu-title h2 {
  margin: 0;
  color: var(--cream);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
}

.public-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.public-best-seller-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.public-product-card,
.public-flavor-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(240, 228, 202, 0.07);
}

.public-product-card {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.public-product-card span,
.public-flavor-card strong {
  color: var(--cream);
  font-weight: 900;
}

.public-product-card strong {
  color: #25d366;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  line-height: 1;
}

.public-product-card small,
.public-product-card em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.public-flavor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.public-flavor-groups {
  display: grid;
  gap: 10px;
}

.public-flavor-groups > .public-flavor-letter {
  display: contents;
}

.public-flavor-groups > .public-flavor-letter > h3 {
  display: none;
}

.public-flavor-groups > .public-flavor-letter > .public-flavor-grid {
  display: contents;
}

.public-flavor-card {
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 13px 14px;
}

.public-flavor-card.best-seller {
  border-color: rgba(200, 169, 109, 0.82);
  background: rgba(200, 169, 109, 0.12);
}

.public-flavor-card span {
  width: fit-content;
  border: 1px solid rgba(200, 169, 109, 0.72);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.public-flavor-card small {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.2;
}

.public-menu-footer {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  text-align: center;
}

.public-menu-footer p {
  margin: 0;
  color: var(--muted);
  font-weight: 900;
}

.order-card.new-order {
  border-color: rgba(37, 211, 102, 0.85);
  box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.18);
  animation: orderPulse 0.85s ease-in-out infinite;
}

.order-card.arrived-order {
  border-color: rgba(200, 169, 109, 0.9);
  background: rgba(200, 169, 109, 0.12);
}

.order-card.arrived-order.new-order {
  animation: arrivedPulse 0.72s ease-in-out infinite;
}

.order-card.late-order {
  border-color: rgba(255, 91, 91, 0.92);
}

.new-badge {
  display: inline-flex;
  margin-bottom: 8px;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--navy);
  background: #25d366;
  font-size: 0.78rem;
  font-weight: 900;
  animation: badgeBlink 0.72s steps(2, start) infinite;
}

.order-timer {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  color: var(--cream);
  font-weight: 800;
}

.countdown {
  color: #25d366;
}

.countdown.late {
  color: #ff7878;
}

.order-card h3 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
}

.order-quickline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.order-quickline strong,
.order-quickline span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(240, 228, 202, 0.08);
  color: var(--cream);
  font-weight: 800;
}

.order-quickline strong {
  color: #25d366;
}

.order-destination {
  margin-bottom: 0;
  color: var(--cream);
  font-size: 1.08rem;
  font-weight: 900;
}

.order-meta,
.order-flavors {
  margin-bottom: 10px;
  color: var(--muted);
}

.order-card-local .order-flavors {
  margin-bottom: 0;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  color: var(--muted);
  font-size: 1.02rem;
}

.order-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.order-actions button {
  font-weight: 900;
}

.state-btn.prepare {
  border-color: rgba(200, 169, 109, 0.7);
}

.state-btn.ready {
  border-color: rgba(159, 240, 223, 0.75);
}

.state-btn.done {
  border-color: rgba(37, 211, 102, 0.6);
}

.order-actions .danger-btn,
.danger-btn {
  border-color: rgba(255, 91, 91, 0.75);
  color: white;
  background: rgba(255, 91, 91, 0.18);
}

.panel-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pending-counter {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid rgba(37, 211, 102, 0.45);
  border-radius: 8px;
  padding: 8px 12px;
  color: #25d366;
  font-weight: 900;
}

.pending-counter.hot {
  color: white;
  background: rgba(37, 211, 102, 0.18);
}

.session-note {
  margin: 8px 0 0;
  color: var(--muted);
}

.history-panel {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.history-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: end;
  justify-content: flex-end;
}

.history-filters label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}

.history-filters input {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--navy);
  background: var(--cream);
}

.history-summary {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--cream);
  background: rgba(240, 228, 202, 0.08);
  font-weight: 800;
}

.history-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.bucket-request-panel {
  margin-top: 22px;
}

.bucket-request-row {
  border-left: 4px solid var(--gold);
}

.bucket-request-row.status-en_preparacion {
  border-left-color: #25d366;
}

.bucket-request-row.urgency-critico {
  border-left-color: #ff6b6b;
}

.bucket-request-modal .direct-order-form {
  gap: 14px;
}

.bucket-flavor-picker {
  display: grid;
  gap: 8px;
  max-height: min(430px, 48vh);
  overflow: auto;
  padding-right: 4px;
}

.bucket-flavor-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  align-items: center;
  gap: 12px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(240, 228, 202, 0.06);
}

.bucket-flavor-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.bucket-flavor-row input {
  min-height: 38px;
  text-align: center;
}

.tv-menu-page {
  min-height: 100vh;
  color: var(--cream);
  background: var(--navy);
  overflow: hidden;
}

.tv-menu-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(18px, 3vh, 34px);
  padding: clamp(28px, 4vw, 64px);
}

.tv-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}

.tv-menu-head img {
  width: min(260px, 24vw);
  height: auto;
}

.tv-menu-head h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(3rem, 6vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: 0;
  text-align: right;
}

.tv-price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.5vw, 24px);
  align-content: center;
}

.tv-price-card,
.tv-flavor-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(240, 228, 202, 0.08);
}

.tv-price-card {
  display: grid;
  gap: 10px;
  min-height: clamp(132px, 16vh, 178px);
  align-content: center;
  padding: clamp(18px, 2.4vw, 34px);
}

.tv-price-card span {
  color: var(--cream-soft);
  font-size: clamp(1.35rem, 2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.05;
}

.tv-price-card strong {
  font-size: clamp(2.25rem, 4vw, 5rem);
  line-height: 1;
}

.tv-offer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(8px, 1vw, 14px);
}

.tv-list-price {
  color: var(--muted);
  text-decoration: line-through;
  font-size: clamp(1.05rem, 1.5vw, 1.6rem);
  font-weight: 800;
}

.tv-offer-row em {
  border-radius: 999px;
  padding: 6px 12px;
  color: #062016;
  background: #25d366;
  font-size: clamp(0.9rem, 1.25vw, 1.25rem);
  font-style: normal;
  font-weight: 900;
}

.tv-price-card small:not(.tv-list-price) {
  color: var(--gold);
  font-size: clamp(1rem, 1.4vw, 1.4rem);
}

.tv-flavor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 24px);
  align-content: center;
}

.tv-flavor-category {
  display: grid;
  gap: clamp(10px, 1.2vw, 18px);
  align-content: start;
}

.tv-flavor-category h2 {
  margin: 0;
  color: var(--gold);
  font-size: clamp(1.25rem, 2vw, 2.4rem);
  line-height: 1;
}

.tv-flavor-category-grid {
  display: grid;
  gap: clamp(10px, 1vw, 16px);
}

.tv-flavor-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: clamp(70px, 8vh, 104px);
  padding: clamp(14px, 1.8vw, 26px);
}

.tv-flavor-card strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: clamp(1.35rem, 2.4vw, 3rem);
  line-height: 1.05;
}

.tv-flavor-card span {
  flex: 0 0 auto;
  border: 1px solid rgba(200, 169, 109, 0.65);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--gold);
  font-size: clamp(0.7rem, 1vw, 1rem);
  font-weight: 800;
}

.tv-menu-footer {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.5rem);
  text-align: center;
}

.history-row {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(240, 228, 202, 0.06);
}

.history-row strong {
  color: var(--cream);
}

.history-row div,
.history-row span,
.history-row small {
  display: grid;
  gap: 4px;
}

.history-row small,
.history-row span {
  color: var(--muted);
}

.history-row.cancelled {
  opacity: 0.72;
  border-color: rgba(255, 91, 91, 0.45);
}

.login-panel {
  max-width: 760px;
}

.new-order .order-status,
.arrived-order .order-status {
  animation: statusBlink 0.72s steps(2, start) infinite;
}

@keyframes orderPulse {
  0%,
  100% {
    box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.18);
    background: rgba(37, 211, 102, 0.08);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(37, 211, 102, 0.45);
    background: rgba(37, 211, 102, 0.26);
    transform: translateY(-1px);
  }
}

@keyframes arrivedPulse {
  0%,
  100% {
    background: rgba(200, 169, 109, 0.12);
  }

  50% {
    background: rgba(200, 169, 109, 0.34);
    box-shadow: 0 0 0 8px rgba(200, 169, 109, 0.38);
  }
}

@keyframes statusBlink {
  50% {
    color: var(--navy);
    background: var(--cream);
  }
}

@keyframes badgeBlink {
  50% {
    color: white;
    background: #ff5b5b;
  }
}

.hidden {
  display: none !important;
}

@media (max-width: 920px) {
  .workspace,
  .tracking-inner {
    grid-template-columns: 1fr;
  }

  .summary-panel {
    position: static;
  }

  .service-grid,
  .product-grid,
  .flavor-grid,
  .customer-grid,
  .local-stats,
  .branch-admin-grid,
  .master-login,
  .admin-grid,
  .manual-state,
  .hour-row,
  .status-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-admin-card,
  .product-admin-fields,
  .location-assistant {
    grid-template-columns: 1fr;
  }

  .product-name-field {
    grid-column: auto;
  }

  .wide-field {
    grid-column: span 2;
  }

  .public-flavor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .launch-page {
    min-height: 100svh;
    padding: 24px 14px;
  }

  .launch-logo {
    width: min(250px, 72vw);
    margin-bottom: 18px;
  }

  .launch-page h1 {
    font-size: 2rem;
  }

  .launch-page .launch-eyebrow {
    margin-bottom: 12px;
    font-size: 1rem;
  }

  .launch-lead {
    margin-bottom: 8px;
    font-size: 1.05rem;
  }

  .launch-availability {
    max-width: 320px;
    margin-bottom: 20px;
    font-size: 0.82rem;
  }

  .launch-countdown {
    gap: 6px;
  }

  .launch-countdown span {
    min-height: 76px;
  }

  .launch-countdown strong {
    font-size: 1.55rem;
  }

  .launch-countdown small {
    font-size: 0.62rem;
  }

  .topbar,
  .topnav {
    align-items: stretch;
  }

  .topbar {
    position: static;
    flex-direction: column;
    gap: 12px;
  }

  .brand {
    justify-content: center;
  }

  .brand-logo {
    width: 58px;
    height: 58px;
  }

  .topnav a {
    flex: 1;
    text-align: center;
    padding: 8px 9px;
    min-height: 36px;
    font-size: 0.92rem;
  }

  .order-hero {
    min-height: auto;
    padding: 28px 16px 42px;
  }

  .hero-logo {
    width: min(248px, 76vw);
    margin-bottom: 14px;
  }

  .hero-statement {
    font-size: 1.42rem;
  }

  .hero-note {
    font-size: 0.95rem;
  }

  .service-grid,
  .product-grid,
  .customer-grid,
  .master-login,
  .admin-grid,
  .manual-state,
  .hour-row,
  .status-track {
    grid-template-columns: 1fr;
  }

  .product-admin-card,
  .product-admin-fields {
    grid-template-columns: 1fr;
  }

  .product-name-field {
    grid-column: auto;
  }

  .flavor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cart-panel-head,
  .cart-item {
    align-items: stretch;
    flex-direction: column;
  }

  .cart-panel-head .secondary-btn,
  .cart-item-actions,
  .cart-item-actions button {
    width: 100%;
  }

  .local-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .local-head,
  .order-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .panel-actions,
  .order-filter,
  .order-actions,
  .history-filters,
  .history-row,
  .branch-row,
  .add-flavor-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .pending-counter,
  .panel-actions .secondary-btn,
  .order-filter button,
  .order-actions button,
  .history-filters .secondary-btn {
    justify-content: center;
    text-align: center;
  }

  .wide-field {
    grid-column: span 1;
  }

  h1 {
    font-size: 2.6rem;
  }

  .master-admin-page h1 {
    white-space: normal;
    font-size: 0.85rem;
  }

  .public-menu-tabs {
    gap: 6px;
  }

  .public-menu-tabs button {
    min-height: 40px;
    padding: 8px 6px;
    font-size: 0.86rem;
  }

  .public-menu-logo {
    width: min(430px, 92vw);
  }

  .public-menu-head h1 {
    font-size: 1.45rem;
  }

  .public-product-grid,
  .public-flavor-grid {
    grid-template-columns: 1fr;
  }

  .public-menu-title {
    display: block;
  }

  .client-store-row {
    grid-template-columns: 1fr;
  }

  .service-availability-admin {
    grid-template-columns: 1fr;
  }
}

@media print {
  @page {
    size: 80mm auto;
    margin: 2mm;
  }

  html,
  body {
    width: 80mm;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  body > :not(.printable) {
    display: none !important;
  }

  .printable {
    position: static;
    display: block !important;
    box-sizing: border-box;
    width: 76mm;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 auto;
    padding: 0;
    box-shadow: none;
    border: 0;
    break-inside: avoid;
    page-break-inside: avoid;
    page-break-after: avoid;
  }

  .command-ticket {
    display: block;
    padding: 0;
    color: #000;
    background: #fff;
    font-family: Arial, sans-serif;
    font-size: 11pt;
    line-height: 1.25;
  }

  .ticket-origin {
    margin-bottom: 3mm;
    padding: 2.5mm 1mm;
    border: 2px solid #000;
    font-size: 19pt;
    font-weight: 900;
    text-align: center;
  }

  .ticket-header,
  .ticket-header span {
    display: block;
    text-align: center;
  }

  .ticket-header strong {
    font-size: 15pt;
  }

  .ticket-service {
    font-size: 22pt;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
  }

  .command-ticket p {
    margin: 1.5mm 0;
  }

  .command-ticket hr {
    margin: 3mm 0;
    border: 0;
    border-top: 1px dashed #000;
  }

  .ticket-eta {
    font-size: 14pt;
    font-weight: 900;
    text-align: center;
  }

  .ticket-prepaid {
    padding: 2mm;
    border: 2px solid #000;
    font-size: 16pt;
    font-weight: 900;
    text-align: center;
  }

  .ticket-identifiers {
    display: grid;
    gap: 1.5mm;
  }

  .ticket-identifiers p {
    display: flex;
    justify-content: space-between;
    gap: 3mm;
  }

  .ticket-identifiers span {
    font-size: 9pt;
    font-weight: 700;
  }

  .ticket-identifiers strong {
    font-size: 12pt;
    text-align: right;
  }

  .ticket-product h1 {
    margin: 0 0 2mm;
    font-size: 28pt;
    line-height: 1;
    text-align: center;
  }

  .ticket-flavors {
    display: grid;
    gap: 1.5mm;
    font-size: 12pt;
    font-weight: 900;
    line-height: 1.18;
    text-align: center;
  }

  .ticket-flavors span {
    display: block;
  }

  .ticket-section-label {
    font-size: 9pt;
    font-weight: 900;
  }

  .ticket-customer strong,
  .ticket-destination {
    font-size: 14pt;
    font-weight: 700;
  }

  .ticket-total {
    font-size: 16pt;
    font-weight: 900;
    text-align: center;
  }

  .command-ticket footer {
    display: grid;
    gap: 2mm;
    margin-top: 4mm;
    padding-top: 3mm;
    border-top: 1px dashed #000;
    font-size: 12pt;
    font-weight: 700;
    text-align: center;
  }

  .command-ticket footer span {
    font-size: 9pt;
  }
}
