/* New account elements only. Existing page styles remain untouched. */
.home-account { display:flex; align-items:center; gap:8px; }
.home-account-card { display:flex; align-items:center; gap:8px; }
.home-account-avatar { width:34px; height:34px; border-radius:50%; object-fit:cover; border:1px solid rgba(255,255,255,.35); background:#fff; }
.home-account-avatar-initials { width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:#fff; color:#0f2c59; font-weight:700; font-size:13px; }
.home-account-name { color:inherit; font-size:13px; font-weight:600; max-width:150px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.home-account-role { font-size:10px; font-weight:700; letter-spacing:.04em; opacity:.8; }
.home-account-actions { display:flex; gap:6px; align-items:center; }
.home-account-actions a, .home-account-actions button { font:inherit; }
@media (max-width: 980px) {
  .home-account-name { display:none; }
  .home-account-actions .btn-nav { padding-left:8px; padding-right:8px; }
}

/* Authenticated account microcopy. Existing visual rules are unchanged. */
.home-account-card{gap:10px;}
.home-account-meta{display:flex;flex-direction:column;gap:2px;min-width:0;}
.home-account-status{font-size:11px;color:#6b7a90;white-space:nowrap;}
.home-account-greeting{font-size:12px;color:#174a8b;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:230px;}
@media (max-width:700px){.home-account-greeting{max-width:170px;}}


.profile-security-card,.profile-history-card{margin-top:24px;padding:22px;border:1px solid var(--border-soft,#e4e9f0);border-radius:14px;background:var(--card-bg,#fff);box-shadow:var(--shadow-soft,0 4px 18px rgba(15,44,89,.06));}
.profile-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px;}
.profile-section-heading h2{margin:0;color:var(--text-dark,#1a2332);font-size:19px;}
.profile-section-heading p{margin:5px 0 0;color:var(--text-muted,#6b7c93);font-size:13px;line-height:1.5;}
.profile-secondary-btn{border:1px solid #0f2c59;background:#fff;color:#0f2c59;border-radius:8px;padding:10px 16px;font:600 14px/1.2 inherit;}
.profile-secondary-btn:hover{background:#eef2f8;}
.profile-inline-status{margin:10px 0 0;min-height:20px;font-size:13px;color:#5f6f84;}
.profile-inline-status.success{color:#177245}.profile-inline-status.error{color:#9a2b2b}
.history-count{white-space:nowrap;border:1px solid #d8e0ea;background:#f5f8fc;color:#0f2c59;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:700;}
.history-table-wrap{overflow-x:auto;}
.history-table{width:100%;border-collapse:separate;border-spacing:0;min-width:720px;font-size:13px;}
.history-table th,.history-table td{padding:11px 12px;border-bottom:1px solid var(--border-soft,#e4e9f0);text-align:left;vertical-align:middle;}
.history-table th{background:#f5f8fc;color:#0f2c59;font-size:12px;font-weight:700;}
.history-table th:first-child{border-top-left-radius:8px}.history-table th:last-child{border-top-right-radius:8px}
.history-table td:first-child,.history-table th:first-child{width:70px;text-align:center;}
.history-paper{display:block;margin-top:2px;color:#6b7c93;font-size:11px;}
.history-download{display:inline-flex;align-items:center;justify-content:center;padding:7px 10px;border-radius:7px;background:#0f2c59;color:#fff;font-size:12px;font-weight:700;white-space:nowrap;}
.history-download:hover{background:#1e5a96;}
.history-empty{text-align:center!important;color:#6b7c93;padding:24px!important}.history-empty.error{color:#9a2b2b;}
@media(max-width:700px){.profile-section-heading{flex-direction:column}.profile-security-card,.profile-history-card{padding:17px}.profile-secondary-btn{width:100%;}}
