#detailModal .modal-content{width:min(960px,94vw);max-width:960px;padding:28px!important;border-radius:22px!important;background:linear-gradient(145deg,#19212c,#111923)!important;border:1px solid #435267!important;color:#e9eef5}
#detailModal h2{font-size:25px;color:#f2f5fa;margin:0 0 18px}
#detailModal #detailImage{max-height:230px;object-fit:contain;margin-bottom:18px!important}
#detailModal .monster-summary-row{gap:8px;margin:18px 0}
#detailModal .monster-summary-pill{font-size:14px;background:#101a28;border-color:#3b4c61;padding:9px 12px}
#detailModal .modal-content>div:has(>strong){margin:12px 0;font-size:13px;line-height:1.7}
#detailModal .modal-content>div>strong{color:#aebdd0}
#detailModal hr{border:0;border-top:1px solid #344357;margin:20px 0}
#detailSpeed,#detailSenses,#detailSaves,#detailSkills{display:inline-flex;gap:6px;flex-wrap:wrap;vertical-align:middle}
.bestiary-chip{display:inline-block;padding:4px 9px;border:1px solid #364c64;border-radius:7px;background:#15283c;font-size:12px;line-height:1.5;color:#dce9f7}
.bestiary-empty{color:#99a8b9;font-size:12px}
.bestiary-data-note{display:block;width:100%;color:#c6b583;font-size:11px}
.bestiary-section{margin:22px 0;border:1px solid #334459;border-radius:14px;overflow:hidden;background:#14202e}
#detailModal .bestiary-section>h3{font-size:14px;letter-spacing:.5px;margin:0;padding:12px 16px;background:#1f3043;color:#d2e3f5;border-bottom:1px solid #334459}
#detailModal .bestiary-section>ul{list-style:none;padding:0;margin:0}
#detailModal .bestiary-section li{padding:14px 16px;border-bottom:1px solid #2d3c4f;font-size:14px;line-height:1.65}
#detailModal .bestiary-section li:last-child{border-bottom:0}
.bestiary-entry-title{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-weight:650;color:#f4dfaa;margin-bottom:5px;font-size:14px}
.bestiary-entry-body p{margin:4px 0;color:#d5deea}
.bestiary-cost{font-size:11px;font-weight:500;padding:2px 7px;border-radius:5px;background:#493823;color:#f7dba8}
#detailLegendary .bestiary-entry-title{color:#dfbefa}
@media(max-width:600px){#detailModal .modal-content{padding:15px!important;width:95vw}#detailModal h2{font-size:20px}#detailModal .bestiary-section li{padding:11px 12px;font-size:13px}}

.bestiary-save{display:inline-block;padding:1px 6px;background:#263952;border:1px solid #53759b;border-radius:5px;color:#b9dbff;font-size:12px;font-weight:650;white-space:normal}
/* Spell reference sheets */
.spell-link{color:#8ed8ed!important;text-decoration:underline!important;text-decoration-style:solid!important;text-decoration-color:#8ed8ed66!important;text-underline-offset:4px;text-decoration-thickness:1px;cursor:pointer;text-shadow:none!important;border-radius:3px}.spell-link:hover{color:#fff!important;text-decoration-color:#fff!important;background:#ffffff0a}.spell-subtitle{color:#aabaca;margin:0 0 18px}.spell-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 18px}.spell-fact{padding:12px 14px;background:#ffffff05;border:1px solid #ffffff12;border-radius:12px}.spell-fact dt{font-size:12px;color:#9aabba;margin-bottom:5px}.spell-fact dd{margin:0;line-height:1.5}.spell-access{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:10px 0}.spell-access>strong{font-size:13px;min-width:90px;color:#aabaca}.spell-description{border-top:1px solid #ffffff18;margin-top:20px;padding-top:8px;line-height:1.75}.spell-description p{margin:12px 0}.spell-description strong{color:#f4d392}.spell-source{color:#899bad;font-size:12px;margin-top:20px}.spellcasting-rows{display:grid;gap:8px}.spellcasting-row{display:grid;grid-template-columns:150px 1fr;gap:12px;padding:10px 12px;background:#ffffff04;border-radius:8px;line-height:1.8}.spellcasting-row>strong{font-size:12px;color:#aabaca}.spellcasting-row .spell-link{display:inline-block;margin-right:8px}@media(max-width:600px){.spell-facts{grid-template-columns:1fr}.spellcasting-row{grid-template-columns:1fr;gap:3px}}
.dice-formula-link{display:inline-block;white-space:nowrap;vertical-align:baseline;padding:0 5px;margin:0 2px;border:1px solid #d9ad6338;border-radius:5px;background:#d9ad630c;color:#edcf9c!important;text-decoration:none!important;text-shadow:none!important;font-variant-numeric:tabular-nums;font-size:.94em;line-height:1.5;cursor:pointer}.dice-formula-link:hover{background:#d9ad6325;border-color:#d9ad6380}.spell-table-scroll{max-width:100%;overflow-x:auto;margin:18px 0;border:1px solid #ffffff20;border-radius:10px}.spell-table{width:100%;border-collapse:collapse;min-width:560px;font-size:14px;line-height:1.6}.spell-table caption{text-align:left;padding:12px 14px;font-weight:600;color:#e6ce9d;background:#ffffff06}.spell-table th{text-align:left;font-size:12px;color:#aabaca;background:#ffffff08}.spell-table td,.spell-table th{padding:10px 12px;border-bottom:1px solid #ffffff12;border-right:1px solid #ffffff08;vertical-align:top}.spell-table tr:last-child td{border-bottom:0}.spell-table tr:nth-child(even) td{background:#ffffff03}.spell-description ul,.spell-description ol{padding-left:22px}.spell-description li{margin:10px 0}
.monster-reference{display:inline-flex;align-items:baseline;gap:3px;white-space:nowrap}.monster-reference-link{display:inline!important;width:auto!important;background:none!important;border:0!important;border-radius:0!important;padding:0!important;margin:0!important;font:inherit!important;color:#a4d7b9!important;text-decoration:underline;text-decoration-color:#a4d7b960;text-underline-offset:4px;cursor:pointer;box-shadow:none!important}.monster-reference-add{display:inline-flex!important;align-items:center;justify-content:center;min-width:22px!important;width:22px!important;height:22px!important;margin:0 4px 0 0!important;padding:0!important;font-size:15px!important;border:1px solid #a4d7b940!important;border-radius:5px!important;background:#a4d7b910!important;color:#a4d7b9!important;cursor:pointer;box-shadow:none!important}.monster-reference-link:hover{color:#fff!important}.monster-reference-add:hover{background:#a4d7b930!important}.spellcasting-note{color:#99afc3;font-size:12px;line-height:1.6;margin-top:12px!important}.spell-footnote-mark{font-size:10px;vertical-align:super;margin-left:2px}.bestiary-entry-body{line-height:1.7}
