:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#0e0f13;--card:#181a21;--line:#2a2d38;--text:#e7e8ec;--muted:#8b90a0;--accent:#8b7cf6;--ok:#3ecf8e;--warn:#f0b429;--bad:#ef5b5b}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);margin:0;font:15px/1.45 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}.app,.login{max-width:860px;margin:0 auto;padding:16px}.login{flex-direction:column;gap:12px;max-width:360px;margin-top:15vh;display:flex}h1{margin:0 0 4px;font-size:20px;font-weight:600}header{justify-content:space-between;align-items:center;margin-bottom:16px;display:flex}nav{gap:4px;display:flex}.card{background:var(--card);border:1px solid var(--line);border-radius:10px;margin-bottom:12px;padding:14px}.row{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:8px;display:flex}.form{flex-direction:column;gap:4px;display:flex}input[type=url],input[type=password],select{color:var(--text);border:1px solid var(--line);font:inherit;background:#0e0f13;border-radius:8px;min-width:0;padding:9px 10px}input[type=url]{flex:200px}button,.button{color:var(--text);border:1px solid var(--line);font:inherit;cursor:pointer;background:#232632;border-radius:8px;padding:8px 14px;text-decoration:none;display:inline-block}button:hover:not(:disabled),.button:hover{border-color:var(--accent)}button:disabled{opacity:.5;cursor:default}button.primary{background:var(--accent);border-color:var(--accent);color:#fff}button.on{border-color:var(--ok);color:var(--ok)}button.on.danger{border-color:var(--bad);color:var(--bad)}button.tab{color:var(--muted);background:0 0;border-color:#0000}button.tab.on{color:var(--text);border-color:var(--line);background:var(--card)}button.link{color:var(--muted);background:0 0;border:none;padding:4px}.muted{color:var(--muted);font-size:14px}.empty{text-align:center;margin:32px 0}.error{color:var(--bad);margin-top:6px}.banner{border:1px solid var(--warn);color:var(--warn);background:#3a2c0b;border-radius:10px;margin-bottom:12px;padding:12px 14px}.notice{border:1px solid var(--line);cursor:pointer;border-radius:10px;margin-bottom:12px;padding:10px 14px}.notice.warning{border-color:var(--warn);color:var(--warn)}.notice.error{border-color:var(--bad);color:var(--bad)}.badge{color:var(--muted);background:#232632;border-radius:99px;padding:2px 8px;font-size:12px}.badge.ok{color:var(--ok)}.badge.warn{color:var(--warn)}.badge.bad{color:var(--bad)}.detector-error{overflow-wrap:anywhere;font-size:12px}.switch{color:var(--muted);align-items:center;gap:8px;margin-top:4px;display:flex}.stream-head,.clip-head{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.meter{color:var(--muted);align-items:center;gap:10px;margin:6px 0;font-size:13px;display:flex}.meter span{width:40px}.track{background:#232632;border-radius:3px;flex:1;height:6px;overflow:hidden}.fill{background:var(--accent);height:100%;transition:width .4s}.stream .row{margin-top:10px;margin-bottom:0}.filters select{flex:140px}.clip{grid-template-columns:1fr;gap:12px;display:grid}.clip video,.clip-placeholder{aspect-ratio:16/9;background:#000;border-radius:8px;width:100%}.clip-placeholder{color:var(--muted);text-align:center;justify-content:center;align-items:center;padding:8px;display:flex}.clip-body{flex-direction:column;gap:6px;min-width:0;display:flex}.clip-actions{flex-wrap:wrap;align-items:center;gap:8px;margin-top:4px;display:flex}.status-label{color:var(--muted);margin-left:auto;font-size:13px}@media (width>=700px){.clip{grid-template-columns:300px 1fr}}.profiles{grid-template-columns:1fr;gap:16px;display:grid}.profile-list{flex-direction:column;gap:6px;min-width:0;display:flex}.profile-main{min-width:0}button.profile-item{text-align:left;flex-direction:column;align-items:flex-start;gap:2px;display:flex}button.profile-item.on{border-color:var(--accent);background:var(--card)}button.danger-btn{color:var(--bad)}input[type=text],textarea{color:var(--text);border:1px solid var(--line);font:inherit;background:#0e0f13;border-radius:8px;min-width:0;padding:9px 10px}textarea{resize:vertical;width:100%;font-family:ui-monospace,Consolas,monospace;font-size:13px}.profile-editor{padding-bottom:8px}.profile-editor .card{margin:0 0 12px}.profile-editor h3{margin:0 0 4px;font-size:16px}.profile-editor .card>p{margin:0 0 14px;font-size:13px}.editor-group>summary{cursor:pointer;color:var(--muted);padding:2px 0;font-weight:600}.editor-group[open]>summary{color:var(--text);margin-bottom:12px}.field{flex-direction:column;gap:4px;margin-bottom:14px;display:flex}.field:last-child{margin-bottom:0}.field .hint{font-size:13px}.field .error{margin-top:0;font-size:14px}.nf-head{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.nf-row{align-items:center;gap:10px;display:flex}.nf-row input[type=range]{min-width:80px;accent-color:var(--accent);background:0 0;border:0;flex:1;padding:0}.nf-row input[type=text]{text-align:right;width:84px}.nf-row input.probe{text-align:left;flex:1;width:auto}.nf-row input[aria-invalid=true]{border-color:var(--bad)}.nf-row .unit{width:28px}.hint-btn{width:20px;height:20px;color:var(--muted);border-radius:50%;padding:0;font-size:12px;line-height:1}.dot{background:var(--warn);border-radius:50%;width:8px;height:8px}.chips{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.chip{border:1px solid var(--line);background:#14161d;border-radius:999px;align-items:center;gap:4px;padding:2px 4px 2px 10px;display:inline-flex}.chip code{font-size:13px}.chip button{color:var(--muted);background:0 0;border:0;padding:0 6px;font-size:16px;line-height:1}.chip button:hover{color:var(--bad)}.chip.bad{border-color:var(--warn);color:var(--warn)}.chip-input{width:150px}.probe-hit{color:var(--ok);font-weight:600}.save-bar{z-index:2;background:var(--card);border:1px solid var(--accent);border-radius:10px;flex-wrap:wrap;align-items:center;gap:10px;padding:10px 14px;display:flex;position:sticky;bottom:0;box-shadow:0 -6px 18px #00000073}.save-bar>span{flex:1;min-width:140px}.editor-status{margin-bottom:8px}@media (width>=700px){.profiles{grid-template-columns:220px 1fr}}.tuning{border-top:1px solid var(--line);margin-top:12px;padding-top:8px;font-size:13px}.tuning h4{color:var(--muted);margin:10px 0 4px;font-weight:600}.tuning section{margin-top:10px}.tuning .tuning-count{margin:10px 0 8px}.tuning .row{flex-wrap:wrap}.chain-steps{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.chain-step{border:1px solid var(--line);border-left:3px solid var(--line);background:#14161d;border-radius:8px;min-width:0;padding:8px 10px;position:relative}.chain-step.ok{border-left-color:var(--ok)}.chain-step.bad{border-left-color:var(--bad)}.chain-step.dim{opacity:.5}.chain-step.bonus.on{border-left-color:var(--accent)}.chain-title{color:var(--muted);align-items:center;gap:6px;font-weight:600;display:flex}.chain-n{background:var(--line);width:18px;height:18px;color:var(--text);border-radius:50%;place-items:center;font-size:11px;display:inline-grid}.chain-step.ok .chain-n{background:var(--ok);color:#06140d}.chain-step.bad .chain-n{background:var(--bad);color:#1a0606}.chain-value{font-variant-numeric:tabular-nums;margin:2px 0 4px;font-size:22px;font-weight:600}.chain-bar{background:var(--line);border-radius:3px;height:6px;margin-bottom:4px;position:relative}.chain-bar .fill{background:var(--muted);border-radius:3px;height:100%;transition:width .3s}.chain-step.ok .chain-bar .fill{background:var(--ok)}.chain-bar .tick{background:var(--warn);width:2px;height:12px;position:absolute;top:-3px}.chain-verdict{margin:8px 0 2px;font-weight:600}.chain-verdict.ok{color:var(--ok)}.chain-warm{margin-bottom:6px}@media (width<=520px){.chain-steps{grid-template-columns:1fr}}.tchart{margin-top:12px}.tchart-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin-bottom:4px;display:flex}.tchart-controls{align-items:center;gap:4px;display:inline-flex}.tchart-controls input{text-align:right;width:64px;padding:4px 6px}.tchart-controls button{min-width:30px;padding:4px 8px}.tchart-plot{touch-action:none;background:#14161d;border-radius:6px;width:100%;height:84px;display:block;overflow:visible}.tchart-plot line,.tchart-plot polyline{vector-effect:non-scaling-stroke}.tchart-plot .line{stroke:var(--accent);stroke-width:1.5px}.tchart-plot .mark{stroke:var(--ok);stroke-width:2px;opacity:.55}.tchart-plot .secondary{stroke:var(--muted);stroke-width:1px;stroke-dasharray:2 4}.tchart-plot .saved{stroke:var(--warn);stroke-width:1px;stroke-dasharray:4 3;opacity:.6}.tchart-plot .threshold{stroke:var(--warn);stroke-width:2px;pointer-events:none}.tchart-plot .grab{stroke:#0000;stroke-width:22px;cursor:ns-resize}.tchart-plot .handle:focus-visible .threshold,.tchart-plot.dragging .threshold{stroke-width:4px}.tchart-plot .handle{outline:none}.tchart-legend{flex-wrap:wrap;gap:14px;margin-top:4px;font-size:12px;display:flex}.tchart-legend .key{border-top:2px solid var(--warn);vertical-align:middle;width:14px;height:0;margin-right:4px;display:inline-block}.tchart-legend .k-secondary{border-top:1px dashed var(--muted)}.tchart-legend .k-mark{border-top:0;border-left:2px solid var(--ok);width:0;height:10px}.tuning .log-entry{padding:2px 0}.sync{flex-wrap:wrap;align-items:center;gap:8px;margin-left:auto;display:inline-flex}.sync .error{margin:0;font-size:13px}a.badge{text-decoration:none}.drive-step h3{align-items:center;gap:8px;margin:0 0 10px;font-size:16px;display:flex}.drive-step.done .chain-n{background:var(--ok);color:#06140d}.drive-step .row input[type=text]{flex:220px}.drive-step .howto{margin:0 0 14px;padding-left:20px;font-size:13px}.drive-step .howto a{color:var(--accent)}.redirect{border:1px solid var(--line);overflow-wrap:anywhere;-webkit-user-select:all;user-select:all;background:#14161d;border-radius:8px;padding:8px 10px}.folder-list{margin:0 0 14px;padding:0;list-style:none}.folder-list li{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:10px;padding:6px 0;display:flex}
