:root {
  --bg: #f4f2ec;
  --surface: #ffffff;
  --surface-soft: #f8f6ef;
  --text: #1d2424;
  --muted: #697274;
  --line: #ded9cb;
  --primary: #1f6f5b;
  --accent: #f6c453;
  --danger: #c94d3f;
  --radius: 12px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--bg); }
button, input, select { font: inherit; }
button { cursor: pointer; }

.eyebrow {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(16px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
  background: rgba(244, 242, 236, 0.92);
  backdrop-filter: blur(14px);
}

.admin-login {
  min-height: 100vh;
  padding: clamp(22px, 6vw, 70px);
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(238, 241, 232, .62) 0 12%, rgba(178, 186, 176, .28) 13% 30%, transparent 52%),
    radial-gradient(circle at 18% 12%, rgba(158, 205, 167, .42), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(214, 184, 106, .18), transparent 30%),
    linear-gradient(180deg, rgba(44, 50, 47, 0) 0 58%, rgba(47, 50, 48, .52) 74%, rgba(187, 190, 183, .34) 100%),
    linear-gradient(135deg, #10382a 0%, #1f5638 42%, #76a978 100%);
}
.admin-login[hidden] { display: none; }
.admin-login-card {
  width: min(100%, 430px);
  padding: 28px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  color: #fff;
  background: rgba(255,255,255,.12);
  box-shadow: 0 28px 80px rgba(0,0,0,.28);
  backdrop-filter: blur(18px);
}
.admin-login-logo {
  display: block;
  width: min(210px, 62%);
  margin: 0 auto 18px;
  border-radius: 18px;
  background: #101312;
  box-shadow: 0 16px 38px rgba(0,0,0,.26);
}
.admin-login-card h2 {
  margin: 6px 0 8px;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  letter-spacing: 0;
}
.admin-login-card p {
  margin: 0 0 20px;
  color: rgba(255,255,255,.78);
}
.admin-login-card label {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  color: rgba(255,255,255,.86);
  font-weight: 800;
}
.admin-login-card input {
  min-height: 48px;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 12px;
  padding: 0 14px;
  color: #111614;
  background: #fffdf6;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.admin-login-card input::placeholder {
  color: rgba(17, 22, 20, .58);
}
.admin-login-card input:focus {
  outline: 3px solid rgba(214,184,106,.45);
  border-color: #d6b86a;
}
.admin-login-card .primary-button {
  width: 100%;
  justify-content: center;
}
.admin-login-card .status-pill {
  display: inline-flex;
  margin-top: 14px;
}

.admin-topbar h1,
.panel-head h2,
.public-section h2,
.public-hero h1 {
  margin: 0;
  letter-spacing: 0;
}

.topbar-actions,
.panel-head,
.selection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-layout {
  width: min(1380px, calc(100% - 28px));
  margin: 18px auto 80px;
}

.admin-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(31, 111, 91, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(31,111,91,0.94), rgba(24,45,45,0.96)),
    radial-gradient(circle at 12% 10%, rgba(246,196,83,0.25), transparent 32%);
  color: #fff;
  box-shadow: 0 24px 70px rgba(31, 45, 36, 0.18);
}
.admin-hero .eyebrow,
.admin-hero p { color: rgba(255,255,255,0.76); }
.admin-hero h2 {
  max-width: 780px;
  margin: 4px 0 8px;
  font-size: clamp(1.8rem, 3.6vw, 3.15rem);
  line-height: 1.02;
  letter-spacing: 0;
}
.admin-hero p {
  max-width: 720px;
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.45;
}
.admin-hero .primary-button {
  background: #fff;
  color: #193b34;
}

.admin-nav {
  position: sticky;
  top: 76px;
  z-index: 18;
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px;
  border: 1px solid rgba(222, 217, 203, 0.86);
  border-radius: 16px;
  background: rgba(255, 253, 247, 0.92);
  box-shadow: 0 16px 35px rgba(31, 28, 18, 0.08);
  backdrop-filter: blur(14px);
  overflow-x: auto;
}
.admin-nav-btn {
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 9px 13px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  white-space: nowrap;
}
.admin-nav-btn.is-active {
  border-color: rgba(31,111,91,0.18);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 26px rgba(31,111,91,0.18);
}
.admin-view { display: none; }
.admin-view.is-active { display: grid; gap: 14px; }
.metric-grid.admin-view.is-active,
.panel-card.admin-view.is-active { display: grid; }
.section-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, #fffdf7, #f8f4e9);
}
.section-title-row h2 {
  margin: 3px 0 0;
  letter-spacing: 0;
  font-size: clamp(1.3rem, 2vw, 2rem);
}
.helper-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.helper-grid div {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid #e4ddcd;
  border-radius: 12px;
  background: rgba(255,255,255,0.76);
}
.helper-grid strong {
  font-size: 0.9rem;
}
.helper-grid small {
  color: var(--muted);
  line-height: 1.35;
}
.qr-card {
  max-width: 760px;
  margin-inline: auto;
}

.metric-grid,
.workspace-grid,
.catalog-columns,
.analytics-grid,
.top5-grid {
  display: grid;
  gap: 14px;
}

.metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 14px; }
.workspace-grid { grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr); margin-bottom: 14px; }
.catalog-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.analytics-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.top5-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.intelligence-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.intelligence-panel {
  background: linear-gradient(135deg, #fffdf7, #eef6f1);
}
.skill-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 190px;
  border: 1px solid #d8e4db;
  border-radius: 12px;
  background: rgba(255,255,255,0.86);
  padding: 13px;
}
.skill-card > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.skill-card > strong {
  font-size: 1.05rem;
  line-height: 1.15;
}
.skill-card.is-warning {
  border-color: #f0d5ae;
  background: #fff8ea;
}
.skill-card.is-ok {
  border-color: #bfe2cd;
  background: #effaf3;
}
.skill-list {
  display: grid;
  gap: 7px;
}
.skill-list div {
  display: grid;
  gap: 2px;
  border-top: 1px solid rgba(0,0,0,0.07);
  padding-top: 7px;
}
.skill-list b {
  font-size: 0.86rem;
}
.skill-list small {
  color: var(--muted);
  line-height: 1.32;
}

.plan-layout {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(300px, 1fr);
  gap: 14px;
  align-items: start;
}
.plan-summary-card {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #172b26);
  border-color: rgba(255,255,255,.16);
}
.plan-summary-card .eyebrow,
.plan-summary-card small,
.plan-summary-card p {
  color: rgba(255,255,255,.78);
}
.plan-summary-card h2 {
  margin: 8px 0;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0;
}
.plan-limits-card .limit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.limit-grid div {
  display: grid;
  gap: 4px;
  min-height: 84px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.limit-grid strong {
  font-size: 1.25rem;
}
.limit-grid small {
  color: var(--muted);
  font-weight: 800;
}
.limit-grid .is-warning {
  border-color: #e8bf72;
  background: #fff8e8;
}
.limit-grid .is-danger {
  border-color: #e0a59e;
  background: #fff0ee;
}
.plan-features-card {
  grid-column: 1 / -1;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.feature-row {
  display: grid;
  gap: 4px;
  padding: 10px 11px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}
.feature-row span {
  width: max-content;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: .66rem;
  font-weight: 900;
  text-transform: uppercase;
}
.feature-row.is-enabled {
  border-color: #b9dac6;
  background: #f3fbf6;
}
.feature-row.is-enabled span {
  color: #1b5e3e;
  background: #dff3e8;
}
.feature-row.is-locked {
  border-color: #ead2c3;
  background: #fff7f2;
}
.feature-row.is-locked span {
  color: #9a4c28;
  background: #fde5d5;
}
.plan-upgrade-card {
  border-color: #d4c083;
  background: linear-gradient(180deg, #fff9e8, #fff);
}

.superadmin-overview {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.superadmin-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.superadmin-tenant-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #d9e4dc;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(241,247,242,.92)),
    radial-gradient(circle at 96% 0%, rgba(31,111,91,.12), transparent 30%);
  box-shadow: 0 16px 42px rgba(35, 49, 43, .08);
}
.superadmin-tenant-head,
.superadmin-tenant-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.superadmin-tenant-head h3 {
  margin: 8px 0 3px;
  font-size: 1.25rem;
  letter-spacing: 0;
}
.superadmin-tenant-head small,
.superadmin-tenant-foot small {
  color: var(--muted);
  font-weight: 800;
}
.superadmin-tenant-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.superadmin-tenant-metrics div {
  min-height: 72px;
  padding: 10px;
  border: 1px solid #e2ddcf;
  border-radius: 10px;
  background: rgba(255,255,255,.84);
}
.superadmin-tenant-metrics strong {
  display: block;
  font-size: 1.2rem;
}
.superadmin-tenant-metrics small {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
}
.superadmin-tenant-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid #e6dfcf;
  border-radius: 12px;
  background: #fffaf0;
}
.superadmin-tenant-foot {
  padding-top: 2px;
  border-top: 1px solid rgba(0,0,0,.06);
}

.panel-card,
.metric-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(31, 28, 18, 0.06);
}

.panel-card { padding: 16px; margin-bottom: 14px; }
.metric-card { padding: 14px; min-height: 92px; }
.metric-card span,
.product-card small,
.promo-row small,
.muted { color: var(--muted); }
.metric-card strong { display: block; margin: 8px 0 4px; font-size: 1.7rem; line-height: 1; }

.primary-button,
.ghost-button,
.danger-button {
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 9px 13px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.primary-button { color: white; background: var(--primary); }
.ghost-button { color: var(--text); background: var(--surface-soft); border-color: var(--line); }
.danger-button {
  color: #8f2722;
  background: #fff5f3;
  border-color: rgba(182, 59, 54, .28);
}
.danger-button:hover {
  color: #fff;
  background: #b63b36;
  border-color: #b63b36;
}
.inline-action-spacer {
  flex: 1 1 auto;
}

.status-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: #e8f4ee;
  color: #176145;
  font-size: 0.78rem;
  font-weight: 800;
}
.status-pill.is-error { background: #ffe9e4; color: var(--danger); }
.status-pill.is-saving { background: #fff5d4; color: #815f00; }
.status-pill.is-ok { background: #dff3e8; color: #176145; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.restaurant-editor {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}
.editor-section {
  display: grid;
  grid-template-columns: minmax(180px, 0.38fr) minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  border: 1px solid #e5dece;
  border-radius: 12px;
  background: linear-gradient(135deg, #fffdf7, #f7f4eb);
}
.editor-copy h3 {
  margin: 4px 0 6px;
  letter-spacing: 0;
}
.editor-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.42;
}
.upload-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.upload-card {
  position: relative;
  min-height: 176px;
  align-content: start;
  gap: 8px;
  padding: 12px;
  border: 1px dashed #cbbf9f;
  border-radius: 12px;
  background: #fff;
  color: var(--text);
}
.upload-card span {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}
.upload-card img {
  width: 100%;
  height: 76px;
  object-fit: contain;
  border: 1px solid #ece6d8;
  border-radius: 10px;
  background: #f7f4eb;
  padding: 6px;
}
.upload-card img[hidden] { display: none; }
.advanced-fields {
  grid-column: 2;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfaf6;
  padding: 10px 12px;
}
.advanced-fields summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}
.form-actions-sticky {
  position: sticky;
  bottom: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid #d9ccb2;
  border-radius: 12px;
  background: rgba(255, 253, 247, 0.94);
  box-shadow: 0 16px 36px rgba(31, 28, 18, 0.12);
  backdrop-filter: blur(12px);
}
.compact-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.full-field { grid-column: 1 / -1; }
label { display: grid; gap: 5px; color: var(--muted); font-size: 0.82rem; font-weight: 800; }
input, select {
  width: 100%;
  min-height: 38px;
  border: 1px solid #cfc8b8;
  border-radius: 10px;
  background: white;
  color: var(--text);
  padding: 8px 10px;
}
input[type="color"] { padding: 3px; }
input[type="file"] {
  padding: 7px;
  background: #fbfaf6;
  font-size: 0.78rem;
}
.check-row { align-content: end; grid-template-columns: auto 1fr; align-items: center; color: var(--text); }
.check-row input { width: 18px; min-height: 18px; }

.chip-list,
.product-board,
.promo-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.chip,
.product-card,
.promo-row {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  padding: 11px;
}
.chip { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.section-chip-thumb,
.category-summary-thumb {
  flex: 0 0 auto;
  width: 58px;
  height: 38px;
  border: 1px solid rgba(31, 86, 56, .16);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 253, 248, .96), rgba(236, 229, 211, .72));
  object-fit: contain;
  padding: 5px;
}
.section-chip-thumb.is-empty,
.category-summary-thumb.is-empty {
  display: inline-grid;
  place-items: center;
}
.section-chip-thumb.is-empty::after,
.category-summary-thumb.is-empty::after {
  content: "";
  width: 18px;
  height: 18px;
  border: 1px solid rgba(178, 138, 62, .48);
  border-radius: 5px;
}
.category-summary-thumb {
  width: 50px;
  height: 34px;
  border-radius: 9px;
}
.product-card { display: grid; gap: 8px; }
.product-card-head { display: flex; justify-content: space-between; gap: 10px; }
.product-card strong, .promo-row strong { display: block; }
.promo-row-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.promo-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 4px 8px;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 900;
}
.promo-status.is-live { background: #dff4e7; color: #176145; }
.promo-status.is-planned,
.promo-status.is-waiting { background: #fff2c6; color: #72570a; }
.promo-status.is-off { background: #ece7df; color: #746b5e; }
.promo-schedule {
  margin-top: 14px;
  border: 1px solid #e5d8b2;
  border-radius: 12px;
  background: #fff9e7;
  padding: 12px;
}
.schedule-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.schedule-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}
.schedule-slot {
  border: 1px solid #eadcae;
  border-radius: 10px;
  background: #fff;
  padding: 9px;
}
.schedule-slot strong,
.schedule-slot span,
.schedule-slot small {
  display: block;
}
.schedule-slot span {
  margin: 4px 0;
  font-size: 0.82rem;
  font-weight: 800;
}
.schedule-empty {
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  padding: 10px;
}
.product-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.product-actions button, .small-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 6px 9px;
  font-weight: 800;
}
.compact-upload {
  min-height: 80px;
  padding: 12px;
}
.product-meta-tags,
.public-product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.product-meta-tags span,
.public-product-tags span {
  width: max-content;
  max-width: 100%;
  border: 1px solid #cfe1d6;
  border-radius: 999px;
  padding: 4px 8px;
  background: #eef8f2;
  color: #1f5e42;
  font-size: .7rem;
  font-weight: 900;
  line-height: 1.1;
}
.product-meta-tags .is-allergen,
.public-product-tags .is-allergen {
  border-color: #efd7b5;
  background: #fff4df;
  color: #895b08;
}

.qr-box {
  display: grid;
  place-items: center;
  width: 180px;
  height: 180px;
  margin: 14px auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  overflow: hidden;
}
.qr-box img { width: 100%; height: 100%; object-fit: contain; }
.qr-workspace {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(360px, 1.15fr);
  gap: 16px;
  align-items: start;
}
.qr-print-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid #d9ccb2;
  border-radius: 16px;
  background: #fffdf7;
  text-align: center;
}
.qr-print-logo img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border-radius: 12px;
}
.qr-print-logo img[hidden] { display: none; }
.qr-print-card strong { font-size: 1.2rem; }
.qr-print-card span { color: var(--muted); font-weight: 800; }
.qr-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.qr-plan-summary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #d9ccb2;
  border-radius: 10px;
  background: #fff9e8;
  color: #2d2d24;
  font-size: .86rem;
}
.qr-plan-summary span { color: #665f4b; font-weight: 800; }
.qr-limit-alert {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #bfdccc;
  border-radius: 10px;
  background: #effaf3;
  color: #1c4b35;
  font-size: .86rem;
  font-weight: 800;
}
.qr-limit-alert.is-locked {
  border-color: #e8c4a2;
  background: #fff3e6;
  color: #7a3b0c;
}
.qr-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.qr-row {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.qr-row.is-disabled {
  opacity: .62;
  background: #f3f3f3;
}
.qr-row > img {
  width: 76px;
  height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.qr-row-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.qr-row-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.qr-row-title span {
  padding: 3px 7px;
  border-radius: 999px;
  background: #e8f6ef;
  color: #1f6f5b;
  font-size: .72rem;
  font-weight: 900;
}
.qr-row.is-disabled .qr-row-title span {
  background: #e9e9e9;
  color: #777;
}
.qr-row-main code {
  font-size: .72rem;
}
.qr-row-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
}
.qr-row-actions {
  display: grid;
  gap: 7px;
}
.publish-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  max-width: 980px;
  margin: 0 auto;
}
.publish-card {
  border-color: rgba(116,116,108,.18);
  background:
    radial-gradient(circle at 92% 0%, rgba(201,164,91,.15), transparent 30%),
    linear-gradient(145deg, #fffdf8, #f4f1e8);
  box-shadow: 0 18px 44px rgba(46,45,39,.08);
}
.publish-card .panel-head h2 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}
.publish-card .compact-form {
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: end;
}
.publish-card .primary-button {
  width: max-content;
  max-width: 100%;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: .88rem;
  line-height: 1.1;
  white-space: nowrap;
}
.publish-current {
  margin-top: 14px;
}
.publish-current-box {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #bfd6c9;
  border-radius: 12px;
  background: #effaf4;
  color: #1b4c34;
}
.publish-current-box.is-warning {
  border-color: #e8c4a2;
  background: #fff3e6;
  color: #7a3b0c;
}
.publish-current-box span,
.version-row span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}
.version-list {
  display: grid;
  gap: 10px;
}
.version-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.version-row div {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.version-row small {
  color: var(--muted);
  font-weight: 800;
}
.onboarding-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.1fr) minmax(280px, .9fr);
  gap: 16px;
  align-items: start;
}
.onboarding-card {
  border-color: #d9ccb2;
  background: linear-gradient(180deg, #fffdf7, #fff);
}
.onboarding-result-card {
  border-color: #c9d7e8;
  background: linear-gradient(180deg, #f7fbff, #fff);
}
.onboarding-result {
  display: grid;
  gap: 12px;
}
.onboarding-success {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid #bfd6c9;
  border-radius: 12px;
  background: #effaf4;
  color: #1b4c34;
}
.onboarding-success span {
  color: #42745b;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}
.onboarding-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.import-grid {
  display: grid;
  grid-template-columns: minmax(340px, .95fr) minmax(360px, 1.05fr);
  gap: 16px;
  align-items: start;
}
.import-card {
  border-color: #d6dcc5;
  background: linear-gradient(180deg, #fbfff4, #fff);
}
.import-source-card {
  border-color: #d6c7ea;
  background: linear-gradient(180deg, #faf6ff, #fff);
}
.import-card textarea {
  width: 100%;
  min-height: 170px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}
.import-preview {
  display: grid;
  gap: 10px;
}
.import-summary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #bfd6c9;
  border-radius: 10px;
  background: #effaf4;
  color: #1b4c34;
}
.import-summary span {
  color: #42745b;
  font-weight: 900;
}
.import-source-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.import-source-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.import-source-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #ddd2ea;
  border-radius: 10px;
  background: #fff;
}
.import-source-row div {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.import-source-row span {
  width: max-content;
  padding: 3px 7px;
  border-radius: 999px;
  color: #5d4083;
  background: #f1e9fb;
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
}
.import-source-row strong,
.import-source-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.import-source-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.import-review-box {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px dashed #bba6d8;
  border-radius: 12px;
  background: rgba(241, 233, 251, .55);
}
.import-review-box[hidden] { display: none; }
.import-review-readable {
  display: grid;
  gap: 12px;
}
.import-empty-state {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(182, 59, 54, .20);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255,253,248,.96), rgba(253,244,240,.86));
  color: #53302c;
}
.import-empty-state strong {
  font-size: .98rem;
}
.import-empty-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
}
.import-summary.has-issues {
  border-color: rgba(201,164,91,.36);
  background: #fff7e7;
  color: #63491c;
}
.import-readable-list {
  display: grid;
  gap: 12px;
}
.import-category-review {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(112, 106, 91, .14);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(201,164,91,.10), transparent 28%),
    linear-gradient(145deg, rgba(255,253,248,.96), rgba(244,240,229,.84));
}
.import-category-title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.import-category-title span,
.import-category-title small {
  width: max-content;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(201,164,91,.14);
  color: #76591f;
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
}
.import-category-title strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.import-review-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(112,106,91,.16);
  border-radius: 13px;
  background: rgba(255,255,255,.70);
}
.import-review-item.has-issues {
  border-color: rgba(201,164,91,.38);
  background: rgba(255,247,231,.78);
}
.import-review-item strong,
.import-review-item small {
  display: block;
  min-width: 0;
}
.import-review-item small {
  color: var(--muted);
  line-height: 1.35;
}
.import-review-item b {
  color: #173f2d;
  white-space: nowrap;
}
.import-review-item em {
  display: block;
  margin-top: 4px;
  color: #9b6d21;
  font-size: .76rem;
  font-style: normal;
  font-weight: 800;
}
.import-review-item.is-editable {
  grid-template-columns: 118px minmax(120px, .8fr) minmax(160px, 1fr) 120px;
  align-items: end;
}
.import-review-item.is-editable label {
  display: grid;
  gap: 5px;
  margin: 0;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}
