.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.install-button {
  border: 0;
  background: var(--blue);
  color: white;
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 12px;
  font-weight: 900;
}

body { min-height: 100dvh; }
.login {
  min-height: 100dvh;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}
#app {
  padding-top: calc(26px + env(safe-area-inset-top));
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
}
.toast {
  bottom: calc(24px + env(safe-area-inset-bottom));
  max-width: calc(100% - 32px);
  text-align: center;
}

.user-panel {
  background: white;
  border: 1px solid #dfe5eb;
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 18px;
}
.panel-title { display: flex; align-items: center; justify-content: space-between; }
.panel-title h2 { margin: 3px 0 12px; }
.user-form { display: grid; grid-template-columns: 1fr 1fr 180px; gap: 10px; }
.user-form label { display: grid; gap: 6px; font-size: 12px; font-weight: 800; }
.user-form input,.user-form select { border: 1px solid #dce2e8; border-radius: 11px; padding: 11px; background: white; }
.user-form .primary { margin: 0; align-self: end; }
.user-form .error { grid-column: 1/-1; }
.user-list { display: grid; gap: 8px; margin-top: 12px; }
.user-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; background: #f4f6f8; }
.user-row-actions { display: flex; align-items: center; gap: 9px; }
.edit-user,.secondary { border: 1px solid #dce2e8; background: white; color: #253044; border-radius: 10px; padding: 9px 11px; font-weight: 800; }
.active-field { align-self: end; display: flex!important; grid-auto-flow: column; justify-content: start; align-items: center; }
.active-field input { width: 18px; height: 18px; }
.user-row.inactive { opacity: .55; }
.role-badge { color: #5f6b7a; font-size: 12px; font-weight: 800; }
footer { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; color: #697586; font-size: 12px; }
footer button { border: 0; background: transparent; color: var(--red); font-weight: 800; }

@media (max-width: 520px) {
  #app { padding-left: 14px; padding-right: 14px; }
  .install-button { padding: 10px; }
  .card { padding: 15px; }
  .actions button { min-height: 46px; }
  .login-card { padding: 24px; }
  header { align-items: flex-start; }
  .header-actions { flex-wrap: wrap; justify-content: flex-end; }
  .user-form { grid-template-columns: 1fr; }
}
