:root {
  --ink: #2b1a15;
  --cocoa: #4f352d;
  --coffee: #6f4a3f;
  --caramel: #d69b57;
  --cream: #fff8eb;
  --paper: #fffdf8;
  --white: #ffffff;
  --sage: #6f8c68;
  --sage-soft: #edf4ea;
  --blue-gray: #596c78;
  --blue-soft: #eef4f6;
  --line: #ead8bf;
  --muted: #76625a;
  --danger: #b95b52;
  --radius: 8px;
  --shadow: 0 18px 44px rgba(43, 26, 21, 0.1);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  background: #f5efe5;
  color: var(--ink);
  overflow-x: hidden;
}

body.sidebar-open {
  overflow: hidden;
}

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

.app-main,
.panel-card,
.subscription-lock,
.subscription-lock > div,
.card-heading,
.card-heading > div,
.plan-card,
.plan-card p {
  min-width: 0;
}

.panel-import {
  display: grid;
  gap: 10px;
  border-top: 1px solid #eee1ce;
  margin-top: 18px;
  padding-top: 18px;
}

.panel-import h3 {
  margin: 0;
  font-size: 1.08rem;
}

.panel-import p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.panel-import textarea {
  min-height: 118px;
}

.panel-import small {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.4;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
}

.app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
  background: linear-gradient(180deg, #1d100d, #332019);
  color: var(--cream);
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sidebar-brand img {
  width: 132px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
}

.sidebar-close {
  display: none;
}

.restaurant-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 248, 235, 0.12);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 248, 235, 0.08);
}

.restaurant-chip > span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 6px rgba(111, 140, 104, 0.16);
}

.restaurant-chip strong,
.restaurant-chip small {
  display: block;
}

.restaurant-chip strong {
  font-size: 0.94rem;
}

.restaurant-chip small {
  margin-top: 2px;
  color: rgba(255, 248, 235, 0.58);
  font-size: 0.78rem;
}

.app-nav {
  display: grid;
  gap: 8px;
}

.app-nav button,
.menu-button,
.sidebar-close,
.panel-primary,
.panel-secondary,
.ai-button,
.integration-tile button {
  border: 0;
  border-radius: var(--radius);
  font-weight: 900;
}

.app-nav button {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  background: transparent;
  color: rgba(255, 248, 235, 0.7);
  text-align: left;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.app-nav button:hover,
.app-nav button:focus-visible,
.app-nav button.is-active {
  background: var(--cream);
  color: var(--ink);
}

.app-nav button.is-active {
  transform: translateX(2px);
}

.app-nav svg,
.menu-button svg,
.sidebar-close svg {
  width: 21px;
  height: 21px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.sidebar-savings {
  margin-top: auto;
  border: 1px solid rgba(214, 155, 87, 0.34);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(214, 155, 87, 0.12);
}

.sidebar-savings span {
  color: rgba(255, 248, 235, 0.68);
  font-size: 0.78rem;
  font-weight: 850;
}

.sidebar-savings strong {
  display: block;
  margin-top: 8px;
  color: var(--cream);
  font-size: 1.8rem;
  line-height: 1;
}

.sidebar-savings p {
  margin: 8px 0 0;
  color: rgba(255, 248, 235, 0.62);
  font-size: 0.86rem;
  line-height: 1.45;
}

.sidebar-backdrop {
  display: none;
}

.app-main {
  min-width: 0;
  padding: 24px;
}

.app-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.menu-button {
  width: 46px;
  height: 46px;
  display: none;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.app-header p,
.card-heading p,
.metric-card span,
.metric-card small {
  margin: 0;
  color: var(--muted);
}

.app-header p {
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-header h1 {
  margin: 4px 0 0;
  font-size: 1.8rem;
  line-height: 1;
  letter-spacing: 0;
}

.header-status {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #cfe0ca;
  border-radius: 999px;
  padding: 0 14px;
  background: var(--sage-soft);
  color: #47653f;
  font-size: 0.84rem;
  font-weight: 900;
  white-space: nowrap;
}

.header-config-link {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 900;
  white-space: nowrap;
}

.panel-locale select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 34px 0 12px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 900;
  outline: none;
}

.header-status span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sage);
}

.subscription-lock {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  border: 1px solid #d7b07d;
  border-radius: var(--radius);
  padding: 18px;
  background: linear-gradient(135deg, #fff7e8, #fffdf8);
  box-shadow: 0 14px 38px rgba(43, 26, 21, 0.1);
}

.subscription-lock[hidden] {
  display: none;
}

.subscription-lock span {
  display: block;
  color: var(--caramel);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.subscription-lock strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.12;
}

.subscription-lock p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.panel-view {
  display: none;
}

.panel-view.is-active {
  display: block;
}

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

.metric-card,
.panel-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(43, 26, 21, 0.07);
}

.metric-card {
  min-height: 146px;
  padding: 20px;
}

.metric-card strong {
  display: block;
  margin-top: 18px;
  font-size: 2rem;
  line-height: 1;
}

.metric-card small {
  display: block;
  margin-top: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.metric-card.highlight {
  border-color: rgba(111, 140, 104, 0.38);
  background: linear-gradient(145deg, var(--sage-soft), var(--paper));
}

.dashboard-grid,
.builder-layout,
.crm-grid,
.subscription-layout {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
}

.owner-ai-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 16px;
  margin-top: 16px;
}

.builder-layout {
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
}

.crm-grid,
.subscription-layout {
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
}

.market-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 16px;
  margin-top: 16px;
}

.panel-card {
  padding: 20px;
}

.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.card-heading h2,
.campaign-card h2,
.plan-card h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.15;
}

.card-heading p,
.campaign-card p,
.plan-card p {
  margin-top: 6px;
  line-height: 1.5;
}

.card-heading > span {
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--blue-soft);
  color: var(--blue-gray);
  font-size: 0.76rem;
  font-weight: 950;
}

.bars {
  height: 300px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  padding-top: 22px;
}

.bars span {
  position: relative;
  min-height: 48px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(180deg, var(--caramel), var(--coffee));
}

.bars b {
  position: absolute;
  left: 50%;
  bottom: -28px;
  color: var(--muted);
  font-size: 0.78rem;
  transform: translateX(-50%);
}

.signal-list,
.orders-list,
.dish-list,
.plan-features,
.invoice-list,
.market-grid,
.marketplace-sync-grid,
.privacy-preview,
.launch-checklist {
  display: grid;
  gap: 10px;
}

.signal-list div,
.order-row,
.dish-row,
.empty-panel-state,
.customer-row,
.integration-tile,
.plan-features span,
.invoice-list div,
.market-grid div,
.marketplace-sync-grid div,
.privacy-preview > div,
.privacy-preview article,
.launch-checklist span {
  border: 1px solid #eee1ce;
  border-radius: var(--radius);
  background: #fffaf2;
}

.signal-list div {
  padding: 16px;
}

.empty-panel-state {
  padding: 18px;
  color: var(--muted);
  font-weight: 850;
  line-height: 1.45;
}

.signal-list span,
.order-row span,
.customer-row span,
.billing-summary span,
.invoice-list span,
.market-grid span,
.marketplace-sync-grid span,
.privacy-preview span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.signal-list strong {
  display: block;
  margin-top: 6px;
  font-size: 1.25rem;
}

.launch-flow-card {
  margin-top: 16px;
}

.launch-flow-steps {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.launch-flow-steps button {
  min-height: 96px;
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid #eee1ce;
  border-radius: var(--radius);
  padding: 12px;
  background: #fffaf2;
  color: var(--coffee);
  font-size: 0.82rem;
  font-weight: 950;
  text-align: left;
  line-height: 1.18;
}

.launch-flow-steps span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(214, 155, 87, 0.18);
  color: var(--ink);
}

.launch-flow-steps button.is-ready {
  border-color: #cfe0ca;
  background: var(--sage-soft);
  color: #47653f;
}

