:root {
  --bg: #f6f8f5;
  --surface: #ffffff;
  --surface-muted: #f1f4ef;
  --surface-tint: #e5f3ee;
  --ink: #1d2622;
  --muted: #68736d;
  --line: #dce4dd;
  --brand: #a25d47;
  --brand-dark: #7f4232;
  --brand-soft: #f4e6e1;
  --brand-tint: #fbf3f0;
  --navy: #121a31;
  --navy-2: #1e2a4a;
  --navy-soft: #e8ecf5;
  --navy-line: #cbd3e6;
  --forest: #1f6f5b;
  --success: #1f6f5b;
  --success-soft: #e5f3ee;
  --blue: #285f8f;
  --gold: #b78b23;
  --warning: #b78b23;
  --warning-soft: #f7eed6;
  --danger: #bd2d2d;
  --danger-soft: #fce8e6;
  --shadow: 0 18px 48px rgba(28, 48, 41, 0.1);
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --expand-control-size: 32px;
  --expand-control-bg: #f7faf8;
  --expand-control-color: var(--brand-dark);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
}

body {
  background:
    linear-gradient(180deg, rgba(237, 246, 244, 0.9), rgba(245, 247, 242, 0) 320px),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.has-lightbox {
  overflow: hidden;
}

a {
  color: inherit;
}

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

button,
input,
select,
textarea {
  min-width: 0;
  font: inherit;
}

button {
  cursor: pointer;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 10px 11px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(31, 111, 91, 0.14);
}

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

h1 {
  margin-bottom: 4px;
  font-size: 26px;
  line-height: 1.15;
}

h2 {
  margin-bottom: 12px;
  font-size: 18px;
  line-height: 1.25;
}

h3 {
  margin-bottom: 6px;
  font-size: 16px;
  line-height: 1.25;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

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

th {
  background: #f0f4f2;
  color: #32453e;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

td input,
td select,
td textarea {
  min-width: 132px;
  padding: 8px 9px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(220, 228, 221, 0.9);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  width: min(1180px, calc(100% - 28px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

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

.brand img {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
}

.brand span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.brand strong {
  overflow-wrap: anywhere;
  font-size: 18px;
  line-height: 1.15;
}

.brand small,
.muted {
  color: var(--muted);
}

.brand small,
.muted,
.eyebrow {
  font-size: 13px;
}

.container,
.page-grid {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.container {
  padding: 24px 0;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 22px 0 calc(108px + env(safe-area-inset-bottom, 0px));
}

.stack,
.form-stack {
  display: grid;
  gap: 14px;
  align-content: start;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(20, 37, 31, 0.04);
  padding: 16px;
}

.panel-title,
.section-head,
.page-head,
.toolbar {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-title,
.section-head,
.page-head {
  justify-content: space-between;
}

.page-head {
  margin-bottom: 16px;
}

.page-head > div,
.section-head > div,
.panel-title > div {
  min-width: 0;
}

.panel-title h1,
.section-head h2,
.page-head h1 {
  margin-bottom: 0;
}

.toolbar {
  flex-wrap: wrap;
}

.topbar .toolbar {
  margin-left: auto;
  justify-content: flex-end;
}

.toolbar input,
.toolbar select {
  width: auto;
  min-width: 0;
}

.locale-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.locale-field select {
  min-height: 38px;
  padding: 7px 28px 7px 9px;
}

.ui-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: currentColor;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ui-icon path,
.ui-icon circle,
.ui-icon rect {
  vector-effect: non-scaling-stroke;
}

.heading-with-icon {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.heading-with-icon .ui-icon {
  color: var(--brand-dark);
}

.event-list,
.menu-list,
.card-list {
  display: grid;
  gap: 10px;
}

.event-selection-panel,
.reservation-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 252, 250, 0.96)),
    var(--surface);
}

.event-selection-panel .panel-title {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.event-selection-panel .panel-title h1 {
  white-space: nowrap;
  font-size: 24px;
}

.event-selection-panel .panel-title input {
  width: min(100%, 220px);
  justify-self: end;
}

.event-card {
  width: 100%;
  min-height: 92px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 12px;
  text-align: left;
  box-shadow: 0 1px 0 rgba(20, 37, 31, 0.04);
}

.event-card-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(31, 111, 91, 0.18);
  border-radius: 50%;
  background: #f7faf8;
  color: var(--forest);
}

.event-card-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.event-card-copy > span,
.event-card-copy small {
  min-width: 0;
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
}

.event-card-copy .ui-icon {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
  margin-top: 2px;
  color: var(--forest);
}

.event-card strong,
.event-card-copy > span,
.event-card small {
  overflow-wrap: anywhere;
}

.event-card small {
  color: var(--muted);
}

.event-card:disabled {
  cursor: not-allowed;
  background: #eef0ec;
  color: #8a938d;
}

.event-card.active,
tr.is-selected td {
  border-color: rgba(31, 111, 91, 0.38);
  background: var(--surface-tint);
}

.event-card.active .event-card-icon {
  border-color: rgba(31, 111, 91, 0.28);
  background: #fff;
  color: var(--brand-dark);
}

.form-stack label,
.field {
  display: grid;
  gap: 6px;
}

.form-stack label > span,
.field > span {
  color: #385046;
  font-size: 13px;
  font-weight: 750;
}

.form-field-with-icon > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.form-field-with-icon > span .ui-icon {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
  color: var(--forest);
}

.field-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 46px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--forest);
  padding: 0;
  transform: translateY(-50%);
}

.password-toggle:hover {
  background: rgba(31, 111, 91, 0.08);
}

.password-toggle:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(31, 111, 91, 0.16);
}

.password-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.password-toggle .password-eye-off,
.password-toggle.is-visible .password-eye {
  display: none;
}

.password-toggle.is-visible .password-eye-off {
  display: block;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
}

.slot-chip {
  min-height: 58px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 2px 7px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 9px;
  line-height: 1.2;
}

.slot-chip .ui-icon {
  grid-row: span 2;
  align-self: center;
  color: var(--forest);
}

.slot-chip small {
  color: var(--muted);
}

.slot-chip.active {
  border-color: var(--forest);
  background: var(--surface-tint);
}

.slot-chip:disabled {
  cursor: not-allowed;
  background: #eef0ec;
  color: #8a938d;
}

.event-hero {
  display: grid;
  gap: 8px;
  border-color: rgba(31, 111, 91, 0.18);
  background:
    linear-gradient(135deg, rgba(229, 243, 238, 0.68), rgba(251, 243, 240, 0.42)),
    #fbfcfa;
  padding-block: 14px;
}

.event-hero h2,
.event-hero p {
  margin-bottom: 0;
}

.event-hero .muted {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow-wrap: anywhere;
}

.event-hero .muted > span,
.event-map-link {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(31, 111, 91, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  padding: 5px 9px;
  line-height: 1.25;
}

.event-hero .muted .ui-icon,
.event-map-link .ui-icon {
  width: 15px;
  height: 15px;
  flex-basis: 15px;
  color: var(--forest);
}

.event-map-link {
  color: var(--forest);
  font-weight: 850;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.promotion-panel {
  display: grid;
  gap: 10px;
  border-color: rgba(162, 93, 71, 0.18);
  background: var(--brand-tint);
  padding-block: 14px;
}

.promotion-panel h2 {
  margin: 0;
  font-size: 18px;
}

.promotion-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 8px;
}

.promotion-chip {
  min-width: 0;
  display: grid;
  gap: 2px;
  border: 1px solid rgba(162, 93, 71, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  padding: 10px;
}

.promotion-chip strong,
.promotion-chip span {
  overflow-wrap: anywhere;
}

.promotion-chip span {
  color: var(--muted);
  font-size: 13px;
}

.eyebrow {
  margin-bottom: 5px;
  color: var(--brand-dark);
  font-weight: 850;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 238px), 1fr));
  gap: 12px;
}

.product-card,
.mini-card,
.metric-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.product-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  padding: 14px;
}

.product-main {
  min-width: 0;
  display: flex;
  gap: 11px;
  align-items: flex-start;
}

.product-main > div:last-child {
  min-width: 0;
}

.product-main h3,
.product-main p {
  overflow-wrap: anywhere;
}

.product-main p {
  display: -webkit-box;
  max-height: 4.5em;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-main strong {
  color: var(--brand-dark);
}

.product-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f4efe2;
  font-size: 19px;
  line-height: 1;
}

.product-photo {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f4f7f5;
  object-fit: cover;
}

.product-photo[data-lightbox-image],
.product-image-admin img[data-lightbox-image] {
  cursor: zoom-in;
}

.product-photo[data-lightbox-image]:focus-visible,
.product-image-admin img[data-lightbox-image]:focus-visible {
  outline: 3px solid rgba(31, 111, 91, 0.26);
  outline-offset: 3px;
}

.tag-row,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span,
.chip-row span,
.status-pill {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 8px;
  background: #eef3f0;
  color: #30483f;
  font-size: 12px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.status-pill.warning {
  background: var(--warning-soft);
  color: #755500;
}

.option-box {
  min-width: 0;
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
}

.option-box legend {
  color: var(--forest);
  font-size: 13px;
  font-weight: 800;
}

.option-box label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
}

.option-box input,
.check-list input {
  width: auto;
}

.product-action-row {
  align-self: end;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.product-action-row small {
  color: var(--muted);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.add-cart-btn {
  min-height: 40px;
}

.cart-box {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(31, 111, 91, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(229, 243, 238, 0.48), rgba(251, 252, 250, 0.86)),
    #fbfcfa;
  padding: 12px;
}

.turnstile-field {
  min-width: 0;
  display: block;
}

.turnstile-field iframe {
  max-width: 100%;
}

.cart-head,
.cart-item {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.cart-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.cart-head h2 {
  margin-bottom: 0;
}

.cart-head small {
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 3px 8px;
  font-weight: 800;
}

.cart-list {
  display: grid;
  gap: 8px;
}

.cart-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.cart-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.cart-item-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.cart-item-main strong,
.cart-item-main small {
  overflow-wrap: anywhere;
}

.cart-item-main small {
  color: var(--muted);
}

.cart-stepper {
  grid-column: 1 / 2;
  width: min(100%, 154px);
  grid-template-columns: 34px minmax(0, 1fr) 34px;
}

.cart-stepper button,
.cart-stepper input {
  height: 34px;
}

.cart-item .link-btn {
  justify-self: end;
}

.cart-review-dialog {
  width: min(560px, calc(100% - 28px));
  max-height: min(82vh, 760px);
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  padding: 0;
}

.cart-review-dialog::backdrop {
  background: rgba(16, 24, 21, 0.58);
  backdrop-filter: blur(4px);
}

.cart-review-panel {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 16px;
}

.cart-review-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cart-review-head h2,
.cart-review-head p {
  margin-bottom: 0;
}

.cart-review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.cart-review-meta span {
  max-width: 100%;
  border-radius: 999px;
  background: #eef3f0;
  color: #30483f;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.cart-review-list {
  display: grid;
  gap: 0;
  max-height: min(42vh, 360px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cart-review-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 12px;
}

.cart-review-item:last-child {
  border-bottom: 0;
}

.cart-review-item div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.cart-review-item strong,
.cart-review-item small {
  overflow-wrap: anywhere;
}

.cart-review-item small {
  color: var(--muted);
}

.cart-review-total {
  display: grid;
  gap: 7px;
}

.cart-review-total span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-weight: 800;
}

.cart-review-total strong {
  color: var(--ink);
}

.cart-review-grand-total {
  border-top: 1px solid var(--line);
  padding-top: 9px;
  color: var(--ink) !important;
  font-size: 18px;
}

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

.stepper {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  gap: 7px;
}

.stepper button {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--forest);
  font-weight: 900;
}

.stepper input {
  height: 38px;
  text-align: center;
}

.checkout-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(90deg, rgba(18, 26, 49, 0.98), rgba(29, 38, 34, 0.98));
  color: #fff;
  padding: 12px max(14px, calc((100vw - 1180px) / 2)) calc(12px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -14px 34px rgba(18, 26, 49, 0.16);
}

.checkout-summary {
  min-width: 0;
  display: inline-grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.checkout-summary > .ui-icon {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #f4e6e1;
  padding: 10px;
}

.checkout-summary > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.checkout-bar small {
  color: #d9e7df;
  overflow-wrap: anywhere;
}

.checkout-bar strong {
  font-size: 24px;
}

.primary-btn-with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.primary-btn-with-icon .ui-icon {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}

.btn,
.primary-btn,
.icon-link,
.icon-btn,
.link-btn {
  border-radius: var(--radius);
  font-weight: 850;
}

.btn,
.primary-btn,
.icon-link,
.icon-btn {
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.btn,
.primary-btn,
.icon-link {
  border: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px 14px;
  text-decoration: none;
}

.primary-btn {
  min-width: 132px;
  min-height: 46px;
}

.btn.ghost,
.icon-link {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--forest);
}

.btn.danger {
  border: 1px solid rgba(189, 45, 45, 0.22);
  background: #fff;
  color: var(--danger);
}

@media (hover: hover) {
  .btn:not(.ghost):not(.danger):not(:disabled):hover,
  .primary-btn:not(:disabled):hover {
    border-color: var(--brand-dark);
    background: var(--brand-dark);
    color: #fff;
    box-shadow: 0 8px 18px rgba(127, 66, 50, 0.18);
    transform: translateY(-1px);
  }

  .btn.ghost:not(:disabled):hover,
  .icon-link:hover,
  .icon-btn:not(:disabled):hover {
    border-color: rgba(31, 111, 91, 0.34);
    background: var(--surface-tint);
    color: var(--success);
    box-shadow: 0 8px 18px rgba(31, 111, 91, 0.12);
    transform: translateY(-1px);
  }

  .btn.danger:not(:disabled):hover {
    border-color: rgba(189, 45, 45, 0.38);
    background: var(--danger-soft);
    color: var(--danger);
    box-shadow: 0 8px 18px rgba(189, 45, 45, 0.12);
    transform: translateY(-1px);
  }
}

.btn:not(:disabled):active,
.primary-btn:not(:disabled):active,
.icon-link:active,
.icon-btn:not(:disabled):active {
  box-shadow: none;
  transform: translateY(0);
}

.btn:focus-visible,
.primary-btn:focus-visible,
.icon-link:focus-visible,
.icon-btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(31, 111, 91, 0.16);
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--forest);
  padding: 0;
  font-size: 24px;
  line-height: 1;
}

.btn:disabled,
.primary-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
  transform: none;
}

.btn.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn.is-loading:disabled {
  opacity: 0.86;
}

.btn.is-loading::before {
  content: "";
  width: 1em;
  height: 1em;
  flex: 0 0 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 760ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}

.link-btn {
  border: 0;
  background: transparent;
  color: var(--forest);
  padding: 0;
  text-align: left;
  text-decoration: underline;
  transition:
    color 160ms ease,
    text-decoration-color 160ms ease;
}

.link-btn:hover,
.link-btn:focus-visible {
  outline: 0;
  color: var(--brand-dark);
  text-decoration-color: currentColor;
}

.notice {
  margin: 0;
  border-radius: var(--radius);
  background: var(--surface-tint);
  color: #17483d;
  padding: 10px 12px;
}

.notice.danger {
  background: #fff0ed;
  color: var(--danger);
}

.notice.warning {
  background: var(--warning-soft);
  color: #755500;
}

.admin-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: min(360px, calc(100vw - 36px));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hidden,
[hidden] {
  display: none !important;
}

.admin-body.is-auth-loading .admin-container {
  visibility: hidden;
}

.admin-body {
  min-height: 100vh;
  background: #f6f8f5;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.admin-body .topbar-inner {
  width: min(1440px, calc(100% - 48px));
  min-height: 64px;
}

.admin-body .brand img {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
}

.admin-body .brand strong {
  font-size: 17px;
}

.admin-body .brand small {
  font-size: 12px;
}

.admin-body.admin-app-active .topbar .brand {
  display: none !important;
}

.admin-body .btn,
.admin-body .icon-link {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
}

.admin-body .topbar-action {
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  display: inline-grid;
  place-items: center;
  padding: 0;
}

.admin-body .topbar-action .nav-icon {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
}

.admin-body .btn:not(.ghost):not(.danger) {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.admin-body .btn.ghost,
.admin-body .icon-link {
  background: #fff;
  color: var(--forest);
}

.admin-body .btn.danger {
  border-color: rgba(189, 45, 45, 0.22);
  background: #fff;
  color: var(--danger);
}

.admin-container {
  width: min(1440px, calc(100% - 48px));
  padding-top: 28px;
}

.login-panel {
  width: min(420px, 100%);
  margin: 66px auto;
}

.admin-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.admin-rail,
.admin-main,
.work-grid > *,
.admin-shell > * {
  min-width: 0;
}

.admin-rail {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 16px;
  max-height: calc(100vh - 108px);
  overflow: auto;
  padding-right: 2px;
  scrollbar-width: none;
}

.admin-rail-brand {
  display: none;
}

.admin-rail::-webkit-scrollbar {
  display: none;
}

.nav-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 10px;
}

.nav-label {
  margin: 0 0 6px;
  padding: 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-tabs {
  display: grid;
  gap: 6px;
}

.admin-tabs a {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: #40534c;
  padding: 9px 11px;
  text-align: left;
  text-decoration: none;
  font-weight: 800;
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: currentColor;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-icon path,
.nav-icon circle {
  vector-effect: non-scaling-stroke;
}

.admin-tabs a span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-tabs a.active {
  border-color: rgba(31, 111, 91, 0.28);
  background: var(--surface-tint);
  color: var(--forest);
  box-shadow: 0 1px 0 rgba(20, 37, 31, 0.04);
}

.admin-menu-toggle {
  display: none;
  gap: 8px;
}

.admin-main {
  display: grid;
  gap: 18px;
}

.admin-main .page-head {
  min-height: 56px;
  margin-bottom: 18px;
  align-items: flex-start;
}

.admin-main .page-head h1 {
  font-size: 28px;
}

.filter-bar {
  justify-content: flex-end;
}

.filter-bar input {
  width: 168px;
}

.stats-range-control {
  position: relative;
  width: min(100%, 520px);
  display: grid;
  gap: 10px;
}

.stats-range-control .btn {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--forest);
  padding: 0 14px;
}

.stats-range-toggle {
  width: 100%;
  min-height: 46px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #9aa3af;
  padding: 0 14px;
  text-align: left;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.stats-range-toggle:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(31, 111, 91, 0.16);
}

.stats-range-toggle .nav-icon {
  color: #b4bdc8;
}

.stats-range-toggle span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-range-separator {
  color: #6b7280;
  font-weight: 800;
}

.stats-range-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 26;
  width: min(620px, calc(100vw - 24px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(20, 37, 31, 0.16);
  padding: 14px 10px 12px;
}

@media (min-width: 768px) {
  .view[data-panel="dashboard"] .page-head {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(520px, 720px);
    align-items: start;
    gap: 24px;
  }

  .view[data-panel="dashboard"] .stats-range-control {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) 112px;
    align-items: stretch;
  }

  .view[data-panel="dashboard"] .stats-range-control .btn {
    width: auto;
  }
}

.stats-range-shortcuts {
  display: flex;
  gap: 18px;
  padding: 0 4px 14px;
}

.stats-range-shortcuts button,
.stats-calendar-head button,
.stats-calendar-day {
  border: 0;
  background: transparent;
  color: #5f6874;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.stats-range-shortcuts button {
  font-size: 13px;
  font-weight: 700;
}

.stats-calendar-months {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(204px, 1fr));
  gap: 18px;
}

.stats-calendar-month {
  display: grid;
  gap: 10px;
}

.stats-calendar-head {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  align-items: center;
}

.stats-calendar-head h3 {
  margin: 0;
  color: #6b7280;
  font-size: 16px;
  letter-spacing: 3px;
  text-align: center;
}

.stats-calendar-head button,
.stats-calendar-nav-placeholder {
  min-height: 32px;
}

.stats-calendar-head button {
  color: #aab2bd;
  font-size: 20px;
}

.stats-calendar-weekdays,
.stats-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.stats-calendar-weekdays {
  border-bottom: 1px solid #e7ebef;
  color: #6b7280;
  font-size: 13px;
  text-align: center;
  padding-bottom: 9px;
}

.stats-calendar-grid {
  row-gap: 2px;
  padding-top: 5px;
}

.stats-calendar-day {
  min-height: 38px;
  border-radius: 8px;
  color: #5f6874;
  font-size: 13px;
}

.stats-calendar-day.is-outside {
  color: #bcc4cf;
}

.stats-calendar-day.is-today {
  color: #ef4f37;
  font-weight: 900;
}

.stats-calendar-day.is-in-range {
  background: var(--success-soft);
  color: var(--success);
  font-weight: 800;
}

.stats-calendar-day.is-preview-edge {
  background: var(--surface-tint);
  color: var(--success);
  font-weight: 900;
  box-shadow: inset 0 0 0 2px rgba(31, 111, 91, 0.32);
}

.stats-calendar-day.is-start,
.stats-calendar-day.is-end {
  background: var(--forest);
  color: #fff;
  font-weight: 900;
}

.section-head {
  min-height: 40px;
  margin-bottom: 12px;
}

.section-head input {
  width: 168px;
}

.venue-list-head {
  align-items: center;
}

.list-filters {
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}

.search-field {
  min-width: min(100%, 280px);
  margin-left: auto;
}

.list-filters .search-field {
  min-width: min(100%, 260px);
  margin-left: 0;
}

.list-filters .btn {
  flex: 0 0 auto;
  min-height: 44px;
  white-space: nowrap;
}

.page-head > .toolbar .search-field {
  flex: 1 1 260px;
  margin-left: 0;
}

.order-page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.order-filter-bar {
  grid-column: 1 / -1;
  width: 100%;
  display: grid;
  grid-template-columns:
    minmax(148px, 180px)
    repeat(4, minmax(132px, 0.75fr))
    minmax(220px, 1.3fr)
    auto;
  gap: 10px;
}

.order-filter-bar input,
.order-filter-bar .search-field,
.order-filter-bar .filter-field,
.order-filter-bar button {
  width: 100%;
  margin-left: 0;
}

.order-filter-bar button {
  justify-self: end;
  width: auto;
  min-width: 92px;
  white-space: nowrap;
}

.search-field input,
.search-field select,
.filter-field select {
  width: 100%;
}

.search-field input[type="search"] {
  padding-left: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2368736d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px center;
  background-size: 18px 18px;
}

.calendar-controls {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.calendar-month-title {
  min-width: 132px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.calendar-month-picker {
  width: 150px;
}

.view {
  display: none;
}

.view.is-visible {
  display: block;
}

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

.payment-tool-fields {
  align-items: start;
}

.payment-tool-fields.is-single {
  grid-template-columns: 1fr;
}

.payment-tool-picker {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 0;
}

.payment-tool-picker legend {
  padding: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

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

.payment-tool-option {
  min-width: 0;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 10px 12px;
}

.payment-tool-option:has(input:checked) {
  border-color: #9fcfc2;
  background: var(--surface-tint);
  box-shadow: inset 0 0 0 1px rgba(31, 111, 91, 0.08);
}

.payment-tool-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--success);
}

.payment-tool-option span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.payment-tool-option strong,
.payment-tool-option small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-tool-option strong {
  color: var(--ink);
  font-size: 14px;
}

.payment-tool-option small {
  color: var(--muted);
  font-size: 12px;
}

.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 14px;
  align-items: start;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 16px;
  align-items: start;
}

.settings-section-title,
.settings-field-label {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.settings-section-title {
  margin-bottom: 0;
}

.settings-section-title .nav-icon {
  color: var(--brand-dark);
}

.settings-field-label .nav-icon {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
  color: var(--forest);
}

.btn.has-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.store-logo-preview {
  gap: 4px;
  align-content: center;
}

.store-logo-preview .nav-icon {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 16px;
  align-items: start;
}

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}

.calendar-layout > .panel:first-child {
  overflow: auto;
  padding: 12px;
}

.calendar-side {
  min-width: 0;
  display: grid;
  gap: 14px;
  align-items: start;
}

.event-create-panel {
  border-color: rgba(31, 111, 91, 0.28);
  background: #fbfdfc;
}

.calendar-board {
  min-width: 760px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.calendar-weekday {
  min-height: 34px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f0f4f2;
  color: #385046;
  font-size: 12px;
  font-weight: 850;
}

.calendar-weekday:nth-child(7n) {
  border-right: 0;
}

.calendar-day {
  min-height: 104px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 8px;
  cursor: pointer;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.calendar-day:hover {
  background: #fbfdfc;
  box-shadow: inset 0 0 0 1px rgba(31, 111, 91, 0.18);
}

.calendar-day:nth-child(7n) {
  border-right: 0;
}

.calendar-day:nth-last-child(-n + 7) {
  border-bottom: 0;
}

.calendar-day.is-outside {
  background: #f7f9f6;
  color: #8a958f;
  cursor: default;
}

.calendar-day.is-outside:hover {
  box-shadow: none;
}

.calendar-day.is-today {
  box-shadow: inset 0 0 0 2px rgba(31, 111, 91, 0.3);
}

.calendar-date {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 7px;
}

.calendar-date span {
  font-weight: 850;
}

.calendar-date strong {
  border-radius: 999px;
  background: var(--surface-tint);
  color: var(--forest);
  padding: 2px 7px;
  font-size: 11px;
}

.calendar-events {
  display: grid;
  gap: 6px;
}

.calendar-event {
  position: relative;
  width: 100%;
  display: grid;
  gap: 2px;
  border: 1px solid rgba(31, 111, 91, 0.2);
  border-radius: var(--radius);
  background: #f6fbf9;
  color: var(--ink);
  padding: 6px;
  text-align: left;
}

.calendar-event span,
.calendar-event small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event span {
  font-size: 12px;
  font-weight: 850;
}

.calendar-event small {
  color: var(--muted);
  font-size: 11px;
}

.calendar-event.is-active {
  border-color: var(--brand);
  background: #fff6f3;
  color: var(--brand-dark);
}

.calendar-editor-body {
  display: grid;
  gap: 12px;
}

.work-grid.two {
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
}

.option-management-grid,
.promotion-management-grid,
.product-management-grid,
.template-management-grid,
.category-management-grid,
.venue-management-grid {
  grid-template-columns: minmax(0, 1fr);
}

.option-list-panel,
.option-create-panel,
.promotion-list-panel,
.promotion-create-panel,
.pickup-list-panel,
.pickup-create-panel,
.payment-list-panel,
.payment-create-panel,
.product-list-panel,
.product-create-panel,
.template-list-panel,
.template-create-panel,
.category-list-panel,
.category-create-panel,
.venue-list-panel,
.venue-create-panel {
  grid-column: 1 / -1;
}

.option-create-panel,
.promotion-create-panel,
.pickup-create-panel,
.payment-create-panel,
.product-create-panel,
.template-create-panel,
.category-create-panel,
.venue-create-panel {
  background: #fbfdfc;
}

.option-create-panel summary,
.promotion-create-panel summary,
.pickup-create-panel summary,
.payment-create-panel summary,
.product-create-panel summary,
.template-create-panel summary,
.category-create-panel summary,
.venue-create-panel summary {
  min-height: 38px;
  display: flex;
  align-items: center;
  color: var(--ink);
  cursor: pointer;
  font-size: 18px;
  font-weight: 850;
  list-style: none;
}

.option-create-panel summary::-webkit-details-marker,
.promotion-create-panel summary::-webkit-details-marker,
.pickup-create-panel summary::-webkit-details-marker,
.payment-create-panel summary::-webkit-details-marker,
.product-create-panel summary::-webkit-details-marker,
.template-create-panel summary::-webkit-details-marker,
.category-create-panel summary::-webkit-details-marker,
.venue-create-panel summary::-webkit-details-marker {
  display: none;
}

.option-create-panel summary::after,
.promotion-create-panel summary::after,
.pickup-create-panel summary::after,
.payment-create-panel summary::after,
.product-create-panel summary::after,
.template-create-panel summary::after,
.category-create-panel summary::after,
.venue-create-panel summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--forest);
  font-size: 18px;
  line-height: 1;
}

.option-create-panel[open] summary,
.promotion-create-panel[open] summary,
.pickup-create-panel[open] summary,
.payment-create-panel[open] summary,
.product-create-panel[open] summary,
.template-create-panel[open] summary,
.category-create-panel[open] summary,
.venue-create-panel[open] summary {
  margin-bottom: 14px;
}

.option-create-panel[open] summary::after,
.promotion-create-panel[open] summary::after,
.pickup-create-panel[open] summary::after,
.payment-create-panel[open] summary::after,
.product-create-panel[open] summary::after,
.template-create-panel[open] summary::after,
.category-create-panel[open] summary::after,
.venue-create-panel[open] summary::after {
  content: "−";
}

.product-card-list,
.venue-card-list,
.category-card-list,
.option-card-list,
.template-card-list {
  width: 100%;
  display: grid;
  gap: 12px;
}

.product-list-panel #productsTable.table-wrap {
  width: 100%;
  overflow: visible;
}

