:root{--cyan:#18a5d6;--cyan-dark:#0a85b4;--cyan-soft:#e6f6fc;--night:#0f2740;--slate:#475569;--muted:#64748b;--line:#e2e8f0;--bg:#f5f8fb;--card:#fff;--green:#15803d;--green-soft:#dcfce7;--orange:#b45309;--orange-soft:#fef3c7;--red:#b91c1c;--red-soft:#fee2e2;--lilac:#6d28d9;--lilac-soft:#ede9fe;--radius:12px;color:var(--night);background:var(--bg);font-family:-apple-system,BlinkMacSystemFont,SF Pro Text,Segoe UI,Roboto,sans-serif;font-size:15px;line-height:1.45}*{box-sizing:border-box}body{background:var(--bg);margin:0}button,input,select,textarea{font:inherit;color:inherit}a{color:var(--cyan-dark)}h1,h2,h3{margin:0;line-height:1.2}h1{font-size:24px}h2{font-size:17px}h3{font-size:15px}p{margin:0}.layout{grid-template-columns:240px 1fr;min-height:100vh;display:grid}.sidebar{background:var(--night);color:#dbe7f3;flex-direction:column;gap:4px;height:100vh;padding:20px 14px;display:flex;position:sticky;top:0}.brand{align-items:center;gap:10px;padding:4px 8px 18px;display:flex}.brand img{border-radius:9px;width:34px;height:34px}.brand strong{color:#fff;font-size:16px;display:block}.brand span{color:#93a9bf;font-size:12px}.nav-link{color:#c4d4e4;border-radius:8px;padding:9px 12px;font-weight:500;text-decoration:none;display:block}.nav-link:hover{background:#ffffff0f}.nav-link.active{color:#fff;background:#18a5d62e}.sidebar-foot{color:#93a9bf;border-top:1px solid #ffffff14;gap:8px;margin-top:auto;padding:12px 8px 0;font-size:13px;display:grid}.sidebar-foot button{color:#dbe7f3;cursor:pointer;background:0 0;border:1px solid #ffffff2e;border-radius:8px;padding:6px 10px}main{width:100%;max-width:1180px;padding:28px 36px 60px}.page-head{justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:20px;display:flex}.page-head p{color:var(--muted);max-width:680px;margin-top:6px}@media (width<=860px){.layout{grid-template-columns:1fr}.sidebar{flex-flow:wrap;height:auto;position:static}.brand,.sidebar-foot{display:none}main{padding:20px 16px 48px}}.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);margin-bottom:18px;padding:20px}.card-head{justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;display:flex}.card-head p{color:var(--muted);margin-top:4px;font-size:14px}.grid{gap:14px;display:grid}.grid.two{grid-template-columns:1fr 1fr}@media (width<=700px){.grid.two{grid-template-columns:1fr}}.grid.three{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}label.field{color:var(--slate);gap:6px;font-size:13px;font-weight:600;display:grid}label.field small{color:var(--muted);font-weight:400}input[type=text],input[type=email],input[type=password],input[type=number],input[type=datetime-local],select,textarea{width:100%;color:var(--night);background:#fff;border:1px solid #cbd5e1;border-radius:8px;padding:9px 11px;font-weight:400}textarea{resize:vertical;min-height:70px}input:focus,select:focus,textarea:focus{border-color:var(--cyan);outline:2px solid #18a5d659}input:disabled,select:disabled,textarea:disabled{color:var(--muted);background:#f1f5f9}.check{cursor:pointer;align-items:center;gap:8px;font-size:14px;display:flex}.check input{width:17px;height:17px;accent-color:var(--cyan-dark)}.row{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.spread{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.muted{color:var(--muted)}.small{font-size:13px}.mono{font-family:ui-monospace,SF Mono,Menlo,monospace;font-size:13px}.btn{cursor:pointer;background:var(--cyan-dark);color:#fff;white-space:nowrap;border:1px solid #0000;border-radius:8px;padding:9px 16px;font-weight:600}.btn:hover{background:#087299}.btn:disabled{opacity:.5;cursor:default}.btn.secondary{color:var(--night);background:#fff;border-color:#cbd5e1}.btn.secondary:hover{background:#f8fafc}.btn.danger{color:var(--red);background:#fff;border-color:#fecaca}.btn.danger:hover{background:var(--red-soft)}.btn.small{padding:5px 10px;font-size:13px}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:14px}th{text-align:left;text-transform:none;color:var(--muted);border-bottom:1px solid var(--line);white-space:nowrap;padding:8px 10px;font-size:12px;font-weight:600}td{vertical-align:top;border-bottom:1px solid #f1f5f9;padding:10px}tr:last-child td{border-bottom:none}td.actions{text-align:right;white-space:nowrap}.empty{text-align:center;color:var(--muted);padding:26px}.pill{color:var(--slate);white-space:nowrap;background:#f1f5f9;border-radius:999px;padding:2px 9px;font-size:12px;font-weight:600;display:inline-block}.pill.green{background:var(--green-soft);color:var(--green)}.pill.orange{background:var(--orange-soft);color:var(--orange)}.pill.red{background:var(--red-soft);color:var(--red)}.pill.cyan{background:var(--cyan-soft);color:var(--cyan-dark)}.pill.lilac{background:var(--lilac-soft);color:var(--lilac)}.notice{border:1px solid;border-radius:10px;margin-bottom:14px;padding:11px 14px;font-size:14px}.notice.info{background:var(--cyan-soft);color:#075985;border-color:#bae6fd}.notice.ok{background:var(--green-soft);color:var(--green);border-color:#bbf7d0}.notice.warn{background:var(--orange-soft);color:var(--orange);border-color:#fde68a}.notice.error{background:var(--red-soft);color:var(--red);border-color:#fecaca}.toast{z-index:10;max-width:380px;position:fixed;bottom:24px;right:24px;box-shadow:0 10px 30px #0f27402e}.module-row{border-bottom:1px solid #f1f5f9;grid-template-columns:1fr 210px;align-items:center;gap:14px;padding:12px 0;display:grid}.module-row:last-child{border-bottom:none}.module-row strong{display:block}.module-row span{color:var(--muted);font-size:13px}.auth{background:linear-gradient(160deg,#e9f7fd,#f8fbfe 60%);place-items:center;min-height:100vh;padding:24px;display:grid}.auth-card{border:1px solid var(--line);background:#fff;border-radius:16px;gap:16px;width:100%;max-width:420px;padding:30px;display:grid;box-shadow:0 20px 50px #0f274014}.auth-card .brand{padding:0}.auth-card .brand strong{color:var(--night)}.auth-card .brand span{color:var(--muted)}.qr{border:1px solid var(--line);border-radius:12px;place-items:center;padding:10px;display:grid}.qr img{width:190px;height:190px}.code-input{letter-spacing:.3em;text-align:center;font-family:ui-monospace,Menlo,monospace;font-size:22px!important}.big-code{letter-spacing:.12em;color:var(--night);background:var(--cyan-soft);text-align:center;border-radius:12px;padding:16px 22px;font-family:ui-monospace,SF Mono,Menlo,monospace;font-size:40px;font-weight:700}details summary{cursor:pointer;color:var(--cyan-dark);font-size:13px}pre.json{border:1px solid var(--line);white-space:pre-wrap;word-break:break-word;background:#f8fafc;border-radius:8px;max-height:280px;padding:10px;font-size:12px;overflow:auto}.mascot-row{align-items:center;gap:14px;display:flex}.mascot-row>div{flex-direction:column;gap:2px;min-width:0;display:flex}.mascot-preview{object-fit:cover;background:#f8fafc;border:1px solid #e2e8f0;border-radius:18px;flex:none;width:84px;height:84px}