.launch-flow-steps button.is-ready span {
  background: var(--sage);
  color: var(--white);
}

.launch-flow-steps button.is-active {
  border-color: var(--caramel);
  background: linear-gradient(145deg, #fff7e8, #fffaf2);
  box-shadow: 0 12px 28px rgba(214, 155, 87, 0.16);
}

.launch-flow-steps button.is-missing {
  color: var(--muted);
}

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

.owner-insights-grid > div,
.ai-campaign {
  border: 1px solid #eee1ce;
  border-radius: var(--radius);
  padding: 14px;
  background: #fffaf2;
}

.owner-insights-grid > div > span,
.ai-campaign span {
  display: block;
  margin-bottom: 10px;
  color: var(--caramel);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.top-dish-list,
.problem-list,
.ai-action-grid {
  display: grid;
  gap: 8px;
}

.top-dish-list article,
.problem-list article {
  min-height: 48px;
  display: grid;
  align-items: center;
  border: 1px solid #eee1ce;
  border-radius: var(--radius);
  padding: 10px;
  background: var(--white);
}

.top-dish-list article {
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px 10px;
}

.top-dish-list b {
  width: 28px;
  height: 28px;
  display: grid;
  grid-row: span 2;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.8rem;
}

.top-dish-list span,
.problem-list span,
.ai-action p,
.ai-campaign p {
  color: var(--muted);
  line-height: 1.42;
}

.top-dish-list span {
  overflow: hidden;
  color: var(--ink);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-dish-list strong {
  color: var(--muted);
  font-size: 0.82rem;
}

.problem-list article {
  border-color: #ead0c9;
  background: #fff3ef;
}

.problem-list article.is-ready {
  border-color: #cfe0ca;
  background: var(--sage-soft);
}

.problem-list article.is-ready span {
  color: #47653f;
}

.ai-assistant-card {
  background:
    linear-gradient(145deg, rgba(255, 250, 242, 0.96), rgba(237, 244, 234, 0.62)),
    var(--paper);
}

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

.ai-action {
  min-height: 154px;
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid #eee1ce;
  border-radius: var(--radius);
  padding: 13px;
  background: var(--white);
}

.ai-action strong {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.16;
}

.ai-action b {
  color: var(--caramel);
  font-size: 0.86rem;
}

.ai-action p {
  margin: 0;
  font-size: 0.86rem;
}

.ai-action-image {
  width: 100%;
  aspect-ratio: 1.7;
  border-radius: var(--radius);
  background-position: center;
  background-size: cover;
}

.ai-campaign {
  margin-top: 12px;
}

.ai-campaign strong {
  display: block;
  margin-bottom: 6px;
}

.menu-studio-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
  gap: 18px;
  align-items: end;
  border: 1px solid rgba(79, 53, 45, 0.12);
  border-radius: 18px;
  padding: clamp(22px, 3vw, 34px);
  background:
    linear-gradient(120deg, rgba(255, 253, 248, 0.96), rgba(255, 248, 235, 0.76)),
    radial-gradient(circle at 88% 22%, rgba(214, 155, 87, 0.2), transparent 28%);
  box-shadow:
    0 26px 70px rgba(43, 26, 21, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.menu-studio-hero h2 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.9rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.menu-studio-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  font-weight: 780;
  line-height: 1.5;
}

.menu-studio-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.menu-studio-summary article {
  min-height: 104px;
  display: grid;
  align-content: space-between;
  border: 1px solid rgba(79, 53, 45, 0.1);
  border-radius: 14px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 250, 242, 0.92)),
    #fffaf2;
}

.menu-studio-summary article.is-ready {
  border-color: rgba(111, 140, 104, 0.28);
  background:
    linear-gradient(180deg, rgba(237, 244, 234, 0.92), rgba(255, 253, 248, 0.8)),
    var(--sage-soft);
}

.menu-studio-summary article.is-warning {
  border-color: rgba(214, 155, 87, 0.34);
}

.menu-studio-summary span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
}

.menu-studio-summary strong {
  font-size: clamp(1.45rem, 2.5vw, 2.3rem);
  line-height: 1;
}

.menu-studio-card {
  overflow: hidden;
}

.menu-ai-workbench {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.menu-ai-workbench button {
  min-height: 56px;
  border: 1px solid rgba(79, 53, 45, 0.12);
  border-radius: 14px;
  padding: 0 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 250, 242, 0.92)),
    #fffaf2;
  color: var(--ink);
  font-weight: 950;
  text-align: left;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.menu-ai-workbench button:hover,
.menu-ai-workbench button:focus-visible {
  border-color: rgba(214, 155, 87, 0.5);
  box-shadow: 0 16px 34px rgba(43, 26, 21, 0.1);
  transform: translateY(-2px);
}

.menu-studio-note {
  display: block;
  margin-bottom: 16px;
  color: var(--sage);
  font-weight: 900;
  line-height: 1.4;
}

.menu-category-map {
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(79, 53, 45, 0.1);
  border-bottom: 1px solid rgba(79, 53, 45, 0.1);
  margin-bottom: 18px;
  padding: 16px 0;
}

.menu-category-map > span {
  color: var(--caramel);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.menu-category-map > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.menu-category-map button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--coffee);
  font-weight: 950;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.menu-category-map button:hover,
.menu-category-map button:focus-visible,
.menu-category-map button.is-active {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 14px 28px rgba(43, 26, 21, 0.1);
  transform: translateY(-1px);
}

.menu-category-map strong {
  min-width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(214, 155, 87, 0.18);
  color: var(--ink);
  font-size: 0.78rem;
}

.menu-category-map p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.menu-command-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(190px, 0.8fr) auto;
  gap: 10px;
  align-items: end;
  border: 1px solid rgba(79, 53, 45, 0.1);
  border-radius: 18px;
  margin: 16px 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.62);
}

.menu-command-bar label,
.menu-editor-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 950;
}

.menu-command-bar span,
.menu-sync-card > span,
.menu-health-grid span,
.menu-editor-head span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.menu-command-bar input,
.menu-command-bar select,
.menu-editor-form input,
.menu-editor-form textarea,
.menu-editor-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 12px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  outline: none;
}

.menu-command-bar input:focus,
.menu-command-bar select:focus,
.menu-editor-form input:focus,
.menu-editor-form textarea:focus,
.menu-editor-form select:focus {
  border-color: rgba(214, 155, 87, 0.6);
  box-shadow: 0 0 0 4px rgba(214, 155, 87, 0.14);
}

.menu-ops-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 14px;
}

.menu-ops-grid .menu-category-map {
  margin: 0;
}

.menu-sync-card,
.menu-health-grid article,
.menu-product-card,
.menu-editor-shell {
  border: 1px solid rgba(79, 53, 45, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 250, 242, 0.92)),
    #fffaf2;
}

.menu-sync-card {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
}

.menu-sync-card strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.menu-sync-card p,
.menu-sync-card small {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 820;
  line-height: 1.45;
}

.menu-sync-card small {
  color: var(--sage);
  font-weight: 950;
}

.menu-health-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.menu-health-grid article {
  min-height: 96px;
  display: grid;
  align-content: space-between;
  padding: 13px;
}

.menu-health-grid article.is-ready {
  border-color: rgba(111, 140, 104, 0.26);
  background: linear-gradient(180deg, rgba(237, 244, 234, 0.94), rgba(255, 253, 248, 0.82));
}

.menu-health-grid article.is-warning {
  border-color: rgba(214, 155, 87, 0.34);
}

.menu-health-grid strong {
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1;
}

.menu-health-grid small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.menu-product-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.menu-product-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.menu-product-card:hover,
.menu-product-card:focus-within,
.menu-product-card.is-active {
  border-color: rgba(214, 155, 87, 0.54);
  box-shadow: 0 18px 36px rgba(43, 26, 21, 0.09);
  transform: translateY(-1px);
}

