:root{--bg:#07111d;--sidebar:#0a1522;--card:#101d2d;--card2:#0d1927;--border:#203148;--text:#f7f9fc;--muted:#8293aa;--blue:#1588ff;--purple:#7147e8;--green:#39d17d;--red:#e84b55}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Arial;background:var(--bg);color:var(--text)}button,input,textarea,select{font:inherit}button{cursor:pointer}
.sidebar{position:fixed;left:0;top:0;bottom:0;width:222px;padding:25px 15px;background:linear-gradient(180deg,#0b1725,#08121e);border-right:1px solid #17283a;z-index:50}.brand{display:flex;align-items:center;gap:9px;font-size:17px;font-weight:800;padding:0 8px 28px}.brand-icon{font-size:22px}.nav{display:flex;flex-direction:column;gap:5px}.nav a{display:flex;align-items:center;gap:12px;padding:11px 13px;border-radius:8px;color:#a9b7c9;text-decoration:none;font-size:14px;font-weight:600}.nav a.active,.nav a:hover{color:white;background:linear-gradient(90deg,rgba(113,71,232,.65),rgba(21,136,255,.18))}
.shell{margin-left:222px;min-height:100vh}.content{padding:30px 34px 45px;max-width:1500px;margin:auto}.header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:23px}.header h1{font-size:25px;line-height:1.15;margin:0 0 7px}.header p{margin:0;color:var(--muted);font-size:13px}
.view{display:none}.view.active{display:block}.grid{display:grid;gap:13px}.stats{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:13px}.split{grid-template-columns:1.42fr .86fr}.lower{grid-template-columns:1.2fr .8fr;margin-top:13px}
.card{background:linear-gradient(145deg,rgba(17,31,48,.98),rgba(12,24,38,.98));border:1px solid var(--border);border-radius:11px;box-shadow:0 10px 28px rgba(0,0,0,.13);padding:16px}.card-title{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:800;margin-bottom:15px}.stat{height:89px;padding:15px 17px}.stat-label{font-size:11px;color:#8fa0b5;margin-bottom:9px}.stat-value{font-size:22px;font-weight:800}.stat-sub{font-size:10px;color:#77899f;margin-top:4px}.online{color:var(--green)}
.job{padding:2px 0 14px}.job+.job{border-top:1px solid var(--border);padding-top:14px}.job-top{display:flex;justify-content:space-between;gap:12px;font-size:12px;font-weight:700}.progress{height:7px;background:#24354a;border-radius:99px;overflow:hidden;margin:9px 0}.bar{height:100%;background:linear-gradient(90deg,#31d37d,#1692ff);border-radius:99px}.meta{font-size:10px;color:#8c9db1}.queue-row,.history-row,.file-row{padding:11px 0;border-top:1px solid var(--border)}.queue-row:first-child,.history-row:first-child,.file-row:first-child{border-top:0}
textarea,input,select{width:100%;background:#091522;color:white;border:1px solid #263950;border-radius:7px;padding:10px 11px;margin:5px 0 10px;outline:none;font-size:12px}textarea{height:86px;resize:vertical}label{font-size:11px;color:#b3bfd0}.actions{display:flex;gap:8px;flex-wrap:wrap}.btn{border:0;border-radius:7px;padding:9px 13px;background:#168cff;color:#fff;font-weight:700;font-size:11px}.btn.secondary{background:#26384d}.btn.danger{background:#a93642}.btn.ghost{background:#142438;border:1px solid #2b3d54}
.history-head,.toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.history-head{justify-content:space-between}.history-table{width:100%;border-collapse:collapse;font-size:11px}.history-table th{color:#75889e;text-align:left;font-weight:600;padding:10px 8px;border-bottom:1px solid var(--border)}.history-table td{padding:12px 8px;border-bottom:1px solid #1c2c40;vertical-align:middle}.status-pill{padding:4px 7px;border-radius:20px;background:rgba(57,209,125,.12);color:#4ddd8b;font-size:9px;font-weight:800}.link{color:#4faeff;word-break:break-all}
.file-row{display:flex;justify-content:space-between;align-items:center;gap:15px}.file-name{font-size:12px;font-weight:750}.file-actions{display:flex;gap:6px;flex-wrap:wrap}.mobile-menu{display:none;position:fixed;right:14px;top:14px;z-index:60}
@media(max-width:1050px){.stats{grid-template-columns:repeat(2,1fr)}.split,.lower{grid-template-columns:1fr}}
@media(max-width:720px){.sidebar{transform:translateX(-105%);transition:.2s;width:245px}.sidebar.open{transform:none}.shell{margin-left:0}.content{padding:24px 14px}.mobile-menu{display:block}.stats{grid-template-columns:1fr 1fr}.file-row{align-items:flex-start;flex-direction:column}}