:root {
  --blue: #2d8cf0;
  --blue-dark: #1a6fd4;
  --text: #222;
  --text-muted: #888;
  --bg: #f0f0f0;
  --white: #fff;
  --border: #e8e8e8;
  --online: #2d8cf0;
  --selected: #e53935;
  --black: #000;
  --toolbar-bg: #fafafa;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #ddd;
  color: var(--text);
}

body:not(.admin-body) {
  overflow: hidden;
}

.app-shell {
  display: flex;
  justify-content: center;
  align-items: stretch;
  height: 100%;
  min-height: 0;
}

.phone-frame {
  width: 100%;
  max-width: 430px;
  height: 100%;
  min-height: 0;
  background: var(--bg);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0,0,0,0.15);
}

@media (min-width: 480px) {
  .app-shell {
    padding: 16px 0;
  }

  .phone-frame {
    height: 100%;
    min-height: 0;
    border-radius: 24px;
    overflow: hidden;
  }
}

.app-header {
  background: var(--white);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  padding-top: max(12px, env(safe-area-inset-top));
}

.app-header.compact {
  padding: 10px 12px;
}

.header-left, .header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 72px;
}

.header-right {
  justify-content: flex-end;
}

.header-center {
  flex: 1;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.header-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.header-center > svg {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

.icon-btn {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.icon-btn:active {
  background: rgba(0,0,0,0.05);
}

.icon-btn svg {
  width: 22px;
  height: 22px;
}

.icon-btn.blue svg {
  color: var(--blue);
}

.app-content {
  flex: 1 1 0%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.app-content.no-scroll {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.bottom-nav {
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex;
  padding: 6px 0 calc(6px + var(--safe-bottom));
  flex-shrink: 0;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 0;
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
}

.nav-item.active {
  color: var(--blue);
}

.nav-item svg {
  width: 24px;
  height: 24px;
}

.site-list {
  padding: 8px 0;
}

.site-card {
  background: var(--white);
  margin: 0 0 1px;
  padding: 14px 16px 12px;
  cursor: pointer;
}

.site-card:active {
  background: #f8f8f8;
}

.site-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.site-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}

.site-card-title svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.site-card-actions {
  display: flex;
  gap: 8px;
}

.site-card-body {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-thumb {
  width: 180px;
  height: 102px;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  background: #333;
  flex-shrink: 0;
}

.site-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.15);
}

.play-overlay svg {
  width: 48px;
  height: 48px;
  color: white;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4));
}

.online-badge {
  background: var(--online);
  color: white;
  font-size: 12px;
  padding: 4px 14px;
  border-radius: 20px;
  font-weight: 500;
}

.site-play-hint {
  margin: 8px 0 0;
  font-size: 11px;
  font-style: italic;
  color: #9a9a9a;
  line-height: 1.4;
}

.site-quality-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  padding: 10px;
  background: #f4f6f8;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.site-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 6px;
  border-bottom: 1px solid var(--border);
}

.site-total-cameras {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  padding: 0;
  border-bottom: none;
}

.quality-link-toggle {
  position: relative;
  width: 44px;
  height: 26px;
  padding: 0;
  border: none;
  border-radius: 13px;
  background: #cfd4da;
  cursor: pointer;
  flex-shrink: 0;
}

.quality-link-toggle.on {
  background: var(--blue);
}

.quality-link-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.16s ease;
}

.quality-link-toggle.on .quality-link-knob {
  transform: translateX(18px);
}

.site-quality-group.is-link {
  cursor: pointer;
}

.site-quality-group.is-link:hover {
  box-shadow: inset 0 0 0 1px var(--blue);
}

.site-quality-group {
  background: var(--white);
  border-radius: 8px;
  padding: 8px 10px 10px;
}

.site-quality-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
}

.site-quality-count {
  font-size: 13px;
  font-weight: 700;
}

.site-housing-count {
  font-size: 11px;
  font-weight: 400;
  color: #888;
}

.site-cam-names {
  margin: 8px 0 0 36px;
  padding: 0;
  list-style: disc;
  font-size: 12px;
  color: #555;
  line-height: 1.45;
}

