.consultant-profile {
    --profile-accent: var(--admin-accent, #510568);
    --profile-border: var(--admin-border, #e3ddeb);
    --profile-muted: var(--admin-muted, #667587);
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: var(--admin-text, #172b3a);
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}
.consultant-profile *, .consultant-profile *::before, .consultant-profile *::after { box-sizing: border-box; }
.admin-body .admin-modal-dialog:has(.consultant-profile) { width: min(1000px, 100%); }
.consultant-profile h2, .consultant-profile h3, .consultant-profile p { margin: 0; }
.consultant-profile a { color: var(--profile-accent); overflow-wrap: anywhere; }
.consultant-profile .btn, .consultant-profile .btn-little { width: auto; height: auto; min-height: 36px; padding: 8px 12px; margin: 0; white-space: normal; text-decoration: none; font-family: inherit; }
.consultant-profile-hero { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; padding: 28px; border: 1px solid var(--profile-border); border-radius: 10px; background: linear-gradient(120deg, #f6eef9, #fff); }
.consultant-profile .consultant-profile-photo { display: block; width: 112px; height: 112px; flex-shrink: 0; object-fit: cover; border: 4px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px var(--profile-border); }
.consultant-profile-heading { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
.consultant-profile-heading h2 { margin: 4px 0; font-size: 26px; line-height: 1.2; }
.consultant-profile .consultant-profile-eyebrow { color: var(--profile-accent); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.consultant-profile-contact { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; font-size: 13px; }
.consultant-profile-copy { align-self: flex-start; }
.consultant-profile-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.consultant-profile-actions form { margin: 0; padding: 0; }
.consultant-profile-overview { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px; }
.consultant-profile-card { min-width: 0; padding: 24px; border: 1px solid var(--profile-border); border-radius: 10px; background: #fff; }
.consultant-profile-card > h2, .consultant-profile-section-heading h2 { margin-bottom: 16px; font-size: 18px; }
.consultant-profile-details { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 12px; margin: 0; font-size: 13px; }
.consultant-profile-details dt { color: var(--profile-muted); }
.consultant-profile-details dd { margin: 0; overflow-wrap: anywhere; }
.consultant-profile-description p { white-space: pre-wrap; overflow-wrap: anywhere; }
.consultant-profile-section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.consultant-profile-section-heading > span, .consultant-profile-muted { color: var(--profile-muted); font-size: 12px; }
.consultant-profile-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.consultant-profile-group { min-width: 0; padding: 16px; border: 1px solid var(--profile-border); border-radius: 8px; background: #faf8fc; }
.consultant-profile-group h3 { margin-bottom: 12px; font-size: 14px; overflow-wrap: anywhere; }
.consultant-profile-skills { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.consultant-profile-skill { display: inline-flex; align-items: flex-start; gap: 8px; padding: 6px 8px; border: 1px solid #e5d7ec; border-radius: 5px; background: #fff; overflow-wrap: anywhere; font-size: 13px; }
.consultant-profile-skill strong { padding: 0 5px; border-radius: 3px; background: var(--profile-accent); color: #fff; flex-shrink: 0; }
.consultant-profile-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.consultant-profile-chart { min-width: 0; padding: 16px; border: 1px solid var(--profile-border); border-radius: 8px; background: #fff; }
.consultant-profile-chart h3 { margin-bottom: 16px; font-size: 13px; color: var(--profile-muted); }
.consultant-profile-chart > div { position: relative; width: 100%; height: 240px; }
.consultant-profile-certificate-chart { max-width: 320px; margin-top: 20px; }
.consultant-profile-certificate { padding: 12px 0; border-top: 1px solid var(--profile-border); }
.consultant-profile-certificate > strong { display: flex; align-items: flex-start; gap: 8px; overflow-wrap: anywhere; }
.consultant-profile-certificate > strong .material-symbols-outlined { color: var(--profile-accent); font-size: 20px; }
.consultant-profile-certificate-details { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--profile-muted); }
.consultant-profile-trend-chart { min-width: 0; width: 100%; margin-bottom: 20px; }
@media (max-width: 760px) {
    .consultant-profile-overview, .consultant-profile-charts { grid-template-columns: minmax(0, 1fr); }
    .consultant-profile-hero { gap: 16px; padding: 20px; }
    .consultant-profile .consultant-profile-photo { width: 96px; height: 96px; }
    .consultant-profile-card { padding: 16px; }
}
@media (max-width: 420px) {
    .consultant-profile-heading { flex-basis: 100%; }
    .consultant-profile-heading h2 { font-size: 22px; }
    .consultant-profile-details { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .consultant-profile-details dd { margin-bottom: 10px; }
    .consultant-profile-actions > .btn, .consultant-profile-actions > form { width: 100%; }
    .consultant-profile-actions form .btn { width: 100%; }
}
