/* v48: field-side status stays with the minimap; details use a short sheet. */
#pkHud{display:flex;flex-direction:column;gap:3px;pointer-events:auto}#pkHud[hidden],#pkTarget[hidden]{display:none}
#mapRail #pkStatus{position:static;width:100%;max-width:none;min-height:30px;padding:4px 3px;margin:0;border-radius:4px;background:#452b2bd6;color:#ffe0cd;font:12px/1.35 var(--font-ui);white-space:normal}
#mapRail #pkStatus[data-safe=true]{background:#183d32d9;border-color:#8aa987;color:#d1efce}#pkLock:empty{display:none}#pkLock{font:12px var(--font-ui);text-align:center;color:#ffc999;background:#281d19b3}
#pkTarget{padding:5px 4px;border:1px solid #b58b69;background:#102a24d9;border-radius:4px;text-align:center;min-width:0}#pkTargetName{font:12px/1.4 var(--font-ui);display:block;overflow-wrap:anywhere;color:#ffdcaa}#pkTargetHp{font:12px var(--font-ui);display:block;color:#fff4dd}
#pkTargetBar{display:block;appearance:none;width:100%;height:5px;border:0;border-radius:2px;overflow:hidden;margin:4px 0;background:#19221c;accent-color:#d66c5e}#pkTargetBar::-webkit-progress-bar{background:#19221c}#pkTargetBar::-webkit-progress-value{background:#d66c5e}#pkTargetBar::-moz-progress-bar{background:#d66c5e}
#pkStop{width:100%;min-height:30px;margin-top:4px;padding:3px;border:1px solid #a38960;background:#542f29de;color:#ffe1be;border-radius:3px;font:12px var(--font-ui)}
#panel.pkPanel{top:auto;bottom:74px;left:50%;right:auto;transform:translateX(-50%);width:min(430px,calc(100% - 18px));height:auto;min-height:0;max-height:52dvh;box-sizing:border-box;padding:9px;background:linear-gradient(140deg,#15332ce8,#151f20e0);border:1px solid #ab905c;border-radius:8px;color:#f0e6cc;overflow:hidden;box-shadow:0 8px 28px #0005}
#panel.pkPanel:not(.hidden){display:flex;flex-direction:column}.pkPanel .panelHead{position:static;flex:none;padding:2px 0 6px;margin:0;background:none;border:0}.pkPanel #panelTitle{font-size:18px;margin:0}.pkPanel #close{width:30px;height:30px}.pkPanel #panelBody{overflow-y:auto;min-height:0;padding:0;scrollbar-width:thin}.pkPanel button{background:#214b3edc;color:#f4deb0;border:1px solid #9c855780;border-radius:4px;min-height:32px;font:13px var(--font-ui);padding:4px 8px;margin:0;box-shadow:none}.pkPanel button:disabled{opacity:.55}.pkPanel h3{font:15px var(--font-ui);margin:10px 0 5px;color:#e7c887}.pkPanel h3 small{font:12px var(--font-body);color:#aebdab}.pkSummary{display:flex;gap:14px;align-items:center;font:14px var(--font-body)}.pkSummary b{color:#edcf80}.pkSummary button{margin-left:auto}.pkPanel .pkRule{font:12px/1.5 var(--font-body);color:#b9c5b6;margin:7px 0}.pkPanelStatus{font:13px/1.5 var(--font-ui);color:#e4c99e;border-block:1px solid #ab976335;padding:5px 0}.pkPerson,.pkHistoryRow{display:flex;gap:8px;align-items:center;padding:6px 3px;border-bottom:1px solid #ab976329}.pkPerson>div,.pkHistoryRow>div{flex:1;min-width:0}.pkPerson strong,.pkHistoryRow strong{display:block;font:14px/1.4 var(--font-ui);overflow-wrap:anywhere}.pkPerson small,.pkHistoryRow small{display:block;font:12px/1.4 var(--font-body);color:#b6c1ad}.pkHistoryRow strong small{display:inline}.pkPerson button{flex:none}.pkHistoryRow>b{font:13px var(--font-ui);padding:3px 5px;border-radius:3px;background:#264e40;color:#c6e4bb}.pkHistoryRow>b.loss{background:#562d2c;color:#e5b9a4}.pkPanel .pkEmpty{font:13px/1.5 var(--font-body);color:#b8c3b3;margin:7px 0}
@media(max-height:650px){#panel.pkPanel{bottom:64px;max-height:49dvh}}
