.page-head{flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:24px;display:flex}.page-head h1{font-size:26px;font-weight:700}.page-head p{color:var(--text-muted);margin-top:4px;font-size:13px}.section-title{margin:28px 0 12px;font-size:17px;font-weight:700}.history-card{margin-top:20px}.history-card .table-wrap{margin-top:8px}.range-switch{border:1px solid var(--border);background:var(--bg);border-radius:999px;gap:4px;padding:4px;display:flex}.range-switch button{color:var(--text-muted);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:999px;padding:6px 14px;font-size:13px;font-weight:600;transition:background .2s,color .2s}.range-switch button:hover{color:var(--text)}.range-switch button[aria-pressed=true]{background:var(--green-soft);color:var(--green-dark)}.range-switch button:focus-visible{outline:2px solid var(--green);outline-offset:2px}.tiles{grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:16px;margin-bottom:20px;display:grid}.tile{border:1px solid var(--border);border-radius:var(--radius);background:var(--bg);box-shadow:var(--shadow);flex-direction:column;gap:2px;padding:14px 16px;display:flex}.tile span{color:var(--text-muted);font-size:12px}.tile strong{font-variant-numeric:tabular-nums;font-size:24px;font-weight:700}.tile small{color:var(--text-muted);font-size:12px}.chart-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;display:grid}.chart-wide{grid-column:1/-1}.chart-head{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.chart-box{margin-top:12px;position:relative}.chart-box.is-empty{min-height:160px;color:var(--text-muted);place-items:center;font-size:13px;display:grid}.mchart{width:100%;height:auto;display:block;overflow:visible}.mchart .grid{stroke:#eee;stroke-width:1px}.mchart .axis{fill:#9ca3af;font-size:12px}.mchart .value{fill:var(--text);font-size:13px;font-weight:600}.mchart .crosshair{stroke:#c7cbd1;stroke-width:1px;stroke-dasharray:3 3}.mchart .bar-group{transition:opacity .15s}.mchart .bar-group.is-dim{opacity:.35}.legend{color:var(--text-muted);gap:14px;margin:0;padding:0;font-size:12px;list-style:none;display:flex}.legend li{align-items:center;gap:6px;display:flex}.legend .swatch{border-radius:3px;width:10px;height:10px}.status-banner{background:#f2fbf5;border-color:#cbefd7;align-items:center;gap:14px;margin-bottom:20px;display:flex}.status-banner h2{font-size:16px;font-weight:700}.status-banner p{color:var(--text-muted);margin-top:2px;font-size:13px}.status-banner-icon{background:var(--green);color:#fff;border-radius:50%;flex-shrink:0;place-items:center;width:40px;height:40px;display:grid}.status-banner-icon svg{fill:none;stroke:currentColor;stroke-width:2.4px;stroke-linecap:round;stroke-linejoin:round;width:22px;height:22px}.status-banner.is-alert{background:#fff4f1;border-color:#f6c9be}.status-banner.is-alert .status-banner-icon{background:#c9573c}.status-banner.is-muted{border-color:var(--border);background:var(--bg)}.status-banner.is-muted .status-banner-icon{background:#d1d5db}.scan-card{margin-bottom:24px;padding:28px}.scan-card .chart-sub{margin-bottom:22px}.scan-controls{flex-direction:column;gap:20px;display:flex}.pred-page>.panel{margin-bottom:20px}.pred-run{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:20px;margin-top:16px;display:flex}.pred-toggle,.pred-device{align-items:center;gap:12px;display:flex}.pred-toggle-text{flex-direction:column;gap:2px;min-width:0;display:flex}.pred-toggle-text strong{font-size:13px;font-weight:600}.pred-toggle-text small{color:var(--text-muted);font-size:12px}.pred-up{color:#16a34a;font-weight:700}.pred-down{color:#dc2626;font-weight:700}.pred-devices{border-top:1px solid var(--border);flex-direction:column;gap:12px;margin-top:16px;padding-top:16px;display:flex}.pred-devices[hidden]{display:none}.pred-devices-title{font-size:13px;font-weight:700}.pred-device{border:1px solid var(--border);background:var(--bg);border-radius:12px;justify-content:space-between;padding:12px 14px}.scan-drop{border:1.5px dashed var(--border);background:var(--bg);cursor:pointer;text-align:center;border-radius:12px;place-items:center;min-height:160px;padding:28px;display:grid}.scan-drop:hover{border-color:var(--green)}.scan-drop input{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.scan-drop:has(input:focus-visible){outline-offset:2px;outline:2px solid #2e9e57}.scan-drop-text{color:var(--text-muted);font-size:13px}.scan-preview{border-radius:8px;max-width:100%;max-height:240px}.scan-btn{color:#fff;font:inherit;cursor:pointer;background:#2e9e57;border:0;border-radius:999px;align-self:flex-end;padding:12px 26px;font-size:13px;font-weight:700;transition:transform .15s,background .2s,opacity .2s}.scan-btn:hover{background:#258a4a}.scan-btn:active{transform:scale(.96)}.scan-btn:disabled{opacity:.6;cursor:default}.scan-btn:focus-visible{outline-offset:2px;outline:2px solid #2e9e57}.scan-error{color:#b91c1c;background:#fee2e2;border-radius:8px;margin-top:16px;padding:14px 16px;font-size:13px;font-weight:600}.scan-result{--tone:#23854a;--tone-bg:#e9f8ef;border:1px solid var(--border);border-left:4px solid var(--tone);background:#fff;border-radius:12px;margin-top:24px;padding:20px;font-size:13px;line-height:1.55;animation:.35s ease-out scan-in}.scan-result[data-tone=fair]{--tone:#a86a00;--tone-bg:#fff4db}.scan-result[data-tone=poor]{--tone:#b4432b;--tone-bg:#ffe9e3}@keyframes scan-in{0%{opacity:0;transform:translateY(6px)}}.scan-summary{align-items:center;gap:20px;display:flex}.scan-gauge{flex-shrink:0;width:84px;height:84px;position:relative}.scan-gauge svg{width:100%;height:100%;transform:rotate(-90deg)}.scan-gauge circle{fill:none;stroke-width:5px}.scan-gauge-track{stroke:var(--border)}.scan-gauge-fill{stroke:var(--tone);stroke-linecap:round;transition:stroke-dashoffset .8s cubic-bezier(.22,1,.36,1)}.scan-gauge-value{text-align:center;color:var(--tone);place-content:center;font-size:20px;font-weight:800;line-height:1;display:grid;position:absolute;inset:0}.scan-gauge-value small{letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted);margin-top:3px;font-size:9px;font-weight:600}.scan-summary-text{min-width:0}.scan-chips{flex-wrap:wrap;gap:6px;margin-bottom:8px;display:flex}.scan-chip{background:var(--bg);color:var(--text-muted);border-radius:999px;padding:3px 10px;font-size:11px;font-weight:700}.scan-chip.is-status{background:var(--tone-bg);color:var(--tone)}.scan-result h3{font-size:16px;font-weight:700}.scan-summary-text p{color:var(--text-muted);margin-top:4px}.scan-result h4{border-top:1px solid var(--border);letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted);margin:18px 0 10px;padding-top:16px;font-size:12px;font-weight:700}.scan-steps{counter-reset:step;gap:8px;margin:0;padding:0;list-style:none;display:grid}.scan-steps li{background:var(--bg);counter-increment:step;border-radius:10px;align-items:flex-start;gap:10px;padding:10px 12px;display:flex}.scan-steps li:before{content:counter(step);background:var(--tone);color:#fff;border-radius:50%;flex-shrink:0;place-items:center;width:20px;height:20px;font-size:11px;font-weight:700;display:grid}.scan-insights{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;margin-top:18px;display:grid}.scan-insight{--lvl:#23854a;--lvl-bg:#e9f8ef;border:1px solid var(--border);background:var(--bg);border-radius:12px;padding:14px 16px}.scan-insight[data-level=medium]{--lvl:#a86a00;--lvl-bg:#fff4db}.scan-insight[data-level=high]{--lvl:#b4432b;--lvl-bg:#ffe9e3}.scan-insight[data-level=urgent]{--lvl:#8f1d1d;--lvl-bg:#ffd9d9}.scan-insight-label{letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted);font-size:11px;font-weight:700;display:block}.scan-insight strong{color:var(--lvl);margin-top:6px;font-size:22px;font-weight:800;line-height:1.1;display:inline-block}.scan-insight strong small{color:var(--text-muted);font-size:12px;font-weight:600}.scan-priority strong{background:var(--lvl-bg);text-transform:uppercase;letter-spacing:.04em;border-radius:999px;padding:3px 12px;font-size:14px}.scan-insight p{color:var(--text-muted);margin:8px 0 0}.scan-meter{background:var(--border);border-radius:999px;height:8px;margin-top:8px;overflow:hidden}.scan-meter span{border-radius:inherit;background:var(--lvl);width:0;height:100%;transition:width .8s cubic-bezier(.22,1,.36,1);display:block}.scan-plantstate{background:var(--tone-bg);color:var(--tone);border-radius:10px;margin:14px 0 0;padding:10px 12px;font-weight:600}@media (width<=520px){.scan-summary{flex-direction:column;align-items:flex-start}}@media (prefers-reduced-motion:reduce){.scan-result{animation:none}.scan-gauge-fill,.scan-meter span{transition:none}}.severity{align-items:center;gap:6px;font-weight:600;display:inline-flex}.severity:before{content:"";background:currentColor;border-radius:50%;width:7px;height:7px}.severity-low{color:#23854a}.severity-medium{color:#a86a00}.severity-high{color:#b4432b}.detection-status{border-radius:999px;padding:2px 10px;font-size:12px;font-weight:600;display:inline-block}.detection-status.is-resolved{background:var(--green-soft);color:var(--green-dark)}.detection-status.is-active{color:#b4432b;background:#fff1ee}.detections-table{min-width:560px}.guide-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;display:grid}.guide-card{flex-direction:column;gap:10px;display:flex}.guide-head{justify-content:space-between;align-items:baseline;gap:8px;display:flex}.guide-head h3{font-size:15px;font-weight:700}.guide-head .severity{white-space:nowrap;font-size:12px}.guide-seen{color:var(--text-muted);background:#f3f4f6;border-radius:999px;align-self:flex-start;padding:2px 10px;font-size:12px;font-weight:600}.guide-card dt{color:var(--text-muted);margin-top:6px;font-size:12px;font-weight:600}.guide-card dd{margin:2px 0 0;font-size:13px;line-height:1.5}.scan-saved{color:var(--text-muted);align-items:center;gap:6px;margin-top:12px;font-size:12px;font-weight:600;display:flex}.scan-saved[hidden]{display:none}.scan-saved:before{content:"";background:currentColor;border-radius:50%;width:7px;height:7px}.scan-saved[data-state=saved]{color:var(--green-dark)}.scan-saved[data-state=error]{color:#b4432b}.scan-saved[data-state=partial]{color:#8a5a00}.updates-table td.scan-issue-cell.has-thumb{grid-template-columns:44px minmax(0,1fr);align-items:start;column-gap:10px;display:grid}.scan-issue-cell.has-thumb>:not(.scan-thumb){grid-column:2}.scan-thumb{border:1px solid var(--border);cursor:zoom-in;background:#f3f4f6;border-radius:8px;grid-row:1/span 2;width:44px;height:44px;padding:0;transition:transform .15s,box-shadow .15s;overflow:hidden}.scan-thumb:hover{box-shadow:0 4px 12px #0000001f}.scan-thumb:active{transform:scale(.96)}.scan-thumb:focus-visible{outline:2px solid var(--green);outline-offset:2px}.scan-thumb img{object-fit:cover;width:100%;height:100%;display:block}.photo-lightbox{background:0 0;border:0;width:min(920px,100vw - 32px);max-width:none;max-height:calc(100vh - 32px);margin:auto;padding:0;overflow:visible}.photo-lightbox::backdrop{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#080a12b8}.photo-lightbox-panel{color:#f3f4f6;background:#0f1115;border-radius:18px;overflow:hidden;box-shadow:0 24px 60px #00000073}.photo-lightbox-head{justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;display:flex}.photo-lightbox-head h2{font-size:15px;font-weight:600}.photo-lightbox-sub{color:#9ca3af;margin-top:2px;font-size:12px}.photo-lightbox-close{color:#f3f4f6;cursor:pointer;background:#ffffff14;border:0;border-radius:50%;flex-shrink:0;place-items:center;width:36px;height:36px;display:grid}.photo-lightbox-close:hover{background:#ffffff29}.photo-lightbox-close:focus-visible{outline-offset:2px;outline:2px solid #6fd1ff}.photo-lightbox-close svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;width:18px;height:18px}.photo-lightbox-img{object-fit:contain;background:#000;width:100%;max-height:calc(100vh - 120px);display:block}@media (width<=720px){.photo-lightbox{width:100vw;height:100dvh;max-height:none;margin:0}.photo-lightbox-panel{border-radius:0;flex-direction:column;height:100%;display:flex}.photo-lightbox-head{padding-top:calc(12px + env(safe-area-inset-top))}.photo-lightbox-img{flex:1;min-height:0;max-height:none}}main [data-mode][hidden]{display:none!important}.pager{color:var(--text-muted);font-variant-numeric:tabular-nums;justify-content:flex-end;align-items:center;gap:10px;margin-top:12px;font-size:12px;display:flex}.pager[hidden]{display:none}.pager .chip{background:var(--bg);font:inherit;cursor:pointer}.pager .chip:hover:not(:disabled){border-color:var(--green);color:var(--green-dark)}.pager .chip:disabled{opacity:.45;cursor:default}.pager .chip:focus-visible{outline:2px solid var(--green);outline-offset:2px}.updates-table td.scan-issue-cell{white-space:normal}.scan-issue-name{font-weight:600}.scan-details{max-width:46ch;color:var(--text-muted);margin-top:4px;font-size:12px}.scan-details summary{width:fit-content;color:var(--green-dark);cursor:pointer;font-weight:600}.scan-details p,.scan-details ol{margin-top:6px;line-height:1.5}.scan-details ol{padding-left:18px}@media (width<=860px){.chart-grid{grid-template-columns:1fr}}@media (width<=720px){.updates-table.readings-table{min-width:0;display:block}.readings-table thead{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.readings-table tbody{display:block}.readings-table tbody tr{border-bottom:1px solid var(--border);grid-template-columns:repeat(4,minmax(0,1fr));gap:4px 10px;padding:10px 0;display:grid}.readings-table tbody tr:last-child{border-bottom:0}.updates-table.readings-table td{text-align:left;white-space:normal;border:0;padding:0}.readings-table td:first-child{grid-column:1/-1;font-weight:600}.readings-table td:nth-child(n+2):before{color:var(--text-muted);font-size:10.5px;font-weight:500;display:block}.readings-table td:nth-child(2):before{content:"Temp"}.readings-table td:nth-child(3):before{content:"Humidity"}.readings-table td:nth-child(4):before{content:"Pressure"}.readings-table td:nth-child(5):before{content:"Precip."}.readings-table td.updates-message{grid-column:1/-1}.pager{justify-content:space-between}}.pred-console{color:#cfe8d8;white-space:pre-wrap;background:#10151b;border-radius:10px;min-height:120px;max-height:280px;margin:12px 0 0;padding:14px 16px;font:12.5px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace;overflow:auto}.pred-console .log-ok{color:#4cd179}.pred-console .log-dim{color:#7c8a95}.tile.is-loading strong{opacity:.35}.tile strong{transition:opacity .2s}.tile.is-revealed{animation:.35s cubic-bezier(.23,1,.32,1) pred-pop}@keyframes pred-pop{0%{opacity:.6;transform:translateY(6px)}to{opacity:1;transform:none}}@media (prefers-reduced-motion:reduce){.tile.is-revealed{animation:none}}.pred-chart-head{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.pred-svg{width:100%;height:auto;margin-top:8px}.pred-grid{stroke:#ececec;stroke-width:1px}.pred-axis{fill:#6b7280;font-size:11px}.pred-now{stroke:#c9ced6;stroke-dasharray:3 4}.pred-limit{stroke:#e0705a;stroke-dasharray:5 4;opacity:.7}.pred-limit-label{fill:#b4432b;font-size:11px}.pred-line{fill:none;stroke:#2e9e57;stroke-width:2.5px;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:1px;animation:.9s cubic-bezier(.23,1,.32,1) forwards pred-draw}.pred-line.is-forecast{stroke:#f48a5c;stroke-dasharray:.04 .03;stroke-dashoffset:0;animation:.4s .8s backwards pred-fade}.pred-dot{fill:#2e9e57;stroke:#fff;stroke-width:2px}.pred-dot.is-forecast{fill:#f48a5c;animation:.4s .9s backwards pred-fade}@keyframes pred-draw{to{stroke-dashoffset:0}}@keyframes pred-fade{0%{opacity:0}}@media (prefers-reduced-motion:reduce){.pred-line,.pred-line.is-forecast,.pred-dot.is-forecast{stroke-dashoffset:0;animation:none}}
