:root {
  --bg: #f4f2ed;
  --panel: #ffffff;
  --ink: #202124;
  --muted: #71757b;
  --line: #ddd8ce;
  --accent: #0f766e;
  --dark: #1d2329;
  --shadow: 0 16px 42px rgba(31, 35, 41, 0.1);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
}

body.locked {
  overflow: hidden;
}

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

button {
  cursor: pointer;
}

.shell-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  color: #f8fafc;
  background: var(--dark);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-screen {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  color: #f8fafc;
  background:
    linear-gradient(135deg, rgba(29, 35, 41, 0.94), rgba(15, 118, 110, 0.86)),
    #1d2329;
}

.auth-screen[hidden] {
  display: none;
}

.auth-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  width: min(100%, 1120px);
  max-height: calc(100vh - 32px);
  gap: 14px 22px;
  overflow: auto;
  padding: clamp(16px, 2.4vw, 24px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.auth-brand .brand-icon {
  background: #89f0dc;
}

.auth-brand {
  grid-column: 1 / -1;
}

.brand-logo {
  width: 112px;
  max-height: 48px;
  object-fit: contain;
}

.sidebar-logo {
  width: 92px;
  max-height: 42px;
}

.auth-copy h1 {
  max-width: 680px;
  margin-bottom: 8px;
  font-size: clamp(30px, 4.4vw, 52px);
}

.auth-copy p:not(.eyebrow) {
  max-width: 620px;
  color: #d7e3df;
  font-size: 15px;
  line-height: 1.36;
}

.auth-action-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
}

.auth-form,
.lead-form {
  display: grid;
  max-width: 520px;
  gap: 8px;
}

.lead-form {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.lead-form h2 {
  margin-bottom: 4px;
  font-size: 18px;
  color: #ffffff;
}

.lead-form p:not(.eyebrow) {
  margin-bottom: 0;
  color: #d7e3df;
  font-size: 13px;
  line-height: 1.3;
}

.auth-form label,
.lead-form label {
  color: #e7f3ef;
  font-size: 12px;
}

.auth-form input,
.auth-form select,
.lead-form input,
.lead-form textarea {
  min-height: 40px;
  padding: 8px 10px;
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.lead-form textarea {
  min-height: 46px;
}

.auth-form input::placeholder,
.lead-form input::placeholder,
.lead-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.auth-form option {
  color: #1d2329;
}

.auth-form .primary-button {
  min-height: 42px;
}

.lead-submit {
  min-height: 42px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.1);
}

.brand-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  color: #10201e;
  background: #89f0dc;
  font-weight: 1000;
}

.brand strong,
.brand span {
  display: block;
}

.brand span,
.sidebar-note span,
.sidebar-note small {
  color: #b7c0c8;
  font-size: 13px;
}

.role-switch {
  display: none;
  grid-template-columns: 1fr;
  gap: 8px;
}

.role-switch button,
.nav-list button {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #d9dee3;
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
}

.role-switch button {
  padding: 0 12px;
  text-align: center;
  font-weight: 850;
}

.role-switch button.active,
.nav-list button.active {
  color: #ffffff;
  border-color: rgba(137, 240, 220, 0.4);
  background: rgba(137, 240, 220, 0.12);
}

.role-switch button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

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

.nav-list button {
  padding: 0 14px;
}

.sidebar-note {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-note strong {
  color: #ffffff;
}

.workspace {
  min-width: 0;
  padding: 28px;
}

.workspace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 6px;
  color: #0f766e;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 6px;
  font-size: 22px;
}

.header-actions,
.form-actions,
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary-button,
.ghost-button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 850;
}

.primary-button {
  color: #ffffff;
  background: var(--accent);
}

.ghost-button {
  color: var(--ink);
  border-color: var(--line);
  background: #ffffff;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

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

.metric-card,
.section-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 22px rgba(31, 35, 41, 0.05);
}

.metric-card {
  padding: 18px;
}

.metric-card span {
  color: var(--muted);
  font-size: 13px;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.tenants-layout,
.products-layout {
  grid-template-columns: minmax(360px, 0.8fr) minmax(0, 1.2fr);
}

.section-card {
  padding: 20px;
}

.section-heading p {
  color: var(--muted);
}

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

.registration-form {
  display: grid;
  gap: 22px;
}

.registration-stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.registration-stepper button {
  display: grid;
  gap: 9px;
  place-items: center;
  min-height: 104px;
  border: 0;
  border-radius: 8px;
  color: #858585;
  background: #fbfaf7;
}

.registration-stepper span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 3px solid #e6e2da;
  border-radius: 999px;
  color: #a6a6a6;
  background: #f3f2ef;
  font-size: 22px;
  font-weight: 1000;
}

