/*
  Florentini v24 — phone and tablet application shell.
  The desktop command center remains unchanged above 1100px.
*/

.mobile-topbar-button-v24,
.mobile-bottom-nav-v24,
.mobile-login-switch-v24 {
  display: none;
}

.cc4-metric-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  overflow: visible;
}

.cc4-metric-tab {
  grid-column: span 2;
  width: 100%;
  min-width: 0;
  min-height: 36px;
  display: grid;
  place-items: center;
  padding: 7px 8px;
  text-align: center;
  white-space: normal;
  line-height: 1.25;
}

.cc4-metric-tab:nth-child(4),
.cc4-metric-tab:nth-child(5) {
  grid-column: span 3;
}

.menu-card[role="button"],
.waiter-card[role="button"],
.tech-card-tile[role="button"],
.banquet-dish-card {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.menu-card[role="button"]:focus-visible,
.waiter-card[role="button"]:focus-visible,
.tech-card-tile[role="button"]:focus-visible,
.banquet-dish-card:focus-visible {
  outline: 2px solid var(--florentini-green);
  outline-offset: 3px;
}

.menu-studio-canvas-shell-v27 {
  position: relative;
  width: 720px;
  height: 1018px;
  flex: 0 0 auto;
}

.app.app-topbar-hidden-v21 > .v5-topbar {
  display: none;
}

.mobile-drawer-layer-v24 {
  position: fixed;
  z-index: 1600;
  inset: 0;
  display: flex;
  align-items: stretch;
  background: rgba(24, 31, 26, 0.52);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  animation: mobile-fade-v24 180ms ease both;
}

.mobile-drawer-v24 {
  width: min(520px, calc(100vw - 24px));
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 0 30px 30px 0;
  background:
    radial-gradient(circle at 82% 0, rgba(217, 230, 182, 0.55), transparent 28%),
    linear-gradient(180deg, rgba(253, 252, 247, 0.99), rgba(244, 247, 238, 0.99));
  box-shadow: 28px 0 90px rgba(27, 36, 29, 0.28);
  animation: mobile-drawer-in-v24 280ms var(--ease-expo) both;
}

.mobile-drawer-head-v24 {
  min-height: 78px;
  display: grid;
  grid-template-columns: 44px 39px minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: center;
  padding: max(12px, env(safe-area-inset-top)) 16px 10px;
  border-bottom: 1px solid rgba(97, 124, 84, 0.12);
}

.mobile-drawer-close-v24,
.mobile-drawer-search-v24 {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(97, 124, 84, 0.13);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--graphite);
  cursor: pointer;
}

.mobile-drawer-close-v24 {
  font: 300 30px/1 var(--font-sans);
}

.mobile-drawer-search-v24 svg {
  width: 19px;
  height: 19px;
}

.mobile-drawer-monogram-v24 {
  color: var(--florentini-green-deep);
  font: 400 44px/.7 var(--font-script);
}

.mobile-drawer-head-v24 > span:nth-child(3) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.mobile-drawer-head-v24 b {
  color: var(--charcoal);
  font: 500 18px/1 var(--font-serif);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.mobile-drawer-head-v24 small {
  color: var(--gray);
  font: 8px/1.2 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.mobile-drawer-profile-v24 {
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  margin: 14px 16px 4px;
  padding: 12px;
  border: 1px solid rgba(97, 124, 84, 0.13);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.69);
  box-shadow: 0 12px 30px rgba(48, 66, 47, 0.07);
}

.mobile-drawer-avatar-v24 {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  font: 700 13px var(--font-mono);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .32);
}

