:root {
  --blue-50: #f2fbff;
  --blue-100: #d9f2ff;
  --blue-200: #b8e4f6;
  --blue-500: #5aa9d6;
  --blue-700: #276b8f;
  --cream: #fffaf1;
  --butter: #f7df9b;
  --cocoa: #4e3429;
  --coffee: #7a523c;
  --ink: #26343d;
  --muted: #63747e;
  --line: #dce9ef;
  --success: #3b8a68;
  --warning: #ad6b21;
  --danger: #b34b4b;
  --shadow: 0 14px 34px rgba(39, 107, 143, 0.13);
  --brand-font: Georgia, "Times New Roman", serif;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(217, 242, 255, 0.75), rgba(255, 250, 241, 0.8) 340px),
    var(--cream);
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px clamp(14px, 4vw, 42px);
  background: rgba(255, 250, 241, 0.92);
  border-bottom: 1px solid rgba(220, 233, 239, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  color: white;
  background: var(--blue-700);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
}

.mode-switch a {
  min-width: 76px;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.mode-switch a.active {
  color: white;
  background: var(--blue-700);
}

.view {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 16px clamp(14px, 4vw, 42px) 56px;
}

#customer-view {
  font-family: var(--brand-font);
}

.hidden {
  display: none !important;
}

.admin-lock-card {
  display: grid;
  gap: 16px;
  width: min(620px, 100%);
  margin: clamp(28px, 8vw, 84px) auto;
  padding: clamp(22px, 6vw, 42px);
  border: 1px solid rgba(184, 215, 231, 0.95);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.admin-lock-card h1 {
  margin: 0;
  color: var(--cocoa);
  font-family: var(--brand-font);
  font-size: clamp(2rem, 8vw, 3.25rem);
  line-height: 1;
}

.admin-unlock-form {
  display: grid;
  gap: 14px;
}

.admin-unlock-form .primary-button,
.admin-unlock-form .ghost-button {
  width: 100%;
  min-height: 52px;
}

.hero {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border-radius: 0 0 28px 28px;
  background: var(--blue-100);
  box-shadow: var(--shadow);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 250, 241, 0.92), rgba(255, 250, 241, 0.56) 44%, rgba(255, 250, 241, 0.05));
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 460px;
  width: min(520px, 88%);
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 8vw, 64px);
}

.hero-copy p,
.admin-hero p,
.section-heading span {
  margin: 0 0 7px;
  color: var(--blue-700);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.hero h1,
.admin-hero h1 {
  margin-bottom: 24px;
  color: var(--cocoa);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 8vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

#customer-view h1,
#customer-view h2,
#customer-view h3 {
  font-family: var(--brand-font);
}

.primary-link,
.primary-button,
.ghost-button,
.small-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.primary-link,
.primary-button {
  width: fit-content;
  padding: 12px 18px;
  color: white;
  background: var(--coffee);
}

.ghost-button,
.small-button,
.icon-button {
  border: 1px solid var(--line);
  color: var(--blue-700);
  background: white;
}

.small-button {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 0.85rem;
}

.sms-link {
  text-decoration: none;
}

.fake-button {
  width: fit-content;
}

.icon-button {
  width: 38px;
  min-height: 38px;
  border-radius: 50%;
}

.section-shell {
  margin-top: 34px;
}

.section-heading {
  margin-bottom: 16px;
}

.section-heading h2 {
  margin: 0;
  color: var(--cocoa);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 5vw, 2.55rem);
  letter-spacing: 0;
}

.section-heading.compact h2 {
  font-size: 1.65rem;
}

