/* YesR Labour PWA splash + permissions + standalone */
.pwa-splash {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem;
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(20, 184, 166, .35), transparent 55%),
    linear-gradient(165deg, #042f2e 0%, #0f766e 48%, #134e4a 100%);
  color: #ecfdf5;
  transition: opacity .38s ease, visibility .38s ease;
}
.pwa-splash.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.pwa-splash-logo {
  width: 76px; height: 76px; border-radius: 1.15rem; overflow: hidden;
  background: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 40px rgba(4, 47, 46, .45);
  animation: pwa-splash-pulse 1.2s ease-in-out infinite;
}
.pwa-splash-logo img { width: 100%; height: 100%; object-fit: cover; }
.pwa-splash-brand { font-size: 1.4rem; font-weight: 800; letter-spacing: .02em; }
.pwa-splash-tag { font-size: .85rem; opacity: .8; }
.pwa-splash-loader {
  width: 36px; height: 36px; margin-top: .4rem;
  border: 3px solid rgba(236, 253, 245, .25); border-top-color: #99f6e4; border-radius: 50%;
  animation: pwa-splash-spin .7s linear infinite;
}
@keyframes pwa-splash-spin { to { transform: rotate(360deg); } }
@keyframes pwa-splash-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

#labourNetBanner {
  position: fixed; left: 0; right: 0; top: 0; z-index: 9990;
  padding: .45rem .75rem; text-align: center; font-size: .8rem; font-weight: 600;
  padding-top: max(.45rem, env(safe-area-inset-top));
}
#labourNetBanner.is-offline { background: #991b1b; color: #fff; }
#labourNetBanner.is-online { background: #0f766e; color: #ecfdf5; }
#labourNetBanner[hidden] { display: none !important; }

body.pwa-standalone {
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none; -webkit-user-select: none;
}
body.pwa-standalone input,
body.pwa-standalone textarea,
body.pwa-standalone select { user-select: text; -webkit-user-select: text; }

body.pwa-standalone .labour-top {
  padding-top: max(.65rem, env(safe-area-inset-top));
}
body.pwa-standalone .labour-tabbar {
  padding-bottom: max(.35rem, env(safe-area-inset-bottom));
}
body.pwa-standalone.labour-fs .labour-top,
body.pwa-standalone.labour-fs .labour-tabbar { display: none !important; }

.pwa-perm-sheet .pwa-perm-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.pwa-perm-sheet .pwa-perm-list li {
  display: flex; align-items: center; gap: .75rem;
  padding: .7rem 0; border-bottom: 1px solid #e2e8f0;
}
.pwa-perm-sheet .pwa-perm-list li:last-child { border-bottom: 0; }
.pwa-perm-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: #ecfdf5; color: #0f766e;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem;
}
.pwa-perm-meta { flex: 1; min-width: 0; }
.pwa-perm-meta strong { display: block; font-size: .92rem; }
.pwa-perm-meta span { font-size: .78rem; color: #64748b; }
.pwa-perm-status {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: .2rem .45rem; border-radius: 999px; background: #e2e8f0; color: #475569;
}
.pwa-perm-status.ok { background: #dcfce7; color: #166534; }
.pwa-perm-status.bad { background: #fee2e2; color: #991b1b; }
