:root{color-scheme:light;--bg:#f3f5f8;--surface:#fff;--sidebar:#202225;--sidebar-muted:#aeb4bf;--line:#e7eaf0;--text:#252a33;--muted:#8a93a1;--blue:#2864f0;--blue-soft:#edf3ff;--green:#20b26b;--red:#e55353;--shadow:0 8px 28px rgba(35,52,75,.06)}
*{box-sizing:border-box}html,body{min-height:100%}body{margin:0;background:var(--bg);color:var(--text);font:14px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}
button,.button{min-height:34px;padding:0 16px;border:1px solid var(--line);border-radius:4px;background:#fff;color:#4c5665;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px}button:hover,.button:hover{border-color:#b8c6df;color:var(--blue)}.primary{border-color:var(--blue);background:var(--blue);color:#fff}.primary:hover{background:#1b55dc;color:#fff}.danger{color:var(--red);border-color:#ffd1d1;background:#fff7f7}
input,textarea,select{width:100%;padding:9px 11px;border:1px solid var(--line);border-radius:4px;background:#fff;color:var(--text);outline:0}input:focus,textarea:focus,select:focus{border-color:#76a0ff;box-shadow:0 0 0 3px rgba(40,100,240,.1)}label{display:grid;gap:6px;color:#687383;font-weight:600}code{padding:2px 5px;border-radius:3px;background:#f0f3f7}.nav-state{position:absolute;opacity:0;pointer-events:none}
.sidebar{position:fixed;inset:0 auto 0 0;z-index:20;width:220px;padding:20px 10px;background:var(--sidebar);color:#fff;transition:width .18s ease}.brand-row{display:flex;align-items:center;justify-content:space-between;padding:3px 12px 28px}.brand{display:flex;align-items:center;gap:10px;font-size:18px;font-weight:800;white-space:nowrap}.brand img,.auth-brand img{width:28px;height:28px;border-radius:7px;object-fit:cover}.brand::before{content:"";width:28px;height:28px;border-radius:7px;background:linear-gradient(135deg,#2d72ff,#74a5ff)}.brand:has(img)::before{display:none}.brand-row .sidebar-toggle{color:var(--sidebar-muted)}.sidebar-toggle,.mobile-menu-toggle{cursor:pointer;color:var(--sidebar-muted)}.sidebar nav{display:grid;gap:4px;max-height:calc(100vh - 84px);overflow:auto}.sidebar a{padding:11px 14px;border-radius:4px;color:var(--sidebar-muted);font-weight:600}.sidebar a.active,.sidebar a:hover{background:#2c64d8;color:#fff}.sidebar a.agent-nav{margin-left:10px;padding-block:8px;font-size:13px}.nav-state:checked~.sidebar{width:72px;padding-inline:8px}.nav-state:checked~.sidebar .brand span,.nav-state:checked~.sidebar .sidebar-toggle{display:none}.nav-state:checked~.sidebar .brand-row{justify-content:center;padding-inline:0}.nav-state:checked~.sidebar a{text-align:center;padding-inline:3px;font-size:12px}.nav-state:checked~.main{margin-left:72px}
.main{min-width:0;margin-left:220px;min-height:100vh;transition:margin-left .18s ease}.topbar{height:64px;padding:0 26px;display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--line)}.topbar h1{margin:0;font-size:18px;font-weight:700}.topbar span{color:var(--muted)}.mobile-menu-toggle{display:none}.main>.notice,.main>.panel,.main>.stats,.main>.code-toolbar,.main>.agent-tabs{margin-left:24px;margin-right:24px}.notice{margin-top:18px;padding:11px 14px;border:1px solid #cfe0ff;border-radius:4px;background:var(--blue-soft);color:#315cae}.notice.error{border-color:#ffd3d3;background:#fff5f5;color:#bf4545}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:24px}.stats article,.panel,.login-card,.install-card{border:1px solid var(--line);border-radius:5px;background:var(--surface);box-shadow:var(--shadow)}.stats article{padding:20px}.stats b{display:block;margin-bottom:4px;font-size:30px}.stats span,.muted{color:var(--muted)}.panel{padding:20px;margin-top:18px;overflow:auto}.panel.narrow{max-width:760px}.panel h2{margin:0 0 14px;font-size:17px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.code-toolbar{display:grid;grid-template-columns:minmax(260px,1fr) minmax(300px,520px);gap:14px;align-items:center;margin-top:24px}.filter-group{display:flex;flex-wrap:wrap;gap:7px}.filter-chip{padding:6px 12px;border:1px solid var(--line);border-radius:4px;color:#717b89;background:#fff}.filter-chip.active,.filter-chip:hover{border-color:#b8cdfc;background:var(--blue-soft);color:var(--blue)}.search{display:flex;gap:8px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;background:#fff}th{background:#f5f7fa;color:#707a88;font-weight:600;text-align:left}th,td{padding:12px 13px;border-bottom:1px solid var(--line);white-space:nowrap}tr:hover td{background:#fafcff}.badge{display:inline-flex;padding:3px 9px;border-radius:3px;background:#f0f2f5;color:#7b8490}.badge.ok{background:#eaf9f1;color:#159a5b}.badge.bad{background:#fff0f0;color:#d64d4d}.actions,.inline-form{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.grid-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.stack-form{display:grid;gap:14px}.admin-logo-preview{width:64px;height:64px;display:block;object-fit:cover;border-radius:10px;margin-bottom:14px;border:1px solid var(--line)}.empty-state{padding:46px 20px;text-align:center;color:var(--muted)}
.editor-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:7px;padding:10px;border:1px solid var(--line);border-bottom:0;border-radius:5px 5px 0 0;background:#f7f8fa}.editor-toolbar button{min-height:30px;padding:0 10px}.editor-toolbar input[type=color]{width:34px;height:30px;padding:2px;cursor:pointer}.editor-toolbar select{width:auto;min-height:30px;padding-block:4px}.color-tool{width:auto;display:inline-flex;grid-auto-flow:column;align-items:center;gap:7px;padding:0 10px;min-height:30px;border:1px solid var(--line);border-radius:4px;background:#fff;color:#4c5665;font-weight:600}
.auth-page{min-height:100vh;display:grid;grid-template-columns:50% 50%;background:#fff}.auth-side{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;background:radial-gradient(circle at 22% 25%,#cbd8ff,transparent 28%),radial-gradient(circle at 78% 78%,#c9f5f1,transparent 32%),#edf4ff;text-align:center}.auth-brand{position:absolute;top:28px;left:34px;display:flex;align-items:center;gap:10px;font-size:18px}.auth-illustration{position:relative;width:270px;height:210px;margin-bottom:22px}.illustration-card{position:absolute;left:38px;top:28px;width:170px;height:145px;border-radius:16px;background:rgba(255,255,255,.65);box-shadow:0 18px 30px rgba(75,120,200,.12)}.illustration-card:before{content:"";position:absolute;left:20px;top:22px;width:66px;height:8px;border-radius:5px;background:#8cb8ff;box-shadow:0 22px #d0e1ff,0 44px #d0e1ff}.illustration-person{position:absolute;left:106px;bottom:22px;width:72px;height:94px;border-radius:40px 40px 14px 14px;background:#ff9e50;box-shadow:0 -40px 0 -18px #ffd0aa}.auth-side h2{margin:0 0 8px;font-size:21px}.auth-side p{margin:0;color:#97a6ba}.auth-dots{display:flex;gap:6px;margin-top:240px}.auth-dots>*{width:7px;height:7px;border-radius:50%;background:#c5d4f4}.auth-dots b{width:20px;border-radius:5px;background:var(--blue)}.auth-main{display:flex;flex-direction:column;justify-content:center;align-items:center;background:#fff}.login-card{width:min(380px,78%);padding:0;border:0;box-shadow:none}.login-card h1{margin:0 0 4px;font-size:24px}.login-card>p{margin:0 0 28px;color:#a0a8b4}.login-card label{margin-top:15px}.login-card button{width:100%;margin-top:22px;min-height:38px}.auth-main footer{position:absolute;bottom:16px;color:#aab2bf;font-size:12px}
@media(max-width:900px){.auth-page{grid-template-columns:1fr}.auth-side{min-height:38vh;padding-top:55px}.auth-dots{margin-top:28px}.auth-illustration{transform:scale(.72);margin:-12px 0 -20px}.auth-main{min-height:62vh}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.code-toolbar,.grid-form{grid-template-columns:1fr}}@media(max-width:640px){.sidebar{width:72px;padding-inline:8px}.brand span,.sidebar-toggle{display:none}.brand-row{justify-content:center;padding-inline:0}.sidebar a{text-align:center;padding-inline:3px;font-size:12px}.main{margin-left:72px}.main>.notice,.main>.panel,.main>.stats,.main>.code-toolbar{margin-left:12px;margin-right:12px}.topbar{padding-inline:14px}}
