/* HKA_PUBLIC_DASHBOARD_STYLE_V107 */
.hpd-stats[hidden],.hpd-coverage[hidden],.hpd-telemetry[hidden]{display:none!important}
#hkaSpatialDashboard:not([data-hpd-map-mode="account"]){grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"header" "main"}
#hkaSpatialDashboard:not([data-hpd-map-mode="account"]) .hds-sidebar{display:none!important}
body.hka-public-dashboard #hkaSpatialDashboard .hds-sidebar,body.hka-public-dashboard #hkaSpatialDashboard .hds-search-wrap,body.hka-public-dashboard #hkaSpatialDashboard .hds-menu-toggle,body.hka-public-dashboard #hkaSpatialDashboard .hds-stats,body.hka-public-dashboard #hkaSpatialDashboard .hds-map-footer button,body.hka-public-dashboard #hkaSpatialDashboard .hds-layer-card footer,body.hka-public-dashboard #telemetryDashboardShell,body.hka-public-dashboard #hkaSpatialDashboard .hds-coverage>:not(.hpd-coverage),body.hka-public-dashboard #hkaSpatialDashboard .hds-telemetry>:not(.hpd-telemetry){display:none!important}
body.hka-public-dashboard .leaflet-popup:not(.hpd-map-popup){visibility:hidden!important}
/* Apply to the first frame, including the interval before the session is ready. */
body:not(.hka-spatial-dashboard) #map {
  box-sizing:border-box;
  grid-column:1/-1;
  inset-inline:0;
  width:100%!important;
  max-width:none;
}
#hkaSpatialDashboard .hds-workspace {
  --hpd-layer-fallback:56px;
  position:relative;
  grid-template-columns:minmax(0,1fr)!important;
  min-width:0;
}
#hkaSpatialDashboard .hds-workspace > .hds-map-card {
  grid-column:1/-1;
  min-width:0;
  width:100%;
  box-sizing:border-box;
}
#hkaSpatialDashboard:not([data-hpd-layers-open]) .hds-layer-card,
body:not(.hka-spatial-dashboard) #map .leaflet-control-layers { display:none!important; }
#hkaSpatialDashboard[data-hpd-layers-open] .hds-workspace > .hds-layer-card:not([hidden]) {
  position:absolute;
  inset:var(--hpd-layer-top, var(--hpd-layer-fallback)) 12px auto auto;
  width:min(290px,calc(100% - 24px));
  max-height:calc(100% - var(--hpd-layer-top, var(--hpd-layer-fallback)) - 12px)!important;
  height:auto!important;
  min-height:0;
  z-index:8;
  box-sizing:border-box;
  overflow:auto;
  background:#fff;
  box-shadow:0 6px 20px rgb(12 53 86 / 18%);
}
#hkaSpatialDashboard[data-hpd-layers-open] .hds-map-card.hds-expanded > .hds-layer-card:not([hidden]) {
  top:var(--hpd-layer-top, var(--hpd-layer-fallback));
  max-height:calc(100% - var(--hpd-layer-top, var(--hpd-layer-fallback)) - 12px);
}
@media(max-width:480px) {
  #hkaSpatialDashboard .hds-workspace { --hpd-layer-fallback:84px; }
}
#hkaSpatialDashboard:not([data-hpd-map-mode="account"]) .hds-main{grid-column:1;min-width:0}
#hkaSpatialDashboard:not([data-hpd-map-mode="account"]) .hds-header{grid-column:1/-1;grid-template-columns:minmax(0,1fr) auto}
body.hka-public-dashboard #hkaSpatialDashboard .hds-account-wrap{margin-left:auto}
body.hka-public-dashboard #hkaSpatialDashboard .hds-brand{min-width:0;flex-shrink:1}
#hkaSpatialDashboard .hpd-stats {
  display: grid;
  grid-row: 1;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  gap: 6px;
  margin: 0;
}
#hkaSpatialDashboard .hpd-stat {
  --hpd-accent: #1767ae;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr));
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 58px;
  height: auto;
  margin: 0;
  padding: 7px 0;
  box-sizing: border-box;
  appearance: none;
  border: 1px solid #d5e2ef;
  border-inline-start: 4px solid var(--hpd-accent);
  border-radius: 9px;
  background: #fff;
  color: #183c5d;
  font: inherit;
  text-align: start;
}
#hkaSpatialDashboard .hpd-tele-stat { --hpd-accent: #087b66; cursor: pointer; }
#hkaSpatialDashboard .hpd-tele-stat:hover { background: #f6fbfa; border-color: #92c8bc; border-inline-start-color: var(--hpd-accent); }
#hkaSpatialDashboard .hpd-tele-stat:focus-visible { outline: 3px solid #3184cc; outline-offset: 1px; }
#hkaSpatialDashboard .hpd-stat-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding-inline: clamp(10px, 1.3vw, 22px);
  min-width: 0;
}
#hkaSpatialDashboard .hpd-stat-heading { min-width: 0; }
#hkaSpatialDashboard .hpd-stat-title { display: block; color: #143e61; font-size: 14px; font-weight: 700; line-height: 1.2; }
#hkaSpatialDashboard .hpd-stat-note { display: block; margin-top: 2px; color: #506a7e; font-size: 10px; line-height: 1.3; }
#hkaSpatialDashboard .hpd-big {
  color: var(--hpd-accent);
  font-size: clamp(18px, 1.6vw, 25px);
  font-weight: 700;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#hkaSpatialDashboard .hpd-kind {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "icon label" "icon value";
  align-items: center;
  align-content: center;
  min-width: 0;
  gap: 1px clamp(7px, 1vw, 14px);
  padding-inline: clamp(10px, 1.4vw, 24px);
  border-inline-start: 1px solid #dfe8f0;
}
#hkaSpatialDashboard .hpd-kind-icon {
  grid-area: icon;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #1768ac;
  background: #e8f2ff;
}
#hkaSpatialDashboard .hpd-kind[data-kind="tma"] .hpd-kind-icon { color: #087468; background: #e4f4ee; }
#hkaSpatialDashboard .hpd-kind[data-kind="climate"] .hpd-kind-icon { color: #955a08; background: #fff2d8; }
#hkaSpatialDashboard .hpd-kind-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
#hkaSpatialDashboard .hpd-kind-name { grid-area: label; color: #435e75; font-size: 12px; font-weight: 550; line-height: 1.25; }
#hkaSpatialDashboard .hpd-kind-value { grid-area: value; color: #173e5d; font-size: 18px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
#hkaSpatialDashboard .hpd-reader-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 740px) {
  #hkaSpatialDashboard .hpd-stat {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 6px;
    padding: 7px 6px;
  }
  #hkaSpatialDashboard .hpd-stat-intro { grid-column: 1 / -1; gap: 8px; padding: 0 5px 5px; border-bottom: 1px solid #e3ebf2; }
  #hkaSpatialDashboard .hpd-stat-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 1px 8px; }
  #hkaSpatialDashboard .hpd-stat-title { font-size: 13px; }
  #hkaSpatialDashboard .hpd-stat-note { margin: 0; }
  #hkaSpatialDashboard .hpd-kind { justify-content: center; grid-template-columns: auto auto; column-gap: 6px; padding-inline: 3px; }
  #hkaSpatialDashboard .hpd-stat-intro + .hpd-kind { border-inline-start: none; }
  #hkaSpatialDashboard .hpd-kind-icon { width: 27px; height: 27px; }
  #hkaSpatialDashboard .hpd-kind-icon svg { width: 18px; height: 18px; }
  #hkaSpatialDashboard .hpd-kind-name { font-size: 11px; }
  #hkaSpatialDashboard .hpd-kind-value { font-size: 15px; }
}
@media (max-width: 420px) {
  #hkaSpatialDashboard .hpd-kind {
    grid-template-areas: "icon value" "label label";
    row-gap: 3px;
    text-align: center;
  }
  #hkaSpatialDashboard .hpd-kind-icon { width: 22px; height: 22px; border-radius: 5px; }
  #hkaSpatialDashboard .hpd-kind-icon svg { width: 16px; height: 16px; }
}
#hkaSpatialDashboard .hpd-coverage{display:flex;flex-direction:column;width:100%;min-width:0;height:100%}
#hkaSpatialDashboard .hpd-coverage>header{display:flex;align-items:center;justify-content:space-between;padding:9px 12px;gap:8px}
#hkaSpatialDashboard .hpd-coverage h2{font-size:13px;margin:0;color:#10426c}

