@layer m1-shell {
  .m1-header {
    position: relative;
    z-index: 60;
    min-height: var(--m1-app-bar-height);
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    background: var(--m1-navy);
    color: #fff;
  }
  .m1-header__inner {
    display: flex;
    width: min(100% - var(--m1-gutter) * 2, var(--m1-content));
    min-height: var(--m1-app-bar-height);
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-inline: auto;
  }
  /* Brand: the M1 mark plus live wordmark text. The full SVG lockup set
     its wordmark at ~7px on a phone; text stays crisp at every size. */
  .m1-brand {
    display: inline-flex;
    flex: none;
    min-height: 44px;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
  }
  .m1-brand__mark {
    width: auto;
    height: 28px;
  }
  .m1-brand__name {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: -.005em;
    white-space: nowrap;
  }
  .m1-footer__logo {
    width: auto;
    height: 30px;
    max-width: 196px;
  }
  @media (max-width: 760px) {
    .m1-footer__logo {
      height: 26px;
      max-width: 176px;
    }
  }

  .m1-nav {
    display: flex;
    align-items: center;
    gap: .25rem;
  }
  .m1-nav__link {
    position: relative;
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 0 12px;
    color: #e7e9ed;
    font-size: var(--m1-fs-label);
    font-weight: 500;
    text-decoration: none;
  }
  .m1-nav__link:hover {
    color: #fff;
  }
  .m1-nav__link.is-current::after {
    position: absolute;
    right: .72rem;
    bottom: 5px;
    left: .72rem;
    height: 2px;
    background: var(--m1-business-accent);
    content: "";
  }
  .m1-nav__link--quiet {
    color: #aeb5c0;
  }
  .m1-nav__link--phone {
    margin-right: .35rem;
    color: #c9cdd4;
  }
  body.m1-app.m1-app--public .m1-header {
    background: #0b1320;
  }
  body.m1-app.m1-app--public .m1-nav__link--phone {
    color: #9bb1c7;
  }
  body.m1-app.m1-app--public .m1-nav__link {
    font-weight: 620;
  }
  .m1-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    place-items: center;
    gap: 4px;
    padding: 10px;
    border: 0;
    border-radius: var(--m1-radius-sm);
    background: transparent;
    color: #fff;
  }
  .m1-menu-button > span:not(.u-visually-hidden) {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
  }
  .m1-mobile-backdrop {
    position: fixed;
    z-index: 70;
    inset: 0;
    background: rgba(5, 9, 17, .54);
  }
  .m1-mobile-nav {
    position: fixed;
    z-index: 80;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(88vw, 340px);
    padding: 1rem;
    background: var(--m1-surface);
    box-shadow: -20px 0 50px rgba(16, 24, 39, .18);
  }
  .m1-mobile-nav__header {
    display: flex;
    min-height: 56px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--m1-border);
  }
  .m1-mobile-nav__title {
    min-width: 0;
    overflow: hidden;
    font-weight: 780;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .m1-mobile-nav__links {
    display: grid;
    gap: .2rem;
    padding-top: .75rem;
  }
  .m1-mobile-nav__links a {
    display: flex;
    min-height: 48px;
    align-items: center;
    padding: .7rem .75rem;
    border-radius: 6px;
    color: var(--m1-ink);
    font-weight: 640;
    text-decoration: none;
  }
  .m1-mobile-nav__links a:hover,
  .m1-mobile-nav__links a.is-current {
    background: var(--m1-surface-strong);
  }
  .m1-mobile-nav__signout {
    margin-top: .5rem;
    border-top: 1px solid var(--m1-border);
    color: var(--m1-danger) !important;
  }
  .toast-region {
    position: fixed;
    z-index: 90;
    top: 84px;
    right: 20px;
    display: grid;
    width: min(420px, calc(100vw - 32px));
    gap: .6rem;
  }
  .toast {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr) 36px;
    align-items: center;
    gap: .75rem;
    min-height: 58px;
    padding: .7rem .7rem .7rem .9rem;
    border: 1px solid var(--m1-border);
    border-radius: var(--m1-radius-md);
    background: var(--m1-surface);
    box-shadow: var(--m1-shadow-md);
    transition: opacity .18s ease, transform .18s ease;
  }
  .toast--leaving {
    opacity: 0;
    transform: translateX(16px);
  }
  .toast__mark {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--m1-info);
  }
  .toast--success .toast__mark {
    background: var(--m1-success);
  }
  .toast--error .toast__mark {
    background: var(--m1-danger);
  }
  .toast--warning .toast__mark {
    background: var(--m1-warning);
  }
  .toast p {
    margin: 0;
    color: var(--m1-ink);
    font-size: .88rem;
  }
  .toast__close {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--m1-ink-muted);
    font-size: 1.25rem;
    cursor: pointer;
  }
  /* m1-footer — one owner for the site footer grid. Three deliberate
     columns (brand / navigation / contact), each its own top-aligned
     stack, so nothing floats at a different baseline than its group. */
  .m1-footer {
    border-top: 1px solid rgba(255, 255, 255, .08);
    background: #0b111d;
    color: #ced3dc;
  }
  .m1-footer__inner {
    display: grid;
    width: min(100% - 48px, 1280px);
    grid-template-columns: 1.4fr auto auto;
    align-items: start;
    gap: var(--m1-footer-column-gap);
    margin-inline: auto;
    padding: 2.25rem 0 1.75rem;
  }
  .m1-footer__brand {
    display: grid;
    gap: .6rem;
    max-width: 32ch;
  }
  .m1-footer__brand span {
    color: #929baa;
    font-size: .86rem;
    line-height: 1.5;
  }
  .m1-footer__heading {
    margin: 0 0 .1rem;
    color: #6f7a8a;
    font-size: .68rem;
    font-weight: 640;
    letter-spacing: .07em;
    text-transform: uppercase;
  }
  .m1-footer__links,
  .m1-footer__contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--m1-footer-stack-gap);
  }
  .m1-footer a {
    color: #ced3dc;
    font-size: .86rem;
    text-decoration: none;
  }
  .m1-footer a:hover {
    color: #fff;
    text-decoration: underline;
  }
  .m1-footer__preferences {
    color: #ced3dc;
    font-size: .86rem;
  }
  .m1-footer__legal {
    width: min(100% - 48px, 1280px);
    margin-inline: auto;
    padding: 1rem 0 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: #747f8f;
    font-size: .78rem;
  }
  @media (max-width: 760px) {
    .m1-footer__inner {
      grid-template-columns: 1fr;
      gap: 1.5rem;
      padding: 1.75rem 0 1.25rem;
    }
    .m1-footer__brand {
      max-width: none;
    }
  }
  @media (max-width: 900px) {
    .m1-nav--desktop {
      display: none;
    }
    .m1-menu-button {
      display: grid;
    }
  }
  
}