.special-grid,
.menu-grid,
.card-grid,
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.menu-card,
.special-card,
.panel,
.stat-card,
.list-card {
  border: 1px solid rgba(220, 233, 239, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(39, 107, 143, 0.07);
}

.menu-card,
.special-card,
.list-card {
  padding: 16px;
}

.special-card {
  width: 100%;
  cursor: pointer;
  text-align: left;
}

.order-idea {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(220, 233, 239, 0.95);
  color: inherit;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.order-idea:hover,
.order-idea:focus-visible {
  border-color: var(--blue-500);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  outline: none;
}

.menu-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 260px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.menu-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(39, 107, 143, 0.12);
}

.menu-photo {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 112px;
  border-radius: 8px;
  color: var(--blue-700);
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.2), rgba(255, 255, 255, 0.55)),
    linear-gradient(135deg, var(--blue-100), rgba(246, 218, 184, 0.65));
  background-position: center;
  background-size: cover;
  font-size: 0;
}

.menu-photo[style] span {
  display: none;
}

.menu-photo:not([style]) span {
  position: relative;
  width: 62px;
  height: 62px;
  border: 2px solid rgba(39, 107, 143, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.62);
}

.coffee-placeholder:not([style]) span::before,
.coffee-placeholder:not([style]) span::after,
.bakery-placeholder:not([style]) span::before,
.bakery-placeholder:not([style]) span::after {
  content: "";
  display: block;
  position: absolute;
  background: var(--blue-700);
}

.coffee-placeholder:not([style]) span::before {
  width: 34px;
  height: 24px;
  margin: 20px 0 0 12px;
  border-radius: 0 0 12px 12px;
}

.coffee-placeholder:not([style]) span::after {
  width: 14px;
  height: 14px;
  margin: 22px 0 0 42px;
  border: 4px solid var(--blue-700);
  border-left: 0;
  border-radius: 0 12px 12px 0;
  background: transparent;
}

.bakery-placeholder:not([style]) span::before {
  width: 38px;
  height: 18px;
  margin: 15px 0 0 12px;
  border-radius: 22px 22px 10px 10px;
}

.bakery-placeholder:not([style]) span::after {
  width: 32px;
  height: 22px;
  margin: 32px 0 0 15px;
  clip-path: polygon(0 0, 100% 0, 84% 100%, 16% 100%);
}

.add-menu-button {
  margin-top: auto;
}

.menu-card h3,
.special-card h3,
.list-card h3 {
  margin: 0;
  color: var(--cocoa);
}

.menu-card p,
.special-card p,
.list-card p,
.muted {
  color: var(--muted);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--blue-700);
  background: var(--blue-50);
  font-size: 0.78rem;
  font-weight: 800;
}

.price {
  color: var(--coffee);
  font-size: 1.2rem;
  font-weight: 900;
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.panel {
  padding: clamp(16px, 4vw, 24px);
}

form {
  display: grid;
  gap: 14px;
}

label,
fieldset {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--cocoa);
  font-size: 0.9rem;
  font-weight: 800;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 8px;
  color: var(--cocoa);
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: white;
}

textarea {
  resize: vertical;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 9px;
}

.check-tile {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
}

.check-tile input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--blue-700);
}

.single-check {
  align-items: start;
  grid-template-columns: 18px 1fr;
}

.payment-note p {
  margin: 4px 0 0;
}

.payment-note,
.confirmation {
  border-radius: 8px;
  padding: 12px;
  color: var(--blue-700);
  background: var(--blue-50);
}

.order-summary {
  position: sticky;
  top: 82px;
}

.order-summary h2 {
  margin-bottom: 16px;
  color: var(--cocoa);
  font-family: Georgia, "Times New Roman", serif;
}

.summary-line,
.total-line,
.cart-line,
.data-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.discount-line strong {
  color: #266443;
}

.summary-line span,
.cart-line div,
.data-row span {
  min-width: 0;
}

.cart-line small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.cart-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
}

.submitted-summary {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 2px solid var(--blue-100);
}

.submitted-summary h3 {
  margin-bottom: 8px;
}

.discount-list,
.discount-admin-form,
.discount-admin-row,
.mini-actions {
  display: grid;
  gap: 10px;
}