.registration-stepper strong {
  font-size: 14px;
  text-align: center;
}

.registration-stepper button.active,
.registration-stepper button.complete {
  color: #ff9f0a;
  background: #fff9ef;
}

.registration-stepper button.active span {
  color: #ff9f0a;
  border-color: #ff9f0a;
  background: #fff6e5;
}

.registration-stepper button.complete span {
  color: #ffffff;
  border-color: #ff9f0a;
  background: #ff9f0a;
}

.wizard-page {
  display: none;
}

.wizard-page.active {
  display: grid;
  gap: 18px;
}

.wizard-heading h3 {
  margin-bottom: 6px;
  font-size: 28px;
}

.wizard-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.registration-form input,
.registration-form select,
.registration-form textarea {
  min-height: 54px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(31, 35, 41, 0.06);
}

.registration-form textarea {
  min-height: 96px;
}

.check-row {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 64px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(31, 35, 41, 0.05);
  font-size: 15px;
}

.check-row input {
  width: 28px;
  height: 28px;
  padding: 0;
  box-shadow: none;
}

.wizard-actions {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.wizard-actions .primary-button {
  min-height: 54px;
  padding: 0 24px;
  background: #ff9f0a;
}

.wizard-actions .ghost-button {
  min-height: 54px;
}

.wizard-actions #wizardNextButton,
.wizard-actions #wizardSubmitButton {
  grid-column: 4;
}

.compact-form {
  margin-top: 18px;
}

label {
  display: grid;
  gap: 7px;
  color: #3d4248;
  font-size: 13px;
  font-weight: 850;
}

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: #fbfaf7;
}

textarea {
  resize: vertical;
}

