/* CAELYTTE N3.7.4 - CLIENT-only compact HUD. */
#hud-root .inventory-columns{grid-template-columns:minmax(250px,31%) minmax(320px,39%) minmax(240px,1fr);gap:9px;height:clamp(370px,52vh,525px)}
#hud-root .inventory-column{min-height:0;padding:9px}
#hud-root .inventory-doll-formation{min-height:235px}
#hud-root .inventory-doll{min-height:235px}
#hud-root .inventory-doll-image{max-height:clamp(200px,28vh,290px)}
#hud-root .inventory-bottom-slots{min-height:58px;padding:5px}
#hud-root .inventory-grid{grid-template-columns:repeat(8,minmax(0,1fr));gap:4px}
#hud-root .inventory-summary{padding:8px 0}
#hud-root .inventory-summary-heading{font-size:16px}
#hud-root .inventory-summary-columns{gap:7px}
#hud-root .inventory-summary-column{min-height:0;padding:8px}
#hud-root .inventory-stat-row{grid-template-columns:30px minmax(0,1fr) minmax(60px,auto);min-height:48px;gap:6px;padding:5px 0}
#hud-root .inventory-stat-icon{width:28px;height:28px}
#hud-root .inventory-stat-label{font-size:clamp(11px,.95vw,14px)}
#hud-root .n374-stat-values{display:flex;align-items:end;justify-content:center;gap:1px;flex-direction:column;text-align:right}
#hud-root .n374-stat-values .inventory-stat-value{font-size:15px;text-align:right}
#hud-root .n374-stat-equipped{color:#b4bcc9;font-size:10px;line-height:1.15;white-space:nowrap}
#hud-root .inventory-equipment-totals{max-height:350px}
#hud-root .inventory-equipment-total-row{padding:3px 0;min-height:23px}
#hud-root .inventory-detail-scroll{overscroll-behavior:contain}
#hud-root .inventory-large-icon{height:110px!important;min-height:110px!important}
/* Rarity aura derives exclusively from real equipment instance state. */
#hud-root .n374-rarity-aura{position:relative;isolation:isolate;overflow:visible!important;border-radius:5px}
#hud-root .n374-rarity-aura img{position:relative;z-index:1;filter:drop-shadow(0 0 4px var(--n374-aura)) drop-shadow(0 0 9px var(--n374-aura))}
#hud-root .n374-rarity-medium{--n374-aura:#48d977;box-shadow:inset 0 0 5px #48d97770,0 0 8px #48d97755}
#hud-root .n374-rarity-rare{--n374-aura:#3d9eff;box-shadow:inset 0 0 5px #3d9eff70,0 0 8px #3d9eff55}
#hud-root .n374-rarity-epic{--n374-aura:#bc75f5;box-shadow:inset 0 0 5px #bc75f570,0 0 8px #bc75f555}
#hud-root .n374-rarity-legendary{--n374-aura:#f25456;box-shadow:inset 0 0 6px #f2545670,0 0 11px #f2545666}
#hud-root .n374-upgrade-preview{margin:10px 0;padding:10px;border:1px solid #927146;border-radius:6px;background:#121c28}
#hud-root .n374-upgrade-preview h4{font:700 14px Georgia,serif;color:#f4dda4;margin:0 0 8px}
#hud-root .n374-upgrade-preview .functional-detail-art{width:66px;height:66px;max-width:66px;display:grid;place-items:center}
#hud-root .n374-upgrade-lines{max-height:170px;overflow-y:auto}
#hud-root .n374-upgrade-row{display:flex;justify-content:space-between;gap:10px;font-size:11px;border-bottom:1px solid #374354;padding:4px 0}
/* The social control is closed by default and must never hide a modal dialog. */
#n19-party-toggle{top:125px!important;right:10px!important;bottom:auto!important;min-height:29px!important;max-width:84px!important;min-width:0!important;padding:6px 8px!important;font-size:11px!important;writing-mode:horizontal-tb!important}
#n19-party{top:160px!important;right:10px!important;bottom:auto!important;width:min(265px,86vw)!important;max-height:min(330px,47dvh)!important;overflow:auto!important;writing-mode:horizontal-tb!important}
body:has(#hud-overlay:not([hidden])) #n19-party{visibility:hidden;pointer-events:none}
@media(max-width:1050px){#hud-root .inventory-columns{grid-template-columns:minmax(215px,32%) minmax(240px,1fr) minmax(195px,28%)}#hud-root .inventory-stat-row{grid-template-columns:25px 1fr 50px}#hud-root .inventory-stat-icon{width:24px;height:24px}}
@media(max-width:780px){#hud-root .inventory-columns{grid-template-columns:1fr 1fr;height:auto;max-height:none}#hud-root .inventory-columns .inventory-column{height:auto;max-height:400px}#hud-root .inventory-columns .item-detail-column{grid-column:1/-1;height:340px}#hud-root .inventory-summary-columns{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:510px){#hud-root .inventory-columns{grid-template-columns:1fr}#hud-root .inventory-columns .item-detail-column{grid-column:1}#hud-root .inventory-summary-columns{grid-template-columns:1fr}}

#n16-pve .n374-xp-level{font:700 14px Georgia,serif;color:#dcebc5}
#n16-pve .n374-xp-auth span{animation:none!important;transition:none!important}
