@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=PT+Sans:wght@400;700&display=swap");

@font-face {
  font-family: "Uncage";
  src: local("Uncage"), url("/fonts/UNCAGE.woff") format("woff");
  font-display: swap;
  font-style: normal;
  font-weight: 600;
}

:root {
  /* shadcn/ui light tokens (zinc) */
  --background: 0 0% 100%;
  --foreground: 240 10% 3.9%;
  --card: 0 0% 100%;
  --card-foreground: 240 10% 3.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 240 10% 3.9%;
  --primary: 240 5.9% 10%;
  --primary-foreground: 0 0% 98%;
  --secondary: 240 4.8% 95.9%;
  --secondary-foreground: 240 5.9% 10%;
  --muted: 240 4.8% 95.9%;
  --muted-foreground: 240 3.8% 46.1%;
  --accent: 240 4.8% 95.9%;
  --accent-foreground: 240 5.9% 10%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;
  --border: 240 5.9% 90%;
  --input: 240 5.9% 90%;
  --ring: 240 5.9% 10%;
  --radius: 0.5rem;

  /* tenant menu theme (public frontend) */
  --page-bg: #ffffff;
  --name-color: #070707;
  --description-color: #141414;
  --price-color: #050505;
  --weight-color: #1f1f1f;
  --section-color: #981354;
  --line-color: #e7e0df;
  --panel-bg: #ffffff;
  --shadow: 0 20px 60px rgb(0 0 0 / 18%);
  --display-font: "Uncage", Impact, "Arial Black", sans-serif;
  --display-weight: 600;
  --text-font: "PT Sans", Arial, Helvetica, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --ui-font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color-scheme: light;
  font-family: var(--text-font);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--page-bg);
  color: var(--description-color);
}

button,
input {
  font: inherit;
}

.app-shell {
  max-width: 520px;
  min-height: 100svh;
  margin: 0 auto;
  background: var(--page-bg);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
  background: color-mix(in srgb, var(--page-bg) 92%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line-color) 70%, transparent);
  backdrop-filter: blur(18px);
}

.plain-button,
.icon-button,
.action-button,
.secondary-button {
  border: 0;
  cursor: pointer;
}

.plain-button {
  min-height: 36px;
  padding: 0;
  background: transparent;
  color: var(--section-color);
  font-family: var(--display-font);
  font-weight: var(--display-weight);
  text-transform: uppercase;
}

.menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  max-width: 72%;
  text-align: left;
}

.menu-trigger #currentSection {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-trigger-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  color: var(--section-color);
}

.ui-icon {
  display: block;
  width: var(--icon-size, 20px);
  height: var(--icon-size, 20px);
}

.ui-icon-xs {
  --icon-size: 14px;
}

.ui-icon-sm {
  --icon-size: 16px;
}

.ui-icon-lg {
  --icon-size: 22px;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  padding: 0;
}

.menu-page {
  padding: 36px 14px 24px;
}

.menu-footer {
  padding: 16px 14px calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid color-mix(in srgb, var(--line-color) 55%, transparent);
  text-align: center;
}

.menu-footer p {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.6875rem;
  line-height: 1.45;
}

.menu-footer a {
  color: hsl(var(--muted-foreground));
  text-decoration: underline;
  text-underline-offset: 2px;
}

.menu-footer a:hover {
  color: hsl(var(--foreground));
}

.page-title {
  margin: 0;
  color: var(--section-color);
  font-family: var(--display-font);
  font-size: 18px;
  font-weight: var(--display-weight);
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.brand-block {
  display: grid;
  min-height: 116px;
  place-items: center;
  margin-top: 0;
}

.restaurant-logo {
  width: min(78%, 310px);
  max-height: 112px;
  object-fit: contain;
}

.logo-fallback {
  color: var(--section-color);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 10vw, 54px);
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  transform: rotate(-7deg);
}

.menu-section {
  scroll-margin-top: 58px;
}

