:root {
  --bg: #f4f6f4;
  --surface: #ffffff;
  --surface-alt: #eef2ef;
  --ink: #17201e;
  --muted: #66736f;
  --line: #dce3df;
  --primary: #176b5b;
  --primary-dark: #0e4d42;
  --accent: #d95738;
  --accent-soft: #fff0eb;
  --warning: #a66400;
  --danger: #bb3a3a;
  --shadow: 0 8px 24px rgba(23, 32, 30, .08);
  --sidebar: 246px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Vazirmatn", Tahoma, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: 0;
}
button, input, textarea, select { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--primary); text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 6px; font-size: clamp(1.65rem, 3vw, 2.2rem); line-height: 1.3; }
h2 { margin-bottom: 4px; font-size: 1.12rem; line-height: 1.45; }
h3 { font-size: 1rem; }
p { color: var(--muted); }
svg { width: 20px; height: 20px; stroke-width: 1.9; }

.button {
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 650;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.button-primary { color: #fff; background: var(--primary); }
.button-primary:hover { background: var(--primary-dark); }
.button-secondary { color: var(--ink); background: #fff; border-color: var(--line); }
.button-secondary:hover, .button-ghost:hover { border-color: #a9b8b2; background: var(--surface-alt); }
.button-ghost { color: var(--ink); background: transparent; border-color: var(--line); }
.button-danger { color: var(--danger); background: #fff; border-color: #edc5c5; }
.button-small { min-height: 34px; padding: 5px 11px; font-size: .84rem; }
.button-block { width: 100%; }
.icon-button {
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}
.icon-button:hover { color: var(--ink); background: var(--surface-alt); border-color: var(--line); }
.icon-button.danger:hover { color: var(--danger); background: #fff0f0; border-color: #edc5c5; }
.action-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1.12rem; font-weight: 800; }
.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border-radius: 6px;
  font-size: 1.2rem;
}
.brand-light { color: #fff; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) 1fr; }
.sidebar {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 30;
  width: var(--sidebar);
  padding: 24px 16px 16px;
  background: #fbfcfb;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.sidebar > .brand { padding: 0 8px 22px; }
.restaurant-switcher { margin-bottom: 18px; padding: 12px; background: var(--surface-alt); border: 1px solid var(--line); border-radius: 6px; display: grid; gap: 2px; }
.restaurant-switcher small { color: var(--muted); }
.restaurant-switcher strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.restaurant-switcher .status { justify-self: start; margin-top: 5px; }
.main-nav { display: grid; gap: 4px; }
.main-nav a { min-height: 44px; padding: 9px 12px; border-radius: 6px; display: flex; align-items: center; gap: 11px; color: #4f5d59; font-weight: 550; }
.main-nav a:hover { background: var(--surface-alt); color: var(--ink); }
.main-nav a.active { color: var(--primary-dark); background: #e5f0ed; font-weight: 700; }
.main-nav a.active svg { stroke-width: 2.4; }
.admin-link { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.sidebar-footer { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sidebar-footer span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; }
.sidebar-footer form { margin: 0; }
.app-main { min-width: 0; grid-column: 2; }
.page-container { width: min(1260px, 100%); margin: 0 auto; padding: 34px 32px 64px; }
.mobile-header { display: none; }

.page-heading { min-height: 72px; margin-bottom: 24px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.page-heading p { margin-bottom: 0; }
.page-heading > .action-row { justify-content: flex-end; }
.eyebrow { margin-bottom: 4px; color: var(--accent); font-size: .78rem; font-weight: 800; }
.panel { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.panel-heading { margin-bottom: 17px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.panel-heading p { margin: 0; font-size: .88rem; }
.notice { margin-bottom: 22px; padding: 14px 16px; color: #694915; background: #fff8e8; border: 1px solid #ead6aa; border-radius: 6px; display: flex; align-items: flex-start; gap: 12px; }
.notice svg { flex: 0 0 auto; margin-top: 2px; }
.notice strong { display: block; }
.notice p { margin: 2px 0 0; color: inherit; }
.notice.neutral { color: #455450; background: var(--surface-alt); border-color: var(--line); }
.status { min-height: 24px; padding: 2px 8px; border-radius: 999px; display: inline-flex; align-items: center; white-space: nowrap; font-size: .75rem; font-weight: 700; }
.status-pending { color: #875700; background: #fff0c9; }
.status-active { color: #176248; background: #dff3e9; }
.status-suspended { color: #a12e2e; background: #fde4e4; }

.metric-grid { margin-bottom: 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.metric-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric { min-height: 126px; padding: 18px; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.metric span { color: var(--muted); }
.metric strong { display: block; margin-top: 7px; font-size: 1.8rem; line-height: 1.2; }
.metric > svg { position: absolute; inset: 18px auto auto 18px; width: 24px; height: 24px; color: var(--primary); }
.metric.muted { background: #f8f9f8; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 18px; }
.checklist { display: grid; }
.checklist a { min-height: 52px; padding: 10px 2px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 30px 1fr 20px; align-items: center; gap: 9px; color: var(--ink); }
.checklist a:last-child { border-bottom: 0; }
.check-state { width: 24px; height: 24px; color: #a9b2af; display: grid; place-items: center; }
.check-state.done { color: var(--primary); background: #e1f2eb; border-radius: 50%; }
.checklist > a > svg { width: 17px; color: #93a09c; }
.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-actions a { min-height: 94px; padding: 14px; color: var(--ink); background: var(--surface-alt); border: 1px solid transparent; border-radius: 6px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; }
.quick-actions a:hover { border-color: #aebdb7; background: #e7edea; }
.quick-actions svg { color: var(--primary); }

.field { margin-bottom: 16px; }
.field > label { margin-bottom: 6px; display: block; color: #33403c; font-size: .88rem; font-weight: 650; }
.control {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cdd7d2;
  border-radius: 5px;
  outline: none;
}
.control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(23, 107, 91, .12); }
textarea.control { min-height: 100px; resize: vertical; }
select[multiple].control { min-height: 112px; }
input[type="color"].control { height: 44px; padding: 4px; }
input[type="file"].control { padding: 8px; }
.field small { margin-top: 5px; color: var(--muted); display: block; font-size: .78rem; }
.field-error .control { border-color: var(--danger); }
.error-text { margin-top: 4px; color: var(--danger); display: block; font-size: .8rem; }
.check-control { min-height: 34px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.check-control input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }
.form-row { display: flex; align-items: center; gap: 10px; }
.form-row.between { justify-content: space-between; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.choice-grid { margin-bottom: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice-grid .check-control { min-height: 48px; padding: 8px 12px; background: var(--surface-alt); border: 1px solid var(--line); border-radius: 5px; }
.settings-form { display: grid; gap: 14px; }
.form-section { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; }
.section-intro p { margin: 0; font-size: .86rem; }
.sticky-actions { position: sticky; bottom: 12px; z-index: 5; padding: 12px 16px; background: rgba(255, 255, 255, .96); border: 1px solid var(--line); border-radius: 8px; display: flex; justify-content: flex-end; box-shadow: var(--shadow); }
.form-actions { padding-top: 18px; display: flex; justify-content: flex-end; }

.hours-form { padding: 0 20px; }
.hours-row { min-height: 72px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 120px 100px 1fr 1fr; align-items: center; gap: 14px; }
.hours-row > label:not(.check-control) { display: flex; align-items: center; gap: 8px; }
.hours-row > label span { color: var(--muted); font-size: .82rem; }
.hours-row .control { direction: ltr; }
.qr-layout { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 24px; align-items: start; }
.qr-preview { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; align-items: center; box-shadow: var(--shadow); }
.qr-preview img { width: 260px; aspect-ratio: 1; }
.qr-preview strong { margin-top: 8px; font-size: 1.25rem; }
.qr-preview span { color: var(--muted); }
.qr-info { padding: 28px; }
.ltr-url { padding: 12px; direction: ltr; text-align: left; color: var(--ink); background: var(--surface-alt); border: 1px solid var(--line); border-radius: 5px; overflow-wrap: anywhere; }
.qr-info .notice { margin: 24px 0 0; }

.menu-admin-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); align-items: start; gap: 18px; }
.category-create { position: sticky; top: 20px; }
.category-list, .stack-list { display: grid; gap: 12px; }
.menu-category { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.menu-category > header { min-height: 68px; padding: 12px 14px; background: #fafbfa; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 36px 1fr 38px; align-items: center; gap: 7px; }
.menu-category h2, .menu-category p { margin: 0; }
.menu-category p { font-size: .8rem; }
.drag-handle { cursor: grab; }
[draggable="true"].dragging { opacity: .45; }
.product-list { min-height: 48px; }
.product-row { min-height: 74px; padding: 9px 14px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 36px 54px minmax(150px, 1fr) auto auto; align-items: center; gap: 10px; }
.product-row:last-child { border-bottom: 0; }
.product-row.unavailable { background: #fafafa; }
.product-thumb { width: 52px; height: 52px; color: #a2aca8; background: var(--surface-alt); border-radius: 5px; display: grid; place-items: center; overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info { min-width: 0; display: grid; }
.product-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-info span { color: var(--muted); font-size: .8rem; }
.row-actions, .table-actions { display: flex; align-items: center; gap: 2px; }
.row-actions form, .table-actions form { margin: 0; }
.empty-inline { padding: 17px 52px; color: var(--muted); }
.empty-state { min-height: 220px; padding: 30px; border: 1px dashed #b9c6c1; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-state > svg { width: 34px; height: 34px; margin-bottom: 12px; color: #87948f; }
.two-column { display: grid; grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr); align-items: start; gap: 18px; }
.modifier-card ul { margin: 0; padding: 0; list-style: none; }
.modifier-card li { min-height: 42px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modifier-card li strong { font-size: .82rem; }
.upload-panel { text-align: center; }
.upload-panel > svg { width: 42px; height: 42px; margin: 6px auto 14px; color: var(--primary); }
.import-layout .panel { min-width: 0; }
.text-link { font-weight: 700; }

.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: middle; }
th { color: var(--muted); background: #f8faf8; font-size: .78rem; font-weight: 700; }
td small { color: var(--muted); display: block; }
code { direction: ltr; color: #7a3a27; background: var(--accent-soft); padding: 2px 5px; border-radius: 4px; }

.flash-stack { position: fixed; top: 18px; left: 18px; z-index: 100; width: min(420px, calc(100vw - 36px)); display: grid; gap: 8px; }
.flash { padding: 11px 14px; background: #fff; border: 1px solid var(--line); border-right-width: 4px; border-radius: 6px; box-shadow: var(--shadow); overflow-wrap: anywhere; }
.flash-success { border-right-color: var(--primary); }
.flash-danger { border-right-color: var(--danger); }
.flash-warning { border-right-color: var(--warning); }
.flash-info { border-right-color: #3970a5; }

.auth-page { background: #fff; }
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(340px, .78fr) minmax(500px, 1.22fr); }
.auth-visual {
  min-height: 100vh;
  padding: 42px clamp(30px, 5vw, 72px);
  position: relative;
  isolation: isolate;
  color: #fff;
  background-color: #173b35;
  background-image: url("../images/restaurant-cover.png");
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-visual::before, .home-hero::before, .store-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(12, 27, 24, .72); }
.auth-visual h1 { max-width: 540px; color: #fff; font-size: clamp(2rem, 4vw, 3.3rem); }
.auth-visual p { max-width: 520px; color: rgba(255,255,255,.78); }
.auth-form-wrap { padding: 52px clamp(28px, 6vw, 90px); display: grid; place-items: center; }
.auth-form { width: min(420px, 100%); }
.wide-form .auth-form { width: min(620px, 100%); }
.form-heading { margin-bottom: 26px; }
.form-heading h2 { margin-bottom: 7px; font-size: 1.75rem; }
.form-heading p { margin: 0; }
.mobile-brand { display: none; }
.form-footer { margin: 20px 0 0; text-align: center; }
.centered-page { min-height: 100vh; padding: 30px; display: grid; place-items: center; }
.compact-form { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }

.public-nav { height: 74px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.public-nav > div { display: flex; gap: 8px; }
.home-hero {
  height: min(430px, 48vh);
  min-height: 330px;
  padding: 46px max(24px, calc((100vw - 1180px) / 2));
  position: relative;
  isolation: isolate;
  color: #fff;
  background: #173b35 url("../images/restaurant-cover.png") center 58% / cover no-repeat;
  display: flex;
  align-items: flex-end;
}
.home-hero::before { background: rgba(15, 35, 30, .58); }
.hero-copy h1 { color: #fff; font-size: clamp(3rem, 7vw, 5.5rem); }
.hero-copy > p:not(.eyebrow) { max-width: 620px; margin-bottom: 0; color: rgba(255,255,255,.86); font-size: 1.15rem; }
.restaurant-directory { width: min(1180px, 100%); margin: 0 auto; padding: 38px 24px 70px; }
.section-heading { margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; }
.restaurant-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.restaurant-card { min-width: 0; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: grid; grid-template-columns: 112px 1fr 30px; align-items: center; box-shadow: 0 4px 14px rgba(23,32,30,.05); }
.restaurant-card-image { width: 112px; height: 106px; background: #dfe8e4 url("../images/restaurant-cover.png") center / cover no-repeat; }
.restaurant-card-image img { width: 100%; height: 100%; object-fit: cover; }
.restaurant-card > div:nth-child(2) { min-width: 0; padding: 12px; }
.restaurant-card h3, .restaurant-card p { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.restaurant-card p { font-size: .82rem; }
.restaurant-card > svg { width: 18px; }

.preview-bar { min-height: 38px; padding: 7px 16px; color: #5d430d; background: #fff1c9; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .84rem; }
.storefront { --store-max: 1080px; background: #f7f8f6; }
.store-hero {
  height: min(440px, 54vh);
  min-height: 360px;
  padding: 22px max(20px, calc((100vw - var(--store-max)) / 2));
  position: relative;
  isolation: isolate;
  color: #fff;
  background-color: var(--primary);
  background-image: url("../images/restaurant-cover.png");
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.store-hero::before { background: rgba(10, 20, 18, .57); }
.store-hero nav { display: flex; justify-content: space-between; align-items: center; }
.store-logo { width: 48px; height: 48px; border: 2px solid rgba(255,255,255,.7); border-radius: 50%; overflow: hidden; display: grid; place-items: center; color: #fff; background: var(--accent); font-size: 1.3rem; font-weight: 800; }
.store-logo img { width: 100%; height: 100%; object-fit: cover; }
.icon-button.glass { color: #fff; background: rgba(10,20,18,.34); border-color: rgba(255,255,255,.35); }
.store-title { max-width: 720px; }
.store-title p { margin-bottom: 2px; color: rgba(255,255,255,.78); }
.store-title h1 { margin: 0; color: #fff; font-size: clamp(2.4rem, 6vw, 4.6rem); }
.store-title span { color: rgba(255,255,255,.86); }
.store-facts { display: flex; flex-wrap: wrap; gap: 9px; }
.store-facts span { min-height: 32px; padding: 5px 10px; background: rgba(9,20,17,.58); border: 1px solid rgba(255,255,255,.28); border-radius: 4px; display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; }
.store-facts svg { width: 16px; height: 16px; }
.store-main { width: min(var(--store-max), 100%); margin: 0 auto; padding: 22px 20px 70px; }
.menu-search { height: 52px; margin-top: -47px; margin-bottom: 18px; padding: 0 16px; position: relative; z-index: 2; background: #fff; border: 1px solid var(--line); border-radius: 7px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow); }
.menu-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; }
.menu-search svg { color: var(--muted); }
.category-tabs { margin-inline: -20px; padding: 0 20px 12px; border-bottom: 1px solid var(--line); display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.category-tabs a { min-height: 36px; padding: 6px 13px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 4px; white-space: nowrap; font-weight: 600; }
.category-tabs a:hover { color: #fff; background: var(--primary); border-color: var(--primary); }
.store-content { display: grid; gap: 42px; padding-top: 30px; }
.store-section-heading { margin-bottom: 16px; display: flex; justify-content: space-between; align-items: flex-start; }
.store-section-heading h2 { font-size: 1.45rem; }
.store-section-heading p { margin: 0; }
.store-section-heading > span { color: var(--muted); font-size: .82rem; }
.store-products { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.store-product { min-height: 184px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 8px; display: grid; grid-template-columns: minmax(0, 1fr) 142px; gap: 14px; }
.store-product-copy { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.store-product h3 { margin: 3px 0 5px; font-size: 1.08rem; }
.store-product p { margin: 0; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: .84rem; line-height: 1.7; }
.featured-label { color: var(--accent); font-size: .72rem; font-weight: 800; }
.food-labels { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 5px; }
.food-labels span { padding: 2px 6px; color: #47615a; background: #edf4f1; border-radius: 3px; font-size: .68rem; }
.product-price { display: flex; align-items: baseline; gap: 3px; }
.product-price strong { font-size: 1.05rem; }
.product-price span { color: var(--muted); font-size: .72rem; }
.product-price small { margin-right: auto; color: var(--muted); }
.store-product-media { min-width: 0; position: relative; }
.store-product-media > img, .food-placeholder { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.food-placeholder { color: #8fa19a; background: #e7edea; display: grid; place-items: center; }
.store-product-media > button { width: 36px; height: 36px; position: absolute; left: 8px; bottom: 8px; color: #fff; background: var(--accent); border: 2px solid #fff; border-radius: 50%; display: grid; place-items: center; cursor: pointer; box-shadow: 0 3px 10px rgba(0,0,0,.18); }
.store-product-media > button svg { width: 18px; }
.store-empty { min-height: 300px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.store-empty svg { width: 42px; height: 42px; color: #91a09a; }
.store-footer { padding: 34px 20px; color: #d9e2df; background: #17231f; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.store-footer a { color: #fff; }
.store-footer small { margin-top: 16px; color: #8ea19a; }
.toast { max-width: calc(100vw - 32px); padding: 10px 15px; position: fixed; z-index: 100; bottom: 20px; left: 50%; color: #fff; background: #17231f; border-radius: 5px; transform: translate(-50%, 24px); opacity: 0; pointer-events: none; transition: .2s ease; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.kitchen-board { display: grid; grid-template-columns: repeat(3, minmax(240px, 1fr)); gap: 14px; overflow-x: auto; }
.kitchen-column { min-height: 520px; padding: 12px; background: #e9edeb; border: 1px solid #d7dfdb; border-radius: 8px; }
.kitchen-column header { min-height: 46px; display: flex; justify-content: space-between; align-items: center; }
.kitchen-column header span { width: 28px; height: 28px; background: #fff; border-radius: 50%; display: grid; place-items: center; }
.empty-column { min-height: 100px; color: #82908b; border: 1px dashed #b7c2be; border-radius: 6px; display: grid; place-items: center; text-align: center; }
.live-indicator { display: flex; align-items: center; gap: 7px; color: var(--primary); font-weight: 700; }
.live-indicator i { width: 8px; height: 8px; background: #2d9c72; border-radius: 50%; }
.error-page { min-height: 100vh; padding: 30px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.error-page > span { color: var(--accent); font-size: 4rem; font-weight: 800; }

@media (max-width: 1050px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .restaurant-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .store-products { grid-template-columns: 1fr; }
  .auth-layout { grid-template-columns: minmax(320px, .7fr) minmax(420px, 1fr); }
}

@media (max-width: 820px) {
  body { padding-bottom: 68px; }
  .app-shell { display: block; }
  .app-main { min-height: calc(100vh - 68px); }
  .sidebar { width: 100%; height: 68px; padding: 6px 8px; inset: auto 0 0; border: 0; border-top: 1px solid var(--line); display: block; }
  .sidebar > .brand, .restaurant-switcher, .sidebar-footer { display: none; }
  .main-nav { height: 100%; display: flex; justify-content: space-around; gap: 2px; }
  .main-nav a { min-width: 58px; min-height: 56px; padding: 4px 7px; flex: 1; flex-direction: column; justify-content: center; gap: 2px; font-size: .67rem; white-space: nowrap; }
  .main-nav a svg { width: 19px; height: 19px; }
  .admin-link { margin: 0; padding: 0; border: 0; }
  .sidebar:has(.platform-nav) .main-nav:not(.platform-nav) { display: none; }
  .mobile-header { height: 54px; padding: 0 18px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
  .mobile-header form { margin: 0; }
  .page-container { padding: 24px 18px 42px; }
  .page-heading { min-height: 0; flex-direction: column; }
  .page-heading > .action-row { justify-content: flex-start; }
  .dashboard-grid, .menu-admin-layout, .two-column, .qr-layout { grid-template-columns: 1fr; }
  .category-create { position: static; }
  .form-section { grid-template-columns: 1fr; gap: 18px; }
  .section-intro { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .hours-row { padding: 14px 0; grid-template-columns: 1fr auto; }
  .hours-row > label:not(.check-control) { grid-column: span 1; }
  .auth-layout { display: block; }
  .auth-visual { display: none; }
  .auth-form-wrap { min-height: 100vh; padding: 32px 22px; }
  .mobile-brand { margin-bottom: 24px; display: grid; }
  .kitchen-board { grid-template-columns: repeat(3, 280px); }
}

@media (max-width: 580px) {
  h1 { font-size: 1.55rem; }
  .button { padding-inline: 12px; }
  .page-container { padding-inline: 14px; }
  .metric-grid, .metric-grid.three { grid-template-columns: 1fr 1fr; gap: 9px; }
  .metric { min-height: 106px; padding: 14px; }
  .metric strong { font-size: 1.5rem; }
  .metric > svg { inset: 14px auto auto 14px; }
  .form-grid, .choice-grid { grid-template-columns: 1fr; }
  .form-section { padding: 18px; }
  .sticky-actions { bottom: 76px; }
  .product-row { padding: 8px; grid-template-columns: 30px 46px minmax(100px, 1fr) auto; }
  .product-thumb { width: 44px; height: 44px; }
  .product-row > .status { display: none; }
  .row-actions { grid-column: 3 / -1; justify-content: flex-end; }
  .public-nav { height: 64px; padding: 0 14px; }
  .public-nav .button { min-height: 36px; padding: 5px 9px; font-size: .78rem; }
  .public-nav .button-ghost { display: none; }
  .home-hero { min-height: 300px; height: 42vh; padding: 28px 18px; }
  .hero-copy h1 { font-size: 3.2rem; }
  .restaurant-directory { padding: 28px 14px 52px; }
  .restaurant-grid { grid-template-columns: 1fr; }
  .store-hero { height: 390px; min-height: 390px; padding: 18px; }
  .store-title h1 { font-size: 2.65rem; overflow-wrap: anywhere; }
  .store-main { padding-inline: 12px; }
  .menu-search { margin-top: -44px; }
  .category-tabs { margin-inline: -12px; padding-inline: 12px; }
  .store-content { gap: 34px; }
  .store-product { min-height: 148px; padding: 12px; grid-template-columns: minmax(0, 1fr) 112px; gap: 10px; }
  .store-product p { -webkit-line-clamp: 2; }
  .store-product-media { min-height: 112px; }
  .store-section-heading h2 { font-size: 1.25rem; }
  .flash-stack { top: 10px; left: 10px; width: calc(100vw - 20px); }
}

@media (max-width: 380px) {
  .main-nav a { min-width: 48px; font-size: .6rem; }
  .store-product { grid-template-columns: minmax(0, 1fr) 92px; }
  .store-product-media { min-height: 96px; }
  .product-price small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Customer ordering */
.store-tools { display: flex; gap: 7px; }
.table-context { min-height: 38px; padding: 7px 16px; color: #fff; background: var(--primary); display: flex; align-items: center; justify-content: center; gap: 7px; font-weight: 700; }
.store-filter-form { position: relative; z-index: 3; }
.menu-filters { margin: -10px 0 16px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 0 0 7px 7px; box-shadow: var(--shadow); }
.menu-filters fieldset, .option-group { margin: 0 0 16px; padding: 0; border: 0; }
.menu-filters legend, .option-group legend { margin-bottom: 8px; font-weight: 700; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-chips label { cursor: pointer; }
.filter-chips input { position: absolute; opacity: 0; pointer-events: none; }
.filter-chips span { min-height: 34px; padding: 5px 11px; color: #42504c; background: var(--surface-alt); border: 1px solid var(--line); border-radius: 4px; display: inline-flex; align-items: center; }
.filter-chips input:checked + span { color: #fff; background: var(--primary); border-color: var(--primary); }
.allergen-chips input:checked + span { background: var(--danger); border-color: var(--danger); }
.filter-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.food-labels .allergen { color: #8b3e35; background: #fceae7; }
.store-product-media .favorite-button { width: 34px; height: 34px; position: absolute; right: 8px; top: 8px; color: #52615c; background: rgba(255,255,255,.92); border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.store-product-media .favorite-button.active { color: var(--accent); }
.store-product-media .favorite-button.active svg { fill: currentColor; }
.cart-bar { width: min(520px, calc(100vw - 24px)); min-height: 58px; padding: 10px 16px; position: fixed; z-index: 20; bottom: 14px; left: 50%; color: #fff; background: var(--primary); border: 0; border-radius: 7px; transform: translateX(-50%); display: flex; align-items: center; justify-content: space-between; box-shadow: 0 10px 30px rgba(10,35,29,.3); cursor: pointer; }
.cart-bar[hidden] { display: none; }
.cart-bar > span { display: flex; align-items: center; gap: 7px; }
dialog { padding: 0; color: var(--ink); background: #fff; border: 0; border-radius: 8px; box-shadow: 0 18px 60px rgba(10,20,17,.24); }
dialog::backdrop { background: rgba(10,20,17,.58); backdrop-filter: blur(2px); }
.product-dialog, .cart-dialog { width: min(560px, calc(100vw - 24px)); max-height: min(820px, calc(100vh - 24px)); }
.dialog-shell { max-height: min(820px, calc(100vh - 24px)); display: flex; flex-direction: column; }
.dialog-shell > header { min-height: 68px; padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.dialog-shell > header h2 { margin: 0; }
.dialog-scroll { min-height: 0; padding: 18px; overflow-y: auto; }
.dialog-shell > footer { min-height: 72px; padding: 12px 18px; background: #fff; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-product-image { height: 220px; margin-bottom: 14px; border-radius: 6px; overflow: hidden; }
.dialog-product-image:empty { display: none; }
.dialog-product-image img { width: 100%; height: 100%; object-fit: cover; }
.option-group { padding-top: 12px; border-top: 1px solid var(--line); }
.option-group legend { width: 100%; padding-top: 12px; }
.option-group legend small { float: left; color: var(--muted); font-weight: 500; }
.option-row { min-height: 46px; padding: 8px 3px; border-bottom: 1px solid #edf0ee; display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 9px; cursor: pointer; }
.option-row input { width: 18px; height: 18px; accent-color: var(--primary); }
.option-row strong { font-size: .8rem; }
.quantity-stepper { height: 42px; border: 1px solid var(--line); border-radius: 5px; display: flex; align-items: center; }
.quantity-stepper button { width: 38px; height: 100%; padding: 0; color: var(--primary); background: transparent; border: 0; display: grid; place-items: center; cursor: pointer; }
.quantity-stepper strong, .quantity-stepper b { min-width: 24px; text-align: center; }
.quantity-stepper.compact { height: 34px; }
.quantity-stepper.compact button { width: 30px; }
.cart-lines { display: grid; gap: 4px; }
.cart-line { min-height: 80px; padding: 10px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto 38px; align-items: center; gap: 9px; }
.cart-line > div:first-child { min-width: 0; display: grid; }
.cart-line span, .cart-line small { color: var(--muted); font-size: .78rem; }
.cart-footer { display: grid !important; grid-template-columns: 1fr auto; }
.cart-footer > div { display: grid; }

/* Checkout and tracking */
.checkout-page, .tracking-page, .customer-page { padding: 0; background: #f4f6f4; }
.checkout-header { min-height: 70px; padding: 10px max(18px, calc((100vw - 1120px) / 2)); background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.checkout-header > div { display: grid; }
.checkout-header span { color: var(--muted); font-size: .8rem; }
.checkout-layout { width: min(1120px, 100%); margin: 0 auto; padding: 28px 18px 70px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 20px; }
.checkout-form { display: grid; gap: 14px; }
.checkout-section { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.checkout-section h2 { margin-bottom: 16px; }
.fulfillment-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.fulfillment-grid label { cursor: pointer; }
.fulfillment-grid input { position: absolute; opacity: 0; }
.fulfillment-grid span { min-height: 76px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.fulfillment-grid input:checked + span { color: var(--primary-dark); background: #e7f2ee; border-color: var(--primary); }
.saved-addresses { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.saved-addresses button { padding: 5px 9px; color: var(--primary); background: #edf5f2; border: 1px solid #c9ded7; border-radius: 4px; cursor: pointer; }
.checkout-summary { padding: 22px; position: sticky; top: 18px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.checkout-line { min-height: 40px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: .86rem; }
.checkout-summary dl { margin: 18px 0; }
.checkout-summary dl > div, .receipt-totals > div { padding: 5px 0; display: flex; justify-content: space-between; gap: 10px; }
.checkout-summary dt, .checkout-summary dd, .receipt-totals dt, .receipt-totals dd { margin: 0; }
.summary-total { margin-top: 8px; padding-top: 12px !important; border-top: 2px solid var(--ink); font-size: 1.1rem; font-weight: 800; }
.secure-note { margin: 12px 0 0; display: flex; gap: 5px; font-size: .72rem; }
.secure-note svg { width: 15px; }
.mobile-checkout-submit { display: none; }
.tracking-shell { width: min(720px, 100%); margin: 0 auto; padding: 44px 18px 80px; }
.order-confirmation { margin-bottom: 28px; text-align: center; }
.confirmation-icon { width: 54px; height: 54px; margin: 0 auto 14px; color: #fff; background: var(--primary); border-radius: 50%; display: grid; place-items: center; }
.tracking-panel { margin-bottom: 14px; }
.tracking-status { display: flex; align-items: center; justify-content: space-between; }
.tracking-status > div { display: grid; }
.tracking-status span { color: var(--muted); }
.tracking-status strong { font-size: 1.35rem; }
.status-timeline { margin: 28px 0 4px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; }
.status-timeline li { position: relative; text-align: center; }
.status-timeline li::before { content: ""; height: 2px; position: absolute; z-index: 0; top: 15px; right: -50%; left: 50%; background: var(--line); }
.status-timeline li:first-child::before { display: none; }
.status-timeline li > span { width: 30px; height: 30px; margin: 0 auto 7px; position: relative; z-index: 1; color: transparent; background: #fff; border: 2px solid #cbd4d0; border-radius: 50%; display: grid; place-items: center; }
.status-timeline li.done > span, .status-timeline li.active > span { color: #fff; background: var(--primary); border-color: var(--primary); }
.status-timeline li.done::before, .status-timeline li.active::before { background: var(--primary); }
.status-timeline strong { font-size: .75rem; }
.receipt-line { min-height: 44px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.receipt-line span { display: grid; }
.receipt-line small { color: var(--muted); }
.order-contact { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); }
.order-contact span { display: flex; align-items: center; gap: 6px; }

/* Customer account */
.customer-nav { min-height: 70px; padding: 10px max(18px, calc((100vw - 1180px) / 2)); background: #fff; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; }
.customer-nav nav { display: flex; align-items: center; justify-content: center; gap: 4px; }
.customer-nav nav a { padding: 7px 10px; color: var(--muted); border-bottom: 2px solid transparent; }
.customer-nav nav a.active { color: var(--primary); border-color: var(--primary); }
.customer-nav form { margin: 0; }
.customer-main { width: min(1180px, 100%); margin: 0 auto; padding: 34px 18px 80px; }
.metric-grid a.metric { color: var(--ink); }
.order-list { display: grid; }
.account-order { min-height: 72px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto auto 38px; align-items: center; gap: 14px; }
.account-order > div { display: grid; }
.account-order span { color: var(--muted); font-size: .8rem; }
.customer-order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.customer-order-card header, .customer-order-card footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.customer-order-card header > div { display: grid; }
.customer-order-items { min-height: 86px; margin: 14px 0; padding: 12px 0; border-block: 1px solid var(--line); display: grid; color: var(--muted); }
.address-card, .ticket-card { position: relative; }
.address-card > div, .ticket-card > div { display: flex; justify-content: space-between; gap: 10px; }
.address-card form { position: absolute; top: 12px; left: 12px; }
.favorite-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.favorite-card { color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.favorite-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.favorite-card > div { padding: 14px; }
.favorite-card span { color: var(--muted); font-size: .8rem; }

/* Restaurant operations */
.status-received { color: #875700; background: #fff0c9; }
.status-accepted { color: #225a83; background: #e1eef8; }
.status-preparing { color: #814e18; background: #f8e8d7; }
.status-ready { color: #176248; background: #dff3e9; }
.status-completed { color: #43524d; background: #e7ecea; }
.status-cancelled { color: #a12e2e; background: #fde4e4; }
.compact-metrics { grid-template-columns: 1fr 1fr; }
.status-tabs { margin-bottom: 14px; display: flex; gap: 6px; overflow-x: auto; }
.status-tabs a { padding: 7px 12px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 5px; white-space: nowrap; }
.status-tabs a.active { color: #fff; background: var(--primary); border-color: var(--primary); }
.order-status-actions { margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.order-status-actions form { margin: 0; }
.order-item-detail { min-height: 74px; padding: 10px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 30px minmax(0,1fr) auto; gap: 9px; }
.order-item-detail > div { display: grid; }
.order-item-detail span, .order-item-detail small { color: var(--muted); }
.order-item-detail em { margin-top: 5px; color: #6d4e23; }
.receipt-totals { margin-top: 16px; }
.receipt-totals > div:last-child { padding-top: 10px; border-top: 2px solid var(--ink); font-weight: 800; }
.compact-timeline { margin: 14px 0 0; padding: 0; list-style: none; }
.compact-timeline li { min-height: 54px; display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.compact-timeline li > span { width: 10px; height: 10px; margin-top: 7px; background: var(--primary); border-radius: 50%; }
.compact-timeline li > div { display: grid; }
.compact-timeline small { color: var(--muted); }
.report-row { min-height: 50px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.table-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.table-card { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 10px; }
.table-icon { width: 44px; height: 44px; color: var(--primary); background: #e5f0ed; border-radius: 6px; display: grid; place-items: center; }
.table-card h2, .table-card p { margin: 0; }
.kitchen-orders { display: grid; gap: 10px; }
.kitchen-ticket { background: #fff; border: 1px solid #d4dcd8; border-radius: 6px; overflow: hidden; box-shadow: 0 3px 10px rgba(23,32,30,.07); }
.kitchen-ticket > header { min-height: 48px; padding: 9px 12px; background: #f9faf9; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.kitchen-ticket > header strong { font-size: 1.2rem; }
.kitchen-ticket ul { margin: 0; padding: 8px 12px; list-style: none; }
.kitchen-ticket li { padding: 7px 0; border-bottom: 1px solid #edf0ee; display: grid; grid-template-columns: 24px 1fr; gap: 7px; }
.kitchen-ticket li > div { display: grid; }
.kitchen-ticket li span, .kitchen-ticket li small { color: var(--muted); }
.kitchen-ticket footer { padding: 10px 12px; display: grid; gap: 8px; }
.subscription-form { display: flex; align-items: center; gap: 8px; }
.subscription-form .control { width: auto; min-width: 130px; min-height: 36px; }
.support-ticket-row { display: grid; grid-template-columns: minmax(180px,.7fr) 1fr auto; align-items: center; gap: 16px; }
.support-ticket-row > div { display: grid; }
.support-ticket-row p { margin: 0; }
.support-ticket-row form { display: flex; gap: 8px; }
.support-ticket-row .control { min-width: 140px; }

@media (max-width: 1050px) {
  .fulfillment-grid { grid-template-columns: repeat(2, 1fr); }
  .favorite-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .sidebar { overflow-x: auto; }
  .sidebar .main-nav { width: max-content; min-width: 100%; justify-content: flex-start; }
  .sidebar .main-nav a { min-width: 72px; }
  .sidebar:has(.platform-nav) .main-nav:not(.platform-nav) { display: none; }
  .sidebar:has(.platform-nav) .platform-nav { display: flex; }
  .checkout-layout { grid-template-columns: 1fr; padding-bottom: 100px; }
  .checkout-summary { position: static; order: -1; }
  .desktop-submit { display: none; }
  .mobile-checkout-submit { display: block; }
  .customer-nav { grid-template-columns: 1fr auto; gap: 10px; }
  .customer-nav nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; overflow-x: auto; }
  .customer-nav nav a { white-space: nowrap; }
  .customer-order-grid { grid-template-columns: 1fr; }
  .support-ticket-row { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  .store-product-media .favorite-button { width: 30px; height: 30px; }
  .dialog-shell > footer { position: sticky; bottom: 0; }
  .cart-footer { grid-template-columns: 1fr; }
  .checkout-header { min-height: 60px; }
  .checkout-layout { padding: 14px 10px 90px; }
  .checkout-section, .checkout-summary { padding: 16px; }
  .fulfillment-grid { grid-template-columns: 1fr 1fr; }
  .status-timeline { grid-template-columns: 1fr; gap: 0; }
  .status-timeline li { min-height: 54px; text-align: right; display: grid; grid-template-columns: 34px 1fr; align-items: start; }
  .status-timeline li::before { width: 2px; height: 100%; inset: -37px 14px auto auto; }
  .status-timeline li > span { margin: 0; }
  .account-order { padding: 12px 0; grid-template-columns: 1fr auto; }
  .account-order > strong { grid-column: 1; }
  .account-order > a { grid-column: 2; grid-row: 1 / 3; }
  .favorite-grid, .table-card-grid { grid-template-columns: 1fr; }
  .customer-main { padding: 24px 12px 80px; }
  .customer-nav { padding-inline: 12px; }
  .customer-nav .brand > span:last-child { display: none; }
  .order-detail-layout { grid-template-columns: 1fr; }
  .subscription-form { min-width: 520px; }
}
/* Local intelligence studio */
.smart-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);gap:18px;margin-bottom:18px}.smart-privacy{border-inline-start:4px solid #176b5b}.stack-form,.draft-editor{display:grid;gap:14px}.draft-list{display:grid;gap:14px}.draft-item{border:1px solid var(--border);border-radius:8px;padding:18px;background:#fff}.draft-item>header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:14px}.draft-item h3{font-size:1rem;margin:8px 0 2px}.draft-item time{color:var(--muted);font-size:.78rem;white-space:nowrap}.draft-editor textarea{min-height:90px}.review-actions{display:flex;gap:10px;align-items:center;border-top:1px solid var(--border);padding-top:14px;margin-top:14px}.review-actions form{display:flex;gap:8px;align-items:center}.review-actions .control{min-width:220px}.forecast-list{display:grid;gap:0}.forecast-list>div,.compact-row{display:flex;justify-content:space-between;gap:14px;padding:11px 0;border-bottom:1px solid var(--border)}.forecast-list>div:last-child,.compact-row:last-child{border-bottom:0}.compact-row div{display:grid;gap:4px}.compact-row small,.muted{color:var(--muted)}.draft-result pre{direction:ltr;text-align:left;white-space:pre-wrap;background:#f6f8f7;border-radius:6px;padding:12px;overflow:auto}.color-fields{display:flex;gap:16px}.color-fields label{display:flex;align-items:center;gap:8px}.color-fields input{inline-size:42px;block-size:34px;border:0;background:transparent}
@media(max-width:820px){.smart-layout{grid-template-columns:1fr}.draft-item>header,.review-actions,.review-actions form{align-items:stretch;flex-direction:column}.review-actions .control{min-width:0}.draft-item{padding:14px}}
.store-recommendations,.store-bundles{margin:18px 0 28px}.recommendation-strip,.bundle-strip{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(210px,1fr);gap:12px;overflow-x:auto;padding-bottom:6px}.recommendation-strip article{position:relative;display:grid;grid-template-columns:54px 1fr auto;grid-template-rows:auto auto;gap:3px 10px;align-items:center;border:1px solid var(--border);border-radius:8px;padding:10px;background:#fff}.recommendation-strip article>div{grid-row:1/3;width:54px;height:54px;border-radius:6px;overflow:hidden;background:#eef2ef;display:grid;place-items:center}.recommendation-strip img{width:100%;height:100%;object-fit:cover}.recommendation-strip strong{font-size:.9rem}.recommendation-strip span{font-size:.78rem;color:var(--muted)}.recommendation-strip button{grid-column:3;grid-row:1/3}.bundle-strip article{display:flex;justify-content:space-between;gap:16px;align-items:flex-end;border:1px solid var(--border);border-radius:8px;padding:16px;background:#fff;min-width:300px}.bundle-strip h3{font-size:1rem;margin:7px 0 4px}.bundle-strip p,.bundle-strip small{font-size:.8rem;color:var(--muted);display:block}.bundle-discount{display:inline-block;color:#9b3b20;background:#fff1eb;border-radius:4px;padding:3px 7px;font-size:.75rem;font-weight:700}.bundle-strip .button{white-space:nowrap}
.pilot-form{display:grid;grid-template-columns:minmax(130px,.7fr) minmax(180px,1.3fr) auto;gap:8px;align-items:center}.danger-zone{border-color:#e7b5aa}.narrow-form{max-width:560px}