.mobile-drawer-profile-v24 > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.mobile-drawer-profile-v24 b {
  overflow: hidden;
  color: var(--charcoal);
  font: 650 13px var(--font-sans);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-drawer-profile-v24 small {
  overflow: hidden;
  color: var(--gray);
  font: 8px var(--font-mono);
  letter-spacing: .08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.mobile-drawer-profile-v24 button {
  min-height: 36px;
  padding: 0 11px;
  border: 0;
  border-radius: 11px;
  background: var(--florentini-green-mist);
  color: var(--florentini-green-deep);
  font: 650 9px var(--font-sans);
}

.mobile-drawer-scroll-v24 {
  min-height: 0;
  flex: 1;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 8px 16px max(28px, env(safe-area-inset-bottom));
  scrollbar-width: none;
}

.mobile-drawer-scroll-v24::-webkit-scrollbar {
  display: none;
}

.mobile-drawer-group-v24 {
  padding: 12px 0 0;
}

.mobile-drawer-group-v24 h2 {
  margin: 0 0 6px;
  padding: 0 9px;
  color: var(--gray);
  font: 700 9px var(--font-mono);
  letter-spacing: .15em;
  text-transform: uppercase;
}

.mobile-drawer-group-v24 > div {
  overflow: hidden;
  border: 1px solid rgba(97, 124, 84, .11);
  border-radius: 18px;
  background: rgba(255, 255, 255, .62);
}

.mobile-drawer-group-v24 button {
  width: 100%;
  min-width: 0;
  min-height: 60px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  border: 0;
  border-bottom: 1px solid rgba(97, 124, 84, .09);
  background: transparent;
  color: var(--charcoal);
  text-align: left;
  cursor: pointer;
}

.mobile-drawer-group-v24 button:last-child {
  border-bottom: 0;
}

.mobile-drawer-group-v24 button.active {
  background: linear-gradient(90deg, var(--florentini-green-mist), rgba(217, 230, 182, .08));
  color: var(--florentini-green-deep);
}

.mobile-drawer-item-icon-v24 {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(122, 148, 102, .08);
  color: var(--florentini-green-deep);
}

.mobile-drawer-item-icon-v24 svg {
  width: 18px;
  height: 18px;
}

.mobile-drawer-group-v24 button > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.mobile-drawer-group-v24 button b {
  overflow: hidden;
  font: 650 12px var(--font-sans);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-drawer-group-v24 button small {
  overflow: hidden;
  color: var(--gray);
  font: 8px var(--font-mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-drawer-chevron-v24 {
  color: var(--gray);
  font: 300 24px/1 var(--font-sans);
}

.mobile-drawer-foot-v24 {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  padding: 16px 12px;
  border-top: 1px solid rgba(97, 124, 84, .12);
}

.mobile-drawer-foot-v24 > span:last-child {
  display: grid;
  gap: 3px;
}

.mobile-drawer-foot-v24 b {
  color: var(--charcoal);
  font: 500 12px var(--font-serif);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mobile-drawer-foot-v24 small {
  color: var(--gray);
  font: 8px var(--font-mono);
}

.mobile-drawer-foot-mark-v24 {
  color: var(--florentini-green);
  font: 40px/.7 var(--font-script);
}

body.florentini-mobile-menu-open {
  overflow: hidden;
}

body[data-theme="night"] .mobile-drawer-v24 {
  background:
    radial-gradient(circle at 84% 0, rgba(127, 160, 105, .18), transparent 30%),
    linear-gradient(180deg, rgba(20, 26, 25, .995), rgba(16, 22, 22, .995));
  box-shadow: 28px 0 90px rgba(0, 0, 0, .46);
}

body[data-theme="night"] .mobile-drawer-head-v24,
body[data-theme="night"] .mobile-drawer-foot-v24 {
  border-color: rgba(220, 235, 211, .10);
}

body[data-theme="night"] .mobile-drawer-close-v24,
body[data-theme="night"] .mobile-drawer-search-v24,
body[data-theme="night"] .mobile-drawer-profile-v24,
body[data-theme="night"] .mobile-drawer-group-v24 > div {
  border-color: rgba(220, 235, 211, .10);
  background: rgba(255, 255, 255, .045);
}

body[data-theme="night"] .mobile-drawer-group-v24 button {
  border-bottom-color: rgba(220, 235, 211, .075);
}

body[data-theme="night"] .mobile-drawer-group-v24 button.active {
  background: linear-gradient(90deg, rgba(112, 145, 92, .27), rgba(112, 145, 92, .06));
}

body[data-theme="night"] .mobile-drawer-item-icon-v24 {
  background: rgba(129, 162, 106, .12);
}

@keyframes mobile-fade-v24 {
  from { opacity: 0; }
}

@keyframes mobile-drawer-in-v24 {
  from { transform: translateX(-30px); opacity: .65; }
}

@media (max-width: 1100px) {
  :root {
    --mobile-top-height-v24: 72px;
    --mobile-nav-height-v24: 78px;
  }

  html,
  body,
  #root {
    width: 100%;
    height: 100%;
    min-width: 0;
    overflow: hidden;
  }

  body {
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior: none;
  }

  button,
  [role="button"],
  input,
  select,
  textarea {
    touch-action: manipulation;
  }

  .app,
  .app.app-topbar-hidden-v21 {
    width: 100%;
    height: 100dvh;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: var(--mobile-top-height-v24) minmax(0, 1fr);
    grid-template-areas:
      "top"
      "main";
    overflow: hidden;
  }

  .app > .sidebar {
    display: none;
  }

  .app > .v5-topbar,
  .app.app-topbar-hidden-v21 > .v5-topbar {
    grid-area: top;
    min-width: 0;
    min-height: 56px;
    display: flex;
    margin: 8px 10px 6px;
    padding: 0 8px;
    gap: 7px;
    border-radius: 18px;
    background: rgba(var(--surface-rgb), .89);
    -webkit-backdrop-filter: blur(22px) saturate(1.18);
    backdrop-filter: blur(22px) saturate(1.18);
    box-shadow: 0 10px 30px rgba(43, 56, 42, .10);
  }

  .mobile-topbar-button-v24 {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--glass-border-soft);
    border-radius: 14px;
    background: rgba(var(--surface-rgb), .56);
    color: var(--graphite);
    cursor: pointer;
  }

  .mobile-menu-trigger-v24 {
    grid-template-columns: repeat(2, 5px);
    grid-template-rows: repeat(2, 5px);
    place-content: center;
    gap: 4px;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
  }

  .mobile-menu-trigger-v24 span {
    width: 5px;
    height: 5px;
    border: 1.5px solid currentColor;
    border-radius: 2px;
  }

  .mobile-search-trigger-v24 {
    margin-left: auto;
  }

  .mobile-search-trigger-v24 svg {
    width: 18px;
    height: 18px;
  }

  .v5-topbar-brand {
    min-width: 0;
    flex: 0 1 auto;
    display: flex;
    gap: 8px;
    padding: 0;
    border: 0;
  }

  .v5-topbar-brand .glyph {
    margin: 0;
    font-size: 35px;
  }

  .v5-topbar-brand .word {
    max-width: 150px;
    overflow: hidden;
    font-size: 13px;
    letter-spacing: .16em;
    text-overflow: ellipsis;
  }

  .v5-topbar-brand .sub,
  .v5-pill-tabs,
  .v5-search {
    display: none;
  }

  .v5-notice-wrap {
    flex: 0 0 42px;
  }

  .v5-bell {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 14px;
  }

  .v5-topbar > div:last-child {
    flex: 0 0 42px;
  }

  .user-chip {
    width: 42px;
    height: 42px;
    display: grid;
    grid-template-columns: 34px;
    padding: 3px;
    border-radius: 14px;
  }

  .user-chip .avatar {
    width: 34px;
    height: 34px;
  }

  .user-chip-copy,
  .user-chip-chevron {
    display: none;
  }

  .v5-notice-panel {
    position: fixed;
    z-index: 1700;
    top: calc(var(--mobile-top-height-v24) + env(safe-area-inset-top));
    right: 10px;
    left: 10px;
    width: auto;
    max-height: min(620px, calc(100dvh - var(--mobile-top-height-v24) - var(--mobile-nav-height-v24) - 16px));
    padding: 9px;
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(32, 42, 34, .25);
  }

  .v4-topmenu {
    position: fixed !important;
    z-index: 1700 !important;
    top: calc(var(--mobile-top-height-v24) + env(safe-area-inset-top)) !important;
    right: 10px !important;
    left: 10px !important;
    width: auto !important;
    max-width: none !important;
    padding: 10px !important;
    border-radius: 22px !important;
    box-shadow: 0 24px 70px rgba(32, 42, 34, .25) !important;
  }

  .v4-topmenu-item {
    min-height: 48px;
    border-radius: 13px;
  }

  .main,
  .app.app-topbar-hidden-v21 > .main {
    grid-area: main;
    min-width: 0;
    min-height: 0;
    width: 100%;
    margin: 0;
    padding: 18px 16px calc(var(--mobile-nav-height-v24) + 22px + env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scroll-padding-bottom: calc(var(--mobile-nav-height-v24) + 24px);
  }

  .main > .page-enter,
  .main > [class*="-page"],
  .main > [class*="-center"],
  .main > [class*="-flow"] {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .mobile-bottom-nav-v24 {
    position: fixed;
    z-index: 800;
    right: 10px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 10px;
    min-height: 68px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    padding: 6px;
    border: 1px solid rgba(97, 124, 84, .16);
    border-radius: 23px;
    background: rgba(251, 251, 246, .91);
    -webkit-backdrop-filter: blur(24px) saturate(1.3);
    backdrop-filter: blur(24px) saturate(1.3);
    box-shadow: 0 16px 50px rgba(38, 50, 38, .18);
  }

  .mobile-bottom-nav-v24 button {
    min-width: 0;
    min-height: 56px;
    display: grid;
    grid-template-rows: 27px auto;
    gap: 3px;
    place-items: center;
    padding: 5px 2px 4px;
    border: 0;
    border-radius: 17px;
    background: transparent;
    color: #8c968d;
    font: 650 8px/1 var(--font-sans);
    cursor: pointer;
    transition: color 160ms ease, background 160ms ease, transform 160ms ease;
  }

  .mobile-bottom-nav-v24 button.active {
    background: linear-gradient(180deg, rgba(217, 230, 182, .56), rgba(233, 241, 222, .84));
    color: var(--florentini-green-deep);
    box-shadow: inset 0 0 0 1px rgba(122, 148, 102, .12);
  }

  .mobile-bottom-nav-v24 button:active {
    transform: scale(.96);
  }

  .mobile-bottom-icon-v24 {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
  }

  .mobile-bottom-icon-v24 svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.8;
  }

  .page-head {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 22px;
    align-items: end;
    margin: 0 0 18px;
    padding: 0 2px;
  }

  .page-head > div:first-child {
    min-width: 0;
  }

  .page-head h1 {
    max-width: 100%;
    padding: 0;
    font-size: clamp(31px, 5.8vw, 44px);
    line-height: 1.02;
    text-wrap: balance;
  }

  .page-head .crumb {
    overflow: hidden;
    margin-bottom: 7px;
    font-size: 9px;
    letter-spacing: .15em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .page-head .meta {
    max-width: 310px;
    line-height: 1.45;
  }

  .glass,
  .glass-card,
  .v5-widget,
  .real-panel {
    max-width: 100%;
  }

  .v5-hero {
    padding-inline: 2px;
  }

  .v5-hero h1 {
    font-size: clamp(34px, 7vw, 52px);
    text-wrap: balance;
  }

  .v5-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .v5-kpi {
    min-height: 128px;
    padding: 16px;
    border-radius: 19px;
  }

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

  .v5-widget.span-3,
  .v5-widget.span-4,
  .v5-widget.span-6,
  .v5-widget.span-8 {
    grid-column: span 6;
  }

  .v5-widget.span-12 {
    grid-column: span 12;
  }

  .v5-widget,
  .real-panel {
    border-radius: 20px;
  }

  .v5-loc-grid,
  .locs-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .real-grid-two,
  .settings-grid,
  .feedback-grid,
  .uniform-control-page,
  .tg-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .btn,
  .v5-btn-lime,
  .v5-btn-ink {
    min-height: 42px;
  }

  .chip,
  .v5-pill,
  [class*="-tabs"] button,
  [class*="-filters"] button {
    min-height: 38px;
  }

  [class*="-tabs"],
  [class*="-chips"],
  [class*="-filters"] {
    max-width: 100%;
  }

  .menu-chips-v2,
  .tech-chips,
  .events-filters,
  .uniform-filter-chips,
  .schedule-ledger-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .menu-chips-v2::-webkit-scrollbar,
  .tech-chips::-webkit-scrollbar,
  .events-filters::-webkit-scrollbar,
  .uniform-filter-chips::-webkit-scrollbar,
  .schedule-ledger-tabs::-webkit-scrollbar {
    display: none;
  }

  [class*="-table-wrap"],
  .table-wrap,
  .compare-table-wrap,
  .schedule-ledger-paper,
  .cmp-product-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  [class*="-table-wrap"] table,
  .table-wrap table,
  .compare-table-wrap table,
  .schedule-ledger-paper table,
  .cmp-product-table-wrap table {
    min-width: 720px;
  }

  .menu-editor-overlay,
  .menu-modal-overlay,
  .uniform-product-modal-overlay,
  .event-modal-layer,
  .settings-modal-layer-v15,
  .academy-modal-layer-v20,
  .reward-receipt-modal-v10,
  .pf-modal-layer-v22 {
    padding: 10px;
  }

  .menu-editor-modal,
  .menu-modal,
  .tech-modal,
  .uniform-product-modal,
  .event-modal,
  .settings-picker-modal-v15,
  .settings-access-modal-v15,
  .pf-modal-v22 {
    width: 100%;
    max-width: 100%;
    max-height: calc(100dvh - 20px);
    border-radius: 22px;
  }

  .menu-editor-body,
  .waiter-editor-modal .menu-editor-fields {
    max-height: calc(100dvh - 190px);
  }

  .settings-section-row {
    grid-template-columns: 56px 34px minmax(0, 1fr);
  }

  .settings-row-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .tech-list,
  .banquet-summary {
    position: static;
    max-height: none;
  }

  .tech-list-items {
    max-height: 420px;
  }

  .tech-card-body,
  .tech-card-body section.wide {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .tech-card-photo {
    max-height: 520px;
  }

  .menu-builder-launch {
    grid-template-columns: 1fr;
  }

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

  .menu-studio-modal {
    width: 100vw;
    height: 100dvh;
    overflow: hidden;
  }

  .menu-studio-header {
    min-height: 72px;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 14px;
  }

  .menu-studio-header-actions {
    flex: 0 0 auto;
  }

  .menu-studio-body {
    min-width: 0;
    grid-template-columns: 220px minmax(680px, 1fr) 260px;
    overflow: auto;
  }

  .menu-studio-center {
    min-width: 680px;
  }

  .uniform-product-modal-media {
    min-height: 320px;
  }

  .academy-player-v20 {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .chat-page-v11 {
    min-height: 0;
  }

  .chat-shell-v11,
  .main[data-screen-label="v5-chats"] .chat-shell-v11 {
    max-width: 100%;
    height: 100% !important;
    min-height: 480px;
  }

  .main[data-screen-label="v5-chats"] {
    padding: 0 !important;
  }

  .main[data-screen-label="v5-chats"] > .chat-page-v11 {
    inset: 0 0 calc(var(--mobile-nav-height-v24) + 14px + env(safe-area-inset-bottom)) !important;
    height: auto !important;
  }

  .people-flow-v22 {
    padding-right: 0;
    padding-left: 0;
  }

  .florentini-toast-stack {
    right: 12px;
    bottom: calc(var(--mobile-nav-height-v24) + 20px + env(safe-area-inset-bottom));
    left: 12px;
  }

  .florentini-toast {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 700px) {
  :root {
    --mobile-top-height-v24: 68px;
    --mobile-nav-height-v24: 76px;
  }

  .app > .v5-topbar,
  .app.app-topbar-hidden-v21 > .v5-topbar {
    min-height: 54px;
    margin: max(7px, env(safe-area-inset-top)) 8px 5px;
    padding: 0 6px;
    gap: 5px;
    border-radius: 17px;
  }

  .mobile-topbar-button-v24,
  .v5-bell,
  .user-chip {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .v5-notice-wrap,
  .v5-topbar > div:last-child {
    flex-basis: 40px;
  }

  .user-chip .avatar {
    width: 32px;
    height: 32px;
  }

  .v5-topbar-brand {
    gap: 6px;
  }

  .v5-topbar-brand .glyph {
    font-size: 32px;
  }

  .v5-topbar-brand .word {
    max-width: 104px;
    font-size: 11px;
    letter-spacing: .12em;
  }

  .main,
  .app.app-topbar-hidden-v21 > .main {
    padding: 13px 11px calc(var(--mobile-nav-height-v24) + 20px + env(safe-area-inset-bottom));
  }

  .page-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-bottom: 15px;
  }

  .page-head h1 {
    font-size: clamp(29px, 10vw, 39px);
  }

  .page-head .meta {
    max-width: none;
    text-align: left;
  }

  .page-head .meta strong {
    margin-top: 2px;
  }

  .v5-hero h1 {
    font-size: clamp(34px, 11.6vw, 45px);
  }

  .v5-hero .meta {
    font-size: 10px;
    line-height: 1.6;
  }

  .dashboard-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .dashboard-quick-actions .btn,
  .dashboard-quick-actions button {
    width: 100%;
    justify-content: center;
  }

  .v5-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .v5-kpi {
    min-height: 122px;
    padding: 14px 12px;
  }

  .v5-kpi .val {
    font-size: clamp(26px, 9vw, 38px);
  }

  .v5-widget-grid {
    gap: 10px;
  }

  .v5-widget.span-3,
  .v5-widget.span-4,
  .v5-widget.span-6,
  .v5-widget.span-8,
  .v5-widget.span-12 {
    grid-column: span 12;
  }

  .v5-widget {
    border-radius: 19px;
  }

  .v5-cal-wrap,
  .v5-cal-wrap.calendar-only {
    grid-template-columns: minmax(0, 1fr);
  }

  .v5-cal-d {
    min-width: 0;
  }

  .v5-widget-head,
  .real-panel-head,
  .card-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .v5-widget-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .v5-loc-grid,
  .locs-page-grid,
  .cc4-grid,
  .bento,
  .real-kpis,
  .uni-catalog,
  .menu-builder-projects,
  .menu-builder-launch-actions,
  .settings-page-header-grid-v21,
  .academy-employee-grid-v20 {
    grid-template-columns: minmax(0, 1fr);
  }

  .loc-card-head,
  .event-card-head,
  .uniform-card-head {
    align-items: flex-start;
  }

  .mobile-bottom-nav-v24 {
    right: 8px;
    bottom: max(6px, env(safe-area-inset-bottom));
    left: 8px;
    min-height: 66px;
    padding: 5px;
    border-radius: 21px;
  }

  .mobile-bottom-nav-v24 button {
    min-height: 55px;
    grid-template-rows: 26px auto;
    border-radius: 16px;
    font-size: 7.5px;
  }

  .mobile-bottom-icon-v24 svg {
    width: 19px;
    height: 19px;
  }

  .mobile-drawer-v24 {
    width: calc(100vw - 16px);
    border-radius: 0 25px 25px 0;
  }

  .main[data-screen-label="v5-chats"] .chat-shell-v11,
  .main[data-screen-label="v5-chats"] .chat-shell-v11.chat-sidebar-compact,
  .main[data-screen-label="v5-chats"] .chat-shell-v11.chat-sidebar-balanced,
  .main[data-screen-label="v5-chats"] .chat-shell-v11.chat-sidebar-wide {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .main[data-screen-label="v5-chats"] .chat-shell-v11:not(.thread-open) .chat-list-v11 {
    display: grid !important;
  }

  .main[data-screen-label="v5-chats"] .chat-shell-v11:not(.thread-open) .chat-thread-v11,
  .main[data-screen-label="v5-chats"] .chat-shell-v11:not(.thread-open) .chat-thread-empty-v11 {
    display: none !important;
  }

  .main[data-screen-label="v5-chats"] .chat-shell-v11.thread-open .chat-list-v11 {
    display: none !important;
  }

  .main[data-screen-label="v5-chats"] .chat-shell-v11.thread-open .chat-thread-v11 {
    display: flex !important;
  }

  .main[data-screen-label="v5-chats"] .chat-shell-v11.thread-open .chat-thread-empty-v11 {
    display: grid !important;
  }

  .main[data-screen-label="v5-chats"] .chat-mobile-back-v11 {
    display: grid;
  }

  .mobile-drawer-head-v24 {
    grid-template-columns: 42px 34px minmax(0, 1fr) 42px;
    min-height: 70px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .mobile-drawer-close-v24,
  .mobile-drawer-search-v24 {
    width: 42px;
    height: 42px;
  }

  .mobile-drawer-head-v24 b {
    font-size: 15px;
  }

  .mobile-drawer-profile-v24 {
    grid-template-columns: 44px minmax(0, 1fr);
    margin-inline: 12px;
  }

  .mobile-drawer-avatar-v24 {
    width: 44px;
    height: 44px;
  }

  .mobile-drawer-profile-v24 button {
    display: none;
  }

  .mobile-drawer-scroll-v24 {
    padding-right: 12px;
    padding-left: 12px;
  }

  .command-palette-backdrop {
    align-items: flex-start;
    padding: 0;
  }

  .command-palette {
    width: 100vw;
    max-width: none;
    max-height: min(88dvh, 760px);
    margin: 0;
    border-radius: 0 0 26px 26px;
    background: rgba(251, 251, 247, .98);
    box-shadow: 0 24px 70px rgba(29, 39, 31, .22);
  }

  .command-palette-head {
    position: sticky;
    z-index: 2;
    top: 0;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    padding: max(13px, env(safe-area-inset-top)) 14px 13px;
    background: inherit;
  }

  .command-palette-head > button {
    grid-column: auto;
    min-height: 42px;
    padding-inline: 10px;
  }

  .command-palette-list {
    padding: 7px 10px max(20px, env(safe-area-inset-bottom));
  }

  .command-palette-list button {
    min-height: 58px;
    border-radius: 14px;
  }

  .v5-notice-panel {
    top: calc(var(--mobile-top-height-v24) + env(safe-area-inset-top));
    right: 8px;
    left: 8px;
  }

  .v5-notice-head {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .v5-notice-head > button {
    grid-column: 2;
    justify-self: start;
  }

  .v5-notice-row {
    grid-template-columns: 34px minmax(0, 1fr) 16px;
  }

  .v5-notice-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .v4-login-stage {
    min-height: 100dvh;
    display: block;
    padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
  }

  .v4-login-stage::-webkit-scrollbar {
    display: none;
  }

  .v4-login-card {
    width: 100%;
    min-height: calc(100dvh - 20px);
    border-radius: 26px;
  }

  .v4-login-right {
    display: block;
    padding: 22px 16px;
  }

  .v4-login-title {
    font-size: clamp(31px, 10vw, 43px);
    line-height: 1;
  }

  .v5-login-mode-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .v5-login-mode-tabs .v5-pill {
    min-width: 0;
    white-space: normal;
  }

  .v5-login-filters {
    gap: 9px;
  }

  .v5-login-search {
    min-height: 48px;
  }

  .v5-login-people .v5-login-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 44px;
    gap: 7px;
    max-height: none;
    overflow: visible;
    padding: 0;
  }

  .v5-login-people .v5-login-groups .chip {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    justify-content: center;
    padding: 0 8px;
    border-radius: 14px;
    font-size: 11px;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .v5-login-people .v5-login-groups .chip:nth-child(2) {
    grid-column: span 2;
  }

  .v5-login-people .v5-login-groups .chip.active {
    background:
      linear-gradient(135deg, rgba(144, 168, 131, .96), rgba(103, 132, 89, .96));
    border-color: rgba(91, 119, 80, .72);
    box-shadow: 0 10px 24px rgba(80, 106, 70, .18);
  }

  .v4-users-grid {
    height: min(440px, 51dvh);
    max-height: none;
  }

  .v4-pin-wrap {
    width: 100%;
    max-width: none;
  }

  .v5-login-pin-layout.mobile-step-picker .v4-pin-wrap,
  .v5-login-pin-layout.mobile-step-pin .v5-login-people {
    display: none;
  }

  .v5-login-pin-layout {
    height: auto;
    min-height: 0;
    display: block;
    margin-top: 14px;
  }

  .v5-login-people {
    height: auto;
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto;
  }

  .v5-login-browse {
    min-height: 0;
    display: block;
  }

  .v5-login-results {
    min-height: 0;
    margin-top: 10px;
  }

  .mobile-login-switch-v24 {
    width: 100%;
    min-height: 50px;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    margin-bottom: 10px;
    padding: 7px 10px;
    border: 1px solid var(--glass-border-soft);
    border-radius: 14px;
    background: rgba(var(--surface-rgb), .52);
    color: var(--graphite);
    text-align: left;
  }

  .mobile-login-switch-v24 > span:first-child {
    font-size: 22px;
  }

  .mobile-login-switch-v24 > span:last-child {
    display: grid;
    gap: 2px;
  }

  .mobile-login-switch-v24 small {
    color: var(--gray);
    font: 8px var(--font-mono);
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  .mobile-login-switch-v24 b {
    color: var(--charcoal);
    font: 650 11px var(--font-sans);
  }

  .v5-login-pin-layout.mobile-step-pin {
    margin-top: 14px;
  }

  .v5-login-pin-layout.mobile-step-pin .v5-pin-person {
    margin-bottom: 10px;
  }

  .v4-key {
    min-height: 54px;
  }

  .menu-toolbar-v2,
  .menu-role-toolbar,
  .tech-catalog-toolbar,
  .uniform-filterbar,
  .events-toolbar,
  .compare-toolbar,
  .schedule-toolbar-redesign,
  .schedule-doc-toolbar,
  .hq-toolbar,
  .wf-filters-v18,
  .wf-journal-v18 > header {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .menu-add-v2,
  .tech-catalog-toolbar .btn,
  .events-toolbar .btn,
  .schedule-toolbar-actions .btn {
    width: 100%;
    justify-self: stretch;
    justify-content: center;
  }

  .tech-card-paper {
    padding: 16px;
  }

  .tech-card-head {
    grid-template-columns: 1fr;
  }

  .tech-card-head h2 {
    font-size: clamp(32px, 11vw, 46px);
  }

  .tech-card-photo {
    max-height: none;
  }

  .tech-card-body section {
    padding: 15px;
  }

  .menu-studio-header {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    overflow: visible;
    padding: 10px;
  }

  .menu-studio-header > div:first-child {
    min-width: 0;
  }

  .menu-studio-header > div:first-child span {
    display: none;
  }

  .menu-studio-header > div:first-child b {
    overflow: hidden;
    font-size: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .menu-studio-header-actions {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    overflow: visible;
  }

  .menu-studio-header-actions::-webkit-scrollbar {
    display: none;
  }

  .menu-studio-header-actions .btn,
  .menu-studio-header-actions .v5-btn-lime {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    justify-content: center;
    padding-inline: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .menu-studio-modal {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .menu-studio-body {
    height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 190px minmax(0, 1fr);
    overflow: hidden;
  }

  .menu-studio-side:not(.right) {
    width: 100%;
    min-width: 0;
    height: 190px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 9px;
    scrollbar-width: none;
  }

  .menu-studio-side:not(.right)::-webkit-scrollbar {
    display: none;
  }

  .menu-studio-side:not(.right) .menu-studio-panel {
    min-width: calc(100vw - 18px);
    height: 172px;
    flex: 0 0 calc(100vw - 18px);
    overflow: auto;
  }

  .menu-studio-side:not(.right) .menu-studio-pages {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
  }

  .menu-studio-side:not(.right) .menu-studio-page-row {
    min-width: 0;
    width: auto;
  }

  .menu-studio-side:not(.right) .menu-studio-pages button {
    min-width: 0;
    min-height: 50px;
    grid-template-columns: 23px minmax(0, 1fr);
    padding: 6px;
  }

  .menu-studio-side:not(.right) .menu-studio-pages button span {
    width: 23px;
    height: 23px;
  }

  .menu-studio-side:not(.right) .menu-studio-pages button b {
    overflow: hidden;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .menu-studio-side:not(.right) .menu-studio-pages button small {
    display: none;
  }

  .menu-studio-side:not(.right) .menu-studio-page-row > .delete-hover-btn {
    display: none;
  }

  .menu-studio-side:not(.right) .menu-studio-row {
    margin-top: 7px;
  }

  .menu-studio-side:not(.right) .menu-studio-row .btn {
    min-height: 34px;
    padding-inline: 10px;
  }

  .menu-studio-center {
    width: 100%;
    min-width: 0;
    grid-row: 2;
    overflow: auto;
    grid-template-rows: 44px minmax(0, 1fr);
    padding: 0 0 calc(37dvh + 20px);
    overscroll-behavior: contain;
    scrollbar-width: none;
  }

  .menu-studio-center::-webkit-scrollbar {
    display: none;
  }

  .menu-studio-center > * {
    min-width: 0;
  }

  .menu-studio-ruler {
    min-width: 0;
    justify-content: stretch;
    padding: 6px 10px;
  }

  .menu-studio-ruler > span {
    display: none;
  }

  .menu-studio-ruler-tools {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .menu-studio-ruler-tools button,
  .menu-studio-ruler-tools select {
    width: 100%;
    min-width: 0;
    padding-inline: 4px;
    text-align: center;
  }

  .menu-studio-stage {
    overflow-x: hidden;
    padding: 18px 16px 72px;
  }

  .menu-studio-document-stack {
    width: 100%;
    min-width: 0;
    justify-items: center;
  }

  .menu-studio-page-label {
    width: 100%;
  }

  .menu-studio-page-wrap {
    min-width: 0;
  }

  .menu-studio-side.right {
    position: fixed;
    z-index: 30;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    height: 36dvh;
    max-height: 330px;
    overflow: auto;
    padding: 22px 10px 10px;
    border: 1px solid var(--glass-border-soft);
    border-radius: 24px 24px 0 0;
    background: color-mix(in srgb, var(--surface) 96%, var(--florentini-green-mist));
    box-shadow: 0 -18px 55px rgba(22, 31, 23, .28);
  }

  .menu-studio-side.right::before {
    content: "";
    position: absolute;
    z-index: 31;
    top: 9px;
    left: 50%;
    width: 46px;
    height: 4px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--gray) 38%, transparent);
    transform: translateX(-50%);
    pointer-events: none;
  }

  .menu-studio-side.right .menu-studio-panel {
    min-width: 0;
    padding: 13px;
  }

  .menu-studio-side.right .menu-builder-field,
  .menu-studio-side.right input,
  .menu-studio-side.right select,
  .menu-studio-side.right textarea {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .banquet-menu-page .menu-chips-v2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    overflow: visible;
    padding: 0;
  }

  .banquet-menu-page .menu-chips-v2 .chip {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    justify-content: center;
    padding: 7px 9px;
    text-align: center;
    white-space: normal;
    line-height: 1.2;
  }

  .waiter-guide-page .menu-role-toolbar.banquet-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "intro"
      "search"
      "action";
    gap: 11px;
    align-items: stretch;
    padding: 15px;
    border-radius: 22px;
  }

  .waiter-guide-page .menu-role-toolbar.banquet-toolbar > div:first-child {
    grid-area: intro;
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid color-mix(in srgb, var(--florentini-green) 18%, var(--glass-border-soft));
    border-radius: 16px;
    background:
      linear-gradient(135deg, color-mix(in srgb, var(--florentini-green-mist) 58%, transparent), transparent);
  }

  .waiter-guide-page .menu-role-toolbar.banquet-toolbar > div:first-child p {
    max-width: 48ch;
    margin-top: 7px;
    font-size: 12px;
    line-height: 1.55;
  }

  .waiter-guide-page .menu-role-toolbar.banquet-toolbar .search-input {
    grid-area: search;
    width: 100%;
    min-height: 50px;
  }

  .waiter-guide-page .menu-role-toolbar.banquet-toolbar > .btn {
    grid-area: action;
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  .academy-tabs-v20 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    overflow: visible;
    padding: 6px;
    border-radius: 20px;
  }

  .academy-tabs-v20 button {
    min-width: 0;
    min-height: 46px;
    flex: none;
    padding: 7px 8px;
    white-space: normal;
    line-height: 1.2;
  }

  .season-page-gantt {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .season-page-gantt::-webkit-scrollbar {
    display: none;
  }

  .season-gantt-row {
    min-width: 520px;
    grid-template-columns: 200px minmax(300px, 1fr);
    gap: 12px;
  }

  .season-gantt-row .lab,
  .season-gantt-row .lab > div {
    min-width: 0;
  }

  .season-gantt-row .lab > div > div:first-child {
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .season-gantt-track .bar {
    overflow: hidden;
    font-size: 0;
  }

  .season-gantt-months {
    width: 520px;
    min-width: 520px;
    box-sizing: border-box;
    padding-left: 212px;
  }

  .season-table-scroll-v26 {
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }

  .season-table-scroll-v26 .inv-table {
    width: 960px;
    min-width: 960px;
  }

  .ai-chef-layout-v26 {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .ai-chef-chat-v26,
  .ai-chef-aside-v26,
  .ai-chef-aside-v26 .glass {
    min-width: 0;
  }

  .ai-chef-chat-v26 .chat-feed {
    min-height: 360px;
    max-height: 58dvh;
    padding: 16px;
  }

  .ai-chef-chat-v26 .chat-input {
    min-width: 0;
    flex-wrap: wrap;
    padding: 10px;
  }

  .ai-chef-chat-v26 .chat-input input {
    min-width: 0;
    flex: 1 1 180px;
  }

  .ai-chef-aside-v26 .chip {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .haccp-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .haccp-kpi {
    min-width: 0;
    padding: 13px 12px;
  }

  .haccp-kpi .lbl {
    overflow-wrap: anywhere;
  }

  .season-trigger-panel-v15 {
    min-width: 0;
    padding: 14px 12px !important;
  }

  .season-trigger-panel-v15 > div:last-child {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .season-trigger-panel-v15 .v5-season-card {
    min-width: 0;
  }

  .events-workbar {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    overflow: hidden;
    padding: 10px;
  }

  .events-view-switch {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .events-view-switch button {
    min-width: 0;
    padding-inline: 4px;
  }

  .events-type-filter {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 7px;
    padding-bottom: 0;
    overflow: visible;
  }

  .events-type-filter button {
    grid-column: span 2;
    min-width: 0;
    min-height: 58px;
    display: grid;
    grid-template-rows: 22px auto;
    justify-items: center;
    align-content: center;
    gap: 4px;
    padding: 5px 3px;
    font-size: 9px;
    line-height: 1.08;
    text-align: center;
    white-space: normal;
  }

  .events-type-filter button:nth-child(6) {
    grid-column: 2 / span 2;
  }

  .events-type-filter button span {
    min-width: 22px;
    height: 22px;
  }

  .events-actions {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .events-local-search,
  .events-actions select,
  .events-actions .v5-btn-lime {
    width: 100%;
    min-width: 0;
  }

  .events-layout-v2 {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .events-calendar-doc {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .events-calendar-title,
  .events-week-heads,
  .events-page-grid {
    min-width: 650px;
  }

  .uniform-section-tabs-v24 {
    width: 100% !important;
    max-width: 100%;
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 7px !important;
    overflow: visible;
    padding: 6px !important;
    border-radius: 20px !important;
  }

  .uniform-section-tabs-v24 .v5-pill {
    grid-column: span 2;
    min-width: 0;
    min-height: 44px;
    justify-content: center;
    padding: 7px 6px;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
  }

  .uniform-section-tabs-v24 .v5-pill:nth-child(4),
  .uniform-section-tabs-v24 .v5-pill:nth-child(5) {
    grid-column: span 3;
  }

  .inv-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .inv-kpi {
    min-width: 0;
    padding: 13px 12px;
  }

  .inv-group-block {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .inv-group-block .inv-group-head,
  .inv-group-block .inv-table {
    min-width: 720px;
  }

  .real-links {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .real-links .btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  .real-links .btn:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .po-tabs-v24 {
    min-width: 0;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .po-tabs-v24 .tab-btn {
    width: 100%;
    min-width: 0;
    padding-inline: 8px !important;
  }

  .po-upload-layout-v24 {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .po-step-rail {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 12px 8px !important;
  }

  .po-step-rail .bar {
    display: none;
  }

  .po-step {
    min-width: 0;
    display: grid;
    place-items: center;
    gap: 5px;
    text-align: center;
  }

  .po-step span {
    min-width: 0;
    font-size: 8px;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .mod .two-col,
  .mod .three-col {
    grid-template-columns: minmax(0, 1fr);
  }

  .mod-toolbar {
    min-width: 0;
    align-items: stretch;
    flex-direction: column;
    overflow: hidden;
  }

  .mod-toolbar .group,
  .mod-toolbar > div:last-child {
    width: 100%;
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .mod-toolbar .group::-webkit-scrollbar,
  .mod-toolbar > div:last-child::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }

  .mod-toolbar .tab-btn,
  .mod-toolbar .chip {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .review-card-meta-v24 {
    flex-wrap: wrap;
  }

  .review-card-meta-v24 > span:nth-last-child(3) {
    display: none;
  }

  .review-reply-actions-v24 {
    min-width: 0;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
  }

  .review-reply-actions-v24 .btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  .uniform-product-modal-media {
    min-height: 260px;
  }

  .uniform-modal-actions,
  .menu-editor-actions,
  .event-modal-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .uniform-modal-actions button,
  .menu-editor-actions button,
  .event-modal-actions button {
    width: 100%;
    justify-content: center;
  }

  .schedule-month-scale,
  .schedule-month-days {
    grid-template-columns: repeat(15, minmax(28px, 1fr));
  }

  .schedule-title-table td,
  .schedule-title-table th {
    min-width: 0;
    overflow: hidden;
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: normal;
    white-space: normal;
  }

  .schedule-title-table td {
    width: 16%;
    font-size: 7.25px;
    letter-spacing: .025em;
  }

  .schedule-title-table th {
    width: 34%;
  }

  .schedule-person-row {
    overflow-x: auto;
  }

  .schedule-row-total {
    grid-template-columns: 1fr 1fr;
  }

  .settings-section-row {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 10px;
  }

  .settings-section-row > :first-child {
    grid-row: auto;
  }

  .settings-section-name-v14,
  .settings-section-row > :nth-child(3) {
    grid-column: 2;
  }

  .settings-row-actions {
    grid-column: 1 / -1;
  }

  .settings-control-section {
    padding: 15px;
    border-radius: 19px;
  }

  .settings-page-header-grid-v21 {
    grid-template-columns: 1fr;
  }

  .academy-player-v20 {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(190px, 31dvh) minmax(0, 1fr);
  }

  .academy-player-v20 > aside {
    padding: 12px;
  }

  .academy-player-brand-v20 {
    margin: 8px 4px;
  }

  .academy-player-v20 > aside nav {
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, 1fr);
    overflow-x: auto;
  }

  .academy-player-v20 > main > header {
    height: 58px;
    padding: 0 16px;
  }

  .academy-lesson-v20,
  .academy-exam-v20 {
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 28px 0;
  }

  .academy-lesson-number-v20 {
    font-size: 70px;
  }

  .academy-lesson-v20 h2,
  .academy-exam-v20 h2 {
    font-size: clamp(32px, 11vw, 46px);
  }

  .chat-page-head-v11 {
    display: none;
  }

  .main[data-screen-label="v5-chats"] {
    padding: 0 !important;
  }

  .chat-shell-v11,
  .main[data-screen-label="v5-chats"] .chat-shell-v11 {
    height: 100% !important;
    min-height: 0;
    border-radius: 20px;
  }

  .chat-compose-row-v11.chat-compose-row-v16 {
    grid-template-columns: 36px 32px minmax(0, 1fr) 36px 38px;
    gap: 4px;
    padding-inline: 6px;
  }

  .wf-author-v18,
  .wf-fields-row-v18,
  .wf-sentiment-v18 > div {
    grid-template-columns: 1fr;
  }

  .wf-report-form-v18 > footer,
  .wf-journal-v18 > header,
  .wf-filters-v18 {
    align-items: stretch;
    flex-direction: column;
  }

  .wf-report-form-v18 > footer button,
  .wf-journal-search-v18,
  .wf-filters-v18 select {
    width: 100%;
    min-width: 0;
  }

  .people-flow-v22 {
    padding-top: 0;
    padding-bottom: 20px;
  }

  .pf-hero-v22 {
    padding: 24px 19px;
    border-radius: 22px;
  }

  .pf-hero-v22 h1 {
    font-size: clamp(37px, 12vw, 48px);
  }

  [class*="-modal"] input,
  [class*="-modal"] select,
  [class*="-modal"] textarea,
  .input,
  .search-input {
    max-width: 100%;
    font-size: 16px;
  }
}

@media (min-width: 520px) and (max-width: 700px) {
  .v5-loc-grid,
  .locs-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 390px) {
  .v5-topbar-brand .word {
    display: none;
  }

  .v5-topbar-brand {
    flex: 0 0 32px;
  }

  .mobile-search-trigger-v24 {
    margin-left: auto;
  }

  .mobile-bottom-nav-v24 button {
    font-size: 7px;
  }

  .v5-kpi .lbl {
    font-size: 8px;
  }

  .schedule-row-total,
  .dashboard-quick-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-drawer-layer-v24,
  .mobile-drawer-v24 {
    animation: none;
  }
}

/* v27 — solid profile layer: page content must never bleed through the menu. */
.v4-topmenu {
  isolation: isolate;
  background: #fdfcf7 !important;
  color: #303630 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border-color: rgba(111, 132, 96, .24) !important;
  box-shadow: 0 28px 80px rgba(28, 39, 30, .26), 0 2px 8px rgba(28, 39, 30, .08) !important;
}

.v4-topmenu .v4-topmenu-item {
  color: #303630 !important;
}

.v4-topmenu .v4-topmenu-head {
  color: #747d73 !important;
}

.v4-topmenu .v4-topmenu-item.danger {
  color: #b66f5c !important;
}

/* v27 — event types always occupy two deliberate rows, never a scroll rail. */
.events-type-filter {
  width: 100%;
  max-width: 100%;
  display: grid !important;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 7px;
  overflow: visible !important;
  scrollbar-width: none;
  padding-bottom: 0;
}

.events-type-filter::-webkit-scrollbar {
  display: none;
}

.events-type-filter button {
  grid-column: span 2;
  min-width: 0;
  width: 100%;
  justify-content: center;
  white-space: normal;
  text-align: center;
  line-height: 1.12;
}

.events-type-filter button:nth-child(6) {
  grid-column: 2 / span 2;
}

@media (min-width: 701px) {
  .events-workbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .events-view-switch {
    grid-column: 1;
    grid-row: 1;
  }

  .events-actions {
    grid-column: 3;
    grid-row: 1;
  }

  .events-type-filter {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

/* v27 — the schedule is a calm invitation on the page and a top-layer workspace on demand. */
.schedule-launch-card-v27 {
  position: relative;
  width: 100%;
  min-height: clamp(360px, 52vh, 560px);
  display: grid;
  grid-template-columns: minmax(280px, .78fr) minmax(480px, 1.22fr);
  align-items: center;
  gap: clamp(28px, 5vw, 84px);
  overflow: hidden;
  padding: clamp(34px, 5vw, 74px);
  border: 1px solid rgba(115, 139, 98, .24);
  border-radius: clamp(26px, 3.5vw, 46px);
  background:
    radial-gradient(circle at 12% 10%, rgba(219, 229, 195, .74), transparent 34%),
    linear-gradient(135deg, #fdfcf7 0%, #f2f4e9 54%, #e5ebda 100%);
  box-shadow: 0 28px 80px rgba(51, 65, 51, .12), inset 0 1px 0 rgba(255, 255, 255, .82);
  color: #2f352f;
  cursor: pointer;
  text-align: left;
}

.schedule-launch-card-v27::before {
  content: "f";
  position: absolute;
  left: -1.5%;
  bottom: -37%;
  font-family: var(--font-script);
  font-size: clamp(330px, 38vw, 620px);
  line-height: 1;
  color: rgba(105, 132, 88, .055);
  pointer-events: none;
}

.schedule-launch-card-v27::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: -120px;
  top: -150px;
  border: 1px solid rgba(103, 130, 87, .18);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(255, 255, 255, .18), 0 0 0 84px rgba(255, 255, 255, .09);
  pointer-events: none;
}

.schedule-launch-copy-v27,
.schedule-launch-preview-v27 {
  position: relative;
  z-index: 1;
}

.schedule-launch-copy-v27 {
  display: grid;
  gap: 20px;
}

.schedule-launch-kicker-v27 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #52714e;
}

.schedule-launch-copy-v27 > strong {
  font-family: var(--font-serif);
  font-size: clamp(42px, 4.6vw, 72px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.035em;
}

.schedule-launch-copy-v27 > strong em {
  color: #758f68;
  font-weight: 500;
}

.schedule-launch-note-v27 {
  max-width: 540px;
  color: #5f675f;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.55;
}

.schedule-launch-cta-v27 {
  width: fit-content;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 0 8px 0 20px;
  border-radius: 999px;
  background: var(--florentini-green-deep);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(56, 78, 60, .18);
}

.schedule-launch-cta-v27 b {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  font-size: 18px;
}

.schedule-launch-preview-v27 {
  min-width: 0;
  display: grid;
  gap: 18px;
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid rgba(109, 132, 94, .22);
  border-radius: 26px;
  background: rgba(255, 254, 249, .76);
  box-shadow: 0 34px 70px rgba(49, 63, 49, .15), inset 0 1px 0 #fff;
  transform: rotate(-1.5deg);
  transition: transform .42s var(--ease-expo), box-shadow .42s var(--ease-expo);
}

.schedule-launch-card-v27:hover .schedule-launch-preview-v27,
.schedule-launch-card-v27:focus-visible .schedule-launch-preview-v27 {
  transform: rotate(0) translateY(-7px);
  box-shadow: 0 42px 90px rgba(49, 63, 49, .2), inset 0 1px 0 #fff;
}

.schedule-launch-card-v27:focus-visible {
  outline: 3px solid rgba(111, 145, 91, .42);
  outline-offset: 4px;
}

.schedule-launch-preview-head-v27,
.schedule-launch-preview-foot-v27 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.schedule-launch-preview-head-v27 i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--florentini-green-deep);
  color: #fff;
  font-family: var(--font-serif);
  font-style: normal;
}

.schedule-launch-preview-head-v27 b {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: #2f352f;
}

.schedule-launch-preview-head-v27 small {
  margin-left: auto;
  font-family: var(--font-mono);
  color: #7b837a;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.schedule-launch-grid-v27 {
  display: grid;
  grid-template-columns: repeat(8, minmax(12px, 1fr));
  gap: 7px;
  padding: 16px;
  border-radius: 17px;
  background: #f5f3ea;
}

.schedule-launch-grid-v27 i {
  aspect-ratio: 1.35;
  border-radius: 5px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(116, 128, 107, .14);
}

.schedule-launch-grid-v27 i.accent {
  background: #9caf8e;
  box-shadow: none;
}

.schedule-launch-grid-v27 i.weekend {
  background: #f2ddd3;
}

.schedule-launch-preview-foot-v27 {
  color: #747d73;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.schedule-launch-preview-foot-v27 > i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #87a479;
  box-shadow: 0 0 0 5px rgba(135, 164, 121, .14);
}

.schedule-launch-preview-foot-v27 b {
  margin-left: auto;
  color: #52714e;
}

html.schedule-fullscreen-open-v27,
body.schedule-fullscreen-open-v27 {
  overflow: hidden !important;
  overscroll-behavior: none;
}

body.schedule-fullscreen-open-v27 .sidebar,
body.schedule-fullscreen-open-v27 .v5-sidebar,
body.schedule-fullscreen-open-v27 .v5-topbar,
body.schedule-fullscreen-open-v27 .mobile-bottom-nav-v24 {
  visibility: hidden !important;
}

.schedule-fullscreen-dialog-v27 {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #eef1e9;
  color: #2f352f;
}

.schedule-fullscreen-dialog-v27::backdrop {
  background: rgba(20, 28, 22, .72);
  -webkit-backdrop-filter: blur(12px) saturate(.7);
  backdrop-filter: blur(12px) saturate(.7);
}

.schedule-fullscreen-head-v27 {
  height: 72px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto auto;
  align-items: center;
  gap: 26px;
  padding: 0 18px 0 24px;
  border-bottom: 1px solid rgba(98, 118, 86, .22);
  background: rgba(253, 252, 247, .96);
  box-shadow: 0 12px 36px rgba(43, 56, 45, .08);
  color: #2f352f;
}

.schedule-fullscreen-head-v27 > div:first-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.schedule-fullscreen-head-v27 > div:first-child span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #52714e;
}

.schedule-fullscreen-head-v27 > div:first-child b {
  overflow: hidden;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #2f352f;
}

.schedule-fullscreen-head-meta-v27 {
  display: flex;
  align-items: center;
  gap: 7px;
}

.schedule-fullscreen-head-meta-v27 span {
  padding: 7px 10px;
  border: 1px solid rgba(111, 132, 96, .17);
  border-radius: 999px;
  background: #f5f6ef;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #586258;
}

.schedule-fullscreen-head-v27 > button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 0 16px;
  border: 1px solid rgba(111, 132, 96, .28);
  border-radius: 999px;
  background: #fff;
  color: #2f352f;
  cursor: pointer;
  font-weight: 700;
}

.schedule-fullscreen-head-v27 > button b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--florentini-green-deep);
  color: #fff;
  font-size: 18px;
  font-weight: 400;
}

.schedule-fullscreen-stage-v27 {
  width: 100%;
  height: calc(100dvh - 72px);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 6px 12px;
  background:
    linear-gradient(rgba(108, 126, 96, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 126, 96, .055) 1px, transparent 1px),
    radial-gradient(circle at 50% 10%, #f8f8f2 0%, #e8ece2 78%);
  background-size: 34px 34px, 34px 34px, auto;
}

.schedule-fullscreen-fit-v27 {
  position: relative;
  flex: none;
}

.schedule-fullscreen-canvas-v27 {
  position: absolute;
  inset: 0 auto auto 0;
  box-sizing: border-box;
  transform-origin: top left;
  padding: 10px;
}

.schedule-fullscreen-canvas-v27 .sched-v5-wrap {
  width: 1660px;
  gap: 8px;
}

.schedule-fullscreen-canvas-v27 .schedule-document-board {
  display: none !important;
}

.schedule-fullscreen-canvas-v27 .schedule-toolbar-redesign {
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  padding: 10px 12px;
}

.schedule-fullscreen-canvas-v27 .schedule-workshop-filter {
  grid-column: 1 / -1;
  flex-wrap: wrap;
  overflow: visible;
}

.schedule-fullscreen-canvas-v27 .schedule-ledger-tabs {
  flex-wrap: nowrap;
  overflow: visible;
  padding-bottom: 0;
}

.schedule-fullscreen-canvas-v27 .schedule-ledger-paper {
  max-width: none;
  overflow: hidden;
}

.schedule-fullscreen-canvas-v27 .schedule-ledger-scroll {
  max-height: none !important;
  overflow: visible !important;
}

.schedule-fullscreen-canvas-v27 .schedule-ledger-table,
.schedule-fullscreen-canvas-v27 .schedule-ledger-paper table {
  min-width: 1640px;
}

.schedule-fullscreen-canvas-v27 .sched-v5-legend {
  padding: 8px 12px;
}

.schedule-document-canvas-v27 {
  padding: 10px;
}

.schedule-document-workspace-v27 {
  width: 1700px;
}

.schedule-document-canvas-v27 .schedule-doc-toolbar {
  width: 100%;
  grid-template-columns: minmax(320px, 1fr) auto auto !important;
  gap: 10px;
  margin-bottom: 10px;
  background: rgba(253, 252, 247, .98) !important;
  border-color: rgba(111, 132, 96, .22) !important;
  color: #2f352f;
  box-shadow: 0 12px 30px rgba(44, 56, 45, .1) !important;
}

.schedule-document-canvas-v27 .schedule-department-tabs {
  flex-wrap: nowrap;
  overflow: visible;
}

.schedule-document-canvas-v27 .schedule-department-tabs button {
  color: #697169;
}

.schedule-document-canvas-v27 .schedule-department-tabs button.active {
  background: #e8efdf;
  color: #476347;
}

.schedule-document-canvas-v27 .schedule-doc-toolbar > label span {
  color: #70786f;
}

.schedule-document-canvas-v27 .schedule-doc-toolbar input[type="month"] {
  border-color: rgba(111, 132, 96, .24);
  background: #fff;
  color: #2f352f;
}

.schedule-document-canvas-v27 .schedule-doc-actions .btn.ghost {
  border-color: rgba(111, 132, 96, .24);
  background: #fff;
  color: #3f493f;
}

.schedule-document-canvas-v27 .schedule-doc-actions {
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.schedule-document-canvas-v27 .schedule-add-employee > div {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  max-height: none;
  overflow: visible;
}

.schedule-document-canvas-v27 .schedule-paper-v6 {
  width: 100%;
  margin: 0;
  padding: 20px;
}

.schedule-document-canvas-v27 .schedule-grid-scroll-v6 {
  overflow: visible !important;
}

.schedule-document-canvas-v27 .schedule-grid-v6 {
  min-width: 100%;
}

.schedule-document-canvas-v27 .schedule-signatures-v6 {
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}

@media (max-width: 900px) {
  .schedule-launch-card-v27 {
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .schedule-launch-copy-v27 > strong {
    font-size: clamp(40px, 11vw, 64px);
  }

  .schedule-launch-preview-v27 {
    transform: none;
  }

  .schedule-fullscreen-head-v27 {
    height: 62px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding-inline: 13px 8px;
  }

  .schedule-fullscreen-head-meta-v27 {
    display: none;
  }

  .schedule-fullscreen-head-v27 > div:first-child b {
    font-size: 18px;
  }

  .schedule-fullscreen-head-v27 > button {
    min-height: 40px;
    padding-left: 12px;
    font-size: 0;
  }

  .schedule-fullscreen-head-v27 > button b {
    font-size: 18px;
  }

  .schedule-fullscreen-stage-v27 {
    height: calc(100dvh - 62px);
    padding: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .schedule-launch-preview-v27 {
    transition: none;
  }
}
