/* A compact ledger picker: browse, inspect, then assign to the party. */
.npcLibraryButton{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:9px 12px;font-size:12px;white-space:nowrap}.npcLibraryButton svg{width:18px;height:18px;flex:none}
.npcLibraryOverlay{padding:20px!important}.npcLibraryOverlay .modalCard{width:min(1080px,calc(100vw - 40px))!important;max-width:1080px!important;height:min(760px,calc(100dvh - 40px));max-height:calc(100dvh - 40px)!important;display:flex;flex-direction:column;overflow:hidden;background:#17221f}.npcLibraryOverlay .modalHead{flex:none;padding:17px 22px}.npcLibraryOverlay .modalHead .panelTitle{display:none}.npcLibraryOverlay .modalHead h3{margin:0;font:600 26px/1.2 var(--font-display);color:#eadbbb}.npcLibraryOverlay .modalHead button{width:38px;min-height:38px;padding:6px;font-size:22px}.npcLibraryOverlay [hidden]{display:none!important}.npcLibraryForm{display:flex;flex-direction:column;flex:1;min-height:0;margin:0}.npcLibraryWorkspace{display:grid;grid-template-columns:minmax(270px,36%) minmax(0,1fr);flex:1;min-height:0}.npcLibraryBrowse{display:flex;flex-direction:column;min-height:0;min-width:0;border-right:1px solid #b59a6238;padding:18px 14px 0 20px}.npcLibrarySearchRow{display:flex;gap:8px;align-items:center}.npcLibrarySearchRow input{width:100%;min-width:0;min-height:42px;font-size:13px}.npcLibrarySearchRow button{flex:none;width:38px;min-height:40px;padding:5px;font-size:23px;background:none!important;box-shadow:none!important;border:0!important;color:#c9b88f}.npcLibraryFilters{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:12px 0}.npcLibraryFilters select{min-height:36px;max-width:190px;font-size:12px}.npcLibraryFilters>span{font-size:11px;color:#aeb19d;white-space:nowrap}.npcLibraryList{overflow:auto;overscroll-behavior:contain;min-height:0;padding:0 4px 18px 0;scrollbar-gutter:stable}.npcLibraryRow{display:grid;grid-template-columns:46px minmax(0,1fr) 12px;align-items:center;gap:12px;width:100%;text-align:left!important;min-height:93px;padding:12px 9px!important;border:0!important;border-bottom:1px solid #b59a622b!important;border-radius:0!important;box-shadow:none!important;background:none!important;color:#d9d3ba!important}.npcLibraryRow:hover{background:#d9c1850d!important}.npcLibraryRow[aria-pressed=true]{background:#d9c18516!important;box-shadow:inset 3px 0 #d0b573!important}.npcLibraryRow:focus-visible{outline:2px solid #d0b573;outline-offset:-2px}.npcLibraryPortrait{display:block;flex:none;width:46px;height:62px;border:1px solid var(--library-contact-color,#b59a62);padding:2px;border-radius:24px 24px 3px 3px;overflow:hidden;background:#0c1712}.npcLibraryPortrait img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 30%}.npcLibraryPortrait>b{display:grid;place-items:center;width:100%;height:100%;font:600 25px var(--font-display);color:#d3c09a}.npcLibraryRowText{display:grid;gap:4px;min-width:0}.npcLibraryRowText>strong{font:600 21px/1.15 var(--font-display);color:#eadbbb;overflow-wrap:anywhere}.npcLibraryRowText>span{font-size:11px;line-height:1.4;color:#bac0ab;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.npcLibraryRowText>small{font-size:10px;line-height:1.4;color:#969e8d;overflow-wrap:anywhere}.npcLibraryRowText>small:first-child{color:#bcad89;font-size:9px}.npcLibraryRowArrow{font-size:22px;color:#ab9e7e}.npcLibraryDetail{min-width:0;overflow:auto;overscroll-behavior:contain;padding:24px 28px;scrollbar-gutter:stable}.npcLibraryIdentity{display:flex;align-items:center;gap:20px}.npcLibraryIdentity>.npcLibraryPortrait{width:88px;height:118px;border-radius:46px 46px 3px 3px}.npcLibraryIdentity>div{min-width:0}.npcLibraryIdentity>div>span{font-size:10px;color:#bcad89}.npcLibraryIdentity h4{font:600 31px/1.15 var(--font-display);margin:6px 0 8px;color:#efdfbd;overflow-wrap:anywhere}.npcLibraryIdentity h4:focus{outline:none}.npcLibraryIdentity p{font-size:13px;line-height:1.5;color:#c8c8b0;margin:5px 0;overflow-wrap:anywhere}.npcLibraryIdentity .npcLibraryPlace{font-size:12px;color:#a9b29b}.npcLibraryLore{font-size:14px;line-height:1.7;color:#d1d0b8;white-space:pre-wrap;overflow-wrap:anywhere;margin:22px 0 10px;max-height:210px;overflow:auto;padding-right:5px}.npcLibrarySource{font-size:11px;color:#969e8d;margin:12px 0 23px}.npcLibraryMuted{color:#969e8d}.npcLibraryTargets{border:0;border-top:1px solid #b59a6238;margin:0;padding:18px 0 0;min-width:0}.npcLibraryTargets legend{font:600 22px/1.2 var(--font-display);color:#eadbbb;padding:0 12px 0 0}.npcLibraryTargetTools{display:flex;gap:12px;align-items:center;justify-content:space-between;margin:3px 0 13px}.npcLibraryTargetTools>span{font-size:11px;line-height:1.5;color:#9fa994}.npcLibraryTargetTools button{flex:none;font-size:11px;padding:5px 0!important;min-height:28px;border:0!important;box-shadow:none!important;background:none!important;color:#d0bd91!important}.npcLibraryTargetGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.npcLibraryTarget{display:flex;align-items:center;gap:10px;border:1px solid #b59a6233;background:#0c171322;padding:10px 12px;min-height:57px;border-radius:3px;cursor:pointer;min-width:0}.npcLibraryTarget:has(input:checked):not(.is-known){border-color:#c7ac6d;background:#b59a6214}.npcLibraryTarget.is-known{border-color:#788e6d30;cursor:default}.npcLibraryTarget input{width:17px;height:17px;min-height:17px;padding:0;margin:0;accent-color:#bda165;box-shadow:none;flex:none}.npcLibraryTarget>span{display:grid;gap:4px;min-width:0}.npcLibraryTarget b{font-size:12px;font-weight:600;color:#d6cfb2;overflow-wrap:anywhere}.npcLibraryTarget small{font-size:10px;color:#9ba68f;overflow-wrap:anywhere}.npcLibraryTarget.is-known b{color:#a4ad98}.npcLibraryTarget.is-known small{color:#8b9e7d}.npcLibraryFooter{flex:none;border-top:1px solid #b59a6238;padding:14px 22px 18px;display:flex;align-items:center;gap:20px;background:#17221f}.npcLibraryFooter>div{display:flex;align-items:center;gap:10px;margin-left:auto;flex:none}.npcLibraryFooter button{min-height:42px;padding:10px 15px;font-size:12px;white-space:nowrap}.npcLibraryStatus{font-size:12px;line-height:1.5;color:#adc098;margin:0;overflow-wrap:anywhere}.npcLibraryStatus:empty{display:none}.npcLibraryStatus.is-error{color:#e0a598}.npcLibraryEmpty{font-size:13px;line-height:1.6;color:#a6ae9c;padding:20px 10px;margin:0}.npcLibraryChoose{display:grid;place-items:center;height:100%;min-height:150px;font:500 22px var(--font-display);color:#8e9a88;margin:0}.npcLibraryBack{display:none}.npcLibraryOverlay[data-busy=true] .npcLibraryRow{cursor:wait}
@media(max-width:760px){.npcLibraryButton{width:40px;min-width:40px;height:42px;padding:9px}.npcLibraryButton>span{display:none}.npcLibraryOverlay{padding:7px!important}.npcLibraryOverlay .modalCard{width:100%!important;height:calc(100dvh - 14px);max-height:calc(100dvh - 14px)!important;border-radius:7px}.npcLibraryOverlay .modalHead{padding:13px 15px}.npcLibraryOverlay .modalHead h3{font-size:23px}.npcLibraryWorkspace{display:block;overflow:hidden;position:relative}.npcLibraryBrowse{height:100%;padding:15px 13px 0;border:0}.npcLibrarySearchRow input{font-size:16px;min-height:44px}.npcLibraryFilters select{font-size:13px;min-height:38px}.npcLibraryList{flex:1}.npcLibraryRow{min-height:91px;padding:11px 8px!important}.npcLibraryRowText>strong{font-size:22px}.npcLibraryRowText>span{font-size:12px}.npcLibraryDetail{display:none;height:100%;box-sizing:border-box;padding:0 18px 20px}.npcLibraryOverlay.show-contact-detail .npcLibraryBrowse{display:none}.npcLibraryOverlay.show-contact-detail .npcLibraryDetail{display:block}.npcLibraryBack{display:block;position:sticky;top:0;z-index:2;width:100%;text-align:left;padding:12px 0!important;border:0!important;border-bottom:1px solid #b59a6228!important;border-radius:0!important;box-shadow:none!important;background:#17221f!important;color:#c8bb97!important;font-size:12px;min-height:43px;margin:0 0 17px}.npcLibraryIdentity{gap:16px}.npcLibraryIdentity>.npcLibraryPortrait{width:70px;height:94px}.npcLibraryIdentity h4{font-size:27px}.npcLibraryIdentity p{font-size:13px}.npcLibraryLore{font-size:14px;line-height:1.7;max-height:none;margin-top:19px}.npcLibrarySource{margin:12px 0 21px}.npcLibraryTargetTools{align-items:flex-start;gap:10px}.npcLibraryTargetTools>span{font-size:11px}.npcLibraryTargetTools button{font-size:11px}.npcLibraryTargetGrid{gap:7px}.npcLibraryTarget{padding:10px;min-height:61px;gap:8px}.npcLibraryTarget input{width:18px;height:18px;min-height:18px}.npcLibraryTarget b{font-size:12px}.npcLibraryFooter{display:block;padding:12px 15px calc(12px + env(safe-area-inset-bottom));min-height:0}.npcLibraryFooter>div{gap:8px;justify-content:flex-end}.npcLibraryFooter>div>button[data-dialog-close]{display:none}.npcLibraryFooter button[type=submit]{width:100%;min-height:44px;font-size:13px}.npcLibraryOverlay:not(.show-contact-detail) .npcLibraryFooter{padding:0 15px calc(env(safe-area-inset-bottom))}.npcLibraryOverlay:not(.show-contact-detail) .npcLibraryFooter button[type=submit]{display:none}.npcLibraryStatus:not(:empty){margin:0 0 10px;font-size:12px}.npcLibraryOverlay:not(.show-contact-detail) .npcLibraryStatus:not(:empty){margin:10px 0}.npcLibraryChoose{display:none}}