.section-title,
h2.section-title,
button.section-title {
  margin: 20px 0 26px;
  color: var(--section-color);
  font-family: var(--display-font);
  font-size: 16px;
  font-weight: var(--display-weight);
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
}

button.section-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.section-title-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  color: var(--section-color);
}

.section-title-label {
  min-width: 0;
}

.dish {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  gap: 15px;
  padding: 0 0 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line-color);
}

.dish-no-image {
  grid-template-columns: minmax(0, 1fr);
}

.dish-title,
h3.dish-title {
  margin: 0 0 9px;
  color: var(--name-color);
  font-family: var(--display-font);
  font-size: clamp(22px, 6.1vw, 28px);
  font-weight: var(--display-weight);
  letter-spacing: 0;
  line-height: 0.94;
  text-transform: uppercase;
}

.dish-title-clickable {
  cursor: zoom-in;
}

.app-shell button.section-title,
.app-shell button.dish-image-button {
  box-shadow: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.app-shell button.section-title:focus,
.app-shell button.section-title:focus-visible,
.app-shell button.dish-image-button:focus,
.app-shell button.dish-image-button:focus-visible {
  outline: none;
  box-shadow: none;
}

.dish-description {
  margin: 0 0 8px;
  color: var(--description-color);
  font-family: var(--text-font);
  font-size: 16px;
  line-height: 1.45;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-height: 30px;
}

.dish-price {
  color: var(--price-color);
  font-family: var(--display-font);
  font-size: 26px;
  font-weight: var(--display-weight);
  line-height: 1;
}

.dish-price small {
  font-size: 0.72em;
}

.dish-weight {
  color: var(--weight-color);
  font-family: var(--text-font);
  font-size: 13px;
  line-height: 1;
}

.admin-price-field {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.admin-price-field .price-currency {
  color: var(--price-color);
  font-family: var(--display-font);
  font-size: 26px;
  font-weight: var(--display-weight);
  line-height: 1;
  user-select: none;
}

.admin-weight-field {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin-left: auto;
}

.admin-weight-field .dish-weight-value,
.admin-weight-field .dish-weight-unit {
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--weight-color);
  font-family: var(--text-font);
  font-size: 13px;
  line-height: 1;
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.admin-weight-field .dish-weight-value {
  min-width: 4ch;
}

.admin-weight-field .dish-weight-unit {
  padding-right: 12px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23666' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 8px 5px;
}

.admin-weight-field .dish-weight-value:focus,
.admin-weight-field .dish-weight-unit:focus {
  outline-color: color-mix(in srgb, var(--section-color) 45%, transparent);
  box-shadow: none;
}

.admin-dish .price-line {
  flex-wrap: wrap;
}

.dish-image-button,
.admin-image-uploader {
  align-self: start;
  width: 86px;
  height: 86px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #eee;
  cursor: zoom-in;
}

.dish-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.empty-state {
  margin: 52px 0;
  color: var(--muted);
  text-align: center;
}

dialog {
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
}

dialog::backdrop {
  background: rgb(0 0 0 / 42%);
}

.sections-dialog {
  width: 100%;
  height: 100%;
}

.sections-dialog .dialog-panel {
  padding: 14px 16px;
  max-height: calc(100svh - 20px);
}

.sections-dialog .dialog-head {
  margin-bottom: 12px;
}

.dialog-panel {
  width: min(100%, 520px);
  max-height: calc(100svh - 28px);
  margin: 14px auto;
  padding: 20px;
  overflow: auto;
  background: hsl(var(--popover));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 2px);
  box-shadow: 0 10px 38px rgb(0 0 0 / 12%);
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.dialog-head p {
  margin: 0;
  color: hsl(var(--popover-foreground));
  font-size: 1rem;
  font-weight: 600;
}

.icon-button {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
}

.sections-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.section-link {
  width: 100%;
  min-height: 0;
  padding: 12px 4px;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line-color) 70%, transparent);
  border-radius: 0;
  background: transparent;
  color: hsl(var(--foreground));
  font-family: var(--ui-font, var(--text-font));
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: left;
  text-transform: none;
}

