.self-profile {max-width:780px;margin:0 auto;padding:8px 0 28px;color:inherit;text-align:left;user-select:text}
.self-profile h2 {font-size:1.35rem;font-weight:800;margin:0 0 10px}
.self-profile h3 {font-size:1.05rem;font-weight:700;margin:0 0 12px}
.self-profile p {font-size:.875rem;line-height:1.5;margin:8px 0}
.profile-card {padding:18px;margin:16px 0;border:1px solid #64748b;border-radius:16px;background:#1e293b;color:#f1f5f9;min-width:0}
.profile-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}
.self-profile label {display:block;font-size:.875rem;font-weight:600;min-width:0}
.self-profile input {box-sizing:border-box;display:block;width:100%;min-width:0;max-width:100%;padding:11px;margin-top:5px;font:inherit;font-size:16px;color:#f1f5f9;background:#0f172a;border:1px solid #64748b;border-radius:8px}
.self-profile input[readonly] {opacity:.75}
.self-profile button:not(.password-visibility-toggle),.profile-close {padding:11px 18px;border-radius:9px;background:#2563eb;color:white;font-weight:700;margin-top:14px;cursor:pointer}
.self-profile button:disabled {opacity:.55;cursor:wait}
.profile-photo {display:block;width:120px;height:150px;object-fit:cover;border-radius:10px;margin:12px 0;background:#334155}
.profile-status {min-height:24px;overflow-wrap:anywhere}
.profile-status[data-error=true] {color:#fca5a5}
.profile-dialog {width:min(820px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:20px;border:1px solid #64748b;border-radius:18px;background:#0f172a;color:#f1f5f9;overflow-y:auto}
.profile-dialog::backdrop {background:#020617bb}
.profile-close {display:block;margin:0 0 12px auto;background:#334155}
html.light .profile-card,html[data-theme=light] .profile-card {background:#fff;color:#0f172a;border-color:#cbd5e1}
html.light .self-profile input,html[data-theme=light] .self-profile input {background:#f8fafc;color:#0f172a;border-color:#94a3b8}
@media(max-width:640px){.profile-grid{grid-template-columns:minmax(0,1fr)}.profile-card{padding:14px}.profile-dialog{padding:12px}}

.profile-photo[hidden]{display:none}
html[data-theme=light] .profile-dialog{background:#f8fafc;color:#0f172a}

.self-profile .password-control {margin-top:5px}
.self-profile .password-control > input {margin-top:0}

.self-profile [data-profile-password] > label + label {margin-top:14px}
.self-profile button[type=submit] {min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.self-profile input[type=date] {min-height:48px;color-scheme:dark}
.self-profile input[type=file] {font-weight:400;font-size:14px;padding:8px}
.self-profile input[type=file]::file-selector-button {min-height:36px;max-width:100%;padding:6px 10px;margin-right:8px;border:1px solid #64748b;border-radius:6px;background:#334155;color:#f1f5f9;font:inherit;cursor:pointer}
.profile-file-name {overflow-wrap:anywhere}
.profile-file-name:empty {display:none}
html.light .profile-status[data-error=true],html[data-theme=light] .profile-status[data-error=true] {color:#b91c1c}
html.light .self-profile input[type=date],html[data-theme=light] .self-profile input[type=date] {color-scheme:light}
html.light .self-profile input[type=file]::file-selector-button,html[data-theme=light] .self-profile input[type=file]::file-selector-button {background:#e2e8f0;color:#0f172a;border-color:#94a3b8}
@media(max-width:640px){.self-profile button[type=submit]{width:100%}}

.profile-overview{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin-top:18px}
.profile-overview>.profile-card{margin:0}
.profile-section-kicker{font-size:.68rem;letter-spacing:.1em;font-weight:800;color:#67e8f9;margin-bottom:7px}
.profile-badge{background:#263451;border:1px solid #94a3b8;border-radius:12px;overflow:hidden;max-width:360px;margin:0 auto;color:#fff}
.profile-badge-heading{padding:11px 12px 5px;font-size:.64rem;font-weight:800;letter-spacing:.05em}
.profile-badge-body{display:flex;gap:12px;padding:8px 12px 12px;align-items:stretch}
.profile-avatar{width:85px;min-width:85px;height:112px;border:1px solid #cbd5e1;border-radius:6px;background:#e2e8f0;position:relative;overflow:hidden}
.profile-avatar [data-profile-placeholder]{display:flex;align-items:center;justify-content:center;height:100%;color:#64748b}
.profile-avatar svg{width:56px;height:72px}
.profile-avatar .profile-photo{width:100%;height:100%;object-fit:cover;border-radius:0;margin:0}
.profile-avatar [hidden]{display:none}
.profile-badge-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px;align-items:flex-start;overflow-wrap:anywhere}
.profile-badge-info>strong{font-size:.95rem;line-height:1.2}
.profile-badge-info>span{font-size:.7rem;line-height:1.3}
.profile-badge-info>img{width:46px;height:46px;object-fit:contain;align-self:flex-end;margin-top:auto}
.profile-badge-brand{background:#fff;color:#172036;padding:11px 8px;text-align:center;font-weight:900;font-size:.85rem;letter-spacing:.03em}
.self-profile .profile-help{color:#cbd5e1;font-size:.78rem;line-height:1.45}
.profile-training-dates{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;margin:16px 0}
.profile-training-dates dt{font-size:.72rem;color:#cbd5e1}
.profile-training-dates dd{font-size:1rem;font-weight:800;margin:5px 0;overflow-wrap:anywhere}
.profile-training-count{display:flex;align-items:center;gap:12px;border-top:1px solid #64748b;padding-top:13px;margin-top:14px;font-size:.8rem;line-height:1.4}
.profile-training-count>strong{font-size:1.8rem;white-space:nowrap;color:#67e8f9}
.profile-training-count>strong>span{font-size:1rem;color:#cbd5e1}
.self-profile .profile-training-count p{font-size:.75rem;margin:3px 0 0}
.profile-training-sessions{display:flex;flex-wrap:wrap;gap:7px;list-style:none;padding:0;margin:12px 0 0}
.profile-training-sessions li{padding:5px 8px;background:#0f172a;border:1px solid #475569;border-radius:7px;font-size:.7rem;font-weight:600}
.profile-documents{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}
.profile-document{display:flex;flex-direction:column;gap:6px;padding:12px;border:1px solid #475569;border-radius:10px;background:#0f172a;min-width:0;overflow-wrap:anywhere}
.profile-document>span{font-size:.78rem;line-height:1.35;color:#cbd5e1}
.profile-document>strong{font-size:1rem}.profile-document>small{font-size:.7rem;color:#a7f3d0}
.profile-document-expired{border-color:#f87171}.profile-document-expired>small,.self-profile .profile-due-overdue{color:#fca5a5}
html.light .profile-help,html[data-theme=light] .profile-help,html.light .profile-training-dates dt,html[data-theme=light] .profile-training-dates dt{color:#475569}
html.light .profile-section-kicker,html[data-theme=light] .profile-section-kicker,html.light .profile-training-count>strong,html[data-theme=light] .profile-training-count>strong{color:#0e7490}
html.light .profile-training-count>strong>span,html[data-theme=light] .profile-training-count>strong>span{color:#475569}
html.light .profile-document,html[data-theme=light] .profile-document,html.light .profile-training-sessions li,html[data-theme=light] .profile-training-sessions li{background:#f8fafc;border-color:#cbd5e1}
html.light .profile-document>span,html[data-theme=light] .profile-document>span{color:#475569}
html.light .profile-document>small,html[data-theme=light] .profile-document>small{color:#047857}
html.light .profile-document-expired,html[data-theme=light] .profile-document-expired{border-color:#dc2626}
html.light .profile-document-expired>small,html[data-theme=light] .profile-document-expired>small,html.light .self-profile .profile-due-overdue,html[data-theme=light] .self-profile .profile-due-overdue{color:#b91c1c}
@media(max-width:640px){.profile-overview{grid-template-columns:minmax(0,1fr)}.profile-documents{grid-template-columns:minmax(0,1fr)}.profile-document{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center}.profile-document>small{grid-column:2}.profile-badge{width:100%}.profile-badge-info>strong{font-size:1rem}}
