:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#e9eaf4;background:#0d1020;font-synthesis:none}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;min-height:100vh}
button,input,textarea{font:inherit}
button{cursor:pointer}
button:disabled{opacity:.5;cursor:not-allowed}
input,textarea{color:#e9eaf4;background:#111629;border:1px solid #303750;border-radius:10px;outline:none}
input:focus,textarea:focus{border-color:#8b73ed;box-shadow:0 0 0 3px #8b73ed25}
input{padding:11px 13px}
code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;color:#c6b9ff}
.muted{color:#a2abc2;line-height:1.55}
.hint{font-size:12px;color:#8792ad;line-height:1.55}
.eyebrow{font-size:10px;font-weight:800;letter-spacing:.19em;color:#a08cf0;margin:0 0 9px}
.primary,.secondary,.ghost,.danger-soft{border:1px solid transparent;border-radius:10px;padding:10px 15px;font-weight:650;transition:background .15s,transform .15s}
.primary{background:linear-gradient(135deg,#8a6af4,#604add);color:white;box-shadow:0 8px 24px #5d45cf30}
.primary:hover{background:linear-gradient(135deg,#9a7bff,#7059ec);transform:translateY(-1px)}
.secondary{background:#242b47;color:#e8e8fa;border-color:#3a4568}
.secondary:hover{background:#303959}
.ghost{background:transparent;color:#c5cbe0;border-color:#3a4568}
.ghost:hover{background:#202842}
.danger-soft{background:#4e2634;color:#ffbbc7;border-color:#74384c}
.danger-soft:hover{background:#633244}
.wide{width:100%;margin-top:16px}
.login-wrap{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(ellipse at 50% -20%,#39347b 0,transparent 45%),radial-gradient(ellipse at 90% 100%,#21194a 0,transparent 45%),#0d1020}
.login-card{width:min(420px,100%);padding:38px;background:#171c31;border:1px solid #343b59;border-radius:22px;box-shadow:0 30px 90px #0007}
.login-card h1{font-size:34px;margin:0 0 8px;letter-spacing:-.04em}
.login-card form{display:grid;gap:8px;margin-top:28px}
.login-card label{font-size:13px;font-weight:650}
.login-card .hint{margin:22px 0 0}
.brand-mark{display:grid;place-items:center;width:55px;height:55px;border-radius:16px;background:#8062eb;color:#fff;font-size:20px;font-weight:900;letter-spacing:-.08em;box-shadow:0 9px 26px #8062eb55;margin-bottom:25px}
.brand-mark span{color:#cfbaff}
.brand-mark.small{width:40px;height:40px;border-radius:12px;font-size:15px;margin:0}
.shell{display:grid;grid-template-columns:232px minmax(0,1fr);min-height:100vh}
.sidebar{background:#13182b;border-right:1px solid #2a3148;display:flex;flex-direction:column;padding:25px 14px;min-height:100vh}
.brand{display:flex;align-items:center;gap:11px;padding:0 9px 34px}
.brand strong{display:block;font-size:15px;letter-spacing:-.02em}
.brand small{display:block;font-size:9px;font-weight:800;letter-spacing:.13em;color:#8c94ad;margin-top:4px}
nav{display:grid;gap:5px}
.nav{display:flex;gap:13px;align-items:center;width:100%;text-align:left;background:transparent;border:0;border-radius:9px;padding:11px 13px;color:#aab3cb;font-weight:600}
.nav span{font-size:20px;font-weight:400;width:20px;text-align:center;line-height:1}
.nav:hover{background:#232a43;color:#f0ecff}
.nav.active{background:#302a57;color:#d7c9ff}
.sidebar-foot{margin-top:auto;display:flex;align-items:center;gap:8px;padding:14px 8px 0;border-top:1px solid #30364b;color:#9ba6bf;font-size:11px}
.sidebar-foot button{margin-left:auto;background:none;border:0;color:#bbb0ed;font-size:11px;font-weight:700}
.status-dot{height:7px;width:7px;background:#4dd7a0;border-radius:50%;box-shadow:0 0 12px #4dd7a0}
.main{padding:32px clamp(22px,4vw,58px) 55px;min-width:0;max-width:1600px;width:100%;margin:auto}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:31px}
.topbar h1{margin:0;font-size:29px;letter-spacing:-.04em}
.top-actions{display:flex;align-items:center;gap:15px}
#clock{font-size:12px;color:#8792ad}
.page{animation:fade .2s ease}
@keyframes fade{from{opacity:.6;transform:translateY(5px)}to{opacity:1;transform:none}}
.hero{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(115deg,#28285b,#382571 65%,#58348e);padding:30px 35px;border:1px solid #6057a6;border-radius:20px;min-height:190px;box-shadow:0 18px 60px #33256830}
.hero h2{font-size:27px;letter-spacing:-.04em;margin:0 0 8px}
.hero p:last-child{color:#d6cdef;max-width:490px;margin:0;line-height:1.5}
.hero-orb{font-size:110px;color:#c9afff;opacity:.75;text-shadow:0 0 55px #f5bcff;transform:rotate(-16deg);padding-right:40px}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:19px 0}
.stat,.card{background:#171d31;border:1px solid #303852;border-radius:17px}
.stat{padding:20px 22px;display:grid;gap:6px}
.stat span{font-size:12px;color:#adb5cc}
.stat strong{font-size:32px;letter-spacing:-.05em}
.stat small{font-size:11px;color:#7e8aa8}
.grid-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:19px}
.card{padding:24px}
.card h3{font-size:18px;margin:0;letter-spacing:-.02em}
.card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:20px}
.pill{font-size:10px;font-weight:750;letter-spacing:.03em;color:#c7b8ff;background:#3b315e;border:1px solid #635387;padding:6px 9px;border-radius:100px;white-space:nowrap}
.action-stack{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}
.health-row{display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid #303852;padding:14px 0;font-size:13px;color:#abb4cb}
.health-row strong{color:#e3e8f8;font-size:12px;text-align:right;word-break:break-all}
.section-intro{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px}
.section-intro h2{font-size:22px;letter-spacing:-.03em;margin:0 0 4px}
.section-intro p{margin:0;font-size:13px}
.editor-layout{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:620px;border:1px solid #303852;border-radius:17px;overflow:hidden;background:#171d31}
.file-panel{border-right:1px solid #303852;padding:17px 12px;display:flex;flex-direction:column}
.panel-title{font-size:11px;color:#919bb5;font-weight:800;text-transform:uppercase;letter-spacing:.12em;padding:0 10px 13px}
.file-list{display:grid;align-content:start;gap:4px;max-height:530px;overflow:auto}
.file-list button{width:100%;text-align:left;background:transparent;border:0;border-radius:8px;padding:10px;color:#adb6d0;font-size:12px}
.file-list button:hover{background:#252d47}
.file-list button.selected{background:#342e5b;color:#ddceff}
.new-file{display:flex;gap:4px;margin-top:auto;padding-top:12px}
.new-file input{width:100%;min-width:0;font-size:12px;padding:8px}
.new-file button{background:#302955;color:#d9ccff;border:0;border-radius:8px;font-size:20px}
.editor-panel{min-width:0;display:flex;flex-direction:column}
.editor-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:13px 18px;border-bottom:1px solid #303852}
.editor-toolbar strong{font-size:13px}
.toolbar-actions{display:flex;gap:8px}
.toolbar-actions button{font-size:12px;padding:8px 12px}
.dirty{font-size:10px;color:#ffd28e;margin-left:12px}
#yaml-editor{display:block;flex:1;resize:vertical;width:100%;min-height:530px;padding:22px 23px;background:#111629;border:0;border-radius:0;box-shadow:none!important;font:13px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace;tab-size:2;white-space:pre}
.editor-help{display:flex;justify-content:space-between;gap:12px;padding:10px 17px;color:#7d89a5;font-size:11px}
input[type=file]{width:100%;font-size:12px;margin-bottom:14px}
input[type=file]::file-selector-button{border:0;border-radius:7px;padding:7px 10px;background:#41366b;color:#e6ddff;margin-right:10px}
.asset-list,.player-list{display:grid;gap:8px;margin-top:12px}
.asset-row,.player-row{display:flex;align-items:center;gap:11px;padding:9px;background:#202741;border:1px solid #343d59;border-radius:10px}
.asset-row img{width:42px;height:42px;object-fit:cover;border-radius:8px;background:#101522}
.asset-row strong,.player-row strong{font-size:12px;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
.asset-row button,.player-row button{padding:6px 9px;font-size:11px}
.asset-row audio{max-width:120px;height:31px}
.uuid-search{border-top:1px solid #303852;margin-top:20px;padding-top:20px}
.uuid-search label{font-size:12px;color:#aeb8d2}
.uuid-search div{display:flex;gap:7px;margin-top:8px}
.uuid-search input{width:100%;min-width:0;font-size:12px}
.uuid-search button{font-size:11px}
.progress-card{min-height:450px}
.progress-content{font-size:12px}
.progress-content h4{font-size:12px;text-transform:uppercase;letter-spacing:.12em;color:#b6a9ee;margin:24px 0 10px}
.progress-content h4:first-child{margin-top:4px}
.kv-row{display:flex;align-items:center;gap:9px;padding:7px 0;border-bottom:1px solid #303852}
.kv-row code{flex:1;overflow-wrap:anywhere}
.kv-row span{color:#c8d0e3;overflow-wrap:anywhere}
.kv-row button{font-size:10px;padding:5px 8px}
.progress-form{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:15px}
.progress-form input{font-size:11px;min-width:0}
.progress-form input:last-of-type{grid-column:1/-1}
.progress-form button{grid-column:1/-1}
.toast{position:fixed;right:25px;bottom:25px;background:#342b61;border:1px solid #8068cf;color:#f4edff;box-shadow:0 20px 55px #0007;padding:13px 17px;border-radius:11px;z-index:10;max-width:min(420px,calc(100vw - 40px));font-size:13px}
.toast.error{background:#592b3b;border-color:#aa526e}
@media(max-width:900px){.stats{grid-template-columns:repeat(2,1fr)}.grid-two{grid-template-columns:1fr}.hero-orb{font-size:70px;padding:0}.editor-layout{grid-template-columns:190px minmax(0,1fr)}}
@media(max-width:650px){.shell{display:block}.sidebar{min-height:auto;padding:12px}.brand{padding:0 3px 12px}.sidebar nav{display:flex;overflow-x:auto}.nav{white-space:nowrap;width:auto}.sidebar-foot{display:none}.main{padding:23px 14px 45px}.topbar{align-items:flex-start}.top-actions{flex-direction:column;align-items:flex-end}.hero{padding:24px}.hero-orb{display:none}.stats{gap:8px}.stat{padding:15px}.editor-layout{display:block}.file-panel{border-right:0;border-bottom:1px solid #303852;max-height:175px}.file-list{display:flex;overflow:auto}.file-list button{white-space:nowrap}.new-file{display:none}.editor-toolbar{align-items:flex-start;flex-direction:column}#yaml-editor{min-height:450px}.editor-help{flex-direction:column}}
