:root {
  color-scheme: dark;
  --surface: #0e0e0e;
  --toolbar: #303030;
  --toolbar-hover: #3a3a3a;
  --text: #f4f4f4;
  --muted: #c9c9c9;
  --focus: #8bc4ff;
}

* {
  box-sizing: border-box;
}

html,
body,
.app {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  background: #000;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

.app {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.app:fullscreen,
.app:-webkit-full-screen {
  width: 100%;
  height: 100%;
  background: #000;
}

.toolbar,
.slider {
  min-height: 44px;
  background: var(--toolbar);
  display: flex;
  align-items: center;
}

.toolbar {
  gap: 1px;
  overflow-x: auto;
}

.toolbar-row {
  display: flex;
  align-items: center;
  gap: 1px;
}

.toolbar-row-secondary {
  flex: 1 1 auto;
  min-width: 0;
}

.mobile-dropdown,
.mobile-menu-panel {
  display: flex;
  align-items: center;
  gap: 1px;
}

.mobile-dropdown-playback,
.mobile-menu-panel-playback {
  flex: 0 0 auto;
}

.mobile-dropdown-tools {
  flex: 0 0 auto;
}

.mobile-menu-trigger {
  display: none;
}

.toolbar-spacer {
  flex: 1 1 auto;
  min-width: 12px;
}

.button,
.select-label,
.datetime-field,
.datetime-picker-toggle {
  height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.button {
  padding: 0 14px;
  cursor: pointer;
}

.icon-button {
  width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.icon-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.mobile-menu-trigger svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.icon-button polygon,
.icon-button rect,
.icon-button path {
  vector-effect: non-scaling-stroke;
}

.play-toggle .icon-pause,
.play-toggle.is-playing .icon-play,
.fullscreen-toggle .icon-minimize,
.fullscreen-toggle.is-fullscreen .icon-maximize {
  display: none;
}

.play-toggle.is-playing .icon-pause,
.fullscreen-toggle.is-fullscreen .icon-minimize {
  display: block;
}

.button:hover,
.button.active,
.select-label:hover,
.datetime-field:hover,
.datetime-picker-toggle:hover {
  background: var(--toolbar-hover);
}

.button:disabled {
  color: #777;
  cursor: default;
}

.button:disabled:hover {
  background: transparent;
}

.button:focus-visible,
select:focus-visible,
.datetime-field:focus-visible,
.datetime-picker-toggle:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

.select-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  white-space: nowrap;
}

select {
  color: var(--text);
  background: var(--toolbar);
  border: 1px solid #555;
  height: 28px;
}

.datetime-control {
  display: flex;
  align-items: center;
  position: relative;
}

.datetime-field {
  min-width: 152px;
  padding: 0 12px;
  line-height: 44px;
  white-space: nowrap;
  user-select: text;
}

.datetime-field:empty::before {
  color: var(--muted);
  content: '--.--.---- --:--';
}

.datetime-picker-toggle {
  width: 34px;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.datetime-picker-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.datetime-picker {
  position: fixed;
  top: 44px;
  left: 0;
  z-index: 20;
  width: min(260px, calc(100vw - 16px));
  padding: 10px;
  background: #242424;
  border: 1px solid #4a4a4a;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.datetime-picker-row,
.datetime-picker-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.datetime-picker-row + .datetime-picker-row,
.datetime-picker-actions {
  margin-top: 10px;
}

.datetime-picker-input {
  width: 100%;
  height: 36px;
  padding: 0 8px;
  color: var(--text);
  background: #151515;
  border: 1px solid #555;
  font: inherit;
  color-scheme: dark;
}

.datetime-picker-actions .button {
  flex: 1 1 0;
  background: #303030;
  border: 1px solid #555;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 54px 12px 12px;
  background: transparent;
}

.modal-backdrop[hidden] {
  display: none;
}

[data-role="exif-modal"] {
  pointer-events: none;
}

[data-role="exif-modal"] .exif-modal {
  pointer-events: auto;
}

.settings-modal {
  width: min(360px, calc(100vw - 24px));
  color: #f7f7f7;
  background: rgba(18, 18, 18, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(10px) saturate(1.14);
  -webkit-backdrop-filter: blur(10px) saturate(1.14);
}

.settings-header {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.settings-header h2 {
  margin: 0;
  padding: 0 14px;
  font-size: 15px;
  font-weight: 700;
}

.settings-header .icon-button {
  background: transparent;
  border-color: transparent;
}

.settings-header .icon-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.settings-list {
  display: flex;
  flex-direction: column;
}

.settings-row {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
}

.settings-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.settings-copy strong {
  font-size: 14px;
}

.settings-copy span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.settings-toggle {
  width: 42px;
  height: 24px;
  flex: 0 0 auto;
  appearance: none;
  border: 1px solid #686868;
  border-radius: 999px;
  background: #141414;
  cursor: pointer;
  position: relative;
}

.settings-toggle::before {
  width: 18px;
  height: 18px;
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  border-radius: 50%;
  background: #d9d9d9;
  transition: transform 160ms ease, background 160ms ease;
}

.settings-toggle:checked {
  border-color: #8bc4ff;
  background: #245b86;
}

.settings-toggle:checked::before {
  transform: translateX(18px);
  background: #fff;
}

.settings-toggle:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.exif-modal {
  width: min(330px, calc(100vw - 24px));
}

.share-modal {
  width: min(430px, calc(100vw - 24px));
}

.share-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.share-tab {
  min-height: 42px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.share-tab:last-child {
  border-right: 0;
}

.share-tab:hover,
.share-tab.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.share-tab:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

.share-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.share-panel[hidden] {
  display: none;
}

.share-field {
  display: grid;
  gap: 7px;
}

.share-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.share-field textarea {
  width: 100%;
  min-height: 82px;
  resize: vertical;
  border: 1px solid #555;
  background: #151515;
  color: var(--text);
  padding: 9px 10px;
  font: 12px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.share-field textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

.share-copy {
  height: 36px;
  background: #303030;
  border: 1px solid #555;
}

.share-socials {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.share-social {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #555;
  color: var(--text);
  background: #262626;
  text-decoration: none;
}

.share-social:hover {
  background: #333;
}

.share-social:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.share-social svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.share-options {
  display: grid;
  gap: 10px;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.share-option {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}

.share-option input {
  width: 17px;
  height: 17px;
  accent-color: var(--focus);
}

.exif-empty {
  margin: 0;
  padding: 14px;
  color: var(--muted);
  font-size: 13px;
}

.exif-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.exif-table th,
.exif-table td {
  padding: 9px 14px;
  border-bottom: 1px solid #333;
  text-align: left;
  vertical-align: top;
}

.exif-table th {
  width: 38%;
  color: var(--muted);
  font-weight: 400;
}

.exif-table td {
  overflow-wrap: anywhere;
}

.stage {
  flex: 1 1 auto;
  min-height: 0;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.status {
  color: var(--muted);
  font-size: 15px;
  position: relative;
  z-index: 2;
}

.ambilight {
  position: absolute;
  inset: -18%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background-color: var(--ambilight-color, #050505);
  transition: background-color 800ms ease;
}

.ambilight-side {
  width: 30%;
  height: 100%;
  position: absolute;
  top: 0;
  display: grid;
  grid-template-rows: repeat(6, 1fr);
  filter: blur(52px) saturate(1.45) brightness(0.82);
  opacity: 0.82;
  transform: translateZ(0) scale(1.08);
  contain: strict;
}

.ambilight-side-left {
  left: -4%;
}

.ambilight-side-right {
  right: -4%;
}

.ambilight-strip {
  display: block;
  background-color: var(--ambilight-color, #050505);
  background-repeat: no-repeat;
  background-size: auto 600%;
  transition: background-color 800ms ease;
}

.ambilight::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: '';
  background:
    radial-gradient(circle at 50% 50%, transparent 0, transparent 38%, rgba(0, 0, 0, 0.42) 72%, rgba(0, 0, 0, 0.76) 100%),
    rgba(0, 0, 0, 0.12);
}

.frame {
  --image-left: 0px;
  --image-top: 0px;
  --image-right: 100%;
  --image-bottom: 100%;
  width: 100%;
  height: 100%;
  margin: 0;
  position: relative;
  min-width: 10em;
  min-height: 10em;
  z-index: 1;
}

.image-stack {
  position: absolute;
  inset: 0;
}

.image-layer {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition-property: opacity;
  transition-timing-function: ease-in;
}

.image-layer.current {
  opacity: 1;
  z-index: 2;
}

.image-layer.prev {
  opacity: 0;
  z-index: 3;
}

.image-layer.next {
  opacity: 1;
  z-index: 1;
}

.image-layer-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.image-layer img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.viewer-overlay {
  position: absolute;
  z-index: 6;
  max-width: min(720px, calc(100% - 28px));
  padding: 6px 8px;
  color: #050505;
  font-size: clamp(11px, 1.15vw, 16px);
  font-weight: 500;
  line-height: 1.08;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.48);
  pointer-events: none;
}

.viewer-overlay-on-dark {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.78);
}

.viewer-overlay-on-light {
  color: #070707;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.52);
}

.viewer-overlay-top-left {
  top: calc(var(--image-top) + 6px);
  left: calc(var(--image-left) + 6px);
}

.viewer-overlay-top-right {
  top: calc(var(--image-top) + 6px);
  right: calc(100% - var(--image-right) + 6px);
  text-align: right;
}

.viewer-overlay-bottom-left {
  bottom: calc(100% - var(--image-bottom) + 6px);
  left: calc(var(--image-left) + 6px);
}

.viewer-overlay-bottom-right {
  right: calc(100% - var(--image-right) + 6px);
  bottom: calc(100% - var(--image-bottom) + 6px);
  text-align: right;
}

.viewer-overlay-line {
  overflow-wrap: anywhere;
}

.viewer-overlay-line + .viewer-overlay-line {
  margin-top: 1px;
  font-size: 0.76em;
  font-weight: 500;
}

.viewer-overlay-line-strong {
  font-weight: 700;
}

.viewer-logo {
  position: absolute;
  z-index: 7;
  min-width: 44px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.16);
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  backdrop-filter: blur(3px);
}

.viewer-logo:hover {
  background: rgba(255, 255, 255, 0.9);
}

.viewer-logo[hidden] {
  display: none;
}

.viewer-logo img {
  display: block;
  max-width: min(118px, 22vw);
  max-height: min(72px, 14vh);
}

.viewer-logo-adaptive {
  width: min(92px, 16vw);
  height: min(92px, 16vw);
  min-width: 52px;
  min-height: 52px;
  padding: 0;
  background: transparent;
  border: 0;
  backdrop-filter: none;
}

.viewer-logo-adaptive:hover {
  background: transparent;
}

.viewer-logo-adaptive-raster {
  min-width: 44px;
  min-height: 24px;
  padding: 0;
  background: transparent !important;
  border: 0;
  backdrop-filter: none;
  font-style: normal;
  text-shadow: none;
}

.viewer-logo-adaptive-raster:hover {
  background: transparent !important;
}

.viewer-logo-adaptive-raster img {
  max-width: min(132px, 22vw);
  max-height: min(44px, 9vh);
}

.viewer-logo-mark {
  width: 100%;
  height: 100%;
  display: block;
  background: #070707;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.viewer-logo-on-dark .viewer-logo-mark {
  background: #fff;
}

.viewer-logo-on-light .viewer-logo-mark {
  background: #070707;
}

.viewer-logo-top-right {
  top: calc(var(--image-top) + 10px);
  right: calc(100% - var(--image-right) + 10px);
}

.viewer-logo-bottom-right {
  right: calc(100% - var(--image-right) + 8px);
  bottom: calc(100% - var(--image-bottom) + 8px);
  background: rgba(0, 0, 0, 0.52);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  font-style: italic;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.viewer-play-hint {
  width: clamp(70px, 11vw, 104px);
  height: clamp(70px, 11vw, 104px);
  position: absolute;
  z-index: 8;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  color: #fff;
  background: rgba(8, 8, 8, 0.34);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px) saturate(1.35);
  -webkit-backdrop-filter: blur(14px) saturate(1.35);
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.viewer-play-hint:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(8, 8, 8, 0.46);
  transform: translate(-50%, -50%) scale(1.04);
}

.viewer-play-hint:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.viewer-play-hint[hidden] {
  display: none;
}

.viewer-play-hint svg {
  width: 82%;
  height: 82%;
  margin-left: 3%;
  fill: currentColor;
}

.viewer-info-panel {
  --camera-info-drag-x: 0px;
  --camera-info-drag-y: 0px;
  width: min(1480px, calc(100% - 18px));
  max-height: min(94vh, calc(100% - 18px));
  position: absolute;
  z-index: 10;
  top: 50%;
  left: 50%;
  overflow: auto;
  color: #f7f7f7;
  background: rgba(18, 18, 18, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.62);
  transform: translate(calc(-50% + var(--camera-info-drag-x)), calc(-50% + var(--camera-info-drag-y)));
  backdrop-filter: blur(10px) saturate(1.14);
  -webkit-backdrop-filter: blur(10px) saturate(1.14);
}

.viewer-info-panel.is-dragging {
  user-select: none;
}

.viewer-info-panel[hidden] {
  display: none;
}

.viewer-info-header {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 9px 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  cursor: grab;
  touch-action: none;
}

.viewer-info-panel.is-dragging .viewer-info-header {
  cursor: grabbing;
}

.viewer-info-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.viewer-info-close {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #f7f7f7;
  background: transparent;
  cursor: pointer;
}

.viewer-info-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.viewer-info-close:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

.viewer-info-close svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.viewer-info-map {
  height: min(430px, 46vh);
  position: relative;
  overflow: hidden;
  background: #26312d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.viewer-info-map[hidden] {
  display: none;
}

.viewer-info-map::before,
.viewer-info-map::after {
  position: absolute;
  content: '';
  pointer-events: none;
}

.viewer-info-map::before {
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.18)),
    radial-gradient(circle at 50% 50%, transparent 0, transparent 52%, rgba(0, 0, 0, 0.18) 100%);
}

.viewer-info-map::after {
  inset: 0;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.viewer-info-tiles {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #d8d3c7;
  opacity: 0.84;
}

.viewer-info-tiles img {
  width: 256px;
  height: 256px;
  position: absolute;
  display: block;
}

.viewer-info-map-compass {
  width: 38px;
  height: 42px;
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 6;
  display: grid;
  grid-template-rows: 12px 1fr;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.26);
  font-size: 13px;
  font-weight: 700;
}

.viewer-info-map-compass::before {
  width: 0;
  height: 0;
  content: '';
  border-right: 6px solid transparent;
  border-bottom: 10px solid #fff;
  border-left: 6px solid transparent;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.viewer-info-map-camera {
  --camera-heading: 0deg;
  width: 152px;
  height: 152px;
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  transform: translate(-50%, -50%) rotate(var(--camera-heading));
  transform-origin: center;
  pointer-events: none;
}

.viewer-info-map-cone {
  --camera-fov-scale: 1;
  width: 116px;
  height: 106px;
  position: absolute;
  left: 50%;
  bottom: 50%;
  transform: translateX(-50%) scaleX(var(--camera-fov-scale));
  transform-origin: 50% 100%;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  background: rgba(139, 196, 255, 0.32);
  border-top: 1px solid rgba(255, 255, 255, 0.44);
}

.viewer-info-map-pin {
  width: 18px;
  height: 18px;
  position: absolute;
  left: calc(50% - 9px);
  top: calc(50% - 9px);
  border: 2px solid #fff;
  border-radius: 50%;
  background: #8bc4ff;
  box-shadow: 0 0 0 6px rgba(139, 196, 255, 0.24), 0 5px 14px rgba(0, 0, 0, 0.42);
}

.viewer-info-attribution {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 6;
  padding: 4px 6px;
  color: #1d1d1d;
  background: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  line-height: 1;
  text-decoration: none;
}

.viewer-info-attribution a {
  color: inherit;
  text-decoration: none;
}

.viewer-info-description {
  padding: 20px 22px 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.55;
  background: rgba(0, 0, 0, 0.24);
}

.viewer-info-description:empty {
  display: none;
}

.viewer-info-description p,
.viewer-info-description ul,
.viewer-info-description ol {
  margin: 0 0 10px;
}

.viewer-info-description p:last-child,
.viewer-info-description ul:last-child,
.viewer-info-description ol:last-child {
  margin-bottom: 0;
}

.viewer-info-description a {
  color: #b8ddff;
}

.viewer-info-description strong {
  color: #fff;
}

.viewer-info-description ul,
.viewer-info-description ol {
  padding-left: 20px;
}

.frame.is-loading-next::after {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(255, 255, 255, 0.28);
  border-left-color: #e1e1e1;
  border-radius: 50%;
  content: '';
  position: absolute;
  left: calc(50% - 22px);
  top: calc(50% - 22px);
  z-index: 5;
  animation: loading-spin 1.1s linear infinite;
}

@keyframes loading-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.slider {
  padding: 0 18px;
  color: var(--muted);
  font-size: 14px;
  position: relative;
}

.slider[hidden] {
  display: none;
}

.timeline-track {
  width: 100%;
  height: 44px;
  position: relative;
  cursor: pointer;
  touch-action: none;
}

.timeline-track::before {
  height: 8px;
  position: absolute;
  right: 4px;
  bottom: 22px;
  left: 4px;
  content: '';
  background: #242424;
  border: 1px solid #555;
}

.timeline-progress {
  height: 8px;
  position: absolute;
  bottom: 23px;
  left: 5px;
  width: 0;
  background: #8bc4ff;
  opacity: 0.85;
  pointer-events: none;
}

.timeline-handle {
  width: 26px;
  height: 28px;
  position: absolute;
  bottom: 13px;
  left: 0;
  transform: translateX(-50%);
  border: 1px solid #777;
  border-radius: 3px;
  background: #f4f4f4;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.38);
  cursor: grab;
}

.timeline-handle:active {
  cursor: grabbing;
}

.timeline-handle:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.timeline-ticks {
  position: absolute;
  inset: 0 4px;
  pointer-events: none;
}

.timeline-tick {
  position: absolute;
  bottom: 4px;
  transform: translateX(-50%);
  color: #b8b8b8;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.timeline-tick-start {
  transform: none;
}

.timeline-tick-end {
  transform: translateX(-100%);
}

.timeline-tick::before {
  width: 1px;
  height: 7px;
  position: absolute;
  left: 50%;
  bottom: 22px;
  content: '';
  background: #666;
}

@media (max-width: 560px) {
  .toolbar {
    height: 88px;
    min-height: 88px;
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
    position: relative;
    z-index: 30;
  }

  .toolbar-row {
    width: 100%;
    height: 44px;
    display: grid;
    gap: 1px;
  }

  .toolbar-row-primary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .toolbar-row-secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex: 0 0 44px;
  }

  .toolbar-row-primary > .icon-button,
  .mobile-menu-trigger {
    width: 100%;
    height: 44px;
    min-width: 0;
  }

  .mobile-dropdown {
    min-width: 0;
    display: block;
    position: relative;
  }

  .mobile-menu-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 700;
  }

  .mobile-menu-trigger svg {
    transition: transform 140ms ease;
  }

  .mobile-dropdown.is-open .mobile-menu-trigger {
    background: var(--toolbar-hover);
  }

  .mobile-dropdown.is-open .mobile-menu-trigger svg {
    transform: rotate(180deg);
  }

  .mobile-menu-panel {
    position: absolute;
    top: 44px;
    z-index: 42;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 6px;
    background: #242424;
    border: 1px solid #4a4a4a;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  }

  .mobile-dropdown.is-open .mobile-menu-panel {
    display: flex;
  }

  .mobile-menu-panel-playback {
    left: 6px;
    width: min(310px, calc(100vw - 12px));
    flex-direction: column;
  }

  .mobile-menu-panel-tools {
    right: 6px;
    width: max-content;
    max-width: calc(100vw - 12px);
    flex-direction: row;
  }

  .mobile-menu-panel .select-label,
  .mobile-menu-panel .datetime-control {
    width: 100%;
    min-width: 0;
    flex: 0 0 auto;
  }

  .mobile-menu-panel .select-label {
    justify-content: space-between;
    background: #2c2c2c;
  }

  .mobile-menu-panel .datetime-control {
    margin-top: 6px;
    background: #2c2c2c;
  }

  .mobile-menu-panel .datetime-field {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-menu-panel-tools .icon-button {
    width: 44px;
    flex: 0 0 44px;
  }

  .datetime-picker {
    left: 0;
    right: auto;
  }

  .toolbar-spacer {
    display: none;
  }

  .modal-backdrop {
    align-items: flex-start;
    justify-content: center;
    padding-top: 98px;
  }

  .slider {
    padding: 0 12px;
  }

  .timeline-tick {
    font-size: 10px;
  }

  .viewer-info-panel {
    width: min(1480px, calc(100% - 12px));
    max-height: calc(100% - 16px);
  }

  .viewer-info-map {
    height: 220px;
  }

  .viewer-info-description {
    font-size: 15px;
  }
}
