.employee-profile-workspace {
    --ep-ink: var(--os-color-ink);
    --ep-muted: var(--os-color-text-secondary);
    --ep-line: var(--os-color-border);
    --ep-surface: var(--os-color-surface);
    --ep-soft: var(--os-color-surface-muted);
    --ep-accent: var(--os-color-accent-text, var(--os-color-primary));
    --ep-accent-soft: var(--os-color-primary-softer);
    width: 100%;
    min-width: 0;
    color: var(--ep-ink);
    font: 14px/1.55 var(--os-font-family);
    container-type: inline-size;
    container-name: employee-profile;
}
.employee-profile-workspace *, .employee-profile-workspace *::before, .employee-profile-workspace *::after { box-sizing: border-box; }
.employee-profile-workspace :is(h1,h2,h3,p,dl,dd) { margin: 0; }
.employee-profile-workspace a { color: inherit; text-decoration: none; }
.employee-profile-workspace [hidden] { display: none !important; }
.employee-profile-workspace :is(a,button,summary,[role="tabpanel"]):focus-visible { outline: 3px solid var(--os-color-focus); outline-offset: 3px; }
.employee-profile-workspace :is(svg,i) { flex-shrink: 0; }
.employee-profile-workspace .ep-back { display: inline-flex; gap: 8px; align-items: center; min-height: 36px; margin-bottom: 18px; color: var(--ep-muted); font-size: 12px; }
.employee-profile-workspace .ep-back:hover { color: var(--ep-accent); }
.employee-profile-workspace .ep-hero { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding-bottom: 28px; }
.employee-profile-workspace .ep-identity { display: flex; align-items: center; gap: 17px; min-width: 0; }
.employee-profile-workspace .ep-avatar { position: relative; display: grid; flex: 0 0 72px; width: 72px; height: 72px; place-items: center; border: 1px solid var(--os-color-primary-border); border-radius: 18px; background: var(--ep-accent-soft); color: var(--ep-accent); font-size: 25px; font-weight: 600; }
.employee-profile-workspace .ep-avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.employee-profile-workspace .ep-avatar > i { position: absolute; right: -3px; bottom: 2px; width: 16px; height: 16px; border: 3px solid var(--ep-surface); border-radius: 50%; background: var(--employee-agenda-color); }
.employee-profile-workspace .ep-heading { min-width: 0; }
.employee-profile-workspace .ep-eyebrow { display: block; margin-bottom: 5px; color: var(--ep-muted); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.employee-profile-workspace .ep-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.employee-profile-workspace .ep-name h1 { color: var(--ep-ink); font-size: clamp(26px, 2.8vw, 36px); font-weight: 650; letter-spacing: -.04em; line-height: 1.2; overflow-wrap: anywhere; }
.employee-profile-workspace .ep-heading > p { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 7px; color: var(--ep-muted); font-size: 13px; }
.employee-profile-workspace .ep-role { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; }
.employee-profile-workspace :is(.ep-status,.ep-pill) { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 5px; background: var(--ep-soft); color: var(--ep-muted); font-size: 11px; font-weight: 500; line-height: 1.4; }
.employee-profile-workspace :is(.ep-status.is-active,.ep-pill.is-positive) { background: color-mix(in srgb, var(--os-color-success) 8%, var(--ep-surface)); color: var(--os-color-success); }
.employee-profile-workspace .ep-status.is-inactive { background: var(--os-color-warning-soft); color: var(--os-color-warning); }
.employee-profile-workspace .ep-toolbar { display: flex; flex: 0 0 auto; flex-wrap: wrap; align-items: center; gap: 8px; }
.employee-profile-workspace .ep-button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; padding: 10px 14px; border: 1px solid var(--ep-line); border-radius: 9px; background: var(--ep-surface); color: var(--ep-ink); box-shadow: none; font: 550 12px/1.45 var(--os-font-family); cursor: pointer; text-align: center; }
.employee-profile-workspace .ep-button:hover { border-color: var(--os-color-primary-border); background: var(--ep-accent-soft); }
.employee-profile-workspace .ep-button.is-primary { border-color: var(--os-color-primary); background: var(--os-color-primary); color: var(--os-color-on-primary, #fff); }
.employee-profile-workspace .ep-button.is-primary:hover { border-color: var(--os-color-primary-hover); background: var(--os-color-primary-hover); }
.employee-profile-workspace .ep-more { position: relative; }
.employee-profile-workspace .ep-more > summary { width: 44px; padding: 0; list-style: none; }
.employee-profile-workspace .ep-more > summary::-webkit-details-marker { display: none; }
.employee-profile-workspace .ep-more > div { position: absolute; top: calc(100% + 8px); right: 0; z-index: 5; width: 235px; padding: 6px; border: 1px solid var(--ep-line); border-radius: 9px; background: var(--ep-surface); box-shadow: 0 8px 22px #12192d12; }
.employee-profile-workspace .ep-more button { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 44px; padding: 10px; border: 0; border-radius: 5px; background: transparent; color: var(--ep-ink); font: 500 12px/1.45 var(--os-font-family); text-align: left; cursor: pointer; }
.employee-profile-workspace .ep-more button:hover { background: var(--ep-soft); }
.employee-profile-workspace .ep-more .is-danger { color: var(--os-color-danger); }
.employee-profile-workspace .ep-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; padding: 21px 0; border-top: 1px solid var(--ep-line); border-bottom: 1px solid var(--ep-line); }
.employee-profile-workspace .ep-summary > a { display: flex; align-items: center; gap: 12px; min-width: 0; }
.employee-profile-workspace .ep-summary > a > :is(i,svg) { color: var(--ep-accent); font-size: 17px; }
.employee-profile-workspace .ep-summary small { display: block; color: var(--ep-muted); font-size: 11px; }
.employee-profile-workspace .ep-summary strong { display: block; margin-top: 3px; color: var(--ep-ink); font-size: 13px; font-weight: 550; overflow-wrap: anywhere; }
.employee-profile-workspace .ep-summary > a:hover strong { color: var(--ep-accent); }
.employee-profile-workspace .ep-tablist { display: flex; gap: 26px; overflow-x: auto; margin: 12px 0 24px; border-bottom: 1px solid var(--ep-line); scrollbar-width: thin; }
.employee-profile-workspace .ep-tab { flex-shrink: 0; padding: 15px 0 13px; border-bottom: 2px solid transparent; color: var(--ep-muted); font-size: 13px; font-weight: 550; }
.employee-profile-workspace .ep-tab:hover { color: var(--ep-ink); }
.employee-profile-workspace .ep-tab.is-active { border-color: var(--os-color-primary); color: var(--ep-accent); }
.employee-profile-workspace .ep-grid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 22px; align-items: start; }
.employee-profile-workspace .ep-stack { display: grid; gap: 22px; min-width: 0; }
.employee-profile-workspace .ep-card { min-width: 0; border: 1px solid var(--ep-line); border-radius: 12px; background: var(--ep-surface); overflow-wrap: anywhere; }
.employee-profile-workspace .ep-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 22px 22px 18px; }
.employee-profile-workspace .ep-card-header h2 { color: var(--ep-ink); font-size: 16px; font-weight: 600; line-height: 1.4; letter-spacing: -.025em; }
.employee-profile-workspace .ep-card-header p { margin-top: 4px; color: var(--ep-muted); font-size: 11px; }
.employee-profile-workspace .ep-edit { display: inline-flex; flex: 0 0 auto; justify-content: center; align-items: center; gap: 6px; min-height: 36px; margin: -7px -7px -7px 0; padding: 7px; border: 0; border-radius: 6px; background: transparent; color: var(--ep-accent); font: 550 11px/1.45 var(--os-font-family); cursor: pointer; }
.employee-profile-workspace .ep-edit:hover { background: var(--ep-accent-soft); }
.employee-profile-workspace .ep-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; padding: 4px 22px 22px; }
.employee-profile-workspace .ep-fields dt { color: var(--ep-muted); font-size: 11px; }
.employee-profile-workspace .ep-fields dd { margin-top: 5px; color: var(--ep-ink); font-size: 13px; }
.employee-profile-workspace .ep-biography { margin: 0 22px; padding: 20px 0 22px; border-top: 1px solid var(--ep-line); }
.employee-profile-workspace .ep-biography h3 { margin-bottom: 7px; color: var(--ep-muted); font-size: 11px; font-weight: 500; }
.employee-profile-workspace .ep-biography p { color: var(--ep-ink); font-size: 13px; line-height: 1.7; }
.employee-profile-workspace .ep-biography .ep-muted { color: var(--ep-muted); }
.employee-profile-workspace :is(.ep-facts,.ep-hours) { padding: 0 22px 10px; }
.employee-profile-workspace :is(.ep-facts,.ep-hours) > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--ep-line); }
.employee-profile-workspace :is(.ep-facts,.ep-hours) dt { color: var(--ep-muted); font-size: 12px; }
.employee-profile-workspace :is(.ep-facts,.ep-hours) dd { display: flex; flex-shrink: 0; align-items: center; gap: 7px; max-width: 60%; color: var(--ep-ink); font-size: 12px; font-weight: 550; text-align: right; font-variant-numeric: tabular-nums; }
.employee-profile-workspace .ep-facts dt small { display: block; margin-top: 3px; font-size: 10px; }
.employee-profile-workspace .ep-hours dt { color: var(--ep-ink); }
.employee-profile-workspace .ep-hours .is-closed :is(dt,dd) { color: var(--ep-muted); font-weight: 400; }
.employee-profile-workspace .ep-card-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 14px 22px; border-top: 1px solid var(--ep-line); border-radius: 0 0 12px 12px; color: var(--ep-accent); font-size: 11px; font-weight: 550; }
.employee-profile-workspace .ep-card-link:hover { background: var(--ep-accent-soft); }
.employee-profile-workspace .ep-section-gap { margin-top: 22px; }
.employee-profile-workspace .ep-count { display: inline-flex; align-items: center; justify-content: center; min-width: 23px; min-height: 23px; margin-left: 4px; padding: 2px 7px; border-radius: 6px; background: var(--ep-soft); color: var(--ep-muted); font-size: 11px; font-weight: 500; vertical-align: 1px; }
.employee-profile-workspace .ep-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 22px 34px; color: var(--ep-muted); text-align: center; }
.employee-profile-workspace .ep-empty > :is(svg,i) { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 5px; border-radius: 12px; background: var(--ep-soft); color: var(--ep-muted); font-size: 19px; }
.employee-profile-workspace .ep-empty strong { color: var(--ep-ink); font-size: 13px; font-weight: 550; }
.employee-profile-workspace .ep-empty p { max-width: 330px; font-size: 12px; }
.employee-profile-workspace .ep-empty .ep-edit { margin-top: 6px; }
.employee-profile-workspace .ep-event-list { padding: 0 22px; }
.employee-profile-workspace .ep-event { display: flex; align-items: center; gap: 20px; min-width: 0; padding: 17px 0; border-top: 1px solid var(--ep-line); }
.employee-profile-workspace .ep-event time { flex: 0 0 86px; font-variant-numeric: tabular-nums; }
.employee-profile-workspace .ep-event strong { display: block; color: var(--ep-ink); font-size: 12px; font-weight: 550; }
.employee-profile-workspace .ep-event time span, .employee-profile-workspace .ep-event small { display: block; margin-top: 4px; color: var(--ep-muted); font-size: 11px; }
.employee-profile-workspace .ep-event-copy { flex: 1; min-width: 0; }
.employee-profile-workspace .ep-event > :is(svg,i) { color: var(--ep-muted); font-size: 10px; }
.employee-profile-workspace .ep-event:hover .ep-event-copy strong { color: var(--ep-accent); }
.employee-profile-workspace .ep-relation-list { padding: 0 22px; }
.employee-profile-workspace .ep-relation-list > :is(a,div) { display: flex; align-items: center; gap: 12px; padding: 17px 0; border-top: 1px solid var(--ep-line); }
.employee-profile-workspace .ep-list-icon { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border-radius: 8px; background: var(--ep-soft); color: var(--ep-muted); font-size: 13px; }
.employee-profile-workspace .ep-relation-list > :is(a,div) > span:nth-child(2) { flex: 1; min-width: 0; }
.employee-profile-workspace .ep-relation-list strong { display: block; color: var(--ep-ink); font-size: 13px; font-weight: 550; }
.employee-profile-workspace .ep-relation-list small { display: block; margin-top: 4px; color: var(--ep-muted); font-size: 11px; }
.employee-profile-workspace .ep-relation-list > a > :is(i,svg) { color: var(--ep-muted); font-size: 10px; }
.employee-profile-workspace .ep-relation-list > a:hover strong { color: var(--ep-accent); }
.employee-profile-workspace .ep-note { padding: 0 22px 22px; color: var(--ep-muted); font-size: 12px; }
.employee-profile-workspace .ep-color { width: 18px; height: 18px; border: 1px solid #0001; border-radius: 5px; background: var(--employee-agenda-color); }
.employee-profile-workspace .ep-facts code { font-size: 11px; font-weight: 400; }
.employee-profile-workspace .ep-account-notice { display: flex; align-items: flex-start; gap: 12px; padding: 0 22px 24px; }
.employee-profile-workspace .ep-account-notice > :is(svg,i) { margin-top: 3px; color: var(--ep-accent); font-size: 18px; }
.employee-profile-workspace .ep-account-notice strong { color: var(--ep-ink); font-size: 13px; font-weight: 550; }
.employee-profile-workspace .ep-account-notice p { margin-top: 6px; color: var(--ep-muted); font-size: 12px; }
.employee-profile-workspace .ep-invitation { padding: 0 22px 24px; }
.employee-profile-workspace .ep-invitation > p { margin-bottom: 18px; color: var(--ep-muted); font-size: 12px; }
.employee-profile-workspace .ep-invitation label { display: block; margin-bottom: 6px; color: var(--ep-ink); font-size: 12px; }
.employee-profile-workspace .ep-invite-row { display: flex; flex-wrap: wrap; gap: 9px; }
.employee-profile-workspace .ep-invite-row input { flex: 1 1 170px; min-width: 0; width: 0; }
.employee-profile-workspace .ep-invitation > small { display: block; margin-top: 12px; color: var(--ep-muted); font-size: 11px; }
.employee-profile-workspace .ep-permission-list { padding: 0 22px; }
.employee-profile-workspace .ep-permission-list > div { display: flex; gap: 12px; padding: 17px 0; border-top: 1px solid var(--ep-line); }
.employee-profile-workspace .ep-permission-list > div > div { flex: 1; min-width: 0; }
.employee-profile-workspace .ep-permission-list h3 { display: flex; justify-content: space-between; gap: 12px; color: var(--ep-ink); font-size: 13px; font-weight: 550; }
.employee-profile-workspace .ep-permission-list h3 span { color: var(--ep-muted); font-size: 11px; font-weight: 400; }
.employee-profile-workspace .ep-permission-list p { margin-top: 5px; color: var(--ep-muted); font-size: 11px; line-height: 1.7; }

/* Match the section editors to the profile's quieter surfaces and spacing. */
.employee-section-dialog .employee-section-dialog-header { flex-shrink: 0; border-bottom: 1px solid var(--os-color-border); background: var(--os-color-surface); }
.employee-section-dialog .employee-section-dialog-header h2 { font-size: 19px; font-weight: 600; letter-spacing: -.025em; }
.employee-section-dialog .employee-section-dialog-header p { margin-top: 5px; font-size: 12px; line-height: 1.5; }
.employee-section-dialog .employee-section-dialog-body { gap: 26px; }
.employee-section-dialog .employee-section-error { flex-shrink: 0; }
.employee-editor-section { display: grid; gap: 18px; }
.employee-editor-section + .employee-editor-section { padding-top: 24px; border-top: 1px solid var(--os-color-border); }
.employee-editor-section-heading { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 10px; }
.employee-editor-section h3, .employee-section-choice-group .employee-editor-section-heading h3 { margin: 0; color: var(--os-color-ink); font-size: 14px; font-weight: 600; }
.employee-editor-section-heading p { margin: 5px 0 0; color: var(--os-color-text-secondary); font-size: 12px; line-height: 1.5; }
.employee-editor-count { padding: 5px 8px; border-radius: 6px; background: var(--os-color-surface-muted); color: var(--os-color-text-secondary); font-size: 11px; }
.employee-editor-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.employee-section-dialog .employee-editor-search { position: relative; display: flex; flex: 1 1 200px; min-width: 0; }
.employee-editor-search > :is(svg,i) { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--os-color-text-secondary); font-size: 13px; pointer-events: none; }
.page-company-app .employee-section-dialog .employee-editor-search input.input { width: 100%; padding-left: 38px; }
.employee-section-dialog .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.employee-section-choice-grid label[hidden], .employee-editor-toolbar[hidden], .employee-editor-empty[hidden] { display: none !important; }
.employee-section-choice-grid input:focus-visible + span { outline: 3px solid var(--os-color-focus); outline-offset: 3px; }
.employee-editor-empty { margin: 0; padding: 18px; border-radius: 8px; background: var(--os-color-surface-muted); color: var(--os-color-text-secondary); font-size: 12px; text-align: center; }
.employee-editor-hint { color: var(--os-color-text-secondary); font-size: 11px; font-weight: 400; }
.employee-section-dialog .employee-section-form-grid > label > span, .employee-section-dialog .employee-color-setting > span { color: var(--os-color-ink); font-size: 12px; font-weight: 500; }
.employee-section-dialog .employee-section-form-grid .input { border-radius: 8px; background: var(--os-color-surface); }
.employee-section-dialog .employee-section-choice-grid label > span { border-radius: 9px; box-shadow: none; }
.employee-section-dialog .employee-section-choice-grid label > span strong { font-weight: 550; }
.employee-section-dialog .weekly-schedule { box-shadow: none; }

