:root{font-family:Inter,system-ui,sans-serif;color:#2b405c;background:#f6f8fc;font-size:14px}*{box-sizing:border-box}body{margin:0}header{display:flex;align-items:center;gap:18px;min-height:72px;padding:16px max(20px,calc((100vw - 1120px)/2));border-bottom:1px solid #dde5ef;background:white}a{color:#416d9f;text-decoration:none}header>a:first-child{font-size:24px;font-weight:700;color:#263b55}.back{margin-left:auto}main{max-width:1120px;margin:28px auto;padding:0 20px}section{padding:26px;background:white;border:1px solid #dde5ef;border-radius:14px;margin-bottom:24px}.login{max-width:430px;margin:70px auto}h1{font-size:21px;margin:0 0 16px}p,small{line-height:1.6;color:#72849b}label{display:grid;gap:7px;margin:14px 0;min-width:0}input,textarea,button{font:inherit}input[type=color]{height:44px;cursor:pointer}input:not([type=checkbox]),textarea{width:100%;border:1px solid #cedae8;background:#fbfcfe;padding:10px;border-radius:7px;color:#2b405c;min-width:0}button{border:1px solid #466e9d;border-radius:7px;background:#466e9d;color:white;padding:9px 15px;cursor:pointer}button.secondary{background:#fff;color:#476e9b;border-color:#cedae8}button:disabled{opacity:.5;cursor:default}.row{display:flex;gap:16px;align-items:start}.row>label,.row>fieldset{flex:1}fieldset{border:1px solid #dde5ef;border-radius:7px;min-width:0}.coordinates{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.check{display:flex;align-items:center;gap:8px}.actions,.section-head{display:flex;align-items:center;gap:12px;margin-top:18px}.section-head h1{margin:0}.section-head button{margin-left:auto}details{margin-top:18px}summary{cursor:pointer;padding:8px 0}progress{width:100%;height:12px;margin-top:18px;accent-color:#466e9d}[hidden]{display:none!important}.scene{display:grid;grid-template-columns:100px minmax(0,1fr) auto;gap:16px;padding:18px 0;border-bottom:1px solid #e7edf4;align-items:center}.scene img{width:100px;height:66px;border-radius:7px;object-fit:cover;background:#edf1f7}.scene h2{font-size:15px;margin:0 0 6px;overflow-wrap:anywhere}.scene small{display:block;overflow-wrap:anywhere}.scene-actions{display:flex;align-items:center;gap:12px}.badge{font-size:12px;color:#289166}.badge.off{color:#a66e38}.error{color:#b14444}.success{color:#23855b}@media(max-width:650px){header{gap:10px;padding:14px;font-size:12px}header>a:first-child{font-size:21px}main{padding:0 12px;margin-top:18px}section{padding:17px}.row{flex-wrap:wrap;gap:10px}.row>label,.row>fieldset{flex-basis:calc(50% - 10px)}.scene{grid-template-columns:70px minmax(0,1fr);gap:10px}.scene img{width:70px;height:54px}.scene-actions{grid-column:2;justify-content:flex-start}.login{margin-top:35px}}

dialog{width:min(620px,calc(100% - 24px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #dde5ef;border-radius:14px;padding:24px;color:#2b405c}dialog::backdrop{background:#17253a88}dialog .section-head{margin:0}#editPreview{display:block;max-width:100%;width:260px;height:146px;object-fit:contain;background:#edf1f7;border-radius:7px;margin:12px 0}#editId{overflow-wrap:anywhere}.scene-actions{flex-wrap:wrap}@media(max-width:650px){dialog{padding:17px}.scene-actions{gap:8px}.scene-actions button{padding:8px 12px}}

.scene-sort{grid-column:2 / -1;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.scene-sort label{display:flex;align-items:center;gap:8px;margin:0}.scene-sort input{width:76px!important;padding:7px!important}.scene-sort button{padding:7px 12px}#scenes[aria-busy=true] .scene-sort{opacity:.5}@media(max-width:650px){.scene-sort{grid-column:1 / -1}.scene-sort input{width:65px!important}}
