*{box-sizing:border-box}html{color:#111827;background:#f8fafc;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}body{min-width:320px;min-height:100vh;margin:0}button,input,textarea,select{font:inherit}#root{min-height:100vh}.app-shell{height:100vh;display:flex;overflow:hidden}.sidebar{box-sizing:border-box;background:#fff;border-right:1px solid #e5e7eb;flex-direction:column;flex:0 0 250px;width:250px;height:100vh;padding:24px 18px;display:flex;overflow-y:auto}.main-content{box-sizing:border-box;background:#f8fafc;flex:1;min-width:0;height:100vh;padding:32px;overflow-y:auto}.brand{align-items:center;gap:12px;margin-bottom:36px;display:flex}.brand-mark{color:#fff;background:#111827;border-radius:10px;justify-content:center;align-items:center;width:42px;height:42px;font-size:20px;font-weight:700;display:flex}.brand-name{color:#111827;font-size:18px;font-weight:700}.brand-subtitle{color:#6b7280;margin-top:2px;font-size:12px}.navigation{flex-direction:column;gap:6px;display:flex}.nav-item{color:#4b5563;width:100%;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;padding:11px 12px;font-weight:500;text-decoration:none;display:block}.nav-item:hover{background:#f3f4f6}.nav-item-active{color:#111827;background:#f3f4f6;font-weight:600}.sidebar-footer{margin-top:auto;padding-top:24px}.user-block{margin-bottom:14px}.user-name{color:#111827;font-size:14px;font-weight:600}.user-role{color:#6b7280;margin-top:3px;font-size:12px}.logout-button{color:#374151;width:100%;font:inherit;cursor:pointer;background:#fff;border:1px solid #d1d5db;border-radius:8px;padding:9px 12px}.logout-button:hover{background:#f9fafb}.main-content{background:#f8fafc;flex:1;padding:32px}.topbar{margin-bottom:28px}.topbar h1{color:#111827;margin:0;font-size:28px;font-weight:700}.topbar p{color:#6b7280;margin:6px 0 0;font-size:14px}.dashboard-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:24px;display:grid}.stat-card,.content-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;box-shadow:0 1px 2px #00000008}.stat-card{padding:20px}.stat-label{color:#6b7280;font-size:13px;font-weight:500;display:block}.stat-value{color:#111827;margin-top:10px;font-size:30px;font-weight:700;display:block}.content-card{min-height:240px;padding:22px}.content-card h2{color:#111827;margin:0;font-size:18px}.content-card p{color:#6b7280;margin:8px 0 0;font-size:14px}.login-page{background:#f8fafc;justify-content:center;align-items:center;min-height:100vh;padding:24px;display:flex}.login-card{background:#fff;border:1px solid #e5e7eb;border-radius:14px;width:100%;max-width:420px;padding:32px;box-shadow:0 4px 14px #0000000d}.login-brand{align-items:center;gap:12px;margin-bottom:32px;display:flex}.login-card h1{color:#111827;margin:0;font-size:26px}.login-description{color:#6b7280;margin:8px 0 24px;font-size:14px}.login-form{flex-direction:column;gap:18px;display:flex}.login-form label{color:#374151;flex-direction:column;gap:7px;font-size:14px;font-weight:500;display:flex}.login-form input{color:#111827;background:#fff;border:1px solid #d1d5db;border-radius:8px;outline:none;width:100%;padding:10px 12px}.login-form input:focus{border-color:#6b7280}.primary-button{color:#fff;font:inherit;cursor:pointer;background:#111827;border:0;border-radius:8px;padding:11px 14px;font-weight:600}.primary-button:hover{background:#1f2937}@media (width<=1000px){.dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=700px){.app-shell{height:auto;min-height:100vh;display:block;overflow:visible}.sidebar{border-bottom:1px solid #e5e7eb;border-right:0;flex:none;width:auto;height:auto;min-height:auto;overflow:visible}.sidebar-footer{margin-top:24px}.main-content{height:auto;min-height:0;padding:20px;overflow:visible}.dashboard-grid{grid-template-columns:1fr}.login-card{padding:24px}}.auth-loading{color:#6b7280;background:#f8fafc;justify-content:center;align-items:center;min-height:100vh;font-size:14px;display:flex}.login-error{color:#991b1b;background:#fef2f2;border:1px solid #fecaca;border-radius:8px;padding:10px 12px;font-size:13px}.primary-button:disabled,.logout-button:disabled{opacity:.6;cursor:not-allowed}.page-error{color:#991b1b;background:#fef2f2;border:1px solid #fecaca;border-radius:8px;margin-bottom:20px;padding:12px 14px;font-size:14px}.dashboard-sections{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;display:grid}.dashboard-sections .content-card{min-height:auto}.dashboard-recent-card{grid-column:1/-1}.dashboard-list{margin-top:18px}.dashboard-list-row{border-bottom:1px solid #f1f5f9;justify-content:space-between;align-items:center;gap:16px;padding:13px 0;display:flex}.dashboard-list-row:last-child{border-bottom:0}.dashboard-list-row>div:first-child{flex-direction:column;gap:3px;display:flex}.dashboard-list-row strong{color:#111827;font-size:14px;font-weight:600}.dashboard-list-row span{color:#6b7280;font-size:12px}.dashboard-list-row b{color:#111827;font-size:16px}.dashboard-list-meta{text-align:right;flex-direction:column;align-items:flex-end;gap:3px;display:flex}.dashboard-table-wrapper{margin-top:18px;overflow-x:auto}.dashboard-table{border-collapse:collapse;width:100%;font-size:14px}.dashboard-table th{color:#6b7280;text-align:left;border-bottom:1px solid #e5e7eb;padding:10px 12px;font-size:12px;font-weight:600}.dashboard-table td{color:#374151;vertical-align:middle;border-bottom:1px solid #f1f5f9;padding:13px 12px}.dashboard-table tbody tr:last-child td{border-bottom:0}.table-primary{color:#111827;font-weight:500}.table-secondary{color:#6b7280;margin-top:3px;font-size:12px}.state-badge{border-radius:999px;padding:4px 8px;font-size:11px;font-weight:600;display:inline-block}.state-active{color:#b91c1c;background:#fef2f2}.state-clear{color:#047857;background:#ecfdf5}@media (width<=900px){.dashboard-sections{grid-template-columns:1fr}.dashboard-recent-card{grid-column:auto}}.devices-card{min-height:auto}.devices-toolbar{justify-content:space-between;align-items:center;gap:20px;display:flex}.devices-toolbar h2{margin:0}.devices-toolbar p{margin:6px 0 0}.devices-search{color:#111827;background:#fff;border:1px solid #d1d5db;border-radius:8px;outline:none;width:280px;padding:10px 12px}.devices-search:focus{border-color:#6b7280}.devices-table-wrapper{margin-top:20px;overflow-x:auto}.devices-table{border-collapse:collapse;width:100%;font-size:14px}.devices-table th{color:#6b7280;text-align:left;white-space:nowrap;border-bottom:1px solid #e5e7eb;padding:10px 12px;font-size:12px;font-weight:600}.devices-table td{color:#374151;vertical-align:middle;border-bottom:1px solid #f1f5f9;padding:14px 12px}.devices-table tbody tr:last-child td{border-bottom:0}.device-row{cursor:pointer}.device-row:hover{background:#f8fafc}.device-row:focus{outline-offset:-2px;outline:2px solid #cbd5e1}.status-badge{white-space:nowrap;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:600;display:inline-block}.status-online{color:#047857;background:#ecfdf5}.status-offline{color:#6b7280;background:#f3f4f6}.error-count-badge{color:#b91c1c;background:#fef2f2;border-radius:999px;justify-content:center;align-items:center;min-width:28px;height:26px;padding:0 8px;font-size:12px;font-weight:700;display:inline-flex}.no-errors{color:#9ca3af}.device-location{max-width:320px}.table-message{color:#6b7280;text-align:center;padding:40px 0;font-size:14px}@media (width<=900px){.devices-toolbar{flex-direction:column;align-items:stretch}.devices-search{width:100%}}.device-detail-heading{justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:28px;display:flex}.device-detail-topbar{margin-top:12px;margin-bottom:0}.back-link{color:#6b7280;font-size:13px;font-weight:500;text-decoration:none}.back-link:hover{color:#111827}.device-status-large{align-items:center;gap:6px;margin-top:30px;padding:6px 10px;font-size:12px;display:inline-flex}.device-status-large:before{content:"";background:currentColor;border-radius:50%;width:7px;height:7px}.device-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:18px;display:grid}.device-info-card{min-height:auto}.device-info-list{margin:18px 0 0}.device-info-list>div{border-bottom:1px solid #f1f5f9;grid-template-columns:150px 1fr;gap:16px;padding:11px 0;display:grid}.device-info-list>div:last-child{border-bottom:0}.device-info-list dt{color:#6b7280;font-size:13px}.device-info-list dd{color:#111827;overflow-wrap:anywhere;margin:0;font-size:14px;font-weight:500}.active-errors-card,.device-notes-card{min-height:auto;margin-bottom:18px}.section-heading-row{justify-content:space-between;align-items:center;gap:16px;display:flex}.section-heading-row p{margin-top:5px}.diagnostics-clear{color:#047857;background:#ecfdf5;border:1px solid #d1fae5;border-radius:8px;margin-top:18px;padding:18px;font-size:14px}.active-errors-list{margin-top:18px}.active-error-item{border-bottom:1px solid #f1f5f9;justify-content:space-between;align-items:center;gap:24px;padding:15px 0;display:flex}.active-error-item:last-child{border-bottom:0}.active-error-code{color:#b91c1c;font-size:13px;font-weight:700}.active-error-name{color:#111827;margin-top:4px;font-size:14px;font-weight:500}.active-error-meta{color:#6b7280;justify-content:flex-end;align-items:center;gap:12px;font-size:12px;display:flex}.device-notes{white-space:pre-wrap}@media (width<=900px){.device-detail-grid{grid-template-columns:1fr}.active-error-item{flex-direction:column;align-items:flex-start}.active-error-meta{flex-wrap:wrap;justify-content:flex-start;align-items:flex-start}}@media (width<=600px){.device-detail-heading{flex-direction:column}.device-status-large{margin-top:0}.device-info-list>div{grid-template-columns:1fr;gap:4px}.firmware-in-progress{flex-direction:column;align-items:stretch}.firmware-cancel-button{width:100%}}.device-history-card{min-height:auto;margin-bottom:18px}.history-total{color:#4b5563;white-space:nowrap;background:#f3f4f6;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:600}.history-page-error{margin-top:18px;margin-bottom:0}.device-history-table-wrapper{margin-top:18px;overflow-x:auto}.device-history-table{border-collapse:collapse;width:100%;font-size:14px}.device-history-table th{color:#6b7280;text-align:left;white-space:nowrap;border-bottom:1px solid #e5e7eb;padding:10px 12px;font-size:12px;font-weight:600}.device-history-table td{color:#374151;vertical-align:middle;border-bottom:1px solid #f1f5f9;padding:13px 12px}.device-history-table tbody tr:last-child td{border-bottom:0}.history-pagination{border-top:1px solid #f1f5f9;justify-content:space-between;align-items:center;gap:16px;padding-top:18px;display:flex}.history-page-info{color:#6b7280;font-size:13px}.history-page-buttons{gap:8px;display:flex}.pagination-button{color:#374151;cursor:pointer;background:#fff;border:1px solid #d1d5db;border-radius:7px;padding:8px 12px;font-size:13px;font-weight:500}.pagination-button:hover:not(:disabled){background:#f8fafc}.pagination-button:disabled{color:#9ca3af;cursor:not-allowed;background:#f9fafb}@media (width<=600px){.history-pagination{flex-direction:column;align-items:stretch}.history-page-buttons{width:100%}.pagination-button{flex:1}}.events-filter-card,.events-card{min-height:auto;margin-bottom:18px}.events-filters{grid-template-columns:minmax(240px,2fr) minmax(130px,1fr) minmax(150px,1fr) auto;align-items:end;gap:14px;display:grid}.events-filter-field{flex-direction:column;gap:6px;min-width:0;display:flex}.events-filter-field label{color:#4b5563;font-size:12px;font-weight:600}.events-filter-field input,.events-filter-field select{color:#111827;width:100%;min-width:0;max-width:100%;min-height:38px;font:inherit;background:#fff;border:1px solid #d1d5db;border-radius:7px;outline:none;padding:9px 11px;font-size:13px}.events-filter-field input[type=datetime-local]{appearance:none;width:100%;min-width:0;max-width:100%;display:block}.events-filter-field input:focus,.events-filter-field select:focus{border-color:#6b7280}.events-filter-actions{gap:8px;display:flex}.events-filter-button{color:#374151;cursor:pointer;background:#fff;border:1px solid #d1d5db;border-radius:7px;min-height:38px;padding:8px 13px;font-size:13px;font-weight:500}.events-filter-button:hover:not(:disabled){background:#f8fafc}.events-filter-primary{color:#fff;background:#111827;border-color:#111827}.events-filter-primary:hover:not(:disabled){background:#1f2937}.events-filter-button:disabled{opacity:.6;cursor:not-allowed}.events-table-wrapper{margin-top:18px;overflow-x:auto}.events-table{border-collapse:collapse;width:100%;font-size:14px}.events-table th{color:#6b7280;text-align:left;white-space:nowrap;border-bottom:1px solid #e5e7eb;padding:10px 12px;font-size:12px;font-weight:600}.events-table td{color:#374151;vertical-align:middle;border-bottom:1px solid #f1f5f9;padding:13px 12px}.events-table tbody tr:last-child td{border-bottom:0}.event-device-link{color:inherit;text-decoration:none;display:block}.event-device-link:hover .table-primary{text-decoration:underline}@media (width<=1050px){.events-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.events-filter-actions{align-self:end}}@media (width<=600px){.events-filters{grid-template-columns:1fr}.events-filter-actions{width:100%}.events-filter-button{flex:1}}.events-filters-expanded{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}@media (width<=1250px){.events-filters-expanded{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=850px){.events-filters-expanded{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=600px){.events-filters-expanded{grid-template-columns:1fr}}.metadata-edit-button,.metadata-save-button,.metadata-cancel-button{cursor:pointer;border-radius:7px;padding:8px 13px;font-size:13px;font-weight:500}.metadata-edit-button,.metadata-cancel-button{color:#374151;background:#fff;border:1px solid #d1d5db}.metadata-edit-button:hover,.metadata-cancel-button:hover:not(:disabled){background:#f8fafc}.metadata-save-button{color:#fff;background:#111827;border:1px solid #111827}.metadata-save-button:hover:not(:disabled){background:#1f2937}.metadata-save-button:disabled,.metadata-cancel-button:disabled{opacity:.6;cursor:not-allowed}.metadata-form{flex-direction:column;gap:14px;margin-top:18px;display:flex}.metadata-field{flex-direction:column;gap:6px;display:flex}.metadata-field label{color:#4b5563;font-size:12px;font-weight:600}.metadata-field input,.metadata-field textarea{box-sizing:border-box;color:#111827;width:100%;font:inherit;background:#fff;border:1px solid #d1d5db;border-radius:7px;outline:none;padding:9px 11px;font-size:13px}.metadata-field textarea{resize:vertical;line-height:1.5}.metadata-field input:focus,.metadata-field textarea:focus{border-color:#6b7280}.metadata-actions{gap:8px;margin-top:4px;display:flex}.metadata-message{margin-top:16px;margin-bottom:0}.metadata-success{color:#047857;background:#ecfdf5;border:1px solid #a7f3d0;border-radius:8px;padding:12px 14px;font-size:14px}.notes-edit-field{margin-top:18px}.metadata-character-count{color:#9ca3af;align-self:flex-end;font-size:11px}@media (width<=600px){.metadata-actions{width:100%}.metadata-save-button,.metadata-cancel-button{flex:1}}.session-expired-message{color:#92400e;background:#fffbeb;border:1px solid #fde68a;border-radius:8px;margin-bottom:16px;padding:11px 13px;font-size:13px;line-height:1.45}.firmware-version-row{flex-wrap:wrap;align-items:center;gap:.55rem;display:flex}.firmware-update-badge,.firmware-current-badge,.ota-status{border-radius:999px;align-items:center;width:fit-content;padding:.25rem .55rem;font-size:.78rem;font-weight:700;line-height:1.2;display:inline-flex}.firmware-update-badge{color:#7a5200;background:#fff3cd;border:1px solid #ffe08a}.firmware-current-badge{color:#176b3a;background:#e9f7ef;border:1px solid #b9e2ca}.firmware-card{margin-bottom:18px;position:relative}.firmware-info-list,.firmware-message,.firmware-help,.firmware-up-to-date,.firmware-in-progress{margin-top:1rem}.firmware-up-to-date{color:#176b3a;font-weight:600}.firmware-in-progress{background:#eef4ff;border-radius:.6rem;justify-content:space-between;align-items:center;gap:1rem;padding:.8rem 1rem;display:flex}.firmware-cancel-button{color:#a12622;font:inherit;cursor:pointer;background:#fff;border:1px solid #c93c37;border-radius:.55rem;flex-shrink:0;padding:.55rem .85rem;font-weight:700}.firmware-cancel-button:hover:not(:disabled){background:#fdecec}.firmware-cancel-button:disabled{opacity:.55;cursor:not-allowed}.firmware-update-button{font:inherit;cursor:pointer;color:#fff;background:#1f6feb;border:0;border-radius:.55rem;margin-top:1rem;padding:.7rem 1rem;font-weight:700}.firmware-update-button:hover:not(:disabled){filter:brightness(.95)}.firmware-update-button:disabled{opacity:.55;cursor:not-allowed}.ota-status-requested,.ota-status-downloading{color:#2459a9;background:#eef4ff}.ota-status-installed{color:#176b3a;background:#e9f7ef}.ota-status-failed,.ota-status-rejected{color:#a12622;background:#fdecec}.firmware-confirm-overlay{z-index:1000;background:#0000007a;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}.firmware-confirm-dialog{background:#fff;border-radius:.8rem;width:min(100%,480px);padding:1.4rem;box-shadow:0 20px 60px #00000040}.firmware-confirm-dialog h3{margin-top:0}.firmware-confirm-actions{justify-content:flex-end;gap:.75rem;margin-top:1.4rem;display:flex}.firmware-confirm-actions .firmware-update-button{margin-top:0}@media (width<=600px){.firmware-confirm-actions{flex-direction:column-reverse}.firmware-confirm-actions button{width:100%}}.firmware-offline-message{color:#b42318;margin-top:8px;font-size:.9rem}.ota-history{border-top:1px solid #e5e7eb;margin-top:1.5rem;padding-top:1.25rem}.ota-history h3{margin:0 0 .85rem;font-size:1rem}.ota-history-table-wrapper{overflow-x:auto}.ota-history-table{border-collapse:collapse;width:100%;font-size:.9rem}.ota-history-table th,.ota-history-table td{text-align:left;vertical-align:middle;border-bottom:1px solid #e5e7eb;padding:.7rem .75rem}.ota-history-table th{color:#667085;font-size:.78rem;font-weight:700}.ota-history-table tbody tr:last-child td{border-bottom:0}.ota-status-summary{flex-direction:column;align-items:flex-start;gap:.35rem;display:flex}.ota-status-description{color:#667085;font-size:.85rem;line-height:1.4}.firmware-version-value{font-size:1rem;font-weight:700}.firmware-version-with-state{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.firmware-current-badge{color:#027a48;background:#ecfdf3;border-radius:999px;align-items:center;padding:.18rem .5rem;font-size:.72rem;font-weight:700;display:inline-flex}.device-heading-meta{color:#6b7280;flex-wrap:wrap;align-items:center;gap:6px;margin-top:6px;font-size:13px;display:flex}.device-heading-meta-separator{color:#cbd5e1}.device-no-active-errors{color:#047857;font-weight:600}.reported-status-value{color:#4b5563;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:13px}.fleet-summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px;display:grid}.fleet-summary>div{background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:14px 16px}.fleet-summary span{color:#6b7280;font-size:12px;font-weight:500;display:block}.fleet-summary strong{color:#111827;margin-top:5px;font-size:21px;display:block}.devices-controls{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;display:flex}.devices-controls select,.compact-select{color:#374151;min-height:38px;font:inherit;background:#fff;border:1px solid #d1d5db;border-radius:8px;padding:8px 10px;font-size:13px}.firmware-table-cell{flex-direction:column;align-items:flex-start;gap:5px;display:flex}.firmware-table-cell .firmware-update-badge{font-size:10px}.dashboard-health{min-height:auto;margin-bottom:18px;padding:16px 20px}.dashboard-health>div:first-child{justify-content:space-between;align-items:center;gap:16px;margin-bottom:10px;display:flex}.dashboard-health strong{color:#111827;font-size:14px}.dashboard-health span{color:#6b7280;font-size:13px}.health-track{background:#e5e7eb;border-radius:999px;height:8px;overflow:hidden}.health-track>span{border-radius:inherit;background:#10b981;height:100%;display:block}.text-link{color:#4b5563;font-size:13px;font-weight:600;text-decoration:none}.text-link:hover{color:#111827;text-decoration:underline}.ota-fleet-card{min-height:auto}.ota-fleet-card+.ota-fleet-card{margin-top:18px}.ota-fleet-release-field{flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:18px;display:flex}.ota-fleet-release-field .compact-select{min-width:0;max-width:100%}.ota-fleet-history-heading{flex-wrap:wrap;margin-bottom:18px}.ota-fleet-history-controls{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.ota-status-badge{white-space:nowrap;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:700;display:inline-block}.events-heading-meta{align-items:center;gap:8px;display:flex}.filter-count-badge{color:#2459a9;white-space:nowrap;background:#eef4ff;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:600}.devices-search,.devices-controls select,.compact-select,.events-filter-field input,.events-filter-field select{box-sizing:border-box;transition:border-color .12s,box-shadow .12s}.devices-search:focus,.devices-controls select:focus,.compact-select:focus,.events-filter-field input:focus,.events-filter-field select:focus{border-color:#94a3b8;outline:none;box-shadow:0 0 0 3px #94a3b826}@media (width<=1100px){.fleet-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.devices-toolbar{flex-direction:column;align-items:stretch}.devices-controls{justify-content:flex-start}}@media (width<=600px){.fleet-summary{grid-template-columns:1fr 1fr}.devices-controls{flex-direction:column;align-items:stretch}.devices-search,.devices-controls select,.compact-select{width:100%}.events-heading-meta{flex-direction:column;align-items:flex-end}.dashboard-health>div:first-child{flex-direction:column;align-items:flex-start;gap:4px}.ota-fleet-release-field{flex-direction:column;align-items:stretch}.ota-fleet-history-controls{width:100%}.ota-fleet-history-controls .pagination-button{flex:none;width:100%}}.device-health-history-card{margin-bottom:18px}.device-health-history-card .section-heading-row{align-items:flex-start}.device-health-history-card .section-heading-row p{color:#6b7280;margin-bottom:0;font-size:13px}.health-history-count{color:#6b7280;flex:none;font-size:12px;font-weight:600}.health-history-controls{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px 12px;display:flex}.health-history-controls label{color:#475569;font-size:13px}.health-history-controls select{color:#1e293b;width:auto;min-width:160px;font:inherit;background:#fff;border:1px solid #cbd5e1;border-radius:8px;padding:8px 10px;font-size:13px}.health-history-controls select:focus-visible{outline-offset:2px;outline:2px solid #2563eb}.health-history-load-status{color:#475569;font-size:13px}.health-history-load-error{color:#92400e;font-size:13px}.health-chart-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:20px;display:grid}.health-history-help,.health-history-range{color:#475569;margin:12px 0 0;font-size:13px;line-height:1.6}.health-chart-panel{background:#fff;border:1px solid #e5e7eb;border-radius:10px;min-width:0;padding:16px}.health-chart-heading{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:12px;display:flex}.health-chart-heading h3{color:#111827;margin:0;font-size:16px}.health-chart-heading p{color:#6b7280;margin:4px 0 0;font-size:13px}.health-chart{grid-template-columns:72px minmax(0,1fr);column-gap:8px;width:100%;display:grid;container:health-chart/inline-size}.health-chart-main{min-width:0}.health-chart-y-axis{height:200px;position:relative}.health-chart-y-axis span{color:#475569;font-variant-numeric:tabular-nums;white-space:nowrap;font-size:12px;position:absolute;right:0;transform:translateY(-50%)}.health-chart-plot{cursor:crosshair;touch-action:pan-y pinch-zoom;-webkit-user-select:none;user-select:none;grid-template-columns:minmax(0,1fr);min-height:200px;display:grid;position:relative}.health-chart-plot:focus-visible{outline-offset:4px;border-radius:2px;outline:2px solid #2563eb}.health-chart-plot svg{grid-area:1/1;width:100%;height:200px;display:block;overflow:hidden}.health-chart-time-axis{height:48px;margin-top:10px;position:relative}.health-chart-time-label{color:#475569;font-variant-numeric:tabular-nums;white-space:nowrap;font-size:12px;position:absolute;top:0;transform:translate(-50%)}.health-chart-time-label:first-child{transform:none}.health-chart-time-label:last-child{transform:translate(-100%)}.health-chart-time-label:only-child{transform:translate(-50%)}.health-chart-time-label small{color:#64748b;margin-top:3px;font-size:11px;display:block}.health-chart-extra-time-label{display:none}@container health-chart (width>=500px){.health-chart-extra-time-label{display:block}}.health-chart-point{pointer-events:none;border:1px solid #fff;border-radius:50%;width:7px;height:7px;position:absolute;transform:translate(-50%,-50%)}.health-chart-selected-point{border-width:2px;width:11px;height:11px;box-shadow:0 0 0 1px #fff}.health-chart-point-wifi{background:#2563eb}.health-chart-point-free{background:#059669}.health-chart-point-minimum{background:#b45309}.health-chart-point-rs485{background:#7c3aed}.health-chart-point-uart{background:#0e7490}.health-chart-cursor{stroke:#334155;stroke-width:1.5px;stroke-dasharray:4 3}.health-chart-cursor-pin{pointer-events:none;z-index:4;background:#2563eb;border:1px solid #fff;border-radius:50%;width:9px;height:9px;position:absolute;top:0;transform:translate(-50%,-50%)}.health-chart-popup-group{--popup-width:max(0px, min(230px, calc(100% - var(--cursor-x) - 22px)));--popup-left:calc(var(--cursor-x) + 16px);z-index:5;min-width:0;width:var(--popup-width);margin:14px 0 14px var(--popup-left);pointer-events:none;flex-direction:column;grid-area:1/1;align-self:start;gap:8px;display:flex;position:relative}.health-chart-popup-group[data-side=left]{--popup-width:max(0px, min(230px, calc(var(--cursor-x) - 22px)));--popup-left:calc(var(--cursor-x) - 16px - var(--popup-width))}.health-chart-popup{color:#0f172a;pointer-events:none;overflow-wrap:anywhere;background:#fffffff7;border:1px solid #cbd5e1;border-radius:8px;width:100%;min-width:0;padding:10px 12px;font-size:12px;line-height:1.45;position:relative;box-shadow:0 4px 14px #0f172a24}.health-chart-popup-wifi{border-left:3px solid #2563eb}.health-chart-popup-free{border-left:3px solid #059669}.health-chart-popup-minimum{border-left:3px solid #b45309}.health-chart-popup-rs485{border-left:3px solid #7c3aed}.health-chart-popup-uart{border-left:3px solid #0e7490}.health-chart-popup>strong{font-size:13px;display:block}.health-chart-popup time{color:#475569;font-variant-numeric:tabular-nums;margin-top:3px;display:block}.health-chart-popup dl{margin:8px 0 0}.health-chart-popup dl>div{flex-wrap:wrap;justify-content:space-between;gap:2px 8px;padding:2px 0;display:flex}.health-chart-popup dt{color:#475569}.health-chart-popup dd{font-variant-numeric:tabular-nums;margin:0;font-weight:650}.health-chart-popup p{margin:8px 0 0;font-size:12px}.health-history-toolbar{flex-wrap:wrap;align-items:center;gap:12px 20px;margin-top:12px;display:flex}.health-history-toolbar .health-history-help{flex:300px;margin:0}.health-history-toolbar .pagination-button{flex:none}.health-chart-no-readings{color:#475569;text-align:center;pointer-events:none;background:#fff;padding:6px 10px;font-size:13px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.health-chart-y-axis,.health-chart-time-axis{overflow:visible}.health-chart-grid-line{stroke:#e5e7eb;stroke-width:1px}.health-chart-line{stroke-width:2px;stroke-linecap:round;stroke-linejoin:round}.health-chart-line-wifi{stroke:#2563eb}.health-chart-line-free{stroke:#059669}.health-chart-line-minimum{stroke:#b45309;stroke-dasharray:6 4}.health-chart-line-rs485{stroke:#7c3aed}.health-chart-line-uart{stroke:#0e7490}.health-chart-legend .health-legend-rs485{border-color:#7c3aed}.health-chart-legend .health-legend-uart{border-color:#0e7490}.device-health-diagnostics{border-top:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0;margin:20px 0;padding:18px 0}.health-diagnostics-heading{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;display:flex}.health-diagnostics-heading h3{margin:0;font-size:17px}.health-freshness{color:#92400e;background:#fff7ed;border-radius:6px;padding:5px 9px;font-size:12px}.health-freshness-recent{color:#065f46;background:#ecfdf5}.health-snapshot-context{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:12px 20px;margin:18px 0;display:grid}.health-snapshot-context dt{color:#64748b;margin-bottom:4px;font-size:12px}.health-snapshot-context dd{color:#1e293b;overflow-wrap:anywhere;margin:0;font-size:13px}.health-diagnostic-groups{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:14px;margin-top:18px;display:grid}.health-diagnostic-groups>section{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;min-width:0;padding:14px}.health-diagnostic-groups h4{color:#1e293b;margin:0 0 12px;font-size:14px}.health-diagnostic-groups dl{margin:0}.health-diagnostic-groups dl>div{border-bottom:1px solid #e2e8f0;flex-wrap:wrap;justify-content:space-between;gap:6px 12px;padding:10px 0;display:flex}.health-diagnostic-groups dt{color:#334155;font-size:13px}.health-diagnostic-groups small{color:#64748b;margin-top:4px;font-size:11px;line-height:1.5;display:block}.health-diagnostic-groups dd{color:#0f172a;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;margin:0;font-size:13px}.health-boot-reason{margin-top:14px;font-size:13px}.health-boot-reason p{overflow-wrap:anywhere;margin:6px 0}.health-chart-legend{color:#334155;flex-wrap:wrap;align-items:center;gap:6px 14px;min-height:48px;margin-bottom:12px;font-size:13px;font-weight:600;line-height:20px;display:flex}.health-chart-legend span{align-items:center;gap:8px;display:inline-flex}.health-chart-legend i{border-top:3px solid;flex:0 0 24px;width:24px;height:0;display:inline-block}.health-chart-legend .health-legend-wifi{border-color:#2563eb}.health-chart-legend .health-legend-free{border-color:#059669}.health-chart-legend .health-legend-minimum{border-color:#b45309;border-top-style:dashed}.health-chart-empty{color:#6b7280;text-align:center;justify-content:center;align-items:center;min-height:180px;font-size:13px;display:flex}@media (width<=900px){.health-chart-grid{grid-template-columns:1fr}}@media (width<=600px){.device-health-history-card .section-heading-row,.health-chart-heading{flex-direction:column}.health-chart-panel{padding:12px}.health-chart{grid-template-columns:64px minmax(0,1fr);column-gap:6px}}.health-rs485-communication{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;min-width:0;margin:18px 0;padding:16px}.health-rs485-heading{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;display:flex}.health-rs485-heading h4{color:#1e293b;margin:0;font-size:15px}.health-rs485-state{color:#334155;overflow-wrap:anywhere;background:#e2e8f0;border-radius:6px;max-width:100%;padding:5px 9px;font-size:13px;font-weight:600;display:inline-block}.health-rs485-state-healthy{color:#166534;background:#dcfce7}.health-rs485-state-warning{color:#9a3412;background:#fff7ed}.health-rs485-communication p{color:#475569;overflow-wrap:anywhere;margin:10px 0;font-size:13px;line-height:1.5}.health-rs485-communication .health-rs485-last-known{color:#92400e;font-weight:600}.health-rs485-values{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:14px 20px;margin:16px 0;display:grid}.health-rs485-values>div{min-width:0}.health-rs485-values dt{color:#334155;font-size:13px}.health-rs485-values dt small{color:#64748b;margin-top:3px;font-size:11px;line-height:1.5;display:block}.health-rs485-values dd{color:#0f172a;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;margin:5px 0 0;font-size:14px}.health-rs485-communication .health-rs485-scope{margin-bottom:0;font-size:12px}.health-rs485-sampled{color:#334155;border:1px solid #cbd5e1;border-radius:8px;flex-wrap:wrap;gap:6px 16px;margin:14px 0;padding:12px 14px;font-size:13px;display:flex}.health-rs485-sampled small{color:#64748b;flex-basis:100%;line-height:1.5}.event-category{margin-top:3px;font-weight:500}.event-status-info{color:#1e40af;background:#eff6ff;border:1px solid #bfdbfe}.event-status-warning{color:#92400e;background:#fffbeb;border:1px solid #fde68a}.event-status-neutral{color:#475569;background:#f1f5f9;border:1px solid #cbd5e1}.event-code-combobox{min-width:0;position:relative}.event-code-combobox input{width:100%}.event-code-options{z-index:20;background:#fff;border:1px solid #cbd5e1;border-radius:10px;width:max(100%,280px);max-width:min(380px,100vw - 48px);max-height:280px;padding:4px;position:absolute;top:calc(100% + 6px);left:0;overflow-y:auto;box-shadow:0 8px 24px #0f172a24}.event-code-option{color:#1e293b;text-align:left;width:100%;font:inherit;white-space:normal;cursor:pointer;background:0 0;border:0;border-radius:6px;padding:10px 12px;display:block}.event-code-option-active,.event-code-option:hover,.event-code-option:focus-visible{color:#1d4ed8;background:#eff6ff}.event-code-empty{color:#64748b;padding:10px 12px;font-size:.875rem}
