:root{font-family:Microsoft YaHei UI,PingFang SC,system-ui,sans-serif;color:#17211d;background:#edf1ed;font-synthesis:none;--green:#176b4d;--green-dark:#0e4935;--line:#d8dfda;--paper:#fbfcfa;--muted:#69756e}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:radial-gradient(circle at 15% 0%,#dcebe2 0,transparent 35%),#edf1ed}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}.topbar{height:70px;display:flex;align-items:center;justify-content:space-between;padding:0 max(28px,calc((100vw - 1240px)/2));border-bottom:1px solid rgba(23,33,29,.12);background:#fbfcfad6;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);position:sticky;top:0;z-index:5}.topbar>div,.identity{display:flex;align-items:center;gap:12px}.admin-nav{max-width:1240px;margin:18px auto -10px;padding:0 20px;display:flex;gap:8px}.admin-nav button{border:1px solid var(--line);border-radius:10px;padding:9px 16px;color:#526159;background:#fbfcfacc}.admin-nav button.active{border-color:var(--green);color:#fff;background:var(--green);box-shadow:0 7px 16px #176b4d29}.brand-mark{width:38px;height:38px;display:grid;place-items:center;color:#fff;background:var(--green);border-radius:9px;font:700 12px Consolas,monospace;letter-spacing:.08em}.badge{display:inline-flex;padding:4px 8px;border-radius:99px;background:#e0ebe4;color:var(--green-dark);font:500 11px Consolas,monospace}.page-grid{max-width:1240px;margin:28px auto 60px;padding:0 20px;display:grid;grid-template-columns:1fr 1fr;gap:20px}.panel{background:#fbfcfaf0;border:1px solid rgba(23,33,29,.1);border-radius:18px;padding:24px;box-shadow:0 12px 32px #1637280d}.span-2{grid-column:1/-1}.hero-panel{grid-column:1/-1;display:flex;justify-content:space-between;align-items:end;background:linear-gradient(120deg,#f9fbf8,#e5eee8)}.hero-panel h2{margin:4px 0;font-size:34px;letter-spacing:-.04em}h3{margin:0 0 6px}p{color:var(--muted)}.eyebrow{color:var(--green);font:500 11px Consolas,monospace;letter-spacing:.14em}.device-select{min-width:300px;display:flex;align-items:end;gap:12px}label{display:flex;flex-direction:column;gap:7px;color:#46524b;font-size:13px;font-weight:500}input,select{min-height:43px;border:1px solid var(--line);border-radius:10px;padding:9px 12px;color:#17211d;background:#fff;outline:none}input:focus,select:focus{border-color:#4d9477;box-shadow:0 0 0 3px #176b4d1a}.state-dot{padding:11px 13px;border-radius:10px;background:#eee;font:500 12px Consolas,monospace}.state-dot.ok{color:#0c6946;background:#dff1e7}.panel-title{display:flex;justify-content:space-between;align-items:start;margin-bottom:18px}.panel-title p{margin:0}.operation-title{gap:24px}.operation-title>div:first-child{flex:1}.operation-title .operation-controls{flex:0 0 410px;min-width:0}.operation-title .device-select{min-width:0}.operation-title .device-select label{flex:1}.bound-device,.no-bound-device{flex:1;min-height:48px;display:flex;flex-direction:column;justify-content:center;gap:3px;padding:7px 11px;border:1px solid var(--line);border-radius:10px;background:#fff}.bound-device small,.no-bound-device small,.bound-device code{color:var(--muted);font-size:11px}.no-bound-device{border-color:#e4b5af;color:#742e29;background:#fff5f3}.serial-select{display:flex;align-items:center;gap:10px;margin-top:9px}.serial-select small{color:var(--muted);font:11px Consolas,monospace}.progress-track{height:10px;background:#e5eae6;border-radius:20px;overflow:hidden}.safety-notice{margin:0 0 17px;padding:11px 13px;border-left:3px solid #b56b1c;border-radius:8px;color:#6e471c;background:#fff3df;font-size:12px;line-height:1.65}.liability-notice{margin:0 0 18px;padding:14px;border:1px solid #e4b5af;border-radius:11px;color:#742e29;background:#fff5f3;font-size:12px;line-height:1.7}.liability-notice strong{display:block;margin-bottom:4px;font-size:13px}.liability-notice p{margin:0;color:#75423d}.compact-notice{margin:22px 0 0}.compact-notice p{font-size:11px}.risk-accept{margin-top:11px;display:flex;flex-direction:row;align-items:center;gap:8px;color:#5f2f2b;font-weight:600;cursor:pointer}.risk-accept input{min-height:0;width:16px;height:16px;margin:0;accent-color:#9a342d}.progress-track div{height:100%;background:linear-gradient(90deg,#1e7757,#50a17f);transition:width .2s}.progress-meta{display:flex;justify-content:space-between;margin:9px 0 18px;color:var(--muted);font-size:13px}.primary{border:0;border-radius:10px;padding:11px 18px;background:var(--green);color:#fff;font-weight:600;box-shadow:0 7px 16px #176b4d2e}.compact{padding:7px 12px}.ghost,.actions button{border:1px solid var(--line);border-radius:9px;padding:8px 12px;color:#34463d;background:#fff}.actions .danger-outline{border-color:#d7a09a;color:#9a342d;background:#fff8f7}.wide{width:100%;margin-top:7px}.log{min-height:145px;max-height:240px;overflow:auto;margin:18px 0 0;padding:14px;border-radius:12px;color:#a9d9c5;background:#11261d;font:12px/1.65 Consolas,monospace;white-space:pre-wrap}.table-wrap{overflow:auto}.device-browser{display:flex;gap:9px;margin:0 0 18px;padding-bottom:4px;overflow-x:auto}.device-browser button{min-width:150px;display:flex;flex-direction:column;align-items:start;gap:4px;padding:11px 13px;border:1px solid var(--line);border-radius:11px;color:#34463d;background:#fff}.device-browser button.active{border-color:var(--green);color:var(--green-dark);background:#e6f0e9;box-shadow:inset 0 0 0 1px #176b4d1f}.device-browser small{color:var(--muted);font-size:11px}table{width:100%;border-collapse:collapse;font-size:13px}th{color:#738078;font-weight:500;text-align:left}th,td{padding:12px 10px;border-bottom:1px solid #e7ebe8;white-space:nowrap}.actions{display:flex;gap:7px}.account-table{table-layout:fixed;min-width:900px}.account-table th:nth-child(1){width:9%}.account-table th:nth-child(2){width:10%}.account-table th:nth-child(3){width:14%}.account-table th:nth-child(4){width:20%}.account-table th:nth-child(5){width:9%}.account-table th:nth-child(6){width:12%}.account-table th:nth-child(7){width:26%}.account-table input,.account-table select{width:100%;min-width:0}.account-table .actions{flex-wrap:wrap}.account-table .actions button{padding:7px 9px}.saving-state{align-self:center;color:var(--muted);font-size:12px}.mono,code{font-family:Consolas,monospace}.empty{padding:28px!important;text-align:center;color:#8a948f}.muted{margin-top:0}.cert-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px;margin-top:16px}.cert-grid article{display:flex;flex-direction:column;gap:7px;padding:15px;border:1px solid var(--line);border-radius:12px;background:#fff}.cert-grid small{color:var(--muted)}.cert-grid code{font-size:11px;color:#526159}.auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(380px,1.1fr) minmax(420px,.9fr)}.auth-intro{display:flex;flex-direction:column;justify-content:center;padding:10vw;color:#fff;background:linear-gradient(145deg,#0c3929f5,#176b4deb),repeating-linear-gradient(90deg,transparent 0 39px,rgba(255,255,255,.04) 40px)}.auth-intro .eyebrow{color:#8fd4b7}.auth-intro h1{margin:18px 0;font-size:clamp(38px,5vw,70px);line-height:1.08;letter-spacing:-.06em}.auth-intro p{max-width:590px;color:#c7ddd3;font-size:16px;line-height:1.9}.trust-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:30px}.trust-row span{padding:7px 11px;border:1px solid rgba(255,255,255,.2);border-radius:99px;color:#d9e9e2;font-size:12px}.auth-card{align-self:center;width:min(500px,calc(100% - 48px));margin:auto;padding:34px;border:1px solid var(--line);border-radius:20px;background:var(--paper);box-shadow:0 30px 70px #182c231f}.tabs{display:flex;gap:6px;padding:4px;margin-bottom:25px;border-radius:11px;background:#e9eeea}.tabs button{flex:1;border:0;padding:9px;border-radius:8px;color:#657169;background:transparent}.tabs button.active{color:#17211d;background:#fff;box-shadow:0 2px 9px #14281f14;font-weight:600}form{display:flex;flex-direction:column;gap:15px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.alert{padding:10px 12px;border-radius:9px;font-size:13px}.alert.error{color:#8f302b;background:#fae7e5}.alert.success{color:#126241;background:#def1e6}.center{min-height:100vh;display:flex;align-items:center;justify-content:center;gap:10px;color:var(--muted)}.spinner{width:20px;height:20px;border:2px solid #cbd5cf;border-top-color:var(--green);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.modal-backdrop{position:fixed;inset:0;z-index:20;display:grid;place-items:center;padding:20px;background:#0c1c1585;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.profile-dialog{width:min(520px,100%);max-height:calc(100vh - 40px);overflow:auto;padding:26px;border:1px solid var(--line);border-radius:18px;background:var(--paper);box-shadow:0 30px 80px #081a124d}.profile-dialog .panel-title{align-items:start}.profile-dialog h3{margin-top:5px;font-size:24px}.dialog-divider{height:1px;margin:24px 0;background:var(--line)}.dialog-section-title{margin-bottom:13px}.dialog-section-title p{margin:4px 0 0;font-size:12px}.audit-filters{display:grid;grid-template-columns:1fr 1.4fr 1fr auto;align-items:end;gap:12px;margin-bottom:18px}.audit-result{display:inline-flex;padding:4px 8px;border-radius:99px;font:600 10px Consolas,monospace;background:#e8ece9}.audit-result.success{color:#116443;background:#def1e6}.audit-result.denied,.audit-result.failed{color:#96372f;background:#fae5e2}.audit-detail{max-width:280px;overflow:hidden;text-overflow:ellipsis}.pager{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:18px;color:var(--muted);font-size:13px}.pager>div{display:flex;gap:8px}@media(max-width:800px){.auth-shell{grid-template-columns:1fr}.auth-intro{display:none}.auth-card{margin:40px auto}.page-grid{grid-template-columns:1fr}.span-2,.hero-panel{grid-column:1}.hero-panel{align-items:start;flex-direction:column;gap:18px}.device-select{min-width:100%}.topbar{padding:0 14px}.identity{font-size:12px}.operation-panel{grid-column:1}}@media(max-width:800px){.operation-title{flex-direction:column;align-items:stretch}.operation-title .operation-controls{flex-basis:auto;width:100%}.operation-title .device-select{width:100%}}@media(max-width:800px){.audit-filters{grid-template-columns:1fr}.admin-nav{overflow-x:auto}.topbar .identity{gap:6px}.topbar .identity>.ghost:first-of-type{display:none}}