.input-suffix {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.input-suffix input {
  border: 0;
  background: transparent;
}

.input-suffix span {
  display: grid;
  place-items: center;
  padding: 0 12px;
  color: var(--muted);
  background: #efebe2;
}

.workflow {
  display: grid;
  gap: 12px;
}

.workflow div {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.workflow strong {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--accent);
}

.lead-list {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
}

.lead-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.lead-row h3 {
  margin-bottom: 4px;
  font-size: 16px;
}

.lead-row p,
.lead-row small {
  margin: 0;
  color: var(--muted);
}

.lead-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.lead-actions .ghost-button {
  min-height: 34px;
  padding: 0 12px;
}

.lead-row strong {
  white-space: nowrap;
  color: var(--accent);
}

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

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

.subscription-summary article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.subscription-summary span,
.subscription-summary strong {
  display: block;
}

.subscription-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.subscription-summary strong {
  margin-top: 6px;
}

.setup-grid article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.setup-grid span,
.setup-grid strong {
  display: block;
}

.setup-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.setup-grid strong {
  margin-top: 6px;
}

.tenant-list,
.category-list,
.item-list,
.subscription-list {
  display: grid;
  gap: 10px;
  max-height: 680px;
  overflow: auto;
}

.product-toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.product-filter-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.product-filter-rail button {
  min-height: 38px;
  flex: 0 0 auto;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #3d4248;
  background: #ffffff;
  font-weight: 850;
}

.product-filter-rail button.active {
  color: #ffffff;
  border-color: var(--accent);
  background: var(--accent);
}

.tenant-row,
.category-row,
.item-row,
.subscription-row {
  display: grid;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.tenant-row {
  grid-template-columns: minmax(0, 1.3fr) auto minmax(120px, 0.6fr) auto;
}

.subscription-row {
  grid-template-columns: minmax(0, 1fr) auto minmax(150px, 0.85fr);
}

.tenant-row.active,
.subscription-row.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.tenant-row h3,
.category-row h3,
.item-row h3,
.subscription-row h3 {
  margin-bottom: 4px;
  font-size: 15px;
}

.tenant-row p,
.tenant-row small,
.category-row p,
.item-row p,
.subscription-row p,
.subscription-row small {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.status {
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.status.live {
  color: #065f46;
  background: #d1fae5;
}

.status.draft {
  color: #7c2d12;
  background: #ffedd5;
}

.status.paused {
  color: #334155;
  background: #e2e8f0;
}

.status.paid {
  color: #065f46;
  background: #d1fae5;
}

.status.pending {
  color: #854d0e;
  background: #fef3c7;
}

.status.overdue {
  color: #991b1b;
  background: #fee2e2;
}

.icon-button {
  min-width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  font-weight: 900;
}

.category-editor {
  margin-bottom: 18px;
}

.category-row {
  grid-template-columns: 78px minmax(0, 1fr) auto;
}

.category-thumb {
  width: 78px;
  height: 60px;
  border-radius: 8px;
  background-position: center;
  background-size: cover;
}

.item-row {
  grid-template-columns: 68px minmax(0, 1fr) auto;
}

.item-row img,
.photo-fallback {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--accent);
  object-fit: cover;
  font-weight: 1000;
}

.permission-banner {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #cde5df;
  border-radius: 8px;
  color: #115e59;
  background: #ecfdf5;
  font-weight: 750;
}

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

.theme-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  text-align: left;
}

.theme-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.theme-swatch {
  height: 68px;
  border-radius: 8px;
}

.theme-card small {
  color: var(--muted);
}

.phone-frame {
  width: min(100%, 390px);
  margin: 0 auto;
  border: 10px solid #171b20;
  border-radius: 34px;
  overflow: hidden;
  background: #101418;
  box-shadow: var(--shadow);
}

.guest-menu {
  min-height: 650px;
  color: #262626;
  background: #f7f0e7;
}

.menu-hero {
  position: relative;
  display: grid;
  min-height: 270px;
  place-items: center;
  padding: 42px 20px 26px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(247, 240, 231, 0.96)),
    var(--cover, #fffaf0);
  background-position: center;
  background-size: cover;
}

.language-pills {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 8px;
}

.language-pills span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 1000;
}

.menu-logo {
  max-width: 210px;
  max-height: 140px;
  object-fit: contain;
}

.text-logo {
  display: grid;
  width: 210px;
  min-height: 112px;
  place-items: center;
  padding: 16px;
  border: 3px solid #292929;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.text-logo span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 1000;
}

.text-logo strong {
  font-size: 28px;
  line-height: 1;
}

.menu-hero h2 {
  margin: 14px 0 6px;
  font-family: Georgia, "Times New Roman", serif;
}

.menu-hero p {
  color: #7a7062;
  font-weight: 800;
}

.menu-body {
  padding: 20px 16px 92px;
}

.featured-section h3,
.menu-section h3 {
  color: var(--accent);
  font-size: 15px;
  letter-spacing: 3px;
  text-align: center;
  text-transform: uppercase;
}

.featured-rail {
  display: grid;
  grid-auto-columns: 122px;
  grid-auto-flow: column;
  gap: 12px;
  margin: 0 -16px 22px;
  overflow-x: auto;
  padding: 0 16px 6px;
}

.featured-card {
  display: grid;
  gap: 8px;
  text-align: center;
}

.featured-card img,
.featured-card .photo-fallback {
  width: 122px;
  height: 88px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(64, 55, 43, 0.1);
}

.featured-card strong {
  font-size: 13px;
}

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

.menu-category-tile {
  display: grid;
  min-height: 112px;
  align-items: end;
  padding: 14px;
  border-radius: 8px;
  color: #ffffff;
  background-position: center;
  background-size: cover;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(64, 55, 43, 0.14);
}

.menu-category-tile span {
  font-weight: 1000;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.menu-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.menu-item img,
.menu-item .photo-fallback {
  width: 82px;
  height: 76px;
  object-fit: cover;
}

.item-title-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.item-title-row span {
  color: var(--accent);
  font-weight: 1000;
  white-space: nowrap;
}

.menu-item p {
  margin: 6px 0 0;
  color: #70675d;
  font-size: 13px;
}

.google-review-card {
  display: grid;
  gap: 14px;
  margin: 24px 0 8px;
  padding: 16px;
  border: 1px solid rgba(66, 133, 244, 0.18);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(64, 55, 43, 0.1);
}

.google-review-card > div:first-child {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.google-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: #4285f4;
  font-weight: 1000;
}

.google-review-card h3 {
  margin-bottom: 4px;
  color: #202124;
  font-size: 17px;
}

.google-review-card p {
  margin-bottom: 0;
  color: #6b7280;
  font-size: 13px;
  font-weight: 750;
}

.rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fafc;
}

.rating-row strong {
  color: #202124;
}

.rating-row span {
  color: #fbbc04;
  letter-spacing: 1px;
}

.google-review-card a {
  display: grid;
  min-height: 44px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: #0f766e;
  font-weight: 900;
  text-decoration: none;
}

.satisfaction-card {
  display: grid;
  gap: 14px;
  margin: 24px 0 8px;
  padding: 16px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: #f7fffc;
  box-shadow: 0 10px 26px rgba(64, 55, 43, 0.08);
}

.satisfaction-card h3 {
  margin-bottom: 4px;
  color: #123b36;
  font-size: 17px;
}

.satisfaction-card p,
.satisfaction-card small {
  margin-bottom: 0;
  color: #55706b;
  font-size: 13px;
  font-weight: 750;
}

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

.score-buttons button {
  display: grid;
  min-height: 46px;
  place-items: center;
  border: 1px solid #cde5df;
  border-radius: 8px;
  color: #0f766e;
  background: #ffffff;
  font-weight: 1000;
}

.score-buttons button.active {
  color: #ffffff;
  border-color: #0f766e;
  background: #0f766e;
}

.bottom-menu {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 62px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.94);
}

