:root {
    --ncore-org-canvas: #f2f5fa;
    --ncore-org-surface: #fff;
    --ncore-org-subtle: #f7f9fc;
    --ncore-org-ink: #172033;
    --ncore-org-muted: #64748b;
    --ncore-org-line: #d7e0ec;
    --ncore-org-line-strong: #b8c8dc;
    --ncore-org-blue: #2f6cf6;
    --ncore-org-blue-dark: #2456ca;
    --ncore-org-blue-soft: #eaf1ff;
    --ncore-org-navy: #24324a;
    --ncore-org-green: #2c8b69;
    --ncore-org-green-line: #8bcbb3;
    --ncore-org-green-soft: #edf9f4;
    --ncore-org-support: #356bd6;
    --ncore-org-support-line: #9bb9ef;
    --ncore-org-support-soft: #eef4ff;
    --ncore-org-rose: #be3650;
    --ncore-org-rose-soft: #fff0f3;
    --ncore-org-purple: #6a55c8;
    --ncore-org-purple-soft: #f0edff;
    --ncore-org-detail-notice-line: #bfdbfe;
    --ncore-org-detail-notice-bg: #eff6ff;
    --ncore-org-detail-notice-ink: #1d4ed8;
    --ncore-org-detail-row-line: #e8edf4;
    --ncore-org-detail-subsection-line: #edf1f6;
    --ncore-org-detail-spinner-line: #dbe7ff;
    --ncore-org-profile-dialog-width: 1840px;
    --ncore-org-profile-dialog-height: 1000px;
    --ncore-org-profile-rail-width: 338px;
    --ncore-org-profile-pad: 24px;
    --ncore-org-profile-radius: 16px;
    --ncore-org-profile-control-radius: 8px;
    --ncore-org-profile-panel-radius: 12px;
    --ncore-org-profile-label-width: 84px;
    --ncore-org-profile-row-height: 40px;
    --ncore-org-profile-focus: rgba(47, 108, 246, .2);
}

