*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
body{margin:0 auto;padding:16px 14px 40px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;background:#f2f4f8;color:#1c2230;max-width:640px}
header{display:flex;align-items:center;gap:10px;margin-bottom:18px}
.dot{width:10px;height:10px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.18);flex:0 0 auto;transition:background .3s}
.dot.off{background:#ef4444;box-shadow:0 0 0 4px rgba(239,68,68,.18)}
.dot.wait{background:#f59e0b;box-shadow:0 0 0 4px rgba(245,158,11,.18)}
h1{font-size:19px;margin:0;font-weight:650;letter-spacing:-.2px}
.sub{font-size:12px;color:#7a8399;margin-top:2px}
.card{background:#fff;border-radius:14px;padding:16px;margin-bottom:14px;box-shadow:0 1px 3px rgba(20,30,60,.07),0 6px 18px rgba(20,30,60,.04)}
.card h2{font-size:12px;margin:0 0 12px;font-weight:600;letter-spacing:.6px;color:#8892a6}
.row{display:flex;justify-content:space-between;align-items:baseline;padding:9px 0;border-bottom:1px solid #f0f2f6;font-size:14px}
.row:last-child{border-bottom:none;padding-bottom:0}
.row span:first-child{color:#6b7a91}
.val{font-variant-numeric:tabular-nums;font-weight:600;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.val.ok{color:#16a34a}
.val.bad{color:#dc2626}
.bar{height:6px;border-radius:3px;background:#eef1f6;overflow:hidden;margin-top:8px}
.bar>i{display:block;height:100%;border-radius:3px;background:linear-gradient(90deg,#34d399,#22c55e);transition:width .5s,background .5s}
.swatches{display:grid;grid-template-columns:repeat(6,1fr);gap:9px;margin-bottom:16px}
.sw{aspect-ratio:1;border-radius:11px;border:2px solid rgba(0,0,0,.06);cursor:pointer;transition:transform .12s,box-shadow .12s}
.sw:active{transform:scale(.92)}
.sw.on{box-shadow:0 0 0 3px #fff,0 0 0 5px #2563eb}
.sliders label{display:flex;align-items:center;gap:10px;font-size:13px;margin-bottom:10px;color:#4a566b}
.sliders label b{width:12px;font-weight:700}
input[type=range]{-webkit-appearance:none;appearance:none;flex:1;height:5px;border-radius:3px;background:#e6eaf1;outline:none}
input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:22px;height:22px;border-radius:50%;background:#fff;border:2px solid #2563eb;box-shadow:0 1px 4px rgba(0,0,0,.2);cursor:pointer}
input[type=range]::-moz-range-thumb{width:20px;height:20px;border-radius:50%;background:#fff;border:2px solid #2563eb;cursor:pointer}
.num{width:34px;text-align:right;font-family:ui-monospace,monospace;font-weight:600;font-size:12px;color:#2563eb}
.preview{height:44px;border-radius:10px;margin:12px 0 4px;border:1px solid rgba(0,0,0,.06);transition:background .15s}
.toggle{display:flex;justify-content:space-between;align-items:center;font-size:14px;color:#4a566b;padding:2px 0}
.switch{position:relative;width:46px;height:26px;flex:0 0 auto}
.switch input{opacity:0;width:0;height:0}
.sl{position:absolute;inset:0;background:#d6dce6;border-radius:13px;cursor:pointer;transition:background .22s}
.sl:before{content:"";position:absolute;width:20px;height:20px;left:3px;top:3px;background:#fff;border-radius:50%;transition:transform .22s;box-shadow:0 1px 3px rgba(0,0,0,.25)}
.switch input:checked+.sl{background:#22c55e}
.switch input:checked+.sl:before{transform:translateX(20px)}
.btns{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
button{flex:1;min-width:88px;padding:11px 14px;border-radius:10px;border:none;font-size:14px;font-weight:600;cursor:pointer;transition:transform .1s,opacity .2s;font-family:inherit}
button:active{transform:scale(.97)}
button:disabled{opacity:.45;cursor:not-allowed}
.primary{background:#2563eb;color:#fff}
.ghost{background:#eef1f6;color:#41506b}
.hint{font-size:11.5px;color:#93a0b5;margin-top:10px;line-height:1.55}
.hint.flash{color:#2563eb;font-weight:600}