.menu-product-card.is-paused {
  opacity: 0.72;
}

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

.menu-product-head button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.menu-product-head span,
.menu-product-head small {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.menu-product-head strong {
  display: block;
  margin: 3px 0;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.18;
}

.menu-product-head > div {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.menu-product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.42;
}

.menu-product-tags,
.menu-product-actions,
.menu-chip-bank,
.menu-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.menu-product-tags span,
.menu-chip-bank button {
  border: 1px solid rgba(79, 53, 45, 0.08);
  border-radius: 999px;
  padding: 7px 9px;
  background: rgba(111, 140, 104, 0.12);
  color: #526d4c;
  font-size: 0.74rem;
  font-weight: 950;
}

.menu-product-actions button,
.menu-chip-bank button,
.menu-editor-head button {
  min-height: 34px;
  border: 1px solid rgba(79, 53, 45, 0.1);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--coffee);
  font-size: 0.74rem;
  font-weight: 950;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.menu-product-actions button:hover,
.menu-product-actions button:focus-visible,
.menu-chip-bank button:hover,
.menu-chip-bank button:focus-visible,
.menu-editor-head button:hover,
.menu-editor-head button:focus-visible {
  border-color: rgba(214, 155, 87, 0.5);
  box-shadow: 0 10px 20px rgba(43, 26, 21, 0.08);
  transform: translateY(-1px);
}

.menu-editor-shell {
  margin-bottom: 18px;
  padding: 14px;
}

.menu-editor-form {
  display: grid;
  gap: 12px;
}

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

.menu-editor-head strong {
  display: block;
  margin-top: 4px;
  font-size: 1.25rem;
}

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

.menu-editor-grid .wide {
  grid-column: 1 / -1;
}

.menu-editor-form textarea {
  min-height: 96px;
  resize: vertical;
}

.menu-editor-actions {
  justify-content: flex-end;
}

.menu-section-heading {
  border-bottom: 0;
  margin-bottom: 12px;
  padding-bottom: 0;
}

.site-designer-panel {
  border-top: 1px solid rgba(79, 53, 45, 0.1);
  margin-top: 20px;
  padding-top: 18px;
}

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

.builder-settings {
  display: grid;
  gap: 14px;
  border-bottom: 1px solid #eee1ce;
  margin-bottom: 18px;
  padding-bottom: 18px;
}

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

.builder-fields label,
.color-grid label,
.section-toggles label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 900;
}

.builder-fields textarea {
  min-height: 90px;
}

.builder-fields input,
.builder-fields textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  background: var(--white);
  color: var(--ink);
  outline: none;
}

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

.color-grid label {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: #fffaf2;
}

.color-grid input {
  width: 100%;
  height: 36px;
  border: 0;
  padding: 0;
  background: transparent;
}

.section-toggles,
.preview-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.section-toggles label {
  min-height: 38px;
  display: inline-flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: var(--white);
}

.preview-mode button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: var(--white);
  color: var(--ink);
  font-weight: 950;
}

.preview-mode button.is-active {
  background: var(--ink);
  color: var(--cream);
}

.builder-divider {
  border-bottom: 1px solid #eee1ce;
  margin-bottom: 18px;
  padding-bottom: 14px;
}

.builder-divider h3 {
  margin: 0;
  font-size: 1rem;
}

.builder-divider p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.dish-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
}

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

.studio-dish-form label:nth-child(3),
.studio-dish-form label:nth-child(7),
.studio-dish-form .ai-button,
.studio-dish-form .panel-primary {
  grid-column: 1 / -1;
}

.dish-form input,
.dish-form textarea,
.dish-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 13px;
  background: var(--white);
  color: var(--ink);
  outline: none;
}

.dish-form input,
.dish-form select {
  min-height: 46px;
}

.dish-form textarea {
  min-height: 118px;
  resize: vertical;
}

.dish-form input:focus,
.dish-form textarea:focus,
.dish-form select:focus {
  border-color: var(--caramel);
  box-shadow: 0 0 0 4px rgba(214, 155, 87, 0.18);
}

.panel-primary,
.panel-secondary,
.ai-button {
  min-height: 46px;
  padding: 0 16px;
}

.panel-primary {
  background: var(--ink);
  color: var(--cream);
}

.panel-secondary,
.ai-button {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.restaurant-live {
  overflow: hidden;
  padding: 0;
  background: var(--live-paper, #fffaf2);
}

.restaurant-live[data-live-preview="mobile"] {
  max-width: 410px;
  margin-inline: auto;
}

.restaurant-live.hide-hero .restaurant-hero,
.restaurant-live.hide-menu .dish-list,
.restaurant-live.hide-order .publish-strip,
.restaurant-live.hide-privacy .guest-tools {
  opacity: 0.32;
  filter: grayscale(0.5);
}

.preview-top {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  background: var(--live-ink, #1d100d);
  color: rgba(255, 248, 235, 0.72);
  font-size: 0.84rem;
  font-weight: 900;
}

.preview-top strong {
  color: var(--cream);
}

.restaurant-hero {
  position: relative;
  overflow: hidden;
  padding: 26px;
  background:
    linear-gradient(135deg, var(--live-ink, rgba(43, 26, 21, 0.96)) 0 58%, var(--live-accent, rgba(79, 53, 45, 0.9)) 58% 78%, var(--live-paper, var(--cream)) 78%),
    repeating-linear-gradient(90deg, rgba(255, 248, 235, 0.06) 0 1px, transparent 1px 70px);
  color: var(--live-paper, var(--cream));
}

.restaurant-hero img {
  position: relative;
  z-index: 1;
  width: 126px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.18));
}

.restaurant-hero h2 {
  position: relative;
  z-index: 1;
  max-width: 400px;
  margin: 28px 0 0;
  font-size: 2.35rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.restaurant-hero p {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 12px 0 0;
  color: color-mix(in srgb, var(--live-paper, var(--cream)) 82%, white);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.45;
}

.live-hero-image {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(42%, 220px);
  aspect-ratio: 1.25;
  border: 1px solid rgba(255, 248, 235, 0.28);
  border-radius: 18px;
  background:
    radial-gradient(circle at 35% 38%, var(--live-paper, var(--cream)) 0 18%, transparent 19%),
    radial-gradient(circle at 66% 62%, var(--live-accent, var(--caramel)) 0 20%, transparent 21%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(0, 0, 0, 0.08));
  background-position: center;
  background-size: cover;
  opacity: 0.9;
}

.restaurant-live[data-live-preview="mobile"] .restaurant-hero {
  min-height: 520px;
}

.restaurant-live[data-live-preview="mobile"] .restaurant-hero h2 {
  font-size: 2rem;
}

.restaurant-live[data-live-preview="mobile"] .live-hero-image {
  position: relative;
  right: auto;
  bottom: auto;
  width: 100%;
  margin-top: 18px;
}

.template-live-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 14px;
  align-items: center;
  border-bottom: 1px solid #eee1ce;
  padding: 14px 16px;
  background: rgba(255, 250, 242, 0.88);
}

.template-live-note span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.template-live-note strong {
  color: var(--ink);
  font-size: 1rem;
}

.template-live-note a {
  grid-row: 1 / span 2;
  grid-column: 2;
  border: 1px solid #ead8bf;
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--coffee);
  font-size: 0.82rem;
  font-weight: 950;
}

.publish-strip {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  border-bottom: 1px solid #eee1ce;
  padding: 16px;
  background: linear-gradient(135deg, rgba(255, 250, 242, 0.94), rgba(237, 244, 234, 0.72));
}

.qr-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  align-self: start;
  aspect-ratio: 1;
  border: 1px solid #d8c4a9;
  border-radius: var(--radius);
  padding: 8px;
  background: var(--white);
}

.qr-card span {
  border-radius: 3px;
  background: var(--live-ink, var(--ink));
}