.ncore-org-state {
    min-height: 360px;
    display: grid;
    place-content: center;
    gap: 8px;
    padding: 48px 24px;
    border: 1px solid var(--ncore-org-line);
    border-radius: 8px;
    background: var(--ncore-org-surface);
    text-align: center;
}
.ncore-org-state h2, .ncore-org-state p { margin: 0; }
.ncore-org-state h2 { font-size: 22px; font-weight: 900; color: var(--ncore-org-ink); }
.ncore-org-state p { color: var(--ncore-org-muted); font-size: 14px; }
.ncore-org-state.is-error { border-color: #fecdd3; }
.ncore-org-state.is-error p { color: #be123c; }
.ncore-org-state button { justify-self: center; min-height: 40px; margin-top: 8px; padding: 0 14px; border: 0; border-radius: 7px; background: var(--ncore-org-navy); color: #fff; font-weight: 800; }
.ncore-org-state__note { margin-top: 5px !important; font-size: 12px !important; }
.ncore-org-notice { padding: 12px 16px; border: 1px solid #bfdbfe; border-radius: 8px; background: #eff6ff; color: #1d4ed8; font-size: 14px; font-weight: 750; }

.ncore-org-workspace { display: grid; gap: 12px; }
.ncore-org-toolbar {
    display: grid;
    grid-template-columns: auto minmax(320px, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 12px 14px;
    border: 1px solid var(--ncore-org-line);
    border-radius: 8px;
    background: var(--ncore-org-surface);
}
.ncore-org-toolbar > div:first-child { display: grid; gap: 2px; }
.ncore-org-toolbar > div:first-child strong { color: var(--ncore-org-ink); font-size: 14px; }
.ncore-org-toolbar > div:first-child span { color: var(--ncore-org-muted); font-size: 12px; }
.ncore-org-toolbar > div:nth-child(2) { display: flex; justify-content: center; gap: 24px; color: var(--ncore-org-muted); font-size: 13px; }
.ncore-org-toolbar > div:nth-child(2) span { white-space: nowrap; }
.ncore-org-toolbar > div:nth-child(2) b { margin-right: 2px; color: var(--ncore-org-ink); font-size: 18px; font-variant-numeric: tabular-nums; }
.ncore-org-toolbar > button { min-height: 44px; padding: 0 16px; border: 1px solid var(--ncore-org-blue); border-radius: 7px; background: var(--ncore-org-blue); color: #fff; font-size: 14px; font-weight: 850; }

.ncore-org-surface { min-width: 0; overflow-x: auto; overflow-y: hidden; border: 1px solid var(--ncore-org-line); border-radius: 8px; background: var(--ncore-org-surface); }
.ncore-org-surface:focus-visible { outline: 3px solid rgba(47, 108, 246, .28); outline-offset: 2px; }
.ncore-org-heading { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 18px; padding: 0 18px; border-bottom: 1px solid var(--ncore-org-line); }
.ncore-org-heading h2, .ncore-org-heading p { margin: 0; }
.ncore-org-heading h2 { color: var(--ncore-org-ink); font-size: 21px; font-weight: 900; }
.ncore-org-heading p { margin-top: 5px; color: var(--ncore-org-muted); font-size: 12px; }
.ncore-org-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; color: var(--ncore-org-muted); font-size: 11px; }
.ncore-org-legend span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.ncore-org-legend span > i:not(.fa-solid) { width: 13px; height: 13px; border: 1px solid; border-radius: 4px; }
.ncore-org-legend span > i.is-mutual { border-color: var(--ncore-org-green-line); background: var(--ncore-org-green-soft); }
.ncore-org-legend span > i.is-supported { border-color: var(--ncore-org-support-line); background: var(--ncore-org-support-soft); }
.ncore-org-legend button { min-height: 36px; padding: 0 11px; border: 1px solid var(--ncore-org-line); border-radius: 6px; background: #fff; color: var(--ncore-org-muted); font-size: 11px; font-weight: 800; }
.ncore-org-relationship-summary { display: flex; align-items: center; gap: 12px; margin: 14px 20px 0; padding: 12px 14px; border: 1px solid var(--ncore-org-line); border-left: 3px solid var(--ncore-org-navy); border-radius: 7px; background: var(--ncore-org-subtle); font-size: 12px; }
.ncore-org-relationship-summary span { color: var(--ncore-org-muted); }
.ncore-org-scroll-hint { display: none; }

.ncore-org-chart { min-width: 0; padding: 42px 34px 52px; }
.ncore-org-root { position: relative; display: flex; justify-content: center; padding-bottom: 40px; }
.ncore-org-root::after { position: absolute; bottom: 0; left: 50%; width: 1px; height: 40px; background: var(--ncore-org-line-strong); content: ""; }
.ncore-org-team-grid { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); column-gap: 12px; row-gap: 30px; padding-top: 32px; }
.ncore-org-team-grid::before { position: absolute; top: 0; left: 21.4286%; right: 28.5714%; height: 1px; background: var(--ncore-org-line-strong); content: ""; }
.ncore-org-team { position: relative; min-width: 0; padding: 22px 20px 20px; border: 1px solid var(--ncore-org-line); border-radius: 8px; background: var(--ncore-org-subtle); }
.ncore-org-team--team-partsbook { grid-column: span 3; }
.ncore-org-team--team-manual { grid-column: span 4; }
.ncore-org-team::before { position: absolute; top: -28px; left: 50%; width: 1px; height: 28px; background: var(--ncore-org-line-strong); content: ""; }
.ncore-org-team > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 15px; }
.ncore-org-team > header span { display: block; color: var(--ncore-org-blue); font-size: 11px; font-weight: 900; }
.ncore-org-team > header h3 { margin: 5px 0 0; color: var(--ncore-org-ink); font-size: 21px; }
.ncore-org-team > header small { display: block; margin-top: 4px; color: var(--ncore-org-muted); font-size: 11px; }
.ncore-org-team > header b { padding: 6px 9px; border-radius: 999px; background: var(--ncore-org-blue-soft); color: var(--ncore-org-blue-dark); font-size: 11px; }
.ncore-org-team-leader { position: relative; display: flex; justify-content: center; padding-bottom: 28px; }
.ncore-org-team-leader::after { position: absolute; bottom: 0; left: 50%; width: 1px; height: 28px; background: var(--ncore-org-line-strong); content: ""; }
.ncore-org-parts { position: relative; display: grid; gap: 10px; padding-top: 24px; }
.ncore-org-parts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ncore-org-parts--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ncore-org-parts::before { position: absolute; top: 0; left: calc(100% / var(--org-part-count) / 2); right: calc(100% / var(--org-part-count) / 2); height: 1px; background: var(--ncore-org-line-strong); content: ""; }

.ncore-org-part { position: relative; min-width: 0; padding: 16px 12px 14px; border: 1px solid var(--ncore-org-line); border-radius: 7px; background: #fff; }
.ncore-org-part::before { position: absolute; top: -24px; left: 50%; width: 1px; height: 24px; background: var(--ncore-org-line-strong); content: ""; }
.ncore-org-part__head { display: flex; min-height: 52px; align-items: flex-start; justify-content: space-between; gap: 7px; padding-bottom: 10px; border-bottom: 1px solid #e7edf5; }
.ncore-org-part__head span { display: block; color: var(--ncore-org-muted); font-size: 10px; font-weight: 850; }
.ncore-org-part__head strong { display: block; margin-top: 5px; color: var(--ncore-org-ink); font-size: 17px; line-height: 1.3; word-break: keep-all; }
.ncore-org-part__head button { display: inline-grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border: 1px solid var(--ncore-org-line); border-radius: 6px; background: #fff; color: var(--ncore-org-muted); }
.ncore-org-part__head button:hover, .ncore-org-part__head button:focus-visible, .ncore-org-part__head button[aria-pressed="true"] { border-color: var(--ncore-org-navy); background: var(--ncore-org-navy); color: #fff; outline: none; }
.ncore-org-relation-badges { display: flex; min-height: 18px; gap: 4px; margin-top: 8px; }
.ncore-org-relation-badges span { padding: 4px 6px; border: 1px solid; border-radius: 999px; background: #fff; font-size: 9px; font-weight: 900; }
.ncore-org-relation-badges .is-selected { border-color: var(--ncore-org-navy); background: var(--ncore-org-navy); color: #fff; }
.ncore-org-relation-badges .is-mutual { border-color: var(--ncore-org-green-line); color: var(--ncore-org-green); }
.ncore-org-relation-badges .is-supported { border-color: var(--ncore-org-support-line); color: var(--ncore-org-support); }
.ncore-org-part.is-selected { border-color: var(--ncore-org-navy); box-shadow: inset 0 0 0 2px var(--ncore-org-navy); }
.ncore-org-part.is-mutual { border-color: var(--ncore-org-green-line); background: var(--ncore-org-green-soft); }
.ncore-org-part.is-supported { border-color: var(--ncore-org-support-line); background: var(--ncore-org-support-soft); }
.ncore-org-part.is-mutual.is-supported { border-color: var(--ncore-org-green-line); background: var(--ncore-org-green-soft); box-shadow: inset 0 -3px var(--ncore-org-support-line); }
.ncore-org-people { display: grid; gap: 5px; margin-top: 8px; }
.ncore-org-people > p { margin: 0; padding: 12px 2px; color: var(--ncore-org-muted); font-size: 11px; text-align: center; }
.ncore-org-subgroup { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--ncore-org-line-strong); }
.ncore-org-subgroup > div:first-child { display: flex; justify-content: space-between; color: var(--ncore-org-purple); font-size: 10px; }
.ncore-org-subgroup small { color: var(--ncore-org-muted); }

.ncore-org-person { display: flex; width: 100%; min-width: 0; min-height: 52px; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--ncore-org-line); border-radius: 7px; background: #fff; color: var(--ncore-org-ink); text-align: left; }
.ncore-org-person:hover, .ncore-org-person:focus-visible { border-color: var(--ncore-org-blue); background: #edf4ff; outline: none; }
.ncore-org-person__body { min-width: 0; flex: 1; }
.ncore-org-person strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 900; }
.ncore-org-person__rank { display: block; margin-top: 4px; color: var(--ncore-org-muted); font-size: 11px; line-height: 1.2; }
.ncore-org-person__side { display: flex; max-width: 58%; flex: 0 0 auto; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 5px; }
.ncore-org-person__position { color: var(--ncore-org-blue-dark); font-size: 12px; font-style: normal; font-weight: 900; line-height: 1.2; white-space: nowrap; }
.ncore-org-person__status { display: inline-flex; min-height: 22px; align-items: center; padding: 3px 6px; border: 1px solid transparent; border-radius: 999px; font-size: 10px; font-style: normal; font-weight: 900; line-height: 1; white-space: nowrap; }
.ncore-org-status--leave { border-color: #e7aeb9; background: #fff; color: var(--ncore-org-rose); }
.ncore-org-status--reference { border-color: var(--ncore-org-purple); background: var(--ncore-org-purple-soft); color: var(--ncore-org-purple); }
.ncore-org-status--parallel { border-color: #f0b37e; background: #fff7ed; color: #c2410c; }
.ncore-org-person--ceo { width: auto; min-width: 220px; padding: 12px 14px; border-color: var(--ncore-org-navy); background: var(--ncore-org-navy); color: #fff; }
.ncore-org-person--ceo .ncore-org-person__position { color: #fff; }
.ncore-org-person--leader { border-color: #a8bce0; }
.ncore-org-team-leader .ncore-org-person--leader { width: auto; min-width: 190px; }
.ncore-org-person--leave { border-color: #e7aeb9; background: var(--ncore-org-rose-soft); }
.ncore-org-person--reference { border: 1px dashed var(--ncore-org-purple); background: #faf9ff; }
.ncore-org-person--reference .ncore-org-person__side { max-width: 68%; }
.ncore-org-person--part-rank-assistant { border-color: #fde047; background: #fef9c3; }
.ncore-org-person--part-rank-manager { border-color: #bef264; background: #ecfccb; }
.ncore-org-person--part-rank-director { border-color: #9bb9ef; background: #eaf1ff; }
.ncore-org-person--part-rank-neutral { border-color: #a8bce0; background: #f7f9fc; }
.ncore-org-icon { display: inline-grid; width: 1.1em; height: 1.1em; place-items: center; color: currentColor; font-size: 18px; font-weight: 900; line-height: 1; }
.ncore-org-person-dialog > header button .ncore-org-icon--close, .ncore-org-editor-dialog > header button .ncore-org-icon--close { font-size: 26px; font-weight: 500; }
.ncore-org-part__head button .ncore-org-icon--relation { font-size: 20px; font-weight: 900; }

.ncore-org-backdrop { position: fixed; z-index: 80; inset: 0; display: grid; padding: 30px; place-items: center; background: rgba(19,29,47,.58); }
.ncore-org-person-dialog, .ncore-org-editor-dialog { overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 16px 40px rgba(34,54,82,.18); outline: none; }
.ncore-org-person-dialog { width: min(620px, 100%); }
.ncore-org-person-dialog > header, .ncore-org-editor-dialog > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--ncore-org-line); }
.ncore-org-person-dialog > header p, .ncore-org-editor-dialog > header p { margin: 0; color: var(--ncore-org-blue); font-size: 11px; font-weight: 900; }
.ncore-org-person-dialog > header h2, .ncore-org-editor-dialog > header h2 { margin: 4px 0 0; color: var(--ncore-org-ink); font-size: 22px; }
.ncore-org-person-dialog > header span, .ncore-org-editor-dialog > header span { display: block; margin-top: 4px; color: var(--ncore-org-muted); font-size: 13px; }
.ncore-org-person-dialog > header button, .ncore-org-editor-dialog > header button { width: 42px; height: 42px; border: 1px solid var(--ncore-org-line); border-radius: 7px; background: var(--ncore-org-surface); color: var(--ncore-org-muted); }
.ncore-org-person-dialog dl { margin: 10px 22px 22px; }
.ncore-org-person-dialog dl > div { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--ncore-org-detail-row-line); }
.ncore-org-person-dialog dt { color: var(--ncore-org-muted); font-size: 10px; font-weight: 800; }
.ncore-org-person-dialog dd { margin: 0; color: var(--ncore-org-ink); font-size: 12px; font-weight: 850; line-height: 1.5; }
.ncore-org-person-dialog dl > div:last-child dd { padding: 12px; border-left: 3px solid var(--ncore-org-purple); background: var(--ncore-org-purple-soft); }
.ncore-org-person-dialog > footer { display: flex; justify-content: flex-end; padding: 14px 22px; border-top: 1px solid var(--ncore-org-line); }
.ncore-org-person-dialog > footer button { min-width: 88px; min-height: 42px; border: 0; border-radius: 7px; background: var(--ncore-org-navy); color: #fff; font-weight: 850; }

.ncore-org-editor-dialog { display: flex; width: min(960px, 100%); max-height: min(780px, calc(100vh - 60px)); flex-direction: column; }
.ncore-org-editor-body { padding: 18px 20px; overflow-y: auto; }
.ncore-org-editor-fields { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.ncore-org-editor-fields label, .ncore-org-editor-reason { color: var(--ncore-org-muted); font-size: 12px; font-weight: 800; }
.ncore-org-editor-fields select, .ncore-org-editor-fields input, .ncore-org-editor-reason input { display: block; width: 100%; min-height: 42px; margin-top: 5px; padding: 0 9px; border: 1px solid var(--ncore-org-line); border-radius: 7px; background: #fff; color: var(--ncore-org-ink); }
.ncore-org-editor-reason { display: block; margin-top: 12px; }
.ncore-org-editor-members, .ncore-org-editor-preview { margin-top: 14px; padding: 14px; border: 1px solid var(--ncore-org-line); border-radius: 8px; }
.ncore-org-editor-members h3, .ncore-org-editor-preview h3 { margin: 0; color: var(--ncore-org-ink); font-size: 15px; }
.ncore-org-editor-members > div { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; margin-top: 11px; }
.ncore-org-editor-members label { display: flex; min-height: 46px; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--ncore-org-line); border-radius: 6px; font-size: 12px; }
.ncore-org-editor-members input { accent-color: var(--ncore-org-blue); }
.ncore-org-editor-members small { color: var(--ncore-org-muted); }
.ncore-org-editor-members label.is-current { background: var(--ncore-org-subtle); color: var(--ncore-org-muted); }
.ncore-org-editor-members label.is-current input { cursor: not-allowed; }
.ncore-org-editor-move-title { margin-top: 16px !important; }
.ncore-org-editor-members p { margin: 10px 0 0; color: var(--ncore-org-muted); font-size: 12px; }
.ncore-org-editor-preview { background: var(--ncore-org-subtle); }
.ncore-org-editor-preview p { margin: 8px 0 0; color: var(--ncore-org-muted); font-size: 12px; }
.ncore-org-editor-dialog > footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--ncore-org-line); color: var(--ncore-org-muted); font-size: 12px; }
.ncore-org-editor-dialog > footer > div { display: flex; gap: 7px; }
.ncore-org-editor-dialog > footer button { min-height: 42px; padding: 0 15px; border: 1px solid var(--ncore-org-line); border-radius: 7px; background: #fff; color: var(--ncore-org-ink); font-weight: 850; }
.ncore-org-editor-dialog > footer button:last-child { border-color: var(--ncore-org-blue); background: var(--ncore-org-blue); color: #fff; }

@media (max-width: 1280px) {
    .ncore-org-surface { overflow-x: auto; }
    .ncore-org-chart { min-width: 0; }
    .ncore-org-part .ncore-org-person--leader .ncore-org-person__side { max-width: 68%; }
}

@media (max-width: 980px) {
    .ncore-org-toolbar { grid-template-columns: 1fr auto; }
    .ncore-org-toolbar > div:nth-child(2) { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
    .ncore-org-editor-fields { grid-template-columns: 1fr 1fr; }
    .ncore-org-editor-members > div { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .ncore-org-toolbar { grid-template-columns: 1fr; }
    .ncore-org-toolbar > div:nth-child(2) { grid-column: auto; grid-row: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
    .ncore-org-toolbar > button { min-height: 44px; }
    .ncore-org-heading { display: block; padding: 14px; }
    .ncore-org-legend { margin-top: 10px; }
    .ncore-org-relationship-summary { min-width: 660px; }
    .ncore-org-scroll-hint { display: flex; min-width: 660px; align-items: center; gap: 6px; margin: 10px 14px 0; color: var(--ncore-org-blue-dark); font-size: 9px; font-weight: 800; }
    .ncore-org-surface { overflow-x: auto; }
    .ncore-org-chart { min-width: 1500px; padding-left: 14px; padding-right: 14px; }
    .ncore-org-part__head button { width: 44px; height: 44px; }
    .ncore-org-backdrop { padding: 10px; }
    .ncore-org-person-dialog > header, .ncore-org-editor-dialog > header { padding: 17px 16px; }
    .ncore-org-person-dialog dl { margin: 8px 16px 18px; }
    .ncore-org-person-dialog dl > div { grid-template-columns: 90px minmax(0,1fr); }
    .ncore-org-editor-dialog { max-height: calc(100vh - 20px); }
    .ncore-org-editor-body { padding: 14px; }
        .ncore-org-editor-fields, .ncore-org-editor-members > div { grid-template-columns: 1fr; }
        .ncore-org-editor-dialog > footer { display: block; }
        .ncore-org-editor-dialog > footer > div { margin-top: 10px; }
        .ncore-org-editor-dialog > footer button { flex: 1; }
    }

.ncore-org-person-dialog { display: flex; width: min(960px, 100%); max-height: min(860px, calc(100vh - 48px)); flex-direction: column; }
.ncore-org-person-dialog > header { flex: 0 0 auto; }
.ncore-org-detail-body { min-height: 0; overflow-y: auto; padding: 18px 22px 22px; }
.ncore-org-detail-basis { margin: 0 0 14px; padding: 10px 12px; border: 1px solid var(--ncore-org-detail-notice-line); border-radius: 7px; background: var(--ncore-org-detail-notice-bg); color: var(--ncore-org-detail-notice-ink); font-size: 12px; font-weight: 750; line-height: 1.45; }
.ncore-org-detail-section { padding: 2px 0 20px; border-bottom: 1px solid var(--ncore-org-line); }
.ncore-org-detail-section + .ncore-org-detail-section { padding-top: 20px; }
.ncore-org-detail-section:last-child { padding-bottom: 0; border-bottom: 0; }
.ncore-org-detail-section h3 { margin: 0 0 10px; color: var(--ncore-org-ink); font-size: 18px; font-weight: 900; }
.ncore-org-detail-section dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0; }
.ncore-org-detail-section dl > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: baseline; min-height: 40px; padding: 9px 0; border-bottom: 1px solid var(--ncore-org-detail-row-line); }
.ncore-org-detail-section dt { color: var(--ncore-org-muted); font-size: 11px; font-weight: 800; }
.ncore-org-detail-section dd { margin: 0; color: var(--ncore-org-ink); font-size: 13px; font-weight: 800; line-height: 1.45; overflow-wrap: anywhere; }
.ncore-org-detail-subsection { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--ncore-org-detail-subsection-line); }
.ncore-org-detail-subsection h4 { margin: 0 0 8px; color: var(--ncore-org-muted); font-size: 12px; font-weight: 900; }
.ncore-org-detail-subsection ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ncore-org-detail-subsection li { padding: 6px 9px; border: 1px solid var(--ncore-org-line); border-radius: 6px; background: var(--ncore-org-subtle); color: var(--ncore-org-ink); font-size: 12px; font-weight: 750; }
.ncore-org-detail-tenure-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.ncore-org-detail-tenure-grid > div, .ncore-org-detail-metrics > div { padding: 12px; border: 1px solid var(--ncore-org-line); border-radius: 7px; background: var(--ncore-org-subtle); }
.ncore-org-detail-tenure-grid span, .ncore-org-detail-metrics span { display: block; color: var(--ncore-org-muted); font-size: 11px; font-weight: 800; }
.ncore-org-detail-tenure-grid strong { display: block; margin-top: 5px; color: var(--ncore-org-ink); font-size: 17px; font-weight: 900; }
.ncore-org-detail-tenure-grid small { display: block; margin-top: 4px; color: var(--ncore-org-muted); font-size: 11px; line-height: 1.4; }
.ncore-org-detail-history { overflow-x: auto; border: 1px solid var(--ncore-org-line); border-radius: 7px; }
.ncore-org-detail-history > div { display: grid; grid-template-columns: 1fr .8fr 1.2fr 1fr; min-width: 560px; gap: 10px; padding: 9px 11px; border-bottom: 1px solid var(--ncore-org-detail-row-line); color: var(--ncore-org-ink); font-size: 11px; font-weight: 700; }
.ncore-org-detail-history > div:last-child { border-bottom: 0; }
.ncore-org-detail-history__head { background: var(--ncore-org-subtle); color: var(--ncore-org-muted) !important; font-weight: 900 !important; }
.ncore-org-detail-plan-list { display: grid; gap: 7px; }
.ncore-org-detail-plan-list > div { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; padding: 10px 11px; border: 1px solid var(--ncore-org-line); border-radius: 7px; }
.ncore-org-detail-plan-list span { color: var(--ncore-org-ink); font-size: 12px; font-weight: 850; }
.ncore-org-detail-plan-list strong { color: var(--ncore-org-blue-dark); font-size: 11px; }
.ncore-org-detail-plan-list small { grid-column: 1 / -1; color: var(--ncore-org-muted); font-size: 11px; }
.ncore-org-detail-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ncore-org-detail-metrics strong { display: block; margin-top: 4px; color: var(--ncore-org-ink); font-size: 15px; font-weight: 900; }
.ncore-org-detail-period, .ncore-org-detail-work-hours { margin: 0; color: var(--ncore-org-muted); font-size: 12px; font-weight: 750; }
.ncore-org-detail-work-hours { margin-top: 5px; color: var(--ncore-org-blue-dark); font-size: 20px; font-weight: 900; }
.ncore-org-detail-empty { margin: 0; color: var(--ncore-org-muted); font-size: 12px; }
.ncore-org-detail-loading, .ncore-org-detail-error { display: grid; min-height: 260px; place-content: center; justify-items: center; gap: 10px; padding: 24px; text-align: center; }
.ncore-org-detail-loading strong, .ncore-org-detail-error strong { color: var(--ncore-org-ink); font-size: 14px; }
.ncore-org-detail-spinner { width: 28px; height: 28px; border: 3px solid var(--ncore-org-detail-spinner-line); border-top-color: var(--ncore-org-blue); border-radius: 50%; animation: ncore-org-spin .8s linear infinite; }
.ncore-org-detail-error { color: var(--ncore-org-rose); }
.ncore-org-detail-error p { margin: 0; color: var(--ncore-org-muted); font-size: 12px; }
.ncore-org-detail-error button { min-height: 40px; padding: 0 13px; border: 1px solid var(--ncore-org-blue); border-radius: 7px; background: var(--ncore-org-surface); color: var(--ncore-org-blue-dark); font-size: 12px; font-weight: 850; }
@keyframes ncore-org-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ncore-org-detail-spinner { animation: none; } }
@media (max-width: 768px) {
    .ncore-org-person-dialog { max-height: calc(100vh - 20px); }
    .ncore-org-detail-body { padding: 14px 16px 18px; }
    .ncore-org-detail-section dl, .ncore-org-detail-tenure-grid { grid-template-columns: 1fr; }
    .ncore-org-detail-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.ncore-org-backdrop[data-org-person-backdrop] { padding: 16px; }
.ncore-org-person-dialog.ncore-org-profile-shell {
    position: relative;
    box-sizing: border-box;
    display: grid;
    width: min(var(--ncore-org-profile-dialog-width), 100%);
    height: min(var(--ncore-org-profile-dialog-height), calc(100dvh - 32px));
    max-height: none;
    grid-template-columns: var(--ncore-org-profile-rail-width) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--ncore-org-line);
    border-radius: var(--ncore-org-profile-radius);
    background: var(--ncore-org-surface);
    box-shadow: 0 24px 44px -28px rgba(19, 34, 62, .38);
}
.ncore-org-profile-shell:focus { outline: none; }
.ncore-org-profile-rail {
    min-height: 0;
    overflow-y: auto;
    padding: var(--ncore-org-profile-pad);
    border-right: 1px solid var(--ncore-org-line);
    background: var(--ncore-org-subtle);
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: var(--ncore-org-line-strong) transparent;
}
.ncore-org-profile-rail::-webkit-scrollbar { width: 10px; }
.ncore-org-profile-rail::-webkit-scrollbar-track { background: transparent; }
.ncore-org-profile-rail::-webkit-scrollbar-thumb {
    min-height: 48px;
    border: 3px solid transparent;
    border-radius: 999px;
    background: var(--ncore-org-line-strong);
    background-clip: padding-box;
}
.ncore-org-profile-actions { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.ncore-org-profile-actions button,
.ncore-org-profile-state button {
    min-width: 64px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--ncore-org-line);
    border-radius: var(--ncore-org-profile-control-radius);
    background: var(--ncore-org-surface);
    color: var(--ncore-org-ink);
    font-size: 13px;
    font-weight: 850;
    transition: background-color 140ms ease, border-color 140ms ease, transform 120ms ease;
}
.ncore-org-profile-actions button:hover,
.ncore-org-profile-state button:hover { border-color: var(--ncore-org-line-strong); background: #fff; }
.ncore-org-profile-actions button:active,
.ncore-org-profile-state button:active { transform: translateY(1px); }
.ncore-org-profile-actions button:focus-visible,
.ncore-org-profile-state button:focus-visible { outline: 3px solid var(--ncore-org-profile-focus); outline-offset: 2px; }
.ncore-org-profile-photo {
    display: grid;
    width: 100%;
    aspect-ratio: 413 / 531;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--ncore-org-line);
    border-radius: var(--ncore-org-profile-panel-radius);
    place-content: center;
    background: var(--ncore-org-surface);
}
.ncore-org-profile-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ncore-org-profile-photo--fallback { color: var(--ncore-org-muted); text-align: center; }
.ncore-org-profile-photo--fallback span { color: var(--ncore-org-blue-dark); font-size: 42px; font-weight: 900; }
.ncore-org-profile-photo--fallback small { margin-top: 8px; font-size: 12px; font-weight: 750; }
.ncore-org-profile-heading { padding: 20px 0 16px; border-bottom: 1px solid var(--ncore-org-line); }
.ncore-org-profile-heading p,
.ncore-org-profile-heading h2,
.ncore-org-profile-heading span { margin: 0; }
.ncore-org-profile-heading p { color: var(--ncore-org-blue); font-size: 11px; font-weight: 900; }
.ncore-org-profile-heading h2 { margin-top: 4px; color: var(--ncore-org-ink); font-size: 24px; font-weight: 900; letter-spacing: -.03em; }
.ncore-org-profile-heading span { display: block; margin-top: 4px; color: var(--ncore-org-muted); font-size: 12px; font-weight: 750; }
.ncore-org-profile-group { padding-top: 16px; }
.ncore-org-profile-group h3 { margin: 0 0 8px; color: var(--ncore-org-ink); font-size: 13px; font-weight: 900; }
.ncore-org-profile-group dl { margin: 0; }
.ncore-org-profile-group dl > div {
    display: grid;
    min-height: var(--ncore-org-profile-row-height);
    grid-template-columns: var(--ncore-org-profile-label-width) minmax(0, 1fr);
    gap: 12px;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px solid var(--ncore-org-line);
}
.ncore-org-profile-group dt,
.ncore-org-profile-group dd { margin: 0; }
.ncore-org-profile-group dt { color: var(--ncore-org-muted); font-size: 11px; font-weight: 800; }
.ncore-org-profile-group dd { color: var(--ncore-org-ink); font-size: 13px; font-weight: 850; line-height: 1.45; overflow-wrap: anywhere; }
.ncore-org-work-summary dl > div { grid-template-columns: minmax(0, 1fr) auto; }
.ncore-org-work-summary dt { font-size: 12px; }
.ncore-org-work-summary dd { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ncore-org-person-dialog .ncore-org-work-summary dl > div:last-child dd { padding: 0; border-left: 0; background: transparent; }
.ncore-org-profile-state { display: grid; min-height: 320px; place-content: center; justify-items: center; gap: 10px; text-align: center; }
.ncore-org-profile-state strong { color: var(--ncore-org-ink); font-size: 14px; }
.ncore-org-profile-state p { margin: 0; color: var(--ncore-org-muted); font-size: 12px; }
.ncore-org-profile-workspace { min-width: 0; min-height: 0; background: #fff; }
@media (max-width: 768px) {
    .ncore-org-person-dialog.ncore-org-profile-shell {
        width: 100%;
        height: calc(100vh - 20px);
        grid-template-columns: minmax(260px, var(--ncore-org-profile-rail-width)) minmax(320px, 1fr);
        overflow-x: auto;
    }
}
@media (prefers-reduced-motion: reduce) {
    .ncore-org-profile-actions button,
    .ncore-org-profile-state button { transition: none; }
}
