:root{color-scheme:light;--ink:#192842;--muted:#7b879c;--blue:#1761e8;--line:#edf0f5;--bg:#f1f4f8;--red:#e85557;--green:#168469;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-size:14px}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default}button:focus-visible,a:focus-visible{outline:3px solid #7baaff;outline-offset:5px}button{touch-action:manipulation}a{color:inherit;text-decoration:none}[hidden]{display:none!important}h1,h2,p{margin:0}button{border:0}svg{display:block}button{transition:background .18s,box-shadow .18s,transform .18s}.shell{max-width:1032px;margin:0 auto;padding:0 36px}.topbar{height:99px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e1e6ee}.brand{display:flex;align-items:center;gap:12px;font-weight:700;letter-spacing:.04em}.brand-mark{width:40px;height:40px;background:var(--ink);color:#fff;display:grid;place-items:center;border-radius:12px;font-size:19px;letter-spacing:-.06em}.brand-sub{display:block;font-size:10px;color:var(--muted);margin-top:3px;letter-spacing:.15em;font-weight:500}.secure{display:flex;align-items:center;gap:6px;color:#748398;font-size:12px}.secure svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6}.page-heading{display:flex;align-items:center;justify-content:space-between;padding:38px 0 27px}.eyebrow{color:#6c7f9f;font-size:11px;letter-spacing:.18em;font-weight:700;margin-bottom:10px}h1{font-size:30px;letter-spacing:-.04em;line-height:1.35}.page-heading p{margin-top:10px;color:var(--muted);font-size:13px}.text-button{color:#657a9a;background:none;padding:8px 0;font-size:12px}.text-button:hover{color:var(--blue)}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:22px}.control-card,.device-card,.history-card,.login-card{background:#fff;border:1px solid #e9edf4;border-radius:24px;box-shadow:0 7px 25px #24365a03}.control-card{padding:25px 30px;text-align:center}.card-top{display:flex;justify-content:space-between;align-items:center}.small-title{font-size:14px;font-weight:650;letter-spacing:.02em}.badge{display:flex;align-items:center;gap:6px;color:var(--muted);background:#f4f6f9;border-radius:20px;padding:5px 9px;font-size:11px}.badge i{width:5px;height:5px;background:currentColor;border-radius:50%}.badge.online{color:var(--green);background:#edf8f3}.state-block{margin:29px 0 21px}.state-label{font-size:12px;color:var(--muted)}#motor-state{font-size:33px;line-height:1.35;letter-spacing:.03em;margin-top:7px}#state-caption{font-size:12px;color:var(--muted);margin-top:7px;min-height:18px}.feedback-wrap{min-height:67px;padding:20px 0 12px;display:flex;flex-direction:column;justify-content:center;gap:3px}#feedback{font-size:12px;color:#7184a1;line-height:1.6}#feedback.error{color:#c7544a}.control-note{font-size:11px;color:#98a2b1;margin-top:12px}.side-column{display:flex;flex-direction:column;gap:20px}.device-card,.history-card{padding:24px}.product-tag{font-size:11px;letter-spacing:.1em;background:#edf3ff;color:#6285c7;padding:4px 8px;border-radius:6px}.device-art{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;margin:8px 0 19px}.device-art svg{width:142px;height:119px;fill:#98b5e7}.device-art span{font-size:13px;font-weight:550}.lift-frame{fill:#eaf1fd;stroke:#cbdaf3;stroke-width:1.5}.lift-doors{fill:#fff;stroke:#cfddf3;stroke-width:1.5}.lift-lines{stroke:#c4d3ec;stroke-width:1.5}.lift-arrows{fill:none;stroke:#729be1;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.lift-panel{fill:#eaf1fd;stroke:#cbdaf3}dl{margin:0;border-top:1px solid var(--line);padding-top:12px}dl>div{display:flex;justify-content:space-between;gap:15px;padding:8px 0;font-size:12px}dt{color:var(--muted)}dd{margin:0;font-variant-numeric:tabular-nums;color:#53647f}.history-card{flex:1}.muted{color:var(--muted);font-size:10px}#history{margin:13px 0 0;padding:0;list-style:none;max-height:280px;overflow-y:auto;scrollbar-width:thin}#history li{padding:12px 0;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:10px}#history li:last-child{border-bottom:0}.event-icon{width:29px;height:29px;flex-shrink:0;background:#f0f5ff;color:#5984cb;border-radius:9px;display:grid;place-items:center;font-size:10px}.event-body{flex:1;min-width:0}.event-name{font-size:12px}.event-time{font-size:10px;color:#9aa4b4;margin-top:4px}.event-result{font-size:11px;color:#688294;white-space:nowrap}.event-result.uncertain{color:#bd8947}#history .empty{color:var(--muted);font-size:12px;padding:26px 0}.footnote{color:#8f9bac;font-size:11px;line-height:1.8;margin:22px 0 36px;text-align:center}footer{border-top:1px solid #e1e6ee;padding:23px 0;display:flex;justify-content:space-between;color:#9aa5b5;font-size:10px;gap:12px}.login-card{max-width:430px;margin:60px auto 70px;padding:38px}.login-card h1{font-size:35px;line-height:1.4;margin-top:20px}.login-intro{color:var(--muted);font-size:13px;line-height:1.8;margin:16px 0 28px}label{display:block;font-size:12px;margin-bottom:10px}input{width:100%;height:48px;border:1px solid #dfe6f0;border-radius:10px;padding:0 14px;color:var(--ink);background:#fafbfd;outline:none}input:focus{border-color:#7eaaff;box-shadow:0 0 0 3px #edf3ff}input::placeholder{color:#a6afbe}.primary{background:var(--blue);color:white;border-radius:10px;width:100%;height:47px;margin-top:16px;display:flex;align-items:center;justify-content:space-between;padding:0 17px}.primary:disabled{opacity:.7}.form-error{font-size:12px;color:#c7544a;min-height:35px;padding-top:12px}.login-note{font-size:11px;line-height:1.8;color:#96a0b1;border-top:1px solid var(--line);padding-top:20px}.boot-status{text-align:center;margin:90px 0;color:var(--muted)}
@media(min-width:1000px){.shell{max-width:1060px}.control-card{padding:27px 42px}.state-block{margin-top:32px}}
@media(max-width:640px){.shell{padding:0 20px}.topbar{height:77px}.page-heading{padding:27px 2px 22px}h1{font-size:25px}.page-heading .eyebrow{font-size:10px;margin-bottom:7px}.page-heading p{font-size:12px}.dashboard-grid{grid-template-columns:1fr;gap:16px}.control-card{padding:22px 24px;border-radius:22px}.state-block{margin:24px 0 15px}#motor-state{font-size:31px}.side-column{gap:16px}.device-card,.history-card{padding:22px;border-radius:22px}.device-art{flex-direction:row;justify-content:flex-start;margin:10px 0 13px;gap:12px}.device-art svg{width:82px;height:69px}.footnote{margin:20px 5px 26px;font-size:10px;text-align:left}footer{font-size:9px}.login-card{margin:35px auto;padding:28px}.login-card h1{font-size:32px}.secure{font-size:11px}.badge{font-size:10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}

/* 一个主按钮始终在原位；仅切换动作和颜色，设备推送不触发加载动画。 */
.control-card{display:flex;flex-direction:column;min-height:560px;padding:28px 36px}
.state-block{margin:34px 0 32px}#motor-state{font-size:35px;letter-spacing:.02em;margin-top:8px}
#state-caption{line-height:1.7;min-height:21px}.control-card.is-on #motor-state{color:var(--green)}
.power-wrap{display:grid;place-items:center;padding:9px 0 16px}
.power-button{width:224px;height:224px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;background:linear-gradient(145deg,#3097ff,#1658d7);color:white;border:7px solid #4aa4ff;box-shadow:0 0 0 12px #edf5ff,0 18px 40px #2169e724}
.power-button svg{width:67px;height:67px;fill:none;stroke:currentColor;stroke-width:3.5;stroke-linecap:round}
.power-button>span{font-size:30px;font-weight:650;letter-spacing:.12em;padding-left:.12em}
.power-button.is-stop{background:linear-gradient(145deg,#f07868,#d84548);border-color:#f69083;box-shadow:0 0 0 12px #fff0ed,0 18px 40px #d845481c}
.power-button:not(:disabled):hover{filter:brightness(1.04)}.power-button:not(:disabled):active{transform:scale(.97)}
.power-button:disabled{opacity:.5;box-shadow:0 0 0 12px #f2f4f7}
.feedback-wrap{min-height:65px;padding:22px 0 12px;margin-top:auto}.control-note{border-top:1px solid var(--line);padding-top:18px;margin-top:8px;font-size:11px;line-height:1.8}
.device-art{flex-direction:row;justify-content:flex-start;gap:10px;margin:14px 0}.device-art svg{width:80px;height:70px}.history-card{min-height:240px}#history{max-height:210px}
@media(max-width:640px){.control-card{min-height:0;padding:23px 23px 21px}.state-block{margin:24px 0 27px}#motor-state{font-size:31px}.power-button{width:202px;height:202px}.power-button svg{width:59px;height:59px}.power-button>span{font-size:28px}.feedback-wrap{margin-top:0;min-height:63px;padding-top:19px}.control-note{padding-top:15px;margin-top:0}.history-card{min-height:0}}