.site-cam-names-empty {
  margin: 8px 0 0 36px;
  font-size: 12px;
  font-style: italic;
  color: #999;
}

.site-quality-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--blue);
  color: white;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.site-quality-tag.tag-4k {
  background: #facc15;
  color: #222;
}

.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}

.empty-state h3 {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.empty-state .btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--blue);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
}

.site-info-bar {
  background: var(--white);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.site-info-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}

.camera-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--white);
  touch-action: pan-y;
}

.camera-tile {
  position: relative;
  aspect-ratio: 16/10;
  background: #222;
  cursor: pointer;
  overflow: hidden;
}

.camera-tile img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  background: #222;
}

.camera-tile.placeholder {
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 24px;
}

.tile-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tile-timestamp {
  position: absolute;
  top: 6px;
  left: 6px;
  color: white;
  font-size: 10px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  line-height: 1.2;
}

.tile-online {
  position: absolute;
  top: 6px;
  right: 30px;
  background: var(--online);
  color: white;
  font-size: 9px;
  padding: 2px 8px;
  border-radius: 10px;
}

.tile-name {
  position: absolute;
  bottom: 6px;
  left: 6px;
  right: 92px;
  color: white;
  font-size: 11px;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.quality-badge {
  position: absolute;
  bottom: 6px;
  right: 8px;
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0,0,0,0.85);
  z-index: 5;
  pointer-events: none;
}

.tile-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile-play svg {
  width: 36px;
  height: 36px;
  color: white;
  opacity: 0.9;
}

.live-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.bitrate-bar {
  background: var(--black);
  color: white;
  text-align: center;
  font-size: 12px;
  padding: 3px 0;
  flex-shrink: 0;
}

.viewer-container {
  flex: 1;
  background: var(--black);
  position: relative;
  min-height: 0;
  overflow: hidden;
  touch-action: pan-x;
}

.live-view .viewer-container {
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.live-view .control-panel {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.live-view .channel-footer {
  margin-top: auto;
}

.viewer-grid {
  display: grid;
  width: 100%;
  height: 100%;
  gap: 1px;
  background: #111;
}

.viewer-grid.grid-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.viewer-grid.grid-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.viewer-grid.grid-9 { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); }

.viewer-cell {
  position: relative;
  background: #111;
  overflow: hidden;
  cursor: pointer;
}

.viewer-cell.selected {
  outline: 2px solid var(--selected);
  outline-offset: -2px;
  z-index: 1;
}

.viewer-cell img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  background: #111;
}

.viewer-cell .cell-label {
  position: absolute;
  bottom: 4px;
  left: 4px;
  right: 72px;
  color: white;
  font-size: 10px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.9);
}

.viewer-cell .quality-badge {
  bottom: 4px;
  right: 6px;
  font-size: 10px;
}

.viewer-grid.grid-9 .quality-badge {
  bottom: 3px;
  right: 4px;
  font-size: 8px;
}

.viewer-cell .cell-time {
  position: absolute;
  top: 4px;
  left: 4px;
  color: white;
  font-size: 9px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.9);
}

.risk-slot {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 4px 8px 2px;
  background: var(--bg);
  min-height: 0;
}

.risk-slot:empty {
  display: none;
}

.risk-banner {
  width: 100%;
  max-width: 100%;
  padding: 4px 7px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  text-align: left;
}

.risk-banner-title {
  display: inline-block;
  padding: 3px 8px;
  border: none;
  border-radius: 4px;
  background: #e53935;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  animation: riskFlash 1.15s ease-in-out infinite;
}

.risk-banner-list {
  margin: 3px 0 0;
  padding-left: 14px;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.risk-banner-list li {
  margin: 0;
}

.fullscreen-camera .risk-banner,
.fullscreen-camera .risk-slot {
  display: none !important;
}

@keyframes riskFlash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.12; }
}

.viewer-cell.empty-cell {
  background: #1a1a1a;
}