@container employee-profile (max-width: 900px) {
    .employee-profile-workspace .ep-hero { flex-wrap: wrap; }
    .employee-profile-workspace .ep-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
    .employee-profile-workspace .ep-fields { grid-template-columns: minmax(0,1fr); gap: 17px; }
    .employee-profile-workspace .ep-card-header { flex-wrap: wrap; gap: 14px; }
}
@container employee-profile (max-width: 650px) {
    .employee-profile-workspace .ep-grid { grid-template-columns: minmax(0,1fr); }
    .employee-profile-workspace .ep-summary { gap: 14px; }
    .employee-profile-workspace .ep-summary > a { align-items: start; gap: 8px; }
    .employee-profile-workspace .ep-summary > a > :is(i,svg) { margin-top: 3px; font-size: 13px; }
    .employee-profile-workspace .ep-summary strong { font-size: 12px; }
    .employee-profile-workspace .ep-summary small { font-size: 10px; }
    .employee-profile-workspace .ep-tablist { gap: 20px; }
    .employee-profile-workspace .ep-tab { font-size: 12px; }
    .employee-profile-workspace .ep-card-header { flex-wrap: nowrap; }
    .employee-profile-workspace .ep-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@container employee-profile (max-width: 420px) {
    .employee-profile-workspace .ep-avatar { flex-basis: 58px; width: 58px; height: 58px; border-radius: 14px; font-size: 22px; }
    .employee-profile-workspace .ep-identity { gap: 13px; }
    .employee-profile-workspace .ep-toolbar { width: 100%; }
    .employee-profile-workspace .ep-toolbar > .is-primary { flex: 1; }
    .employee-profile-workspace .ep-summary > a { flex-direction: column; gap: 7px; }
    .employee-profile-workspace .ep-fields { grid-template-columns: minmax(0,1fr); }
    .employee-profile-workspace .ep-card-header { padding: 18px; gap: 8px; }
    .employee-profile-workspace .ep-card-header h2 { font-size: 15px; }
    .employee-profile-workspace .ep-event { flex-wrap: wrap; gap: 10px; }
    .employee-profile-workspace .ep-event .ep-pill { margin-left: 96px; }
    .employee-profile-workspace .ep-event > :is(i,svg) { margin-left: auto; }
    .employee-profile-workspace .ep-facts dd { max-width: 55%; }
}