.qr-card span:nth-child(2),
.qr-card span:nth-child(6),
.qr-card span:nth-child(8) {
  background: var(--live-accent, var(--caramel));
}

.qr-card span:nth-child(5) {
  background: transparent;
  box-shadow: inset 0 0 0 4px var(--live-ink, var(--ink));
}

.publish-strip > div:last-child {
  min-width: 0;
}

.publish-strip span,
.publish-strip small,
.guest-tools span,
.dish-meta span {
  font-size: 0.76rem;
  font-weight: 900;
}

.publish-strip > div:last-child > span {
  color: var(--muted);
  text-transform: uppercase;
}

.publish-strip strong {
  overflow: hidden;
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publish-strip p {
  margin: 7px 0 10px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.42;
}

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

.publish-actions button,
.publish-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 950;
  text-decoration: none;
}

.publish-strip small {
  display: block;
  margin-top: 9px;
  color: var(--sage);
}

.guest-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid #eee1ce;
  padding: 12px 16px;
  background: var(--white);
}

.guest-tools span {
  border-radius: 999px;
  padding: 8px 10px;
  background: color-mix(in srgb, var(--live-accent, var(--caramel)) 14%, white);
  color: var(--coffee);
}

.dish-list {
  padding: 16px;
  background: var(--white);
}

.import-review {
  display: grid;
  gap: 10px;
  border: 1px solid #ead8bf;
  border-radius: var(--radius);
  padding: 12px;
  background: #fffaf2;
}

.import-review[hidden] {
  display: none;
}

.import-review h4 {
  margin: 0;
  font-size: 1rem;
}

.import-checks,
.import-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.import-checks span {
  border-radius: 999px;
  padding: 7px 9px;
  background: var(--white);
  color: var(--coffee);
  font-size: 0.74rem;
  font-weight: 950;
}

.import-checks span.is-ready {
  background: var(--sage-soft);
  color: #47653f;
}

.import-checks span.is-warning {
  background: #fff3df;
  color: #9a6140;
}

.import-draft-list {
  display: grid;
  gap: 8px;
  max-height: 290px;
  overflow: auto;
}

.import-draft-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  border: 1px solid #eee1ce;
  border-radius: var(--radius);
  padding: 10px;
  background: var(--white);
}

.import-draft-list h5 {
  margin: 0;
  font-size: 0.95rem;
}

.import-draft-list p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.import-draft-list small {
  grid-column: 1 / -1;
  color: var(--danger);
}

.import-actions button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: var(--white);
  color: var(--ink);
  font-weight: 950;
}

.import-actions button:first-child {
  background: var(--ink);
  color: var(--cream);
}

.dish-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
}

.dish-art {
  width: 68px;
  aspect-ratio: 1;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent),
    linear-gradient(145deg, #f6dfbd, #d69b57 54%, #9a6140);
  background-size: cover;
  background-position: center;
}

.dish-art.has-image {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.38),
    0 12px 22px rgba(43, 26, 21, 0.12);
}

.dish-title-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.dish-row h3 {
  margin: 0;
  font-size: 1rem;
}

.dish-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.dish-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.dish-meta span,
.addon-list span {
  border-radius: 999px;
  padding: 5px 7px;
  background: #f3eadb;
  color: var(--coffee);
}

.addon-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.addon-list span {
  background: rgba(111, 140, 104, 0.14);
  color: #526d4c;
  font-size: 0.76rem;
  font-weight: 900;
}

.dish-price-stack {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.dish-price-stack strong {
  color: var(--caramel);
  white-space: nowrap;
}

.dish-price-stack small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-align: right;
}

.quality-pill {
  flex: none;
  border-radius: 999px;
  padding: 6px 8px;
  background: var(--blue-soft);
  color: var(--blue-gray);
  font-size: 0.72rem;
  font-weight: 950;
}

.quality-pill.is-ready {
  background: var(--sage-soft);
  color: #47653f;
}

.quality-pill.is-warning {
  background: #fff3df;
  color: #9a6140;
}

.quality-pill.is-missing {
  background: #fff3ef;
  color: #8a4a3e;
}

.dish-ai-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.dish-ai-controls button {
  min-height: 32px;
  border: 1px solid rgba(79, 53, 45, 0.1);
  border-radius: 999px;
  padding: 0 9px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--coffee);
  font-size: 0.74rem;
  font-weight: 950;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.dish-ai-controls button:hover,
.dish-ai-controls button:focus-visible {
  border-color: rgba(214, 155, 87, 0.46);
  box-shadow: 0 10px 20px rgba(43, 26, 21, 0.08);
  transform: translateY(-1px);
}

.orders-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 14px;
  align-items: start;
}

.order-ops-card {
  background:
    radial-gradient(circle at 12% 0%, rgba(214, 155, 87, 0.12), transparent 32%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.96), rgba(255, 248, 235, 0.92));
}

.order-ops-heading {
  align-items: flex-start;
}

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

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

.order-now-stats article {
  border: 1px solid rgba(79, 53, 45, 0.1);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 30px rgba(43, 26, 21, 0.05);
}

.order-now-stats span,
.order-now-stats small,
.order-ops-toolbar span,
.priority-list-head span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.order-now-stats strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1;
}

.order-now-stats small {
  margin-top: 8px;
  letter-spacing: 0;
  text-transform: none;
}

.order-ops-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(320px, 1.5fr) minmax(180px, 0.65fr);
  gap: 10px;
  align-items: end;
  border: 1px solid rgba(79, 53, 45, 0.1);
  border-radius: 18px;
  margin-bottom: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.order-ops-toolbar label {
  display: grid;
  gap: 6px;
}

.order-ops-toolbar input,
.order-ops-toolbar select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(79, 53, 45, 0.13);
  border-radius: 999px;
  padding: 0 14px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  outline: none;
}

.order-ops-toolbar input:focus,
.order-ops-toolbar select:focus {
  border-color: rgba(214, 155, 87, 0.62);
  box-shadow: 0 0 0 4px rgba(214, 155, 87, 0.14);
}

.order-status-filter {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.order-status-filter button {
  min-height: 44px;
  border: 1px solid rgba(79, 53, 45, 0.1);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--coffee);
  font-size: 0.76rem;
  font-weight: 950;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.order-status-filter button:hover,
.order-status-filter button:focus-visible {
  box-shadow: 0 12px 24px rgba(43, 26, 21, 0.08);
  transform: translateY(-1px);
}

.order-status-filter button.is-active {
  background: var(--ink);
  color: var(--cream);
}

.order-ops-layout {
  grid-template-columns: minmax(0, 1.42fr) minmax(340px, 0.58fr);
}

.order-ops-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.order-kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.order-kanban-column {
  min-height: 520px;
  border: 1px solid rgba(79, 53, 45, 0.1);
  border-radius: 18px;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 250, 242, 0.9)),
    #fffaf2;
}

.order-kanban-column header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding: 4px 4px 0;
}

.order-kanban-column header span {
  display: block;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 950;
}

.order-kanban-column header small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.order-kanban-column header > strong {
  min-width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.85rem;
}

.order-kanban-column.is-new header > strong {
  background: #9a6140;
}

.order-kanban-column.is-progress header > strong {
  background: var(--blue-gray);
}

.order-kanban-column.is-ready header > strong {
  background: var(--sage);
}

.order-kanban-column.is-done {
  opacity: 0.86;
}

.order-kanban-stack {
  display: grid;
  gap: 8px;
}

.order-kanban-stack > p {
  margin: 14px 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.35;
}

