.damage-badge{display:inline-flex;align-items:center;border:1px solid var(--damage-color,#94a3b8);color:var(--damage-text,#e2e8f0)!important;background:var(--damage-bg,#243046);border-radius:6px;padding:3px 7px;font-size:10px!important;line-height:1.2;font-weight:600;white-space:nowrap}.damage-fire{--damage-color:#c75a32;--damage-text:#fdba74;--damage-bg:#462519}.damage-cold{--damage-color:#478aaa;--damage-text:#bae6fd;--damage-bg:#153345}.damage-lightning{--damage-color:#b69d30;--damage-text:#fef08a;--damage-bg:#3c3514}.damage-acid{--damage-color:#83a43c;--damage-text:#d9f99d;--damage-bg:#2a3614}.damage-poison{--damage-color:#40845b;--damage-text:#86efac;--damage-bg:#163525}.damage-necrotic{--damage-color:#865a9c;--damage-text:#d8b4fe;--damage-bg:#302039}.damage-radiant{--damage-color:#caa462;--damage-text:#fef3c7;--damage-bg:#42331d}.damage-psychic{--damage-color:#b860a0;--damage-text:#f5b5e5;--damage-bg:#402139}.damage-force{--damage-color:#6c6fcc;--damage-text:#c7d2fe;--damage-bg:#26264c}.damage-thunder{--damage-color:#758ac4;--damage-text:#bfdbfe;--damage-bg:#253149}.damage-bludgeoning{--damage-color:#9b836c;--damage-text:#e7d6c6;--damage-bg:#352c26}.damage-piercing{--damage-color:#81969f;--damage-text:#d3e5ed;--damage-bg:#26343b}.damage-slashing{--damage-color:#a36f76;--damage-text:#f5ccd0;--damage-bg:#3e292e}.defense-badges{display:flex;gap:4px;flex-wrap:wrap}.defense-empty{color:#64748b!important}.defense-option-group{border:1px solid #334155;border-radius:10px;padding:12px;margin:0}.defense-option-group legend{padding:0 5px;color:#f1f5f9;font-weight:600;font-size:13px}.defense-option-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:10px}#monsterEntryEditor .defense-option{display:flex;flex-direction:row;align-items:center;gap:6px;cursor:pointer}#monsterEntryEditor .defense-option input{width:14px;height:14px;accent-color:#fbbf24;flex-shrink:0}#monsterEntryEditor .defense-option input:not(:checked)+span{opacity:.6}#monsterEntryEditor .defense-option input:checked+span{box-shadow:0 0 0 1px var(--damage-color)}[data-defense-actor]>.md-defense-grid{gap:10px}[data-defense-actor] .md-defense-grid>div{flex-wrap:wrap}@media(max-width:600px){.defense-option-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.defense-damage-groups{display:grid;grid-template-columns:145px minmax(0,1fr);gap:14px;margin-bottom:10px}.defense-damage-groups h3{font-family:inherit;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:#94a3b8;margin:0 0 8px}.defense-physical{border-right:1px solid #334155;padding-right:12px}.defense-physical .defense-option-grid{grid-template-columns:1fr}.defense-magical .defense-option-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.defense-damage-groups .defense-option-grid{margin-bottom:0;gap:7px}
@media(max-width:550px){.defense-damage-groups{grid-template-columns:1fr}.defense-physical{border-right:0;border-bottom:1px solid #334155;padding:0 0 10px}.defense-physical .defense-option-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.defense-magical .defense-option-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.defense-family-layout{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:12px}.defense-family-layout>section,.defense-family-layout>div{border-left:1px solid #334155;padding-left:14px}.defense-family-layout>div:first-child{border-left:0;padding-left:0}.defense-type-family h3{font-family:inherit;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:#94a3b8;margin:0 0 8px}.defense-type-family .defense-option-grid{grid-template-columns:1fr;margin-bottom:0;gap:7px}.defense-family-layout>div .defense-type-family+section{border-top:1px solid #334155;padding-top:10px;margin-top:10px}
@media(max-width:480px){.defense-family-layout{gap:8px}.defense-family-layout>section{padding-left:8px}.defense-type-family h3{font-size:9px}#monsterEntryEditor .defense-family-layout .damage-badge{padding:3px 4px;font-size:9px!important}}
.defense-family-layout{grid-template-columns:1fr 1.6fr 1fr}.defense-family-layout>section:nth-child(2) .defense-option-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:column;grid-template-rows:repeat(3,auto)}
