/* ==========================================================================
   Acesso Livre - PWA mobile
   Identidade: azul institucional = identidade; verde = liberar/abrir/sucesso.
   Mobile-first, min 320px.
   ========================================================================== */

:root {
  /* Azul institucional */
  --brand: #2563eb;
  --brand-dark: #1e3a8a;
  --brand-darkest: #0f172a;
  --brand-header-gradient: linear-gradient(90deg, #0f172a 0%, #1e3a8a 55%, #2563eb 100%);

  /* Verde de ação */
  --action: #2ecc40;
  --action-strong: #22c55e;
  --action-press: #1fa233;

  /* Superfícies e texto */
  --bg: #f4f6fb;
  --surface: #ffffff;
  --text: #2f3b52;
  --text-soft: #6b7a90;
  --border: #e3e8f2;

  /* Semântica */
  --danger: #e74c3c;
  --danger-soft: #fdecea;
  --danger-text: #c0392b;
  --success: #22c55e;
  --warning-bg: #fff7e6;
  --warning-border: #ffe0a3;
  --warning-text: #a86a00;

  /* Forma */
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 2px 10px rgba(15, 23, 42, 0.06);
  --shadow-card-hover: 0 6px 18px rgba(15, 23, 42, 0.12);
  --shadow-header: 0 2px 12px rgba(15, 23, 42, 0.18);

  --tap: 48px;
  --ease: 0.18s ease;

  --font: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { min-height: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-width: 320px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.55);
  outline-offset: 2px;
}

.hidden { display: none; }

/* ==========================================================================
   Login
   ========================================================================== */
.login-screen {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 32px 20px calc(32px + env(safe-area-inset-bottom));
}

.login-brand { text-align: center; }

.login-logo {
  width: auto;
  max-width: 240px;
  height: auto;
  max-height: 96px;
  object-fit: contain;
}

.login-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 24px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}

.login-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 4px;
}

