.customer header {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  padding: 8px max(16px, calc((100vw - 1152px) / 2));
}
.customer main {
  width: min(1152px, 100% - 32px);
  margin: 24px auto 110px;
}
.customer-tabs {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: min(4vw, 48px);
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 6px 8px max(6px, env(safe-area-inset-bottom));
  z-index: 4;
}
.customer-tabs button {
  border: 0;
  background: transparent;
  display: grid;
  gap: 2px;
  justify-items: center;
  padding: 4px 8px;
  font-size: 0.82rem;
}
.customer-tabs [aria-pressed="true"] {
  background: #e3efe6;
  color: #164337;
}
.customer #cameras {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-block: 20px;
}
.camera {
  width: 100%;
  position: relative;
  display: grid;
  justify-content: stretch;
  justify-items: start;
  align-content: start;
  gap: 6px;
  text-align: left;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.camera > .ui-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  padding: 8px;
  background: #e6efe8;
  margin-bottom: 12px;
}
.camera-title {
  font-size: 1.12rem;
  font-weight: 700;
}
.camera small {
  font-weight: 400;
}
.camera .badge {
  margin-bottom: 4px;
}
#cameras > p {
  grid-column: 1 / -1;
}
.customer #scope {
  max-width: 26rem;
}
.customer #dashboard > details,
.customer-account details,
#people > div,
#management > details,
#customer-account details {
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-block: 12px;
}
.customer #people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 12px;
}
.customer #people > div {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 6px;
  margin: 0;
}
.customer #people > div p {
  margin: 0;
}
.customer #people > div strong {
  font-size: 1.1rem;
}
.customer #people button {
  font-size: 0.86rem;
}
.customer #player {
  max-width: 900px;
  margin: 0 auto;
  scroll-margin-top: 8px;
}
.customer #screen {
  width: 100%;
  max-height: 65dvh;
  aspect-ratio: 16 / 9;
  display: block;
  background: #152620;
  object-fit: contain;
  border-radius: 10px;
  margin-top: 12px;
}
.customer #player .actions {
  margin-top: 12px;
}
.customer #recording-timeline {
  width: min(100%, 560px);
  height: 14px;
  display: block;
  margin-block: 12px;
}
.customer select,
.customer input {
  min-width: 0;
}
.customer #dashboard:not([data-view="people"]) #management,
.customer #dashboard:not([data-view="account"]) #customer-account,
.customer #dashboard:is([data-view="account"], [data-view="people"]) :is(#camera-section, #camera-events),
.customer #dashboard:has(#player:not([hidden])) :is(#camera-section, #camera-events) {
  display: none;
}
.customer #dashboard[data-view="record"] #camera-events {
  display: none;
}
.customer:has(#dashboard:not([hidden]):not([data-view="account"])) #org-choice,
.customer:has(#dashboard[hidden]) .customer-tabs {
  display: none;
}
.customer #reset-notices {
  margin-block: 20px;
}
.customer #reset-notices ul {
  margin-bottom: 0;
}
.customer .tabs [aria-pressed="true"] {
  box-shadow: inset 0 -3px var(--brand);
}
.customer #link:not(:empty) {
  margin: 16px 0;
  padding: 16px;
  background: #fff6d7;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
@media (max-width: 960px) {
  .customer #cameras {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .customer main {
    width: calc(100% - 28px);
    margin-top: 16px;
  }
  .customer #cameras {
    grid-template-columns: 1fr;
  }
  .customer-tabs {
    justify-content: space-evenly;
    gap: 2px;
  }
  .customer header {
    height: 58px;
  }
  .customer #player {
    padding: 12px;
  }
}

#site-summaries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 12px;
  margin: 12px 0 20px;
}
#site-summaries article {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-wrap: anywhere;
}
#site-summaries h3 {
  margin: 0;
}
#site-summaries ul {
  padding-inline-start: 1.2rem;
}
#timeline-events:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
#timeline-events button,
#playback-speed,
#minute {
  min-height: 44px;
}
.camera-preview {
  width: min(160px, 100%);
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}
.camera-preview[hidden] {
  display: none;
}
.detection-map {
  position: relative;
  width: min(640px, 100%);
  background: #e6ece9;
}
.detection-map canvas {
  position: relative;
  display: block;
}
.detection-map .camera-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  border-radius: 0;
}
.detection-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-block: 8px;
}