.section-link:last-child {
  border-bottom: 0;
}

.sections-dialog .section-link:hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.sections-dialog .section-link:focus,
.sections-dialog .section-link:focus-visible {
  outline: none;
  box-shadow: none;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.admin-body .section-link {
  color: hsl(var(--foreground));
}

.admin-body .section-link:hover {
  background: hsl(var(--accent));
}

.image-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: 100vw;
  height: 100svh;
  max-height: 100svh;
  margin: 0;
  padding: 0;
  background: #000;
}

.image-dialog[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-dialog::backdrop {
  background: #000;
}

.image-viewer {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.image-dialog img {
  width: min(100%, 980px);
  max-height: 100svh;
  object-fit: contain;
}

.image-close {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgb(0 0 0 / 42%);
  color: #fff;
  cursor: pointer;
}

.image-close .ui-icon {
  --icon-size: 22px;
}

.admin-body {
  --line-color: hsl(var(--border));
  --muted: hsl(var(--muted-foreground));
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
  font-family: var(--ui-font);
  -webkit-font-smoothing: antialiased;
}

.login-page {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 18px;
}

.login-card,
.admin-settings,
.admin-export,
.admin-design-panel {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 24px;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 2px);
  box-shadow: 0 1px 2px rgb(0 0 0 / 4%);
}

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

.login-card h1 {
  margin: 0;
  color: hsl(var(--card-foreground));
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.field {
  display: grid;
  gap: 8px;
}

.field span,
.color-grid span,
.upload-logo span {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  font-weight: 500;
}

.field input {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid hsl(var(--input));
  border-radius: var(--radius);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field input:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsl(var(--ring) / 12%);
}

.action-button,
.secondary-button {
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.action-button {
  border: 1px solid hsl(var(--primary));
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.action-button:hover {
  background: hsl(var(--primary) / 90%);
}

.secondary-button {
  border: 1px solid hsl(var(--border));
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.secondary-button:hover {
  background: hsl(var(--accent));
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.admin-app {
  padding-bottom: 32px;
}

.admin-header,
.client-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background: hsl(var(--background) / 92%);
  border-bottom: 1px solid hsl(var(--border));
  backdrop-filter: blur(12px);
}

.client-header {
  align-items: end;
}

.client-header-main {
  display: grid;
  gap: 2px;
  min-width: 140px;
  width: 100%;
  flex: 1 1 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.client-header-title {
  margin: 0;
  color: hsl(var(--foreground));
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  grid-column: 1;
  grid-row: 1;
}

.client-status {
  color: hsl(var(--muted-foreground));
  font-size: 0.75rem;
  grid-column: 1;
  grid-row: 2;
}

.client-header-toggle {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  background: transparent;
  color: hsl(var(--muted-foreground));
}

.client-header-extra {
  display: contents;
}

.client-import-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  flex: 1 1 100%;
}

.client-source-field {
  flex: 1 1 260px;
  min-width: 220px;
}

.client-import-file-field {
  flex: 1 1 220px;
  min-width: 200px;
}

.client-import-file-field input[type="file"] {
  width: 100%;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid hsl(var(--input));
  border-radius: var(--radius);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 0.8125rem;
}

.client-header-actions,
.admin-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.admin-design-panel {
  display: grid;
  gap: 16px;
  margin: 16px auto 0;
}

.admin-preview {
  margin: 16px auto 32px;
}

.admin-preview .app-shell {
  margin: 0 auto;
  border: 1px solid var(--line-color);
  border-radius: 8px;
  overflow: hidden;
}

.client-menu {
  padding-top: 18px;
}

.admin-header p {
  margin: 0;
  color: hsl(var(--foreground));
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.admin-header span,
.form-status {
  color: hsl(var(--muted-foreground));
  font-size: 0.75rem;
}

.admin-settings,
.admin-design-panel .color-grid {
  display: grid;
  gap: 14px;
}

.admin-settings {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  margin-top: 16px;
}

.wide {
  min-width: 0;
}

.upload-logo {
  display: grid;
  gap: 8px;
}

.upload-logo input {
  max-width: 170px;
}

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

.admin-colors {
  grid-column: 1 / -1;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.color-grid label {
  display: grid;
  gap: 6px;
}

.color-grid input {
  width: 100%;
  height: 40px;
  padding: 3px;
  border: 1px solid hsl(var(--input));
  border-radius: var(--radius);
  background: hsl(var(--background));
}

.admin-menu {
  max-width: 520px;
  margin: 0 auto;
  background: var(--page-bg);
}

.admin-body .admin-menu.menu-skin-custom {
  background: var(--page-bg);
  border: 1px solid var(--line-color);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: 0 1px 2px rgb(0 0 0 / 4%);
}

.admin-body .admin-menu.menu-skin-shadcn {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 2px);
  box-shadow: 0 1px 2px rgb(0 0 0 / 4%);
}

.admin-body .admin-editable:focus {
  outline: none;
  box-shadow: 0 0 0 3px hsl(var(--ring) / 12%);
}

.admin-body .item-delete-btn {
  color: hsl(var(--destructive));
}

.admin-body .item-delete-btn:hover,
.admin-body .item-delete-btn:focus-visible {
  background: hsl(var(--destructive) / 10%);
}

.admin-body .empty-state {
  color: hsl(var(--muted-foreground));
}

.skin-mode-field {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.skin-mode-field legend {
  margin-bottom: 2px;
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  font-weight: 600;
}

.skin-mode-option {
  display: flex;
  align-items: center;
  gap: 10px;
  color: hsl(var(--foreground));
  font-size: 0.875rem;
}

.skin-mode-option input {
  width: 16px;
  height: 16px;
  accent-color: hsl(var(--primary));
}

.skin-mode-hint {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.8125rem;
  line-height: 1.45;
}

#customSkinPanel.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.app-shell.menu-skin-shadcn,
.client-menu.menu-skin-shadcn {
  --text-font: var(--ui-font);
  --display-font: var(--ui-font);
  --display-weight: 600;
}

.app-shell.menu-skin-shadcn .section-title,
.app-shell.menu-skin-shadcn .dish-title,
.app-shell.menu-skin-shadcn .plain-button,
.app-shell.menu-skin-shadcn .section-link,
.client-menu.menu-skin-shadcn .section-title,
.client-menu.menu-skin-shadcn .dish-title,
.client-menu.menu-skin-shadcn .plain-button,
.client-menu.menu-skin-shadcn .section-link {
  text-transform: none;
  letter-spacing: -0.02em;
}

.app-shell.menu-skin-shadcn .logo-fallback,
.client-menu.menu-skin-shadcn .logo-fallback {
  transform: none;
  font-family: var(--ui-font);
  font-style: normal;
  font-weight: 600;
  font-size: clamp(28px, 8vw, 40px);
}

.client-menu .client-brand-preview {
  pointer-events: none;
  user-select: none;
}

.admin-section {
  border-bottom: 1px solid var(--line-color);
}

.admin-section-bar {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  gap: 8px;
  align-items: center;
  margin: 20px 0 18px;
}

.admin-section-bar .section-title {
  margin: 0;
}

.drag-handle,
.section-toggle,
.section-move-btn {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  user-select: none;
  -webkit-user-select: none;
}

.item-delete-btn {
  border: 0;
  border-radius: 6px;
  background: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.drag-handle {
  width: 34px;
  height: 34px;
  cursor: grab;
  touch-action: none;
}

.drag-handle:active {
  cursor: grabbing;
}

.drag-handle .ui-icon {
  --icon-size: 18px;
}

.section-toggle {
  width: 34px;
  height: 34px;
  cursor: pointer;
}

.section-toggle .ui-icon {
  --icon-size: 20px;
}

.section-move-controls {
  display: grid;
  gap: 2px;
  align-self: center;
}

.section-move-btn {
  width: 34px;
  height: 16px;
  cursor: pointer;
}

.section-move-btn:hover:not(:disabled),
.section-move-btn:focus-visible:not(:disabled) {
  background: color-mix(in srgb, var(--section-color) 12%, transparent);
  color: var(--section-color);
}

.section-move-btn:disabled {
  opacity: 0.28;
  cursor: default;
}

.admin-section-items {
  display: grid;
}

.section-delete-empty {
  display: flex;
  justify-content: center;
  padding: 8px 0 20px;
}

.section-delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--secondary));
  color: hsl(var(--destructive));
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
}

.section-delete-btn .ui-icon {
  color: #b42318;
}

.admin-section.is-removing {
  opacity: 0;
  transform: scale(0.99);
  transition: opacity 200ms ease, transform 200ms ease;
}

.admin-section.is-collapsed .admin-section-items,
.admin-section.is-collapsed .admin-add-item-wrap {
  display: none;
}

.admin-editable {
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-radius: 4px;
}

.admin-editable:focus {
  outline-color: color-mix(in srgb, var(--section-color) 45%, transparent);
}

.admin-image-uploader {
  position: relative;
  display: grid;
  place-items: center;
  border: 1px dashed var(--section-color);
  background: #eeeeee;
  color: #777;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.upload-placeholder {
  display: grid;
  gap: 6px;
  place-items: center;
  color: #777;
}

.upload-icon {
  display: grid;
  place-items: center;
  color: var(--section-color);
}

.upload-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-image-uploader input {
  display: none;
}

.admin-image-uploader.has-image {
  background: #eee;
  border: 0;
  cursor: pointer;
}

.admin-image-uploader .image-remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgb(0 0 0 / 58%);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease, background-color 150ms ease;
}

.admin-image-uploader.has-image:hover .image-remove-btn,
.admin-image-uploader.has-image:focus-within .image-remove-btn,
.admin-image-uploader.has-image .image-remove-btn:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

.admin-image-uploader .image-remove-btn:hover,
.admin-image-uploader .image-remove-btn:focus-visible {
  background: rgb(0 0 0 / 72%);
}

@media (hover: none) {
  .admin-image-uploader.has-image .image-remove-btn {
    opacity: 1;
    pointer-events: auto;
  }
}

.admin-dish {
  grid-template-columns: 28px minmax(0, 1fr) 86px 34px;
  align-items: start;
}

.admin-dish.dish-no-image {
  grid-template-columns: 28px minmax(0, 1fr) 34px;
}

.item-drag-handle {
  margin-top: -4px;
}

.item-delete-btn {
  width: 34px;
  height: 34px;
  color: #b42318;
  cursor: pointer;
}

.item-delete-btn .ui-icon {
  --icon-size: 18px;
}

.item-delete-btn:hover,
.item-delete-btn:focus-visible {
  background: rgb(180 35 24 / 10%);
}

.admin-add-item-wrap,
.admin-add-section-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 0 20px;
}

.admin-add-section-wrap {
  padding: 24px 0 8px;
}

.admin-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 280px;
}

.admin-add-btn .ui-icon {
  color: var(--section-color);
}

.admin-body .admin-menu.menu-skin-custom .admin-add-btn {
  border-color: color-mix(in srgb, var(--section-color) 40%, transparent);
  background: color-mix(in srgb, var(--page-bg) 55%, white);
  color: var(--section-color);
}

.sort-ghost {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1200;
  margin: 0;
  pointer-events: none;
  opacity: 0.96;
  box-shadow: 0 16px 40px rgb(0 0 0 / 18%);
  transition: box-shadow 180ms ease;
  will-change: transform;
}

.sort-ghost .item-delete-btn,
.sort-ghost .admin-add-btn {
  display: none;
}

.sort-placeholder {
  box-sizing: border-box;
  margin: 0 0 16px;
  border: 2px dashed color-mix(in srgb, var(--section-color) 55%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--section-color) 8%, transparent);
  transition: height 220ms cubic-bezier(0.2, 0, 0, 1), margin 220ms cubic-bezier(0.2, 0, 0, 1);
}

.sort-placeholder-section {
  margin: 12px 0 20px;
}

.sort-placeholder-item {
  margin-bottom: 24px;
}

.is-drag-source {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.is-removing {
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 200ms ease, transform 200ms ease;
}

body.is-sorting {
  cursor: grabbing;
  user-select: none;
  -webkit-user-select: none;
}

body.is-sorting .drag-handle {
  cursor: grabbing;
}

.admin-export {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 720px) {
  .admin-settings {
    grid-template-columns: 1fr;
  }

  .admin-colors,
  .admin-design-panel .admin-colors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-header {
    align-items: stretch;
  }

  .client-header-actions,
  .admin-header-actions {
    width: 100%;
  }

  .client-header-actions .link-button,
  .admin-header-actions .link-button {
    flex: 1 1 auto;
  }

  .client-header.is-collapsed {
    align-items: center;
  }

  .client-header.is-collapsed .client-header-extra {
    display: none;
  }
}

@media (min-width: 700px) {
  .client-header-toggle {
    display: none;
  }

  .client-header .client-header-extra {
    display: contents;
  }

  body:not(.admin-body) {
    background: #f4f1ef;
  }

  .app-shell {
    box-shadow: 0 0 0 1px var(--line-color);
  }
}

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

.auth-lead {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  line-height: 1.5;
}

.plan-field {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 10px;
}

.plan-field legend {
  margin-bottom: 8px;
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  font-weight: 500;
}

.plan-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 2px);
  background: hsl(var(--background));
  cursor: pointer;
}