.import-review-item.is-editable input,
.import-review-item.is-editable select {
  min-height: 38px;
  border: 1px solid rgba(112,106,91,.20);
  border-radius: 10px;
  padding: 8px 10px;
  background: #fffdf8;
  color: #202522;
  font-size: .88rem;
  text-transform: none;
}
.import-review-item .full-field {
  grid-column: 1 / -1;
}
.import-technical-details {
  border-top: 1px solid rgba(112,106,91,.14);
  padding-top: 10px;
}
.import-technical-details summary {
  color: var(--muted);
  cursor: pointer;
  font-size: .82rem;
  font-weight: 900;
}
.import-table {
  display: grid;
  gap: 6px;
}
.import-row {
  display: grid;
  grid-template-columns: 64px 1fr 1.3fr 72px;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-size: .82rem;
}
.import-row span,
.import-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
code { display: block; white-space: normal; overflow-wrap: anywhere; color: var(--muted); }

.public-shell {
  --primary: var(--restaurant-primary, #1f6f5b);
  --accent: var(--restaurant-accent, #f6c453);
  background: #101514;
  color: #f8f4e8;
}

.public-hero {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 18px 16px 12px;
  background: linear-gradient(135deg, var(--primary), #101514);
  border-bottom: 1px solid rgba(255,255,255,0.16);
}
.view-home .public-hero {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 40;
  padding: 0;
  transform: translateX(-50%);
  background: transparent;
  border-bottom: 0;
}
.public-brand { display: flex; gap: 12px; align-items: center; }
.view-home .public-brand {
  flex-direction: column;
  gap: 8px;
}
.public-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255,255,255,0.92);
  padding: 5px;
}
.view-home .public-brand img {
  width: 96px;
  height: 96px;
  border: 1px solid rgba(246,196,83,0.45);
  border-radius: 14px;
  background: rgba(0,0,0,0.66);
  backdrop-filter: blur(8px);
}
.view-home .public-brand .eyebrow {
  display: block;
  text-align: center;
}
.view-home .public-brand h1,
.view-home .public-brand p,
.view-home .public-tabs,
.view-home .category-tabs {
  display: none;
}
.view-food .public-hero,
.view-drink .public-hero {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 12px 4px 6px;
  background: rgba(0,0,0,0.10);
  border-bottom: 1px solid rgba(255,255,255,0.30);
  backdrop-filter: blur(8px);
}
.view-food .public-brand,
.view-drink .public-brand {
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
}
.view-food .public-brand img,
.view-drink .public-brand img {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(246,196,83,0.60);
  border-radius: 6px;
  background: #010101;
  padding: 3px;
}
.view-food .public-brand .eyebrow,
.view-drink .public-brand .eyebrow,
.view-food .public-brand p,
.view-drink .public-brand p {
  display: none;
}
.view-food .public-brand h1,
.view-drink .public-brand h1 {
  color: #fff;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.view-food .public-tabs,
.view-drink .public-tabs {
  display: none;
}
.category-tabs {
  display: none;
}
.view-food .category-tabs,
.view-drink .category-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: 620px;
  margin: 0 auto;
}
.category-tabs a,
.category-tabs button {
  min-height: 34px;
  border: 1px solid rgba(246,196,83,0.42);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(0,0,0,0.50);
  color: rgba(255,255,255,0.92);
  font-size: .70rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}
.category-tabs a:hover,
.category-tabs button:hover {
  border-color: var(--accent);
  background: rgba(246,196,83,0.15);
  color: var(--accent-strong, #ffdd7a);
}
.public-hero p { margin: 3px 0 0; color: rgba(255,255,255,0.7); }
.public-tabs { display: flex; gap: 8px; overflow-x: auto; margin-top: 14px; padding-bottom: 2px; }
.public-tabs a,
.public-tabs button {
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.09);
  font-weight: 800;
  white-space: nowrap;
}
.public-tabs .is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #151515;
}

.public-main {
  width: min(920px, calc(100% - 24px));
  margin: 18px auto 110px;
}
.view-home .public-main {
  width: 100%;
  margin: 0;
  min-height: 100vh;
}
.view-food .public-main,
.view-drink .public-main {
  width: min(820px, calc(100% - 22px));
  margin-top: 0;
  padding-top: 150px;
}
.view-food #menuGateway,
.view-drink #menuGateway {
  display: none;
}
.menu-gateway {
  min-height: calc(100vh - 150px);
  display: grid;
  align-content: center;
  gap: 22px;
}
.view-home .menu-gateway {
  position: relative;
  min-height: 100vh;
  gap: 0;
}
.view-home .menu-gateway::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 4;
  width: 1px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.05), rgba(246,196,83,0.55), rgba(255,255,255,0.05));
}
.gateway-intro {
  max-width: 760px;
  padding: 4px 0 2px;
}
.view-home .gateway-intro {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 5;
  width: min(680px, calc(100% - 32px));
  padding: 12px 16px;
  transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 16px;
  background: rgba(0,0,0,0.34);
  backdrop-filter: blur(12px);
  text-align: center;
}
.gateway-intro h2 {
  margin: 6px 0;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  line-height: 0.95;
}
.view-home .gateway-intro h2 {
  font-size: clamp(1.2rem, 4vw, 2rem);
  line-height: 1.08;
}
.gateway-intro p {
  max-width: 620px;
  color: rgba(255,255,255,0.72);
  font-size: 1.02rem;
}
.view-home .gateway-intro p {
  max-width: none;
  margin: 4px 0 0;
  font-size: 0.9rem;
}
.gateway-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.view-home .gateway-grid {
  min-height: 100vh;
  gap: 0;
}
.gateway-card {
  min-height: 310px;
  display: grid;
  align-content: end;
  gap: 10px;
  text-align: left;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  padding: 24px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 20px 50px rgba(0,0,0,0.22);
  overflow: hidden;
  position: relative;
  isolation: isolate;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.view-home .gateway-card {
  min-height: 100vh;
  align-content: center;
  justify-items: center;
  border: 0;
  border-radius: 0;
  padding: 24px 28px 116px;
  text-align: center;
  box-shadow: none;
}
.gateway-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent 38%);
}
.view-home .gateway-card::before {
  background: rgba(0,0,0,0.42);
  transition: background .25s ease;
}
.gateway-card::after {
  content: "Apri";
  position: absolute;
  right: 18px;
  top: 18px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(0,0,0,0.16);
  color: rgba(255,255,255,0.88);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}
.view-home .gateway-card::after {
  top: auto;
  right: auto;
  bottom: 78px;
  left: 50%;
  content: "Entra";
  transform: translateX(-50%);
  border-color: rgba(246,196,83,0.62);
  background: rgba(0,0,0,0.34);
  color: #ffdd7a;
  letter-spacing: .14em;
}
.gateway-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.34);
  box-shadow: 0 26px 60px rgba(0,0,0,0.30);
}
.view-home .gateway-card:hover {
  transform: none;
}
.view-home .gateway-card:hover::before {
  background: rgba(0,0,0,0.24);
}
.gateway-card span {
  width: max-content;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.86);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}
