:root {
  --bg: #faf7eb;
  --card: #fffefa;
  --white: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #e5dfce;
  --green: #16a34a;
  --green-dark: #14532d;
  --green-hover: #15803d;
  --green-soft: #d8ebdf;
  --amber: #b86a00;
  --amber-soft: #fff0d4;
  --red: #b42332;
  --red-soft: #ffe2e7;
  --blue: #1e40af;
  --blue-soft: #e4ecff;
  --shadow: 0 18px 48px rgba(42, 31, 23, 0.11);
}

.reservations-host {
  min-height: 260px;
}

.reservations-host-state {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 132px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.reservations-host-state-icon {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 7px #e9f7ed;
}

.reservations-host-state.warning .reservations-host-state-icon {
  background: #d18a12;
  box-shadow: 0 0 0 7px #fff4d8;
}

.reservations-host-state.error .reservations-host-state-icon {
  background: #d54436;
  box-shadow: 0 0 0 7px #fdebea;
}

.reservations-host-state.loading .reservations-host-state-icon {
  animation: reservations-pulse 1.1s ease-in-out infinite;
}

.reservations-host-state strong {
  display: block;
  margin-bottom: 4px;
}

.reservations-host-state p {
  margin: 0;
  color: var(--muted);
}

@keyframes reservations-pulse {
  50% { opacity: .35; transform: scale(.78); }
}

@media (max-width: 680px) {
  .reservations-host-state {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .reservations-host-state .btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* Menu workbench row controls override older responsive/density item grids. */
.menu-basic-list .category {
  grid-template-columns: minmax(0, 1fr) auto;
}
.menu-basic-list .category-main {
  grid-template-columns: 18px minmax(0, 1fr);
}
.menu-basic-list .item {
  grid-template-columns: minmax(0, 1fr) auto;
}
.menu-basic-list .item-main {
  grid-template-columns: 18px 48px minmax(150px, 1fr) auto;
}
.menu-basic-list .item-price {
  grid-column: auto;
  justify-items: end;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: #eee8d9;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  background: var(--bg);
  overflow-x: hidden;
}
.sidebar {
  background: var(--card);
  border-right: 1px solid var(--line);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.brand {
  min-height: 74px;
  padding: 2px 8px 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.brand-logo {
  width: 92px;
  max-width: 100%;
  height: auto;
  display: block;
}
.brand-name span { color: var(--green-dark); }
.mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  font-size: 14px;
  font-weight: 950;
}
.tenant {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}
.tenant strong { display: block; margin-bottom: 4px; font-size: 14px; }
.tenant span { display: block; color: var(--muted); font-size: 12px; line-height: 1.35; }
.nav { display: grid; gap: 6px; }
.nav-label {
  padding: 10px 10px 4px;
  color: #918773;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}
.nav-item {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  background: transparent;
  color: #454547;
  text-align: left;
}
.nav-item.active { background: var(--green-soft); color: var(--green-dark); }
.nav-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: #f0eadb;
  color: #5f5b52;
}
.nav-item.active .nav-icon { background: #fff; }
.nav-item.active .nav-icon { color: var(--green-dark); }
.nav-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-title { min-width: 0; font-size: 14px; font-weight: 850; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--bg);
}
.topbar {
  min-height: 72px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 250, 0.88);
  backdrop-filter: blur(10px);
}
.topbar-context {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}
.search-wrap {
  position: relative;
  z-index: 20;
}
.search-box {
  width: 260px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
}
.search-box svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: #918773;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.search {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
}
.search-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(360px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  display: grid;
  gap: 4px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(42,31,23,.14);
}
.search-result {
  min-height: 52px;
  border: 0;
  border-radius: 7px;
  padding: 9px 10px;
  display: grid;
  gap: 3px;
  background: transparent;
  text-align: left;
}
.search-result:hover,
.search-result:focus-visible {
  background: #f2fbf5;
  outline: 0;
}
.search-result strong {
  min-width: 0;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-result span,
.search-empty {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.search-empty {
  padding: 12px;
}
.topbar-url-badge {
  flex: 0 0 auto;
  min-width: 0;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-url-badge:hover,
.topbar-url-badge:focus-visible {
  background: #c8e6d2;
  outline: 0;
}
.tenant-switcher {
  height: 38px;
  max-width: 290px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 8px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: 13px 15px;
  column-gap: 7px;
  align-items: center;
  background: #fff;
}
.tenant-switcher span {
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}
.tenant-switcher select {
  grid-row: 1 / span 2;
  grid-column: 2;
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}
.tenant-switcher small {
  min-width: 0;
  color: var(--muted);
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.actions { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar .actions {
  gap: 8px;
}
.platform-banner-stack {
  display: grid;
  gap: 8px;
  padding: 12px 16px 0;
}
.platform-banner {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #fff;
}
.platform-banner strong,
.platform-banner span {
  display: block;
}
.platform-banner strong {
  margin-bottom: 3px;
  font-size: 13px;
}
.platform-banner span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.platform-banner.service {
  border-color: #b8cff6;
  background: #f5f8ff;
}
.platform-banner.warning {
  border-color: #f2d7a6;
  background: #fffaf0;
}
.platform-banner.danger {
  border-color: #f2b8b8;
  background: #fff5f5;
}
.service-readonly .content {
  position: relative;
}
.service-readonly .content::before {
  content: "Read-only režim služieb";
  position: sticky;
  top: 0;
  z-index: 5;
  display: inline-flex;
  margin: 0 0 10px;
  padding: 6px 10px;
  border: 1px solid #f2b8b8;
  border-radius: 8px;
  background: #fff5f5;
  color: var(--red);
  font-size: 12px;
  font-weight: 850;
}
.platform-banner-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.platform-banner-actions .badge {
  margin-left: 2px;
}
.url-menu-wrap,
.account-menu-wrap {
  position: relative;
  z-index: 20;
}
.url-menu,
.account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px;
  display: grid;
  gap: 2px;
  background: #fffefa;
  box-shadow: 0 18px 48px rgba(42,31,23,.14);
}
.url-menu { width: 210px; }
.account-menu { width: 264px; }
.account-menu-head {
  padding: 9px 10px 11px;
  display: grid;
  gap: 3px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 3px;
}
.account-menu-head strong {
  font-size: 14px;
}
.account-menu-head span {
  color: var(--muted);
  font-size: 12px;
}
.url-menu-item,
.account-menu-item {
  min-height: 36px;
  border: 0;
  border-radius: 7px;
  padding: 0 9px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  background: transparent;
  color: #2e2e31;
  text-align: left;
  font-size: 13px;
  font-weight: 760;
}
.url-menu-item:hover,
.url-menu-item:focus-visible,
.account-menu-item:hover,
.account-menu-item:focus-visible {
  background: #f2fbf5;
  outline: 0;
}
.account-menu-item.danger {
  color: var(--red);
}
.account-menu-separator {
  height: 1px;
  margin: 4px 0;
  background: var(--line);
}
.url-menu-item svg,
.account-menu-item svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #5f5b52;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: var(--ink);
  white-space: nowrap;
  font-weight: 780;
}
.btn.compact {
  height: 34px;
  padding: 0 11px;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
}
.btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.topbar .btn {
  height: 36px;
  padding: 0 12px;
  gap: 7px;
  font-size: 14px;
  font-weight: 740;
}
.btn.primary { border-color: var(--green); background: var(--green); color: #fff; }
.btn.primary:hover { background: var(--green-hover); }
.btn.danger { border-color: var(--red-soft); background: var(--red-soft); color: var(--red); }
.btn.danger-light { border-color: #ffd6d6; background: #fff7f7; color: var(--red); }
.btn.danger-light:hover { background: #ffecec; }
.icon-btn {
  padding-left: 12px;
}
.topbar .icon-btn {
  padding-left: 10px;
}
.topbar .icon-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.phone-glyph {
  width: 13px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 4px;
  display: inline-block;
  position: relative;
}
.topbar .phone-glyph {
  width: 11px;
  height: 17px;
  border-width: 1.8px;
}
.phone-glyph::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  transform: translateX(-50%);
}
.avatar {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 900;
}
.avatar:hover,
.avatar:focus-visible {
  background: #c8e6d2;
  outline: 0;
}
.content { min-width: 0; padding: 18px 16px; overflow: auto; overflow-x: hidden; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(20, 18, 15, .46);
}
.mobile-preview-dialog {
  width: min(100%, 420px);
  max-height: calc(100vh - 48px);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  display: grid;
  gap: 12px;
  background: var(--card);
  box-shadow: 0 28px 90px rgba(0,0,0,.32);
  overflow: auto;
}
.guest-mobile-preview-shell {
  position: relative;
  width: min(390px, 100%);
  height: min(760px, calc(100vh - 190px));
  min-height: 560px;
  margin: 0 auto;
  overflow: hidden;
  border: 10px solid #172017;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(0,0,0,.2);
}
.guest-preview-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}
.guest-preview-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, .86);
}
.text-editor-modal {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  display: grid;
  gap: 14px;
  background: var(--card);
  box-shadow: 0 28px 90px rgba(0,0,0,.32);
  overflow: auto;
}
.text-editor-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.text-editor-toolbar .btn {
  min-width: 38px;
  padding: 0 12px;
}
.text-editor-toolbar .italic {
  font-style: italic;
}
.rich-editor-surface {
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  color: #1d1d1f;
  outline: none;
  overflow: auto;
}
.rich-editor-surface:focus {
  border-color: rgba(22, 163, 74, .42);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .12);
}
.text-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.inline-text-editor {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 0;
  padding-right: 0;
  border: 0;
  background: transparent;
}
.inline-text-editor:hover,
.inline-text-editor:focus-within {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.inline-rich-editor-surface {
  position: relative;
  min-height: 220px;
}
.inline-rich-editor-surface.is-empty-rich::before {
  content: attr(data-placeholder);
  position: absolute;
  left: 16px;
  top: 16px;
  color: #8b9490;
  font-style: italic;
  pointer-events: none;
}
.inline-text-editor-actions {
  justify-content: flex-end;
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.modal-head h2 {
  margin-bottom: 0;
}
.modal-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}
.modal-segmented {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}
.modal-segmented button {
  min-width: 0;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 8px;
  background: #fff;
  color: #46433c;
  font-size: 12px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.modal-segmented button.active {
  border-color: #bad8c2;
  background: var(--green-soft);
  color: var(--green-dark);
}
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(360px, calc(100vw - 36px));
  border: 1px solid #bad8c2;
  border-radius: 8px;
  padding: 12px 14px;
  background: #f2fbf5;
  color: var(--green-dark);
  box-shadow: 0 18px 48px rgba(42,31,23,.18);
  font-size: 14px;
  font-weight: 800;
}
.toast-close {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: rgba(20, 83, 45, .08);
  color: inherit;
  cursor: pointer;
  font: inherit;
  line-height: 1;
}
.toast-close:hover,
.toast-close:focus-visible {
  background: rgba(20, 83, 45, .16);
  outline: none;
}
.menu-item-modal .input::placeholder,
.menu-item-modal .textarea::placeholder {
  color: #9ca3af;
  font-style: italic;
  opacity: 1;
}
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 6px; font-size: 28px; line-height: 1.18; letter-spacing: 0; }
h2 { margin-bottom: 12px; font-size: 18px; letter-spacing: 0; }
h3 { margin-bottom: 6px; font-size: 15px; letter-spacing: 0; }
p { margin-bottom: 0; color: var(--muted); line-height: 1.45; }
.eyebrow { margin-bottom: 6px; color: var(--green-dark); font-size: 12px; font-weight: 900; text-transform: uppercase; }

.grid { display: grid; gap: 14px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dash-grid { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
.profile-page-grid { grid-template-columns: minmax(0, 1fr); }
.profile-preview-panel { overflow: hidden; }
.profile-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.profile-preview-head h2 { margin-bottom: 4px; }
.profile-preview-head p { max-width: 640px; }
.profile-builder-toolbar {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.profile-live-stage {
  min-height: 720px;
}
.profile-visual-editor {
  display: grid;
  gap: 14px;
}
.profile-editor-toolbar {
  position: sticky;
  top: 0;
  z-index: 12;
  min-height: 54px;
  border: 1px solid #cfe2d3;
  border-radius: 8px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(246, 252, 248, .96);
  box-shadow: 0 8px 28px rgba(42,31,23,.08);
  backdrop-filter: blur(10px);
}
.profile-editor-toolbar-copy {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.profile-editor-toolbar-copy strong,
.profile-editor-toolbar-copy span {
  display: block;
}
.profile-edit-mode {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}
.profile-editor-toolbar-copy strong {
  margin-bottom: 2px;
  color: var(--green-dark);
  font-size: 14px;
}
.profile-editor-toolbar-copy div > span {
  color: #536158;
  font-size: 12px;
}
.profile-editor-toolbar-actions,
.profile-section-add-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.profile-editor-toolbar-actions .btn {
  height: 34px;
  padding: 0 11px;
  border-radius: 7px;
  font-size: 13px;
}
.profile-editor-toolbar-actions .btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.editable-public-page {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  color: #111;
  box-shadow: 0 18px 48px rgba(42,31,23,.06);
}
.editable-public-nav {
  min-height: 72px;
  padding: 24px 30px 16px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto minmax(240px, 1fr);
  align-items: center;
  gap: 18px;
  background: #fff;
}
.public-brand-input,
.editable-section-title-input,
.editable-line-input,
.editable-public-textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  outline: none;
  color: inherit;
  background: transparent;
}
.editable-input-wrap {
  position: relative;
  min-width: 0;
  width: 100%;
}
.editable-input-wrap.brand-field {
  max-width: 380px;
}
.public-brand-input:hover,
.editable-section-title-input:hover,
.editable-line-input:hover,
.editable-public-textarea:hover,
.public-brand-input:focus,
.editable-section-title-input:focus,
.editable-line-input:focus,
.editable-public-textarea:focus {
  border-color: rgba(22, 163, 74, .32);
  background: rgba(255,255,255,.82);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .12);
}
.public-brand-input {
  max-width: 380px;
  color: #0ba34b;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.15;
}
.public-brand-input::placeholder,
.editable-section-title-input::placeholder {
  color: #9ca3af;
  font-style: italic;
  opacity: 1;
}
.editable-public-tabs {
  justify-self: center;
  display: flex;
  gap: 52px;
  align-items: center;
  color: #222;
  font-size: 18px;
  font-weight: 900;
}
.editable-public-tabs span:first-child {
  color: #0ba34b;
  border: 1px solid #0ba34b;
  border-radius: 999px;
  padding: 10px 22px;
}
.editable-image-field {
  position: relative;
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 5px;
  padding: 12px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  text-align: left;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(135deg, #113820, #21b45c 62%, #dcefc1);
  background-size: cover;
  background-position: center;
  box-shadow: 0 14px 28px rgba(0,0,0,.13);
}
.edit-action-chip {
  position: absolute;
  z-index: 3;
  min-height: 26px;
  border: 1px solid rgba(20, 83, 45, .18);
  border-radius: 999px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.94);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
  pointer-events: none;
}
.edit-action-chip svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}
.editable-input-wrap .edit-action-chip {
  top: -26px;
  right: 0;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity .16s ease, transform .16s ease;
}
.editable-input-wrap:hover .edit-action-chip,
.editable-input-wrap:focus-within .edit-action-chip {
  opacity: 1;
  transform: translateY(0);
}
.editable-block-head .edit-action-chip,
.editable-section-toolbar .edit-action-chip {
  position: static;
}
.editable-input-wrap:hover .edit-action-chip,
.editable-input-wrap:focus-within .edit-action-chip,
.editable-block:hover .editable-block-head .edit-action-chip,
.editable-block:focus-within .editable-block-head .edit-action-chip,
.editable-section-toolbar .edit-action-chip {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.editable-image-field::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(0,0,0,.34));
  opacity: .75;
}
.editable-image-field:not(.is-add-photo)::after {
  display: none;
}
.editable-image-field.image-hero {
  width: calc(100% - 60px);
  min-height: 335px;
  margin: 0 30px;
  border-radius: 2px;
  box-shadow: 0 16px 32px rgba(0,0,0,.16);
}
.editable-image-field.image-thumb {
  height: 72px;
}
.editable-image-field.is-add-photo {
  border: 1px dashed rgba(11, 163, 75, .38);
  background: rgba(11, 163, 75, .05);
  color: var(--ink);
  box-shadow: none;
}
.editable-image-field.profile-photo-upload-tile {
  border: 1px dashed rgba(11, 163, 75, .34);
  background:
    linear-gradient(135deg, rgba(236, 253, 245, .94), rgba(248, 253, 249, .96)),
    #f7fcf8;
  color: var(--ink);
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(20, 83, 45, .05);
}
.editable-image-field.profile-photo-upload-tile:hover,
.editable-image-field.profile-photo-upload-tile:focus-visible {
  border-color: rgba(11, 163, 75, .58);
  background:
    linear-gradient(135deg, rgba(220, 252, 231, .98), rgba(247, 252, 248, .98)),
    #f2fbf4;
  box-shadow: 0 12px 26px rgba(20, 83, 45, .08);
}
.editable-image-field.is-add-photo::after {
  background: transparent;
}
.editable-image-field.is-add-photo > span,
.editable-image-field.profile-photo-upload-tile > span {
  color: var(--ink);
  font-weight: 400;
  text-shadow: none;
}
.editable-image-field.profile-photo-upload-tile > span {
  padding: 0 10px;
  display: block;
  text-align: center;
  white-space: normal;
}
.editable-image-field.is-add-photo em {
  background: var(--green);
  color: #fff;
  opacity: 1;
  text-shadow: none;
}
.editable-image-field.image-section-hero {
  min-height: 335px;
  border-radius: 2px;
}
.editable-image-field > span,
.editable-image-field > em {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(0,0,0,.3);
}
.editable-image-field > span {
  font-size: 13px;
  font-weight: 950;
}
.editable-image-field:not(.is-add-photo) > span {
  display: none;
}
.editable-image-field em {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 999px;
  padding: 6px 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.92);
  color: var(--green-dark);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  opacity: .88;
  transform: none;
  transition: background .16s ease, color .16s ease, opacity .16s ease;
  text-shadow: none;
}
.editable-image-field.image-thumb em {
  opacity: 0;
  transform: translateY(-3px);
}
.editable-image-field.image-thumb:hover em,
.editable-image-field.image-thumb:focus-visible em,
.editable-image-field.image-thumb.is-add-photo em {
  opacity: 1;
  transform: translateY(0);
}
.editable-image-field em svg,
.editable-rich-text > em svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  flex: 0 0 auto;
}
.editable-image-field:hover em,
.editable-image-field:focus-visible em {
  background: var(--green);
  color: #fff;
  opacity: 1;
  transform: translateY(0);
}
.editable-photo-strip {
  padding: 18px 30px 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
}
.editable-photo-strip-wrap {
  position: relative;
  padding: 18px 30px 0;
}
.editable-photo-strip-wrap .editable-photo-strip {
  padding: 0 2px 8px;
  display: flex;
  gap: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.editable-photo-strip-wrap .editable-image-field.image-thumb {
  flex: 0 0 144px;
  scroll-snap-align: start;
}
.editable-photo-strip-wrap.has-overflow::before,
.editable-photo-strip-wrap.has-overflow::after {
  position: absolute;
  top: 18px;
  bottom: 8px;
  z-index: 2;
  width: 34px;
  display: grid;
  place-items: center;
  color: var(--green-dark);
  font-size: 24px;
  font-weight: 900;
  pointer-events: none;
}
.editable-photo-strip-wrap.has-overflow::before {
  content: "‹";
  left: 30px;
  background: linear-gradient(90deg, rgba(255, 254, 250, .96), rgba(255, 254, 250, 0));
}
.editable-photo-strip-wrap.has-overflow::after {
  content: "›";
  right: 30px;
  background: linear-gradient(270deg, rgba(255, 254, 250, .96), rgba(255, 254, 250, 0));
}
.gallery-upload-tile {
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.gallery-upload-tile .photo-upload-input {
  display: none;
}
.editable-block-tools {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 8px;
}
.editable-hero-copy {
  max-width: 760px;
}
.editable-public-strip,
.editable-public-sections,
.editable-public-info {
  padding: 0 30px;
}
.editable-section-head {
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}
.editable-section-head h2 {
  margin-bottom: 4px;
  color: #0ba34b;
  font-size: 22px;
}
.editable-section-head p {
  max-width: 620px;
  color: #5f6761;
}
.editable-public-info {
  padding-top: 30px;
  padding-bottom: 74px;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) 190px 190px;
  gap: 36px;
  align-items: start;
}
.editable-block {
  position: relative;
  border: 1px dashed transparent;
  border-radius: 6px;
  padding: 0;
}
.editable-block:hover,
.editable-block:focus-within {
  border-color: rgba(22, 163, 74, .45);
  background: rgba(240, 253, 244, .42);
}
.editable-block-head {
  margin-bottom: 10px;
  display: grid;
  align-items: start;
  justify-items: start;
  gap: 6px;
}
.editable-contact-column {
  min-width: 0;
  display: grid;
  gap: 28px;
  align-items: start;
}
.editable-mobile-sidebar-image-card {
  min-width: 0;
  padding-top: 2px;
}
.editable-mobile-sidebar-image-card p {
  margin: -2px 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.editable-mobile-sidebar-image-card .editable-block-head {
  grid-template-columns: 1fr auto;
  align-items: center;
}
.sponsored-lock-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sponsored-lock-info {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(22, 163, 74, .22);
  border-radius: 999px;
  background: #f0fdf4;
  color: var(--green-dark);
  display: inline-grid;
  place-items: center;
}
.sponsored-lock-info svg {
  width: 15px;
  height: 15px;
}
.sponsored-lock-note {
  margin-top: 10px;
  border: 1px solid rgba(217, 119, 6, .2);
  border-radius: 8px;
  background: #fffbeb;
  color: #111827;
  padding: 9px 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.35;
}
.sponsored-lock-note svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}
.editable-image-field.is-sponsored-locked,
.menu-banner-card.is-sponsored-locked {
  border-color: rgba(217, 119, 6, .34);
  background-color: #fffbeb;
}
.editable-image-field.is-sponsored-locked {
  cursor: not-allowed;
}
.editable-image-field.is-sponsored-locked em {
  position: absolute;
  right: 8px;
  bottom: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #111827;
  padding: 4px 7px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}
.editable-image-field.is-sponsored-locked em svg {
  width: 12px;
  height: 12px;
}
.editable-mobile-sidebar-image-card .editable-image-field {
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  align-items: center;
}
.editable-section-toolbar {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  max-width: calc(100% - 20px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: end;
  gap: 6px;
}
.editable-section-toolbar .edit-action-chip {
  min-width: 0;
  white-space: nowrap;
}
.section-tool-btn {
  min-height: 26px;
  border: 1px solid rgba(20, 83, 45, .18);
  border-radius: 999px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.94);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
}
.section-tool-btn:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.editable-block-label {
  margin-bottom: 8px;
  color: #0ba34b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.editable-section-title-input {
  padding: 2px 0;
  color: #171a17;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
}
.editable-rich-text {
  position: relative;
  width: 100%;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  margin-top: 10px;
  padding: 0;
  display: block;
  background: transparent;
  color: #4b4f4f;
  text-align: left;
}
.editable-rich-text {
  padding-right: 34px;
}
.editable-rich-text:hover,
.editable-rich-text:focus-visible {
  border-color: rgba(22, 163, 74, .32);
  background: rgba(255,255,255,.82);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .12);
}
.editable-rich-text > span {
  display: block;
}
.editable-rich-text p,
.rich-editor-surface p {
  margin: 0 0 10px;
  color: #4b4f4f;
  font-size: 14px;
  line-height: 1.45;
}
.editable-rich-text h2,
.rich-editor-surface h2 {
  margin: 0 0 10px;
  color: #171a17;
  font-size: 22px;
  line-height: 1.18;
}
.editable-rich-text strong,
.rich-editor-surface strong,
.editable-rich-text b,
.rich-editor-surface b {
  font-weight: 900;
}
.editable-rich-text em,
.rich-editor-surface em,
.editable-rich-text i,
.rich-editor-surface i {
  font-style: italic;
}
.editable-rich-text a,
.rich-editor-surface a {
  color: #166534;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.editable-rich-text > em {
  position: absolute;
  right: 8px;
  top: -28px;
  border-radius: 999px;
  padding: 6px 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.94);
  color: var(--green-dark);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  opacity: .82;
  transform: none;
  transition: background .16s ease, color .16s ease, opacity .16s ease;
  box-shadow: 0 8px 18px rgba(0,0,0,.1);
}
.editable-rich-text:hover > em,
.editable-rich-text:focus-visible > em {
  background: var(--green);
  color: #fff;
  opacity: 1;
}
.editable-rich-text.section-body > span {
  column-count: 1;
  column-gap: 0;
}
.editable-rich-text.compact {
  margin-top: 8px;
}
.editable-rich-text.inline-text-editor {
  padding-right: 0;
}
.editable-rich-text.inline-text-editor:hover,
.editable-rich-text.inline-text-editor:focus-within {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.editable-public-textarea {
  min-height: 84px;
  margin-top: 12px;
  padding: 3px 0;
  resize: vertical;
  color: #4b4f4f;
  font-size: 14px;
  line-height: 1.45;
}
.editable-public-textarea.section-body {
  min-height: 136px;
  column-count: 1;
  column-gap: 0;
}
.editable-public-textarea.compact {
  min-height: 34px;
  margin-top: 8px;
}
.editable-hours-card .hours-editor {
  margin-top: 12px;
}
.editable-hours-card .hours-editor-head {
  display: none;
}
.editable-hours-card .hour-row {
  grid-template-columns: 72px minmax(0, 1fr);
  min-height: 26px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}
.editable-hours-card .time-field-wrap {
  display: inline;
}
.editable-hours-card .time-field {
  display: inline-block;
  width: 56px;
  height: 24px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #0ba34b;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}
.editable-hours-card .badge {
  display: none;
}
.editable-hours-card .hour-row.closed .time-field-wrap {
  display: none;
}
.editable-hours-card .hour-row.closed::after {
  content: "Zatvorené";
  color: #0ba34b;
  font-size: 13px;
  font-weight: 600;
}
.public-hours-editor {
  display: grid;
  gap: 7px;
}
.public-hour-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-height: 24px;
}
.public-hour-row > span {
  min-width: 0;
  color: #222;
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
}
.public-hour-row strong {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 3px;
  color: #0ba34b;
  font-size: 14px;
  line-height: 24px;
}
.public-hour-row b {
  color: #0ba34b;
  font-weight: 600;
}
.public-hours-editor .time-field-wrap {
  position: relative;
  width: 52px;
}
.public-hours-editor .time-field {
  width: 52px;
  height: 24px;
  border: 1px solid rgba(22, 163, 74, .22);
  border-radius: 4px;
  padding: 1px 4px;
  background: rgba(240, 253, 244, .58);
  color: #0ba34b;
  font-size: 14px;
  font-weight: 600;
}
.public-hours-editor .time-field:hover,
.public-hours-editor .time-field:focus {
  border-color: rgba(22, 163, 74, .48);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .12);
}
.public-closed-toggle {
  width: max-content;
  max-width: 100%;
  min-height: 24px;
  border: 0;
  border-radius: 4px;
  padding: 0;
  background: transparent;
  color: #0ba34b;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}
.editable-contact-card {
  display: grid;
  align-content: start;
  gap: 8px;
}
.editable-hours-card h2,
.editable-contact-card h2 {
  margin-bottom: 10px;
  color: #0ba34b;
  font-size: 17px;
  line-height: 1.08;
}
.editable-line-input {
  display: block;
  height: 24px;
  border-color: transparent;
  padding: 0;
  background: transparent;
  color: #4b4f4f;
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
}
.editable-address-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(58px, .7fr);
  gap: 6px;
  margin-bottom: 2px;
}
.editable-address-field {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 6px 8px;
  border: 1px solid rgba(11, 163, 75, .16);
  border-radius: 8px;
  background: rgba(248, 252, 248, .74);
}
.editable-address-field.wide,
.editable-address-field.full {
  grid-column: span 2;
}
.editable-address-field span {
  color: #2f7f4c;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}
.editable-address-field .editable-line-input {
  height: 20px;
  font-size: 13px;
  line-height: 20px;
}
.editable-contact-stack {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.editable-contact-line {
  min-width: 0;
  display: flex;
  align-items: stretch;
  gap: 5px;
}
.editable-contact-line.name .editable-line-input {
  color: #171a17;
  font-weight: 900;
}
.editable-contact-line.name {
  align-items: flex-start;
}
.editable-contact-line.address-line {
  display: grid;
  gap: 8px;
  align-items: center;
}
.editable-contact-line.street-line {
  grid-template-columns: minmax(0, 1fr) 46px;
}
.editable-contact-line.city-line {
  grid-template-columns: 62px minmax(0, 1fr);
}
.editable-contact-line.address-line .street {
  width: 100%;
}
.editable-contact-line.address-line .number {
  width: 100%;
}
.editable-contact-line.address-line .postal {
  width: 100%;
}
.editable-contact-line.address-line .city {
  width: 100%;
}
.editable-contact-line .editable-line-input {
  min-width: 0;
  width: 100%;
  height: 22px;
  padding: 2px 4px;
  border: 1px solid rgba(22, 163, 74, .22);
  background: rgba(240, 253, 244, .58);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.editable-contact-line .editable-line-input:hover,
.editable-contact-line .editable-line-input:focus {
  border-color: rgba(22, 163, 74, .48);
  background: #fff;
}
.editable-contact-line .contact-name-input {
  height: auto;
  min-height: 42px;
  resize: none;
  white-space: normal;
  overflow: hidden;
  text-overflow: clip;
  line-height: 1.22;
  padding-top: 2px;
  padding-bottom: 2px;
}
.editable-contact-line .editable-line-input::placeholder {
  color: #8a948a;
}
.editable-profile-section {
  margin-top: 0;
  padding: 0 0 64px;
  display: block;
}
.additional-info-prompt {
  width: calc(100% - 60px);
  min-height: 92px;
  margin: 0 30px 52px;
  border: 1px dashed rgba(11, 163, 75, .34);
  border-radius: 8px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  background: rgba(11, 163, 75, .045);
  color: var(--green-dark);
  cursor: pointer;
}
.additional-info-prompt:hover,
.additional-info-prompt:focus-visible {
  border-color: rgba(11, 163, 75, .64);
  background: rgba(11, 163, 75, .08);
  outline: none;
}
.additional-info-prompt > span {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  flex: 0 0 auto;
}
.additional-info-prompt svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.additional-info-prompt strong,
.additional-info-prompt small {
  display: block;
  min-width: 0;
}
.additional-info-prompt strong {
  font-size: 17px;
  line-height: 1.2;
}
.additional-info-prompt small {
  margin-top: 4px;
  color: #536158;
  font-size: 13px;
  line-height: 1.4;
}
.editable-profile-section:first-of-type {
  margin-top: 0;
}
.editable-profile-section > .editable-image-field.image-section-hero {
  margin-bottom: 24px;
}
.editable-profile-section > .editable-photo-strip-wrap {
  padding: 0 0 34px;
}
.editable-profile-section.map-section {
  padding-bottom: 32px;
}
.editable-profile-section.map-section > .editable-section-toolbar {
  position: relative;
  top: auto;
  right: auto;
  width: max-content;
  max-width: 100%;
  margin: 0 0 32px auto;
}
.editable-map-field {
  position: relative;
  min-height: 210px;
  margin-top: 16px;
  border-radius: 0;
  background: #eef6ee;
  overflow: hidden;
}
.google-map-frame {
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
  display: block;
}
.editable-map-field > a {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255,255,255,.94);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}
.profile-section-add-row-bottom {
  justify-content: flex-start;
  padding-bottom: 28px;
}
.editor-grid { grid-template-columns: minmax(210px, .86fr) minmax(300px, 1.28fr) minmax(250px, .86fr); }
.preview-grid { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
.panel, .metric, .module {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 1px 2px rgba(42,31,23,.04);
}
.panel { padding: 14px; }
.panel.flush { padding: 0; overflow: hidden; }
.panel-head {
  min-height: 60px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.panel-body { padding: 14px; }
.metric {
  height: 150px;
  padding: 16px;
  display: grid;
  grid-template-rows: 18px 68px 18px;
  align-content: space-between;
  justify-items: center;
  gap: 8px;
  color: inherit;
  text-align: center;
}
button.metric {
  cursor: pointer;
}
button.metric:hover {
  border-color: #bad8c2;
  background: #f6fcf8;
}
button.metric:focus-visible {
  outline: 3px solid rgba(22, 163, 74, .22);
  outline-offset: 2px;
}
.metric-label {
  max-width: 100%;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.metric-value {
  max-width: 100%;
  font-size: 30px;
  font-weight: 900;
  line-height: 36px;
  align-self: center;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.metric-note {
  max-width: 100%;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.badge {
  min-height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}
.badge.green { color: var(--green-dark); background: var(--green-soft); }
.badge.amber { color: #875000; background: var(--amber-soft); }
.badge.blue { color: var(--blue); background: var(--blue-soft); }
.badge.red { color: var(--red); background: var(--red-soft); }
.badge.gray { color: #62676b; background: #edf0ef; }

.hero-banner, .banner-preview {
  min-height: 210px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: #fff;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  background:
    linear-gradient(90deg, rgba(13, 26, 20, .82), rgba(13, 26, 20, .18)),
    #23462d;
}
.hero-banner strong, .banner-preview strong { display: block; font-size: 25px; line-height: 1.1; margin-bottom: 6px; }
.hero-banner span, .banner-preview span { color: rgba(255,255,255,.86); line-height: 1.4; }
.profile-hero-panel {
  min-width: 0;
}
.profile-banner-preview {
  min-height: 224px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: 28px;
}
.profile-banner-preview span {
  display: -webkit-box;
  max-width: 760px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.profile-banner-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  justify-self: end;
}
.dashboard-hero {
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.dashboard-hero:hover {
  border-color: #bad8c2;
  filter: saturate(1.04);
}
.dashboard-hero:focus-visible {
  outline: 3px solid rgba(22, 163, 74, .22);
  outline-offset: 2px;
}
.dashboard-hero-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}
.dashboard-hero-copy .badge {
  justify-self: start;
}
.dashboard-hero-copy strong {
  margin-bottom: 0;
}
.dashboard-hero > .btn {
  color: var(--ink);
}
.menu-banners-panel {
  margin-bottom: 14px;
}
.menu-basic-page {
  display: grid;
  gap: 20px;
}
.menu-basic-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.menu-basic-head h1 {
  margin: 3px 0 8px;
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: 0;
}
.menu-basic-head p {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}
.menu-basic-head p span + span {
  position: relative;
}
.menu-basic-head p span + span::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: var(--line-strong);
}
.menu-basic-head .ok {
  color: var(--green-dark);
}
.menu-basic-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 14px;
}
.menu-basic-action {
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px 16px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  background: #fff;
  color: var(--ink);
  text-align: left;
  box-shadow: var(--shadow-soft);
}
.menu-basic-action svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}
.menu-basic-action strong,
.menu-basic-action small {
  display: block;
}
.menu-basic-action strong {
  margin-bottom: 3px;
  font-size: 14px;
}
.menu-basic-action small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.menu-basic-action:hover,
.menu-basic-action:focus-visible {
  border-color: rgba(22, 163, 74, .28);
  background: #fbfffc;
}
.menu-public-health-panel {
  padding-bottom: 14px;
}
.menu-public-health-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.menu-public-health-card {
  min-height: 84px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  background: #fff;
  color: var(--ink);
  text-align: left;
}
.menu-public-health-card > div {
  min-width: 0;
}
.menu-public-health-card:hover,
.menu-public-health-card:focus-visible {
  border-color: rgba(22, 163, 74, .32);
  box-shadow: 0 12px 28px rgba(20, 44, 28, .08);
}
.menu-public-health-card.green {
  border-color: rgba(22, 163, 74, .22);
  background: #fbfffc;
}
.menu-public-health-card.amber {
  border-color: rgba(217, 119, 6, .22);
  background: #fffdf8;
}
.menu-public-health-card.red {
  border-color: rgba(180, 35, 50, .24);
  background: #fffafb;
}
.menu-public-health-card.gray {
  background: #fbfbfa;
}
.menu-public-health-card > span {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: rgba(22, 163, 74, .08);
  color: var(--green-dark);
}
.menu-public-health-card.amber > span {
  background: rgba(217, 119, 6, .1);
  color: #a05a08;
}
.menu-public-health-card.red > span {
  background: var(--red-soft);
  color: var(--red);
}
.menu-public-health-card svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}
.menu-public-health-card strong,
.menu-public-health-card small {
  display: block;
  min-width: 0;
}
.menu-public-health-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.25;
}
.menu-public-health-card small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.menu-public-health-card em {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-style: normal;
  white-space: nowrap;
}
.menu-public-health-card em svg {
  width: 12px;
  height: 12px;
}
.menu-category-photo-notice {
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  background: #fff;
}
.menu-category-photo-notice.amber {
  background: #fffdf7;
  border-color: #f2db9b;
}
.menu-category-photo-notice.green {
  background: #fbfffc;
  border-color: rgba(11, 163, 75, .22);
}
.menu-category-photo-notice svg {
  width: 18px;
  height: 18px;
  color: var(--green-dark);
}
.menu-category-photo-notice strong,
.menu-category-photo-notice small {
  display: block;
  min-width: 0;
}
.menu-category-photo-notice strong {
  font-size: 13px;
}
.menu-category-photo-notice small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.menu-category-photo-notice > span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--green-dark);
  background: #fff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.menu-basic-workbench {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(520px, 1.45fr);
  gap: 16px;
  align-items: start;
}
.menu-basic-panel {
  min-width: 0;
}
.menu-basic-panel-head {
  min-height: 54px;
  border-bottom: 1px solid var(--line);
  margin: -4px -4px 12px;
  padding: 0 4px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.menu-basic-panel-head h2 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.2;
}
.menu-basic-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.menu-basic-title-row h2 {
  margin: 0;
}
.menu-basic-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.menu-clear-category-filter {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}
.menu-basic-panel-head p {
  color: var(--muted);
  font-size: 13px;
}
.menu-item-toolbar {
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr);
  gap: 10px;
  align-items: center;
}
.menu-item-search {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
}
.menu-item-search svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.menu-item-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}
.menu-item-filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}
.menu-item-filter-row button {
  min-height: 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.menu-item-filter-row button:hover,
.menu-item-filter-row button:focus-visible {
  border-color: rgba(11, 163, 75, .2);
  background: #fbfffc;
  outline: none;
}
.menu-item-filter-row button.active {
  border-color: #cdeed6;
  background: var(--green-soft);
  color: var(--green-dark);
}
.menu-item-filter-row strong {
  min-width: 18px;
  min-height: 18px;
  border-radius: 999px;
  padding: 2px 6px;
  display: inline-grid;
  place-items: center;
  background: #dff6e6;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 900;
}
.menu-basic-list {
  display: grid;
  gap: 10px;
}
.menu-basic-list .category,
.menu-basic-list .item {
  position: relative;
  text-align: left;
}
.menu-basic-list [draggable="true"] {
  cursor: grab;
}
.menu-basic-list [draggable="true"]:active {
  cursor: grabbing;
}
.menu-basic-list .menu-dragging {
  opacity: .34;
  transform: scale(.992);
  outline: 1px dashed rgba(22, 163, 74, .35);
  outline-offset: -2px;
}
.menu-is-dragging {
  cursor: grabbing;
}
[data-menu-drag-ghost] {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9000;
  border: 1px solid rgba(22, 163, 74, .42) !important;
  border-radius: 10px !important;
  padding: 8px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px !important;
  background: #ffffff !important;
  box-shadow: 0 22px 48px rgba(25, 44, 31, .24), 0 0 0 4px rgba(22, 163, 74, .1) !important;
  opacity: .96;
  pointer-events: none;
  transform-origin: top left;
  transition: none;
}
[data-menu-drag-ghost] .menu-row-actions {
  opacity: .42;
}
[data-menu-drag-ghost] .drag {
  color: var(--green-dark);
}
[data-menu-drag-ghost]::before,
[data-menu-drag-ghost]::after {
  display: none !important;
}
.menu-basic-list .menu-drop-before::before,
.menu-basic-list .menu-drop-after::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  height: 3px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .12);
  pointer-events: none;
}
.menu-basic-list .menu-drop-before::before {
  top: -6px;
}
.menu-basic-list .menu-drop-after::after {
  bottom: -6px;
}
.menu-basic-list .menu-drop-into {
  border-color: rgba(11, 163, 75, .5);
  background: rgba(220, 252, 231, .46);
  box-shadow: inset 0 0 0 1px rgba(11, 163, 75, .14);
}
.menu-basic-list .menu-drop-into::before {
  content: "Presunúť sem";
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--green-dark);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  pointer-events: none;
}
.menu-basic-list .category {
  padding: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}
.menu-basic-list .item {
  padding: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}
.menu-basic-list .category.inactive {
  background: #fffdf7;
}
.category-main {
  min-width: 0;
  border: 0;
  padding: 2px 0;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  background: transparent;
  color: inherit;
  text-align: left;
}
.category-main .drag,
.item-main .drag {
  width: 18px;
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.menu-basic-list .category-main {
  grid-template-columns: 18px minmax(0, 1fr);
}
.category-toggle {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--green-dark);
}
.category-toggle svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}
.category-toggle.is-hidden {
  border-color: rgba(217, 119, 6, .22);
  background: #fff7e6;
  color: #a15c00;
}
.category-toggle:hover,
.category-toggle:focus-visible {
  border-color: rgba(22, 163, 74, .34);
  background: var(--green-soft);
  outline: 0;
}
.menu-row-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}
.menu-order-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #5b675d;
}
.menu-order-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}
.menu-order-btn:hover,
.menu-order-btn:focus-visible {
  border-color: rgba(22, 163, 74, .34);
  background: var(--green-soft);
  color: var(--green-dark);
  outline: 0;
}
.menu-order-btn:disabled {
  opacity: .36;
  cursor: default;
  background: #f7f7f7;
}
.item-order-actions {
  justify-content: flex-end;
  align-self: center;
  flex: 0 0 auto;
}
.menu-tag-chip {
  min-height: 26px;
  border: 1px solid rgba(42, 117, 76, .18);
  border-radius: 999px;
  padding: 5px 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  color: #4b5563;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}
.menu-tag-chip svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: rgba(24, 128, 71, .82);
}
.menu-tag-chip[data-tag-icon="pepper"] svg {
  color: #c2410c;
}
.menu-tag-chip .pepper-icon {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: none;
}
.menu-tag-chip .pepper-body {
  fill: #c92317;
  stroke: #b91c1c;
  stroke-width: .7;
}
.menu-tag-chip .pepper-stem {
  fill: none;
  stroke: #2f7d32;
  stroke-width: 1.4;
  stroke-linecap: round;
}
.menu-spice-chip {
  gap: 0;
  min-width: 34px;
  justify-content: center;
}
.menu-spice-chip.empty {
  opacity: .62;
}
.pepper-level {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  line-height: 1;
}
.pepper-level-3 .pepper-icon,
.pepper-level-4 .pepper-icon {
  width: 13px;
  height: 13px;
}
.menu-tag-chip.empty {
  color: var(--muted);
  background: #f8fafc;
}
.menu-basic-secondary {
  margin-top: 0;
}
.menu-item-create-modal {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  display: grid;
  gap: 16px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0,0,0,.28);
  overflow: auto;
}
.menu-item-create-modal .modal-head p {
  margin-top: 5px;
  max-width: 620px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}
.menu-item-create-grid {
  display: grid;
  gap: 14px;
}
.menu-item-create-card,
.menu-item-copy-row {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  background: #fff;
  color: var(--ink);
  text-align: left;
}
.menu-item-create-card:hover,
.menu-item-create-card:focus-visible,
.menu-item-copy-row:hover,
.menu-item-copy-row:focus-visible {
  border-color: rgba(22, 163, 74, .34);
  background: #fbfffc;
  outline: 0;
}
.menu-item-create-card.primary-choice {
  border-color: rgba(11, 163, 75, .22);
  background: rgba(220, 252, 231, .32);
}
.menu-basic-action:disabled,
.menu-item-create-card:disabled,
.menu-item-copy-row:disabled {
  cursor: not-allowed;
  opacity: .62;
}
.menu-basic-action:disabled:hover,
.menu-basic-action:disabled:focus-visible,
.menu-item-create-card:disabled:hover,
.menu-item-create-card:disabled:focus-visible,
.menu-item-copy-row:disabled:hover,
.menu-item-copy-row:disabled:focus-visible {
  border-color: var(--line);
  background: #fff;
}
.menu-item-create-card.primary-choice:disabled:hover,
.menu-item-create-card.primary-choice:disabled:focus-visible {
  border-color: rgba(11, 163, 75, .22);
  background: rgba(220, 252, 231, .32);
}
.menu-item-create-card svg {
  width: 22px;
  height: 22px;
  stroke: var(--green-dark);
  fill: none;
}
.menu-item-create-card strong,
.menu-item-copy-row strong,
.menu-item-create-card small,
.menu-item-copy-row small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.menu-item-create-card small,
.menu-item-copy-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}
.menu-entitlement-notice {
  min-height: 58px;
  border: 1px solid rgba(217, 119, 6, .24);
  border-radius: 8px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background: #fffaf0;
}
.menu-entitlement-notice.red {
  border-color: rgba(220, 38, 38, .22);
  background: #fff5f5;
}
.menu-entitlement-notice strong,
.menu-entitlement-notice small {
  display: block;
  min-width: 0;
}
.menu-entitlement-notice strong {
  margin-bottom: 3px;
  font-weight: 850;
}
.menu-entitlement-notice small {
  color: var(--muted);
  line-height: 1.35;
}
.menu-item-copy-panel {
  display: grid;
  gap: 10px;
}
.menu-item-copy-panel h3 {
  margin: 0;
  font-size: 15px;
}
.menu-item-copy-list {
  max-height: 330px;
  display: grid;
  gap: 8px;
  overflow: auto;
}
.menu-category-modal,
.menu-category-settings-modal,
.menu-delete-modal {
  width: min(560px, calc(100vw - 32px));
}
.menu-category-settings-modal .menu-item-availability,
.menu-category-settings-modal .menu-item-schedule {
  margin: 0;
}
.menu-category-form {
  display: grid;
  gap: 12px;
}
.menu-category-preview,
.menu-delete-summary {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  background: #fbfffc;
}
.menu-category-preview svg {
  width: 22px;
  height: 22px;
  color: var(--green-dark);
  fill: none;
  stroke: currentColor;
}
.menu-category-preview strong,
.menu-category-preview small,
.menu-delete-summary strong,
.menu-delete-summary small,
.menu-delete-summary em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.menu-category-preview small,
.menu-delete-summary small,
.menu-delete-summary em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}
.menu-category-photo-editor {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  background: #fff;
}
.menu-category-photo-preview {
  width: 100%;
  min-height: 96px;
  border: 1px dashed rgba(11, 163, 75, .34);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  place-items: center;
  color: #111;
  background:
    linear-gradient(135deg, rgba(220, 252, 231, .82), rgba(255, 254, 250, .82)),
    #fff;
  background-size: cover;
  background-position: center;
  box-shadow: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
}
.menu-category-photo-preview.has-photo {
  border: 0;
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 20px rgba(0,0,0,.1);
}
.menu-category-photo-preview:hover,
.menu-category-photo-preview:focus-visible {
  border-color: rgba(11, 163, 75, .58);
  outline: 2px solid rgba(11, 163, 75, .22);
  outline-offset: 2px;
}
.menu-category-photo-preview span {
  color: #111;
  font-size: 14px;
  font-weight: 400;
  text-shadow: none;
}
.menu-category-photo-copy strong,
.menu-category-photo-copy small {
  display: block;
  min-width: 0;
}
.menu-category-photo-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.menu-category-photo-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.menu-delete-summary {
  background: #fff;
}
.menu-delete-summary .menu-item-thumb {
  width: 52px;
  height: 52px;
}
.menu-item-modal {
  width: min(1080px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  display: grid;
  gap: 16px;
  background: #fffefa;
  box-shadow: 0 30px 90px rgba(0,0,0,.34);
  overflow: auto;
}
.menu-item-modal .modal-head p {
  margin-top: 5px;
  max-width: 620px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}
.menu-item-modal-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(280px, .9fr);
  gap: 16px;
  align-items: start;
}
.menu-item-form-stack,
.menu-item-photo-box,
.menu-item-choice-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 12px;
  background: #fff;
}
.menu-item-inline-settings {
  display: grid;
  grid-template-columns: minmax(118px, .48fr) minmax(180px, .8fr) minmax(190px, .72fr);
  gap: 10px;
  align-items: end;
}
.menu-item-visibility-field {
  min-width: 0;
}
.menu-item-availability {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 5px 4px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  background: #fff;
}
.menu-item-availability span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
}
.menu-item-availability .category-toggle {
  width: 30px;
  height: 30px;
}
.menu-item-schedule {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 10px;
  background: #fff;
}
.menu-item-schedule strong,
.menu-item-schedule small {
  display: block;
}
.menu-item-schedule small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.menu-item-photo-preview {
  min-height: 220px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 13px;
  display: grid;
  align-content: end;
  overflow: hidden;
  color: #fff;
  text-align: left;
  background-size: cover;
  background-position: center;
  box-shadow: 0 12px 24px rgba(0,0,0,.11);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  grid-template-rows: auto auto auto;
  gap: 6px;
}
.menu-item-photo-preview:hover,
.menu-item-photo-preview:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(0,0,0,.15);
  outline: 2px solid rgba(11, 163, 75, .3);
  outline-offset: 2px;
}
.menu-item-photo-preview.is-empty {
  border: 1px dashed rgba(11, 163, 75, .34);
  place-items: center;
  align-content: center;
  color: #111;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(220, 252, 231, .82), rgba(255, 254, 250, .82)),
    #fff;
  box-shadow: none;
}
.menu-item-photo-preview.is-empty:hover,
.menu-item-photo-preview.is-empty:focus-visible {
  border-color: rgba(11, 163, 75, .58);
  box-shadow: 0 10px 22px rgba(11, 163, 75, .08);
}
.menu-item-photo-preview .menu-item-photo-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 950;
  text-shadow: 0 1px 8px rgba(0,0,0,.32);
}
.menu-item-photo-preview small {
  max-width: 36ch;
  color: inherit;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  text-shadow: 0 1px 8px rgba(0,0,0,.22);
}
.menu-item-photo-preview.is-empty .menu-item-photo-title,
.menu-item-photo-preview.is-empty small,
.menu-item-photo-preview.is-empty .menu-item-photo-icon {
  color: #111;
  font-size: 14px;
  font-weight: 400;
  text-shadow: none;
}
.menu-item-photo-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: currentColor;
  background: rgba(255,255,255,.72);
}
.menu-item-photo-icon svg {
  width: 20px;
  height: 20px;
}
.menu-item-photo-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.food-photo-share-consent {
  border: 1px solid rgba(17,24,39,.12);
  border-radius: 8px;
  padding: 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  background: #fff;
  color: #111827;
}
.food-photo-share-consent input {
  margin-top: 2px;
}
.food-photo-share-consent strong,
.food-photo-share-consent small {
  display: block;
  color: #111827;
  line-height: 1.35;
}
.food-photo-share-consent strong {
  font-size: 13px;
  font-weight: 700;
}
.food-photo-share-consent small {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
}
.menu-item-photo-actions .btn {
  width: 100%;
}
.menu-item-photo-actions .btn.primary {
  grid-column: 1 / -1;
}
.menu-photo-bank-modal {
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  display: grid;
  gap: 16px;
  background: #fffefa;
  box-shadow: 0 30px 90px rgba(0,0,0,.34);
  overflow: auto;
}
.menu-photo-bank-modal .modal-head p {
  margin-top: 5px;
  max-width: 620px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}
.menu-photo-bank-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.menu-photo-bank-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  display: grid;
  gap: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}
.menu-photo-bank-card:hover,
.menu-photo-bank-card:focus-visible {
  border-color: rgba(22, 163, 74, .28);
  background: #fbfffc;
  outline: 0;
}
.menu-photo-bank-card.is-disabled,
.menu-photo-bank-card:disabled {
  cursor: not-allowed;
  opacity: .48;
  filter: grayscale(1);
  background: #f7f7f7;
}
.menu-photo-bank-card.is-disabled:hover,
.menu-photo-bank-card.is-disabled:focus-visible,
.menu-photo-bank-card:disabled:hover,
.menu-photo-bank-card:disabled:focus-visible {
  border-color: var(--line);
  background: #f7f7f7;
}
.menu-photo-bank-preview {
  min-height: 150px;
  border-radius: 8px;
  display: block;
  background-size: cover;
  background-position: center;
}
.menu-photo-bank-card strong,
.menu-photo-bank-card small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.menu-photo-bank-card strong {
  font-size: 14px;
}
.menu-photo-bank-card small {
  color: var(--muted);
  font-size: 12px;
}
.menu-import-export-modal {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  display: grid;
  gap: 16px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0,0,0,.28);
  overflow: auto;
}
.menu-import-export-modal .modal-head p {
  margin-top: 5px;
  max-width: 620px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}
.menu-export-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.menu-export-card {
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.menu-export-card:hover,
.menu-export-card:focus-visible {
  border-color: rgba(11, 163, 75, .32);
  background: #fbfffc;
  outline: 0;
}
.menu-export-card svg {
  width: 22px;
  height: 22px;
  color: var(--green-dark);
}
.menu-export-card strong,
.menu-export-card small {
  display: block;
  min-width: 0;
}
.menu-export-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.32;
}
.menu-import-example {
  border: 1px solid rgba(11, 163, 75, .16);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 7px;
  background: rgba(11, 163, 75, .045);
}
.menu-import-example strong,
.menu-import-example code {
  min-width: 0;
}
.menu-import-example code {
  overflow: auto;
  color: var(--green-dark);
  font-size: 12px;
  white-space: nowrap;
}
.menu-import-textarea {
  min-height: 180px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
}
.menu-import-tools {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  background: #fff;
}
.menu-import-tools span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}
.menu-import-preview {
  border: 1px solid rgba(11, 163, 75, .18);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 10px;
  background: rgba(220, 252, 231, .22);
}
.menu-import-preview.has-errors {
  border-color: rgba(220, 38, 38, .2);
  background: rgba(254, 226, 226, .24);
}
.menu-import-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.menu-import-preview-head strong,
.menu-import-preview-head small {
  display: block;
}
.menu-import-preview-head small {
  color: var(--muted);
  font-size: 12px;
}
.menu-import-errors {
  display: grid;
  gap: 6px;
}
.menu-import-errors span {
  border-radius: 8px;
  padding: 7px 9px;
  background: #fff;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}
.menu-import-preview-table {
  display: grid;
  gap: 6px;
}
.menu-import-preview-table > div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(90px, .7fr) auto auto;
  gap: 8px;
  align-items: center;
  background: #fff;
  font-size: 12px;
}
.menu-import-preview-table strong,
.menu-import-preview-table span,
.menu-import-preview-table em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.menu-import-preview-table em {
  color: var(--green-dark);
  font-style: normal;
  font-weight: 900;
}
.menu-empty-state {
  border: 1px dashed rgba(115, 115, 115, .28);
  border-radius: 8px;
  padding: 18px;
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
  background: #fff;
}
.menu-empty-state svg {
  width: 24px;
  height: 24px;
  color: var(--green-dark);
  fill: none;
  stroke: currentColor;
}
.menu-empty-state small {
  max-width: 360px;
  color: var(--muted);
  line-height: 1.35;
}
.menu-empty-state > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.menu-item-meta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.menu-item-tags-panel {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 0 0;
  background: transparent;
}
.menu-item-choice-panel h3 {
  margin: 0;
  font-size: 15px;
}
.menu-choice-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}
.menu-choice-grid.allergens {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.menu-choice {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}
.menu-choice.active {
  border-color: rgba(11, 163, 75, .3);
  background: var(--green-soft);
  color: var(--green-dark);
}
.menu-choice.tag-choice {
  min-height: 34px;
  width: 100%;
  border-radius: 999px;
  padding: 4px 6px;
  justify-content: center;
  gap: 0;
  background: #fff;
}
.menu-choice.tag-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.menu-choice.tag-choice .menu-tag-chip {
  border: 0;
  background: transparent;
}
.menu-choice.tag-choice.active {
  border-color: rgba(11, 163, 75, .48);
  background: var(--green-soft);
}
.menu-choice.tag-choice.active .menu-tag-chip {
  color: var(--green-dark);
}
.menu-spice-choice {
  position: relative;
  min-width: 0;
}
.menu-spice-trigger {
  width: 100%;
}
.menu-spice-choice.active .menu-spice-trigger,
.menu-spice-choice.open .menu-spice-trigger {
  border-color: rgba(194, 65, 12, .34);
  background: #fff7ed;
}
.menu-spice-dropdown {
  position: absolute;
  z-index: 40;
  right: 0;
  top: calc(100% + 6px);
  width: min(188px, calc(100vw - 42px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  display: grid;
  gap: 4px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, .16);
}
.menu-spice-dropdown button {
  min-height: 32px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.menu-spice-dropdown button:hover,
.menu-spice-dropdown button:focus-visible,
.menu-spice-dropdown button.active {
  border-color: rgba(194, 65, 12, .2);
  background: #fff7ed;
  outline: 0;
}
.menu-spice-dropdown .menu-tag-chip {
  border: 0;
  padding: 0;
  background: transparent;
}
.menu-choice input {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  accent-color: var(--green-dark);
}
.menu-choice > span:not(.menu-tag-chip),
.menu-choice .menu-tag-chip > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.menu-photo-bank-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, .75fr);
  gap: 10px;
  align-items: stretch;
}
.menu-photo-bank-search,
.menu-photo-bank-helper {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 42px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
}
.menu-photo-bank-search svg {
  width: 16px;
  height: 16px;
  stroke: var(--muted);
  fill: none;
}
.menu-photo-bank-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 13px;
  background: transparent;
}
.menu-photo-bank-helper {
  display: grid;
  gap: 2px;
  align-content: center;
}
.menu-photo-bank-helper strong,
.menu-photo-bank-helper span,
.menu-photo-bank-empty strong,
.menu-photo-bank-empty small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.menu-photo-bank-helper strong {
  font-size: 12px;
}
.menu-photo-bank-helper span {
  color: var(--muted);
  font-size: 12px;
}
.menu-photo-bank-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.menu-photo-bank-filters button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}
.menu-photo-bank-filters button:hover,
.menu-photo-bank-filters button:focus-visible {
  border-color: rgba(11, 163, 75, .28);
  color: var(--green-dark);
  outline: 0;
}
.menu-photo-bank-filters button.active {
  border-color: rgba(11, 163, 75, .34);
  background: var(--green-soft);
  color: var(--green-dark);
}
.menu-photo-bank-empty {
  min-height: 180px;
  grid-column: 1 / -1;
  border: 1px dashed rgba(22, 163, 74, .28);
  border-radius: 8px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  color: var(--muted);
  background: #fbfffc;
  text-align: center;
}
.menu-photo-bank-empty svg {
  width: 24px;
  height: 24px;
  stroke: var(--green-dark);
  fill: none;
}
.menu-banner-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.menu-banner-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fffefa;
}
.menu-banner-card.muted {
  opacity: .72;
}
.menu-banner-preview,
.menu-banner-large-preview {
  position: relative;
  min-height: 0;
  aspect-ratio: 1.72;
  display: block;
  padding: 0;
  color: #fff;
  background: linear-gradient(135deg, #173d25, #0aa34f);
  background-size: cover;
  background-position: center;
}
.menu-banner-preview span,
.menu-banner-large-preview span {
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255,255,255,.9);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 900;
}
.menu-banner-preview strong,
.menu-banner-large-preview strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  font-size: 18px;
  line-height: 1.08;
  text-shadow: 0 1px 8px rgba(0,0,0,.28);
}
.menu-banner-preview p,
.menu-banner-large-preview p {
  min-width: 0;
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255,255,255,.86);
  font-size: 12px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.menu-banner-preview em,
.menu-banner-large-preview em {
  width: max-content;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(17, 24, 39, .62);
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}
.menu-banner-card-actions {
  padding: 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}
.menu-banner-visibility-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.menu-banner-card-actions .category-toggle {
  flex: 0 0 34px;
}
.menu-banner-card-actions .btn {
  min-width: 0;
  padding: 0 10px;
}
.menu-banner-modal {
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  border-radius: 12px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0,0,0,.34);
}
.menu-banner-modal-grid {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(340px, 1.1fr);
  gap: 14px;
}
.menu-banner-large-preview {
  width: 100%;
  min-height: 0;
  aspect-ratio: 1.72;
  border-radius: 8px;
  padding: 0;
}
.menu-banner-upload-preview {
  border: 1px dashed rgba(11, 163, 75, .34);
  display: grid;
  place-items: center;
  cursor: pointer;
  background:
    linear-gradient(135deg, rgba(236, 253, 245, .94), rgba(248, 253, 249, .96)),
    #f7fcf8;
  color: var(--ink);
  box-shadow: 0 10px 22px rgba(20, 83, 45, .05);
}
.menu-banner-upload-preview svg {
  width: 22px;
  height: 22px;
  stroke: var(--green-dark);
  fill: none;
}
.menu-banner-upload-preview span {
  margin-top: 8px;
}
.menu-banner-upload-preview:hover,
.menu-banner-upload-preview:focus-within {
  border-color: rgba(11, 163, 75, .58);
  background:
    linear-gradient(135deg, rgba(220, 252, 231, .98), rgba(247, 252, 248, .98)),
    #f2fbf4;
  box-shadow: 0 12px 26px rgba(20, 83, 45, .08);
}
.menu-banner-upload-preview span {
  width: auto;
  max-width: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
}
.menu-banner-large-preview strong {
  font-size: 28px;
}
.menu-banner-large-preview p {
  font-size: 15px;
  -webkit-line-clamp: 4;
}
.menu-banner-image-actions {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.menu-banner-image-actions:empty {
  display: none;
}
.menu-banner-image-actions .btn {
  min-width: 0;
}
.menu-banner-media-settings {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.menu-banner-media-settings .form-grid {
  gap: 10px;
}
.menu-banner-media-settings .photo-order-controls {
  align-self: start;
}
.menu-banner-preview.has-image,
.menu-banner-large-preview.has-image,
.lm-hero.has-image {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.phone { width: 294px; max-width: 100%; margin: 0 auto; border-radius: 30px; padding: 12px; background: #161a18; box-shadow: 0 24px 60px rgba(13,26,20,.25); }
.phone-screen { min-height: 590px; overflow: hidden; border-radius: 22px; background: #fffefa; }
.phone-hero { height: 154px; padding: 18px; display: flex; align-items: end; color: #fff; background: linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.60)), linear-gradient(135deg, #14532d, #16a34a 48%, #efd98a); }
.phone-hero strong { display: block; font-size: 23px; line-height: 1.05; }
.phone-hero span { display: block; margin-top: 6px; font-size: 12px; opacity: .92; }
.phone-body { padding: 14px; }
.phone-section { padding: 12px 0; border-top: 1px solid #eee6d3; }
.phone-section:first-child { border-top: 0; padding-top: 0; }
.phone-section h3 { font-size: 14px; margin-bottom: 7px; }
.lang-row, .chip-row { display: flex; gap: 6px; overflow: hidden; margin-bottom: 14px; }
.lang-row span { min-width: 34px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: #f0eadb; font-size: 12px; font-weight: 900; }
.lang-row span.active { background: var(--green-dark); color: #fff; }
.chip-row span { height: 30px; border-radius: 999px; padding: 0 10px; display: inline-flex; align-items: center; background: var(--green-soft); color: var(--green-dark); font-size: 12px; font-weight: 900; white-space: nowrap; }
.phone-item { display: grid; grid-template-columns: 1fr 54px; gap: 10px; padding: 12px 0; border-top: 1px solid #eee6d3; }
.phone-item strong { font-size: 14px; }
.phone-item p { margin: 4px 0; font-size: 12px; line-height: 1.3; }
.thumb { width: 52px; height: 52px; border-radius: 8px; background: #e8e1cf; }
.thumb.gray { background: #eee8d9; }
.menu-item-thumb {
  border: 1px solid var(--line);
  background-color: #f4f7fa;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.menu-item-thumb.is-placeholder {
  border-color: #e6edf3;
  background-color: #f4f7fa;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.78);
}
.price { color: var(--green-dark); font-size: 13px; font-weight: 900; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field.is-hidden { display: none; }
label { color: #46433c; font-size: 13px; font-weight: 850; }
.input, .textarea, .select { width: 100%; border: 1px solid var(--line); border-radius: 8px; background: #fffefa; color: var(--ink); padding: 0 11px; outline: none; }
.input, .select { height: 40px; }
.textarea { min-height: 92px; padding-top: 10px; resize: vertical; line-height: 1.45; }
.profile-details-grid .textarea {
  min-height: 132px;
}
.readonly { background: #f4efe1; color: var(--muted); }
.row-card { min-height: 64px; border: 1px solid var(--line); border-radius: 8px; padding: 10px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; background: #fffefa; }
.row-card strong { display: block; font-size: 14px; margin-bottom: 3px; }
.row-card small { display: block; color: var(--muted); font-size: 12px; line-height: 1.35; }
.company-lookup-panel {
  margin-bottom: 14px;
}
.theme-editor-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
.theme-editor-shell.theme-editor-single-panel {
  grid-template-columns: minmax(0, 1fr);
}
.theme-editor-title {
  padding: 2px 2px 0;
}
.theme-editor-title p {
  margin-top: 4px;
  color: var(--muted);
}
.theme-editor-nav,
.theme-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.theme-editor-nav {
  align-self: start;
  padding: 18px;
  position: sticky;
  top: 18px;
}
.theme-editor-nav h2 {
  margin-bottom: 18px;
}
.theme-editor-nav button {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  background: transparent;
  color: var(--ink);
  font-weight: 850;
  text-align: left;
}
.theme-editor-nav button.active {
  color: var(--green-dark);
  background: #e8faef;
}
.theme-editor-main {
  display: grid;
  gap: 14px;
}
.theme-card {
  overflow: hidden;
}
.theme-card-head {
  min-height: 56px;
  border-bottom: 1px solid var(--line);
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.theme-card-head svg {
  width: 19px;
  height: 19px;
  stroke: var(--green-dark);
  fill: none;
  stroke-width: 2;
}
.theme-card-head h3 {
  margin: 0;
}
.theme-card-head .switch {
  margin-left: auto;
}
.theme-upload-drop {
  min-height: 176px;
  margin: 18px;
  border: 1px dashed #ccd6cf;
  border-radius: 8px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 22px;
  text-align: center;
  color: var(--muted);
  background: #f5f6f5;
}
.theme-upload-drop.drag-over {
  border-color: var(--green);
  background: #ecfff3;
  box-shadow: inset 0 0 0 1px rgba(27, 132, 69, .16);
}
.theme-upload-drop img {
  max-width: 118px;
  max-height: 82px;
  object-fit: contain;
}
.theme-upload-drop strong {
  color: var(--ink);
}
.theme-upload-drop small {
  max-width: 420px;
  line-height: 1.45;
}
.theme-upload-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.hidden-file-input {
  display: none;
}
.theme-style-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(300px, 380px);
  gap: 14px;
  padding: 18px;
}
.theme-controls {
  border-right: 1px solid var(--line);
  padding-right: 14px;
}
.theme-row {
  min-height: 54px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(170px, 220px);
  gap: 12px;
  align-items: center;
}
.theme-row > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.theme-row input[type="range"] {
  accent-color: var(--green);
}
.theme-row.color-row {
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 220px);
}
.theme-color-trigger {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}
.theme-color-trigger:hover,
.theme-color-trigger:focus-visible {
  border-color: var(--green-border);
  background: #fbfffc;
  outline: none;
}
.theme-color-trigger i {
  width: 26px;
  height: 24px;
  border: 1px solid #9ca3af;
  border-radius: 4px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.72);
}
.theme-color-trigger code {
  border-radius: 4px;
  background: #eceeed;
  padding: 4px 7px;
  color: #5f6872;
  font-size: 11px;
  letter-spacing: 0;
}
.theme-row.color-row .input {
  background: #fff;
  font-weight: 850;
  text-transform: uppercase;
}
.theme-segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.theme-segment button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--muted);
}
.theme-segment button.active {
  border-color: var(--green);
  color: var(--green-dark);
  background: #e8faef;
  box-shadow: inset 0 0 0 1px rgba(74, 165, 85, .2);
}
.theme-segment svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.theme-reset {
  justify-self: end;
  margin-top: 12px;
}
.theme-preview-wrap {
  display: grid;
  gap: 10px;
}
.theme-preview-toolbar {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  background: #fff;
}
.theme-preview-toolbar button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
}
.theme-preview-toolbar button.active {
  background: #e8faef;
  color: var(--green-dark);
}
.theme-live-preview {
  min-height: 492px;
  border-radius: 8px;
  padding: 14px;
  overflow: hidden;
  color: var(--theme-text);
  font-family: var(--theme-font);
  background:
    radial-gradient(circle at 18px 18px, rgba(17,24,39,.08) 0 1px, transparent 1.5px),
    var(--theme-bg);
  background-size: 18px 18px;
  box-shadow: inset 0 0 0 1px rgba(17,24,39,.08);
}
.guest-theme-preview {
  padding: 0;
  background: #fff;
}
.guest-theme-preview iframe {
  display: block;
  width: 100%;
  height: 492px;
  border: 0;
  background: #fff;
}
.theme-preview-source {
  color: var(--muted);
}
.theme-phone-top {
  min-height: 46px;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  background: color-mix(in srgb, var(--theme-primary), white 18%);
  color: #fff;
}
.theme-phone-top.compact {
  grid-template-columns: 38px minmax(0, 1fr) 20px;
}
.theme-phone-top img,
.theme-phone-top span {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  object-fit: contain;
  background: rgba(255,255,255,.18);
  color: inherit;
  font-size: 11px;
  font-weight: 900;
}
.theme-phone-top strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.theme-phone-top button,
.theme-phone-top .theme-preview-control {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: rgba(255,255,255,.18);
  color: inherit;
  font-weight: 900;
  display: grid;
  place-items: center;
}
.theme-phone-head {
  min-height: 46px;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  background: color-mix(in srgb, var(--theme-primary), white 18%);
  color: #fff;
}
.theme-phone-head button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: rgba(255,255,255,.18);
  color: inherit;
  font-weight: 900;
}
.theme-phone-tabs {
  display: flex;
  gap: 8px;
  margin: 14px 0;
  overflow: hidden;
}
.theme-phone-tabs span {
  border-radius: 999px;
  padding: 7px 9px;
  color: var(--theme-active-text);
  background: color-mix(in srgb, var(--theme-accent), white 20%);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.theme-live-preview h4 {
  margin: 8px 0 12px;
  color: var(--theme-primary);
  font-size: 22px;
}
.theme-live-preview article {
  border-bottom: 1px dashed rgba(17,24,39,.16);
  padding: 12px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 12px;
}
.theme-live-preview article strong,
.theme-live-preview article b,
.theme-live-preview article p,
.theme-live-preview article small {
  display: block;
}
.theme-live-preview article strong {
  color: var(--theme-text);
  font-size: 15px;
}
.theme-live-preview article b {
  margin-top: 4px;
  color: var(--theme-accent);
  font-size: 13px;
}
.theme-live-preview article p {
  margin: 7px 0;
  color: var(--theme-muted);
  font-size: 12px;
  line-height: 1.35;
}
.theme-live-preview article small {
  color: var(--theme-primary);
  font-size: 11px;
  font-weight: 850;
}
.theme-live-preview article > span {
  height: 84px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-accent));
}
.theme-live-preview article button,
.theme-live-preview article .theme-preview-detail-control {
  grid-column: 2;
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  color: var(--theme-active-text);
  background: var(--theme-accent);
  font-weight: 900;
  text-transform: uppercase;
  display: grid;
  place-items: center;
}
.settings-action-message {
  margin-top: 6px;
  color: var(--green-dark) !important;
  font-weight: 750;
}
.theme-preview-dish {
  grid-template-columns: minmax(0, 1fr) 86px;
}
.theme-preview-photo,
.theme-preview-hero {
  background-size: cover;
  background-position: center;
}
.theme-preview-hero {
  height: 164px;
  border-radius: 10px;
  margin: 12px 0 0;
}
.theme-preview-detail-card,
.theme-preview-info {
  margin-top: 12px;
  border-radius: 10px;
  padding: 14px;
  background: color-mix(in srgb, var(--theme-bg), white 72%);
  box-shadow: inset 0 0 0 1px rgba(17,24,39,.08);
}
.theme-preview-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}
.theme-preview-title h4 {
  margin: 0;
}
.theme-preview-title b {
  color: var(--theme-accent);
}
.theme-preview-detail-card p,
.theme-preview-info p {
  color: var(--theme-muted);
  font-size: 13px;
  line-height: 1.42;
}
.theme-preview-chip-row {
  margin: 10px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.theme-preview-allergens {
  display: flex;
  gap: 6px;
}
.theme-preview-allergens span {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--theme-primary), white 86%);
  color: var(--theme-primary);
  font-size: 11px;
  font-weight: 900;
}
.theme-preview-info section {
  border-top: 1px solid rgba(17,24,39,.1);
  padding-top: 10px;
  margin-top: 10px;
  display: grid;
  gap: 6px;
}
.theme-preview-info section > strong {
  color: var(--theme-primary);
}
.theme-preview-info small {
  color: var(--theme-muted);
  font-size: 12px;
  line-height: 1.45;
}
.theme-preview-info small span {
  display: inline-block;
  min-width: 72px;
}
.theme-preview-info small b {
  color: var(--theme-text);
}
.theme-open-preview {
  justify-self: stretch;
}
.theme-background-compact {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfb;
}
.theme-background-compact-head {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.theme-background-compact-head > span svg {
  width: 18px;
  height: 18px;
  stroke: var(--green-dark);
  fill: none;
}
.theme-background-compact-head h3 {
  margin: 0;
  font-size: 14px;
}
.theme-background-compact-head .switch {
  margin-left: auto;
}
.theme-background-grid {
  padding: 10px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.theme-background-grid label {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}
.theme-background-grid span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.theme-background-grid input[type="range"] {
  align-self: center;
  accent-color: var(--green);
}
.theme-background-grid .theme-color-trigger {
  min-height: 38px;
}
.theme-background-grid .theme-pattern-opacity {
  grid-column: 1 / -1;
}
.theme-background-grid input[type="range"] {
  width: 100%;
}
.theme-pattern-label {
  display: block;
  margin: 2px 0 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.theme-pattern-row {
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.theme-pattern-row button:last-child {
  grid-column: 1 / -1;
}
.theme-pattern-row button {
  min-height: 44px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  place-items: center;
  justify-content: center;
  gap: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
}
.theme-pattern-row button.active {
  border-color: var(--green);
  box-shadow: inset 0 0 0 1px rgba(74, 165, 85, .25);
}
.theme-pattern-row svg {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  opacity: .72;
}
.theme-reset {
  margin-top: 10px;
}
@media (max-width: 1120px) {
  .theme-editor-shell {
    grid-template-columns: 1fr;
  }
  .theme-editor-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .theme-editor-nav h2 {
    flex: 1 0 100%;
    margin-bottom: 4px;
  }
  .theme-editor-nav button {
    width: auto;
  }
  .theme-style-grid {
    grid-template-columns: 1fr;
  }
  .theme-controls {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 14px;
  }
}
@media (max-width: 720px) {
  .theme-row,
  .theme-row.color-row,
  .theme-background-grid {
    grid-template-columns: 1fr;
  }
  .theme-pattern-row {
    grid-template-columns: repeat(2, minmax(0, 128px));
  }
}
.company-lookup-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.company-lookup-head h2 {
  margin-bottom: 4px;
}
.company-lookup-search {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 160px auto;
  gap: 10px;
  align-items: end;
}
.company-lookup-panel .input,
.company-lookup-panel .select {
  background: #fff;
}
.company-suggest-field {
  position: relative;
}
.company-suggest-dropdown {
  position: absolute;
  z-index: 45;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  display: grid;
  gap: 4px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(42, 31, 23, .14);
}
.company-suggest-item {
  width: 100%;
  border: 0;
  border-radius: 7px;
  padding: 9px 10px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.company-suggest-item:hover,
.company-suggest-item:focus-visible {
  background: #eefaf2;
  outline: 0;
}
.company-suggest-item strong,
.company-suggest-item small,
.company-suggest-state {
  display: block;
}
.company-suggest-item strong {
  margin-bottom: 3px;
  font-size: 13px;
  line-height: 1.25;
}
.company-suggest-item small,
.company-suggest-state {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.company-suggest-state {
  padding: 9px 10px;
  font-weight: 750;
}
.company-suggest-state.danger {
  color: #b42318;
}
.company-public-note {
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.company-public-note > div {
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  background: #fff;
}
.company-public-note span,
.company-public-note strong,
.company-public-note small {
  display: block;
}
.company-public-note-card {
  display: grid;
  grid-template-rows: auto auto auto;
}
.company-public-note-title-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.company-public-note-title-row strong {
  min-width: 0;
  margin-bottom: 0;
}
.company-public-note-edit {
  min-width: 78px;
  min-height: 30px;
  height: 30px;
  padding: 0 12px;
}
.company-public-note span {
  margin-bottom: 4px;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 900;
}
.company-public-note strong {
  margin-bottom: 3px;
  font-size: 14px;
}
.company-public-note small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.billing-readiness {
  margin: 0 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}
.billing-readiness-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.billing-readiness-head h3 {
  margin: 0 0 3px;
  font-size: 16px;
}
.billing-readiness-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.billing-readiness-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.billing-readiness-item {
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  background: #fff;
}
.billing-readiness-item > span {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
}
.billing-readiness-item svg {
  width: 15px;
  height: 15px;
}
.billing-readiness-item.done {
  border-color: #bdeccc;
  background: #f7fff9;
}
.billing-readiness-item.done > span {
  background: var(--green-soft);
  color: var(--green-dark);
}
.billing-readiness-item.missing > span {
  background: #fff1d6;
  color: #a16207;
}
.billing-readiness-item strong,
.billing-readiness-item small {
  display: block;
}
.billing-readiness-item strong {
  margin-bottom: 3px;
  font-size: 13px;
}
.billing-readiness-item small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.company-lookup-search .btn {
  min-width: 136px;
}
.company-lookup-error {
  margin-top: 10px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 13px;
  font-weight: 750;
}
.company-results {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}
.company-result-card {
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.company-result-card:hover,
.company-result-card:focus-visible {
  border-color: rgba(22, 163, 74, .34);
  background: #f7fff9;
  outline: 0;
}
.company-result-card strong,
.company-result-card small {
  display: block;
}
.company-result-card strong {
  margin-bottom: 3px;
  font-size: 14px;
}
.company-result-card small {
  color: var(--muted);
  font-size: 12px;
}
.company-data-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.company-data-card {
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}
.company-data-card span,
.company-data-card strong {
  display: block;
}
.company-data-card span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}
.company-data-card strong {
  font-size: 13px;
  line-height: 1.35;
}
.company-billing-form {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  --company-left-label-col: 180px;
  --company-right-label-col: 118px;
}
.company-billing-form .field {
  grid-template-columns: var(--company-left-label-col) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}
.company-tax-grid .field,
.company-billing-contact .field:nth-child(2) {
  grid-template-columns: var(--company-right-label-col) minmax(0, 1fr);
}
.company-billing-form .field label {
  min-width: 0;
  line-height: 1.2;
}
.company-name-field {
  margin-bottom: 10px;
}
.company-billing-form .company-name-field {
  grid-template-columns: var(--company-left-label-col) minmax(0, 1fr);
}
.company-suggest-dropdown,
.company-lookup-error.inline {
  grid-column: 2;
}
.company-details-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
  gap: 14px;
  align-items: start;
}
.company-address-fields,
.company-tax-grid {
  min-width: 0;
  display: grid;
  gap: 10px;
}
.company-address-city-row {
  display: grid;
  grid-template-columns: calc(var(--company-left-label-col) + 104px) minmax(0, 1fr);
  gap: 10px;
}
.company-address-city-row .field:first-child {
  grid-template-columns: var(--company-left-label-col) 96px;
}
.company-address-city-row .field:first-child .input {
  width: 96px;
}
.company-billing-contact {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
  gap: 10px;
}
.company-billing-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}
.company-tax-grid {
  grid-template-columns: 1fr;
}
.required-mark {
  color: var(--red);
}
.company-lookup-error.inline {
  margin-top: 6px;
  display: block;
}
.invoices-panel {
  margin-bottom: 14px;
  display: grid;
  gap: 12px;
}
.invoice-summary-grid {
  display: grid;
  grid-template-columns: 1.4fr .7fr .7fr;
  gap: 8px;
}
.invoice-readonly-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
}
.billing-status-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background: #fff;
}
.billing-status-panel.amber {
  border-color: #f2d7a6;
  background: #fffaf0;
}
.billing-status-panel.red {
  border-color: #f2b8b8;
  background: #fff7f7;
}
.billing-status-panel strong,
.billing-status-panel small,
.billing-status-label,
.billing-status-meta span,
.billing-status-meta strong,
.billing-status-meta small {
  display: block;
}
.billing-status-label {
  margin-bottom: 3px;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 900;
}
.billing-status-panel > div > strong {
  margin-bottom: 3px;
  font-size: 15px;
}
.billing-status-panel small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.billing-status-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.billing-status-meta {
  min-width: 118px;
  text-align: right;
}
.billing-status-meta .badge {
  margin-left: auto;
  margin-bottom: 5px;
  width: fit-content;
}
.billing-status-meta strong {
  font-size: 16px;
}
.invoice-list {
  display: grid;
  gap: 8px;
}
.invoice-row {
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px auto auto;
  gap: 10px;
  align-items: center;
  background: #fff;
}
.invoice-row strong,
.invoice-row small {
  display: block;
}
.invoice-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}
.invoice-empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 14px;
  color: var(--muted);
  background: #fff;
  font-size: 13px;
  font-weight: 750;
}
.invoice-empty.danger {
  border-color: #f2b8b8;
  color: #b42318;
  background: #fff7f7;
}
@media (max-width: 760px) {
  .platform-banner {
    align-items: stretch;
    flex-direction: column;
  }
  .platform-banner-actions {
    justify-content: flex-start;
  }
  .invoice-summary-grid,
  .billing-status-panel,
  .invoice-row {
    grid-template-columns: 1fr;
  }
  .billing-status-meta {
    text-align: left;
  }
  .billing-status-meta .badge {
    margin-left: 0;
  }
  .invoice-row {
    align-items: start;
  }
}
.users-workspace {
  display: grid;
  gap: 14px;
}
.users-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.user-invite-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1fr) minmax(170px, .8fr) 160px auto;
  gap: 10px;
  align-items: end;
}
.user-entitlement-notice {
  min-height: 58px;
  border: 1px solid rgba(217, 119, 6, .24);
  border-radius: 8px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background: #fffaf0;
}
.user-entitlement-notice.red {
  border-color: rgba(220, 38, 38, .22);
  background: #fff5f5;
}
.user-entitlement-notice strong,
.user-entitlement-notice small {
  display: block;
  min-width: 0;
}
.user-entitlement-notice strong {
  margin-bottom: 3px;
  font-weight: 850;
}
.user-entitlement-notice small {
  color: var(--muted);
  line-height: 1.35;
}
.user-flow-note {
  border: 1px solid #dceee4;
  border-radius: 8px;
  padding: 10px 12px;
  display: grid;
  gap: 3px;
  background: #fbfffc;
  color: var(--green-dark);
}
.user-flow-note strong,
.user-flow-note span {
  display: block;
}
.user-flow-note strong {
  font-size: 13px;
}
.user-flow-note span {
  font-size: 12px;
  line-height: 1.35;
}
.users-list-panel {
  display: grid;
  gap: 12px;
}
.user-roles-panel {
  display: grid;
  gap: 12px;
}
.user-role-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.user-role-overview-card {
  min-height: 168px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  align-content: start;
  gap: 12px;
  background: #fff;
}
.user-role-overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.user-role-overview-head strong,
.user-role-overview-head small {
  display: block;
}
.user-role-overview-head strong {
  margin-bottom: 4px;
  font-size: 14px;
}
.user-role-overview-head small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.users-table {
  display: grid;
  gap: 8px;
}
.user-filter-bar {
  display: grid;
  grid-template-columns: minmax(380px, 1fr) 180px 210px;
  gap: 10px;
  align-items: center;
}
.user-filter-search {
  width: 100%;
  min-width: 380px;
}
.user-filter-search input {
  min-width: 0;
  width: 100%;
  flex: 1 1 auto;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  box-shadow: none;
}
.user-row {
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) minmax(170px, .85fr) 150px minmax(120px, .55fr) auto;
  gap: 10px;
  align-items: center;
  background: #fff;
}
.user-row:hover,
.user-row:focus-within {
  border-color: #b9e8c9;
  background: #fbfffc;
}
.user-detail-open {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.user-detail-open:focus-visible {
  outline: 3px solid rgba(22, 163, 74, .16);
  outline-offset: 2px;
  border-radius: 8px;
}
.user-row.inactive {
  background: #fbfaf8;
}
.user-row.superadmin-blocked {
  border-color: #f2b8b8;
  background: #fff7f7;
}
.platform-lock-note {
  margin-top: 4px;
  color: #b42318 !important;
  font-weight: 750;
}
.user-main strong,
.user-main small,
.user-contact span,
.user-contact small,
.user-security strong,
.user-security small {
  display: block;
}
.user-main strong {
  margin-bottom: 4px;
  font-size: 14px;
}
.user-main small,
.user-contact small,
.user-security small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}
.user-security strong {
  margin-bottom: 4px;
  font-size: 13px;
}
.user-contact span {
  margin-bottom: 4px;
  font-weight: 850;
}
.compact-select {
  height: 36px;
}
.user-flags,
.user-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.user-actions {
  justify-content: flex-end;
}
.user-actions .btn {
  height: 34px;
  padding: 0 10px;
  white-space: nowrap;
}
.user-detail-modal {
  width: min(980px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  display: grid;
  gap: 14px;
  background: var(--card);
  box-shadow: 0 28px 90px rgba(0,0,0,.32);
  overflow: auto;
}
.user-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.user-detail-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 5px;
  background: #fffefa;
}
.user-detail-card span,
.user-detail-card strong,
.user-detail-card small {
  display: block;
}
.user-detail-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.user-detail-card strong {
  font-size: 15px;
}
.user-detail-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.user-detail-warning {
  border: 1px solid #f2b8b8;
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff7f7;
  color: #b42318;
}
.user-detail-warning strong,
.user-detail-warning span {
  display: block;
}
.user-detail-warning strong {
  margin-bottom: 3px;
  font-size: 13px;
}
.user-detail-warning span {
  font-size: 12px;
  line-height: 1.35;
}
.user-detail-warning.is-info {
  border-color: #ccebd8;
  background: #f4fff8;
  color: var(--green-dark);
}
.user-contact-editor {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 12px;
  background: #fff;
}
.user-contact-editor .panel-row-head {
  align-items: center;
}
.user-contact-editor h3 {
  margin-bottom: 2px;
  font-size: 15px;
}
.user-contact-editor p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.user-contact-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, .9fr);
  gap: 10px;
}
.user-contact-editor-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.user-contact-editor-grid .input {
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}
/* Kontrola bn-2: súčasné heslo pri zmene vlastného e-mailu a čakajúca zmena. */
.user-contact-own-email {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.user-contact-own-email > label {
  display: grid;
  gap: 6px;
  max-width: 320px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.user-contact-own-email > label small {
  font-weight: 500;
}
.user-contact-own-email .input {
  background: #fff;
  color: var(--ink);
}
.user-contact-pending {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #f1dfb4;
  border-radius: 8px;
  background: #fffaf0;
}
.user-contact-pending p {
  flex: 1 1 220px;
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.user-role-permissions {
  border: 1px solid #dceee4;
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 10px;
  background: #fbfffc;
}
.user-role-permissions h3 {
  margin-bottom: 2px;
  font-size: 15px;
}
.user-role-permissions p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.role-permission-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.role-permission-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.role-permission-summary span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.role-permission-summary strong {
  color: var(--ink);
}
.role-permission-summary .accent {
  border-color: #f5d58a;
  background: #fff8e5;
  color: #9a6700;
}
.role-permission-list span {
  border: 1px solid #b9e8c9;
  border-radius: 999px;
  padding: 5px 9px;
  background: #fff;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 850;
}
.role-permission-list .permission-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.role-permission-list .permission-chip small {
  border-radius: 999px;
  padding: 1px 5px;
  background: #fff3cd;
  color: #9a6700;
  font-size: 10px;
  font-weight: 900;
}
.role-permission-list .permission-chip.is-platform-override {
  border-color: #f5d58a;
  background: #fffaf0;
  color: #7a5200;
}
.user-detail-columns {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 12px;
}
.user-detail-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 10px;
  background: #fff;
}
.panel-row-head.compact h3 {
  margin-bottom: 2px;
  font-size: 15px;
}
.panel-row-head.compact p {
  font-size: 12px;
}
.user-detail-list {
  display: grid;
  gap: 8px;
}
.user-detail-list-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  background: #fffefa;
}
.user-detail-list-item strong,
.user-detail-list-item small {
  display: block;
}
.user-detail-list-item strong {
  margin-bottom: 3px;
  font-size: 13px;
}
.user-detail-list-item small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.user-detail-list-item > div:last-child {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}
.hours-editor {
  display: grid;
  gap: 8px;
}
.hours-editor-head,
.hour-row {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) 92px 92px minmax(98px, auto);
  gap: 8px;
  align-items: center;
}
.hours-editor-head {
  min-height: 26px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  text-align: center;
}
.hours-editor-head span {
  display: grid;
  justify-items: center;
  gap: 2px;
}
.hours-editor-head small {
  color: #8b8f88;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.1;
  text-transform: none;
  white-space: nowrap;
}
.hour-row {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  background: #fffefa;
}
.hour-row.closed {
  background: #fbfaf5;
}
.hour-day {
  min-width: 0;
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.time-field-wrap {
  position: relative;
  min-width: 0;
}
.time-field {
  width: 100%;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  text-align: center;
}
.time-field:disabled {
  color: #9a9a94;
  background: #f0eee6;
  cursor: not-allowed;
}
.time-picker {
  position: absolute;
  z-index: 30;
  top: calc(100% + 5px);
  left: 0;
  width: 124px;
  max-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  overflow: auto;
  background: #fff;
  box-shadow: 0 18px 38px rgba(37, 31, 24, .16);
}
.time-option {
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
}
.time-option:hover {
  background: var(--green-soft);
  color: var(--green-dark);
}
.time-option-closed {
  grid-column: 1 / -1;
  color: #6b5b44;
  font-weight: 800;
}
.time-option-closed:hover {
  background: #fff4df;
  color: #8a4b14;
}
.completion-row {
  width: 100%;
  height: 64px;
  min-height: 64px;
  border: 1px solid var(--line);
  text-align: left;
  color: inherit;
  cursor: pointer;
}
.completion-row:hover {
  border-color: #bad8c2;
  background: #f6fcf8;
}
.completion-row:focus-visible {
  outline: 3px solid rgba(22, 163, 74, .22);
  outline-offset: 2px;
}
.completion-row strong,
.completion-row small {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-progress {
  min-height: 122px;
  border: 1px solid #bad8c2;
  border-radius: 8px;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 12px;
  align-items: center;
  background: #f2fbf5;
}
.profile-progress strong {
  display: block;
  color: var(--green-dark);
  font-size: 24px;
  line-height: 1;
}
.profile-progress span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.progress-bar {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #dcebe1;
}
.progress-bar span {
  display: block;
  height: 100%;
  margin: 0;
  border-radius: inherit;
  background: var(--green);
}
.quick-actions-panel {
  display: grid;
  align-content: start;
  gap: 12px;
}
.dashboard-panel,
.quick-actions-panel {
  min-height: 238px;
  grid-template-rows: auto 1fr;
}
.dashboard-panel {
  display: grid;
  align-content: start;
  gap: 12px;
}
.quick-actions-panel h2 {
  margin-bottom: 0;
}
.quick-actions-panel .btn {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.upgrade-strip {
  min-height: 84px;
  border: 1px solid #bad8c2;
  border-radius: 8px;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  background: #f2fbf5;
}
.upgrade-strip strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.upgrade-strip span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.upgrade-strip.current-plan {
  background: #fffefa;
}
.extension-card {
  min-height: 188px;
  display: grid;
  align-content: start;
  gap: 12px;
}
.extension-card h2 {
  margin: 0;
}
.extension-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.extension-contract-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #cde5cf;
  border-radius: 8px;
  background: #f4fbf5;
}
.extension-contract-note.readonly {
  border-color: var(--line);
  background: #f8faf8;
}
.extension-contract-note strong,
.extension-contract-note span,
.extension-contract {
  display: block;
}
.extension-contract-note strong {
  font-size: 13px;
}
.extension-contract-note span,
.extension-contract {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.extension-card .badge {
  justify-self: start;
}
.extension-card .btn {
  justify-self: start;
  margin-top: 4px;
}
.qr-metric {
  gap: 6px;
}
.qr-art {
  --qr-fg: #132f1e;
  --qr-bg: #fff;
  --qr-eye-inner: #e34831;
  --qr-eye-outer: #1c4f8f;
  display: block;
  background: var(--qr-bg);
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(24, 33, 25, .08);
  position: relative;
  overflow: hidden;
}
.qr-art svg {
  display: block;
  width: 100%;
  height: 100%;
}
.metric-qr-art {
  width: 68px;
  height: 68px;
  padding: 7px;
  border-radius: 8px;
}
.qr-preview {
  width: 230px;
  height: 230px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0 auto 14px;
  background:
    linear-gradient(90deg, #101112 10px, transparent 10px) 0 0 / 26px 26px,
    linear-gradient(#101112 10px, transparent 10px) 0 0 / 26px 26px,
    #fff;
  position: relative;
  overflow: hidden;
}
.qr-preview-button {
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  background: #fff;
}
.qr-preview-button:hover {
  border-color: #9bcaa6;
}
.qr-preview-art {
  width: 166px;
  height: 166px;
  padding: 16px;
  border-radius: 12px;
}
.qr-preview::before,
.qr-preview::after {
  content: "";
  position: absolute;
  width: 54px;
  height: 54px;
  border: 9px solid #101112;
  border-radius: 4px;
  background: #fff;
  box-shadow: inset 0 0 0 10px #fff, inset 0 0 0 18px #101112;
}
.qr-preview::before {
  top: 18px;
  left: 18px;
}
.qr-preview::after {
  right: 18px;
  bottom: 18px;
}
.qr-preview-button::before,
.qr-preview-button::after {
  display: none;
}
.qr-editor-preview {
  display: grid;
  place-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefa;
  margin-bottom: 12px;
}
.qr-editor-art {
  width: min(260px, 100%);
  aspect-ratio: 1;
  padding: 22px;
  border-radius: 14px;
}
.qr-admin-page {
  display: grid;
  gap: 16px;
}
.qr-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.qr-status-card {
  min-width: 0;
}
.qr-status-card h2,
.qr-editor-panel h2 {
  margin: 0 0 12px;
}
.qr-status-main {
  min-height: 130px;
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: minmax(128px, .86fr) minmax(180px, 1fr);
  gap: 10px;
  align-items: stretch;
}
.qr-status-preview {
  display: grid;
  place-items: center;
  min-width: 0;
}
.qr-status-preview .qr-preview-art {
  width: 124px;
  height: 124px;
  padding: 12px;
}
.qr-status-quick-actions {
  display: grid;
  gap: 8px;
  align-content: stretch;
}
.qr-status-action {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.qr-status-action:hover,
.qr-status-action:focus-visible {
  border-color: var(--green-border);
  background: #fbfffc;
}
.qr-status-action svg {
  width: 18px;
  height: 18px;
  color: var(--green-dark);
}
.qr-status-action span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qr-status-compact {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(190px, .55fr);
  gap: 8px;
}
.qr-status-row {
  min-height: 58px;
  padding: 9px 10px;
  background: #fff;
}
.qr-action-list {
  display: grid;
  gap: 10px;
}
.qr-action-row {
  width: 100%;
  border: 1px solid var(--line);
  cursor: pointer;
  text-align: left;
}
.qr-action-row svg {
  width: 19px;
  height: 19px;
  color: var(--green-dark);
}
.qr-output-row {
  min-height: 62px;
}
.qr-output-row > span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.qr-output-row .btn {
  min-height: 34px;
  padding: 0 12px;
}
.qr-editor-panel {
  display: grid;
  gap: 14px;
}
.color-dot {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #132f1e;
  border: 3px solid #dcebdd;
}
.qr-editor-page {
  display: grid;
  gap: 14px;
}
.qr-editor-embed {
  min-height: 100vh;
  padding: 20px;
}
.livemenu-qr-editor-frame {
  border: 0;
  display: block;
  min-height: 760px;
  width: 100%;
}
.qr-editor-top {
  min-height: 44px;
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.qr-info-pill {
  min-height: 36px;
  border: 1px solid #b9ded5;
  border-radius: 5px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #536158;
  background: #fff;
  font-size: 13px;
  font-weight: 650;
}
.qr-info-pill svg,
.qr-accordion-head svg,
.qr-stage-url svg,
.mini-lock svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.qr-info-pill svg {
  color: var(--green-dark);
}
.qr-editor-workbench {
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.qr-editor-workbench.inline {
  grid-template-columns: minmax(340px, .95fr) minmax(320px, 1.05fr);
  gap: 14px;
  align-items: start;
}
.qr-editor-workbench.inline .qr-editor-stage {
  grid-column: 2;
  grid-template-columns: 1fr;
  align-items: start;
  justify-items: stretch;
}
.qr-editor-workbench.inline .qr-editor-sidebar {
  display: contents;
}
.qr-editor-workbench.inline .qr-editor-tile-grid {
  grid-column: 1 / -1;
}
.qr-editor-workbench.inline .qr-inline-controls {
  grid-column: 1;
}
.qr-editor-workbench.inline .stage-pill {
  width: 100%;
}
.qr-editor-workbench.inline .qr-stage-canvas {
  width: 100%;
  min-height: 220px;
  grid-row: auto;
}
.qr-editor-workbench.inline .qr-stage-url,
.qr-editor-workbench.inline .qr-stage-actions {
  width: 100%;
}
.qr-editor-workbench.inline .qr-stage-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.qr-editor-sidebar {
  display: grid;
  gap: 10px;
}
.qr-branding-entitlement-notice {
  min-height: 58px;
  border: 1px solid rgba(217, 119, 6, .24);
  border-radius: 8px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background: #fffaf0;
}
.qr-branding-entitlement-notice.locked {
  border-color: rgba(217, 119, 6, .24);
  background: #fffaf0;
}
.qr-branding-entitlement-notice strong,
.qr-branding-entitlement-notice small {
  display: block;
  min-width: 0;
}
.qr-branding-entitlement-notice strong {
  margin-bottom: 3px;
  font-weight: 850;
}
.qr-branding-entitlement-notice small {
  color: var(--muted);
  line-height: 1.35;
}
.qr-editor-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.qr-editor-tile {
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px 16px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  background: #fff;
  color: var(--ink);
  text-align: left;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}
.qr-editor-tile svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--green-dark);
}
.qr-editor-tile strong,
.qr-editor-tile small {
  display: block;
  min-width: 0;
}
.qr-editor-tile strong {
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}
.qr-editor-tile small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.qr-editor-tile.active {
  border-color: rgba(22, 163, 74, .34);
  background: #fbfffc;
  color: var(--green-dark);
}
.qr-editor-tile.active small {
  color: var(--green-dark);
}
.qr-editor-tile:hover,
.qr-editor-tile:focus-visible {
  border-color: rgba(22, 163, 74, .28);
  background: #fbfffc;
  outline: 0;
}
.qr-inline-controls {
  border: 1px solid #d7e6dd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.qr-inline-controls-head {
  min-height: 44px;
  border-bottom: 1px solid #edf1ee;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green-dark);
}
.qr-inline-controls-head svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  color: var(--green-dark);
}
.qr-inline-controls-head h3 {
  margin: 0;
  font-size: 15px;
  color: var(--green-dark);
  font-weight: 850;
}
.qr-inline-controls-body {
  padding: 12px 14px 16px;
  display: grid;
  gap: 12px;
}
.qr-accordion {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.qr-accordion.open {
  border-color: #d7e6dd;
}
.qr-accordion-head {
  width: 100%;
  min-height: 48px;
  border: 0;
  padding: 0 14px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--green-dark);
  text-align: left;
  cursor: pointer;
}
.qr-accordion-head svg {
  color: var(--green-dark);
}
.qr-accordion-body {
  padding: 12px 14px 16px;
  display: grid;
  gap: 12px;
  border-top: 1px solid #edf1ee;
}
.qr-logo-box {
  min-height: 76px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.qr-logo-mark {
  width: 68px;
  height: 50px;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  background: #f9fbfa;
  overflow: hidden;
}
.qr-logo-mark.has-custom-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 7px;
}
.qr-logo-fork-preview {
  display: block;
  width: 68px;
  height: 50px;
}
.qr-logo-fork-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}
.qr-logo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.qr-logo-actions .btn.disabled,
.qr-preset-card:disabled,
.qr-option:disabled,
.qr-color-button:disabled,
.qr-frame-color-button:disabled,
.qr-frame-color-reset:disabled,
.qr-text-input:disabled,
.qr-side-style-control input:disabled {
  cursor: not-allowed;
  opacity: .58;
}
.qr-logo-actions .btn.disabled {
  pointer-events: none;
}
.qr-logo-box small,
.qr-option small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.qr-option-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
	.qr-preset-grid {
	  display: grid;
	  grid-template-columns: 1fr;
	  gap: 7px;
	}
	.qr-preset-card {
	  min-height: 34px;
	  border: 1px solid var(--line);
	  border-radius: 8px;
	  padding: 0 10px;
	  display: grid;
	  grid-template-columns: 26px minmax(0, 1fr);
	  gap: 8px;
  align-items: center;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
	.qr-editor-workbench.inline .qr-preset-card {
	  min-height: 48px;
	  grid-template-columns: 34px minmax(0, 1fr);
	  gap: 10px;
	  padding: 0 12px;
}
.qr-preset-card.active,
.qr-preset-card:hover,
.qr-preset-card:focus-visible {
  border-color: rgba(11, 163, 75, .34);
  background: #fbfffc;
  outline: 0;
}
.qr-preset-card strong,
.qr-preset-card small {
  display: block;
  min-width: 0;
}
.qr-preset-card small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qr-preset-preview {
  display: grid;
  place-items: center;
}
.qr-preset-art {
  width: 24px;
  height: 24px;
  padding: 3px;
  gap: 1px;
  border-radius: 5px;
}
	.qr-editor-workbench.inline .qr-preset-art {
	  width: 30px;
	  height: 30px;
	  padding: 4px;
	  border-radius: 6px;
	}
	.qr-preset-color-row {
	  display: grid;
	  grid-template-columns: repeat(4, minmax(0, 1fr));
	  gap: 8px;
	}
	.qr-preset-color-row .qr-color-row {
	  min-width: 0;
	  min-height: 34px;
	  padding: 0 8px;
	}
	.qr-preset-color-row .qr-color-row span {
	  overflow: hidden;
	  text-overflow: ellipsis;
	  white-space: nowrap;
	}
	.qr-preset-color-row .qr-color-row code {
	  display: none;
	}
	.qr-preset-color-row .qr-color-row i {
	  width: 22px;
	  height: 22px;
	  flex: 0 0 auto;
	}
.qr-option {
  min-height: 72px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 5px;
  cursor: pointer;
}
.qr-option.active {
  border-color: #b8ded4;
  box-shadow: 0 6px 18px rgba(25, 71, 52, .12);
  background: #fff;
}
.qr-option.locked {
  opacity: .65;
}
.qr-option:disabled:hover,
.qr-option:disabled:focus-visible,
.qr-preset-card:disabled:hover,
.qr-preset-card:disabled:focus-visible {
  border-color: var(--line);
  background: #fff;
  outline: 0;
}
.mini-qr {
  width: 34px;
  height: 34px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.mini-qr i {
  border-radius: 1px;
}
.mini-qr i.on {
  background: #111;
}
.mini-qr.round i.on {
  border-radius: 999px;
}
.mini-qr.dash i.on {
  transform: scaleX(.65);
  border-radius: 999px;
}
.mini-finder {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}
.mini-finder svg {
  display: block;
  width: 34px;
  height: 34px;
  fill: #111;
}
.mini-lock {
  display: grid;
  place-items: center;
  color: var(--green-dark);
}
.mini-frame {
  width: 36px;
  height: 36px;
  border: 3px solid #111;
  border-radius: 4px;
  display: grid;
  place-items: center;
  position: relative;
}
.mini-frame b {
  width: 22px;
  height: 5px;
  background: #111;
  position: absolute;
  bottom: 3px;
}
.mini-border {
  width: 38px;
  height: 38px;
  display: block;
  position: relative;
  color: #111;
}
.mini-border.none {
  border: 1px dashed #d7dedb;
  border-radius: 6px;
}
.mini-border.none::after {
  content: "";
  position: absolute;
  inset: 13px 7px;
  border-top: 2px solid #9ca3af;
  transform: rotate(-28deg);
}
.mini-border.box {
  border: 3px solid currentColor;
  border-radius: 6px;
}
.mini-border.corners i,
.mini-border.rounded-corners i {
  width: 13px;
  height: 13px;
  position: absolute;
  border-color: currentColor;
  border-style: solid;
}
.mini-border.corners i {
  border-width: 0;
}
.mini-border.rounded-corners i {
  border-width: 0;
  border-radius: 5px;
}
.mini-border.corners i:nth-child(1),
.mini-border.rounded-corners i:nth-child(1) {
  top: 0;
  left: 0;
  border-top-width: 3px;
  border-left-width: 3px;
}
.mini-border.corners i:nth-child(2),
.mini-border.rounded-corners i:nth-child(2) {
  top: 0;
  right: 0;
  border-top-width: 3px;
  border-right-width: 3px;
}
.mini-border.corners i:nth-child(3),
.mini-border.rounded-corners i:nth-child(3) {
  right: 0;
  bottom: 0;
  border-right-width: 3px;
  border-bottom-width: 3px;
}
.mini-border.corners i:nth-child(4),
.mini-border.rounded-corners i:nth-child(4) {
  bottom: 0;
  left: 0;
  border-bottom-width: 3px;
  border-left-width: 3px;
}
.qr-control-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 10px;
}
	.qr-control-card label {
	  color: var(--green-dark);
	  font-size: 12px;
	  font-weight: 780;
	}
	.qr-side-text-grid {
	  display: grid;
	  gap: 10px;
	}
	.qr-side-text-row {
	  min-width: 0;
	  border: 1px solid var(--line);
	  border-radius: 8px;
	  padding: 10px;
	  display: grid;
	  gap: 7px;
	  background: #fff;
	}
	.qr-side-text-row span {
	  color: var(--green-dark);
	  font-size: 12px;
	  font-weight: 780;
	}
	.qr-side-text-value {
	  display: grid;
	  gap: 7px;
	}
	.qr-side-style-grid {
	  display: grid;
	  grid-template-columns: repeat(3, minmax(0, 1fr));
	  gap: 8px;
	  padding-top: 2px;
	}
	.qr-side-style-control {
	  min-width: 0;
	  display: grid;
	  grid-template-columns: minmax(0, 1fr) auto;
	  align-items: center;
	  gap: 3px 6px;
	}
	.qr-side-style-control span,
	.qr-side-style-control output {
	  font-size: 10px;
	}
	.qr-side-style-control output {
	  color: var(--muted);
	  font-variant-numeric: tabular-nums;
	}
	.qr-side-style-control input {
	  grid-column: 1 / -1;
	  width: 100%;
	  accent-color: var(--green);
	}
	.qr-side-text-row .qr-text-input {
	  width: 100%;
	}
.qr-color-row,
.qr-radio-row,
.qr-toggle-row {
  min-height: 36px;
  border: 1px solid #e8ece8;
  border-radius: 6px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #536158;
  font-size: 12px;
}
.qr-color-button {
  width: 100%;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.qr-color-button:hover,
.qr-color-button:focus-visible {
  border-color: var(--green-border);
  background: #fbfffc;
}
.qr-color-row span {
  margin-right: auto;
}
.qr-color-row code {
  border-radius: 4px;
  background: #eceeed;
  padding: 3px 6px;
  color: #536158;
  font-size: 11px;
}
.qr-color-row i {
  width: 26px;
  height: 24px;
  border: 1px solid #9ca3af;
  border-radius: 2px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.72);
}
.qr-frame-color-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.qr-eye-color-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.qr-frame-color-button {
  min-width: 0;
  min-height: 34px;
  border: 1px solid #e2e8e4;
  border-radius: 6px;
  padding: 0 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 7px;
  background: #fff;
  color: #536158;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.qr-frame-color-button:hover,
.qr-frame-color-button:focus-visible {
  border-color: var(--green-border);
  background: #fbfffc;
}
.qr-frame-color-button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}
.qr-frame-color-button i {
  width: 22px;
  height: 22px;
  border: 1px solid #9ca3af;
  border-radius: 3px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.72);
}
.qr-frame-color-reset {
  width: 100%;
  min-height: 34px;
}
.qr-palette {
  display: grid;
  gap: 7px;
  width: 158px;
  max-width: 100%;
}
.qr-palette > span {
  color: #536158;
  font-size: 11px;
}
.qr-palette-auto {
  width: 158px;
  height: 28px;
  border: 1px solid #dbe4df;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.qr-palette-auto.active,
.qr-palette-auto:hover,
.qr-palette-auto:focus-visible {
  border-color: #315fc8;
  box-shadow: inset 0 0 0 1px #315fc8;
}
.qr-palette-theme,
.qr-palette-standard {
  display: grid;
  gap: 2px;
}
.qr-palette-theme {
  grid-template-columns: repeat(8, 18px);
}
.qr-palette-standard {
  grid-template-columns: repeat(8, 18px);
}
.qr-palette button:not(.qr-palette-auto) {
  width: 18px;
  height: 18px;
  border: 1px solid #cfd8d3;
  border-radius: 2px;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.qr-palette button:not(.qr-palette-auto).active,
.qr-palette button:not(.qr-palette-auto):hover,
.qr-palette button:not(.qr-palette-auto):focus-visible {
  border-color: #315fc8;
  box-shadow: 0 0 0 1px #315fc8;
}
.qr-palette button:not(.qr-palette-auto) i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 1px;
}
.qr-color-backdrop {
  padding: 0;
  display: block;
  background: transparent;
}
.qr-color-modal {
  width: min(190px, calc(100vw - 28px));
  max-height: min(620px, calc(100vh - 40px));
  position: fixed;
  left: var(--qr-color-popover-left, 12px);
  top: var(--qr-color-popover-top, 12px);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(8, 23, 14, .22);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
}
.qr-color-modal-body {
  display: grid;
  justify-content: center;
  justify-items: start;
  gap: 10px;
  padding: 14px 16px 10px;
  overflow: auto;
}
.qr-color-modal .modal-actions {
  border-top: 1px solid var(--line);
  padding: 10px 16px 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-self: center;
  gap: 8px;
  width: 158px;
  box-sizing: content-box;
}
.qr-color-modal .modal-actions .btn {
  min-width: 0;
  width: 100%;
}
.active-dot,
.empty-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid var(--green-dark);
}
.active-dot {
  box-shadow: inset 0 0 0 3px #fff;
  background: var(--green-dark);
}
.empty-dot {
  border-color: #9bb9a6;
}
.qr-toggle-row {
  justify-content: space-between;
}
.switch {
  width: 36px;
  height: 20px;
  border: 0;
  border-radius: 999px;
  background: #d4d7d9;
  position: relative;
}
.switch::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 2px;
  left: 2px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
}
.switch.on {
  background: #73c7ba;
}
.switch.on::after {
  left: 18px;
}
.switch:disabled {
  cursor: not-allowed;
  opacity: .72;
}
.qr-text-input {
  height: 38px;
  border: 1px solid #b9ded5;
  border-radius: 5px;
  padding: 0 10px;
  font: inherit;
}
.qr-editor-stage {
  display: grid;
  gap: 14px;
  justify-items: center;
}
.stage-pill {
  width: min(520px, 100%);
  justify-self: start;
}
.qr-stage-canvas {
  width: min(520px, 100%);
  min-height: 300px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #f4f7f8;
}
.qr-frame-preview {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 0;
}
.qr-frame-preview.enabled {
  padding: 12px;
  border-radius: 8px;
  background: var(--qr-frame-color, #111);
  position: relative;
}
.qr-frame-preview.enabled .qr-editor-art {
  box-shadow: none;
}
.qr-frame-preview.enabled strong {
  color: #fff;
  font-size: 13px;
  letter-spacing: .02em;
}
.qr-frame-preview.enabled.plain {
  padding: 18px;
  border: 3px solid var(--qr-frame-color, #111);
  border-radius: 12px;
  background: #fff;
}
.qr-frame-preview.enabled.plain strong {
  color: var(--qr-frame-color, #111);
}
.qr-frame-preview.enabled.label {
  padding: 12px 12px 14px;
  border-radius: 8px;
  background: var(--qr-frame-color, #111);
}
.qr-frame-preview.enabled.pill {
  padding: 16px 22px 14px;
  border-radius: 32px;
  background: var(--qr-frame-color, #111);
}
.qr-frame-preview.enabled.pill strong {
  min-width: 132px;
  border-radius: 999px;
  padding: 6px 14px;
  color: var(--qr-pill-text, #111);
  background: var(--qr-pill-color, #fff);
  text-align: center;
}
.qr-frame-preview.enabled.circle {
  width: 340px;
  height: 340px;
  box-sizing: border-box;
  border-radius: 999px;
  padding: 28px 34px 42px;
  align-content: center;
  background: var(--qr-frame-color, #111);
}
.qr-frame-preview.enabled.circle .qr-editor-art {
  width: 220px;
  height: 220px;
  padding: 18px;
}
.qr-frame-preview.enabled.circle strong {
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qr-stage-url {
  width: min(420px, 100%);
  display: grid;
  grid-template-columns: 32px 32px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  color: #4bb8a9;
  font-size: 13px;
}
.qr-stage-url .icon-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  color: #4bb8a9;
  background: transparent;
}
.qr-stage-url span {
  overflow-wrap: anywhere;
}
.qr-stage-actions {
  width: min(520px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.qr-stage-actions .btn {
  min-height: 38px;
  justify-content: center;
}
.category, .item, .builder-row { border: 1px solid var(--line); border-radius: 8px; background: #fffefa; }
.category { min-height: 56px; padding: 10px 9px; display: grid; grid-template-columns: 18px minmax(0,1fr) auto; align-items: center; gap: 9px; }
.category.active, .item.active { border-color: #bad8c2; background: #f2fbf5; }
.subcat { margin-left: 18px; background: #fff; }
.drag { color: #aaa18c; font-weight: 900; }
.category strong, .item strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.category small, .item small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item { min-height: 76px; padding: 8px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; }
.item-main {
  min-width: 0;
  border: 0;
  padding: 2px 0;
  display: grid;
  grid-template-columns: 18px 48px minmax(0,1fr) auto;
  align-items: center;
  gap: 9px;
  background: transparent;
  color: inherit;
  text-align: left;
}
.menu-basic-list .item-main {
  grid-template-columns: 18px 48px minmax(150px, 1fr) auto;
}
.item-price { display: grid; justify-items: end; gap: 5px; font-size: 13px; font-weight: 900; color: var(--green-dark); }
.panel-row-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.panel-row-head h2 { margin-bottom: 4px; }
.panel-row-head p { max-width: 620px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.menu-photo-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.menu-photo-panel .panel-row-head {
  margin-bottom: 10px;
}
.menu-photo-pagination {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  margin: 8px 0 12px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}
.menu-photo-pagination.is-bottom {
  margin: 12px 0 0;
}
.menu-photo-pagination-status {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--text);
  font-size: 13px;
}
.menu-photo-pagination-status strong {
  font-size: 16px;
  font-weight: 900;
}
.menu-photo-pagination-status span {
  min-width: 0;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.menu-photo-page-size,
.menu-photo-page-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.menu-photo-page-size button {
  min-width: 40px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.menu-photo-page-size button:hover,
.menu-photo-page-size button:focus-visible {
  border-color: rgba(34, 128, 75, .34);
  color: var(--green-dark);
}
.menu-photo-page-size button.active {
  border-color: rgba(34, 128, 75, .42);
  background: var(--green-soft);
  color: var(--green-dark);
}
.menu-photo-page-controls span {
  min-width: 44px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.photo-gallery-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.photo-tile {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fffefa;
}
.photo-tile.is-banner {
  border-color: rgba(74, 165, 85, .45);
  box-shadow: 0 0 0 2px rgba(74, 165, 85, .12);
}
.photo-preview {
  position: relative;
  min-height: 118px;
  aspect-ratio: 1 / .72;
  padding: 10px;
  display: grid;
  align-content: end;
  gap: 6px;
  color: #fff;
  background: linear-gradient(135deg, #173d25, #0aa34f);
}
.photo-preview span,
.photo-preview strong,
.photo-preview em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(0,0,0,.26);
}
.photo-preview strong,
.photo-preview em {
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255,255,255,.9);
  color: var(--green-dark);
  font-size: 11px;
}
.photo-preview em {
  font-style: normal;
  background: rgba(17, 24, 39, .62);
  color: #fff;
}
.photo-edit-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(13, 44, 25, .52);
  backdrop-filter: blur(6px);
  opacity: .92;
}
.photo-edit-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.photo-edit-icon:hover,
.photo-edit-icon:focus-visible {
  background: rgba(255,255,255,.94);
  color: var(--green-dark);
}
.photo-status-dot {
  position: absolute;
  left: 8px;
  top: 8px;
}
.photo-modal {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  border-radius: 12px;
  padding: 16px;
  background: #fffefa;
  box-shadow: 0 30px 90px rgba(0,0,0,.34);
}
.simple-photo-modal {
  width: min(1080px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: hidden;
  border-radius: 12px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0,0,0,.28);
}
.simple-photo-modal-grid,
.photo-modal-grid {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(480px, 1.2fr);
  gap: 12px;
}
.modal-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.photo-upload-input {
  display: none;
}
.photo-ratio-preview {
  width: 100%;
  border-radius: 8px;
  padding: 12px;
  display: grid;
  align-content: end;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(135deg, #113820, #21b45c 62%, #dcefc1);
  background-size: cover;
  background-position: center;
  box-shadow: 0 12px 24px rgba(0,0,0,.12);
}
.banner-crop-stage {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 34px 0;
  background:
    linear-gradient(180deg, rgba(23,23,23,.38), rgba(23,23,23,.38)) top / 100% 34px no-repeat,
    linear-gradient(180deg, rgba(23,23,23,.38), rgba(23,23,23,.38)) bottom / 100% 34px no-repeat,
    #f5f5f5;
  overflow: hidden;
}
.banner-crop-stage.crop-stage-gallery,
.banner-crop-stage.crop-stage-menu,
.banner-crop-stage.crop-stage-mobile-sidebar-image,
.banner-crop-stage.crop-stage-menu-banner {
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(23,23,23,.2), rgba(23,23,23,.2)) top / 100% 24px no-repeat,
    linear-gradient(180deg, rgba(23,23,23,.2), rgba(23,23,23,.2)) bottom / 100% 24px no-repeat,
    #f5f5f5;
}
.banner-crop-preview.photo-ratio-preview {
  border-radius: 0;
  box-shadow: 0 0 0 2px rgba(255,255,255,.92);
}
.banner-crop-preview.photo-ratio-preview.profile {
  min-height: 180px;
}
.banner-crop-preview.photo-ratio-preview.gallery,
.banner-crop-preview.photo-ratio-preview.menu {
  border-radius: 8px;
  min-height: 210px;
}
.banner-crop-preview.photo-ratio-preview.menu-banner,
.photo-ratio-preview.menu-banner {
  min-height: 0;
  aspect-ratio: 1.72;
  border-radius: 8px;
}
.banner-crop-preview.photo-ratio-preview.mobile-sidebar-image,
.photo-ratio-preview.mobile-sidebar-image {
  min-height: 0;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
}
.banner-crop-preview em {
  width: max-content;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(255,255,255,.86);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
}
.crop-controls {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  display: grid;
  gap: 12px;
  background: #fff;
}
[data-shared-photo-uploader] .modal-head {
  min-height: 52px;
}
[data-shared-photo-uploader] .modal-head p {
  margin-top: 3px;
  font-size: 12px;
}
[data-shared-photo-uploader] .crop-controls {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 12px;
  padding: 10px;
}
[data-shared-photo-uploader] .crop-quick-actions {
  grid-column: 1 / -1;
}
[data-shared-photo-uploader] .crop-control-row {
  gap: 3px;
}
[data-shared-photo-uploader] .photo-ratio-note {
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.35;
}
[data-shared-photo-uploader] .banner-crop-stage {
  padding-top: 24px;
  padding-bottom: 24px;
}
[data-shared-photo-uploader] .banner-crop-preview.photo-ratio-preview.gallery,
[data-shared-photo-uploader] .banner-crop-preview.photo-ratio-preview.menu {
  min-height: 170px;
}
[data-shared-photo-uploader] .banner-crop-preview.photo-ratio-preview.mobile-sidebar-image {
  min-height: 0;
}
[data-shared-photo-uploader] .banner-crop-preview.photo-ratio-preview.profile {
  min-height: 145px;
}
.crop-control-row {
  display: grid;
  gap: 6px;
}
.crop-control-row label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.crop-control-row input[type="range"] {
  width: 100%;
  accent-color: var(--green-dark);
}
.crop-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.photo-ratio-preview.profile {
  aspect-ratio: 2400 / 1050;
}
.photo-ratio-preview.gallery {
  aspect-ratio: 16 / 10;
}
.photo-ratio-preview.menu {
  aspect-ratio: 4 / 3;
}
.photo-ratio-preview.mobile-sidebar-image {
  aspect-ratio: 16 / 9;
}
.photo-ratio-preview.is-empty-preview {
  border: 1px dashed rgba(11, 163, 75, .34);
  background: rgba(11, 163, 75, .055);
  color: var(--green-dark);
  box-shadow: none;
}
.photo-ratio-preview.is-empty-preview span {
  color: var(--green-dark);
  text-shadow: none;
}
.photo-ratio-preview span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 950;
  text-shadow: 0 1px 8px rgba(0,0,0,.32);
}
.photo-ratio-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.photo-modal-preview {
  min-height: 360px;
  border-radius: 8px;
  padding: 16px;
  display: grid;
  align-content: end;
  gap: 8px;
  color: #fff;
}
.photo-modal-preview span {
  font-size: 22px;
  font-weight: 900;
  text-shadow: 0 1px 8px rgba(0,0,0,.32);
}
.photo-modal-preview strong,
.photo-modal-preview small {
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255,255,255,.92);
  color: var(--green-dark);
  font-size: 12px;
}
.photo-modal-preview small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(17, 24, 39, .64);
  color: #fff;
}
.photo-modal-settings {
  display: grid;
  align-content: start;
  gap: 8px;
}
.photos-entitlement-notice {
  min-height: 58px;
  border: 1px solid rgba(217, 119, 6, .24);
  border-radius: 8px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background: #fffaf0;
}
.photos-entitlement-notice.locked {
  border-color: rgba(217, 119, 6, .24);
  background: #fffaf0;
}
.photos-entitlement-notice strong,
.photos-entitlement-notice small {
  display: block;
  min-width: 0;
}
.photos-entitlement-notice strong {
  margin-bottom: 3px;
  font-weight: 850;
}
.photos-entitlement-notice small {
  color: var(--muted);
  line-height: 1.35;
}
.photo-modal-settings .row-card {
  grid-template-columns: minmax(0, 1fr);
  justify-items: stretch;
}
.photo-modal-settings .row-card .btn,
.photo-modal-settings .row-card .badge {
  justify-self: start;
}
.photo-edit-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.section-settings-modal .textarea {
  min-height: 110px;
}
.photo-order-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}
.photo-order-controls strong,
.photo-order-controls small {
  display: block;
  min-width: 0;
}
.photo-order-controls small {
  margin-top: 3px;
  color: var(--muted);
}
.photo-order-buttons {
  display: flex;
  gap: 8px;
}
.photo-order-buttons .icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}
.photo-modal-actions {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}
.photo-modal-actions > div {
  min-width: 0;
  display: grid;
  gap: 6px;
}
.photo-modal-actions small {
  max-width: 280px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.photo-card-body { padding: 10px; display: grid; gap: 8px; }
.photo-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}
.photo-title-row strong,
.photo-card-body small,
.photo-card-body p {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.photo-card-body small { color: var(--muted); font-size: 12px; }
.photo-card-body p { color: var(--muted); font-size: 12px; }
.photo-usage { display: flex; flex-wrap: wrap; gap: 6px; }
.photo-usage span {
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 11px;
  font-weight: 800;
}
.photo-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.menu-photo-card .photo-preview {
  min-height: 82px;
  aspect-ratio: 4 / 3;
  padding: 8px;
}
.menu-photo-quality-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 28px;
  min-width: 28px;
  height: 28px;
  overflow: visible;
  border: 1px solid rgba(146, 107, 32, .22);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 250, 230, .94);
  color: #9a6a12;
  box-shadow: 0 8px 18px rgba(52, 38, 9, .12);
}
.menu-photo-quality-icon svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}
.menu-photo-card .photo-card-body {
  padding: 8px;
  gap: 6px;
}
.menu-photo-card .photo-card-body p {
  display: none;
}
.menu-photo-card .photo-usage span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.menu-photo-card .photo-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}
.menu-photo-card .photo-actions .btn {
  min-height: 30px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 400;
}
.menu-photo-empty {
  grid-column: 1 / -1;
  min-height: 180px;
  border: 1px dashed rgba(128, 146, 133, .45);
  border-radius: 8px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--muted);
  background: #fbfcfa;
  text-align: center;
}
.menu-photo-empty svg {
  width: 28px;
  height: 28px;
}
.photo-actions .btn {
  min-width: 0;
  padding: 0 8px;
  font-size: 12px;
}
.tone-0 { background: linear-gradient(135deg, #113820, #21b45c 62%, #dcefc1); }
.tone-1 { background: linear-gradient(135deg, #efe8d2, #1bad5a); }
.tone-2 { background: linear-gradient(135deg, #1a3d25, #6dc17a); }
.tone-3 { background: linear-gradient(135deg, #9d834b, #2fb86d); }
.tone-4 { background: linear-gradient(135deg, #e9dfc6, #0aa34f); }
.tone-5 { background: linear-gradient(135deg, #1f5131, #bcdca2); }
.builder-row { min-height: 76px; padding: 10px; display: grid; grid-template-columns: 26px 88px minmax(0,1fr) auto; align-items: center; gap: 12px; }
.builder-thumb { width: 88px; height: 56px; border-radius: 8px; background: #d9c993; }
.builder-thumb.map { background: radial-gradient(circle at 62% 44%, #16a34a 0 8px, transparent 9px), #d8ebdf; }
.builder-copy { min-width: 0; }
.builder-copy strong { display: block; margin-bottom: 4px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.builder-copy small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.preview-stage { border: 1px solid var(--line); border-radius: 8px; padding: 16px; background: rgba(255,255,255,.82); min-height: 650px; overflow: auto; }
.preview-workbench {
  min-width: 0;
  width: 100%;
}
.preview-canvas {
  min-width: 0;
}
.public-page { width: 100%; max-width: 1080px; margin: 0 auto; background: #f9f9f9; color: #111; padding: 24px; font-family: Arial, sans-serif; }
.public-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; font-weight: 700; }
.public-nav strong { color: #0ba34b; font-size: 22px; }
.public-tabs { display: flex; gap: 32px; align-items: center; }
.public-tabs span:first-child { color: #0ba34b; border: 1px solid #0ba34b; border-radius: 999px; padding: 8px 18px; }
.public-hero {
  height: 340px;
  border-radius: 2px;
  padding: 18px;
  display: grid;
  align-content: end;
  color: #fff;
  background: linear-gradient(135deg, #07150b, #0ba34b 50%, #d4e6ad);
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
}
.public-hero span,
.public-strip span,
.public-gallery span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}
.public-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin: 18px 0 30px; }
.public-strip div,
.public-gallery div,
.public-gallery-button {
  height: 90px;
  min-width: 0;
  border: 0;
  border-radius: 6px;
  padding: 8px;
  display: grid;
  align-content: end;
  text-align: left;
  background: linear-gradient(135deg, #f8efe2, #0ba34b);
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 22px rgba(0,0,0,.14);
  cursor: pointer;
}
.public-gallery-button:focus-visible {
  outline: 3px solid rgba(11, 163, 75, .35);
  outline-offset: 3px;
}
.public-info { display: grid; grid-template-columns: 1.4fr .45fr .45fr; gap: 30px; margin-bottom: 44px; }
.public-info h2, .public-section h2, .public-map-section h2 { color: #0ba34b; font-size: 20px; }
.public-info p, .public-info li, .public-section p, .public-map-section p { font-size: 14px; line-height: 1.5; }
.public-info ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.public-info li span { color: #0ba34b; margin-left: 12px; }
.public-section-image { height: 360px; background: linear-gradient(135deg, #fdfbf7, #d9e5c2); box-shadow: 0 10px 28px rgba(0,0,0,.13); margin-bottom: 18px; }
.public-gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-bottom: 28px; }
.public-map-section {
  margin-top: 44px;
}
.public-map { height: 220px; background: #eef6ee; overflow: hidden; }
.public-google-map { min-height: 220px; }
.public-lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  padding: 28px;
  display: grid;
  place-items: center;
  background: rgba(6, 15, 10, .68);
}
.public-lightbox-card {
  position: relative;
  width: min(860px, calc(100vw - 48px));
  padding: 16px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(0,0,0,.38);
}
.public-lightbox-card .modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
}
.public-lightbox-image {
  aspect-ratio: 16 / 10;
  min-height: 0;
  border-radius: 8px;
  padding: 18px;
  display: grid;
  align-content: end;
  color: #fff;
  background: linear-gradient(135deg, #173d25, #0aa34f);
  background-size: cover;
  background-position: center;
}
.public-lightbox-image span {
  font-size: 18px;
  font-weight: 900;
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}
.public-profile-backdrop {
  align-items: flex-start;
  padding: 28px;
  overflow: auto;
}
.public-profile-modal {
  width: min(1180px, calc(100vw - 40px));
  border-radius: 12px;
  padding: 16px;
  background: #fffefa;
  box-shadow: 0 30px 90px rgba(0,0,0,.34);
}
.public-profile-preview-frame {
  position: relative;
  height: calc(100vh - 170px);
  min-height: 560px;
  max-height: calc(100vh - 150px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.public-profile-preview-frame .public-page {
  max-width: 100%;
}
.public-profile-preview-frame .guest-preview-iframe {
  min-height: 100%;
}
.profile-load-info-modal {
  width: min(820px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 12px;
  padding: 16px;
  background: #fffefa;
  box-shadow: 0 30px 90px rgba(0,0,0,.32);
}
.onboarding-backdrop {
  padding: 24px;
}
.onboarding-modal {
  width: min(580px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  display: grid;
  gap: 16px;
  background: #fffefa;
  box-shadow: 0 30px 90px rgba(0,0,0,.3);
}
.onboarding-modal .modal-head h2 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.22;
}
.onboarding-copy {
  display: grid;
  gap: 10px;
  color: var(--ink);
}
.onboarding-copy p {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}
.onboarding-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.profile-load-info-list {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}
.profile-load-info-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.profile-load-info-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.profile-load-info-row code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #172017;
  font-size: 12px;
  line-height: 1.45;
}
.public-menu { width: 100%; max-width: 900px; margin: 0 auto; background: #fff; padding: 24px; border-radius: 8px; }
.menu-row { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 16px 0; border-bottom: 1px solid #eee; }
.menu-row h3 { margin-bottom: 4px; color: #111; }
.menu-row p { font-size: 14px; }
.preview-stage.mobile .public-page, .preview-stage.mobile .public-menu { width: 390px; max-width: 100%; min-height: 760px; border-radius: 24px; padding: 16px; box-shadow: 0 22px 60px rgba(0,0,0,.2); }
.preview-stage.mobile .public-nav { display: block; }
.preview-stage.mobile .public-tabs { margin-top: 12px; gap: 16px; }
.preview-stage.mobile .public-hero { height: 180px; }
.preview-stage.mobile .public-strip, .preview-stage.mobile .public-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
.preview-stage.mobile .public-info { grid-template-columns: 1fr; gap: 16px; }
.preview-stage.mobile .public-section-image { height: 190px; }
.preview-stage.mobile .public-map { height: 150px; }

.frontend-phone-shell {
  width: 402px;
  max-width: 100%;
  min-height: 760px;
  margin: 0 auto;
  border-radius: 28px;
  padding: 10px;
  background: #101010;
  box-shadow: 0 24px 60px rgba(0,0,0,.24);
}
.frontend-phone-shell.compact {
  width: 312px;
  min-height: 610px;
  padding: 8px;
}
.frontend-phone-shell.modal-phone {
  width: 356px;
  max-width: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: 9px;
}
.frontend-phone-screen {
  height: 760px;
  overflow: auto;
  border-radius: 21px;
  background: #fff;
  color: #080808;
  font-family: Arial, Helvetica, sans-serif;
  clip-path: inset(0 round 21px);
  scrollbar-width: none;
  overscroll-behavior: contain;
}
.frontend-phone-screen::-webkit-scrollbar { width: 0; height: 0; }
.frontend-phone-shell.compact .frontend-phone-screen { height: 590px; }
.frontend-phone-shell.modal-phone .frontend-phone-screen {
  height: min(680px, calc(100vh - 156px));
}
.lm-mobile-menu, .lm-detail-mobile, .lm-info-backdrop {
  position: relative;
  min-height: 100%;
  background: #fff;
  overflow: hidden;
}
.lm-status {
  height: 34px;
  padding: 8px 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #111;
  font-size: 13px;
  font-weight: 700;
}
.lm-mobile-top {
  height: 56px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 24px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #f1f1f1;
}
.lm-mobile-top strong {
  display: block;
  font-size: 22px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lm-menu-icon, .lm-lang, .lm-close {
  border: 0;
  background: transparent;
  color: #111;
}
.lm-menu-icon {
  width: 22px;
  height: 22px;
  padding: 0;
  display: grid;
  align-content: center;
  gap: 4px;
}
.lm-menu-icon span {
  height: 1.5px;
  width: 16px;
  background: #0aa34f;
}
.lm-lang { font-size: 12px; font-weight: 800; }
.lm-hero {
  position: relative;
  width: 100%;
  border: 0;
  height: 222px;
  padding: 18px;
  display: grid;
  align-content: end;
  gap: 7px;
  overflow: hidden;
  color: #fff;
  text-align: left;
  background:
    radial-gradient(circle at 50% 30%, rgba(255,255,255,.65) 0 5px, transparent 6px),
    radial-gradient(circle at 49% 37%, #ba0f53 0 44px, transparent 45px),
    radial-gradient(circle at 21% 70%, #121212 0 90px, transparent 91px),
    linear-gradient(135deg, #141414, #0e2718 55%, #6e080d);
}
.lm-hero.pasta {
  height: 475px;
  background:
    radial-gradient(ellipse at 51% 69%, #dd6f18 0 31%, transparent 32%),
    radial-gradient(ellipse at 48% 58%, #f08f24 0 35%, transparent 36%),
    radial-gradient(circle at 50% 20%, #4b2410 0 30%, transparent 31%),
    linear-gradient(145deg, #090909, #1c160f 55%, #06170c);
}
.lm-hero.berries {
  background:
    radial-gradient(circle at 48% 36%, #9e0c55 0 46px, transparent 47px),
    radial-gradient(circle at 58% 28%, #e43875 0 17px, transparent 18px),
    radial-gradient(circle at 78% 67%, #151515 0 90px, transparent 91px),
    linear-gradient(135deg, #111, #152416 52%, #53070b);
}
.lm-hero.has-banner span,
.lm-hero.has-banner strong,
.lm-hero.has-banner small,
.lm-hero.has-banner em {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.lm-hero.has-banner span {
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255,255,255,.9);
  color: #14532d;
  font-size: 11px;
  font-weight: 900;
}
.lm-hero.has-banner strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 22px;
  line-height: 1.08;
}
.lm-hero.has-banner small {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255,255,255,.86);
  font-size: 13px;
  line-height: 1.32;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.lm-hero.has-banner em {
  width: max-content;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(0,0,0,.58);
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}
.lm-hero.blurred { filter: blur(2px); opacity: .72; }
.lm-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 12px;
}
.lm-dots span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #fff;
}
.lm-dots .active {
  width: 12px;
  height: 12px;
  margin-top: -1.5px;
}
.lm-category-rail {
  padding: 14px 16px 12px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  background: #fff;
  scrollbar-width: none;
}
.lm-category-rail::-webkit-scrollbar { display: none; }
.lm-category-rail button {
  min-width: 74px;
  border: 0;
  border-radius: 7px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.09);
}
.lm-category-rail strong {
  display: block;
  padding: 6px 5px;
  font-size: 12px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lm-cat-photo {
  display: block;
  height: 47px;
  background: linear-gradient(135deg, #e8ead5, #0aa34f);
  background-size: cover;
  background-position: center;
}
.lm-feature-strip {
  width: calc(100% - 32px);
  min-height: 76px;
  margin: 0 16px 18px;
  border: 0;
  border-radius: 7px;
  padding: 0;
  display: grid;
  grid-template-columns: 110px 1fr;
  text-align: left;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}
.lm-feature-photo { min-height: 76px; background: linear-gradient(135deg, #0d0d0d, #0aa34f); background-size: cover; background-position: center; }
.lm-feature-strip > span:nth-child(2) { padding: 9px 10px; }
.lm-feature-strip strong, .lm-dish-copy strong {
  display: block;
  color: #101010;
  font-size: 14px;
  line-height: 1.15;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lm-feature-strip small, .lm-dish-copy small {
  display: block;
  margin-top: 8px;
  color: #111;
  font-size: 11px;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.lm-list-section { padding: 0 16px 22px; }
.lm-list-section h2 {
  margin: 0 0 13px;
  color: #0aa34f;
  font-size: 22px;
  line-height: 1.1;
}
.lm-list-section h3 {
  margin: 0 0 10px;
  color: #111;
  font-size: 14px;
  line-height: 1.1;
}
.lm-dish-row {
  width: 100%;
  min-height: 62px;
  margin-bottom: 7px;
  border: 0;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
  text-align: left;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}
.lm-dish-photo {
  display: block;
  width: 62px;
  height: 62px;
  border-radius: 7px;
  background: linear-gradient(135deg, #1b1b1b, #d86718);
  background-size: cover;
  background-position: center;
}
.lm-feature-photo[style*="placeholder-food"],
.lm-cat-photo[style*="placeholder-food"],
.lm-dish-photo[style*="placeholder-food"],
.lm-detail-photo[style*="placeholder-food"] {
  border: 1px solid #e6edf3;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.78);
}
.lm-dish-copy {
  min-width: 0;
  padding: 8px 10px 8px 0;
  display: grid;
  align-content: start;
}
.lm-dish-head {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}
.lm-dish-price {
  color: #0aa34f;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}
.lm-allergens {
  display: flex;
  gap: 3px;
  margin-top: 12px;
}
.lm-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}
.lm-tag-row .menu-tag-chip {
  min-height: 20px;
  border-color: rgba(17, 24, 39, .08);
  padding: 4px 7px;
  background: #f5f7f5;
  color: #626b66;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}
.lm-tag-row .menu-tag-chip svg {
  width: 11px;
  height: 11px;
  stroke-width: 2.15;
}
.lm-allergens span {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #d4d4d4;
  color: #fff;
  font-size: 10px;
  line-height: 1;
}
.food-1 { background: radial-gradient(circle at 42% 34%, #e1c533 0 18%, transparent 19%), radial-gradient(circle at 26% 78%, #1e8b45 0 20%, transparent 21%), linear-gradient(135deg, #111, #d86a21); }
.food-2 { background: radial-gradient(circle at 55% 48%, #f5d833 0 22%, transparent 23%), radial-gradient(circle at 30% 55%, #f17522 0 22%, transparent 23%), linear-gradient(135deg, #1e1d16, #338b37); }
.food-3 { background: radial-gradient(circle at 46% 48%, #d9a312 0 24%, transparent 25%), linear-gradient(135deg, #081009, #1f6a32 55%, #e8d54c); }
.food-4 { background: radial-gradient(circle at 52% 42%, #ffd67a 0 22%, transparent 23%), linear-gradient(135deg, #121212, #437f36 55%, #f3f1dd); }
.food-5 { background: radial-gradient(circle at 36% 42%, #f1d89b 0 26%, transparent 27%), linear-gradient(135deg, #0e0e0e, #b2211b 58%, #f5e7c0); }
.food-6 { background: radial-gradient(circle at 45% 42%, #f5efe2 0 26%, transparent 27%), linear-gradient(135deg, #0c0d0b, #1b7933 55%, #d07c27); }
.food-7 { background: radial-gradient(circle at 50% 52%, #e7b36a 0 25%, transparent 26%), linear-gradient(135deg, #141414, #c93f1e 52%, #eadfc9); }
.food-8 { background: radial-gradient(circle at 44% 50%, #efdcc8 0 21%, transparent 22%), linear-gradient(135deg, #111, #196a34 56%, #de3330); }
.lm-info-backdrop { overflow: hidden; }
.lm-info-backdrop::before,
.lm-desktop-menu.detail-mode::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(4px);
}
.lm-info-panel {
  position: absolute;
  z-index: 4;
  left: 16px;
  right: 42px;
  top: 48px;
  border-radius: 14px;
  padding: 48px 16px 16px;
  background: #fff;
  color: #111;
  box-shadow: 0 20px 60px rgba(0,0,0,.28);
}
.lm-info-panel h2 {
  margin: 0 0 14px;
  color: #0aa34f;
  font-size: 20px;
  line-height: 1.1;
}
.lm-info-panel h3 {
  margin: 26px 0 10px;
  color: #0aa34f;
  font-size: 14px;
}
.lm-info-panel p {
  color: #111;
  font-size: 14px;
  line-height: 1.42;
}
.lm-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 24px;
  height: 24px;
  padding: 0;
  font-size: 26px;
  line-height: 1;
  font-weight: 200;
}
.lm-hours {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 18px;
  font-size: 14px;
}
.lm-hours strong {
  color: #0aa34f;
  font-weight: 500;
}
.lm-info-photo {
  height: 180px;
  margin-top: 28px;
  border-radius: 6px;
  background: radial-gradient(circle at 42% 44%, #cfe9a3 0 18%, transparent 19%), linear-gradient(135deg, #071007, #0a5725 48%, #d2e985);
}
.lm-detail-mobile {
  min-height: auto;
  overflow: visible;
  background: #fff;
}
.lm-mobile-menu,
.lm-detail-mobile,
.lm-info-backdrop {
  color: var(--theme-text, #111);
  font-family: var(--theme-font, Arial, Helvetica, sans-serif);
  background:
    radial-gradient(circle at 18px 18px, rgba(17,24,39, calc(.08 * var(--theme-pattern-opacity, 0))) 0 1px, transparent 1.5px),
    var(--theme-bg, #fff);
  background-size: 18px 18px;
}
.lm-status,
.lm-mobile-top strong,
.lm-menu-icon,
.lm-close,
.lm-list-section h3,
.lm-feature-strip strong,
.lm-dish-copy strong,
.lm-info-panel,
.lm-info-panel p {
  color: var(--theme-text, #111);
}
.lm-mobile-top {
  border-bottom-color: color-mix(in srgb, var(--theme-primary, #0aa34f), white 82%);
}
.lm-menu-icon span {
  background: var(--theme-primary, #0aa34f);
}
.lm-lang,
.lm-list-section h2,
.lm-dish-price,
.lm-info-panel h2,
.lm-info-panel h3,
.lm-hours strong {
  color: var(--theme-primary, #0aa34f);
}
.lm-category-rail {
  background: transparent;
}
.lm-category-rail button,
.lm-feature-strip,
.lm-dish-row,
.lm-info-panel {
  background: color-mix(in srgb, var(--theme-bg, #fff), white 76%);
}
.lm-feature-strip small,
.lm-dish-copy small {
  color: var(--theme-muted, #111);
}
.lm-tag-row .menu-tag-chip {
  background: color-mix(in srgb, var(--theme-primary, #0aa34f), white 90%);
  color: var(--theme-primary, #626b66);
}
.lm-detail-sheet {
  --lm-detail-radius: 14px;
  position: relative;
  left: 0;
  right: 0;
  top: auto;
  z-index: 2;
  margin-top: -54px;
  border-radius: var(--lm-detail-radius);
  overflow: hidden;
  clip-path: inset(0 round var(--lm-detail-radius));
  background-clip: padding-box;
  background: #fff;
  box-shadow: 0 -12px 34px rgba(0,0,0,.22);
  isolation: isolate;
}
.lm-drag-handle {
  position: absolute;
  top: -18px;
  left: 50%;
  width: 50px;
  height: 4px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: #fff;
}
.lm-detail-photo {
  width: 100%;
  height: 184px;
  background: linear-gradient(135deg, #0d0d0d, #0aa34f);
}
.lm-detail-body { padding: 14px 16px 22px; }
.lm-detail-title {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
}
.lm-detail-title h2 {
  margin: 0;
  color: #111;
  font-size: 17px;
  line-height: 1.2;
}
.lm-detail-title strong {
  color: #0aa34f;
  font-size: 16px;
}
.lm-detail-body p {
  margin-top: 8px;
  color: #111;
  font-size: 13px;
  line-height: 1.35;
}
.lm-desktop-menu {
  position: relative;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 28px;
  background: #fafafa;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
}
.lm-desktop-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 26px;
}
.lm-desktop-nav strong {
  color: #0aa34f;
  font-size: 24px;
}
.lm-desktop-nav nav {
  display: flex;
  gap: 52px;
  align-items: center;
}
.lm-desktop-nav span {
  font-size: 19px;
  font-weight: 800;
}
.lm-desktop-nav .active {
  color: #0aa34f;
  border: 1px solid #0aa34f;
  border-radius: 999px;
  padding: 10px 18px;
}
.lm-desktop-menu .lm-hero {
  height: 475px;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.lm-desktop-menu .lm-category-rail {
  padding: 20px 0 34px;
  gap: 26px;
  background: transparent;
}
.lm-desktop-menu .lm-category-rail button { min-width: 218px; }
.lm-desktop-menu .lm-cat-photo { height: 86px; }
.lm-desktop-menu .lm-category-rail strong {
  padding: 12px 8px;
  font-size: 16px;
}
.lm-desktop-list h2 {
  margin: 0 0 14px;
  color: #0aa34f;
  font-size: 22px;
}
.lm-desktop-list h3 {
  margin: 0 0 14px;
  font-size: 16px;
}
.lm-desktop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 22px;
}
.lm-desktop-card {
  min-height: 62px;
  border: 0;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
  text-align: left;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}
.lm-desktop-modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 40px;
}
.lm-modal-card {
  --lm-detail-radius: 14px;
  width: 560px;
  max-height: min(860px, calc(100vh - 80px));
  overflow: auto;
  border-radius: var(--lm-detail-radius);
  clip-path: inset(0 round var(--lm-detail-radius));
  background-clip: padding-box;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0,0,0,.42);
  scrollbar-width: none;
  isolation: isolate;
}
.lm-modal-card::-webkit-scrollbar { width: 0; height: 0; }
.lm-modal-card .lm-detail-photo { height: 520px; }
.lm-info-panel.desktop {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  width: 440px;
}

@media (max-width: 1240px) {
  .dash-grid, .preview-grid, .admin-grid { grid-template-columns: 1fr; }
  .qr-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qr-editor-workbench { grid-template-columns: 1fr; }
  .qr-editor-sidebar { order: 2; }
  .qr-editor-stage { order: 1; }
  .qr-editor-embed-inline .qr-editor-workbench.inline {
    grid-template-columns: minmax(340px, .95fr) minmax(320px, 1.05fr);
  }
  .qr-editor-embed-inline .qr-editor-sidebar,
  .qr-editor-embed-inline .qr-editor-stage {
    order: initial;
  }
  .editor-grid { grid-template-columns: minmax(190px,.8fr) minmax(280px,1.24fr) minmax(230px,.86fr); gap: 10px; }
  .menu-basic-workbench { grid-template-columns: minmax(240px, .8fr) minmax(420px, 1.2fr); }
  .menu-basic-actions { grid-template-columns: repeat(4, minmax(176px, 1fr)); overflow-x: auto; padding-bottom: 2px; }
  .menu-item-meta-grid { grid-template-columns: 1fr; }
  .menu-choice-grid.allergens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phone { width: 330px; }
  .photo-gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .menu-photo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1040px) {
  .editor-grid { grid-template-columns: 1fr; }
  .menu-basic-workbench { grid-template-columns: 1fr; }
  .menu-public-health-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .topbar { flex-wrap: wrap; }
  .topbar-context { width: 100%; order: 2; }
  .search-wrap { flex: 1; }
  .search-box { width: 100%; }
  .topbar-url-badge { flex: 0 1 auto; }
  .page-head { display: grid; }
  .menu-basic-head { display: grid; align-items: start; }
  .menu-basic-actions { grid-template-columns: repeat(4, minmax(176px, 1fr)); }
  .menu-public-health-grid { grid-template-columns: 1fr; }
  .qr-status-grid,
  .qr-status-main,
  .qr-status-compact {
    grid-template-columns: 1fr;
  }
  .menu-item-toolbar { grid-template-columns: 1fr; }
  .menu-item-filter-row { justify-content: flex-start; }
	  .qr-preset-grid {
	    grid-template-columns: 1fr;
	  }
	  .qr-preset-color-row {
	    grid-template-columns: repeat(2, minmax(0, 1fr));
	  }
  .menu-item-modal-grid,
  .menu-item-meta-grid,
  .menu-item-inline-settings,
  .menu-item-availability {
    grid-template-columns: 1fr;
  }
  .menu-choice-grid,
  .menu-choice-grid.allergens,
  .menu-item-photo-actions,
  .menu-photo-grid,
  .menu-photo-bank-grid {
    grid-template-columns: 1fr;
  }
  .menu-photo-pagination {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .menu-photo-page-size,
  .menu-photo-page-controls {
    justify-content: space-between;
  }
  .menu-item-modal,
  .menu-item-create-modal,
  .menu-category-modal,
  .menu-delete-modal {
    width: min(100vw - 16px, 720px);
    max-height: calc(100dvh - 16px);
    padding: 0;
    gap: 0;
  }
  .menu-item-modal > .modal-head,
  .menu-item-create-modal > .modal-head,
  .menu-category-modal > .modal-head,
  .menu-delete-modal > .modal-head {
    position: sticky;
    top: 0;
    z-index: 4;
    padding: 14px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }
  .menu-item-modal > .menu-item-modal-grid,
  .menu-item-modal > .menu-item-meta-grid,
  .menu-item-create-modal > .menu-item-create-grid,
  .menu-category-modal > .menu-category-form,
  .menu-delete-modal > .menu-delete-summary {
    padding: 14px;
  }
  .menu-item-modal > .text-editor-actions,
  .menu-item-create-modal > .text-editor-actions,
  .menu-category-modal > .text-editor-actions,
  .menu-delete-modal > .text-editor-actions {
    position: sticky;
    bottom: 0;
    z-index: 4;
    margin: 0;
    padding: 12px 14px;
    background: #fff;
    border-top: 1px solid var(--line);
  }
  .menu-item-create-modal > .text-editor-actions .modal-note {
    display: none;
  }
  .profile-banner-preview { grid-template-columns: 1fr; }
  .profile-banner-actions { justify-content: flex-end; justify-self: end; }
  .profile-editor-toolbar,
  .editable-public-nav,
  .editable-section-head {
    display: grid;
  }
  .profile-editor-toolbar-actions,
  .profile-section-add-row,
  .editable-public-tabs {
    justify-content: flex-start;
  }
  .editable-public-nav,
  .editable-public-strip,
  .editable-public-sections,
  .editable-public-info {
    padding: 18px;
  }
  .editable-public-info {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .additional-info-prompt {
    width: calc(100% - 36px);
    margin: 0 18px 34px;
    display: grid;
    justify-items: start;
  }
  .editable-image-field.image-hero {
    width: calc(100% - 36px);
    min-height: 310px;
    margin: 0 18px;
  }
  .editable-photo-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .editable-photo-strip-wrap .editable-photo-strip {
    display: flex;
    gap: 12px;
  }
  .editable-photo-strip-wrap .editable-image-field.image-thumb {
    flex-basis: 136px;
  }
  .editable-image-field.image-thumb em {
    top: 8px;
    right: 8px;
    padding: 5px 8px;
    opacity: .9;
    transform: none;
  }
  .editable-image-field.image-thumb em span {
    display: none;
  }
  .editable-block-head,
  .editable-section-toolbar {
    align-items: flex-start;
  }
  .editable-section-toolbar {
    left: 10px;
    right: 10px;
    grid-template-columns: max-content;
    justify-content: flex-end;
  }
  .editable-rich-text.section-body > span {
    column-count: 1;
  }
  .editable-title-input {
    font-size: 34px;
  }
  .editable-public-info,
  .editable-profile-section {
    grid-template-columns: 1fr;
  }
  .editable-section-media {
    min-height: 190px;
  }
  .editable-public-map {
    margin: 0 18px 18px;
  }
  .qr-editor-top { grid-template-columns: 1fr; }
  .qr-option-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qr-stage-canvas { min-height: 240px; }
  .menu-banner-grid {
    grid-template-columns: 1fr;
  }
  .menu-banner-modal-grid {
    grid-template-columns: 1fr;
  }
  .menu-banner-large-preview {
    min-height: 0;
  }
  .menu-banner-image-actions {
    grid-template-columns: 1fr;
  }
  .cols-4, .cols-3, .cols-2, .form-grid, .gallery, .photo-gallery-grid, .photo-modal-grid, .simple-photo-modal-grid { grid-template-columns: 1fr; }
  .upgrade-strip,
  .profile-progress { grid-template-columns: 1fr; }
  .item { grid-template-columns: 18px 44px minmax(0,1fr); }
  .item-price { grid-column: 3; justify-items: start; }
}
@media (max-width: 680px) {
  .qr-editor-workbench.inline,
  .qr-editor-workbench.inline .qr-editor-stage,
  .qr-editor-workbench.inline .qr-editor-sidebar {
    grid-template-columns: 1fr;
  }
  .qr-editor-workbench.inline .qr-editor-sidebar {
    display: grid;
  }
  .qr-editor-workbench.inline .qr-editor-tile-grid,
  .qr-editor-workbench.inline .qr-inline-controls,
  .qr-editor-workbench.inline .qr-editor-stage {
    grid-column: 1;
  }
	  .qr-editor-tile-grid {
	    grid-template-columns: repeat(2, minmax(0, 1fr));
	  }
	  .qr-preset-color-row {
	    grid-template-columns: 1fr;
	  }
  .qr-stage-actions {
    grid-template-columns: 1fr;
  }
}

/* Clean redesign layer: visual system only, no layout/behavior changes. */
:root {
  --bg: #f9fafb;
  --card: #ffffff;
  --white: #ffffff;
  --ink: #171717;
  --muted: #737373;
  --line: #e5e5e5;
  --green: #16a34a;
  --green-dark: #15803d;
  --green-hover: #15803d;
  --green-soft: #dcfce7;
  --amber: #d97706;
  --amber-soft: #fef3c7;
  --red: #dc2626;
  --red-soft: #fee2e2;
  --blue: #2563eb;
  --blue-soft: #dbeafe;
  --shadow: 0 1px 0 rgba(15, 23, 42, .02), 0 4px 14px -6px rgba(15, 23, 42, .05);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

.app,
.main {
  background: var(--bg);
}

.sidebar {
  background: #fff;
  border-right-color: var(--line);
  gap: 18px;
}

.brand {
  font-size: 16px;
  font-weight: 800;
}

.brand-name span {
  color: var(--ink);
}

.mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #2f6547;
  font-size: 13px;
  font-weight: 800;
}

.tenant {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 18px 8px 0;
  background: transparent;
}

.tenant strong {
  margin-bottom: 2px;
  font-size: 14px;
  font-weight: 700;
}

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

.nav {
  gap: 4px;
}

.nav-label {
  padding: 10px 10px 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.nav-item {
  min-height: 40px;
  border-radius: 8px;
  color: #525252;
}

.nav-item.active {
  background: var(--green-soft);
  color: var(--green-dark);
}

.nav-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: transparent;
  color: currentColor;
}

.nav-item.active .nav-icon {
  background: transparent;
  color: currentColor;
}

.nav-icon svg {
  width: 17px;
  height: 17px;
}

.nav-title {
  font-size: 14px;
  font-weight: 600;
}

.topbar {
  min-height: 64px;
  border-bottom-color: var(--line);
  padding: 12px 24px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
}

.search-box,
.url-menu,
.account-menu,
.mobile-preview-dialog,
.text-editor-modal,
.menu-item-create-modal,
.menu-item-modal,
.menu-photo-bank-modal,
.menu-import-export-modal,
.menu-banner-modal,
.photo-modal,
.simple-photo-modal,
.section-settings-modal {
  border-color: var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.menu-banner-modal,
.photo-modal {
  width: min(920px, calc(100vw - 32px));
  min-width: 0;
}

.simple-photo-modal[data-shared-photo-uploader] {
  width: min(1080px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  min-width: 0;
  overflow: hidden;
}

@media (max-width: 760px) {
  .simple-photo-modal[data-shared-photo-uploader] {
    width: calc(100vw - 12px);
    max-height: calc(100dvh - 12px);
    padding: 10px;
  }
  [data-shared-photo-uploader] .simple-photo-modal-grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  [data-shared-photo-uploader] .banner-crop-stage {
    padding: 10px;
  }
  [data-shared-photo-uploader] .banner-crop-preview.photo-ratio-preview.profile,
  [data-shared-photo-uploader] .banner-crop-preview.photo-ratio-preview.gallery,
  [data-shared-photo-uploader] .banner-crop-preview.photo-ratio-preview.menu {
    min-height: 90px;
  }
  [data-shared-photo-uploader] .photo-ratio-note {
    margin-top: 4px;
    font-size: 10px;
  }
  [data-shared-photo-uploader] .photo-modal-settings {
    gap: 5px;
  }
  [data-shared-photo-uploader] .photo-modal-settings .row-card {
    min-height: 44px;
    padding: 7px;
  }
  [data-shared-photo-uploader] .crop-controls {
    gap: 4px 8px;
    padding: 7px;
  }
  [data-shared-photo-uploader] .photo-modal-actions {
    align-items: center;
  }
}

.user-detail-modal {
  border-color: var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.search-box {
  height: 38px;
}

.search-box svg {
  stroke: var(--muted);
}

.search {
  color: var(--ink);
  font-size: 14px;
}

.search::placeholder,
.input::placeholder,
.textarea::placeholder {
  color: #a3a3a3;
}

.search-result:hover,
.search-result:focus-visible,
.url-menu-item:hover,
.url-menu-item:focus-visible,
.account-menu-item:hover,
.account-menu-item:focus-visible {
  background: var(--bg-muted);
}

.btn,
.modal-close,
.modal-segmented button,
.qr-text-input {
  height: 38px;
  min-height: 38px;
  border-color: var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  box-shadow: none;
}

.topbar .btn {
  height: 36px;
  min-height: 36px;
  font-size: 13px;
  font-weight: 600;
}

.btn.primary,
.modal-segmented button.active,
.switch.on,
.qr-toggle-row .switch.on {
  border-color: rgba(22, 163, 74, .18);
  background: var(--green-soft);
  color: var(--green-dark);
}

.btn.primary:hover {
  border-color: rgba(22, 163, 74, .28);
  background: #bbf7d0;
  color: var(--green-dark);
}

.btn.danger {
  border-color: rgba(220, 38, 38, .16);
  background: var(--red-soft);
  color: var(--red);
}

.avatar {
  width: 36px;
  height: 36px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
}

.content {
  padding: 24px;
}

.page-head {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

h1 {
  margin-bottom: 4px;
  font-size: 30px;
  line-height: 1.12;
  font-weight: 800;
}

h2 {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.22;
  font-weight: 750;
}

h3 {
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 700;
}

p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.eyebrow {
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.panel,
.metric,
.module,
.row-card,
.category,
.item,
.builder-row,
.photo-tile,
.menu-banner-card,
.extension-card,
.qr-control-card,
.profile-editor-toolbar,
.additional-info-prompt,
.editable-public-page,
.editable-image-field,
.editable-rich-text,
.editable-hours-card,
.editable-contact-card,
.editable-profile-section,
.editable-map-shell,
.public-profile-modal,
.public-lightbox-card,
.qr-editor-sidebar,
.qr-editor-stage,
.qr-stage-url,
.qr-info-pill {
  border-color: var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.panel {
  padding: 16px;
}

.metric {
  height: 140px;
  grid-template-rows: 18px 62px 18px;
}

.metric-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.metric-value {
  font-size: 28px;
  font-weight: 800;
}

.metric-note {
  color: var(--muted);
  font-size: 12px;
}

button.metric:hover,
.dashboard-hero:hover,
.card.interactive:hover {
  border-color: rgba(22, 163, 74, .24);
  background: #fbfffc;
  filter: none;
}

.badge {
  min-height: 24px;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 750;
}

.badge.green {
  color: var(--green-dark);
  background: var(--green-soft);
}

.badge.amber {
  color: var(--amber);
  background: var(--amber-soft);
}

.badge.blue {
  color: var(--blue);
  background: var(--blue-soft);
}

.badge.red {
  color: var(--red);
  background: var(--red-soft);
}

.badge.gray {
  color: #525252;
  background: var(--bg-muted);
}

.hero-banner,
.banner-preview,
.profile-banner-preview,
.menu-banner-preview,
.menu-banner-large-preview,
.photo-preview,
.photo-modal-preview,
.editable-image-field,
.editable-section-media,
.photo-ratio-preview,
.public-map-placeholder,
.lm-feature-photo:not([style*="background-image"]),
.lm-cat-photo:not([style*="background-image"]),
.lm-dish-photo:not([style*="background-image"]),
.lm-info-photo:not([style*="background-image"]),
.lm-detail-photo:not([style*="background-image"]) {
  border-color: var(--line);
  color: var(--green-dark);
  background:
    linear-gradient(135deg, rgba(220, 252, 231, .92), rgba(245, 245, 245, .72)),
    #f7f7f7;
  box-shadow: none;
}

.hero-banner strong,
.banner-preview strong,
.profile-banner-preview strong,
.menu-banner-preview strong,
.menu-banner-large-preview strong,
.photo-preview span,
.photo-modal-preview span,
.editable-image-field > strong,
.editable-image-field > span,
.photo-ratio-preview span {
  color: var(--green-dark);
  text-shadow: none;
}

.hero-banner span,
.banner-preview span,
.menu-banner-preview p,
.menu-banner-large-preview p,
.photo-preview em,
.photo-modal-preview small {
  color: var(--ink-2);
  text-shadow: none;
}

.menu-banner-preview span,
.menu-banner-large-preview span,
.photo-preview strong,
.photo-preview em,
.menu-banner-preview em,
.menu-banner-large-preview em,
.photo-modal-preview strong,
.photo-modal-preview small {
  background: rgba(255, 255, 255, .82);
  color: var(--green-dark);
  text-shadow: none;
}

.menu-banner-card.muted {
  opacity: .82;
}

.menu-banner-upload-preview,
.menu-banner-upload-preview:hover,
.menu-banner-upload-preview:focus-within {
  border: 1px dashed rgba(11, 163, 75, .34);
  background:
    linear-gradient(135deg, rgba(236, 253, 245, .94), rgba(248, 253, 249, .96)),
    #f7fcf8;
  color: var(--ink);
}
.menu-banner-upload-preview span {
  display: block;
  background: transparent;
  color: var(--ink);
  font-weight: 400;
}

.menu-banner-card-actions,
.photo-card-body {
  background: #fff;
}

.editable-image-field:not(.is-add-photo) > span,
.photo-preview span,
.photo-preview strong,
.photo-preview em,
.photo-modal-preview span,
.photo-modal-preview strong,
.photo-modal-preview small,
.photo-ratio-preview:not(.is-empty-preview) span,
.banner-crop-preview em {
  display: none;
}

.editable-image-field.is-add-photo,
.editable-image-field.profile-photo-upload-tile,
.editable-image-field.is-add-photo > span,
.editable-image-field.profile-photo-upload-tile > span,
.photo-ratio-preview.is-empty-preview,
.photo-ratio-preview.is-empty-preview span {
  color: var(--ink);
  font-weight: 400;
  text-shadow: none;
}

.input,
.textarea,
.select,
.time-field,
.qr-text-input {
  border-color: var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
}

.input:focus,
.textarea:focus,
.select:focus,
.time-field:focus,
.rich-editor-surface:focus {
  border-color: rgba(22, 163, 74, .42);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .16);
}

.row-card {
  min-height: 58px;
  background: #fff;
}

.row-card strong {
  font-size: 14px;
  font-weight: 700;
}

.row-card small {
  color: var(--muted);
  font-size: 12px;
}

.category,
.item,
.builder-row {
  background: #fff;
  box-shadow: none;
}

.category.active,
.item.active {
  border-color: rgba(22, 163, 74, .24);
  background: #fbfffc;
}

.category strong,
.item strong {
  font-weight: 700;
}

.item-price {
  color: var(--green-dark);
}

.thumb:not([style*="background-image"]),
.thumb.gray:not([style*="background-image"]) {
  background:
    radial-gradient(circle at 38% 58%, rgba(21, 128, 61, .72) 0 15%, transparent 16%),
    linear-gradient(135deg, #f5f5f5, #dcfce7);
}

.profile-editor-toolbar {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
}

.profile-edit-mode {
  background: var(--green-soft);
  color: var(--green-dark);
}

.profile-editor-toolbar-copy strong {
  color: var(--green-dark);
}

.editable-public-page {
  background: #fff;
}

.editable-public-nav,
.editable-public-strip,
.editable-public-info,
.editable-public-sections {
  background: #fff;
}

.editable-title-input,
.editable-public-title,
.editable-contact-card h2,
.editable-hours-card h2,
.editable-profile-section h2 {
  color: var(--green-dark);
  text-shadow: none;
}

.editable-hours-card {
  padding-right: 16px;
  margin-right: -16px;
}

.editable-public-tabs {
  gap: 8px;
  font-size: 14px;
  font-weight: 650;
}

.editable-public-tabs span {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.editable-public-tabs span:first-child {
  border-color: rgba(22, 163, 74, .18);
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green-dark);
}

.editable-edit-chip,
.editable-image-field em,
.editable-section-toolbar .btn,
.editable-block-head .btn {
  border-color: rgba(22, 163, 74, .18);
  background: var(--green-soft);
  color: var(--green-dark);
  box-shadow: none;
}

.additional-info-prompt {
  background: #fff;
}

.qr-editor-page,
.qr-editor-stage {
  background: var(--bg);
}

.qr-editor-top,
.qr-stage-url {
  background: #fff;
}

.qr-accordion-trigger.active,
.qr-option-button.active {
  border-color: rgba(22, 163, 74, .24);
  background: var(--green-soft);
  color: var(--green-dark);
}

.qr-art-box,
.qr-preview,
.metric-qr-art {
  color: var(--green-dark);
}

.upgrade-strip {
  border-color: var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.toast {
  border-color: rgba(22, 163, 74, .24);
  background: var(--green-soft);
  color: var(--green-dark);
  box-shadow: var(--shadow);
}

.dashboard-redesign {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.dashboard-redesign > * {
  min-width: 0;
}

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

.dashboard-status-card {
  min-width: 0;
  min-height: 116px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  display: grid;
  gap: 7px;
  align-content: start;
  background: #fff;
  color: var(--ink);
  text-align: left;
  box-shadow: var(--shadow);
}

.dashboard-status-card:hover,
.dashboard-status-card:focus-visible {
  border-color: rgba(22, 163, 74, .28);
  background: #fbfffc;
  outline: 0;
}

.dashboard-status-card > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.dashboard-status-card strong {
  font-size: 22px;
  line-height: 1.1;
}

.dashboard-status-card small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.dashboard-status-card.ok strong {
  color: var(--green-dark);
}

.dashboard-status-card.warning {
  border-color: rgba(217, 119, 6, .22);
  background: #fffaf0;
}

.dashboard-status-card.warning strong {
  color: #a16207;
}

.dashboard-redesign-head {
  display: grid;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.dashboard-redesign-head h1 {
  margin: 0;
}

.dashboard-status-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.dashboard-status-line span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.dashboard-status-line span + span::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c4c4c4;
}

.dashboard-status-line .ok {
  color: var(--green-dark);
  font-weight: 650;
}

.dashboard-section-head {
  margin-bottom: 0;
}

.dashboard-section-head p {
  max-width: none;
  color: var(--muted);
  font-size: 13px;
}

.dashboard-tasks-panel {
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.dashboard-tasks-panel .dashboard-section-head {
  min-height: 44px;
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
  align-items: center;
}

.dashboard-tasks-panel h2,
.dashboard-profile-preview h2 {
  margin-bottom: 0;
  font-size: 15px;
}

.dashboard-task-list {
  display: grid;
}

.dashboard-task-row {
  min-height: 46px;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line-light);
  box-shadow: none;
  grid-template-columns: minmax(0, 1fr) auto;
  text-align: left;
}

.dashboard-task-row:last-child {
  border-bottom: 0;
}

.dashboard-metrics-row {
  gap: 14px;
}

.dashboard-profile-preview {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.dashboard-profile-preview:hover {
  border-color: rgba(22, 163, 74, .24);
  background: #fbfffc;
}

.dashboard-profile-frame {
  display: grid;
  gap: 14px;
}

.dashboard-profile-hero {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  display: grid;
  align-content: end;
  color: var(--green-dark);
  background:
    linear-gradient(135deg, rgba(220, 252, 231, .92), rgba(245, 245, 245, .72)),
    #f7f7f7;
  background-size: cover;
  background-position: center;
}

.dashboard-profile-hero strong {
  color: var(--green-dark);
  font-size: 22px;
  font-weight: 800;
  text-shadow: none;
}

.dashboard-profile-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-profile-thumbs span {
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px;
  display: grid;
  align-content: end;
  background:
    linear-gradient(135deg, rgba(220, 252, 231, .86), rgba(245, 245, 245, .74)),
    #f7f7f7;
  background-size: cover;
  background-position: center;
}

.dashboard-profile-thumbs small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 750;
}

.dashboard-profile-info {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(160px, .7fr) minmax(160px, .7fr);
  gap: 28px;
}

.dashboard-profile-info h3 {
  color: var(--green-dark);
}

.dashboard-profile-info p {
  color: var(--ink-2);
}

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

.dashboard-main-actions {
  grid-template-columns: repeat(4, minmax(176px, 1fr));
  overflow-x: auto;
  padding-bottom: 2px;
  max-width: 100%;
  min-width: 0;
}

.dashboard-action-card {
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  background: #fff;
  color: var(--ink);
  text-align: left;
  box-shadow: var(--shadow);
}

.dashboard-action-card > svg {
  width: 20px;
  height: 20px;
  min-width: 20px;
  color: var(--ink);
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-main-actions .dashboard-action-card {
  min-height: 104px;
}

.dashboard-action-qr {
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
}

.dashboard-action-qr-art {
  width: 68px;
  height: 68px;
  padding: 7px;
  border-radius: 8px;
  color: var(--green-dark);
  justify-self: center;
}

.dashboard-action-card:hover {
  border-color: rgba(22, 163, 74, .24);
  background: #fbfffc;
}

.dashboard-action-card strong,
.dashboard-action-card small {
  display: block;
}

.dashboard-action-card strong {
  margin-bottom: 3px;
  font-size: 14px;
  font-weight: 750;
}

.dashboard-action-card small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.dashboard-alerts-panel,
.dashboard-public-panel,
.dashboard-compact-panel {
  display: grid;
  gap: 14px;
}

.dashboard-alert-list,
.dashboard-public-grid,
.dashboard-two-column {
  display: grid;
  gap: 12px;
}

.dashboard-public-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-two-column {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.dashboard-alert-row {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.dashboard-alert-row:hover,
.dashboard-alert-row:focus-visible {
  border-color: rgba(22, 163, 74, .26);
  outline: 0;
}

.dashboard-alert-row.static {
  cursor: default;
}

.dashboard-alert-row span,
.dashboard-alert-row strong,
.dashboard-alert-row small {
  min-width: 0;
}

.dashboard-alert-row strong,
.dashboard-alert-row small {
  display: block;
}

.dashboard-alert-row strong {
  margin-bottom: 3px;
  font-weight: 850;
}

.dashboard-alert-row small {
  color: var(--muted);
  line-height: 1.35;
}

.dashboard-alert-row em {
  border-radius: 999px;
  padding: 7px 10px;
  background: #f8faf9;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.dashboard-alert-row.ok {
  border-color: rgba(11, 163, 75, .2);
  background: #fbfffc;
}

.dashboard-alert-row.ok em {
  background: var(--green-soft);
  color: var(--green-dark);
}

.dashboard-alert-row.amber {
  border-color: rgba(217, 119, 6, .24);
  background: #fffaf0;
}

.dashboard-alert-row.amber em {
  background: #fff1c2;
  color: #a16207;
}

.dashboard-alert-row.red {
  border-color: rgba(220, 38, 38, .22);
  background: #fff5f5;
}

.dashboard-alert-row.red em {
  background: #fee2e2;
  color: #b91c1c;
}

@media (max-width: 1240px) {
  .dashboard-status-grid,
  .dashboard-public-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-two-column {
    grid-template-columns: 1fr;
  }

  .dashboard-profile-info {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dashboard-quick-row {
    grid-template-columns: 1fr;
  }

  .dashboard-main-actions {
    grid-template-columns: repeat(4, minmax(176px, 1fr));
  }
}

@media (max-width: 920px) {
  .dashboard-status-grid,
  .dashboard-public-grid {
    grid-template-columns: 1fr;
  }

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

  .dashboard-main-actions {
    grid-template-columns: repeat(4, minmax(176px, 1fr));
  }
}

.dashboard-embedded-section {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  min-width: 0;
}

.dashboard-segment-head {
  margin-bottom: 18px;
}

.dashboard-segment-head h2 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: 0;
}

.dashboard-segment-head p {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}

.dashboard-segment-head p span + span {
  position: relative;
}

.dashboard-segment-head p span + span::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: var(--line-strong);
}

.dashboard-segment-head .ok,
.dashboard-status-line .ok {
  color: var(--green-dark);
}

.dashboard-menu-actions {
  margin-bottom: 22px;
}

.dashboard-photo-trust-panel {
  width: 100%;
  margin-bottom: 22px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  text-align: left;
  background: linear-gradient(135deg, rgba(220, 252, 231, .55), #fff);
}

.dashboard-photo-trust-panel:hover,
.dashboard-photo-trust-panel:focus-visible {
  border-color: rgba(11, 163, 75, .28);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
}

.dashboard-photo-trust-panel h3 {
  margin: 3px 0 5px;
  font-size: 19px;
  line-height: 1.2;
}

.dashboard-photo-trust-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.dashboard-photo-trust-meter {
  min-width: 118px;
  border: 1px solid rgba(11, 163, 75, .18);
  border-radius: 12px;
  padding: 12px 14px;
  display: grid;
  gap: 2px;
  justify-items: center;
  background: #fff;
}

.dashboard-photo-trust-meter strong {
  color: var(--green-dark);
  font-size: 28px;
  line-height: 1;
}

.dashboard-photo-trust-meter span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.dashboard-menu-banners-panel {
  margin-bottom: 22px;
}

.dashboard-menu-banners-panel h3,
.dashboard-menu-workbench h3,
.dashboard-segment-qr-grid h3,
.dashboard-users-panel h3 {
  margin: 0 0 5px;
  font-size: 19px;
  line-height: 1.2;
}

.dashboard-menu-banner-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-menu-banner {
  min-height: 126px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  color: var(--green-dark);
  background: linear-gradient(135deg, rgba(220, 252, 231, .92), rgba(255, 255, 255, .86));
  text-align: left;
}

.dashboard-menu-banner.muted {
  color: var(--ink-2);
  background: linear-gradient(135deg, #f8faf9, #fff);
}

.dashboard-menu-banner strong {
  font-size: 18px;
  line-height: 1.15;
}

.dashboard-menu-banner .badge {
  width: 100%;
  justify-content: flex-start;
}

.dashboard-menu-workbench {
  display: grid;
  grid-template-columns: minmax(220px, .9fr) minmax(320px, 1.3fr) minmax(260px, 1fr);
  gap: 18px;
}

.dashboard-mini-list {
  display: grid;
  gap: 12px;
}

.dashboard-mini-row {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.dashboard-mini-row.active {
  border-color: rgba(22, 163, 74, .28);
  background: #f7fff9;
}

.dashboard-mini-row.static {
  cursor: default;
}

.dashboard-mini-row span:first-child {
  min-width: 0;
}

.dashboard-mini-row strong,
.dashboard-mini-row small {
  display: block;
}

.dashboard-mini-row strong {
  margin-bottom: 4px;
  font-weight: 750;
}

.dashboard-mini-row small {
  color: var(--muted);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-menu-detail {
  display: grid;
  gap: 14px;
  align-content: start;
}

.dashboard-menu-detail-preview {
  min-height: 126px;
  border: 1px solid rgba(22, 163, 74, .18);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  align-items: flex-end;
  color: var(--green-dark);
  background: linear-gradient(135deg, rgba(220, 252, 231, .92), rgba(255, 255, 255, .86));
}

.dashboard-menu-detail-preview strong {
  font-size: 20px;
  line-height: 1.15;
}

.dashboard-segment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-segment-actions .btn {
  min-width: 116px;
}

.dashboard-segment-qr-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(340px, 1fr);
  gap: 18px;
}

.dashboard-qr-preview-card {
  display: grid;
  gap: 16px;
}

.dashboard-segment-qr-art {
  width: 156px;
  height: 156px;
  padding: 16px;
  justify-self: center;
  border-radius: 16px;
  color: var(--green-dark);
}

.dashboard-users-panel {
  display: grid;
  gap: 16px;
}

.analytics-dashboard {
  display: grid;
  gap: 12px;
}

.analytics-page-head {
  align-items: flex-end;
}

.analytics-period-pill {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--green-dark);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
}

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

.analytics-kpi {
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 14px 15px;
  box-shadow: 0 8px 22px rgba(27, 38, 30, .045);
}

.analytics-kpi-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 7px;
}

.analytics-kpi-value {
  color: var(--ink);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: 9px;
}

.analytics-kpi-foot {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.analytics-delta {
  flex: 0 0 auto;
  white-space: nowrap;
  border-radius: 7px;
  padding: 4px 7px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.analytics-delta.up {
  color: var(--green-dark);
  background: var(--green-soft);
}

.analytics-delta.down {
  color: #d14343;
  background: #fdecec;
}

.analytics-delta.neutral {
  color: var(--muted);
  background: #f1f4f1;
}

.analytics-panel {
  padding: 0;
  overflow: hidden;
}

.analytics-panel-head {
  border-bottom: 1px solid var(--line);
  padding: 15px 18px;
}

.analytics-panel-head h2 {
  font-size: 16px;
  letter-spacing: -.025em;
}

.analytics-panel-head p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  margin-top: 3px;
}

.analytics-panel .panel-body {
  padding: 16px 18px;
}

.analytics-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.analytics-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.analytics-legend i {
  width: 18px;
  height: 3px;
  background: #29a85a;
}

.analytics-legend .items {
  background: #3383f2;
}

.analytics-legend .reservations {
  background: #f39b25;
}

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

.analytics-mini-row > div {
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 12px;
}

.analytics-mini-row strong,
.analytics-mini-row span {
  display: block;
}

.analytics-mini-row strong {
  color: var(--ink);
  font-size: 18px;
  margin-bottom: 3px;
}

.analytics-mini-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.analytics-line-chart {
  position: relative;
  height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(to bottom, transparent 0 19%, rgba(223, 229, 223, .9) 19% 19.4%, transparent 19.4% 39%, rgba(223, 229, 223, .9) 39% 39.4%, transparent 39.4% 59%, rgba(223, 229, 223, .9) 59% 59.4%, transparent 59.4% 79%, rgba(223, 229, 223, .9) 79% 79.4%, transparent 79.4%),
    #fff;
  overflow: hidden;
}

.analytics-line-chart svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.analytics-axis {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 12px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  color: #8b948c;
  font-size: 10px;
  font-weight: 800;
}

.analytics-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(350px, .9fr);
  gap: 12px;
}

.analytics-source-grid {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 16px;
  align-items: center;
}

.analytics-donut {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: auto;
}

.analytics-donut > div {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  font-weight: 750;
}

.analytics-donut strong,
.analytics-donut span {
  display: block;
}

.analytics-donut strong {
  color: var(--ink);
  font-size: 20px;
}

.analytics-source-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.analytics-source-cards > div {
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 10px;
  font-size: 12px;
  font-weight: 800;
}

.analytics-source-cards span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 5px;
}

.analytics-rank-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
}

.analytics-rank-row:last-child {
  border-bottom: 0;
}

.analytics-rank-row > div:first-child {
  color: var(--green-dark);
  font-weight: 900;
}

.analytics-rank-row strong,
.analytics-rank-row small {
  display: block;
}

.analytics-rank-row strong {
  color: var(--ink);
  font-size: 13px;
}

.analytics-rank-row small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}

.analytics-rank-row em {
  border-radius: 7px;
  padding: 5px 7px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.analytics-bars {
  height: 220px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 12px;
  padding: 8px 8px 0;
}

.analytics-bars > div {
  display: grid;
  gap: 7px;
  justify-items: center;
  align-items: end;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.analytics-bars i {
  width: 100%;
  max-width: 34px;
  background: linear-gradient(180deg, #3383f2, #29a85a);
}

.analytics-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.analytics-table th {
  color: var(--muted);
  font-size: 11px;
  text-align: left;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.analytics-table td {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 750;
}

.analytics-table tr:last-child td {
  border-bottom: 0;
}

.analytics-empty-block {
  min-height: 180px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: #fbfcfb;
  padding: 22px;
}

.analytics-empty-block strong,
.analytics-empty-block span {
  display: block;
}

.analytics-empty-block strong {
  color: var(--ink);
  margin-bottom: 6px;
  font-size: 15px;
}

.analytics-empty-block span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  max-width: 360px;
}

.analytics-note {
  color: #2e603a;
  background: #f5fff7;
  border: 1px solid #cfead5;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 750;
}

@media (max-width: 1180px) {
  .analytics-kpi-grid,
  .analytics-two-column,
  .analytics-mini-row,
  .analytics-source-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-menu-banner-grid,
  .dashboard-menu-workbench,
  .dashboard-segment-qr-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .dashboard-segment-head h2 {
    font-size: 24px;
  }

  .dashboard-menu-banner-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-photo-trust-panel {
    grid-template-columns: 1fr;
  }

  .dashboard-photo-trust-meter {
    width: 100%;
    justify-items: start;
  }

  .dashboard-mini-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .company-lookup-head,
  .company-public-note,
  .company-lookup-search,
  .billing-readiness-grid {
    grid-template-columns: 1fr;
  }

  .company-lookup-head {
    display: grid;
  }

  .company-lookup-search .btn {
    width: 100%;
  }

  .company-data-grid {
    grid-template-columns: 1fr;
  }

  .company-details-grid,
  .company-billing-contact,
  .company-address-city-row {
    grid-template-columns: 1fr;
  }

  .company-billing-form .field,
  .company-billing-form .company-name-field {
    grid-template-columns: 1fr;
  }

  .company-suggest-dropdown,
  .company-lookup-error.inline {
    grid-column: 1;
  }

  .users-summary-grid,
  .user-role-overview-grid,
  .user-filter-bar,
  .user-invite-form,
  .user-contact-editor-grid,
  .user-row {
    grid-template-columns: 1fr;
  }

  .user-filter-search {
    min-width: 0;
  }

  .user-actions {
    justify-content: stretch;
  }

  .user-actions .btn {
    flex: 1 1 140px;
  }
}

/* Production density layer.
   Smaller notebook displays get a controlled compact mode instead of requiring browser zoom. */
:root {
  --density-font: 1;
  --density-space: 1;
  --density-sidebar: 248px;
}

body {
  font-size: calc(16px * var(--density-font));
}

@media (min-width: 921px) and (max-width: 1510px), (min-width: 921px) and (max-height: 860px) {
  :root {
    --density-font: .92;
    --density-space: .86;
    --density-sidebar: 236px;
  }
}

@media (min-width: 921px) and (max-width: 1360px), (min-width: 921px) and (max-height: 760px) {
  :root {
    --density-font: .88;
    --density-space: .78;
    --density-sidebar: 220px;
  }
}

@media (min-width: 921px) {
  .app {
    grid-template-columns: var(--density-sidebar) minmax(0, 1fr);
  }

  .sidebar {
    padding: calc(18px * var(--density-space)) 12px;
    gap: calc(18px * var(--density-space));
  }

  .brand {
    min-height: calc(74px * var(--density-space));
  }

  .brand-logo {
    width: calc(92px * var(--density-space));
  }

  .tenant {
    padding: calc(18px * var(--density-space)) 8px 0;
  }

  .tenant strong,
  .nav-title,
  .search,
  .row-card strong,
  .category strong,
  .item strong,
  .dashboard-action-card strong,
  .dashboard-mini-row strong {
    font-size: calc(14px * var(--density-font));
  }

  .tenant span,
  .row-card small,
  .category small,
  .item small,
  .dashboard-action-card small,
  .dashboard-mini-row small,
  .search-result span,
  .search-empty {
    font-size: calc(12px * var(--density-font));
  }

  .nav {
    gap: calc(4px * var(--density-space));
  }

  .nav-item {
    min-height: calc(42px * var(--density-space));
    padding: calc(9px * var(--density-space)) 10px;
    gap: calc(11px * var(--density-space));
  }

  .nav-icon {
    width: calc(28px * var(--density-space));
    height: calc(28px * var(--density-space));
  }

  .topbar {
    min-height: calc(72px * var(--density-space));
    padding: calc(14px * var(--density-space)) 16px;
    gap: calc(16px * var(--density-space));
  }

  .topbar-context,
  .actions {
    gap: calc(14px * var(--density-space));
  }

  .search-box {
    width: calc(260px * var(--density-space));
    height: calc(38px * var(--density-space));
  }

  .content {
    padding: calc(24px * var(--density-space));
  }

  .page-head {
    margin-bottom: calc(20px * var(--density-space));
    padding-bottom: calc(18px * var(--density-space));
  }

  h1 {
    font-size: calc(30px * var(--density-font));
  }

  h2 {
    margin-bottom: calc(10px * var(--density-space));
    font-size: calc(18px * var(--density-font));
  }

  h3 {
    margin-bottom: calc(6px * var(--density-space));
    font-size: calc(15px * var(--density-font));
  }

  p,
  .btn,
  .modal-close,
  .modal-segmented button,
  .qr-text-input {
    font-size: calc(14px * var(--density-font));
  }

  .topbar .btn,
  .avatar {
    font-size: calc(13px * var(--density-font));
  }

  .btn,
  .modal-close,
  .modal-segmented button,
  .qr-text-input {
    height: calc(38px * var(--density-space));
    min-height: calc(38px * var(--density-space));
    border-radius: calc(12px * var(--density-space));
  }

  .topbar .btn,
  .avatar {
    height: calc(36px * var(--density-space));
    min-height: calc(36px * var(--density-space));
  }

  .avatar {
    width: calc(36px * var(--density-space));
  }

  .grid,
  .dashboard-redesign,
  .dashboard-profile-frame,
  .dashboard-mini-list,
  .dashboard-users-panel,
  .dashboard-menu-detail {
    gap: calc(12px * var(--density-space));
  }

  .panel {
    padding: calc(16px * var(--density-space));
  }

  .panel-body,
  .photo-card-body {
    padding: calc(14px * var(--density-space));
  }

  .row-card,
  .category,
  .item,
  .dashboard-mini-row {
    padding: calc(12px * var(--density-space));
    gap: calc(12px * var(--density-space));
  }

  .row-card {
    min-height: calc(64px * var(--density-space));
  }

  .category {
    min-height: calc(56px * var(--density-space));
    grid-template-columns: 18px minmax(0, 1fr) auto;
  }

  .item {
    min-height: calc(76px * var(--density-space));
    grid-template-columns: 18px calc(48px * var(--density-space)) minmax(0, 1fr) auto;
  }

  .thumb,
  .item .thumb {
    width: calc(48px * var(--density-space));
    height: calc(48px * var(--density-space));
  }

  .menu-banner-card {
    padding: calc(14px * var(--density-space));
  }

  .menu-banner-preview {
    min-height: 0;
  }

  .dashboard-main-actions {
    grid-template-columns: repeat(4, minmax(calc(176px * var(--density-space)), 1fr));
  }

  .dashboard-action-card {
    min-height: calc(86px * var(--density-space));
    padding: calc(16px * var(--density-space));
    gap: calc(12px * var(--density-space));
  }

  .dashboard-main-actions .dashboard-action-card {
    min-height: calc(104px * var(--density-space));
  }

  .dashboard-profile-hero {
    min-height: calc(220px * var(--density-space));
    padding: calc(18px * var(--density-space));
  }

  .dashboard-profile-thumbs span {
    min-height: calc(78px * var(--density-space));
  }

  .dashboard-embedded-section {
    padding-top: calc(28px * var(--density-space));
  }

  .dashboard-segment-head h2 {
    font-size: calc(30px * var(--density-font));
  }

  .dashboard-menu-banner,
  .dashboard-menu-detail-preview {
    min-height: calc(126px * var(--density-space));
    padding: calc(18px * var(--density-space));
  }
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background: #f6f7f3;
}
.backend-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background: #f6f7f3;
}
.auth-panel {
  width: min(480px, 100%);
  background: #fff;
  border: 1px solid #dde6dd;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(20, 83, 45, 0.1);
  padding: 28px;
}
.backend-gate-card {
  width: min(680px, 100%);
  background: #fff;
  border: 1px solid #dde6dd;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(20, 83, 45, 0.1);
  padding: 28px;
}
.auth-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.auth-brand img {
  width: 106px;
  height: auto;
  display: block;
}
.auth-brand span {
  color: var(--green-dark);
  font-weight: 800;
  white-space: nowrap;
}
.auth-copy h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.12;
}
.auth-copy p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.45;
}
.auth-alert {
  margin-bottom: 14px;
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 750;
}
.auth-alert.error {
  background: var(--red-soft);
  color: var(--red);
}
.auth-alert.success {
  background: var(--green-soft);
  color: var(--green-dark);
}
.backend-gate-details {
  display: grid;
  gap: 10px;
}
.backend-gate-details div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  display: grid;
  gap: 5px;
  background: #fbfffc;
}
.backend-gate-details strong {
  color: var(--green-dark);
  font-size: 12px;
}
.backend-gate-details code {
  color: var(--ink);
  font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}
.auth-form {
  display: grid;
  gap: 12px;
}
.auth-stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 4px;
}
.auth-stepper span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.auth-stepper strong {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #edf2ec;
  color: var(--muted);
  font-size: 12px;
}
.auth-stepper span.active {
  color: var(--green-dark);
}
.auth-stepper span.active strong {
  background: var(--green-soft);
  color: var(--green-dark);
}
.auth-activation-box,
.auth-company-picked {
  border: 1px solid #dce5dd;
  border-radius: 8px;
  background: #f8fbf7;
  padding: 12px;
}
.auth-activation-box {
  display: grid;
  gap: 6px;
}
.auth-activation-box.danger {
  background: #fff1f2;
  border-color: #fecdd3;
}
.auth-activation-box strong,
.auth-company-picked strong {
  color: #172018;
}
.auth-activation-box p,
.auth-activation-box small,
.auth-company-picked small {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.auth-company-picked {
  display: grid;
  gap: 3px;
}
.auth-company-picked span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.auth-company-field {
  position: relative;
}
.auth-company-suggest-dropdown {
  position: absolute;
  z-index: 12;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: grid;
  gap: 4px;
  max-height: 240px;
  overflow: auto;
  border: 1px solid #dce5dd;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(20, 83, 45, 0.12);
  padding: 6px;
}
.auth-company-suggest-item {
  display: grid;
  gap: 3px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #172018;
  padding: 9px 10px;
  text-align: left;
}
.auth-company-suggest-item:hover {
  background: #f1f6ef;
}
.auth-company-suggest-item small,
.auth-company-suggest-state {
  color: var(--muted);
  line-height: 1.35;
}
.auth-company-suggest-state {
  padding: 9px 10px;
  font-size: 13px;
}
.auth-company-suggest-state.danger {
  color: var(--red);
}
.auth-socials {
  display: grid;
  gap: 10px;
}
.auth-social-btn {
  min-height: 44px;
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid #dce5dd;
  border-radius: 8px;
  background: #fff;
  color: #18241d;
  font-weight: 800;
  padding: 9px 12px;
  text-align: center;
  cursor: pointer;
}
.auth-social-btn:hover {
  border-color: #b7c9ba;
  background: #f8fbf7;
}
.auth-brand-icon {
  width: 22px;
  height: 22px;
  display: block;
}
.auth-field {
  display: grid;
  gap: 6px;
  color: #3f413f;
  font-size: 13px;
  font-weight: 750;
}
.auth-field .input {
  width: 100%;
  min-height: 44px;
}
.auth-password-wrap {
  position: relative;
  display: block;
}
.auth-password-wrap .input {
  padding-right: 44px;
}
.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  transform: translateY(-50%);
  cursor: pointer;
}
.auth-password-toggle:hover {
  background: #edf2ec;
  color: var(--green-dark);
}
.auth-password-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.auth-password-strength {
  display: grid;
  gap: 7px;
  margin-top: -4px;
}
.auth-password-meter {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2ec;
}
.auth-password-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--red);
}
.auth-password-strength[data-strength="2"] .auth-password-meter span {
  background: #d49b25;
}
.auth-password-strength[data-strength="3"] .auth-password-meter span {
  background: var(--green);
}
.auth-password-strength-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}
.auth-password-strength-line strong {
  color: #3f413f;
  font-size: 12px;
  white-space: nowrap;
}
.auth-password-strength-line span {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.auth-password-strength-line em {
  font-style: normal;
  white-space: nowrap;
}
.auth-password-strength-line em::before {
  content: "•";
  margin-right: 5px;
}
.auth-password-strength-line em.done {
  color: var(--green-dark);
  font-weight: 750;
}
.auth-password-strength-line em.done::before {
  content: "✓";
}
.auth-submit {
  justify-content: center;
  min-height: 44px;
  margin-top: 4px;
}
.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.auth-links button {
  border: 0;
  background: transparent;
  color: var(--green-dark);
  font-weight: 800;
  padding: 6px 0;
}
.auth-links button:hover {
  color: var(--green-hover);
}
.auth-register-note {
  margin-top: -2px;
}
.auth-register-note small {
  color: var(--muted);
  line-height: 1.4;
}

@media (max-width: 760px) {
  .menu-category-photo-notice,
  .menu-category-photo-editor {
    grid-template-columns: 1fr;
  }
  .menu-category-photo-notice > span {
    justify-self: start;
  }
  .menu-category-photo-preview {
    min-height: 118px;
  }
  .menu-category-photo-actions .btn {
    width: 100%;
  }
  .auth-page {
    padding: 16px;
  }
  .auth-panel {
    padding: 20px;
  }
  .auth-brand {
    align-items: flex-start;
    flex-direction: column;
  }
  .user-detail-modal {
    width: min(100%, calc(100vw - 20px));
    max-height: calc(100vh - 20px);
    padding: 12px;
  }
  .user-detail-grid,
  .user-detail-columns,
  .user-detail-list-item {
    grid-template-columns: 1fr;
  }
  .user-detail-list-item > div:last-child {
    justify-content: flex-start;
  }
  .user-detail-modal .text-editor-actions {
    flex-direction: column;
  }
  .user-detail-modal .text-editor-actions .btn {
    width: 100%;
  }
}
/* Translation settings modal */
.language-settings-modal {
  width: 100%;
  max-width: 760px;
  max-height: min(860px, calc(100vh - 32px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 14px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(0,0,0,.32);
  overflow: auto;
}

.language-settings-modal .modal-head p {
  margin: 6px 0 0;
  color: var(--muted, #667067);
}

.modal-kicker {
  display: block;
  margin-bottom: 4px;
  color: #16803a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.language-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.language-setting-field {
  display: grid;
  gap: 7px;
}

.language-setting-field > span {
  font-size: 13px;
  font-weight: 800;
}

.language-setting-field select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #dce5da;
  border-radius: 10px;
  background: #fff;
  color: #172018;
  font: inherit;
}

.language-setting-field select:disabled {
  background: #f3f6f1;
  color: #526055;
}

.language-setting-field small,
.language-picker-head span {
  color: #667067;
  font-size: 12px;
  line-height: 1.45;
}

.language-picker-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0 10px;
}

.language-picker-head > div {
  display: grid;
  gap: 3px;
}

.language-picker-head em {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: #edf7ee;
  color: #176b32;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.language-entitlement-notice {
  min-height: 58px;
  border: 1px solid rgba(217, 119, 6, .24);
  border-radius: 8px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background: #fffaf0;
}
.language-entitlement-notice.red {
  border-color: rgba(220, 38, 38, .22);
  background: #fff5f5;
}
/* Plný limit jazykov nie je chyba: pokojný rámik ako oznam o prekladoch (nie červený). */
.language-entitlement-notice.neutral {
  border-color: #d8dfd6;
  background: #f4f6f3;
}
.language-entitlement-notice strong,
.language-entitlement-notice small {
  display: block;
  min-width: 0;
}
.language-entitlement-notice strong {
  margin-bottom: 3px;
  font-weight: 850;
}
.language-entitlement-notice small {
  color: var(--muted);
  line-height: 1.35;
}

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

.language-choice {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid #dfe7dd;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.language-choice.selected {
  border-color: #8fcea0;
  background: #f2faf3;
}

.language-choice.source {
  cursor: default;
}

.language-choice input {
  width: 18px;
  height: 18px;
  accent-color: #169447;
}

.language-flag {
  font-size: 24px;
  line-height: 1;
}

.language-choice > span:last-child {
  display: grid;
  gap: 2px;
}

.language-choice strong {
  font-size: 14px;
}

.language-choice small {
  color: #667067;
  font-size: 11px;
  text-transform: uppercase;
}

.translation-status-card,
.translation-access-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 13px 14px;
  border: 1px solid #dfe7dd;
  border-radius: 12px;
  background: #f7f9f6;
}

.translation-status-card > span svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.translation-status-card > div,
.translation-access-note {
  flex: 1;
}

.translation-status-card > div,
.translation-access-note {
  display: grid;
  gap: 3px;
}

.translation-status-card small,
.translation-access-note span {
  color: #667067;
  font-size: 12px;
  line-height: 1.45;
}

.translation-status-card.green { border-color: #b8ddc0; background: #f2faf3; color: #176b32; }
.translation-status-card.amber { border-color: #ead8a5; background: #fffaf0; color: #8a5a00; }
.translation-status-card.red,
.translation-access-note.error { border-color: #efc1bc; background: #fff5f3; color: #a12f24; }
.translation-access-note.locked { border-color: #d8dfd6; background: #f4f6f3; }
.ai-translation-entitlement-notice {
  margin-top: 18px;
  border: 1px solid #d8dfd6;
  border-radius: 12px;
  padding: 13px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  background: #f4f6f3;
}
.ai-translation-entitlement-notice.error {
  border-color: #efc1bc;
  background: #fff5f3;
  color: #a12f24;
}
.ai-translation-entitlement-notice strong,
.ai-translation-entitlement-notice span {
  display: block;
  min-width: 0;
}
.ai-translation-entitlement-notice strong {
  font-size: 13px;
}
.ai-translation-entitlement-notice span {
  color: #667067;
  font-size: 12px;
  line-height: 1.45;
}

.translation-loading {
  margin: 20px 0;
  padding: 18px;
  border-radius: 12px;
  background: #f4f7f3;
  color: #526055;
  text-align: center;
}

.billing-pricing-page {
  display: grid;
  gap: 26px;
  margin-bottom: 18px;
}

.billing-pricing-hero {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 28px 18px 8px;
  text-align: center;
}

.billing-pricing-hero h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.12;
}

.billing-pricing-hero p {
  max-width: 680px;
  margin: 0;
  color: #667067;
  line-height: 1.55;
}

.billing-pricing-hero small {
  color: #667067;
  font-size: 12px;
}

.billing-pricing-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.billing-payment-toggle {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 4px;
  padding: 4px;
  border: 1px solid #dfe7dd;
  border-radius: 8px;
  background: #fff;
}

.billing-payment-toggle button {
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #526055;
  font: inherit;
  cursor: pointer;
}

.billing-payment-toggle button strong {
  color: #1f6f46;
}

.billing-payment-toggle button.active {
  background: #e4f4e8;
  color: #172018;
  font-weight: 800;
}

.billing-payment-toggle button:disabled {
  color: #9ba59b;
  cursor: not-allowed;
}

.billing-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.pricing-plan-grid {
  gap: 18px;
  margin: 0;
}

.billing-plan-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 218px;
  padding: 16px;
  border: 1px solid #dfe7dd;
  border-radius: 8px;
  background: #fbfcfa;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.pricing-plan-card {
  min-height: 430px;
  align-content: start;
  gap: 18px;
  padding: 20px;
  cursor: default;
}

.billing-plan-card.active {
  border-color: #2f7d4f;
  background: #f2faf3;
  box-shadow: 0 0 0 2px rgba(47, 125, 79, 0.12);
}

.billing-recommended {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #1f6f46;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.pricing-plan-head {
  display: grid;
  gap: 10px;
  min-height: 86px;
}

.pricing-plan-head p {
  margin: 0;
  color: #667067;
  line-height: 1.45;
}

.pricing-plan-price {
  display: grid;
  gap: 7px;
}

.billing-plan-card strong {
  font-size: 24px;
  line-height: 1;
}

.billing-plan-card strong small {
  margin-left: 3px;
  font-size: 12px;
  color: #667067;
}

.billing-plan-card p,
.billing-plan-card small {
  margin: 0;
  color: #667067;
  line-height: 1.45;
}

.billing-plan-card em {
  color: #1f6f46;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.billing-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: end;
  width: 100%;
  min-height: 38px;
  margin-top: 10px;
  padding: 8px 14px;
  border: 1px solid #1f6f46;
  border-radius: 8px;
  background: #1f6f46;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

button.billing-card-cta {
  cursor: pointer;
}

.billing-plan-card.active .billing-card-cta {
  background: #2f7d4f;
  border-color: #2f7d4f;
}

.pricing-plan-features {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid #e7eee4;
}

.pricing-plan-features > span {
  color: #667067;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pricing-plan-features div {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pricing-plan-features svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: #1f6f46;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
}

.pricing-section {
  display: grid;
  gap: 14px;
}

.pricing-section h3 {
  margin: 0;
  text-align: center;
  font-size: 18px;
}

.pricing-table-wrap {
  overflow-x: auto;
  border: 1px solid #dfe7dd;
  border-radius: 8px;
  background: #fff;
}

.pricing-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 13px;
}

.pricing-table th,
.pricing-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #edf1eb;
  text-align: center;
  vertical-align: middle;
}

.pricing-table th:first-child,
.pricing-table td:first-child {
  text-align: left;
}

.pricing-table thead th {
  background: #f7f9f5;
  color: #172018;
  font-size: 12px;
}

.pricing-table thead th small {
  display: block;
  margin-top: 4px;
  color: #667067;
  font-size: 11px;
}

.pricing-table tbody tr:last-child td {
  border-bottom: 0;
}

.pricing-table-group td {
  background: #f3f6f1;
  color: #667067;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pricing-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1f6f46;
  font-weight: 900;
}

.pricing-check svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
}

.pricing-dash {
  color: #a6b0a6;
  font-weight: 900;
}

.pricing-text-value {
  color: #526055;
  font-size: 12px;
}

.pricing-payment-note {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid #dfe7dd;
  border-radius: 8px;
  background: #fff;
}

.pricing-payment-note p {
  margin: 0;
  color: #667067;
  line-height: 1.55;
}

.pricing-payment-note div {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #667067;
  font-size: 12px;
}

.billing-integration-state {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid #dfe7dd;
  border-radius: 8px;
  background: #f8faf7;
  color: #667067;
}

.billing-integration-state small {
  flex-basis: 100%;
  font-size: 12px;
}

.billing-flow-shell {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e3e9e0;
}

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

.billing-stepper button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #dfe7dd;
  border-radius: 8px;
  background: #fff;
  color: #667067;
  font-weight: 700;
  text-align: left;
}

.billing-stepper button span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eef3ec;
  color: #526055;
  font-size: 12px;
  flex: 0 0 auto;
}

.billing-stepper button.active {
  border-color: #1f6f46;
  color: #172018;
  background: #f2faf3;
}

.billing-stepper button.active span,
.billing-stepper button.done span {
  background: #1f6f46;
  color: #fff;
}

.billing-stepper svg {
  width: 14px;
  height: 14px;
}

.billing-flow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}

.billing-step-card {
  display: grid;
  gap: 16px;
}

.billing-step-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.billing-step-head h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.billing-step-head p {
  margin: 0;
  color: #667067;
  line-height: 1.45;
}

.billing-section-label {
  margin-top: 4px;
  color: #667067;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.billing-toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.segmented-control {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 4px;
  padding: 4px;
  border: 1px solid #dfe7dd;
  border-radius: 8px;
  background: #fff;
}

.segmented-control button {
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #526055;
  font: inherit;
  cursor: pointer;
}

.segmented-control button span {
  margin-left: 6px;
  color: #2b7f4a;
  font-size: 11px;
  font-weight: 800;
}

.segmented-control button.active {
  background: #1f6f46;
  color: #fff;
}

.segmented-control button.active span {
  color: #dff5e4;
}

.segmented-control button:disabled {
  color: #9ba59b;
  cursor: not-allowed;
}

.billing-addons-grid,
.billing-payment-grid,
.billing-center-grid,
.billing-confirm-grid {
  display: grid;
  gap: 10px;
}

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

.billing-addon-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 92px;
  padding: 14px;
  border: 1px solid #e3e9e0;
  border-radius: 8px;
  background: #fbfcfa;
}

.billing-addon-row span:first-child {
  display: grid;
  gap: 4px;
}

.billing-addon-row small {
  color: #667067;
  font-size: 12px;
}

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

.billing-form-grid .span-2 {
  grid-column: 1 / -1;
}

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

.billing-payment-grid button {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  align-items: start;
  min-height: 94px;
  padding: 14px;
  border: 1px solid #dfe7dd;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-align: left;
}

.billing-payment-grid button.active {
  border-color: #1f6f46;
  background: #f2faf3;
}

.billing-payment-grid button.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.billing-radio {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 2px solid #cbd8c8;
  border-radius: 50%;
}

.billing-payment-grid button.active .billing-radio,
.billing-order-payment-grid button.active .billing-radio {
  border-color: #1f6f46;
  box-shadow: inset 0 0 0 4px #fff;
  background: #1f6f46;
}

.billing-payment-grid strong,
.billing-payment-grid small {
  grid-column: 2;
}

.billing-payment-grid em {
  color: #1f6f46;
  font-style: normal;
}

.billing-payment-grid small,
.billing-lock-note,
.billing-summary-card p {
  color: #667067;
  font-size: 12px;
  line-height: 1.45;
}

.billing-lock-note {
  padding: 10px 12px;
  border: 1px solid #ead8a5;
  border-radius: 8px;
  background: #fffaf0;
}

.billing-actions-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.billing-actions-row.left {
  justify-content: flex-start;
  margin-top: 12px;
}

.billing-summary-card {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #dfe7dd;
  border-radius: 8px;
  background: #fff;
}

.billing-summary-card > span {
  color: #667067;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.billing-summary-head,
.billing-summary-line,
.billing-summary-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.billing-summary-head strong {
  font-size: 20px;
}

.billing-summary-head em {
  color: #1f6f46;
  font-style: normal;
  font-weight: 800;
}

.billing-summary-line {
  padding: 8px 0;
  border-top: 1px solid #edf1eb;
  color: #667067;
  font-size: 13px;
}

.billing-summary-line strong {
  color: #172018;
}

.billing-summary-line.discount strong {
  color: #1f6f46;
}

.billing-summary-total {
  flex-wrap: wrap;
  align-items: baseline;
  padding-top: 12px;
  border-top: 2px solid #dfe7dd;
}

.billing-summary-total strong {
  font-size: 24px;
}

.billing-summary-total small {
  flex-basis: 100%;
  color: #667067;
  text-align: right;
}

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

.billing-done-card {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #b8ddc0;
  border-radius: 8px;
  background: #f2faf3;
}

.billing-done-card.invoice {
  border-color: #cfe0f8;
  background: #f3f7ff;
}

.billing-done-card.paid {
  border-color: #b8ddc0;
  background: #f2faf3;
}

.billing-done-card.danger {
  border-color: #ffd6d6;
  background: #fff7f7;
}

.billing-done-card.danger .billing-done-check {
  background: var(--red-soft);
  color: var(--red);
}

.billing-done-check {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: #1f6f46;
  flex: 0 0 auto;
}

.billing-done-check svg {
  width: 22px;
  height: 22px;
}

.billing-done-card h3 {
  margin: 0 0 4px;
}

.billing-done-card p {
  margin: 0;
  color: #526055;
  line-height: 1.45;
}

.billing-done-detail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.billing-center-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e3e9e0;
}

.billing-center-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.billing-order-page {
  min-height: 100vh;
  padding: 18px 28px 44px;
  background: var(--bg);
  color: var(--ink);
}

.billing-order-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1120px, 100%);
  margin: 0 auto 28px;
  padding: 10px 0;
  color: #172018;
}

.billing-order-brand {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.billing-order-brand img {
  width: 118px;
  max-height: 34px;
  height: auto;
  object-fit: contain;
}

.billing-order-header-title {
  display: grid;
  gap: 2px;
  margin-right: auto;
  padding-left: 10px;
  border-left: 1px solid #dfe7dd;
}

.billing-order-header-title span {
  color: #667067;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.billing-order-header-title strong {
  font-size: 15px;
}

.billing-order-workflow {
  display: grid;
  gap: 18px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.billing-order-title {
  display: grid;
  gap: 6px;
  max-width: 720px;
}

.billing-order-title h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.12;
}

.billing-order-title p {
  margin: 0;
  color: #667067;
  line-height: 1.5;
}

.billing-order-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}

.billing-order-card {
  display: grid;
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid #dfe7dd;
  border-radius: 8px;
  background: #fff;
}

.billing-order-plan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.billing-order-plan-head h1 {
  margin: 2px 0 0;
  font-size: 21px;
  line-height: 1.2;
}

.billing-order-plan-head h1 strong {
  color: #1f6f46;
}

.billing-order-card p {
  max-width: 620px;
  margin: 0;
  color: #667067;
  font-size: 13px;
  line-height: 1.5;
}

.billing-order-price-note {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.billing-order-price-note strong {
  font-size: 16px;
}

.billing-order-price-note span,
.billing-order-period-note {
  color: #667067;
  font-size: 12px;
}

.billing-order-period-note {
  max-width: 640px;
  line-height: 1.35;
}

.link-button {
  border: 0;
  background: transparent;
  color: #1f6f46;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.billing-order-period {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.billing-order-period button {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 9px 10px;
  border: 1px solid #dfe7dd;
  border-radius: 8px;
  background: #fff;
  color: #172018;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.billing-order-period button.active {
  border-color: #1f6f46;
  background: #f2faf3;
  box-shadow: 0 0 0 2px rgba(47, 125, 79, 0.1);
}

.billing-order-period button > span:nth-child(2) {
  display: grid;
  gap: 1px;
}

.billing-order-period button strong {
  font-size: 14px;
}

.billing-order-period button small {
  color: #667067;
  font-size: 12px;
  line-height: 1.35;
}

.billing-order-period button em {
  grid-column: 2 / -1;
  justify-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  background: #dff5e4;
  color: #1f6f46;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.billing-order-checkbox {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid #cbd8c8;
  border-radius: 6px;
  background: #fff;
  color: #fff;
}

.billing-order-period button.active .billing-order-checkbox {
  border-color: #1f6f46;
  background: #1f6f46;
}

.billing-order-checkbox svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
}

.billing-order-continue {
  min-height: 34px;
  font-size: 14px;
}

.billing-order-summary-card {
  top: 18px;
  border-radius: 8px;
}

.billing-order-details-card {
  gap: 12px;
  padding: 20px;
}

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

.billing-order-form-grid .span-2 {
  grid-column: 1 / -1;
}

.billing-order-form-grid .field {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 5px;
  min-width: 0;
}

.billing-order-form-grid .field > span {
  color: #46433c;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
}

.billing-order-form-grid .input {
  background: #fff;
  color: #172018;
  font-weight: 400;
  min-width: 0;
}

.billing-order-form-grid .field small {
  color: #667067;
  font-size: 12px;
}

.billing-phone-hint {
  color: #667067;
  font-size: 12px;
  line-height: 1.35;
}

.billing-order-payment-grid {
  display: grid;
  gap: 10px;
}

.billing-order-payment-grid button {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  min-height: 72px;
  padding: 14px;
  border: 1px solid #dfe7dd;
  border-radius: 8px;
  background: #fff;
  color: #172018;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.billing-order-payment-grid button.active {
  border-color: #1f6f46;
  background: #f2faf3;
  box-shadow: 0 0 0 2px rgba(47, 125, 79, 0.1);
}

.billing-order-payment-grid button.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.billing-order-payment-grid button > span:last-child {
  display: grid;
  gap: 4px;
}

.billing-order-payment-grid button small {
  color: #667067;
  line-height: 1.35;
}

.billing-order-payment-grid em {
  color: #1f6f46;
  font-style: normal;
}

.billing-order-bottom-actions {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
}

.billing-order-bottom-actions .btn {
  min-height: 42px;
}

.billing-order-complete {
  display: grid;
  place-items: start center;
  width: min(760px, 100%);
  margin: 42px auto 0;
}

.billing-complete-card {
  display: grid;
  justify-items: center;
  gap: 18px;
  width: 100%;
  padding: 44px 46px;
  border: 1px solid #dfe7dd;
  border-radius: 8px;
  background: #fff;
  text-align: center;
  box-shadow: 0 1px 2px rgba(20, 31, 22, 0.04);
}

.billing-complete-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 3px solid #c9f3d1;
  border-radius: 50%;
  background: #f2faf3;
  color: #159947;
}

.billing-complete-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
}

.billing-complete-card h1 {
  margin: 6px 0 0;
  font-size: 30px;
  line-height: 1.1;
}

.billing-complete-card p {
  max-width: 560px;
  margin: 0;
  color: #526055;
  font-size: 16px;
  line-height: 1.55;
}

.billing-complete-card p strong {
  color: #172018;
}

.billing-complete-summary,
.billing-complete-payment {
  display: grid;
  width: 100%;
  border: 1px solid #dfe7dd;
  border-radius: 8px;
  overflow: hidden;
  text-align: left;
}

.billing-complete-payment {
  gap: 8px;
  padding: 18px 22px;
  border-color: #cfe8d3;
  background: #f2faf3;
}

.billing-complete-payment > strong {
  color: #1f6f46;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.billing-complete-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 54px;
  padding: 0 22px;
  border-bottom: 1px solid #edf1eb;
  color: #667067;
}

.billing-complete-payment .billing-complete-row {
  min-height: 32px;
  padding: 0;
  border-bottom: 0;
}

.billing-complete-row:last-child {
  border-bottom: 0;
}

.billing-complete-row strong {
  color: #172018;
  font-size: 15px;
  text-align: right;
}

.billing-complete-row.total {
  min-height: 64px;
}

.billing-complete-row.total span,
.billing-complete-row.total strong {
  color: #172018;
  font-weight: 900;
}

.billing-complete-row.total strong {
  font-size: 22px;
}

.billing-complete-actions {
  display: grid;
  gap: 10px;
  width: 100%;
}

.billing-complete-actions .full {
  justify-content: center;
  min-height: 46px;
  width: 100%;
}

.billing-complete-card > small {
  max-width: 560px;
  color: #667067;
  font-size: 13px;
  line-height: 1.45;
}

.billing-stepper.standalone > span {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  height: 38px;
  padding: 7px 10px;
  border: 1px solid #dfe7dd;
  border-radius: 8px;
  background: #fff;
  color: #667067;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.billing-stepper.standalone {
  display: flex;
  justify-content: center;
  gap: 10px;
  width: min(620px, 100%);
  margin: 0 auto 20px;
  align-items: center;
  overflow-x: auto;
  padding-bottom: 2px;
}

.billing-stepper.standalone > span strong {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eef3ec;
  color: #526055;
  font-size: 12px;
  flex: 0 0 auto;
}

.billing-stepper.standalone > span.active {
  border-color: #1f6f46;
  background: #f2faf3;
  color: #172018;
}

.billing-stepper.standalone > span.active strong,
.billing-stepper.standalone > span.done strong {
  background: #1f6f46;
  color: #fff;
}

@media (max-width: 960px) {
  .billing-plan-grid,
  .billing-stepper,
  .billing-order-grid,
  .billing-flow-layout,
  .billing-addons-grid,
  .billing-payment-grid,
  .billing-confirm-grid,
  .billing-center-grid,
  .billing-done-detail {
    grid-template-columns: 1fr;
  }

  .billing-summary-card {
    position: static;
  }
}

@media (max-width: 680px) {
  .billing-pricing-hero {
    align-items: stretch;
    justify-items: stretch;
    padding: 18px 0 0;
    text-align: left;
  }

  .billing-pricing-hero h2 {
    font-size: 24px;
  }

  .billing-pricing-controls {
    align-items: stretch;
    justify-content: flex-start;
  }

  .segmented-control,
  .billing-payment-toggle {
    width: 100%;
    grid-auto-flow: row;
  }

  .pricing-plan-card {
    min-height: 0;
  }

  .pricing-payment-note div {
    justify-content: flex-start;
  }

  .billing-order-page {
    padding: 14px 14px 28px;
  }

  .billing-order-header {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    margin-bottom: 22px;
  }

  .billing-order-header .btn {
    margin-left: auto;
  }

  .billing-order-title h1 {
    font-size: 24px;
  }

  .billing-order-card {
    padding: 16px;
  }

  .billing-order-plan-head h1 {
    font-size: 20px;
  }

  .billing-order-period {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .billing-order-period button {
    width: 100%;
    grid-template-columns: auto 1fr;
  }

  .billing-order-period button em {
    grid-column: 2;
    justify-self: start;
  }

  .billing-order-form-grid,
  .billing-order-bottom-actions {
    grid-template-columns: 1fr;
  }

  .billing-order-complete {
    margin-top: 18px;
  }

  .billing-complete-card {
    padding: 28px 18px;
  }

  .billing-complete-card h1 {
    font-size: 24px;
  }

  .billing-complete-card p {
    font-size: 14px;
  }

  .billing-complete-row {
    grid-template-columns: 1fr;
    gap: 4px;
    align-items: start;
    min-height: 0;
    padding: 12px 16px;
  }

  .billing-complete-payment .billing-complete-row {
    padding: 0;
  }

  .billing-complete-row strong {
    text-align: left;
  }

  .language-settings-backdrop {
    padding: 8px;
  }

  .language-settings-modal {
    width: 100%;
    max-height: calc(100vh - 16px);
    padding: 18px;
  }

  .language-settings-grid,
  .language-picker {
    grid-template-columns: 1fr;
  }

  .language-picker-head,
  .translation-status-card {
    align-items: flex-start;
  }

  .translation-status-card {
    flex-wrap: wrap;
  }

  .translation-status-card .btn {
    width: 100%;
  }
}

/* Databanka obrázkov jedál: karta s názvom a popisom jedla, potvrdenie výberu. */
.menu-photo-bank-card { cursor: pointer; }
.menu-photo-bank-card.is-selected {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .12);
}
.menu-photo-bank-card .menu-photo-bank-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.menu-photo-bank-card .menu-photo-bank-desc.is-open { -webkit-line-clamp: unset; }
.menu-photo-bank-card .menu-photo-bank-desc.is-empty { font-style: italic; opacity: .7; }
.menu-photo-bank-more {
  border: 0;
  background: transparent;
  padding: 0;
  color: #15803d;
  font-size: 12px;
  cursor: pointer;
  justify-self: start;
}
.menu-photo-bank-confirm {
  border: 1px solid rgba(22, 163, 74, .28);
  background: #fbfffc;
  border-radius: 10px;
  padding: 14px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
}
.menu-photo-bank-confirm-thumb {
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  min-height: 100px;
  background-color: #e8e8ec;
}
.menu-photo-bank-confirm h3 { margin: 0 0 4px; font-size: 15px; }
.menu-photo-bank-confirm p { margin: 0 0 10px; font-size: 12px; color: var(--muted); line-height: 1.45; }
.menu-photo-bank-take {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  margin-bottom: 8px;
  cursor: pointer;
}
.menu-photo-bank-take input { margin-top: 3px; }
.menu-photo-bank-take strong { font-size: 13px; display: block; }
.menu-photo-bank-take > span > span { font-size: 12px; color: var(--muted); display: block; margin-top: 2px; }
.menu-photo-bank-diff s { color: #b91c1c; opacity: .7; }
.menu-photo-bank-diff em { font-style: normal; color: #15803d; font-weight: 600; }
.menu-photo-bank-confirm-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .menu-photo-bank-confirm { grid-template-columns: 1fr; }
}

/* Funkcia, ktorú ešte len pripravujeme (napr. Rezervácie). */
.coming-soon {
  max-width: 480px;
  margin: 12vh auto 0;
  padding: 0 24px;
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}
.coming-soon-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--green-soft);
  color: var(--green-dark);
}
.coming-soon-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.coming-soon h1 {
  margin: 8px 0 0;
  font-size: 28px;
  line-height: 1.2;
}
.coming-soon p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

/* ===== Redizajn 2026-10 (Filip): krok 1 - rám aplikácie =====
   Bočné menu, horná lišta, mobilná spodná lišta, ponuky účtu a odkazov, jedno privítanie
   a spoločné tokeny podľa schváleného návrhu (vyvoj/navrhy/administracia).
   Vrstva musí ostať posledná: prebíja "Clean redesign layer" aj "Production density layer"
   rovnakou špecificitou, len neskorším poradím. Rozmery mriežok stránok (fakturačný
   formulár, používatelia, menu) sa tu zámerne nemenia. */
:root {
  --bg: #f7f5ee;
  --card: #ffffff;
  --white: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --faint: #a1a1a6;
  --line: rgba(29, 29, 31, .08);
  --line-strong: rgba(29, 29, 31, .14);
  --fill: #f2f1ec;
  --bg-muted: #f2f1ec;
  --green: #16a34a;
  --green-dark: #14532d;
  --green-hover: #15803d;
  --green-soft: #e7f4ec;
  --amber: #a85f00;
  --amber-soft: #fff3df;
  --red: #c0262f;
  --red-soft: #fdecee;
  --shadow: 0 1px 2px rgba(29, 29, 31, .04), 0 10px 30px rgba(42, 31, 23, .06);
  --shadow-lg: 0 24px 70px rgba(42, 31, 23, .18);
  --radius: 18px;
  --ease: cubic-bezier(.32, .72, 0, 1);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Rám: overflow-x: clip namiesto hidden, inak by .app bol posúvací kontajner
   a lepkavé (sticky) bočné menu ani horná lišta by nefungovali. */
.app {
  background: var(--bg);
  overflow-x: hidden;
  overflow-x: clip;
}

.main {
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: transparent;
}

.main > .content {
  flex: 1 0 auto;
}

/* ---------- bočné menu ---------- */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.brand {
  min-height: 0;
  padding: 0 10px 18px;
}

.brand-logo {
  width: auto;
  height: 34px;
}

.tenant {
  margin-bottom: 6px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 12px 14px;
  background: transparent;
}

.tenant strong {
  margin-bottom: 1px;
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tenant span {
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Rozostup tlačí účtové položky (Používatelia, Nastavenia, Balík) k spodku. */
.nav-spacer {
  flex: 1 0 20px;
  display: flex;
  align-items: flex-end;
}

.nav-spacer::after {
  content: "";
  width: 100%;
  height: 1px;
  margin: 0 12px 8px;
  background: var(--line);
}

/* Užšie medzery než 12 px: pri šírke menu 220 px by sa inak "Rezervácie"
   so štítkom "Čoskoro" skrátilo na "Rezerv…". */
.nav-item {
  min-height: 40px;
  border-radius: 10px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #3a3a3c;
  font-weight: 500;
  transition: background .15s, color .15s;
}

.nav-item:hover {
  background: rgba(29, 29, 31, .05);
}

.nav-item:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

.nav-item.active,
.nav-item.active:hover {
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 600;
}

.nav-icon,
.nav-item.active .nav-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 0;
  background: transparent;
  color: currentColor;
}

.nav-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}

.nav-title {
  flex: 1 1 auto;
  font-size: 14.5px;
  font-weight: inherit;
}

.nav-soon {
  margin-left: auto;
  flex: 0 0 auto;
  border-radius: 99px;
  padding: 1px 5px;
  background: var(--fill);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
}

/* Položka so štítkom "Čoskoro": text položky sa nikdy neskracuje (ani tučný pri
   aktívnej položke, ani s iným systémovým písmom). Ak by miesta nestačilo,
   ustúpi štítok, nie slovo "Rezervácie". */
.nav-item-soon .nav-title {
  flex: 0 0 auto;
  overflow: visible;
  text-overflow: clip;
}

.nav-item-soon .nav-soon {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

/* Stredné menu (236 px, rovnaká podmienka ako v "Production density layer"):
   o niečo menší štítok, nech ostane rezerva aj pre tučný text aktívnej položky.
   Pravidlo pre najužšie menu nižšie ho pri 220 px ešte zmenší. */
@media (min-width: 921px) and (max-width: 1510px), (min-width: 921px) and (max-height: 860px) {
  .nav-soon {
    padding: 1px 4px;
    font-size: 9.5px;
  }
}

/* Najužšie menu (220 px, notebooky do 1360 px): viac miesta pre text položky,
   aby sa "Rezervácie" so štítkom "Čoskoro" zmestili celé aj s rezervou. */
@media (min-width: 921px) and (max-width: 1360px), (min-width: 921px) and (max-height: 760px) {
  .sidebar {
    padding-left: 12px;
    padding-right: 12px;
  }

  .nav-item {
    gap: 9px;
  }

  .nav-soon {
    padding: 1px 4px;
    font-size: 9px;
    letter-spacing: -.01em;
  }
}

/* ---------- horná lišta ---------- */
:root {
  --topbar-h: 64px;
}

/* Lepkavé prvky stránok sa lepia až pod lepkavú hornú lištu, aby pod ňu nezašli. */
.profile-editor-toolbar,
.service-readonly .content::before {
  top: calc(var(--topbar-h) + 8px);
}

.theme-editor-nav {
  top: calc(var(--topbar-h) + 18px);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 64px;
  padding: 12px 32px;
  gap: 16px;
  border-bottom: 0;
  background: rgba(247, 245, 238, .82);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
}

.topbar-logo {
  display: none;
}

.topbar-context,
.topbar .actions {
  gap: 10px;
}

/* Len vyhľadávanie v lište; .search-box používa aj filter na stránke Používatelia. */
.topbar .search-box {
  width: 300px;
  height: 38px;
  border: 0;
  border-radius: 99px;
  padding: 0 14px;
  gap: 8px;
  background: rgba(29, 29, 31, .06);
  box-shadow: none;
  transition: background .15s, box-shadow .15s;
}

.topbar .search-box:focus-within {
  background: var(--card);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, .12), var(--shadow);
}

.topbar .search-box svg {
  stroke: var(--muted);
}

.topbar .search {
  color: var(--ink);
  font-size: 14px;
}

.topbar .search::placeholder {
  color: var(--muted);
}

/* Jedna pilulka namiesto Náhľad / URL / subdomény: otvára ponuku s odkazmi. */
.guest-link-pill {
  max-width: 380px;
  height: 36px;
  border: 0;
  border-radius: 99px;
  padding: 0 14px 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  transition: box-shadow .15s, transform .1s;
}

.guest-link-pill:hover {
  box-shadow: 0 0 0 1px var(--line-strong), var(--shadow);
}

.guest-link-pill:active {
  transform: scale(.98);
}

.guest-link-pill:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.guest-link-pill svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guest-link-slug {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
  font-weight: 600;
}

.avatar {
  width: 36px;
  height: 36px;
  min-height: 36px;
  border: 0;
  background: var(--green-dark);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  transition: transform .1s, box-shadow .15s;
}

.avatar:hover,
.avatar:focus-visible {
  background: var(--green-dark);
  box-shadow: 0 0 0 3px var(--green-soft);
  outline: 0;
}

.avatar:active {
  transform: scale(.96);
}

/* ---------- ponuky (odkazy, účet, vyhľadávanie, Viac) ---------- */
@keyframes lm-pop-in {
  from { opacity: 0; transform: translateY(-4px) scale(.98); }
}

.url-menu,
.account-menu,
.search-popover,
.mobile-more-menu {
  border: 0;
  border-radius: 14px;
  padding: 6px;
  display: grid;
  gap: 2px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  animation: lm-pop-in .18s var(--ease);
}

.url-menu {
  width: 260px;
}

.account-menu {
  width: 270px;
}

.account-menu-head {
  padding: 10px 12px 12px;
  border-bottom: 1px solid var(--line);
}

.account-menu-head strong {
  font-size: 15px;
  font-weight: 600;
}

.account-menu-head span {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.url-menu-item,
.account-menu-item,
.mobile-more-item {
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  padding: 0 12px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.url-menu-item:hover,
.url-menu-item:focus-visible,
.account-menu-item:hover,
.account-menu-item:focus-visible,
.mobile-more-item:hover,
.mobile-more-item:focus-visible,
.search-result:hover,
.search-result:focus-visible {
  background: var(--fill);
  outline: 0;
}

.url-menu-item svg,
.account-menu-item svg,
.mobile-more-item svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-menu-separator {
  margin: 4px 8px;
  background: var(--line);
}

.search-result {
  border-radius: 9px;
}

/* ---------- spoločné prvky stránok ---------- */
.btn {
  height: 40px;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 99px;
  padding: 0 16px;
  background: var(--fill);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  box-shadow: none;
  transition: background .15s, transform .1s;
}

/* :where() drží špecificitu nízko, aby si tlačidlá s vlastnou farbou v sekciách
   stránok pri prejdení myšou nechali svoju farbu. */
.btn:where(:hover) {
  background: #e9e7e0;
}

.btn:where(:active) {
  transform: scale(.97);
}

.btn:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.btn.primary {
  border-color: transparent;
  background: var(--green);
  color: #fff;
}

.btn.primary:hover {
  border-color: transparent;
  background: var(--green-hover);
  color: #fff;
}

.btn.danger {
  border-color: transparent;
  background: var(--red-soft);
  color: var(--red);
}

.btn[disabled],
.btn.disabled {
  opacity: .45;
}

/* Veľkosť štítkov ostáva, aby sa nezalamovali v úzkych riadkoch (jedlá, používatelia). */
.badge {
  border-radius: 99px;
  font-weight: 600;
}

.panel {
  border-color: transparent;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.platform-banner-stack {
  padding: 4px 32px 0;
}

.platform-banner {
  border: 0;
  border-radius: 14px;
  padding: 13px 16px;
}

.platform-banner.danger {
  background: var(--red-soft);
}

.platform-banner.warning {
  background: var(--amber-soft);
}

.service-readonly .content::before {
  content: "Úpravy sú dočasne vypnuté";
  border: 0;
  border-radius: 99px;
  padding: 6px 12px;
  background: var(--red-soft);
  font-weight: 600;
}

.content {
  padding: 8px 32px 48px;
}

/* Plynulý prechod len pri zmene stránky (trieda page-enter z appShell),
   nie pri každom prekreslení počas písania. */
@keyframes lm-page-in {
  from { opacity: 0; transform: translateY(8px); }
}

.content.page-enter > * {
  animation: lm-page-in .35s var(--ease);
}

/* ---------- privítanie (len na Prehľade, raz) ---------- */
@keyframes lm-fade {
  from { opacity: 0; }
}

@keyframes lm-pop {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
}

.onboarding-backdrop {
  background: rgba(29, 29, 31, .28);
  animation: lm-fade .25s ease;
}

.onboarding-modal {
  position: relative;
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border: 0;
  border-radius: 22px;
  padding: 30px;
  display: block;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  animation: lm-pop .35s var(--ease);
}

.onboarding-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  min-height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--fill);
  color: var(--muted);
  font-size: 20px;
}

.onboarding-logo {
  display: block;
  width: auto;
  height: 34px;
}

.onboarding-modal h2 {
  margin: 14px 0 8px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -.01em;
  font-weight: 700;
}

.onboarding-copy {
  display: grid;
  gap: 8px;
}

.onboarding-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.onboarding-steps {
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
  counter-reset: lm-krok;
}

.onboarding-steps li {
  counter-increment: lm-krok;
  padding: 10px 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.onboarding-steps li::before {
  content: counter(lm-krok);
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 700;
}

.onboarding-steps strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.onboarding-steps small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.onboarding-start {
  width: 100%;
  height: 46px;
  min-height: 46px;
  font-size: 15px;
}

/* ---------- mobil: spodná plávajúca lišta ---------- */
.mobile-tabbar {
  display: none;
}

@media (max-width: 920px) {
  :root {
    --topbar-h: 112px;
  }

  /* Desktopové bočné menu na telefóne nahrádza spodná lišta. */
  .sidebar {
    display: none;
  }

  .topbar {
    padding: 10px 16px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .topbar-logo {
    display: block;
    order: 0;
    width: auto;
    height: 28px;
  }

  .topbar .actions {
    order: 1;
    margin-left: auto;
  }

  .topbar-context {
    order: 2;
    width: 100%;
  }

  .topbar .search-box {
    width: 100%;
  }

  /* Pilulka sa zúži na ikonu oka, aby "Pozrieť ako hosť" ostalo po ruke. */
  .guest-link-pill {
    width: 36px;
    padding: 0;
    justify-content: center;
  }

  .guest-link-label,
  .guest-link-slug {
    display: none;
  }

  .guest-link-pill svg {
    width: 18px;
    height: 18px;
    color: var(--ink);
  }

  .platform-banner-stack {
    padding: 4px 16px 0;
  }

  .content {
    padding: 4px 16px 112px;
  }

  .mobile-tabbar {
    position: fixed;
    z-index: 40;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    padding: 6px;
    display: flex;
    justify-content: space-around;
    gap: 2px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
  }

  .mobile-tab {
    min-width: 0;
    flex: 1 1 0;
    border: 0;
    border-radius: 16px;
    padding: 6px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: none;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
  }

  .mobile-tab svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-tab.active {
    background: var(--green-soft);
    color: var(--green-dark);
  }

  .mobile-more-menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    width: min(260px, calc(100vw - 24px));
  }

  .mobile-more-item {
    grid-template-columns: 18px minmax(0, 1fr) auto;
    min-height: 44px;
  }

  .mobile-more-item.active {
    background: var(--green-soft);
    color: var(--green-dark);
    font-weight: 600;
  }

  .mobile-more-item.active svg {
    stroke: currentColor;
  }

  /* Oznámenia nad spodnou lištou, aby ju nezakrývali. */
  .toast {
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .content.page-enter > *,
  .url-menu,
  .account-menu,
  .search-popover,
  .mobile-more-menu,
  .onboarding-backdrop,
  .onboarding-modal {
    animation: none;
  }

  .btn,
  .avatar,
  .guest-link-pill,
  .nav-item,
  .topbar .search-box {
    transition: none;
  }
}

/* ===== Redizajn 2026-10 (Filip): krok 2 - Prehľad =====
   Jeden stav menu (karta s telefónom), "Na doplnenie", "Dnes" a riadok s balíkom.
   Triedy majú predponu prehlad-, aby sa nebili so staršími .hero/.todo inde v aplikácii.
   Vrstva je za vrstvou rámu (krok 1); mriežky iných stránok nemení. */
.prehlad {
  gap: 0;
  max-width: 1120px;
}

.prehlad-hello {
  margin: 18px 0 24px;
}

.prehlad-hello h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.prehlad-hello p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.prehlad-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  align-items: center;
  gap: 28px;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 30px 34px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.prehlad-hero-main {
  min-width: 0;
}

.prehlad-hero h2 {
  margin: 14px 0 8px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.prehlad-hero p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.prehlad-hero p b {
  color: var(--ink);
  font-weight: 600;
}

.prehlad-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.prehlad-hero-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.prehlad-hero-actions .btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.prehlad-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.prehlad-facts b {
  color: var(--ink);
  font-weight: 600;
}

.prehlad-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 99px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 600;
}

.prehlad-pill.ok { background: var(--green-soft); color: var(--green-dark); }
.prehlad-pill.warn { background: var(--amber-soft); color: var(--amber); }
.prehlad-pill.bad { background: var(--red-soft); color: var(--red); }

.prehlad-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

@keyframes lm-prehlad-pulse {
  50% { box-shadow: 0 0 0 5px rgba(22, 163, 74, .15); }
}

.prehlad-pill.ok .prehlad-dot {
  animation: lm-prehlad-pulse 2.4s ease-in-out infinite;
}

/* Telefón so zmenšeným menu pre hosťa; ťuknutie otvorí skutočný náhľad. */
.prehlad-phone {
  justify-self: center;
  width: 230px;
  height: 400px;
  border: 0;
  border-radius: 34px;
  padding: 9px;
  background: #1d1d1f;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transform: rotate(2deg);
  transition: transform .5s var(--ease);
}

.prehlad-hero:hover .prehlad-phone,
.prehlad-phone:focus-visible {
  transform: rotate(0);
}

.prehlad-phone:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.prehlad-phone.muted {
  opacity: .5;
  filter: grayscale(1);
}

.prehlad-phone-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 26px;
  padding: 22px 12px 12px;
  background: #fafafa;
  color: #171a17;
  text-align: left;
}

.prehlad-phone-head b {
  display: block;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prehlad-phone-head small,
.prehlad-phone-item small {
  display: block;
  color: #6e6e73;
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prehlad-phone-note {
  margin-top: 8px;
  border-radius: 8px;
  padding: 6px 8px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 10.5px;
  line-height: 1.3;
}

.prehlad-phone-chips {
  display: flex;
  gap: 4px;
  margin: 10px 0 4px;
  overflow: hidden;
}

.prehlad-phone-chips span {
  flex: 0 0 auto;
  border-radius: 99px;
  padding: 3px 8px;
  background: #ecebe6;
  font-size: 10px;
  font-weight: 600;
}

.prehlad-phone-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid rgba(0, 0, 0, .06);
}

.prehlad-phone-item img,
.prehlad-phone-item i {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  background: #ecebe6;
}

.prehlad-phone-item span {
  min-width: 0;
}

.prehlad-phone-item b {
  display: block;
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prehlad-phone-item em {
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  color: var(--green-dark);
  white-space: nowrap;
}

.prehlad-phone-empty {
  margin-top: 16px;
  color: #6e6e73;
  font-size: 11px;
}

/* ---------- Na doplnenie a Dnes ---------- */
.prehlad-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  margin-top: 20px;
}

.prehlad-box {
  min-width: 0;
  border-radius: var(--radius);
  padding: 22px 26px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.prehlad-box-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.prehlad-box-head h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 650;
}

.prehlad-box-head span,
.prehlad-label {
  color: var(--muted);
  font-size: 13.5px;
}

.prehlad-label {
  display: block;
  margin-top: 1px;
}

.prehlad-todo {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 14px 0;
  background: none;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.prehlad-box-head + .prehlad-todo {
  border-top: 0;
}

.prehlad-todo:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 8px;
}

.prehlad-todo-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--amber-soft);
  color: var(--amber);
}

.prehlad-todo-icon.optional {
  background: var(--fill);
  color: var(--muted);
}

.prehlad-todo-icon svg,
.prehlad-done svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.prehlad-todo-text {
  flex: 1;
  min-width: 0;
}

.prehlad-todo-text strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.prehlad-todo-text small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.4;
}

.prehlad-todo:hover strong {
  color: var(--green-dark);
}

.prehlad-chevron {
  flex: none;
  color: var(--faint);
  font-size: 22px;
  line-height: 1;
}

.prehlad-done {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0 4px;
  color: var(--green-dark);
  font-weight: 600;
}

.prehlad-today-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.prehlad-box-head + .prehlad-today-row {
  border-top: 0;
}

.prehlad-today-row > div {
  min-width: 0;
}

.prehlad-today-big {
  display: block;
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.prehlad-switch {
  position: relative;
  flex: none;
  width: 50px;
  height: 30px;
  border: 0;
  border-radius: 99px;
  padding: 0;
  background: #d9d8d3;
  cursor: pointer;
  transition: background .2s;
}

.prehlad-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transition: transform .25s var(--ease);
}

.prehlad-switch.on {
  background: var(--green);
}

.prehlad-switch.on::after {
  transform: translateX(20px);
}

.prehlad-switch:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* ---------- riadok s balíkom ---------- */
.prehlad-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 20px;
  border-radius: 14px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, .6);
  color: var(--muted);
  font-size: 14px;
}

.prehlad-foot b {
  color: var(--ink);
}

.prehlad-foot-link {
  border: 0;
  padding: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.prehlad-foot-link:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

.prehlad-foot .btn {
  margin-left: auto;
}

@media (max-width: 1100px) {
  .prehlad-hero {
    grid-template-columns: minmax(0, 1fr) 210px;
    padding: 26px;
  }

  .prehlad-phone {
    width: 200px;
    height: 360px;
  }
}

@media (max-width: 920px) {
  .prehlad-hello {
    margin: 10px 0 18px;
  }

  .prehlad-hello h1 {
    font-size: 26px;
  }

  /* Na telefóne je telefón v telefóne zbytočný; náhľad otvára tlačidlo "Pozrieť ako hosť". */
  .prehlad-hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px 20px;
  }

  .prehlad-phone {
    display: none;
  }

  .prehlad-hero h2 {
    font-size: 23px;
  }

  .prehlad-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-top: 14px;
  }

  .prehlad-box {
    padding: 18px 18px;
  }

  .prehlad-foot {
    padding: 14px 16px;
  }

  .prehlad-foot .btn {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .prehlad-hero-actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .prehlad-pill.ok .prehlad-dot {
    animation: none;
  }

  .prehlad-phone,
  .prehlad-switch,
  .prehlad-switch::after {
    transition: none;
  }
}

/* ===== Redizajn 2026-10 (Filip): krok 2b - doplnenie Prehľadu a opravy rámu =====
   Čitateľné okraje polí formulárov, horná lišta bez pretekania na užších notebookoch
   (921 – ~1000 px) a drobnosti Prehľadu. Vrstva je za krokmi 1 a 2 a prebíja ich poradím. */

/* Jemný --line z kroku 1 je dobrý pre karty, ale polia formulárov by pod ním skoro
   zmizli. Token predefinujeme priamo na poliach: tak zosilnie okraj pri každom starom
   pravidle, ktoré pole kreslí cez var(--line), bez prepisovania týchto pravidiel. */
input,
select,
textarea,
.input,
.select,
.textarea {
  --line: var(--line-strong);
}

/* Horná lišta: najprv ustúpi vyhľadávanie (do 160 px), potom adresa v pilulke
   "Menu pre hostí" (skráti sa tromi bodkami). Avatar s odhlásením musí ostať viditeľný. */
@media (min-width: 921px) {
  .topbar-context {
    flex: 1 1 auto;
    min-width: 160px;
  }

  .topbar .search-wrap {
    flex: 0 1 300px;
    min-width: 160px;
  }

  .topbar .search-box {
    width: 100%;
    min-width: 0;
  }

  .topbar .actions {
    flex: 0 1 auto;
    min-width: 0;
  }

  .topbar .url-menu-wrap {
    min-width: 0;
  }

  .topbar .account-menu-wrap {
    flex: 0 0 auto;
  }

  .guest-link-pill {
    min-width: 0;
    max-width: min(380px, 100%);
  }

  .guest-link-label {
    flex: 0 0 auto;
  }
}

/* Na najužších desktopoch nestačí miesto ani pre popisok: ostane oko a adresa. */
@media (min-width: 921px) and (max-width: 1040px) {
  .guest-link-label {
    display: none;
  }

  .guest-link-pill {
    max-width: 240px;
  }
}

/* Prehľad: deň označený ako otvorený, ale bez času (dlhší text sa smie zalomiť). */
.prehlad-today-big.no-time {
  white-space: normal;
}

.prehlad-today-big small {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
}

/* Prehľad -> úloha s filtrom posunie na zoznam jedál: panel nástrojov (hľadanie a filtre)
   nesmie zájsť pod lepkavú hornú lištu (64 px desktop, 112 px mobil). */
.menu-item-toolbar {
  scroll-margin-top: calc(var(--topbar-h) + 12px);
}

/* ===== Redizajn 2026-10 (Filip): krok 3 - Menu =====
   Stránka Menu so záložkami (Jedlá, Bannery, Fotky, Preklady, Vzhľad), jeden riadok "Na doplnenie"
   namiesto panela kontrol, sekcie vľavo (pod 1180 px ako vodorovné čipy), jedlá zoskupené podľa sekcií,
   detail jedla ako panel vysúvaný sprava a Vzhľad presunutý z Nastavení. Staré pravidlá sa neprepisujú:
   prebíja ich táto neskoršia vrstva s rovnakou alebo vyššou špecificitou (.menu-redesign …, dve triedy),
   aby vyhrala aj nad "Production density layer" (@media min-width: 921px). */

.menu-basic-page.menu-redesign {
  display: block;
  max-width: 1120px;
}

/* Ikony navIcon sú len obrysy; nastavíme ich len v nových prvkoch, nie globálne, aby sa
   nepokazili výplne v ukážkach vzorov pozadia (Vzhľad) a v štítkoch jedál. */
.menu-page-head svg,
.menu-hint svg,
.menu-section-add svg,
.menu-grip svg,
.menu-dish-photo svg,
.menu-banner-preview svg,
.menu-banner-issue svg,
.menu-lang svg,
.menu-pill svg,
.menu-empty svg,
.menu-sheet-more summary svg,
.menu-item-sheet .menu-item-photo-title svg,
.menu-redesign .menu-item-search svg,
.menu-redesign .menu-order-btn svg,
.menu-redesign .category-toggle svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- hlavička ---------- */
.menu-page-head {
  margin: 18px 0 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.menu-page-title h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.menu-page-title p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.menu-page-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  /* Aj po zalomení pod nadpis ostanú tlačidlá vpravo, inak by ponuka "⋯"
     (zarovnaná k pravému okraju tlačidla) vyšla na mobile mimo obrazovky. */
  margin-left: auto;
}

.menu-redesign .menu-page-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.menu-redesign .menu-page-actions .btn svg {
  width: 18px;
  height: 18px;
}

.menu-redesign .btn.menu-head-btn {
  background: var(--card);
  box-shadow: var(--shadow);
}

.menu-redesign .btn.menu-head-btn:hover {
  background: #fbfaf7;
}

.menu-redesign .btn.menu-more-btn {
  width: 40px;
  padding: 0;
  justify-content: center;
}

.menu-more-wrap {
  position: relative;
}

/* Ponuka "⋯" vyzerá ako ponuky v hornej lište (krok 1). */
.menu-more-menu {
  position: absolute;
  z-index: 25;
  top: calc(100% + 8px);
  right: 0;
  width: 250px;
  max-width: calc(100vw - 32px);
  border-radius: 14px;
  padding: 6px;
  display: grid;
  gap: 2px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  animation: lm-pop-in .18s var(--ease);
}

.menu-more-sep {
  height: 1px;
  margin: 4px 8px;
  background: var(--line);
}

.menu-redesign .menu-entitlement-notice {
  margin-bottom: 16px;
  border: 0;
  border-radius: 14px;
}

/* ---------- záložky (segmented control) ---------- */
.menu-tabs-row {
  margin-bottom: 18px;
  max-width: 100%;
}

.menu-redesign .seg.menu-tabs {
  max-width: 100%;
  border-radius: 12px;
  padding: 3px;
  display: inline-flex;
  gap: 2px;
  overflow-x: auto;
  background: rgba(29, 29, 31, .06);
  scrollbar-width: none;
}

.menu-redesign .seg.menu-tabs::-webkit-scrollbar {
  display: none;
}

.menu-redesign .seg.menu-tabs button {
  flex: 0 0 auto;
  min-height: 34px;
  border: 0;
  border-radius: 9px;
  padding: 7px 16px;
  background: none;
  color: #3a3a3c;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .2s, box-shadow .2s;
}

.menu-redesign .seg.menu-tabs button.on {
  background: var(--card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
  color: var(--ink);
  font-weight: 600;
}

.menu-redesign .seg.menu-tabs button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

.menu-tab-panel.tab-enter > * {
  animation: lm-page-in .3s var(--ease);
}

/* ---------- riadok "Na doplnenie" a ďalšie oznamy ---------- */
.menu-hint {
  margin-bottom: 16px;
  border-radius: 14px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--amber-soft);
  color: #6b3d00;
  font-size: 14.5px;
  line-height: 1.45;
}

.menu-hint.info {
  background: var(--green-soft);
  color: var(--green-dark);
}

.menu-hint > svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}

.menu-hint > span {
  flex: 1 1 auto;
  min-width: 0;
}

.menu-redesign .menu-hint .btn {
  flex: 0 0 auto;
  height: 32px;
  min-height: 32px;
  font-size: 13px;
  background: rgba(255, 255, 255, .7);
}

.menu-hint-link {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.menu-hint-link:hover,
.menu-hint-link:focus-visible {
  color: var(--ink);
  outline: 0;
}

.menu-note {
  margin: 14px 4px 0;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Jedlá: sekcie + zoznam ---------- */
.menu-jedla {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.menu-redesign .panel.menu-sections {
  position: sticky;
  top: calc(var(--topbar-h) + 12px);
  max-height: calc(100vh - var(--topbar-h) - 24px);
  overflow-y: auto;
  padding: 10px;
}

.menu-sections-sep {
  height: 1px;
  margin: 6px 10px;
  background: var(--line);
}

.menu-section-all,
.menu-section-add {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  color: var(--ink);
  font-size: 14.5px;
  text-align: left;
  cursor: pointer;
  transition: background .15s;
}

.menu-section-all span {
  flex: 1 1 auto;
}

.menu-section-all em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.menu-section-all:hover,
.menu-section-add:hover {
  background: var(--fill);
}

.menu-section-all.active {
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 600;
}

.menu-section-add {
  color: var(--green-dark);
  font-weight: 600;
}

.menu-section-add svg {
  width: 18px;
  height: 18px;
}

.menu-section-all:focus-visible,
.menu-section-add:focus-visible,
.menu-section-main:focus-visible,
.menu-dish-main:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}

.menu-redesign .menu-basic-list {
  gap: 0;
}

/* Stĺpec zoznamu jedál nesmie byť širší ako panel: inak dlhý nadpis sekcie (napr. „Prílohy k jedlám
   na grile a steakom“) roztiahol mriežku na mobile a ceny vpravo sa orezali (pilot-karta, 18. 10. 2026). */
.menu-redesign .menu-dish-list {
  grid-template-columns: minmax(0, 1fr);
}

.menu-redesign .menu-section-list {
  display: grid;
  gap: 2px;
}

.menu-section-row {
  position: relative;
  border-radius: 10px;
  display: flex;
  align-items: center;
  transition: background .15s;
}

.menu-section-row:hover {
  background: var(--fill);
}

.menu-section-row.active {
  background: var(--green-soft);
}

.menu-section-main {
  min-width: 0;
  flex: 1 1 auto;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  padding: 7px 8px 7px 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.menu-section-row.active .menu-section-main {
  color: var(--green-dark);
}

.menu-section-text {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
}

.menu-section-text strong {
  overflow: hidden;
  font-size: 14.5px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-section-row.active .menu-section-text strong {
  font-weight: 600;
}

.menu-section-row.is-hidden .menu-section-text strong {
  color: var(--muted);
}

.menu-section-text small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-section-count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.menu-section-state {
  flex: 0 0 auto;
  color: var(--faint);
  font-size: 11px;
  font-weight: 600;
}

.menu-grip {
  flex: 0 0 auto;
  width: 18px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--faint);
  cursor: grab;
  opacity: 0;
  transition: opacity .15s;
}

.menu-grip svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: none;
}

.menu-section-row:hover .menu-grip,
.menu-dish:hover .menu-grip {
  opacity: 1;
}

/* Šípky, nastavenia a oko sekcie: pri prejdení myšou alebo fokuse; na dotykových
   zariadeniach (bez hover) vždy. */
.menu-redesign .menu-row-actions {
  flex: 0 0 auto;
  gap: 2px;
  padding-right: 6px;
}

.menu-redesign .menu-order-btn,
.menu-redesign .category-toggle {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
}

.menu-redesign .menu-order-btn:hover,
.menu-redesign .menu-order-btn:focus-visible,
.menu-redesign .category-toggle:hover,
.menu-redesign .category-toggle:focus-visible {
  background: rgba(29, 29, 31, .07);
  color: var(--ink);
  outline: 0;
}

.menu-redesign .category-toggle.is-hidden {
  background: var(--amber-soft);
  color: var(--amber);
}

.menu-redesign .menu-order-btn:disabled {
  opacity: .3;
  background: transparent;
}

.menu-redesign .menu-order-btn svg,
.menu-redesign .category-toggle svg {
  width: 16px;
  height: 16px;
}

@media (hover: hover) {
  .menu-section-actions {
    display: none;
  }

  .menu-section-row:hover .menu-section-actions,
  .menu-section-row:focus-within .menu-section-actions {
    display: flex;
  }

  .menu-section-row:hover .menu-section-count,
  .menu-section-row:focus-within .menu-section-count,
  .menu-section-row:hover .menu-section-state,
  .menu-section-row:focus-within .menu-section-state {
    display: none;
  }
}

/* Karta so zoznamom jedál */
.menu-redesign .panel.menu-dishes {
  min-width: 0;
  padding: 0 0 6px;
  overflow: hidden;
}

.menu-section-head {
  padding: 18px 18px 4px 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.menu-section-head-text {
  min-width: 0;
}

.menu-section-head h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -.01em;
}

.menu-section-head small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.menu-section-head-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.menu-redesign .btn.menu-section-show-all {
  height: 32px;
  min-height: 32px;
  margin-left: 6px;
  padding: 0 12px;
  font-size: 13px;
}

/* Na širokej obrazovke sú šípky sekcie v ľavom zozname; tu len pri čipoch. */
.menu-redesign .menu-section-head-order {
  display: none;
}

.menu-redesign .menu-item-toolbar {
  margin: 0;
  padding: 12px 18px 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 10px;
}

.menu-redesign .menu-item-search {
  height: 40px;
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  padding: 0 14px;
  background: var(--fill);
}

.menu-redesign .menu-item-search svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.menu-redesign .menu-item-search input {
  --line: transparent;
  height: 38px;
  border: 0;
  box-shadow: none;
  background: transparent;
  font-size: 15px;
}

.menu-redesign .menu-item-filter-select {
  width: 100%;
  height: 40px;
  min-height: 40px;
  border-radius: 12px;
  padding: 0 12px;
  background-color: var(--card);
  font-size: 14px;
}

.menu-dish-group-title {
  padding: 18px 22px 6px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

/* Dlhý názov sekcie sa zalomí (celý názov ostane čitateľný), počet jedál ostane vpravo. */
.menu-dish-group-title h3 {
  margin: 0;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.menu-dish-group-title span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
}

/* Riadok jedla */
.menu-dish {
  position: relative;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  transition: background .15s;
}

.menu-dish:hover {
  background: #fbfaf7;
}

.menu-dish.active {
  background: rgba(231, 244, 236, .55);
}

.menu-dish-main {
  min-width: 0;
  flex: 1 1 auto;
  border: 0;
  padding: 10px 8px 10px 4px;
  display: grid;
  grid-template-columns: 18px 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  background: none;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.menu-dish-photo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background-color: var(--fill);
  background-position: center;
  background-size: cover;
  color: var(--faint);
}

.menu-dish-photo svg {
  width: 22px;
  height: 22px;
}

.menu-dish.off .menu-dish-photo.has-photo {
  filter: grayscale(1);
  opacity: .5;
}

.menu-dish-text {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.menu-dish-text strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-dish.off .menu-dish-text strong {
  color: var(--muted);
}

.menu-dish-text small {
  display: flex;
  gap: 10px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.menu-dish-text small span {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-dish-text small .warn {
  color: var(--amber);
  font-weight: 500;
}

.menu-dish-price {
  min-width: 64px;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: right;
}

.menu-dish-price.zero {
  color: var(--amber);
}

.menu-redesign .menu-dish-actions {
  padding-right: 20px;
  gap: 4px;
}

/* Šípky jedla len pri prejdení myšou (poradie sa dá meniť aj ťahaním); prepínač stále. */
@media (hover: hover) {
  .menu-dish-actions .menu-order-btn {
    visibility: hidden;
  }

  .menu-dish:hover .menu-dish-actions .menu-order-btn,
  .menu-dish:focus-within .menu-dish-actions .menu-order-btn {
    visibility: visible;
  }
}

/* Prepínač (switch) ako v návrhu */
.menu-switch {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 26px;
  margin-left: 6px;
  border: 0;
  border-radius: 99px;
  padding: 0;
  background: #d9d8d3;
  cursor: pointer;
  transition: background .2s;
}

.menu-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transition: transform .25s var(--ease);
}

.menu-switch.on {
  background: var(--green);
}

.menu-switch.on::after {
  transform: translateX(18px);
}

/* Bez práva menu.allergens alebo nastavené v hlavnej sekcii (25. 10. 2026). */
.menu-switch:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.menu-switch:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* Prázdne stavy */
.menu-redesign .menu-empty {
  padding: 34px 26px;
  display: grid;
  justify-items: center;
  gap: 6px;
  border: 0;
  background: none;
  color: var(--muted);
  text-align: center;
}

.menu-redesign .menu-empty strong {
  max-width: 460px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
}

.menu-redesign .menu-empty > div {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.menu-redesign .menu-empty .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.menu-redesign .menu-empty .btn svg {
  width: 16px;
  height: 16px;
}

/* Ťahanie: indikátory a "duch" zo starej vrstvy platia ďalej; tu len zaoblenie riadkov. */
.menu-redesign .menu-section-row.menu-drop-into {
  background: var(--green-soft);
  box-shadow: inset 0 0 0 1px rgba(22, 163, 74, .3);
}

[data-menu-drag-ghost].menu-dish,
[data-menu-drag-ghost].menu-section-row {
  display: flex !important;
}

[data-menu-drag-ghost] .menu-grip {
  opacity: 1;
}

/* ---------- Bannery ---------- */
.menu-redesign .menu-banner-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.menu-redesign .menu-banner-card {
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  display: grid;
  background: var(--card);
  box-shadow: var(--shadow);
  opacity: 1;
}

.menu-redesign .menu-banner-card.muted .menu-banner-preview {
  opacity: .6;
}

.menu-redesign .menu-banner-preview {
  width: 100%;
  aspect-ratio: 2.3 / 1;
  border: 0;
  border-radius: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  background-color: var(--fill);
  color: var(--muted);
  cursor: pointer;
}

.menu-redesign .menu-banner-preview span {
  border-radius: 0;
  padding: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.menu-redesign .menu-banner-preview svg {
  width: 24px;
  height: 24px;
}

.menu-redesign .menu-banner-preview:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}

.menu-banner-card-body {
  padding: 14px 16px 4px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.menu-banner-card-text {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 2px;
}

.menu-banner-card-text strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-banner-card-text small {
  color: var(--muted);
  font-size: 13px;
}

.menu-banner-card-text .menu-banner-issue {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--amber);
  font-weight: 600;
}

.menu-banner-issue svg {
  width: 14px;
  height: 14px;
}

.menu-redesign .menu-banner-card-actions {
  padding: 8px 16px 14px;
  display: flex;
  background: none;
}

.menu-redesign .menu-banner-card-actions .btn {
  height: 34px;
  min-height: 34px;
  padding: 0 13px;
  font-size: 13px;
}

/* ---------- Fotky ---------- */
.menu-redesign .menu-photo-panel {
  padding: 22px 24px;
}

/* ---------- Preklady ---------- */
.menu-redesign .ai-translation-entitlement-notice,
.menu-redesign .translation-access-note,
.menu-redesign .language-entitlement-notice {
  margin-bottom: 14px;
}

.menu-redesign .panel.menu-langs {
  padding: 0;
  overflow: hidden;
}

.menu-lang {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-top: 1px solid var(--line);
}

.menu-lang:first-child {
  border-top: 0;
}

.menu-lang-flag {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--fill);
  color: var(--muted);
  font-size: 20px;
  font-weight: 700;
}

.menu-lang-flag svg {
  width: 20px;
  height: 20px;
}

.menu-lang-main {
  min-width: 0;
  flex: 1 1 auto;
}

.menu-lang-main h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.menu-lang-main small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.menu-pill {
  flex: 0 0 auto;
  border-radius: 99px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}

.menu-pill svg {
  width: 15px;
  height: 15px;
}

.menu-pill.ok {
  background: var(--green-soft);
  color: var(--green-dark);
}

.menu-pill.warn {
  background: var(--amber-soft);
  color: var(--amber);
}

.menu-lang-foot {
  flex-wrap: wrap;
  background: rgba(242, 241, 236, .45);
}

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

.menu-redesign .menu-lang-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.menu-redesign .menu-lang-actions .btn svg {
  width: 17px;
  height: 17px;
}

/* ---------- Vzhľad (presunutý z Nastavení) ---------- */
.menu-tab-vzhlad .theme-editor-shell {
  margin: 0;
}

/* Nastavenia: odkaz na presunutý vzhľad */
.settings-theme-moved .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.settings-theme-moved .btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

/* ---------- Detail jedla: panel vysúvaný sprava ---------- */
@keyframes lm-sheet-in {
  from { transform: translateX(100%); }
}

.modal-backdrop.menu-item-sheet-backdrop {
  padding: 0;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  background: rgba(29, 29, 31, .28);
}

.modal-backdrop.menu-item-sheet-backdrop.is-opening {
  animation: lm-fade .25s ease;
}

/* .menu-item-modal ostáva posúvacím kontajnerom: render() obnovuje jeho scrollTop. */
.menu-item-modal.menu-item-sheet {
  width: min(540px, 100vw);
  height: 100vh;
  height: 100dvh;
  max-height: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--card);
  box-shadow: var(--shadow-lg);
}

.menu-item-modal.menu-item-sheet.is-opening {
  animation: lm-sheet-in .42s var(--ease);
}

.menu-sheet-head {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.menu-sheet-head h2 {
  margin: 0;
  overflow: hidden;
  font-size: 19px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-sheet-head > div {
  min-width: 0;
}

.menu-sheet-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.menu-sheet-body {
  flex: 1 0 auto;
  padding: 0 24px 24px;
}

.menu-sheet-foot {
  position: sticky;
  bottom: 0;
  z-index: 5;
  padding: 14px 20px;
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.menu-sheet-foot .btn.primary {
  min-width: 120px;
  margin-left: auto;
}

.menu-item-sheet .btn.danger {
  background: none;
}

.menu-item-sheet .btn.danger:hover {
  background: var(--red-soft);
}

/* Fotka hore */
.menu-item-sheet .menu-sheet-photo {
  margin: 20px 0 6px;
  border: 0;
  border-radius: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  background: none;
}

.menu-item-sheet .menu-item-photo-preview {
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  padding: 0;
  display: grid;
  place-items: center;
  box-shadow: none;
}

.menu-item-sheet .menu-item-photo-preview.is-empty {
  border: 1.5px dashed var(--line-strong);
  background: var(--fill);
  color: var(--muted);
}

.menu-item-sheet .menu-item-photo-preview .menu-item-photo-title {
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-shadow: none;
}

.menu-item-sheet .menu-item-photo-preview .menu-item-photo-title svg {
  width: 30px;
  height: 30px;
}

.menu-item-sheet .menu-item-photo-preview:hover,
.menu-item-sheet .menu-item-photo-preview:focus-visible {
  transform: none;
  box-shadow: none;
  outline: 2px solid rgba(22, 163, 74, .35);
  outline-offset: 2px;
}

.menu-item-sheet .menu-item-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.menu-item-sheet .menu-item-photo-actions .btn {
  width: auto;
  height: 34px;
  min-height: 34px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.menu-item-sheet .menu-item-photo-actions .btn svg {
  width: 16px;
  height: 16px;
}

.menu-sheet-note {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
}

/* Polia */
.menu-sheet-field {
  margin-top: 18px;
  display: block;
}

.menu-sheet-field > span {
  display: block;
  margin-bottom: 6px;
  color: #3a3a3c;
  font-size: 13px;
  font-weight: 600;
}

.menu-item-sheet .menu-sheet-field .input,
.menu-item-sheet .menu-sheet-field .textarea,
.menu-item-sheet .menu-sheet-field .select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 11px 13px;
  background-color: var(--card);
  font-size: 15px;
  box-shadow: none;
}

.menu-item-sheet .menu-sheet-field .textarea {
  min-height: 84px;
  resize: vertical;
}

.menu-item-sheet .menu-sheet-field .input:focus,
.menu-item-sheet .menu-sheet-field .textarea:focus,
.menu-item-sheet .menu-sheet-field .select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, .12);
  outline: 0;
}

.menu-sheet-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
}

.menu-sheet-row > .menu-sheet-field {
  margin-top: 18px;
}

.menu-sheet-set {
  margin-top: 18px;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--fill);
}

.menu-sheet-set strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.menu-sheet-set small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.menu-sheet-title {
  margin: 26px 0 4px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.menu-sheet-title h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.menu-sheet-title span {
  color: var(--muted);
  font-size: 13px;
}

/* Alergény a označenia ako čipy (zaškrtávacie pole je skryté, ale ostáva ovládateľné klávesnicou). */
.menu-item-sheet .menu-choice-grid.menu-sheet-chips {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.menu-item-sheet .menu-sheet-chips .menu-choice {
  position: relative;
  width: auto;
  min-height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  padding: 5px 12px;
  background: var(--card);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
  transition: background .15s, border-color .15s;
}

.menu-item-sheet .menu-sheet-chips .menu-choice.active {
  border-color: transparent;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 600;
}

.menu-item-sheet .menu-sheet-chips .menu-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.menu-item-sheet .menu-sheet-chips .menu-choice:focus-within {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

.menu-item-sheet .menu-sheet-chips .menu-spice-choice {
  width: auto;
}

.menu-item-sheet .menu-sheet-chips .menu-spice-trigger {
  width: auto;
}

/* "Ďalšie možnosti" (zbalené) */
.menu-sheet-more {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.menu-sheet-more summary {
  padding: 16px 0 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.menu-sheet-more summary::-webkit-details-marker {
  display: none;
}

.menu-sheet-more summary svg {
  width: 18px;
  height: 18px;
  color: var(--faint);
  transition: transform .2s;
}

.menu-sheet-more[open] summary svg {
  transform: rotate(90deg);
}

.menu-sheet-more summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.menu-sheet-time {
  display: grid;
  gap: 4px;
}

.menu-sheet-time small,
.menu-sheet-help {
  color: var(--muted);
  font-size: 12.5px;
}

.menu-sheet-help {
  display: block;
  margin-top: 6px;
}

.menu-sheet-more .menu-sheet-row {
  grid-template-columns: 1fr 1fr;
}

.menu-item-sheet .food-photo-share-consent {
  margin-top: 18px;
  border: 0;
  padding: 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: none;
  font-size: 14px;
}

.menu-item-sheet .food-photo-share-consent input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--green);
}

.menu-item-sheet .food-photo-share-consent strong {
  font-size: 14px;
  font-weight: 500;
}

.menu-item-sheet .food-photo-share-consent small {
  color: var(--muted);
  font-size: 13px;
}

/* ---------- užšie obrazovky: sekcie ako vodorovné čipy nad zoznamom ---------- */
@media (max-width: 1180px) {
  .menu-jedla {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .menu-redesign .panel.menu-sections {
    position: static;
    max-height: none;
    padding: 2px 0 6px;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    background: none;
    box-shadow: none;
    scrollbar-width: none;
  }

  .menu-redesign .panel.menu-sections::-webkit-scrollbar {
    display: none;
  }

  .menu-redesign .menu-section-list {
    display: flex;
    gap: 6px;
  }

  .menu-sections-sep {
    display: none;
  }

  .menu-section-all,
  .menu-section-add,
  .menu-section-row {
    flex: 0 0 auto;
    width: auto;
    border-radius: 99px;
    background: var(--card);
    box-shadow: var(--shadow);
  }

  .menu-section-all,
  .menu-section-add {
    min-height: 38px;
    padding: 8px 14px;
  }

  .menu-section-all.active,
  .menu-section-row.active {
    background: var(--green);
    color: #fff;
  }

  .menu-section-all.active em,
  .menu-section-row.active .menu-section-main,
  .menu-section-row.active .menu-section-count,
  .menu-section-row.active .menu-section-state {
    color: #fff;
    opacity: .9;
  }

  .menu-section-main {
    min-height: 38px;
    padding: 8px 14px;
    gap: 8px;
  }

  .menu-section-text small,
  .menu-section-actions,
  .menu-section-row .menu-grip {
    display: none !important;
  }

  .menu-section-text strong {
    font-size: 14px;
  }

  .menu-section-row:hover .menu-section-count,
  .menu-section-row:hover .menu-section-state,
  .menu-section-row:focus-within .menu-section-count,
  .menu-section-row:focus-within .menu-section-state {
    display: inline;
  }

  /* Poradie sekcie sa pri čipoch mení šípkami v hlavičke zoznamu. */
  .menu-redesign .menu-section-head-order {
    display: grid;
  }
}

/* ---------- mobil ---------- */
@media (max-width: 920px) {
  .menu-page-head {
    margin: 10px 0 14px;
    align-items: center;
  }

  .menu-page-title h1 {
    font-size: 28px;
  }

  .menu-page-title p {
    font-size: 14px;
  }

  .menu-guest-view-btn {
    display: none !important;
  }

  .menu-redesign .seg.menu-tabs {
    display: flex;
    width: 100%;
  }

  .menu-redesign .seg.menu-tabs button {
    flex: 1 0 auto;
    padding: 7px 12px;
  }

  .menu-redesign .menu-item-toolbar {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px 14px 8px;
  }

  .menu-dish-group-title {
    padding: 16px 16px 6px;
  }

  .menu-dish-main {
    padding: 10px 6px 10px 16px;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 12px;
  }

  .menu-dish-main .menu-grip {
    display: none;
  }

  .menu-dish-photo {
    width: 48px;
    height: 48px;
  }

  /* Na mobile je viditeľnosť v detaile jedla; prepínač a šípky v riadku by sa nezmestili. */
  .menu-redesign .menu-dish-actions {
    display: none;
  }

  .menu-dish-main {
    padding-right: 16px;
  }

  .menu-section-head {
    padding: 16px 14px 2px 16px;
  }

  .menu-lang {
    padding: 16px;
    gap: 12px;
  }

  .menu-redesign .menu-photo-panel {
    padding: 16px;
  }

  .menu-hint {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  /* Detail jedla na celú obrazovku */
  .menu-item-modal.menu-item-sheet {
    width: 100vw;
  }

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

  .menu-sheet-head,
  .menu-sheet-foot {
    padding-left: 16px;
    padding-right: 16px;
  }

  .menu-sheet-foot {
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }

  .menu-sheet-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .menu-page-actions .menu-add-btn span {
    display: none;
  }

  .menu-page-actions .menu-add-btn {
    width: 40px;
    padding: 0;
    justify-content: center;
  }

  .menu-more-menu {
    width: min(250px, calc(100vw - 32px));
  }

  .menu-dish-price {
    min-width: 0;
  }

  .menu-sheet-foot .btn {
    padding: 0 12px;
  }

  .menu-sheet-foot .btn.primary {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-tab-panel.tab-enter > *,
  .menu-item-modal.menu-item-sheet.is-opening,
  .modal-backdrop.menu-item-sheet-backdrop.is-opening,
  .menu-more-menu {
    animation: none;
  }

  .menu-switch,
  .menu-switch::after {
    transition: none;
  }
}

/* Krok 3: poradie jedla v detaile (na mobile sú šípky v riadku skryté). */
.menu-sheet-order {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.menu-sheet-order .btn {
  height: 34px;
  min-height: 34px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

/* ===== Redizajn 2026-10 (Filip): krok 4 - Balík a faktúry, Môj účet, zatvorenie v Profile =====
   Stránka extensions je "Balík a faktúry" (váš balík, faktúry, údaje firmy, cenník), stránka
   settings je "Môj účet" (prihlásenie, heslo, záloha) a prepínač "Dočasne zatvorené" je aj
   v Profile pri otváracích hodinách. Staré pravidlá cenníka a fakturačného formulára sa
   neprepisujú; prebíjame ich neskorším poradím s vyššou špecificitou (.balik-page …), aby
   vyhrala aj nad "Production density layer" (@media min-width: 921px). */
.balik-page,
.ucet-page {
  display: grid;
  gap: 20px;
  max-width: 1120px;
}

.ucet-page {
  max-width: 760px;
}

.balik-page > .page-head,
.ucet-page > .page-head {
  margin-bottom: 0;
}

/* Cieľ posunu (show-invoices, Zmeniť balík, úloha z Prehľadu) nesmie zájsť pod lepkavú hornú lištu. */
.balik-page [data-invoices-panel],
.balik-page [data-billing-checkout],
.balik-page [data-company-billing] {
  scroll-margin-top: calc(var(--topbar-h) + 12px);
}

.balik-page .balik-card,
.ucet-page .ucet-card {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 24px 26px;
}

.balik-page .balik-card h2,
.ucet-page .ucet-card h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
}

/* Váš balík */
.balik-current-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.balik-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.balik-page .balik-current h2 {
  font-size: 28px;
  letter-spacing: -.02em;
}

.balik-current-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.balik-paused-note,
.balik-current-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.balik-paused-note {
  border-radius: 12px;
  padding: 10px 14px;
  background: var(--red-soft);
  color: var(--red);
  font-weight: 600;
}

.balik-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.balik-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  line-height: 1.4;
}

.balik-features svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--green);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Faktúry */
.balik-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
}

.balik-section-head small {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.balik-empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0;
  color: var(--muted);
}

.balik-empty.danger {
  color: var(--red);
}

.balik-invoice-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.balik-invoice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 8px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.balik-invoice-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.balik-invoice-main strong {
  overflow-wrap: anywhere;
}

.balik-invoice-main small {
  color: var(--muted);
  font-size: 13px;
}

.balik-invoice-amount {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.balik-invoice .btn svg,
.ucet-row .btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Údaje firmy na faktúru: panel je ten istý ako predtým v Nastaveniach, len v rytme stránky. */
.balik-page .company-lookup-panel {
  margin: 0;
  padding: 24px 26px;
}

.balik-page .company-lookup-panel h2 {
  font-size: 20px;
  font-weight: 700;
}

/* Cenník: aktuálny balík prevádzky ("Váš balík") a neaktívne tlačidlo na jeho karte.
   Sivé je len neaktívne tlačidlo ([disabled]); "Obnoviť balík", "Predĺžiť balík" a odkaz na
   neuhradenú objednávku na tej istej karte ostávajú zelené ako ostatné tlačidlá cenníka. */
.balik-page .billing-pricing-page {
  margin-bottom: 0;
}

.balik-page .billing-plan-card.current {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(22, 163, 74, .14);
}

.balik-page .billing-recommended.billing-current-plan {
  background: var(--green-soft);
  color: var(--green-dark);
}

.balik-page .billing-card-cta[disabled] {
  border-color: var(--line-strong);
  background: var(--fill);
  color: var(--muted);
  cursor: default;
}

/* Môj účet */
.ucet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.ucet-card h2 + .ucet-row {
  padding-top: 0;
  border-top: 0;
}

.ucet-row > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.ucet-row strong {
  overflow-wrap: anywhere;
}

.ucet-row small,
.ucet-label {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.ucet-row .btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ucet-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.ucet-link {
  border: 0;
  padding: 0;
  background: none;
  color: var(--green-dark);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.ucet-link:hover {
  text-decoration: underline;
}

/* Profil: "Dočasne zatvorené" pod otváracími hodinami (prepínač je ten istý ako v Prehľade). */
.profile-closed-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--fill);
}

.profile-closed-card.on {
  background: var(--amber-soft);
}

.profile-closed-card > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.profile-closed-card strong {
  font-size: 15px;
}

.profile-closed-card small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 720px) {
  .balik-page .balik-card,
  .ucet-page .ucet-card,
  .balik-page .company-lookup-panel {
    padding: 18px 16px;
  }

  .balik-current-head,
  .ucet-row {
    flex-direction: column;
    align-items: stretch;
  }

  .balik-invoice {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .balik-invoice .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

/* ===== Redizajn 2026-10 (Filip): krok 5 - otváracie hodiny, Používatelia, technické texty =====
   Otváracie hodiny: každý deň má vpravo prepínač Otvorené/Zatvorené (menší variant prepínača
   z Prehľadu). Používatelia: pri sebe rola ako text a "To ste vy", pozvaní bez hesla majú vlastný
   vzhľad (nie sú pozastavení). Brána pri chybe načítania skrýva technické údaje do zbalených
   podrobností pre podporu. */

.public-hours-editor .public-hour-row {
  grid-template-columns: 82px minmax(0, 1fr) auto;
  align-items: center;
}

.public-hour-row.closed .public-closed-toggle {
  color: var(--muted);
  font-weight: 500;
}

.prehlad-switch.hodiny-switch {
  width: 36px;
  height: 22px;
}

.prehlad-switch.hodiny-switch::after {
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
}

.prehlad-switch.hodiny-switch.on::after {
  transform: translateX(14px);
}

.user-role-text {
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
}

.user-self-note {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 99px;
  padding: 0 10px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  vertical-align: middle;
}

.user-row.is-self {
  border-color: #b9e8c9;
}

.user-row.pending {
  background: #fffdf7;
}

.backend-gate-details summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.backend-gate-details:not([open]) {
  gap: 0;
}

@media (max-width: 720px) {
  .public-hours-editor .public-hour-row {
    grid-template-columns: 74px minmax(0, 1fr) auto;
  }
}

/* Úzky stĺpec Otváracie hodiny (Profil na desktope má ~188 px): deň a prepínač v prvom riadku,
   časy alebo "Zatvorené" pod nimi cez celú šírku. Do jedného riadku sa deň, dva časy a prepínač
   zmestia až od ~255 px; inak sa polia "od" a "do" prekrývali a "do" ležalo pod prepínačom. */
.public-hours-editor {
  container-type: inline-size;
}

.public-hours-editor .time-field-wrap {
  flex: none;
}

@container (max-width: 270px) {
  .public-hours-editor .public-hour-row {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 2px;
  }

  .public-hours-editor .public-hour-row > strong,
  .public-hours-editor .public-hour-row > .public-closed-toggle {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

/* ===== Redizajn 2026-10 (Filip): krok 6 - balíky Free, Basic a Pro (zrušený Advanced) =====
   Cenník má po zrušení Advanced len dva platené balíky. Stará mriežka mala napevno 3 stĺpce
   (repeat(3, …)), takže vpravo ostával prázdny stĺpec. auto-fit rozdelí šírku podľa počtu kariet
   z cenníka (2 dnes, viac ak pribudnú). Len na širokej obrazovke: pod 960 px platí pôvodné
   pravidlo s jedným stĺpcom. Špecificita .balik-page … prebije aj "Production density layer". */
@media (min-width: 961px) {
  .balik-page .billing-plan-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

/* ===== Redizajn 2026-10 (Filip): doladenie - normálne písmo v poliach formulárov =====
   Polia (input, textarea, select) majú `font: inherit` a väčšina z nich leží v <label>, ktorý má
   font-weight 850. Text v poli (napr. Názov a Popis v detaile jedla) tak vyzeral ako tučný nadpis.
   Schválený návrh (.field input) má v poli normálne písmo; popisky polí ostávajú tučné.
   Zámerne len triedy polí a vyhľadávacie polia v <label>: pravidlá s vlastnou váhou a vyššou
   špecificitou (QR editor .qr-text-input, nadpisy upravované priamo v náhľade profilu, časy
   otváracích hodín, výber prevádzky) ostávajú, tlačidiel a čipov sa vrstva nedotýka. */
.input,
.textarea,
.select,
.search,
.menu-item-search input,
.menu-photo-bank-search input,
.user-filter-search input,
.language-setting-field select,
.user-contact-editor-grid .input,
.theme-row.color-row .input {
  font-weight: 500;
}

.input::placeholder,
.textarea::placeholder,
.search::placeholder,
.menu-item-search input::placeholder,
.menu-photo-bank-search input::placeholder,
.user-filter-search input::placeholder {
  color: #a3a3a3;
  font-weight: 450;
  opacity: 1;
}

/* ===== Redizajn 2026-10 (Filip): fáza 2, krok R - rozhodnutia z 11. 10. 2026 =====
   Štítky jedla ako čipy (aj "Odporúčame" a vlastné štítky s krížikom), Môj účet (Môj profil,
   odhlásenie všade, žiadosť o zrušenie účtu), tlačidlá čakajúcej pozvánky v Používateľoch
   a "Odhlásiť sa" v mobilnej ponuke "Viac". */

/* Vlastný štítok (napr. z importu tabuľky): čip s krížikom, ktorý ho z jedla odoberie. */
.menu-item-sheet .menu-sheet-chips .menu-choice.menu-custom-tag {
  gap: 4px;
  padding-right: 4px;
  cursor: default;
}

.menu-tag-remove {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 99px;
  display: inline-grid;
  place-items: center;
  background: transparent;
  color: var(--green-dark);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.menu-tag-remove:hover,
.menu-tag-remove:focus-visible {
  background: rgba(20, 83, 45, .1);
  outline: none;
}

/* Môj účet: Môj profil */
.ucet-page .ucet-card-note {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

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

.ucet-profil-fields .field > span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.ucet-profil-fields .field small {
  color: var(--muted);
  font-weight: 500;
}

.ucet-profil-actions {
  display: flex;
  justify-content: flex-end;
}

/* Môj účet: zmena vlastného prihlasovacieho e-mailu (kontrola bn-2, 2. kolo). */
.ucet-email-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.ucet-email-form .ucet-card-note,
.ucet-email-form .ucet-email-error,
.ucet-email-form .ucet-profil-actions {
  grid-column: 1 / -1;
  margin: 0;
}

.ucet-email-form .field > span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.ucet-email-form .ucet-profil-actions {
  gap: 10px;
}

.ucet-email-error {
  color: var(--red);
  font-size: 14px;
}

.ucet-email-pending {
  margin-top: 4px;
}

/* Zrušenie účtu: prijatá žiadosť má jemné žlté pozadie, aby bola na prvý pohľad vidieť. */
.ucet-page .ucet-zrusenie.is-requested {
  background: var(--amber-soft);
  border-color: transparent;
}

.ucet-zrusenie-modal {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  border-radius: 16px;
  padding: 22px;
  display: grid;
  gap: 18px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
}

.ucet-zrusenie-modal .modal-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.ucet-zrusenie-modal .modal-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.ucet-zrusenie-form {
  display: grid;
  gap: 10px;
}

.ucet-zrusenie-form .field > span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.ucet-zrusenie-or {
  color: var(--muted);
  font-size: 13px;
}

.ucet-zrusenie-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  cursor: pointer;
}

.ucet-zrusenie-check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--green);
}

.ucet-zrusenie-modal .text-editor-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

/* Používatelia: čakajúca pozvánka má dve tlačidlá vedľa seba (na mobile pod sebou). */
.user-invite-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

/* Detail pozvaného: rovnaké dve tlačidlá ako v riadku, s vysvetlením. */
.user-detail-invite {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 14px;
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--amber-soft);
}

.user-detail-invite > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.user-detail-invite small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

/* Používatelia pri strednej šírke (napr. okno 960 px s bočným panelom): riadok používateľa,
   formulár "Pridať používateľa" a filtre mali pevné minimálne šírky (~875–915 px) a pri užšom
   paneli boli tlačidlá ("Poslať znova", "Zrušiť pozvánku", "Poslať pozvánku") mimo obrazovky.
   Rozhoduje šírka panela, nie okna, lebo bočný panel uberá miesto. */
.user-invite-panel,
.users-list-panel {
  container-type: inline-size;
}

@container (max-width: 960px) {
  .user-row {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(140px, 180px);
  }

  .user-row > .user-flags {
    grid-column: 1;
  }

  .user-row > .user-actions {
    grid-column: 2 / -1;
  }

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

  .user-invite-form > .btn {
    grid-column: 1 / -1;
    justify-self: end;
  }

  .user-filter-bar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 170px) minmax(0, 200px);
  }

  /* Hustotná vrstva pri menších oknách dáva .search-box pevnú šírku 260 px × hustota. */
  .user-filter-search {
    width: 100%;
    min-width: 0;
  }
}

@container (max-width: 560px) {
  .user-row,
  .user-invite-form,
  .user-filter-bar {
    grid-template-columns: minmax(0, 1fr);
  }

  .user-row > .user-flags,
  .user-row > .user-actions {
    grid-column: 1;
  }

  .user-row > .user-actions {
    justify-content: flex-start;
  }

  .user-invite-form > .btn {
    justify-self: stretch;
  }
}

/* Mobilná ponuka "Viac": oddelenie pred "Odhlásiť sa". */
.mobile-more-sep {
  height: 1px;
  margin: 4px 8px;
  background: var(--line);
}

@media (max-width: 720px) {
  .ucet-profil-fields,
  .ucet-email-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .ucet-email-form .ucet-profil-actions {
    flex-direction: column-reverse;
  }

  .ucet-profil-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .user-invite-actions {
    justify-content: flex-start;
  }

  .user-detail-invite {
    flex-direction: column;
    align-items: stretch;
  }

  .ucet-zrusenie-modal .text-editor-actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* ===== Redizajn 2026-10 (Filip): fáza 2 - krok M (rám, Prehľad, Menu: opravy z kontroly 11. 10.) =====
   Chybové hlásenie (červené, ostáva), vybraný výsledok hľadania, ciele posunu pod lepkavou lištou,
   mini telefón na Prehľade, prihlásenie v štýle redizajnu, okno "Pozrieť ako hosť", okná a čipy
   stránky Menu (banner, nastavenia sekcie, pálivosť, stiahnutie, import, jazyky, vzhľad). */

/* Chyba sa nesmie tváriť ako úspech (zelený toast). */
.toast.is-error {
  border-color: rgba(192, 38, 47, .22);
  background: var(--red-soft);
  color: var(--red);
}

.toast.is-error .toast-close {
  background: rgba(192, 38, 47, .1);
}

.toast.is-error .toast-close:hover,
.toast.is-error .toast-close:focus-visible {
  background: rgba(192, 38, 47, .18);
}

/* Dlhá adresa v hlásení (Kopírovať odkaz) sa zalomí, nepretečie. */
.toast [data-toast-message] {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Šípky v hľadaní: vybraný výsledok je zvýraznený ako pri prejdení myšou. */
.search-result.is-active {
  background: var(--bg-muted);
}

/* Ciele posunu (výsledok hľadania, úloha z Prehľadu) nesmú zájsť pod lepkavú hornú lištu. */
[data-profile-closed],
[data-profile-public-details],
[data-profile-hours],
[data-profile-gallery],
[data-company-billing] {
  scroll-margin-top: calc(var(--topbar-h) + 12px);
}

/* Mini telefón: hlavička, oznam a sekcie sa nesmú stláčať (pri 960 px a pri Dočasne zatvorené
   z nich ostávali sivé čiarky); radšej sa orežú posledné jedlá. */
.prehlad-phone-head,
.prehlad-phone-note,
.prehlad-phone-chips,
.prehlad-phone-item {
  flex-shrink: 0;
}

.prehlad-phone-chips span {
  line-height: 1.5;
}

/* Adresa menu sa na telefóne nemá zalomiť na pomlčke (pod- / dubom.livemenu.sk): celá prejde na
   ďalší riadok; zalomí sa len vtedy, keď je dlhšia ako celý riadok. */
.prehlad-hero p b {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* ---------- okná: okrúhle zatváracie tlačidlo, väčšie zaoblenie (ako v schválenom návrhu) ---------- */
.modal-close {
  width: 36px;
  height: 36px;
  min-height: 36px;
  flex: none;
  border: 0;
  border-radius: 50%;
  padding: 0;
  display: grid;
  place-items: center;
  background: var(--fill);
  color: var(--ink);
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: #e9e7e0;
  outline: none;
}

.menu-item-create-modal,
.menu-import-export-modal,
.menu-banner-modal,
.menu-photo-bank-modal,
.mobile-preview-dialog,
.language-settings-modal {
  border: 0;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.menu-item-create-modal .modal-head h2,
.menu-import-export-modal .modal-head h2,
.menu-banner-modal .modal-head h2,
.menu-photo-bank-modal .modal-head h2,
.mobile-preview-dialog .modal-head h2,
.language-settings-modal .modal-head h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
}

.menu-item-create-modal .modal-head p,
.menu-import-export-modal .modal-head p,
.menu-banner-modal .modal-head p,
.language-settings-modal .modal-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

/* ---------- Pozrieť ako hosť ---------- */
.mobile-preview-dialog {
  width: min(100%, 440px);
  padding: 18px;
  gap: 14px;
}

.mobile-preview-dialog .modal-head {
  align-items: center;
}

.seg.mobile-preview-seg {
  max-width: 100%;
  border-radius: 12px;
  padding: 3px;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  background: rgba(29, 29, 31, .06);
  scrollbar-width: none;
}

.seg.mobile-preview-seg::-webkit-scrollbar {
  display: none;
}

.seg.mobile-preview-seg button {
  flex: 1 0 auto;
  min-height: 32px;
  border: 0;
  border-radius: 9px;
  padding: 6px 12px;
  background: none;
  color: #3a3a3c;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.seg.mobile-preview-seg button.on {
  background: var(--card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
  color: var(--ink);
  font-weight: 600;
}

.mobile-preview-dialog .guest-mobile-preview-shell {
  border-color: #1d1d1f;
  border-radius: 36px;
}

/* ---------- Upraviť banner ---------- */
.menu-banner-modal {
  padding: 24px;
  display: grid;
  gap: 18px;
}

.menu-banner-modal .modal-head {
  align-items: flex-start;
}

.menu-banner-modal-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.menu-banner-media {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.menu-banner-modal .menu-banner-large-preview {
  border-radius: 14px;
}

.menu-banner-image-actions {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.menu-banner-image-actions .btn {
  flex: 1 1 auto;
  min-width: 0;
  gap: 6px;
  white-space: nowrap;
}

.menu-banner-image-actions .btn svg {
  flex: none;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-banner-media-settings {
  margin-top: 0;
  gap: 12px;
}

.menu-banner-media-settings .photo-order-controls {
  border-radius: 14px;
  box-shadow: none;
  background: var(--card);
}

.menu-banner-media-settings .photo-order-controls small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.menu-banner-media-settings .photo-order-controls .btn,
.menu-category-status .btn {
  gap: 6px;
}

.menu-banner-media-settings .photo-order-controls .btn svg,
.menu-category-status .btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.photo-edit-fields.menu-banner-fields {
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-content: start;
}

.menu-banner-modal .field {
  min-width: 0;
  margin: 0;
}

.menu-banner-modal .field .input,
.menu-banner-modal .field .select,
.menu-banner-modal .field .textarea {
  width: 100%;
  min-width: 0;
}

.menu-banner-modal .menu-banner-media-settings .form-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.menu-banner-modal .field.is-hidden {
  display: none;
}

/* Pätička okna: hlavné tlačidlo vpravo dole, oddelené čiarou (aj v nastaveniach sekcie a v jazykoch). */
.menu-banner-modal > .menu-banner-foot,
.menu-category-settings-modal > .text-editor-actions,
.menu-item-create-modal > .text-editor-actions {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.menu-banner-foot .btn.primary,
.menu-category-settings-modal > .text-editor-actions .btn.primary {
  min-width: 120px;
}

@media (max-width: 820px) {
  .menu-banner-modal-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 920px) {
  /* Okná na telefóne majú šírku 100vw - 16 px; so 24 px okrajom pozadia by pretiekli vpravo. */
  .modal-backdrop {
    padding: 8px;
  }
}

@media (max-width: 520px) {
  .menu-banner-modal {
    width: 100%;
    max-height: calc(100dvh - 16px);
    padding: 18px 16px;
  }

  .menu-banner-modal .menu-banner-media-settings .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .menu-banner-foot .btn.primary {
    width: 100%;
  }
}

/* ---------- Nastavenia sekcie ---------- */
.menu-category-settings-modal .menu-item-availability.menu-category-status {
  height: auto;
  min-height: 0;
  border-radius: 14px;
  padding: 12px 12px 12px 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.menu-category-status > div {
  min-width: 0;
}

.menu-category-status strong {
  display: block;
  font-size: 14.5px;
  line-height: 1.35;
}

.menu-category-status small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  white-space: normal;
}

.menu-category-settings-modal .menu-item-schedule,
.menu-category-settings-modal .menu-category-photo-editor,
.menu-category-settings-modal .menu-category-preview {
  border-radius: 14px;
}

/* Upozornenie o balíku (fotky sekcií) na celú šírku, nie v úzkom stĺpci vedľa fotky. */
.menu-category-form > .photos-entitlement-notice {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.menu-category-form > .photos-entitlement-notice > span {
  flex: 1 1 240px;
  min-width: 0;
}

.menu-category-form > .photos-entitlement-notice strong,
.menu-category-form > .photos-entitlement-notice small {
  display: block;
}

@media (max-width: 920px) {
  .menu-category-settings-modal {
    width: min(100vw - 16px, 720px);
    max-height: calc(100dvh - 16px);
    padding: 0;
  }

  .menu-category-settings-modal > .modal-head {
    position: sticky;
    top: 0;
    z-index: 4;
    padding: 14px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .menu-category-settings-modal > .menu-category-form {
    padding: 14px 16px;
  }

  .menu-category-settings-modal > .text-editor-actions {
    position: sticky;
    bottom: 0;
    z-index: 4;
    padding: 12px 16px;
    background: #fff;
  }

  .menu-category-settings-modal .menu-item-availability.menu-category-status {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

/* ---------- Pridať jedlo / Zmazať jedlo: miniatúra ako v zozname ---------- */
.menu-item-copy-row .menu-dish-photo,
.menu-delete-summary .menu-dish-photo {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 10px;
}

.menu-delete-summary .menu-dish-photo {
  width: 52px;
  height: 52px;
}

.menu-item-copy-row .menu-dish-photo svg,
.menu-delete-summary .menu-dish-photo svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* ---------- Pálivosť v detaile jedla: výber priamo v paneli, čip s popisom ---------- */
.menu-item-sheet .menu-sheet-chips .menu-spice-choice.open {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.menu-item-sheet .menu-spice-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.menu-item-sheet .menu-spice-trigger .menu-tag-chip {
  border: 0;
  padding: 0;
  min-height: 0;
  background: none;
}

.menu-item-sheet .menu-spice-dropdown {
  position: static;
  width: auto;
  border: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: none;
  box-shadow: none;
}

.menu-item-sheet .menu-spice-dropdown button {
  min-height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  padding: 4px 12px;
  background: var(--card);
  font-size: 13.5px;
  font-weight: 500;
}

/* Štítky (Vegetariánske, Domáce…) rovnakým písmom ako alergény, nie drobné tučné. */
.menu-item-sheet .menu-sheet-chips .menu-tag-chip {
  border: 0;
  padding: 0;
  min-height: 0;
  background: none;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

/* ---------- Stiahnuť menu / Nahrať menu ---------- */
.menu-export-card {
  min-height: 0;
  border-radius: 14px;
  padding: 16px;
}

.menu-export-card svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-import-textarea {
  font-family: inherit;
  font-size: 14px;
}

.menu-import-tools .btn svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* ---------- Nastaviť jazyky ---------- */
.language-settings-modal .modal-head {
  align-items: flex-start;
}

.language-setting-field small,
.language-picker-head span {
  font-weight: 400;
}

.language-settings-modal .modal-actions.language-settings-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.language-settings-actions .btn:first-child {
  margin-right: auto;
}

@media (max-width: 520px) {
  .language-settings-actions .btn {
    flex: 1 1 auto;
  }
}

/* ---------- Vzhľad menu: popisky normálnym písmom, bez hexa kódov, výrazný prepínač ---------- */
.theme-row > span,
.theme-background-grid > label > span,
.theme-background-grid .theme-pattern-opacity > span,
.theme-pattern-label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.theme-row > span small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.35;
}

.theme-color-trigger {
  border-radius: 12px;
  font-weight: 500;
  justify-content: flex-start;
}

.theme-color-trigger i {
  border: 1px solid rgba(29, 29, 31, .18);
  border-radius: 8px;
  box-shadow: none;
}

.theme-background-grid .theme-color-trigger span {
  grid-column: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
}

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

.theme-background-compact-head {
  align-items: flex-start;
}

.theme-background-compact-head h3 {
  font-size: 15px;
  font-weight: 600;
}

.theme-background-compact-head h3 small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 400;
}

.theme-background-compact-head .theme-background-switch {
  margin-left: auto;
}

/* Paleta farieb: nadpis s názvom farby, poradie tlačidiel Zavrieť - Uložiť (hlavné vpravo). */
.color-scale-title {
  display: block;
  margin: 0 0 8px;
  font-size: 13.5px;
  font-weight: 600;
}

.qr-color-modal .qr-palette > span {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

/* ---------- Menu: sekcie a hlavička ---------- */
.menu-section-head-actions .btn.menu-section-head-btn {
  height: 34px;
  min-height: 34px;
  gap: 6px;
  padding: 0 12px;
  font-size: 13px;
}

.menu-section-head-actions {
  flex-wrap: wrap;
  row-gap: 6px;
  min-width: 0;
}

.menu-section-head-actions .btn.menu-section-head-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Ikona "i" vedľa textu lišty Na doplnenie aj na telefóne (nie na samostatnom riadku). */
.menu-hint > span {
  flex: 1 1 200px;
}

@media (max-width: 480px) {
  /* Na telefóne sú tlačidlá ⋯ a + v riadku s nadpisom, nie na samostatnom riadku. */
  .menu-page-head {
    flex-wrap: nowrap;
    align-items: flex-start;
  }

  .menu-page-title {
    min-width: 0;
  }
}

/* ---------- Prihlásenie, zabudnuté heslo, registrácia (štýl redizajnu) ---------- */
.auth-page {
  background: var(--bg);
}

.auth-panel {
  border: 0;
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.auth-brand img {
  width: 96px;
}

.auth-brand span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.auth-copy h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.auth-copy p {
  font-size: 15px;
}

.auth-field {
  color: #3a3a3c;
  font-size: 13px;
  font-weight: 600;
}

.auth-field .input {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  font-weight: 400;
}

.auth-field .input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, .12);
  outline: none;
}

.auth-alert {
  border-radius: 12px;
  font-weight: 500;
}

.auth-submit {
  border-radius: 99px;
}

.auth-links button {
  font-weight: 600;
}

@media (max-width: 760px) {
  .auth-panel {
    padding: 22px 20px;
  }

  /* Na telefóne logo a adresa v jednom riadku, menšie. */
  .auth-brand {
    flex-direction: row;
    align-items: center;
    margin-bottom: 18px;
  }

  .auth-brand img {
    width: 80px;
  }
}

/* ===== Redizajn 2026-10 (Filip): fáza 2 - krok P (Profil podniku: hlavička a karty) =====
   Profil vyzerá ako Prehľad a Menu: hlavička stránky (H1, podnadpis, "Pozrieť ako hosť" a "⋯",
   rovnaké triedy ako Menu) namiesto lepkavej lišty "Režim úprav", obsah v bielych kartách namiesto
   jedného hárku, čierne nadpisy, polia s popisom a normálnym písmom, žiadne zelené prerušované
   rámčeky. Lepkavá lišta zároveň spôsobovala prázdny pás pod hornou lištou (sticky v .content,
   ktorý má overflow), takže hlavička už nie je sticky.
   Fotky: titulná fotka a fotka sekcie majú pomer strán ako u hosťa (2,75 : 1, na mobile 1,75 : 1)
   a neopakujú sa (no-repeat). Predtým bol rámček na mobile takmer štvorcový a fotka so šírkou
   podľa výrezu sa v ňom 2- až 3-krát zopakovala.
   Špecificita .profile-visual-editor.profile-redesign … prebije staré pravidlá aj
   "Production density layer" (@media min-width: 921px). */

.profile-visual-editor.profile-redesign {
  display: block;
  max-width: 1120px;
}

.profile-visual-editor.profile-redesign .menu-page-head svg,
.profile-visual-editor.profile-redesign .menu-more-menu svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-visual-editor.profile-redesign .menu-page-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.profile-visual-editor.profile-redesign .menu-page-actions .btn svg {
  width: 18px;
  height: 18px;
}

.profile-visual-editor.profile-redesign .btn.menu-head-btn {
  background: var(--card);
  box-shadow: var(--shadow);
}

.profile-visual-editor.profile-redesign .btn.menu-head-btn:hover {
  background: #fbfaf7;
}

.profile-visual-editor.profile-redesign .btn.menu-more-btn {
  width: 40px;
  padding: 0;
  justify-content: center;
}

/* Skrytá hlavička náhľadu (pole názvu je aj v karte Popis). */
.profile-visual-editor.profile-redesign .editable-public-nav {
  display: none !important;
}

.profile-visual-editor.profile-redesign .editable-public-page {
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: visible;
  display: grid;
  gap: 16px;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
}

.profile-visual-editor.profile-redesign .editable-public-info,
.profile-visual-editor.profile-redesign .editable-public-sections {
  padding: 0;
  background: transparent;
}

/* ---------- karty ---------- */
.profile-visual-editor.profile-redesign .profil-karta,
.profile-visual-editor.profile-redesign .editable-profile-section {
  position: relative;
  min-width: 0;
  margin: 0;
  border: 0;
  border-radius: var(--radius);
  padding: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.profile-visual-editor.profile-redesign .editable-block:hover,
.profile-visual-editor.profile-redesign .editable-block:focus-within {
  border-color: transparent;
  background: var(--card);
}

.profile-visual-editor.profile-redesign .profil-karta-head h2,
.profile-visual-editor.profile-redesign .editable-block-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
}

.profile-visual-editor.profile-redesign .profil-karta-head p {
  margin: 4px 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.profile-visual-editor.profile-redesign .editable-block-head {
  margin-bottom: 14px;
}

/* ---------- fotky ---------- */
/* Fotka vždy vyplní rámček (cover). Uložený výrez (zoom v % šírky) bol pri niektorých fotkách
   a pomeroch strán menší ako rámček, takže dole ostal prázdny pás alebo sa fotka opakovala.
   Pozícia výrezu (x, y) z inline štýlu ostáva. */
.profile-visual-editor.profile-redesign .editable-image-field {
  background-color: var(--fill);
  background-repeat: no-repeat;
  background-size: cover !important;
}

.profile-visual-editor.profile-redesign .editable-image-field.image-hero,
.profile-visual-editor.profile-redesign .editable-image-field.image-section-hero {
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  aspect-ratio: 2.75;
  border-radius: 14px;
  box-shadow: none;
}

.profile-visual-editor.profile-redesign .editable-photo-strip-wrap {
  padding: 12px 0 0;
}

/* Galéria sa zalamuje do riadkov: všetky fotky aj dlaždica "Pridať fotku" sú celé viditeľné
   (predtým vodorovný pás, v ktorom bola posledná dlaždica odrezaná bez náznaku posúvania). */
.profile-visual-editor.profile-redesign .editable-photo-strip-wrap .editable-photo-strip {
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 10px;
  overflow: visible;
}

.profile-visual-editor.profile-redesign .editable-photo-strip-wrap .editable-image-field.image-thumb {
  flex: none;
  width: auto;
  height: auto;
  min-height: 0;
  /* Ako dlaždica galérie u hosťa (124 × 82 px). */
  aspect-ratio: 3 / 2;
  border-radius: 12px;
  box-shadow: none;
}

.profile-visual-editor.profile-redesign .editable-photo-strip-wrap.has-overflow::before,
.profile-visual-editor.profile-redesign .editable-photo-strip-wrap.has-overflow::after {
  display: none;
}

.profile-visual-editor.profile-redesign .editable-image-field.profile-photo-upload-tile {
  border: 1px dashed var(--line-strong);
  background: var(--fill);
  box-shadow: none;
}

.profile-visual-editor.profile-redesign .editable-image-field.profile-photo-upload-tile:hover,
.profile-visual-editor.profile-redesign .editable-image-field.profile-photo-upload-tile:focus-visible {
  border-color: var(--green);
  background: var(--green-soft);
}

.profile-visual-editor.profile-redesign .editable-image-field.profile-photo-upload-tile > span {
  font-size: 14px;
  font-weight: 600;
}

/* ---------- popis, hodiny, kontakt ---------- */
.profile-visual-editor.profile-redesign .editable-public-info {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr);
  grid-template-areas:
    "popis hodiny"
    "kontakt kontakt";
  gap: 16px;
  align-items: start;
}

.profile-visual-editor.profile-redesign .editable-info-main {
  grid-area: popis;
}

.profile-visual-editor.profile-redesign .editable-hours-card {
  grid-area: hodiny;
  margin: 0;
  padding: 22px;
}

.profile-visual-editor.profile-redesign .editable-contact-column {
  grid-area: kontakt;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr);
  gap: 16px;
  align-items: start;
}

.profile-visual-editor.profile-redesign .profil-pole {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.profile-visual-editor.profile-redesign .profil-pole-popis {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.profile-visual-editor.profile-redesign .editable-info-main > .profil-pole-popis {
  margin-top: 16px;
}

.profile-visual-editor.profile-redesign .editable-section-title-input,
.profile-visual-editor.profile-redesign .editable-contact-line .editable-line-input {
  width: 100%;
  height: auto;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 9px 12px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  white-space: normal;
  box-shadow: none;
}

.profile-visual-editor.profile-redesign .editable-section-title-input {
  font-size: 17px;
  font-weight: 600;
}

.profile-visual-editor.profile-redesign .editable-section-title-input:hover,
.profile-visual-editor.profile-redesign .editable-contact-line .editable-line-input:hover {
  border-color: rgba(29, 29, 31, .24);
  background: #fff;
  box-shadow: none;
}

.profile-visual-editor.profile-redesign .editable-section-title-input:focus,
.profile-visual-editor.profile-redesign .editable-contact-line .editable-line-input:focus {
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .15);
}

.profile-visual-editor.profile-redesign .editable-section-title-input::placeholder,
.profile-visual-editor.profile-redesign .editable-contact-line .editable-line-input::placeholder {
  color: #a3a3a3;
  font-style: normal;
  font-weight: 400;
}

.profile-visual-editor.profile-redesign .editable-contact-line .editable-line-input[aria-invalid="true"] {
  border-color: var(--red);
}

.profile-visual-editor.profile-redesign .profil-pole-chyba {
  color: var(--red);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}

.profile-visual-editor.profile-redesign .editable-contact-stack {
  gap: 12px;
}

.profile-visual-editor.profile-redesign .editable-contact-line {
  display: grid;
  gap: 6px;
}

.profile-visual-editor.profile-redesign .editable-contact-line.address-line {
  gap: 10px;
  align-items: start;
}

.profile-visual-editor.profile-redesign .editable-contact-line.street-line {
  grid-template-columns: minmax(0, 1fr) 96px;
}

.profile-visual-editor.profile-redesign .editable-contact-line.city-line {
  grid-template-columns: 110px minmax(0, 1fr);
}

.profile-visual-editor.profile-redesign .editable-contact-line .contact-name-input {
  min-height: 66px;
  resize: vertical;
  font-weight: 400;
}

.profile-visual-editor.profile-redesign .editable-mobile-sidebar-image-card .editable-block-head {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.profile-visual-editor.profile-redesign .editable-mobile-sidebar-image-card p {
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.profile-visual-editor.profile-redesign .editable-mobile-sidebar-image-card .editable-image-field {
  max-width: 360px;
  border-radius: 12px;
}

/* Text: panel formátovania ako malý segmentový prepínač, plocha ako pole formulára. */
.profile-visual-editor.profile-redesign .inline-text-editor,
.profile-visual-editor.profile-redesign .inline-text-editor:hover,
.profile-visual-editor.profile-redesign .inline-text-editor:focus-within {
  margin-top: 6px;
  border: 0;
  padding: 0;
  gap: 10px;
  background: transparent;
  box-shadow: none;
}

.profile-visual-editor.profile-redesign .text-editor-toolbar {
  width: max-content;
  max-width: 100%;
  border-radius: 10px;
  padding: 3px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  background: var(--fill);
}

.profile-visual-editor.profile-redesign .text-editor-toolbar .btn {
  height: 30px;
  min-height: 30px;
  min-width: 34px;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  box-shadow: none;
}

.profile-visual-editor.profile-redesign .text-editor-toolbar .btn:hover {
  background: #fff;
}

.profile-visual-editor.profile-redesign .inline-rich-editor-surface {
  min-height: 180px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff;
}

.profile-visual-editor.profile-redesign .inline-rich-editor-surface:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .15);
  outline: none;
}

.profile-visual-editor.profile-redesign .inline-rich-editor-surface p {
  color: #3a3a3c;
  font-size: 15px;
  line-height: 1.55;
}

.profile-visual-editor.profile-redesign .inline-rich-editor-surface h2 {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.profile-visual-editor.profile-redesign .inline-rich-editor-surface b,
.profile-visual-editor.profile-redesign .inline-rich-editor-surface strong {
  font-weight: 700;
}

/* Otváracie hodiny: časy ako bežné polia, nie zelený tučný text v zelených rámčekoch. */
.profile-visual-editor.profile-redesign .public-hours-editor {
  gap: 2px;
}

.profile-visual-editor.profile-redesign .public-hours-editor .public-hour-row {
  min-height: 42px;
  column-gap: 10px;
  row-gap: 2px;
}

.profile-visual-editor.profile-redesign .public-hour-row > span {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}

.profile-visual-editor.profile-redesign .public-hour-row strong {
  gap: 6px;
  color: var(--muted);
  font-weight: 400;
}

.profile-visual-editor.profile-redesign .public-hour-row b {
  color: var(--muted);
  font-weight: 400;
}

.profile-visual-editor.profile-redesign .public-hours-editor .time-field-wrap {
  width: 66px;
}

.profile-visual-editor.profile-redesign .public-hours-editor .time-field {
  width: 66px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 4px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
  text-align: center;
}

.profile-visual-editor.profile-redesign .public-hours-editor .time-field:hover {
  border-color: rgba(29, 29, 31, .24);
  box-shadow: none;
}

.profile-visual-editor.profile-redesign .public-hours-editor .time-field:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .15);
}

.profile-visual-editor.profile-redesign .public-closed-toggle {
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
}

.profile-visual-editor.profile-redesign .public-hour-hint {
  grid-column: 1 / -1;
  margin: 0 0 6px;
  color: var(--amber);
  font-size: 13px;
  line-height: 1.4;
}

/* Výber času je pod hornou lištou (tá má z-index 30), nie cez ňu. */
.profile-visual-editor.profile-redesign .time-picker {
  z-index: 20;
  width: 132px;
  border-radius: 12px;
}

.profile-visual-editor.profile-redesign .time-option.on {
  background: var(--green);
  color: #fff;
}

.profile-visual-editor.profile-redesign .profile-closed-card {
  margin-top: 16px;
}

/* ---------- ďalšie sekcie a mapa ---------- */
.profile-visual-editor.profile-redesign .editable-public-sections {
  display: grid;
  gap: 16px;
}

.profile-visual-editor.profile-redesign .editable-section-toolbar {
  position: static;
  width: 100%;
  max-width: none;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.profile-visual-editor.profile-redesign .editable-section-toolbar .profil-sekcia-nazov {
  margin: 0 auto 0 0;
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
}

.profile-visual-editor.profile-redesign .section-tool-btn {
  min-height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  box-shadow: none;
}

.profile-visual-editor.profile-redesign .section-tool-btn:hover {
  border-color: var(--line-strong);
  background: var(--fill);
  color: var(--ink);
}

.profile-visual-editor.profile-redesign .editable-profile-section .editable-input-wrap.title-field {
  margin-top: 16px;
}

.profile-visual-editor.profile-redesign .editable-profile-section.map-section .editable-input-wrap.title-field {
  margin-top: 0;
}

.profile-visual-editor.profile-redesign .profil-mapa-adresa {
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.profile-visual-editor.profile-redesign .editable-map-field {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
}

.profile-visual-editor.profile-redesign .additional-info-prompt {
  width: 100%;
  margin: 0;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: none;
}

.profile-visual-editor.profile-redesign .additional-info-prompt:hover {
  border-color: var(--green);
  background: var(--green-soft);
}

/* ---------- užšia obrazovka s bočným menu (napr. 960 px) ---------- */
@media (max-width: 1180px) {
  .profile-visual-editor.profile-redesign .editable-public-info {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "popis popis"
      "hodiny kontakt";
  }

  .profile-visual-editor.profile-redesign .editable-contact-column {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- mobil ---------- */
@media (max-width: 760px) {
  .profile-visual-editor.profile-redesign .editable-public-info {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "popis"
      "hodiny"
      "kontakt";
  }

  .profile-visual-editor.profile-redesign .profil-karta,
  .profile-visual-editor.profile-redesign .editable-profile-section,
  .profile-visual-editor.profile-redesign .editable-hours-card {
    padding: 18px 16px;
  }

  .profile-visual-editor.profile-redesign .editable-image-field.image-hero,
  .profile-visual-editor.profile-redesign .editable-image-field.image-section-hero {
    aspect-ratio: 1.75;
  }

  .profile-visual-editor.profile-redesign .editable-photo-strip-wrap .editable-photo-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .profile-visual-editor.profile-redesign .editable-contact-line.street-line {
    grid-template-columns: minmax(0, 1fr) 80px;
  }

  .profile-visual-editor.profile-redesign .editable-section-toolbar {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .profile-visual-editor.profile-redesign .editable-section-toolbar .profil-sekcia-nazov {
    flex: 1 1 100%;
  }

  .profile-visual-editor.profile-redesign .editable-contact-line.city-line {
    grid-template-columns: 96px minmax(0, 1fr);
  }
}

/* ===== Redizajn 2026-10 (Filip): fáza 2 - krok F (editor fotky a výrez bez prázdnych okrajov) =====
   Výrez fotky = vnorená fotka .photo-crop-media (pozri photoCropLayer v app.js), rovnako ako v menu
   pre hosťa: šírka = priblíženie v % rámčeka, ale najmenej toľko, aby rámček vyplnila. Pozadie rámčeka
   (cover) ostáva pod ňou ako záloha, kým sa fotka načíta. */
.has-crop-media {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-repeat: no-repeat;
}

.photo-crop-media {
  position: absolute;
  z-index: -1;
  display: block;
  max-width: none;
  height: auto;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Tmavý prechod a popis cez fotku v Profile nechávame nad fotkou. */
.editable-image-field.has-crop-media::after {
  z-index: 0;
}

/* ---------- editor fotky ---------- */
.photo-modal.photo-editor {
  width: min(1040px, calc(100vw - 32px));
  max-height: calc(100dvh - 24px);
  padding: 24px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 18px;
  overflow: hidden;
  border-radius: 20px;
  box-sizing: border-box;
}

.photo-modal.photo-editor .modal-head {
  margin: 0;
  align-items: flex-start;
}

.photo-modal.photo-editor .modal-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.photo-modal.photo-editor .modal-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.photo-modal.photo-editor .photo-editor-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr);
  gap: 24px;
  align-items: start;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px;
}

.photo-editor-main,
.photo-editor-side {
  min-width: 0;
  display: grid;
  gap: 12px;
  align-content: start;
}

.photo-editor-caption,
.photo-editor-preview > span,
.photo-editor-previews > strong {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.photo-editor-stage {
  position: relative;
  display: grid;
  justify-items: center;
  border-radius: 14px;
  background: transparent;
  cursor: grab;
  touch-action: none;
  outline: none;
}

.photo-editor-stage.is-dragging {
  cursor: grabbing;
}

.photo-editor-stage:focus-visible {
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .45);
}

/* Šírku obmedzíme cez pomer strán (nie max-height), aby rámček vždy ostal v pomere ako u hosťa. */
.photo-editor-frame {
  width: min(100%, calc(min(52vh, 460px) * var(--ratio, 1.5)));
  border-radius: 14px;
  background-color: #2a2a2c;
}

.photo-editor-frame.is-main {
  margin: 0 auto;
}

.photo-editor-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.photo-editor-zoom {
  display: grid;
  grid-template-columns: auto 18px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.photo-editor-zoom label {
  font-weight: 600;
  color: var(--ink);
}

.photo-editor-zoom span {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.photo-editor-zoom svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.photo-editor-zoom input[type="range"],
.photo-editor-fine input[type="range"] {
  width: 100%;
  min-width: 0;
  accent-color: var(--green);
}

.photo-modal.photo-editor .crop-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.photo-editor-fine {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  font-size: 14px;
}

.photo-editor-fine summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
}

.photo-modal.photo-editor .photo-editor-fine .crop-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
}

.photo-modal.photo-editor .photo-editor-fine .crop-control-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.photo-editor-empty {
  width: 100%;
  min-height: 200px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 24px;
  border: 1.5px dashed var(--line);
  border-radius: 14px;
  background: var(--bg);
  color: var(--muted);
  text-align: center;
  box-sizing: border-box;
}

.photo-editor-empty svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.photo-editor-empty strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
}

.photo-editor-empty span {
  max-width: 360px;
  font-size: 13px;
  line-height: 1.45;
}

.photo-editor-previews {
  display: grid;
  gap: 8px;
}

.photo-editor-preview {
  display: grid;
  gap: 6px;
}

.photo-editor-preview .photo-editor-frame {
  width: min(100%, 260px);
  border-radius: 10px;
}

.photo-editor-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--amber-soft);
  color: #7a4a00;
  font-size: 13px;
  line-height: 1.45;
}

.photo-editor-file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.photo-editor-file-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.photo-editor-file-actions .btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.photo-modal.photo-editor .photo-edit-fields {
  display: grid;
  gap: 12px;
  margin: 0;
}

.photo-modal.photo-editor .photo-edit-fields .field {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.photo-modal.photo-editor .photo-edit-fields label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.photo-modal.photo-editor .photo-edit-fields .input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  font-weight: 400;
}

.photo-modal.photo-editor .photo-editor-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.photo-modal.photo-editor .photo-editor-footer .btn {
  min-width: 110px;
  justify-content: center;
}

@media (max-width: 900px) {
  .photo-modal.photo-editor .photo-editor-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .photo-editor-preview .photo-editor-frame {
    width: min(100%, 220px);
  }
}

@media (max-width: 600px) {
  .photo-modal.photo-editor {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    padding: 16px;
    gap: 12px;
    border-radius: 16px;
  }

  .photo-modal.photo-editor .modal-head h2 {
    font-size: 19px;
  }

  .photo-modal.photo-editor .photo-editor-grid {
    gap: 16px;
  }

  .photo-editor-frame.is-main {
    width: min(100%, calc(42vh * var(--ratio, 1.5)));
  }

  .photo-modal.photo-editor .photo-editor-footer .btn {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* ===== Redizajn 2026-10 (Filip): fáza 2 - krok Q (QR kód, Štatistiky, Používatelia, rozloženie Balík a faktúry) =====
   Opravy z kontroly 11. 10.: jedna karta "Váš QR kód" s jedným miestom na stiahnutie, obrysové ikony,
   editor QR sa pri 960 px zmestí do karty (jeden stĺpec), celé názvy farieb, vlastné ikonky štýlov rámu,
   logo v náhľade neorezané. Ďalej Štatistiky ako oznam "pripravujeme", Používatelia pri 960 px, Údaje
   firmy na faktúru, krokovač objednávky a porovnanie funkcií na mobile. Bez zmeny logiky platieb a cien. */

/* --- QR kód: karta "Váš QR kód" --- */
.qr-hlavna-karta .qr-status-main {
  min-height: 0;
  margin: 0;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}
.qr-hlavna-karta .qr-status-preview .qr-preview-art {
  width: 160px;
  height: 160px;
}
.qr-status-info {
  min-width: 0;
  display: grid;
  gap: 8px;
  justify-items: start;
}
.qr-status-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.qr-status-card .qr-status-title h2 {
  margin: 0;
}
.qr-status-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.qr-status-url {
  max-width: 100%;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.qr-status-quick-actions {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.qr-status-quick-actions .btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.qr-status-hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
/* Ikony v tlačidlách QR stránky boli vyplnené čierne tvary (chýbal obrysový štýl). */
.qr-admin-page .btn svg,
.qr-editor-page .btn svg,
.qr-status-action svg,
.qr-editor-tile svg,
.qr-inline-controls-head svg,
.qr-logo-actions .btn svg,
.qr-stage-url .icon-btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.qr-editor-tile svg,
.qr-inline-controls-head svg {
  color: var(--green-dark);
}

/* --- QR kód: editor --- */
/* Dve kolóny editora potrebujú aspoň ~680 px; pri užšom obsahu (napr. okno 960 px) pretekali z karty.
   Pod 1240 px je editor v jednom stĺpci: náhľad, dlaždice, nastavenia. */
@media (max-width: 1240px) {
  .qr-editor-workbench.inline {
    grid-template-columns: minmax(0, 1fr);
  }
  .qr-editor-workbench.inline .qr-editor-tile-grid,
  .qr-editor-workbench.inline .qr-inline-controls,
  .qr-editor-workbench.inline .qr-editor-stage {
    grid-column: 1;
  }
  .qr-editor-workbench.inline .qr-editor-stage {
    order: -1;
  }
}
.qr-editor-workbench .qr-preset-color-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.qr-editor-workbench .qr-preset-color-row .qr-color-row span {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}
@media (max-width: 420px) {
  .qr-editor-workbench .qr-preset-color-row {
    grid-template-columns: 1fr;
  }
}
.qr-editor-tile strong,
.qr-editor-tile small {
  overflow-wrap: anywhere;
}
.qr-stage-actions {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.qr-editor-workbench.inline .qr-stage-actions {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.qr-stage-actions .btn {
  min-width: 0;
  white-space: nowrap;
}
.qr-frame-label-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}
/* Náhľad nahraného loga bol orezaný: obrázok so 100 % a paddingom presahoval rámček. */
.qr-logo-box {
  grid-template-columns: 64px minmax(0, 1fr);
}
.qr-logo-mark {
  width: 64px;
  height: 64px;
}
.qr-logo-mark.has-custom-logo img {
  box-sizing: border-box;
  max-width: 100%;
  max-height: 100%;
}
.qr-logo-fork-preview {
  width: 64px;
  height: 64px;
}
.qr-logo-fork-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Ikonky štýlov rámu: každý ukazuje svoj tvar (predtým rovnaký malý QR). */
.mini-frame-style {
  width: 36px;
  height: 40px;
  box-sizing: border-box;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  padding: 4px;
  background: #111;
  border-radius: 4px;
}
.mini-frame-style .mini-qr.small {
  width: 20px;
  height: 20px;
  gap: 1px;
  padding: 2px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 2px;
}
.mini-frame-style b {
  width: 22px;
  height: 4px;
  border-radius: 1px;
  background: #fff;
}
.mini-frame-style.plain {
  background: #fff;
  border: 2px solid #111;
}
.mini-frame-style.plain b {
  background: #111;
}
.mini-frame-style.pill {
  border-radius: 12px;
}
.mini-frame-style.pill b {
  height: 6px;
  border-radius: 999px;
}
.mini-frame-style.circle {
  width: 40px;
  border-radius: 999px;
  padding: 6px;
}
.mini-frame-style.circle .mini-qr.small {
  width: 16px;
  height: 16px;
}
.mini-frame-style.circle b {
  width: 14px;
  height: 3px;
}

/* Samostatná stránka editora: hlavička ako na ostatných stránkach, Späť je obyčajné tlačidlo. */
.qr-editor-top.qr-editor-top-prevadzka {
  display: flex;
  min-height: 0;
}
.qr-editor-top.qr-editor-top-prevadzka .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.qr-editor-page > .page-head {
  margin-top: 4px;
}

@media (max-width: 680px) {
  .qr-hlavna-karta .qr-status-main {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
  }
  .qr-status-info {
    width: 100%;
  }
  .qr-status-quick-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .qr-status-quick-actions .btn {
    justify-content: center;
  }
  .qr-status-quick-actions .btn.primary {
    grid-column: 1 / -1;
  }
  .qr-stage-actions,
  .qr-editor-workbench.inline .qr-stage-actions {
    grid-template-columns: 1fr 1fr;
  }
  .qr-stage-actions .btn.primary {
    grid-column: 1 / -1;
  }
  .qr-editor-panel .panel-row-head {
    display: grid;
    gap: 10px;
  }
  .qr-editor-panel .panel-row-head .btn {
    justify-self: start;
  }
}

/* --- Štatistiky: oznam "pripravujeme" má rovnaký vzhľad ako Rezervácie (trieda .coming-soon). --- */

/* --- Hlavička stránky: štítok (napr. "1 aktívny") na mobile neťahať cez celú šírku. --- */
@media (max-width: 920px) {
  .page-head > .badge {
    justify-self: start;
    width: max-content;
  }
}

/* --- Používatelia --- */
@media (max-width: 680px) {
  /* Šesť čísel pod sebou zaberalo celú obrazovku; dve vedľa seba sa dajú prečítať naraz. */
  .users-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.user-detail-card strong .badge {
  display: inline-flex;
  width: auto;
  max-width: 100%;
}
.user-detail-card strong:has(> .badge) {
  justify-self: start;
}
.user-detail-when {
  display: grid;
  justify-items: end;
  gap: 4px;
  text-align: right;
}
.user-detail-when small {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.user-detail-when.tone-red small {
  color: var(--red);
}

/* --- Balík a faktúry: Údaje firmy na faktúru ---
   Popisky nad poľami a mriežka, ktorá sa zalomí. Pôvodné rozloženie s popiskom vľavo (180 px)
   sa pri 960 px rozpadlo (popisky v poliach, pole Mesto 24 px) a aj pri 1280 px orezalo mesto. */
.company-lookup-panel .company-billing-form {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px 14px;
}
.company-lookup-panel .company-billing-form .field,
.company-lookup-panel .company-billing-form .company-name-field,
.company-lookup-panel .company-tax-grid .field,
.company-lookup-panel .company-billing-contact .field:nth-child(2),
.company-lookup-panel .company-address-city-row .field:first-child {
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  align-items: start;
}
.company-lookup-panel .company-address-city-row .field:first-child .input {
  width: 100%;
}
.company-lookup-panel .company-billing-form .field label {
  font-size: 13px;
  font-weight: 600;
}
.company-lookup-panel .company-name-field {
  grid-column: 1 / -1;
  margin: 0;
}
.company-lookup-panel .company-suggest-dropdown,
.company-lookup-panel .company-lookup-error.inline {
  grid-column: 1;
}
.company-lookup-panel .company-details-grid,
.company-lookup-panel .company-address-fields,
.company-lookup-panel .company-address-city-row,
.company-lookup-panel .company-tax-grid,
.company-lookup-panel .company-billing-contact {
  display: contents;
}
/* Ulica | Číslo, PSČ | Mesto, IČO | DIČ | IČ DPH, E-mail | Telefón */
.company-lookup-panel .company-address-fields > .field:nth-child(1) { grid-column: span 4; }
.company-lookup-panel .company-address-fields > .field:nth-child(2) { grid-column: span 2; }
.company-lookup-panel .company-address-city-row > .field:nth-child(1) { grid-column: span 2; }
.company-lookup-panel .company-address-city-row > .field:nth-child(2) { grid-column: span 4; }
.company-lookup-panel .company-tax-grid > .field { grid-column: span 2; }
.company-lookup-panel .company-billing-contact > .field { grid-column: span 3; }
.company-lookup-panel .company-billing-actions {
  grid-column: 1 / -1;
  margin-top: 4px;
  align-items: center;
  gap: 12px;
}
.company-required-legend {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.company-unsaved-note {
  color: #b45309;
  font-size: 13px;
}
.company-lookup-head .badge {
  flex: 0 0 auto;
  justify-self: start;
  width: max-content;
}
@media (max-width: 680px) {
  .company-lookup-panel .company-billing-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .company-lookup-panel .company-address-fields > .field:nth-child(1),
  .company-lookup-panel .company-address-city-row > .field:nth-child(2),
  .company-lookup-panel .company-tax-grid > .field,
  .company-lookup-panel .company-billing-contact > .field {
    grid-column: 1 / -1;
  }
  .company-lookup-panel .company-address-fields > .field:nth-child(2),
  .company-lookup-panel .company-address-city-row > .field:nth-child(1) {
    grid-column: span 1;
  }
  .company-lookup-panel .company-billing-actions .btn {
    flex: 1 1 auto;
  }
}

/* --- Faktúry: stĺpce suma / stav / stiahnuť sú pod sebou v každom riadku. --- */
.balik-invoice {
  grid-template-columns: minmax(0, 1fr) 104px 140px 116px;
}
.balik-invoice .badge {
  justify-self: start;
  width: max-content;
}
.balik-invoice-amount {
  text-align: right;
}
@media (max-width: 680px) {
  .balik-invoice {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .balik-invoice-no-doc {
    display: none;
  }
}

/* --- Cenník: výrazný názov balíka, jedna zelená, prepínače ako .seg v návrhu --- */
.balik-page .pricing-plan-head {
  min-height: 0;
  gap: 6px;
  padding-right: 96px;
}
.pricing-plan-name {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}
.balik-page .billing-card-cta,
.balik-page .billing-plan-card.active .billing-card-cta {
  border-color: var(--green);
  background: var(--green);
  font-size: 14px;
  font-weight: 600;
}
.balik-page .billing-card-cta:not([disabled]):hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}
.balik-page .billing-recommended {
  background: var(--green);
  font-weight: 600;
  letter-spacing: .02em;
}
.balik-page .billing-pricing-hero .eyebrow,
.balik-page .pricing-plan-features > span,
.balik-page .pricing-table-group td {
  font-weight: 700;
}
.balik-page .segmented-control,
.balik-page .billing-payment-toggle {
  border: 0;
  background: var(--fill, #f1f2ef);
  border-radius: 10px;
  padding: 3px;
}
.balik-page .segmented-control button,
.balik-page .billing-payment-toggle button {
  font-weight: 500;
  color: var(--ink);
}
.balik-page .segmented-control button.active,
.balik-page .billing-payment-toggle button.active {
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}
.balik-page .segmented-control button span,
.balik-page .segmented-control button.active span,
.balik-page .billing-payment-toggle button strong {
  color: var(--green-dark);
  font-weight: 600;
}
@media (max-width: 680px) {
  /* Prepínače ostávajú vodorovné (predtým sa rozpadli na dva vysoké bloky pod sebou). */
  .balik-page .segmented-control,
  .balik-page .billing-payment-toggle {
    width: 100%;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
  }
}

/* --- Porovnanie funkcií: pri 960 px sa zmestí, na mobile každý riadok ako karta s hodnotami pod sebou. --- */
.pricing-table {
  min-width: 0;
}
.pricing-table th,
.pricing-table td {
  overflow-wrap: anywhere;
}
@media (max-width: 680px) {
  .pricing-table-wrap {
    overflow: visible;
  }
  .pricing-table,
  .pricing-table tbody,
  .pricing-table tr,
  .pricing-table td {
    display: block;
    width: 100%;
  }
  .pricing-table thead {
    display: none;
  }
  .pricing-table tbody tr:not(.pricing-table-group) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-bottom: 1px solid #edf1eb;
  }
  .pricing-table tbody tr:not(.pricing-table-group) td {
    border-bottom: 0;
    padding: 6px 14px;
    text-align: left;
  }
  .pricing-table tbody tr:not(.pricing-table-group) td:first-child {
    grid-column: 1 / -1;
    padding-top: 12px;
    font-weight: 600;
  }
  .pricing-table td[data-plan]::before {
    content: attr(data-plan);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
  }
  .pricing-table td[data-plan] {
    padding-bottom: 12px;
  }
}

/* --- Objednávka balíka: krokovač na mobile celý viditeľný, súhrn nad tlačidlom pokračovania. --- */
@media (max-width: 680px) {
  .billing-stepper.standalone {
    justify-content: flex-start;
    overflow: visible;
  }
  .billing-stepper.standalone > span {
    flex: 1 1 0;
    min-width: 0;
    height: auto;
    min-height: 38px;
    white-space: normal;
    line-height: 1.25;
  }
}
@media (max-width: 960px) {
  .billing-order-grid > .billing-order-summary-card {
    order: -1;
  }
}
.billing-order-form-grid .field > span small {
  color: var(--muted);
  font-weight: 500;
}

/* Pod náhľadom ostalo len kopírovanie adresy (stiahnutie je hneď nad ním), adresa má celý riadok. */
.qr-stage-url {
  grid-template-columns: 32px minmax(0, 1fr);
}
@media (max-width: 420px) {
  /* Kruhový rám má pevných 340 px a na telefóne pretekal z obrazovky. */
  .qr-frame-preview.enabled.circle {
    width: min(340px, 100%);
    height: auto;
    aspect-ratio: 1;
    padding: 9% 10% 12%;
  }
  .qr-frame-preview.enabled.circle .qr-editor-art {
    width: 64%;
    height: auto;
    aspect-ratio: 1;
    padding: 12px;
  }
  .qr-frame-color-row,
  .qr-eye-color-row {
    grid-template-columns: 1fr;
  }
}
.qr-status-url {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.qr-status-url span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.qr-status-url .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.qr-status-url .btn svg {
  width: 16px;
  height: 16px;
}
@media (max-width: 680px) {
  .qr-status-quick-actions .btn.primary {
    grid-column: auto;
  }
}
/* Detail používateľa: kratší zoznam (zariadenia) sa naťahoval na výšku dlhšej histórie a karty mali
   veľké prázdne miesto. */
.user-detail-columns {
  align-items: start;
}
.user-detail-section .user-detail-list {
  align-content: start;
}
@media (max-width: 680px) {
  /* Pod sebou nemusia mať karty rolí rovnakú výšku (prázdne miesto pod kratšími). */
  .user-role-overview-grid {
    align-items: start;
  }
}

/* ===== Redizajn 2026-10 (Filip): fáza 2 - krok D1 (vážne chyby: pás sekcií v Menu, potvrdzovacie okno) =====
   1. Pás sekcií do 1180 px: zoznam sekcií sa v posúvacom páse zúžil na šírku okna a jeho čipy
      prekryli čip „Nová sekcia“ (nedal sa stlačiť). Zoznam si drží šírku svojich čipov.
   2. Vlastné potvrdzovacie okno (potvrdenie() v app.js) namiesto systémového confirm(). */
@media (max-width: 1180px) {
  .menu-redesign .panel.menu-sections > .menu-section-list {
    flex: 0 0 auto;
  }
}

.potvrdenie-pozadie {
  position: fixed;
  inset: 0;
  /* Nad oknami administrácie (50-70) aj nad hláškou; pod ťahaným jedlom (9000) nikdy nie je otvorené. */
  z-index: 200;
  padding: 16px;
  display: grid;
  place-items: center;
  background: rgba(20, 18, 15, .46);
  animation: potvrdenie-pozadie-in .16s ease-out;
}

.potvrdenie-okno {
  width: min(420px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  border-radius: 16px;
  padding: 22px;
  display: grid;
  gap: 10px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 24px 64px rgba(42, 31, 23, .22);
  animation: potvrdenie-okno-in .18s ease-out;
}

.potvrdenie-okno h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.potvrdenie-okno p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.potvrdenie-akcie {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.potvrdenie-akcie .btn {
  min-height: 42px;
  justify-content: center;
}

.potvrdenie-okno .btn.potvrdenie-nebezpecne {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.potvrdenie-okno .btn.potvrdenie-nebezpecne:hover {
  border-color: #9a1d2a;
  background: #9a1d2a;
}

.potvrdenie-okno .btn:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

@media (max-width: 520px) {
  .potvrdenie-pozadie {
    place-items: end center;
  }

  .potvrdenie-okno {
    padding: 20px 18px;
  }

  /* Na telefóne tlačidlá na celú šírku pod sebou; nebezpečná akcia hore, bližšie k palcu je Zrušiť. */
  .potvrdenie-akcie {
    flex-direction: column-reverse;
  }

  .potvrdenie-akcie .btn {
    width: 100%;
  }
}

@keyframes potvrdenie-pozadie-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes potvrdenie-okno-in {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .potvrdenie-pozadie,
  .potvrdenie-okno {
    animation: none;
  }
}

/* ===== Redizajn 2026-10 (Filip): fáza 2 - krok D2 (drobnosti z kontroly 11. 10.: Prehľad, náhľad
   pre hosťa na mobile, sekcia, mapa v Profile, chybné polia formulárov) ===== */

/* Prehľad › Dnes: "Otvorené · čas nie je nastavený" sa v úzkej karte (960 px, telefón) zalamovalo
   uprostred dovetku s veľkou medzerou. Dovetok je preto vždy celý na vlastnom riadku pod "Otvorené",
   s bežnou výškou riadka. */
.prehlad-today-big.no-time {
  line-height: 1.25;
}

.prehlad-today-big.no-time small {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.35;
}

/* Pozrieť ako hosť na telefóne: bez nakresleného rámu telefónu, náhľad na celú šírku okna. V ráme
   malo menu len ~300 px a názvy jedál sa orezávali, hoci skutočné menu na telefóne ich ukáže celé. */
@media (max-width: 640px) {
  .modal-backdrop.mobile-preview-backdrop {
    padding: 0;
    place-items: stretch;
  }

  .mobile-preview-backdrop .mobile-preview-dialog {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    padding: 12px 0 0;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 10px;
    overflow: hidden;
  }

  .mobile-preview-backdrop .mobile-preview-dialog .modal-head,
  .mobile-preview-backdrop .seg.mobile-preview-seg {
    margin: 0 16px;
  }

  .mobile-preview-backdrop .mobile-preview-dialog .guest-mobile-preview-shell {
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
  }
}

/* Nastavenia sekcie: prázdny rámček fotky ukazuje len ikonu; "Pridať fotku" je raz, v tlačidle. */
.menu-category-photo-preview.is-add-photo svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Profil › Mapa: odkaz do Google Maps je pod mapou, aby neprekrýval ovládanie mapy. */
.profil-mapa-odkaz {
  width: max-content;
  max-width: 100%;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.profil-mapa-odkaz:hover,
.profil-mapa-odkaz:focus-visible {
  text-decoration: underline;
}

.profil-mapa-odkaz svg {
  flex: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Pole, pri ktorom kontrola formulára našla chybu (chybaPolaFormulara): červený okraj, kým ho
   používateľ neopraví. Hláška je v červenom toaste. */
.input[aria-invalid="true"],
.select[aria-invalid="true"] {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(180, 35, 50, .14);
}

/* ===== Redizajn 2026-10 (Filip): fáza 2 - krok B1 (ceny podľa cenníka v konzole, bez zľavy za kartu,
   nižší balík až po skončení obdobia, objednávka len pre majiteľa a účtovníka, platba len na faktúru,
   keď karta nie je dostupná) ===== */
.billing-order-period button.disabled,
.billing-order-period button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.balik-page .billing-card-cta-note {
  display: block;
  margin: -4px 0 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.balik-page .billing-role-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* ===== Redizajn 2026-10 (Filip): fáza 2 - krok B2 (predĺženie ku koncu obdobia, zrušenie
   a obnovenie predplatného, 3 dni na úhradu: oznamy na karte „Váš balík“) ===== */
.balik-obdobie-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--fill);
  color: var(--ink);
  line-height: 1.5;
}

.balik-obdobie-note p {
  flex: 1 1 280px;
  margin: 0;
  overflow-wrap: anywhere;
}

.balik-obdobie-note small {
  color: var(--muted);
}

/* Tlačidlo v sivom ozname by inak splynulo s podkladom (.btn má rovnakú výplň). */
.balik-page .balik-obdobie-note .btn:not(.primary) {
  background: var(--card);
}

.balik-obdobie-note.warn {
  background: var(--amber-soft);
  color: #6b4200;
  font-weight: 600;
}

.balik-current-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.balik-current-foot span {
  flex: 1 1 240px;
}

@media (max-width: 520px) {
  .balik-obdobie-note .btn,
  .balik-current-foot .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== Redizajn 2026-10 (Filip): fáza 2 - krok B3 (platby kartou: oznam po návrate z platobnej
   stránky na Balík a faktúry, „Platba kartou neprešla“ používa oznam lehoty z kroku B2) ===== */
.balik-platba-oznam.ok {
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 600;
}

.balik-platba-tlacidla {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 520px) {
  .balik-platba-tlacidla {
    width: 100%;
  }
}

/* ===== Redizajn 2026-10 (Filip): fáza 2 - krok B4 (hliníkové QR štítky: pás v cenníku, výber pri
   objednávke balíka, samostatná objednávka a zoznam objednávok na Balík a faktúry) ===== */
.stitky-obrazok {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
}

.stitky-cena {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.stitky-cena strong {
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
}

.stitky-pozn {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

/* Pás v cenníku: obrázok, výhoda, cena a tlačidlo. */
.stitky-promo {
  display: grid;
  grid-template-columns: minmax(140px, 200px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px 24px;
  margin: 18px 0 0;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--green-soft), #f7f5ee 70%);
  box-shadow: var(--shadow);
}

.stitky-promo-text {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.stitky-promo-text .eyebrow {
  margin: 0;
}

.stitky-promo-text h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.stitky-promo-text p {
  margin: 0;
  line-height: 1.5;
}

.stitky-promo-text small {
  color: var(--muted);
}

/* Objednávka balíka, krok 1: výber štítkov. */
.stitky-objednavka {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 18px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--card);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}

.stitky-objednavka.vybrane {
  border-color: var(--green);
  background: var(--green-soft);
}

.stitky-obrazok.maly {
  max-width: 96px;
}

.stitky-objednavka-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.stitky-objednavka-text p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.stitky-objednavka-text .stitky-cena {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.stitky-objednavka-pocet {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.stitky-pocet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stitky-pocet .btn {
  min-width: 40px;
  height: 40px;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  padding: 0;
}

.stitky-pocet .input {
  width: 64px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.stitky-spolu {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 2px 10px;
  color: var(--muted);
  font-size: 13px;
}

.stitky-spolu strong {
  color: var(--ink);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.stitky-spolu.prazdne strong {
  color: var(--faint);
}

/* Adresa doručenia (krok 2 objednávky aj samostatná objednávka). */
.stitky-adresa {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.stitky-adresa-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.stitky-adresa-text strong {
  color: var(--ink);
  font-weight: 600;
}

.stitky-adresa-polia {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  width: 100%;
}

/* Pole nad hodnotou (aj vnútri .company-billing-form, kde sú polia inak s popisom vľavo). */
.stitky-adresa-polia .field {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 5px;
  min-width: 0;
}

.stitky-adresa-polia .field > span {
  color: #46433c;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
}

.stitky-adresa-polia .input {
  background: var(--card);
  font-weight: 400;
}

.stitky-adresa-polia .field.span-2 {
  grid-column: 1 / -1;
}

/* Súhrn objednávky: štítky zvlášť, majú vlastnú faktúru. */
.billing-summary-stitky {
  display: grid;
  gap: 0;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-strong);
}

.billing-summary-stitky > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.billing-summary-stitky .billing-summary-line.spolu span,
.billing-summary-stitky .billing-summary-line.spolu strong {
  color: var(--ink);
  font-weight: 700;
}

.billing-summary-stitky small {
  color: var(--muted);
  font-size: 12px;
}

/* Balík a faktúry: sekcia Hliníkové QR štítky. */
.balik-stitky {
  display: grid;
  gap: 18px;
}

.stitky-hero {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  align-items: center;
  gap: 16px 24px;
}

.stitky-hero-text {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.stitky-hero-text h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.stitky-hero-text p {
  margin: 0;
  line-height: 1.5;
}

.stitky-form {
  display: grid;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--fill);
}

.stitky-form .input {
  background: var(--card);
}

.stitky-form .stitky-adresa .btn,
.stitky-form .stitky-pocet .btn,
.billing-order-details-card .stitky-adresa .btn {
  background: var(--card);
}

.stitky-pocet .btn,
.stitky-adresa .btn {
  border: 1px solid var(--line-strong);
}

.stitky-form-riadok {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.stitky-form-riadok .billing-section-label {
  margin: 0;
}

.stitky-form-pata {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.stitky-zoznam {
  display: grid;
  gap: 8px;
}

.stitky-zoznam h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

@media (max-width: 920px) {
  .stitky-promo {
    grid-template-columns: minmax(120px, 160px) minmax(0, 1fr);
  }

  .stitky-promo > .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 600px) {
  .stitky-promo,
  .stitky-hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px 16px;
  }

  .stitky-hero {
    padding: 0;
  }

  .stitky-promo .stitky-obrazok,
  .stitky-hero .stitky-obrazok {
    max-width: 180px;
  }

  .stitky-promo > .btn,
  .stitky-form-pata .btn {
    width: 100%;
    justify-content: center;
  }

  .stitky-objednavka {
    grid-template-columns: 72px minmax(0, 1fr);
    padding: 12px;
  }

  .stitky-obrazok.maly {
    max-width: 72px;
  }

  .stitky-objednavka-pocet {
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    justify-items: stretch;
  }

  .stitky-form {
    padding: 14px 12px;
  }

  .stitky-form-pata {
    justify-content: stretch;
  }

  .stitky-form-pata .stitky-spolu {
    width: 100%;
    justify-content: space-between;
  }

  .stitky-adresa-polia {
    grid-template-columns: minmax(0, 1fr);
  }

  .stitky-adresa .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== Redizajn 2026-10 (Filip): fáza 2 - krok I2 (rezervácie v administrácii: odznak s počtom
   čakajúcich pri „Rezervácie“ a bodka pri „Viac“, oznam o novej rezervácii vpravo hore, ponuka
   balíka Pro na stránke Rezervácie) ===== */
.nav-badge {
  margin-left: auto;
  flex: 0 0 auto;
  min-width: 20px;
  height: 20px;
  border-radius: 99px;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* Na mobile je položka Rezervácie v ponuke „Viac“ (mriežka ikona | text | doplnok). */
.mobile-more-item .nav-badge {
  justify-self: end;
}

.mobile-tab {
  position: relative;
}

.mobile-tab .nav-badge {
  position: absolute;
  top: 2px;
  left: calc(50% + 6px);
  margin: 0;
  min-width: 18px;
  height: 18px;
  font-size: 10.5px;
}

.mobile-tab-dot {
  position: absolute;
  top: 5px;
  left: calc(50% + 8px);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 2px #fff;
}

/* Oznam o novej rezervácii: nenápadný, vpravo hore pod hornou lištou, nezakrýva prácu. */
.rezervacie-oznam {
  position: fixed;
  top: 76px;
  right: 24px;
  /* Nad obsahom, hornou lištou (30) a mobilnou lištou (40), ale POD oknami (.modal-backdrop 50,
     náhľad fotky 60) a potvrdzovacím oknom (200): otvorené okno oznam zakryje, takže „Zobraziť“
     nemôže prepnúť stránku pod rozpísaným detailom jedla. Po zavretí okna je oznam znova vidieť. */
  z-index: 48;
  width: min(380px, calc(100vw - 32px));
  border: 1px solid rgba(22, 163, 74, .24);
  border-radius: 14px;
  padding: 10px 8px 10px 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow);
  animation: rezervacie-oznam-in .2s ease-out;
}

.rezervacie-oznam-ikona {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green-dark);
}

.rezervacie-oznam-ikona svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rezervacie-oznam-text {
  font-size: 14px;
  line-height: 1.35;
}

.rezervacie-oznam-zobrazit {
  border: 0;
  border-radius: 99px;
  padding: 7px 12px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.rezervacie-oznam-zobrazit:hover {
  background: var(--green-hover);
}

.rezervacie-oznam-zavriet {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.rezervacie-oznam-zavriet:hover {
  background: rgba(29, 29, 31, .06);
}

@keyframes rezervacie-oznam-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 920px) {
  .rezervacie-oznam {
    top: 12px;
    right: 16px;
    left: 16px;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rezervacie-oznam {
    animation: none;
  }
}

/* Free a Basic: ponuka Pro namiesto modulu rezervácií. */
.reservations-upsell .btn {
  margin-top: 8px;
}

/* ===== Redizajn 2026-10 (Filip): fáza 2 - dotlačenie 3, časť P (platby, balíky a štítky po záverečnej
   kontrole: neuhradená objednávka so „Zaplatiť“ a „Zrušiť objednávku“, zrušenie štítkov, stĺpec Free
   v porovnaní balíkov). ===== */
/* Číslo objednávky (LM-2026-00001) sa nezalomí pri pomlčke. */
.balik-cislo {
  white-space: nowrap;
}
/* Porovnanie s Free má na mobile tri hodnoty: jeden riadok s tromi stĺpcami, nie dva a jeden pod nimi. */
@media (max-width: 680px) {
  .pricing-table.tri-stlpce tbody tr:not(.pricing-table-group) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pricing-table.tri-stlpce tbody tr:not(.pricing-table-group) td {
    padding-right: 8px;
    padding-left: 14px;
  }
  .pricing-table.tri-stlpce tbody tr:not(.pricing-table-group) td + td {
    padding-left: 6px;
  }
}

/* ===== Redizajn 2026-10 (Filip): fáza 2 - dolad7 (tlačidlá balíka podľa práva: zamestnanec, ktorý
   nesmie objednať, vidí na karte „Váš balík“ namiesto „Zmeniť balík“ len vetu, kto o balíku rozhoduje). ===== */
.balik-card .balik-role-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

/* ===== Redizajn 2026-10 (Filip): fáza 2 - dolad8 (údaje firmy len na čítanie pre toho, kto ich vidí, ale
   neupravuje; zoznam objednaných štítkov bez ponuky; veta „O balíku rozhoduje majiteľ alebo účtovník.“
   raz na stránke, pri popise balíka). ===== */
/* Veta je pod popisom balíka, nie pod štítkom stavu - patrí k tomu, čo balík obsahuje. */
.balik-card .balik-role-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
/* Údaje firmy na čítanie: tie isté karty ako pri faktúrach, na mobile pod sebou. */
.company-readonly-panel .company-readonly-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.company-readonly-panel .company-data-card strong {
  overflow-wrap: anywhere;
}
@media (max-width: 920px) {
  .company-readonly-panel .company-readonly-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .company-readonly-panel .company-readonly-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Štítky len so zoznamom (vidí faktúry, neobjednáva): nadpis a poznámka bez obrázka a formulára. */
.balik-stitky-len-zoznam h2 {
  margin: 4px 0 6px;
}
.balik-stitky-len-zoznam .stitky-pozn {
  margin-bottom: 12px;
}

/* ===== Redizajn 2026-10 (Filip): fáza 2 - dolad9 (veta „O balíku rozhoduje majiteľ alebo účtovník.“
   v oznamoch o zamknutej funkcii pre toho, kto nesmie objednať - na mieste tlačidla „Navýšiť balík“;
   veta „Spravuje majiteľ“ / „Spravuje LiveMenu“ v zozname používateľov pri účte, ktorý prihlásený
   nespravuje - viditeľná aj na mobile, kde titulok nad tlačidlom nikto neuvidí). ===== */
/* Oznamy sú mriežka „text | akcia“. Veta stojí v stĺpci akcie: úzka a tlmená, aby nepôsobila ako tlačidlo
   a nezúžila text oznamu (stĺpec „auto“ by jej dal celú šírku vety). Na mobile ide pod text. */
.menu-entitlement-notice:has(> .entitlement-role-note),
.photos-entitlement-notice:has(> .entitlement-role-note),
.user-entitlement-notice:has(> .entitlement-role-note),
.language-entitlement-notice:has(> .entitlement-role-note),
.qr-branding-entitlement-notice:has(> .entitlement-role-note) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 210px);
}
.entitlement-role-note {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-align: right;
}
@media (max-width: 560px) {
  .menu-entitlement-notice:has(> .entitlement-role-note),
  .photos-entitlement-notice:has(> .entitlement-role-note),
  .user-entitlement-notice:has(> .entitlement-role-note),
  .language-entitlement-notice:has(> .entitlement-role-note),
  .qr-branding-entitlement-notice:has(> .entitlement-role-note) {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .entitlement-role-note {
    text-align: left;
  }
}
/* Oznam „Automatické preklady“ má tri priame deti (nadpis, text, akcia), nie dve ako ostatné oznamy. Bez
   pevného umiestnenia padol text do stĺpca akcie a akcia pod nadpis (pri vete aj pri tlačidle „Navýšiť
   balík“ / „Skontrolovať“; na mobile sa nadpis zúžil na nulu). Nadpis a text sú vľavo pod sebou, akcia
   (tlačidlo alebo veta) vpravo cez oba riadky; na mobile ide všetko pod seba. */
.ai-translation-entitlement-notice {
  grid-template-columns: minmax(0, 1fr) auto;
}
.ai-translation-entitlement-notice:has(> .entitlement-role-note) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 210px);
}
.ai-translation-entitlement-notice > strong,
.ai-translation-entitlement-notice > span {
  grid-column: 1;
}
.ai-translation-entitlement-notice > :not(strong):not(span) {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}
@media (max-width: 560px) {
  .ai-translation-entitlement-notice,
  .ai-translation-entitlement-notice:has(> .entitlement-role-note) {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .ai-translation-entitlement-notice > :not(strong):not(span) {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }
}
/* Riadok používateľa: veta pod tlačidlom (na celú šírku stĺpca akcií). */
.user-actions .user-managed-note {
  flex: 1 1 100%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  text-align: right;
}
@container (max-width: 560px) {
  .user-row > .user-actions .user-managed-note {
    text-align: left;
  }
}
@media (max-width: 920px) {
  .user-actions .user-managed-note {
    text-align: left;
  }
}

/* ===== Redizajn 2026-10 (Filip): fáza 2 - dolad11a (roly a bezpečnosť: Profil podniku, vzhľad QR,
   hodiny a „Dočasne zatvorené“ na Prehľade a alergény len na čítanie pre rolu bez práva, s vetou, kto ich
   upravuje; skrytý kontakt kolegu bez chybových značiek; „Bez telefónu“ na mobile menším písmom ako meno;
   výber roly v riadku používateľa bez orezania). ===== */
/* Oznam „Len na čítanie“: pokojný, nie červený - nejde o chybu, len o rozdelenie práce. */
.len-na-citanie-oznam {
  margin: 0 0 14px;
  border-color: var(--line);
  background: #fbfaf8;
  color: var(--text, #1f2937);
}
.len-na-citanie-oznam span {
  color: var(--muted);
}
.qr-editor-panel > .len-na-citanie-oznam {
  margin: 12px 0;
}
/* Neaktívne časti len na čítanie ostávajú čitateľné, len nereagujú (inert). */
.editable-public-page.len-na-citanie .editable-image-field.is-add-photo,
.editable-public-page.len-na-citanie .additional-info-prompt {
  display: none;
}
.qr-editor-sidebar.len-na-citanie {
  opacity: .72;
}
.prehlad-switch:disabled {
  cursor: not-allowed;
  opacity: .55;
}
.prehlad-len-citanie {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.menu-choice-grid.allergens .menu-choice:has(input:disabled) {
  cursor: not-allowed;
  opacity: .7;
}
/* Výber roly: „Admin reštaurácie“ sa zmestí celý (predtým stĺpec 150 px orezal „Admin reštauráci“). */
.user-row {
  grid-template-columns: minmax(240px, 1.35fr) minmax(150px, .8fr) 184px minmax(120px, .55fr) auto;
}
@container (max-width: 960px) {
  .user-row {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(184px, 190px);
  }
}
@container (max-width: 560px) {
  .user-row {
    grid-template-columns: minmax(0, 1fr);
  }
  /* Na mobile je hlavné meno; telefón (alebo „Bez telefónu“) je doplnok, preto menším písmom. */
  .user-row .user-contact span {
    margin-bottom: 2px;
    font-size: 12px;
    font-weight: 650;
  }
}
@media (max-width: 600px) {
  .user-row .user-contact span {
    margin-bottom: 2px;
    font-size: 12px;
    font-weight: 650;
  }
}

/* ===== Redizajn 2026-10 (Filip): fáza 2 - dolad11b (oznam o novej rezervácii v hornej lište) =====
   Na počítači oznam pod hornou lištou (top: 76px) zakrýval hlavné tlačidlá stránky, napr. „Pozrieť
   ako hosť“ a „Pridať jedlo“ v Menu (záverečná kontrola 2, Z2-m12). Oznam preto sedí v hornej lište
   vľavo od avatara: zakryje len odkaz „Menu pre hostí“ (je aj v hlavičke Menu), nie ponuku účtu ani
   tlačidlá stránky. Mobil (≤ 920 px) ostáva, ako bol. */
@media (min-width: 921px) {
  .rezervacie-oznam {
    top: 6px;
    right: 72px;
    /* Na užšom počítači (od 921 px) nech čo najmenej zasahuje do vyhľadávania v hornej lište. */
    width: clamp(300px, calc(100vw - 600px), 380px);
    min-height: 52px;
    padding-top: 6px;
    padding-bottom: 6px;
  }
}

/* ===== Redizajn 2026-10 (Filip): fáza 2 - dolad12 (oznam o novej rezervácii na užšom počítači) =====
   Pri 921–1000 px oznam v hornej lište zakryl ~10 px konca vyhľadávania (to končí na x = 538 px: bočný
   panel 220 px + vyhľadávanie 248 px). Oznam je vpravo (right: 72px), takže jeho šírka musí byť najviac
   100vw − 72 − 538 − 8 px medzera = 100vw − 618 px. Aby sa text zmestil do výšky lišty, na tejto šírke
   nemá ikonu (len ozdobná, aria-hidden) a text je o niečo menší. Od 1001 px platí vrstva dolad11b. */
@media (min-width: 921px) and (max-width: 1000px) {
  .rezervacie-oznam {
    width: calc(100vw - 620px);
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 6px;
    padding-left: 12px;
  }

  .rezervacie-oznam-ikona {
    display: none;
  }

  .rezervacie-oznam-text {
    font-size: 13px;
    line-height: 1.3;
  }

  .rezervacie-oznam-zobrazit {
    padding: 6px 10px;
    font-size: 13px;
  }
}

/* Podsekcie v zozname sekcií (21. 10. 2026): odsadené pod hlavnou sekciou, bez posúvania poradia. */
.menu-section-row.is-subsection {
  margin-left: 18px;
}

.menu-subsection-mark {
  width: 18px;
  flex: 0 0 18px;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}

.menu-category-form .field-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
