.photo-mode {
  position: fixed;
  z-index: 65;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(680px, calc(100% - 28px));
  box-sizing: border-box;
  padding: 16px 18px;
  border: 1px solid rgba(191, 223, 194, .32);
  border-radius: 16px;
  background: rgba(13, 23, 19, .94);
  color: #eef6ee;
  box-shadow: 0 12px 44px rgba(0, 0, 0, .4);
  pointer-events: auto;
}
.photo-mode__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 18px; flex-wrap: wrap; margin-bottom: 12px; }
.photo-mode__title { margin: 0; font-size: 17px; letter-spacing: -.02em; }
.photo-mode__subtitle { margin: 0; color: #b9c9bd; font-size: 11px; }
.photo-mode__controls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 18px; }
.photo-mode__control { display: grid; grid-template-columns: 1fr auto; gap: 2px 6px; min-width: 0; font-size: 12px; }
.photo-mode__value { color: #c6f59a; font-variant-numeric: tabular-nums; }
.photo-mode__slider { grid-column: 1 / -1; width: 100%; min-width: 0; min-height: 28px; margin: 0; accent-color: #b4e985; cursor: pointer; }
.photo-mode__actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.photo-mode__actions button { min-height: 38px; padding: 8px 12px; font-size: 12px; }
.photo-mode__status { margin: 6px 0 0; color: #e4dab8; font-size: 12px; }
.photo-mode__status:empty { display: none; }
@media (max-width: 540px) {
  .photo-mode { padding: 12px 14px; }
  .photo-mode__controls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; }
  .photo-mode__actions { justify-content: stretch; }
  .photo-mode__actions button { flex: 1 1 auto; }
}
@media (max-height: 430px) and (min-width: 541px) {
  .photo-mode { padding: 9px 14px; bottom: max(8px, env(safe-area-inset-bottom)); }
  .photo-mode__heading { margin-bottom: 5px; }
  .photo-mode__actions { margin-top: 4px; }
}
#photomode[hidden] { display: none !important; }
.photo-mode-active #hud,
.photo-mode-active #touchbar,
.photo-mode-active #coursebtns { visibility: hidden; pointer-events: none; }