.venue-list-panel #venuesTable.table-wrap {
  width: 100%;
  overflow: visible;
}

.option-create-form,
.promotion-create-form,
.product-create-form,
.template-create-form,
.category-create-form,
.venue-create-form {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.option-create-form > *,
.promotion-create-form > *,
.product-create-form > *,
.template-create-form > *,
.category-create-form > *,
.venue-create-form > * {
  min-width: 0;
}

.category-create-name {
  grid-column: span 6;
}

.option-create-name,
.option-create-type,
.template-create-name {
  grid-column: span 4;
}

.option-create-values,
.template-create-description,
.template-create-products {
  grid-column: span 8;
}

.option-create-actions,
.option-create-message,
.promotion-create-name,
.promotion-create-categories,
.promotion-create-products,
.promotion-create-actions,
.promotion-create-message,
.template-create-actions,
.template-create-message,
.category-create-actions,
.category-create-message {
  grid-column: 1 / -1;
}

.option-create-actions,
.promotion-create-actions,
.template-create-actions,
.category-create-actions {
  display: flex;
  align-items: center;
}

.option-create-actions .btn,
.promotion-create-actions .btn,
.template-create-actions .btn,
.category-create-actions .btn {
  min-width: 180px;
}

.promotion-create-condition,
.promotion-create-method,
.promotion-create-amount,
.promotion-create-max,
.promotion-create-threshold,
.promotion-create-quantity,
.promotion-create-enabled {
  grid-column: span 6;
}

.product-create-icon,
.product-create-type {
  grid-column: span 3;
}

.product-create-category,
.product-create-name {
  grid-column: span 6;
}

.product-create-price,
.product-create-limit {
  grid-column: span 3;
}

.product-create-image {
  grid-column: span 6;
}

.product-create-description {
  grid-column: span 6;
}

.product-create-options {
  grid-column: span 6;
}

.product-create-actions,
.product-create-message {
  grid-column: 1 / -1;
}

.product-create-actions {
  display: flex;
  align-items: center;
}

.product-create-actions .btn {
  min-width: 180px;
}

.venue-create-form > .field:nth-child(1),
.venue-create-form > .field:nth-child(2),
.venue-create-type {
  grid-column: span 4;
}

.venue-create-address,
.venue-create-map {
  grid-column: span 6;
}

.venue-create-pickup {
  grid-column: span 5;
}

.venue-create-time {
  grid-column: span 5;
}

.venue-create-capacity {
  grid-column: span 2;
}

.venue-create-pickup textarea {
  height: 58px;
  min-height: 58px;
  overflow: auto;
  resize: vertical;
}

.venue-create-note,
.venue-create-actions {
  grid-column: 1 / -1;
}

.venue-create-actions {
  display: flex;
  align-items: center;
}

.venue-create-actions .btn {
  min-width: 180px;
}

.product-admin-card,
.venue-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
}

