:root{--bg: #0b0b0d;--bg-2: #121215;--surface: #17171b;--surface-2: #1f1f25;--surface-3: #2c2c34;--border: #2c2c34;--border-2: #3a3a44;--text: #ffffff;--text-2: #b4b4bd;--text-3: #7c7c88;--red: #ff2038;--red-2: #e72226;--red-deep: #b9151b;--yellow: #ffe600;--blue: #4d5dff;--violet: #9146ff;--green: #3ddc84;--font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;--radius: 6px;--shadow: 0 10px 30px rgba(0, 0, 0, .45)}*{box-sizing:border-box}html,body{margin:0;background:var(--bg);color:var(--text);font:400 15px/1.45 var(--font)}body{min-height:100vh}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit;color:inherit}h1,h2,h3,h4{margin:0;font-weight:700;letter-spacing:-.01em}h1{font-size:28px}h2{font-size:20px}h3{font-size:16px}code,.mono{font-family:var(--mono);font-size:13px}hr{border:0;border-top:1px solid var(--border);margin:16px 0}.topbar{position:sticky;top:0;z-index:50;display:flex;align-items:center;gap:24px;height:60px;padding:0 24px;background:#0b0b0de6;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid var(--border)}.topbar .brand{display:flex;align-items:center;gap:12px;font-weight:800;font-size:20px;letter-spacing:.02em}.topbar .brand img{height:34px;width:auto}.topbar .brand span{color:var(--red)}.topbar nav{display:flex;gap:4px}.topbar nav a{padding:8px 14px;border-radius:var(--radius);color:var(--text-2);font-weight:500}.topbar nav a:hover{color:var(--text);background:var(--surface)}.topbar nav a.active{color:var(--text);background:var(--surface-2)}.topbar .spacer{flex:1}.topbar .user{display:flex;align-items:center;gap:10px;color:var(--text-2);font-size:14px}.page{padding:28px 24px 64px;max-width:1400px;margin:0 auto}.page-wide{max-width:none}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:24px;flex-wrap:wrap}.page-head p{margin:6px 0 0;color:var(--text-2)}.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.row-between{justify-content:space-between}.grid{display:grid;gap:16px}.grid-cards{grid-template-columns:repeat(auto-fill,minmax(320px,1fr))}.grid-2{grid-template-columns:1fr 1fr}.grid-3{grid-template-columns:repeat(3,1fr)}@media(max-width:900px){.grid-2,.grid-3{grid-template-columns:1fr}}.stack{display:flex;flex-direction:column;gap:12px}.muted{color:var(--text-2)}.dim{color:var(--text-3)}.small{font-size:13px}.right{text-align:right}.nowrap{white-space:nowrap}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:18px}.card-hover:hover{border-color:var(--border-2);background:var(--surface-2)}.card h3{margin-bottom:6px}.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.section{margin-bottom:28px}.section>h2{margin-bottom:12px;padding-bottom:8px;border-bottom:2px solid var(--red);display:inline-block}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:36px;padding:0 14px;border-radius:var(--radius);border:1px solid var(--border-2);background:var(--surface-2);color:var(--text);font-weight:600;cursor:pointer;white-space:nowrap;transition:background .12s,border-color .12s,transform .05s}.btn:hover{background:var(--surface-3);border-color:#4a4a56}.btn:active{transform:translateY(1px)}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background:var(--red);border-color:var(--red);color:#fff}.btn-primary:hover{background:var(--red-2);border-color:var(--red-2)}.btn-danger{color:#ff7b8a;border-color:#5a2a30;background:#2a1518}.btn-danger:hover{background:#3a1a1f;border-color:#7a2a35}.btn-ghost{background:transparent;border-color:transparent;color:var(--text-2)}.btn-ghost:hover{background:var(--surface-2);color:var(--text)}.btn-sm{height:30px;padding:0 10px;font-size:13px}.btn-xs{height:26px;padding:0 8px;font-size:12px}.btn-lg{height:44px;padding:0 20px;font-size:16px}.btn-block{width:100%}.field{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}.field>label{font-size:13px;font-weight:600;color:var(--text-2);letter-spacing:.02em}.field .help{font-size:12px;color:var(--text-3)}.input,.select,.textarea{width:100%;height:38px;padding:0 12px;background:var(--bg-2);border:1px solid var(--border-2);border-radius:var(--radius);color:var(--text);outline:none;transition:border-color .12s}.input:focus,.select:focus,.textarea:focus{border-color:var(--red)}.textarea{height:auto;min-height:90px;padding:10px 12px;resize:vertical;line-height:1.45}.textarea.code{font-family:var(--mono);font-size:13px;min-height:260px;-moz-tab-size:2;tab-size:2;white-space:pre}.select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23b4b4bd' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:32px}.input-color{display:flex;align-items:center;gap:8px}.input-color input[type=color]{width:38px;height:38px;padding:2px;border:1px solid var(--border-2);border-radius:var(--radius);background:var(--bg-2);cursor:pointer}.inline-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}.checkbox{display:inline-flex;align-items:center;gap:10px;cursor:pointer;-webkit-user-select:none;user-select:none}.switch{position:relative;width:40px;height:22px;border-radius:11px;background:var(--surface-3);border:1px solid var(--border-2);transition:background .15s;flex-shrink:0}.switch:after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;transition:transform .15s}.switch.on{background:var(--red);border-color:var(--red)}.switch.on:after{transform:translate(18px)}.form-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:16px}.error{color:#ff7b8a;font-size:14px}.success{color:var(--green)}.tabs{display:flex;gap:2px;border-bottom:1px solid var(--border);margin-bottom:20px}.tabs button{padding:10px 16px;background:none;border:0;border-bottom:2px solid transparent;color:var(--text-2);font-weight:600;cursor:pointer;margin-bottom:-1px}.tabs button:hover{color:var(--text)}.tabs button.active{color:var(--text);border-bottom-color:var(--red)}.tabs-sub button{font-size:14px;padding:8px 12px}.badge{display:inline-flex;align-items:center;gap:6px;height:22px;padding:0 8px;border-radius:4px;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;background:var(--surface-3);color:var(--text-2)}.badge-red{background:var(--red);color:#fff}.badge-yellow{background:var(--yellow);color:#000}.badge-green{background:#3ddc8426;color:var(--green)}.badge-blue{background:#4d5dff33;color:#9aa5ff}.badge-outline{background:transparent;border:1px solid var(--border-2)}.dot{width:8px;height:8px;border-radius:50%;background:var(--text-3);display:inline-block}.dot.on{background:var(--green);box-shadow:0 0 8px var(--green)}.table{width:100%;border-collapse:collapse}.table th,.table td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--border);vertical-align:middle}.table th{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--text-3);font-weight:600}.table tr:hover td{background:var(--surface-2)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;background:#000000a6;display:flex;align-items:center;justify-content:center;padding:24px}.modal{width:100%;max-width:560px;max-height:90vh;overflow:auto;background:var(--surface);border:1px solid var(--border-2);border-radius:8px;box-shadow:var(--shadow)}.modal-lg{max-width:900px}.modal-xl{max-width:1300px}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--border)}.modal-body{padding:20px}.modal-foot{display:flex;justify-content:flex-end;gap:10px;padding:14px 20px;border-top:1px solid var(--border)}.toasts{position:fixed;right:20px;bottom:20px;z-index:200;display:flex;flex-direction:column;gap:8px}.toast{padding:12px 16px;border-radius:var(--radius);background:var(--surface-2);border:1px solid var(--border-2);box-shadow:var(--shadow);font-size:14px;animation:toast-in .2s ease}.toast-error{border-color:var(--red)}.toast-success{border-color:var(--green)}@keyframes toast-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}.login{min-height:100vh;display:grid;place-items:center;background:radial-gradient(1200px 600px at 70% -10%,rgba(255,32,56,.25),transparent 60%),var(--bg)}.login .card{width:100%;max-width:400px;padding:32px}.login .brand{display:flex;flex-direction:column;align-items:center;gap:10px;margin-bottom:24px}.login .brand img{height:64px}.login .brand h1{font-size:30px;font-weight:800}.login .brand h1 span{color:var(--red)}.live-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px}.live-card{display:flex;flex-direction:column;gap:12px;background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:14px;transition:border-color .15s,box-shadow .15s}.live-card.on{border-color:var(--red);box-shadow:0 0 0 1px var(--red),0 8px 28px #ff203840}.live-card .name{font-weight:700;font-size:16px}.live-card .meta{font-size:12px;color:var(--text-3);display:flex;gap:10px;align-items:center}.air-btn{height:56px;border-radius:8px;border:0;font-weight:800;font-size:18px;letter-spacing:.1em;cursor:pointer;transition:background .1s,transform .05s;color:#fff}.air-btn:active{transform:scale(.98)}.air-btn.off{background:#3a3a44;color:#c8c8d0}.air-btn.off:hover{background:#46464f}.air-btn.on{background:var(--red);box-shadow:inset 0 -3px #00000040}.air-btn.on:hover{background:var(--red-2)}.air-btn.autoplay{background:var(--violet)}.quick{display:grid;gap:8px;padding-top:8px;border-top:1px dashed var(--border)}.quick-row{display:flex;align-items:center;gap:8px}.quick-row label{flex:1;font-size:13px;color:var(--text-2)}.quick-row .input{height:32px;width:120px}.stepper{display:inline-flex;align-items:center;border:1px solid var(--border-2);border-radius:var(--radius);overflow:hidden}.stepper button{width:32px;height:32px;border:0;background:var(--surface-2);cursor:pointer;font-weight:800}.stepper button:hover{background:var(--surface-3)}.stepper span{min-width:44px;text-align:center;font-weight:700;font-variant-numeric:tabular-nums}.preview-box{position:relative;width:100%;aspect-ratio:16 / 9;background:#000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Crect width='16' height='16' fill='%23151518'/%3E%3Crect x='16' y='16' width='16' height='16' fill='%23151518'/%3E%3Crect x='16' width='16' height='16' fill='%230f0f11'/%3E%3Crect y='16' width='16' height='16' fill='%230f0f11'/%3E%3C/svg%3E");border:1px solid var(--border-2);border-radius:var(--radius);overflow:hidden}.preview-box iframe{position:absolute;top:0;left:0;width:1920px;height:1080px;border:0;transform-origin:0 0;background:transparent}.preview-toolbar{display:flex;gap:8px;align-items:center;margin-top:8px}.editor{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,42%);gap:20px;align-items:start}@media(max-width:1100px){.editor{grid-template-columns:1fr}}.editor .sticky{position:sticky;top:76px}.urlbox{display:flex;align-items:center;gap:8px;background:var(--bg-2);border:1px solid var(--border);border-radius:var(--radius);padding:6px 6px 6px 10px}.urlbox code{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-2)}.list-field{border:1px solid var(--border);border-radius:var(--radius);padding:10px;background:var(--bg-2)}.list-item{display:grid;gap:8px;padding:10px;margin-bottom:8px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius)}.list-item .field{margin-bottom:0}.list-item-head{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--text-3)}.media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px}.media-tile{position:relative;aspect-ratio:1;background:var(--bg-2);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;cursor:pointer;display:flex;align-items:center;justify-content:center}.media-tile:hover,.media-tile.selected{border-color:var(--red)}.media-tile img,.media-tile video{max-width:100%;max-height:100%;object-fit:contain}.media-tile .label{position:absolute;left:0;right:0;bottom:0;padding:4px 6px;font-size:11px;background:#000000b3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.media-thumb{width:64px;height:64px;object-fit:contain;background:var(--bg-2);border:1px solid var(--border);border-radius:var(--radius)}.empty{padding:40px;text-align:center;color:var(--text-3);border:1px dashed var(--border-2);border-radius:var(--radius)}.kbd{font:600 11px var(--mono);padding:2px 6px;border:1px solid var(--border-2);border-bottom-width:2px;border-radius:4px;background:var(--surface-2)}.swatch{width:18px;height:18px;border-radius:4px;border:1px solid rgba(255,255,255,.15);display:inline-block;vertical-align:middle}.sdot{width:10px;height:10px;border-radius:50%;display:inline-block;vertical-align:middle;margin-right:4px;background:var(--text-3)}.sdot-ok{background:var(--green);box-shadow:0 0 6px var(--green)}.sdot-warn{background:var(--yellow);box-shadow:0 0 6px var(--yellow)}.sdot-error{background:var(--red);box-shadow:0 0 6px var(--red)}.sdot-off{background:var(--text-3);opacity:.6}.status-banner{border-radius:var(--radius);padding:12px 16px;border:1px solid var(--border);background:var(--surface)}.status-banner.ok{border-color:#3ddc8466}.status-banner.warn{border-color:#ffe60080}.status-banner.error{border-color:#ff203899}.status-banner ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}.table.kv td:first-child{color:var(--text-3);width:130px;white-space:nowrap}.rec-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