.camera-tile::after,
.viewer-cell:not(.empty-cell)::after,
.fs-view.fs-single::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 8px;
  width: 20px;
  height: 12px;
  background: url("../assets/watermark.png") no-repeat right top;
  background-size: contain;
  pointer-events: none;
  z-index: 4;
  opacity: 0.92;
}

.viewer-grid.grid-4 .viewer-cell:not(.empty-cell)::after {
  width: 16px;
  height: 10px;
  top: 5px;
  right: 6px;
}

.viewer-grid.grid-9 .viewer-cell:not(.empty-cell)::after {
  width: 12px;
  height: 8px;
  top: 4px;
  right: 4px;
}

.control-panel {
  background: var(--white);
  flex-shrink: 0;
  padding-bottom: var(--safe-bottom);
}

.control-row {
  display: flex;
  justify-content: space-around;
  padding: 12px 8px 8px;
  border-top: 1px solid var(--border);
}

.control-row:first-child {
  border-top: none;
}

.control-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  min-width: 56px;
  color: var(--text-muted);
}

.control-btn.active {
  color: var(--blue);
}

.control-btn svg, .control-btn .ctrl-icon {
  width: 28px;
  height: 28px;
}

.control-btn.circle svg {
  padding: 4px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.control-btn span {
  font-size: 11px;
}

.ctrl-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 300;
  border: 1.5px solid currentColor;
  border-radius: 4px;
}

.ctrl-icon.grid-1 { width: 22px; height: 22px; }
.ctrl-icon.grid-4 {
  width: 22px;
  height: 22px;
  background:
    linear-gradient(to right, currentColor 46%, transparent 46%, transparent 54%, currentColor 54%),
    linear-gradient(to bottom, currentColor 46%, transparent 46%, transparent 54%, currentColor 54%);
  border-radius: 3px;
}
.ctrl-icon.grid-9 {
  width: 22px;
  height: 22px;
  background:
    repeating-linear-gradient(to right, currentColor 0 4px, transparent 4px 7px),
    repeating-linear-gradient(to bottom, currentColor 0 4px, transparent 4px 7px);
  border-radius: 3px;
}

.channel-footer {
  text-align: center;
  padding: 8px 0 12px;
  border-top: 1px solid var(--border);
}

.channel-footer .chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px 10px 0 0;
  margin-bottom: 4px;
  cursor: pointer;
}

.channel-footer span {
  font-size: 12px;
  color: var(--text-muted);
}

.fullscreen-camera {
  position: absolute;
  inset: 0;
  background: var(--black);
  z-index: 50;
  overflow: hidden;
  border-radius: inherit;
  touch-action: none;
}

.fullscreen-camera .fs-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
  transform-origin: center center;
  display: flex;
  flex-direction: column;
  background: var(--black);
  overflow: hidden;
}

.fullscreen-camera .fs-close-top {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 60;
  color: white;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 20px;
  padding: 8px;
}

.fullscreen-camera .fs-close-top svg {
  width: 22px;
  height: 22px;
}

