:root {
  color-scheme: light;
  --bg: #f6f8f5;
  --surface: #ffffff;
  --surface-2: #edf6ef;
  --ink: #18211d;
  --muted: #5f6f67;
  --line: #cfdcd4;
  --line-strong: #9fb2a8;
  --green: #16834b;
  --green-dark: #0d5f39;
  --coral: #e45f4f;
  --teal: #117c7b;
  --yellow: #f6c85f;
  --shadow: 0 12px 32px rgba(24, 33, 29, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

body.protected-shell:not([data-app-ready="true"]) {
  visibility: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(228, 95, 79, 0.35);
  outline-offset: 2px;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  background: rgba(246, 248, 245, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--ink);
  color: #ffffff;
  border-radius: 8px;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.topnav a {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  background: var(--surface);
}

.session-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 800;
}

main {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.live-strip {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(280px, 1.25fr);
  min-height: 330px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.scene-image {
  min-height: 260px;
  background: var(--surface-2);
}

.scene-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.active-panel {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 36px;
}

.eyebrow,
.small-label {
  margin: 0;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: 2.35rem;
  line-height: 1.02;
}

h2 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.1;
}

h3 {
  margin: 0;
  font-size: 1.12rem;
}

.active-panel p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.55;
}

.status-row,
.button-row,
.chip-row,
.payment-options,
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.status-row span,
.pill,
.stats span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 800;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  gap: 18px;
  margin-top: 18px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.scanner-panel,
.booking-panel,
.location-builder,
.qr-board,
.reservations-panel {
  padding: 22px;
}

.section-head,
.business-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head strong {
  color: var(--green-dark);
  font-size: 1.45rem;
}

.video-shell {
  position: relative;
  display: grid;
  height: 310px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(22, 131, 75, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(22, 131, 75, 0.08) 1px, transparent 1px),
    #f3faf5;
  background-size: 26px 26px;
}

.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scan-frame {
  position: absolute;
  width: min(220px, 62%);
  aspect-ratio: 1;
  border: 3px solid var(--coral);
  border-radius: 8px;
  box-shadow: 0 0 0 999px rgba(24, 33, 29, 0.18);
  pointer-events: none;
}

#scannerEmpty {
  position: absolute;
  width: min(260px, 80%);
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.button-row {
  margin: 14px 0;
}

.primary,
.ghost,
.inline-input button {
  min-height: 44px;
  padding: 11px 15px;
}

.primary {
  background: var(--green);
  color: #ffffff;
}

.primary:hover {
  background: var(--green-dark);
}

.ghost,
.inline-input button {
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink);
}

.danger {
  border: 1px solid rgba(228, 95, 79, 0.55) !important;
  background: #fff0ed !important;
  color: #9d2d21 !important;
}

.inline-form,
.location-form,
.base-url,
.reservation-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 10px 12px;
}

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

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

.password-field input::-ms-reveal,
.password-field input::-ms-clear {
  display: none;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  display: inline-flex;
  width: 40px;
  height: 32px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  transform: translateY(-50%);
}

.password-toggle-icon {
  position: relative;
  display: block;
  width: 20px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 999px / 680px;
}

.password-toggle-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.password-toggle[aria-pressed="true"] {
  border-color: var(--green);
  background: #e9f8ee;
  color: var(--green-dark);
}

textarea {
  resize: vertical;
}

.inline-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.chip-row {
  margin-top: 8px;
}

.chip-row button {
  min-height: 36px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
}

.chip-row button.active {
  border-color: var(--green);
  background: #dff4e7;
}