.admin-card-summary {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) minmax(0, auto) var(--expand-control-size);
  gap: 12px;
  align-items: center;
  min-height: 44px;
  list-style: none;
  cursor: pointer;
  outline: 0;
}

.admin-card-summary::-webkit-details-marker {
  display: none;
}

.admin-card-summary::after {
  width: var(--expand-control-size);
  height: var(--expand-control-size);
  display: grid;
  place-items: center;
  grid-column: -1;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7faf8;
  color: var(--brand-dark);
  content: "+";
  font-weight: 850;
}

.admin-card-summary:focus-visible {
  box-shadow: 0 0 0 3px rgba(31, 111, 91, 0.18);
}

details[open] > .admin-card-summary {
  box-shadow: inset 0 -1px 0 var(--line);
}

details[open] > .admin-card-summary::after {
  content: "−";
}

details[open] > .admin-card-body {
  padding-top: 12px;
}

.admin-card-title {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.admin-card-title h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.admin-card-title .muted {
  overflow-wrap: anywhere;
}

.admin-card-meta {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

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

.admin-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.product-card-summary {
  grid-template-columns: 28px 72px minmax(0, 1fr) minmax(0, auto) var(--expand-control-size);
}

.settings-card-summary,
.payment-card-summary {
  grid-template-columns: minmax(0, 1fr) minmax(0, auto) var(--expand-control-size);
}

.promotion-list-panel .admin-card-summary {
  grid-template-columns: minmax(0, 1fr) max-content var(--expand-control-size);
  align-items: center;
}

.category-list-panel .admin-card-summary,
.option-list-panel .admin-card-summary {
  grid-template-columns: 28px minmax(0, 1fr) max-content var(--expand-control-size);
  align-items: center;
}

.category-list-panel .admin-card-summary .status-pill,
.option-list-panel .admin-card-summary .status-pill,
.promotion-list-panel .admin-card-summary .status-pill {
  justify-self: end;
  white-space: nowrap;
}

.settings-card-summary .status-pill,
.payment-card-summary .status-pill {
  justify-self: end;
}

.payment-card-statuses {
  min-width: max-content;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  justify-self: end;
}

.payment-card-statuses .status-pill {
  white-space: nowrap;
  overflow-wrap: normal;
}

.drag-handle {
  width: 28px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7faf8;
  color: var(--muted);
  cursor: grab;
  font-size: 15px;
  font-weight: 850;
  line-height: 1;
  user-select: none;
}

.drag-handle:active {
  cursor: grabbing;
}

.is-sort-dragging {
  opacity: 0.58;
}

[data-sort-list] [data-sort-id] {
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.product-card-head,
.venue-card-head {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

.product-card-head {
  grid-template-columns: 72px minmax(220px, 1fr) auto;
}

.product-image-admin {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f4f7f5;
  color: var(--muted);
  overflow: hidden;
  font-size: 24px;
  font-weight: 850;
}

.product-image-admin img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-title-fields,
.venue-title-fields {
  display: grid;
  gap: 7px;
  max-width: 660px;
}

.product-name-fields {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 8px;
}

.product-icon-input {
  text-align: center;
}

.product-image-actions {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto auto;
  gap: 8px;
  align-items: start;
}

.product-image-uploader {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 82px;
  border: 1px dashed #b9c9c0;
  border-radius: var(--radius);
  background: #fbfdfc;
  padding: 8px;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.product-image-uploader:hover,
.product-image-uploader.is-dragging {
  border-color: var(--forest);
  background: var(--surface-tint);
}

.product-image-preview {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f4f7f5;
  color: var(--muted);
  overflow: hidden;
  font-size: 12px;
  font-weight: 850;
}

.product-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  justify-items: center;
  background: rgba(16, 24, 21, 0.86);
  padding: calc(18px + env(safe-area-inset-top, 0px)) 18px calc(18px + env(safe-area-inset-bottom, 0px));
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox-close {
  justify-self: end;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  padding: 8px 14px;
  font-weight: 850;
}

.image-lightbox-image {
  max-width: min(100%, 1080px);
  max-height: 78vh;
  border-radius: var(--radius);
  background: #fff;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.image-lightbox-caption {
  max-width: min(100%, 720px);
  margin: 0;
  color: #fff;
  text-align: center;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.product-image-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.product-image-copy strong {
  color: #30483f;
  font-size: 13px;
}

.product-image-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.product-card-actions,
.venue-card-actions {
  display: flex;
  gap: 8px;
  align-items: start;
  justify-content: flex-end;
}

.product-card-actions select,
.venue-card-actions select {
  width: min(100%, 180px);
}

.product-card-grid,
.venue-card-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.product-card-grid > *,
.venue-card-grid > * {
  min-width: 0;
}

.product-category-field {
  grid-column: span 4;
}

.product-type-field,
.product-price-field,
.product-limit-field {
  grid-column: span 2;
}

.product-description-field {
  grid-column: span 12;
}

.product-options-field {
  grid-column: span 12;
}

.product-description-field textarea {
  height: 58px;
  min-height: 58px;
  overflow: auto;
  resize: vertical;
}

.product-option-editor {
  display: grid;
  gap: 8px;
}

.removable-tag {
  gap: 6px;
}

.removable-tag button {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--danger-soft);
  color: var(--danger);
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  padding: 0;
}

.removable-tag button:hover {
  background: rgba(189, 45, 45, 0.16);
  color: var(--danger);
}

.inline-add-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 8px;
}

.venue-type-field {
  grid-column: span 2;
}

.venue-address-field,
.venue-pickup-field {
  grid-column: span 6;
}

.venue-map-field,
.venue-time-field {
  grid-column: span 4;
}

.venue-capacity-field {
  grid-column: span 2;
}

.venue-pickup-field {
  align-self: stretch;
}

.venue-pickup-field textarea {
  height: 58px;
  min-height: 58px;
  overflow: auto;
  resize: vertical;
}

.time-range-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.metric-card,
.mini-card {
  padding: 14px;
}

.metric-card {
  display: grid;
  gap: 7px;
  min-height: 92px;
}

.metric-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.metric-card strong {
  color: #172d25;
  font-size: 24px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.table-wrap {
  overflow: auto;
}

.admin-main .table-wrap {
  max-width: 100%;
}

.admin-main .panel {
  padding: 18px;
}

.admin-main table {
  min-width: 680px;
}

.admin-main th,
.admin-main td {
  padding: 11px 12px;
}

.orders-table td {
  vertical-align: top;
}

.orders-table {
  min-width: 1120px;
  display: none;
}

.orders-table th,
.orders-table td {
  word-break: keep-all;
}

.orders-table td:nth-child(1),
.orders-table td:nth-child(2),
.orders-table td:nth-child(3),
.orders-table td:nth-child(5),
.orders-table td:nth-child(6) {
  white-space: nowrap;
}

.orders-table td:nth-child(3) {
  min-width: 120px;
}

.orders-table td:nth-child(4) {
  min-width: 240px;
  word-break: normal;
  overflow-wrap: anywhere;
}

.orders-table td:nth-child(8) {
  min-width: 180px;
}

.orders-table td:nth-child(7) {
  min-width: 180px;
}

.orders-mobile-list {
  display: grid;
  gap: 12px;
}

#ordersTable.table-wrap {
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.order-list-card {
  min-width: 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 0;
}

.order-list-card[open] {
  border-color: rgba(31, 111, 91, 0.22);
  background: #fbfdfc;
  box-shadow: 0 8px 20px rgba(28, 48, 41, 0.08);
}

.order-list-card.is-recently-saved {
  border-color: rgba(31, 111, 91, 0.45);
  box-shadow:
    0 0 0 3px rgba(31, 111, 91, 0.14),
    0 12px 26px rgba(28, 48, 41, 0.1);
}

.order-list-card.is-recently-saved .order-list-summary {
  background: var(--success-soft);
}

.order-list-summary {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 18px;
  align-items: start;
  padding: 16px;
  list-style: none;
  cursor: default;
}

.order-list-summary::-webkit-details-marker {
  display: none;
}

.order-list-summary::after {
  display: none;
  content: none;
}

.order-list-copy,
.order-list-customer,
.order-list-pickup,
.order-list-status,
.order-list-preview,
.order-list-total {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 4px;
}

.order-list-copy strong,
.order-list-customer strong,
.order-list-pickup strong,
.order-list-status strong,
.order-list-total strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.order-list-copy span,
.order-list-copy small,
.order-list-customer span,
.order-list-customer small,
.order-list-pickup span,
.order-list-pickup small,
.order-list-status span,
.order-list-status small,
.order-list-preview > span,
.order-list-total small,
.order-list-total span {
  color: var(--muted);
}

.order-list-total {
  justify-items: end;
  text-align: right;
}

.order-list-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.order-list-actions .status-pill {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 18px;
  font-size: 15px;
}

.order-list-meta,
.order-mobile-items,
.order-mobile-form {
  margin: 0 16px 16px;
}

.order-list-card[open] .order-list-summary {
  border-bottom: 1px solid var(--line);
}

.order-tablet-cell {
  display: none;
}

.order-item-line {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.order-item-line + .order-item-line {
  margin-top: 8px;
}

.order-items-head {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.order-items-head > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.order-item-edit-list {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.order-item-edit-line {
  border-bottom: 1px solid rgba(220, 228, 221, 0.88);
  padding-bottom: 10px;
}

.order-item-edit-line:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.order-item-edit-line .order-item-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(44px, auto) 40px;
  align-items: center;
  gap: 12px;
}

.order-item-edit-line.is-readonly .order-item-main {
  grid-template-columns: minmax(0, 1fr) auto;
}

.order-item-edit-line .order-item-qty {
  justify-self: end;
}

.order-item-main {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.order-item-remove {
  width: 34px;
  height: 34px;
  min-width: 34px;
  justify-self: end;
  color: var(--danger);
}

.order-item-name {
  min-width: 0;
  color: var(--ink);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.order-product-dialog {
  width: min(720px, calc(100% - 28px));
  max-height: min(82vh, 760px);
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  padding: 0;
}

.order-product-dialog::backdrop {
  background: rgba(16, 24, 21, 0.58);
  backdrop-filter: blur(4px);
}

.order-product-panel {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 16px;
}

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

.order-product-head h2,
.order-product-head p {
  margin: 0;
}

.order-product-filters {
  display: grid;
  grid-template-columns: minmax(160px, 0.42fr) minmax(0, 1fr);
  gap: 10px;
}

.order-product-list {
  min-width: 0;
  display: grid;
  gap: 10px;
  max-height: min(58vh, 520px);
  overflow: auto;
}

.order-product-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7faf8;
  padding: 10px;
}

.order-product-row strong,
.order-product-row small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.order-product-row small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.order-product-row input {
  width: 100%;
}

.order-product-options {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.order-product-options fieldset {
  min-width: 0;
  display: grid;
  gap: 8px;
  border: 0;
  margin: 0;
  padding: 0;
}

.order-product-options legend {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  padding: 0;
}

.order-product-option-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.order-product-option-values label {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 7px 9px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.order-product-option-values input {
  width: auto;
}

.order-item-qty {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
}

.order-item-options,
.order-preview-options {
  display: block;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  list-style: disc;
  margin: 4px 0 0 1.2em;
  padding: 0;
  overflow-wrap: anywhere;
}

.order-item-options li + li,
.order-preview-options li + li {
  margin-top: 2px;
}

.timeline-product-name {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.timeline-product-name > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.orders-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.orders-pagination span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.orders-pagination .btn {
  min-width: 96px;
}

.segmented-control {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 3px;
}

.segmented-control button {
  min-height: 36px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  padding: 7px 12px;
  font-weight: 850;
}

.segmented-control button.is-active {
  background: var(--navy);
  color: #fff;
}

.order-view-switch {
  justify-self: end;
}

.order-timeline-view {
  display: grid;
  gap: 12px;
}

.order-timeline-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.order-timeline-panel {
  display: grid;
  gap: 10px;
}

.timeline-slot {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.timeline-slot.is-full {
  border-color: rgba(183, 139, 35, 0.45);
}

.timeline-slot-time {
  display: grid;
  align-content: start;
  gap: 4px;
  border-right: 1px solid var(--line);
  background: var(--surface-muted);
  padding: 14px;
}

.timeline-slot-time strong {
  font-size: 18px;
}

.timeline-slot-time span,
.timeline-order-card small,
.timeline-order-card span,
.timeline-order-total span {
  color: var(--muted);
}

.timeline-slot-body {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.timeline-slot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.timeline-orders {
  display: grid;
  gap: 8px;
}

.timeline-orders .order-list-card {
  width: 100%;
}

.timeline-orders .order-list-context,
.timeline-orders .order-mobile-items,
.timeline-orders .order-mobile-form {
  margin-right: 12px;
  margin-left: 12px;
}

.timeline-order-card {
  min-width: 0;
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
}

.timeline-order-main {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.timeline-order-main > div,
.timeline-order-card strong,
.timeline-order-card span,
.timeline-order-card small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.timeline-order-main > div:first-child,
.timeline-order-total {
  display: grid;
  gap: 2px;
}

.timeline-order-total {
  justify-items: end;
}

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

.timeline-order-editor {
  display: grid;
  gap: 12px;
}

.timeline-order-editor .row-actions {
  justify-content: flex-end;
  gap: 10px;
  padding-top: 2px;
}

.timeline-order-editor .row-actions .btn {
  flex: 0 0 auto;
  min-width: 104px;
  min-height: 44px;
}

.timeline-product-picker {
  display: grid;
  gap: 8px;
}

.timeline-product-picker > span {
  color: #385046;
  font-size: 13px;
  font-weight: 850;
}

.timeline-product-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 84px;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 10px;
}

.timeline-product-row input {
  min-height: 38px;
}

.timeline-product-picker.is-readonly .timeline-product-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.event-summary-wrap {
  min-width: 0;
  overflow: visible;
}

.event-summary-list {
  display: grid;
  gap: 8px;
}

.event-summary-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(104px, 0.8fr) minmax(148px, 1.25fr) minmax(128px, 1fr) minmax(100px, 0.8fr);
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 11px;
}

.event-summary-row.is-selected {
  border-color: rgba(31, 111, 91, 0.38);
  background: var(--surface-tint);
}

.event-summary-row > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.event-summary-row > div:last-child {
  justify-items: start;
}

.event-summary-row strong,
.event-summary-row span,
.event-summary-row button {
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.35;
}

.event-summary-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.event-summary-date {
  font-size: 14px;
  font-weight: 850;
}

.availability-list-wrap {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.availability-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.availability-compact-list {
  min-width: 0;
  display: grid;
  gap: 6px;
  max-height: min(62vh, 680px);
  overflow: auto;
  padding-right: 2px;
}

.availability-compact-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 9px;
}

.availability-item-title {
  min-width: 0;
  display: grid;
  gap: 2px;
  align-self: center;
}

.availability-item-title strong {
  font-size: 14px;
}

.availability-item-title strong,
.availability-item-title span {
  overflow-wrap: anywhere;
}

.availability-primary-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(118px, 1.2fr) repeat(2, minmax(66px, 0.65fr));
  gap: 8px;
  align-items: end;
}

.compact-field {
  display: grid;
  gap: 3px;
}

.compact-field > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.compact-field input,
.compact-field select {
  min-height: 38px;
  padding: 7px 9px;
}

.availability-save-btn {
  min-height: 38px;
  padding: 7px 12px;
  align-self: center;
}

.availability-extra {
  grid-column: 1 / -1;
}

.availability-extra summary {
  color: var(--forest);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.availability-extra-fields {
  display: grid;
  grid-template-columns: minmax(90px, 0.45fr) minmax(0, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.availability-note-field {
  min-width: 0;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.inline-fields {
  display: grid;
  grid-template-columns: minmax(48px, 72px) minmax(180px, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.inline-fields.compact-time {
  grid-template-columns: repeat(2, minmax(100px, 1fr));
}

.check-list {
  display: grid;
  gap: 7px;
  max-height: 180px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 10px;
}

.check-list label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
}

.discount-category-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.discount-category-checks label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 750;
}

.discount-category-checks input {
  width: auto;
}

.discount-category-picker {
  display: grid;
  gap: 8px;
}

.discount-category-picker .inline-add-row {
  grid-template-columns: minmax(160px, 1fr) auto;
}

.discount-category-picker .chip-row {
  min-height: 32px;
  align-items: center;
}

.toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #385046;
  font-size: 13px;
  font-weight: 800;
}

.toggle-row input {
  width: auto;
}

.toggle-row.compact {
  flex: 0 0 auto;
}

.toggle-button {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  cursor: pointer;
  user-select: none;
}

.toggle-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.toggle-button-ui {
  position: relative;
  min-width: 116px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #eef1ee;
  color: var(--muted);
  padding: 5px 14px 5px 42px;
  font-size: 13px;
  font-weight: 850;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.toggle-button-knob {
  position: absolute;
  top: 50%;
  left: 5px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(104, 115, 109, 0.18);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(28, 48, 41, 0.14);
  transform: translateY(-50%);
  transition: left 0.18s ease, right 0.18s ease, transform 0.18s ease;
}

.toggle-button-text {
  min-width: 2.5em;
  text-align: center;
}

.toggle-button-text::after {
  content: attr(data-off);
}

.toggle-button input:checked + .toggle-button-ui {
  border-color: rgba(31, 111, 91, 0.3);
  background: var(--surface-tint);
  color: var(--forest);
  padding-right: 42px;
  padding-left: 14px;
}

.toggle-button input:checked + .toggle-button-ui .toggle-button-knob {
  left: calc(100% - 33px);
}

.toggle-button input:checked + .toggle-button-ui .toggle-button-text::after {
  content: attr(data-on);
}

.toggle-button input:focus-visible + .toggle-button-ui {
  box-shadow: 0 0 0 3px rgba(31, 111, 91, 0.16);
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .primary-btn,
  .icon-link,
  .icon-btn,
  .toggle-button-ui,
  .toggle-button-knob {
    transition: none;
  }

  .btn,
  .primary-btn,
  .icon-link,
  .icon-btn {
    transform: none;
  }
}

@media (max-width: 960px) {
  .page-grid,
  .admin-shell,
  .work-grid,
  .work-grid.two,
  .settings-grid,
  .dashboard-grid,
  .calendar-layout {
    grid-template-columns: 1fr;
  }

  .page-grid {
    gap: 14px;
    padding-top: 14px;
  }

  .page-grid > .order-flow {
    display: contents;
  }

  .event-selection-panel {
    order: 1;
  }

  .menu-flow {
    order: 2;
  }

  .reservation-panel {
    order: 3;
  }

  .product-management-grid > *,
  .option-management-grid > *,
  .promotion-management-grid > *,
  .template-management-grid > *,
  .category-management-grid > * {
    grid-column: auto;
    grid-row: auto;
  }

  .product-card-head,
  .product-card-actions,
  .product-image-actions,
  .product-card-grid,
  .product-name-fields,
  .venue-card-head,
  .venue-card-actions,
  .venue-card-grid,
  .inline-add-row {
    grid-template-columns: 1fr;
  }

  .admin-card-summary {
    grid-template-columns: 28px minmax(0, 1fr) var(--expand-control-size);
    align-items: start;
  }

  .category-list-panel .admin-card-summary,
  .option-list-panel .admin-card-summary {
    grid-template-columns: 28px minmax(0, 1fr) max-content var(--expand-control-size);
    align-items: center;
  }

  .product-card-summary {
    grid-template-columns: 28px 72px minmax(0, 1fr) var(--expand-control-size);
  }

  .admin-card-meta,
  .product-card-summary .admin-card-meta {
    grid-column: 2 / -2;
    justify-content: flex-start;
  }

  .product-card-summary .admin-card-meta {
    grid-column: 3 / -2;
  }

  .category-create-name,
  .option-create-name,
  .option-create-type,
  .option-create-values,
  .option-create-actions,
  .option-create-message,
  .promotion-create-name,
  .promotion-create-condition,
  .promotion-create-method,
  .promotion-create-amount,
  .promotion-create-max,
  .promotion-create-threshold,
  .promotion-create-quantity,
  .promotion-create-enabled,
  .promotion-create-categories,
  .promotion-create-products,
  .promotion-create-actions,
  .promotion-create-message,
  .template-create-name,
  .template-create-description,
  .template-create-products,
  .template-create-actions,
  .template-create-message,
  .category-create-actions,
  .category-create-message,
  .product-category-field,
  .product-type-field,
  .product-price-field,
  .product-limit-field,
  .product-options-field,
  .product-description-field,
  .product-create-icon,
  .product-create-type,
  .product-create-category,
  .product-create-name,
  .product-create-price,
  .product-create-limit,
  .product-create-image,
  .product-create-description,
  .product-create-options,
  .product-create-actions,
  .product-create-message,
  .venue-type-field,
  .venue-address-field,
  .venue-map-field,
  .venue-time-field,
  .venue-capacity-field,
  .venue-pickup-field,
  .venue-create-form > .field:nth-child(1),
  .venue-create-form > .field:nth-child(2),
  .venue-create-type,
  .venue-create-address,
  .venue-create-map,
  .venue-create-pickup,
  .venue-create-time,
  .venue-create-capacity,
  .venue-create-note,
  .venue-create-actions {
    grid-column: auto;
  }

  .option-create-form,
  .promotion-create-form,
  .product-create-form,
  .template-create-form,
  .category-create-form,
  .venue-create-form {
    grid-template-columns: 1fr;
  }

  .admin-rail {
    position: sticky;
    top: 0;
    z-index: 24;
    max-height: none;
    overflow: hidden;
    border-bottom: 1px solid rgba(220, 228, 221, 0.86);
    background: rgba(246, 248, 245, 0.96);
    backdrop-filter: blur(14px);
    padding: 8px 0;
  }

  .admin-menu-toggle {
    display: inline-flex;
    align-items: center;
  }

  .nav-panel {
    display: none;
    padding: 8px;
  }

  .admin-rail.is-menu-open .nav-panel {
    display: block;
  }

  .nav-label {
    margin-bottom: 5px;
  }

  .admin-tabs {
    display: grid;
    gap: 6px;
  }

  .admin-tabs a {
    min-height: 44px;
    white-space: normal;
  }

  .settings-card-summary,
  .payment-card-summary {
    grid-template-columns: minmax(0, 1fr) minmax(0, auto) var(--expand-control-size);
    align-items: center;
  }

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

@media (min-width: 561px) and (max-width: 1023px) {
  .admin-body {
    --admin-tablet-rail-width: 72px;
    padding-top: 64px;
  }

  .admin-body .topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: var(--admin-tablet-rail-width);
    z-index: 35;
    min-height: 64px;
    border-bottom: 1px solid rgba(220, 228, 221, 0.9);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: none;
  }

  .admin-body .topbar-inner {
    width: 100%;
    min-height: 64px;
    padding: 0 18px;
  }

  .admin-body .brand img,
  .admin-body .brand small {
    display: none;
  }

  .admin-body .brand strong {
    font-size: 18px;
    white-space: nowrap;
  }

  .admin-body .topbar .toolbar {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .admin-body .topbar .locale-field span {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
  }

  .admin-body .topbar .locale-field select {
    width: 112px;
  }

  .admin-body .topbar .admin-menu-toggle {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 45;
    width: var(--admin-tablet-rail-width);
    height: 64px;
    min-height: 64px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: var(--navy);
    color: #fff;
    padding: 0;
  }

  .admin-body .topbar .admin-menu-toggle span {
    display: none;
  }

  .admin-body .topbar .admin-menu-toggle .nav-icon {
    width: 30px;
    height: 30px;
    stroke-width: 2.2;
  }

  .admin-container {
    width: calc(100% - var(--admin-tablet-rail-width));
    margin-right: 0;
    margin-left: var(--admin-tablet-rail-width);
    padding: 24px 24px 32px;
  }

  .admin-shell {
    display: block;
  }

  .admin-rail {
    position: fixed;
    top: 64px;
    bottom: 0;
    left: 0;
    z-index: 34;
    width: var(--admin-tablet-rail-width);
    max-height: none;
    overflow-y: auto;
    border: 0;
    background: var(--navy);
    backdrop-filter: none;
    padding: 12px 0;
  }

  .admin-rail .nav-panel {
    display: block;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
  }

  .admin-rail.is-menu-open .nav-panel {
    display: block;
  }

  .admin-rail .nav-label,
  .admin-tabs a span {
    display: none;
  }

  .admin-tabs {
    gap: 4px;
  }

  .admin-tabs a {
    min-height: 52px;
    justify-content: center;
    border: 0;
    border-radius: 0;
    color: var(--navy-soft);
    padding: 0;
    white-space: normal;
  }

  .admin-tabs a.active {
    background: var(--navy-2);
    color: #fff;
    box-shadow: none;
  }

  .admin-tabs .nav-icon {
    width: 21px;
    height: 21px;
    flex-basis: 21px;
  }

  .order-filter-bar {
    grid-template-columns:
      minmax(150px, 0.8fr)
      repeat(4, minmax(120px, 0.7fr))
      minmax(240px, 1.4fr)
      auto;
  }

  .order-filter-bar .search-field {
    grid-column: auto;
    order: 0;
  }

  #ordersTable.table-wrap {
    overflow: auto;
  }

  .orders-table {
    display: table;
    min-width: 1120px;
  }

  .orders-mobile-list {
    display: none;
  }
}

@media (max-width: 560px) {
  .container,
  .page-grid,
  .topbar-inner {
    width: min(100% - 20px, 1180px);
  }

  .admin-body {
    --admin-mobile-rail-width: 76px;
    padding-top: 56px;
  }

  .admin-container,
  .admin-body .topbar-inner {
    width: min(100% - 20px, 1440px);
  }

  .topbar-inner,
  .page-head,
  .panel-title,
  .section-head {
    align-items: flex-start;
  }

  .section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .section-head h2 {
    overflow-wrap: normal;
  }

  .section-head .search-field,
  .section-head .list-filters {
    width: 100%;
    min-width: 0;
    margin-left: 0;
  }

  .section-head .list-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .event-selection-panel .panel-title {
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 10px;
  }

  .event-selection-panel .panel-title h1 {
    font-size: 22px;
  }

  .event-selection-panel .panel-title input {
    width: 100%;
    justify-self: stretch;
  }

  .event-card {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 9px;
    padding: 11px;
  }

  .event-card-icon {
    width: 38px;
    height: 38px;
  }

  .event-hero .muted {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .event-hero .muted > span,
  .event-hero .event-map-link {
    width: 100%;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    border-radius: var(--radius);
    padding: 8px 10px;
  }

  .event-hero .muted .ui-icon,
  .event-hero .event-map-link .ui-icon {
    margin-top: 2px;
  }

  .topbar-inner,
  .page-head {
    flex-wrap: wrap;
  }

  .admin-body .topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: var(--admin-mobile-rail-width);
    z-index: 35;
    min-height: 56px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: none;
  }

  .admin-body .topbar-inner {
    width: 100%;
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
  }

  .admin-body .brand {
    flex: 1 1 auto;
    gap: 8px;
  }

  .admin-body .brand img {
    display: none;
  }

  .admin-body .brand strong {
    font-size: 14px;
    white-space: nowrap;
  }

  .admin-body .brand small {
    display: none;
  }

  .admin-body .topbar .toolbar {
    width: auto;
    flex: 0 0 auto;
    display: inline-flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 6px;
    align-items: center;
  }

  .admin-body .locale-field {
    width: 100%;
    display: block;
  }

  .admin-body .locale-field span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .admin-body .locale-field select,
  .admin-body .btn,
  .admin-body .icon-link {
    min-height: 36px;
    border-radius: 8px;
    padding: 5px 9px;
    font-size: 13px;
  }

  .admin-body .locale-field select {
    width: 100%;
    padding-right: 26px;
    padding-left: 10px;
  }

  .admin-body .btn,
  .admin-body .icon-link {
    justify-content: center;
    white-space: nowrap;
  }

  .admin-body .topbar .locale-field {
    flex: 0 0 76px;
  }

  .admin-body .topbar .icon-link,
  .admin-body .topbar .btn {
    flex: 1 1 0;
  }

  .admin-body .topbar .admin-menu-toggle {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 45;
    width: var(--admin-mobile-rail-width);
    height: 56px;
    min-height: 56px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: var(--brand);
    color: #fff;
    padding: 0;
  }

  .admin-body .topbar .admin-menu-toggle span {
    display: none;
  }

  .admin-body .topbar .admin-menu-toggle .nav-icon {
    width: 28px;
    height: 28px;
    stroke-width: 2.2;
  }

  .admin-container {
    width: calc(100% - var(--admin-mobile-rail-width));
    margin-right: 0;
    margin-left: var(--admin-mobile-rail-width);
    padding: 16px 12px 24px;
  }

  .admin-shell {
    display: block;
  }

  .admin-rail {
    position: fixed;
    top: 56px;
    bottom: 0;
    left: 0;
    z-index: 34;
    width: var(--admin-mobile-rail-width);
    max-height: none;
    overflow-y: auto;
    border: 0;
    background: var(--navy);
    backdrop-filter: none;
    padding: 10px 0;
  }

  .admin-rail .nav-panel {
    display: block;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
  }

  .admin-rail .nav-label,
  .admin-tabs a span {
    display: none;
  }

  .admin-tabs {
    gap: 4px;
  }

  .admin-tabs a {
    min-height: 48px;
    justify-content: center;
    border: 0;
    border-radius: 0;
    color: var(--navy-soft);
    padding: 0;
  }

  .admin-tabs a.active {
    background: var(--navy-2);
    color: #fff;
    box-shadow: none;
  }

  .admin-tabs .nav-icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }

  .toolbar {
    width: 100%;
    justify-content: space-between;
  }

  input,
  select,
  textarea,
  .btn,
  .primary-btn,
  .icon-link,
  .icon-btn {
    min-height: 44px;
  }

  .icon-btn {
    width: 44px;
    height: 44px;
  }

  .filter-bar {
    width: 100%;
    justify-content: stretch;
  }

  .list-filters {
    width: 100%;
    flex-wrap: wrap;
    justify-content: stretch;
    margin-left: 0;
  }

  .list-filters .search-field {
    flex: 1 1 220px;
  }

  .filter-bar input,
  .filter-bar button,
  .page-head > .toolbar input,
  .page-head > .toolbar button,
  .list-filters .search-field,
  .section-head input {
    width: 100%;
  }

  .page-head > .toolbar {
    width: 100%;
  }

  .page-head > .toolbar input,
  .page-head > .toolbar button,
  .page-head > .toolbar select {
    flex: 1 1 148px;
  }

  .order-filter-bar {
    grid-template-columns: minmax(168px, 1fr) auto;
  }

  .order-filter-bar .search-field {
    grid-column: 1 / -1;
    order: -1;
  }

  .calendar-controls {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .calendar-month-title {
    order: -1;
    width: 100%;
    min-width: 0;
    text-align: left;
    font-size: 21px;
  }

  .calendar-month-picker {
    width: min(100%, 180px);
  }

  .calendar-layout > .panel:first-child {
    overflow: hidden;
  }

  .calendar-board {
    width: 100%;
    min-width: 0;
  }

  .calendar-weekday {
    min-height: 30px;
    font-size: 11px;
  }

  .calendar-day {
    min-height: 74px;
    padding: 5px;
  }

  .calendar-date {
    justify-content: center;
    min-height: 20px;
    margin-bottom: 5px;
  }

  .calendar-date strong {
    display: none;
  }

  .calendar-events {
    place-items: center;
    gap: 4px;
  }

  .calendar-event {
    width: 10px;
    height: 10px;
    min-height: 10px;
    border-radius: 999px;
    background: var(--forest);
    padding: 0;
  }

  .calendar-event.is-active {
    width: 14px;
    height: 14px;
    background: var(--brand);
  }

  .calendar-event span,
  .calendar-event small {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .brand img {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .brand strong {
    font-size: 16px;
  }

  .split,
  .payment-tool-list,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 13px;
  }

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

  .product-card {
    padding: 13px;
  }

  .product-main {
    gap: 10px;
  }

  .product-photo {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }

  .option-box label,
  .check-list label {
    min-height: 36px;
  }

  .slot-grid {
    display: flex;
    gap: 8px;
    margin: 0 -13px;
    padding: 0 13px 4px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .slot-chip {
    flex: 0 0 112px;
    scroll-snap-align: start;
  }

  .checkout-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(132px, 40%);
    padding: 10px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .checkout-summary {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 8px;
  }

  .checkout-summary > .ui-icon {
    width: 36px;
    height: 36px;
    padding: 8px;
  }

  .checkout-bar strong {
    font-size: 21px;
  }

  .product-action-row,
  .cart-item {
    grid-template-columns: 1fr;
  }

  .cart-stepper,
  .stepper {
    width: 100%;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  .cart-stepper button,
  .cart-stepper input,
  .stepper button,
  .stepper input {
    height: 44px;
  }

  .add-cart-btn,
  .cart-item .link-btn {
    width: 100%;
  }

  .cart-item .link-btn {
    justify-self: stretch;
    text-align: center;
  }

  .cart-review-dialog {
    width: min(100% - 20px, 560px);
    max-height: calc(100vh - 24px);
  }

  .cart-review-panel {
    padding: 13px;
  }

  .cart-review-list {
    max-height: 38vh;
  }

  .cart-review-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .order-product-row {
    grid-template-columns: minmax(0, 1fr) 86px;
  }

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

  .order-product-row .btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .order-product-option-values {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .cart-review-actions .btn {
    flex: 1 1 150px;
  }

  .primary-btn {
    min-width: 0;
    padding: 9px 10px;
  }

  .admin-container {
    padding-top: 12px;
  }

  .admin-shell {
    gap: 12px;
  }

  .admin-main {
    gap: 14px;
  }

  .admin-main .page-head {
    min-height: 0;
    margin-bottom: 12px;
  }

  .admin-main .page-head h1 {
    font-size: 24px;
  }

  .event-summary-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .availability-primary-fields {
    grid-template-columns: minmax(110px, 1fr) repeat(2, minmax(58px, 0.6fr));
  }

  .availability-extra-fields {
    grid-template-columns: 1fr;
  }

  .admin-card-summary {
    gap: 9px;
    padding-right: 0;
  }

  .product-card-summary {
    grid-template-columns: 28px 56px minmax(0, 1fr) var(--expand-control-size);
  }

  .product-card-summary .product-image-admin {
    width: 56px;
    height: 56px;
  }

  .settings-card-summary,
  .payment-card-summary {
    grid-template-columns: minmax(0, 1fr) minmax(0, auto) var(--expand-control-size);
  }

  .promotion-list-panel .admin-card-summary {
    grid-template-columns: minmax(0, 1fr) var(--expand-control-size);
  }

  .category-list-panel .admin-card-summary,
  .option-list-panel .admin-card-summary {
    grid-template-columns: 40px minmax(0, 1fr) max-content var(--expand-control-size);
    align-items: center;
  }

  .category-list-panel .admin-card-summary .drag-handle,
  .option-list-panel .admin-card-summary .drag-handle {
    width: 40px;
    height: 40px;
  }

  .category-list-panel .admin-card-summary .status-pill,
  .option-list-panel .admin-card-summary .status-pill {
    justify-self: end;
  }

  .promotion-list-panel .admin-card-summary .status-pill {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }

  .admin-card-meta,
  .product-card-summary .admin-card-meta {
    grid-column: 1 / -2;
  }

  .product-card-list,
  .product-admin-card,
  .product-card-summary {
    width: 100%;
  }

  .product-card-summary {
    grid-template-columns: 28px 56px minmax(0, 1fr) var(--expand-control-size);
    gap: 10px;
    padding-right: 0;
  }

  .product-card-summary::after {
    grid-column: -1;
    grid-row: 1;
    position: static;
    justify-self: end;
    align-self: center;
    transform: none;
  }

  .product-card-summary .admin-card-meta {
    grid-column: 2 / -2;
    justify-content: flex-start;
  }

  .admin-card-footer,
  .product-card-actions,
  .venue-card-actions,
  .row-actions,
  .option-create-actions,
  .template-create-actions,
  .category-create-actions,
  .product-create-actions,
  .venue-create-actions {
    justify-content: stretch;
  }

  .admin-card-footer .btn,
  .product-card-actions .btn,
  .venue-card-actions .btn,
  .row-actions .btn,
  .option-create-actions .btn,
  .template-create-actions .btn,
  .category-create-actions .btn,
  .product-create-actions .btn,
  .venue-create-actions .btn {
    flex: 1 1 140px;
  }

  .product-card-actions select,
  .venue-card-actions select {
    width: 100%;
  }

  .inline-fields,
  .inline-fields.compact-time,
  .time-range-fields {
    grid-template-columns: 1fr;
  }

  #ordersTable.table-wrap {
    overflow: visible;
  }

  .orders-table {
    display: none;
  }

  .orders-mobile-list {
    display: grid;
    gap: 12px;
  }

  .orders-pagination {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
  }

  .orders-pagination span {
    order: -1;
    text-align: center;
  }

  .orders-pagination .btn {
    width: 100%;
  }

  .order-mobile-card {
    min-width: 0;
    display: grid;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 14px;
  }

  .order-mobile-card[open] {
    border-color: rgba(31, 111, 91, 0.22);
    background: #fbfdfc;
    box-shadow: 0 8px 20px rgba(28, 48, 41, 0.08);
  }

  .order-mobile-head,
  .order-mobile-meta,
  .order-mobile-controls {
    min-width: 0;
    display: grid;
    gap: 10px;
  }

  .order-mobile-head {
    grid-template-columns: minmax(0, 1fr) auto 38px;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    list-style: none;
  }

  .order-mobile-card[open] .order-mobile-head {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }

  .order-mobile-head::-webkit-details-marker {
    display: none;
  }

  .order-mobile-head::after {
    content: "+";
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--forest);
    font-size: 20px;
    font-weight: 850;
    line-height: 1;
  }

  .order-mobile-card[open] .order-mobile-head::after {
    content: "−";
  }

  .order-mobile-meta,
  .order-mobile-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-mobile-meta {
    padding: 2px 0;
  }

  .order-mobile-card span,
  .order-mobile-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
  }

  .order-mobile-card strong,
  .order-mobile-card small {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .order-mobile-card strong {
    font-size: 18px;
    line-height: 1.35;
  }

  .order-mobile-card small {
    color: var(--muted);
    font-size: 13px;
  }

  .order-mobile-total {
    min-width: 72px;
    text-align: right;
  }

  .order-mobile-total strong {
    color: var(--ink);
    font-size: 20px;
  }

  .order-mobile-items {
    min-width: 0;
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: var(--radius);
    background: #f6f8f5;
  }

  .order-mobile-items div {
    min-width: 0;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    overflow-wrap: anywhere;
  }

  .order-mobile-items div strong {
    flex: 0 0 auto;
    color: var(--ink);
    font-size: 15px;
  }

  .order-mobile-items .order-item-line {
    display: grid;
    justify-content: normal;
    gap: 4px;
    padding: 8px 0;
  }

  .order-mobile-items .order-item-line + .order-item-line {
    margin-top: 0;
    border-top: 1px solid rgba(220, 228, 221, 0.9);
  }

  .order-mobile-items .order-item-main {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
  }

  .order-mobile-items .order-item-name {
    color: var(--ink);
    font-size: 16px;
    font-weight: 850;
  }

  .order-mobile-items .order-item-qty {
    display: inline;
    flex: 0 0 auto;
    font-size: 14px;
    line-height: 1.2;
  }

  .order-mobile-items .order-item-options {
    justify-self: start;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
  }

  .order-mobile-form {
    min-width: 0;
    display: grid;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
  }

  .order-mobile-controls label,
  .order-mobile-note {
    min-width: 0;
    display: grid;
    gap: 6px;
  }

  .order-mobile-controls label {
    align-content: start;
  }

  .order-mobile-controls select,
  .order-mobile-note textarea,
  .order-mobile-card .btn {
    width: 100%;
    min-width: 0;
  }

  .order-mobile-note textarea {
    min-height: 92px;
    resize: vertical;
  }

  .order-mobile-card .btn {
    min-height: 44px;
  }

  .table-wrap {
    margin-right: -13px;
    margin-left: -13px;
    padding-right: 13px;
    padding-left: 13px;
  }

  #ordersTable.table-wrap {
    border: 0;
    background: transparent;
    box-shadow: none;
    margin-right: 0;
    margin-left: 0;
    padding-right: 0;
    padding-left: 0;
  }
}

@media (max-width: 420px) {
  .admin-body .topbar .toolbar {
    display: inline-flex;
  }

  .category-list-panel .admin-card-summary,
  .option-list-panel .admin-card-summary {
    grid-template-columns: 40px minmax(0, 1fr) var(--expand-control-size);
  }

  .category-list-panel .admin-card-summary .status-pill,
  .option-list-panel .admin-card-summary .status-pill {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }

  .admin-body .topbar .locale-field {
    flex-basis: 74px;
  }

  .admin-body .topbar .toolbar > .hidden {
    display: none !important;
  }

  .order-filter-bar {
    grid-template-columns: minmax(0, 1fr);
  }

  .order-filter-bar .search-field {
    grid-column: auto;
    order: -1;
  }
}

@media (max-width: 767px) {
  .admin-body {
    --admin-mobile-topbar-height: 56px;
    --admin-mobile-rail-width: 52px;
    padding-top: var(--admin-mobile-topbar-height);
  }

  .admin-body .topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: var(--admin-mobile-rail-width);
    z-index: 35;
    min-height: var(--admin-mobile-topbar-height);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: none;
  }

  .admin-body .topbar-inner {
    width: 100%;
    min-height: var(--admin-mobile-topbar-height);
    align-items: center;
    gap: 8px;
    padding: 0 10px;
  }

  .admin-body .brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .admin-body .brand img,
  .admin-body .brand small {
    display: none;
  }

  .admin-body .brand strong {
    display: block;
    max-width: 9.5em;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-body .topbar .toolbar {
    width: auto;
    flex: 0 0 auto;
    display: inline-flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 6px;
  }

  .admin-body .topbar .locale-field {
    flex: 0 0 74px;
  }

  .admin-body .topbar .locale-field span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .admin-body .topbar .icon-link,
  .admin-body .topbar .btn {
    flex: 0 0 auto;
  }

  .admin-main .page-head .stats-range-control {
    flex: 1 1 100%;
    width: 100%;
    grid-template-columns: 1fr;
  }

  .admin-body .topbar .admin-menu-toggle {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 45;
    width: var(--admin-mobile-rail-width);
    height: var(--admin-mobile-topbar-height);
    min-height: var(--admin-mobile-topbar-height);
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: var(--brand);
    color: #fff;
    padding: 0;
  }

  .admin-body .topbar .admin-menu-toggle span {
    display: none;
  }

  .admin-body .topbar .admin-menu-toggle .nav-icon {
    width: 28px;
    height: 28px;
    stroke-width: 2.2;
  }

  .admin-container {
    width: calc(100% - var(--admin-mobile-rail-width));
    margin-right: 0;
    margin-left: var(--admin-mobile-rail-width);
    padding: 16px 10px 24px;
  }

  .admin-shell {
    display: block;
  }

  .admin-rail {
    position: fixed;
    top: var(--admin-mobile-topbar-height);
    bottom: 0;
    left: 0;
    z-index: 44;
    width: var(--admin-mobile-rail-width);
    max-height: none;
    overflow-y: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(18, 26, 49, 0.16);
    background: var(--navy);
    box-shadow: none;
    padding: 8px 0 calc(12px + env(safe-area-inset-bottom, 0px));
    transform: none;
    transition: none;
  }

  .admin-rail.is-menu-open {
    transform: none;
  }

  .admin-rail .nav-panel,
  .admin-rail.is-menu-open .nav-panel {
    display: block;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
  }

  .admin-rail .nav-label {
    display: none;
  }

  .admin-tabs {
    gap: 4px;
  }

  .admin-tabs a {
    min-height: 52px;
    display: grid;
    justify-items: center;
    align-content: center;
    border: 0;
    border-radius: 0;
    color: var(--navy-soft);
    padding: 0;
    text-align: center;
  }

  .admin-tabs a span {
    display: none;
  }

  .admin-tabs a.active {
    background: var(--navy-2);
    color: #fff;
    box-shadow: none;
  }

  .admin-tabs .nav-icon {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }

  .stats-range-panel {
    width: 100%;
    min-width: 0;
  }

  .stats-calendar-head h3 {
    letter-spacing: 1px;
  }

  .view[data-panel="calendar"] .page-head {
    flex-wrap: wrap;
  }

  .calendar-controls {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .calendar-month-title {
    order: -1;
    width: 100%;
    min-width: 0;
    text-align: left;
    font-size: 21px;
  }

  .calendar-month-picker {
    width: min(100%, 180px);
  }

  .calendar-layout > .panel:first-child {
    overflow: hidden;
  }

  .calendar-board {
    width: 100%;
    min-width: 0;
  }

  .calendar-day {
    min-height: 88px;
    padding: 6px;
  }

  .calendar-date {
    min-height: 22px;
    margin-bottom: 5px;
  }

  .calendar-event {
    padding: 5px;
  }

  .venue-list-panel .section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .venue-list-panel .search-field,
  .venue-list-panel .search-field input {
    width: 100%;
    min-width: 0;
  }

  .venue-list-panel #venuesTable.table-wrap {
    margin-right: 0;
    margin-left: 0;
    padding-right: 0;
    padding-left: 0;
  }

  .venue-card-list,
  .venue-card {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .venue-card {
    padding: 14px;
  }

  .venue-list-panel .admin-card-summary {
    grid-template-columns: 40px minmax(0, 1fr) var(--expand-control-size);
    gap: 10px;
    align-items: center;
    padding-right: 0;
  }

  .venue-list-panel .admin-card-summary .drag-handle {
    grid-column: 1;
    grid-row: 1;
    width: 40px;
    height: 40px;
  }

  .venue-list-panel .admin-card-title {
    grid-column: 2;
    grid-row: 1;
  }

  .venue-list-panel .admin-card-summary::after {
    grid-column: 3;
    grid-row: 1;
    position: static;
    justify-self: end;
    align-self: center;
    transform: none;
  }

  .venue-list-panel .admin-card-meta {
    grid-column: 2 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .product-list-panel .section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .product-list-panel .list-filters {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-left: 0;
  }

  .product-list-panel .list-filters .search-field,
  .product-list-panel .list-filters .btn {
    width: 100%;
    min-width: 0;
  }

  .product-list-panel #productsTable.table-wrap {
    margin-right: 0;
    margin-left: 0;
    padding-right: 0;
    padding-left: 0;
  }

  .product-card-list,
  .product-admin-card,
  .product-card-summary {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .product-admin-card {
    padding: 14px;
  }

  .product-card-summary {
    grid-template-columns: 40px minmax(0, 1fr) var(--expand-control-size);
    gap: 10px;
    align-items: center;
    padding-right: 0;
  }

  .product-card-summary .drag-handle {
    grid-column: 1;
    grid-row: 1;
  }

  .product-card-summary .product-image-admin {
    grid-column: 2;
    grid-row: 1;
    width: 68px;
    height: 68px;
    justify-self: start;
  }

  .product-card-summary::after {
    grid-column: 3;
    grid-row: 1;
    position: static;
    justify-self: end;
    align-self: center;
    transform: none;
  }

  .product-card-summary .admin-card-title {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .product-card-summary .admin-card-title h3 {
    word-break: normal;
    overflow-wrap: break-word;
  }

  .product-card-summary .admin-card-meta {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-content: flex-start;
  }
}

@media (min-width: 768px) {
  .admin-body {
    --admin-tablet-rail-width: 74px;
    --admin-tablet-topbar-height: 64px;
    padding-top: var(--admin-tablet-topbar-height);
  }

  .admin-body .topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: var(--admin-tablet-rail-width);
    z-index: 35;
    min-height: var(--admin-tablet-topbar-height);
    border-bottom: 1px solid rgba(220, 228, 221, 0.9);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: none;
  }

  .admin-body .topbar-inner {
    width: 100%;
    min-height: var(--admin-tablet-topbar-height);
    padding: 0 18px;
  }

  .admin-body .brand img,
  .admin-body .brand small {
    display: none;
  }

  .admin-body .brand strong {
    font-size: 18px;
    white-space: nowrap;
  }

  .admin-body .topbar .toolbar {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .admin-body .topbar .locale-field span {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
  }

  .admin-body .topbar .locale-field select {
    width: 112px;
  }

  .admin-body .topbar .admin-menu-toggle {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 45;
    width: var(--admin-tablet-rail-width);
    height: var(--admin-tablet-topbar-height);
    min-height: var(--admin-tablet-topbar-height);
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: var(--brand);
    color: #fff;
    padding: 0;
  }

  .admin-body .topbar .admin-menu-toggle span {
    display: none;
  }

  .admin-body .topbar .admin-menu-toggle .nav-icon {
    width: 29px;
    height: 29px;
    stroke-width: 2.2;
  }

  .admin-container {
    width: calc(100% - var(--admin-tablet-rail-width));
    margin-right: 0;
    margin-left: var(--admin-tablet-rail-width);
    padding: 24px 24px 32px;
  }

  .view[data-panel="dashboard"] .page-head {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(420px, 680px);
    align-items: start;
    gap: 18px;
  }

  .view[data-panel="dashboard"] .stats-range-control {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) 112px;
    align-items: stretch;
  }

  .view[data-panel="dashboard"] .stats-range-control .btn {
    min-height: 46px;
  }

  .admin-shell {
    display: block;
  }

  .admin-rail {
    position: fixed;
    top: var(--admin-tablet-topbar-height);
    bottom: 0;
    left: 0;
    z-index: 34;
    width: var(--admin-tablet-rail-width);
    max-height: none;
    overflow-y: auto;
    border: 0;
    background: var(--navy);
    backdrop-filter: none;
    padding: 12px 0;
  }

  .admin-rail .nav-panel,
  .admin-rail.is-menu-open .nav-panel {
    display: block;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
  }

  .admin-rail .nav-label {
    display: none;
  }

  .admin-tabs {
    gap: 4px;
  }

  .admin-tabs a {
    min-height: 62px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 4px;
    border: 0;
    border-radius: 0;
    color: var(--navy-soft);
    padding: 5px 4px;
    text-align: center;
  }

  .admin-tabs a span {
    display: none;
  }

  .admin-tabs a.active {
    background: var(--navy-2);
    color: #fff;
    box-shadow: none;
  }

  .admin-tabs .nav-icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }

  .calendar-layout {
    grid-template-columns: 1fr;
  }

  .calendar-layout > .panel:first-child {
    overflow: hidden;
  }

  .calendar-board {
    width: 100%;
    min-width: 0;
  }

  .calendar-day {
    min-height: 96px;
    padding: 6px;
  }

  .calendar-date {
    min-height: 22px;
    margin-bottom: 5px;
  }

  .calendar-event {
    padding: 5px;
  }
}

@media (min-width: 768px) {
  .admin-body:not(.admin-app-active) .topbar {
    left: 0;
  }

  .admin-body:not(.admin-app-active) .admin-container {
    width: min(1440px, calc(100% - 48px));
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 560px) {
  .admin-body:not(.admin-app-active) .admin-container {
    width: min(100% - 20px, 1440px);
  }
}

@media (max-width: 767px) {
  .admin-body .topbar .admin-menu-toggle {
    display: none !important;
  }

  .admin-body .brand {
    display: none;
  }

  .admin-rail {
    top: 0;
    padding-top: calc(var(--admin-mobile-topbar-height) + 8px);
  }

  .admin-rail-brand {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--admin-mobile-topbar-height);
    display: grid;
    place-items: center;
    background: var(--navy);
    text-decoration: none;
  }

  .admin-rail-brand img {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: #fff;
    object-fit: cover;
  }

  .admin-rail-brand span {
    display: none;
  }

  .admin-body:not(.admin-app-active) .topbar {
    left: 0;
  }

  .admin-body:not(.admin-app-active) .admin-container {
    width: min(100% - 20px, 1440px);
    margin-right: auto;
    margin-left: auto;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .admin-body {
    --admin-tablet-rail-width: 80px;
  }

  .admin-body .topbar .admin-menu-toggle {
    display: none !important;
  }

  .admin-rail {
    width: var(--admin-tablet-rail-width);
    top: 0;
    padding: calc(var(--admin-tablet-topbar-height) + 8px) 0 16px;
  }

  .admin-rail-brand {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: var(--admin-tablet-topbar-height);
    display: grid;
    place-items: center;
    background: var(--navy);
    color: #fff;
    padding: 0;
    text-decoration: none;
    font-weight: 900;
  }

  .admin-rail-brand img {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: var(--radius);
    background: #fff;
    object-fit: cover;
  }

  .admin-rail-brand span {
    display: none;
  }

  .admin-tabs a {
    min-height: 64px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 5px;
    border-radius: 0;
    padding: 5px 4px;
    text-align: center;
  }

  .admin-tabs a span {
    display: block;
    min-width: 0;
    color: currentColor;
    font-size: 12px;
    line-height: 1.2;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .admin-tabs .nav-icon {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }
}

@media (max-width: 960px) {
  .order-page-head {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .order-filter-bar .search-field {
    grid-column: 1 / -1;
    order: -1;
  }

  .order-view-switch {
    justify-self: stretch;
  }

  .order-view-switch button {
    flex: 1;
  }

  .order-timeline-toolbar,
  .timeline-slot,
  .timeline-order-main,
  .timeline-product-row,
  .timeline-product-picker.is-readonly .timeline-product-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .timeline-slot-time {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .timeline-order-total,
  .timeline-order-actions {
    justify-items: start;
    justify-content: flex-start;
  }

  .order-filter-bar input,
  .order-filter-bar .search-field,
  .order-filter-bar .filter-field {
    width: 100%;
  }

  .order-filter-bar button {
    justify-self: stretch;
    width: 100%;
  }
}

.admin-body .topbar .toolbar {
  margin-left: auto;
  justify-content: flex-end;
}

.admin-body .topbar .topbar-action {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  padding: 0;
  font-size: 0;
}

.admin-body .topbar .topbar-action .nav-icon {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
}

@media (max-width: 767px) {
  .admin-body .topbar .topbar-action {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
  }

  .admin-body .topbar .topbar-action .nav-icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }
}

@media (min-width: 1200px) {
  .admin-body {
    --admin-tablet-rail-width: 80px;
    --admin-tablet-topbar-height: 64px;
  }

  .admin-body .brand {
    display: none;
  }

  .admin-body .topbar .admin-menu-toggle {
    display: none !important;
  }

  .admin-shell {
    display: block;
  }

  .admin-rail {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 34;
    width: var(--admin-tablet-rail-width);
    max-height: none;
    overflow-y: auto;
    border: 0;
    background: var(--navy);
    backdrop-filter: none;
    padding: calc(var(--admin-tablet-topbar-height) + 8px) 0 16px;
  }

  .admin-rail-brand {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: var(--admin-tablet-topbar-height);
    display: grid;
    place-items: center;
    background: var(--navy);
    color: #fff;
    padding: 0;
    text-decoration: none;
    font-weight: 900;
  }

  .admin-rail-brand img {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: var(--radius);
    background: #fff;
    object-fit: cover;
  }

  .admin-rail-brand span,
  .admin-rail .nav-label {
    display: none;
  }

  .admin-rail .nav-panel,
  .admin-rail.is-menu-open .nav-panel {
    display: block;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
  }

  .admin-tabs {
    gap: 4px;
  }

  .admin-tabs a {
    min-height: 64px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 5px;
    border: 0;
    border-radius: 0;
    color: var(--navy-soft);
    padding: 5px 4px;
    text-align: center;
  }

  .admin-tabs a span {
    display: block;
    min-width: 0;
    color: currentColor;
    font-size: 12px;
    line-height: 1.2;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .admin-tabs a.active {
    background: var(--navy-2);
    color: #fff;
    box-shadow: none;
  }

  .admin-tabs .nav-icon {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }
}

@media (max-width: 1199px) {
  #ordersTable.table-wrap {
    overflow: visible;
  }

  .orders-table {
    display: none;
  }

  .orders-mobile-list {
    display: grid;
    gap: 12px;
  }

  .orders-pagination {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: stretch;
  }

  .orders-pagination span {
    grid-column: 1 / -1;
    order: -1;
    text-align: center;
  }

  .orders-pagination .btn {
    width: 100%;
  }

  .order-mobile-card {
    min-width: 0;
    display: grid;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 14px;
  }

  .order-mobile-card[open] {
    border-color: rgba(31, 111, 91, 0.22);
    background: #fbfdfc;
    box-shadow: 0 8px 20px rgba(28, 48, 41, 0.08);
  }

  .order-mobile-head,
  .order-mobile-meta,
  .order-mobile-controls {
    min-width: 0;
    display: grid;
    gap: 10px;
  }

  .order-mobile-head {
    grid-template-columns: minmax(0, 1fr) auto 38px;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    list-style: none;
  }

  .order-mobile-card[open] .order-mobile-head {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }

  .order-mobile-head::-webkit-details-marker {
    display: none;
  }

  .order-mobile-head::after {
    content: "+";
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--forest);
    font-size: 20px;
    font-weight: 850;
    line-height: 1;
  }

  .order-mobile-card[open] .order-mobile-head::after {
    content: "−";
  }

  .order-mobile-meta,
  .order-mobile-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-mobile-meta {
    padding: 2px 0;
  }

  .order-mobile-card span,
  .order-mobile-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
  }

  .order-mobile-card strong,
  .order-mobile-card small {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .order-mobile-card strong {
    font-size: 18px;
    line-height: 1.35;
  }

  .order-mobile-card small {
    color: var(--muted);
    font-size: 13px;
  }

  .order-mobile-total {
    min-width: 72px;
    text-align: right;
  }

  .order-mobile-total strong {
    color: var(--ink);
    font-size: 20px;
  }

  .order-mobile-items {
    min-width: 0;
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: var(--radius);
    background: #f6f8f5;
  }

  .order-mobile-items div {
    min-width: 0;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    overflow-wrap: anywhere;
  }

  .order-mobile-items .order-item-line {
    display: grid;
    justify-content: normal;
    gap: 4px;
    padding: 8px 0;
  }

  .order-mobile-items .order-item-line + .order-item-line {
    margin-top: 0;
    border-top: 1px solid rgba(220, 228, 221, 0.9);
  }

  .order-mobile-items .order-item-main {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
  }

  .order-mobile-items .order-item-name {
    color: var(--ink);
    font-size: 16px;
    font-weight: 850;
  }

  .order-mobile-items div strong {
    flex: 0 0 auto;
    color: var(--ink);
    font-size: 15px;
  }

  .order-mobile-items .order-item-qty {
    display: inline;
    flex: 0 0 auto;
    font-size: 14px;
    line-height: 1.2;
  }

  .order-mobile-items .order-item-options {
    justify-self: start;
    text-align: left;
  }

  .order-mobile-form {
    min-width: 0;
    display: grid;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
  }

  .order-mobile-controls label,
  .order-mobile-note {
    min-width: 0;
    display: grid;
    gap: 6px;
  }

  .order-mobile-controls label {
    align-content: start;
  }

  .order-mobile-controls select,
  .order-mobile-note textarea,
  .order-mobile-card .btn {
    width: 100%;
    min-width: 0;
  }

  .order-mobile-note textarea {
    min-height: 92px;
    resize: vertical;
  }

  .order-mobile-card .btn {
    min-height: 44px;
  }

  #ordersTable.table-wrap {
    border: 0;
    background: transparent;
    box-shadow: none;
    margin-right: 0;
    margin-left: 0;
    padding-right: 0;
    padding-left: 0;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .orders-mobile-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .order-mobile-card {
    gap: 0;
    padding: 0;
  }

  .order-mobile-head {
    grid-template-columns:
      minmax(150px, 1.2fr)
      minmax(116px, 0.9fr)
      minmax(116px, 0.9fr)
      minmax(84px, 0.7fr)
      minmax(92px, auto)
      38px;
    gap: 14px;
    padding: 14px;
  }

  .order-mobile-head::after {
    grid-column: 6;
  }

  .order-tablet-cell {
    min-width: 0;
    display: block;
  }

  .order-mobile-total {
    grid-column: 5;
    min-width: 0;
  }

  .order-tablet-status strong {
    color: var(--forest);
  }

  .order-mobile-meta {
    display: none;
  }

  .order-mobile-card[open] .order-mobile-head {
    padding-bottom: 14px;
  }

  .order-mobile-card[open] .order-mobile-items,
  .order-mobile-card[open] .order-mobile-form {
    margin: 14px;
  }

  .order-mobile-card[open] .order-mobile-items {
    margin-bottom: 0;
  }

  .order-mobile-card[open] .order-mobile-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 132px;
    align-items: end;
  }

  .order-mobile-card[open] .order-mobile-controls {
    display: contents;
  }

  .order-mobile-card[open] .order-mobile-note {
    grid-column: 1 / 3;
  }

  .order-mobile-card[open] .btn {
    grid-column: 3;
  }
}

@media (max-width: 560px) {
  .orders-pagination {
    grid-template-columns: minmax(0, 1fr);
  }
}

.order-list-card .order-list-summary {
  position: relative;
  grid-template-columns:
    minmax(150px, 1.05fr)
    minmax(120px, 0.85fr)
    minmax(120px, 0.85fr)
    minmax(84px, 0.65fr)
    minmax(0, 1.3fr)
    minmax(96px, auto)
    42px;
  gap: 14px;
  padding: 16px;
  cursor: pointer;
}

.order-list-card .order-list-summary::after {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  grid-column: 7;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--forest);
  content: "+";
  font-size: 20px;
  font-weight: 850;
  line-height: 1;
}

.order-list-card[open] .order-list-summary::after {
  content: "−";
}

.order-list-card .order-list-copy strong,
.order-list-card .order-list-customer strong,
.order-list-card .order-list-pickup strong,
.order-list-card .order-list-status strong,
.order-list-card .order-list-total strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.order-list-card .order-list-status strong {
  color: var(--forest);
}

.order-list-card .order-list-copy span,
.order-list-card .order-list-copy small,
.order-list-card .order-list-customer span,
.order-list-card .order-list-customer small,
.order-list-card .order-list-pickup span,
.order-list-card .order-list-pickup small,
.order-list-card .order-list-status span,
.order-list-card .order-list-status small,
.order-list-card .order-list-preview > span,
.order-list-card .order-list-total small,
.order-list-card .order-list-total span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.order-preview-list {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 2px 0 0;
  margin: 0;
  list-style: none;
}

.order-preview-summary {
  display: none;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.order-preview-item {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  padding-left: 14px;
  color: var(--muted);
}

.order-preview-item::before {
  position: absolute;
  top: 0.72em;
  left: 1px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--muted);
  content: "";
  opacity: 0.58;
}

.order-preview-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.order-preview-qty {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}

.order-preview-options {
  grid-column: 1 / -1;
  line-height: 1.45;
}

.order-list-card .order-list-total {
  min-width: 108px;
  justify-items: end;
  text-align: right;
}

.order-list-card .order-list-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.order-list-card .order-list-actions .btn {
  width: auto;
  min-width: 104px;
}

.order-list-card .order-list-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.order-list-card .order-list-context {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 14px 0;
}

.order-list-card .order-list-context span {
  min-width: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  color: var(--muted);
  padding: 6px 9px;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.order-list-card .order-list-context b {
  color: var(--forest);
  font-weight: 850;
  white-space: nowrap;
}

.order-mobile-items .order-item-edit-list {
  width: 100%;
  display: grid;
  gap: 10px;
}

.order-mobile-items .order-item-line,
.order-mobile-items .order-item-main {
  width: 100%;
}

.order-list-card .order-mobile-items,
.order-list-card .order-mobile-form {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  justify-items: stretch;
  padding: 16px;
  border-radius: var(--radius);
  background: #f6f8f5;
}

.order-list-card .order-mobile-items > *,
.order-list-card .order-mobile-items .order-item-edit-list,
.order-list-card .order-mobile-items .order-item-line,
.order-list-card .order-mobile-items .order-item-main,
.order-list-card .order-mobile-items .order-item-options {
  width: 100%;
  max-width: none;
  min-width: 0;
  justify-self: stretch;
}

.order-list-card .order-mobile-items .order-item-edit-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.order-list-card .order-mobile-items .order-item-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  justify-content: normal;
}

.order-list-card .order-mobile-items .order-item-edit-line:not(.is-readonly) .order-item-main {
  grid-template-columns: minmax(0, 1fr) auto 34px;
}

.order-list-card .order-mobile-items .order-item-qty {
  justify-self: end;
}

.order-list-card .order-mobile-form {
  grid-template-columns:
    minmax(0, 1fr);
  align-items: end;
  border: 1px solid var(--line);
  background: #fff;
}

.order-list-card[open] .order-mobile-form {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

.order-list-card .order-edit-section {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.order-list-card .order-edit-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.order-list-card .order-edit-section h3 {
  margin: 0;
  color: var(--forest);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
}

.order-list-card .order-payment-panel {
  gap: 12px;
}

.order-list-card .order-payment-layout {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px 16px;
}

.order-list-card .order-payment-details {
  margin: 0;
}

.order-list-card .order-payment-actions {
  align-self: end;
  border-top: 0;
  padding-top: 0;
  white-space: nowrap;
}

.order-list-card .order-payment-actions .btn {
  min-width: 88px;
}

.order-list-card .order-edit-grid {
  min-width: 0;
  display: grid;
  grid-template-columns:
    minmax(136px, 0.7fr)
    minmax(180px, 1fr)
    minmax(150px, 0.8fr);
  gap: 10px;
}

.order-list-card .order-edit-grid-secondary {
  grid-template-columns:
    minmax(180px, 0.95fr)
    minmax(220px, 1.15fr)
    minmax(150px, 0.8fr)
    minmax(150px, 0.8fr);
}

.order-list-card .order-mobile-note {
  grid-column: 1 / -1;
}

.order-list-card .order-mobile-note textarea {
  min-height: 78px;
}

.order-list-card .order-mobile-form > .btn {
  grid-column: 1 / -1;
  width: 100%;
}

.order-list-card[open] .order-edit-section,
.order-list-card[open] .order-mobile-form > .btn {
  grid-column: 1 / -1;
}

.order-list-card .order-items-head {
  display: grid;
  grid-template-columns: auto max-content;
  align-items: center;
  gap: 12px;
}

.order-list-card .order-items-head > span {
  white-space: nowrap;
}

.order-list-card .order-add-item-btn {
  width: auto;
  min-width: 156px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  justify-self: end;
  white-space: nowrap;
}

.order-add-item-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--surface-tint);
  color: var(--forest);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

@media (min-width: 768px) and (max-width: 1199px) {
  .order-list-card .order-list-summary {
    grid-template-columns:
      minmax(150px, 1.15fr)
      minmax(116px, 0.9fr)
      minmax(116px, 0.9fr)
      minmax(84px, 0.7fr)
      minmax(92px, auto)
      42px;
  }

  .order-list-card .order-list-preview {
    display: none;
  }

  .order-list-card .order-list-summary::after {
    grid-column: 6;
  }

  .order-list-card .order-list-context,
  .order-list-card .order-mobile-items,
  .order-list-card .order-mobile-form {
    margin-right: 0;
    margin-left: 0;
  }

  .order-list-card .order-list-context span {
    flex: 1 1 100%;
  }

  .order-list-card .order-mobile-items,
  .order-list-card .order-mobile-form {
    width: 100%;
  }

  .order-list-card .order-mobile-form {
    padding: 14px;
  }

  .order-list-card .order-edit-grid,
  .order-list-card .order-edit-grid-secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-list-card .order-edit-grid > label:nth-child(3) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .timeline-order-editor .row-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .timeline-order-editor .row-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .order-list-card .order-list-summary {
    grid-template-columns: minmax(0, 1fr) minmax(88px, auto) var(--expand-control-size);
    gap: 10px 12px;
    padding: 12px;
  }

  .order-list-card .order-list-summary::after {
    grid-column: 3;
  }

  .order-list-card .order-list-copy {
    grid-column: 1 / 3;
  }

  .order-list-card .order-list-customer {
    grid-column: 1;
  }

  .order-list-card .order-list-status {
    grid-column: 2 / -1;
    justify-items: end;
    text-align: right;
  }

  .order-list-card .order-list-pickup {
    display: none;
  }

  .order-list-card .order-list-preview {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid var(--line);
    padding-top: 8px;
  }

  .order-list-card .order-list-preview > span {
    flex: 0 0 auto;
  }

  .order-list-card .order-preview-list {
    display: none;
  }

  .order-list-card .order-preview-summary {
    min-width: 0;
    display: block;
  }

  .order-list-card .order-list-total {
    grid-column: 1 / -1;
    min-width: 0;
    justify-items: start;
    text-align: left;
  }

  .order-list-card .order-list-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .order-list-card .order-list-actions .btn {
    flex: 1 1 120px;
    min-width: 0;
  }

  .order-list-card .order-list-context {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin: 0;
  }

  .order-list-card .order-list-context span {
    width: 100%;
  }

  .order-list-card .order-payment-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .order-list-card .order-payment-actions {
    border-top: 1px solid var(--line);
    padding-top: 12px;
    justify-content: flex-start;
    white-space: normal;
  }

  .order-list-card .order-payment-actions .btn {
    flex: 1 1 120px;
    min-width: 0;
  }

  .order-list-card .order-mobile-items {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  .order-list-card .order-list-meta,
  .order-list-card .order-mobile-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .order-list-card .order-edit-grid,
  .order-list-card .order-edit-grid-secondary {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .order-list-card .order-mobile-note,
  .order-list-card .order-mobile-form > .btn {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 420px) {
  .order-list-card .order-list-summary {
    grid-template-columns: minmax(0, 1fr) var(--expand-control-size);
  }

  .order-list-card .order-list-summary::after {
    grid-column: 2;
  }

  .order-list-card .order-list-copy,
  .order-list-card .order-list-customer {
    grid-column: 1;
  }

  .order-list-card .order-list-status,
  .order-list-card .order-list-preview,
  .order-list-card .order-list-total {
    grid-column: 1 / -1;
  }

  .order-list-card .order-list-actions {
    grid-column: 1 / -1;
  }

  .order-list-card .order-items-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .order-list-card .order-add-item-btn {
    width: 100%;
    justify-self: stretch;
  }

  .order-list-card .order-list-status {
    justify-items: end;
    text-align: right;
  }
}

.option-create-panel summary::after,
.promotion-create-panel summary::after,
.pickup-create-panel summary::after,
.payment-create-panel summary::after,
.product-create-panel summary::after,
.template-create-panel summary::after,
.category-create-panel summary::after,
.venue-create-panel summary::after,
.admin-card-summary::after,
.order-mobile-head::after,
.order-list-card .order-list-summary::after {
  width: var(--expand-control-size);
  height: var(--expand-control-size);
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--expand-control-bg);
  color: var(--expand-control-color);
  content: "+";
  font-size: 20px;
  font-weight: 850;
  line-height: 1;
}

.option-create-panel[open] summary::after,
.promotion-create-panel[open] summary::after,
.pickup-create-panel[open] summary::after,
.payment-create-panel[open] summary::after,
.product-create-panel[open] summary::after,
.template-create-panel[open] summary::after,
.category-create-panel[open] summary::after,
.venue-create-panel[open] summary::after,
details[open] > .admin-card-summary::after,
.order-mobile-card[open] .order-mobile-head::after,
.order-list-card[open] .order-list-summary::after {
  content: "−";
}