.plan-option:has(input:checked) {
  border-color: hsl(var(--foreground) / 35%);
  background: hsl(var(--muted) / 35%);
}

.plan-option input {
  margin-top: 3px;
}

.plan-option-body {
  display: grid;
  gap: 4px;
}

.plan-option-body strong {
  font-size: 0.9375rem;
}

.plan-option-body small {
  color: hsl(var(--muted-foreground));
  font-size: 0.8125rem;
  line-height: 1.4;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-foot {
  margin: 0;
  text-align: center;
}

.auth-foot a {
  color: hsl(var(--foreground));
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-status.is-error {
  color: hsl(var(--destructive));
}

.super-app .super-panel {
  width: 100%;
  max-width: none;
  margin: 16px 0 0;
  padding: 24px;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 2px);
  box-shadow: 0 1px 2px rgb(0 0 0 / 4%);
  overflow-x: auto;
}

.super-app {
  padding: 0 20px 32px;
}

.super-paid-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: hsl(142 76% 36% / 16%);
  color: hsl(142 76% 28%);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
}

.super-inn-cell {
  white-space: nowrap;
}

.super-inn-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.super-paid-slot {
  flex: 0 0 1.4rem;
  display: flex;
  justify-content: center;
}

.super-alias-cell {
  min-width: 220px;
}

.super-alias-view,
.super-alias-edit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.super-alias-view[hidden],
.super-alias-edit[hidden] {
  display: none !important;
}

.super-alias-link {
  font-size: 0.875rem;
  text-underline-offset: 3px;
}

.super-alias-input {
  width: min(200px, 100%);
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid hsl(var(--input));
  border-radius: var(--radius);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 0.875rem;
}

.super-plan-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: hsl(var(--foreground));
  cursor: pointer;
  user-select: none;
}

.super-plan-check input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.super-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.super-table th,
.super-table td {
  padding: 12px 10px;
  border-bottom: 1px solid hsl(var(--border));
  text-align: left;
  vertical-align: middle;
}

.super-table th {
  font-weight: 500;
  color: hsl(var(--muted-foreground));
}

.super-table th.super-inn-th {
  padding-left: calc(10px + 1.4rem + 8px);
}
