@layer m1-shell {
  .m1-header {
    position: relative;
    z-index: 60;
    min-height: 76px;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    background: var(--m1-navy);
    color: #fff;
  }

  .m1-header__inner {
    display: flex;
    width: min(100% - 48px, 1280px);
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-inline: auto;
  }

  .m1-brand { display: inline-flex; flex: none; align-items: center; }
  .m1-brand img { width: 108px; height: auto; filter: invert(1); }

  .m1-nav { display: flex; align-items: center; gap: .25rem; }
  .m1-nav__link {
    position: relative;
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: .6rem .78rem;
    color: #e7e9ed;
    font-size: .86rem;
    font-weight: 640;
    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: 1px solid rgba(255, 255, 255, .2);
    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 { 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: center; gap: 2rem; margin-inline: auto; padding: 2rem 0; }
  .m1-footer__brand { display: grid; gap: .25rem; }
  .m1-footer__brand strong { color: #fff; }
  .m1-footer__brand span { color: #929baa; font-size: .86rem; }
  .m1-footer__links, .m1-footer__contact { display: flex; flex-wrap: wrap; gap: .9rem 1.2rem; }
  .m1-footer a { color: #ced3dc; font-size: .86rem; text-decoration: none; }
  .m1-footer a:hover { color: #fff; text-decoration: underline; }
  .m1-footer__contact { flex-direction: column; gap: .2rem; }
  .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: 900px) {
    .m1-nav--desktop { display: none; }
    .m1-menu-button { display: grid; }
  }

  @media (max-width: 680px) {
    .m1-header, .m1-header__inner { min-height: 66px; }
    .m1-header__inner { width: calc(100% - 28px); }
    .m1-brand img { width: 90px; }
    .toast-region { top: 74px; right: 14px; }
    .m1-footer__inner { width: calc(100% - 28px); grid-template-columns: 1fr; gap: 1.25rem; }
    .m1-footer__legal { width: calc(100% - 28px); }
    .m1-footer__contact { flex-direction: row; gap: .8rem 1.2rem; }
  }
}

/* 2026.09.01.3 — unified quiet-luxury shell. */
@layer m1-shell {
  body.m1-app.booking-form-page--luxury .m1-header,
  body.m1-app.booking-form-page--luxury .m1-header__inner { min-height: 78px; }
  body.m1-app.booking-form-page--luxury .m1-header { background: #0b1320; }
  body.m1-app.booking-form-page--luxury .m1-header__inner { width: min(calc(100% - 48px), 1280px); }
  body.m1-app.booking-form-page--luxury .m1-brand { gap: 17px; }
  body.m1-app.booking-form-page--luxury .m1-brand img { width: 118px; }
  .m1-brand__booking-tagline {
    padding-left: 17px;
    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; }
  body.m1-app.booking-form-page--luxury .m1-nav__link { font-weight: 620; }

  .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; }

  @media (max-width: 680px) {
    body.m1-app.booking-form-page--luxury .m1-header,
    body.m1-app.booking-form-page--luxury .m1-header__inner { min-height: 68px; }
    body.m1-app.booking-form-page--luxury .m1-header__inner { width: calc(100% - 28px); }
    body.m1-app.booking-form-page--luxury .m1-brand img { width: 96px; }
    .m1-brand__booking-tagline { display: none; }
    .m1-footer__booking-inner {
      width: calc(100% - 28px);
      min-height: 72px;
      align-items: flex-start;
      flex-direction: column;
      justify-content: center;
      gap: 8px;
      padding-block: 12px;
    }
  }
}

/* 2026.09.01.8 — mobile-first shell and compact navigation dock. */
@layer m1-shell {
  .m1-mobile-dock { display: none; }

  @media (max-width: 900px) {
    body.m1-app { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
    .m1-menu-button { display: none; }

    .m1-mobile-dock {
      position: fixed;
      z-index: 85;
      right: 10px;
      bottom: calc(8px + env(safe-area-inset-bottom));
      left: 10px;
      display: grid;
      grid-auto-flow: column;
      grid-auto-columns: 1fr;
      min-height: 62px;
      overflow: hidden;
      border: 1px solid rgba(255,255,255,.09);
      border-radius: 17px;
      background: rgba(11,19,32,.96);
      box-shadow: 0 16px 42px rgba(4,10,19,.26);
      backdrop-filter: blur(18px) saturate(130%);
    }
    .m1-mobile-dock__item {
      position: relative;
      display: grid;
      min-width: 0;
      min-height: 62px;
      place-items: center;
      align-content: center;
      gap: 3px;
      padding: 6px 4px;
      border: 0;
      background: transparent;
      color: #9ba6b5;
      font: inherit;
      font-size: .61rem;
      font-weight: 650;
      line-height: 1.15;
      text-decoration: none;
      cursor: pointer;
    }
    .m1-mobile-dock__item::after {
      position: absolute;
      right: 24%;
      bottom: 4px;
      left: 24%;
      height: 2px;
      border-radius: 999px;
      background: transparent;
      content: "";
    }
    .m1-mobile-dock__item.is-current,
    .m1-mobile-dock__item[aria-current="page"] { color: #f8fafc; }
    .m1-mobile-dock__item.is-current::after,
    .m1-mobile-dock__item[aria-current="page"]::after { background: #8ea8c3; }
    .m1-mobile-dock__icon {
      display: grid;
      min-width: 26px;
      min-height: 26px;
      place-items: center;
      color: #8ea8c3;
      font-size: .92rem;
      font-weight: 560;
      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(80px + env(safe-area-inset-bottom));
      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; }
  }

  @media (max-width: 680px) {
    .m1-header, .m1-header__inner,
    body.m1-app.booking-form-page--luxury .m1-header,
    body.m1-app.booking-form-page--luxury .m1-header__inner { min-height: 58px; }
    .m1-header__inner,
    body.m1-app.booking-form-page--luxury .m1-header__inner { width: calc(100% - 24px); }
    .m1-brand img,
    body.m1-app.booking-form-page--luxury .m1-brand img { width: 82px; }
    .toast-region { top: 66px; }
    .m1-footer--booking { display: none; }
  }

  @media (max-width: 340px) {
    .m1-mobile-dock { right: 6px; left: 6px; }
    .m1-mobile-dock__item { font-size: .57rem; }
  }
}