.discount-admin-row {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mini-actions {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.account-grid,
.account-dashboard,
.account-stats {
  display: grid;
  gap: 14px;
}

.account-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.account-shell {
  padding-top: clamp(18px, 4vw, 36px);
  padding-bottom: 0;
}

.compact-account-heading {
  margin-bottom: 10px;
}

.account-drawer summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.account-drawer summary::-webkit-details-marker {
  display: none;
}

.account-drawer summary span {
  color: var(--muted);
  font-size: 0.95rem;
}

.account-drawer[open] summary {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.account-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.account-dashboard {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.account-stats {
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  margin: 12px 0 18px;
}

.account-stats strong {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--blue-700);
  background: var(--blue-50);
}

.account-admin-card {
  display: grid;
  gap: 12px;
}

.loyalty-meter {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--blue-100);
}

.loyalty-meter div {
  height: 100%;
  border-radius: inherit;
  background: var(--coffee);
}

.total-line {
  border-bottom: 0;
  color: var(--cocoa);
  font-size: 1.25rem;
  font-weight: 900;
}

.admin-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(22px, 6vw, 42px);
  border-radius: 0 0 28px 28px;
  background:
    linear-gradient(120deg, rgba(217, 242, 255, 0.95), rgba(255, 250, 241, 0.72)),
    url("assets/coffee-bakery-hero.png") center/cover;
  box-shadow: var(--shadow);
}

.admin-hero h1 {
  max-width: 800px;
  margin-bottom: 0;
  font-size: clamp(1.9rem, 5vw, 3.2rem);
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin: 22px 0;
  padding: 10px;
  overflow-x: auto;
  border: 1px solid #bad9e8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 22px rgba(39, 107, 143, 0.08);
}

.mobile-checkout-bar {
  display: none;
}

.admin-tabs button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  color: var(--blue-700);
  background: var(--blue-50);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
  white-space: nowrap;
}

.admin-tabs button.active {
  color: white;
  background: var(--blue-700);
}

.admin-tab {
  display: grid;
  gap: 26px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.68fr) minmax(0, 1.32fr);
  gap: 22px;
  align-items: start;
}

#admin-view {
  font-size: 1.08rem;
}

.admin-card,
#admin-view .panel,
#admin-view .list-card,
.admin-record-card {
  border: 1px solid #b8d7e7;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 16px 32px rgba(39, 107, 143, 0.11);
  padding: clamp(18px, 3vw, 28px);
}

.admin-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr));
  gap: 22px;
  align-items: start;
}

.admin-filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 14px;
  padding: clamp(16px, 3vw, 22px);
  border: 1px solid #b8d7e7;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 26px rgba(39, 107, 143, 0.09);
}

.admin-record-card,
.admin-editor-card {
  display: grid;
  gap: 18px;
}

.admin-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--blue-100);
}

.admin-card-top h3 {
  margin: 8px 0 4px;
  color: var(--cocoa);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.admin-card-top > strong {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--blue-700);
  background: var(--blue-50);
  font-size: 1.2rem;
}

.admin-card-body {
  display: grid;
  grid-template-columns: minmax(170px, 0.35fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-photo {
  min-height: 190px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 16px;
  margin-bottom: 0;
}

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

#admin-view .section-heading {
  padding-bottom: 12px;
  border-bottom: 2px solid var(--blue-100);
}

#admin-view label,
#admin-view fieldset {
  color: #22323b;
  font-size: 1.04rem;
  font-weight: 850;
}

#admin-view input,
#admin-view select,
#admin-view textarea {
  min-height: 54px;
  border-color: #a9cfdf;
  background: #fbfeff;
  font-size: 1.04rem;
}

#admin-view textarea {
  min-width: 0;
  line-height: 1.45;
  resize: vertical;
}

#admin-view .primary-button,
#admin-view .ghost-button,
#admin-view .small-button {
  min-height: 50px;
  border: 2px solid var(--blue-700);
  color: white;
  background: var(--blue-700);
  box-shadow: 0 8px 16px rgba(39, 107, 143, 0.18);
  font-size: 1rem;
  font-weight: 900;
}

#admin-view .ghost-button {
  color: var(--blue-700);
  background: white;
}