.order-ticket {
  border: 1px solid rgba(79, 53, 45, 0.1);
  border-radius: 16px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 26px rgba(43, 26, 21, 0.06);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.order-ticket:hover,
.order-ticket:focus-within,
.order-ticket.is-active {
  border-color: rgba(214, 155, 87, 0.56);
  box-shadow: 0 18px 34px rgba(43, 26, 21, 0.1);
  transform: translateY(-1px);
}

.order-ticket-main {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.order-ticket-main span,
.order-ticket-main small,
.order-ticket-meta span,
.order-ticket-done {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.order-ticket-main strong {
  display: block;
  overflow: hidden;
  margin: 5px 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-ticket-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid rgba(79, 53, 45, 0.08);
  margin-top: 9px;
  padding-top: 9px;
}

.order-ticket-meta span {
  min-width: 0;
  white-space: normal;
}

.order-ticket-meta strong {
  color: var(--caramel);
  white-space: nowrap;
}

.order-ticket-action {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  margin-top: 10px;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.76rem;
  font-weight: 950;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    opacity 160ms ease;
}

.order-ticket-action:hover,
.order-ticket-action:focus-visible {
  box-shadow: 0 14px 26px rgba(43, 26, 21, 0.14);
  transform: translateY(-1px);
}

.order-ticket-action:disabled,
.order-ops-actions button:disabled {
  cursor: wait;
  opacity: 0.64;
  transform: none;
}

.order-ticket-done {
  border-radius: 999px;
  margin-top: 10px;
  padding: 10px;
  background: rgba(111, 140, 104, 0.12);
  color: var(--sage);
  text-align: center;
}

.priority-orders-list {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(79, 53, 45, 0.1);
  border-radius: 18px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.priority-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px;
}

.priority-list-head strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.order-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  color: var(--ink);
  text-align: left;
}

.order-row strong {
  display: block;
  margin-top: 4px;
}

.order-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.order-row.is-active {
  border-color: var(--caramel);
  box-shadow: 0 12px 28px rgba(43, 26, 21, 0.09);
}

.order-detail {
  position: sticky;
  top: 104px;
  border: 1px solid #eee1ce;
  border-radius: var(--radius);
  padding: 16px;
  background: #fffaf2;
}

.detail-head {
  border-bottom: 1px solid #ead8bf;
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.detail-head span,
.detail-head small,
.detail-grid span,
.payment-detail-grid span,
.detail-note span,
.detail-total span,
.order-status-history > span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
}

.detail-head strong {
  display: block;
  margin-top: 5px;
  font-size: 1.45rem;
}

.detail-head small {
  margin-top: 5px;
}

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

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

.detail-grid div,
.payment-detail-grid div,
.detail-items div,
.detail-note,
.detail-total {
  border: 1px solid #ead8bf;
  border-radius: var(--radius);
  padding: 12px;
  background: var(--white);
}

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

.detail-grid strong,
.payment-detail-grid strong {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 5px;
  font-size: 0.94rem;
}

.detail-items {
  display: grid;
  gap: 8px;
}

.detail-items div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
}

.detail-items span {
  font-weight: 950;
}

.detail-items small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-weight: 800;
}

.detail-note {
  margin-top: 10px;
}

.detail-note p {
  margin: 5px 0 0;
  color: var(--ink);
  line-height: 1.45;
}

.detail-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.detail-total strong {
  color: var(--caramel);
  font-size: 1.35rem;
}

.order-status-history {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(79, 53, 45, 0.1);
  border-radius: var(--radius);
  margin-top: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.76);
}

.order-status-history article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  border-top: 1px solid rgba(79, 53, 45, 0.08);
  padding-top: 8px;
}

.order-status-history article:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.order-status-history strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.order-status-history small {
  color: var(--muted);
  font-weight: 850;
}

.order-status-history p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.order-command-panel {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(79, 53, 45, 0.12);
  border-radius: var(--radius);
  margin-top: 12px;
  padding: 12px;
  background:
    radial-gradient(circle at 12% 18%, rgba(214, 155, 87, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 248, 235, 0.94));
}

.order-command-panel > span {
  color: var(--caramel);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.order-command-panel > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.order-command-panel button {
  min-height: 40px;
  border: 1px solid rgba(79, 53, 45, 0.12);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--coffee);
  font-size: 0.78rem;
  font-weight: 950;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.order-command-panel button:hover,
.order-command-panel button:focus-visible {
  border-color: rgba(214, 155, 87, 0.48);
  box-shadow: 0 12px 22px rgba(43, 26, 21, 0.1);
  transform: translateY(-1px);
}

.order-command-panel button.is-active {
  background: var(--ink);
  color: var(--cream);
}

.order-command-panel button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.order-command-panel small {
  color: var(--muted);
  font-weight: 850;
  line-height: 1.35;
}

.status-pill {
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--blue-soft);
  color: var(--blue-gray);
  font-size: 0.78rem;
  font-weight: 950;
}

.status-pill.new {
  background: #fff0df;
  color: var(--caramel);
}

.crm-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 18px;
  align-items: stretch;
  border: 1px solid rgba(79, 53, 45, 0.12);
  border-radius: var(--radius);
  margin-bottom: 18px;
  padding: clamp(22px, 4vw, 38px);
  background:
    radial-gradient(circle at 12% 18%, rgba(214, 155, 87, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(237, 244, 234, 0.66)),
    var(--paper);
  box-shadow: var(--shadow);
}

.crm-hero h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 0.9;
}

.crm-hero p {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  font-weight: 800;
  line-height: 1.45;
}

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

.crm-summary article {
  min-height: 128px;
  display: grid;
  align-content: space-between;
  border: 1px solid rgba(79, 53, 45, 0.11);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.crm-summary span,
.crm-segments button,
.customer-profile-head span,
.customer-profile-grid span,
.customer-contact-grid span,
.customer-next-action span,
.crm-timeline span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
}

.crm-summary strong {
  color: var(--ink);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.crm-workspace,
.crm-automation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.crm-automation-grid {
  margin-top: 18px;
}

.crm-list-card,
.customer-profile-card,
.crm-automation-card,
.crm-timeline-card {
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.98), rgba(255, 248, 235, 0.88)),
    var(--paper);
}

.crm-segments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.crm-segments button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--coffee);
}

.crm-segments strong {
  min-width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(214, 155, 87, 0.18);
  color: var(--ink);
  font-size: 0.78rem;
}

.customer-table {
  display: grid;
  gap: 10px;
}

.customer-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(79, 53, 45, 0.1);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  text-align: left;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.customer-row:hover,
.customer-row:focus-visible,
.customer-row.is-active {
  border-color: rgba(214, 155, 87, 0.55);
  box-shadow: 0 14px 32px rgba(43, 26, 21, 0.1);
  transform: translateY(-1px);
}

.customer-row strong {
  display: block;
}

.customer-row b {
  color: var(--sage);
}

.customer-profile-card {
  position: sticky;
  top: 120px;
}

.customer-profile-head {
  border-bottom: 1px solid rgba(79, 53, 45, 0.1);
  margin-bottom: 14px;
  padding-bottom: 14px;
}

.customer-profile-head span {
  color: var(--caramel);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.customer-profile-head h2 {
  margin: 8px 0 0;
  font-size: clamp(1.9rem, 3vw, 3.2rem);
  line-height: 0.96;
}

.customer-profile-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 850;
}

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

.customer-profile-grid div,
.customer-contact-grid div,
.customer-next-action,
.crm-timeline article {
  border: 1px solid rgba(79, 53, 45, 0.1);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.customer-profile-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 1.4rem;
}

.customer-contact-grid {
  margin-top: 10px;
}

.customer-contact-grid strong {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 5px;
  font-size: 0.92rem;
}

.customer-next-action {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.customer-next-action strong {
  line-height: 1.35;
}

.customer-next-action button,
.crm-automation-actions button {
  min-height: 42px;
  border: 1px solid rgba(79, 53, 45, 0.12);
  border-radius: 999px;
  padding: 0 14px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 950;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.customer-next-action button:hover,
.customer-next-action button:focus-visible,
.crm-automation-actions button:hover,
.crm-automation-actions button:focus-visible {
  border-color: rgba(214, 155, 87, 0.52);
  box-shadow: 0 16px 30px rgba(43, 26, 21, 0.16);
  transform: translateY(-1px);
}

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

.crm-automation-actions button:last-child {
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.82);
  color: var(--coffee);
}

.crm-automation-card small {
  display: block;
  margin-top: 14px;
  color: var(--sage);
  font-weight: 900;
  line-height: 1.4;
}

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

.crm-timeline article {
  position: relative;
  padding-left: 40px;
}

.crm-timeline article::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--caramel);
  box-shadow: 0 0 0 7px rgba(214, 155, 87, 0.14);
}