#hkaSpatialDashboard .hpd-tabs{display:flex;background:#f0f4fa;border-radius:7px;margin:0 10px 8px;padding:3px;gap:4px}
#hkaSpatialDashboard .hpd-tabs button{flex:1;border:0;background:transparent;font-size:11px;padding:7px 4px;border-radius:6px;color:#52729b;cursor:pointer}
#hkaSpatialDashboard .hpd-tabs button[aria-selected=true]{color:#fff;background:#0866f4;box-shadow:0 2px 5px #0866f426}
#hkaSpatialDashboard .hpd-counties{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-auto-rows:64px;gap:6px;max-height:204px;overflow:auto;scrollbar-width:thin;scrollbar-gutter:stable;margin:0 10px 8px;padding:0;align-content:start}
#hkaSpatialDashboard .hpd-county{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:6px;border:1px solid #d3e2f7;border-radius:8px;background:#f7faff;color:#164d86;font-family:inherit;font-size:11px;line-height:1.2;cursor:pointer;min-width:0;text-align:center}
#hkaSpatialDashboard .hpd-county:hover{background:#edf5ff;border-color:#86b2ee}#hkaSpatialDashboard .hpd-county strong{font-size:12px;font-weight:650;color:#174c77;overflow-wrap:anywhere}#hkaSpatialDashboard .hpd-county small{font-size:11px;color:#54718c;font-variant-numeric:tabular-nums}
#hkaSpatialDashboard .hpd-status{margin:0 12px 6px;font-size:11px;color:#768295}#hkaSpatialDashboard .hpd-status:empty{display:none}

