/* Customer-only shell refinements. No billing or staff UI is affected. */
html, body { max-width: 100%; overflow-x: clip; }
body.customer-app {
  min-height: 100vh;
  min-height: 100dvh;
  background: radial-gradient(900px 420px at 4% -14%, #dcfce7 0%, transparent 62%), #f5f8f7;
}
.customer-header { padding-top: env(safe-area-inset-top); }
.customer-header-inner { min-height: 70px; }
.customer-brand small { font-size: .66rem; letter-spacing: .1em; }
.customer-brand-mark { box-shadow: 0 7px 18px rgba(8,122,69,.2); }
.customer-brand-mark svg { width: 23px; height: 23px; }
.customer-nav { gap: 4px; }
.customer-nav a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; }
.customer-nav a svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.customer-nav a.is-active { color: #087a45; background: #dcfce7; border-color: #bbf7d0; }
.customer-install { min-height: 42px; padding: 8px 12px; color: #087a45; background: #fff; border: 1px solid #bbf7d0; border-radius: 10px; font: inherit; font-size: .82rem; font-weight: 750; cursor: pointer; }
.customer-install[hidden] { display: none !important; }
.customer-main { padding-bottom: max(52px, env(safe-area-inset-bottom)); }
.customer-bottom-nav { display: none; }
.customer-dashboard-head h1 { color: #172033; }
.customer-card { border-radius: 20px; box-shadow: 0 10px 28px rgba(15,23,42,.055); }
.customer-card, .customer-auth-card { border-color: #e1ebe4; }
.customer-auth-card { box-shadow: 0 20px 48px rgba(15,23,42,.09); }
.customer-btn, .customer-btn-secondary, .customer-logout, .customer-install { min-height: 46px; }
.customer-btn:focus-visible, .customer-btn-secondary:focus-visible, .customer-logout:focus-visible,
.customer-nav a:focus-visible, .customer-bottom-nav a:focus-visible, .customer-install:focus-visible,
.customer-field input:focus-visible { outline: 3px solid rgba(16,185,129,.35); outline-offset: 2px; }
.customer-field input { min-height: 48px; }
.customer-footer { padding-bottom: max(24px, env(safe-area-inset-bottom)); }

@media (max-width: 640px) {
  .customer-header-inner { min-height: 58px; padding: 7px 13px; }
  .customer-brand { font-size: .97rem; }
  .customer-brand small { display: block; margin-top: 2px; font-size: .58rem; }
  .customer-nav { display: none; }
  .customer-main { padding: 18px 13px calc(92px + env(safe-area-inset-bottom)); }
  .customer-footer { display: none; }
  .customer-bottom-nav {
    position: fixed; z-index: 50; right: 0; bottom: 0; left: 0;
    display: flex; align-items: stretch; justify-content: space-around; gap: 3px;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97); border-top: 1px solid #e2e8f0;
    box-shadow: 0 -8px 24px rgba(15,23,42,.08); backdrop-filter: blur(16px);
  }
  .customer-bottom-nav a {
    flex: 1; min-width: 0; min-height: 48px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 3px; padding: 4px 2px;
    border-radius: 11px; color: #64748b; text-decoration: none; font-size: 10px; font-weight: 750;
  }
  .customer-bottom-nav a.is-active { color: #087a45; background: #effaf4; }
  .customer-bottom-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .customer-auth-wrap { min-height: calc(100dvh - 180px); }
  .customer-auth-card { border-radius: 20px; }
  .customer-auth-head { padding-top: 22px; }
  .customer-grid { gap: 13px; }
  .customer-card { padding: 16px; }
}
@media (max-width: 360px) {
  .customer-main { padding-right: 10px; padding-left: 10px; }
  .customer-bottom-nav { padding-right: 5px; padding-left: 5px; }
  .customer-bottom-nav a { font-size: 9px; }
  .customer-auth-head { padding-right: 17px; padding-left: 17px; }
  .customer-auth-body { padding-right: 17px; padding-left: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
