:root{--red-900: #5c000f;--red-800: #8a0016;--red-700: #a8001a;--red-600: #c90019;--red-100: #fbdde1;--red-050: #fdf1f2;--ink-900: #171414;--grey-900: #26232a;--grey-700: #54505a;--grey-500: #8a8790;--grey-300: #b1b3b4;--grey-200: #d9d7db;--grey-100: #eeedf0;--grey-050: #f7f6f8;--white: #fff;--green-600: #2f7a1c;--green-100: #e2f1dd;--gold-600: #d9a812;--gold-100: #fdf0cd;--brand: var(--red-600);--brand-hover: var(--red-700);--font: Arial, Helvetica, sans-serif;--r-sm: 6px;--r-md: 10px;--r-lg: 18px;--r-pill: 999px;--shadow-sm: 0 1px 2px rgba(23,20,20,.08);--shadow-md: 0 4px 16px rgba(23,20,20,.1);--shadow-lg: 0 12px 32px rgba(23,20,20,.14);--ease: cubic-bezier(.16,1,.3,1);--nav-h: 64px}*{box-sizing:border-box}html,body{margin:0}body{font-family:var(--font);font-size:16px;line-height:1.5;color:var(--ink-900);background:var(--grey-050);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}h1,h2,h3{font-weight:700;text-transform:uppercase;letter-spacing:.01em;line-height:1.15;margin:0}h1{font-size:24px}h2{font-size:18px}h3{font-size:15px}a{color:var(--brand)}button,input,select,textarea{font:inherit;color:inherit}img{display:block;max-width:100%}.shell{min-height:100vh;padding-bottom:calc(var(--nav-h) + env(safe-area-inset-bottom))}.topbar{position:sticky;top:0;z-index:40;background:var(--brand);color:var(--white);display:flex;align-items:center;gap:12px;padding:10px 16px;padding-top:calc(10px + env(safe-area-inset-top))}.topbar .crest{width:36px;height:36px;background:var(--white);border-radius:8px;padding:4px;flex:none}.topbar .brand{font-weight:700;text-transform:uppercase;letter-spacing:.04em;font-size:15px;line-height:1.1}.topbar .brand small{display:block;font-weight:400;text-transform:none;letter-spacing:0;opacity:.85;font-size:12px}.topbar .spacer{flex:1}.topbar .who{font-size:13px;opacity:.9;display:none}.content{max-width:1100px;margin:0 auto;padding:16px}.page-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 16px;flex-wrap:wrap}.page-head p{margin:4px 0 0;color:var(--grey-700);font-size:14px}.nav{position:fixed;left:0;right:0;bottom:0;z-index:30;display:flex;background:var(--white);border-top:1px solid var(--grey-200);padding-bottom:env(safe-area-inset-bottom)}.nav a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;height:var(--nav-h);text-decoration:none;color:var(--grey-700);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.03em}.nav a svg{width:22px;height:22px}.nav a.active{color:var(--brand)}.nav .desk-only{display:none}@media(min-width:900px){.shell{padding-bottom:0;padding-left:220px}.nav{top:0;right:auto;width:220px;flex-direction:column;justify-content:flex-start;border-top:0;border-right:1px solid var(--grey-200);padding:76px 12px 12px;gap:4px}.nav a{flex:none;flex-direction:row;justify-content:flex-start;height:44px;padding:0 14px;gap:12px;font-size:13px;border-radius:var(--r-md)}.nav a.active{background:var(--red-050)}.nav .desk-only{display:flex}.nav .mobile-only{display:none}.topbar{position:fixed;left:0;right:0}.content{padding:92px 32px 32px}.topbar .who{display:block}}.card{background:var(--white);border:1px solid var(--grey-200);border-radius:var(--r-lg);padding:16px}.card+.card{margin-top:16px}.card-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.grid2{display:grid;gap:16px}@media(min-width:900px){.grid2{grid-template-columns:1fr 1fr}.grid2 .card+.card{margin-top:0}}.stack{display:flex;flex-direction:column;gap:14px}.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.muted{color:var(--grey-700);font-size:14px}.small{font-size:13px}.hint{font-size:13px;color:var(--grey-700);margin:4px 0 0}.empty{text-align:center;padding:32px 16px;color:var(--grey-700)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 20px;border-radius:var(--r-pill);border:1.5px solid transparent;font-weight:700;font-size:14px;cursor:pointer;text-transform:uppercase;letter-spacing:.04em;text-decoration:none;transition:background .15s,transform .1s;background:var(--brand);color:var(--white);white-space:nowrap}.btn:hover{background:var(--brand-hover)}.btn:active{transform:scale(.97)}.btn:disabled{opacity:.5;cursor:default;transform:none}.btn.secondary{background:var(--white);color:var(--ink-900);border-color:var(--grey-300)}.btn.secondary:hover{background:var(--grey-050)}.btn.ghost{background:transparent;color:var(--brand);padding:0 12px}.btn.ghost:hover{background:var(--red-050)}.btn.danger{background:var(--white);color:var(--red-700);border-color:var(--red-100)}.btn.danger:hover{background:var(--red-050)}.btn.small{min-height:36px;padding:0 14px;font-size:12px}.btn.block{width:100%}.iconbtn{width:40px;height:40px;border-radius:50%;border:0;background:transparent;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;color:var(--grey-700);flex:none}.iconbtn:hover{background:var(--grey-100)}.iconbtn svg{width:20px;height:20px}.field{display:flex;flex-direction:column;gap:6px}.field>label,.label{font-size:13px;font-weight:700;color:var(--grey-900)}.input,.select,.textarea{width:100%;min-height:44px;padding:10px 12px;border:1.5px solid var(--grey-300);border-radius:var(--r-sm);background:var(--white);font-size:16px}.textarea{min-height:100px;resize:vertical;line-height:1.4}.input:focus,.select:focus,.textarea:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px var(--red-100)}.counter{font-size:12px;color:var(--grey-500);text-align:right}.switch{position:relative;display:inline-flex;align-items:center;gap:10px;cursor:pointer;user-select:none}.switch input{position:absolute;opacity:0;width:1px;height:1px}.switch .track{width:46px;height:28px;border-radius:var(--r-pill);background:var(--grey-300);position:relative;transition:background .2s;flex:none}.switch .track:after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:var(--white);box-shadow:var(--shadow-sm);transition:transform .2s var(--ease)}.switch input:checked+.track{background:var(--green-600)}.switch input:checked+.track:after{transform:translate(18px)}.switch input:focus-visible+.track{box-shadow:0 0 0 3px var(--red-100)}.chips{display:flex;flex-wrap:wrap;gap:6px}.chip{min-width:44px;height:38px;padding:0 12px;border-radius:var(--r-pill);border:1.5px solid var(--grey-300);background:var(--white);font-weight:700;font-size:13px;cursor:pointer}.chip.on{background:var(--brand);border-color:var(--brand);color:var(--white)}.seg{display:inline-flex;border:1.5px solid var(--grey-300);border-radius:var(--r-pill);overflow:hidden}.seg button{border:0;background:var(--white);padding:8px 14px;font-weight:700;font-size:13px;cursor:pointer;min-height:40px}.seg button.on{background:var(--brand);color:var(--white)}.badge{display:inline-flex;align-items:center;gap:4px;padding:2px 10px;border-radius:var(--r-pill);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;background:var(--grey-100);color:var(--grey-700);white-space:nowrap}.badge.red{background:var(--red-050);color:var(--red-700)}.badge.green{background:var(--green-100);color:var(--green-600)}.badge.gold{background:var(--gold-100);color:#7a5c00}.badge.dark{background:var(--ink-900);color:var(--white)}.dot{width:10px;height:10px;border-radius:50%;background:var(--grey-300);flex:none}.dot.on{background:var(--green-600);box-shadow:0 0 0 4px var(--green-100)}.dot.off{background:var(--red-600);box-shadow:0 0 0 4px var(--red-100)}.warn{background:var(--gold-100);border-radius:var(--r-md);padding:10px 12px;font-size:13px;color:#5c4500}.error-box{background:var(--red-050);border:1px solid var(--red-100);color:var(--red-800);border-radius:var(--r-md);padding:10px 12px;font-size:14px}.list{display:flex;flex-direction:column;gap:8px}.item{display:flex;align-items:center;gap:12px;background:var(--white);border:1px solid var(--grey-200);border-radius:var(--r-md);padding:8px 8px 8px 4px;min-height:64px}.item.inactive{opacity:.55}.item .handle{touch-action:none;cursor:grab;color:var(--grey-500);padding:8px 2px 8px 6px;display:flex}.item .handle svg{width:20px;height:20px}.item .thumb{width:80px;height:45px;border-radius:var(--r-sm);background:var(--grey-100);flex:none;object-fit:cover;display:flex;align-items:center;justify-content:center;color:var(--grey-500);overflow:hidden}.item .thumb.contain{object-fit:contain;background:var(--white);border:1px solid var(--grey-100)}.item .main{flex:1;min-width:0;cursor:pointer}.item .title{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item .meta{font-size:12px;color:var(--grey-700);display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin-top:2px}.sortable-ghost{opacity:.35}.sortable-chosen{box-shadow:var(--shadow-lg)}.media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}.media-card{background:var(--white);border:1px solid var(--grey-200);border-radius:var(--r-md);overflow:hidden;display:flex;flex-direction:column}.media-card.pick{cursor:pointer}.media-card.pick:hover,.media-card.selected{border-color:var(--brand);box-shadow:0 0 0 2px var(--brand)}.media-card .img{aspect-ratio:16/9;background:var(--grey-100);position:relative}.media-card .img img{width:100%;height:100%;object-fit:contain}.media-card .img .kind{position:absolute;left:6px;bottom:6px}.media-card .body{padding:8px 10px;font-size:12px;display:flex;flex-direction:column;gap:4px;flex:1}.media-card .body .t{font-weight:700;font-size:13px;word-break:break-word}.dropzone{border:2px dashed var(--grey-300);border-radius:var(--r-lg);padding:20px;text-align:center;background:var(--white);cursor:pointer;transition:border-color .15s,background .15s}.dropzone.over,.dropzone:hover{border-color:var(--brand);background:var(--red-050)}.progress{height:6px;background:var(--grey-100);border-radius:var(--r-pill);overflow:hidden}.progress>div{height:100%;background:var(--brand);transition:width .2s}.overlay{position:fixed;inset:0;z-index:100;background:#17141480;display:flex;align-items:flex-end;justify-content:center}.sheet{background:var(--grey-050);width:100%;max-height:92vh;border-radius:var(--r-lg) var(--r-lg) 0 0;display:flex;flex-direction:column;box-shadow:var(--shadow-lg);animation:up .25s var(--ease)}.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 12px 12px 16px;border-bottom:1px solid var(--grey-200);background:var(--white);border-radius:var(--r-lg) var(--r-lg) 0 0}.sheet-body{overflow:auto;padding:16px;-webkit-overflow-scrolling:touch}.sheet-foot{display:flex;gap:8px;justify-content:flex-end;padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--grey-200);background:var(--white);flex-wrap:wrap}@media(min-width:720px){.overlay{align-items:center}.sheet{width:min(720px,94vw);border-radius:var(--r-lg);max-height:88vh}.sheet.wide{width:min(1000px,94vw)}.sheet-foot{border-radius:0 0 var(--r-lg) var(--r-lg)}}@keyframes up{0%{transform:translateY(40px);opacity:0}to{transform:none;opacity:1}}.toasts{position:fixed;left:50%;transform:translate(-50%);bottom:calc(var(--nav-h) + 16px + env(safe-area-inset-bottom));z-index:200;display:flex;flex-direction:column;gap:8px;width:min(92vw,420px)}@media(min-width:900px){.toasts{bottom:24px}}.toast{background:var(--ink-900);color:var(--white);border-radius:var(--r-md);padding:12px 16px;box-shadow:var(--shadow-lg);font-size:14px;animation:up .2s var(--ease)}.toast.error{background:var(--red-700)}.preview{position:relative;width:100%;aspect-ratio:16/9;background:#000;border-radius:var(--r-md);overflow:hidden}.preview iframe{position:absolute;inset:0;width:100%;height:100%;border:0}.typepick{display:grid;grid-template-columns:1fr 1fr;gap:10px}.typepick button{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;padding:14px;min-height:92px;border:1.5px solid var(--grey-200);border-radius:var(--r-md);background:var(--white);cursor:pointer}.typepick button:hover{border-color:var(--brand)}.typepick b{text-transform:uppercase;font-size:13px;letter-spacing:.03em}.typepick span{font-size:12px;color:var(--grey-700)}.typepick svg{width:24px;height:24px;color:var(--brand)}.tpl-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.tpl{border:2px solid transparent;border-radius:var(--r-md);overflow:hidden;cursor:pointer;padding:0;background:none;text-align:left}.tpl.on{border-color:var(--ink-900)}.tpl .sw{aspect-ratio:16/9;background-size:cover;background-position:center}.tpl small{display:block;font-size:10px;font-weight:700;padding:4px 6px;text-transform:uppercase;background:var(--white);overflow-wrap:anywhere;line-height:1.3}.login{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;background:var(--brand)}.login .card{width:min(400px,100%);padding:28px 24px}.login .crest{width:72px;height:72px;margin:0 auto 12px}.login h1{text-align:center;font-size:20px;margin-bottom:4px}.login p.sub{text-align:center;margin:0 0 20px;color:var(--grey-700);font-size:14px}.kv{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;font-size:14px}.kv dt{color:var(--grey-700)}.kv dd{margin:0;font-weight:700;word-break:break-word}.stat{display:flex;flex-direction:column}.stat b{font-size:26px;line-height:1.1}.stat span{font-size:12px;color:var(--grey-700);text-transform:uppercase;letter-spacing:.04em;font-weight:700}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.pw{font-family:ui-monospace,Menlo,monospace;font-size:18px;background:var(--grey-100);border-radius:var(--r-sm);padding:10px 12px;user-select:all;word-break:break-all}.rule{display:flex;flex-direction:column;gap:10px;padding:12px;border:1px solid var(--grey-200);border-radius:var(--r-md);background:var(--grey-050)}.sep{height:1px;background:var(--grey-200);margin:4px 0}