.admin-save {
  margin-top: 8px;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.admin-metrics span,
.soft-box {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfeff;
}

.admin-metrics span {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.admin-metrics strong {
  color: var(--cocoa);
  font-size: 1.12rem;
}

.admin-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-top: 4px;
}

.admin-card-actions > * {
  flex: 1 1 150px;
}

.danger-button {
  border-color: var(--danger) !important;
  background: var(--danger) !important;
}

.danger-zone {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 16px;
  border: 1px solid rgba(179, 75, 75, 0.35);
  border-radius: 8px;
  background: rgba(255, 246, 246, 0.95);
}

.danger-zone h3,
.danger-zone p {
  margin: 0;
}

.security-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(173, 107, 33, 0.3);
  border-radius: 8px;
  color: #6d4418;
  background: rgba(255, 246, 224, 0.95);
  font-weight: 700;
  line-height: 1.45;
}

.sync-note {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
  padding: 14px;
  border: 1px solid rgba(90, 169, 214, 0.35);
  border-radius: 8px;
  color: var(--blue-700);
  background: rgba(242, 251, 255, 0.95);
}

.sync-note p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.import-button {
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.import-button input {
  display: none;
}

.last-saved-status {
  align-self: center;
  color: var(--muted);
  font-weight: 800;
}

.save-toast {
  position: fixed;
  right: 18px;
  bottom: 86px;
  z-index: 40;
  padding: 12px 16px;
  border: 1px solid rgba(65, 135, 89, 0.35);
  border-radius: 8px;
  color: #245a37;
  background: rgba(247, 255, 249, 0.98);
  box-shadow: 0 14px 30px rgba(39, 107, 143, 0.16);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.save-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.admin-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 14px;
}

.admin-split h4,
.soft-box h4 {
  margin: 0 0 8px;
  color: var(--cocoa);
}

.soft-box p {
  margin: 6px 0;
}

.stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
}

.stat-card {
  padding: 16px;
}

.stat-card span,
.stat-card small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.stat-card strong {
  display: block;
  margin: 7px 0;
  color: var(--cocoa);
  font-size: 1.65rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 680px;
  background: white;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: #194e6a;
  background: var(--blue-50);
  font-size: 0.88rem;
  text-transform: uppercase;
}

tr:nth-child(even) td {
  background: #fbfdff;
}

.status-select {
  min-width: 128px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

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

.recipe-edit-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 14px;
  margin: 0;
}

.ingredient-list {
  display: grid;
  gap: 10px;
}

.ingredient-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.alert {
  color: var(--danger);
  font-weight: 900;
}

.ok {
  color: var(--success);
  font-weight: 900;
}

.warn {
  color: var(--warning);
  font-weight: 900;
}

@media (max-width: 780px) {
  body {
    padding-bottom: 76px;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .mode-switch a {
    min-width: 0;
  }

  .view {
    padding-inline: 12px;
  }

  .hero,
  .hero-copy {
    min-height: 430px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(255, 250, 241, 0.94), rgba(255, 250, 241, 0.62), rgba(255, 250, 241, 0.15));
  }

  .hero-copy {
    justify-content: flex-start;
    padding: 26px 20px;
  }

  .order-layout,
  .admin-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .admin-card-list,
  .admin-card-body,
  .admin-split,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-card-top {
    flex-direction: column;
  }

  .admin-card-actions > * {
    flex-basis: 100%;
  }

  .order-summary {
    position: static;
  }

  .mobile-checkout-bar {
    position: fixed;
    right: 14px;
    bottom: 14px;
    left: 14px;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    padding: 12px 16px;
    border: 1px solid rgba(186, 217, 232, 0.95);
    border-radius: 8px;
    color: white;
    background: var(--coffee);
    box-shadow: 0 16px 34px rgba(61, 44, 35, 0.22);
    text-decoration: none;
  }

  .mobile-checkout-bar strong {
    white-space: nowrap;
  }

  .admin-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-tabs {
    border-radius: 8px;
  }
}
