:root{--bg: #121212;--surface: #1b1b1b;--surface-2: #242424;--line: #2e2e2e;--text: #f2f2f2;--muted: #9a9a9a;--accent: #43a83e;--accent-soft: rgb(67 168 62 / .15);--warn: #e0a423;--danger: #e2574c;--radius: 12px;font-family:Manrope,system-ui,-apple-system,Segoe UI,sans-serif;color:var(--text);background:var(--bg);font-size:15px}*{box-sizing:border-box}body{margin:0;background:var(--bg)}a{color:inherit}h1,h2,h3{margin:0;font-weight:700}h1{font-size:1.6rem}h2{font-size:1.05rem;margin-bottom:12px}h3{font-size:.9rem;color:var(--muted);margin:14px 0 8px;text-transform:uppercase;letter-spacing:.04em}.inline{display:inline}.muted{color:var(--muted)}.small{font-size:.85rem}.nowrap{white-space:nowrap}.shell{display:grid;grid-template-columns:220px 1fr;min-height:100vh}.sidebar{border-right:1px solid var(--line);padding:24px 18px;display:flex;flex-direction:column;gap:6px;position:sticky;top:0;height:100vh}.logo{width:140px;height:auto}.product{color:var(--muted);font-weight:600;margin:2px 0 22px}.sidebar nav{display:flex;flex-direction:column;gap:4px}.sidebar nav a{text-decoration:none;padding:10px 12px;border-radius:10px;color:var(--muted);font-weight:600}.sidebar nav a:hover{background:var(--surface);color:var(--text)}.sidebar nav a.active{background:var(--accent-soft);color:var(--accent)}.logout{margin-top:auto;text-align:left}.content{padding:28px 32px 60px;display:flex;flex-direction:column;gap:20px;min-width:0}.page-head{display:flex;align-items:center;gap:16px}.page-head .btn{margin-left:auto}.back{color:var(--muted);text-decoration:none}.section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.section-head h2{margin:0}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:18px 20px}.subcard{background:var(--surface-2);border-radius:10px;padding:14px;display:flex;flex-direction:column;gap:10px}.btn{border:1px solid var(--line);background:var(--surface-2);color:var(--text);font:inherit;font-weight:600;padding:9px 16px;border-radius:10px;cursor:pointer;text-decoration:none;display:inline-block}.btn:hover{border-color:#444}.btn.primary{background:var(--accent);border-color:var(--accent);color:#0b1a0a}.btn:disabled{opacity:.5;cursor:default}.btn.small{padding:5px 10px;font-size:.85rem}.link{background:none;border:0;color:var(--accent);font:inherit;cursor:pointer;padding:0;text-decoration:none}.link.danger{color:var(--danger)}input,select,textarea{font:inherit;color:var(--text);background:var(--bg);border:1px solid var(--line);border-radius:8px;padding:8px 10px;width:100%}input[type=checkbox]{width:auto;accent-color:var(--accent)}input[type=range]{padding:0;accent-color:var(--accent)}input[type=color]{padding:2px;height:38px;width:56px}input.narrow{width:64px}.field{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}.field-label{font-weight:600;font-size:.9rem}.field-hint{color:var(--muted);font-size:.8rem}.check{display:flex;align-items:center;gap:8px;cursor:pointer;padding:4px 0}.checks{display:flex;flex-wrap:wrap;gap:4px 22px;margin-bottom:8px}.grid-2,.grid-3{display:grid;gap:0 16px}.grid-2{grid-template-columns:1fr 1fr}.grid-3{grid-template-columns:repeat(3,1fr)}.color-row{display:flex;gap:8px}.error{background:#e2574c1f;border:1px solid rgb(226 87 76 / .4);color:#ff9a90;padding:10px 12px;border-radius:10px}.notice{background:var(--accent-soft);border:1px solid rgb(67 168 62 / .4);padding:10px 12px;border-radius:10px}.empty{color:var(--muted);padding:14px 0}.chips{display:flex;flex-wrap:wrap;gap:8px}.chip{display:flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:999px;padding:6px 12px;cursor:pointer}.chip.on{border-color:var(--accent);background:var(--accent-soft)}.file-btn{color:var(--accent);cursor:pointer;font-weight:600}.file-btn input{display:none}details summary{cursor:pointer;list-style:none}details summary:before{content:"▸ ";color:var(--muted)}details[open] summary:before{content:"▾ "}details[open] summary{margin-bottom:12px}.pill{font-size:.75rem;font-weight:700;padding:3px 10px;border-radius:999px;background:var(--surface-2);color:var(--muted);white-space:nowrap}.pill-ok{background:var(--accent-soft);color:var(--accent)}.pill-warning{background:#e0a42326;color:var(--warn)}.pill-error{background:#e2574c26;color:var(--danger)}.pill-offline{background:#2a2a2a;color:#8a8a8a}.booth-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:16px}.booth-card{text-decoration:none;display:flex;flex-direction:column;gap:10px}.booth-card:hover{border-color:#3a3a3a}.booth-card.is-offline{opacity:.7}.booth-head{display:flex;justify-content:space-between;align-items:flex-start}.booth-name{font-size:1.15rem;font-weight:700}.device-row{display:grid;grid-template-columns:70px 1fr auto;gap:10px;align-items:center;font-weight:600}.device-detail{color:var(--muted);font-weight:500;font-size:.85rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stats{display:flex;gap:8px;margin:6px 0}.stat{flex:1;background:var(--surface-2);border-radius:10px;padding:8px 10px}.stat-value{font-size:1.35rem;font-weight:700}.stat-label{color:var(--muted);font-size:.75rem}.stat-warn .stat-value{color:var(--danger)}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:16px}.filters{display:flex;gap:8px}.filters select{width:auto}.table,.log-table{width:100%;border-collapse:collapse}.table th{text-align:left;color:var(--muted);font-weight:600;font-size:.85rem;padding:8px;border-bottom:1px solid var(--line)}.table td{padding:10px 8px;border-bottom:1px solid var(--line)}.clickable{cursor:pointer}.clickable:hover{background:var(--surface-2)}.log-table td{padding:6px 8px;border-bottom:1px solid var(--line);vertical-align:top;font-size:.88rem}.log-table tr.log-error td{background:#e2574c0f}.log-data{display:block;color:var(--muted);font-size:.78rem;word-break:break-all;margin-top:2px}.tag{font-size:.72rem;font-weight:700;padding:1px 8px;border-radius:6px;background:var(--surface-2)}.tag-warn{color:var(--warn)}.tag-error{color:var(--danger)}.editor{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,44%);gap:20px;align-items:start}.editor-form{display:flex;flex-direction:column;gap:16px}.sticky{position:sticky;top:20px}.preview{display:flex;flex-direction:column;gap:10px}.preview-frame{background:repeating-conic-gradient(#1e1e1e 0% 25%,#252525 0% 50%) 50% / 24px 24px;border-radius:10px;display:flex;justify-content:center;padding:12px}.preview-canvas{max-width:100%;max-height:70vh;height:auto;box-shadow:0 10px 30px #00000080}.preview-controls{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center}.preview-controls select{width:auto}.slot-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.bg-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:8px}.bg-grid.large{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px}.bg-item{position:relative;border:2px solid transparent;border-radius:10px;overflow:hidden;cursor:pointer;background:var(--surface-2);margin:0}.bg-item img{width:100%;aspect-ratio:3 / 2;object-fit:cover;display:block}.bg-item.on{border-color:var(--accent)}.bg-item figcaption{display:flex;justify-content:space-between;gap:8px;padding:8px 10px;font-size:.85rem}.bg-item figcaption span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.star{position:absolute;top:4px;right:4px;border:0;border-radius:6px;background:#0009;color:#888;cursor:pointer;font-size:.9rem}.star.is-default{color:#ffd34d}.dropzone{border-style:dashed;display:flex;flex-direction:column;gap:6px}.dropzone.dragging{border-color:var(--accent);background:var(--accent-soft)}.search{max-width:320px}.login{min-height:100vh;display:grid;place-items:center;padding:16px}.login-card{width:min(380px,100%);display:flex;flex-direction:column;gap:14px}.login-card label{display:flex;flex-direction:column;gap:6px;font-weight:600}@media(max-width:1100px){.editor,.two-col{grid-template-columns:1fr}.sticky{position:static}}@media(max-width:760px){.shell{grid-template-columns:1fr}.sidebar{position:static;height:auto;flex-direction:row;align-items:center;flex-wrap:wrap}.sidebar nav{flex-direction:row}.product,.logout{margin:0}.content{padding:16px}.grid-2,.grid-3{grid-template-columns:1fr}}