/* 2026.09.01.3 — unified quiet-luxury shell. */
@layer m1-shell {
  .m1-brand__booking-tagline {
    padding-left: 12px;
    border-left: 1px solid rgba(142,168,195,.42);
    color: #8ea8c3;
    font-size: .61rem;
    font-weight: 640;
    letter-spacing: .14em;
    line-height: 1.35;
    text-transform: uppercase;
  }
  body.m1-app.booking-form-page--luxury .m1-nav__link--phone {
    color: #9bb1c7;
    font-weight: 630;
  }
  .m1-footer--booking {
    min-height: 58px;
    background: #0b1320;
  }
  .m1-footer__booking-inner {
    display: flex;
    width: min(calc(100% - 48px), 1280px);
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-inline: auto;
    color: #87919f;
    font-size: .72rem;
  }
  .m1-footer__booking-inner strong {
    color: #e8e5df;
    font-weight: 640;
  }
  .m1-footer__booking-inner nav {
    display: flex;
    flex-wrap: wrap;
    gap: 17px;
  }
  .m1-footer__booking-inner a {
    color: #a9b0ba;
    font-size: .72rem;
  }
  .m1-footer__booking-inner > span a {
    color: #9bb1c7;
  }
  
}

/* 2026.09.01.8 — mobile-first shell and compact navigation dock. */
@layer m1-shell {
  .m1-mobile-dock {
    display: none;
  }
  @media (max-width: 900px) {
    .m1-menu-button {
      display: none;
    }
    /* Bottom nav: flush, full width, white, hairline top. 64px + safe area. */
    .m1-mobile-dock {
      position: fixed;
      z-index: 85;
      right: 0;
      bottom: 0;
      left: 0;
      display: grid;
      grid-auto-flow: column;
      grid-auto-columns: minmax(0, 1fr);
      min-height: calc(var(--m1-bottom-nav-height) + env(safe-area-inset-bottom));
      padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
      overflow: hidden;
      border: 0;
      border-top: 1px solid var(--m1-border);
      border-radius: 0;
      background: var(--m1-surface);
      box-shadow: none;
    }
    .m1-mobile-dock__item {
      position: relative;
      display: grid;
      min-width: 0;
      min-height: var(--m1-bottom-nav-height);
      place-items: center;
      align-content: center;
      gap: 2px;
      padding: 8px 4px;
      border: 0;
      background: transparent;
      color: var(--m1-ink-muted);
      font: inherit;
      font-size: var(--m1-fs-micro);
      font-weight: 500;
      line-height: var(--m1-lh-micro);
      text-decoration: none;
      cursor: pointer;
    }
    .m1-mobile-dock__item::after {
      position: absolute;
      top: 0;
      right: 30%;
      left: 30%;
      height: 2px;
      background: transparent;
      content: "";
    }
    .m1-mobile-dock__item.is-current,
    .m1-mobile-dock__item[aria-current="page"] {
      color: var(--m1-ink);
      font-weight: 600;
    }
    .m1-mobile-dock__item.is-current::after,
    .m1-mobile-dock__item[aria-current="page"]::after {
      background: var(--m1-business-accent-strong);
    }
    .m1-mobile-dock__icon {
      display: grid;
      min-width: 24px;
      min-height: 24px;
      place-items: center;
      color: inherit;
      font-size: 18px;
      font-weight: 400;
      line-height: 1;
    }
    .m1-mobile-backdrop {
      z-index: 86;
      background: rgba(4,9,17,.52);
      backdrop-filter: blur(3px);
    }
    .m1-mobile-nav {
      z-index: 87;
      top: auto;
      right: 10px;
      bottom: calc(var(--m1-bottom-nav-height) + env(safe-area-inset-bottom) + 8px);
      left: 10px;
      width: auto;
      max-height: min(68vh, 540px);
      overflow: auto;
      padding: 10px 12px 14px;
      border: 1px solid #dedbd4;
      border-radius: 18px;
      background: #fbfaf7;
      box-shadow: 0 24px 70px rgba(4,10,19,.26);
    }
    .m1-mobile-nav__header {
      min-height: 46px;
    }
    .m1-mobile-nav__title {
      color: #121927;
      font-size: .86rem;
    }
    .m1-mobile-nav__links {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 6px;
      padding-top: 10px;
    }
    .m1-mobile-nav__links a {
      min-height: 44px;
      padding: 8px 10px;
      border: 1px solid #e7e3db;
      border-radius: 10px;
      background: #fff;
      color: #1b2635;
      font-size: .75rem;
      font-weight: 650;
    }
    .m1-mobile-nav__links a:hover,
    .m1-mobile-nav__links a.is-current {
      border-color: #cbd7e1;
      background: #eef3f7;
    }
    .m1-mobile-nav__signout {
      margin-top: 0;
      border-top: 1px solid #e7e3db !important;
    }
  }
  
  
}

