/* Local base styles keep the complete interface usable without Tailwind CDN. */
body dialog{padding:25px}@media(max-width:760px){body dialog{padding:19px}}
.explore-panel{padding:14px 18px;margin-bottom:22px}.explore-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.explore-toolbar>div{display:flex;gap:6px}.btn.active{background:#e1f1eb;border-color:#9ec7b7;color:#116e60}.explore-toolbar .muted{font-size:11px}#aedMap{height:440px;isolation:isolate;border-radius:9px;margin-top:16px;background:#dce8e9;z-index:0}.map-legend{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:11px;margin-top:12px;color:#58717c}.legend-dot{width:9px;height:9px;display:inline-block;border-radius:50%;margin-left:7px}.legend-dot.green{background:#158060}.legend-dot.yellow{background:#d3a126}.legend-dot.red{background:#c54c48}.legend-dot.unknown{background:#7b8f99}.map-legend>span:last-child{margin-left:10px}.distance-tag{background:#e5f3f4!important;color:#226b7b!important}.leaflet-container{font-family:inherit;font-size:12px}.leaflet-popup-content p{margin:8px 0!important}.leaflet-control-attribution{font-size:9px!important}.leaflet-control-attribution a{text-decoration:underline!important;color:#256c87!important}.sop-instruments{margin-top:22px;padding-top:19px;border-top:1px solid #e2eaed}.sop-instruments h3{margin-bottom:13px}.timer-row,.recording-row{display:flex;gap:9px;align-items:center;flex-wrap:wrap}#testTimer{font:700 26px ui-monospace,monospace;color:#0c7367;min-width:95px;padding:8px 12px;background:#edf7f2;border-radius:8px}.timer-row .btn,.recording-row .btn{font-size:11px}.sop-instruments .check-row{font-size:11px}#callTags{display:grid;grid-template-columns:1fr 1fr;gap:3px 12px;margin:14px 0}#callTags legend{font-size:12px;font-weight:700;margin-bottom:9px}#memoPreview{width:100%;margin-top:15px}#settingsDialog{width:min(920px,calc(100% - 28px))}.settings-tabs{display:flex;gap:8px;border-bottom:1px solid #e0e8eb;margin-bottom:18px;padding-bottom:15px}.binding-box{background:#f2f8f6;border:1px solid #d9e9e2;border-radius:9px;padding:16px}.binding-box>label{margin-top:0!important}.binding-box textarea{font-size:12px}#bindingQr{background:white;padding:15px;border:1px solid #dbe3e8;border-radius:8px;max-width:260px;margin:15px auto}#bindingQr svg{width:100%;height:auto}.drop-zone{display:flex;flex-direction:column;align-items:center;gap:8px;padding:25px 15px;background:#f2f8f6;border:2px dashed #afcfc1;border-radius:9px;text-align:center;cursor:pointer}.drop-zone small{font-size:10px;font-weight:400;color:#7d9097}.drop-zone input{border:0;background:none;font-size:11px;max-width:350px}.drop-zone.dragging{background:#d7eee5;border-color:#127562}.import-file{display:grid;grid-template-columns:minmax(0,1.3fr) 1fr 1fr auto;gap:10px;align-items:center;border-bottom:1px solid #e4ebed;padding:10px 0}.import-file>span{font-size:12px;overflow-wrap:anywhere}.import-file>span>small{display:block;color:#8a9ba3;font-size:10px}.import-file label{font-size:10px;margin:0!important}.import-file select{font-size:11px;padding:7px}.mapping-panel{border:1px solid #d7e3e7;padding:13px;border-radius:8px;margin:12px 0;font-size:12px}.mapping-panel summary{cursor:pointer;font-weight:650}.mapping-panel .fields{margin-top:15px;grid-template-columns:repeat(3,minmax(0,1fr))}.mapping-panel label{margin:0!important}.mapping-panel select{font-size:11px}.admin-import{margin-top:18px;padding:15px;border:1px solid #dce5e8;border-radius:8px}.admin-import summary{cursor:pointer;font-size:13px;font-weight:700}#importReview{font-size:12px;overflow-wrap:anywhere}#importReview ul{padding-left:20px;max-height:230px;overflow:auto}#qrVideo{width:100%;max-height:60vh;background:#163741;border-radius:8px}#bindingPreview{overflow-wrap:anywhere}.recording-row .muted{font-size:11px}@media(max-width:760px){.explore-panel{padding:12px}.explore-toolbar{gap:9px}.explore-toolbar .btn{font-size:11px;padding:8px 10px}.explore-toolbar .muted{font-size:10px}#aedMap{height:350px}.import-file{grid-template-columns:1fr 1fr;gap:5px 12px}.import-file>span{grid-column:1/-1}.import-file>.text-btn{grid-column:2;text-align:right}.mapping-panel .fields{grid-template-columns:1fr 1fr}#callTags{grid-template-columns:1fr}.settings-tabs .btn{font-size:11px}.binding-box{padding:12px}.binding-box .btn{font-size:11px}.timer-row{gap:7px}.timer-row .btn{padding:8px;font-size:10px}.map-legend{font-size:10px}#settingsDialog .dialog-actions .btn{font-size:11px;white-space:normal}}
body h1{font-size:30px;line-height:1.6;font-weight:750}body h2{font-size:18px;line-height:1.6;font-weight:750}body h3{font-size:14px;line-height:1.6;font-weight:700}
.brand small{white-space:nowrap}.brand-mark{flex-shrink:0}
@media(max-width:500px){.topbar .top-actions{display:grid;grid-template-columns:auto auto;gap:3px 7px}.topbar .network{grid-column:1/-1;justify-self:end;white-space:nowrap;font-size:9px;line-height:1.3}.topbar .brand{flex-shrink:0}.topbar .brand small{font-size:6px;letter-spacing:1px}.topbar .header-btn{min-height:29px;padding:4px 8px}.topbar .header-btn:only-of-type{grid-column:2}}
:root{font-family:Inter,"Noto Sans TC","Microsoft JhengHei",system-ui,sans-serif;color:#183640;background:#f3f6f7;font-synthesis:none;line-height:1.6;--ink:#102b35;--mint:#087f71;--line:#dce5e8;--muted:#60757e}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,label,input,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}a{color:inherit;text-decoration:none}input,select,textarea{width:100%;border:1px solid #cbd9df;border-radius:8px;padding:10px 11px;background:#fff;color:var(--ink);min-height:44px}input[type=checkbox]{width:18px;min-height:18px;height:18px;accent-color:var(--mint);flex-shrink:0}input:focus,select:focus,textarea:focus,button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #79cbbd;outline-offset:3px}label{display:block;font-size:13px;font-weight:600}label>input,label>select,label>textarea{margin-top:6px}fieldset{border:0;padding:0;margin:0;min-width:0}h1,h2,h3,p{margin:0}h1{font-size:30px;letter-spacing:-1px;font-weight:750}h2{font-size:18px;font-weight:750}h3{font-size:14px}small{font-size:12px}[hidden]{display:none!important}.topbar{min-height:84px;background:var(--ink);padding:16px max(24px,calc((100vw - 1440px)/2));display:flex;align-items:center;justify-content:space-between;color:white;gap:16px}.brand{display:flex;align-items:center;gap:12px;font-weight:750;font-size:21px;letter-spacing:1px}.brand small{display:block;font-size:9px;letter-spacing:2px;font-weight:500;color:#a8c1c8;margin-top:1px}.brand-mark{width:42px;height:44px;border-radius:12px;background:#b8f1d5;display:grid;place-items:center;color:#102b35;font-size:34px;position:relative}.brand-mark b{position:absolute;color:#b8f1d5;font-size:28px;top:0;left:17px;transform:rotate(8deg)}.top-actions{display:flex;align-items:center;gap:16px}.network{font-size:12px;color:#b8f1d5}.network:before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:currentColor;margin-right:7px}.network.offline{color:#ffca83}.btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid #cbd9df;border-radius:8px;background:white;padding:10px 15px;min-height:44px;font-size:13px;font-weight:650;gap:7px;white-space:nowrap}.btn:hover{background:#edf4f4}.btn.primary{background:var(--mint);color:white;border-color:var(--mint)}.btn.primary:hover{background:#06685d}.header-btn{color:#e2edef;border-color:#49606a;background:transparent;font-size:12px;min-height:38px;padding:7px 14px}.header-btn:hover{background:#284650}.shell{max-width:1440px;margin:auto;padding:32px 32px 0}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:23px}.eyebrow{font-size:11px;letter-spacing:1.4px;color:var(--mint);font-weight:750;margin-bottom:5px}.muted{color:var(--muted);font-size:13px}.page-heading .muted{margin-top:6px}.phase-tag{font-size:11px;letter-spacing:1.2px;font-weight:700;color:#54717b;text-align:right}.phase-tag span{display:block;font-size:12px;letter-spacing:0;font-weight:400;margin-top:5px}.notice{padding:10px 14px;border:1px solid #d2dfda;background:#eaf3ed;color:#365e4e;font-size:12px;border-radius:7px;margin-bottom:20px}.notice.demo{background:#fff5de;border-color:#efdfb8;color:#846226}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:24px}.stats>div{border:1px solid var(--line);border-radius:11px;background:white;padding:19px 22px;display:flex;align-items:center;gap:15px}.stats p{font-size:12px;color:var(--muted)}.stats strong{font-size:25px;line-height:1.3;color:var(--ink);display:block;margin-top:3px;font-weight:750}.stat-icon{width:40px;height:40px;display:grid;place-items:center;background:#e8f7f1;color:var(--mint);border-radius:10px;font-size:23px}.stat-icon.amber{background:#fff3dc;color:#bc7d13}.stat-icon.blue{background:#eaf1fb;color:#4d76b0}.stats .text-btn{margin-left:auto;font-size:11px}.workspace{display:grid;grid-template-columns:340px minmax(0,1fr);gap:24px;align-items:start}.card{background:white;border:1px solid var(--line);border-radius:11px}.point-panel{overflow:hidden;position:sticky;top:20px}.panel-heading{display:flex;align-items:center;justify-content:space-between;padding:20px 18px 15px;gap:6px}.panel-heading h2{font-size:16px}.count{font-size:11px;background:#edf2f3;padding:2px 7px;border-radius:6px;margin-left:4px;color:#5a717b}.text-btn{border:0;padding:6px 2px;background:none;color:var(--mint);font-size:12px;min-height:32px;font-weight:650}.text-btn:hover{text-decoration:underline}.search{display:flex;align-items:center;margin:0 18px;position:relative}.search span{position:absolute;left:12px;font-size:22px;color:#6a828b}.search input{padding-left:35px;font-size:12px;background:#f8fafb;margin:0}.source-filters{padding:17px 18px 14px;display:grid;grid-template-columns:1fr 1fr;gap:8px}.source-filters legend{font-size:11px;color:#637a83;padding-top:15px;margin-bottom:7px;font-weight:650}.source-filters legend span{font-weight:400;margin-left:8px;color:#8c9ba0}.source-filters label{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:500}.source-filters input{margin:0;width:15px;height:15px;min-height:15px}.list-toolbar{border-top:1px solid #edf1f2;border-bottom:1px solid #edf1f2;display:flex;justify-content:space-between;align-items:center;padding:7px 18px;font-size:10px;color:#788b93}.point-list{max-height:620px;overflow:auto}.point-item{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid #edf1f2;border-left:3px solid transparent;background:white;padding:17px 16px}.point-item:hover{background:#f5faf8}.point-item.active{background:#eef8f4;border-left-color:var(--mint)}.point-title{font-size:14px;font-weight:700;display:flex;justify-content:space-between;gap:8px}.point-address{font-size:11px;color:#74868e;margin:6px 0 10px;line-height:1.6}.point-tags{display:flex;gap:5px;flex-wrap:wrap}.tag{display:inline-block;border:1px solid #dce5e7;color:#60777f;border-radius:4px;padding:1px 5px;font-size:9px;background:white}.status-dot{display:inline-block;flex-shrink:0;width:7px;height:7px;background:#8fa1a8;border-radius:50%;margin-top:7px}.status-dot.green{background:#29916d}.status-dot.red{background:#d66354}.status-dot.yellow{background:#d0a22b}.panel-foot{padding:12px;text-align:center;font-size:10px;color:#7d9199;background:#fafcfc}.selected-header{display:flex;align-items:start;justify-content:space-between;padding:0 0 18px;gap:15px}.selected-header h2{font-size:23px;margin-bottom:5px}.selected-header .eyebrow{font-size:10px}.pill{display:inline-block;white-space:nowrap;font-size:10px;color:#587a70;background:#e4f0ea;border-radius:5px;padding:4px 7px}.inspector-row{padding:17px 20px;display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}.required{color:#be5d50}.form-section{margin-bottom:14px;overflow:hidden}.form-section summary{display:flex;align-items:center;gap:14px;padding:19px 20px;cursor:pointer;list-style:none}.form-section summary::-webkit-details-marker{display:none}.form-section summary b{display:block;font-size:15px}.form-section summary small{display:block;color:#82939a;margin-top:3px;font-size:11px}.step-no{font-size:13px;display:grid;place-items:center;border:1px solid #d7e8e0;background:#f1f8f4;color:var(--mint);width:35px;height:35px;border-radius:9px;font-weight:750;flex-shrink:0}.fold-icon{margin-left:auto;font-size:20px;color:#7c9199;transition:transform .15s}.form-section[open] .fold-icon{transform:rotate(180deg)}.section-body{border-top:1px solid #e9eff1;padding:21px}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.fields .full{grid-column:1/-1}.fields label{color:#42606a;font-size:12px}.fields input,.fields select,.fields textarea{font-size:13px}.field-help{display:block;font-weight:400;font-size:10px;color:#84959b;margin-top:4px}.check-row{display:flex;gap:9px;align-items:center;min-height:44px}.check-row input{margin:0}.field-heading{margin:24px 0 12px;font-size:13px;font-weight:650}.field-heading span{display:block;font-size:10px;color:#819299;font-weight:400;margin-top:3px}.navigation-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:16px}.navigation-tools .btn{font-size:11px;padding:8px 12px;min-height:38px}.navigation-tools .muted{font-size:10px}.photos{display:grid;grid-template-columns:1fr 1fr;gap:14px}.photo-box{border:1px dashed #c3d5dc;border-radius:8px;background:#fafcfc;padding:16px;text-align:center}.photo-box>label{color:var(--mint);cursor:pointer;font-size:12px}.photo-box small{display:block;color:#8a9ba2;font-size:10px;font-weight:400;margin:5px 0 10px}.photo-box input{padding:4px;font-size:10px;min-height:30px;border:0;background:none;max-width:100%}.photo-box img{width:100%;max-height:220px;object-fit:contain;margin-top:10px;border-radius:5px}.expiry-summary{display:flex;gap:9px;flex-wrap:wrap;margin-top:20px}.expiry-chip{padding:7px 10px;border-radius:6px;font-size:11px;background:#f0f3f4;color:#697d86}.expiry-chip.green{background:#eaf6ee;color:#277346}.expiry-chip.yellow{background:#fff4d8;color:#8f6906}.expiry-chip.red{background:#fcece7;color:#ae4d3b}.test-toggle{padding:14px;background:#f1f7f5;border-radius:7px;margin:20px 0 0;font-size:12px}.safety-note{font-size:11px;background:#fff7e5;color:#8b6726;padding:13px;border-radius:7px;margin-top:16px}.sop-step{margin-top:21px}.sop-step legend,.sop-step h3{font-size:13px;font-weight:700;margin-bottom:13px}.sop-step legend span,.sop-step h3 span{display:inline-grid;place-items:center;width:22px;height:22px;background:#eaf2f2;border-radius:50%;margin-right:7px;font-size:11px}.physical-steps:disabled{opacity:.5}.inline-note{font-size:11px;color:#7c8c93;margin:10px 0}.callback-lock{background:#fff1dd;border:1px solid #e5c998;color:#8a5b14;padding:14px;border-radius:8px;font-size:12px;margin-top:15px}.notes-panel{padding:19px 20px}.notes-panel label{margin-bottom:8px}.notes-panel textarea{font-size:12px}.submit-bar{margin:20px 0 0;padding:17px 0;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid #dce5e8}.submit-bar strong{font-size:11px;display:block}.submit-bar small{font-size:10px;color:#7b9199;display:block;margin-top:3px}.submit-actions{display:flex;gap:9px}.submit-actions .btn{font-size:12px}.empty-state{padding:80px 25px;text-align:center;color:#6f858e}.empty-state>span{font-size:44px;color:#8eb5ab}.empty-state h2{margin:10px 0;font-size:20px}.empty-state p{font-size:13px}.no-results{padding:36px 20px;text-align:center;font-size:12px;color:#738a93}.error-box{background:#fff0ed;border:1px solid #ebc5bd;color:#a34737;padding:14px 18px;border-radius:8px;margin-top:16px;font-size:12px;white-space:pre-line}.error-box ul{padding-left:19px;margin:0}footer{padding:28px 0 23px;border-top:1px solid #dce5e8;display:flex;gap:16px;margin-top:34px;align-items:center;font-size:10px;color:#788d96}footer span{color:#8a9ba2}footer button{margin-left:auto}dialog{border:1px solid #d6e1e4;box-shadow:0 24px 90px #102b3530;border-radius:14px;padding:25px;width:min(630px,calc(100% - 28px));max-height:90dvh;overflow:auto;color:var(--ink);background:white}dialog::backdrop{background:#102b357a;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.icon-btn{background:none;border:0;font-size:27px;color:#70858e;min-width:40px;height:40px}.dialog-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:16px}dialog label{margin:15px 0}dialog .dialog-actions label{margin:0}dialog textarea{font-size:12px}.queue-item{padding:13px 0;border-bottom:1px solid #e4eaec;display:flex;justify-content:space-between;gap:10px;font-size:12px}.queue-item small{display:block;color:#7c8d95;font-size:10px;overflow-wrap:anywhere}.queue-item .queue-error{color:#b85a46}.toast{position:fixed;bottom:max(24px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);background:#163c46;color:white;border:1px solid #3e626b;border-radius:9px;padding:13px 22px;box-shadow:0 8px 25px #102b3522;max-width:calc(100vw - 30px);width:max-content;font-size:12px;z-index:100}.skip{position:fixed;top:-100px;left:12px;background:white;padding:10px;z-index:200}.skip:focus{top:10px}@media(min-width:1440px){.shell{padding-left:0;padding-right:0;max-width:1376px}}@media(max-width:1100px){.workspace{grid-template-columns:290px minmax(0,1fr);gap:18px}.shell{padding:25px 20px 0}.stats>div{padding:16px}.stats .text-btn{font-size:0}.stats .text-btn:after{content:"管理 →";font-size:11px}.source-filters{grid-template-columns:1fr}.submit-bar{align-items:stretch;flex-direction:column}.submit-actions{justify-content:flex-end}.selected-header h2{font-size:21px}}@media(max-width:760px){.topbar{padding:15px 16px;min-height:77px}.brand{font-size:18px;gap:9px}.brand small{font-size:7px;letter-spacing:1.4px}.brand-mark{width:34px;height:37px;font-size:29px}.brand-mark b{left:14px;font-size:24px}.top-actions{gap:8px}.network{font-size:10px}.header-btn{padding:6px 9px;min-height:34px;font-size:10px}.shell{padding:24px 15px 0}.page-heading{margin-bottom:17px}.page-heading h1{font-size:25px}.page-heading .muted{font-size:11px}.eyebrow{font-size:10px}.phase-tag{display:none}.stats{gap:8px;margin-bottom:18px}.stats>div{padding:12px 10px;gap:0;display:block}.stats .stat-icon{display:none}.stats p{font-size:9px}.stats strong{font-size:23px}.stats .text-btn{padding:0;min-height:22px}.stats .text-btn:after{font-size:9px}.workspace{display:flex;flex-direction:column;gap:23px}.point-panel,.inspection-panel{width:100%}.point-panel{position:static}.point-list{max-height:285px}.source-filters{grid-template-columns:1fr 1fr}.point-item{padding:13px 15px}.point-address{margin:3px 0 6px}.panel-foot{padding:8px}.selected-header{padding-bottom:14px}.selected-header h2{font-size:21px}.selected-header .pill{font-size:9px}.inspector-row{padding:15px;gap:12px}.form-section summary{padding:17px 15px;gap:10px}.form-section summary b{font-size:13px}.form-section summary small{font-size:10px}.section-body{padding:17px 15px}.fields{gap:14px 12px}.fields label{font-size:11px}.fields input,.fields select{font-size:12px;padding:9px;min-width:0}.photos{gap:10px}.photo-box{padding:12px 8px}.photo-box input{font-size:9px}.photo-box small{font-size:9px}.field-heading span{font-size:9px}.submit-actions .btn{font-size:11px;flex:1;padding:11px 7px}.submit-actions{gap:7px}.submit-bar{padding-bottom:16px}.notice{font-size:10px}.notes-panel{padding:15px}footer{flex-wrap:wrap;gap:6px}footer span{flex-basis:100%;order:3}footer button{font-size:10px}dialog{padding:19px}.sop-step legend,.sop-step h3{font-size:12px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.onboarding-step { padding: .9rem; margin-block: .75rem; border: 1px solid var(--line, #cbd5dc); border-radius: .75rem; }
.onboarding-step summary { font-weight: 700; cursor: pointer; }
.onboarding-step p { line-height: 1.75; }
.settings-tabs { flex-wrap: wrap; }
#cloudCheckBtn { white-space: normal; text-align: left; }
#cloudResourceLinks { display: flex; gap: .6rem; flex-wrap: wrap; }
/* Latest inspection result is distinct from a confirmed missing device. */
.point-tags .not-found-tag { background: #fff1dc; color: #7a4300; font-weight: 700; }
