:root{--ink:#203a35;--muted:#74827b;--green:#176b53;--line:#dfe5de;--paper:#f6f7f2;--white:#fff;--accent:#d9eddf;--error:#ab3e34;font-family:"Segoe UI","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--paper);font-size:14px}*{box-sizing:border-box}body{margin:0}button,a,label,input{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;border:0;border-radius:8px;padding:11px 17px;transition:background .15s,color .15s}button:disabled{opacity:.4;cursor:not-allowed}button:focus-visible,a:focus-visible{outline:3px solid #5db091;outline-offset:4px}a{color:inherit;text-decoration:none}header{height:88px;max-width:1240px;margin:auto;padding:0 36px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;gap:13px;align-items:center;font-weight:650;font-size:16px}.brand small{display:block;font-weight:400;color:var(--muted);font-size:10px;letter-spacing:1.4px;margin-top:5px}.brand-icon{display:grid;place-items:center;width:43px;height:43px;border-radius:12px;background:var(--green);color:white;font-size:20px;letter-spacing:-1px}.badge{border:1px solid var(--line);border-radius:24px;padding:8px 13px;font-size:12px;color:var(--green)}main{max-width:1240px;padding:0 36px;margin:auto}.intro{display:flex;align-items:center;justify-content:space-between;padding:42px 0 27px;gap:20px}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--green);font-weight:650}h1{font-size:34px;letter-spacing:-1.1px;font-weight:650;margin:13px 0}p{line-height:1.75}.intro p{color:var(--muted);margin:0}.notice{padding:12px 17px;border-radius:8px;background:#e9eee7;color:#526b59;font-size:12px;line-height:1.7;margin-bottom:23px}.notice.error{background:#f8e9e5;color:var(--error)}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:24px}.main-panel{background:var(--white);border:1px solid var(--line);border-radius:14px;overflow:hidden}.section{padding:24px 26px}.section+.section{border-top:1px solid var(--line)}.section-heading{display:flex;align-items:center;gap:10px;margin-bottom:20px}.number{font-size:11px;font-weight:650;color:var(--green);background:#edf3ed;border-radius:6px;padding:5px 7px}h2{font-size:16px;font-weight:650;margin:0}.section-heading .muted{margin-left:auto;font-size:11px}.muted,.hint{color:var(--muted)}.device-line{display:flex;align-items:center;gap:17px;margin:0 0 18px}.device-art{width:85px;height:70px;background:var(--paper);border-radius:12px;display:grid;place-items:center}.device-art svg{width:70px;fill:none;stroke:var(--green);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.device-line h3{font-size:15px;margin:0 0 6px}.device-line p{font-size:11px;color:var(--muted);margin:0}.buttons{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.secondary{background:white;border:1px solid var(--line);font-size:12px}.secondary:hover:not(:disabled){background:#edf3ed}.text-button{background:transparent;color:var(--green);font-size:12px;padding:9px 7px}.hint{font-size:11px;margin:12px 0 17px}.version-line{display:flex;gap:22px;flex-wrap:wrap;background:var(--paper);padding:11px 13px;border-radius:7px;color:var(--muted);font-size:11px}.version-line b{color:var(--ink);font-weight:500;margin-left:8px}.dropzone{display:flex;align-items:center;flex-direction:column;justify-content:center;gap:9px;border:1px dashed #bdcdc0;background:#fafcf8;min-height:155px;border-radius:9px;cursor:pointer;text-align:center;padding:16px;position:relative;overflow:hidden}.dropzone:hover,.dropzone.drag{background:#edf4ed;border-color:var(--green)}.dropzone strong{font-size:13px;font-weight:500;overflow-wrap:anywhere}.dropzone>span:last-of-type{font-size:11px;color:var(--muted)}.file-icon{font-size:22px;color:var(--green);width:36px;height:36px;background:#e8f0e7;border-radius:8px;display:grid;place-items:center}.dropzone input{position:absolute;width:100%;height:100%;inset:0;opacity:0;cursor:pointer}.image-details{font:11px/1.8 Consolas,monospace;color:var(--muted);margin-top:12px;overflow-wrap:anywhere}.action-section{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#fafbf8}.action-section h2{font-size:14px}.action-section p{font-size:11px;margin:6px 0 0;color:var(--muted)}.primary{background:var(--green);color:white;min-width:135px;font-size:13px}.primary:hover:not(:disabled){background:#105b44}.primary span{margin-left:15px}.progress-panel{background:#eef2e9;border:1px solid #dfe5d9;border-radius:14px;padding:28px 24px;display:flex;flex-direction:column}.progress-heading{display:flex;align-items:center;justify-content:space-between;margin:25px 0 15px}.progress-heading h2{font-size:17px}#percentage{font-size:32px;font-weight:500;letter-spacing:-1px}#percentage span{font-size:15px;margin-left:3px;color:var(--muted)}.progress-track{height:6px;background:#d9e2d3;border-radius:8px;overflow:hidden}#progressFill{height:100%;width:0;background:var(--green);transition:width .15s}#progressText{font-size:11px;color:var(--muted);margin:10px 0 25px}ol{padding:0;margin:0;list-style:none}#steps li{display:flex;gap:13px;position:relative;padding-bottom:25px}#steps li:not(:last-child):before{content:"";position:absolute;left:9px;top:22px;height:31px;border-left:1px solid #cad6c7}.step-dot{border:1px solid #bdcbbb;width:20px;height:20px;border-radius:50%;flex-shrink:0;display:grid;place-items:center;color:white;font-size:11px}#steps strong{font-size:12px;font-weight:500;color:#778472}#steps small{display:block;color:#8e9988;font-size:10px;margin-top:6px;line-height:1.5}#steps .active strong,#steps .done strong{color:var(--ink)}#steps .active .step-dot{border:5px solid var(--green)}#steps .done .step-dot{background:var(--green);border-color:var(--green)}#steps .done .step-dot:after{content:"✓"}.status-foot{display:flex;justify-content:space-between;gap:12px;padding-top:18px;border-top:1px solid #dce4d6;margin-top:auto;font-size:10px;color:var(--muted)}.status-foot b{display:block;color:var(--ink);font:12px Consolas,monospace;margin-top:7px}.log-panel{margin-top:24px;border:1px solid var(--line);border-radius:12px;background:white;overflow:hidden}.log-heading{display:flex;align-items:center;justify-content:space-between;padding:13px 22px;border-bottom:1px solid var(--line)}.log-heading h2{font-size:13px}.log-heading h2 span{font-size:10px;color:var(--muted);margin-left:8px}#logs{padding:14px 22px;height:132px;overflow:auto;font-size:11px;line-height:1.9;font-family:Consolas,"Microsoft YaHei",monospace}.empty-log{color:var(--muted);margin:0}.log-row{display:flex;gap:15px}.log-row time{color:var(--muted);flex-shrink:0}.log-row.error{color:var(--error)}footer{display:flex;justify-content:space-between;gap:15px;padding:23px 0 30px;font-size:10px;color:var(--muted)}footer a{color:var(--green)}[hidden]{display:none!important}@media(max-width:950px){.workspace{grid-template-columns:minmax(0,1fr) 290px}.section{padding:21px 19px}main,header{padding-left:22px;padding-right:22px}.version-line{gap:12px}.action-section{flex-wrap:wrap}}@media(max-width:730px){header{height:75px}.workspace{grid-template-columns:1fr}.intro{padding-top:28px;align-items:flex-start}h1{font-size:27px}.intro p{font-size:12px}.progress-panel{padding:23px}.progress-heading{margin-top:16px}#steps{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}#steps li:before{display:none}footer{flex-direction:column}.badge{font-size:10px}.brand{font-size:13px}}

label:focus-within,input:focus,textarea:focus,select:focus{outline:none;box-shadow:none}

.firmware-list{display:grid;gap:10px;margin:16px 0}.firmware-card{border:1px solid var(--line);border-radius:9px;padding:13px 16px}.firmware-card h3{font-size:13px;margin:0 0 7px}.firmware-card p{font-size:12px;margin:5px 0}.firmware-card .hint{font-size:11px;margin-bottom:0}.reinstall-option{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);margin-top:14px}.reinstall-option input{accent-color:var(--green)}

.device-info{flex:1;min-width:0}.device-info h3,.device-info p{overflow-wrap:anywhere}.connection-toggle{margin-left:auto;flex-shrink:0}.device-art{flex-shrink:0}@media(max-width:450px){.device-line{gap:10px}.device-art{width:55px;height:55px}.device-art svg{width:48px}.connection-toggle{padding:10px;font-size:11px}}

#device-permission{max-width:480px;width:calc(100% - 40px);border:1px solid var(--line);border-radius:14px;padding:26px;color:var(--ink);box-shadow:0 18px 60px #16251b33}#device-permission::backdrop{background:#12221866}#device-permission>p{font-size:13px;line-height:1.8}#device-permission .buttons{margin-top:20px}