.view-home .gateway-card span {
  border: 1px solid rgba(246,196,83,0.62);
  background: rgba(0,0,0,0.38);
  color: #ffdd7a;
  letter-spacing: .16em;
}
.gateway-card strong {
  max-width: 92%;
  font-size: clamp(1.85rem, 4vw, 3.35rem);
  line-height: 0.98;
}
.view-home .gateway-card strong {
  max-width: min(520px, 90%);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-shadow: 0 4px 18px rgba(0,0,0,.55), 0 2px 8px rgba(0,0,0,.45);
  transition: transform .25s ease;
}
.view-home .gateway-card:hover strong {
  transform: scale(1.04);
}
.gateway-card small {
  color: rgba(255,255,255,0.74);
  max-width: 88%;
  font-size: 0.98rem;
  line-height: 1.35;
}
.view-home .gateway-card small {
  max-width: 340px;
  color: rgba(255,255,255,.92);
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.gateway-food {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.14), rgba(0,0,0,0.66)),
    url("https://fuoribordoeko.it/image/FFOOD.jpg") center/cover,
    linear-gradient(135deg, #8a5e26, #201811);
}
.gateway-drink {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.14), rgba(0,0,0,0.66)),
    url("https://images.unsplash.com/photo-1514362545857-3bc16c4c7d1b?auto=format&fit=crop&w=1400&q=80") center/cover,
    linear-gradient(135deg, var(--primary), #101514);
}
.public-section,
.promo-public-card {
  margin-bottom: 18px;
  border-radius: 18px;
  background: rgba(10,10,10,0.24);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.34);
  scroll-margin-top: 156px;
}
.view-home #promo {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 118px;
  z-index: 12;
  width: min(520px, calc(100% - 28px));
  transform: translateX(-50%);
  margin: 0;
  padding: 12px 14px;
  border-color: rgba(246,196,83,.42);
  background:
    linear-gradient(135deg, rgba(15,15,15,.86), rgba(35,25,13,.78)),
    radial-gradient(circle at top right, rgba(246,196,83,.28), transparent 42%);
  backdrop-filter: blur(12px);
}
.view-home #promo h2 {
  margin: 4px 0;
  font-size: 1.15rem;
}
.view-home #promo p {
  margin: 0 0 8px;
  font-size: .78rem;
}
.view-home #promo .public-product {
  padding: 10px 12px;
}
.view-home #promo .public-product strong {
  font-size: .95rem;
}
.view-home #promo .public-price {
  white-space: nowrap;
}
.public-menu-hero {
  margin-bottom: 18px;
  border: 1px solid rgba(246,196,83,0.22);
  border-radius: 18px;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(246,196,83,0.20), transparent 42%),
    linear-gradient(135deg, rgba(0,0,0,0.62), rgba(44,94,102,0.34));
  box-shadow: 0 18px 38px rgba(0,0,0,0.28);
}
.view-food .public-menu-hero,
.view-drink .public-menu-hero {
  display: grid;
  place-items: center;
  gap: 14px;
  min-height: 300px;
  padding: 28px 16px 22px;
  text-align: center;
  border-radius: 0 0 18px 18px;
  border-top: 0;
}
.menu-area-logo {
  display: none;
}
.view-food .menu-area-logo,
.view-drink .menu-area-logo {
  display: block;
  width: min(230px, 64vw);
  max-height: 190px;
  object-fit: contain;
  opacity: .96;
}
.view-food .back-home-button,
.view-drink .back-home-button {
  display: none;
}
.public-menu-hero h2 {
  margin: 6px 0 4px;
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.view-food .public-menu-hero h2,
.view-drink .public-menu-hero h2 {
  font-size: clamp(2.05rem, 8vw, 4.2rem);
  font-weight: 950;
  letter-spacing: .12em;
  text-shadow: 0 4px 18px rgba(0,0,0,.42);
}
.public-menu-hero p {
  max-width: 640px;
  color: rgba(255,255,255,.72);
}
.view-food .section-quick-nav,
.view-drink .section-quick-nav {
  display: none;
}
.back-home-button {
  border: 1px solid rgba(246,196,83,.46);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(0,0,0,.28);
  color: #ffdd7a;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.section-quick-nav {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-bottom: 2px;
  overflow-x: auto;
}
.section-quick-nav a {
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(0,0,0,.28);
  color: #fff;
  font-size: .78rem;
  font-weight: 900;
  text-decoration: none;
}
.section-quick-nav a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.view-food.public-shell {
  background:
    linear-gradient(to bottom, #2f2f2f 0%, #3c3c3c 25%, #505050 60%, #3c3c3c 85%, #2f2f2f 100%);
  background-size: 100% 550px;
  background-attachment: fixed;
}
.view-drink.public-shell {
  background:
    linear-gradient(to bottom, #2f2f2f 0%, #3c3c3c 25%, #505050 60%, #3c3c3c 85%, #2f2f2f 100%);
  background-size: 100% 550px;
  background-attachment: fixed;
}
.view-food .public-menu-hero {
  background:
    linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.58)),
    radial-gradient(circle at top left, rgba(246,196,83,0.22), transparent 38%),
    rgba(44,94,102,0.55);
}
.view-drink .public-menu-hero {
  background:
    linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.58)),
    radial-gradient(circle at top right, rgba(77,190,210,0.20), transparent 42%),
    rgba(44,94,102,0.50);
}
.view-food .section-quick-nav a {
  border-color: rgba(246,196,83,.24);
  background: rgba(0,0,0,.34);
}
.view-food .public-category summary {
  background:
    radial-gradient(circle at left, rgba(246,196,83,.13), transparent 45%),
    rgba(0,0,0,.30);
}
.view-food .public-category:nth-of-type(1) summary { border-left: 4px solid #23867f; }
.view-food .public-category:nth-of-type(2) summary { border-left: 4px solid #111; }
.view-food .public-category:nth-of-type(3) summary { border-left: 4px solid #7d5c35; }
.view-food .public-category:nth-of-type(4) summary { border-left: 4px solid #566b58; }
.view-food .public-category:nth-of-type(5) summary { border-left: 4px solid #ded7c8; }
.view-food #top5 {
  border-color: rgba(246,196,83,.30);
  background:
    radial-gradient(circle at top left, rgba(246,196,83,.18), transparent 42%),
    rgba(0,0,0,.24);
}
.view-food .public-product strong {
  letter-spacing: .01em;
}
.view-food .public-price {
  background: rgba(246,196,83,.14);
}
.view-drink .public-category summary {
  background:
    radial-gradient(circle at right, rgba(77,190,210,.12), transparent 44%),
    rgba(0,0,0,.26);
}
.public-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.public-section-head h2 {
  margin: 0;
  font-size: clamp(1.55rem, 5vw, 2.4rem);
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.public-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.public-category { margin-top: 12px; }
.public-category summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  border-radius: 14px;
  background: rgba(0,0,0,0.24);
  border: 1px solid rgba(246,196,83,0.16);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.public-category-thumb {
  flex: 0 0 auto;
  width: 74px;
  height: 42px;
  object-fit: contain;
  border-radius: 10px;
  padding: 4px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(246, 196, 83, .16);
}
.public-category summary span {
  min-width: 0;
  flex: 1;
}
.public-category summary small {
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(246,196,83,.14);
  color: var(--accent);
  font-size: .72rem;
}
.public-category summary::-webkit-details-marker { display: none; }
.public-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  margin-top: 9px;
  padding: 13px;
  border-radius: 14px;
  background: rgba(0,0,0,0.20);
  border: 1px solid rgba(255,255,255,0.12);
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.public-product.has-image {
  grid-template-columns: 58px minmax(0, 1fr) auto;
}
.view-drink .public-product,
.view-drink .public-category summary,
.view-drink .public-section,
.view-drink .promo-public-card {
  background-color: rgba(10,10,10,0.20);
}
.view-food .public-product,
.view-food .public-section,
.view-food .promo-public-card {
  background-color: rgba(10,10,10,0.24);
}
.public-product:hover {
  transform: translateY(-1px);
  border-color: rgba(246,196,83,0.38);
  background: rgba(246,196,83,0.08);
}
.public-product.is-selected { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(246,196,83,0.18); }
.public-product-image {
  width: 58px;
  height: 58px;
  align-self: start;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(255,255,255,.16);
}
.public-product strong { display: block; }
.public-product small {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,0.68);
  line-height: 1.35;
}
.public-price {
  min-width: 58px;
  border: 1px solid rgba(246,196,83,.28);
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(246,196,83,.10);
  color: var(--accent);
  font-weight: 900;
  text-align: center;
}
.badge {
  display: inline-flex;
  margin-left: 6px;
  border-radius: 999px;
  padding: 2px 7px;
  color: #161414;
  background: var(--accent);
  font-size: 0.68rem;
  font-weight: 900;
}
.promo-public-card {
  background: linear-gradient(135deg, rgba(246,196,83,0.24), rgba(255,255,255,0.08));
}

.template-minimal.public-shell { background: #f8f5ee; color: #1f2524; }
.template-minimal .public-hero { background: rgba(255,255,255,0.94); color: #1f2524; }
.template-minimal .public-tabs a,
.template-minimal .public-tabs button {
  color: #1f2524;
  border-color: rgba(0,0,0,0.16);
}
.template-minimal .public-section,
.template-minimal .promo-public-card {
  background: #fff;
  border-color: rgba(0,0,0,0.12);
}
.template-minimal .gateway-intro p,
.template-minimal .public-product small { color: #5c6565; }
.template-minimal .public-product,
.template-minimal .public-category summary {
  background: #f4f0e6;
  border-color: rgba(0,0,0,0.1);
}
.template-terrace.public-shell { background: #17251f; }
.template-terrace .public-hero { background: linear-gradient(135deg, #204c3c, #151915); }
.template-pizzeria.public-shell { background: #241411; }
.template-pizzeria .public-hero { background: linear-gradient(135deg, #8b2e1d, #21120d); }
.template-cocktail.public-shell { background: #111322; }
.template-cocktail .public-hero { background: linear-gradient(135deg, #34205b, #111322); }
.template-beach.public-shell { background: #092631; }
.template-beach .public-hero { background: linear-gradient(135deg, #0d7082, #092631); }

.selection-toggle {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  background: var(--accent);
  color: #181818;
  font-weight: 900;
  box-shadow: 0 16px 30px rgba(0,0,0,0.26);
}
.selection-toggle span { margin-left: 6px; }
.selection-panel {
  position: fixed;
  right: 12px;
  bottom: 70px;
  z-index: 29;
  width: min(360px, calc(100% - 24px));
  max-height: 60vh;
  overflow: auto;
  display: none;
  border-radius: 16px;
  background: #fbf6e8;
  color: #1d2424;
  padding: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.38);
}
.selection-panel.is-open { display: block; }
.selection-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #e5ddc8;
  padding: 9px 0;
}
.selection-total { display: flex; justify-content: space-between; margin-top: 12px; font-weight: 900; }

@media (max-width: 860px) {
  .admin-topbar,
  .topbar-actions,
  .panel-head,
  .admin-hero,
  .section-title-row { align-items: flex-start; flex-direction: column; }
  .admin-hero {
    padding: 18px;
    border-radius: 16px;
  }
  .admin-hero h2 {
    font-size: 1.9rem;
  }
  .admin-nav {
    top: 0;
    margin-left: -4px;
    margin-right: -4px;
    border-radius: 14px;
  }
  .metric-grid,
  .workspace-grid,
  .catalog-columns,
  .analytics-grid,
  .top5-grid,
  .intelligence-grid,
  .plan-layout,
  .superadmin-overview,
  .superadmin-list,
  .superadmin-tenant-form,
  .feature-grid,
  .plan-limits-card .limit-grid,
  .form-grid,
  .compact-form,
  .restaurant-editor,
  .editor-section,
  .upload-grid,
  .helper-grid { grid-template-columns: 1fr; }
  .advanced-fields { grid-column: 1; }
  .form-actions-sticky {
    align-items: stretch;
    flex-direction: column;
    bottom: 8px;
  }
  .qr-actions { flex-direction: column; }
  .qr-workspace { grid-template-columns: 1fr; }
  .publish-grid { grid-template-columns: 1fr; }
  .onboarding-grid { grid-template-columns: 1fr; }
  .import-grid { grid-template-columns: 1fr; }
  .import-row { grid-template-columns: 54px 1fr; }
  .qr-row { grid-template-columns: 62px 1fr; }
  .qr-row > img { width: 62px; height: 62px; }
  .qr-row-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
  }
  .superadmin-tenant-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .superadmin-tenant-head,
  .superadmin-tenant-foot {
    flex-direction: column;
  }
  .gateway-grid { grid-template-columns: 1fr; }
  .view-home .gateway-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .view-home .menu-gateway::after { display: block; }
  .menu-gateway {
    min-height: auto;
    align-content: start;
    padding-bottom: 24px;
  }
  .view-home .menu-gateway {
    min-height: 100vh;
    padding-bottom: 0;
  }
  .gateway-card {
    min-height: 230px;
    border-radius: 18px;
  }
  .view-home .gateway-card {
    min-height: 100vh;
    border-radius: 0;
    padding: 18px 10px 116px;
  }
  .gateway-card strong { font-size: 2.05rem; }
  .view-home .gateway-card strong {
    font-size: clamp(2.2rem, 10vw, 3.8rem);
    letter-spacing: .1em;
  }
  .view-home .gateway-card small {
    max-width: 180px;
    font-size: .78rem;
  }
  .view-home .public-brand img {
    width: 56px;
    height: 56px;
  }
  .view-home .gateway-intro {
    bottom: 12px;
    padding: 9px 12px;
  }
  .view-home .gateway-intro h2 { font-size: .95rem; }
  .view-home .gateway-intro p { display: none; }
  .public-menu-hero {
    margin: 12px 0 14px;
    padding: 14px;
    border-radius: 16px;
  }
  .public-menu-hero h2 {
    font-size: 2rem;
  }
  .view-food .public-main,
  .view-drink .public-main {
    width: min(100% - 20px, 820px);
    padding-top: 138px;
  }
  .view-food .category-tabs,
  .view-drink .category-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    max-width: none;
    padding: 0 10px 4px;
    overflow-x: auto;
  }
  .category-tabs a,
  .category-tabs button {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 7px 10px;
    font-size: .66rem;
  }
  .view-food .public-brand h1,
  .view-drink .public-brand h1 {
    font-size: .72rem;
    letter-spacing: .18em;
  }
  .view-food .public-brand img,
  .view-drink .public-brand img {
    width: 36px;
    height: 36px;
  }
  .view-food .menu-area-logo,
  .view-drink .menu-area-logo {
    width: min(190px, 66vw);
    max-height: 130px;
  }
  .public-product-grid {
    grid-template-columns: 1fr;
  }
  .public-product {
    grid-template-columns: minmax(0, 1fr) minmax(54px, auto);
    padding: 11px;
  }
  .section-quick-nav a {
    padding: 7px 10px;
    font-size: .74rem;
  }
}

/* MenuYours admin premium shell */
body.admin-shell {
  --admin-ink: #14201d;
  --admin-panel: rgba(255, 253, 247, .94);
  --admin-sidebar: #132b25;
  --admin-sidebar-soft: #1b3a31;
  --admin-focus: rgba(31, 111, 91, .22);
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(246, 196, 83, .10), transparent 34%),
    linear-gradient(180deg, #f7f4ea 0%, #eee9dc 100%);
}

body.admin-shell .admin-topbar {
  min-height: 74px;
  border-bottom-color: rgba(20, 32, 29, .08);
  background: rgba(255, 253, 247, .86);
  box-shadow: 0 12px 34px rgba(42, 36, 24, .08);
}

body.admin-shell .admin-topbar h1 {
  margin-top: 3px;
  color: var(--admin-ink);
  font-size: clamp(1.12rem, 2vw, 1.55rem);
  font-weight: 950;
}

body.admin-shell .admin-topbar .eyebrow::after {
  content: " / Control Panel";
  color: rgba(31, 111, 91, .78);
}

body.admin-shell .topbar-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.admin-shell .admin-layout {
  width: min(1500px, calc(100% - 28px));
  margin-top: 22px;
}

body.admin-shell .admin-hero {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 16px;
  background:
    radial-gradient(circle at 86% 18%, rgba(246, 196, 83, .32), transparent 32%),
    linear-gradient(135deg, #1f6f5b 0%, #16352d 52%, #101917 100%);
  box-shadow: 0 24px 70px rgba(21, 43, 36, .20);
}

body.admin-shell .admin-hero::after {
  content: "";
  position: absolute;
  inset: auto -18% -46% 36%;
  height: 160px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent);
  transform: rotate(-8deg);
  pointer-events: none;
}

body.admin-shell .admin-hero h2 {
  font-size: clamp(2rem, 4vw, 3.55rem);
  max-width: 830px;
}

body.admin-shell .admin-claim {
  width: max-content;
  max-width: 100%;
  margin: 0 0 10px;
  border: 1px solid rgba(246, 196, 83, .38);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(0, 0, 0, .16);
  color: #ffe4a0;
  font-weight: 900;
}

body.admin-shell .admin-nav {
  scrollbar-width: thin;
}

body.admin-shell .admin-nav-btn {
  position: relative;
  min-height: 44px;
  color: rgba(255,255,255,.76);
  text-align: left;
  letter-spacing: 0;
}

body.admin-shell .admin-nav-btn:hover {
  color: #fff;
  background: rgba(255,255,255,.08);
}

body.admin-shell .admin-nav-btn.is-active {
  border-color: rgba(246, 196, 83, .38);
  background: linear-gradient(135deg, #fff8df, #ffffff);
  color: #153329;
  box-shadow: 0 14px 28px rgba(0,0,0,.16);
}

body.admin-shell .admin-nav-btn.is-active::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 9px;
  width: 4px;
  border-radius: 999px;
  background: #f2bd42;
}

body.admin-shell .admin-nav-btn.is-active {
  padding-left: 20px;
}

body.admin-shell .section-title-row,
body.admin-shell .panel-card,
body.admin-shell .metric-card {
  border-color: rgba(28, 38, 35, .10);
  background: var(--admin-panel);
  box-shadow: 0 18px 44px rgba(40, 34, 22, .08);
}

body.admin-shell .section-title-row {
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(247,244,235,.92)),
    radial-gradient(circle at 100% 0%, rgba(31,111,91,.12), transparent 34%);
}

body.admin-shell .panel-card {
  border-radius: 14px;
}

body.admin-shell .metric-card {
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(247,244,235,.92)),
    linear-gradient(180deg, rgba(31,111,91,.08), transparent);
}

body.admin-shell .metric-card span,
body.admin-shell label,
body.admin-shell .muted {
  color: #5d6869;
}

body.admin-shell .metric-card strong {
  color: #111f1b;
  font-weight: 950;
}

body.admin-shell label {
  gap: 7px;
  font-size: .78rem;
  letter-spacing: .01em;
  text-transform: uppercase;
}

body.admin-shell input,
body.admin-shell select,
body.admin-shell textarea {
  min-height: 44px;
  border-color: #c8c1b0;
  border-radius: 10px;
  background: #fffefb;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

body.admin-shell textarea {
  color: var(--text);
}

body.admin-shell input:focus,
body.admin-shell select:focus,
body.admin-shell textarea:focus {
  outline: 3px solid var(--admin-focus);
  border-color: var(--primary);
}

body.admin-shell .primary-button,
body.admin-shell .ghost-button,
body.admin-shell .small-button,
body.admin-shell .product-actions button {
  min-height: 42px;
  border-radius: 10px;
  font-weight: 950;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}

body.admin-shell .primary-button {
  border-color: rgba(10, 30, 24, .08);
  background: linear-gradient(135deg, #1f6f5b, #153f34);
  box-shadow: 0 12px 24px rgba(31,111,91,.18);
}

body.admin-shell .ghost-button,
body.admin-shell .small-button,
body.admin-shell .product-actions button {
  background: #fffaf0;
  color: #1d2424;
  border-color: #d7cfbd;
}

body.admin-shell .primary-button:hover,
body.admin-shell .ghost-button:hover,
body.admin-shell .small-button:hover,
body.admin-shell .product-actions button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(28, 34, 30, .12);
}

body.admin-shell .chip,
body.admin-shell .product-card,
body.admin-shell .promo-row,
body.admin-shell .qr-row,
body.admin-shell .version-row {
  border-color: rgba(28, 38, 35, .10);
  background: rgba(255,255,255,.78);
  box-shadow: 0 10px 24px rgba(40, 34, 22, .05);
}

body.admin-shell .form-actions-sticky {
  border-color: rgba(31,111,91,.24);
  background: rgba(255, 253, 247, .96);
}

body.admin-shell .status-pill {
  min-height: 32px;
  border: 1px solid rgba(31,111,91,.12);
}

@media (min-width: 1020px) {
  body.admin-shell .admin-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }

  body.admin-shell .admin-hero {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 0;
  }

  body.admin-shell .admin-nav {
    grid-column: 1;
    grid-row: 1 / span 90;
    position: sticky;
    top: 92px;
    display: grid;
    align-content: start;
    gap: 8px;
    min-height: calc(100vh - 116px);
    margin: 0;
    padding: 16px;
    border-color: rgba(255,255,255,.14);
    border-radius: 16px;
    background:
      linear-gradient(180deg, rgba(255,255,255,.06), transparent 24%),
      linear-gradient(155deg, var(--admin-sidebar), #0d1715);
    box-shadow: 0 28px 70px rgba(18, 28, 24, .20);
    overflow: visible;
  }

  body.admin-shell .admin-nav::before {
    content: "MenuYours";
    display: block;
    margin-bottom: 2px;
    color: #fff;
    font-size: 1.12rem;
    font-weight: 950;
  }

  body.admin-shell .admin-nav::after {
    content: "Console operativa";
    order: -1;
    display: block;
    margin-bottom: 4px;
    color: rgba(255,255,255,.48);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
  }

  body.admin-shell .admin-nav-btn {
    width: 100%;
    justify-content: flex-start;
    border-color: rgba(255,255,255,.08);
    border-radius: 10px;
    padding: 10px 12px;
    background: rgba(255,255,255,.035);
  }

  body.admin-shell .admin-view {
    grid-column: 2;
  }

  body.admin-shell .metric-grid {
    margin-bottom: 0;
  }
}

@media (max-width: 1019px) {
  body.admin-shell .admin-layout {
    width: min(100% - 22px, 980px);
  }

  body.admin-shell .admin-nav {
    top: 74px;
    border-color: rgba(19,43,37,.12);
    background: rgba(19, 43, 37, .94);
  }

  body.admin-shell .admin-hero {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  body.admin-shell .admin-topbar {
    align-items: flex-start;
    padding: 14px 12px;
  }

  body.admin-shell .topbar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

body.admin-shell .topbar-actions .ghost-button:first-child {
    grid-column: 1 / -1;
  }

  body.admin-shell .admin-hero {
    align-items: stretch;
    flex-direction: column;
    padding: 18px;
  }

  body.admin-shell .admin-nav {
    padding: 8px;
  }

  body.admin-shell .admin-nav-btn {
    min-height: 40px;
  }
}

/* Menu Yours studio shell - reference aligned backend */
body.admin-shell {
  --my-bg: #F5F2EA;
  --my-surface: #FFFFFF;
  --my-sidebar: #172421;
  --my-green: #1F5638;
  --my-green-dark: #123B29;
  --my-gold: #B28A3E;
  --my-gold-light: #D6B86A;
  --my-gold-dark: #8E6A28;
  --my-cobalt: #2557D6;
  --my-text: #202522;
  --my-muted: #6D746F;
  --my-line: #DDDCD5;
  --my-danger: #B63B36;
  --primary: var(--my-gold);
  --accent: var(--my-gold);
  --bg: var(--my-bg);
  --surface: var(--my-surface);
  --line: var(--my-line);
  --text: var(--my-text);
  --muted: var(--my-muted);
  background:
    linear-gradient(90deg, rgba(255,255,255,.42) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, #f8f5ed, #ede8dc);
  background-size: 28px 28px, auto;
}

body.admin-shell .admin-topbar {
  left: 0;
  min-height: 76px;
  padding: 14px 26px 14px 236px;
  border-bottom: 1px solid rgba(32,37,34,.10);
  background: rgba(255,255,255,.88);
  box-shadow: none;
}

body.admin-shell .mobile-menu-button {
  display: none;
}

body.admin-shell .venue-switcher {
  width: max-content;
  min-width: 230px;
  border: 1px solid var(--my-line);
  border-radius: 8px;
  padding: 9px 13px;
  background: #fff;
}

body.admin-shell .venue-switcher .eyebrow,
body.admin-shell .admin-hero .eyebrow,
body.admin-shell .admin-claim,
body.admin-shell .section-title-row,
body.admin-shell .helper-grid {
  display: none;
}

body.admin-shell .venue-switcher h1 {
  margin: 0;
  font-size: .92rem;
  font-weight: 850;
}

body.admin-shell .admin-topbar .eyebrow::after {
  content: "";
}

body.admin-shell .sync-state {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  color: var(--my-green);
}

body.admin-shell .sync-state strong,
body.admin-shell .sync-state small {
  display: block;
  line-height: 1.2;
}

body.admin-shell .sync-state strong {
  font-size: .84rem;
}

body.admin-shell .sync-state small {
  color: var(--my-muted);
  font-size: .74rem;
}

body.admin-shell .status-dot {
  width: 18px;
  height: 18px;
  border: 2px solid #dbe8df;
  border-radius: 999px;
  background: var(--my-green);
  box-shadow: inset 0 0 0 4px #fff;
}

body.admin-shell .admin-layout {
  width: 100%;
  min-height: calc(100vh - 76px);
  margin: 0;
}

body.admin-shell .admin-nav {
  border: 0;
  box-shadow: none;
}

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

body.admin-shell .admin-nav::before {
  content: "Menu ";
  display: block;
  margin: 8px 22px 26px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: -.02em;
}

body.admin-shell .admin-nav::after {
  content: "Yours";
  position: absolute;
  top: 24px;
  left: 80px;
  color: #d7bd7a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
}

body.admin-shell .admin-nav-btn {
  min-height: 48px;
  border-radius: 6px;
  color: rgba(255,255,255,.78);
  font-size: .9rem;
  font-weight: 760;
}

body.admin-shell .admin-brand {
  display: block;
  width: 132px;
  margin: 4px 8px 16px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  background: rgba(255,255,255,.92);
}

body.admin-shell .admin-brand img {
  display: block;
  width: 100%;
  height: auto;
}

body.admin-shell .admin-nav::before,
body.admin-shell .admin-nav::after {
  content: none;
  display: none;
}

body.admin-shell .admin-nav-btn.is-active {
  border-color: rgba(178,138,62,.22);
  background: rgba(178,138,62,.18);
  color: #fff;
  box-shadow: inset 4px 0 0 var(--my-gold);
}

body.admin-shell .admin-superadmin-link {
  margin-top: 18px;
  border-top: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.56);
}

body.admin-shell .admin-hero {
  min-height: auto;
  padding: 26px 32px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--my-text);
  box-shadow: none;
}

body.admin-shell .admin-hero::after {
  display: none;
}

body.admin-shell .admin-hero h2 {
  margin: 0 0 8px;
  color: var(--my-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 3.6vw, 3.15rem);
  font-weight: 500;
  letter-spacing: -.035em;
}

body.admin-shell .admin-hero p {
  max-width: 780px;
  color: var(--my-muted);
}

body.admin-shell .admin-hero .primary-button {
  background: var(--my-green);
  color: #fff;
}

body.admin-shell .admin-view {
  padding: 0 32px 28px;
}

body.admin-shell .admin-view.is-active {
  gap: 16px;
}

body.admin-shell .panel-card,
body.admin-shell .metric-card {
  border-color: rgba(32,37,34,.12);
  border-radius: 10px;
  background: rgba(255,255,255,.86);
  box-shadow: none;
}

body.admin-shell .metric-card {
  min-height: 104px;
}

body.admin-shell .workspace-grid {
  grid-template-columns: minmax(0, .74fr) minmax(420px, 1.26fr);
  align-items: start;
}

body.admin-shell .catalog-columns {
  grid-template-columns: 1fr;
  gap: 12px;
}

body.admin-shell .catalog-columns > div {
  border: 1px solid rgba(32,37,34,.10);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

body.admin-shell .catalog-columns h3 {
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--my-line);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 500;
}

body.admin-shell .product-board {
  gap: 0;
  margin: 0;
}

body.admin-shell .menu-category-block {
  border-bottom: 1px solid var(--my-line);
  background: #fff;
}

body.admin-shell .menu-category-block:last-child {
  border-bottom: 0;
}

body.admin-shell .menu-category-block summary {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
}

body.admin-shell .menu-category-block summary::-webkit-details-marker {
  display: none;
}

body.admin-shell .menu-category-block summary strong {
  min-width: 0;
  color: var(--my-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 500;
}

body.admin-shell .menu-category-block summary small {
  border-radius: 999px;
  padding: 5px 8px;
  background: #f0eee7;
  color: var(--my-muted);
  font-size: .72rem;
  font-weight: 850;
}

body.admin-shell .category-marker {
  border: 1px solid #d6caa8;
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--my-green);
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
}

body.admin-shell .menu-product-row {
  display: grid;
  grid-template-columns: 16px 58px minmax(0, 1fr) 86px 92px auto;
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 10px 16px;
  border-top: 1px solid var(--my-line);
  background: #fff;
}

body.admin-shell .row-handle {
  width: 3px;
  height: 34px;
  border-radius: 999px;
  background: #c9c5ba;
}

body.admin-shell .menu-product-thumb {
  width: 58px;
  height: 58px;
  border: 1px solid #e4dfd2;
  border-radius: 9px;
  object-fit: cover;
  background: #f4f1e8;
}

body.admin-shell .menu-product-thumb.is-empty::after {
  content: "";
  display: block;
  width: 28px;
  height: 28px;
  margin: 14px auto;
  border-radius: 50%;
  background: rgba(31,86,56,.12);
}

body.admin-shell .menu-product-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

body.admin-shell .menu-product-main strong {
  overflow: hidden;
  color: var(--my-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.admin-shell .menu-product-main small {
  overflow: hidden;
  color: var(--my-muted);
  font-size: .78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.admin-shell .menu-product-price {
  color: var(--my-text);
  font-weight: 650;
  text-align: right;
}

body.admin-shell .availability-switch {
  min-width: 86px;
  border-radius: 999px;
  padding: 7px 9px;
  background: #ece9df;
  color: #6f6657;
  font-size: .72rem;
  font-weight: 850;
  text-align: center;
}

body.admin-shell .availability-switch.is-on {
  background: #dfeee4;
  color: var(--my-green);
}

body.admin-shell .product-actions {
  justify-content: end;
}

body.admin-shell .product-actions button,
body.admin-shell .small-button {
  min-height: 36px;
  border-radius: 8px;
  background: #fff;
}

body.admin-shell .primary-button {
  background: var(--my-green);
}

body.admin-shell .primary-button:hover {
  background: var(--my-green-dark);
}

body.admin-shell input:focus,
body.admin-shell select:focus,
body.admin-shell textarea:focus,
body.admin-shell button:focus-visible,
body.admin-shell a:focus-visible {
  outline: 3px solid rgba(37,87,214,.30);
  outline-offset: 2px;
  border-color: var(--my-cobalt);
}

body.admin-shell .preview-toggle-button {
  display: none;
}

body.admin-shell .live-preview-panel {
  border-left: 1px solid rgba(32,37,34,.12);
  background: rgba(250,248,241,.92);
}

body.admin-shell .preview-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

body.admin-shell .preview-panel-head h2 {
  margin: 3px 0 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 500;
}

body.admin-shell .preview-panel-head small {
  color: var(--my-muted);
}

body.admin-shell .preview-close-button {
  display: none;
}

body.admin-shell .phone-preview {
  width: min(100%, 360px);
  margin: 0 auto;
  border: 10px solid #171717;
  border-radius: 42px;
  background: #111;
  box-shadow: 0 28px 70px rgba(20, 20, 20, .24);
  overflow: hidden;
}

body.admin-shell .phone-preview::before {
  content: "";
  display: block;
  width: 92px;
  height: 22px;
  margin: 8px auto 0;
  border-radius: 999px;
  background: #050505;
}

body.admin-shell .phone-preview iframe {
  display: block;
  width: 100%;
  height: min(70vh, 690px);
  border: 0;
  border-radius: 0 0 30px 30px;
  background: #101514;
}

@media (min-width: 1280px) {
  body.admin-shell .admin-layout {
    display: grid;
    grid-template-columns: 224px minmax(620px, 1fr) minmax(340px, 390px);
    align-items: start;
  }

  body.admin-shell .admin-nav {
    grid-column: 1;
    grid-row: 1 / span 100;
    position: sticky;
    top: 0;
    display: grid;
    align-content: start;
    gap: 5px;
    min-height: 100vh;
    margin: 0;
    padding: 18px 10px;
    border-radius: 0;
    background:
      linear-gradient(180deg, rgba(255,255,255,.04), transparent 34%),
      var(--my-sidebar);
  }

  body.admin-shell .admin-hero,
  body.admin-shell .admin-view {
    grid-column: 2;
  }

  body.admin-shell .live-preview-panel {
    grid-column: 3;
    grid-row: 1 / span 100;
    position: sticky;
    top: 76px;
    min-height: calc(100vh - 76px);
    padding: 26px 26px 34px;
  }
}

@media (max-width: 1279px) {
  body.admin-shell .admin-topbar {
    padding-left: 18px;
  }

  body.admin-shell .admin-layout {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
  }

  body.admin-shell .admin-nav {
    grid-column: 1;
    grid-row: 1 / span 100;
    position: sticky;
    top: 76px;
    align-content: start;
    min-height: calc(100vh - 76px);
    margin: 0;
    padding: 14px 9px;
    border-radius: 0;
    background: var(--my-sidebar);
  }

  body.admin-shell .admin-hero,
  body.admin-shell .admin-view {
    grid-column: 2;
  }

  body.admin-shell .live-preview-panel {
    position: fixed;
    inset: 76px 0 0 auto;
    z-index: 60;
    width: min(420px, 100vw);
    padding: 22px;
    transform: translateX(100%);
    transition: transform .2s ease;
    box-shadow: -24px 0 70px rgba(17,24,22,.18);
  }

  body.admin-shell.is-preview-open .live-preview-panel {
    transform: translateX(0);
  }

  body.admin-shell .preview-toggle-button,
  body.admin-shell .preview-close-button {
    display: inline-flex;
  }
}

@media (max-width: 880px) {
  body.admin-shell .admin-topbar {
    position: sticky;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 58px;
    padding: 8px 10px;
  }

  body.admin-shell .venue-switcher {
    width: 100%;
    min-width: 0;
    padding: 7px 9px;
  }

  body.admin-shell .venue-switcher h1 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .86rem;
  }

  body.admin-shell .sync-state {
    display: none;
  }

  body.admin-shell .mobile-menu-button {
    display: inline-flex;
    min-height: 40px;
    padding-inline: 14px;
    border-color: rgba(18,59,41,.22);
    background: #fff;
    color: var(--my-green-dark);
    font-weight: 900;
  }

  body.admin-shell .topbar-actions {
    grid-column: 1 / -1;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  body.admin-shell .topbar-actions .ghost-button,
  body.admin-shell .topbar-actions .primary-button {
    min-height: 36px;
    padding: 8px 10px;
    font-size: .78rem;
  }

  body.admin-shell #publicMenuLink,
  body.admin-shell #reloadButton {
    display: none;
  }

  body.admin-shell .admin-layout {
    display: block;
    padding-bottom: 24px;
  }

  body.admin-shell .admin-nav {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 80;
    display: grid;
    align-content: start;
    width: min(84vw, 320px);
    min-height: 100vh;
    gap: 7px;
    padding: 22px 14px 18px;
    border-right: 1px solid rgba(255,255,255,.14);
    border-top: 0;
    background:
      linear-gradient(180deg, rgba(255,255,255,.06), transparent 24%),
      linear-gradient(155deg, var(--my-sidebar), #0d1715);
    box-shadow: 24px 0 70px rgba(17,24,22,.28);
    overflow-y: auto;
    transform: translateX(-104%);
    transition: transform .22s ease;
  }

  body.admin-shell.is-mobile-menu-open .admin-nav {
    transform: translateX(0);
  }

  body.admin-shell .admin-nav::before,
  body.admin-shell .admin-nav::after {
    content: none;
    display: none;
  }

  body.admin-shell .admin-brand {
    width: 116px;
    margin: 0 6px 12px;
    padding: 5px;
  }

  body.admin-shell .admin-nav-btn {
    width: 100%;
    min-height: 46px;
    justify-content: flex-start;
    padding: 10px 12px;
    white-space: normal;
  }

  body.admin-shell .admin-superadmin-link {
    margin-top: 0;
    border-top: 0;
  }

  body.admin-shell .admin-hero,
  body.admin-shell .admin-view {
    padding-inline: 16px;
  }

  body.admin-shell .workspace-grid,
  body.admin-shell .form-grid,
  body.admin-shell .compact-form,
  body.admin-shell .metric-grid,
  body.admin-shell .analytics-grid,
  body.admin-shell .top5-grid {
    grid-template-columns: 1fr;
  }

  body.admin-shell .menu-product-row {
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 10px;
  }

  body.admin-shell .row-handle,
  body.admin-shell .availability-switch {
    display: none;
  }

  body.admin-shell .menu-product-thumb {
    width: 46px;
    height: 46px;
  }

  body.admin-shell .menu-product-price,
  body.admin-shell .product-actions {
    grid-column: 2 / -1;
    justify-self: start;
    text-align: left;
  }

  body.admin-shell .live-preview-panel {
    inset: 0;
    width: 100vw;
    padding: 16px;
  }

  body.admin-shell .phone-preview {
    width: min(100%, 380px);
  }
}

/* Menu Yours layout cleanup: coordinated tables and no overlap */
body.admin-shell *,
body.admin-shell *::before,
body.admin-shell *::after {
  min-width: 0;
}

body.admin-shell .admin-topbar {
  gap: 14px;
}

body.admin-shell .topbar-actions {
  min-width: max-content;
}

body.admin-shell {
  background: linear-gradient(180deg, #f8f5ed 0%, #efe9dc 100%);
}

body.admin-shell .panel-head,
body.admin-shell .selection-head,
body.admin-shell .superadmin-tenant-head,
body.admin-shell .superadmin-tenant-foot {
  flex-wrap: wrap;
}

body.admin-shell .admin-view[data-admin-view="catalog"] {
  align-content: start;
}

body.admin-shell .admin-view[data-admin-view="catalog"] > .workspace-grid {
  grid-template-columns: 1fr;
}

body.admin-shell .admin-view[data-admin-view="catalog"] > .workspace-grid > .panel-card {
  margin-bottom: 0;
}

body.admin-shell .admin-view[data-admin-view="catalog"] > .workspace-grid > .panel-card:first-child {
  order: 2;
}

body.admin-shell .admin-view[data-admin-view="catalog"] > .workspace-grid > .panel-card:nth-child(2) {
  order: 1;
}

body.admin-shell .admin-view[data-admin-view="catalog"] > .panel-card {
  margin-top: 0;
}

body.admin-shell .form-grid.compact-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.admin-shell #productForm {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.admin-shell #productForm label:nth-of-type(3),
body.admin-shell #productForm label:nth-of-type(6),
body.admin-shell #productForm label:nth-of-type(7),
body.admin-shell #productForm label:nth-of-type(8) {
  grid-column: span 2;
}

body.admin-shell #productForm .upload-card {
  min-height: 80px;
}

body.admin-shell #productForm button {
  align-self: end;
}

body.admin-shell .chip-list,
body.admin-shell .promo-list,
body.admin-shell .version-list,
body.admin-shell .qr-list {
  overflow: hidden;
}

body.admin-shell .chip,
body.admin-shell .promo-row,
body.admin-shell .version-row,
body.admin-shell .qr-row {
  width: 100%;
}

body.admin-shell .inline-edit-item,
body.admin-shell .product-inline-block {
  display: grid;
  gap: 0;
  width: 100%;
}

body.admin-shell .inline-edit-panel {
  margin: 10px 0 16px;
  padding: 16px;
  border: 1px solid rgba(31, 86, 56, .22);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, .98), rgba(247, 242, 230, .95));
  box-shadow: 0 16px 34px rgba(18, 31, 27, .08);
}

body.admin-shell .product-inline-editor {
  margin-inline: 16px;
}

body.admin-shell .inline-edit-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 14px;
}

body.admin-shell .inline-edit-head strong {
  display: block;
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--my-text);
}

body.admin-shell .compact-action {
  padding: 8px 12px;
}

body.admin-shell .inline-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.admin-shell .product-inline-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.admin-shell .inline-edit-grid label {
  display: grid;
  gap: 6px;
  color: var(--my-muted);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

body.admin-shell .inline-edit-grid input,
body.admin-shell .inline-edit-grid select {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--my-line);
  border-radius: 10px;
  padding: 11px 12px;
  background: #fff;
  color: var(--my-text);
  font: inherit;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

body.admin-shell .inline-edit-grid input:focus,
body.admin-shell .inline-edit-grid select:focus {
  outline: 2px solid var(--my-cobalt);
  outline-offset: 2px;
}

body.admin-shell .inline-edit-grid .full-field {
  grid-column: 1 / -1;
}

body.admin-shell .inline-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

body.admin-shell .menu-workspace-accordion {
  gap: 12px;
}

body.admin-shell .menu-work-block {
  padding: 0;
  overflow: hidden;
}

body.admin-shell .menu-work-block > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 78px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}

body.admin-shell .menu-work-block > summary::-webkit-details-marker {
  display: none;
}

body.admin-shell .menu-work-block > summary h2 {
  margin: 3px 0 4px;
}

body.admin-shell .menu-work-block > summary small {
  display: block;
  color: var(--my-muted);
}

body.admin-shell .accordion-indicator {
  min-width: 72px;
  border: 1px solid rgba(31,86,56,.16);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255,255,255,.76);
  color: var(--my-green-dark);
  font-size: .78rem;
  font-weight: 900;
  text-align: center;
}

body.admin-shell .menu-work-block[open] > summary {
  border-bottom: 1px solid var(--my-line);
  background: linear-gradient(90deg, rgba(31,86,56,.055), rgba(178,138,62,.055));
}

body.admin-shell .menu-work-block[open] .accordion-indicator {
  background: var(--my-green);
  color: #fff;
}

body.admin-shell .menu-work-block[open] .accordion-indicator::before {
  content: "Chiudi";
}

body.admin-shell .menu-work-block[open] .accordion-indicator {
  font-size: 0;
}

body.admin-shell .menu-work-block[open] .accordion-indicator::before {
  font-size: .78rem;
}

body.admin-shell .menu-work-block > form,
body.admin-shell .menu-work-block > .chip-list,
body.admin-shell .menu-work-block > .product-board {
  margin: 18px 20px 20px;
}

body.admin-shell .catalog-work-block {
  align-self: start;
}

body.admin-shell .menu-category-block {
  overflow: hidden;
}

body.admin-shell .menu-product-row {
  grid-template-columns: 16px 54px minmax(150px, 1fr) minmax(70px, 82px) minmax(76px, 88px) minmax(78px, auto);
}

body.admin-shell .menu-product-thumb {
  width: 54px;
  height: 54px;
}

body.admin-shell .product-meta-tags {
  margin-top: 2px;
}

body.admin-shell .product-meta-tags span {
  font-size: .64rem;
  padding: 3px 6px;
}

body.admin-shell .product-actions button {
  padding-inline: 10px;
}

body.admin-shell .qr-row {
  grid-template-columns: 64px minmax(0, 1fr) minmax(110px, auto);
}

body.admin-shell .qr-row-actions {
  justify-content: end;
}

body.admin-shell .import-row {
  grid-template-columns: 58px minmax(120px, .9fr) minmax(160px, 1.4fr) 76px;
}

body.admin-shell .superadmin-overview {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

body.admin-shell .superadmin-list {
  grid-template-columns: 1fr;
}

body.admin-shell .superadmin-tenant-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.admin-shell .superadmin-tenant-form button {
  grid-column: 1 / -1;
}

body.admin-shell .template-studio-card {
  max-width: none;
}

body.admin-shell .template-studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 14px;
}

body.admin-shell .template-studio-grid > div {
  min-height: 96px;
  border: 1px solid var(--my-line);
  border-radius: 10px;
  padding: 14px;
  background: #fffdf8;
}

body.admin-shell .template-studio-grid p {
  margin: 6px 0 0;
}

body.admin-shell .template-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

body.admin-shell .template-choice-card {
  overflow: hidden;
  border: 1px solid var(--my-line);
  border-radius: 12px;
  background: #fff;
}

body.admin-shell .template-choice-card.is-active {
  border-color: rgba(31,86,56,.44);
  box-shadow: inset 0 0 0 1px rgba(31,86,56,.16);
}

body.admin-shell .template-choice-card.is-locked {
  opacity: .68;
}

body.admin-shell .template-choice-visual {
  display: flex;
  align-items: flex-end;
  min-height: 132px;
  padding: 12px;
  background-size: cover;
  background-position: center;
}

body.admin-shell .template-choice-visual span,
body.admin-shell .plan-choice-visual span {
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255,255,255,.88);
  color: var(--my-green-dark);
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
}

body.admin-shell .template-choice-body {
  display: grid;
  gap: 10px;
  padding: 13px;
}

body.admin-shell .template-choice-body h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 500;
}

body.admin-shell .template-choice-body p {
  min-height: 40px;
  margin: 0;
  color: var(--my-muted);
  font-size: .84rem;
  line-height: 1.35;
}

body.admin-shell .template-choice-body small,
body.admin-shell .template-choice-body p {
  overflow-wrap: anywhere;
}

body.admin-shell .template-choice-body button {
  min-height: 38px;
}

body.admin-shell .template-choice-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

body.admin-shell .template-choice-actions button {
  width: 100%;
  padding-inline: 10px;
}

body.admin-shell .admin-superadmin-link[hidden] {
  display: none;
}

body.admin-shell .plan-catalog-card {
  grid-column: 1 / -1;
}

body.admin-shell .plan-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

body.admin-shell .plan-choice-card {
  display: grid;
  grid-template-columns: minmax(140px, .42fr) minmax(0, 1fr);
  overflow: hidden;
  min-height: 248px;
  border: 1px solid var(--my-line);
  border-radius: 12px;
  padding: 0;
  background: #fff;
}

body.admin-shell .plan-choice-visual {
  display: flex;
  align-items: flex-end;
  min-height: 100%;
  padding: 14px;
  background-size: cover;
  background-position: center;
}

body.admin-shell .plan-choice-content {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 16px;
}

body.admin-shell .plan-choice-card.is-current {
  border-color: rgba(31,86,56,.34);
  background: #f3faf5;
}

body.admin-shell .plan-choice-card.is-current .plan-choice-visual span {
  background: #dfeee4;
  color: var(--my-green);
}

body.admin-shell .plan-choice-card.is-upgrade {
  border-color: rgba(178,138,62,.36);
  background: #fffaf0;
}

body.admin-shell .plan-choice-card.is-upgrade .plan-choice-visual span {
  background: #f4e8ca;
  color: #76591d;
}

body.admin-shell .plan-choice-card.is-recommended {
  border-color: rgba(178,138,62,.7);
  box-shadow: inset 0 0 0 1px rgba(178,138,62,.22);
}

body.admin-shell .plan-choice-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 500;
}

body.admin-shell .plan-choice-card strong {
  font-size: 1.08rem;
}

body.admin-shell .plan-choice-card small {
  color: var(--my-muted);
  line-height: 1.32;
}

body.admin-shell .plan-choice-limits {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 7px;
  border-top: 1px solid var(--my-line);
  border-bottom: 1px solid var(--my-line);
  padding: 8px 0;
}

body.admin-shell .plan-choice-limits b {
  color: var(--my-green);
}

body.admin-shell .plan-choice-card ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 17px;
  color: var(--my-text);
  font-size: .82rem;
}

body.admin-shell .promo-form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.admin-shell .promo-form-grid label:first-of-type,
body.admin-shell .promo-form-grid label:nth-of-type(2) {
  grid-column: span 2;
}

body.admin-shell .promo-form-grid .check-row {
  min-height: 44px;
}

body.admin-shell .admin-view[data-admin-view="promo"] > .workspace-grid {
  grid-template-columns: minmax(360px, .82fr) minmax(0, 1.18fr);
  align-items: start;
}

body.admin-shell .top5-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

body.admin-shell .top5-grid > div {
  border: 1px solid var(--my-line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

body.admin-shell .top5-grid h3 {
  margin: 0;
  padding: 12px 14px;
  border-bottom: 1px solid var(--my-line);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.14rem;
  font-weight: 500;
}

body.admin-shell .top5-empty {
  margin: 12px 14px 14px;
}

body.admin-shell .top5-product-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(70px, auto) minmax(74px, auto);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-top: 1px solid var(--my-line);
}

body.admin-shell .top5-product-card:first-of-type {
  border-top: 0;
}

body.admin-shell .top5-product-main {
  display: grid;
  gap: 3px;
}

body.admin-shell .top5-product-main strong,
body.admin-shell .top5-product-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.admin-shell .top5-product-main small {
  color: var(--my-muted);
  font-size: .78rem;
}

body.admin-shell .top5-product-card > strong {
  text-align: right;
  color: var(--my-green);
  font-size: .9rem;
}

body.admin-shell .top5-product-card button {
  min-height: 34px;
  border: 1px solid var(--my-line);
  border-radius: 999px;
  background: #fffdf8;
  color: var(--my-text);
  font-weight: 800;
  cursor: pointer;
}

body.admin-shell .promo-row-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

body.admin-shell .promo-row-main small {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* MenuYours admin refinements: mobile header, scoped dashboard KPIs and cleaner work areas */
body.admin-shell .admin-view:not(.is-active) {
  display: none !important;
}

body.admin-shell .admin-topbar {
  grid-template-columns: auto minmax(180px, auto) minmax(0, 1fr) auto;
  align-items: center;
  padding-left: 18px;
}

body.admin-shell .mobile-menu-button {
  order: 0;
}

body.admin-shell .venue-switcher {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: auto;
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
}

body.admin-shell .venue-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 1px 0 rgba(18,59,41,.08);
}

body.admin-shell .venue-logo[hidden] {
  display: none;
}

body.admin-shell .venue-switcher h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.12rem, 2.2vw, 1.48rem);
  font-weight: 500;
}

body.admin-shell .topbar-actions {
  gap: 8px;
}

body.admin-shell .icon-action-button {
  width: 40px;
  min-height: 40px;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
}

body.admin-shell .icon-action-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.admin-shell .icon-action-button span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

body.admin-shell .logout-icon-button {
  color: var(--my-danger);
}

body.admin-shell .hero-preview-link {
  align-self: end;
  width: max-content;
  min-height: 36px;
  padding: 8px 12px;
  border-color: rgba(31,86,56,.2);
  background: rgba(255,255,255,.82);
  color: var(--my-green-dark);
}

body.admin-shell .catalog-split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.admin-shell .template-settings-section[hidden] {
  display: none !important;
}

body.admin-shell .admin-view[data-admin-view="promo"] > .workspace-grid {
  grid-template-columns: 1fr;
}

body.admin-shell .admin-view[data-admin-view="promo"] .panel-card {
  width: 100%;
}

body.admin-shell .top5-grid {
  grid-template-columns: 1fr;
}

body.admin-shell .top5-grid > div {
  width: 100%;
}

body.admin-shell .promo-form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.admin-shell .plan-limits-card .limit-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.admin-shell .limit-grid div {
  min-height: 64px;
  padding: 9px;
}

body.admin-shell .limit-grid strong {
  font-size: 1rem;
}

body.admin-shell .schedule-strip {
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
}

body.admin-shell .schedule-slot {
  min-width: 0;
}

@media (min-width: 1280px) and (max-width: 1480px) {
  body.admin-shell .admin-layout {
    grid-template-columns: 212px minmax(560px, 1fr) minmax(315px, 350px);
  }

  body.admin-shell .admin-topbar {
    padding-left: 224px;
  }

  body.admin-shell .phone-preview {
    width: min(100%, 328px);
    border-width: 8px;
  }

  body.admin-shell .phone-preview iframe {
    height: min(66vh, 620px);
  }
}

@media (max-width: 1180px) {
  body.admin-shell #productForm,
  body.admin-shell .form-grid.compact-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.admin-shell .admin-view[data-admin-view="promo"] > .workspace-grid,
  body.admin-shell .promo-form-grid,
  body.admin-shell .template-studio-grid,
  body.admin-shell .template-gallery,
  body.admin-shell .plan-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.admin-shell .plan-choice-card {
    grid-template-columns: 1fr;
  }

  body.admin-shell .plan-choice-visual {
    min-height: 132px;
  }

  body.admin-shell .catalog-split-grid,
  body.admin-shell .promo-form-grid {
    grid-template-columns: 1fr;
  }

  body.admin-shell .promo-form-grid label:first-of-type,
  body.admin-shell .promo-form-grid label:nth-of-type(2) {
    grid-column: auto;
  }

  body.admin-shell #productForm label:nth-of-type(3),
  body.admin-shell #productForm label:nth-of-type(6),
  body.admin-shell #productForm label:nth-of-type(7),
  body.admin-shell #productForm label:nth-of-type(8) {
    grid-column: 1 / -1;
  }

  body.admin-shell .menu-product-row {
    grid-template-columns: 14px 48px minmax(0, 1fr) minmax(64px, auto);
  }

  body.admin-shell .availability-switch,
  body.admin-shell .product-actions {
    grid-column: 3 / -1;
    justify-self: start;
  }

  body.admin-shell .menu-product-price {
    text-align: right;
  }
}

@media (max-width: 880px) {
  body.admin-shell .topbar-actions {
    min-width: 0;
  }

  body.admin-shell .admin-topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 52px;
    gap: 8px;
    padding: 7px 9px;
  }

  body.admin-shell .venue-switcher {
    width: auto;
    gap: 7px;
  }

  body.admin-shell .venue-logo {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }

  body.admin-shell .venue-switcher h1 {
    font-size: 1.05rem;
  }

  body.admin-shell .topbar-actions {
    grid-column: auto;
    width: auto;
    display: flex;
    gap: 6px;
  }

  body.admin-shell .preview-toggle-button {
    display: inline-flex;
  }

  body.admin-shell .logout-icon-button {
    display: inline-flex;
  }

  body.admin-shell .mobile-menu-button {
    min-height: 36px;
    padding-inline: 11px;
    font-size: .8rem;
  }

  body.admin-shell .icon-action-button {
    width: 36px;
    min-height: 36px;
  }

  body.admin-shell .icon-action-button svg {
    width: 17px;
    height: 17px;
  }

  body.admin-shell .sync-state {
    display: none;
  }

  body.admin-shell #productForm,
  body.admin-shell .form-grid.compact-form,
  body.admin-shell .superadmin-tenant-form,
  body.admin-shell .template-gallery,
  body.admin-shell .plan-choice-grid {
    grid-template-columns: 1fr;
  }

  body.admin-shell #productForm label:nth-of-type(3),
  body.admin-shell #productForm label:nth-of-type(6),
  body.admin-shell #productForm label:nth-of-type(7),
  body.admin-shell #productForm label:nth-of-type(8) {
    grid-column: auto;
  }

  body.admin-shell .menu-product-row {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  body.admin-shell .menu-product-price,
  body.admin-shell .product-actions {
    grid-column: 2;
  }

  body.admin-shell .qr-row,
  body.admin-shell .import-row {
    grid-template-columns: 1fr;
  }
}

/* Final mobile header sizing override */
@media (max-width: 880px) {
  body.admin-shell .admin-topbar {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) 90px !important;
    align-items: center;
    min-height: 80px;
    gap: 10px;
  }

  body.admin-shell .venue-switcher {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
  }

  body.admin-shell .venue-logo {
    width: 70px !important;
    height: 70px !important;
    border-radius: 14px;
  }

  body.admin-shell .venue-switcher h1 {
    font-size: 1.42rem;
    line-height: 1;
  }

  body.admin-shell .topbar-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    grid-column: auto !important;
    width: 86px !important;
    min-width: 86px;
    max-width: 86px;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
  }

  body.admin-shell #publicMenuLink,
  body.admin-shell #reloadButton {
    display: none !important;
  }

  body.admin-shell .preview-toggle-button,
  body.admin-shell .logout-icon-button {
    display: inline-flex !important;
    flex: 0 0 40px !important;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
  }

  body.admin-shell .preview-toggle-button {
    order: 1;
  }

  body.admin-shell .logout-icon-button {
    order: 2;
  }
}