.fullscreen-camera .fs-view {
  position: absolute;
  inset: 0;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.fullscreen-camera .fs-view.fs-single {
  display: block;
}

.fullscreen-camera .fs-view.fs-single > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

.fullscreen-camera .fs-view .viewer-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.fullscreen-camera .fs-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 110px;
  color: white;
  font-size: 14px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.fullscreen-camera .quality-badge {
  bottom: 12px;
  right: 14px;
  font-size: 14px;
}

.fullscreen-camera .fs-time {
  position: absolute;
  top: 12px;
  left: 48px;
  color: white;
  font-size: 12px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.hidden { display: none !important; }

.admin-link {
  font-size: 11px;
  color: var(--blue);
  text-decoration: none;
}

html:has(body.output-page),
html:has(body.customer-page) {
  height: 100%;
  height: 100dvh;
  overflow: hidden;
}

body.output-page,
body.customer-page {
  height: 100%;
  height: 100dvh;
  overflow: hidden;
}

body.output-page {
  display: flex;
  flex-direction: column;
}

body.output-page .app-shell {
  flex: 1 1 0%;
  min-height: 0;
  height: auto;
  padding: 12px 0 0;
}

body.output-page .phone-frame {
  height: 100%;
  min-height: 0;
  max-height: none;
}

.customer-share-link {
  flex-shrink: 0;
  max-width: 430px;
  width: 100%;
  margin: 0 auto;
  padding: 18px 16px calc(28px + env(safe-area-inset-bottom, 0px));
  text-align: center;
}

.customer-share-link a {
  color: var(--blue);
  font-size: 14px;
  line-height: 1.5;
  word-break: break-all;
  user-select: all;
}

.event-page {
  background: var(--white);
}

.event-loading {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  padding: 48px 16px;
}

.event-list {
  background: var(--white);
}

.event-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid #f0f0f0;
  background: var(--white);
}

.event-thumb {
  width: 72px;
  height: 64px;
  object-fit: cover;
  border-radius: 2px;
  background: #ddd;
  flex-shrink: 0;
}

.event-meta {
  flex: 1;
  min-width: 0;
}

.event-time {
  font-size: 14px;
  color: #444;
  line-height: 1.35;
}

.event-channel {
  margin-top: 8px;
  font-size: 14px;
  color: #555;
}

.event-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.event-type {
  font-size: 12px;
  color: #c0c0c0;
  text-align: right;
  line-height: 1.25;
}

.event-shared {
  border: 1px solid #ddd;
  background: #fff;
  color: #888;
  font-size: 12px;
  padding: 4px 14px;
  border-radius: 14px;
  cursor: pointer;
}

.playback-page {
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.pb-player {
  flex: 0 0 auto;
  background: #111;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 42%;
  overflow: hidden;
}

.pb-player img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  background: #111;
}

.pb-toolbar {
  display: flex;
  justify-content: space-around;
  padding: 10px 6px 8px;
  flex-shrink: 0;
}

.pb-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: none;
  background: none;
  color: #888;
  min-width: 56px;
  cursor: pointer;
}

.pb-tool.active {
  color: #f5a623;
}

.pb-tool svg {
  width: 26px;
  height: 26px;
}

.pb-tool span {
  font-size: 11px;
}

.pb-speed {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #888;
}

.pb-clips {
  display: flex;
  gap: 2px;
  padding: 0;
  background: #fff;
  flex-shrink: 0;
}

.pb-clip {
  flex: 1;
  border: none;
  padding: 0;
  background: #222;
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  cursor: pointer;
}

.pb-clip.selected {
  outline: 2px solid #f5a623;
  outline-offset: -2px;
  z-index: 1;
}

.pb-clip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pb-clip span {
  position: absolute;
  left: 4px;
  bottom: 3px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.pb-empty {
  padding: 16px;
  font-size: 13px;
  color: #999;
}

.pb-timeline {
  padding: 8px 10px 4px;
  flex-shrink: 0;
}

.pb-time-readout {
  text-align: center;
  font-size: 13px;
  color: #f5a623;
  font-weight: 600;
  margin-bottom: 6px;
}

.pb-track {
  position: relative;
  height: 42px;
  border-radius: 2px;
  overflow: hidden;
  display: flex;
}

.pb-track-left,
.pb-track-right {
  height: 100%;
  background-image: repeating-linear-gradient(
    to right,
    rgba(255, 210, 0, 0.95) 0 2px,
    transparent 2px 9px
  );
}

.pb-track-left {
  width: 48%;
  background-color: #7ec8d4;
}

.pb-track-right {
  width: 52%;
  background-color: #f0b429;
}

.pb-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 48%;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}

.pb-hours {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #888;
  margin-top: 4px;
}

.pb-zoom {
  display: flex;
  justify-content: center;
  gap: 36px;
  padding: 18px 0 8px;
  flex-shrink: 0;
}

.pb-zoom-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pb-zoom-btn svg {
  width: 20px;
  height: 20px;
}

.pb-date {
  margin-top: auto;
  text-align: center;
  color: #f5a623;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 0 calc(14px + var(--safe-bottom));
  flex-shrink: 0;
}

.pb-date-caret {
  display: block;
  width: 0;
  height: 0;
  margin: 0 auto 6px;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 8px solid #f5a623;
}