@layer m1-shell {
  /* ------------------------------------------------------------------ *
   * SHELL — phone composition. One owner, one ladder.
   * m1-mobile-density.css deliberately does not touch the shell.
   * ------------------------------------------------------------------ */
  @media (max-width: 900px) {
    body.m1-app {
      padding-bottom: calc(var(--m1-bottom-nav-height) + env(safe-area-inset-bottom) + 16px);
    }
    .m1-mobile-dock {
      transition: transform 220ms var(--ease-standard), opacity 180ms var(--ease-standard);
      will-change: transform;
    }
    .m1-mobile-dock[data-nav-state="hidden"] {
      transform: translateY(100%);
      opacity: .98;
    }
    /* ONE sticky action surface: a page with a sticky form action bar
       (m1-system.css) has no bottom nav; navigation moves to the app-bar
       menu button and the menu opens below the app bar instead. */
    body.m1-app:has(.booking-section__footer, .staff-editor__footer, .booking-actions--sticky) .m1-mobile-dock {
      display: none;
    }
    body.m1-app:has(.booking-section__footer, .staff-editor__footer, .booking-actions--sticky) .m1-menu-button {
      display: grid;
    }
    body.m1-app:has(.booking-section__footer, .staff-editor__footer, .booking-actions--sticky) .m1-mobile-nav {
      top: calc(var(--m1-app-bar-height) + env(safe-area-inset-top) + 8px);
      bottom: auto;
    }
    .m1-mobile-dock[data-nav-state="visible"] {
      transform: translateY(0);
      opacity: 1;
    }
    @media (prefers-reduced-motion: reduce) {
      .m1-mobile-dock {
        transition: none !important;
      }
      .m1-mobile-dock[data-nav-state="hidden"] {
        transform: none;
        opacity: 0;
      }
    }
  }

  @media (max-width: 760px) {
    .m1-header__inner {
      gap: 12px;
    }
    .m1-brand__mark {
      height: 24px;
    }
    .m1-brand__booking-tagline {
      display: none;
    }
    .toast-region {
      top: 66px;
      right: 14px;
    }
    .m1-footer__inner {
      width: calc(100% - var(--m1-mobile-page-gutter) * 2);
      grid-template-columns: 1fr;
      gap: var(--m1-mobile-footer-gap);
      padding: 16px 0;
    }
    .m1-footer__legal {
      width: calc(100% - var(--m1-mobile-page-gutter) * 2);
      padding: 10px 0 12px;
      font-size: .74rem;
    }
    .m1-footer__contact {
      flex-direction: row;
      gap: .8rem 1.2rem;
    }
    .m1-footer--booking {
      display: none;
    }
    .site-footer__inner {
      padding: var(--m1-mobile-footer-gap) 0 12px;
    }
    .site-footer__grid {
      gap: var(--m1-mobile-footer-gap);
    }
  }

  @media (max-width: 360px) {
    .m1-header__inner {
      width: calc(100% - var(--m1-mobile-page-gutter-narrow) * 2);
    }
  }

  /* 2026-11-09 mobile UAT: live-update toast, safe areas (viewport-fit=cover),
     44px brand link, dock that fits 320px. */
  /* Live-update / action feedback toast: above the dock, thumb-zone. */
  .m1-live-toast {
    position: fixed;
    z-index: 95;
    left: 50%;
    bottom: calc(24px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    max-width: min(92vw, 420px);
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(11, 19, 32, .94);
    color: #f8fafc;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    box-shadow: 0 12px 30px rgba(4, 10, 19, .28);
  }
  .m1-live-toast[hidden] { display: none; }
  .m1-live-toast[data-tone="error"] { background: #7f1d1d; }

  /* viewport-fit=cover: keep content clear of notches in landscape. */
  body.m1-app {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  .m1-header { padding-top: env(safe-area-inset-top); }

  @media (max-width: 900px) {
    .m1-live-toast { bottom: calc(var(--m1-bottom-nav-height) + env(safe-area-inset-bottom) + 16px); }
  }
  @media (max-width: 360px) {
    .m1-mobile-dock__item { letter-spacing: -.01em; }
  }

}