/* Premium mobile drawer */
body.admin-shell .admin-drawer-head,
body.admin-shell .drawer-venue-card,
body.admin-shell .drawer-section-label {
  display: none;
}

@media (max-width: 880px) {
  body.admin-shell {
    background:
      linear-gradient(115deg, rgba(255,255,255,.28), rgba(255,255,255,0) 36%),
      repeating-linear-gradient(102deg, rgba(255,255,255,.11) 0 1px, rgba(0,0,0,.028) 1px 3px, transparent 3px 9px),
      linear-gradient(180deg, #d4d1c8 0%, #bdbbb2 48%, #dedad0 100%);
  }

  body.admin-shell.is-mobile-menu-open .admin-topbar,
  body.admin-shell.is-mobile-menu-open .admin-hero,
  body.admin-shell.is-mobile-menu-open .admin-view.is-active {
    filter: blur(1.5px) saturate(.86);
  }

  body.admin-shell .admin-nav {
    inset: 10px auto 10px 10px;
    width: min(88vw, 368px);
    height: calc(100dvh - 20px);
    min-height: 0;
    gap: 0;
    padding: 20px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 28px;
    background:
      radial-gradient(circle at 12% -4%, rgba(190,168,119,.2), transparent 30%),
      repeating-linear-gradient(108deg, rgba(255,255,255,.055) 0 1px, rgba(0,0,0,.035) 1px 4px, transparent 4px 11px),
      linear-gradient(145deg, #30332f 0%, #1d211f 47%, #101614 100%);
    box-shadow: 24px 18px 60px rgba(10,16,14,.34), inset 0 1px 0 rgba(255,255,255,.1);
  }

  body.admin-shell .admin-drawer-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
  }

body.admin-shell .admin-drawer-head .admin-brand {
    display: inline-flex;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    mix-blend-mode: normal;
    align-items: center;
    gap: 12px;
  }

  body.admin-shell .admin-drawer-head .admin-brand img {
    display: block;
    width: 54px;
    height: 54px;
    border-radius: 15px;
    background: #101312;
    object-fit: cover;
    mix-blend-mode: screen;
    filter: contrast(1.05) saturate(.96) drop-shadow(0 8px 18px rgba(0,0,0,.18));
  }

  body.admin-shell .admin-brand-word {
    color: #f7f3e8;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.65rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1;
    white-space: nowrap;
  }

  body.admin-shell .admin-brand-word span {
    color: #d4ad5f;
  }

  body.admin-shell .drawer-close-button {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    background: rgba(255,255,255,.045);
    color: #d9b86b;
    font-size: 1.5rem;
    font-weight: 400;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  }

  body.admin-shell .drawer-venue-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    margin: 0 0 26px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,.13), rgba(255,255,255,.045));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  }

  body.admin-shell .drawer-venue-logo {
    width: 72px;
    height: 72px;
    border-radius: 15px;
    object-fit: contain;
    background: #fff;
    box-shadow: 0 14px 28px rgba(0,0,0,.2);
  }

  body.admin-shell .drawer-venue-logo[hidden] {
    display: none;
  }

  body.admin-shell .drawer-venue-card:has(.drawer-venue-logo[hidden]) {
    grid-template-columns: 1fr;
  }

  body.admin-shell .drawer-venue-card span {
    display: block;
    color: #c7a760;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
  }

  body.admin-shell .drawer-venue-card strong {
    display: block;
    overflow: hidden;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
    font-weight: 500;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.admin-shell .admin-nav > .admin-brand {
    display: none;
  }

  body.admin-shell .drawer-section-label {
    display: block;
    margin: 12px 4px 10px;
    color: #c7a760;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
  }

  body.admin-shell .admin-nav-btn {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 54px;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.075);
    border-radius: 0;
    padding: 10px 8px;
    background: transparent;
    color: rgba(255,255,255,.86);
    font-size: 1rem;
    box-shadow: none;
  }

  body.admin-shell .nav-icon {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: rgba(255,255,255,.74);
  }

  body.admin-shell .nav-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  body.admin-shell .admin-nav-btn > span:last-child {
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.admin-shell .admin-nav-btn.is-active {
    border-bottom-color: transparent;
    border-radius: 15px;
    background:
      linear-gradient(90deg, rgba(219,178,88,.28), rgba(255,255,255,.075));
    color: #fff;
    box-shadow: inset 5px 0 0 #d5a94b, 0 14px 26px rgba(0,0,0,.22);
  }

  body.admin-shell .admin-nav-btn.is-active .nav-icon {
    color: #f0ca67;
    background: rgba(214,169,75,.12);
  }

  body.admin-shell .inline-edit-panel {
    margin-inline: 0;
    padding: 14px;
  }

  body.admin-shell .inline-edit-grid,
  body.admin-shell .product-inline-grid {
    grid-template-columns: 1fr;
  }

  body.admin-shell .inline-edit-head {
    align-items: center;
  }

  body.admin-shell .inline-edit-actions {
    justify-content: stretch;
  }

  body.admin-shell .inline-edit-actions button {
    flex: 1 1 140px;
  }
}

