
:root{--bg:#080c0a;--panel:#101713;--panel2:#151e18;--text:#e4ebe6;--muted:#91a096;--green:#80b78c;--red:#d35d5d}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 80% 10%,#17321e22,transparent 35%),var(--bg);color:var(--text);font-family:Arial,sans-serif}header{height:64px;border-bottom:1px solid #26322b;background:#0b100d;display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:10}.brand{font-family:Georgia;font-weight:bold;letter-spacing:1px}.brand span{font:12px Arial;color:var(--muted);margin-left:8px}nav button,.raidBtn,button{background:#162019;border:1px solid #304037;color:var(--text);padding:9px 13px;border-radius:7px;cursor:pointer;margin-left:6px}button:hover{border-color:#6b8e76}.primary{background:#2b5b37;border-color:#4b8158}.page{max-width:1250px;margin:auto;padding:28px}.hidden{display:none!important}.hero{min-height:330px;border:1px solid #28362d;border-radius:14px;background:linear-gradient(100deg,#101a14dd,#09100cee),url('/images/emerald-nightmare.jpg') center/cover;display:flex;align-items:center;padding:50px;margin-bottom:22px}.eyebrow{color:var(--green);letter-spacing:2px;font-size:12px}.hero h1{font:46px Georgia;margin:10px 0}.hero p{color:var(--muted);max-width:650px}.card{background:linear-gradient(145deg,var(--panel),#0d130f);border:1px solid #29362e;border-radius:12px;padding:24px;margin-bottom:20px}.narrow{max-width:430px;margin:70px auto}.narrow input{width:100%;margin:8px 0;padding:12px;background:#090e0b;border:1px solid #334039;color:white;border-radius:7px}.layout{display:grid;grid-template-columns:260px 1fr;gap:20px}.sidebar{background:#0d130f;border:1px solid #27342c;border-radius:12px;padding:16px;height:max-content;position:sticky;top:85px}.sidebar h3{font-size:12px;color:var(--muted);letter-spacing:2px}.raidBtn{width:100%;margin:0;text-align:left}.boss-nav{display:block;width:100%;margin:5px 0;text-align:left;background:transparent;border-color:transparent}.boss-nav.active{background:#18251c;border-color:#3a5942}.boss-header{display:flex;gap:22px;align-items:center}.boss-image{width:250px;height:150px;border-radius:10px;overflow:hidden;border:1px solid #3a493f;background:#080c0a}.boss-image img{width:100%;height:100%;object-fit:cover}.phase-tabs{display:flex;gap:7px;margin:20px 0;flex-wrap:wrap}.phase-tab{border-radius:20px}.ability{border-top:1px solid #2a352e;padding:22px 0}.abilityTop{display:flex;gap:14px;align-items:flex-start}.icon{width:48px;height:48px;object-fit:cover;border-radius:7px;border:1px solid #4a5b4e;background:#070a08;flex:none}.ability h3{margin:0 0 8px}.media{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:15px}.media img,.media video{max-width:100%;width:100%;border-radius:8px;background:#050706;border:1px solid #29372e}.mythic{margin-top:18px;border:1px dashed var(--red);padding:16px;border-radius:9px;background:#24111466;font-family:Georgia;color:#f0caca}.mythic strong{color:#ff7777;font-family:Arial}.tip{margin-top:14px;padding:12px;border-left:3px solid var(--green);background:#122017;color:#bdcabe}.adminHead{display:flex;justify-content:space-between;align-items:center}.adminBoss{border:1px solid #2b3a31;border-radius:10px;margin:12px 0;padding:16px}.adminAbility{background:#0b110d;border-radius:8px;padding:15px;margin:10px 0}.edit{width:100%;min-height:75px;background:#080d0a;border:1px solid #34433a;color:white;border-radius:7px;padding:10px;margin:6px 0}.inline{display:grid;grid-template-columns:1fr 1fr;gap:8px}.small{font-size:12px;color:var(--muted)}@media(max-width:850px){.layout{grid-template-columns:1fr}.sidebar{position:static}.boss-header{flex-direction:column;align-items:flex-start}.media{grid-template-columns:1fr}}

.editLine,.abilityTitle{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.addBtn{width:100%;margin-top:8px;background:#132018}.danger{border-color:#743838;color:#ff9999}.phase-tab.active{background:#2b5b37;border-color:#568462}.abilityBody{flex:1}.abilityTitle h3{display:inline-block}.empty{padding:25px;color:var(--muted);border:1px dashed #324036;border-radius:8px}.modalBack{position:fixed;inset:0;background:#000a;display:flex;align-items:center;justify-content:center;z-index:100}.modal{width:min(760px,92vw);max-height:90vh;overflow:auto;background:#101713;border:1px solid #3a4a40;border-radius:12px;padding:20px;box-shadow:0 20px 70px #000}.modalHead{display:flex;justify-content:space-between;align-items:center}.modal label{display:block;font-size:12px;color:var(--muted);margin:12px 0 5px}.modal input,.modal textarea{width:100%;background:#080d0a;border:1px solid #334139;color:#eee;border-radius:7px;padding:10px}.modal textarea{min-height:100px}.modalActions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.formGrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.uploadBox{margin-top:15px;padding:12px;border:1px dashed #415147;border-radius:8px}.uploadBox button{margin-left:8px}.toast{position:fixed;right:24px;bottom:24px;background:#1c2d21;border:1px solid #54765c;padding:12px 18px;border-radius:8px;z-index:200}

.mediaPreview{min-height:90px;margin:7px 0;padding:8px;border:1px dashed #415147;border-radius:8px;background:#080d0a;display:flex;align-items:center;justify-content:center;color:var(--muted)}.mediaPreview img{max-width:100%;max-height:180px;object-fit:contain}.mediaPreview video{max-width:100%;max-height:220px}.miniPreview{width:56px;height:56px;margin:5px 0;border:1px solid #3a4a40;border-radius:6px;overflow:hidden;display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:9px}.miniPreview img{width:100%;height:100%;object-fit:cover}.modal input[type=file]{padding:8px;border:1px dashed #415147;background:#0a100d}.modal .uploadBox button,.modal>div>button{margin-top:7px}

.bossIntro{margin:22px 0;padding:18px;border:1px solid #2f3e34;border-radius:10px;background:#0b110d}
.sectionLabel{font-size:12px;letter-spacing:.12em;color:#8fa797;font-weight:800;margin-bottom:9px}
.bossIntroText{white-space:pre-wrap;line-height:1.65;color:#d9e3dc}
.bossIntroImage{display:block;max-width:100%;max-height:420px;margin:15px auto 0;border-radius:9px;border:1px solid #33443a}
.abilitySectionHead{display:flex;justify-content:space-between;align-items:center;margin:22px 0 0}
.abilitySpoiler{padding:7px 0;border-top:1px solid #263229}
.abilitySpoiler.dragging{opacity:.45}
.abilitySpoiler details{border-radius:9px}
.abilitySpoiler summary{list-style:none;cursor:pointer;padding:10px 12px;display:flex;justify-content:space-between;align-items:center;gap:12px;background:#0d140f;border:1px solid #26352c;border-radius:9px}
.abilitySpoiler summary::-webkit-details-marker{display:none}
.abilitySpoiler details[open] summary{border-radius:9px 9px 0 0;background:#111a14}
.abilitySummary{display:flex;align-items:center;gap:11px;min-width:0}
.abilitySummaryName{font-weight:800;font-size:16px}
.abilitySummaryRight{display:flex;align-items:center;gap:8px;flex:none}
.roleIcon{width:28px;height:28px;object-fit:contain;border-radius:5px;border:1px solid #59463b;background:#090c0a}
.chevron{font-size:11px;color:#8da093;transition:transform .15s}
details[open] .chevron{transform:rotate(180deg)}
.abilityEditBtn{padding:5px 8px}
.dragHandle{cursor:grab;color:#83958a;font-size:18px}
.abilityDetails{padding:16px 15px;border:1px solid #26352c;border-top:0;border-radius:0 0 9px 9px}
.roleUploadRow{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px;border:1px dashed #415147;border-radius:8px;background:#080d0a}
.rolePreviewImg{width:36px;height:36px;object-fit:contain;border-radius:5px;border:1px solid #3a4a40}

.abilityAdminActions{display:flex;justify-content:flex-end;margin:10px 0 14px;padding-bottom:10px;border-bottom:1px solid rgba(255,255,255,.08)}

.phaseSection{margin:24px 0 28px;padding:20px;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:rgba(255,255,255,.02)}.phaseSectionHead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.phaseDescription{margin-top:14px;padding:16px;border-radius:10px;background:rgba(0,0,0,.16);line-height:1.65}.phaseDescription p{margin:0 0 12px}.phaseImage{display:block;max-width:100%;max-height:360px;border-radius:10px;margin:12px 0}

.bossGeneralTactic{margin:20px 0 28px;padding:22px;border:1px solid rgba(255,255,255,.09);border-radius:14px;background:rgba(255,255,255,.025)}
.bossGeneralTacticText{margin-top:12px;line-height:1.7;white-space:pre-wrap}
.bossGeneralTacticImage{display:block;max-width:100%;max-height:520px;margin:16px 0;border-radius:10px}
