.identity-card, .personnel-panel {
  background: var(--panel, #213743);
  border: 1px solid var(--border, #38505d);
  border-radius: 14px;
  color: var(--text, #fff);
}
.identity-card { padding: clamp(24px, 5vw, 36px); }
.identity-card h1, .personnel-heading h1 {
  margin: 0; font-size: clamp(26px, 4vw, 34px); line-height: 1.15; letter-spacing: -.045em;
}
.identity-description, .personnel-heading p, .personnel-panel > p {
  margin: 10px 0 24px; line-height: 1.55; color: var(--muted, #a9bdc9); font-size: .92rem;
}
.identity-description strong { color: var(--text, #fff); overflow-wrap: anywhere; }
.identity-form { display: grid; gap: 18px; }
.identity-form label, .issued-label {
  display: grid; gap: 8px; color: var(--text,#fff); font-size: .86rem; font-weight: 600;
}
.identity-form input:not([type=hidden]), .issued-label input {
  appearance: none; display: block; width: 100%; box-sizing: border-box;
  padding: 12px 13px; border-radius: 7px; background: var(--bg, #1a2c38);
  border: 1px solid var(--border, #38505d); color: var(--text, #fff); font: inherit;
}
.identity-form input:focus, .issued-label input:focus { outline: 2px solid var(--accent, #f5b800); outline-offset: 2px; }
.identity-form small { color: var(--muted, #a9bdc9); font-weight: 400; }
.identity-form .identity-code { font-variant-numeric: tabular-nums; letter-spacing: .24em; }
.identity-primary, .personnel-button {
  cursor: pointer; font: inherit; font-weight: 700; font-size: .87rem;
  border: 0; border-radius: 7px; padding: 12px 16px;
}
.identity-primary {
  background: var(--accent, #f5b800); color: #181b1d; display: flex; align-items: center; justify-content: space-between;
}
.identity-primary:hover { filter: brightness(1.07); }
.identity-secondary-link { display: inline-block; margin-top: 20px; color: var(--text, #fff); font-weight: 600; font-size: .86rem; text-underline-offset: 3px; }
.identity-error { color: #ffb4b4; padding: 10px 12px; background: #412b30; border-radius: 7px; }
.identity-authenticator { background: var(--bg, #1a2c38); padding: 16px; border-radius: 8px; font-size: .85rem; }
.identity-authenticator img { display: block; width: 176px; height: 176px; max-width: 100%; margin: 12px auto; image-rendering: pixelated; }
.identity-authenticator summary, .personnel-access summary { cursor: pointer; }
.identity-authenticator code { overflow-wrap: anywhere; font-size: .85rem; }
.personnel-heading { margin-bottom: 24px; }
.personnel-heading h1 { font-weight: 750; }
.personnel-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(250px,1fr); gap: 20px; align-items: start; }
.personnel-list { display: grid; gap: 20px; }
.personnel-panel { padding: 22px; min-width: 0; }
.personnel-panel h2 { margin: 0; font-size: 1.05rem; line-height: 1.35; }
.personnel-panel > .personnel-empty { margin: 18px 0 0; }
.personnel-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 16px 0 0; margin-top: 16px; border-top: 1px solid var(--border, #38505d);
}
.personnel-summary { flex: 1 1 150px; display: flex; align-items: center; gap: 10px; min-width: 0; overflow-wrap: anywhere; }
.personnel-summary strong, .personnel-status span { display: block; font-size: .89rem; }
.personnel-row small { display: block; margin-top: 3px; color: var(--muted, #a9bdc9); font-size: .78rem; }
.personnel-row .personnel-assigned { color: var(--accent, #f5b800); }
.personnel-avatar {
  flex: 0 0 36px; height: 36px; display: grid; place-items: center;
  border-radius: 10px; background: var(--panel-2, #2b4656); color: var(--text, #fff); font-weight: 700;
}
.personnel-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.personnel-access, .personnel-button { font-size: .8rem; }
.personnel-button { background: var(--panel-2, #2b4656); color: var(--text, #fff); border: 1px solid var(--border, #38505d); padding: 7px 11px; }
.personnel-button:hover { border-color: var(--muted, #a9bdc9); }
.personnel-danger { color: #ffb4b4; }
.issued-invitation { max-width: 620px; }
@media (max-width: 820px) { .personnel-layout { grid-template-columns: 1fr; } }