/* MenuYours satin-gold action system */
body.admin-shell .primary-button,
body.admin-shell .admin-hero .primary-button {
  border-color: rgba(106, 76, 22, .24);
  color: #1f211d;
  background:
    linear-gradient(135deg, rgba(255,255,255,.34), rgba(255,255,255,0) 35%),
    linear-gradient(135deg, var(--my-gold-light), var(--my-gold) 52%, var(--my-gold-dark));
  box-shadow: 0 12px 24px rgba(142,106,40,.2), inset 0 1px 0 rgba(255,255,255,.42);
}

body.admin-shell .primary-button:hover,
body.admin-shell .admin-hero .primary-button:hover {
  color: #1f211d;
  background:
    linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,0) 35%),
    linear-gradient(135deg, #c9a854, var(--my-gold-dark));
}

body.admin-shell .menu-work-block[open] .accordion-indicator {
  background:
    linear-gradient(135deg, rgba(255,255,255,.24), rgba(255,255,255,0) 36%),
    linear-gradient(135deg, var(--my-gold-light), var(--my-gold-dark));
  color: #1f211d;
}

/* Promo page: keep Top 5 and Promo Flash stacked, never side by side. */
body.admin-shell .admin-view[data-admin-view="promo"] > .workspace-grid {
  grid-template-columns: 1fr !important;
  gap: 18px;
  align-items: stretch;
}

body.admin-shell .admin-view[data-admin-view="promo"] > .workspace-grid > .panel-card {
  width: 100%;
  min-width: 0;
}

/* Catalog page: keep Food and Bar catalogs stacked for full-width editing. */
body.admin-shell .catalog-split-grid {
  grid-template-columns: 1fr !important;
  gap: 18px;
  align-items: stretch;
}

body.admin-shell .catalog-split-grid > .catalog-work-block {
  width: 100%;
  min-width: 0;
}

/* MenuYours navigation refinement: compact, centered and less scroll-heavy. */
body.admin-shell #publicMenuLink[hidden] {
  display: none !important;
}

body.admin-shell .topbar-actions {
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
}

body.admin-shell .venue-switcher {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border-color: rgba(178,138,62,.18);
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(247,242,229,.9));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}

body.admin-shell .venue-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
}

body.admin-shell .venue-switcher .eyebrow {
  display: none !important;
}

body.admin-shell .venue-switcher h1 {
  color: var(--my-green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.08;
}

body.admin-shell .icon-action-button span,
body.admin-shell .logout-icon-button span {
  display: none;
}

body.admin-shell .icon-action-button,
body.admin-shell .logout-icon-button {
  width: 42px;
  min-width: 42px;
  height: 42px;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
}

body.admin-shell .icon-action-button svg,
body.admin-shell .logout-icon-button svg {
  width: 20px;
  height: 20px;
}

body.admin-shell .logout-icon-button {
  color: #8d2926;
}

body.admin-shell .menu-work-block > summary {
  grid-template-columns: 46px minmax(0, 1fr) auto;
}

body.admin-shell .work-summary-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(178,138,62,.24);
  border-radius: 14px;
  color: var(--my-gold-dark);
  background:
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(229,212,165,.38));
}

body.admin-shell .work-summary-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 881px) {
  body.admin-shell .admin-nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 8px;
    overflow-y: auto;
    overflow-x: hidden;
  }

  body.admin-shell .admin-drawer-head,
  body.admin-shell .drawer-venue-card,
  body.admin-shell .drawer-section-label,
  body.admin-shell .admin-superadmin-link {
    grid-column: 1 / -1;
  }

  body.admin-shell .drawer-venue-card {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 14px;
    padding: 10px;
    border-radius: 15px;
  }

  body.admin-shell .drawer-venue-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
  }

  body.admin-shell .drawer-venue-card strong {
    font-size: 1.2rem;
  }

  body.admin-shell .drawer-section-label {
    margin: 8px 2px 4px;
    font-size: .66rem;
  }

  body.admin-shell .admin-nav-btn {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: center;
    align-content: center;
    gap: 5px;
    min-height: 68px;
    padding: 8px 6px !important;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px !important;
    background: rgba(255,255,255,.045);
    text-align: center;
  }

  body.admin-shell .admin-nav-btn > span:last-child {
    width: 100%;
    text-align: center !important;
    white-space: normal;
    font-size: .76rem;
    line-height: 1.08;
  }

  body.admin-shell .nav-icon {
    width: 25px;
    height: 25px;
    border-radius: 8px;
  }

  body.admin-shell .nav-icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.85;
  }

  body.admin-shell .admin-nav-btn.is-active {
    background:
      linear-gradient(135deg, rgba(214,184,106,.34), rgba(255,255,255,.065));
    box-shadow: inset 0 0 0 1px rgba(214,184,106,.28), 0 12px 22px rgba(0,0,0,.18);
  }

  body.admin-shell .admin-nav-btn.is-active::before {
    display: none;
  }
}

@media (max-width: 880px) {
  body.admin-shell .admin-topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  body.admin-shell .venue-switcher {
    grid-column: 2;
  }

  body.admin-shell .topbar-actions {
    grid-column: 3;
    width: auto;
    display: flex;
    flex-wrap: nowrap;
  }

  body.admin-shell .preview-toggle-button,
  body.admin-shell .logout-icon-button {
    display: inline-flex;
  }

  body.admin-shell #reloadButton {
    display: none;
  }

  body.admin-shell .mobile-menu-button {
    grid-column: 1;
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }

  body.admin-shell .mobile-menu-button::before {
    content: "";
    width: 20px;
    height: 14px;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    box-shadow: 0 6px 0 currentColor;
  }

  body.admin-shell .menu-work-block > summary {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 14px;
  }

  body.admin-shell .work-summary-icon {
    width: 38px;
    height: 38px;
  }
}

/* Premium redesign P0/P1: login-only guest view and graphite/champagne identity. */
body.admin-shell {
  --my-graphite: #101210;
  --my-graphite-soft: #171A17;
  --my-ivory: #F7F3E9;
  --my-surface-premium: #FFFDF8;
  --my-champagne: #C9A45B;
  --my-champagne-light: #E1C27D;
  --my-deep-green: #174D36;
  --my-live-green: #22A35A;
  --my-ui-text: #171A18;
  --my-ui-muted: #74756F;
}

body.admin-shell:not(.is-authenticated) {
  min-height: 100vh;
  overflow: hidden;
  background: var(--my-graphite);
}

body.admin-shell:not(.is-authenticated) #adminAppMount {
  display: none;
}

