/* Shared production raid frames: class-coloured life fill, independent shield strip. */
body.in-party #partyState{gap:5px}
body.in-party #partyState .coop-teammate{--party-color:#b76b69;box-sizing:border-box;position:relative;height:70px;padding:0;overflow:hidden;background:#0b121a;border:2px solid #776b50;border-radius:3px;box-shadow:inset 0 0 0 1px #161a20,0 2px 4px #0008;color:#fff4dc;isolation:isolate}
body.in-party #partyState [data-profession="mage"]{--party-color:#498db5}
body.in-party #partyState [data-profession="archer"]{--party-color:#6a9e4e}
body.in-party #partyState [data-profession="cavalry"]{--party-color:#b89b50}
body.in-party #partyState [data-profession="priest"]{--party-color:#aaa78e}
body.in-party #partyState .coop-teammate>img{box-sizing:border-box;position:absolute;left:7px;top:6px;width:19px;height:19px;border:1px solid #17222c;border-image:none;border-radius:50%;background:#152633;object-fit:contain;image-rendering:pixelated;z-index:2}
body.in-party #partyState .coop-teammate>strong{position:absolute;left:31px;top:7px;right:25px;display:block;margin:0;padding:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:600 12px/16px system-ui;text-shadow:0 1px 2px #000,1px 0 #000;z-index:2}
body.in-party #partyState .coop-teammate>.coop-party-life{position:absolute;left:2px;right:2px;top:2px;bottom:2px;height:auto;border:1px solid #070e13;border-radius:1px;overflow:hidden;background:#101822;box-shadow:inset 0 0 5px #0008}
body.in-party #partyState .coop-party-life>.coop-party-hp{position:absolute;display:block;left:0;top:0;bottom:0;height:100%;background:linear-gradient(#ffffff24,#00000042),var(--party-color);box-shadow:inset 0 1px #ffffff30;transition:width .12s linear}
body.in-party #partyState .coop-party-life>.coop-party-shield{position:absolute;display:block;left:0;top:auto;bottom:0;height:4px;background:#a9dbf6;box-shadow:0 -1px #10283a,0 0 4px #bde8ff;transition:width .12s linear;z-index:2}
body.in-party #partyState .coop-party-life>.coop-party-shield[hidden]{display:none}
body.in-party #partyState .coop-party-life>small{position:absolute;left:4px;right:4px;top:24px;bottom:6px;display:grid;place-items:center;margin:0;padding:0;float:none;font:600 16px/23px system-ui;font-variant-numeric:tabular-nums;color:#fff6dc;text-shadow:0 2px 2px #000,1px 0 #17212a;white-space:nowrap;z-index:1}
body.in-party #partyState .coop-teammate>.coop-party-statuses{position:absolute;left:auto;right:6px;top:auto;bottom:8px;width:auto;height:16px;background:none;display:flex;gap:3px;z-index:3}
body.in-party #partyState .coop-party-statuses>span{box-sizing:border-box;display:grid;place-items:center;flex:none;width:16px;height:16px;border:1px solid #dcab8b;border-radius:2px;background:#512d30;color:#fff0d9;font:600 10px/14px system-ui;box-shadow:0 1px 2px #0008}
body.in-party #partyState .coop-party-statuses>span.is-shield{color:#e0f6ff;background:#204555;border-color:#9acbd6}
body.in-party #partyState .coop-teammate>.coop-party-ready{position:absolute!important;left:auto!important;right:8px!important;top:11px!important;bottom:auto!important;display:block;width:6px!important;height:6px!important;background:#53645e;border:0!important;border-radius:50%;box-shadow:0 0 0 1px #132322;z-index:3}
body.in-party #partyState .coop-teammate>.coop-party-ready.is-ready{background:#ffe59a;box-shadow:0 0 5px #f8d77b}
body.in-party #partyState .coop-teammate.low-health{border-color:#ed8b70;box-shadow:0 0 0 1px #5f2423,0 2px 4px #0008}
body.in-party #partyState .coop-teammate.downed{filter:none;border-color:#bc7b68}
body.in-party #partyState .downed .coop-party-life>.coop-party-hp{background:linear-gradient(#edc879,#ae8141)}
body.in-party #partyState .coop-teammate.disconnected{opacity:.65;filter:grayscale(.85)}
body.in-party #hud #playerStatuses{top:565px;left:24px;max-width:330px}
@media(max-height:650px),(max-width:800px){body.in-party #partyState .coop-teammate{height:60px}body.in-party #partyState .coop-party-life>small{top:22px;bottom:4px;font-size:12px}body.in-party #partyState .coop-teammate>.coop-party-statuses{bottom:6px}body.in-party #partyState .coop-party-statuses>span{width:13px;height:13px;font-size:9px}}
@media(prefers-reduced-motion:reduce){body.in-party #partyState .coop-party-life>i{transition:none}}

/* Cosmetic overlays do not replace the native profession/skin portrait. */
body.in-party #partyState .coop-teammate>.coop-party-collection-emblem{position:absolute;left:30px;top:6px;z-index:4;width:20px;height:20px}body.in-party #partyState .coop-teammate.has-collection-emblem>strong{left:54px}body.in-party #partyState .coop-teammate>.coop-party-collection-frame{left:4px;top:3px;width:25px;height:25px;z-index:4}body.in-party #partyState .coop-teammate>.coop-party-collection-frame[hidden],body.in-party #partyState .coop-teammate>.coop-party-collection-emblem[hidden]{display:none!important}
:is(.home-party-rail,.home-zakk-stage .zakk-party) .coop-teammate>.coop-party-collection-emblem{position:absolute;left:40px;top:2px;z-index:4;width:20px;height:20px}:is(.home-party-rail,.home-zakk-stage .zakk-party) .coop-teammate.has-collection-emblem>strong{left:64px}:is(.home-party-rail,.home-zakk-stage .zakk-party) .coop-teammate>.coop-party-collection-frame{left:-2px;top:0;width:42px;height:42px;z-index:4}
