/* Visage Design System */

/* ===== Color System (OKLCH) ===== */
:root {
  /* Brand colors */
  --brand: oklch(65% 0.18 280);
  --brand-hover: oklch(58% 0.18 280);
  --accent: oklch(75% 0.15 180);
  --accent-hover: oklch(68% 0.15 180);

  /* Text colors */
  --text: oklch(18% 0.01 280);
  --text-muted: oklch(45% 0.02 280);

  /* Surface colors */
  --surface: oklch(99% 0.005 280);
  --surface-elevated: oklch(100% 0 0);

  /* Border */
  --border: oklch(0% 0 0 / 0.08);

  /* Semantic colors */
  --destructive: oklch(60% 0.2 25);
  --destructive-hover: oklch(55% 0.2 25);
  --success: oklch(65% 0.18 145);
  --warning: oklch(75% 0.15 85);

  /* Shadows */
  --shadow-sm: 0 1px 2px oklch(0% 0 0 / 0.04);
  --shadow-card: 0 2px 8px oklch(0% 0 0 / 0.06), 0 1px 2px oklch(0% 0 0 / 0.04);
  --shadow-elevated: 0 8px 24px oklch(0% 0 0 / 0.12), 0 2px 8px oklch(0% 0 0 / 0.06);

  /* Focus ring */
  --ring-brand: oklch(65% 0.18 280 / 0.5);
}

.dark {
  /* Brand colors - slightly brighter for dark mode */
  --brand: oklch(72% 0.14 280);
  --brand-hover: oklch(78% 0.14 280);
  --accent: oklch(72% 0.12 180);
  --accent-hover: oklch(78% 0.12 180);

  /* Text colors */
  --text: oklch(92% 0.01 280);
  --text-muted: oklch(60% 0.02 280);

  /* Surface colors - slight purple tint */
  --surface: oklch(12% 0.015 280);
  --surface-elevated: oklch(16% 0.015 280);

  /* Border */
  --border: oklch(100% 0 0 / 0.1);

  /* Semantic colors */
  --destructive: oklch(65% 0.18 25);
  --success: oklch(70% 0.16 145);
  --warning: oklch(78% 0.14 85);

  /* Shadows - more subtle in dark mode */
  --shadow-sm: 0 1px 2px oklch(0% 0 0 / 0.2);
  --shadow-card: 0 2px 8px oklch(0% 0 0 / 0.3), 0 1px 2px oklch(0% 0 0 / 0.2);
  --shadow-elevated: 0 8px 24px oklch(0% 0 0 / 0.4), 0 2px 8px oklch(0% 0 0 / 0.3);

  /* Focus ring */
  --ring-brand: oklch(72% 0.14 280 / 0.5);
}

/* ===== Alpine.js cloak ===== */
[x-cloak] {
  display: none !important;
}

/* Fix Tailwind hidden class specificity with modal-overlay */
.hidden.modal-overlay {
  display: none !important;
}

/* ===== Typography Base ===== */
body {
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Marketing pages use larger text */
.marketing-text {
  font-size: 18px;
}

/* Monospace for technical displays */
.font-mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
}

/* ===== Buttons ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background-color: var(--brand);
  color: white;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: background-color 200ms, transform 150ms, box-shadow 200ms;
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  background-color: var(--brand-hover);
  box-shadow: var(--shadow-sm);
}

.btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--brand);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background-color: var(--surface-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: background-color 200ms, border-color 200ms, box-shadow 200ms;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: var(--surface);
  border-color: oklch(0% 0 0 / 0.15);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--brand);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background-color: var(--destructive);
  color: white;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: background-color 200ms, box-shadow 200ms;
  cursor: pointer;
  border: none;
}

.btn-danger:hover {
  background-color: var(--destructive-hover);
}

.btn-danger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--destructive);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background-color: transparent;
  color: var(--text-muted);
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: background-color 150ms, color 150ms;
  cursor: pointer;
  border: none;
}

.btn-ghost:hover {
  background-color: var(--surface);
  color: var(--text);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background-color: transparent;
  color: var(--text-muted);
  border-radius: 0.5rem;
  transition: background-color 150ms, color 150ms;
  cursor: pointer;
  border: none;
}

.btn-icon:hover {
  background-color: var(--surface);
  color: var(--text);
}

.btn-icon:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--brand);
}

/* Small button variant */
.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

/* ===== Cards ===== */
.card {
  background-color: var(--surface-elevated);
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: box-shadow 200ms, transform 200ms;
}

.card-interactive {
  cursor: pointer;
}

.card-interactive:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-2px);
}

.card-interactive:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--brand);
}

/* ===== Inputs ===== */
.input {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text);
  font-size: 0.9375rem;
  transition: border-color 200ms, box-shadow 200ms;
}

.input::placeholder {
  color: var(--text-muted);
}

