.people-explorer {margin:0 auto 24px;max-width:1000px;text-align:left}
.people-explorer [hidden],#peopleStage[hidden],#peopleMapHost[hidden],#peopleStage .person[hidden] {display:none!important}
.pe-controls {display:flex;align-items:flex-end;gap:16px;justify-content:space-between;flex-wrap:wrap;margin-bottom:12px}
.pe-switch {display:flex;gap:5px;border:1px solid #d9c48d;padding:4px;border-radius:30px;background:#fbf8ed}
.pe-switch button {min-height:44px;border:0;border-radius:24px;background:transparent;color:#192b47;padding:8px 22px;font:600 14px system-ui;cursor:pointer}
.pe-switch button[aria-pressed="true"] {background:#172844;color:#fff9e9}
.pe-search {flex:1;max-width:430px;min-width:200px;font:600 13px system-ui;color:#34455f}
.pe-search input {width:100%;margin-top:7px;min-height:46px;padding:10px 15px;border:1px solid #d9c48d;border-radius:24px;background:#fffdf8;color:#172844;font:16px system-ui;box-sizing:border-box}
.pe-search-meta {display:flex;align-items:center;justify-content:space-between;gap:10px;font:13px system-ui;color:#61708a;min-height:44px}
.pe-search-results {display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.pe-search-results button {min-height:44px}
#peopleMapHost {text-align:left}
.pm-tools {display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:10px}
.pm-tools button {min-height:44px;min-width:44px}
.pm-tools button:first-child,.pm-tools button:nth-child(2) {font-size:22px;padding:3px 13px}
.pm-zoom {font:12px system-ui;color:#6b7484;margin-left:auto}
.pm-viewport {position:relative;width:100%;height:560px;max-height:70svh;min-height:400px;overflow:hidden;border:1px solid #dccc9f;border-radius:26px;touch-action:none;cursor:grab;background:radial-gradient(ellipse at 30% 30%,rgba(222,195,118,.18),transparent 55%),radial-gradient(ellipse at 75% 75%,rgba(120,145,157,.13),transparent 60%),#f9f5e8}
.pm-viewport:active {cursor:grabbing}
.pm-viewport:focus-visible {outline:3px solid #49667f;outline-offset:3px}
.pm-threads,.pm-nodes {position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.pm-thread {fill:none;stroke:rgba(163,124,35,.4);stroke-width:1.15;visibility:hidden}
.pm-thread.is-visible {visibility:visible}
.pm-thread.is-immediate {stroke:rgba(162,118,23,.9);stroke-width:2;filter:drop-shadow(0 0 3px rgba(197,159,63,.25))}
.pm-node {position:absolute;transform:translate(-50%,-50%);width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;cursor:pointer;pointer-events:auto;display:flex;align-items:center;justify-content:center;color:#172844;transition:opacity .18s ease}
.pm-node .pm-light {width:16px;height:16px;display:block;flex-shrink:0;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff9de 0,#edcf76 40%,#be8d29 100%);box-shadow:0 0 0 5px rgba(218,183,95,.1),0 0 18px rgba(195,150,43,.24);border:1px solid rgba(170,128,34,.4)}
.pm-node.is-self .pm-light {width:23px;height:23px;box-shadow:0 0 0 7px rgba(218,183,95,.12),0 0 24px rgba(195,150,43,.35)}
.pm-node.is-active .pm-light {width:25px;height:25px;box-shadow:0 0 0 8px rgba(218,183,95,.18),0 0 24px rgba(195,150,43,.45)}
.pm-node.is-active,.pm-node.is-connected,.pm-node.show-name {z-index:2}
.pm-node.is-muted {opacity:.24}
.pm-name {position:absolute;top:40px;left:50%;transform:translateX(-50%);max-width:142px;width:max-content;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:500 12px/1.4 system-ui;background:rgba(249,245,232,.94);border-radius:6px;padding:2px 5px;opacity:0;pointer-events:none}
.pm-node.show-name .pm-name {opacity:1}
.pm-node:focus-visible {outline:2px solid #49667f;outline-offset:3px}
.pm-hint {font:13px/1.6 system-ui;color:#637087;margin:12px 3px}
.pm-selection {min-height:100px;padding:22px;border:1px solid #e1d3ac;border-radius:22px;background:#fbf8ed;margin-top:16px}
.pm-selected-name {font:30px/1.2 Georgia,serif;color:#172844;margin:0 0 8px}
.pm-identity,.pm-prompt,.pm-connections-count {font:14px/1.6 system-ui;color:#627089;margin:5px 0 10px}
.pm-selection-actions {display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:16px 0}
.pm-selection-actions button {min-height:44px}
.pm-neighbor-list {list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:7px}
.pm-neighbor-list button {min-height:44px}
#peopleStage .people-threads {display:none}
#peopleStage .people-grid {display:grid;grid-template-columns:1fr;gap:10px;padding:0;max-width:1000px;margin:0 auto}
#peopleStage .person {display:grid;grid-template-columns:60px 1fr auto;column-gap:14px;align-items:center;text-align:left;min-height:84px;padding:15px 20px;background:#fbf8ed;border:1px solid #e2d3a8;border-radius:20px;width:100%;box-sizing:border-box;opacity:1}
#peopleStage .person-light-wrap {grid-row:1 / span 4;grid-column:1;margin:0;position:relative;width:52px;height:52px}
#peopleStage .person-light {width:48px;height:48px;font-size:21px}
#peopleStage .person-name {grid-column:2;margin:0;font-size:22px}
#peopleStage .person-identity,#peopleStage .person-relationship,#peopleStage .person-connections {grid-column:2;margin:2px 0;font-size:13px}
#peopleStage .person-edit-self {grid-column:3;grid-row:1 / span 4;margin:0;min-height:44px}
@media(max-width:600px){.pm-viewport {height:520px;max-height:66svh;min-height:380px;border-radius:20px}.pe-search {max-width:none;flex-basis:100%}.pe-controls {gap:10px}.pm-selection {padding:18px}.pm-selection-actions {gap:6px}#peopleStage .person {padding:12px;grid-template-columns:52px 1fr;gap:2px 10px}#peopleStage .person-edit-self {grid-column:2;grid-row:auto;justify-self:start;margin-top:6px}.pm-name {font-size:11px;max-width:130px}}
@media(prefers-reduced-motion:reduce){.pm-node {transition:none}}
.pm-open-person {position:absolute;bottom:14px;right:14px;z-index:4;max-width:calc(100% - 28px);min-height:44px;white-space:normal;text-align:center;box-shadow:0 5px 18px rgba(23,40,68,.12)}
.pm-open-person[hidden] {display:none!important}
.people-entrance {padding-top:36px}
.people-entrance>.people-kicker {margin-bottom:12px}
.people-entrance>.people-title {font-size:clamp(2.7rem,5vw,3.8rem)}
.people-entrance>.people-subhead {margin-top:12px}
.people-entrance>.people-divider {margin:20px auto 18px}
.pe-search-meta {min-height:28px}
.pe-search-meta p {margin:8px 0 12px}
#peopleExplorerHint {display:none}
@media(max-width:600px){.people-entrance {padding-top:28px}.people-entrance>.people-title {font-size:2.7rem}.people-entrance>.people-subhead {font-size:.9rem;margin-top:8px}.people-entrance>.people-divider {margin:16px auto}.pm-viewport {max-height:62svh}}
/* A quiet black sky, with white suns and golden family threads. */
.pm-viewport {background:radial-gradient(ellipse at 50% 42%,rgba(28,40,62,.24),transparent 65%),#000;border-color:rgba(199,169,107,.42);box-shadow:inset 0 0 80px rgba(0,0,0,.8)}
.pm-node .pm-light {background:radial-gradient(circle at 38% 34%,#fff 0,#fbfdff 35%,#dce7f4 72%,#a6b6cb 100%);border:1px solid rgba(255,255,255,.85);box-shadow:0 0 6px rgba(255,255,255,.95),0 0 17px rgba(226,237,255,.48),0 0 30px rgba(196,216,246,.16)}
.pm-node.is-self .pm-light {box-shadow:0 0 9px #fff,0 0 24px rgba(234,244,255,.65),0 0 46px rgba(200,218,246,.22)}
.pm-node.is-active .pm-light {box-shadow:0 0 10px #fff,0 0 28px rgba(239,247,255,.8),0 0 48px rgba(206,226,255,.35)}
.pm-node.is-muted {opacity:.2}
.pm-name {color:#f5f7fc;background:rgba(0,0,0,.88);font-weight:500}
.pm-thread {stroke:rgba(214,176,91,.6);stroke-width:1.2}
.pm-thread.is-immediate {stroke:rgba(245,207,113,.97);stroke-width:2;filter:drop-shadow(0 0 4px rgba(216,178,82,.4))}
.pm-viewport:focus-visible,.pm-node:focus-visible {outline-color:#b7d7ff}
.pm-person-actions {display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:9px;margin:16px 0}
.pm-person-actions button,.pm-person-actions a {min-height:44px;white-space:normal;text-align:center;justify-content:center;text-decoration:none;box-sizing:border-box}
@media(max-width:600px){.pm-person-actions {grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.pm-thread {animation:none!important;transition:none!important}}
.pm-viewport {scroll-margin-top:18px;scroll-margin-bottom:110px}
