:root {
  --bg: #f4efe3;
  --bg-strong: #fff9f0;
  --panel: rgba(255, 252, 246, 0.94);
  --panel-strong: #fffaf2;
  --text: #22160e;
  --muted: #776353;
  --accent: #d95c22;
  --accent-dark: #8a3212;
  --stroke: rgba(34, 22, 14, 0.12);
  --shadow: 0 24px 70px rgba(106, 58, 24, 0.14);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(217, 92, 34, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(255, 201, 96, 0.2), transparent 28%),
    linear-gradient(180deg, #fcf7ee 0%, var(--bg) 100%);
}

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

button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  padding: 12px 18px;
  transition: transform 120ms ease, background 120ms ease;
}

button:hover {
  transform: translateY(-1px);
}

input,
textarea,
select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: white;
  padding: 12px 14px;
  color: var(--text);
}

textarea {
  min-height: 220px;
  resize: vertical;
}

.page-shell {
  max-width: 1480px;
  margin: 0 auto;
  padding: 28px;
}

.hero,
.panel,
.drawer-panel {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  padding: 34px;
}

.hero h1,
.panel h2,
.panel h3,
.subhead p {
  margin: 0;
}

.hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 0.94;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  color: var(--accent-dark);
}

.lede,
.subhead p,
.menu-meta,
.small,
.empty-state {
  color: var(--muted);
}

.hero-panel {
  display: grid;
  gap: 16px;
}

.hero-stat,
.session-banner,
.menu-meta,
.export-box,
.cart-item,
.member-order,
.combined-row,
.entry-panel,
.search-spotlight {
  border: 1px solid var(--stroke);
  background: var(--panel-strong);
  border-radius: 22px;
}

.hero-stat,
.entry-panel,
.search-spotlight {
  padding: 18px;
}

.label {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.main-stack,
.workspace,
.stack,
.two-up,
.workspace-grid,
.summary-layout,
.identity-layout {
  display: grid;
  gap: 20px;
}

.main-stack {
  margin-top: 20px;
}

.two-up,
.summary-layout {
  grid-template-columns: 1fr 1fr;
}

.workspace-grid {
  grid-template-columns: 1.4fr 0.9fr;
}

.panel {
  padding: 24px;
}

.panel-header,
.session-banner__title,
.session-banner__meta,
.cart-footer,
.export-header,
.search-spotlight__meta,
.product-card__topline,
.product-card__footer,
.drawer-topline,
.drawer-footer,
.cart-item__head,
.member-order-head,
.combined-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.panel-header {
  align-items: start;
  margin-bottom: 20px;
}

.panel-header.compact {
  margin-bottom: 16px;
}

.entry-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.subhead {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.identity-layout {
  max-width: 720px;
}

.identity-actions {
  display: flex;
  justify-content: flex-start;
}

.search-spotlight {
  display: grid;
  gap: 14px;
}

.search-shortcuts,
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.search-suggestions {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
}

.search-suggestion {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.search-suggestion.is-active,
.search-suggestion:hover {
  background: rgba(217, 92, 34, 0.1);
}

.search-suggestion__meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.handoff-box {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--stroke);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 244, 230, 0.9));
  margin-bottom: 18px;
}

.handoff-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.handoff-steps {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.search-spotlight__field span {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.search-spotlight__field input {
  font-size: 1.12rem;
  padding: 16px 18px;
}

.search-spotlight__meta {
  flex-wrap: wrap;
}

.session-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

label span {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.primary {
  background: linear-gradient(135deg, var(--accent) 0%, #ff8c3d 100%);
  color: white;
}

.secondary,
.ghost {
  background: rgba(217, 92, 34, 0.09);
  color: var(--accent-dark);
}

.ghost {
  border: 1px solid rgba(217, 92, 34, 0.15);
}

.hidden {
  display: none;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.segment-option {
  position: relative;
}

.segment-option input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.segment-option span {
  display: block;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background: white;
  text-align: center;
}

.segment-option input:checked + span {
  background: var(--text);
  color: white;
  border-color: var(--text);
}

.session-card__badge,
.pill,
.session-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(217, 92, 34, 0.1);
  color: var(--accent-dark);
  font-size: 0.84rem;
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-chip {
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(34, 22, 14, 0.05);
  color: var(--text);
}

.category-chip.active {
  background: var(--text);
  color: white;
}

.menu-grid,
.cart-items,
.member-orders,
.combined-orders {
  display: grid;
  gap: 18px;
}

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

.product-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: 22px;
  background: white;
}

.product-card__media,
.drawer-media {
  background: linear-gradient(160deg, rgba(255, 195, 84, 0.3), rgba(217, 92, 34, 0.18));
  background-size: cover;
  background-position: center;
}

.product-card__media {
  min-height: 150px;
}

.product-card__body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.product-card__topline,
.product-category,
.product-price,
.product-hint {
  font-size: 0.9rem;
}

.product-name {
  margin: 0;
  font-size: 1.18rem;
}

.product-description,
.drawer-description {
  margin: 0;
  color: var(--muted);
}

.product-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cart-item {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
}

.cart-item__controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.member-order,
.combined-row,
.session-banner,
.export-box {
  padding: 16px 18px;
}

.member-order ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

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

.drawer {
  position: fixed;
  inset: 0;
  z-index: 20;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(34, 22, 14, 0.45);
}

.drawer-panel {
  position: absolute;
  top: 24px;
  right: 24px;
  bottom: 24px;
  width: min(560px, calc(100vw - 32px));
  display: grid;
  grid-template-rows: auto 220px 1fr;
  overflow: hidden;
}

.drawer-close {
  justify-self: end;
  margin: 18px 18px 0 0;
}

.drawer-content {
  display: grid;
  gap: 16px;
  padding: 22px;
  overflow: auto;
}

.drawer-options {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.quantity-stepper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 999px;
  background: var(--bg-strong);
  border: 1px solid var(--stroke);
}

.quantity-stepper button {
  padding: 8px 12px;
}

@media (max-width: 1180px) {
  .workspace-grid,
  .summary-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .page-shell {
    padding: 16px;
  }

  .hero,
  .two-up {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 24px;
  }

  .panel {
    padding: 18px;
  }

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

  .drawer-panel {
    inset: auto 12px 12px 12px;
    top: 12px;
    width: auto;
  }
}
