/* SpaceGram 3.1 package "platform": every selector starts with the package prefix. */

/* sign-in screen: "Sign in with QR" under the password form */
.pf-qr-login {
  width: 100%;
  margin-top: 10px;
}

/* QR sheets */
.pf-qr .modal-sub { padding-bottom: 6px; }
.pf-qr-check {
  margin: 6px 20px 2px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.pf-qr-emojis {
  text-align: center;
  font-family: var(--font-emoji);
  font-size: 32px;
  letter-spacing: 8px;
  min-height: 44px;
}
.pf-qr-status {
  margin: 4px 20px 0;
  min-height: 20px;
  text-align: center;
  color: var(--text-2);
  font-size: 13px;
}
.pf-qr-status.pf-bad { color: var(--danger); }
.pf-qr-retry {
  display: block;
  margin: 8px auto 18px;
}
.pf-qr .qr-box canvas {
  width: min(232px, 62vw);
  height: auto;
  aspect-ratio: 1;
}

.pf-warn {
  margin: 4px 20px 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md, 12px);
  background: var(--accent-soft);
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.45;
}
.pf-warn.pf-warn-red {
  background: var(--danger-soft);
  color: var(--danger);
  font-weight: 600;
}
.pf-facts { margin: 0 20px 6px; }
.pf-kv {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.pf-kv:last-child { border-bottom: 0; }
.pf-kv-k { color: var(--muted); flex: none; }
.pf-kv-v { color: var(--text); text-align: right; min-width: 0; overflow-wrap: anywhere; }
.pf-tick {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 6px 20px 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.pf-tick input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.pf-approve .btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.pf-approve .qr-actions .btn-primary,
.pf-approve .qr-actions .btn-secondary { flex: 1 1 0; height: 44px; padding: 0 12px; }

.pf-rename {
  display: flex;
  gap: 10px;
  padding: 4px 20px 20px;
}
.pf-rename input { flex: 1; min-width: 0; }
.pf-rename .btn-primary { flex: none; width: auto; padding: 0 18px; }

/* privacy dashboard sections */
.pf-list { display: flex; flex-direction: column; }
.pf-device {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.pf-device:last-child { border-bottom: 0; }
.pf-device-main { flex: 1; min-width: 0; }
.pf-person { display: flex; align-items: center; gap: 10px; }
.pf-person-text { min-width: 0; }
.pf-device-name {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.pf-device-meta {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.pf-device-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; flex: none; }
.pf-small {
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
}
.btn-danger.pf-small { padding: 0 12px; }
.pf-chip {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 600;
  vertical-align: 1px;
}
.pf-device-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.pf-device-foot > button { flex: 1 1 220px; height: 44px; padding: 0 14px; }
.pf-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}
.pf-perm { font-size: 13px; font-weight: 600; color: var(--text-2); }
.pf-perm-granted { color: var(--accent); }
.pf-perm-denied { color: var(--danger); }

@media (max-width: 430px) {
  .pf-device { flex-wrap: wrap; }
  .pf-device-actions { width: 100%; justify-content: flex-start; }
  .pf-qr-emojis { font-size: 28px; letter-spacing: 6px; }
}

/* the shared modal head has no side padding of its own inside these sheets */
.pf-qr .sg-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 16px 6px 20px;
}
.pf-qr .sg-modal-head .modal-title { margin: 0; min-width: 0; font-size: 20px; line-height: 1.25; }
