/* Mezze mobile canonical palette */
:root{--paper:#FAF9F6;--canvas:#F3F1ED;--venue:#FFFFFF;--ink:#1A1A1A;--ink-soft:#66635B;--line:#E8E5DF;--line-soft:#EFECE7;--moss:#2D3A2F;--moss-deep:#1E2B20;--moss-tint:#EBF3ED;--brass:#C88A58;--brass-tint:#FDF0E8;--danger:#9B1C1C;--danger-tint:#FDF2F2;--white:#FFFFFF;}

/* ==========================================================================
   Mezze — mobile layer
   Loaded last on every page. Desktop is untouched above 768px.
   ========================================================================== */

@media (max-width: 768px) {

  /* --- iOS zooms any field under 16px. Never let that happen. --- */
  input, select, textarea { font-size: 16px !important; }

  /* --- Comfortable targets for anything a thumb aims at --- */
  .btn, .btnp, .btns, .tbtn, .cta, .mini, .miniBtn, .planPrimary,
  button[type=submit], input[type=submit], .modeTabs button, .gFilters button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .miniBtn, .mini { padding: 10px 12px !important; }

  /* --- Fluid gutters --- */
  .wrap, main.wrap, .container { padding-left: 16px !important; padding-right: 16px !important; }
  body { overflow-x: hidden; }

  /* --- Marketing pages: one clear action, quieter seconds --- */
  /* One primary action per screen. The second hero button becomes a quiet link. */
  .btnp, .btns, .cta { width: 100%; box-sizing: border-box; margin: 0 0 10px; text-align: center; }
  .cta + .cta {
    background: transparent !important; color: var(--moss, #2D3A2F) !important;
    border: none !important; text-decoration: underline; text-underline-offset: 3px;
    font-weight: 600 !important; margin-left: 0 !important; min-height: 40px;
  }
  .btnp + .btns { background: transparent; border: none; text-decoration: underline; text-underline-offset: 3px; }
  /* homepage hero: one filled button, then a quiet link */
  .hero .btn, .heroCta .btn { width: 100%; box-sizing: border-box; margin: 0 0 10px; justify-content: center; }
  .hero .btn.primary + .btn, .heroCta .btn.primary + .btn {
    background: transparent !important; border: none !important;
    color: var(--moss, #2D3A2F) !important; text-decoration: underline; text-underline-offset: 3px;
    min-height: 40px; margin-bottom: 0;
  }
  .rel { grid-template-columns: 1fr !important; }
  .tiers { grid-template-columns: 1fr !important; }
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* --- Marketing header: wordmark + one action, nothing else ---
     Scoped away from the tools, which need their five tabs. --- */
  body:not(.mzTool) header nav a:not(:last-child) { display: none; }
  header nav a:last-child { min-height: 44px; display: inline-flex; align-items: center; }
  /* offsites/planners put the links straight in <header> */
  header > a:not(.wordmark):not(.hdemo):not(.btn):not(.btnp) { display: none !important; }
  header > .tag { display: none !important; }
  header > .hspacer { flex: 1 1 auto; }
  header .hdemo, header > a.btn { min-height: 44px; display: inline-flex !important; align-items: center; padding: 11px 16px !important; }
  /* homepage uses nav > .links */
  nav .links > a:not(.btn) { display: none !important; }
  nav .links > a.btn { min-height: 44px; display: inline-flex !important; align-items: center; width: auto; margin: 0; }
  nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: nowrap; }
  nav .wordmark { font-size: 17px !important; }
}

/* ==========================================================================
   The tools (Studio, Program, Logistics, Budget, Registration)
   A phone is for checking and fixing, not for drawing rooms.
   ========================================================================== */
@media (max-width: 768px) {

  /* Header: identity on row one, the five tabs scroll on row two */
  header { height: auto !important; min-height: 0 !important; padding: 8px 12px !important; flex-wrap: wrap !important; row-gap: 8px; }
  .mzHdrLeft { width: auto !important; min-width: 0 !important; max-width: calc(100vw - 108px) !important;
    flex: 1 1 auto !important; padding-right: 0 !important; overflow: hidden; }
  .mzHdrLeft > * { min-width: 0; }
  header { max-width: 100vw; overflow-x: hidden; }
  .mzHdrRight { flex: 0 0 auto !important; margin-left: auto; }
  .mzHdrLeft .wordmark { font-size: 15px !important; }
  .mzHdrRight { flex: 0 0 auto !important; gap: 6px !important; }
  .mzHdrRight > *:not(#mzHdrMore):not(#btnAccount):not(#mzAccountLink):not(#zoomerWrap) { display: none !important; }
  .mzHdrSpacer { display: none !important; }
  header nav {
    order: 9; flex: 1 1 100% !important; width: 100%;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; border-radius: 10px;
  }
  header nav::-webkit-scrollbar { display: none; }
  header nav a { min-width: 0 !important; flex: 1 0 auto; padding: 11px 14px !important; font-size: 12.5px !important; }
  body.mzTool header nav { align-items: stretch; padding: 0; }
  body.mzTool header nav a:not(.mzNavHide) {
    display: inline-flex !important; align-items: center; justify-content: center;
    align-self: stretch; border-radius: 0; margin: 0;
  }
  body.mzTool header nav a:first-child { border-radius: 9px 0 0 9px; }
  body.mzTool header nav a:last-child { border-radius: 0 9px 9px 0; }
  body.mzTool header nav a.mzNavHide { display: none !important; }
  /* a hint that the strip scrolls */
  body.mzTool header nav { position: relative; scroll-padding-right: 16px;
    overflow-x: auto !important; overflow-y: hidden !important; }
  body.mzTool header nav a:last-child { margin-right: 4px; }
  body.mzTool header nav::after { content:''; flex: 0 0 4px; }

  /* Shell: one column. The sidebar becomes a sheet you pull up. */
  #app { grid-template-columns: 1fr !important; grid-template-rows: auto 1fr !important;
    max-width: 100vw; overflow-x: hidden; }
  /* a flex child will not shrink below its content unless told to — this is what
     was stretching the whole grid wider than the phone */
  body.mzTool header nav { min-width: 0 !important; }
  #app > main, #app > aside { min-width: 0; max-width: 100vw; }
  #app aside {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto;
    max-height: 78vh; z-index: 120;
    border-right: none; border-top: 1.5px solid var(--line, #E8E5DF);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -12px 40px rgba(40,37,28,.18);
    transform: translateY(101%);
    transition: transform .22s ease;
    padding: 18px 16px 90px !important;
  }
  #app.sheetOpen aside { transform: translateY(0); }
  #app main { grid-column: 1 !important; }

  /* The pull-up handle */
  #mzSheetBtn {
    position: fixed; left: 50%; transform: translateX(-50%);
    bottom: 16px; z-index: 130;
    background: var(--ink, #1A1A1A); color: #FAF9F6;
    border: none; border-radius: 999px;
    padding: 13px 22px; font-weight:600; font-size: 14px;
    box-shadow: 0 8px 24px rgba(40,37,28,.28);
    display: inline-flex; align-items: center; gap: 8px;
    font-family: inherit; min-height: 46px;
  }
  #app.sheetOpen #mzSheetBtn { background: var(--moss, #2D3A2F); }
  #mzSheetScrim { position: fixed; inset: 0; background: rgba(40,37,28,.35); z-index: 119; display: none; }
  #app.sheetOpen #mzSheetScrim { display: block; }

  /* Panels fill the phone */
  #ovPanel, #attOps, #setupPanel { padding: 16px 16px 96px !important; }
  .ovHeroCard, .wedHeroCard { padding: 20px 18px !important; }
  .ovNotesCard { padding: 15px 14px !important; max-width: 100%; box-sizing: border-box; }
  .ovNotesCard button { width: 100%; justify-content: center; }
  .ovHeroCard h2, .wedHeroCard h2 { font-size: 20px !important; }
  .ovHeroCard .acts, .wedHeroCard .acts { flex-direction: column; align-items: stretch; }
  .ovHeroCard .acts .btn, .wedHeroCard .acts .btn { width: 100%; justify-content: center; margin: 0 0 8px; }
  .ovHeroCard .or, .wedHeroCard .or { display: none; }
  /* The hero lives inside the scrolling canvas, so it must be sized against the
     screen, not against the room. Pin it to the viewport instead. */
  #emptyState, #emptyState.wedHeroOn {
    position: fixed !important;
    left: 12px !important; right: 12px !important;
    top: auto !important; bottom: 76px !important;
    width: auto !important; max-width: none !important;
    transform: none !important;
    z-index: 60;
  }
  #emptyState .big { font-size: 19px !important; }
  .dimLabel { display: none !important; }

  /* Tiles, filters, tables */
  .aoTiles, #ovTiles { grid-template-columns: 1fr 1fr !important; }
  .cards { grid-template-columns: 1fr 1fr !important; }
  .aoTable { font-size: 13px; }
  #aoTableWrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .suRow { grid-template-columns: 1fr !important; }
  .suPick { padding: 16px !important; }

  /* Review banner */
  #importBanner { left: 12px; right: 12px; transform: none; max-width: none; padding: 14px 16px; }
  #importBanner .row { flex-direction: column; align-items: stretch; }
  #importBanner .row .btn { width: 100%; justify-content: center; }

  /* Modals become sheets */
  .modal { width: 100% !important; max-width: none !important; border-radius: 16px 16px 0 0; max-height: 88vh; padding: 20px 16px 28px !important; }
  .overlay { align-items: flex-end !important; }

  /* Events dashboard */
  .newRow { flex-direction: column; }
  .newRow input, .newRow select, .newRow .btn { width: 100%; }
  .card { flex-direction: column; align-items: stretch; }
  .card .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .card .acts .btn, .card .acts .mini { width: 100%; justify-content: center; }
}

/* 391–430px gets slightly roomier gutters */
@media (min-width: 391px) and (max-width: 768px) {
  .wrap, main.wrap, .container { padding-left: 20px !important; padding-right: 20px !important; }
}


/* ══════ MOBILE BOTTOM NAV ══════ */
/* Replace the cramped horizontal scroll strip with a fixed bottom bar.
   Four tabs is the most a thumb can reach; the rest lives in ⋯ */
@media (max-width:768px){
  body.mzTool header nav {
    position: fixed !important; bottom: 0; left: 0; right: 0; z-index: 500;
    display: flex !important; justify-content: space-around; align-items: stretch;
    background: var(--white); border-top: 1.5px solid var(--line);
    border: none !important; border-radius: 0 !important; border-top: 1.5px solid var(--line) !important;
    box-shadow: 0 -4px 20px rgba(40,37,28,.08);
    padding: 0 !important; margin: 0 !important;
    overflow: visible !important; flex-wrap: nowrap !important;
    height: 56px;
  }
  body.mzTool header nav a,
  body.mzTool header nav a[data-context-label] {
    flex: 1; display: flex !important; flex-direction: column; align-items: center; justify-content: center;
    font-size: 10.5px !important; font-weight:600 !important; letter-spacing: .03em;
    padding: 6px 2px 8px !important; min-height: 0 !important; border-radius: 0 !important;
    border: none !important; gap: 2px; line-height: 1.1; text-decoration: none;
    color: var(--ink-soft) !important; background: transparent !important;
    white-space: nowrap !important; max-width: 25%;
  }
  body.mzTool header nav a.mzNavOn {
    color: var(--moss) !important; background: transparent !important;
  }
  /* icon above the label */
  body.mzTool header nav a::before {
    content: attr(data-icon); font-size: 18px; line-height: 1; display: block;
  }
  body.mzTool header nav a.mzNavOn::before { opacity: 1; }
  /* Mobile companion: exactly 4 tabs — Home, People/Guests, Program/Plan, More.
     RSVP/Register, Travel and Budget move into the More sheet. */
  body.mzTool header nav a[data-nav="rsvp"],
  body.mzTool header nav a[data-nav="transport"],
  body.mzTool header nav a[data-nav="budget"] { display: none !important; }
  body.mzTool header nav a.mzMoreTab { display: flex !important; order: 10; }
  body.mzTool header nav a#navRun { order: -1; }
  /* push main content above the bar so nothing is hidden behind it */
  body.mzTool #app > main, body.mzTool #app > aside { padding-bottom: 64px !important; }
  body.mzTool #ovPanel { padding-bottom: 72px !important; }
  /* the pull-up sheet button moves above the nav bar */
  #mzSheetBtn { bottom: 72px !important; }
}

/* ══════ MOBILE SEATING WORKSPACE ══════ */
@media (max-width:768px){
  #app:not(.showOverview):not(.showOps):not(.showSetup) #stagePad { display: none !important; }
  #app:not(.showOverview):not(.showOps):not(.showSetup) #mobileHandoff { display: block !important; }
  #mobileHandoff { display: none; padding: 0 0 80px; overflow-y: auto; -webkit-overflow-scrolling: touch; }

  .mhWrap { padding: 16px; }
  .mhSummary { display: flex; gap: 12px; margin-bottom: 16px; }
  .mhStat { flex: 1; text-align: center; background: var(--white,#fff); border: 1.5px solid var(--line,#E8E5DF);
    border-radius: 12px; padding: 12px 6px; }
  .mhStat.mhWarn { border-color: var(--danger,#9B1C1C); background: var(--danger-tint,#FDF2F2); }
  .mhNum { display: block; font-family: 'Marcellus',serif; font-size: 28px; line-height: 1.1; }
  .mhWarn .mhNum { color: var(--danger,#9B1C1C); }
  .mhLbl { font-size: 11px; color: var(--ink-soft,#66635B); letter-spacing: .06em; text-transform: uppercase; }
  .mhActions { margin-bottom: 16px; }
  .mhBtn { width: 100%; padding: 14px !important; font-size: 15px !important; border-radius: 12px !important; }
  .mhSection { margin-bottom: 16px; }
  .mhSecHead { font-family: 'Marcellus',serif; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
    color: var(--ink-soft,#66635B); margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line-soft,#EFECE7); }
  .mhConflict { font-size: 13px; color: var(--danger,#9B1C1C); background: var(--danger-tint,#FDF2F2);
    border-radius: 8px; padding: 8px 10px; margin-bottom: 4px; line-height: 1.45; }
  .mhDiets { display: flex; flex-wrap: wrap; gap: 6px; }
  .mhDiet { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 20px;
    background: var(--line-soft,#EFECE7); color: var(--ink-soft,#66635B); }
  .mhTable { background: var(--white,#fff); border: 1.5px solid var(--line,#E8E5DF); border-radius: 12px;
    padding: 12px; margin-bottom: 8px; }
  .mhTableHead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
  .mhTableName { font-family: 'Marcellus',serif; font-size: 15px; }
  .mhTableMeta { font-size: 12px; color: var(--ink-soft,#66635B); font-weight:600; }
  .mhGuests { display: flex; flex-direction: column; gap: 4px; }
  .mhGuest { display: flex; align-items: center; gap: 8px; font-size: 13.5px; padding: 6px 0;
    border-bottom: 1px solid var(--line-soft,#EFECE7); }
  .mhGuest:last-child { border-bottom: none; }
  .mhGdot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
  .mhGdiet { font-size: 11px; color: var(--danger,#9B1C1C); }
  .mhGout { font-size: 11px; color: var(--danger,#9B1C1C); text-decoration: line-through; }
  .mhUnseat { margin-left: auto; color: var(--line,#E8E5DF); font-size: 18px; border: none; background: none;
    padding: 4px 8px; cursor: pointer; flex: none; }
  .mhUnseat:active { color: var(--danger,#9B1C1C); }
  .mhUnseated { background: var(--paper,#FAF9F6); border-radius: 8px; padding: 8px 10px !important; border: none !important; }
  .mhAssign { margin-left: auto; font-size: 12px; padding: 5px 8px; border: 1.5px solid var(--line,#E8E5DF);
    border-radius: 8px; background: var(--white,#fff); flex: none; max-width: 140px; }
  .mhEmpty { font-size: 12px; color: var(--ink-soft,#66635B); padding: 4px 0; font-style: italic; }
  .mhFooter { text-align: center; padding: 16px 0 24px; }
  .mhNote { font-size: 12.5px; color: var(--ink-soft,#66635B); margin-top: 10px; }
}

/* ══════ MOBILE HEADER CLEANUP ══════ */
@media (max-width:768px){
  /* the toolbar row: hide everything except the wordmark, event chip, mode badge and ⋯ */
  .mzHdrRight > * { display: none !important; }
  #mzHdrMore { display: flex !important; }
  /* the wordmark row stays compact */
  body.mzTool header {
    flex-wrap: wrap; padding: 8px 12px 6px !important; gap: 6px 8px !important;
    max-height: none !important;
  }
  .mzHdrLeft { max-width: calc(100vw - 56px) !important; gap: 6px !important; }
  /* event chip and mode badge stay small */
  .mzHdrLeft .modeBadge { font-size: 9px !important; padding: 2px 7px !important; }
  #evSwitchWrap button { font-size: 12px !important; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
  /* the ⋯ menu button is always reachable */
  #mzHdrMore { display: flex !important; margin-left: auto; }
  /* sign in link if visible */
  #btnAccount, #mzAccountLink { display: none !important; }
}

/* ══════ HIDE TOOLBAR BUTTONS ON MOBILE ══════ */
/* These are direct children of <header>, not inside left/right zones,
   because event-context.js hasn't reorganised them on mobile. */
@media (max-width:768px){
  body.mzTool header > #btnInsights,
  body.mzTool header > #btnPrint,
  body.mzTool header > #saveState,
  body.mzTool header > #btnUndo,
  body.mzTool header > #btnRedo,
  body.mzTool header > #btnLock,
  body.mzTool header > #zoomerWrap,
  body.mzTool header > #planPill,
  body.mzTool header > #btnAccount,
  body.mzTool header > .menuWrap,
  body.mzTool header > #btnTemplates,
  body.mzTool header > #btnRebalance,
  body.mzTool header > #btnAutoSeat,
  body.mzTool header > #btnAuto { display: none !important; }
  /* only keep: wordmark, mode badge, event chip, and the ⋯ (which is inside .menuWrap — moved to its own element) */
  body.mzTool header > .spacer { display: none !important; }
  /* a simple ⋯ button that opens the full menu */
  body.mzTool header { position: relative; }

  @media (max-width:768px){
    #mzMobileMore { display: flex !important;
      display: flex; position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
      width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line);
      background: var(--white); font-size: 18px; cursor: pointer; align-items: center; justify-content: center;
    }
  }

}

/* ══════ MOBILE BUG FIXES ══════ */
@media (max-width:768px){
  /* FIX 1: event switcher dropdown renders behind the app — needs high z-index */
  #evSwitchWrap { position: relative !important; z-index: 600 !important; }
  #evSwitchWrap .evDropdown,
  #evSwitchWrap > div:not(:first-child) {
    position: absolute !important; z-index: 601 !important; top: 100% !important;
    left: 0 !important; min-width: 260px; max-width: 90vw;
    background: var(--white,#FAF9F6) !important; border: 1.5px solid var(--line,#E8E5DF) !important;
    border-radius: 12px !important; box-shadow: 0 12px 32px rgba(40,37,28,.18) !important;
    max-height: 60vh; overflow-y: auto;
  }

  /* FIX 2: ⋯ menu — the menuWrap is hidden so the mobile button has nothing to toggle.
     Build a proper mobile action sheet instead. */
  #mzMobileMenu {
    display: none; position: fixed; bottom: 56px; right: 12px; z-index: 700;
    background: var(--white,#FAF9F6); border: 1.5px solid var(--line,#E8E5DF);
    border-radius: 14px; box-shadow: 0 12px 32px rgba(40,37,28,.18);
    padding: 8px 0; min-width: 220px; max-width: 80vw;
  }
  #mzMobileMenu.open { display: block !important; }
  #mzMobileMenu button {
    display: block; width: 100%; text-align: left; padding: 11px 16px;
    border: none; background: none; font-size: 14px; color: var(--ink,#1A1A1A); cursor: pointer;
    font-family: inherit;
  }
  #mzMobileMenu button:active { background: var(--line-soft,#E8E5DF); }

  /* FIX 4: tables render at 0×0 because the stage is hidden — the handoff must
     show the real count from state, not from DOM measurements */

  /* FIX 5: to-do field crushed — flex is broken, force proper sizing */
  .noteAdd { flex-wrap: nowrap !important; }
  .noteAdd input { flex: 1 1 auto !important; min-width: 0 !important; width: auto !important; }
  .noteAdd button { flex: 0 0 auto !important; width: auto !important; max-width: 60px !important; padding: 9px 12px !important; }

  /* FIX 8: sticky CTA must leave room for content below it */
  #mobileSticky { padding-bottom: calc(12px + env(safe-area-inset-bottom)) !important; }
  footer { padding-bottom: 80px !important; }
}

/* Homepage at 320px — the tradition chips and hero text overflow */
@media (max-width:380px){
  body { overflow-x: hidden; }
  .tchip { font-size: 11px !important; padding: 6px 10px !important; }
  h1 { font-size: clamp(26px,8vw,42px) !important; }
}

/* The header must stack above everything on the page — panels are at z-index 400+ */
@media (max-width:768px){
  body.mzTool header {
    position: relative !important; z-index: 900 !important;
  }
  /* the mobile action sheet must sit above everything */
  #mzMobileMenu {
    z-index: 950 !important;
  }
}

@media (max-width:768px){
  #evSwitchWrap > div:not(:first-child),
  #evMenu {
    position: fixed !important;
    top: 46px !important;
    left: 12px !important;
    z-index: 1100 !important;
  }
}

/* ══════ SIDEBAR PANEL ON MOBILE (when opened from the seating handoff) ══════ */
@media (max-width:768px){
  /* sidebar opens as a bottom sheet on mobile when toggled */
  #app:not(.showOverview):not(.showOps):not(.showSetup) aside {
    position: fixed !important; bottom: 56px; left: 0; right: 0;
    max-height: 60vh; border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 32px rgba(40,37,28,.15);
    z-index: 450 !important; overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding-bottom: 20px !important;
    display: none !important;
  }
  #app:not(.showOverview):not(.showOps):not(.showSetup) aside.mhSheetOpen {
    display: block !important;
  }
  /* accordion sections in the sidebar — collapse by default, expand on tap */
  #app aside h2 { cursor: pointer; user-select: none; padding: 14px 0 10px; }
  #app aside h2::after { content: ' ▾'; font-size: 10px; }
  /* usable tap targets */
  #app aside .miniBtn,
  #app aside .tog,
  #app aside .groupChip { min-height: 44px; min-width: 44px; }
  #app aside .guest .row2 select { min-height: 36px; font-size: 13px; }
  #app aside input,
  #app aside select { min-height: 44px; font-size: 14px; }
  /* guest search */
  #guestSearch { font-size: 16px !important; /* prevents iOS zoom on focus */ }
  /* filter buttons stay visibly selected */
  #app aside .tog.on { font-weight: 600; border-width: 2px; }
}

@media (max-width:768px){
  #app aside .linkBtn { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; }
  #app aside .guest .x { min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
  #app aside .rule .x { min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; }
  #app aside .groupChip .gx { min-width: 32px; min-height: 32px; display: inline-flex; align-items: center; justify-content: center; }
}

@media (max-width:768px){
  .mhEmptyState { text-align: center; padding: 60px 24px; }
  .mhEmptyState h2 { font-family: '''Marcellus''',serif; font-size: 22px; font-weight: 400; margin-bottom: 10px; }
  .mhEmptyState p { font-size: 14px; color: var(--ink-soft,#66635B); line-height: 1.6; margin-bottom: 20px; }
}

@media (max-width:380px){
  #evSwitchWrap button, #evBtn { max-width: 120px !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mzHdrLeft { max-width: calc(100vw - 60px) !important; overflow: hidden; }
  /* the ⋯ is absolutely positioned at the right; keep the header row clear of it */
  body.mzTool header { padding-right: 56px !important; }
}

@media(max-width:768px){
  body.mzTool header nav a[data-nav="program"],
  body.mzTool header nav a[data-nav="travel"]{display:none!important;} body.mzOffsite header nav a[data-nav="program"]{display:flex!important;}
  body.mzTool header nav a[data-nav="more"]{display:flex!important;}
  body.mzTool header nav a{max-width:25%!important;}
}

/* Mobile nav labels are set directly by applyMobileLabels() in app.html —
   no ::after pseudo-labels (they caused double labels like "Home/Home"). */

/* Mobile seating handoff — calm desktop prompt card */
.mhHandoffCard{ background:var(--moss-tint,#EBF3ED); border:1px solid var(--line,#E8E5DF); border-radius:12px; padding:14px 16px; margin-bottom:12px; }
.mhHandoffTitle{ font-weight:800; font-size:14px; color:var(--moss-deep,#1E2B20); margin-bottom:4px; }
.mhHandoffCard .mhNote{ font-size:12.5px; color:var(--ink-soft,#66635B); line-height:1.5; margin:0; }
