:root {
  color-scheme: only light;
  --ground: #FAFAF9;
  --wd-surface: #FFFFFF;
  --wd-well: #F4F4F2;
  --wd-ink: #0a0a0f;
  --wd-muted: #6b7280;
  --wd-rule: #e8e8ed;
  --wd-rule-strong: #dcdce2;
  --wd-blue: #1D4AFF;
  --wd-wash: rgba(29, 74, 255, 0.06);
}

.tile,
.tile.enlarged,
.tile-zoom {
  background: var(--wd-surface);
}

main {
  padding-bottom: 112px;
}

.tile.enlarged {
  bottom: 92px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 0 100vmax var(--ground);
}

.tile.enlarged .shot-wrap {
  flex: 1 1 auto;
  min-height: 0;
  background: var(--wd-well);
}

.tile.enlarged img {
  height: 100%;
  object-fit: contain;
  object-position: center top;
}

.tile.enlarged .tile-zoom {
  display: none;
}

.pan-hint {
  display: none;
  margin: 4px 0 0;
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--wd-muted);
}

@media (max-aspect-ratio: 1 / 1) {
  .tile.enlarged {
    top: 64px;
    left: 12px;
    right: 12px;
    bottom: 84px;
  }
  .tile.enlarged .shot-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
  }
  .tile.enlarged img {
    width: auto;
    max-width: none;
    height: 100%;
    aspect-ratio: 8 / 5;
    object-fit: fill;
  }
  .tile.enlarged .pan-hint {
    display: block;
  }
}

.wd {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 20;
  width: 300px;
  height: 48px;
  border-radius: 24px;
  background: var(--wd-surface);
  border: 1px solid var(--wd-rule-strong);
  box-shadow: 0 1px 2px rgba(10, 10, 15, 0.05), 0 10px 28px rgba(10, 10, 15, 0.08);
  overflow: hidden;
  color: var(--wd-ink);
  font-family: "Inter", "Inter Greek", system-ui, sans-serif;
}

.wd-view {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 0 14px;
  min-width: 0;
}

.wd-view[data-view="open"] {
  padding: 0 8px;
  gap: 6px;
}

.wd-view[data-view="empty"] {
  justify-content: center;
}

.wd-mark {
  display: inline-grid;
  place-items: center;
  flex: none;
  color: var(--wd-ink);
}

.wd-view[data-view="focus"] .wd-mark {
  color: var(--wd-blue);
}

.wd-count {
  font-size: 13px;
  font-weight: 600;
  flex: 1 1 auto;
  min-width: 0;
}

.wd-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--wd-rule);
  background: var(--wd-well);
  color: var(--wd-ink);
  font-size: 12px;
  font-weight: 550;
  text-decoration: none;
}

.wd-link:hover {
  color: var(--wd-blue);
  border-color: var(--wd-blue);
}

.wd-text {
  display: grid;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}

.wd-host {
  font-family: "JetBrains Mono", "Inter Greek", ui-monospace, monospace;
  font-size: 11px;
  color: var(--wd-muted);
  overflow-wrap: anywhere;
  line-height: 1.2;
}

.wd-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: break-word;
}

.wd-view[data-view="open"] .wd-text {
  justify-items: center;
  text-align: center;
  gap: 6px;
}

.wd-kbd {
  flex: none;
  font-family: "JetBrains Mono", "Inter Greek", ui-monospace, monospace;
  font-size: 11px;
  color: var(--wd-muted);
  border: 1px solid var(--wd-rule);
  border-radius: 6px;
  padding: 3px 6px;
  background: var(--wd-well);
}

.wd-btn {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--wd-ink);
  cursor: pointer;
  padding: 0;
}

.wd-btn svg {
  pointer-events: none;
}

.wd-btn:hover {
  background: var(--wd-well);
}

.wd-btn:focus-visible,
.wd-link:focus-visible {
  outline: 2px solid var(--wd-blue);
  outline-offset: -2px;
}

.wd-track {
  position: relative;
  display: block;
  height: 4px;
  border-radius: 2px;
  background: var(--wd-well);
  box-shadow: inset 0 0 0 1px var(--wd-rule);
}

.wd-ind {
  position: absolute;
  left: 0;
  top: 0;
  height: 4px;
  border-radius: 2px;
  background: var(--wd-blue);
}

.wd-live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}
