#feedback-image-picker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.shot-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  padding: 5px 8px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  background: var(--accent-subtle);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}

.shot-link:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.shot-hint,
.shot-remove {
  color: var(--text-secondary);
  font-size: 12px;
}

.shot-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shot-previews:not(:empty) {
  flex-basis: 100%;
}

.shot-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
}

.shot-thumb {
  display: block;
  width: 60px;
  height: 44px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  cursor: zoom-in;
}

.shot-thumb:hover {
  border-color: var(--accent);
}

.shot-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot-remove {
  padding: 6px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.shot-remove:hover {
  background: var(--danger-50);
  color: var(--danger-700);
}

.shot-view-link {
  padding: 2px 6px;
  font-size: 12px;
  vertical-align: middle;
}

.shot-viewer {
  width: min(820px, 94vw);
  max-height: 92vh;
  max-height: 92dvh;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
}

.shot-viewer[open] {
  display: flex;
  flex-direction: column;
}

.shot-viewer::backdrop {
  background: var(--overlay-backdrop);
}

.shot-bar,
.shot-nav {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
}

.shot-bar {
  border-bottom: 1px solid var(--border-light);
  background: var(--table-head-bg);
}

.shot-bar > div {
  display: flex;
  gap: 8px;
}

.shot-nav {
  border-top: 1px solid var(--border-light);
}

.shot-viewer button {
  padding: 6px 10px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
}

.shot-viewer button:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent-subtle);
  color: var(--accent-hover);
}

.shot-link:disabled,
.shot-viewer button:disabled {
  border-color: var(--border-light);
  background: var(--bg-disabled);
  color: var(--text-disabled);
  cursor: not-allowed;
}

.shot-nav[hidden],
.shot-canvas img[hidden],
.shot-canvas [role="status"]:empty {
  display: none;
}

.shot-heading {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.shot-canvas {
  flex: 1;
  min-height: 100px;
  padding: 10px;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--bg-subtle);
  text-align: center;
}

.shot-canvas img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 70vh;
  max-height: 70dvh;
  margin: auto;
  object-fit: contain;
}

.shot-canvas img.actual-size {
  max-width: none;
  max-height: none;
}

@media (max-width: 600px) {
  .shot-viewer {
    width: 96vw;
  }

  .shot-bar,
  .shot-nav {
    padding: 9px;
  }

  .shot-viewer button,
  .shot-link:not(.shot-view-link),
  .shot-remove {
    min-height: 40px;
  }

  .shot-view-link {
    min-height: 25px;
  }

  .detail-drawer .shot-view-link {
    min-height: 32px;
  }
}