.notice {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

fieldset {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

legend {
  padding: 0 6px;
  color: var(--teal);
  font-weight: 900;
}

.extras-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.product-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.product-category {
  display: grid;
  gap: 10px;
}

.product-category h4,
.catalog-card h3,
.catalog-card h4,
.qr-card h4 {
  margin: 0;
}

.product-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.product-copy,
.catalog-copy {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.product-copy > div,
.catalog-copy > div {
  min-width: 0;
}

.product-item p,
.catalog-item p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.product-thumb,
.catalog-thumb,
.owner-company-logo,
.order-brand-chip img,
.brand-preview-body img {
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.product-thumb {
  width: 84px;
  height: 84px;
  flex: 0 0 84px;
}

.product-price {
  display: inline-block;
  margin-top: 7px;
  color: var(--green-dark);
  font-weight: 900;
}

.quantity-control {
  display: grid;
  grid-template-columns: 34px 34px 34px;
  align-items: center;
  justify-items: center;
  gap: 6px;
}

.quantity-control button {
  width: 34px;
  min-height: 34px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink);
}

.quantity-control span {
  font-weight: 900;
}

.extra,
.choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 50px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.extra input,
.choice input {
  width: auto;
  min-height: auto;
}

.extra span,
.choice span {
  overflow-wrap: anywhere;
}

.payment-grid {
  margin-top: 12px;
}

.summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff8e2;
  font-weight: 900;
}

.submit-button {
  width: 100%;
}

.submit-button:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.table-access-box {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.table-access-box .notice {
  margin: 0;
}

.receipt {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--green);
  border-radius: 8px;
  background: #e9f8ee;
  line-height: 1.5;
}

.receipt.error {
  border-color: var(--coral);
  background: #fff0ed;
}

.order-page main {
  max-width: 1320px;
}

.order-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.order-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.order-hero-media {
  display: grid;
  gap: 12px;
  width: min(360px, 100%);
  min-width: min(320px, 100%);
}

.order-cover {
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(17, 124, 123, 0.18), rgba(22, 131, 75, 0.16)),
    var(--surface-2);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.order-brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  font-weight: 900;
}

.order-brand-chip img,
.brand-preview-body img {
  width: 48px;
  height: 48px;
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
  margin-top: 18px;
}

.order-menu,
.order-summary {
  padding: 22px;
}

.order-summary {
  align-self: start;
  position: sticky;
  top: 92px;
}

.order-cart-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.order-cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.order-cart-item span,
.order-admin-row span {
  display: block;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.order-admin-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) 0.7fr auto auto minmax(190px, auto);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.order-admin-row[data-status="new"],
.kitchen-card[data-status="new"] {
  border-color: rgba(22, 131, 75, 0.4);
  box-shadow: inset 4px 0 0 rgba(22, 131, 75, 0.9);
}

.order-admin-row[data-status="preparing"],
.kitchen-card[data-status="preparing"] {
  border-color: rgba(201, 146, 23, 0.42);
  box-shadow: inset 4px 0 0 rgba(201, 146, 23, 0.95);
}

.order-admin-row[data-status="cancelled"],
.kitchen-card[data-status="cancelled"] {
  opacity: 0.82;
}

.business {
  margin-top: 18px;
}

.admin-module-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.admin-module-switcher button {
  min-height: 40px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
}

.admin-module-switcher button[aria-pressed="true"],
.topnav a.active {
  border-color: var(--green);
  background: #e9f8ee;
  color: var(--green-dark);
}

.admin-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.admin-intro p:not(.eyebrow) {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.business-head {
  align-items: center;
  padding: 18px 4px 12px;
}

.stats span {
  background: #ffffff;
}

.business-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(320px, 1.28fr);
  gap: 18px;
}

.catalog-grid:has(.product-editor:not([hidden])) {
  grid-template-columns: minmax(250px, 0.58fr) minmax(300px, 0.78fr) minmax(340px, 1.12fr);
}

.location-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.location-form button,
.base-url {
  grid-column: 1 / -1;
}

.base-url {
  margin-top: 14px;
}

.stacked-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.owner-builder,
.owner-links {
  padding: 22px;
}

.owner-patterns,
.owner-company-list {
  display: grid;
  gap: 14px;
}

.owner-audit-list {
  display: grid;
  gap: 12px;
}

.owner-patterns code,
.owner-company-card code {
  display: block;
  width: 100%;
  padding: 10px;
  overflow-wrap: anywhere;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink);
}

.owner-company-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.owner-company-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.owner-company-logo {
  width: 100%;
  max-height: 180px;
  background: var(--surface-2);
}

.owner-company-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.owner-company-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  font-weight: 800;
}

