html,body,#root{margin:0;min-height:100%;background:#f4f5f7;-webkit-text-size-adjust:100%}body{overflow-x:hidden}*{box-sizing:border-box}img{max-width:100%}.ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.muted{color:#8a8f99}.app-sider{border-right:1px solid #eef0f3;position:sticky!important;top:0;height:100vh;overflow:auto}.app-sider .brand{display:flex;align-items:center;gap:10px;height:64px;padding:0 22px;font-weight:600;font-size:16px;color:#d7191f;white-space:nowrap;overflow:hidden}.app-sider .brand-logo{flex:none;width:28px;height:28px;border-radius:6px;background:#d7191f;color:#fff;font-size:13px;display:flex;align-items:center;justify-content:center;font-weight:700}.app-sider .ant-menu{border-inline-end:none!important}.app-header{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #eef0f3;position:sticky;top:0;z-index:10}.app-content{padding:20px 24px 40px;min-width:0}.content-wrap{max-width:1280px;margin:0 auto}.content-narrow{max-width:720px}.m-shell{min-height:100vh;padding-bottom:calc(60px + env(safe-area-inset-bottom))}.m-shell.no-tab{padding-bottom:env(safe-area-inset-bottom)}.m-main{padding:0 12px 16px}.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:20;display:flex;background:#fff;border-top:1px solid #eef0f3;padding-bottom:env(safe-area-inset-bottom)}.tabbar a{flex:1 1;height:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#9aa0a8;font-size:11px;text-decoration:none}.tabbar a .anticon{font-size:21px}.tabbar a.active{color:#d7191f}.page-header{display:flex;align-items:center;gap:8px;margin-bottom:16px;min-height:40px}.page-header h1{margin:0;font-size:20px;font-weight:600;flex:1 1;min-width:0}.page-header.mobile{position:sticky;top:0;z-index:15;margin:0 -12px 12px;padding:0 8px;height:48px;background:#fff;border-bottom:1px solid #f0f1f3}.page-header.mobile h1{font-size:17px;text-align:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.page-header.mobile .ph-side{width:72px;display:flex;align-items:center}.page-header.mobile .ph-side.right{justify-content:flex-end}.block{background:#fff;border-radius:10px;padding:16px;margin-bottom:12px}.block-title{font-weight:600;font-size:15px;margin-bottom:12px;display:flex;align-items:center;justify-content:space-between;gap:8px}.kv-list .kv{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:11px 0;border-bottom:1px solid #f3f4f6;font-size:14px}.kv-list .kv:last-child{border-bottom:none}.kv-list .kv .k{color:#5c6370;flex:none}.kv-list .kv .v{text-align:right;min-width:0;word-break:break-all}.nav-list .nav-item{display:flex;align-items:center;gap:12px;padding:14px 4px;border-bottom:1px solid #f3f4f6;cursor:pointer;color:inherit}.nav-list .nav-item:last-child{border-bottom:none}.nav-list .nav-item .label{flex:1 1;min-width:0}.nav-list .nav-item .value{color:#8a8f99;font-size:13px;max-width:55%;text-align:right}.nav-list .nav-item .arrow{color:#c4c8cf;font-size:12px}.action-bar{display:flex;gap:12px;margin-top:16px}.action-bar .ant-btn{flex:1 1}.action-bar.sticky{position:sticky;bottom:0;background:#f4f5f7;padding:12px 0 calc(12px + env(safe-area-inset-bottom));margin-top:0;z-index:5}.auth-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px 16px;background:radial-gradient(circle at 15% 10%,#fde4e4 0,transparent 45%),radial-gradient(circle at 90% 95%,#fbe1e1 0,transparent 40%),#f7f7f9}.auth-card{width:100%;max-width:420px;background:#fff;border-radius:16px;padding:32px 28px;box-shadow:0 12px 40px #d7191f14}.auth-card.wide{max-width:880px;display:flex;gap:40px;padding:40px}.auth-hero{flex:1 1;border-radius:12px;padding:32px;color:#fff;background:linear-gradient(150deg,#e0353a,#b80f15);display:flex;flex-direction:column;justify-content:space-between;min-height:420px}.auth-hero h2{color:#fff;font-size:30px;margin:0 0 8px;letter-spacing:2px}.auth-main{flex:1 1;min-width:0}.auth-hello{font-size:24px;font-weight:600;margin:0}.qr-box{position:relative;width:220px;height:220px;margin:16px auto 12px;border:1px solid #eef0f3;border-radius:12px;display:flex;align-items:center;justify-content:center;overflow:hidden}.qr-box img{width:200px;height:200px}.qr-box .qr-mask{position:absolute;top:0;right:0;bottom:0;left:0;background:#fffffff0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;padding:12px}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.stat-grid .stat{border-radius:10px;padding:14px;cursor:pointer;border:2px solid transparent;transition:border-color .2s}.stat-grid .stat .n{font-size:26px;font-weight:600;line-height:1.2}.stat-grid .stat .l{font-size:13px;color:#5c6370}.stat-grid .stat.on{border-color:currentColor}@media(max-width:767.98px){.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.stat-grid .stat .n{font-size:22px}}.device-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}@media(max-width:767.98px){.device-grid{grid-template-columns:minmax(0,1fr);gap:10px}}.device-card{background:#fff;border-radius:10px;padding:14px;cursor:pointer;border:1px solid #f0f1f3;transition:box-shadow .2s;min-width:0}.device-card:hover{box-shadow:0 6px 18px #0000000f}.device-card .dc-top{display:flex;gap:12px;align-items:center}.device-card .dc-icon{flex:none;width:52px;height:52px;border-radius:8px;background:#f6f7f9;color:#6b7280;display:flex;align-items:center;justify-content:center;font-size:24px}.device-card .dc-name{font-weight:600;font-size:15px}.device-card .dc-sn{font-size:12px;color:#8a8f99}.device-card .dc-bottom{margin-top:10px;padding-top:10px;border-top:1px dashed #eceef1;display:flex;justify-content:space-between;align-items:center;font-size:12px;gap:8px}.status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px;background:#b8bcc4}.status-dot.online{background:#2ba471}.status-dot.offline{background:#b8bcc4}.alarm-banner{display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:10px;background:#fff1f0;color:#d7191f;margin-bottom:12px;cursor:pointer}.entry-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}@media(max-width:767.98px){.entry-grid{grid-template-columns:minmax(0,1fr);gap:12px}}.entry-card{background:#fff;border-radius:12px;padding:22px 18px;cursor:pointer;display:flex;align-items:center;gap:14px;border:1px solid #f0f1f3}.entry-card:hover{border-color:#f3c3c5}.entry-card .ec-icon{flex:none;width:48px;height:48px;border-radius:12px;background:#fdecec;color:#d7191f;display:flex;align-items:center;justify-content:center;font-size:24px}.entry-card .ec-title{font-weight:600;font-size:15px}.entry-card .ec-desc{font-size:12px;color:#8a8f99}.hero-banner{border-radius:12px;padding:24px;margin-bottom:16px;color:#fff;background:linear-gradient(120deg,#e0353a,#b80f15)}.hero-banner h2{color:#fff;margin:0 0 4px;font-size:22px}.msg-item{display:flex;gap:12px;font-size:14px;padding:14px 0;border-bottom:1px solid #f3f4f6;cursor:pointer}.msg-item:last-child{border-bottom:none}.msg-item .mi-icon{flex:none;width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:18px;background:#f3f4f6;color:#6b7280}.msg-item .mi-icon.alarm{background:#fdecec;color:#d7191f}.msg-item .mi-body{flex:1 1;min-width:0}.msg-item .mi-head{display:flex;justify-content:space-between;gap:8px;font-size:14px}.msg-item .mi-time{flex:none;color:#8a8f99;font-size:12px}.msg-item .mi-text{color:#5c6370;font-size:13px;margin-top:2px;word-break:break-all}.screen-page{position:fixed;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;background:#111}.screen-bar{flex:none;height:48px;display:flex;align-items:center;gap:8px;padding:0 8px 0 12px;background:#1c1d21;color:#fff}.screen-bar .title{flex:1 1;min-width:0;font-weight:600}.screen-bar .ant-btn{color:#fff}.screen-body{flex:1 1;position:relative;min-height:0}.screen-body iframe{width:100%;height:100%;border:0;background:#fff}.screen-state{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;padding:16px;background:#f4f5f7}.scanner{position:relative;width:100%;aspect-ratio:1 / 1;max-height:70vh;background:#000;border-radius:10px;overflow:hidden}.scanner video{width:100%;height:100%;object-fit:cover}.scanner .frame{position:absolute;top:18%;right:18%;bottom:18%;left:18%;border:2px solid rgba(255,255,255,.85);border-radius:10px;box-shadow:0 0 0 999px #00000059}.upload-grid{display:flex;flex-wrap:wrap;gap:10px}.upload-grid .thumb{position:relative;width:84px;height:84px;border-radius:8px;overflow:hidden;background:#f3f4f6}.upload-grid .thumb img{width:100%;height:100%;object-fit:cover}.upload-grid .thumb .del{position:absolute;top:2px;right:2px;width:22px;height:22px;border-radius:50%;background:#0000008c;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:12px}.upload-grid .add{width:84px;height:84px;border-radius:8px;border:1px dashed #cfd3d9;display:flex;align-items:center;justify-content:center;color:#9aa0a8;font-size:24px;cursor:pointer;background:#fafbfc}@media(max-width:767.98px){.ant-modal{max-width:calc(100vw - 24px)}.auth-card{padding:24px 18px}}html,body{width:100%;height:100%}input::-ms-clear,input::-ms-reveal{display:none}*,*:before,*:after{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:500}p{margin-top:0;margin-bottom:1em}abbr[title],abbr[data-original-title]{text-decoration:underline dotted;border-bottom:0;cursor:help}address{margin-bottom:1em;font-style:normal;line-height:inherit}input[type=text],input[type=password],input[type=number],textarea{-webkit-appearance:none}ol,ul,dl{margin-top:0;margin-bottom:1em}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}pre,code,kbd,samp{font-size:1em;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace}pre{margin-top:0;margin-bottom:1em;overflow:auto}figure{margin:0 0 1em}img{vertical-align:middle;border-style:none}a,area,button,[role=button],input:not([type=range]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{padding-top:.75em;padding-bottom:.3em;text-align:left;caption-side:bottom}input,button,select,optgroup,textarea{margin:0;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{padding:0;border-style:none}input[type=radio],input[type=checkbox]{box-sizing:border-box;padding:0}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;margin:0;padding:0;border:0}legend{display:block;width:100%;max-width:100%;margin-bottom:.5em;padding:0;color:inherit;font-size:1.5em;line-height:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}mark{padding:.2em;background-color:#feffe6}