.bottom-menu a {
  display: grid;
  place-items: center;
  color: #777;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.theme-premium {
  color: #f8efe2;
  background: #151817;
}

.theme-premium .menu-body,
.theme-premium .bottom-menu {
  background: #151817;
}

.theme-premium .menu-item {
  background: rgba(255, 255, 255, 0.08);
}

.theme-premium .menu-item p,
.theme-premium .menu-hero p {
  color: #cfc4b4;
}

.theme-fast {
  background: #fff4d8;
}

.theme-fast .menu-category-tile {
  min-height: 98px;
}

.publish-box,
.server-checklist {
  display: grid;
  gap: 14px;
}

#qrCanvas {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.server-checklist label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.server-checklist input {
  width: auto;
}

.guest-screen {
  position: fixed;
  z-index: 30;
  inset: 0;
  overflow: auto;
  background: #f7f0e7;
}

.guest-full {
  width: min(100%, 980px);
  margin: 0 auto;
}

.back-button {
  position: fixed;
  z-index: 40;
  top: 14px;
  left: 14px;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.7);
  font-weight: 850;
}

.empty-state {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 14px;
  border-radius: 8px;
  color: #ffffff;
  background: #1d2329;
  transition: 0.2s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

body[data-role="merchant"] .agency-only,
body[data-role="merchant"] .agency-only-inline,
body[data-role="merchant"] [data-panel="overview"],
body[data-role="merchant"] [data-panel="tenants"],
body[data-role="merchant"] [data-panel="subscription"],
body[data-role="merchant"] [data-panel="publish"] {
  display: none;
}

body[data-role="merchant"] #tenantSelector {
  display: none;
}

body[data-role="merchant"] .role-switch {
  display: none;
}

body[data-role="merchant"] .permission-banner {
  display: block;
}

body[data-role="agency"] .permission-banner {
  display: none;
}

@media (max-width: 1040px) {
  .auth-copy h1 {
    font-size: clamp(28px, 4.8vw, 44px);
  }

  body {
    grid-template-columns: 1fr;
  }

  .shell-sidebar {
    position: relative;
    height: auto;
  }

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

  .metric-grid,
  .two-column,
  .tenants-layout,
  .products-layout,
  .auth-action-grid {
    grid-template-columns: 1fr;
  }

  .workspace-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .registration-stepper {
    grid-template-columns: 1fr;
  }

  .registration-stepper button {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 72px;
    justify-items: start;
    padding: 0 14px;
  }

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

  .wizard-actions #wizardNextButton,
  .wizard-actions #wizardSubmitButton {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .auth-card {
    grid-template-columns: 1fr;
    width: min(100%, 680px);
    max-height: calc(100vh - 20px);
    padding: 14px;
  }

  .auth-brand,
  .auth-copy,
  .auth-action-grid {
    grid-column: auto;
  }

  .auth-copy h1 {
    font-size: clamp(28px, 8vw, 40px);
  }

  .auth-copy p:not(.eyebrow) {
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .workspace {
    padding: 18px;
  }

  .nav-list,
  .metric-grid,
  .form-grid,
  .subscription-summary,
  .theme-grid,
  .setup-grid,
  .tenant-row,
  .subscription-row,
  .category-row,
  .item-row,
  .menu-category-grid {
    grid-template-columns: 1fr;
  }

  .wide {
    grid-column: auto;
  }

  .registration-stepper span {
    width: 46px;
    height: 46px;
  }

  .wizard-heading h3 {
    font-size: 24px;
  }

  .check-row {
    grid-template-columns: auto minmax(0, 1fr);
    font-size: 14px;
  }

  .wizard-actions {
    grid-template-columns: 1fr;
  }

  .wizard-actions #wizardNextButton,
  .wizard-actions #wizardSubmitButton {
    grid-column: auto;
  }
}