body.admin-shell .admin-login {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  padding: clamp(22px, 5vw, 62px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 20%, rgba(201,164,91,.18), transparent 30%),
    radial-gradient(circle at 28% 52%, rgba(23,77,54,.34), transparent 36%),
    linear-gradient(135deg, #070807 0%, #101210 44%, #1b1f1b 100%);
}

body.admin-shell .admin-login::before,
body.admin-shell .admin-login::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: clamp(190px, 24vw, 320px);
  aspect-ratio: 1;
  opacity: .42;
  background:
    linear-gradient(#0000 18%, rgba(201,164,91,.48) 18% 24%, #0000 24% 42%, rgba(255,255,255,.08) 42% 48%, #0000 48% 100%),
    linear-gradient(90deg, #0000 18%, rgba(201,164,91,.48) 18% 24%, #0000 24% 42%, rgba(255,255,255,.08) 42% 48%, #0000 48% 100%),
    radial-gradient(circle at 19% 19%, #0000 0 13%, rgba(201,164,91,.82) 14% 22%, #0000 23%),
    radial-gradient(circle at 81% 19%, #0000 0 13%, rgba(255,255,255,.16) 14% 22%, #0000 23%),
    radial-gradient(circle at 19% 81%, #0000 0 13%, rgba(201,164,91,.72) 14% 22%, #0000 23%);
  background-size: 54px 54px, 54px 54px, 100% 100%, 100% 100%, 100% 100%;
  filter: drop-shadow(0 24px 46px rgba(0,0,0,.45));
}

body.admin-shell .admin-login::before {
  left: -58px;
  top: 90px;
}

body.admin-shell .admin-login::after {
  right: 6vw;
  top: 34px;
  opacity: .28;
  transform: rotate(3deg);
}

body.admin-shell .admin-login-card {
  position: relative;
  width: min(100%, 460px);
  padding: clamp(26px, 4vw, 38px);
  border: 1px solid rgba(225,194,125,.20);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.105), rgba(255,255,255,.035)),
    rgba(16,18,16,.82);
  color: var(--my-ivory);
  box-shadow: 0 34px 90px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
}

body.admin-shell .admin-login-logo {
  width: 118px;
  height: 118px;
  object-fit: cover;
  margin: 0 auto 18px;
  border-radius: 28px;
  background: transparent;
  box-shadow: 0 24px 60px rgba(0,0,0,.32);
}

body.admin-shell .admin-login-card .eyebrow {
  color: var(--my-champagne-light);
  text-align: center;
}

body.admin-shell .admin-login-card h2 {
  margin: 8px 0 10px;
  color: var(--my-ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 500;
  line-height: .98;
  text-align: center;
}

body.admin-shell .admin-login-card p {
  margin-bottom: 22px;
  color: rgba(247,243,233,.72);
  text-align: center;
}

body.admin-shell .admin-login-card label {
  color: rgba(247,243,233,.82);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.admin-shell .admin-login-card input {
  width: 100%;
  border-color: rgba(225,194,125,.18);
  color: #f7f3e9;
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

body.admin-shell .admin-login-card input::placeholder {
  color: rgba(247,243,233,.38);
}

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

body.admin-shell .password-field input {
  padding-right: 82px;
}

body.admin-shell .password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  padding: 0 10px;
  color: rgba(225,194,125,.92);
  background: rgba(255,255,255,.08);
  font-size: .68rem;
  font-weight: 900;
}

body.admin-shell .login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 2px 0 20px;
  color: rgba(247,243,233,.68);
  font-size: .78rem;
}

body.admin-shell .login-options .check-row {
  display: inline-flex;
  margin: 0;
  color: rgba(247,243,233,.68);
  font-size: .78rem;
  letter-spacing: 0;
  text-transform: none;
}

body.admin-shell .login-options input {
  width: 14px;
  min-height: 14px;
}

body.admin-shell .login-options a {
  color: var(--my-champagne-light);
}

body.admin-shell .login-submit {
  min-height: 48px;
  text-transform: uppercase;
  letter-spacing: .16em;
}

body.admin-shell .admin-login-card .status-pill {
  display: flex;
  width: max-content;
  max-width: 100%;
  margin: 18px auto 0;
  color: rgba(247,243,233,.70);
  background: transparent;
}

body.admin-shell .login-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 20px;
  width: min(900px, 100%);
  margin-top: 32px;
}

body.admin-shell .login-benefits article {
  min-height: 92px;
  border: 1px solid rgba(225,194,125,.14);
  border-radius: 18px;
  padding: 16px;
  color: rgba(247,243,233,.76);
  background: rgba(255,255,255,.035);
  text-align: center;
}

body.admin-shell .login-benefits strong {
  display: block;
  color: var(--my-champagne-light);
  font-size: .86rem;
}

body.admin-shell .login-benefits span {
  display: block;
  margin-top: 7px;
  font-size: .76rem;
  line-height: 1.35;
}

body.admin-shell.is-authenticated {
  background:
    linear-gradient(90deg, rgba(16,18,16,.035) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, var(--my-ivory), #ece6d8);
  background-size: 30px 30px, auto;
}

body.admin-shell.is-authenticated .admin-login {
  display: none !important;
}

body.admin-shell .admin-topbar {
  background: rgba(16,18,16,.94);
  color: var(--my-ivory);
  border-bottom-color: rgba(225,194,125,.12);
}

body.admin-shell .sync-state strong {
  color: var(--my-live-green);
}

body.admin-shell .sync-state small {
  color: rgba(247,243,233,.68);
}

body.admin-shell .status-dot {
  background: var(--my-live-green);
}

body.admin-shell .venue-switcher {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

body.admin-shell .venue-switcher h1 {
  color: var(--my-ivory);
}

body.admin-shell .admin-hero {
  min-height: 164px;
  background: var(--my-surface-premium);
  color: var(--my-ui-text);
  box-shadow: 0 22px 50px rgba(48,40,22,.08);
}

body.admin-shell .admin-hero::after {
  display: none;
}

body.admin-shell .admin-hero h2 {
  color: var(--my-ui-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 500;
}

body.admin-shell .admin-hero p {
  color: var(--my-ui-muted);
}

body.admin-shell .metric-card {
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,253,248,.9));
}

body.admin-shell .metric-card strong {
  color: var(--my-ui-text);
  font-size: 2rem;
}

body.admin-shell .intelligence-panel {
  border-radius: 18px;
}

body.admin-shell .live-preview-panel {
  border-left-color: rgba(201,164,91,.14);
  background: var(--my-surface-premium);
}

body.admin-shell .phone-preview {
  border-color: #111;
  box-shadow: 0 32px 80px rgba(16,18,16,.22);
}

@media (max-width: 880px) {
  body.admin-shell:not(.is-authenticated) {
    overflow: auto;
  }

  body.admin-shell .admin-login {
    padding: 20px 16px;
    grid-template-rows: 1fr;
  }

  body.admin-shell .admin-login::before {
    left: -100px;
    top: -42px;
  }

  body.admin-shell .admin-login::after {
    right: -120px;
    top: 58%;
  }

  body.admin-shell .admin-login-card {
    padding: 24px 20px;
  }

  body.admin-shell .admin-login-logo {
    width: 88px;
    height: 88px;
    border-radius: 22px;
  }

  body.admin-shell .login-benefits {
    display: none;
  }
}

/* Menu Yours premium navigation final pass: compact, ordered, and easier to use on desktop/iPad. */
body.admin-shell [hidden] {
  display: none !important;
}

body.admin-shell.is-authenticated {
  background:
    repeating-linear-gradient(112deg, rgba(255,255,255,.20) 0 1px, rgba(20,24,22,.035) 1px 3px, transparent 3px 11px),
    linear-gradient(180deg, #e5e1d7 0%, #f5f0e5 44%, #ddd8cc 100%);
}

body.admin-shell .admin-topbar {
  min-height: 68px;
  padding-block: 10px;
  background:
    radial-gradient(circle at 10% 0%, rgba(201,164,91,.14), transparent 28%),
    linear-gradient(105deg, rgba(16,18,16,.98), rgba(26,31,28,.96));
}

body.admin-shell .mobile-menu-button {
  flex: 0 0 auto;
  min-width: 42px;
  height: 42px;
  border-color: rgba(201,164,91,.28);
  border-radius: 999px;
  color: #ead39a;
  background: rgba(255,255,255,.045);
  font-size: 0;
}

body.admin-shell .mobile-menu-button::before {
  content: "";
  display: block;
  width: 18px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  box-shadow: 0 5px 0 currentColor;
}

body.admin-shell .venue-switcher {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  padding: 0;
}

body.admin-shell .venue-logo {
  width: 58px !important;
  height: 58px !important;
  border-radius: 14px;
  object-fit: contain;
}

body.admin-shell .venue-switcher h1 {
  overflow: hidden;
  color: #f7f3e9;
  font-size: clamp(1.14rem, 1.45vw, 1.48rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.admin-shell .sync-state {
  padding: 8px 12px;
  border: 1px solid rgba(34,163,90,.18);
  border-radius: 999px;
  background: rgba(34,163,90,.08);
}

body.admin-shell .topbar-actions {
  width: auto !important;
  min-width: 0;
  max-width: none;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

body.admin-shell .preview-toggle-button,
body.admin-shell .logout-icon-button {
  display: inline-grid !important;
  place-items: center;
  flex: 0 0 42px !important;
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  border-radius: 999px;
}

body.admin-shell .preview-toggle-button {
  order: 1;
}

body.admin-shell .logout-icon-button {
  order: 2;
  color: #d06d61;
}

body.admin-shell .preview-toggle-button svg,
body.admin-shell .logout-icon-button svg {
  width: 19px;
  height: 19px;
}

body.admin-shell #reloadButton,
body.admin-shell #publicMenuLink {
  display: none !important;
}

@media (min-width: 881px) {
  body.admin-shell .admin-layout {
    width: min(1460px, calc(100% - 22px));
  }

  body.admin-shell .admin-nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 8px;
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    border-right: 1px solid rgba(255,255,255,.09);
    background:
      radial-gradient(circle at 16% 2%, rgba(201,164,91,.18), transparent 32%),
      repeating-linear-gradient(112deg, rgba(255,255,255,.05) 0 1px, rgba(0,0,0,.04) 1px 4px, transparent 4px 12px),
      linear-gradient(155deg, #282c28 0%, #171a17 48%, #0d1210 100%) !important;
  }

  body.admin-shell .admin-drawer-head,
  body.admin-shell .drawer-venue-card,
  body.admin-shell .drawer-section-label,
  body.admin-shell .admin-superadmin-link {
    grid-column: 1 / -1;
  }

  body.admin-shell .drawer-section-label {
    display: block;
    margin: 10px 2px 2px;
    color: #c9a45b;
    font-size: .64rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
  }

  body.admin-shell .drawer-venue-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 6px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.035));
  }

  body.admin-shell .drawer-venue-logo {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }

  body.admin-shell .drawer-venue-card span {
    color: #c9a45b;
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
  }

  body.admin-shell .drawer-venue-card strong {
    display: block;
    overflow: hidden;
    color: #fffdf8;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.admin-shell .admin-drawer-head {
    display: none;
  }

  body.admin-shell .admin-nav-btn {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: center;
    align-content: center;
    gap: 4px;
    min-height: 58px;
    padding: 7px 5px !important;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 13px !important;
    background: rgba(255,255,255,.045);
    color: rgba(255,255,255,.78);
    text-align: center;
  }

  body.admin-shell .admin-nav-btn > span:last-child {
    width: 100%;
    overflow: hidden;
    font-size: .7rem;
    line-height: 1.08;
    text-align: center !important;
    text-overflow: ellipsis;
    white-space: normal;
  }

  body.admin-shell .nav-icon {
    width: 22px;
    height: 22px;
    color: rgba(255,255,255,.74);
  }

  body.admin-shell .nav-icon svg {
    width: 16px;
    height: 16px;
    stroke-width: 1.75;
  }

  body.admin-shell .admin-nav-btn.is-active {
    border-color: rgba(201,164,91,.32);
    background:
      linear-gradient(135deg, rgba(201,164,91,.28), rgba(255,255,255,.06));
    color: #fff;
    box-shadow: inset 4px 0 0 #c9a45b, 0 10px 20px rgba(0,0,0,.16);
  }

  body.admin-shell .admin-nav-btn.is-active .nav-icon {
    color: #e1c27d;
  }

  body.admin-shell .menu-workspace-accordion {
    grid-template-columns: 1fr;
  }

  body.admin-shell .product-entry-block {
    order: 1;
  }

  body.admin-shell .category-entry-block {
    order: 2;
  }

  body.admin-shell .catalog-split-grid {
    grid-template-columns: 1fr;
  }
}

body.admin-shell .menu-work-block > summary {
  min-height: 74px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,253,248,.98), rgba(246,238,218,.86));
}

body.admin-shell .menu-work-block[open] > summary {
  border-bottom: 1px solid rgba(201,164,91,.18);
  border-radius: 16px 16px 0 0;
}

body.admin-shell .menu-work-block summary h2 {
  font-size: clamp(1.08rem, 1.7vw, 1.34rem);
}

body.admin-shell .accordion-indicator {
  min-width: 76px;
  padding: 8px 12px;
  border: 1px solid rgba(201,164,91,.24);
  border-radius: 999px;
  color: #7b5c20;
  background: rgba(201,164,91,.12);
  font-size: .76rem;
  font-weight: 900;
  text-align: center;
}

body.admin-shell details[open] > summary .accordion-indicator {
  color: #173a2a;
  background: rgba(34,163,90,.12);
}

body.admin-shell .work-summary-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

body.admin-shell .work-summary-icon svg {
  width: 19px;
  height: 19px;
}

@media (max-width: 1279px) and (min-width: 881px) {
  body.admin-shell .admin-layout {
    grid-template-columns: 196px minmax(0, 1fr);
  }

  body.admin-shell .admin-nav {
    top: 68px;
    max-height: calc(100vh - 68px);
    min-height: calc(100vh - 68px);
  }
}

@media (max-width: 880px) {
  body.admin-shell .admin-topbar {
    grid-template-columns: 42px minmax(0, 1fr) 92px !important;
    min-height: 62px;
    padding: 8px 10px;
  }

  body.admin-shell .mobile-menu-button {
    grid-column: 1 !important;
  }

  body.admin-shell .venue-switcher {
    grid-column: 2 !important;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 9px;
  }

  body.admin-shell .venue-logo {
    width: 44px !important;
    height: 44px !important;
  }

  body.admin-shell .venue-switcher h1 {
    font-size: 1.04rem;
  }

  body.admin-shell .topbar-actions {
    grid-column: 3 !important;
    width: 92px !important;
    min-width: 92px;
    max-width: 92px;
  }

  body.admin-shell .preview-toggle-button,
  body.admin-shell .logout-icon-button {
    flex-basis: 40px !important;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
  }

  body.admin-shell .admin-nav {
    padding: 18px 16px;
  }

  body.admin-shell .admin-nav-btn {
    min-height: 50px;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    font-size: .94rem;
  }

  body.admin-shell .nav-icon {
    width: 30px;
    height: 30px;
  }

  body.admin-shell .nav-icon svg {
    width: 21px;
    height: 21px;
  }

  body.admin-shell .menu-workspace-accordion,
  body.admin-shell .catalog-split-grid,
  body.admin-shell .admin-view[data-admin-view="promo"] > .workspace-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Final guard: keep private/superadmin controls hidden unless JS explicitly enables them. */
body.admin-shell .admin-nav .admin-superadmin-link[hidden],
body.admin-shell [hidden] {
  display: none !important;
}

body.admin-shell .menu-workspace-accordion > .product-entry-block {
  order: 1 !important;
}

body.admin-shell .menu-workspace-accordion > .category-entry-block {
  order: 2 !important;
}

/* Premium material refinement requested from iPad screenshot. */
body.admin-shell.is-authenticated {
  background:
    radial-gradient(circle at 24% -8%, rgba(255,255,255,.42), transparent 28%),
    radial-gradient(circle at 84% 8%, rgba(70,74,70,.12), transparent 30%),
    repeating-linear-gradient(96deg, rgba(255,255,255,.12) 0 1px, rgba(20,22,20,.025) 1px 2px, transparent 2px 7px),
    linear-gradient(180deg, #d8d5cc 0%, #eee9dc 42%, #c9c7bd 100%);
}

body.admin-shell .admin-topbar {
  background:
    radial-gradient(circle at 8% -20%, rgba(255,255,255,.18), transparent 34%),
    radial-gradient(circle at 85% 0%, rgba(201,164,91,.12), transparent 28%),
    repeating-linear-gradient(104deg, rgba(255,255,255,.055) 0 1px, rgba(0,0,0,.045) 1px 3px, transparent 3px 10px),
    linear-gradient(100deg, #2e302d 0%, #1c201d 48%, #30322f 100%) !important;
  box-shadow: 0 16px 34px rgba(14,16,14,.16), inset 0 1px 0 rgba(255,255,255,.08);
}

body.admin-shell .sync-state {
  border-color: rgba(201,164,91,.34) !important;
  background:
    linear-gradient(135deg, rgba(201,164,91,.18), rgba(255,255,255,.045)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

body.admin-shell .sync-state strong {
  color: #e1c27d !important;
}

body.admin-shell .status-dot {
  background: #c9a45b !important;
  box-shadow: 0 0 0 4px rgba(201,164,91,.16);
}

body.admin-shell .admin-nav {
  background:
    radial-gradient(circle at 22% 0%, rgba(255,255,255,.13), transparent 30%),
    radial-gradient(circle at 80% 24%, rgba(201,164,91,.12), transparent 28%),
    repeating-linear-gradient(108deg, rgba(255,255,255,.04) 0 1px, rgba(0,0,0,.05) 1px 3px, transparent 3px 12px),
    linear-gradient(155deg, #31342f 0%, #20241f 45%, #111613 100%) !important;
}

/* 2026-08-29 Master Improvement Brief: five macro areas, advanced tools stay contextual. */
body.admin-shell .macro-workspace {
  gap: 18px;
}

body.admin-shell .macro-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.admin-shell .macro-action-card {
  appearance: none;
  width: 100%;
  min-height: 150px;
  padding: 18px;
  border: 1px solid rgba(105,102,92,.18);
  border-radius: 18px;
  text-align: left;
  color: #202522;
  background:
    radial-gradient(circle at 18% 8%, rgba(255,255,255,.86), transparent 34%),
    linear-gradient(145deg, rgba(255,253,248,.98), rgba(235,228,212,.92));
  box-shadow: 0 18px 42px rgba(48,45,38,.08), inset 0 1px 0 rgba(255,255,255,.78);
  cursor: pointer;
  display: grid;
  align-content: start;
  gap: 8px;
}

body.admin-shell .macro-action-card span {
  width: max-content;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #7f6024;
  background: rgba(201,164,91,.16);
  border: 1px solid rgba(201,164,91,.22);
}

body.admin-shell .macro-action-card strong {
  font-size: 1.16rem;
  line-height: 1.15;
}

body.admin-shell .macro-action-card small {
  color: #6d746f;
  font-size: .92rem;
  line-height: 1.4;
}

body.admin-shell .macro-action-card:hover {
  border-color: rgba(178,138,62,.40);
  transform: translateY(-1px);
  box-shadow: 0 22px 48px rgba(48,45,38,.12), inset 0 1px 0 rgba(255,255,255,.88);
}

body.admin-shell .macro-action-card.is-readonly {
  cursor: default;
}

body.admin-shell .macro-action-card.is-readonly:hover {
  transform: none;
}

body.admin-shell .dashboard-quick-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body.admin-shell .quick-action-card,
body.admin-shell .settings-shortcut-card {
  appearance: none;
  width: 100%;
  min-height: 120px;
  padding: 15px;
  border: 1px solid rgba(105,102,92,.16);
  border-radius: 16px;
  text-align: left;
  color: #202522;
  background:
    radial-gradient(circle at 18% 10%, rgba(255,255,255,.82), transparent 34%),
    linear-gradient(145deg, rgba(255,253,248,.98), rgba(237,231,217,.92));
  box-shadow: 0 14px 34px rgba(48,45,38,.07), inset 0 1px 0 rgba(255,255,255,.76);
  cursor: pointer;
  display: grid;
  align-content: start;
  gap: 7px;
}

body.admin-shell .quick-action-card span,
body.admin-shell .settings-shortcut-card span {
  width: max-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: #806126;
  background: rgba(201,164,91,.15);
  border: 1px solid rgba(201,164,91,.22);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.admin-shell .quick-action-card strong,
body.admin-shell .settings-shortcut-card strong {
  font-size: 1rem;
  line-height: 1.15;
}

body.admin-shell .quick-action-card small,
body.admin-shell .settings-shortcut-card small {
  color: #6d746f;
  line-height: 1.36;
}

body.admin-shell .quick-action-card.is-primary {
  border-color: rgba(178,138,62,.44);
  background:
    radial-gradient(circle at 18% 10%, rgba(255,255,255,.86), transparent 34%),
    linear-gradient(145deg, rgba(239,225,188,.98), rgba(255,253,248,.94));
}

body.admin-shell .quick-action-card.is-menu-main-action {
  min-height: 152px;
  border-width: 2px;
  border-color: rgba(178,138,62,.62);
  background:
    radial-gradient(circle at 18% 10%, rgba(255,255,255,.96), transparent 34%),
    linear-gradient(145deg, #ead39b 0%, #fff9ea 48%, #d5b76b 100%);
  box-shadow: 0 24px 56px rgba(112,84,29,.18), inset 0 1px 0 rgba(255,255,255,.92);
}

body.admin-shell .quick-action-card.is-menu-main-action strong {
  font-size: 1.28rem;
}

body.admin-shell .quick-action-card:hover,
body.admin-shell .settings-shortcut-card:hover {
  border-color: rgba(178,138,62,.38);
  transform: translateY(-1px);
}

body.admin-shell .settings-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 881px) {
  body.admin-shell .admin-nav {
    align-content: start;
  }

  body.admin-shell .admin-nav-btn {
    min-height: 92px !important;
  }

  body.admin-shell .admin-nav-btn.nav-primary-action {
    border-color: rgba(178,138,62,.48) !important;
    background:
      radial-gradient(circle at 22% 8%, rgba(255,255,255,.84), transparent 34%),
      linear-gradient(145deg, #e3dccb 0%, #faf8f0 44%, #bab9b1 100%) !important;
  }
}

.split-home.is-single-area .panel {
  flex-basis: 100%;
}

.split-home .panel[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  body.admin-shell .dashboard-quick-actions,
  body.admin-shell .macro-hub-grid {
    grid-template-columns: 1fr;
  }

  body.admin-shell .settings-shortcuts {
    grid-template-columns: 1fr;
  }

  body.admin-shell .macro-action-card {
    min-height: 124px;
  }
}

@media (min-width: 881px) {
  body.admin-shell .admin-drawer-head {
    display: grid !important;
    grid-template-columns: 1fr;
    margin: 0 0 8px;
    padding: 2px 2px 8px;
  }

  body.admin-shell .admin-drawer-head .admin-brand {
    display: inline-flex;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  body.admin-shell .admin-drawer-head .admin-brand img {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    object-fit: cover;
    filter: contrast(1.04) saturate(.96) drop-shadow(0 8px 18px rgba(0,0,0,.24));
  }

  body.admin-shell .admin-brand-word {
    color: #f7f3e9;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.16rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
  }

  body.admin-shell .admin-brand-word span {
    color: #d4ad5f;
  }

  body.admin-shell .drawer-close-button {
    display: none;
  }

  body.admin-shell .drawer-venue-card {
    margin-bottom: 10px;
  }

  body.admin-shell .admin-nav-btn {
    min-height: 86px !important;
    aspect-ratio: 1 / 1;
    padding: 8px 6px !important;
    border-radius: 18px !important;
    border-color: rgba(255,255,255,.11);
    background:
      linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.075), 0 12px 24px rgba(0,0,0,.10);
  }

  body.admin-shell .admin-nav-btn:hover {
    border-color: rgba(201,164,91,.30);
    background:
      linear-gradient(145deg, rgba(201,164,91,.16), rgba(255,255,255,.04));
    transform: translateY(-1px);
  }

  body.admin-shell .admin-nav-btn.is-active {
    border-color: rgba(225,194,125,.50);
    background:
      radial-gradient(circle at 18% 10%, rgba(225,194,125,.32), transparent 38%),
      linear-gradient(145deg, rgba(201,164,91,.22), rgba(255,255,255,.07));
    box-shadow: inset 4px 0 0 #c9a45b, inset 0 1px 0 rgba(255,255,255,.10), 0 16px 28px rgba(0,0,0,.18);
  }
}

body.admin-shell.is-preview-open .live-preview-panel {
  box-shadow: 0 0 0 3px rgba(201,164,91,.24), 0 32px 80px rgba(16,18,16,.24);
}

/* Final material texture pass: softer brushed graphite/stone, no hard stripe pattern. */
body.admin-shell.is-authenticated {
  background:
    radial-gradient(circle at 18% 0%, rgba(255,255,255,.34), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(63,65,60,.16), transparent 34%),
    radial-gradient(circle at 46% 34%, rgba(255,255,255,.18), transparent 26%),
    linear-gradient(115deg, rgba(255,255,255,.16), rgba(58,60,55,.055) 42%, rgba(255,255,255,.10)),
    linear-gradient(180deg, #d1cec5 0%, #eee8dc 45%, #c7c4bb 100%) !important;
}

body.admin-shell .admin-topbar {
  background:
    radial-gradient(circle at 12% -18%, rgba(255,255,255,.18), transparent 32%),
    radial-gradient(circle at 82% 0%, rgba(201,164,91,.14), transparent 30%),
    linear-gradient(115deg, rgba(255,255,255,.08), rgba(255,255,255,0) 34%, rgba(255,255,255,.06)),
    linear-gradient(100deg, #383a36 0%, #252925 48%, #3f403b 100%) !important;
}

body.admin-shell .admin-nav {
  background:
    radial-gradient(circle at 20% 2%, rgba(255,255,255,.14), transparent 30%),
    radial-gradient(circle at 82% 26%, rgba(201,164,91,.13), transparent 28%),
    radial-gradient(circle at 34% 72%, rgba(255,255,255,.06), transparent 34%),
    linear-gradient(155deg, rgba(255,255,255,.055), rgba(255,255,255,0) 38%, rgba(255,255,255,.035)),
    linear-gradient(155deg, #353833 0%, #232722 45%, #111613 100%) !important;
}

body.admin-shell #saveStatus {
  min-width: 150px;
  justify-content: center;
  border: 1px solid rgba(201,164,91,.32);
  color: #7b5c20;
  background: rgba(201,164,91,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.38);
}

body.admin-shell #saveStatus.is-saving {
  color: #173a2a;
  background:
    linear-gradient(90deg, rgba(201,164,91,.26), rgba(255,253,248,.88), rgba(201,164,91,.26));
  background-size: 220% 100%;
  animation: menuYoursSaving 1.05s linear infinite;
}

body.admin-shell #saveStatus.is-error {
  border-color: rgba(182,59,54,.34);
  color: #8b2b27;
  background: rgba(182,59,54,.10);
}

body.admin-shell.is-save-success #saveStatus {
  border-color: rgba(34,163,90,.28);
  color: #174d36;
  background: rgba(34,163,90,.10);
}

body.admin-shell .save-settings-button[disabled],
body.admin-shell button[disabled] {
  cursor: wait;
  opacity: .72;
}

body.admin-shell .form-actions-sticky {
  border-color: rgba(201,164,91,.24);
  background:
    linear-gradient(135deg, rgba(255,253,248,.96), rgba(246,238,218,.92));
}

@keyframes menuYoursSaving {
  from { background-position: 0 0; }
  to { background-position: 220% 0; }
}

/* 2026-08-29 Product Design pass: satin graphite/silver palette and clearer settings feedback. */
body.admin-shell.is-authenticated {
  background:
    radial-gradient(circle at 18% -6%, rgba(255,255,255,.42), transparent 26%),
    radial-gradient(circle at 86% 3%, rgba(197,188,170,.30), transparent 30%),
    radial-gradient(circle at 42% 42%, rgba(255,255,255,.20), transparent 30%),
    linear-gradient(125deg, rgba(255,255,255,.18), rgba(93,94,88,.08) 42%, rgba(255,255,255,.12)),
    linear-gradient(180deg, #d8d6ce 0%, #f1ecdf 45%, #cbc8be 100%) !important;
}

body.admin-shell .admin-topbar {
  background:
    radial-gradient(circle at 12% -18%, rgba(255,255,255,.20), transparent 33%),
    radial-gradient(circle at 88% 0%, rgba(201,164,91,.16), transparent 31%),
    linear-gradient(118deg, rgba(255,255,255,.10), rgba(255,255,255,0) 36%, rgba(255,255,255,.08)),
    linear-gradient(100deg, #474945 0%, #2a2e2a 48%, #4c4d47 100%) !important;
}

body.admin-shell .admin-nav {
  background:
    radial-gradient(circle at 18% 4%, rgba(255,255,255,.16), transparent 30%),
    radial-gradient(circle at 86% 28%, rgba(201,164,91,.15), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,0) 42%, rgba(255,255,255,.045)),
    linear-gradient(155deg, #3f433d 0%, #272c27 44%, #121714 100%) !important;
}

body.admin-shell .sync-state {
  border-color: rgba(201,164,91,.48) !important;
  background:
    linear-gradient(135deg, rgba(201,164,91,.24), rgba(255,255,255,.06)) !important;
}

body.admin-shell .sync-state strong {
  color: #e4c77d !important;
}

body.admin-shell .sync-state small {
  color: rgba(247,243,233,.78) !important;
}

@media (min-width: 881px) {
  body.admin-shell .admin-nav-btn {
    border-color: rgba(255,255,255,.14) !important;
    background:
      radial-gradient(circle at 24% 12%, rgba(255,255,255,.18), transparent 36%),
      linear-gradient(145deg, rgba(212,210,199,.18), rgba(255,255,255,.035) 48%, rgba(16,18,16,.10)) !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.16),
      inset 0 -1px 0 rgba(0,0,0,.18),
      0 12px 24px rgba(0,0,0,.12) !important;
  }

  body.admin-shell .admin-nav-btn:hover {
    border-color: rgba(225,194,125,.48) !important;
    background:
      radial-gradient(circle at 22% 10%, rgba(239,223,176,.28), transparent 38%),
      linear-gradient(145deg, rgba(209,203,187,.24), rgba(255,255,255,.06) 48%, rgba(16,18,16,.08)) !important;
  }

  body.admin-shell .admin-nav-btn.is-active {
    border-color: rgba(225,194,125,.62) !important;
    background:
      radial-gradient(circle at 24% 12%, rgba(225,194,125,.34), transparent 40%),
      linear-gradient(145deg, rgba(201,164,91,.34), rgba(214,210,197,.14) 48%, rgba(255,255,255,.06)) !important;
    box-shadow:
      inset 5px 0 0 #d7b461,
      inset 0 1px 0 rgba(255,255,255,.18),
      0 16px 30px rgba(0,0,0,.20) !important;
  }
}

body.admin-shell .menu-entry-card,
body.admin-shell .panel-card,
body.admin-shell .restaurant-card {
  background:
    linear-gradient(145deg, rgba(255,253,248,.97), rgba(242,235,219,.90)) !important;
  border-color: rgba(112,106,91,.16) !important;
}

body.admin-shell #saveStatus.is-saving::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #c9a45b;
  box-shadow: 0 0 0 4px rgba(201,164,91,.18);
}

body.admin-shell .admin-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

body.admin-shell .hero-edit-menu-button,
body.admin-shell .publish-topbar-button {
  color: #201a0b !important;
  border: 1px solid rgba(132,95,31,.32) !important;
  background:
    radial-gradient(circle at 22% 10%, rgba(255,255,255,.58), transparent 40%),
    linear-gradient(135deg, #d2ad63 0%, #f2d88d 50%, #b88a37 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.65),
    0 14px 28px rgba(96,70,22,.18) !important;
}

body.admin-shell .hero-edit-menu-button {
  min-height: 48px;
  padding-inline: 20px;
  font-weight: 900;
}

body.admin-shell .reload-topbar-button {
  min-width: 0;
  padding-inline: 13px;
  opacity: .78;
}

body.admin-shell .sync-state.is-draft {
  border-color: rgba(178,138,62,.56) !important;
  background:
    linear-gradient(135deg, rgba(255,253,248,.82), rgba(201,164,91,.24)) !important;
}

body.admin-shell .sync-state.is-draft .status-dot {
  background: #d7a83b !important;
  box-shadow: 0 0 0 4px rgba(215,168,59,.18);
}

body.admin-shell .dashboard-quick-actions .quick-action-card {
  min-height: 138px;
}

body.admin-shell .dashboard-quick-actions .quick-action-card strong {
  font-size: 1.08rem;
}

body.admin-shell .dashboard-quick-actions .quick-action-card.is-menu-main-action {
  min-height: 170px;
  transform: translateY(-2px);
}

body.admin-shell .dashboard-quick-actions .quick-action-card.is-menu-main-action span {
  color: #1f211e;
  background: rgba(255,255,255,.48);
}

body.admin-shell .dashboard-quick-actions .quick-action-card.is-menu-main-action small {
  color: #4a3a17;
  font-weight: 700;
}

/* 2026-08-29 correction: light material sidebar/topbar with satin silver menu buttons. */
body.admin-shell.is-authenticated {
  background:
    radial-gradient(circle at 18% -8%, rgba(255,255,255,.62), transparent 28%),
    radial-gradient(circle at 86% 6%, rgba(184,181,171,.28), transparent 34%),
    linear-gradient(120deg, rgba(255,255,255,.28), rgba(142,143,137,.08) 44%, rgba(255,255,255,.16)),
    linear-gradient(180deg, #dddcd6 0%, #f5f1e8 48%, #d2d0c8 100%) !important;
}

body.admin-shell .admin-topbar {
  color: #232521 !important;
  border-bottom: 1px solid rgba(126,126,116,.22) !important;
  background:
    radial-gradient(circle at 12% -18%, rgba(255,255,255,.70), transparent 34%),
    radial-gradient(circle at 90% 0%, rgba(201,164,91,.15), transparent 30%),
    linear-gradient(118deg, rgba(255,255,255,.36), rgba(255,255,255,0) 40%, rgba(255,255,255,.22)),
    linear-gradient(100deg, #c7c8c3 0%, #ebe9e1 50%, #bfc0bb 100%) !important;
  box-shadow: 0 14px 30px rgba(42,43,39,.12), inset 0 1px 0 rgba(255,255,255,.68) !important;
}

body.admin-shell .venue-switcher h1,
body.admin-shell .admin-topbar .eyebrow {
  color: #232521 !important;
}

body.admin-shell .sync-state {
  border-color: rgba(178,138,62,.40) !important;
  background:
    linear-gradient(135deg, rgba(255,253,248,.72), rgba(201,164,91,.16)) !important;
  color: #3f3218 !important;
}

body.admin-shell .sync-state strong {
  color: #8a6728 !important;
}

body.admin-shell .sync-state small {
  color: #5d5f59 !important;
}

body.admin-shell .admin-nav {
  color: #2b2d29 !important;
  border-color: rgba(128,126,115,.18) !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(255,255,255,.86), transparent 28%),
    radial-gradient(circle at 84% 26%, rgba(201,164,91,.10), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.55), rgba(255,255,255,0) 44%, rgba(180,178,166,.14)),
    linear-gradient(180deg, #fbfaf6 0%, #eeeae0 52%, #dfddd4 100%) !important;
  box-shadow: inset -1px 0 0 rgba(255,255,255,.65), 18px 0 40px rgba(65,63,55,.10) !important;
}

body.admin-shell .admin-brand-word,
body.admin-shell .drawer-venue-name,
body.admin-shell .drawer-user-card strong,
body.admin-shell .admin-nav .eyebrow {
  color: #2b2d29 !important;
}

body.admin-shell .admin-brand-word span,
body.admin-shell .drawer-user-card small {
  color: #a67c34 !important;
}

@media (min-width: 881px) {
  body.admin-shell .admin-nav-btn {
    color: #2f312d !important;
    border: 1px solid rgba(116,116,108,.28) !important;
    background:
      radial-gradient(circle at 24% 12%, rgba(255,255,255,.78), transparent 38%),
      linear-gradient(145deg, #dad9d3 0%, #f8f7f2 42%, #bfc0ba 100%) !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.88),
      inset 0 -1px 0 rgba(84,84,78,.18),
      0 12px 22px rgba(65,63,55,.12) !important;
  }

  body.admin-shell .admin-nav-btn .nav-icon {
    color: #343732 !important;
    background:
      linear-gradient(145deg, rgba(255,255,255,.52), rgba(178,178,170,.22)) !important;
    border: 1px solid rgba(116,116,108,.18);
    border-radius: 12px;
  }

  body.admin-shell .admin-nav-btn:hover {
    border-color: rgba(178,138,62,.45) !important;
    background:
      radial-gradient(circle at 22% 10%, rgba(255,255,255,.88), transparent 38%),
      linear-gradient(145deg, #e7e5de 0%, #fffdf8 46%, #c8c7c1 100%) !important;
  }

  body.admin-shell .admin-nav-btn.is-active {
    color: #1f211e !important;
    border-color: rgba(178,138,62,.62) !important;
    background:
      radial-gradient(circle at 22% 10%, rgba(255,255,255,.82), transparent 36%),
      linear-gradient(145deg, #efe1bc 0%, #f9f5e9 44%, #c8c7c1 100%) !important;
    box-shadow:
      inset 5px 0 0 #b28a3e,
      inset 0 1px 0 rgba(255,255,255,.90),
      0 16px 28px rgba(74,66,46,.18) !important;
  }
}

@media (max-width: 880px) {
  body.admin-shell .admin-hero-actions {
    width: 100%;
    justify-content: stretch;
  }

  body.admin-shell .admin-hero-actions > * {
    flex: 1 1 150px;
    justify-content: center;
  }

  body.admin-shell .publish-topbar-button {
    display: none;
  }

  body.admin-shell .reload-topbar-button {
    display: none;
  }
}

body.admin-shell .mobile-menu-button,
body.admin-shell .preview-toggle-button,
body.admin-shell .logout-icon-button {
  background:
    linear-gradient(145deg, rgba(255,255,255,.88), rgba(205,204,197,.78)) !important;
  border-color: rgba(106,106,98,.24) !important;
  color: #262925 !important;
}

/* Slightly darker light-material sidebar requested after live check. */
body.admin-shell .admin-nav {
  background:
    radial-gradient(circle at 18% 0%, rgba(255,255,255,.68), transparent 28%),
    radial-gradient(circle at 84% 26%, rgba(178,138,62,.10), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.32), rgba(154,154,145,.10) 44%, rgba(108,109,103,.13)),
    linear-gradient(180deg, #eceae2 0%, #dddacf 52%, #cbc8bd 100%) !important;
  box-shadow: inset -1px 0 0 rgba(255,255,255,.55), 18px 0 40px rgba(65,63,55,.13) !important;
}

@media (min-width: 881px) {
  body.admin-shell .admin-nav-btn {
    background:
      radial-gradient(circle at 24% 12%, rgba(255,255,255,.62), transparent 38%),
      linear-gradient(145deg, #c8c8c1 0%, #eeeeea 43%, #aeb0aa 100%) !important;
    border-color: rgba(90,91,86,.34) !important;
  }
}

/* Menu Yours: Menu del Giorno, QR verticale e analytics engagement. */
body.admin-shell .qr-workspace {
  grid-template-columns: minmax(0, 1fr) !important;
  max-width: 980px;
  margin-inline: auto;
}

body.admin-shell .qr-workspace > .panel-card {
  width: 100%;
}

body.admin-shell .daily-menu-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  max-width: 1040px;
  margin-inline: auto;
}

body.admin-shell .daily-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

body.admin-shell .daily-menu-list {
  display: grid;
  gap: 10px;
}

body.admin-shell .daily-menu-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(116,116,108,.22);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,253,248,.92), rgba(238,235,224,.76));
  box-shadow: 0 12px 28px rgba(46,45,39,.07);
}

body.admin-shell .daily-menu-row.is-off {
  opacity: .68;
  background: linear-gradient(135deg, rgba(239,239,234,.72), rgba(220,219,212,.58));
}

body.admin-shell .daily-menu-row-main {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

body.admin-shell .daily-menu-row-main img,
body.admin-shell .daily-placeholder {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
}

body.admin-shell .daily-placeholder {
  display: grid;
  place-items: center;
  border: 1px solid rgba(178,138,62,.35);
  background: #f7f0df;
  color: #8a6728;
  font-weight: 900;
}

body.admin-shell .daily-menu-row strong,
body.admin-shell .daily-menu-row small {
  display: block;
  min-width: 0;
}

body.admin-shell .daily-menu-row small {
  color: var(--muted);
}

body.admin-shell .daily-row-actions,
body.admin-shell .inline-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

body.admin-shell .compact-action,
body.admin-shell .product-actions button {
  min-height: 36px;
  border: 1px solid rgba(112,111,102,.26);
  border-radius: 999px;
  padding: 8px 12px;
  background:
    radial-gradient(circle at 22% 8%, rgba(255,255,255,.72), transparent 36%),
    linear-gradient(145deg, rgba(238,236,228,.96), rgba(199,198,190,.84));
  color: #252822;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .01em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.70), 0 8px 18px rgba(45,43,37,.08);
  cursor: pointer;
}

body.admin-shell .compact-action:hover,
body.admin-shell .product-actions button:hover {
  border-color: rgba(178,138,62,.44);
  background:
    radial-gradient(circle at 22% 8%, rgba(255,255,255,.82), transparent 36%),
    linear-gradient(145deg, rgba(250,247,237,.98), rgba(211,198,163,.84));
}

body.admin-shell .danger-action {
  color: #8a2f2a !important;
  border-color: rgba(182,59,54,.24) !important;
  background:
    radial-gradient(circle at 22% 8%, rgba(255,255,255,.72), transparent 36%),
    linear-gradient(145deg, rgba(253,244,240,.96), rgba(229,203,196,.80)) !important;
}

body.admin-shell .daily-inline-editor {
  margin: -4px 0 10px 70px;
  border-color: rgba(178,138,62,.30);
  background:
    radial-gradient(circle at 14% 0%, rgba(255,255,255,.92), transparent 34%),
    linear-gradient(145deg, rgba(255,253,248,.98), rgba(232,226,211,.86));
  box-shadow: 0 18px 44px rgba(67,62,49,.11);
}

body.admin-shell .daily-inline-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.admin-shell .import-scan-card {
  min-height: 140px;
  border-color: rgba(178,138,62,.42);
  background:
    radial-gradient(circle at 12% 10%, rgba(255,255,255,.72), transparent 40%),
    linear-gradient(135deg, #f7efd9, #fffdf8 48%, #e2d4b6);
}

body.admin-shell .import-scan-card span {
  display: block;
  margin-top: 8px;
  color: #5f604f;
  font-size: .9rem;
  font-weight: 700;
}

body.admin-shell .analytics-wide {
  grid-column: 1 / -1;
}

body.admin-shell .analytics-mini-chart {
  min-height: 210px;
  padding: 18px 10px 8px;
  border: 1px solid rgba(116,116,108,.14);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.74), rgba(236,232,219,.62)),
    repeating-linear-gradient(90deg, rgba(16,18,16,.035) 0 1px, transparent 1px 44px);
}

body.admin-shell .analytics-mini-chart svg {
  display: block;
  width: 100%;
  height: 162px;
  overflow: visible;
}

body.admin-shell .analytics-mini-chart .analytics-gridline {
  fill: none;
  stroke: rgba(116,116,108,.16);
  stroke-width: .6;
}

body.admin-shell .analytics-mini-chart .analytics-line {
  fill: none;
  stroke: url(#analyticsLineGradient);
  stroke-width: 3.4;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 8px 12px rgba(79,89,98,.18));
}

body.admin-shell .analytics-mini-chart circle {
  fill: #d5b46a;
  stroke: #fffdf8;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

body.admin-shell .analytics-line-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

body.admin-shell .analytics-bars,
body.admin-shell .analytics-rank-list,
body.admin-shell .rating-distribution {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

body.admin-shell .analytics-bar-row,
body.admin-shell .rating-dist-row {
  display: grid;
  grid-template-columns: minmax(88px, .7fr) minmax(90px, 1fr) 42px;
  gap: 10px;
  align-items: center;
  font-size: .86rem;
}

body.admin-shell .analytics-bar-row > div,
body.admin-shell .rating-dist-row > div {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(116,116,108,.16);
}

body.admin-shell .analytics-bar-row i,
body.admin-shell .rating-dist-row i {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: linear-gradient(90deg, #4f5962, #a9b4ba, #d5b46a);
}

body.admin-shell .analytics-chart-card,
body.admin-shell .analytics-ranking-card {
  border-color: rgba(116,116,108,.18);
  background:
    radial-gradient(circle at 100% 0%, rgba(201,164,91,.13), transparent 28%),
    linear-gradient(145deg, #fffdf8, #f3f0e7);
}

body.admin-shell .analytics-rank-row {
  display: grid;
  grid-template-columns: 28px minmax(120px, .9fr) minmax(110px, 1fr) 46px;
  gap: 10px;
  align-items: center;
  font-size: .86rem;
}

body.admin-shell .analytics-rank-row > span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 10px;
  background: rgba(201,164,91,.14);
  color: #7a5b1f;
  font-weight: 900;
}

body.admin-shell .analytics-rank-row > div {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(116,116,108,.16);
}

body.admin-shell .analytics-rank-row i {
  display: block;
  height: 100%;
  min-width: 5px;
  border-radius: inherit;
  background: linear-gradient(90deg, #46515a, #d5b46a);
}

body.admin-shell .analytics-rank-row em {
  color: var(--muted);
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

body.admin-shell [data-admin-view="analytics"].panel-card {
  max-width: 1120px;
}

body.admin-shell .intelligence-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

body.admin-shell .skill-card {
  min-height: 260px;
  border-color: rgba(116,116,108,.20);
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255,255,255,.80), transparent 38%),
    linear-gradient(145deg, rgba(255,253,248,.94), rgba(236,232,219,.76));
  box-shadow: 0 16px 36px rgba(46,45,39,.08);
}

body.admin-shell .skill-card > span {
  min-height: auto;
  border: 0;
  padding: 0;
  background: transparent;
}

body.admin-shell .skill-card strong {
  font-size: 1.05rem;
}

body.admin-shell .skill-list {
  display: grid;
  gap: 8px;
}

body.admin-shell .skill-list > div,
body.admin-shell .skill-list > p {
  margin: 0;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.56);
}

body.admin-shell .admin-view[data-admin-view="analytics"] .analytics-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.admin-shell .admin-view[data-admin-view="analytics"] .metric-card {
  min-height: 126px;
}

body.admin-shell .template-gallery {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

body.admin-shell .template-choice-visual {
  position: relative;
  min-height: 190px;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f8f4ea, #e6dfd0);
}

body.admin-shell .template-choice-visual span {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(16,18,16,.72);
  color: #fffdf8;
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
}

body.admin-shell .template-choice-visual img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

body.admin-shell .template-choice-card[data-template-card="t01-essential-light"] .template-choice-visual {
  background: linear-gradient(180deg, #fffdf8, #f3ead9);
}

body.admin-shell .template-choice-card[data-template-card="t02-essential-dark"] .template-choice-visual {
  background: linear-gradient(145deg, #101210, #262a25);
}
body.admin-shell .template-choice-card[data-template-card="t02-essential-dark"] .template-choice-visual i,
body.admin-shell .template-choice-card[data-template-card="t02-essential-dark"] .template-choice-visual b,
body.admin-shell .template-choice-card[data-template-card="t02-essential-dark"] .template-choice-visual em {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.20);
}

body.admin-shell .template-choice-card[data-template-card="t03-italian-classic"] .template-choice-visual {
  background:
    linear-gradient(90deg, rgba(90,51,36,.07) 1px, transparent 1px),
    linear-gradient(180deg, #f4ead9, #e4cfb4);
  background-size: 18px 18px, auto;
}
body.admin-shell .template-choice-card[data-template-card="t03-italian-classic"] .template-choice-visual i {
  border-radius: 3px;
}

body.admin-shell .template-choice-card[data-template-card="t06-modern-bistro"] .template-choice-visual {
  background: linear-gradient(180deg, #f8faf8, #e2e7e2);
}
body.admin-shell .template-choice-card[data-template-card="t06-modern-bistro"] .template-choice-visual i,
body.admin-shell .template-choice-card[data-template-card="t06-modern-bistro"] .template-choice-visual b,
body.admin-shell .template-choice-card[data-template-card="t06-modern-bistro"] .template-choice-visual em {
  border-radius: 14px;
}

body.admin-shell .template-choice-card[data-template-card="t10-cafe"] .template-choice-visual {
  background:
    radial-gradient(circle at 25% 0%, rgba(191,143,82,.36), transparent 34%),
    linear-gradient(180deg, #fff4e5, #efd5b4);
}

body.admin-shell .template-choice-card[data-template-card="t04-mediterranean"] .template-choice-visual {
  background:
    radial-gradient(circle at 15% 20%, rgba(209,124,69,.34), transparent 28%),
    linear-gradient(135deg, #fff7e8, #e8efdc 56%, #f1d0b5);
}
body.admin-shell .template-choice-card[data-template-card="t04-mediterranean"] .template-choice-visual i,
body.admin-shell .template-choice-card[data-template-card="t04-mediterranean"] .template-choice-visual b,
body.admin-shell .template-choice-card[data-template-card="t04-mediterranean"] .template-choice-visual em {
  border-radius: 999px;
}

body.admin-shell .template-choice-card[data-template-card="t09-wine-cellar"] .template-choice-visual {
  background: linear-gradient(150deg, #210d14, #571c29 60%, #14070b);
}
body.admin-shell .template-choice-card[data-template-card="t09-wine-cellar"] .template-choice-visual i,
body.admin-shell .template-choice-card[data-template-card="t09-wine-cellar"] .template-choice-visual b,
body.admin-shell .template-choice-card[data-template-card="t09-wine-cellar"] .template-choice-visual em {
  background: rgba(255,248,236,.09);
  border-color: rgba(201,164,91,.28);
}

body.admin-shell .template-choice-card[data-template-card="t07-urban"] .template-choice-visual {
  background:
    linear-gradient(135deg, rgba(21,21,21,.14) 0 25%, transparent 25% 50%, rgba(21,21,21,.09) 50% 75%, transparent 75%),
    #f2eee3;
  background-size: 54px 54px, auto;
}
body.admin-shell .template-choice-card[data-template-card="t07-urban"] .template-choice-visual i,
body.admin-shell .template-choice-card[data-template-card="t07-urban"] .template-choice-visual b,
body.admin-shell .template-choice-card[data-template-card="t07-urban"] .template-choice-visual em {
  border-radius: 3px;
}

body.admin-shell .template-choice-card[data-template-card="t05-luxury-gold"] .template-choice-visual {
  background:
    radial-gradient(circle at 80% 10%, rgba(213,180,106,.32), transparent 28%),
    linear-gradient(150deg, #050706, #14221e 52%, #070909);
}
body.admin-shell .template-choice-card[data-template-card="t05-luxury-gold"] .template-choice-visual i,
body.admin-shell .template-choice-card[data-template-card="t05-luxury-gold"] .template-choice-visual b,
body.admin-shell .template-choice-card[data-template-card="t05-luxury-gold"] .template-choice-visual em,
body.admin-shell .template-choice-card[data-template-card="t11-photo-experience"] .template-choice-visual i,
body.admin-shell .template-choice-card[data-template-card="t11-photo-experience"] .template-choice-visual b,
body.admin-shell .template-choice-card[data-template-card="t11-photo-experience"] .template-choice-visual em,
body.admin-shell .template-choice-card[data-template-card="t12-signature"] .template-choice-visual i,
body.admin-shell .template-choice-card[data-template-card="t12-signature"] .template-choice-visual b,
body.admin-shell .template-choice-card[data-template-card="t12-signature"] .template-choice-visual em {
  background: rgba(255,253,248,.08);
  border-color: rgba(213,180,106,.34);
}

body.admin-shell .template-choice-card[data-template-card="t01-luxury-light"] .template-choice-visual {
  background:
    radial-gradient(circle at 82% 0%, rgba(201,164,91,.25), transparent 32%),
    linear-gradient(180deg, #fffefa, #f0e2c8);
}

body.admin-shell .template-choice-card[data-template-card="t11-photo-experience"] .template-choice-visual {
  background:
    linear-gradient(180deg, rgba(5,6,6,.08), rgba(5,6,6,.72)),
    url("https://images.unsplash.com/photo-1467003909585-2f8a72700288?auto=format&fit=crop&w=700&q=70");
  background-size: cover;
  background-position: center;
}

body.admin-shell .template-choice-card[data-template-card="t12-signature"] .template-choice-visual {
  background:
    radial-gradient(circle at 80% 4%, rgba(213,180,106,.26), transparent 32%),
    linear-gradient(145deg, #06110e, #0d2f27 58%, #030605);
}

body.admin-shell .allergen-suggest-button {
  align-self: end;
  min-height: 44px;
}

body.admin-shell .template-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
  align-items: stretch;
}

body.admin-shell .template-choice-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(31, 37, 33, .12);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(247,243,233,.88)),
    #fffdf8;
  box-shadow: 0 18px 48px rgba(31, 37, 33, .08);
}

body.admin-shell .template-choice-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(135deg, rgba(201,164,91,.28), transparent 34%);
  transition: opacity .18s ease;
}

body.admin-shell .template-choice-card.is-active {
  border-color: rgba(201,164,91,.72);
  box-shadow: 0 22px 58px rgba(31, 37, 33, .11), 0 0 0 1px rgba(201,164,91,.24) inset;
}

body.admin-shell .template-choice-card.is-active::before {
  opacity: 1;
}

body.admin-shell .template-choice-card.is-locked {
  opacity: 1;
}

body.admin-shell .template-choice-card.is-locked .template-choice-visual img {
  filter: saturate(.42) contrast(.86);
}

body.admin-shell .template-choice-visual {
  min-height: 260px;
  border-bottom: 1px solid rgba(31, 37, 33, .1);
  background: #f7f3e9;
}

body.admin-shell .template-choice-visual img {
  min-height: 260px;
  transform: scale(1.01);
  transition: transform .18s ease, filter .18s ease;
}

body.admin-shell .template-choice-card:hover .template-choice-visual img {
  transform: scale(1.04);
}

body.admin-shell .template-tier-badge {
  left: 14px !important;
  top: 14px !important;
  padding: 7px 10px !important;
  border-radius: 999px !important;
  background: rgba(16,18,16,.72) !important;
  color: #fffdf8 !important;
  font-size: .69rem !important;
  font-weight: 900 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
}

body.admin-shell .template-tier-badge.is-premium {
  background: linear-gradient(135deg, rgba(31, 37, 33, .9), rgba(201,164,91,.82)) !important;
  border-color: rgba(255,255,255,.24) !important;
}

body.admin-shell .template-choice-body {
  position: relative;
  z-index: 1;
  gap: 12px;
  padding: 18px;
}

body.admin-shell .template-choice-heading {
  display: grid;
  gap: 4px;
}

body.admin-shell .template-choice-body h3 {
  font-size: 1.24rem;
}

body.admin-shell .template-choice-body p {
  min-height: 42px;
  color: rgba(32, 37, 34, .7);
}

body.admin-shell .template-choice-meta {
  display: flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(31, 86, 56, .07);
  color: #1f5638;
  font-size: .78rem;
  font-weight: 800;
}

body.admin-shell .template-choice-card.is-locked .template-choice-meta {
  background: rgba(182, 59, 54, .08);
  color: #8b302c;
}

body.admin-shell .template-choice-actions {
  grid-template-columns: 1fr 1fr;
}

body.admin-shell .template-choice-actions button {
  min-height: 42px;
}

@media (max-width: 860px) {
  body.admin-shell .template-gallery {
    grid-template-columns: 1fr !important;
  }

  body.admin-shell .template-choice-visual,
  body.admin-shell .template-choice-visual img {
    min-height: 220px;
  }
}

@media (max-width: 980px) {
  body.admin-shell .daily-menu-layout {
    grid-template-columns: 1fr;
  }

  body.admin-shell .daily-menu-row {
    grid-template-columns: 1fr;
  }

  body.admin-shell .daily-inline-editor {
    margin-left: 0;
  }

  body.admin-shell .daily-inline-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body.admin-shell .intelligence-grid,
  body.admin-shell .admin-view[data-admin-view="analytics"] .analytics-grid,
  body.admin-shell .template-gallery {
    grid-template-columns: 1fr !important;
  }

  .import-category-title,
  .import-review-item,
  .import-review-item.is-editable {
    grid-template-columns: 1fr;
  }

  .import-category-title span,
  .import-category-title small {
    width: fit-content;
  }
}

/* 2026-08-30: premium unified sidebar buttons. */
body.admin-shell .admin-nav-btn {
  color: #2e302c !important;
  border: 1px solid rgba(94, 93, 86, .30) !important;
  background:
    radial-gradient(circle at 24% 10%, rgba(255,255,255,.84), transparent 36%),
    linear-gradient(150deg, #d4d3cc 0%, #f4f1e7 47%, #b6b7b0 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.88),
    inset 0 -1px 0 rgba(74,74,68,.18),
    0 11px 24px rgba(47,46,39,.13) !important;
}

body.admin-shell .admin-nav-btn .nav-icon {
  color: #30342f !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,.58), rgba(184,184,174,.26)) !important;
  border: 1px solid rgba(101,101,94,.18) !important;
}

body.admin-shell .admin-nav-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(190,147,66,.50) !important;
  background:
    radial-gradient(circle at 20% 8%, rgba(255,255,255,.94), transparent 38%),
    linear-gradient(150deg, #dedbd1 0%, #fffaf0 48%, #bebeb7 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.92),
    0 15px 28px rgba(49,47,39,.16) !important;
}

body.admin-shell .admin-nav-btn.is-active {
  position: relative;
  color: #171a17 !important;
  border-color: rgba(201,164,91,.76) !important;
  background:
    radial-gradient(circle at 23% 10%, rgba(255,255,255,.92), transparent 35%),
    linear-gradient(150deg, #d9c58d 0%, #fff7df 43%, #c9a45b 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.94),
    inset 0 0 0 1px rgba(255,255,255,.24),
    0 16px 34px rgba(83,66,31,.24) !important;
}

body.admin-shell .admin-nav-btn.is-active::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(255,255,255,.46);
  border-radius: inherit;
  pointer-events: none;
}

body.admin-shell .admin-nav-btn.is-active::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #fff7df;
  box-shadow: 0 0 0 3px rgba(255,247,223,.22), 0 0 18px rgba(255,247,223,.70);
  pointer-events: none;
}

body.admin-shell .admin-nav-btn.is-active .nav-icon {
  color: #171a17 !important;
  border-color: rgba(118,83,25,.18) !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,.66), rgba(201,164,91,.24)) !important;
}