#hkaSpatialDashboard .hpd-button{border:1px solid #c9dcf7;border-radius:6px;background:white;color:#0666e8;padding:5px 12px;font-family:inherit;font-size:11px;cursor:pointer}
#hkaSpatialDashboard .hpd-telemetry{display:flex;flex-direction:column;width:100%;height:100%;color:#163f65}
#hkaSpatialDashboard .hpd-telemetry>header{padding:9px 11px;border-bottom:1px solid #e1e9f3;font-size:13px;font-weight:700}
#hkaSpatialDashboard .hpd-telemetry>footer{border-top:1px solid #e1e9f3;padding:8px 12px;color:#7a8da5;font-size:10px}
#hkaSpatialDashboard#hkaSpatialDashboard .hpd-carousel.htv.htc{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;padding:8px 10px;background:#fff;color:#17436a;border:0;border-radius:0}
#hkaSpatialDashboard .hpd-carousel .htc-toolbar{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:9px}
html body #hkaSpatialDashboard#hkaSpatialDashboard .hpd-carousel.htv.htc select{width:100%;height:28px;min-height:28px;max-width:calc(100% - 44px);padding:3px 7px;border:1px solid #66809a;border-radius:4px;background:#173b56;color:#fff;font-size:10px}
#hkaSpatialDashboard .hpd-carousel .htc-count{font-size:9px;color:#7188a3;white-space:nowrap}
#hkaSpatialDashboard#hkaSpatialDashboard .hpd-carousel .htc-stage{display:flex;flex:1;flex-direction:column;justify-content:center;min-height:120px}
#hkaSpatialDashboard .hpd-carousel .htc-slide{min-width:0;animation:none!important}
#hkaSpatialDashboard .hpd-carousel .htc-meta{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:9px;color:#6c829e;margin-bottom:6px}
#hkaSpatialDashboard .hpd-carousel .htv-badge{font-size:9px;background:none;border:0;padding:0;color:#748399;white-space:nowrap}
#hkaSpatialDashboard .hpd-carousel .htv-badge:before{content:"";display:inline-block;width:5px;height:5px;border-radius:50%;background:currentColor;margin-right:5px}
#hkaSpatialDashboard .hpd-carousel .htv-badge.is-online{color:#05996f}#hkaSpatialDashboard .hpd-carousel .htv-badge.is-offline{color:#b77b00}
html body #hkaSpatialDashboard#hkaSpatialDashboard .hpd-carousel.htv.htc h3{font-size:13px!important;line-height:1.35!important;min-height:0;margin:0 0 3px;color:#174d81;font-weight:700;overflow-wrap:anywhere}
#hkaSpatialDashboard .hpd-carousel .htc-county{font-size:9px;line-height:1.4;color:#768ba4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#hkaSpatialDashboard .hpd-telemetry svg,#hkaSpatialDashboard .hpd-map-telemetry svg{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

