/* ─── View-specific ──────────────────────────────────────────── */

/* Lock screen */
.lock-screen {
  position: fixed; inset: 0;
  background: var(--bg-app);
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-5);
  transition: background var(--t-theme);
}

.lock-card {
  background: var(--bg-card);
  border-radius: var(--r-2xl);
  border: 1px solid var(--border-card);
  padding: var(--sp-12) 52px;
  width: 100%; max-width: 400px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  transition: background var(--t-theme);
}

.lock-logo {
  background: var(--bg-sidebar);
  color: #fff;
  font-size: var(--fs-lg); font-weight: 700; letter-spacing: 3px;
  padding: 9px 26px; border-radius: var(--r-md);
  display: inline-block; margin-bottom: var(--sp-6);
}

.lock-title    { font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.lock-subtitle { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: var(--sp-6); }

.lock-input {
  width: 100%; height: 46px;
  padding: 0 var(--sp-4);
  border: 1.5px solid var(--border-default);
  border-radius: var(--r-lg);
  font-size: 22px; letter-spacing: 10px; text-align: center;
  outline: none;
  color: var(--text-primary);
  background: var(--bg-input);
  transition: border-color var(--t-normal), background var(--t-theme);
  margin-bottom: var(--sp-2);
}
.lock-input:focus { border-color: var(--border-focus); }

.lock-error { font-size: var(--fs-sm); color: var(--c-red-600); min-height: 18px; margin-bottom: var(--sp-3); }
.lock-hint  { font-size: var(--fs-xs); color: var(--text-muted); margin-top: var(--sp-4); }
.lock-hint strong { color: var(--text-secondary); }

/* Contact avatar */
.contact-avatar {
  width: 48px; height: 48px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--c-blue-500), var(--c-blue-600));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; color: #fff;
  flex-shrink: 0;
}

/* PIN modal input */
.pin-form-input {
  font-size: 22px !important;
  letter-spacing: 10px !important;
  text-align: center !important;
}

/* ── Sign-in screen (replaces lock screen) ───────────────────── */
.lock-card {
  gap: var(--sp-4);
}

/* ── User management rows ────────────────────────────────────── */
.user-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 9px var(--sp-3);
  background: var(--bg-muted);
  border-radius: var(--r-md);
  transition: background var(--t-theme);
}

.user-row__avatar {
  width: 30px;
  height: 30px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--c-blue-500), var(--c-blue-600));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.user-row__email {
  flex: 1;
  font-size: var(--fs-base);
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-row__badge {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--badge-amber-text);
  background: var(--c-amber-50);
  padding: 2px 8px;
  border-radius: var(--r-full);
  flex-shrink: 0;
}

.user-row__remove {
  height: 26px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  font-size: var(--fs-xs);
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--c-red-100);
  background: var(--c-red-50);
  color: var(--c-red-700);
  transition: all var(--t-fast);
  flex-shrink: 0;
}
.user-row__remove:hover {
  background: var(--c-red-600);
  color: #fff;
  border-color: var(--c-red-600);
}
