:root{color:#14284a;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;--blue:#1677ff;--ink:#14284a;--muted:#7a8ba5;--line:#e6edf6;--ok:#14b87a;--danger:#f04455;background:#f4f7fb;font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Microsoft YaHei,sans-serif}*{box-sizing:border-box}html,body,#app{min-height:100%;margin:0}body{background:#f4f7fb;min-width:320px}button,input,textarea,select{font:inherit}button{-webkit-tap-highlight-color:transparent}.app-shell{background:#f4f7fb;min-height:100svh}.app-page{width:min(100%,680px);min-height:calc(100svh - 74px);margin:0 auto;padding:18px 16px 102px}.topbar,.page-heading,.section-heading,.device-card,.work-heading,.work-item footer,.switch-line,.date-filter,.profile-card{align-items:center;display:flex}.topbar{justify-content:space-between;margin-bottom:24px}.brand{letter-spacing:.02em;align-items:center;gap:9px;font-size:17px;font-weight:800;display:flex}.brand img{object-fit:cover;border-radius:10px;width:34px;height:34px}.avatar,.profile-avatar{color:#fff;background:linear-gradient(135deg,#377ff2,#174d98);border:0;border-radius:50%;place-items:center;width:36px;height:36px;font-weight:800;display:grid}.avatar{cursor:pointer}h1,h2,p{margin:0}h1{color:var(--ink);letter-spacing:-.02em;font-size:26px;line-height:1.25}h2{font-size:17px}small{color:var(--muted);line-height:1.5;display:block}.home-hero{color:#fff;background:linear-gradient(135deg,#103d80,#1978d9);border-radius:24px;padding:28px 22px 21px;position:relative;overflow:hidden;box-shadow:0 14px 30px #15509e2e}.home-hero:after{content:"";border:1px solid #fff3;border-radius:50%;width:180px;height:180px;position:absolute;top:-60px;right:-48px;box-shadow:0 0 0 26px #ffffff0d,0 0 0 54px #ffffff0a}.home-hero p{opacity:.76;margin-bottom:6px;font-size:13px}.home-hero h1{z-index:1;color:#fff;max-width:260px;font-size:23px;position:relative}.message-button{z-index:1;color:#fff;text-align:left;cursor:pointer;background:#ffffff24;border:1px solid #ffffff2b;border-radius:12px;align-items:center;gap:6px;width:100%;margin-top:22px;padding:10px 12px;display:flex;position:relative}.message-button b{color:#ffd564;padding-right:2px}.message-button span{margin-left:auto;font-size:21px;line-height:.8}.safety-score{background:#fff;border-radius:17px;align-items:center;gap:12px;margin:-2px 12px 0;padding:17px 14px;display:flex;transform:translateY(-8px);box-shadow:0 7px 22px #12376917}.shield{color:#fff;background:#36c99d;border-radius:14px 14px 18px 18px;place-items:center;width:43px;height:43px;font-size:22px;display:grid}.safety-score strong{font-size:25px;line-height:1;display:block}.safety-score small{font-size:12px;display:inline}.safety-score span{color:var(--muted);margin-top:5px;font-size:11px}.score-split{border-left:1px solid var(--line);min-width:84px;margin-left:auto;padding-left:14px}.score-split b{font-size:19px;display:block}.alert-banner{color:#fff;text-align:left;cursor:pointer;background:linear-gradient(135deg,#fa5261,#ed344c);border:0;border-radius:16px;align-items:center;gap:11px;width:100%;margin-top:9px;padding:13px;display:flex;box-shadow:0 9px 18px #f044552e}.alert-banner>span{border:1px solid #ffffff80;border-radius:50%;flex:none;place-items:center;width:29px;height:29px;font-weight:800;display:grid}.alert-banner b,.alert-banner small{display:block}.alert-banner small{color:#fffc;margin-top:3px;font-size:11px}.alert-banner i{margin-left:auto;font-size:24px;font-style:normal}.section-heading{justify-content:space-between;margin-top:27px}.section-heading span{color:#92a0b4;font-size:12px}.section-heading button{color:var(--blue);cursor:pointer;background:0 0;border:0;padding:0;font-size:13px}.metric-grid{grid-template-columns:repeat(4,1fr);gap:8px;margin-top:12px;display:grid}.metric{text-align:center;border:0;border-radius:14px;min-height:76px;padding:12px 7px}.metric b{font-size:20px;display:block}.metric span{margin-top:5px;font-size:11px;display:block}.mint{color:#07976d;background:#e6faf4}.amber{color:#d57900;background:#fff4dd}.blue{color:#1975db;background:#e9f3ff}.violet{color:#7754dd;cursor:pointer;background:#f0ecff}.device-list,.work-list{gap:9px;margin-top:12px;display:grid}.device-card,.work-item{width:100%;color:inherit;text-align:left;border:1px solid var(--line);cursor:pointer;background:#fff;border-radius:16px}.device-card{gap:11px;padding:12px}.device-icon{border-radius:12px;flex:none;place-items:center;width:39px;height:39px;font-size:21px;display:grid}.online-icon{color:#11a877;background:#e5f8f1}.offline-icon{color:#92a0b3;background:#eef2f6}.device-copy{min-width:0}.device-copy b,.device-copy small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.device-copy b{font-size:14px}.device-copy small{margin-top:3px;font-size:11px}.device-card em{margin-left:auto}.device-card i,.work-item i{color:#a5b1c0;margin-left:3px;font-size:22px;font-style:normal}.ok,.muted,.count-pill{white-space:nowrap;border-radius:999px;padding:4px 8px;font-size:11px;font-style:normal}.ok{color:#079d6f;background:#e3f9f1}.muted{color:#8493a7;background:#edf1f5}.text-ok{color:#0baa77}.text-muted{color:#8493a7}.page-heading{justify-content:space-between;margin:6px 0 22px}.page-heading p,.device-hero p,.task-hero p{color:#8291a6;margin-bottom:5px;font-size:12px}.count-pill{color:var(--blue);background:#eaf3ff}.device-summary{border:1px solid var(--line);background:#fff;border-radius:16px;grid-template-columns:repeat(3,1fr);margin-bottom:17px;display:grid;overflow:hidden}.device-summary div{text-align:center;padding:14px}.device-summary div+div{border-left:1px solid var(--line)}.device-summary b,.device-summary span{display:block}.device-summary b{font-size:20px}.device-summary span{color:var(--muted);margin-top:4px;font-size:11px}.full-list{margin-top:0}.back-button{color:var(--blue);cursor:pointer;background:0 0;border:0;padding:3px 0}.device-hero,.task-hero{color:#fff;background:linear-gradient(135deg,#17488d,#237dd4);border-radius:19px;align-items:flex-start;gap:12px;margin-top:14px;padding:21px 18px;display:flex}.device-hero h1,.task-hero h1{color:#fff;font-size:21px}.device-hero small,.task-hero small{color:#ffffffb3;margin-top:5px}.device-hero em{margin-left:auto}.segmented{background:#eaf0f7;border-radius:12px;grid-template-columns:repeat(4,1fr);margin:17px 0;padding:4px;display:grid}.segmented button{color:#76869c;cursor:pointer;background:0 0;border:0;border-radius:9px;padding:8px 2px;font-size:13px}.segmented button.active{color:var(--blue);background:#fff;font-weight:700;box-shadow:0 2px 7px #1e457714}.device-tabs{grid-template-columns:repeat(5,1fr)}.device-tabs button{font-size:12px}.overview-grid{border:1px solid var(--line);background:#fff;border-radius:16px;grid-template-columns:repeat(2,1fr);display:grid;overflow:hidden}.overview-grid div{min-height:82px;padding:15px}.overview-grid div:nth-child(odd){border-right:1px solid var(--line)}.overview-grid div:nth-child(-n+2){border-bottom:1px solid var(--line)}.overview-grid span,.overview-grid b{display:block}.overview-grid span{color:var(--muted);font-size:12px}.overview-grid b{overflow-wrap:anywhere;margin-top:8px;font-size:14px}.tip-card{background:#e8f8f3;border-radius:14px;align-items:center;gap:10px;margin-top:13px;padding:14px;display:flex}.tip-card>span{color:#fff;background:#20b987;border-radius:9px;place-items:center;width:28px;height:28px;display:grid}.tip-card b,.tip-card small{display:block}.tip-card small{margin-top:3px;font-size:11px}.form-card,.task-card,.profile-card,.setting-list{border:1px solid var(--line);background:#fff;border-radius:16px}.form-card{gap:14px;padding:17px;display:grid}.form-card label{color:#63758d;gap:7px;font-size:13px;display:grid}.form-card input,.form-card textarea,.form-card select{width:100%;color:var(--ink);outline-color:var(--blue);background:#f8fafc;border:1px solid #dce6f1;border-radius:10px;padding:11px 12px}.form-card textarea{resize:vertical;min-height:82px}.switch-line{justify-content:space-between;gap:12px;padding:8px 0}.switch-line b,.switch-line small{color:var(--ink);display:block}.switch-line small{margin-top:4px;font-size:11px}.switch-line input{width:44px;height:25px;accent-color:var(--blue);padding:0}.form-error{color:#d83748;font-size:13px}.form-success{color:#079d6f;font-size:13px}.primary-action{color:#fff;background:var(--blue);cursor:pointer;border:0;border-radius:13px;width:100%;padding:14px;font-weight:700;box-shadow:0 8px 16px #1677ff33}.primary-action:disabled{opacity:.65;cursor:wait}.media-section{gap:10px;display:grid}.date-filter{color:#53667f;justify-content:space-between;padding:12px 0;font-size:13px}.date-filter input{color:var(--ink);background:#fff;border:1px solid #dce6f1;border-radius:9px;padding:8px}.media-item{border:1px solid var(--line);background:#fff;border-radius:14px;align-items:center;gap:11px;padding:11px;display:flex}.media-item img,.media-icon{object-fit:cover;border-radius:10px;width:48px;height:48px}.media-icon{color:var(--blue);background:#e8f3ff;flex:none;place-items:center;display:grid}.alert-icon{color:var(--danger);background:#ffeaed}.media-item div{min-width:0}.media-item b,.media-item small{display:block}.media-item small{margin-top:4px;font-size:11px}.media-item a{color:var(--blue);margin-left:auto;font-size:13px;text-decoration:none}.live-panel{background:#101925;border-radius:16px;margin-top:6px;overflow:hidden}.live-panel video{object-fit:contain;background:#05080c;width:100%;min-height:210px;display:block}.live-panel .page-loading,.live-panel .form-error,.live-state{color:#d9e5f4;padding:0 14px}.live-panel .form-error{color:#ffb8bd}.live-state{color:#75dcb4;font-size:13px}.live-actions{padding:0 14px 14px}.live-actions .primary-action{margin:0}.secondary-action{color:#e1ebf8;cursor:pointer;background:0 0;border:1px solid #506177;border-radius:13px;width:100%;padding:14px;font-weight:700}.work-tabs{grid-template-columns:repeat(4,1fr)}.work-branches{scrollbar-width:none;gap:8px;margin:-6px 0 15px;padding:2px 1px 7px;display:flex;overflow-x:auto}.work-branches::-webkit-scrollbar{display:none}.work-branches button{color:#62758f;white-space:nowrap;cursor:pointer;background:#eaf0f7;border:0;border-radius:999px;flex:none;padding:8px 12px;font-size:12px}.work-branches button.active{color:var(--blue);background:#e6f1ff;font-weight:700;box-shadow:inset 0 0 0 1px #c9e0ff}.work-item{padding:15px}.work-heading{gap:10px}.work-heading>span,.task-hero>span{width:36px;height:36px;color:var(--blue);background:#e7f2ff;border-radius:11px;flex:none;place-items:center;font-weight:800;display:grid}.work-heading div{min-width:0}.work-heading b{text-overflow:ellipsis;white-space:nowrap;font-size:14px;display:block;overflow:hidden}.work-heading p{color:var(--muted);margin-top:4px;font-size:12px}.work-heading em{color:#d57900;background:#fff2db;border-radius:999px;margin-left:auto;padding:4px 7px;font-size:10px;font-style:normal}.work-item footer{color:var(--muted);border-top:1px solid var(--line);justify-content:space-between;margin-top:13px;padding-top:10px;font-size:11px}.work-item footer i{line-height:.5}.task-hero>span{color:#fff;background:#fff3;width:44px;height:44px}.task-card{margin-top:14px;padding:3px 15px}.task-card p{border-bottom:1px solid var(--line);justify-content:space-between;gap:16px;padding:13px 0;font-size:13px;display:flex}.task-card p:last-child{border:0}.task-card span{color:var(--muted);flex:none}.task-card b{text-align:right;overflow-wrap:anywhere}.task-progress{color:#94a3b7;text-align:center;justify-content:center;align-items:flex-start;gap:5px;margin:23px 0;font-size:13px;display:flex}.task-progress span{color:#8796aa;background:#e8edf3;border-radius:50%;place-items:center;width:60px;height:27px;display:grid}.task-progress span.done{color:#fff;background:var(--blue)}.task-progress small{white-space:nowrap;margin-top:4px;font-size:10px}.task-progress i{background:#dbe3ed;width:38px;height:1px;margin-top:13px}.fixed-action{margin:5px 0 15px}.completion-form h2{font-size:17px}.completion-form>p{color:var(--muted);font-size:12px;line-height:1.6}.profile-card{gap:12px;padding:18px}.profile-avatar{width:50px;height:50px;font-size:20px}.profile-card b,.profile-card small{display:block}.profile-card small{margin-top:4px;font-size:12px}.setting-list{margin-top:14px;padding:0 15px}.setting-list div{justify-content:space-between;padding:15px 0;font-size:14px;display:flex}.setting-list div+div{border-top:1px solid var(--line)}.setting-list b{color:var(--muted);font-size:13px;font-weight:500}.bottom-nav{z-index:5;width:min(100%,680px);padding:8px 12px max(9px, env(safe-area-inset-bottom));-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#fffffff5;border-top:1px solid #e6edf6;grid-template-columns:repeat(4,1fr);margin:auto;display:grid;position:fixed;bottom:0;left:0;right:0;box-shadow:0 -5px 16px #263f610d}.bottom-nav button{color:#8b9aae;cursor:pointer;background:0 0;border:0;place-items:center;gap:3px;padding:3px;font-size:11px;display:grid}.bottom-nav span{font-size:21px;line-height:1}.bottom-nav button.active{color:var(--blue);font-weight:700}.data-error{color:#c33343;background:#fff0f2;border:1px solid #ffdde2;border-radius:12px;margin:0 0 14px;padding:11px 12px;font-size:13px}.data-error button{color:inherit;cursor:pointer;background:0 0;border:0;padding:0;text-decoration:underline}.page-loading,.empty-state{color:var(--muted);text-align:center;padding:28px 14px;font-size:13px}.empty-state{background:#fff;border:1px dashed #d7e1ed;border-radius:15px}.auth-page{text-align:center;align-content:center;justify-items:center;width:min(100% - 36px,360px);min-height:100svh;margin:auto;display:grid}.auth-page>img{object-fit:cover;border-radius:22px;width:82px;height:82px;margin-bottom:25px;box-shadow:0 12px 28px #123d7f2e}.auth-page p{color:var(--blue);letter-spacing:.12em;font-size:12px;font-weight:700}.auth-page h1{margin-top:8px;font-size:29px}.auth-page small{margin-top:12px}.auth-page .primary-action{margin-top:27px}.loading-line{background:#dce8f7;border-radius:4px;width:112px;height:4px;margin-top:28px;overflow:hidden}.loading-line span{background:var(--blue);border-radius:inherit;width:45%;height:100%;animation:1.6s ease-in-out infinite loading;display:block}@keyframes loading{0%{transform:translate(-120%)}to{transform:translate(270%)}}@media (width>=681px){.app-shell{box-shadow:inset 0 0 0 1px #e8eff7}.bottom-nav{border-left:1px solid #e6edf6;border-right:1px solid #e6edf6;border-radius:18px 18px 0 0}}
