*{box-sizing:border-box}html{font-family:'Manrope','Inter',system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;background:#0f1419;color:#e6eef6;line-height:1.5}
h1,h2,h3,h4{font-family:'Manrope',system-ui,sans-serif;letter-spacing:-0.02em}
body{margin:0;max-width:1100px;margin:0 auto;padding:16px}
header{border-bottom:2px solid #1e2a3a;padding-bottom:12px;margin-bottom:16px}
header h1{margin:0;font-size:28px;color:#4fc3f7}
.subtitle{margin:4px 0;color:#8aa0b5;font-size:14px}
nav a{color:#4fc3f7;text-decoration:none}nav a:hover{text-decoration:underline}
.card{background:#16202e;border:1px solid #243447;border-radius:10px;padding:16px;margin-bottom:16px;box-shadow:0 2px 8px rgba(0,0,0,0.3)}
h2{margin-top:0;color:#cde6ff;font-size:18px}
label{display:block;margin:8px 0;font-size:14px}
input[type=text],input[type=password]{width:100%;max-width:400px;padding:8px;border:1px solid #2a3a4f;border-radius:6px;background:#0f1419;color:#e6eef6}
input[type=range]{vertical-align:middle;width:200px}
.row{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:8px 0}
.presets button{padding:4px 8px;border:1px solid #2a3a4f;background:#1a2636;color:#8aa0b5;border-radius:6px;cursor:pointer}
.presets button.active{background:#4fc3f7;color:#0f1419;border-color:#4fc3f7}
fieldset{border:1px solid #243447;border-radius:8px;padding:12px;margin:12px 0}
fieldset legend{padding:0 6px;color:#8aa0b5}
.actions{margin:0 0 16px;display:flex;gap:16px;flex-wrap:wrap;justify-content:center}
.actions button{min-height:60px;font-size:1.4em;padding:16px 32px;border-radius:12px;flex:1 1 220px;max-width:340px}
button{padding:8px 14px;border:1px solid #2a3a4f;background:#1a2636;color:#e6eef6;border-radius:8px;cursor:pointer}
button:hover{background:#22344a}
button.primary{background:#4fc3f7;color:#0f1419;border-color:#4fc3f7;font-weight:600}
button:disabled{opacity:0.5;cursor:not-allowed}
.status{margin:10px 0;padding:8px;border-radius:6px;background:#0f1419;min-height:20px;font-size:13px}
.status.error{background:#3a1a1a;color:#ffb4ab}
.status.ok{background:#143a2a;color:#a7f3d0}
#progressWrap{height:auto;background:transparent;border:none;overflow:visible}
#progressWrapTest{height:auto;background:transparent;border:none;overflow:visible}
.progressDetails{display:flex;flex-wrap:wrap;gap:12px;margin-top:8px;font-size:14px}
.progressDetails span{background:#0f1419;padding:6px 10px;border-radius:6px;border:1px solid #243447;color:#8aa0b5}
#progressBar{height:100%;width:0;background:linear-gradient(90deg,#4fc3f7,#81d4fa);transition:width 0.3s}
#progressBarTest{height:12px;width:0;background:linear-gradient(90deg,#81c784,#aed581);transition:width 0.2s}
.liveStats{display:flex;flex-wrap:wrap;gap:12px;margin-top:12px;font-size:13px}
.liveStats div{background:#0f1419;padding:6px 10px;border-radius:6px;border:1px solid #243447}
.hidden{display:none !important}
#graphs canvas{width:100%;max-width:100%;height:180px;background:#0f1419;border:1px solid #243447;border-radius:8px;margin:8px 0}
#videoWrap video{width:100%;max-width:640px;height:auto;background:#000;border-radius:8px}
.mono{font-family:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;word-break:break-all;white-space:pre-wrap}
.tableWrap{overflow:auto}
table{width:100%;border-collapse:collapse;font-size:13px}
th,td{border:1px solid #243447;padding:6px 8px;text-align:left}
th{background:#0f1419;color:#8aa0b5}
.hint{font-size:12px;color:#8aa0b5}
.compatStatus{margin-left:8px;font-size:12px;font-weight:600}
.compatStatus.ok{color:#4caf50}
.compatStatus.bad{color:#ef5350}
.compatNote{color:#f9a825;font-weight:400}
footer{text-align:center;color:#5a6e85;font-size:12px;margin:16px 0}
