:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #263b4b; background: #f3f6f8; font-synthesis: none; --ink: #263b4b; --muted: #6c7f8d; --line: #e2e9ed; --green: #287d61; --green-soft: #eaf6ee; --yellow: #996a15; --yellow-soft: #fff6df; --red: #b74747; --red-soft: #fff0ef; --blue: #497fbd; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; line-height: 1.5; }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
button, input, select { border-radius: 7px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, svg:focus-visible { outline: 3px solid #73ad95; outline-offset: 3px; }
main:focus { outline: none; }
::selection { background: #d2e9dc; }
.skip-link { position: fixed; left: 20px; top: 12px; padding: 10px 18px; background: #fff; z-index: 10; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner, .portal-shell { width: min(1460px, calc(100% - 80px)); margin-inline: auto; }
.header-inner { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { display: block; width: 235px; height: auto; }
.button { min-height: 42px; border: 1px solid transparent; padding: 10px 17px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 13px; font-weight: 600; line-height: 1.3; text-decoration: none; transition: background-color .15s ease, border-color .15s ease; white-space: nowrap; }
.button svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.button-primary { color: #fff; background: var(--green); }
.button-primary:hover:not(:disabled) { background: #1d644d; }
.button-secondary { border-color: #d3dfe5; background: #fff; color: var(--ink); }
.button-secondary:hover:not(:disabled), .button-quiet:hover { background: #edf3f5; }
.button-quiet { background: transparent; color: #526574; font-weight: 500; }
.button-quiet span { font-size: 18px; }
main.portal-shell { min-height: calc(100vh - 183px); padding-block: 38px 46px; }
.status-message { padding: 14px 18px; margin-bottom: 22px; font-size: 13px; color: #456071; border: 1px solid #dce6eb; border-radius: 9px; background: #fff; overflow-wrap: anywhere; }
.status-error { color: #895f20; background: #fff8e8; border-color: #eadab4; }
.sign-in-panel { width: min(510px, 100%); margin: 7vh auto 9vh; padding: 54px 54px 46px; background: #fff; border: 1px solid var(--line); border-radius: 15px; text-align: center; box-shadow: 0 8px 30px #26435405; }
.sign-in-mark { width: 66px; height: 66px; background: var(--green-soft); border-radius: 18px; margin: 0 auto 27px; padding: 14px; color: var(--green); }
.sign-in-mark svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sign-in-panel h1 { font-size: clamp(29px, 4vw, 35px); font-weight: 600; letter-spacing: -1.1px; }
.sign-in-panel p { font-size: 15px; color: var(--muted); margin: 12px auto 27px; max-width: 325px; }
.sign-in-panel .button { width: 100%; min-height: 47px; justify-content: space-between; padding-inline: 20px; }
.support-link { display: inline-block; margin-top: 26px; color: var(--muted); font-size: 12px; text-underline-offset: 4px; }
.loading-panel { min-height: 430px; display: grid; justify-content: center; align-content: center; justify-items: center; gap: 24px; }
.loading-panel h1 { font-size: 24px; font-weight: 500; }
.loading-indicator { display: block; width: 32px; height: 32px; border: 2px solid #d8e3e7; border-top-color: var(--green); border-radius: 50%; animation: loading-spin 1s linear infinite; }
.dashboard-heading { display: flex; justify-content: space-between; align-items: center; gap: 22px; margin-bottom: 29px; }
.customer-name { color: var(--green); font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.device-title h1 { font-size: clamp(25px, 2.6vw, 33px); line-height: 1.25; font-weight: 500; letter-spacing: -1px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px; }
.device-serial { color: #6b7d8b; font-size: .64em; letter-spacing: -.3px; font-weight: 500; }
.device-label { margin-top: 7px; font-size: 12px; color: var(--muted); }
.dashboard-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.device-picker { display: grid; gap: 4px; font-size: 11px; color: var(--muted); }
select, input[type="datetime-local"] { min-height: 38px; border: 1px solid #cfdae1; background: #fff; padding: 7px 10px; color: var(--ink); max-width: 100%; }
.device-picker select { min-width: 155px; font-size: 12px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 264px; gap: 25px; align-items: start; }
.graph-stack { display: grid; gap: 24px; min-width: 0; }
.graph-card { min-width: 0; padding: 25px 27px 22px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 3px 12px #29435403; }
.graph-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 21px; }
.graph-heading h2 { font-size: 18px; font-weight: 600; letter-spacing: -.35px; }
.graph-subtitle { color: var(--muted); font-size: 11px; margin-top: 4px; }
.range-buttons { display: flex; align-items: center; gap: 3px; padding: 3px; background: #f1f5f7; border: 1px solid #edf1f3; border-radius: 7px; flex-shrink: 0; }
.range-button { border: none; min-height: 29px; padding: 5px 9px; background: transparent; color: #718493; font-size: 11px; border-radius: 5px; white-space: nowrap; }
.range-button[aria-pressed="true"] { color: var(--ink); background: #fff; box-shadow: 0 1px 5px #29445813; font-weight: 600; }
.range-button:hover { color: var(--ink); }
.custom-range { padding: 13px 15px; margin: -5px 0 20px; background: #f7fafb; border: 1px solid var(--line); border-radius: 8px; }
.custom-range-fields { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.custom-range label, .date-fields label { display: grid; gap: 5px; font-size: 11px; color: #647887; }
.custom-range input { font-size: 12px; }
.custom-range .button { min-height: 37px; font-size: 11px; }
.field-note { font-size: 11px; color: var(--muted); margin-top: 8px; }
.latest-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 23px; }
.latest-grid-many { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.latest-tile { min-width: 0; border-left: 2px solid #98b8d8; padding: 1px 0 0 12px; }
.latest-label { color: #6b7f8e; font-size: 11px; line-height: 1.4; margin-bottom: 6px; overflow-wrap: anywhere; }
.latest-value { color: var(--ink); font-size: 24px; font-weight: 500; letter-spacing: -.7px; font-variant-numeric: tabular-nums; line-height: 1.25; }
.latest-unit { color: #8394a0; font-size: 11px; font-weight: 400; letter-spacing: 0; margin-left: 6px; }
.latest-note { font-size: 10px; color: #8b7044; min-height: 15px; margin-top: 3px; }
.chart-area { min-width: 0; min-height: 210px; }
.chart-status { color: #78909f; font-size: 12px; padding-block: 10px; }
.chart-status-error { color: #996a15; }
.graph-retry { margin-top: 9px; min-height: 32px; padding: 7px 12px; font-size: 11px; }
.chart-figure { margin: 0; }
.history-chart { display: block; width: 100%; height: auto; overflow: visible; }
.history-chart text { fill: #8697a5; font-family: inherit; font-size: 11px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 10px 17px; padding-block: 7px 14px; font-size: 11px; color: #708595; }
.chart-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend-mark { width: 16px; height: 8px; flex-shrink: 0; }
.chart-readout { padding: 8px 10px; min-height: 33px; border: 1px solid #e3ebf0; border-radius: 6px; color: #5f788b; background: #f8fbfd; font-size: 11px; margin-top: 9px; overflow-wrap: anywhere; }
.chart-empty { min-height: 190px; display: grid; align-items: center; text-align: center; padding: 25px; color: var(--muted); font-size: 13px; background: #fbfdfe; border: 1px dashed #dae5eb; border-radius: 7px; }
.chart-data { margin-top: 11px; color: #708595; font-size: 11px; }
.chart-data summary { display: inline-block; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.chart-table-wrap { width: 100%; overflow: auto; margin-top: 10px; max-height: 280px; }
.chart-data-table { width: 100%; border-collapse: collapse; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chart-data-table th, .chart-data-table td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; font-size: 11px; }
.chart-data-table th { font-weight: 600; background: #f8fafb; }
.sensor-panel { position: sticky; top: 24px; padding: 25px 22px 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.sensor-panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.sensor-panel-heading h2 { font-size: 17px; font-weight: 600; letter-spacing: -.25px; }
.sensor-heading-icon { color: #9bb1be; font-size: 17px; }
.sensor-row { padding-block: 18px; border-bottom: 1px solid #edf1f4; }
.sensor-row-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sensor-label { color: #425b6d; font-size: 12px; font-weight: 500; }
.sensor-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; padding: 3px 7px; border-radius: 20px; white-space: nowrap; font-weight: 500; }
.sensor-badge::before { content: ""; width: 5px; height: 5px; background: currentColor; border-radius: 50%; flex-shrink: 0; }
.sensor-green { color: var(--green); background: var(--green-soft); }
.sensor-yellow { color: var(--yellow); background: var(--yellow-soft); }
.sensor-red { color: var(--red); background: var(--red-soft); }
.sensor-age { font-size: 10px; color: #8598a5; margin-top: 5px; overflow-wrap: anywhere; }
.last-received { margin-top: 17px; color: #8598a5; font-size: 10px; line-height: 1.6; }
.site-footer { min-height: 79px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: #8395a2; font-size: 10px; padding-block: 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.export-dialog { width: min(680px, calc(100% - 32px)); max-height: min(860px, calc(100vh - 48px)); padding: 29px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: #fff; box-shadow: 0 25px 90px #182d4430; }
.export-dialog::backdrop { background: #20334365; backdrop-filter: blur(3px); }
.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; margin-bottom: 24px; }
.dialog-heading h2 { font-size: 24px; font-weight: 500; letter-spacing: -.5px; }
.dialog-description { color: var(--muted); margin-top: 4px; font-size: 12px; }
.icon-button { min-width: 30px; min-height: 30px; border: 0; padding: 0; background: #f2f6f8; color: #6d8392; font-size: 23px; line-height: 1; }
fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
.export-range legend { font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.date-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.date-fields input { font-size: 12px; width: 100%; }
.measurement-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 26px; margin-bottom: 13px; }
.measurement-heading h3 { font-size: 13px; font-weight: 600; }
.measurement-heading > div { display: flex; gap: 15px; }
.text-button { border: 0; background: none; padding: 3px 0; color: var(--green); font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.export-measurements { display: grid; gap: 17px; max-height: 295px; overflow: auto; padding-right: 7px; }
.export-measurement-group legend { color: #6c8494; font-size: 11px; font-weight: 600; margin-bottom: 7px; }
.export-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 15px; }
.export-option { display: flex; align-items: flex-start; gap: 8px; color: #435f73; font-size: 11px; }
.export-option input { margin: 2px 0 0; accent-color: var(--green); }
.export-status { padding: 10px 13px; margin-top: 19px; border: 1px solid #dce9e4; border-radius: 6px; background: #f3f9f6; color: #47695a; font-size: 12px; }
.export-status-error { background: #fff7e8; color: #93671c; border-color: #ead9b6; }
.dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 25px; padding-top: 19px; border-top: 1px solid var(--line); }
.admin-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 27px; }
.admin-heading h1 { font-size: clamp(28px, 3vw, 34px); font-weight: 500; letter-spacing: -1px; }
.admin-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 22px; margin-bottom: 24px; font-size: 15px; color: #536c7e; }
.admin-count { color: var(--ink); font-size: 32px; font-weight: 500; letter-spacing: -.8px; margin-right: 5px; font-variant-numeric: tabular-nums; }
.admin-summary-note { color: var(--muted); font-size: 12px; }
.admin-customer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.admin-customer-card { text-align: left; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 25px; min-height: 184px; display: flex; flex-direction: column; align-items: flex-start; gap: 13px; box-shadow: 0 3px 12px #29435403; }
.admin-customer-card:hover { border-color: #a8c5b8; background: #fcfefc; }
.admin-customer-name { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.3px; line-height: 1.35; }
.customer-status { display: inline-flex; padding: 3px 9px; border-radius: 20px; font-size: 10px; font-weight: 500; color: var(--green); background: var(--green-soft); }
.customer-coming-soon { color: #758493; background: #edf2f5; }
.admin-card-count { color: #6c8090; font-size: 12px; margin-top: auto; }
.admin-card-count strong { color: var(--ink); font-size: 21px; font-weight: 500; margin-right: 3px; }
.admin-card-link { color: var(--green); font-size: 12px; }
.admin-back { margin-bottom: 22px; font-size: 12px; }
.admin-customer-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 15px; }
.admin-customer-heading h2 { font-size: 26px; letter-spacing: -.6px; font-weight: 500; }
.admin-device-list { display: grid; gap: 22px; }
.admin-device-card { padding: 25px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.admin-device-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.admin-device-heading h3 { font-size: 19px; font-weight: 600; letter-spacing: -.25px; }
.admin-device-heading p { color: var(--muted); font-size: 12px; margin-top: 5px; }
.admin-device-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 9px; }
.admin-card-lifecycle { color: var(--muted); font-size: 11px; }
.kit-status { display: inline-flex; padding: 3px 9px; margin-top: 9px; border-radius: 20px; font-size: 10px; font-weight: 500; }
.kit-deployed { color: var(--green); background: var(--green-soft); }
.kit-provisioned { color: #58758b; background: #edf3f7; }
.kit-deployment-note { color: var(--muted); font-size: 12px; padding-bottom: 16px; line-height: 1.6; }
.admin-device-sensors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 25px; }
.admin-device-sensors .sensor-row { padding-block: 8px 12px; }
.admin-device-sensors .sensor-row-heading { gap: 8px; }
.admin-empty { padding: 38px 24px; text-align: center; color: #6f8493; font-size: 14px; background: #fff; border: 1px dashed #d5e1e7; border-radius: 12px; }
.invite-dialog { width: min(520px, calc(100% - 32px)); }
.invite-fields { display: grid; gap: 18px; }
.invite-fields label { display: grid; gap: 7px; color: #526d7f; font-size: 12px; }
.invite-fields input, .invite-fields select { width: 100%; min-height: 42px; border: 1px solid #cfdae1; background: #fff; padding: 9px 11px; color: var(--ink); font-size: 14px; }
@keyframes loading-spin { to { transform: rotate(360deg); } }
@media (min-width: 1650px) { .graph-card { padding-inline: 31px; } .dashboard-grid { gap: 30px; } }
@media (max-width: 1120px) { .header-inner, .portal-shell { width: calc(100% - 48px); } .dashboard-grid { grid-template-columns: minmax(0, 1fr) 240px; gap: 18px; } .graph-card { padding: 22px; } .graph-heading { flex-wrap: wrap; gap: 12px; } .sensor-panel { padding: 23px 18px; } .latest-grid-many { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 850px) { .dashboard-grid { grid-template-columns: 1fr; } .sensor-panel { position: static; grid-row: 1; } .sensor-status-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; } .sensor-row-heading { align-items: flex-start; flex-direction: column; gap: 7px; } .sensor-row { padding-block: 12px; } .last-received { margin-top: 11px; } .dashboard-heading { align-items: flex-start; } .dashboard-actions { align-items: flex-end; flex-direction: column; gap: 10px; } .sensor-panel-heading { margin-bottom: 4px; } }
@media (max-width: 850px) { .admin-customer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .admin-device-sensors { grid-template-columns: repeat(2, minmax(0, 1fr)); } .admin-device-sensors .sensor-row-heading { flex-direction: row; align-items: center; } }
@media (max-width: 560px) { .header-inner, .portal-shell { width: calc(100% - 32px); } .header-inner { min-height: 83px; } .brand-logo { width: 183px; } .button-quiet { padding-inline: 8px; font-size: 12px; } main.portal-shell { padding-top: 25px; } .dashboard-heading { flex-wrap: wrap; gap: 18px; margin-bottom: 23px; } .dashboard-actions { align-items: center; flex-direction: row; flex-wrap: wrap; width: 100%; justify-content: space-between; } .dashboard-actions .button { min-height: 38px; font-size: 12px; } .device-title h1 { font-size: 28px; } .device-serial { font-size: 17px; } .sensor-status-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sensor-panel { padding: 20px; } .graph-card { padding: 20px 16px 17px; } .range-buttons { width: 100%; } .range-button { flex: 1; } .graph-heading { gap: 15px; } .latest-value { font-size: 23px; } .latest-label { font-size: 10px; } .latest-unit { display: block; margin-left: 0; margin-top: 2px; } .latest-grid { gap: 14px 10px; } .sign-in-panel { padding: 37px 27px 31px; margin-block: 6vh; } .site-footer { flex-wrap: wrap; gap: 8px; } .date-fields, .export-options { grid-template-columns: 1fr; } .export-dialog { padding: 23px; } .dialog-heading h2 { font-size: 22px; } .custom-range label { width: 100%; } .custom-range input { width: 100%; } }
@media (max-width: 560px) { .header-actions { gap: 1px; } .brand-logo { width: 165px; } .admin-heading { align-items: flex-start; flex-wrap: wrap; } .admin-heading .button { min-height: 38px; font-size: 12px; } .admin-customer-grid { grid-template-columns: 1fr; gap: 15px; } .admin-customer-card { min-height: 155px; padding: 22px; } .admin-device-card { padding: 20px; } .admin-device-heading { flex-wrap: wrap; } .admin-device-sensors { gap: 7px 14px; } .admin-device-sensors .sensor-row-heading { flex-direction: column; align-items: flex-start; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
