/* Profile follows the reference's identity / contacts / tabs / details structure. */
main.profile-page { display: block; padding: 0; container-type: inline-size; }
.profile-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.profile-actions { display: flex; align-items: center; gap: 16px; }
.profile-actions a, .profile-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 6px 4px; border: 0; border-radius: 5px; color: var(--brand-blue-700); background: transparent; font-size: 13px; line-height: 1.5; white-space: nowrap; }
.profile-actions a:hover, .profile-actions button:hover { color: var(--ink); }
.profile-actions svg { width: 18px; height: 18px; flex-shrink: 0; }
.profile-more { position: fixed; width: 268px; max-width: calc(100vw - 32px); margin: 0; padding: 8px; border: 1px solid var(--brand-neutral-300); border-radius: 10px; background: var(--canvas); color: var(--ink); box-shadow: 0 12px 32px var(--menu-shadow); }
.profile-more a, .profile-more button { display: flex; align-items: center; gap: 12px; min-height: 44px; width: 100%; padding: 10px 12px; border: 0; border-radius: 5px; background: transparent; color: var(--ink); font-size: 14px; line-height: 1.5; text-align: left; }
.profile-more a:hover, .profile-more button:hover { color: var(--brand-blue-700); }
.profile-actions a:focus-visible, .profile-actions button:focus-visible, .profile-more a:focus-visible, .profile-more button:focus-visible { outline: none; color: var(--brand-blue-700); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.profile-actions a:focus-visible svg, .profile-actions button:focus-visible svg { border-bottom: 2px solid currentColor; }
.profile-more svg { width: 18px; height: 18px; flex-shrink: 0; }
.profile-more-settings { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.visibility-open { overflow: hidden; }
.visibility-dialog { width: min(920px,calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--canvas); color: var(--ink); }
.visibility-dialog[open] { display: flex; flex-direction: column; }
.visibility-dialog::backdrop { background: var(--overlay-backdrop); }
.visibility-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px 24px 20px 28px; flex-shrink: 0; }
.visibility-heading h2 { margin: 4px 0 10px; font-size: 24px; line-height: 1.3; letter-spacing: -.02em; }
.visibility-heading p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.visibility-form { display: flex; flex-direction: column; min-height: 0; }
.visibility-body { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 28px; min-height: 0; overflow-y: auto; padding: 0 28px 24px; overscroll-behavior-y: contain; }
.visibility-owner-note { margin: 0 0 16px; font-size: 13px; line-height: 1.6; }
.visibility-settings fieldset { margin: 0; padding: 0; border: 0; }
.visibility-settings fieldset + fieldset { margin-top: 24px; }
.visibility-settings legend { margin-bottom: 6px; padding: 0; font-size: 14px; font-weight: 700; line-height: 1.6; }
.visibility-option { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 66px; padding: 10px 0; cursor: pointer; }
.visibility-option + .visibility-option { border-top: 1px solid var(--line); }
.visibility-option strong { display: block; font-size: 14px; line-height: 1.5; font-weight: 600; }
.visibility-option small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.visibility-option input { appearance: none; position: relative; width: 44px; height: 26px; flex-shrink: 0; margin: 0; border: 1px solid var(--brand-neutral-600); border-radius: 16px; background: var(--brand-neutral-600); cursor: pointer; }
.visibility-option input::after { content: ''; position: absolute; width: 18px; height: 18px; top: 3px; left: 3px; border-radius: 50%; background: var(--brand-neutral-0); transition: transform 140ms ease; }
.visibility-option input:checked { background: var(--brand-blue-500); border-color: var(--brand-blue-500); }
.visibility-option input:checked::after { transform: translateX(18px); }
.visibility-option input:disabled { opacity: .5; cursor: default; }
.visibility-demo { margin: 18px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.visibility-preview { align-self: start; padding: 20px; border-radius: 10px; background: var(--brand-neutral-100); }
.visibility-preview h3 { margin: 0 0 20px; font-size: 16px; line-height: 1.5; font-weight: 650; }
.visibility-preview-person { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.visibility-preview-person .manager-avatar { width: 40px; height: 40px; font-size: 14px; background: var(--brand-blue-100); color: var(--brand-blue-700); }
.visibility-preview-person strong { font-size: 14px; line-height: 1.5; }
.visibility-preview-person p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.visibility-preview dl { display: grid; gap: 14px; margin: 0; }
.visibility-preview dt { font-size: 12px; line-height: 1.5; color: var(--muted); }
.visibility-preview dd { margin: 4px 0 0; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.visibility-preview dd.is-private { color: var(--muted); font-style: italic; }
.visibility-preview a { color: var(--brand-blue-700); text-decoration: underline; text-underline-offset: 3px; }
.visibility-footer { display: flex; justify-content: flex-end; gap: 12px; padding: 16px 28px; border-top: 1px solid var(--line); flex-shrink: 0; }
.visibility-footer button { min-height: 44px; padding: 10px 20px; border: 1px solid var(--brand-neutral-600); border-radius: 8px; background: var(--canvas); color: var(--ink); font-size: 14px; font-weight: 600; }
.visibility-footer .visibility-save { background: var(--ink); color: var(--brand-neutral-0); border-color: var(--ink); }
.visibility-cancel:hover { background: var(--selection); }
.visibility-save:hover { background: var(--brand-neutral-800); }
@media (max-width: 640px) {
  .visibility-heading { padding: 18px 14px 18px 20px; gap: 12px; }
  .visibility-heading h2 { font-size: 20px; }
  .visibility-heading p { font-size: 13px; }
  .visibility-body { grid-template-columns: 1fr; gap: 24px; padding: 0 20px 20px; }
  .visibility-footer { padding: 14px 20px; }
  .visibility-footer button { flex: 1; padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) { .visibility-option input::after { transition: none; } }
.workplace-carousel { grid-column: 2 / -1; grid-row: 2; min-width: 0; }
.workplace-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.workplace-label { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.carousel-controls { display: flex; align-items: center; gap: 8px; }
.carousel-controls[hidden] { display: none; }
.carousel-arrow { width: 44px; height: 44px; border: 1px solid var(--brand-neutral-600); border-radius: 50%; background: var(--brand-neutral-50); color: var(--ink); }
.carousel-arrow[aria-disabled=true] { opacity: .4; cursor: default; }
.carousel-arrow:not([aria-disabled=true]):hover { background: var(--brand-neutral-0); border-color: var(--ink); }
.carousel-counter { min-width: 42px; font-size: 13px; line-height: 1.5; color: var(--ink); text-align: center; font-variant-numeric: tabular-nums; }
.workplace-viewport { display: flex; align-items: stretch; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; cursor: grab; }
.workplace-viewport::-webkit-scrollbar { display: none; }
.workplace-slide { flex: 0 0 100%; min-width: 0; padding: 4px; scroll-snap-align: start; scroll-snap-stop: always; }
.workplace-viewport.is-dragging, .workplace-viewport.is-resizing { scroll-snap-type: none; }
.workplace-viewport.is-dragging { user-select: none; cursor: grabbing; }
.workplace-viewport:focus-visible { outline-offset: -4px; }
.workplace-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.workplace-title-row h2 { margin: 0; font-size: 16px; line-height: 1.6; font-weight: 650; }
.workplace-rate { flex-shrink: 0; margin: 0; font-size: 14px; line-height: 1.6; white-space: nowrap; }
.workplace-rate strong { margin-left: 6px; font-weight: 650; font-variant-numeric: tabular-nums; }
.workplace-entity { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.workplace-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 18px 0 0; }
.workplace-facts dt { color: var(--muted); font-size: 12px; line-height: 1.5; }
.workplace-facts dd { margin: 6px 0 0; font-size: 13px; line-height: 1.7; }
.workplace-facts a { display: inline-block; color: var(--brand-blue-700); text-decoration: underline; text-underline-offset: 3px; }
.workplace-employment { margin: 16px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
.profile-primary-note { margin: -14px 0 22px; color: var(--muted); font-size: 12px; line-height: 1.6; }
/* Brandbook pp. 16–17: gradient stops use approved Medical Blue shades. */
.employee-summary { --muted: var(--brand-neutral-700); padding: 22px 40px 0; background: var(--brand-blue-100); background-image: var(--profile-gradient); }
.profile-example { margin: 0; color: var(--brand-neutral-700); font-size: 12px; line-height: 1.5; }
.employee-identity { display: grid; grid-template-columns: 128px minmax(0,1fr) auto; align-items: start; gap: 12px 28px; }
.employee-avatar { grid-column: 1; grid-row: 1 / 3; width: 128px; height: 128px; flex-shrink: 0; display: grid; place-items: center; border: 1px solid var(--brand-neutral-300); border-radius: 50%; background: var(--brand-blue-100); color: var(--brand-blue-700); font-size: 42px; font-weight: 500; letter-spacing: -.04em; }
.employee-name { grid-column: 2; grid-row: 1; min-width: 0; }
.employee-name .employee-fullname { margin: 0; max-width: 640px; font-size: 32px; line-height: 1.18; font-weight: 700; letter-spacing: -.025em; }
.employee-number { grid-column: 3; grid-row: 1; display: flex; align-items: baseline; gap: 10px; white-space: nowrap; margin: 6px 0 0 8px; font-size: 12px; line-height: 1.5; }
.employee-number span { color: var(--muted); }
.employee-number strong { font-size: 15px; font-weight: 600; letter-spacing: .04em; }
.employee-contacts { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1.3fr) minmax(0,.8fr) minmax(0,1fr); gap: 24px; margin: 28px 0 0; padding: 20px 22px; border-radius: 10px; background: var(--canvas); }
.employee-contacts > div { min-width: 0; }
.employee-information-column h2 { font-family: Inter, sans-serif; margin: 0 0 14px; color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.6; }
.employee-information-value { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.employee-information-note { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.employee-phones, .employee-email { margin: 0; min-width: 0; }
.employee-phones { display: grid; align-content: start; gap: 10px; }
.employee-phone { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.employee-phone dd { order: -1; }
.employee-phone dd { font-variant-numeric: tabular-nums; }
.employee-messengers { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.messenger-list { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.messenger-item { position: relative; display: inline-flex; }
.messenger-link { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--ink); }
.messenger-link svg { width: 16px; height: 16px; }
.messenger-link:hover { background: var(--selection); }
.messenger-link[aria-disabled=true] { color: var(--brand-neutral-700); cursor: help; }
.messenger-tooltip { position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 2; width: max-content; max-width: 230px; padding: 7px 10px; border-radius: 5px; background: var(--ink); color: var(--brand-neutral-0); font-size: 12px; line-height: 1.5; pointer-events: none; visibility: hidden; opacity: 0; }
.messenger-item:hover .messenger-tooltip, .messenger-item:focus-within .messenger-tooltip { visibility: visible; opacity: 1; }

.employee-contacts dt, .manager-contacts dt { color: var(--muted); font-size: 12px; line-height: 1.6; }
.employee-contacts dd, .manager-contacts dd { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-height: 44px; margin: 2px 0 0; font-size: 14px; line-height: 1.6; }
.employee-email dd, .manager-contacts dd { justify-content: flex-start; gap: 8px; }
.employee-phone dd { min-height: 0; margin: 0; font-size: 13px; font-weight: 600; }
.employee-email > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.employee-email dd { order: -1; min-width: 0; min-height: 0; margin: 0; font-size: 13px; font-weight: 600; }
.employee-email dt { flex-shrink: 0; margin-top: 0; }
.employee-contacts dd > span, .manager-contacts dd > span { min-width: 0; overflow-wrap: anywhere; }
.employee-contacts small { display: block; font-size: 12px; color: var(--muted); }
.profile-copy-button { width: 44px; height: 44px; color: var(--muted); }
.profile-copy-button svg { width: 18px; height: 18px; }
.profile-sections { padding: 0 40px 36px; }
.profile-tabs-slot { margin-top: 20px; }
.profile-tabs-bar { --muted: var(--brand-neutral-700); min-width: 0; }
.profile-tabs-bar.is-docked { position: fixed; z-index: 4; top: var(--header-height); padding: 0 var(--profile-tabs-gutter,24px); border-bottom: 1px solid var(--brand-neutral-300); background: var(--brand-blue-100); background-image: var(--profile-gradient); }
html:has(body.profile-menu-docked) { scroll-padding-top: calc(var(--header-height) + var(--profile-dock-height,0px) + 12px); }
.profile-tabs { display: flex; gap: 24px; min-width: 0; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: var(--brand-neutral-300) transparent; border-bottom: 1px solid var(--line); padding-top: 6px; }
.profile-tabs [role=tab] { flex: 0 0 auto; min-height: 58px; padding: 14px 0; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; color: var(--muted); font-size: 14px; line-height: 1.5; font-weight: 500; white-space: nowrap; }
.profile-tabs [aria-selected=true] { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }
.profile-tabs [role=tab]:hover { color: var(--ink); }
.profile-tabs [role=tab]:focus-visible { outline-offset: -3px; border-radius: 3px; }
.profile-tabs-bar.is-docked .profile-tabs { border-bottom-color: transparent; }
.profile-tab-panel { padding-top: 32px; scroll-margin-top: 100px; }
.profile-tab-panel[hidden] { display: none; }
.profile-tab-panel:focus-visible { outline-offset: 6px; }
.profile-overview { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 48px; align-items: start; }
.profile-details { min-width: 0; }
.profile-overview h2, .profile-education h2, .profile-tab-placeholder h2 { margin: 0 0 22px; font-size: 20px; font-weight: 650; line-height: 1.4; letter-spacing: -.02em; }
.profile-education { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); min-width: 0; }
.education-heading { margin-bottom: 12px; }
.education-heading h2 { margin-bottom: 8px; }
.education-heading > p, .education-status { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.education-tabs { display: flex; gap: 24px; margin-bottom: 16px; overflow-x: auto; scrollbar-width: thin; }
.education-tabs button { flex-shrink: 0; min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; line-height: 1.6; }
.education-tabs button[aria-selected="true"] { color: var(--ink); font-weight: 750; }
.education-tabs button:hover { color: var(--brand-blue-700); }
.education-tabs button:focus-visible { outline: none; color: var(--brand-blue-700); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.education-panel { min-width: 0; }
.education-panel[hidden] { display: none; }
.education-panel:focus-visible { outline-offset: 6px; }
.education-grid { list-style: none; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 48px; margin: 0; padding: 0; }
.education-card { display: flex; align-items: flex-start; gap: 12px; min-width: 0; overflow-wrap: anywhere; }
.education-record-icon { width: 20px; height: 20px; margin-top: 1px; color: var(--ink); fill: currentColor; stroke: none; }
.education-record-copy { min-width: 0; }
.education-card h3 { margin: 0; font-family: Inter, sans-serif; font-size: 14px; line-height: 1.6; font-weight: 650; }
.education-card p { margin: 3px 0 0; font-size: 13px; line-height: 1.6; }
.education-card .education-card-title { margin-top: 8px; color: var(--ink); font-size: 14px; }
.education-card-context, .education-card-detail, .education-card-document { color: var(--muted); }
.education-card .education-card-document { margin-top: 8px; font-variant-numeric: tabular-nums; }
.education-empty { margin: 0; padding: 16px 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.education-skeleton { margin-top: 16px; }
.education-skeleton-line { display: block; height: 16px; margin-top: 16px; width: 85%; border-radius: 2px; background: var(--brand-neutral-100); }
.education-skeleton-line:last-child { width: 60%; }
.profile-facts { margin: 0; display: grid; gap: 24px; }
.profile-facts > div { display: grid; grid-template-columns: 156px minmax(0,1fr); gap: 20px; align-items: start; font-size: 14px; line-height: 1.7; }
.profile-facts dt { display: flex; align-items: center; gap: 6px; min-height: 28px; color: var(--muted); }
.profile-facts dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.profile-about-value { max-width: 65ch; white-space: pre-line; }
.profile-fact-note { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.profile-fact-edit { width: 28px; height: 28px; flex-shrink: 0; color: var(--muted); }
.profile-fact-edit svg { width: 15px; height: 15px; }
.profile-fact-edit:hover { background: transparent; color: var(--brand-blue-700); }
.profile-inline-action { border: 0; padding: 0; background: transparent; color: var(--brand-blue-700); font: inherit; text-align: left; }
.profile-inline-action:hover { text-decoration: underline; text-underline-offset: 3px; }
.profile-tag-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.profile-tag-list li { max-width: 100%; padding: 4px 9px; border-radius: 4px; background: var(--brand-neutral-100); font-size: 13px; line-height: 1.6; }
.profile-tag-list li[hidden] { display: none; }
.profile-tags-toggle { padding: 6px 0; margin-top: 4px; min-height: 32px; border: 0; color: var(--brand-blue-700); background: transparent; font-size: 13px; font-weight: 600; }
.profile-tags-toggle:hover { color: var(--ink); }
.details-editor-open { overflow: hidden; }
.profile-details-form { display: flex; flex-direction: column; min-height: 0; }
.profile-about-input { display: block; width: 100%; min-height: 180px; max-height: 42vh; resize: vertical; padding: 12px; border: 1px solid var(--brand-neutral-600); border-radius: 6px; background: var(--brand-neutral-0); color: var(--ink); font: inherit; font-size: 14px; line-height: 1.7; }
.profile-about-input:focus { outline: none; border: 2px solid var(--brand-blue-500); padding: 11px; }
.interest-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.interest-cloud button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; max-width: 100%; padding: 9px 12px; border: 1px solid var(--brand-neutral-300); border-radius: 6px; color: var(--ink); background: var(--brand-neutral-0); font-size: 14px; text-align: left; }
.interest-cloud button:hover { border-color: var(--brand-blue-500); }
.interest-cloud button:focus-visible { outline: none; border: 2px solid var(--brand-blue-500); padding: 8px 11px; }
.interest-cloud button:focus-visible span { text-decoration: underline; text-underline-offset: 3px; }
.interest-cloud button[aria-pressed=true] { border-color: var(--brand-blue-500); background: var(--brand-blue-50); color: var(--brand-blue-700); }
.interest-cloud svg { width: 16px; height: 16px; flex-shrink: 0; visibility: hidden; }
.interest-cloud button[aria-pressed=true] svg { visibility: visible; }
.interest-count { margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.manager-identity { display: flex; align-items: flex-start; gap: 14px; }
.manager-avatar { width: 48px; height: 48px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--brand-green-100); color: var(--brand-green-800); font-size: 16px; }
.manager-identity h3 { margin: 1px 0 5px; font-size: 15px; font-weight: 650; line-height: 1.5; }
.manager-identity p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--muted); }
.manager-contacts { margin: 24px 0 0 62px; display: grid; gap: 12px; }
.relations-tabs { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: thin; }
.relations-tabs [role=tab] { flex: 0 0 auto; padding: 8px 0; min-height: 44px; border: 0; background: transparent; color: var(--muted); font-size: 13px; line-height: 1.5; font-weight: 600; }
.relations-tabs [role=tab][aria-selected=true] { color: var(--ink); font-weight: 750; }
.relations-tabs [role=tab]:hover { color: var(--ink); }
.relations-tabs [role=tab]:focus-visible { outline-offset: -3px; }
.relations-context { margin: 4px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.manager-list { display: grid; gap: 12px; }
.manager-row summary { display: flex; align-items: flex-start; gap: 12px; min-height: 60px; padding: 8px 0; list-style: none; cursor: pointer; border-radius: 6px; }
.manager-row summary::-webkit-details-marker { display: none; }
.manager-row summary:hover { background: var(--brand-neutral-50); }
.manager-row summary .manager-avatar { width: 36px; height: 36px; font-size: 13px; }
.manager-row:nth-child(2) .manager-avatar { background: var(--brand-blue-100); color: var(--brand-blue-700); }
.manager-row:nth-child(3) .manager-avatar { background: var(--brand-neutral-200); color: var(--brand-neutral-700); }
.manager-row-copy { min-width: 0; flex: 1; }
.manager-row-copy strong { display: block; margin-bottom: 3px; font-size: 14px; line-height: 1.5; font-weight: 650; }
.manager-row-copy > span { display: block; color: var(--muted); font-size: 12px; line-height: 1.6; }
.manager-row-copy small { display: block; margin-top: 4px; color: var(--brand-blue-700); font-size: 11px; line-height: 1.5; }
.manager-chevron { width: 18px; height: 18px; margin-top: 9px; color: var(--muted); transition: transform 140ms ease; }
.manager-row[open] .manager-chevron { transform: rotate(180deg); }
.manager-extra { margin: 8px 0 12px 48px; }
.manager-extra > p { margin: 0 0 12px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.manager-extra .manager-contacts { margin: 0; gap: 8px; }
.manager-extra .manager-contacts dd { font-size: 13px; }
.relations-empty p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.profile-relations [hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .manager-chevron { transition: none; } }
.profile-tab-placeholder { min-height: 250px; padding: 8px 0 32px; }
.profile-tab-placeholder h2 { margin-bottom: 10px; }
.profile-tab-placeholder p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.profile-link[aria-current=page] .profile-avatar { border-color: var(--brand-neutral-500); }
.profile-avatar-initials { font-size: 18px; font-weight: 600; }
@container (max-width: 950px) {
  .employee-summary { padding-inline: 32px; }
  .profile-sections { padding-inline: 32px; }
  .employee-identity { grid-template-columns: 104px minmax(0,1fr); gap: 12px 20px; }
  .employee-avatar { width: 104px; height: 104px; font-size: 36px; grid-row: 1 / 4; }
  .employee-name .employee-fullname { font-size: 28px; line-height: 1.3; }
  .employee-number { grid-column: 2; grid-row: 2; margin: 0; display: flex; gap: 12px; align-items: baseline; }
  .employee-number strong { margin-top: 0; font-size: 13px; }
  .workplace-carousel { grid-row: 3; }
  .workplace-title-row { display: block; }
  .workplace-rate { margin-top: 8px; }
  .workplace-facts { grid-template-columns: 1fr; gap: 14px; }
  .employee-contacts { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 28px; }
  .profile-overview { grid-template-columns: 1fr; gap: 32px; }
  .profile-manager { border-top: 1px solid var(--line); padding-top: 28px; }
  .manager-contacts { max-width: 400px; }
}
@container (max-width: 1100px) {
  .profile-overview { grid-template-columns: 1fr; gap: 36px; }
  .profile-manager { border-top: 1px solid var(--line); padding-top: 24px; }
}
@container (max-width: 550px) {
  .education-grid { grid-template-columns: minmax(0,1fr); }
  .profile-toolbar { flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
  .profile-toolbar .profile-example { flex: 0 0 100%; }
  .profile-actions { margin-left: auto; gap: 8px; }
  .profile-actions a { width: 44px; }
  .profile-actions a > span { display: none; }
  .profile-actions button { padding-inline: 8px; }
  .employee-summary { padding: 20px 24px 0; }
  .profile-example { font-size: 11px; }
  .employee-identity { grid-template-columns: 72px minmax(0,1fr); gap: 16px; }
  .employee-avatar { width: 72px; height: 72px; font-size: 26px; grid-row: 1; }
  .employee-name .employee-fullname { font-size: 24px; }
  .employee-number { grid-column: 1 / -1; grid-row: 2; }
  .workplace-carousel { grid-column: 1 / -1; grid-row: 3; }
  .workplace-title-row h2 { font-size: 15px; }
  .employee-contacts { grid-template-columns: 1fr; gap: 16px; padding: 16px; margin-top: 24px; }
  .employee-information-column + .employee-information-column { border-top: 1px solid var(--line); padding-top: 16px; }
  .messenger-link { width: 44px; height: 44px; }
  .messenger-tooltip { max-width: 190px; }
  .messenger-item:last-child .messenger-tooltip { left: auto; right: 0; }
  .profile-sections { padding: 0 24px 32px; }
  .profile-tabs { gap: 24px; }
  .profile-tab-panel { padding-top: 24px; }
  .profile-facts > div { grid-template-columns: 1fr; gap: 5px; }
  .profile-facts { gap: 20px; }
  .profile-tags-toggle { min-height: 44px; }
  .profile-fact-edit { width: 44px; height: 44px; }
  .profile-inline-action { min-height: 44px; }
  .manager-contacts { margin-left: 0; }
}

.contact-column-heading { display: flex; align-items: center; gap: 8px; min-height: 32px; margin: -6px 0 8px; }
.contact-column-heading h2 { margin: 0; }
.contact-edit-button { width: 32px; height: 32px; flex-shrink: 0; color: var(--muted); }
.contact-edit-button svg { width: 15px; height: 15px; }
.employee-email { display: grid; gap: 4px; }
.employee-email { margin-top: -6px; }
.employee-email dd span { overflow-wrap: anywhere; }
.employee-email .profile-copy-button { flex-shrink: 0; width: 32px; height: 32px; }
@container (max-width: 550px) { .contact-edit-button { width: 44px; height: 44px; } .contact-column-heading { margin-top: -6px; } }

@container (max-width: 550px) { .employee-email .profile-copy-button { width: 44px; height: 44px; } }