.crm-timeline strong {
  display: block;
  margin-top: 5px;
  line-height: 1.35;
}

.campaign-card {
  align-self: start;
  background: linear-gradient(145deg, #1d100d, #4f352d);
  color: var(--cream);
}

.campaign-card p {
  color: rgba(255, 248, 235, 0.72);
}

.campaign-card small {
  display: block;
  margin-top: 14px;
  color: var(--cream);
  font-weight: 900;
}

.campaign-card .panel-primary {
  margin-top: 12px;
  background: var(--cream);
  color: var(--ink);
}

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

.integration-tile {
  padding: 18px;
}

.integration-tile h2 {
  margin: 0;
  font-size: 1.15rem;
}

.integration-tile p {
  color: var(--muted);
  line-height: 1.5;
}

.integration-tile button {
  min-height: 38px;
  padding: 0 13px;
  background: var(--sage-soft);
  color: var(--sage);
}

.integration-tile button.off {
  background: var(--blue-soft);
  color: var(--blue-gray);
}

.plan-card {
  background: linear-gradient(145deg, #1d100d, #4f352d);
  color: var(--cream);
}

.plan-card span {
  color: var(--cream);
  font-weight: 950;
}

.plan-card h2 {
  margin-top: 18px;
  font-size: 4rem;
}

.plan-card strong {
  display: block;
  margin-top: 12px;
  color: var(--caramel);
  font-size: 2rem;
}

.plan-card p {
  color: rgba(255, 248, 235, 0.72);
}

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

.plan-features span {
  padding: 14px;
  color: var(--coffee);
  font-weight: 900;
}

.billing-card,
.invoice-card {
  min-height: 100%;
}

.billing-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.billing-summary div {
  border: 1px solid #eee1ce;
  border-radius: var(--radius);
  padding: 14px;
  background: #fffaf2;
}

.billing-summary strong,
.invoice-list strong {
  display: block;
  margin-top: 6px;
  font-size: 1.12rem;
}

.payment-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.payment-options button {
  min-height: 44px;
  border: 1px solid #ead8bf;
  border-radius: var(--radius);
  background: #fffaf2;
  color: var(--coffee);
  font-weight: 950;
}

.payment-options button.is-active {
  border-color: var(--caramel);
  background: rgba(214, 155, 87, 0.18);
  color: var(--ink);
}

.billing-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.invoice-list div {
  padding: 14px;
}

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

.market-grid div,
.marketplace-sync-grid div,
.privacy-preview > div,
.privacy-preview article,
.launch-checklist span {
  padding: 14px;
}

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

.market-grid strong,
.marketplace-sync-grid strong,
.privacy-preview strong {
  display: block;
  margin-top: 6px;
  font-size: 1.14rem;
}

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

.privacy-preview article {
  grid-column: 1 / -1;
  background: var(--white);
}

.privacy-preview h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.privacy-preview p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.compliance-actions {
  display: grid;
  gap: 10px;
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.compliance-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.launch-checklist {
  grid-template-columns: 1fr;
}

.launch-checklist span {
  color: var(--coffee);
  font-weight: 900;
}

.launch-checklist span::before {
  content: "•";
  margin-right: 8px;
  color: var(--caramel);
}

.launch-checklist span.is-ready {
  border-color: #cfe0ca;
  background: var(--sage-soft);
  color: #47653f;
}

.launch-checklist span.is-warning {
  border-color: #ead3b3;
  background: #fff7e8;
}

.launch-checklist span.is-missing {
  border-color: #ead0c9;
  background: #fff3ef;
  color: #8a4a3e;
}

:focus-visible {
  outline: 3px solid rgba(214, 155, 87, 0.5);
  outline-offset: 3px;
}

/* Operator Premium: restaurant owner command center */
body {
  background:
    linear-gradient(180deg, #f8efe2 0%, #fffaf2 42%, #eee1ce 100%),
    repeating-linear-gradient(90deg, rgba(79, 53, 45, 0.028) 0 1px, transparent 1px 92px);
}

.app-shell {
  background:
    linear-gradient(90deg, rgba(29, 16, 13, 0.02), transparent 22%),
    transparent;
}

.app-sidebar {
  background:
    linear-gradient(180deg, #130a08 0%, #24150f 48%, #3a241b 100%),
    repeating-linear-gradient(0deg, rgba(255, 248, 235, 0.05) 0 1px, transparent 1px 82px);
  box-shadow: 24px 0 70px rgba(43, 26, 21, 0.12);
}

.restaurant-chip,
.sidebar-savings {
  border-color: rgba(255, 248, 235, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 248, 235, 0.1), rgba(255, 248, 235, 0.045)),
    rgba(255, 248, 235, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.app-nav button {
  border: 1px solid transparent;
}

.app-nav button:hover,
.app-nav button:focus-visible,
.app-nav button.is-active {
  border-color: rgba(255, 248, 235, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(255, 248, 235, 0.9)),
    var(--cream);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

.app-main {
  padding: 28px;
}

.app-header {
  position: sticky;
  z-index: 10;
  top: 18px;
  border-color: rgba(79, 53, 45, 0.12);
  background: rgba(255, 253, 248, 0.9);
  box-shadow:
    0 24px 70px rgba(43, 26, 21, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.header-status {
  border-color: rgba(111, 140, 104, 0.28);
  background:
    linear-gradient(180deg, rgba(237, 244, 234, 0.96), rgba(255, 253, 248, 0.72)),
    var(--sage-soft);
}

.header-config-link,
.panel-locale select,
.menu-button {
  border-color: rgba(79, 53, 45, 0.12);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.metric-card,
.panel-card {
  border-color: rgba(79, 53, 45, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 250, 242, 0.95)),
    var(--paper);
  box-shadow:
    0 18px 44px rgba(43, 26, 21, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.metric-card {
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--caramel), rgba(111, 140, 104, 0.72));
}

.metric-card.highlight {
  border-color: rgba(111, 140, 104, 0.32);
  background:
    linear-gradient(145deg, rgba(237, 244, 234, 0.94), rgba(255, 253, 248, 0.98)),
    var(--paper);
}

.dashboard-grid,
.owner-ai-grid,
.builder-layout,
.crm-grid,
.subscription-layout,
.market-layout {
  gap: 18px;
}

.chart-panel {
  overflow: hidden;
  background:
    linear-gradient(145deg, #1a0f0c, #352118),
    var(--ink);
  color: var(--cream);
}

.chart-panel .card-heading h2 {
  color: var(--cream);
}

.chart-panel .card-heading p,
.chart-panel .bars b {
  color: rgba(255, 248, 235, 0.7);
}

.chart-panel .card-heading > span {
  background: rgba(214, 155, 87, 0.18);
  color: var(--cream);
}

.bars span {
  background:
    linear-gradient(180deg, #f0bf7b, var(--caramel) 46%, #7d4b34),
    var(--caramel);
  box-shadow: 0 -12px 36px rgba(214, 155, 87, 0.18);
}

.signal-list div,
.order-row,
.dish-row,
.empty-panel-state,
.customer-row,
.integration-tile,
.plan-features span,
.invoice-list div,
.market-grid div,
.marketplace-sync-grid div,
.privacy-preview > div,
.privacy-preview article,
.launch-checklist span,
.owner-insights-grid > div,
.ai-campaign,
.ai-action,
.billing-summary div {
  border-color: rgba(79, 53, 45, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 250, 242, 0.92)),
    #fffaf2;
}

.launch-flow-steps button {
  border-color: rgba(79, 53, 45, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 250, 242, 0.92)),
    #fffaf2;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.launch-flow-steps button:hover,
.launch-flow-steps button.is-active {
  transform: translateY(-2px);
}

.ai-assistant-card,
.owner-insights-card {
  background:
    linear-gradient(145deg, rgba(255, 250, 242, 0.98), rgba(237, 244, 234, 0.7)),
    var(--paper);
}

.campaign-card,
.plan-card {
  border-color: rgba(246, 223, 189, 0.18);
  background:
    linear-gradient(145deg, #130a08, #39231a 68%, #543324),
    var(--ink);
  box-shadow:
    0 28px 72px rgba(43, 26, 21, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.panel-primary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.08)),
    var(--ink);
  box-shadow: 0 14px 30px rgba(43, 26, 21, 0.16);
}

.panel-secondary,
.ai-button,
.payment-options button,
.publish-actions button,
.publish-actions a {
  border-color: rgba(79, 53, 45, 0.12);
  background: rgba(255, 255, 255, 0.82);
}

.restaurant-live {
  border-color: rgba(43, 26, 21, 0.18);
  background: #120b09;
  box-shadow:
    0 30px 84px rgba(43, 26, 21, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.preview-top {
  background: linear-gradient(90deg, #120b09, #38231b);
}

.restaurant-hero {
  min-height: 360px;
  background:
    linear-gradient(90deg, rgba(29, 16, 13, 0.9), rgba(43, 26, 21, 0.58)),
    url("https://images.unsplash.com/photo-1559339352-11d035aa65de?auto=format&fit=crop&w=1200&q=80");
  background-position: center;
  background-size: cover;
}

.live-hero-image {
  border-color: rgba(255, 248, 235, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.16), rgba(43, 26, 21, 0.18)),
    url("https://images.unsplash.com/photo-1546069901-ba9599a7e63c?auto=format&fit=crop&w=700&q=80");
  background-position: center;
  background-size: cover;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.24);
}

.template-live-note,
.publish-strip,
.guest-tools,
.dish-list {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(255, 248, 235, 0.86)),
    var(--paper);
}

.ops-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(400px, 1.02fr);
  gap: 28px;
  min-height: 420px;
  border: 1px solid rgba(79, 53, 45, 0.14);
  border-radius: 18px;
  padding: clamp(24px, 4vw, 46px);
  background:
    linear-gradient(105deg, rgba(255, 253, 248, 0.96) 0 48%, rgba(255, 248, 235, 0.62) 48% 63%, rgba(43, 26, 21, 0.94) 63%),
    radial-gradient(circle at 18% 18%, rgba(214, 155, 87, 0.2), transparent 28%),
    repeating-linear-gradient(90deg, rgba(79, 53, 45, 0.045) 0 1px, transparent 1px 76px);
  box-shadow:
    0 34px 92px rgba(43, 26, 21, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.ops-hero::after {
  content: "";
  position: absolute;
  right: -7%;
  top: -28%;
  width: 46%;
  aspect-ratio: 1;
  border: 1px solid rgba(214, 155, 87, 0.24);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 155, 87, 0.18), transparent 68%);
  pointer-events: none;
}

.ops-hero-copy,
.ops-control-tower {
  position: relative;
  z-index: 1;
}

.ops-hero-copy {
  align-self: center;
}

.ops-status-line {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(214, 155, 87, 0.34);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--coffee);
  font-size: 0.84rem;
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.ops-status-line span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 7px rgba(111, 140, 104, 0.16);
}

.ops-status-line span.is-warning {
  background: var(--caramel);
  box-shadow: 0 0 0 7px rgba(214, 155, 87, 0.17);
}

.ops-status-line span.is-live {
  animation: livePulse 1.8s ease-in-out infinite;
}

.ops-hero h2 {
  max-width: 540px;
  margin: 26px 0 0;
  font-size: clamp(3rem, 4.75vw, 5.35rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.ops-hero p {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.28rem);
  font-weight: 750;
  line-height: 1.5;
}

.ops-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.ops-hero-actions .panel-primary,
.ops-hero-actions .panel-secondary,
.compact-action {
  min-height: 48px;
  border-radius: 999px;
  padding: 0 18px;
}

.ops-control-tower {
  align-self: center;
  overflow: hidden;
  border: 1px solid rgba(255, 248, 235, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.92), rgba(255, 248, 235, 0.74)),
    var(--paper);
  box-shadow:
    0 34px 84px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  transform: perspective(1200px) rotateX(1.2deg) rotateY(-2.6deg);
  transform-origin: center;
}

.ops-window-bar {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  background: linear-gradient(90deg, #150b09, #3a241b);
  color: rgba(255, 248, 235, 0.7);
}

.ops-window-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--caramel);
}

.ops-window-bar span:nth-child(2) {
  background: var(--sage);
}

.ops-window-bar span:nth-child(3) {
  background: #8c6559;
}

.ops-window-bar strong {
  overflow: hidden;
  margin-left: auto;
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-revenue-block {
  padding: 26px 26px 18px;
}

.ops-revenue-block span,
.ops-health-grid span,
.metric-topline span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 950;
}

.ops-revenue-block strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(3.2rem, 6vw, 6.5rem);
  line-height: 0.86;
}

.ops-revenue-block p {
  max-width: 560px;
  margin: 16px 0 0;
  color: var(--coffee);
  font-size: 0.94rem;
  font-weight: 850;
}

.ops-sparkline {
  height: 138px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  padding: 0 26px 24px;
}

.ops-sparkline i {
  min-height: 10px;
  border-radius: 999px 999px 4px 4px;
  background:
    linear-gradient(180deg, #eec283, var(--caramel) 48%, #714437),
    var(--caramel);
  box-shadow: 0 -10px 26px rgba(214, 155, 87, 0.14);
}

.ops-health-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(79, 53, 45, 0.12);
}

.ops-health-grid div {
  min-width: 0;
  padding: 18px;
}

.ops-health-grid div + div {
  border-left: 1px solid rgba(79, 53, 45, 0.12);
}

.ops-health-grid strong {
  display: block;
  overflow: hidden;
  margin-top: 8px;
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.premium-metrics {
  margin-top: 18px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.metric-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.metric-topline b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(214, 155, 87, 0.15);
  color: var(--coffee);
  font-size: 0.72rem;
}

.ops-command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 18px;
  margin-top: 18px;
}

.live-queue-card {
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.94), rgba(255, 248, 235, 0.9)),
    var(--paper);
}

.live-order-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.live-column {
  min-height: 310px;
  border: 1px solid rgba(79, 53, 45, 0.1);
  border-radius: 14px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 250, 242, 0.9)),
    #fffaf2;
}

.live-column header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.live-column header span {
  color: var(--coffee);
  font-size: 0.8rem;
  font-weight: 950;
  text-transform: uppercase;
}

.live-column header strong {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.86rem;
}

.live-column > div {
  display: grid;
  gap: 8px;
}

.live-column button {
  width: 100%;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(79, 53, 45, 0.1);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  text-align: left;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.live-column button:hover,
.live-column button:focus-visible {
  border-color: rgba(214, 155, 87, 0.56);
  box-shadow: 0 16px 32px rgba(43, 26, 21, 0.1);
  transform: translateY(-2px);
}

.live-column button span,
.live-column button small,
.live-column p {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.live-column button strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-column p {
  margin: 14px 0 0;
  line-height: 1.4;
}

.live-column.is-new header strong {
  background: #9a6140;
}

.live-column.is-progress header strong {
  background: var(--blue-gray);
}

.live-column.is-ready header strong {
  background: var(--sage);
}

.live-empty-state {
  min-height: 310px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 10px;
  border: 1px dashed rgba(79, 53, 45, 0.2);
  border-radius: 14px;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.8), rgba(237, 244, 234, 0.58)),
    #fffaf2;
}

.live-empty-state span {
  color: var(--caramel);
  font-size: 0.8rem;
  font-weight: 950;
  text-transform: uppercase;
}

.live-empty-state strong {
  max-width: 560px;
  font-size: clamp(1.45rem, 3vw, 2.6rem);
  line-height: 1;
}

.live-empty-state p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.5;
}

.launch-flow-card {
  align-self: stretch;
}

.panel-primary,
.panel-secondary,
.ai-button,
.header-config-link,
.preview-mode button,
.payment-options button,
.publish-actions button,
.publish-actions a {
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.panel-primary:hover,
.panel-secondary:hover,
.ai-button:hover,
.header-config-link:hover,
.preview-mode button:hover,
.payment-options button:hover,
.publish-actions button:hover,
.publish-actions a:hover {
  transform: translateY(-2px);
}

.panel-primary:hover {
  box-shadow: 0 20px 42px rgba(43, 26, 21, 0.22);
}

.panel-secondary:hover,
.ai-button:hover,
.header-config-link:hover,
.publish-actions button:hover,
.publish-actions a:hover {
  border-color: rgba(214, 155, 87, 0.42);
  box-shadow: 0 14px 28px rgba(43, 26, 21, 0.09);
}

@keyframes livePulse {
  0%,
  100% {
    box-shadow: 0 0 0 7px rgba(111, 140, 104, 0.16);
  }

  50% {
    box-shadow: 0 0 0 11px rgba(111, 140, 104, 0.06);
  }
}

@media (max-width: 1480px) {
  .builder-layout {
    grid-template-columns: 1fr;
  }

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

  .order-ops-toolbar {
    grid-template-columns: 1fr;
  }

  .order-status-filter {
    grid-template-columns: repeat(5, minmax(96px, 1fr));
  }

  .order-ops-layout {
    grid-template-columns: 1fr;
  }

  .order-detail {
    position: static;
  }

  .order-kanban {
    grid-template-columns: repeat(4, minmax(210px, 1fr));
  }

  .order-kanban-column {
    min-width: 0;
  }
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: fixed;
    z-index: 80;
    inset: 0 auto 0 0;
    width: min(320px, 86vw);
    transform: translateX(-100%);
    transition: transform 180ms ease;
  }

  body.sidebar-open .app-sidebar {
    transform: translateX(0);
  }

  .sidebar-close {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: rgba(255, 248, 235, 0.1);
    color: var(--cream);
  }

  .sidebar-backdrop {
    position: fixed;
    z-index: 70;
    inset: 0;
    display: none;
    background: rgba(29, 16, 13, 0.52);
    backdrop-filter: blur(4px);
  }

  body.sidebar-open .sidebar-backdrop {
    display: block;
  }

  .menu-button {
    display: grid;
  }

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

  .dashboard-grid,
  .owner-ai-grid,
  .ops-hero,
  .ops-command-grid,
  .menu-studio-hero,
  .builder-layout,
  .crm-hero,
  .crm-workspace,
  .crm-automation-grid,
  .crm-grid,
  .subscription-layout,
  .market-layout {
    grid-template-columns: 1fr;
  }

  .ops-control-tower {
    transform: none;
  }

  .premium-metrics,
  .menu-studio-summary,
  .menu-health-grid,
  .crm-summary,
  .live-order-board,
  .order-now-stats,
  .order-kanban {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-ops-toolbar,
  .menu-command-bar,
  .menu-ops-grid,
  .order-ops-layout {
    grid-template-columns: 1fr;
  }

  .customer-profile-card {
    position: static;
  }

  .launch-flow-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .app-shell,
  .app-main {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .app-main {
    padding: 12px;
  }

  .app-header {
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    padding: 14px;
  }

  .app-header > div {
    min-width: 0;
  }

  .header-status {
    display: none;
  }

  .header-config-link,
  .panel-locale {
    display: none;
  }

  .app-header h1 {
    font-size: 1.45rem;
  }

  .metrics-grid,
  .premium-metrics,
  .menu-studio-summary,
  .menu-health-grid,
  .crm-summary,
  .live-order-board,
  .integration-grid,
  .builder-fields,
  .menu-command-bar,
  .menu-ops-grid,
  .menu-editor-grid,
  .studio-dish-form,
  .menu-ai-workbench,
  .color-grid,
  .launch-flow-steps,
  .owner-insights-grid,
  .ai-action-grid,
  .plan-features,
  .market-grid,
  .marketplace-sync-grid,
  .privacy-preview,
  .payment-options,
  .billing-summary,
  .customer-profile-grid,
  .customer-contact-grid,
  .crm-automation-actions {
    grid-template-columns: 1fr;
  }

  .ops-hero {
    min-height: auto;
    border-radius: 14px;
    padding: 20px;
    background:
      linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(255, 248, 235, 0.86)),
      repeating-linear-gradient(90deg, rgba(79, 53, 45, 0.045) 0 1px, transparent 1px 72px);
  }

  .ops-hero h2 {
    max-width: 100%;
    font-size: clamp(2.15rem, 11.5vw, 3.25rem);
    line-height: 0.95;
    overflow-wrap: anywhere;
  }

  .menu-studio-hero {
    border-radius: 14px;
    padding: 20px;
  }

  .crm-hero {
    border-radius: 14px;
    padding: 20px;
  }

  .menu-studio-hero h2,
  .crm-hero h2 {
    max-width: 100%;
    font-size: clamp(2.15rem, 11.5vw, 3.35rem);
    line-height: 0.95;
    overflow-wrap: anywhere;
  }

  .ops-hero p,
  .menu-studio-hero p,
  .crm-hero p {
    overflow-wrap: anywhere;
  }

  .ops-hero-actions {
    display: grid;
  }

  .ops-control-tower {
    border-radius: 14px;
  }

  .ops-revenue-block,
  .ops-sparkline {
    padding-inline: 16px;
  }

  .ops-health-grid {
    grid-template-columns: 1fr;
  }

  .ops-health-grid div + div {
    border-top: 1px solid rgba(79, 53, 45, 0.12);
    border-left: 0;
  }

  .subscription-lock {
    grid-template-columns: 1fr;
  }

  .panel-card,
  .subscription-lock {
    width: 100%;
    max-width: calc(100vw - 24px);
    min-width: 0;
    overflow: hidden;
  }

  .panel-card *,
  .subscription-lock * {
    max-width: 100%;
  }

  .panel-card p,
  .subscription-lock p,
  .subscription-lock strong,
  .plan-card p {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .card-heading {
    flex-direction: column;
  }

  .bars {
    height: 220px;
  }

  .orders-layout,
  .order-row,
  .order-now-stats,
  .order-kanban,
  .order-status-filter,
  .customer-row,
  .payment-detail-grid,
  .order-status-history article,
  .order-command-panel > div {
    grid-template-columns: 1fr;
  }

  .crm-automation-actions button:last-child {
    grid-column: auto;
  }

  .order-detail {
    position: static;
  }

  .menu-product-head,
  .publish-strip {
    grid-template-columns: 1fr;
  }

  .menu-product-head > div {
    justify-items: start;
  }

  .menu-editor-actions {
    display: grid;
  }

  .menu-editor-actions button {
    width: 100%;
  }

  .order-kanban-column {
    min-height: 260px;
  }

  .order-ops-actions {
    justify-content: stretch;
  }

  .order-ops-actions button {
    flex: 1 1 100%;
  }

  .restaurant-hero h2 {
    font-size: 1.9rem;
  }

  .template-live-note {
    grid-template-columns: 1fr;
  }

  .template-live-note a {
    grid-row: auto;
    grid-column: auto;
    width: fit-content;
  }

  .publish-strip {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .dish-row {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .dish-price-stack {
    grid-column: 2;
    justify-items: start;
  }

  .dish-price-stack small {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