.owner-audit-entry {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.owner-audit-copy {
  display: grid;
  gap: 6px;
}

.owner-audit-copy p,
.owner-audit-copy h3 {
  margin: 0;
}

.owner-audit-meta {
  display: inline-flex;
  align-items: flex-start;
}

.owner-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.catalog-builder,
.catalog-board,
.product-editor {
  padding: 22px;
}

.product-editor {
  align-self: start;
}

.product-editor .stacked-form {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.catalog-list {
  display: grid;
  gap: 14px;
}

.catalog-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.catalog-card header,
.catalog-item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.catalog-item {
  align-items: center;
}

.catalog-thumb {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
}

.catalog-category {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.catalog-product-list {
  display: grid;
  gap: 8px;
}

.product-image-form {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(170px, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: min(100%, 540px);
}

.product-image-form input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--surface-2);
  color: var(--ink);
}

.product-image-form input[type="file"] {
  padding: 7px;
}

.catalog-item {
  min-height: 52px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.catalog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.catalog-actions button {
  min-height: 34px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink);
}

.brand-preview {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.brand-preview-cover {
  min-height: 180px;
  background:
    linear-gradient(135deg, rgba(17, 124, 123, 0.18), rgba(22, 131, 75, 0.16)),
    var(--surface-2);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.brand-preview-body {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: #ffffff;
}

.brand-preview-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.availability-choice {
  align-self: end;
}

.qr-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.qr-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.qr-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.qr-card canvas {
  width: 100%;
  max-width: 210px;
  aspect-ratio: 1;
  justify-self: center;
  border: 8px solid #ffffff;
  background: #ffffff;
}

.qr-card code {
  display: block;
  width: 100%;
  padding: 8px;
  overflow-wrap: anywhere;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 0.78rem;
}

.qr-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.qr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.qr-actions button {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink);
}

.reservations-panel {
  margin-top: 18px;
}

.reservation-list {
  display: grid;
  gap: 10px;
}

.kitchen-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.kitchen-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.kitchen-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.kitchen-card > p {
  margin: 0;
  line-height: 1.5;
}

.kitchen-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-weight: 800;
}

.kitchen-card .catalog-actions {
  justify-content: flex-start;
}

.inline-filter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.inline-filter select {
  width: auto;
  min-width: 150px;
}

.auth-shell {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 120px);
  padding: 24px 0;
}

.auth-card {
  width: min(520px, 100%);
  padding: 28px;
}

.auth-form {
  margin-top: 18px;
}

.reservation-row {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.7fr 0.7fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.reservation-row strong,
.reservation-row span {
  overflow-wrap: anywhere;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 8px;
  background: #e6f6f5;
  color: var(--teal);
  font-weight: 900;
}

.tag-soft {
  background: var(--surface-2);
  color: var(--ink);
}

.tag-status-new {
  background: #e9f8ee;
  color: var(--green-dark);
}

.tag-status-preparing {
  background: #fff5db;
  color: #8d5e08;
}

.tag-status-served {
  background: #ebf5ff;
  color: #1357a6;
}

.tag-status-cancelled {
  background: #fff0ed;
  color: #9d2d21;
}

.empty-state {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  main {
    padding: 16px;
  }

  .live-strip,
  .workspace,
  .order-layout,
  .business-grid {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
  }

  .active-panel {
    padding: 26px;
  }

  h1 {
    font-size: 2rem;
  }

  .order-hero-media {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 680px) {
  .topbar,
  .admin-intro,
  .order-hero,
  .business-head,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    padding: 12px;
  }

  .topnav {
    justify-content: flex-start;
  }

  .form-grid,
  .extras-grid,
  .product-item,
  .location-form,
  .product-image-form,
  .inline-input {
    grid-template-columns: 1fr;
  }

  .catalog-card header,
  .catalog-item,
  .owner-company-card header,
  .product-copy,
  .catalog-copy,
  .kitchen-card header,
  .order-brand-chip,
  .inline-filter {
    flex-direction: column;
    align-items: flex-start;
  }

  .reservation-row {
    grid-template-columns: 1fr;
  }

  .order-admin-row {
    grid-template-columns: 1fr;
  }

  .order-cart-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .video-shell {
    height: 260px;
  }
}

@media print {
  body {
    background: #ffffff;
  }

  .topbar,
  .live-strip,
  .workspace,
  .location-builder,
  .reservations-panel,
  .business-head .stats,
  .qr-actions,
  #printQrs {
    display: none !important;
  }

  main {
    padding: 0;
  }

  .business,
  .business-grid,
  .qr-board,
  .qr-list {
    display: block;
    box-shadow: none;
    border: 0;
  }

  .qr-card {
    break-inside: avoid;
    margin: 0 0 18px;
    border: 2px solid #000000;
  }
}
