    body.admin-mode .container {
      max-width: var(--content-max);
      padding-top: 18px;
    }
    body.admin-mode .panel {
      padding: 12px;
      margin: 10px 0;
      border-radius: 14px;
    }
    body.admin-mode .grid-form {
      gap: 10px;
    }
    body.admin-mode .grid-form input,
    body.admin-mode .grid-form select,
    body.admin-mode .grid-form textarea {
      padding: 7px 9px;
      font-size: 14px;
    }
    body.admin-mode .grid-form select {
      min-height: 38px;
      padding-right: 38px;
    }
    body.admin-mode .grid-form .app-select-button {
      min-height: 38px;
      padding: 7px 9px 7px 10px;
      font-size: 14px;
    }
    body.admin-mode .metric-value {
      font-size: 24px;
    }
    body.admin-mode th,
    body.admin-mode td {
      padding: 8px 10px;
      font-size: 13px;
    }
    .site-footer {
      max-width: var(--content-max);
      margin: 0 auto;
      padding: 0 18px 24px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 700;
      text-align: center;
    }
    @media (prefers-reduced-motion: reduce) {
      .page-head,
      .hero,
      .panel,
      .menu-card,
      .features article,
      .table-wrap {
        animation: none;
      }
      .btn {
        transition: none;
      }
    }
    @media (max-width: 860px) {
      .nav {
        align-items: center;
      }
      .nav-top {
        align-items: center;
        flex-direction: row;
      }
      .brand {
        margin-top: 0;
      }
      .nav-menu-panel {
        width: auto;
        display: flex;
        align-items: center;
      }
      .nav-burger {
        display: inline-flex;
        width: 40px;
        height: 40px;
        padding: 0;
        justify-content: center;
        border-radius: 10px;
        box-shadow: none;
      }
      .nav-links {
        display: none;
      }
      .container { padding: 18px 14px 26px; }
      .hero { padding: 18px; }
      .panel { padding: 14px; }
      .menu-card { padding: 12px; margin: 10px 0; }
      .menu-category-toggle h2 { font-size: 24px; }
      .menu-list li { flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 0; }
      .menu-item-content {
        flex-direction: row;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
      }
      .menu-item-text { gap: 4px; }
      .menu-item-name { font-size: 16px; }
      .menu-item-desc { font-size: 14px; line-height: 1.38; }
      .menu-item-image-wrap {
        width: 148px;
        max-width: 148px;
        align-self: flex-start;
        margin-left: auto;
      }
      .badge-row { gap: 6px; margin-top: 8px; }
      .allergen-trigger { font-size: 13px; }
      .price { margin-top: 4px; }
      .dashboard-head,
      .magic-menu-head {
        flex-direction: column;
        align-items: stretch;
      }
      .dashboard-layout,
      .table-stats,
      .magic-menu-layout,
      .paper-menu-grid.has-two-column-products .paper-product-grid {
        grid-template-columns: 1fr;
      }
      .magic-menu-preview {
        padding: 12px;
      }
      .paper-preview {
        min-height: auto;
        padding: 28px 18px;
      }
      .split-layout,
      .detail-layout { grid-template-columns: 1fr; }
    }
    /* Modal styles */
    dialog {
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 0;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
      max-width: 560px;
      max-height: min(920px, calc(100dvh - 28px));
      width: 90vw;
      background: var(--surface);
    }
    dialog:has(.app-select.is-open),
    dialog:has(.app-select-list.is-open) {
      overflow: visible;
    }
    dialog:has(.app-select.is-open) .modal-body,
    dialog:has(.app-select-list.is-open) .modal-body {
      overflow: visible;
    }
    dialog::backdrop {
      background: rgba(0, 0, 0, 0.4);
      backdrop-filter: blur(4px);
    }
    .modal-header {
      padding: 16px;
      border-bottom: 1px solid var(--border);
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .modal-header h2 {
      margin: 0;
      font-size: 18px;
    }
    .modal-close {
      background: none;
      border: none;
      font-size: 24px;
      cursor: pointer;
      color: var(--muted);
      padding: 0 4px;
    }
    .modal-close:hover {
      color: var(--text);
    }
    .modal-body {
      padding: 16px;
    }
    dialog,
    .modal-body,
    .daily-modal-body,
    .status-modal-body,
    .reservation-table-modal-body,
    .service-qr-modal-body,
    .mobile-nav-modal-body {
      scrollbar-width: thin;
      scrollbar-color: color-mix(in srgb, var(--brand) 34%, transparent) transparent;
    }
    dialog::-webkit-scrollbar,
    .modal-body::-webkit-scrollbar,
    .daily-modal-body::-webkit-scrollbar,
    .status-modal-body::-webkit-scrollbar,
    .reservation-table-modal-body::-webkit-scrollbar,
    .service-qr-modal-body::-webkit-scrollbar,
    .mobile-nav-modal-body::-webkit-scrollbar {
      width: 9px;
      height: 9px;
    }
    dialog::-webkit-scrollbar-track,
    .modal-body::-webkit-scrollbar-track,
    .daily-modal-body::-webkit-scrollbar-track,
    .status-modal-body::-webkit-scrollbar-track,
    .reservation-table-modal-body::-webkit-scrollbar-track,
    .service-qr-modal-body::-webkit-scrollbar-track,
    .mobile-nav-modal-body::-webkit-scrollbar-track {
      background: transparent;
    }
    dialog::-webkit-scrollbar-thumb,
    .modal-body::-webkit-scrollbar-thumb,
    .daily-modal-body::-webkit-scrollbar-thumb,
    .status-modal-body::-webkit-scrollbar-thumb,
    .reservation-table-modal-body::-webkit-scrollbar-thumb,
    .service-qr-modal-body::-webkit-scrollbar-thumb,
    .mobile-nav-modal-body::-webkit-scrollbar-thumb {
      background: color-mix(in srgb, var(--brand) 36%, transparent);
      border: 2px solid transparent;
      border-radius: 999px;
      background-clip: content-box;
    }
    dialog::-webkit-scrollbar-thumb:hover,
    .modal-body::-webkit-scrollbar-thumb:hover,
    .daily-modal-body::-webkit-scrollbar-thumb:hover,
    .status-modal-body::-webkit-scrollbar-thumb:hover,
    .reservation-table-modal-body::-webkit-scrollbar-thumb:hover,
    .service-qr-modal-body::-webkit-scrollbar-thumb:hover,
    .mobile-nav-modal-body::-webkit-scrollbar-thumb:hover {
      background-color: color-mix(in srgb, var(--brand) 54%, transparent);
    }
    dialog::-webkit-scrollbar-corner,
    .modal-body::-webkit-scrollbar-corner,
    .daily-modal-body::-webkit-scrollbar-corner,
    .status-modal-body::-webkit-scrollbar-corner,
    .reservation-table-modal-body::-webkit-scrollbar-corner,
    .service-qr-modal-body::-webkit-scrollbar-corner,
    .mobile-nav-modal-body::-webkit-scrollbar-corner {
      background: transparent;
    }
    .auth-screen {
      min-height: calc(100vh - 112px);
      display: grid;
      place-items: center;
      padding: 28px 0;
    }
    .auth-layout {
      width: min(980px, 100%);
      display: grid;
      grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1fr);
      overflow: hidden;
      border: 1px solid var(--border);
      border-radius: 22px;
      background: var(--surface);
      box-shadow: var(--shadow);
    }
    .auth-brand-panel {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 26px;
      padding: 32px;
      background: var(--brand);
      color: #fff;
      min-height: 520px;
    }
    .auth-brand-panel h1,
    .auth-brand-panel h2 {
      color: #fff;
      margin: 0;
    }
    .auth-brand-logo {
      display: flex;
      align-items: center;
      gap: 12px;
      font-weight: 800;
      letter-spacing: 0.2px;
    }
    .auth-brand-logo img {
      max-height: 96px;
      max-width: 320px;
      object-fit: contain;
      background: transparent;
      border-radius: 0;
      padding: 0;
    }
    .auth-brand-mark {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 42px;
      height: 42px;
      border-radius: 14px;
      background: var(--bg);
      border: 1px solid rgba(255, 255, 255, 0.2);
      color: var(--brand);
      font-size: 22px;
      font-weight: 900;
    }
    .auth-brand-copy {
      display: grid;
      gap: 12px;
      max-width: 360px;
    }
    .auth-brand-copy h1 {
      font-size: clamp(30px, 4vw, 46px);
      line-height: 1.02;
      letter-spacing: 0;
    }
    .auth-brand-copy p,
    .auth-proof-card p {
      margin: 0;
      color: rgba(255, 255, 255, 0.78);
    }
    .auth-proof-grid {
      display: grid;
      gap: 10px;
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .auth-proof-card {
      min-height: 92px;
      padding: 14px;
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.12);
      border: 1px solid rgba(255, 255, 255, 0.16);
    }
    .auth-proof-card strong {
      display: block;
      margin-bottom: 4px;
      font-size: 18px;
      color: #fff;
    }
    .auth-form-panel {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 34px;
      background: color-mix(in srgb, var(--surface) 96%, var(--brand) 4%);
    }
    .auth-card {
      width: 100%;
      max-width: 420px;
      display: grid;
      gap: 22px;
    }
    .auth-card-header {
      display: grid;
      gap: 8px;
      text-align: left;
    }
    .auth-card-kicker {
      margin: 0;
      color: var(--brand);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }
    .auth-card-header h1,
    .auth-card-header h2 {
      margin: 0;
      font-size: 28px;
      line-height: 1.08;
    }
    .auth-card-header p {
      margin: 0;
      color: var(--muted);
    }
    .auth-form {
      display: grid;
      gap: 14px;
    }
    .auth-form .form-field label {
      min-height: 0;
      align-items: center;
    }
    .auth-form input {
      min-height: 48px;
      border-radius: 12px;
      padding: 12px 13px;
      background: var(--surface-strong);
    }
    .password-field {
      position: relative;
    }
    .password-field input {
      padding-right: 48px;
      width: 100%;
    }
    .password-toggle {
      align-items: center;
      background: transparent;
      border: 0;
      border-radius: 10px;
      color: var(--muted);
      cursor: pointer;
      display: inline-flex;
      height: 38px;
      justify-content: center;
      padding: 0;
      position: absolute;
      right: 5px;
      top: 50%;
      transform: translateY(-50%);
      width: 38px;
    }
    .password-toggle:hover,
    .password-toggle:focus-visible {
      background: color-mix(in srgb, var(--brand) 10%, transparent);
      color: var(--brand);
      outline: none;
    }
    .password-toggle .password-icon-eye-off {
      display: none;
    }
    .password-toggle.is-visible .password-icon-eye {
      display: none;
    }
    .password-toggle.is-visible .password-icon-eye-off {
      display: block;
    }
    .auth-form .btn {
      width: 100%;
      min-height: 48px;
      margin-top: 4px;
    }
    .auth-helper {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
      text-align: center;
    }
    .auth-dialog {
      max-width: 460px;
      border-radius: 22px;
    }
    .auth-dialog .modal-header {
      border-bottom: none;
      padding: 18px 18px 0;
    }
    .auth-dialog .modal-body {
      padding: 8px 28px 28px;
    }
    .auth-dialog .auth-brand-logo {
      color: var(--text);
    }
    .auth-dialog .auth-brand-mark {
      background: var(--bg);
      border-color: var(--border);
      color: var(--brand);
    }
    .auth-dialog .auth-card {
      max-width: none;
      gap: 18px;
    }
    .auth-dialog .auth-card-header h2 {
      font-size: 26px;
    }
    @media (max-width: 860px) {
      .auth-screen {
        min-height: auto;
        padding: 12px 0 24px;
      }
      .auth-layout {
        grid-template-columns: 1fr;
        border-radius: 18px;
      }
      .auth-brand-panel {
        min-height: 0;
        padding: 24px;
      }
      .auth-brand-copy h1 {
        font-size: 30px;
      }
      .auth-proof-grid {
        grid-template-columns: 1fr;
      }
      .auth-form-panel {
        padding: 24px;
      }
    }
    .mobile-nav-modal {
      width: min(420px, calc(100vw - 16px));
      max-width: none;
      max-height: calc(100dvh - 16px);
      margin: 8px auto;
      border-radius: 14px;
      padding: 0;
      background: var(--surface);
      border: 1px solid var(--border);
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
    }
    .mobile-nav-modal::backdrop {
      background: rgba(0, 0, 0, 0.36);
      backdrop-filter: blur(3px);
    }
    .mobile-nav-modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 12px 14px;
      border-bottom: 1px solid var(--border);
      background: color-mix(in srgb, var(--brand) 3%, var(--surface));
    }
    .mobile-nav-modal-title {
      margin: 0;
      font-size: 16px;
      font-weight: 700;
    }
    .mobile-nav-modal-close {
      border: 1px solid var(--border);
      background: var(--surface);
      border-radius: 10px;
      width: 34px;
      height: 34px;
      font-size: 20px;
      line-height: 1;
      cursor: pointer;
      color: var(--text);
    }
    .mobile-nav-modal-body {
      padding: 10px;
      overflow-y: auto;
      overflow-x: hidden;
      max-height: calc(100dvh - 90px);
      touch-action: pan-y;
      -webkit-overflow-scrolling: touch;
      overscroll-behavior-y: contain;
      overscroll-behavior-x: none;
    }
    .mobile-nav-links {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .mobile-nav-links > a,
    .mobile-nav-links > .nav-group,
    .mobile-nav-links > button {
      width: 100%;
    }
    .mobile-nav-links a,
    .mobile-nav-links .nav-group-toggle {
      border-radius: 10px;
      border: 1px solid var(--border);
      background: var(--surface-strong);
      padding: 10px 12px;
      font-size: 15px;
      color: var(--text);
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .mobile-nav-links a.active {
      background: var(--surface-active);
      border-color: var(--brand-light);
      color: var(--brand);
      font-weight: 700;
    }
    .mobile-nav-links a.logout-link {
      background: var(--brand);
      color: #fff;
      border-color: var(--brand);
    }
    .mobile-nav-links a.logout-link:hover {
      background: var(--brand-2);
      border-color: var(--brand-2);
    }
    .mobile-nav-links .nav-group.active .nav-group-toggle {
      background: #f2e3d3;
      border-color: #dcc4aa;
      color: #2e2419;
      font-weight: 700;
    }
    .mobile-nav-links .nav-group {
      width: 100%;
    }
    .mobile-nav-links .nav-group-toggle {
      width: 100%;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .mobile-nav-links .nav-group-toggle::after {
      content: '▾';
      font-size: 12px;
      line-height: 1;
    }
    .mobile-nav-links .nav-group.open .nav-group-toggle::after {
      content: '▴';
    }
    .mobile-nav-links .nav-submenu {
      position: static;
      min-width: 0;
      width: 100%;
      margin-top: 6px;
      box-shadow: none;
      display: none;
      border: none;
      border-radius: 10px;
      padding: 0;
      background: transparent;
      overflow-x: hidden;
    }
    .mobile-nav-links .nav-group.open .nav-submenu {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
    .mobile-nav-links .nav-submenu a {
      padding: 9px 10px 9px 18px;
      margin-left: 0;
      border-radius: 8px;
      background: #fbf5ee;
    }
    @media (min-width: 861px) {
      body:not(.embed-mode) {
        display: grid;
        grid-template-columns: 280px minmax(0, 1fr);
        min-height: 100vh;
      }
      body.auth-page {
        display: block;
      }
      /* Collapsed sidebar state */
      body.sidebar-collapsed {
        grid-template-columns: 72px minmax(0, 1fr);
      }
      .nav {
        grid-column: 1;
        grid-row: 1 / span 2;
        position: sticky;
        top: 0;
        min-height: 100dvh;
        width: 280px;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 18px 14px;
        border-bottom: 0;
        border-right: 1px solid var(--border);
        overflow: visible;
      }
      body.sidebar-collapsed .nav {
        width: 72px;
        padding: 12px 8px;
      }
      .nav-top {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        min-height: 100%;
      }
      .nav-menu-panel {
        margin-left: 0;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
      }
      .nav-links {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 6px;
        padding-bottom: 18px;
      }
      .nav-quick-actions {
        display: flex;
      }
      body.sidebar-collapsed .nav-quick-actions {
        display: none;
      }
      /* Hide labels when collapsed */
      body.sidebar-collapsed .link-label {
        opacity: 0;
        width: 0;
        margin: 0;
        display: inline-block;
      }
      /* Center icons and links when collapsed */
      body.sidebar-collapsed .nav-links a,
      body.sidebar-collapsed .nav-group-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 10px;
        border-radius: 10px;
      }
      body.sidebar-collapsed .nav-links a .nav-icon,
      body.sidebar-collapsed .nav-group-toggle .nav-icon {
        margin: 0;
        width: 24px;
        height: 24px;
      }
      body.sidebar-collapsed .nav-group-toggle::after {
        display: none;
      }
      body.sidebar-collapsed .nav-group.open {
        padding: 0;
        background: transparent;
      }
      body.sidebar-collapsed .nav-group.open .nav-submenu {
        display: none;
      }
      /* Center brand/logo */
      .nav .brand {
        justify-content: center;
        margin-bottom: 12px;
        padding: 0 8px;
      }
      body.sidebar-collapsed .brand-logo { max-width: 52px; max-height: 52px; padding: 5px; }
      .nav-links > a,
      .nav-links > .nav-group,
      .nav-links > button {
        width: 100%;
      }
      .nav-group-toggle,
      .nav a {
        width: 100%;
        justify-content: flex-start;
        text-align: left;
      }
      .nav-group.open {
        padding: 8px;
        border-radius: 12px;
        background: color-mix(in srgb, var(--surface) 92%, var(--brand) 8%);
      }
      .nav-group.open .nav-group-toggle {
        min-height: 40px;
        padding: 8px 8px 10px;
        border: 0;
        border-bottom: 1px solid color-mix(in srgb, var(--brand) 14%, transparent);
        border-radius: 0;
        background: transparent;
        color: var(--brand);
        font-weight: 800;
      }
      .nav-group.open .nav-group-toggle:hover,
      .nav-group.open .nav-group-toggle:focus-visible {
        background: transparent;
      }
      .nav-submenu {
        position: static;
        top: auto;
        right: auto;
        width: 100%;
        min-width: 0;
        margin-top: 8px;
        box-shadow: none;
        border: 0;
        background: transparent;
        padding: 0;
      }
      .nav-group.open .nav-submenu {
        display: grid;
      }
      .nav-submenu a {
        padding-left: 14px;
      }
      .nav-links > .logout-link {
        margin-top: 8px;
        margin-bottom: 12px;
      }
      body.sidebar-collapsed .nav-links > .logout-link {
        margin-top: 8px;
        margin-bottom: 0;
      }
      main.container {
        grid-column: 2;
        max-width: none;
        width: min(var(--content-max), calc(100vw - 280px));
        margin: 0 auto;
        padding: 26px 28px 34px;
        min-width: 0;
      }
    body.admin-mode main.container:has(.magic-menu-shell) {
      width: min(100%, calc(100vw - 280px));
      overflow-x: clip;
    }
      .site-footer {
        grid-column: 2;
        max-width: none;
          width: min(var(--content-max), calc(100vw - 280px));
        margin: 0 auto;
        padding: 0 28px 24px;
      }
      body.sidebar-collapsed main.container,
      body.sidebar-collapsed .site-footer {
        width: min(var(--content-max), calc(100vw - 72px));
      }
    body.sidebar-collapsed main.container:has(.magic-menu-shell) {
      width: min(100%, calc(100vw - 72px));
    }
      body.auth-page main.container,
      body.auth-page .site-footer {
        width: min(var(--content-max), 100%);
      }
      .mobile-nav-modal {
        display: none;
      }
    }