.login-subtitle {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-bottom: 24px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  min-height: var(--tap);
  padding: 13px 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.form-group input::placeholder { color: #a9b4c4; }

.form-group input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.btn-login {
  width: 100%;
  min-height: var(--tap);
  padding: 14px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  margin-top: 6px;
  transition: background var(--ease), transform var(--ease);
}

.btn-login:hover { background: #1d4ed8; }
.btn-login:active { background: var(--brand-dark); transform: scale(0.98); }

.alert-error {
  background: var(--danger-soft);
  border: 1px solid #f6c6c0;
  color: var(--danger-text);
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 18px;
}

/* ==========================================================================
   App shell (cancelas)
   ========================================================================== */
.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brand-header-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  padding-top: calc(14px + env(safe-area-inset-top));
  box-shadow: var(--shadow-header);
}

.app-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.app-header-logo {
  height: 30px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  /* logo tem texto escuro/colorido; sobre o azul mantemos brilho e leve realce */
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.app-header-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

/* Status badge (contrato JS) */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background var(--ease), color var(--ease);
}
.status-online { background: rgba(46, 204, 64, 0.18); color: #eafff0; }
.status-offline { background: rgba(231, 76, 60, 0.22); color: #ffecec; }

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex: none;
}
.status-online .status-dot {
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: pulse-dot 1.8s infinite;
}
.status-offline .status-dot { background: #ff8a80; }

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
  70% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.app-main {
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 18px 16px 8px;
}

/* Aviso de agente offline */
.agent-warning {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  color: var(--warning-text);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.agent-warning-icon { font-size: 1.15rem; line-height: 1; }

/* ==========================================================================
   Cartões de cancela
   ========================================================================== */
.cancela-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cancela-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow var(--ease);
}

.cancela-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cancela-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex: none;
}

.cancela-nome {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  word-break: break-word;
}

/* Botão de abrir (contrato JS: .btn-abrir / .btn-text / .btn-cooldown) */
.btn-abrir {
  width: 100%;
  min-height: 60px;
  padding: 16px 20px;
  background: var(--action);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(46, 204, 64, 0.28);
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
  overflow: hidden;
}

.btn-abrir .btn-icon { font-size: 1.25rem; line-height: 1; }

.btn-abrir:hover:not(:disabled) { background: var(--action-strong); }

.btn-abrir:active:not(:disabled) {
  background: var(--action-press);
  transform: scale(0.97);
  box-shadow: 0 2px 6px rgba(46, 204, 64, 0.3);
}

.btn-abrir:disabled {
  background: #c7cede;
  color: #f2f4f9;
  cursor: not-allowed;
  box-shadow: none;
}
.btn-abrir:disabled .btn-icon { opacity: 0.6; }

.btn-abrir .btn-cooldown {
  font-variant-numeric: tabular-nums;
  font-size: 1.2rem;
  font-weight: 700;
}

/* Estado "abrindo" (adicionado pelo JS via classe .is-loading) */
.btn-abrir.is-loading {
  background: var(--action-press);
  cursor: wait;
}
.btn-abrir.is-loading .btn-icon { display: none; }
.btn-abrir .btn-spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Barra de progresso de cooldown (adicionada pelo JS, opcional/não-contratual) */
.btn-cooldown-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  transform-origin: left center;
  transform: scaleX(0);
}

/* ==========================================================================
   Estado vazio
   ========================================================================== */
.empty-state {
  text-align: center;
  padding: 56px 24px;
  color: var(--text-soft);
}
.empty-icon { font-size: 3rem; display: block; margin-bottom: 12px; }
.empty-msg {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.empty-hint { font-size: 0.9rem; color: var(--text-soft); }

/* ==========================================================================
   Rodapé / logout
   ========================================================================== */
.app-footer {
  text-align: center;
  padding: 18px 16px calc(24px + env(safe-area-inset-bottom));
}
.logout-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  padding: 10px 18px;
  min-height: var(--tap);
  border-radius: var(--radius-sm);
  transition: background var(--ease), color var(--ease);
}
.logout-btn:hover { color: var(--danger-text); background: var(--danger-soft); }
.logout-btn:active { transform: scale(0.98); }

/* ==========================================================================
   Toast de feedback (contrato JS: .feedback-toast / .success / .error / .hidden)
   ========================================================================== */
.feedback-toast {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(0);
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  z-index: 1000;
  max-width: calc(100% - 32px);
  text-align: center;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.25);
  animation: toast-in 0.28s ease;
}
.feedback-toast.hidden { display: none; }
.feedback-toast.success { background: var(--success); }
.feedback-toast.error { background: var(--danger); }
.feedback-toast.toast-out { animation: toast-out 0.3s ease forwards; }

@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes toast-out {
  from { opacity: 1; transform: translateX(-50%) translateY(0); }
  to { opacity: 0; transform: translateX(-50%) translateY(16px); }
}

/* ==========================================================================
   Banner offline (contrato JS: .offline-banner / .hidden)
   ========================================================================== */
.offline-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--danger);
  color: #fff;
  text-align: center;
  padding: calc(8px + env(safe-area-inset-top)) 8px 8px;
  font-size: 0.82rem;
  font-weight: 700;
  z-index: 2000;
}
.offline-banner.hidden { display: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   Alert de sucesso (login pós troca de senha)
   ========================================================================== */
.alert-success {
  background: #e9f9ef;
  border: 1px solid #b7ecc8;
  color: #1a7a3d;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 18px;
}

/* ==========================================================================
   Header: ações (status + perfil) e botão de voltar
   ========================================================================== */
.app-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.header-profile-btn,
.header-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: background var(--ease), transform var(--ease);
}

.header-profile-btn:hover,
.header-back:hover { background: rgba(255, 255, 255, 0.26); }
.header-profile-btn:active,
.header-back:active { transform: scale(0.94); }

.header-back { margin-right: 2px; }

/* ==========================================================================
   Tela de perfil
   ========================================================================== */
.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
}

.profile-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 16px;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-info-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-info-row dt {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.profile-info-row dd {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}

.profile-note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.4;
}

.profile-card-logout {
  padding: 14px 18px;
  text-align: center;
}

.logout-btn-block {
  width: 100%;
  color: var(--danger-text);
}
.logout-btn-block:hover { background: var(--danger-soft); }

/* ==========================================================================
   Barra de navegação inferior (bottom nav) - 3 abas
   ========================================================================== */
.bottom-nav {
  position: sticky;
  bottom: 0;
  z-index: 200;
  display: flex;
  align-items: stretch;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 10px rgba(15, 23, 42, 0.05);
  padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 56px;
  padding: 8px 4px;
  text-decoration: none;
  color: var(--text-soft);
  font-family: var(--font);
  transition: color var(--ease), background var(--ease);
}

.bottom-nav-item:hover { background: rgba(37, 99, 235, 0.05); }
.bottom-nav-item:active { background: rgba(37, 99, 235, 0.1); }

.bottom-nav-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.bottom-nav-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.bottom-nav-item.is-active {
  color: var(--brand);
}
.bottom-nav-item.is-active .bottom-nav-icon {
  transform: translateY(-1px);
}

