*{margin:0;padding:0;box-sizing:border-box}
body{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
min-height:100vh;color:#23263a;
background:linear-gradient(165deg,#5d6fe0 0%,#6a5cc8 42%,#6e49a8 100%);background-attachment:fixed}
.page{max-width:860px;margin:0 auto;padding:26px 16px 60px}
.page.narrow{max-width:430px}
.head{text-align:center;margin-bottom:22px;position:relative}
.head h1{color:#fff;font-size:32px;font-weight:800;letter-spacing:2px}
.head p{color:rgba(255,255,255,.85);font-size:15px;margin-top:10px}
.head .who{color:rgba(255,255,255,.92);font-size:14px;margin-top:8px}
.toplink{position:absolute;right:0;top:6px;color:rgba(255,255,255,.82);font-size:13px;
text-decoration:none;border:1px solid rgba(255,255,255,.35);border-radius:20px;padding:5px 14px;margin-left:8px}
.toplink:hover{background:rgba(255,255,255,.12)}
.card{background:#fff;border-radius:18px;padding:22px;margin-bottom:18px;
box-shadow:0 14px 34px rgba(40,20,90,.22)}
.card h2{font-size:19px;font-weight:800;display:flex;align-items:center;gap:9px;margin-bottom:16px;flex-wrap:wrap}
.card h2::before{content:"";width:10px;height:10px;border-radius:50%;background:#5d6fe0;flex:0 0 auto}
.card h2 .hint{font-size:12.5px;font-weight:400;color:#9a9fb2}
input,select{height:48px;border:1.5px solid #e3e5ee;border-radius:12px;padding:0 14px;font-size:15px;
outline:none;width:100%;font-family:inherit}
input:focus,select:focus{border-color:#6d7be8}
label.fld{display:block;font-size:13.5px;color:#6b7088;margin:0 2px 7px}
.fld+.fld{margin-top:14px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:48px;padding:0 22px;
border:0;border-radius:12px;color:#fff;font-size:16px;font-weight:700;cursor:pointer;
letter-spacing:1px;font-family:inherit;text-decoration:none}
.btn:active{opacity:.87}
.btn:disabled{opacity:.55;cursor:not-allowed}
.btn-block{width:100%;display:flex;height:52px;font-size:17px;margin-top:18px}
.btn-purple{background:linear-gradient(90deg,#5d6fe0,#7b55c4);box-shadow:0 8px 18px rgba(100,90,220,.32)}
.btn-green{background:linear-gradient(90deg,#12b88a,#33e19b);box-shadow:0 8px 18px rgba(20,180,130,.3)}
.btn-orange{background:linear-gradient(90deg,#f7931e,#ffc400);box-shadow:0 8px 18px rgba(240,160,20,.3)}
.btn-gray{background:#eef0f7;color:#565b70;box-shadow:none}
.btn-sm{height:36px;padding:0 14px;font-size:13.5px;border-radius:9px}
.btn-outline{background:#fff;color:#5d6fe0;border:1.5px solid #cfd5f7;box-shadow:none}
.inputrow{display:flex;gap:10px}
.inputrow input{flex:1;min-width:0}
.eye{width:54px;flex:0 0 54px;height:48px;border:1.5px solid #e3e5ee;border-radius:12px;
background:#fff;font-size:18px;cursor:pointer;color:#8a8fa3}
.notes{list-style:none;margin-top:13px}
.notes li{font-size:13px;color:#9a9fb2;line-height:1.9;padding-left:14px;position:relative}
.notes li::before{content:"·";position:absolute;left:2px;top:-1px;font-weight:900;font-size:16px}
.tabs{display:flex;gap:10px;margin-bottom:16px}
.tab{flex:1;height:44px;border-radius:10px;border:1.5px solid #e3e5ee;background:#fff;
color:#8a8fa3;font-size:15px;cursor:pointer;font-weight:600;font-family:inherit}
.tab.on{border-color:#5d6fe0;color:#5d6fe0}
.badge{padding:4px 13px;border-radius:20px;font-size:13.5px;font-weight:700;display:inline-block}
.badge.idle{background:#e9ecff;color:#5d6fe0}
.badge.busy{background:#fff1df;color:#ef8c12}
.badge.ok{background:#e3f8ef;color:#12a06f}
.badge.off{background:#f1f2f7;color:#8a8fa3}
.badge.bad{background:#fdecec;color:#d43f3f}
.badge.busy::before{content:"●";margin-right:5px;animation:blink 1s infinite}
@keyframes blink{50%{opacity:.25}}
.row{display:flex;align-items:center;justify-content:space-between;gap:12px;
background:#f4f5fa;border-radius:12px;padding:14px 16px;margin-bottom:12px;font-size:15px;font-weight:600}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.chip{display:inline-flex;align-items:center;gap:8px;background:#f2f3f9;border-radius:20px;
padding:6px 8px 6px 13px;font-size:13px;font-family:ui-monospace,Menlo,Consolas,monospace}
.chip a{color:#c4c7d4;text-decoration:none;font-weight:700;padding:0 7px;
border-left:1px solid #dfe2ee;cursor:pointer}
.logbox{background:#f7f8fc;border-radius:12px;padding:14px;height:300px;overflow:auto;
font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12.5px;line-height:1.85;
white-space:pre-wrap;word-break:break-all;color:#3d4256}
.logbox .empty{color:#b3b7c6}
.muted{color:#9a9fb2;font-size:13px;line-height:1.8}
.mono{font-family:ui-monospace,Menlo,Consolas,monospace}
table{width:100%;border-collapse:collapse;font-size:14px}
th,td{text-align:left;padding:10px 10px;border-bottom:1px solid #eef0f6;vertical-align:middle}
th{color:#8a8fa3;font-weight:600;font-size:13px}
td .mono{font-size:13px}
.codebox{background:#f4f5fa;border-radius:10px;padding:12px 14px;font-family:ui-monospace,Menlo,Consolas,monospace;
font-size:14px;display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.codebox .copy{color:#5d6fe0;cursor:pointer;font-weight:700;font-size:13px;flex:0 0 auto}
.switchtab{display:flex;gap:0;background:#f1f2f8;border-radius:12px;padding:4px;margin-bottom:22px}
.switchtab button{flex:1;height:42px;border:0;background:transparent;border-radius:9px;font-size:15.5px;
color:#8a8fa3;cursor:pointer;font-weight:700;font-family:inherit}
.switchtab button.on{background:#fff;color:#5d6fe0;box-shadow:0 2px 8px rgba(80,70,160,.12)}
#toast{position:fixed;left:50%;bottom:44px;transform:translateX(-50%) translateY(30px);
background:rgba(30,28,50,.92);color:#fff;padding:12px 22px;border-radius:24px;font-size:14.5px;
opacity:0;pointer-events:none;transition:.25s;max-width:88%;text-align:center;z-index:99}
#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
@media(max-width:560px){
  .head h1{font-size:27px}
  .card{padding:18px 15px}
  table{font-size:13px}
  th,td{padding:8px 5px}
}
