.battery-main{max-width:1680px;display:grid;grid-template-columns:minmax(350px,.82fr) minmax(620px,1.7fr);grid-template-areas:"storage storage" "message message" "recent scan" "recent inspection";gap:20px;align-items:start}
.battery-result.is-good{background:#e3f5e9;color:#13763b}.battery-result.is-bad{background:#ffe1e1;color:#c51f2d;border:1px solid #ffc2c5}
.storage-state{grid-area:storage;padding:12px 16px;border-radius:10px;font-weight:700}.storage-state small{display:block;margin-top:4px;font-weight:400}.battery-main>.message{grid-area:message;margin:0}.right-scan{grid-area:scan;margin:0}.right-inspection{grid-area:inspection;margin:0}.recent-panel{grid-area:recent;margin:0;padding:0;overflow:hidden;position:sticky;top:18px;max-height:calc(100vh - 36px);display:flex;flex-direction:column}.recent-head{display:flex;align-items:center;justify-content:space-between;padding:22px 22px 16px;border-bottom:1px solid #e6e9ef}.recent-head small{color:#687386;font-weight:800;letter-spacing:.08em}.recent-head h2{margin:4px 0 0}.recent-head>span{flex:none;padding:6px 10px;border-radius:999px;background:#edf3ff;color:#245bb5;font-size:13px;font-weight:800}.recent-list{overflow-y:auto;padding:8px 12px;display:grid;gap:2px}.result-card{padding:10px 8px;border:1px solid transparent;border-bottom-color:#edf0f4;border-radius:9px;background:transparent;box-shadow:none;outline:none;transition:padding .16s ease,background .16s ease,box-shadow .16s ease,border-color .16s ease}.result-card:hover,.result-card:focus,.result-card:focus-within{padding:16px;margin:4px 0;border-color:#dce4ef;background:#fff;box-shadow:0 10px 28px rgba(28,45,75,.13)}.result-top{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:9px}.result-top strong{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.result-top time{color:#8a94a4;font-size:12px}.result-card dl,.result-card .result-note,.result-card .result-links{display:none}.result-card:hover dl,.result-card:focus dl,.result-card:focus-within dl{margin:14px 0 0;display:grid;gap:7px}.result-card:hover .result-note,.result-card:focus .result-note,.result-card:focus-within .result-note{display:block}.result-card:hover .result-links,.result-card:focus .result-links,.result-card:focus-within .result-links{display:flex}.result-card dl div{display:grid;grid-template-columns:46px 1fr;gap:9px;font-size:13px}.result-card dt{color:#788396}.result-card dd{margin:0;color:#263246;font-weight:650}.result-note{margin:12px 0 0;padding:10px;border-radius:8px;background:#f6f7f9;color:#4b5668;font-size:13px;white-space:pre-wrap}.result-links{gap:8px;margin-top:13px}.result-links a,.result-links span{padding:6px 9px;border-radius:7px;background:#eef3fb;color:#315f9e;font-size:12px;font-weight:750;text-decoration:none}.result-links span{background:#f3f4f6;color:#9299a4}.recent-empty{padding:36px 12px}
@media(max-width:1050px){.battery-main{display:grid;grid-template-columns:1fr;grid-template-areas:"storage" "message" "scan" "inspection" "recent"}.recent-panel{position:static;max-height:none}.recent-list{max-height:none}}
@media(max-width:600px){.battery-main{gap:14px}.recent-head{padding:18px 16px 14px}.recent-list{padding:10px}.result-card{padding:14px}}
.history-clear{display:inline-block;margin-top:7px;color:#3868aa;font-size:12px;font-weight:750;text-decoration:none}.uid-value{overflow-wrap:anywhere;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px}
.result-card{position:relative}.result-photo{display:none}.result-card:hover .result-photo,.result-card:focus .result-photo,.result-card:focus-within .result-photo{display:block;position:absolute;right:16px;top:58px;width:132px;height:112px;border-radius:10px;overflow:hidden;border:1px solid #dce3ec;background:#f1f3f6}.result-photo img{display:block;width:100%;height:100%;object-fit:cover}.result-card.has-photo:hover dl,.result-card.has-photo:focus dl,.result-card.has-photo:focus-within dl{padding-right:145px;min-height:112px}
@media(max-width:430px){.result-card:hover .result-photo,.result-card:focus .result-photo,.result-card:focus-within .result-photo{position:static;width:100%;height:170px;margin-top:12px}.result-card.has-photo:hover dl,.result-card.has-photo:focus dl,.result-card.has-photo:focus-within dl{padding-right:0;min-height:0}}
.header-actions{display:flex;align-items:center;gap:10px}.camera-settings-button{padding:10px 14px;border:1px solid rgba(255,255,255,.35);border-radius:9px;background:rgba(255,255,255,.12);color:#fff;font-weight:800;cursor:pointer}.settings-modal{width:min(480px,calc(100% - 32px));padding:0;border:0;border-radius:18px;box-shadow:0 24px 80px rgba(10,25,50,.3)}.settings-modal::backdrop{background:rgba(12,23,40,.55);backdrop-filter:blur(3px)}.settings-modal>form{padding:24px;display:grid;grid-template-columns:minmax(0,1fr);gap:18px}.settings-modal>form>*{min-width:0;width:100%}.settings-modal-head{display:flex;align-items:flex-start;justify-content:space-between}.settings-modal-head small{color:#657188;font-weight:800;letter-spacing:.08em}.settings-modal-head h2{margin:4px 0 0;white-space:nowrap}.settings-modal-head button{flex:0 0 36px;width:36px;height:36px;border:0;border-radius:50%;background:#eef1f5;color:#536075;font-size:24px;cursor:pointer}.settings-modal label{display:grid;grid-template-columns:1fr;gap:8px;font-weight:800}.settings-modal select{width:100%;height:48px;padding:0 12px;border:1px solid #cbd4df;border-radius:10px;background:#fff;font-size:15px}.settings-modal p{margin:0;color:#687386;font-size:13px;line-height:1.55}.settings-current{padding:12px 14px;border-radius:10px;background:#f2f6fb;color:#607089;font-size:13px}.settings-current strong{display:block;margin-top:4px;color:#1e3859;font-size:16px}.settings-modal-actions{display:flex;width:auto!important;justify-content:flex-end;gap:9px}.settings-modal-actions button{padding:11px 17px;border:0;border-radius:9px;font-weight:800;cursor:pointer}.settings-modal-actions button:last-child{background:#176bc0;color:#fff}@media(max-width:600px){.header-actions{gap:6px}.camera-settings-button{padding:9px 10px;font-size:12px}}
.upload-progress-modal{border:0;background:transparent;padding:20px;max-width:none}.upload-progress-modal::backdrop{background:rgba(15,23,42,.68);backdrop-filter:blur(3px)}.upload-progress-card{width:min(440px,calc(100vw - 40px));box-sizing:border-box;background:#fff;border-radius:22px;padding:30px;box-shadow:0 24px 70px rgba(15,23,42,.35);text-align:center}.upload-progress-icon{display:grid;place-items:center;width:54px;height:54px;margin:0 auto 14px;border-radius:17px;background:#e7f2ff;color:#0873c9;font-size:30px;font-weight:800}.upload-progress-card small{color:#66758d;font-weight:800;letter-spacing:.14em}.upload-progress-card h2{margin:6px 0 8px;font-size:23px}.upload-progress-card>p{margin:0;color:#64748b;line-height:1.55}.upload-progress-track{height:14px;margin:24px 0 12px;border-radius:999px;background:#e8edf4;overflow:hidden}.upload-progress-track>div{height:100%;width:0;border-radius:inherit;background:linear-gradient(90deg,#0873c9,#25a6e8);transition:width .25s ease}.upload-progress-detail{display:flex;align-items:center;justify-content:space-between}.upload-progress-detail strong{font-size:22px;color:#086bb8}.upload-progress-detail span{font-size:13px;color:#64748b}.upload-progress-card .upload-progress-notice{margin-top:22px;padding:12px 14px;border-radius:12px;background:#f3f6fa;font-size:12px;color:#59677a}.upload-progress-card>button{margin-top:18px;padding:11px 24px;border:0;border-radius:9px;background:#176bc0;color:#fff;font-weight:800;cursor:pointer}.upload-progress-modal.upload-error .upload-progress-icon{background:#fee8e8;color:#c9362b}.upload-progress-modal.upload-error .upload-progress-icon::first-letter{font-size:0}.upload-progress-modal.upload-error .upload-progress-track>div{background:#d84a3f}.upload-progress-modal.upload-error .upload-progress-notice{background:#fff1f0;color:#9b3028}
.result-links .video-play-button{padding:6px 9px;border:0;border-radius:7px;background:#e6f5ea;color:#16733b;font-size:12px;font-weight:800;cursor:pointer}.video-player-modal{width:min(960px,calc(100vw - 32px));padding:0;border:0;border-radius:18px;background:#0b1220;color:#fff;box-shadow:0 28px 90px rgba(0,0,0,.55);overflow:hidden}.video-player-modal::backdrop{background:rgba(4,10,20,.78);backdrop-filter:blur(4px)}.video-player-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;background:#111c30}.video-player-head>div{min-width:0}.video-player-head small{color:#91a4c2;font-weight:800;letter-spacing:.12em}.video-player-head h2{margin:4px 0 0;font-size:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.video-player-head button{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;margin:0;padding:0;border:0;border-radius:50%;background:#24324a;color:#fff;font:700 27px/1 Arial,sans-serif;cursor:pointer;appearance:none}.video-player-head button:hover{background:#31425f}.video-player-head button:focus-visible{outline:3px solid #67b7ff;outline-offset:2px}.video-player-body{padding:16px 16px 18px}.video-player-body video{display:block;width:100%;max-height:72vh;border-radius:10px;background:#000}.video-player-body p{margin:12px 2px 0;color:#aab8cd;font-size:13px}
.result-links .photo-view-button{padding:6px 9px;border:0;border-radius:7px;background:#eef3fb;color:#315f9e;font-size:12px;font-weight:800;cursor:pointer}.result-photo.photo-view-button{padding:0;cursor:zoom-in}.photo-viewer-modal{width:min(1080px,calc(100vw - 32px));padding:0;border:0;border-radius:18px;background:#0b1220;color:#fff;box-shadow:0 28px 90px rgba(0,0,0,.55);overflow:hidden}.photo-viewer-modal::backdrop{background:rgba(4,10,20,.82);backdrop-filter:blur(4px)}.photo-viewer-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;background:#111c30}.photo-viewer-head>div{min-width:0}.photo-viewer-head small{color:#91a4c2;font-weight:800;letter-spacing:.12em}.photo-viewer-head h2{margin:4px 0 0;font-size:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.photo-viewer-head button{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;margin:0;padding:0;border:0;border-radius:50%;background:#24324a;color:#fff;font:700 27px/1 Arial,sans-serif;cursor:pointer}.photo-viewer-body{max-height:calc(100vh - 150px);padding:16px;overflow:auto;text-align:center}.photo-viewer-body img{display:block;max-width:100%;max-height:72vh;margin:auto;border-radius:10px;background:#05080d;object-fit:contain;cursor:zoom-in}.photo-viewer-body img.zoomed{max-width:none;max-height:none;cursor:zoom-out}.photo-viewer-body p{margin:12px 2px 0;color:#aab8cd;font-size:13px}
.media-viewer-modal{width:min(1080px,calc(100vw - 32px));padding:0;border:0;border-radius:18px;background:#0b1220;color:#fff;box-shadow:0 28px 90px rgba(0,0,0,.58);overflow:hidden}.media-viewer-modal::backdrop{background:rgba(4,10,20,.82);backdrop-filter:blur(4px)}.media-viewer-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px 14px;background:#111c30}.media-viewer-head>div{min-width:0}.media-viewer-head small{color:#91a4c2;font-weight:800;letter-spacing:.12em}.media-viewer-head h2{margin:4px 0 0;font-size:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.media-viewer-head>button{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;margin:0;padding:0;border:0;border-radius:50%;background:#24324a;color:#fff;font:700 27px/1 Arial,sans-serif;cursor:pointer}.media-viewer-tabs{display:flex;gap:6px;padding:0 20px 14px;background:#111c30}.media-viewer-tabs button{padding:10px 17px;border:1px solid #33435e;border-radius:9px;background:#18253a;color:#b7c4d8;font-weight:800;cursor:pointer}.media-viewer-tabs button.active{border-color:#2d91df;background:#1675bd;color:#fff}.media-viewer-body{max-height:calc(100vh - 210px);padding:16px;overflow:auto;text-align:center}.media-viewer-body img,.media-viewer-body video{display:block;max-width:100%;max-height:68vh;margin:auto;border-radius:10px;background:#05080d;object-fit:contain}.media-viewer-body img{cursor:zoom-in}.media-viewer-body img.zoomed{max-width:none;max-height:none;cursor:zoom-out}.media-viewer-body [hidden]{display:none}.media-viewer-body p{margin:12px 2px 0;color:#aab8cd;font-size:13px}@media(max-width:600px){.media-viewer-tabs{padding:0 12px 12px}.media-viewer-tabs button{flex:1;padding:9px 5px;font-size:12px}.media-viewer-head{padding:15px 14px 12px}}