/* Espaço para o conteúdo não ficar atrás da barra fixa. */
.app-shell { padding-bottom: 0; }
.app-main { padding-bottom: 20px; }

/* ==========================================================================
   Grade de cartões-ícone (pontos de acesso)
   ========================================================================== */
.cancela-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (min-width: 520px) {
  .cancela-grid { grid-template-columns: repeat(3, 1fr); }
}

.cancela-grid .cancela-card {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* O card inteiro é o botão de abrir (contrato JS: .btn-abrir[data-camera-id]). */
.gate-card {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 128px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  color: var(--text);
  font-family: var(--font);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 10px;
  transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
}

.gate-card:hover:not(:disabled) {
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(37, 99, 235, 0.35);
}
.gate-card:active:not(:disabled) { transform: scale(0.97); }

.gate-card:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.gate-card-icon {
  font-size: 2.4rem;
  line-height: 1;
}

.gate-card-nome {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  word-break: break-word;
  line-height: 1.15;
}

.gate-card-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-soft);
}

.gate-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.gate-status-dot.is-online { background: var(--action-strong); }
.gate-status-dot.is-offline { background: #c7cede; }

/* Estado "abrindo" no card (JS adiciona .is-loading e insere .btn-spinner). */
.gate-card.is-loading {
  border-color: rgba(37, 99, 235, 0.45);
}
.gate-card .btn-spinner {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(37, 99, 235, 0.25);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* Número de cooldown sobreposto ao card. */
.gate-card .btn-cooldown {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--brand);
  background: rgba(255, 255, 255, 0.82);
}
.gate-card .btn-cooldown.hidden { display: none; }

/* Barra de cooldown (JS insere .btn-cooldown-bar) na base do card. */
.gate-card .btn-cooldown-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 100%;
  background: var(--brand);
  transform-origin: left center;
  transform: scaleX(0);
}

/* O rótulo "Abrir" fica sempre oculto no card (o card já se rotula). */
.gate-card .btn-text { display: none; }

/* ==========================================================================
   Tela de histórico
   ========================================================================== */
.historico-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.historico-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-card);
}

.historico-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex: none;
}

.historico-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.historico-nome {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  word-break: break-word;
}

.historico-data {
  font-size: 0.82rem;
  color: var(--text-soft);
}

.historico-status {
  flex: none;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.historico-status-sucesso {
  background: rgba(34, 197, 94, 0.14);
  color: #157347;
}
.historico-status-falha {
  background: var(--danger-soft);
  color: var(--danger-text);
}

/* ==========================================================================
   Banner de instalação do PWA (pwa-install.js exibe conforme a plataforma)
   Fica acima da bottom-nav, discreto, sem bloquear a tela.
   ========================================================================== */
.pwa-install-banner {
  /* Fixo na viewport para funcionar em TODAS as telas (com ou sem bottom-nav),
     incluindo o login. z-index abaixo da bottom-nav (200) para nao cobri-la;
     o deslocamento inferior reserva o espaco da bottom-nav (~56px) + safe-area.
     No login (sem bottom-nav) sobra um respiro no rodape, sem sobrepor o card. */
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(64px + env(safe-area-inset-bottom));
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 12px 8px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card-hover);
}
.pwa-install-banner[hidden] { display: none; }

.pwa-install-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex: none;
}

.pwa-install-body {
  flex: 1;
  min-width: 0;
}

.pwa-install-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.2;
}

.pwa-install-text {
  font-size: 0.8rem;
  color: var(--text-soft);
  line-height: 1.3;
  margin-top: 2px;
}

.pwa-install-btn {
  flex: none;
  min-height: 44px;
  padding: 10px 16px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--ease), transform var(--ease);
}
.pwa-install-btn:hover { background: #1d4ed8; }
.pwa-install-btn:active { background: var(--brand-dark); transform: scale(0.97); }
.pwa-install-btn[hidden] { display: none; }

.pwa-install-close {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: none;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 999px;
  transition: background var(--ease), color var(--ease);
}
.pwa-install-close:hover { background: rgba(15, 23, 42, 0.05); color: var(--text); }

.pwa-install-done {
  flex: none;
  min-height: 44px;
  padding: 10px 12px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.pwa-install-done:hover { background: rgba(15, 23, 42, 0.05); color: var(--text); border-color: var(--text-soft); }
.pwa-install-done:active { background: rgba(15, 23, 42, 0.08); }
.pwa-install-done[hidden] { display: none; }