#hkaSpatialDashboard .hpd-carousel .htc-reading{display:block;font-size:9px;line-height:1.4;color:#748ca9}
#hkaSpatialDashboard .hpd-carousel .htc-controls{display:flex;align-items:center;gap:4px;padding-top:7px;margin-top:8px;border-top:1px solid #dae5f2}
html body #hkaSpatialDashboard#hkaSpatialDashboard .hpd-carousel.htv.htc .htc-controls button{display:grid;place-items:center;min-width:25px;width:25px;height:25px;min-height:25px;padding:2px;border:1px solid #d5e3f6;border-radius:4px;background:#f8faff;color:#18518a;font-size:17px;line-height:1}
html body #hkaSpatialDashboard#hkaSpatialDashboard .hpd-carousel.htv.htc .htc-controls button:nth-child(2){font-size:12px}
#hkaSpatialDashboard .hpd-carousel .htc-page{margin-left:auto;font-size:9px;color:#6f87a5}
#hkaSpatialDashboard .hpd-telemetry-empty{font-size:11px;color:#74879d;text-align:center;padding:18px 0}
#hkaSpatialDashboard .hpd-telemetry-open{display:flex;align-items:center;justify-content:center;width:100%;gap:6px;padding:5px 7px;border:1px solid #c8dcfa;border-radius:5px;color:#0866ee;background:#fff;font-size:10px;cursor:pointer}
#hkaSpatialDashboard .hpd-telemetry-open svg{width:14px;height:14px;flex-basis:14px;pointer-events:none}
body.hka-public-dashboard #hkaSpatialDashboard .hpd-map-telemetry{display:inline-grid;place-items:center;background:#173f62;color:#fff;border:1px solid #c5e0ef;border-radius:9px;width:38px;height:38px;padding:8px;animation:none!important;pointer-events:auto!important;cursor:pointer}
body.hka-public-dashboard #hkaSpatialDashboard .hpd-map-telemetry svg{width:20px;height:20px;color:#fff;stroke:#fff;animation:none!important;pointer-events:none!important}
html body .hpd-dialog{width:min(780px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:0;border:1px solid #c8d9ed;border-radius:12px;background:#fff;color:#164368;box-shadow:0 20px 80px #0a294c44;font:13px/1.5 Inter,"Segoe UI",Arial,sans-serif}
.hpd-dialog::backdrop{background:#0b213f66}.hpd-dialog>header{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border-bottom:1px solid #dfe8f3}.hpd-dialog h2{font-size:17px;margin:0}.hpd-dialog p{font-size:11px;margin:2px 0;color:#70829c}.hpd-dialog button{background:#f1f6fc;border:0;border-radius:6px;width:32px;height:32px;color:#345f83;font-size:21px;cursor:pointer}.hpd-stations{padding:10px 16px;overflow:auto;max-height:65vh}.hpd-map-summary{color:#143e64}.hpd-map-summary strong{display:block}.hpd-map-summary div{font-size:10px;margin-top:4px}
.hpd-public button:focus-visible,.hpd-dialog button:focus-visible{outline:3px solid #4a9df5;outline-offset:2px}
/* HKA_COVERAGE_MODAL_CENTER_V101 — center both public and signed-in coverage
   dialogs in the viewport. Keep their native top layer, widths and controls. */
html body dialog.hpd-dialog[open],
html body.hka-spatial-dashboard dialog.htca-dialog[open],
html body.hka-spatial-dashboard dialog:is(#hdsCoverageDetail,#hdsCoverageMonthDetail,#hkcCoverageDetail,#hkcCoverageCounty)[open]{position:fixed!important;inset:0!important;margin:auto!important;transform:none!important;translate:none!important;height:fit-content!important;block-size:fit-content!important;min-height:0!important;min-block-size:0!important;max-height:calc(100vh - 32px)!important;max-height:calc(100dvh - 32px)!important;box-sizing:border-box}
html body dialog.hpd-dialog[open]{display:flex;flex-direction:column;overflow:hidden;max-width:calc(100vw - 24px)}
html body dialog.hpd-dialog>header{flex:0 0 auto}
html body dialog.hpd-dialog .hpd-stations{min-height:0;flex:0 1 auto;overflow:auto;overscroll-behavior:contain}
@media(min-width:1251px){body.hka-public-dashboard #hkaSpatialDashboard .hds-bottom{display:grid!important;grid-template-columns:minmax(0,58fr) minmax(0,17.3fr) minmax(0,24.7fr)!important;gap:8px;align-items:stretch}body.hka-public-dashboard #hkaSpatialDashboard .hds-bottom>.hds-coverage{grid-column:1!important}body.hka-public-dashboard #hkaSpatialDashboard .hds-bottom>.hds-telemetry{grid-column:2!important}body.hka-public-dashboard #hkaSpatialDashboard .hds-bottom>.hcc-card{grid-column:3!important}}
@media(max-width:1250px){body.hka-public-dashboard #hkaSpatialDashboard .hds-bottom{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.hka-public-dashboard #hkaSpatialDashboard .hds-bottom>.hds-coverage{grid-column:1/-1!important}body.hka-public-dashboard #hkaSpatialDashboard .hds-bottom>.hds-telemetry{grid-column:1!important}}
@media(max-width:640px){body.hka-public-dashboard #hkaSpatialDashboard .hds-brand strong{font-size:12px}body.hka-public-dashboard #hkaSpatialDashboard .hds-logo{width:32px;height:36px}body.hka-public-dashboard #hkaSpatialDashboard .hds-header{gap:10px;padding:0 12px}#hkaSpatialDashboard .hpd-counties{grid-template-columns:repeat(2,minmax(0,1fr));max-height:246px}body.hka-public-dashboard #hkaSpatialDashboard .hds-bottom{grid-template-columns:minmax(0,1fr)!important}body.hka-public-dashboard #hkaSpatialDashboard .hds-bottom>.hcc-card{grid-column:1!important}}
/* Position each availability label in the center of its own equal-width tab. */
body #hkaSpatialDashboard .hds-coverage .hpd-tabs,
body #hkaSpatialDashboard .hds-coverage .hds-types {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
body #hkaSpatialDashboard .hds-coverage .hpd-tabs > button,
body #hkaSpatialDashboard .hds-coverage .hds-types > button {
  display: flex;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  align-items: center;
  justify-content: center !important;
  text-align: center !important;
}
body #hkaSpatialDashboard .hds-coverage .hds-type > span {
  text-align: center;
  justify-self: stretch;
}
#hkaSpatialDashboard .hpd-hour-link {
  width: fit-content;
  margin: 10px 0;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 9px;
  border: 1px solid #c9dff3;
  border-radius: 5px;
  background: #f5faff;
  color: #075cbb;
  line-height: 1.4;
  font-weight: 600;
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
}
html body dialog.hpd-browser { width: min(570px, calc(100vw - 24px)); }
html body dialog.hpd-browser.hpd-show-hours { width: min(1140px, calc(100vw - 24px)); }
.hpd-browser-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 12px 16px 16px;
  gap: 10px;
}
.hpd-browser-body button {
  width: auto;
  height: auto;
  min-height: 32px;
  padding: 4px 9px;
  color: #164d81;
  border: 1px solid #d6e3ee;
  background: #fff;
  font-family: inherit;
  font-size: 12px;
}
.hpd-browser-types { display: flex; flex-wrap: wrap; gap: 4px; }
.hpd-browser-types .hpd-browser-type[aria-pressed=true] { background: #0a60d2; color: #fff; border-color: #0a60d2; }
.hpd-device-list { min-height: 0; overflow: auto; scrollbar-gutter: stable; }
.hpd-device-list .hpd-device-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 12px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 6px 8px;
  border: 0;
  border-bottom: 1px solid #e0e9f3;
  border-radius: 0;
  text-align: left;
}
.hpd-device-row:hover, .hpd-device-row:focus-visible { background: #f2f7ff; }
.hpd-device-name strong, .hpd-device-name small { display: block; overflow-wrap: anywhere; }
.hpd-device-name small, .hpd-row-arrow { color: #61768b; }
.hpd-device-status { font-size: 11px; color: #627186; }
.hpd-device-status.is-online { color: #08704b; }
.hpd-device-status.is-offline { color: #9a5900; }
.hpd-hour-toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; }
.hpd-hour-toolbar .hpd-back { margin-right: auto; }
.hpd-hour-toolbar label { display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: #436180; }
.hpd-hour-toolbar [hidden] { display: none; }
.hpd-hour-toolbar select, .hpd-hour-toolbar input {
  box-sizing: border-box;
  min-height: 32px;
  max-width: 100%;
  border: 1px solid #c8d9eb;
  border-radius: 5px;
  background: #fff;
  color: #153f66;
  padding: 3px 7px;
  font: inherit;
  font-size: 12px;
}
.hpd-browser .hpd-browser-note { color: #546b82; font-size: 12px; margin: 0; }
.hpd-browser-note:empty { display: none; }
.hpd-hour-result { min-height: 0; }
.hpd-hour-table { overflow: auto; max-height: 55vh; max-height: 55dvh; overscroll-behavior: contain; }
.hpd-hour-table table {
  min-width: 880px;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: center;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.hpd-hour-table caption { padding: 4px 6px 9px; text-align: left; color: #274e72; font-weight: 600; }
.hpd-hour-table th, .hpd-hour-table td { padding: 5px; border-bottom: 1px solid #e0e8ee; }
.hpd-hour-table th { background: #eef4fb; color: #315474; }
.hpd-hour-table thead th { position: sticky; top: 0; z-index: 2; }
.hpd-hour-table tr > th:first-child { position: sticky; left: 0; z-index: 1; }
.hpd-hour-table thead th:first-child { z-index: 3; }
.hpd-hour-table [data-state=available] { color: #155d4b; }
.hpd-hour-table [data-state=future], .hpd-hour-table [data-state=missing] { color: #788897; }
.hpd-hour-key { display: block; padding: 6px 0 0; color: #586c7f; font-size: 11px; }
html body dialog.hpd-directory { width: min(560px, calc(100vw - 24px)); }
.hpd-directory table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  text-align: left;
}
.hpd-directory th, .hpd-directory td {
  border-bottom: 1px solid #e1eaf2;
  padding: 9px 6px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.hpd-directory thead th {
  position: sticky;
  top: 0;
  background: #fff;
  color: #536e86;
  font-size: 11px;
  font-weight: 600;
}
.hpd-directory th:first-child { width: 52%; }
.hpd-directory tbody th { color: #164368; font-size: 13px; font-weight: 600; }
.hpd-directory td { color: #3e5e78; font-size: 12px; font-variant-numeric: tabular-nums; }
.hpd-directory tbody tr:last-child > * { border-bottom: 0; }
.hpd-directory .hpd-range-status { margin: 0; padding: 4px 18px 12px; }
.hpd-directory .hpd-range-status:empty { display: none; }
.hpd-directory .hpd-retry { font: inherit; width: auto; height: auto; padding: 4px 8px; margin-inline-start: 6px; }
@media (max-width: 500px) {
  .hpd-browser-body { padding: 10px; }
  .hpd-hour-toolbar { align-items: start; gap: 7px; }
  .hpd-hour-toolbar .hpd-back { margin-right: 75%; white-space: nowrap; }
  .hpd-browser-types .hpd-browser-type { flex: 1; font-size: 11px; }
}

#hkaCctvLiveWall .hpd-wall-toggle {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  box-sizing: border-box;
  border: 1px solid #52717e;
  border-radius: 8px;
  background: #1e3a4c;
  color: #eef5f8;
  cursor: pointer;
}
#hkaCctvLiveWall .hpd-wall-toggle svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none;
}
#hkaCctvLiveWall .hpd-wall-toggle:focus-visible { outline: 2px solid #87d8ff; outline-offset: 2px; }
@media (pointer: coarse) {
  #hkaCctvLiveWall .hpd-wall-toggle { width: 44px; height: 44px; }
}
#hkaCctvLiveWall .hpd-wall-toggle:hover,
#hkaCctvLiveWall .hpd-wall-toggle[aria-pressed="true"] { background: #234e59; }
#hkaCctvLiveWall.hpd-wall-wide[open] {
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
}
#hkaCctvLiveWall.hpd-wall-wide > .hka-wall-grid {
  display: grid;
  flex: 1 1 auto;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto repeat(2, minmax(0, 1fr));
  gap: clamp(3px, .65vmin, 10px);
  padding: 5px;
  padding: max(5px, env(safe-area-inset-top)) max(5px, env(safe-area-inset-right)) max(5px, env(safe-area-inset-bottom)) max(5px, env(safe-area-inset-left));
  overflow: hidden;
  background: #091821;
  color: #eef5f8;
}
#hkaCctvLiveWall.hpd-wall-wide .hka-wall-header {
  grid-column: 1 / -1;
  gap: 8px;
  padding: 5px 8px;
}
#hkaCctvLiveWall.hpd-wall-wide .hka-wall-tile {
  display: grid;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto;
}
#hkaCctvLiveWall.hpd-wall-wide .hka-wall-screen { min-height: 0; height: 100%; aspect-ratio: auto; }
#hkaCctvLiveWall.hpd-wall-wide .hka-wall-caption { min-height: 0; padding: 4px 8px; }
@media (orientation: portrait) {
  #hkaCctvLiveWall.hpd-wall-wide > .hka-wall-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 480px), (max-height: 480px) {
  #hkaCctvLiveWall.hpd-wall-wide .hka-wall-title { font-size: 15px; }
  #hkaCctvLiveWall.hpd-wall-wide .hka-wall-mark { display: none; }
  #hkaCctvLiveWall.hpd-wall-wide .hka-wall-count { font-size: 11px; margin-top: 2px; }
  #hkaCctvLiveWall.hpd-wall-wide .hka-wall-name { font-size: 12px; }
}
