/* People Map 2.0.17. Geometry values are verbatim from 2.0.16. */
* { box-sizing: border-box; }
body { margin: 0; font: var(--fs-sm) -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; background: var(--bg); color: var(--ink); }
:is(#auth, #shell, .hidden).hidden { display: none; }
button,input,select { font: inherit; }
button { cursor: pointer; border: 1px solid var(--line); border-radius: 8px; padding: 0.625rem 0.875rem; color: var(--ink); background: var(--panel); }
button:hover { border-color: var(--green); }
button:focus-visible,input:focus-visible,select:focus-visible { outline: 3px solid var(--gold-ink); outline-offset: 2px; }
.primary { background: var(--green); color: var(--bg); border-color: var(--green); font-weight: 600; }
.primary:hover { background: var(--green); }
aside { width: 15.3125rem; position: fixed; inset: 0 auto 0 0; background: var(--panel); border-right: 1px solid var(--line); padding: 1.875rem 1.25rem; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 0.625rem; font-size: var(--fs-lg); font-weight: 750; letter-spacing: -.7px; }
.workspace-label { font-size: var(--fs-xs); letter-spacing: 1.8px; color: var(--gold-pale); margin: 3rem 0.75rem 0.875rem; }
.nav { display: flex; width: 100%; gap: 0.75rem; text-align: left; border: 0; margin: 0.25rem 0; color: var(--gold-pale); padding: 0.8125rem; }
.nav.active { background: var(--sunken); color: var(--gold-ink); font-weight: 600; }
.side-bottom { margin-top: auto; }
.local-label { border-top: 1px solid var(--line); margin-top: 1.25rem; padding: 1.375rem 0.5rem 0; color: var(--gold-pale); font-size: var(--fs-xs); }
.local-label i { display: inline-block; width: 6px; height: 6px; background: var(--success); border-radius: 50%; margin-right: 0.4375rem; }
main { margin-left: 15.3125rem; padding: 2.6875rem 2.375rem; }
header { display: flex; justify-content: space-between; align-items: center; gap: 0.9375rem; }
h1 { font-size: var(--fs-2xl); letter-spacing: -1px; margin: 0.5625rem 0; }
p { color: var(--muted); line-height: 1.6; }
.eyebrow { color: var(--muted); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 1.6px; }
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.125rem; margin: 1.75rem 0; }
.stats article { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 1.3125rem 1.5rem; box-shadow: 0 5px 18px var(--shadow); }
.stats span,.stats small { display: block; color: var(--muted); }
.stats strong { display: block; font-size: var(--fs-2xl); margin: 0.75rem 0 0.5rem; letter-spacing: -1px; }
.stats small { font-size: var(--fs-xs); }
.workspace { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow: hidden; box-shadow: 0 5px 18px var(--shadow); }
.toolbar { display: flex; justify-content: space-between; gap: 0.9375rem; padding: 1.0625rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tabs { background: var(--bg); padding: 0.1875rem; border-radius: 8px; display: flex; }
.tabs button { border: 0; background: hsl(from var(--panel) h s l / 0); color: var(--muted); padding: 0.5rem 0.9375rem; }
.tabs .selected { background: var(--panel); color: var(--green); box-shadow: 0 5px 18px var(--shadow); }
.tools { display: flex; gap: 0.5rem; flex-wrap: wrap; }
input,select { background: var(--panel); border: 1px solid var(--muted); color: var(--ink); border-radius: 7px; padding: 0.625rem; min-width: 0; }
#search { width: 12.8125rem; }
.canvas-caption { display: flex; justify-content: space-between; padding: 1.375rem 1.5rem 0; color: var(--muted); font-size: var(--fs-xs); letter-spacing: .6px; }
.chart { overflow: auto; min-height: 400px; padding: 2.25rem 1.25rem 3.4375rem; background-image: radial-gradient(var(--line) 1px,hsl(from var(--panel) h s l / 0) 1px); background-size: 18px 18px; }
.forest { display: flex; justify-content: center; width: max-content; min-width: 100%; transform-origin: top left; }
.tree { display: flex; flex-direction: column; align-items: center; padding: 0 0.75rem; position: relative; }
.branches { display: flex; padding-top: 2.25rem; position: relative; }
.branches:before { content: ''; position: absolute; height: 18px; width: 1px; background: var(--line-strong); top: 0; left: 50%; }
.branches>.tree:before { content: ''; height: 18px; position: absolute; top: -18px; left: 0; right: 0; border-top: 1px solid var(--line-strong); }
.branches>.tree:first-child:before { left: 50%; }
.branches>.tree:last-child:before { right: 50%; }
.branches>.tree:after { content: ''; position: absolute; height: 18px; width: 1px; background: var(--line-strong); top: -18px; left: 50%; }
.person { width: 235px; text-align: left; padding: 1.125rem; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: 10px; box-shadow: 0 5px 18px var(--shadow); }
.person-top { display: flex; gap: 0.75rem; align-items: center; }
.avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; display: flex; align-items: center; justify-content: center; background: var(--sunken); color: var(--green); font-weight: 700; flex-shrink: 0; }
.person h3 { font-size: var(--fs-sm); margin: 0 0 0.3125rem; overflow-wrap: anywhere; }
.person p { font-size: var(--fs-xs); margin: 0; overflow-wrap: anywhere; }
.person-tags { border-top: 1px solid var(--line); margin-top: 0.875rem; padding-top: 0.6875rem; color: var(--muted); font-size: var(--fs-xs); line-height: 1.7; overflow-wrap: anywhere; }
.badge { display: inline-block; background: var(--sunken); color: var(--green); border-radius: 4px; padding: 0.1875rem 0.375rem; margin-bottom: 0.3125rem; }
.directory { padding: 1.5rem; display: grid; grid-template-columns: repeat(auto-fill,minmax(235px,1fr)); gap: 1.125rem; }
.directory .person { width: 100%; }
.empty { text-align: center; padding: 4.375rem 1.25rem; }
.empty-icon { font-size: var(--fs-2xl); color: var(--green); }
.empty h2 { font-size: var(--fs-lg); }
footer { border-top: 1px solid var(--line); padding: 0.75rem 1.375rem; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: var(--fs-xs); }
footer button { padding: 0.25rem 0.5625rem; }
#zoomLevel { padding: 0 0.75rem; }
dialog { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--ink); padding: 1.75rem; width: 520px; max-width: 94vw; max-height: 90vh; overflow: auto; box-shadow: 0 30px 100px var(--shadow-2); }
dialog::backdrop { background: hsl(from var(--ink) h s l / .4); backdrop-filter: blur(3px); }
.modal-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.modal-heading h2 { margin: 0.375rem 0; }
.modal-heading button { border: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: flex; flex-direction: column; gap: 0.5rem; font-size: var(--fs-xs); font-weight: 600; margin-bottom: 1rem; }
label span { font-weight: 400; color: var(--muted); }
.form-grid label { margin: 0; }
.full { grid-column: 1/-1; }
.check { flex-direction: row; align-items: center; }
.modal-actions { display: flex; justify-content: space-between; margin-top: 1.5625rem; }
.danger { color: var(--danger-soft); }
.auth { min-height: 100vh; display: grid; place-items: center; padding: 1.25rem; background: radial-gradient(ellipse at top,hsl(from var(--green) h s l / .12),hsl(from var(--panel) h s l / 0) 70%); }
.auth-card { background: var(--panel); padding: 2.5rem; border: 1px solid var(--line); border-radius: 18px; width: 400px; max-width: 100%; box-shadow: 0 5px 18px var(--shadow); }
.auth-card form { margin-top: 1.75rem; }
.auth-card .primary { width: 100%; }
#authError { color: var(--danger-soft); }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.75rem 0; }
#secret { display: block; overflow-wrap: anywhere; padding: 0.75rem; background: var(--bg); }
#totpSetup { margin: 1.25rem 0; }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--panel); padding: 0.875rem 1.375rem; border-radius: 9px; box-shadow: 0 5px 18px var(--shadow); display: none; z-index: 10; max-width: 90vw; }
@media (max-width: 900px) {
aside { width: 12.8125rem; padding: 1.5625rem 0.75rem; }
main { margin-left: 12.8125rem; padding: 1.875rem 1.375rem; }
.toolbar { flex-direction: column; }
}
@media (max-width: 600px) {
aside { position: static; width: auto; flex-direction: row; align-items: center; padding: 0.75rem; flex-wrap: wrap; gap: 0.3125rem; }
.brand { margin-right: auto; }
.workspace-label,.local-label,.side-bottom .nav span,aside>.nav { display: none; }
.side-bottom { display: flex; margin: 0; }
.nav { width: auto; margin: 0; }
.side-bottom .nav { padding: 0.5rem; }
.brand { font-size: var(--fs-lg); }
main { margin: 0; padding: 1.4375rem 0.875rem; }
h1 { font-size: var(--fs-xl); }
header { align-items: flex-start; }
header p { font-size: var(--fs-xs); }
.stats { gap: 0.5rem; }
.stats article { padding: 0.9375rem 0.75rem; }
.stats small { display: none; }
.stats span { font-size: var(--fs-xs); }
.stats strong { font-size: var(--fs-xl); }
.tools { gap: 0.3125rem; }
#search { width: 100%; }
.canvas-caption span:last-child { display: none; }
.form-grid { grid-template-columns: 1fr; }
.full { grid-column: auto; }
}
.group-card { border-top-color: var(--gold-deep); background: var(--sunken); }
.group-card .avatar { background: var(--panel); color: var(--gold-deep); }
#recoveryCodes { padding: 1.25rem; background: var(--bg); font-size: var(--fs-base); line-height: 1.9; letter-spacing: 1px; }
#recoveryModal { z-index: 20; }
.header-actions { display: flex; gap: 0.5rem; }
#importModal { width: 1000px; }
.import-row { display: grid; grid-template-columns: 24px repeat(5,minmax(100px,1fr)); gap: 0.625rem; padding: 0.875rem 0; border-bottom: 1px solid var(--line); }
.import-row label { margin: 0; }
.import-row>input { align-self: center; }
#importRows { max-height: 42vh; overflow: auto; margin: 1.25rem 0; }
@media (max-width: 600px) {
.header-actions { flex-direction: column; }
.import-row { grid-template-columns: 24px 1fr; }
.import-row label { grid-column: 2; }
}
.entry-card { width: 235px; position: relative; }
.entry-card .person { width: 100%; }
.quick-add { display: block; width: 100%; margin-top: 0.375rem; padding: 0.375rem; color: var(--green); font-size: var(--fs-xs); background: var(--panel); border-style: dashed; }
.directory .entry-card { width: 100%; }
.child-buttons { display: flex; flex-wrap: wrap; gap: 0.4375rem; }
#childActions { border-top: 1px solid var(--line); margin-top: 1.375rem; padding-top: 0.625rem; }
#childHint { font-size: var(--fs-xs); }
.team-field input:not([type=hidden]) { margin-top: 0.25rem; }
aside { background: var(--green-deep); color: var(--gold-pale); border-right: 1px solid var(--warning); }
.brand { color: var(--gold-pale); }
.workspace-label { color: var(--gold-pale); }
.nav { background: hsl(from var(--panel) h s l / 0); color: var(--gold-pale); }
.nav:hover { background: hsl(from var(--panel) h s l / .04); }
.nav.active { background: var(--gold); color: var(--gold-ink); }
.local-label { color: var(--gold-pale); border-top-color: var(--line-strong); }
.local-label i { background: var(--gold); }
.primary { background: var(--green); border-color: var(--green); color: var(--bg); }
.primary:hover { background: var(--green); }
.auth { background: radial-gradient(ellipse at top,hsl(from var(--gold) h s l / .12),hsl(from var(--panel) h s l / 0) 70%); }
.auth-card { border-top: 4px solid var(--warning); }
.eyebrow { color: var(--gold-deep); }
.person.colored-card { background: var(--card-bg); color: var(--card-ink); border-color: var(--line-strong); border-top: 4px solid var(--warning); }
.colored-card p,.colored-card .person-tags { color: var(--card-ink); }
.colored-card .person-tags { border-color: currentColor; }
.colored-card .badge,.colored-card .avatar { color: var(--card-ink); background: hsl(from var(--panel) h s l / 0); border: 1px solid currentColor; }
.colored-card .person-tags { opacity: .88; }
.color-settings { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; border: 1px solid var(--line); padding: 0.875rem; border-radius: 10px; }
.color-settings label { margin: 0; }
.color-settings input[type=color] { width: 64px; height: 40px; padding: 0.1875rem; }
.color-swatches { display: flex; gap: 0.3125rem; }
.color-swatches button { padding: 0; width: 25px; height: 25px; border-radius: 50%; border: 1px solid var(--line-strong); }
.color-preview { flex-basis: 100%; padding: 0.75rem; border-radius: 7px; text-align: center; font-weight: 600; }
.tabs .selected { box-shadow: inset 0 -2px 0 var(--warning); }
.person-top>div { min-width: 0; }
.person h3:last-child { margin: 0; }
.person-tags:empty { display: none; }
.view-controls,.filter-controls { display: flex; align-items: end; gap: 0.625rem; flex-wrap: wrap; padding: 1rem 1.125rem; border-bottom: 1px solid var(--line); }
.view-controls { background: var(--bg); }
.view-controls label,.filter-controls label { margin: 0; }
.filter-controls select { max-width: 240px; }
#areaFilter { max-width: 300px; }
.filter-controls .check { padding: 0.625rem 0; }
#viewDirty { color: var(--muted); font-size: var(--fs-xs); padding: 0.625rem 0; }
.person.context-card { border-style: dashed; }
.token-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); font-size: var(--fs-xs); }
#tokenForm { margin-top: 1.125rem; }
#apiBase { overflow-wrap: anywhere; }
#newToken { width: 100%; padding: 0.75rem; background: var(--bg); color: var(--ink); border: 1px solid var(--line); font: var(--fs-sm) monospace; resize: vertical; }
#presentationBar { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--line); background: var(--panel); }
#presentTitle { margin-right: auto; color: var(--ink); }
#presentUpdated { font-size: var(--fs-xs); color: var(--muted); }
html body.presentation aside,html body.presentation main>header,html body.presentation .stats,html body.presentation .toolbar,html body.presentation .view-controls,html body.presentation .filter-controls,html body.presentation .canvas-caption,html body.presentation footer,html body.presentation .quick-add { display: none; }
body.presentation main { margin: 0; padding: 0; }
body.presentation .workspace { height: 100dvh; border: 0; border-radius: 0; display: flex; flex-direction: column; }
body.presentation .chart { flex: 1; min-height: 0; padding: 1.5rem 1.25rem; overflow: auto; }
body.presentation .person { cursor: default; }
body.presentation .person:hover { border-color: var(--line-strong); }
#workspace:fullscreen { width: 100vw; height: 100vh; background: var(--panel); }
@media (max-width: 600px) {
#presentationBar { gap: 0.375rem; flex-wrap: wrap; padding: 0.5625rem; }
#presentUpdated { display: none; }
.view-controls button { padding: 0.5625rem; }
.filter-controls { gap: 0.75rem; }
.filter-controls label { flex: 1; min-width: 130px; }
.filter-controls select { width: 100%; }
#areaFilter { max-width: 100%; }
}
a { color: var(--green); }
html body.presentation #emptyAdd { display: none; }
#reportModal { width: 1100px; }
.report-tools { display: flex; gap: 0.75rem; align-items: end; flex-wrap: wrap; }
.report-tools label { margin: 0; }
.report-table-wrap { overflow: auto; max-height: 48vh; }
#reportTable { border-collapse: collapse; width: 100%; font-size: var(--fs-xs); }
#reportTable th { background: var(--green-deep); color: var(--gold-ink); position: sticky; top: 0; text-align: left; }
#reportTable th,#reportTable td { padding: 0.75rem; border: 1px solid var(--line); }
#reportTable tbody tr:nth-child(even) { background: var(--bg); }
#reportTable .count { text-align: right; font-variant-numeric: tabular-nums; }
#reportTable tfoot { font-weight: 700; background: var(--sunken); }
#reportTotals { font-weight: 600; color: var(--ink); }
#reportError { color: var(--danger-soft); }
.header-actions { flex-wrap: wrap; }
.profile-head { display: flex; align-items: center; gap: 1.125rem; margin-bottom: 1.5rem; }
.profile-head h2 { margin: 0; }
.profile-head p { margin: 0.4375rem 0 0; }
.profile-photo { width: 88px; height: 88px; border-radius: 14px; object-fit: cover; }
.profile-head>.avatar { width: 70px; height: 70px; font-size: var(--fs-xl); }
.profile-details { display: grid; grid-template-columns: 140px 1fr; gap: 0.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.profile-details dt { color: var(--muted); }
.profile-details dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) {
.profile-details { grid-template-columns: 105px 1fr; }
}
.positioned-forest { display: block; position: relative; min-width: 0; margin: 0 auto; transform-origin: top left; }
.connectors { position: absolute; inset: 0; overflow: visible; pointer-events: none; }
.connectors path { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.positioned-forest>.entry-card { z-index: 1; }
.layout-controls { display: flex; align-items: end; flex-wrap: wrap; gap: 0.625rem; padding: 0.875rem 1.125rem; border-bottom: 1px solid var(--line); }
.layout-controls label { margin: 0; }
#layoutHint { font-size: var(--fs-xs); color: var(--muted); padding-bottom: 0.625rem; }
.entry-layout-controls { display: none; gap: 0.3125rem; margin-top: 0.3125rem; }
.entry-layout-controls button { font-size: var(--fs-xs); padding: 0.375rem 0.5rem; flex: 1; }
.layout-editing .chart .entry-layout-controls { display: flex; }
.drag-handle { cursor: grab; }
.drag-handle:active { cursor: grabbing; }
.drop-target { outline: 3px solid var(--gold-ink); outline-offset: 5px; border-radius: 10px; }
.drag-source { opacity: .5; }
#rootDrop { margin: 0.75rem 1.125rem; padding: 1rem; border: 2px dashed var(--warning); border-radius: 9px; text-align: center; color: var(--green); }
html body.presentation .layout-controls,html body.presentation .entry-layout-controls,html body.presentation #rootDrop { display: none; }
#personModal { width: 620px; max-width: calc(100vw - 24px); overflow-x: hidden; overflow-y: auto; container-type: inline-size; }
#personForm { min-width: 0; width: 100%; max-width: 100%; }
#personModal .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); min-width: 0; }
#personModal .form-grid>* { min-width: 0; max-width: 100%; }
#personModal label { min-width: 0; overflow-wrap: anywhere; }
#personModal input:not([type=checkbox]):not([type=radio]):not([type=color]),
#personModal select { width: 100%; min-width: 0; max-width: 100%; }
#personModal .check { flex-wrap: wrap; }
#personModal input[type=checkbox] { flex-shrink: 0; }
#personModal .modal-heading { gap: 0.75rem; align-items: flex-start; }
#personModal .modal-heading>div { min-width: 0; flex: 1; }
#personModal .modal-heading h2 { overflow-wrap: anywhere; }
#personModal .modal-heading>button { flex-shrink: 0; }
#personModal .color-settings { width: 100%; min-width: 0; }
#personModal .color-settings>* { min-width: 0; max-width: 100%; }
#personModal .color-swatches { flex-wrap: wrap; }
#personModal .color-swatches button { flex-shrink: 0; }
#personModal .color-preview { width: 100%; overflow-wrap: anywhere; }
#personModal .modal-actions { flex-wrap: wrap; gap: 0.625rem; }
@container (max-width:460px) {
#personModal .form-grid { grid-template-columns: minmax(0,1fr); }
#personModal .form-grid .full { grid-column: 1/-1; }
}
@media (max-width: 600px) {
#personModal { padding: 1.25rem; }
#personModal .form-grid { grid-template-columns: minmax(0,1fr); }
#personModal .form-grid .full { grid-column: 1/-1; }
}
.library-picker { padding: 0.9375rem; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 1.25rem; background: var(--bg); min-width: 0; max-width: 100%; }
.library-picker h3 { margin: 0 0 0.5rem; }
.library-picker p { font-size: var(--fs-xs); margin: 0.5rem 0 0.75rem; overflow-wrap: anywhere; }
.library-picker label { margin-bottom: 0.625rem; }
.library-picker button { max-width: 100%; white-space: normal; }
#libraryPersonCount { margin-bottom: 0; color: var(--muted); }
.photo-cropper { padding: 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.photo-cropper h3 { margin: 0; }
.photo-cropper p { font-size: var(--fs-xs); }
.crop-frame { position: relative; width: min(100%,300px); aspect-ratio: 1; margin: 0.875rem auto; background: var(--panel); border: 2px solid var(--line); overflow: hidden; border-radius: 8px; }
#cropCanvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
#cropCanvas:active { cursor: grabbing; }
.crop-circle { position: absolute; inset: 0; border: 2px dashed var(--panel); border-radius: 50%; box-shadow: 0 0 0 100px var(--shadow-2); pointer-events: none; }
.photo-cropper label { margin: 0.75rem 0; }
.photo-cropper input[type=range] { padding: 0; }
.crop-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.person-error { border: 1px solid var(--danger-soft); background: var(--danger-pale); color: var(--danger); border-radius: 8px; padding: 0.875rem; margin-top: 1.125rem; overflow-wrap: anywhere; }
.dialog-message { border: 1px solid var(--gold); background: var(--sunken); color: var(--ink); border-radius: 8px; padding: 0.875rem; margin: 0 0 1rem; overflow-wrap: anywhere; }
.photo-tools:has(button.hidden) { display: none; }
.branch-toggle { display: block; width: 100%; margin-top: 0.375rem; font-size: var(--fs-xs); padding: 0.4375rem 0.5625rem; color: var(--green); background: var(--panel); border: 1px solid var(--line); border-radius: 7px; }
.branch-toggle[aria-expanded=false] { border-color: var(--warning); font-weight: 600; }
body.presentation .branch-toggle { opacity: .85; }
body.presentation .branch-toggle:hover { opacity: 1; }
.entry-card { width: 280px; display: grid; grid-template-rows: 156px 32px; row-gap: 0.5rem; align-content: start; }
.entry-card>.person { grid-row: 1; width: 100%; height: 156px; min-height: 156px; max-height: 156px; padding: 1rem 1.125rem; overflow: hidden; }
.person-top { height: 100%; width: 100%; gap: 0.75rem; align-items: center; }
.person-top>div { flex: 1; min-width: 0; }
.person .avatar { width: 48px; height: 48px; min-width: 48px; flex: none; }
.person h3 { font-size: var(--fs-sm); line-height: 18px; margin: 0 0 0.4375rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; max-height: 54px; overflow: hidden; overflow-wrap: anywhere; word-break: normal; hyphens: auto; }
.person p { font-size: var(--fs-xs); line-height: 16px; margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-height: 32px; overflow: hidden; overflow-wrap: anywhere; }
.card-actions { grid-row: 2; display: flex; gap: 0.4375rem; height: 32px; min-width: 0; }
.card-actions>.quick-add,.card-actions>.branch-toggle { flex: 1; width: auto; min-width: 0; height: 32px; margin: 0; padding: 0.3125rem 0.4375rem; font-size: var(--fs-xs); line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entry-layout-controls { grid-row: 3; margin: 0; height: 30px; }
.layout-editing .chart .entry-card { grid-template-rows: 156px 32px 30px; }
.directory { grid-template-columns: repeat(auto-fill,minmax(min(100%,280px),1fr)); }
.directory .entry-card { width: 100%; }
body.presentation .chart .entry-card { grid-template-rows: 156px 32px; }
.person.vacancy-card { border-top-color: var(--danger); }
#vacancyTools { padding: 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); margin-top: 1.125rem; }
#vacancyTools p { font-size: var(--fs-xs); }
#convertVacancy { margin-top: 1.125rem; color: var(--danger); }
.entry-card { grid-template-rows: 78px 32px; }
.entry-card>.person { height: 78px; min-height: 78px; max-height: 78px; padding: 0.5625rem 0.875rem; }
.person-top { gap: 0.625rem; }
.person .avatar { width: 38px; height: 38px; min-width: 38px; font-size: var(--fs-sm); }
.person h3 { font-size: var(--fs-sm); line-height: 16px; max-height: 32px; -webkit-line-clamp: 2; margin: 0 0 0.25rem; }
.person p { font-size: var(--fs-xs); line-height: 14px; max-height: 14px; -webkit-line-clamp: 1; }
.layout-editing .chart .entry-card { grid-template-rows: 78px 32px 30px; }
body.presentation .chart .entry-card { grid-template-rows: 78px 32px; }
.sort-actions { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-bottom: 0.75rem; }
.report-order-row { display: flex; align-items: center; gap: 0.375rem; padding: 0.625rem 0; border-bottom: 1px solid var(--line); font-size: var(--fs-xs); }
.report-order-row>span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.report-order-row button { padding: 0.375rem 0.625rem; }
.report-order-row button:disabled { opacity: .35; cursor: default; }
#entryOrderReports { margin-top: 1rem; }
.chart { overflow-anchor: none; }
.person .avatar.structure-avatar,.colored-card .avatar.structure-avatar { object-fit: contain; border: 0; border-radius: 0; background: hsl(from var(--panel) h s l / 0); }
.person .avatar.default-badge,.profile-photo.default-badge,.colored-card .avatar.default-badge { object-fit: contain; border: 0; border-radius: 0; background: hsl(from var(--panel) h s l / 0); }
.photo-choice { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; padding: 0.75rem; border: 1px solid var(--line); border-radius: 8px; }
.photo-choice img { width: 60px; height: 70px; object-fit: cover; border-radius: 8px; }
.photo-choice img.default-badge { object-fit: contain; border-radius: 0; }
.photo-choice p { flex: 1; min-width: 140px; font-size: var(--fs-xs); }
.entry-card { grid-template-rows: 108px 32px; }
.entry-card>.person { height: 108px; min-height: 108px; max-height: 108px; }
.layout-editing .chart .entry-card { grid-template-rows: 108px 32px 30px; }
body.presentation .chart .entry-card { grid-template-rows: 108px 32px; }
.person-top { height: 56px; }
.card-tag-bubbles { display: flex; gap: 0.25rem; align-items: center; height: 24px; margin-top: 0.3125rem; overflow: hidden; }
.tag-bubble { display: inline-flex; align-items: center; gap: 0.3125rem; border: 1px solid currentColor; border-radius: 20px; padding: 0.125rem 0.4375rem; font-size: var(--fs-xs); line-height: 16px; max-width: 100%; min-width: 0; }
.card-tag-bubbles .tag-bubble { max-width: 6.5625rem; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--card-ink); flex-shrink: 1; }
.tag-editor h3 { font-size: var(--fs-xs); margin: 0 0 0.5rem; }
.tag-bubbles { display: flex; flex-wrap: wrap; gap: 0.4375rem; margin-bottom: 0.625rem; }
.tag-bubbles .tag-bubble { background: var(--sunken); color: var(--ink); font-size: var(--fs-xs); padding: 0.25rem 0.5rem; overflow-wrap: anywhere; }
.tag-remove { border: 0; background: hsl(from var(--panel) h s l / 0); padding: 0 0.1875rem; line-height: 20px; font-size: var(--fs-lg); flex-shrink: 0; color: inherit; }
.tag-input-row { display: flex; gap: 0.5rem; min-width: 0; }
.tag-input-row input { flex: 1; min-width: 0; }
.tag-suggestions { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 0.5rem; }
.tag-suggestion { font-size: var(--fs-xs); padding: 0.3125rem 0.5625rem; border-radius: 20px; }
.tag-editor p { font-size: var(--fs-xs); margin: 0.4375rem 0; }
#tagError { color: var(--danger-soft); }
.tag-bubble>span { min-width: 0; overflow-wrap: anywhere; }
.employee-lookup { padding: 0.875rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.employee-lookup h3 { font-size: var(--fs-sm); margin: 0 0 0.625rem; }
.employee-lookup p { font-size: var(--fs-xs); margin: 0.5rem 0; }
.employee-result { display: flex; justify-content: space-between; align-items: center; gap: 0.625rem; border-top: 1px solid var(--line); padding: 0.625rem 0; }
.employee-result strong { overflow-wrap: anywhere; }
.employee-result button { flex-shrink: 0; }
#employeeLookupResults { max-height: 260px; overflow: auto; }
#employeeDirectoryIssues { max-height: 230px; overflow: auto; padding-left: 1.375rem; overflow-wrap: anywhere; }
#employeeDirectoryError { color: var(--danger-soft); }
.person.has-classification { position: relative; }
.classification-badge { position: absolute; top: 7px; right: 9px; border: 1px solid; border-radius: 999px; padding: 0.125rem 0.4375rem; font-size: var(--fs-xs); font-weight: 700; line-height: 14px; white-space: nowrap; max-width: 72px; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.person.has-classification .person-top>div { padding-right: 4.5rem; }
.person.has-count { position: relative; }
.export-toggle { display: inline-flex; align-items: center; gap: .375rem; font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; cursor: pointer; user-select: none; }
.export-toggle input { margin: 0; accent-color: var(--green); }
.count-badge { position: absolute; bottom: 8px; right: 9px; border: 1px solid; border-radius: 999px; padding: 0.125rem 0.4375rem; font-size: var(--fs-xs); font-weight: 700; line-height: 14px; white-space: nowrap; max-width: calc(100% - 1.125rem); overflow: hidden; text-overflow: ellipsis; }
.person.has-count .card-tag-bubbles { padding-right: 6.5625rem; }
.person.has-count .card-tag-bubbles .tag-bubble { min-width: 0; }
.entry-card.component-entry,body.presentation .chart .entry-card.component-entry { grid-template-rows: 44px 32px; }
.layout-editing .chart .entry-card.component-entry { grid-template-rows: 44px 32px 30px; }
.entry-card>.person.component-card { height: 44px; min-height: 44px; max-height: 44px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0.3125rem 0.75rem; }
.component-card h3 { margin: 0; text-align: center; font-size: var(--fs-sm); line-height: 16px; max-height: 32px; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.transferred-person { opacity: .8; }
.person .card-tag-bubbles .transferred-label { background: var(--gold-pale); color: var(--gold-ink); border-color: var(--warning); }
.position-history { font-size: var(--fs-xs); line-height: 1.6; padding-left: 1.25rem; overflow-wrap: anywhere; }
#transferError { color: var(--danger-soft); }
.modal-actions { flex-wrap: wrap; gap: 0.5rem; }
.header-actions { flex-wrap: wrap; justify-content: flex-end; }
aside { overflow-y: auto; }
.chart-switch-label { margin: 0.875rem 0; color: var(--gold-pale); }
.chart-switch-label select { width: 100%; }
.v2-row { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); min-width: 0; }
.v2-row>div { min-width: 0; overflow-wrap: anywhere; }
.v2-row p { margin: 0.25rem 0; font-size: var(--fs-xs); }
.v2-row a { overflow-wrap: anywhere; }
.v2-user { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.v2-user label { margin: 0; }
.v2-user input[type=password] { max-width: 210px; }
.v2-user>strong { min-width: 100px; }
#chartsModal,#positionsModal,#schedulesModal,#usersModal,#backupsModal,#whatsNewModal { width: 760px; }
.release-entry { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.release-entry h3 { color: var(--ink); margin: 0 0 0.5rem; }
.release-entry li { line-height: 1.6; }
body .viewer-mode .quick-add,body .viewer-mode .entry-layout-controls { display: none; }
#chartsError,#positionDetailsError,#schedulesError,#usersError,#backupsError { color: var(--danger-soft); }
.person.has-tfo-assignment { position: relative; }
.tfo-assignment-badge { position: absolute; top: 7px; right: 9px; max-width: 5.9375rem; border: 1px solid var(--success); border-radius: 999px; padding: 0.125rem 0.4375rem; font-size: var(--fs-xs); font-weight: 700; line-height: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--green-pale); color: var(--success); pointer-events: none; }
.person.tfo-below-classification .tfo-assignment-badge { top: 29px; }
/* 2.5.0: purchasing-card holder badge. Rides in the tag row so the two-chip tag cap cannot hide it. */
.tag-bubble.p-card-badge { background: var(--success); border: 1px solid var(--success); color: #fff; font-weight: 700; letter-spacing: 0.02em; }
.person.has-tfo-assignment .person-top>div { padding-right: 5.9375rem; }
.legacy-k9-flag { display: none; }
.chart .entry-card.k9-entry { width: 140px; }
.chart .k9-entry>.person { width: 100%; padding: 0.5625rem 0.625rem; }
.chart .k9-entry .person-top { gap: 0.4375rem; }
.chart .k9-entry .avatar { width: 30px; height: 38px; min-width: 30px; }
.chart .k9-entry h3 { font-size: var(--fs-xs); line-height: 16px; }
.chart .k9-entry p { font-size: var(--fs-xs); }
.chart .k9-entry .card-tag-bubbles .tag-bubble { max-width: 115px; }
.entry-card.structure-entry { grid-template-rows: 84px 32px; }
.layout-editing .chart .entry-card.structure-entry { grid-template-rows: 84px 32px 30px; }
body.presentation .chart .entry-card.structure-entry { grid-template-rows: 84px 32px; }
.entry-card.structure-entry>.person { height: 84px; min-height: 84px; max-height: 84px; padding: 0.375rem 0.875rem; }
.structure-entry .person-top { height: 44px; gap: 0.625rem; }
.structure-entry .avatar { width: 32px; height: 42px; min-width: 32px; }
.structure-entry h3 { font-size: var(--fs-sm); line-height: 15px; max-height: 30px; -webkit-line-clamp: 2; margin: 0 0 0.125rem; }
.structure-entry p { font-size: var(--fs-xs); line-height: 12px; }
.structure-entry .card-tag-bubbles { display: none; }
.structure-entry .count-badge { bottom: 5px; }
#usageModal { width: 950px; }
#usageMatches { display: flex; flex-direction: column; gap: 0.75rem; }
.usage-match { padding: 0.75rem; border: 1px solid var(--line); border-radius: 8px; }
.usage-match select { width: 100%; margin: 0.5rem 0; }
.usage-match .form-grid { gap: 0.5rem; }
.usage-top-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.usage-match input { max-width: 100%; }
#usageError { color: var(--danger-soft); }
.usage-match[data-status=missing],.usage-match[data-status=review] { border-color: var(--warning); }
@media (max-width: 600px) {
.usage-top-grid { grid-template-columns: 1fr; }
}
@media screen {

}
@media screen {
:is(button,a,input,select,textarea,summary):focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
input,textarea { caret-color: var(--green); }
input::placeholder,textarea::placeholder { opacity: 1; }
button,.button,summary { min-height: 44px; }
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea { min-height: 44px; max-width: 100%; }
dialog { max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
dialog :is(h1,h2,h3) { overflow-wrap: anywhere; }
dialog::backdrop { backdrop-filter: none; }
main { min-width: 0; }
.ui-skip { position: fixed; z-index: 100000; top: 12px; left: 12px; transform: translateY(-180%); background: var(--panel); color: var(--ink); border: 2px solid var(--green); border-radius: 8px; padding: 0.75rem 1.125rem; font: 600 var(--fs-sm)/1.4 system-ui; text-decoration: none; }
.ui-skip:focus { transform: none; }
.eyebrow,.page-kicker,.auth-eyebrow { display: none; }
}
@media screen {
@media (max-width: 900px) {
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea { font-size: var(--fs-base); }
dialog { width: calc(100% - 24px); max-width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
}
}
@media (prefers-reduced-motion: reduce) {
*,*::before,*::after { animation: none!important; transition: none!important; scroll-behavior: auto!important; }
}
@media print {
.ui-skip { display: none; }
}
@media screen {
.view-controls label,.filter-controls label,.form-grid label { font-size: var(--fs-sm); line-height: 1.5; }
.view-controls,.filter-controls { gap: 0.75rem; }
.usage-match p,.usage-match small { font-size: var(--fs-sm); line-height: 1.6; }
.usage-top-grid :is(td,th) { font-size: var(--fs-sm); }
.usage-top-grid td:last-child { font-variant-numeric: tabular-nums; }
.nav { font-size: var(--fs-sm); }
@media (max-width: 900px) {
.view-controls,.filter-controls { align-items: stretch; gap: 0.75rem; }
.view-controls>label,.filter-controls>label { flex: 1 1 150px; min-width: 0; }
.view-controls select,.filter-controls select { max-width: 100%; }
.usage-top-grid { grid-template-columns: 1fr; }
.usage-match .form-grid { grid-template-columns: 1fr; }
}
}
small { font-size: var(--fs-xs); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-base); }

/* Radio ID on the card: small, quiet, next to the classification badge. */
.person .radio-badge{position:absolute;top:.35rem;right:.4rem;font-size:.62rem;letter-spacing:.02em;font-weight:700;
 padding:.1rem .32rem;border-radius:.35rem;background:rgba(0,0,0,.35);color:inherit;opacity:.85;
 border:1px solid rgba(255,255,255,.25);pointer-events:none}
.person.has-classification .radio-badge{right:auto;left:.4rem;top:.35rem}