.input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--ring-brand);
}

.input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

textarea.input {
  resize: vertical;
  min-height: 100px;
}

/* Prompt box textarea should be compact on mobile */
.prompt-box textarea.input {
  min-height: auto;
}

/* ===== Select ===== */
.select {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text);
  font-size: 0.9375rem;
  transition: border-color 200ms, box-shadow 200ms;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2386868b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

.select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--ring-brand);
}

/* ===== Toast Notifications ===== */
.toast {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-elevated);
  font-size: 0.875rem;
  font-weight: 500;
  animation: slide-up 200ms ease-out;
}

.toast-success {
  background-color: var(--success);
  color: white;
}

.toast-error {
  background-color: var(--destructive);
  color: white;
}

.toast-info {
  background-color: var(--brand);
  color: white;
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* ===== Modal ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: oklch(0% 0 0 / 0.5);
  backdrop-filter: blur(4px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal {
  background-color: var(--surface-elevated);
  border-radius: 0.75rem;
  max-width: 32rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-elevated);
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Modal overlay - must be higher than prompt-box */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: oklch(0% 0 0 / 0.5);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* ===== Gallery Grid ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* ===== Examples Grid ===== */
.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

/* ===== Image/Video Cards ===== */
.image-card,
.video-card,
.video-card-placeholder {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 200ms, transform 200ms;
}

.image-card:hover,
.video-card:hover {
  box-shadow: var(--shadow-card);
}

.image-card img,
.video-card video {
  width: 100%;
  height: auto;
  display: block;
}

.image-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, oklch(0% 0 0 / 0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 200ms;
}

.image-card:hover .image-card-overlay,
.video-card:hover .image-card-overlay {
  opacity: 1;
}

/* Selected state for images */
.image-card-selected {
  box-shadow: 0 0 0 2px var(--brand);
}

/* ===== Loading Spinner ===== */
.spinner {
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Skeleton pulse animation for loading states */
.skeleton-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Generation loading gradient overlay */
.generation-loading {
  background: linear-gradient(
    90deg,
    transparent 0%,
    oklch(65% 0.18 280 / 0.1) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

.empty-state-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  opacity: 0.5;
}

/* ===== Dropzone ===== */
.dropzone {
  border: 2px dashed var(--border);
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  transition: border-color 200ms, background-color 200ms, box-shadow 200ms;
  cursor: pointer;
}

.dropzone:hover {
  border-color: var(--brand);
  background-color: oklch(65% 0.18 280 / 0.03);
  box-shadow: var(--shadow-sm);
}

.dropzone.dragover {
  border-color: var(--brand);
  background-color: oklch(65% 0.18 280 / 0.05);
  box-shadow: var(--shadow-card);
}

/* ===== Badge ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  background-color: var(--surface);
  color: var(--text-muted);
}

.badge-success {
  background-color: oklch(65% 0.18 145 / 0.1);
  color: var(--success);
}

.badge-error {
  background-color: oklch(60% 0.2 25 / 0.1);
  color: var(--destructive);
}

.badge-pending {
  background-color: oklch(75% 0.15 85 / 0.1);
  color: var(--warning);
}

.badge-brand {
  background-color: oklch(65% 0.18 280 / 0.1);
  color: var(--brand);
}

/* ===== Sticky Prompt Box ===== */
.prompt-box {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--surface-elevated);
  border-top: 1px solid var(--border);
  padding: 1rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  max-width: 100vw;
  box-sizing: border-box;
  transition: bottom 150ms ease-out;
  box-shadow: 0 -4px 16px oklch(0% 0 0 / 0.08);
}

@media (max-width: 640px) {
  .prompt-box {
    padding: 0.75rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  }
  .prompt-box .space-y-3 {
    gap: 0.5rem;
  }
}

.prompt-box form,
.prompt-box form > * {
  min-width: 0;
  max-width: 100%;
}

/* ===== Utility Classes ===== */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.transition-opacity {
  transition-property: opacity;
  transition-timing-function: ease-in-out;
  transition-duration: 200ms;
}

/* ===== HTMX Loading Indicator ===== */
.htmx-request .htmx-indicator {
  opacity: 1;
}

.htmx-indicator {
  opacity: 0;
  transition: opacity 200ms ease-in;
}

/* ===== Update Notification Banner ===== */
.update-notification {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: linear-gradient(135deg, var(--brand), var(--brand-hover));
  color: white;
  padding: 0.75rem 1rem;
  animation: slideDown 300ms ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.update-notification-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.update-notification-btn {
  background: oklch(100% 0 0 / 0.2);
  border: 1px solid oklch(100% 0 0 / 0.3);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 200ms;
}

.update-notification-btn:hover {
  background: oklch(100% 0 0 / 0.3);
}

.update-notification-close {
  background: none;
  border: none;
  color: oklch(100% 0 0 / 0.7);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0 0.25rem;
  line-height: 1;
  margin-left: 0.5rem;
}

.update-notification-close:hover {
  color: white;
}

/* ===== Lightbox Styles ===== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: oklch(8% 0.01 280 / 0.98);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}

.lightbox-presentation {
  background: oklch(0% 0 0);
}

.lightbox-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: linear-gradient(to bottom, oklch(0% 0 0 / 0.7), transparent);
  z-index: 10;
}

.lightbox-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: oklch(100% 0 0 / 0.1);
  color: oklch(100% 0 0 / 0.8);
  border: none;
  cursor: pointer;
  transition: background 200ms, color 150ms;
}

.lightbox-btn:hover {
  background: oklch(100% 0 0 / 0.2);
  color: white;
}

.lightbox-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--brand);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: oklch(0% 0 0 / 0.5);
  color: oklch(100% 0 0 / 0.8);
  border: none;
  cursor: pointer;
  transition: background 200ms, color 150ms;
}

.lightbox-nav:hover {
  background: oklch(0% 0 0 / 0.7);
  color: white;
}

.lightbox-nav:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--brand);
}

.lightbox-nav-prev {
  left: 0.5rem;
}

.lightbox-nav-next {
  right: 0.5rem;
}

@media (min-width: 640px) {
  .lightbox-nav {
    width: 3.5rem;
    height: 3.5rem;
  }
  .lightbox-nav-prev {
    left: 1rem;
  }
  .lightbox-nav-next {
    right: 1rem;
  }
}

.lightbox-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 3.5rem 0.5rem 5rem 0.5rem;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .lightbox-media {
    padding: 4rem 4rem 6rem 4rem;
  }
}

.lightbox-content {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 0 0 1px oklch(100% 0 0 / 0.1);
}

/* Force visible controls on video player against dark background */
video.lightbox-content {
  color-scheme: only light;
}

video.lightbox-content::-webkit-media-controls {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

video.lightbox-content::-webkit-media-controls-panel {
  background: rgba(0, 0, 0, 0.7) !important;
}

video.lightbox-content::-webkit-media-controls-play-button,
video.lightbox-content::-webkit-media-controls-volume-slider,
video.lightbox-content::-webkit-media-controls-mute-button,
video.lightbox-content::-webkit-media-controls-fullscreen-button,
video.lightbox-content::-webkit-media-controls-current-time-display,
video.lightbox-content::-webkit-media-controls-time-remaining-display {
  filter: invert(1) !important;
}

.lightbox-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, oklch(0% 0 0 / 0.8), transparent);
  z-index: 10;
}

.lightbox-presentation .lightbox-media {
  padding: 0;
}

.lightbox-presentation .lightbox-content {
  border-radius: 0;
  max-width: 100vw;
  max-height: 100vh;
  box-shadow: none;
}

/* ===== Focus States (Accessibility) ===== */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--brand);
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== Character Card Stack ===== */
.character-card-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}

.character-card-stack img {
  position: absolute;
  width: 60%;
  height: 60%;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 2px solid var(--surface-elevated);
  box-shadow: var(--shadow-card);
}

.character-card-stack img:nth-child(1) {
  top: 0;
  left: 0;
  z-index: 3;
}

.character-card-stack img:nth-child(2) {
  top: 20%;
  left: 20%;
  z-index: 2;
}

.character-card-stack img:nth-child(3) {
  top: 40%;
  left: 40%;
  z-index: 1;
}

/* ===== Step Indicator ===== */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.step-indicator-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 200ms, color 200ms;
}

.step-indicator-item.active {
  background-color: var(--brand);
  color: white;
}

.step-indicator-item.completed {
  background-color: var(--success);
  color: white;
}

.step-indicator-item.pending {
  background-color: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.step-indicator-line {
  flex: 1;
  height: 2px;
  background-color: var(--border);
}

.step-indicator-line.completed {
  background-color: var(--success);
}

/* ===== Quick Actions (Image Hover) ===== */
.quick-actions {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 200ms, transform 200ms;
}

.image-card:hover .quick-actions {
  opacity: 1;
  transform: translateY(0);
}

.quick-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: oklch(0% 0 0 / 0.6);
  color: white;
  border: none;
  cursor: pointer;
  transition: background 150ms;
  backdrop-filter: blur(4px);
}

.quick-action-btn:hover {
  background: oklch(0% 0 0 / 0.8);
}

.quick-action-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--brand);
}

/* ===== Sortable Reference Images ===== */
.ref-images-sortable .sortable-ghost {
  opacity: 0.4;
}

.ref-images-sortable .sortable-chosen {
  transform: scale(1.05);
  box-shadow: var(--shadow-elevated);
}

.ref-images-sortable .sortable-drag {
  opacity: 1;
}

.drag-handle {
  touch-action: none;
}
