.npc-panel, .npc-view { --npc-good:#22c55e; --npc-bad:#ef4444; --npc-text:#d9ccb0; --npc-strong:#f1e1b4; --npc-mute:#9a8f78; --npc-line:#a68b4a44; --npc-surface:#091b1680; }
.npc-panel { color:var(--npc-text); }
.npc-intro, .npc-empty, .npc-muted { text-align:center; color:var(--npc-mute); font-size:13px; margin:6px 0 12px; }
.npc-roster { display:grid; grid-template-columns:repeat(auto-fill,minmax(132px,1fr)); gap:10px; }
.npc-roster__card { display:flex; flex-direction:column; align-items:center; gap:4px; padding:10px 8px; background:var(--npc-surface); border:1px solid var(--npc-line); border-radius:8px; color:inherit; cursor:pointer; font:inherit; }
.npc-roster__card:hover, .npc-roster__card:focus-visible { border-color:#d6b25e; background:#0d2a2280; }
.npc-roster__portrait { width:64px; height:64px; display:flex; align-items:flex-end; justify-content:center; overflow:hidden; }
.npc-roster__name { color:var(--npc-strong); font-weight:600; font-size:13px; text-align:center; }
.npc-roster__rank { font-size:11px; color:var(--npc-mute); }
.npc-chip { display:inline-flex; align-items:center; padding:1px 8px; border-radius:999px; font-size:11px; font-weight:600; color:var(--npc-chip); border:1px solid var(--npc-chip); background:color-mix(in srgb,var(--npc-chip) 14%,transparent); }
.npc-favor { position:relative; display:block; width:100%; height:5px; border-radius:3px; background:#ffffff14; overflow:hidden; }
.npc-favor::after { content:''; position:absolute; left:50%; top:0; bottom:0; width:1px; background:#ffffff55; }
.npc-favor__fill { position:absolute; top:0; bottom:0; border-radius:3px; }
.npc-favor--large { height:8px; margin-top:8px; }
.npc-card { display:flex; flex-direction:column; gap:10px; }
.npc-back { align-self:center; }
.npc-card__chips { display:flex; gap:6px; justify-content:center; flex-wrap:wrap; }
.npc-card__favor { font-size:12px; color:var(--npc-mute); text-align:center; margin-top:4px; }
.npc-card__favor b { color:var(--npc-strong); }
.npc-notice { text-align:center; padding:8px 12px; border-radius:8px; font-size:13px; border:1px solid; margin-bottom:8px; }
.npc-notice--good { color:#bbf7d0; border-color:#22c55e66; background:#14532d55; }
.npc-notice--bad { color:#fecaca; border-color:#ef444466; background:#7f1d1d55; }
.npc-section-title { text-align:center; font-size:11px; letter-spacing:1px; text-transform:uppercase; color:#d6b25e; margin-top:10px; }
.npc-traits { display:flex; gap:6px; justify-content:center; flex-wrap:wrap; margin-bottom:8px; }
.npc-trait { padding:3px 10px; border-radius:6px; background:#d6b25e22; border:1px solid #d6b25e66; color:var(--npc-strong); font-size:12px; cursor:help; }
.npc-actions { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:8px; }
.npc-action { display:flex; flex-direction:column; align-items:stretch; gap:3px; text-align:center; }
.npc-action small { color:var(--npc-mute); font-size:11px; }
.npc-gifts { display:flex; flex-direction:column; gap:6px; align-items:stretch; }
.npc-gifts > .sect-btn { align-self:center; }
.npc-gift { display:grid; grid-template-columns:1fr auto; gap:0 10px; padding:6px 10px; text-align:left; background:var(--npc-surface); border:1px solid var(--npc-line); border-radius:8px; color:inherit; font:inherit; cursor:pointer; }
.npc-gift:hover, .npc-gift:focus-visible { border-color:#d6b25e; }
.npc-gift span { color:var(--npc-strong); font-size:13px; }
.npc-gift small { grid-column:1; color:var(--npc-mute); font-size:11px; }
.npc-gift b { grid-row:1 / span 2; grid-column:2; align-self:center; }
.npc-good { color:var(--npc-good); }
.npc-bad { color:var(--npc-bad); }
.npc-memory { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:4px; }
.npc-memory li { display:flex; justify-content:space-between; gap:12px; padding:4px 10px; border-bottom:1px solid #ffffff10; font-size:12px; }
.npc-view { display:grid; grid-template-columns:230px minmax(0,1fr); gap:18px; align-items:start; color:var(--npc-text); }
.npc-view__side { display:flex; flex-direction:column; align-items:stretch; gap:10px; position:sticky; top:0; }
.npc-view__portrait { display:flex; justify-content:center; align-items:flex-end; min-height:160px; max-height:220px; overflow:hidden; }
.npc-view__name { text-align:center; font-size:1.2em; font-weight:bold; }
.npc-view__rename { display:flex; gap:6px; justify-content:center; flex-wrap:wrap; }
.npc-view__rename .disciple-name-input { flex:1; min-width:0; background:var(--p-111111); border:1px solid; border-radius:var(--r-sm); padding:4px 8px; font-size:14px; font-weight:bold; text-align:center; }
.npc-view__chips { display:flex; gap:5px; flex-wrap:wrap; justify-content:center; }
.npc-view__box { display:flex; flex-direction:column; gap:4px; padding:8px; background:var(--npc-surface); border:1px solid var(--npc-line); border-radius:8px; }
.npc-view__box-title { text-align:center; font-size:10px; letter-spacing:1px; text-transform:uppercase; color:#d6b25e; }
.npc-view__line { display:flex; justify-content:space-between; gap:8px; font-size:12px; }
.npc-view__line span { color:var(--npc-mute); }
.npc-view__trait { cursor:help; color:var(--npc-strong); background:#d6b25e22; border-color:#d6b25e66; }
.npc-view__actions { display:flex; flex-direction:column; gap:8px; }
.npc-view__actions .sect-section { margin:0; gap:4px; }
.npc-view__actions .sect-section__title { font-size:10px; text-align:center; margin-bottom:2px; }
.npc-view__side .npc-interactions { margin:0; }
.npc-view__side .npc-actions { grid-template-columns:1fr 1fr; gap:6px; }
.npc-view__side .npc-action small { display:none; }
.npc-view__side .npc-action .sect-btn { padding:6px 4px; font-size:11px; }
.npc-view__portrait { min-height:140px; }
.npc-view__main { display:flex; flex-direction:column; gap:12px; min-width:0; }
.npc-view__head { display:flex; align-items:flex-start; gap:8px; padding-bottom:8px; border-bottom:1px solid var(--npc-line); }
.npc-view__tabs { flex:1; display:flex; gap:6px; flex-wrap:wrap; justify-content:center; }
.npc-view__close { flex:none; display:grid; place-items:center; width:32px; height:32px; padding:0; border:1px solid var(--npc-line); border-radius:6px; background:var(--npc-surface); color:var(--npc-text); cursor:pointer; }
.npc-view__close:hover, .npc-view__close:focus-visible { border-color:#d6b25e; color:var(--npc-strong); }
.npc-view__close svg { width:14px; height:14px; }
.npc-view__tab { display:inline-flex; align-items:center; gap:5px; padding:6px 12px; border:1px solid var(--npc-line); border-radius:6px; background:var(--npc-surface); color:var(--npc-text); font:inherit; font-size:12px; cursor:pointer; }
.npc-view__tab:hover:not(:disabled), .npc-view__tab:focus-visible { border-color:#d6b25e; }
.npc-view__tab--active { border-color:#d6b25e; background:#d6b25e26; color:var(--npc-strong); }
.npc-view__tab--locked { opacity:.45; cursor:not-allowed; }
.npc-view__lock { width:12px; height:12px; }
.npc-view__panels { display:grid; }
.npc-view__panel { grid-area:1 / 1; display:flex; flex-direction:column; gap:16px; min-width:0; }
.npc-view__panel[hidden] { display:flex; visibility:hidden; pointer-events:none; }
.npc-view__value { font-size:13px; }
.npc-view__history-row { display:flex; justify-content:center; margin-top:8px; }
.npc-history .npc-memory { margin-top:4px; }
.npc-view__row { display:flex; flex-direction:column; align-items:center; text-align:center; }
.npc-view__row small { color:var(--npc-mute); font-size:10px; text-transform:uppercase; letter-spacing:.5px; }
.npc-view__row b { color:var(--npc-strong); font-size:13px; }
.npc-view__row span { color:var(--npc-mute); font-size:11px; }
.disciple-detail-modal, .clan-member-detail-modal { gap:0; }
.npc-view__slots { display:grid; grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); gap:8px; }
.npc-view__slot { display:flex; flex-direction:column; align-items:center; gap:2px; padding:10px; border:1px dashed var(--npc-line); border-radius:8px; text-align:center; }
.npc-view__slot small { color:var(--npc-mute); font-size:11px; }
.npc-view__slot span { font-size:12px; }
.npc-gear { --npc-gear-rarity:#9ca3af; }
.npc-gear__grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:10px; }
.npc-gear__slot { --npc-gear-rarity:#6b7280; position:relative; display:flex; align-items:flex-start; gap:12px; min-width:0; padding:10px 12px 10px 10px; text-align:left; font:inherit; color:inherit; cursor:pointer; border:1px solid color-mix(in srgb,var(--npc-gear-rarity) 40%,transparent); border-radius:10px; background:linear-gradient(135deg,color-mix(in srgb,var(--npc-gear-rarity) 12%,transparent),var(--npc-surface) 55%); box-shadow:inset 3px 0 0 var(--npc-gear-rarity); transition:border-color .15s, background .15s; }
.npc-gear__slot:hover, .npc-gear__slot:focus-visible { border-color:var(--npc-gear-rarity); background:linear-gradient(135deg,color-mix(in srgb,var(--npc-gear-rarity) 20%,transparent),var(--npc-surface) 60%); outline:none; }
.npc-gear__slot--empty { border-style:dashed; border-color:var(--npc-line); background:var(--npc-surface); box-shadow:none; align-items:center; }
.npc-gear__slot--empty:hover, .npc-gear__slot--empty:focus-visible { border-color:#d6b25e; background:#0d2a2280; }
.npc-gear__art { flex:none; display:grid; place-items:center; width:60px; height:60px; border-radius:8px; background:radial-gradient(circle at 50% 45%,color-mix(in srgb,var(--npc-gear-rarity) 30%,transparent),#05110ecc 70%); border:1px solid color-mix(in srgb,var(--npc-gear-rarity) 45%,transparent); overflow:hidden; }
.npc-gear__art > svg, .npc-gear__art > img { max-width:52px; max-height:52px; image-rendering:pixelated; }
.npc-gear__art--ghost { background:#05110e80; border:1px dashed var(--npc-line); }
.npc-gear__art--ghost > * { filter:grayscale(1) brightness(.7); opacity:.35; }
.npc-gear__art--mantra { width:72px; height:72px; }
.npc-gear__art--mantra > svg, .npc-gear__art--mantra > img { max-width:64px; max-height:64px; }
.npc-gear__body { display:flex; flex-direction:column; gap:4px; min-width:0; flex:1; }
.npc-gear__top { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.npc-gear__slot-name { color:var(--npc-mute); font-size:10px; letter-spacing:.8px; text-transform:uppercase; }
.npc-gear__change { color:var(--npc-mute); font-size:10px; opacity:0; transition:opacity .15s; }
.npc-gear__slot:hover .npc-gear__change, .npc-gear__slot:focus-visible .npc-gear__change { opacity:1; color:#d6b25e; }
.npc-gear__name { color:var(--npc-gear-rarity); font-weight:700; font-size:13px; line-height:1.25; overflow-wrap:anywhere; }
.npc-gear__rarity { align-self:flex-start; padding:1px 8px; border-radius:999px; font-size:10px; font-weight:600; color:var(--npc-gear-rarity); border:1px solid color-mix(in srgb,var(--npc-gear-rarity) 55%,transparent); background:color-mix(in srgb,var(--npc-gear-rarity) 14%,transparent); }
.npc-gear__stats { display:flex; flex-direction:column; gap:3px; margin-top:4px; padding-top:6px; border-top:1px solid #ffffff12; }
.npc-gear__stat { display:flex; align-items:center; gap:6px; font-size:12px; }
.npc-gear__stat-label { color:var(--npc-mute); }
.npc-gear__stat b { margin-left:auto; font-variant-numeric:tabular-nums; white-space:nowrap; }
.npc-gear__empty { color:var(--npc-mute); font-size:12px; font-weight:600; }
.npc-gear__slot--empty:hover .npc-gear__empty { color:#d6b25e; }
.npc-gear__mantra { display:flex; flex-direction:column; gap:12px; padding:12px; border:1px solid color-mix(in srgb,var(--npc-gear-rarity) 40%,transparent); border-radius:10px; background:linear-gradient(135deg,color-mix(in srgb,var(--npc-gear-rarity) 12%,transparent),var(--npc-surface) 50%); box-shadow:inset 3px 0 0 var(--npc-gear-rarity); }
.npc-gear__mantra--empty { align-items:center; justify-content:center; min-height:72px; border-style:dashed; border-color:var(--npc-line); background:var(--npc-surface); box-shadow:none; font:inherit; color:inherit; cursor:pointer; }
.npc-gear__mantra--empty:hover, .npc-gear__mantra--empty:focus-visible { border-color:#d6b25e; }
.npc-gear__mantra-head { display:flex; align-items:center; gap:12px; }
.npc-gear__mantra-head .npc-gear__name { font-size:15px; }
.npc-gear__mantra-head .sect-btn { align-self:flex-start; flex:none; }
.npc-gear__chips { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.npc-gear__chips .npc-gear__rarity { align-self:auto; }
.npc-gear__tier { font-size:11px; color:var(--npc-mute); }
.npc-gear__tier b { color:var(--npc-strong); }
.npc-gear__mantra-stats { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.npc-gear__figure { display:flex; flex-direction:column; align-items:center; gap:2px; padding:8px; border-radius:8px; background:#05110e80; border:1px solid #ffffff10; text-align:center; }
.npc-gear__figure small { color:var(--npc-mute); font-size:10px; letter-spacing:.8px; text-transform:uppercase; }
.npc-gear__figure b { color:#5eead4; font-size:15px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.npc-gear__elements { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:6px; }
.npc-gear__element { display:flex; align-items:center; gap:6px; padding:5px 8px; border-radius:6px; font-size:12px; background:color-mix(in srgb,var(--npc-gear-element) 10%,#05110e99); border:1px solid color-mix(in srgb,var(--npc-gear-element) 35%,transparent); }
.npc-gear__element-icon { display:grid; place-items:center; width:18px; height:18px; flex:none; }
.npc-gear__element-icon svg { image-rendering:pixelated; }
.npc-gear__element-name { color:var(--npc-gear-element); }
.npc-gear__element b { margin-left:auto; color:var(--npc-strong); font-variant-numeric:tabular-nums; white-space:nowrap; }
.npc-gear__progress { display:flex; flex-direction:column; gap:4px; font-size:11px; color:var(--npc-mute); }
.npc-gear__progress-head { display:flex; justify-content:space-between; gap:8px; }
.npc-gear__rate { color:#d6b25e; font-weight:700; }
.npc-gear__rate--paused { color:var(--npc-mute); }
.npc-gear__bar { height:6px; }
.npc-gear__progress--cap { align-self:center; padding:2px 10px; border-radius:999px; border:1px solid #d6b25e66; background:#d6b25e1f; color:#e7cd7b; font-weight:600; }
.npc-sect__card { display:flex; flex-direction:column; gap:10px; padding:12px; border:1px solid var(--npc-line); border-radius:10px; background:linear-gradient(135deg,#d6b25e0f,var(--npc-surface) 55%); }
.npc-sect__card--muted { color:var(--npc-mute); font-size:12px; text-align:center; }
.npc-sect__head { display:flex; align-items:center; gap:10px; }
.npc-sect__head-icon { display:grid; place-items:center; width:40px; height:40px; flex:none; border-radius:8px; background:#05110ecc; border:1px solid var(--npc-line); }
.npc-sect__head-text { display:flex; flex-direction:column; gap:2px; min-width:0; flex:1; }
.npc-sect__head-text small { color:var(--npc-mute); font-size:10px; letter-spacing:.8px; text-transform:uppercase; }
.npc-sect__head-text b { color:#e7cd7b; font-size:16px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.npc-sect__head-btn { flex:none; display:inline-flex; align-items:center; gap:5px; }
.npc-sect__figures { display:flex; flex-wrap:wrap; gap:8px; }
.npc-sect__figures > .npc-sect__figure { flex:1 1 110px; }
.npc-sect__figures--3 > .npc-sect__figure { flex-basis:0; }
.npc-sect__figure { --npc-figure:var(--npc-strong); display:flex; flex-direction:column; align-items:center; gap:3px; min-width:0; padding:8px 6px; border-radius:8px; background:#05110e80; border:1px solid #ffffff10; text-align:center; }
.npc-sect__figure small { display:inline-flex; align-items:center; gap:4px; color:var(--npc-mute); font-size:10px; letter-spacing:.6px; text-transform:uppercase; }
.npc-sect__figure b { color:var(--npc-figure); font-size:13px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.npc-sect__tracks { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:10px; }
.npc-sect__track { display:flex; flex-direction:column; gap:5px; }
.npc-sect__track-head { display:flex; justify-content:space-between; align-items:center; gap:8px; font-size:12px; color:var(--npc-mute); }
.npc-sect__track-head > span:first-child { display:inline-flex; align-items:center; gap:5px; color:var(--npc-text); font-weight:600; }
.npc-sect__track-head b { color:var(--npc-strong); font-variant-numeric:tabular-nums; }
.npc-sect__meter { height:6px; border-radius:3px; background:#ffffff12; overflow:hidden; }
.npc-sect__meter > span { display:block; height:100%; border-radius:3px; background:linear-gradient(90deg,#a68b4a,#e7cd7b); }
.npc-sect__tag { align-self:flex-start; padding:2px 10px; border-radius:999px; border:1px solid #d6b25e55; background:#d6b25e14; color:#e7cd7b; font-size:11px; }
.npc-sect__foot { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:8px; padding-top:10px; border-top:1px solid #ffffff10; }
.npc-sect__teach { display:inline-flex; align-items:center; gap:8px; }
.npc-sect__cost { display:inline-flex; align-items:center; gap:4px; padding:1px 8px; border-radius:999px; background:#00000033; font-variant-numeric:tabular-nums; }
.npc-sect__manage { flex-direction:row; flex-wrap:wrap; align-items:center; justify-content:space-between; }
.npc-sect__manage-group { display:flex; flex-wrap:wrap; gap:6px; }
.npc-sect__manage-danger { display:flex; padding-left:10px; border-left:1px solid #ffffff14; }
.npc-sect__empty { display:flex; align-items:center; justify-content:center; min-height:56px; padding:10px; font:inherit; font-size:12px; font-weight:600; color:var(--npc-mute); cursor:pointer; border:1px dashed var(--npc-line); border-radius:10px; background:var(--npc-surface); }
.npc-sect__empty:hover, .npc-sect__empty:focus-visible { border-color:#d6b25e; color:#d6b25e; }
.npc-sect__law { border-color:color-mix(in srgb,var(--npc-law) 40%,transparent); background:linear-gradient(135deg,color-mix(in srgb,var(--npc-law) 12%,transparent),var(--npc-surface) 55%); box-shadow:inset 3px 0 0 var(--npc-law); }
.npc-sect__law-symbol { display:grid; place-items:center; width:40px; height:40px; flex:none; border-radius:8px; font-size:20px; color:var(--npc-law); background:#05110ecc; border:1px solid color-mix(in srgb,var(--npc-law) 45%,transparent); }
.npc-sect__law-name { color:var(--npc-law) !important; font-size:14px !important; }
.npc-sect__law-tier { color:var(--npc-mute); font-size:11px; }
.npc-sect__clan-actions .sect-btn { min-height:34px; border-radius:8px; }
@media (max-width:520px) {
    .npc-sect__figures--3 { flex-direction:column; }
    .npc-sect__manage { flex-direction:column; align-items:stretch; }
    .npc-sect__manage-danger { padding-left:0; border-left:0; justify-content:flex-end; }
}
.sm-lb-name-btn { background:none; border:0; padding:0; font:inherit; cursor:pointer; color:inherit; text-decoration:underline dotted; text-underline-offset:2px; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sm-lb-tier { margin-top:2px; }
.sm-lb-tier .npc-chip { font-size:9px; padding:0 6px; }
@media (max-width:760px) {
    .npc-view { grid-template-columns:1fr; }
    .npc-view__side { position:static; }
}
.npc-presence-toggle { position:relative; }
.npc-presence-toggle--on { box-shadow:inset 0 0 0 2px #081713,inset 0 0 0 3px #e7cd7b,0 0 10px #e7cd7b8c !important; }
.npc-presence__badge { position:absolute; top:-7px; right:-9px; min-width:20px; height:19px; padding:0 6px; border-radius:10px; background:#c9a85c; color:#10211c; font:700 11px/19px Georgia,serif; text-align:center; box-shadow:0 0 0 2px #081713; pointer-events:none; }
.npc-presence { --npc-good:#22c55e; --npc-bad:#ef4444; --npc-text:#d9ccb0; --npc-strong:#f5e3b6; --npc-mute:#a99a72; --npc-line:#a68b4a73; position:absolute; z-index:19; top:76px; right:12px; bottom:12px; width:min(340px,calc(100% - 24px)); display:flex; flex-direction:column; color:var(--npc-text); font-family:Georgia,serif; background:#0e1f1bf2; border:1px solid #a68b4a; border-radius:6px; box-shadow:inset 0 0 0 2px #081713,inset 0 0 0 3px #b9a45d73,0 6px 18px #0008; }
.npc-presence[hidden] { display:none; }
.structure-ui--child-open .npc-presence { visibility:hidden; }
.npc-presence__head { display:flex; align-items:center; gap:8px; padding:10px 10px 8px 14px; border-bottom:1px solid var(--npc-line); }
.npc-presence__title { flex:1; font-size:17px; color:#f4df9b; }
.npc-presence__count { font-size:12px; color:#c8b98e; }
.npc-presence__close { width:26px; height:26px; border:1px solid #6e5f3a; border-radius:4px; background:#132a24; color:#f4df9b; font-size:16px; line-height:1; cursor:pointer; }
.npc-presence__tools { display:flex; gap:6px; align-items:center; padding:10px 14px 4px; }
.npc-presence .npc-presence__search { flex:1 1 0; width:auto; min-width:0; height:30px; margin:0; padding:0 10px; border:1px solid #6e5f3a; border-radius:4px; background:#0b1915; color:var(--npc-strong); font:13px Georgia,serif; }
.npc-presence .npc-presence__sort { flex:0 0 96px; width:96px; min-width:0; height:30px; margin:0; padding:0 6px; border:1px solid #a68b4a; border-radius:4px; background:#1b3a31; color:#f4df9b; font:12.5px Georgia,serif; }
.npc-presence__btn { position:relative; height:30px; min-width:30px; padding:0 9px; border:1px solid #a68b4a; border-radius:4px; background:#1b3a31; color:#f4df9b; font:12.5px Georgia,serif; cursor:pointer; white-space:nowrap; }
.npc-presence__btn--on { background:#c9a85c; color:#10211c; border-color:#e7cd7b; }
.npc-presence__btn .npc-presence__badge { top:-8px; right:-8px; min-width:18px; height:18px; line-height:18px; font-size:10.5px; }
.npc-presence__body { flex:1; min-height:0; display:flex; flex-direction:column; }
.npc-presence__chips { display:flex; flex-wrap:wrap; gap:5px; justify-content:center; }
.npc-presence__places { padding:8px 14px 6px; }
.npc-presence__chip { padding:3px 9px; border:1px solid #6e5f3a; border-radius:12px; background:#132a24; color:#d8c9a0; font:12px Georgia,serif; cursor:pointer; }
.npc-presence__chip small { color:#a99a72; font-size:10.5px; }
.npc-presence__chip--on { background:#c9a85c; color:#10211c; border-color:#e7cd7b; }
.npc-presence__chip--on small { color:#3b3115; }
.npc-presence__active { display:flex; flex-wrap:wrap; gap:5px; justify-content:center; align-items:center; padding:0 14px 6px; }
.npc-presence__tag { padding:2px 8px; border:1px solid #6e8f6a; border-radius:12px; background:#24463b; color:#e6f0d8; font:11.5px Georgia,serif; cursor:pointer; }
.npc-presence__clear { border:0; background:none; color:#e7cd7b; font:11.5px Georgia,serif; text-decoration:underline; cursor:pointer; }
.npc-presence__list { flex:1; min-height:0; overflow-y:auto; padding:0 8px 8px; display:flex; flex-direction:column; }
.npc-presence__group { display:flex; justify-content:space-between; margin:10px 6px 4px; font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:var(--npc-mute); }
.npc-presence__row { display:flex; align-items:center; gap:10px; width:100%; padding:5px 6px; border:0; border-radius:5px; background:none; color:inherit; font:inherit; text-align:left; cursor:pointer; }
.npc-presence__row:hover, .npc-presence__row:focus-visible { background:#c9a85c24; outline:none; }
.npc-presence__face { flex:none; width:40px; height:40px; border-radius:50%; overflow:hidden; border:2px solid #c9a85c; background:radial-gradient(circle at 50% 35%,#29453b,#10211c); }
.npc-presence__face svg { display:block; width:213%; height:213%; margin:-6.7% 0 0 -56.7%; }
.npc-presence__main { flex:1; min-width:0; display:flex; flex-direction:column; }
.npc-presence__name { font-size:14px; color:var(--npc-strong); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.npc-presence__sub { font-size:11.5px; color:var(--npc-mute); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.npc-presence__side { display:flex; flex-direction:column; align-items:flex-end; gap:3px; }
.npc-presence__value { font-size:11.5px; color:#e7cd7b; white-space:nowrap; }
.npc-presence__more { align-self:center; margin-top:8px; }
.npc-presence__empty { text-align:center; color:var(--npc-mute); font-size:13px; margin:18px 0; }
.npc-presence__filters { flex:1; min-height:0; display:flex; flex-direction:column; }
.npc-presence__fbody { flex:1; min-height:0; overflow-y:auto; padding:2px 14px 8px; }
.npc-presence__fsec { margin-top:10px; }
.npc-presence__flabel { margin-bottom:5px; text-align:center; font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:var(--npc-mute); }
.npc-presence__ffoot { display:flex; gap:8px; justify-content:center; padding:10px 0 12px; border-top:1px solid var(--npc-line); }
@media (max-width:700px) { .npc-presence { top:68px; right:8px; bottom:8px; width:calc(100% - 16px); } }
