@layer components {
  /* ── Photo Review Lightbox ── */
  .photo-review {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: #1a1d1a;
    display: flex;
    flex-direction: column;
    color: #fff;
    font-family: var(--font-ui);
  }

  /* ── Top bar ── */
  .photo-review__topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
  }

  .photo-review__exit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--r-sm);
    color: var(--ink-400);
    transition: color 0.15s, background 0.15s;
  }

  .photo-review__exit-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
  }

  .photo-review__exit-btn svg {
    width: 16px;
    height: 16px;
  }

  .photo-review__category {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-200);
    flex: 1;
  }

  .photo-review__progress {
    font-size: 13px;
    color: var(--ink-400);
    font-variant-numeric: tabular-nums;
  }

  /* ── Stage (main photo area) ── */
  .photo-review__stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 16px;
  }

  .photo-review__image-wrap {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .photo-review__image {
    max-width: 100%;
    max-height: calc(100vh - 140px);
    object-fit: contain;
    border-radius: var(--r-sm);
    transition: opacity 0.1s ease;
  }

  .photo-review__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 400px;
    height: 300px;
  }

  .photo-review__placeholder svg {
    width: 64px;
    height: 64px;
  }

  /* ── Bottom bar ── */
  .photo-review__bottombar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
  }

  .photo-review__photo-id {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .photo-review__id-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-400);
  }

  .photo-review__id-value {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.03em;
    color: var(--ink-200);
  }

  /* ── Selection indicator ── */
  .selection-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--r-sm);
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-400);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.15s ease;
    cursor: default;
    user-select: none;
  }

  .selection-indicator__check {
    width: 14px;
    height: 14px;
    display: none;
  }

  .selection-indicator.excluded {
    color: var(--amber-300, #fbbf24);
    border-color: var(--amber-500, #f59e0b);
    background: rgba(245, 158, 11, 0.15);
  }

  .selection-indicator.excluded .selection-indicator__check {
    display: block;
  }

  /* ── Photo title ── */
  .photo-review__title {
    flex: 1;
    font-size: 13px;
    color: var(--ink-400);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* ── Keyboard hints ── */
  .photo-review__hints {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }

  .photo-review__hints kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 5px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    font-family: var(--font-ui);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
  }

  /* ── Review button on photos index ── */
  .review-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--forest-600, #3d8b40);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: var(--r-sm);
    transition: background 0.15s;
  }

  .review-btn:hover {
    background: var(--forest-50, #e8f5e9);
  }

  .review-btn svg {
    width: 14px;
    height: 14px;
  }
}
