@media(min-width:768px){body{padding:24px}.app-shell{border-radius:28px;min-height:calc(100vh - 48px);overflow:hidden}.bottom-nav{bottom:24px;border:1px solid var(--line);border-radius:0 0 28px 28px}}
@media(max-width:359px){.screen{padding:12px}.screen-title{font-size:30px}.hero-card{min-height:195px}.bottom-nav{padding-left:4px;padding-right:4px}.nav-item{font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important}}

@media(max-width:767px){
  body{padding:0}.app-shell{width:100%;max-width:var(--app-max);overflow:visible}
  .bottom-nav{left:50%;right:auto;bottom:0;width:min(100vw,var(--app-max));border-radius:0}
  .header-actions{gap:5px}.brand-lockup{min-width:100px}.brand-wordmark{max-width:106px;height:27px}
  .header-context-title{font-size:13px}.theme-toggle{width:54px}.theme-thumb{width:24px;height:24px;top:4px}.theme-toggle[aria-checked="true"] .theme-thumb{transform:translateX(23px)}
}
@media(max-width:374px){
  .compact-action{width:32px;height:32px;flex-basis:32px}.theme-toggle{width:50px}.theme-toggle .theme-icon svg{width:14px;height:14px}.theme-thumb{width:22px;height:22px;top:5px}.theme-toggle[aria-checked="true"] .theme-thumb{transform:translateX(21px)}
  .brand-lockup{min-width:88px}.brand-wordmark{max-width:94px;height:24px}
}


/* v0.2.2 centered header */
@media(max-width:767px){
  .header-row-centered{grid-template-columns:40px minmax(0,1fr) 40px;min-height:46px}
  .header-side{min-width:40px}
  .brand-wordmark-neon{height:32px;max-width:146px}
  .theme-toggle.theme-toggle-icon{width:44px;height:44px;min-width:44px}
}
@media(max-width:374px){
  .brand-wordmark-neon{height:29px;max-width:132px}
  .header-meta-dark .header-context-title,.header-meta-dark .location{font-size:12px}
}


/* v0.2.3 fixed-header alignment */
@media(min-width:768px){
  .app-header{top:24px;width:min(calc(100vw - 48px),var(--app-max));border-radius:28px 28px 0 0}
}
@media(max-width:767px){
  .brand-wordmark-neon{height:45px;max-width:204px}
  .header-row-centered{min-height:56px}
  .header-weather-row{padding-left:1px;padding-right:1px}
}
@media(max-width:374px){
  :root{--birralis-fixed-header-space:calc(108px + env(safe-area-inset-top))}
  .brand-wordmark-neon{height:41px;max-width:185px}
  .weather-source{display:none}
  .weather-location{max-width:112px}
}


/* ============================================================
   v0.2.4 — deterministic viewport geometry
   ============================================================ */
@media(max-width:767px){
  body{width:100%;max-width:100%;padding:0}
  .app-shell{width:100%;max-width:var(--app-max);margin-inline:auto}
  .app-header{
    top:0;
    left:0;
    right:0;
    width:100%;
    max-width:var(--app-max);
    margin-inline:auto;
    transform:none;
    border-radius:0;
  }
  .bottom-nav{
    left:0 !important;
    right:0 !important;
    bottom:0;
    width:100% !important;
    max-width:var(--app-max) !important;
    margin-inline:auto !important;
    transform:none !important;
    padding-left:max(6px,env(safe-area-inset-left));
    padding-right:max(6px,env(safe-area-inset-right));
  }
}

@media(max-width:359px){
  .nav-item{
    padding-inline:0;
    font-size:12px;
  }
  .nav-item svg{width:19px;height:19px}
}

@media(min-width:768px){
  .app-header{
    left:0;
    right:0;
    top:24px;
    transform:none;
    margin-inline:auto;
    width:min(calc(100vw - 48px),var(--app-max));
    max-width:var(--app-max);
  }
  .bottom-nav{
    left:0 !important;
    right:0 !important;
    transform:none !important;
    margin-inline:auto !important;
    width:min(calc(100vw - 48px),var(--app-max)) !important;
    max-width:var(--app-max) !important;
    bottom:24px;
  }
}


/* ============================================================
   v0.2.8 — Fixed shell uses layout width, never 100vw
   100vw can include the scrollbar and causes route-to-route X jumps.
   ============================================================ */

@media(max-width:767px){
  .app-header,
  .bottom-nav{
    left:0 !important;
    right:0 !important;
    width:100% !important;
    max-width:var(--app-max) !important;
    margin-left:auto !important;
    margin-right:auto !important;
    transform:none !important;
  }
}

@media(min-width:768px){
  .app-shell{
    width:min(calc(100% - 48px),var(--app-max)) !important;
    max-width:var(--app-max) !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }

  .app-header,
  .bottom-nav{
    left:0 !important;
    right:0 !important;
    width:min(calc(100% - 48px),var(--app-max)) !important;
    max-width:var(--app-max) !important;
    margin-left:auto !important;
    margin-right:auto !important;
    transform:none !important;
  }
}


/* ============================================================
   v0.4.1 — 320–430px form hardening
   ============================================================ */
@media(max-width:359px){
  [data-reservation-datetime]{
    grid-template-columns:1fr !important;
  }

  [data-auth-form] > div:last-child{
    grid-template-columns:1fr !important;
  }

  [data-auth-form] .btn{
    width:100%;
  }
}

@media(max-width:430px){
  input,select,textarea,.btn{
    min-width:0;
  }

  textarea{
    font-size:16px;
  }
}

/* Sistema de diseño v1.0 — bp.xs (< 340 px): el encabezado y la barra inferior
   no caben con controles de 44 px; se reducen a 38 px y se compacta el texto de la barra. */
@media (max-width:339px){
  .icon-btn,.header-notification-btn,.header-profile-btn,.compact-action,.back-btn,.map-locate{min-width:38px;min-height:38px}
  .theme-toggle.theme-toggle-icon{width:38px;height:38px;min-width:38px}
  .nav-item{font-weight:600;letter-spacing:-.03em}
}

/* v0.9.24 — el switch de tema siempre es un círculo (Edge/Opera) */
.app-header .theme-toggle.theme-toggle-icon{width:44px;height:44px;min-width:44px;max-width:44px;min-height:44px;flex:0 0 44px;aspect-ratio:1/1;padding:0;border-radius:50%;box-sizing:border-box}
