:root {
  --orb-font-sans: "Helvetica Neue", Arial, sans-serif;
  --orb-orange: #f26b3a;
  --orb-orange-dark: #d2572d;
  --orb-blue: #2c7be5;
  --orb-green: #22c55e;
  --orb-gray-900: #181818;
  --orb-gray-800: #202020;
  --orb-gray-700: #2c2c2c;
  --orb-gray-500: #6b7280;
  --orb-gray-400: #9ca3af;
  --orb-gray-300: #d1d5db;
  --orb-gray-200: #e5e7eb;
  --orb-gray-100: #f5f5f5;
  --orb-white: #ffffff;
  --orb-shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.08);
  --orb-shadow-md: 0 6px 18px rgba(15, 23, 42, 0.12);
  --orb-shadow-lg: 0 18px 48px rgba(15, 23, 42, 0.14);
  --orb-radius-md: 0.75rem;
  --orb-radius-lg: 1.25rem;
  --orb-container-max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--orb-font-sans);
  color: var(--orb-gray-700);
  background: var(--orb-gray-100);
  /* Use dvh (dynamic viewport height) for iOS Safari, fallback to vh */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  /* Prevent iOS rubber-band scroll issues */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: none;
}

body.theme-dark {
  background: var(--orb-gray-900);
  color: #f5f5f5;
}

a {
  color: var(--orb-orange);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--orb-orange);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(6px);
}

/* Floating Home Button - Prominent branding */
.home-fab {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  opacity: 0.7;
}

.home-fab:hover {
  transform: scale(1.1);
  opacity: 1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.home-fab:active {
  transform: scale(0.95);
}

.home-fab__logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.home-fab:hover .home-fab__logo {
  transform: rotate(10deg);
}

/* Hide home fab on the main dashboard page */
.page-index .home-fab {
  display: none;
}

@media (max-width: 768px) {
  .home-fab {
    width: 40px;
    height: 40px;
    top: 0.5rem;
    left: 0.5rem;
  }
  
  .home-fab__logo {
    width: 32px;
    height: 32px;
  }
}

body.theme-dark .site-header {
  background: rgba(24, 24, 24, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-container {
  max-width: var(--orb-container-max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--orb-gray-700);
  text-decoration: none;
}

.brand__logo {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
  animation: heroLogoSpin 1.1s ease-out both;
}

.brand__badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  aspect-ratio: 1;
  border-radius: 30%;
  background: radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.22), transparent 65%),
    linear-gradient(135deg, #f26b3a, #f97316 55%, #fb923c);
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(242, 107, 58, 0.3);
}

.brand__badge-text {
  font-size: 0.9rem;
  letter-spacing: 0.32em;
}

.brand__badge-sub {
  font-size: 0.45rem;
  letter-spacing: 0.4em;
  opacity: 0.85;
}

.brand__label {
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: clamp(0.75rem, 2.8vw, 0.9rem);
  white-space: nowrap;
}

body.theme-dark .brand {
  color: #f5f5f5;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 999px;
  background: transparent;
  color: var(--orb-gray-700);
  cursor: pointer;
  font-weight: 600;
}

body.theme-dark .nav-toggle {
  color: #f5f5f5;
  border-color: rgba(255, 255, 255, 0.25);
}

.site-nav {
  width: 100%;
  display: none;
}

.site-nav.is-open {
  display: block;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  color: var(--orb-gray-700);
  font-weight: 600;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: rgba(242, 107, 58, 0.12);
  color: var(--orb-orange);
}

.nav-link.is-active {
  color: var(--orb-orange);
}

body.theme-dark .nav-link {
  color: #f5f5f5;
}

body.theme-dark .nav-link:hover,
body.theme-dark .nav-link:focus-visible {
  background: rgba(242, 107, 58, 0.22);
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    width: auto;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
  }
}

.page-content {
  flex: 1;
  padding: 1.5rem 1.25rem 3rem;
}

.page-container {
  max-width: var(--orb-container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stack-lg {
  gap: 1.5rem;
}

.surface {
  background: var(--orb-white);
  border-radius: var(--orb-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--orb-shadow-sm);
}

.surface-neutral {
  background: rgba(255, 255, 255, 0.6);
}

body.theme-dark .surface {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.hero {
  position: relative;
  border-radius: var(--orb-radius-lg);
  padding: 2.5rem 1.75rem;
  background: linear-gradient(135deg, #2c2c2c, #404040);
  color: #ffffff;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--orb-shadow-lg);
}

.hero--compact {
  padding: 1.5rem 1.25rem;
}

.hero--compact .hero__logo {
  width: clamp(96px, 18vw, 140px);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  margin: 0;
}

.hero--compact .hero__title {
  font-size: clamp(1.75rem, 4vw, 2.1rem);
}

.hero--compact .hero__subtitle {
  max-width: 24rem;
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.78);
}

.hero--compact .hero__logo-img {
  width: clamp(140px, 22vw, 180px);
}

.hero__content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
  align-items: flex-start;
}

@media (max-width: 640px) {
  .hero__text {
    align-items: center;
    text-align: center;
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(242, 107, 58, 0.25), transparent 60%);
  opacity: 0.8;
  pointer-events: none;
}

.hero__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(120px, 20vw, 180px);
  aspect-ratio: 1;
  margin: 0 auto 1rem;
  border-radius: 32%;
  background: radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.22), transparent 65%),
    linear-gradient(135deg, #f26b3a, #f97316 55%, #fb923c);
  color: #ffffff;
  font-family: var(--orb-font-sans);
  font-weight: 800;
  font-size: clamp(2.25rem, 6vw, 2.85rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: 0 18px 38px rgba(242, 107, 58, 0.35);
  text-align: center;
  flex-direction: column;
}

.hero__logo--image {
  width: auto;
  aspect-ratio: auto;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.hero__logo-img {
  width: clamp(180px, 28vw, 240px);
  max-width: 260px;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.35));
  animation: heroLogoSpin 1.15s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
  .brand__logo,
  .hero__logo-img {
    animation: none;
  }
}

.hero__logo-text {
  display: block;
  font-size: 1em;
  letter-spacing: 0.24em;
}

.hero__logo .hero__logo-sub {
  font-size: clamp(0.55rem, 2vw, 0.75rem);
  letter-spacing: 0.4em;
  display: block;
  text-transform: uppercase;
  margin-top: clamp(0.2rem, 1vw, 0.35rem);
  color: rgba(255, 255, 255, 0.8);
}

.logo-small {
  width: clamp(120px, 26vw, 160px);
  font-size: clamp(1.85rem, 6vw, 2.35rem);
}

.hero__title {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #f26b3a, #ff8c5a);
  -webkit-background-clip: text;
  color: transparent;
}

.hero__subtitle {
  margin: 0.75rem auto 0;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero__actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

@keyframes heroLogoSpin {
  0% {
    transform: scale(0.6) rotate(-18deg);
    opacity: 0;
  }
  45% {
    transform: scale(1.08) rotate(6deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #f26b3a, #ff8c5a);
  box-shadow: 0 8px 20px rgba(242, 107, 58, 0.3);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(242, 107, 58, 0.4);
}

/* Large upload button */
.btn-upload {
  width: 100%;
  padding: 1.1rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: var(--orb-radius-lg);
}

.btn-danger {
  background: linear-gradient(135deg, #dc3545, #f87171);
  color: #fff;
  border-color: transparent;
}

.btn-success {
  background: linear-gradient(135deg, #22c55e, #34d399);
  color: #fff;
  border-color: transparent;
}

.btn-neutral {
  background: rgba(15, 23, 42, 0.05);
  color: var(--orb-gray-700);
  border-color: rgba(15, 23, 42, 0.12);
}

.btn-neutral:hover,
.btn-neutral:focus-visible {
  color: var(--orb-orange);
  border-color: var(--orb-orange);
}

.btn-danger:hover,
.btn-danger:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(220, 53, 69, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--orb-gray-700);
  border-color: rgba(15, 23, 42, 0.15);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  color: var(--orb-orange);
  border-color: var(--orb-orange);
}

body.theme-dark .btn-secondary {
  color: #f5f5f5;
  border-color: rgba(255, 255, 255, 0.32);
}

body.theme-dark .btn-secondary:hover,
body.theme-dark .btn-secondary:focus-visible {
  color: var(--orb-orange);
  border-color: rgba(242, 107, 58, 0.8);
}

.btn-secondary.is-active {
  background: rgba(242, 107, 58, 0.1);
  color: var(--orb-orange);
  border-color: var(--orb-orange);
}

.btn-outline {
  background: transparent;
  color: #64748b;
  border: 1.5px solid #e2e8f0;
  padding: 0.5rem 0.875rem;
  border-radius: 6px;
  font-size: 0.875rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: all 0.15s;
}

.btn-outline:hover {
  border-color: var(--orb-orange);
  color: var(--orb-orange);
  background: rgba(249, 115, 22, 0.05);
}

body.theme-dark .btn-secondary.is-active {
  background: rgba(242, 107, 58, 0.25);
  color: #fff;
  border-color: rgba(242, 107, 58, 0.8);
}

.btn-ghost {
  background: transparent;
  color: var(--orb-orange);
}

.tab-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.tab-button {
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: #ffffff;
  color: var(--orb-gray-700);
  font-weight: 600;
  cursor: pointer;
}

.tab-button[aria-pressed="true"] {
  background: linear-gradient(135deg, #f26b3a, #ff8c5a);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(242, 107, 58, 0.25);
}

body.theme-dark .tab-button {
  background: rgba(255, 255, 255, 0.08);
  color: #f5f5f5;
  border-color: rgba(255, 255, 255, 0.2);
}

body.theme-dark .tab-button[aria-pressed="true"] {
  color: #fff;
}

.section-title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  color: var(--orb-orange);
}

.section-heading {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--orb-gray-700);
}

body.theme-dark .section-heading {
  color: #f5f5f5;
}

.section-lead {
  margin: 0.25rem auto 0;
  max-width: 42rem;
  text-align: center;
  color: var(--orb-gray-500);
}

body.theme-dark .section-lead {
  color: rgba(255, 255, 255, 0.65);
}

.alert {
  border-radius: var(--orb-radius-md);
  padding: 1rem;
  font-weight: 500;
}

.alert--success {
  background: rgba(34, 197, 94, 0.15);
  color: #14532d;
}

.alert--danger {
  background: rgba(239, 68, 68, 0.15);
  color: #991b1b;
}

.alert--info {
  background: rgba(59, 130, 246, 0.15);
  color: #1d4ed8;
}

body.theme-dark .alert {
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-section {
  border-radius: var(--orb-radius-md);
  background: rgba(242, 107, 58, 0.05);
  padding: 1rem;
  border: 1px solid rgba(242, 107, 58, 0.15);
}

body.theme-dark .form-section {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.form-section h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
  color: var(--orb-orange);
  text-align: left;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--orb-radius-md);
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
}

body.theme-dark .radio-option {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.radio-option + .radio-option {
  margin-top: 0.5rem;
}

.radio-option:hover {
  border-color: var(--orb-orange);
}

.radio-option input[type="radio"] {
  margin: 0.25rem 0.25rem 0 0;
}

.radio-label {
  font-weight: 600;
  color: var(--orb-gray-700);
}

body.theme-dark .radio-label {
  color: #f5f5f5;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-weight: 600;
  color: var(--orb-gray-700);
}

body.theme-dark .form-field label {
  color: #f5f5f5;
}

.input-control,
textarea,
select {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 0.65rem 0.85rem;
  font-size: 1rem;
  font-family: inherit;
  background: #ffffff;
  color: inherit;
}

.input-inline {
  width: auto;
  min-width: 4rem;
}

body.theme-dark .input-control,
body.theme-dark textarea,
body.theme-dark select {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.input-control:focus,
textarea:focus,
select:focus {
  border-color: var(--orb-orange);
  box-shadow: 0 0 0 4px rgba(242, 107, 58, 0.18);
  outline: none;
}

.file-picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto;
  width: 100%;
}

.file-trigger {
  width: 100%;
  max-width: 320px;
  border: 2px dashed rgba(242, 107, 58, 0.4);
  border-radius: var(--orb-radius-md);
  padding: 1rem 1.25rem;
  background: #fff;
  color: var(--orb-orange);
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.file-trigger:hover,
.file-trigger:focus-visible {
  background: rgba(242, 107, 58, 0.05);
}

body.theme-dark .file-trigger {
  background: rgba(255, 255, 255, 0.05);
}

.file-trigger input[type="file"] {
  display: none;
}

.selected-file {
  font-size: 0.95rem;
  color: var(--orb-gray-500);
}

body.theme-dark .selected-file {
  color: rgba(255, 255, 255, 0.7);
}

.w-full {
  width: 100%;
}

.max-w-sm {
  max-width: 20rem;
}

.max-w-md {
  max-width: 28rem;
}

.max-w-lg {
  max-width: 36rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

[hidden] {
  display: none !important;
}

.is-hidden {
  display: none !important;
}

.inline-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.grid-auto {
  display: grid;
  gap: 1rem;
}

.grid-auto-220 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid-auto-280 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.cards-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
  border-radius: var(--orb-radius-md);
  padding: 1rem;
  background: #fff;
  box-shadow: var(--orb-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

body.theme-dark .card {
  background: rgba(255, 255, 255, 0.08);
}

.card-media {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  object-fit: cover;
}

body.theme-dark .card-media {
  border-color: rgba(255, 255, 255, 0.18);
}

.card--dark {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(242, 107, 58, 0.1);
  color: var(--orb-orange);
}

body.theme-dark .badge {
  background: rgba(242, 107, 58, 0.25);
  color: #fff;
}

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--orb-radius-md);
}

.scroll-box {
  max-height: 18rem;
  overflow: auto;
  padding: 1rem;
  border-radius: var(--orb-radius-md);
  background: rgba(15, 23, 42, 0.02);
}

body.theme-dark .scroll-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.progress-placeholder {
  padding: 0.75rem 1rem;
  color: var(--orb-gray-500);
}

body.theme-dark .progress-placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.progress-summary {
  font-weight: 700;
}

.progress-error {
  color: #dc3545;
}

.progress-warning {
  color: #ff9800;
}

.progress-detail {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.progress-detail summary {
  cursor: pointer;
}

.progress-row {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0.5rem 0.25rem;
}

body.theme-dark .progress-row {
  border-color: rgba(255, 255, 255, 0.12);
}

.pre-wrap {
  white-space: pre-wrap;
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 100%;
}

.table th,
.table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  text-align: left;
}

.table th {
  font-weight: 700;
  background: rgba(15, 23, 42, 0.04);
}

body.theme-dark .table th,
body.theme-dark .table td {
  border-color: rgba(255, 255, 255, 0.12);
}

body.theme-dark .table th {
  background: rgba(255, 255, 255, 0.08);
}

.table caption {
  text-align: left;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.list-reset {
  list-style: none;
  padding: 0;
  margin: 0;
}

.flow-text {
  line-height: 1.6;
  color: var(--orb-gray-500);
}

body.theme-dark .flow-text {
  color: rgba(255, 255, 255, 0.7);
}

.subtle {
  color: var(--orb-gray-500);
}

body.theme-dark .subtle {
  color: rgba(255, 255, 255, 0.6);
}

.align-center {
  text-align: center;
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.cluster.center {
  justify-content: center;
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.muted-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(242, 107, 58, 0.4);
}

.muted-link:hover {
  text-decoration-color: var(--orb-orange);
}

.divider {
  height: 1px;
  background: rgba(15, 23, 42, 0.08);
}

body.theme-dark .divider {
  background: rgba(255, 255, 255, 0.12);
}

.toast-container {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: min(360px, calc(100% - 2rem));
  pointer-events: none;
}

.toast {
  padding: 0.75rem 1rem;
  border-radius: var(--orb-radius-md);
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  font-weight: 600;
  text-align: center;
  pointer-events: auto;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.92);
  z-index: 9999;
  backdrop-filter: blur(4px);
}

body.theme-dark .loading-overlay {
  background: rgba(0, 0, 0, 0.82);
}

.spinner {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  border: 6px solid rgba(242, 107, 58, 0.15);
  border-top-color: var(--orb-orange);
  animation: spin 1s linear infinite;
  margin-bottom: 1.5rem;
}

.loading-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--orb-orange);
  text-align: center;
}

.loading-subtext {
  margin-top: 0.5rem;
  color: var(--orb-gray-500);
  text-align: center;
}

body.theme-dark .loading-text,
body.theme-dark .loading-subtext {
  color: #fff;
}

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

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(15, 23, 42, 0.08);
  color: var(--orb-gray-700);
}

body.theme-dark .chip {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* Riftbound */
.page-rift .surface,
.page-rift .card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.page-rift .section-title,
.page-rift .form-section h3 {
  color: #f9fafb;
}

.page-rift .badge {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.page-rift .table th,
.page-rift .table td {
  border-color: rgba(255, 255, 255, 0.08);
}

.analysis-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.analysis-raw {
  background: rgba(15, 23, 42, 0.8);
  border-radius: var(--orb-radius-md);
  padding: 1rem;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.85rem;
  max-height: 240px;
  overflow: auto;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
}

.flash {
  padding: 0.75rem 1rem;
  border-radius: var(--orb-radius-md);
  margin-bottom: 1rem;
}

.flash.success {
  background: rgba(34, 197, 94, 0.18);
  color: #22c55e;
}

.flash.warning {
  background: rgba(234, 179, 8, 0.2);
  color: #facc15;
}

.flash.danger {
  background: rgba(248, 113, 113, 0.25);
  color: #ef4444;
}

.flash.info {
  background: rgba(59, 130, 246, 0.22);
  color: #60a5fa;
}

.spinner-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999;
}

.spinner-content {
  text-align: center;
  color: #fff;
}

.spinner-content .spinner {
  border-color: rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
}

/* Forms directory */
.forms-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form-card {
  border-radius: var(--orb-radius-md);
  background: #fff;
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--orb-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

body.theme-dark .form-card {
  background: rgba(255, 255, 255, 0.08);
}

.form-card h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--orb-orange);
}

.form-card p {
  margin: 0;
  color: var(--orb-gray-500);
}

/* Buy intake */
.buy-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.buy-card {
  border-radius: var(--orb-radius-md);
  background: #fff;
  padding: 1rem;
  box-shadow: var(--orb-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

body.theme-dark .buy-card {
  background: rgba(255, 255, 255, 0.08);
}

.buy-card a {
  font-weight: 700;
  color: var(--orb-gray-700);
}

body.theme-dark .buy-card a {
  color: #fff;
}

.buy-subnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.buy-subnav .btn {
  min-width: 7.5rem;
}

.progress-track {
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.progress-track.is-hidden {
  display: none;
}

body.theme-dark .progress-track {
  background: rgba(255, 255, 255, 0.15);
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--orb-orange);
  transition: width 0.3s ease;
}

.loading-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--orb-orange);
  font-weight: 600;
}

.loading-indicator__spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(242, 107, 58, 0.2);
  border-top-color: var(--orb-orange);
  animation: spin 1s linear infinite;
}

.action-toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 0.75rem 0;
  background: var(--orb-white);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

body.theme-dark .action-toolbar {
  background: rgba(24, 24, 24, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.divider {
  border: none;
  height: 1px;
  width: 100%;
  background: rgba(15, 23, 42, 0.08);
  margin: 1rem 0;
}

body.theme-dark .divider {
  background: rgba(255, 255, 255, 0.12);
}

.thumb,
.photo-thumb {
  width: 60px;
  height: 84px;
  background: rgba(15, 23, 42, 0.05);
  border-radius: var(--orb-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.photo-thumb {
  width: 90px;
  height: 126px;
}

.thumb img,
.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
}

.photo-grid .photo-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
}

.image-pair {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.status-text {
  font-size: 0.95rem;
  color: var(--orb-gray-500);
}

body.theme-dark .status-text {
  color: rgba(255, 255, 255, 0.65);
}

.image-hover-overlay {
  position: fixed;
  display: none;
  pointer-events: none;
  z-index: 1000;
  background: #fff;
  border-radius: var(--orb-radius-md);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0.5rem;
}

.image-hover-overlay img {
  max-width: 360px;
  max-height: 520px;
  display: block;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.75);
}

.image-modal img {
  max-width: min(90vw, 720px);
  max-height: 90vh;
  border-radius: var(--orb-radius-md);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.description-preview {
  margin-top: 0.5rem;
}

.description-text {
  white-space: pre-wrap;
  margin: 0;
  font-family: inherit;
}

.guide-overlay {
  position: absolute;
  inset: 0;
  display: none;
  pointer-events: none;
}

.guide-overlay.is-visible {
  display: block;
}

.card-frame {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(80%, 80vh);
  aspect-ratio: 63 / 88;
  transform: translate(-50%, -50%);
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.35) inset;
  border-radius: 0.5rem;
}

.frame-corners {
  position: absolute;
  inset: 0;
}

.frame-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 3px solid #22c55e;
  opacity: 0.9;
}

.frame-corner.tl {
  top: -3px;
  left: -3px;
  border-right: none;
  border-bottom: none;
  border-radius: 0.5rem 0 0 0;
}

.frame-corner.tr {
  top: -3px;
  right: -3px;
  border-left: none;
  border-bottom: none;
  border-radius: 0 0.5rem 0 0;
}

.frame-corner.bl {
  bottom: -3px;
  left: -3px;
  border-right: none;
  border-top: none;
  border-radius: 0 0 0 0.5rem;
}

.frame-corner.br {
  bottom: -3px;
  right: -3px;
  border-left: none;
  border-top: none;
  border-radius: 0 0 0.5rem 0;
}

.guide-label {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.camera-box {
  position: relative;
  border-radius: var(--orb-radius-lg);
  overflow: hidden;
  background: #000;
  aspect-ratio: 3 / 4;
}

.camera-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}

.camera-flash.is-visible {
  opacity: 1;
  transition: opacity 0.12s ease-out;
}

.capture-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.03);
  font-size: 0.75rem;
  font-weight: 600;
}

body.theme-dark .pill {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.camera-preview {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.camera-preview .thumb {
  width: 100%;
  aspect-ratio: 3 / 4;
}

.review-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.review-toolbar .btn {
  flex-shrink: 0;
}

.upload-dropzone {
  background: rgba(15, 23, 42, 0.04);
  border: 2px dashed rgba(15, 23, 42, 0.15);
  border-radius: var(--orb-radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.upload-dropzone:hover {
  border-color: var(--orb-orange);
  background: #fff;
}

body.theme-dark .upload-dropzone {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
}

.upload-dropzone input[type="file"] {
  margin-top: 0.75rem;
}

.badge-neutral {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--orb-gray-500);
}

body.theme-dark .badge-neutral {
  color: rgba(255, 255, 255, 0.6);
}

.grid-two {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.table-actions .btn {
  flex-shrink: 0;
}

.table-meta {
  font-size: 0.85rem;
  color: var(--orb-gray-500);
}

body.theme-dark .table-meta {
  color: rgba(255, 255, 255, 0.6);
}

.table-meta strong {
  color: inherit;
}

.table-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.table-toolbar .btn {
  flex-shrink: 0;
}

.table-toolbar .cluster {
  justify-content: flex-start;
}

.table-toolbar .cluster:last-child {
  margin-left: auto;
}

.table-toolbar select,
.table-toolbar input[type="text"] {
  max-width: 260px;
}

.list-note {
  font-size: 0.85rem;
  color: var(--orb-gray-500);
}

body.theme-dark .list-note {
  color: rgba(255, 255, 255, 0.6);
}

/* Reprint labels */
.reprint-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.reprint-toolbar .search-input {
  flex: 1 1 320px;
}

.reprint-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.reprint-results {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 32rem;
  overflow: auto;
}

.reprint-card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: rgba(15, 23, 42, 0.02);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--orb-radius-md);
  padding: 0.75rem;
}

body.theme-dark .reprint-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.reprint-card__image {
  width: 64px;
  height: 64px;
  border-radius: var(--orb-radius-md);
  background: rgba(15, 23, 42, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.reprint-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.reprint-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.reprint-card__title {
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
}

.reprint-card__meta {
  font-size: 0.85rem;
  color: var(--orb-gray-500);
}

body.theme-dark .reprint-card__meta {
  color: rgba(255, 255, 255, 0.6);
}

.reprint-card__actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.priceField {
  width: 6.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--orb-radius-md);
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #f8fafc;
  text-align: right;
}

.priceField:disabled {
  background: rgba(15, 23, 42, 0.05);
}

.queue-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px dashed rgba(15, 23, 42, 0.18);
  border-radius: var(--orb-radius-md);
}

body.theme-dark .queue-item {
  border-color: rgba(255, 255, 255, 0.2);
}

.queue-item .pill {
  background: rgba(15, 23, 42, 0.08);
}

.reprint-batches {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.reprint-batches .batch-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--orb-radius-md);
  background: rgba(15, 23, 42, 0.02);
}

body.theme-dark .reprint-batches .batch-row {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.reprint-batches .batch-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.reprint-queue {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.reprint-hint {
  font-size: 0.85rem;
  color: var(--orb-gray-500);
}

body.theme-dark .reprint-hint {
  color: rgba(255, 255, 255, 0.6);
}

.reprint-message {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.reprint-message--success {
  color: var(--orb-green);
  font-weight: 600;
}

.reprint-message--warning {
  color: var(--orb-orange);
  font-weight: 600;
}

/* ===========================================
   LABEL REPRINTS - Mobile-First Redesign
   =========================================== */

/* Reprint App Container */
.reprint-app {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 60px);
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 100px; /* Space for FAB */
}

/* Compact Header */
.reprint-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: var(--orb-white);
  border-bottom: 1px solid var(--orb-gray-200);
  position: sticky;
  top: 0;
  z-index: 20;
}

.reprint-header__title h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--orb-gray-800);
}

.reprint-header__actions {
  display: flex;
  gap: 0.5rem;
}

/* Icon Button */
.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: var(--orb-gray-100);
  border-radius: 50%;
  color: var(--orb-gray-600);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-icon:hover, .btn-icon:active {
  background: var(--orb-gray-200);
  color: var(--orb-gray-800);
}

.btn-icon--sm {
  width: 36px;
  height: 36px;
}

/* Queue Summary Bar */
.queue-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--orb-gray-50);
  border-bottom: 1px solid var(--orb-gray-200);
  cursor: pointer;
  transition: background 0.15s ease;
}

.queue-bar:hover {
  background: var(--orb-gray-100);
}

.queue-bar.has-items {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(34, 197, 94, 0.02) 100%);
  border-color: rgba(34, 197, 94, 0.2);
}

.queue-bar__info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.queue-bar__icon {
  font-size: 1.25rem;
}

.queue-bar__text {
  font-size: 0.9rem;
  color: var(--orb-gray-600);
}

.queue-bar__text strong {
  color: var(--orb-gray-800);
  font-size: 1.1rem;
}

.queue-bar__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Queue Panel (Expandable) */
.queue-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--orb-white);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.queue-panel.is-expanded {
  transform: translateY(0);
}

.queue-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--orb-gray-200);
  flex-shrink: 0;
}

.queue-panel__header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.queue-panel__items {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
  min-height: 150px;
  max-height: 40vh;
}

.queue-panel__footer {
  padding: 1rem;
  border-top: 1px solid var(--orb-gray-200);
  background: var(--orb-gray-50);
  flex-shrink: 0;
}

.queue-panel__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.queue-panel__actions .btn-primary {
  flex: 1;
}

.queue-panel__result {
  margin-top: 0.75rem;
}

/* Queue Empty State */
.queue-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  color: var(--orb-gray-400);
}

.queue-empty p {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
}

.queue-empty__hint {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Queue Card */
.queue-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--orb-gray-50);
  border-radius: var(--orb-radius-md);
  margin-bottom: 0.5rem;
}

.queue-card__info {
  flex: 1;
  min-width: 0;
}

.queue-card__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--orb-gray-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.queue-card__meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--orb-gray-500);
  margin-top: 0.2rem;
}

.queue-card__remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--orb-gray-400);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.queue-card__remove:hover, .queue-card__remove:active {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

/* Queue Card - Editable Price Mode */
.queue-card--editable {
  background: var(--orb-gray-100);
  border: 1px solid var(--orb-primary-200);
}

.queue-card__price-edit {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--orb-gray-300);
  border-radius: var(--orb-radius-sm);
  padding: 0.15rem 0.4rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.queue-card__price-edit:focus-within {
  border-color: var(--orb-primary);
  box-shadow: 0 0 0 2px rgba(248, 115, 74, 0.15);
}

.price-edit__currency {
  font-size: 0.8rem;
  color: var(--orb-gray-500);
  font-weight: 500;
}

.price-edit__input {
  width: 60px;
  border: none;
  background: transparent;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--orb-gray-800);
  padding: 0.1rem 0.2rem;
  text-align: right;
  outline: none;
}

.price-edit__input:focus {
  color: var(--orb-primary);
}

.price-edit__input--changed {
  color: var(--orb-success);
}

/* Price edit controls container */
.price-edit-controls {
  margin: 0.75rem 0;
  padding: 0.75rem;
  background: var(--orb-gray-50);
  border-radius: var(--orb-radius-md);
  border: 1px solid var(--orb-gray-200);
}

/* Warning message */
.queue-panel__warning {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #b45309;
  margin: 0 0 0.75rem 0;
  padding: 0.6rem 0.75rem;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: var(--orb-radius-sm);
}

.queue-panel__warning svg {
  flex-shrink: 0;
  color: #d97706;
  margin-top: 0.1rem;
}

.queue-panel__warning strong {
  color: #92400e;
}

/* Bulk adjustment controls */
.bulk-adjust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.bulk-adjust__label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--orb-gray-600);
}

.bulk-adjust__controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.bulk-adjust__input {
  width: 55px;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--orb-gray-300);
  border-radius: var(--orb-radius-sm);
  font-size: 0.85rem;
  text-align: center;
  background: #fff;
}

.bulk-adjust__input:focus {
  outline: none;
  border-color: var(--orb-primary);
  box-shadow: 0 0 0 2px rgba(248, 115, 74, 0.15);
}

.bulk-adjust__percent {
  font-size: 0.85rem;
  color: var(--orb-gray-500);
  margin-right: 0.25rem;
}

.bulk-adjust__controls .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.6rem;
  font-size: 0.75rem;
}

.bulk-adjust__controls .btn svg {
  flex-shrink: 0;
}

/* Hint text for price editing */
.queue-panel__hint {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--orb-primary);
  margin: 0.5rem 0;
  padding: 0.5rem 0.75rem;
  background: rgba(248, 115, 74, 0.08);
  border-radius: var(--orb-radius-sm);
}

.queue-panel__hint svg {
  flex-shrink: 0;
  opacity: 0.8;
}

/* Compact Toggle */
.toggle-compact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--orb-gray-600);
  cursor: pointer;
}

.toggle-compact input { display: none; }

.toggle-compact__switch {
  width: 40px;
  height: 22px;
  background: var(--orb-gray-300);
  border-radius: 11px;
  position: relative;
  transition: background 0.2s;
}

.toggle-compact__switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-compact input:checked + .toggle-compact__switch {
  background: var(--orb-orange);
}

.toggle-compact input:checked + .toggle-compact__switch::after {
  transform: translateX(18px);
}

/* Floating Scan Button (FAB) */
.scan-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--orb-orange) 0%, #ff8c5a 100%);
  color: white;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(242, 107, 58, 0.4);
  transition: all 0.2s ease;
}

.scan-fab:hover, .scan-fab:active {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(242, 107, 58, 0.5);
}

.scan-fab svg {
  width: 24px;
  height: 24px;
  stroke: white;
  flex-shrink: 0;
}

.scan-fab__label {
  display: inline;
}

@media (max-width: 480px) {
  .scan-fab {
    bottom: 20px;
    right: 20px;
    padding: 1rem 1.25rem;
  }
}

/* Search Row */
.reprint-content {
  flex: 1;
  padding: 1rem;
}

.reprint-section {
  margin-bottom: 1rem;
}

.search-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.search-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-input__icon {
  position: absolute;
  left: 0.75rem;
  color: var(--orb-gray-400);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 2.5rem;
  border: 2px solid var(--orb-gray-200);
  border-radius: var(--orb-radius-lg);
  font-size: 1rem;
  transition: border-color 0.15s;
}

.search-input:focus {
  outline: none;
  border-color: var(--orb-orange);
}

.search-input__clear {
  position: absolute;
  right: 0.5rem;
  display: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: var(--orb-gray-200);
  border-radius: 50%;
  color: var(--orb-gray-500);
  font-size: 1.25rem;
  cursor: pointer;
}

.search-row .btn {
  flex-shrink: 0;
  padding: 0.75rem 1rem;
}

.search-row .btn__text {
  display: none;
}

@media (min-width: 480px) {
  .search-row .btn__text {
    display: inline;
    margin-left: 0.35rem;
  }
}

/* Filters Collapse */
.filters-collapse {
  margin-bottom: 1rem;
}

.filters-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--orb-gray-500);
  cursor: pointer;
  list-style: none;
}

.filters-toggle::-webkit-details-marker { display: none; }

.filters-toggle::after {
  content: '▼';
  font-size: 0.6rem;
  margin-left: auto;
  transition: transform 0.2s;
}

.filters-collapse[open] .filters-toggle::after {
  transform: rotate(180deg);
}

.filters-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 0;
}

.filter-chip {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.filter-chip input { display: none; }

.filter-chip span {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  background: var(--orb-gray-100);
  border: 1px solid var(--orb-gray-200);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--orb-gray-600);
  transition: all 0.15s;
}

.filter-chip input:checked + span {
  background: rgba(242, 107, 58, 0.1);
  border-color: var(--orb-orange);
  color: var(--orb-orange);
}

/* Search Results */
.search-results {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.search-loading, .search-empty {
  padding: 2rem;
  text-align: center;
  color: var(--orb-gray-500);
}

.search-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.spinner-sm {
  width: 20px;
  height: 20px;
  border: 2px solid var(--orb-gray-200);
  border-top-color: var(--orb-orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.results-count {
  font-size: 0.8rem;
  color: var(--orb-gray-500);
  padding: 0.25rem 0;
}

/* Result Card */
.result-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--orb-white);
  border: 1px solid var(--orb-gray-200);
  border-radius: var(--orb-radius-md);
  transition: border-color 0.15s;
}

.result-card:active {
  border-color: var(--orb-gray-300);
}

.result-card__image {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: var(--orb-gray-100);
  border-radius: var(--orb-radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-card__no-img {
  font-size: 0.65rem;
  color: var(--orb-gray-400);
}

.result-card__body {
  flex: 1;
  min-width: 0;
}

.result-card__title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--orb-gray-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-card__meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--orb-gray-500);
  margin-top: 0.15rem;
}

.result-card__price {
  font-weight: 600;
  color: var(--orb-gray-700);
}

.result-card__add {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orb-orange);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.result-card__add:hover {
  background: var(--orb-orange-dark);
  transform: scale(1.05);
}

.result-card__add:active {
  transform: scale(0.95);
}

.result-card__add svg {
  width: 20px;
  height: 20px;
  stroke: white;
  stroke-width: 2.5;
  flex-shrink: 0;
}

/* Drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  pointer-events: none;
}

.drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.drawer.is-open .drawer__backdrop {
  opacity: 1;
}

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(380px, 90vw);
  background: var(--orb-white);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.drawer.is-open .drawer__panel {
  transform: translateX(0);
}

.drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--orb-gray-200);
}

.drawer__header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.drawer__content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.save-batch-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.save-batch-row .input-field {
  flex: 1;
  max-width: none;
}

.loading-placeholder {
  padding: 1.5rem;
  text-align: center;
  color: var(--orb-gray-400);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: min(360px, calc(100% - 2rem));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--orb-gray-800);
  color: white;
  border-radius: var(--orb-radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  pointer-events: auto;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast--success {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.toast--error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.toast--warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.toast__icon::before {
  content: 'ℹ️';
}

.toast--success .toast__icon::before { content: '✓'; }
.toast--error .toast__icon::before { content: '✗'; }
.toast--warning .toast__icon::before { content: '⚠'; }

/* Full Screen Scanner */
.scanner-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: #000;
  display: none;
  flex-direction: column;
}

.scanner-fullscreen.is-visible {
  display: flex;
}

.scanner-fullscreen__content {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.scanner-fullscreen__content video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scanner-viewfinder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(280px, 70vw);
  aspect-ratio: 1;
  pointer-events: none;
}

.scanner-viewfinder__corners {
  position: absolute;
  inset: 0;
}

.scanner-viewfinder__corners span {
  position: absolute;
  width: 32px;
  height: 32px;
  border: 4px solid rgba(255, 255, 255, 0.9);
}

.scanner-viewfinder__corners span:nth-child(1) { top: 0; left: 0; border-right: none; border-bottom: none; border-radius: 8px 0 0 0; }
.scanner-viewfinder__corners span:nth-child(2) { top: 0; right: 0; border-left: none; border-bottom: none; border-radius: 0 8px 0 0; }
.scanner-viewfinder__corners span:nth-child(3) { bottom: 0; left: 0; border-right: none; border-top: none; border-radius: 0 0 0 8px; }
.scanner-viewfinder__corners span:nth-child(4) { bottom: 0; right: 0; border-left: none; border-top: none; border-radius: 0 0 8px 0; }

.scanner-viewfinder__line {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 50%;
  height: 2px;
  background: rgba(242, 107, 58, 0.8);
  box-shadow: 0 0 8px var(--orb-orange);
  animation: scanLine 2s ease-in-out infinite;
}

@keyframes scanLine {
  0%, 100% { top: 20%; opacity: 0.5; }
  50% { top: 80%; opacity: 1; }
}

.scanner-fullscreen__ui {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.scanner-status {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.scanner-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.scanner-mode-btn {
  padding: 0.65rem 1.1rem;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: white;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.scanner-mode-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: white;
}

.scanner-mode-btn.is-active {
  background: var(--orb-orange);
  color: white;
  border-color: var(--orb-orange);
  box-shadow: 0 4px 12px rgba(242, 107, 58, 0.4);
}

.btn-white {
  background: white;
  color: var(--orb-gray-800);
  border: none;
  font-weight: 700;
}

.btn-white:hover {
  background: var(--orb-gray-100);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Scan Feedback Overlay */
.scan-feedback {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 2rem;
  background: rgba(0, 0, 0, 0.85);
  border-radius: var(--orb-radius-lg);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 10;
}

.scan-feedback.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.scan-feedback--success {
  background: rgba(34, 197, 94, 0.95);
}

.scan-feedback--error {
  background: rgba(239, 68, 68, 0.95);
}

.scan-feedback__icon {
  font-size: 2.5rem;
  color: white;
}

.scan-feedback__text {
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  max-width: 200px;
}

/* Generate states */
.generating {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: var(--orb-gray-600);
}

.generate-error {
  color: #dc2626;
  font-weight: 500;
}

.btn-success {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  border: none;
}

/* Body states */
body.queue-open,
body.drawer-open,
body.scanner-open {
  overflow: hidden;
}

/* Desktop Adjustments */
@media (min-width: 768px) {
  .reprint-app {
    padding: 0 1rem;
  }
  
  .scan-fab {
    bottom: 32px;
    right: 32px;
  }
  
  .queue-panel {
    max-width: 500px;
    left: auto;
    right: 1rem;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
  }
  
  .search-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0.75rem;
  }
  
  .results-count {
    grid-column: 1 / -1;
  }
}

/* Legacy Scanner Styles (keep for backwards compat) */
.scanner-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
}

.scanner-overlay.is-visible {
  display: flex;
}

.scanner-box {
  width: min(92vw, 720px);
  aspect-ratio: 3 / 2;
  background: #000;
  border-radius: var(--orb-radius-lg);
  overflow: hidden;
  box-shadow: var(--orb-shadow-lg);
}

.scanner-ui {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  color: #fff;
}

.table-note {
  font-size: 0.85rem;
  color: var(--orb-gray-500);
}

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

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

/* ========================================
   DASHBOARD - Clean Modern Design
   ======================================== */

/* Dashboard Header - Bold dramatic bar with animated logo and orange accent */
.dashboard-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem 2.5rem;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d1810 25%, #1a1a1a 50%, #1a1008 75%, #0d0d0d 100%);
  /* Match dashboard content max-width for alignment */
  max-width: 900px;
  margin: 1rem auto 1.5rem auto;
  border-radius: 24px;
  box-shadow: 
    0 12px 48px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(242, 107, 58, 0.1);
  position: relative;
  overflow: hidden;
}

@media (min-width: 1200px) {
  .dashboard-header {
    max-width: 1000px;
  }
}

/* Subtle orange glow accent */
.dashboard-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -25%;
  width: 50%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(242, 107, 58, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.dashboard-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(242, 107, 58, 0.4) 50%, transparent 100%);
}

.dashboard-header--compact {
  padding: 2rem 3rem;
  margin: 1rem 1rem 2rem 1rem;
}

.dashboard-header__logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  animation: dramaticRollIn 1.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 32px rgba(242, 107, 58, 0.5);
}

@keyframes dramaticRollIn {
  0% {
    opacity: 0;
    transform: translateX(-300px) rotate(-1080deg) scale(0.2);
  }
  40% {
    opacity: 1;
    transform: translateX(30px) rotate(45deg) scale(1.15);
  }
  60% {
    transform: translateX(-15px) rotate(-20deg) scale(0.95);
  }
  80% {
    transform: translateX(8px) rotate(10deg) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotate(0deg) scale(1);
  }
}

.dashboard-header__title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orb-white);
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.upload-tabs--inline {
  margin-left: auto;
  display: flex;
  gap: 0.5rem;
}

.upload-tabs--inline .upload-tab {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .dashboard-header--compact {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    margin: 0.75rem 0.75rem 1.5rem 0.75rem;
  }
  
  .dashboard-header__logo {
    width: 80px;
    height: 80px;
  }
  
  .dashboard-header__title {
    font-size: 1.75rem;
  }
  
  .upload-tabs--inline {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
  
  .upload-tabs--inline .upload-tab {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

.dashboard {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 2rem 3rem;
}

@media (min-width: 1200px) {
  .dashboard {
    max-width: 1000px;
  }
}

/* Upload Hero */
.upload-hero {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
}

.upload-hero__title {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 800;
  color: var(--orb-gray-700);
  letter-spacing: -0.02em;
}

.upload-hero__subtitle {
  margin: 0.5rem 0 0;
  color: var(--orb-gray-500);
  font-size: 1rem;
}

/* Upload Tabs */
.upload-tabs {
  display: inline-flex;
  gap: 0.25rem;
  margin-top: 1.5rem;
  padding: 0.25rem;
  background: var(--orb-gray-100);
  border-radius: 999px;
}

.upload-tab {
  padding: 0.6rem 1.25rem;
  border: none;
  background: transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--orb-gray-500);
  cursor: pointer;
  transition: all 0.2s ease;
}

.upload-tab:hover {
  color: var(--orb-gray-700);
}

.upload-tab.is-active {
  background: var(--orb-white);
  color: var(--orb-orange);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Upload Panel */
.upload-panel {
  background: var(--orb-white);
  border-radius: var(--orb-radius-lg);
  padding: 2rem;
  box-shadow: var(--orb-shadow-sm);
  margin-bottom: 2rem;
}

.upload-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Dropzone - More compact to prevent scroll */
.upload-dropzone {
  position: relative;
  border: 2px dashed var(--orb-gray-300);
  border-radius: var(--orb-radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.upload-dropzone:hover,
.upload-dropzone.is-dragging {
  border-color: var(--orb-orange);
  background: rgba(242, 107, 58, 0.03);
}

.upload-dropzone.has-file {
  border-color: var(--orb-green);
  background: rgba(34, 197, 94, 0.03);
}

.upload-dropzone__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-dropzone__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}

.upload-dropzone__icon {
  width: 3rem;
  height: 3rem;
  color: var(--orb-gray-400);
}

.upload-dropzone.has-file .upload-dropzone__icon {
  color: var(--orb-green);
}

.upload-dropzone__text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--orb-gray-700);
}

.upload-dropzone__hint {
  font-size: 0.9rem;
  color: var(--orb-gray-500);
}

.upload-dropzone__filename {
  display: none;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--orb-gray-100);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--orb-gray-700);
}

/* Selected Files Preview */
.selected-files {
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--orb-radius-md);
}

.selected-files__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  color: #166534;
}

.selected-files__list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 150px;
  overflow-y: auto;
}

.selected-file {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  background: var(--orb-white);
  border-radius: var(--orb-radius-sm);
  font-size: 0.8rem;
}

.selected-file__icon {
  flex-shrink: 0;
}

.selected-file__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--orb-gray-700);
}

.selected-file__size {
  flex-shrink: 0;
  color: var(--orb-gray-500);
  font-size: 0.75rem;
}

/* Upload Options */
.upload-options {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 0;
  border-top: 1px solid var(--orb-gray-200);
  border-bottom: 1px solid var(--orb-gray-200);
}

.option-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.option-group__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--orb-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.option-pills {
  display: flex;
  gap: 0.25rem;
  padding: 0.2rem;
  background: var(--orb-gray-100);
  border-radius: 999px;
}

.option-pill {
  display: block;
  cursor: pointer;
}

.option-pill input {
  display: none;
}

.option-pill span {
  display: block;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--orb-gray-500);
  transition: all 0.15s ease;
}

.option-pill input:checked + span {
  background: var(--orb-white);
  color: var(--orb-gray-700);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Toggle Option */
.toggle-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.toggle-option input {
  display: none;
}

.toggle-option__switch {
  width: 2.25rem;
  height: 1.25rem;
  background: var(--orb-gray-300);
  border-radius: 999px;
  position: relative;
  transition: background 0.2s ease;
}

.toggle-option__switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(1.25rem - 4px);
  height: calc(1.25rem - 4px);
  background: var(--orb-white);
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-option input:checked + .toggle-option__switch {
  background: var(--orb-orange);
}

.toggle-option input:checked + .toggle-option__switch::after {
  transform: translateX(1rem);
}

.toggle-option__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--orb-gray-600);
}

/* Consignment Toggle */
.consignment-toggle {
  margin-left: auto;
}

.toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  background: var(--orb-gray-100);
  border: none;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--orb-gray-600);
  cursor: pointer;
  transition: all 0.15s ease;
}

.toggle-btn:hover {
  background: var(--orb-gray-200);
}

.toggle-btn.is-active {
  background: rgba(242, 107, 58, 0.1);
  color: var(--orb-orange);
}

.toggle-btn__status {
  font-size: 0.75rem;
  padding: 0.15rem 0.4rem;
  background: var(--orb-gray-200);
  border-radius: 999px;
  color: var(--orb-gray-500);
}

.toggle-btn.is-active .toggle-btn__status {
  background: var(--orb-orange);
  color: white;
}

.consignment-input {
  margin-top: 0.75rem;
}

/* Input Field */
.input-field {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--orb-gray-300);
  border-radius: var(--orb-radius-md);
  font-size: 0.9rem;
  width: 100%;
  max-width: 140px;
  transition: border-color 0.15s ease;
}

.input-field:focus {
  outline: none;
  border-color: var(--orb-orange);
  box-shadow: 0 0 0 3px rgba(242, 107, 58, 0.1);
}

.input-field--sm {
  padding: 0.35rem 0.6rem;
  max-width: 100px;
}

/* Upload Button */
.btn-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border-radius: var(--orb-radius-md);
}

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

.btn__icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* Progress Panel */
.progress-panel {
  background: var(--orb-gray-100);
  border-radius: var(--orb-radius-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.progress-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.progress-panel__header h3 {
  margin: 0;
  font-size: 1rem;
}

.status-badge {
  padding: 0.2rem 0.6rem;
  background: var(--orb-orange);
  color: white;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.progress-panel__summary {
  font-size: 0.9rem;
  color: var(--orb-gray-600);
  margin-bottom: 0.75rem;
}

.progress-panel__items {
  max-height: 200px;
  overflow-y: auto;
  font-size: 0.85rem;
}

.progress-item {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--orb-gray-200);
}

.progress-item--error {
  color: #dc3545;
}

.progress-panel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--orb-gray-200);
}

.progress-panel__hint {
  font-size: 0.8rem;
  color: var(--orb-gray-500);
}

/* Quick Access */
.quick-access {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quick-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--orb-white);
  border-radius: var(--orb-radius-lg);
  box-shadow: var(--orb-shadow-sm);
  text-decoration: none;
  transition: all 0.2s ease;
}

.quick-card:hover {
  transform: translateX(4px);
  box-shadow: var(--orb-shadow-md);
  text-decoration: none;
}

.quick-card__icon {
  font-size: 1.75rem;
  width: 3rem;
  text-align: center;
}

.quick-card__icon--img {
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-card__logo {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.quick-card__content {
  flex: 1;
}

.quick-card__content h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--orb-gray-700);
}

.quick-card__content p {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
  color: var(--orb-gray-500);
}

.quick-card__arrow {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--orb-gray-400);
  transition: transform 0.2s ease;
}

.quick-card:hover .quick-card__arrow {
  transform: translateX(4px);
  color: var(--orb-orange);
}

/* Success Content */
.success-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Toast */
.toast {
  padding: 0.75rem 1rem;
  background: var(--orb-gray-800);
  color: white;
  border-radius: var(--orb-radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(-8px);
  transition: all 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast--success {
  background: #16a34a;
}

.toast--error {
  background: #dc2626;
}

/* Loading Overlay */
.loading-content {
  text-align: center;
}

/* Hide utility */
.is-hidden {
  display: none !important;
}

/* ========================================
   SHARED PAGE STYLES
   ======================================== */

.dashboard--wide {
  max-width: 1000px;
}

/* Page Header */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem 0;
  margin-bottom: 1rem;
}

.page-header__title h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--orb-gray-700);
}

.page-header__subtitle {
  margin: 0.25rem 0 0;
  color: var(--orb-gray-500);
  font-size: 0.95rem;
}

.page-header__actions {
  display: flex;
  gap: 0.5rem;
}

/* Intake Grid */
.intake-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  margin-bottom: 1.5rem;
}

.intake-card {
  background: var(--orb-white);
  border-radius: var(--orb-radius-lg);
  padding: 1.25rem;
  box-shadow: var(--orb-shadow-sm);
}

.intake-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.intake-card__header h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.intake-card__step {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--orb-orange);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.intake-card__step--icon {
  padding: 0.4rem;
}

.intake-card__step--icon svg {
  width: 100%;
  height: 100%;
  stroke: white;
}

.intake-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Price Status Panel - Enhanced */
.price-status-panel {
  padding: 1rem;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(34, 197, 94, 0.03) 100%);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--orb-radius-md);
  margin-bottom: 1rem;
}

.price-status-panel--empty {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.08) 0%, rgba(234, 179, 8, 0.03) 100%);
  border-color: rgba(234, 179, 8, 0.3);
}

.price-freshness {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.price-freshness__icon {
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orb-green);
  color: white;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.price-freshness--fresh .price-freshness__icon {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.price-freshness--aging .price-freshness__icon {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.price-freshness--stale .price-freshness__icon {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.price-freshness--warning .price-freshness__icon {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.price-freshness__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.price-freshness__text strong {
  font-size: 1rem;
  color: var(--orb-gray-800);
}

.price-freshness--fresh .price-freshness__text strong {
  color: #166534;
}

.price-freshness--aging .price-freshness__text strong {
  color: #92400e;
}

.price-freshness--stale .price-freshness__text strong {
  color: #991b1b;
}

.price-freshness__time {
  font-size: 0.85rem;
  color: var(--orb-gray-600);
  font-weight: 500;
}

.price-stats {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.price-stat {
  font-size: 0.85rem;
  color: var(--orb-gray-600);
}

.price-stat strong {
  color: var(--orb-gray-800);
  font-weight: 700;
}

/* Modern File Upload */
.file-upload-modern {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

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

.file-upload-modern__label {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--orb-white);
  border: 2px dashed var(--orb-gray-300);
  border-radius: var(--orb-radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.file-upload-modern__label:hover {
  border-color: var(--orb-orange);
  background: rgba(242, 107, 58, 0.03);
}

.file-upload-modern.has-file .file-upload-modern__label {
  border-color: var(--orb-green);
  border-style: solid;
  background: rgba(34, 197, 94, 0.05);
}

.file-upload-modern__icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--orb-gray-400);
  flex-shrink: 0;
}

.file-upload-modern.has-file .file-upload-modern__icon {
  color: var(--orb-green);
}

.file-upload-modern__text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--orb-gray-600);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-upload-modern.has-file .file-upload-modern__text {
  color: var(--orb-gray-800);
  font-weight: 600;
}

.file-upload-modern .btn {
  flex-shrink: 0;
}

/* Legacy Price Status (keeping for backwards compat) */
.price-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--orb-gray-100);
  border-radius: var(--orb-radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
}

.price-status--loaded {
  background: rgba(34, 197, 94, 0.1);
}

.price-status__icon {
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orb-gray-300);
  color: var(--orb-gray-600);
  border-radius: 50%;
  font-weight: 700;
}

.price-status--loaded .price-status__icon {
  background: var(--orb-green);
  color: white;
}

.price-status__info {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.price-status__info strong {
  color: var(--orb-gray-700);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
}

.price-status__info span {
  color: var(--orb-gray-500);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
}

.file-row {
  display: flex;
  gap: 0.5rem;
}

.file-row .input-field {
  flex: 1;
  max-width: none;
}

/* Form Field */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--orb-gray-600);
}

.form-field--grow {
  flex: 1;
}

.form-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.form-row .form-field {
  flex: 1;
  min-width: 100px;
  max-width: 100%;
}

.form-row .form-field .input-field {
  width: 100%;
  min-width: 0;
}

.form-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.section-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--orb-gray-700);
}

.section-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

/* Consignment Toggle */
.consignment-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--orb-gray-600);
  cursor: pointer;
}

.toggle-label input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--orb-green);
}

.input-field--sm {
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
}

/* Input with Prefix */
.input-with-prefix {
  display: inline-flex;
  align-items: center;
  background: var(--orb-white);
  border: 1px solid var(--orb-gray-300);
  border-radius: var(--orb-radius-md);
  overflow: hidden;
}

.input-prefix {
  padding: 0.4rem 0.5rem;
  background: var(--orb-gray-100);
  color: var(--orb-gray-600);
  font-weight: 600;
  font-size: 0.85rem;
  border-right: 1px solid var(--orb-gray-300);
  white-space: nowrap;
}

.input-with-prefix .input-field {
  border: none;
  border-radius: 0;
  padding-left: 0.5rem;
}

.input-with-prefix .input-field:focus {
  box-shadow: none;
}

/* Quick Guide */
.quick-guide {
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: var(--orb-radius-lg);
  overflow: hidden;
}

.quick-guide__toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: #0369a1;
  cursor: pointer;
  list-style: none;
}

.quick-guide__toggle::-webkit-details-marker {
  display: none;
}

.quick-guide__toggle::after {
  content: '▼';
  font-size: 0.7rem;
  margin-left: auto;
  transition: transform 0.2s;
}

.quick-guide[open] .quick-guide__toggle::after {
  transform: rotate(180deg);
}

.quick-guide__content {
  padding: 0 1rem 1rem;
}

.quick-guide__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.quick-guide__step {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--orb-white);
  border-radius: var(--orb-radius-md);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.quick-guide__step .step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 50%;
}

.quick-guide__step strong {
  display: block;
  color: var(--orb-gray-800);
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.quick-guide__step p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--orb-gray-600);
  line-height: 1.4;
}

.quick-guide__note {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: var(--orb-radius-md);
  font-size: 0.85rem;
  color: #92400e;
}

.quick-guide__note strong {
  color: #78350f;
}

/* Dual Card Images (Front/Back) */
.card-images-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.card-image--front,
.card-image--back {
  position: relative;
  border-radius: var(--orb-radius-md);
  overflow: hidden;
  background: var(--orb-gray-100);
}

.card-image__label {
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  padding: 0.15rem 0.4rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  color: white;
  background: rgba(0, 0, 0, 0.6);
  border-radius: var(--orb-radius-sm);
  z-index: 1;
}

.card-images-dual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--orb-radius-md);
}

@media (max-width: 480px) {
  .card-images-dual {
    grid-template-columns: 1fr;
  }
}

/* Card Comparison Grid (Side-by-Side Images) */
.card-comparison-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  background: var(--orb-gray-50);
  border-radius: var(--orb-radius-lg);
  border: 1px solid var(--orb-gray-200);
}

.comparison-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.comparison-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.comparison-card__label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--orb-gray-600);
}

.comparison-card--uploaded .comparison-card__label {
  color: var(--orb-primary);
}

.comparison-card--reference .comparison-card__label {
  color: var(--orb-green);
}

.comparison-card__method {
  font-size: 0.55rem;
  padding: 0.1rem 0.3rem;
  background: var(--orb-gray-200);
  border-radius: var(--orb-radius-sm);
  color: var(--orb-gray-600);
}

.comparison-card__image {
  position: relative;
  background: var(--orb-white);
  border-radius: var(--orb-radius-md);
  overflow: hidden;
  box-shadow: var(--orb-shadow-sm);
  border: 2px solid var(--orb-gray-200);
  aspect-ratio: 5/7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comparison-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.comparison-card__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 1rem;
  text-align: center;
  color: var(--orb-gray-500);
  font-size: 0.75rem;
}

.comparison-card__placeholder small {
  font-size: 0.6rem;
  color: var(--orb-gray-400);
  font-family: var(--orb-font-mono);
}

.comparison-card__error {
  color: var(--orb-red);
  font-size: 0.75rem;
}

.comparison-card__back-thumb {
  position: absolute;
  bottom: 0.25rem;
  right: 0.25rem;
  width: 35px;
  border-radius: var(--orb-radius-sm);
  overflow: hidden;
  box-shadow: var(--orb-shadow-sm);
  border: 1px solid var(--orb-white);
  opacity: 0.85;
  transition: all 0.2s;
  cursor: pointer;
}

.comparison-card__back-thumb:hover {
  opacity: 1;
  transform: scale(2);
  z-index: 10;
}

.comparison-card__back-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.comparison-card__notes {
  margin-top: 0.35rem;
  padding: 0.3rem 0.5rem;
  background: var(--orb-yellow-light, #fef9c3);
  border-radius: var(--orb-radius-sm);
  font-size: 0.65rem;
  color: var(--orb-yellow-dark, #854d0e);
}

.comparison-card__promo-note {
  margin-top: 0.35rem;
  padding: 0.4rem 0.6rem;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #f59e0b;
  border-radius: var(--orb-radius-sm);
  font-size: 0.7rem;
  color: #92400e;
  text-align: center;
  font-weight: 600;
}

/* Confidence Ring */
.comparison-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.25rem;
}

.confidence-ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid;
  font-weight: 700;
}

.confidence-ring__value {
  font-size: 0.7rem;
}

.confidence-ring--high {
  border-color: var(--orb-green);
  background: var(--orb-green-light, #dcfce7);
  color: var(--orb-green-dark, #166534);
}

.confidence-ring--medium {
  border-color: var(--orb-yellow, #eab308);
  background: var(--orb-yellow-light, #fef9c3);
  color: var(--orb-yellow-dark, #854d0e);
}

.confidence-ring--low {
  border-color: var(--orb-red);
  background: #fee2e2;
  color: #991b1b;
}

.confidence-ring--none {
  border-color: var(--orb-gray-300);
  background: var(--orb-gray-100);
  color: var(--orb-gray-500);
}

/* Match Summary Bar */
.match-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0.75rem;
  background: var(--orb-gray-100);
  border-radius: var(--orb-radius-md);
  margin-bottom: 0.75rem;
}

.match-summary__row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  min-width: 0;
  flex: 1;
}

.match-summary__label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--orb-gray-500);
}

.match-summary__value {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--orb-gray-800);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-summary__number {
  font-size: 0.75rem;
  font-family: var(--orb-font-mono);
  color: var(--orb-gray-500);
  background: var(--orb-white);
  padding: 0.1rem 0.3rem;
  border-radius: var(--orb-radius-sm);
}

.match-summary__link {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--orb-primary);
  text-decoration: none;
}

.match-summary__link:hover {
  text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 550px) {
  .card-comparison-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  
  .comparison-indicator {
    grid-column: 1 / -1;
    grid-row: 1;
    padding: 0.5rem 0;
  }
  
  .confidence-ring {
    width: 40px;
    height: 40px;
  }
  
  .match-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* File Pairs Preview */
.selected-files__pairs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.selected-pair {
  background: var(--orb-gray-50);
  border: 1px solid var(--orb-gray-200);
  border-radius: var(--orb-radius-md);
  padding: 0.75rem;
}

.selected-pair__label {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--orb-gray-600);
  margin-bottom: 0.5rem;
}

.selected-pair__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.selected-file--front,
.selected-file--back {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem;
  background: var(--orb-white);
  border-radius: var(--orb-radius-sm);
  border: 1px solid var(--orb-gray-200);
}

.selected-file__badge {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  width: fit-content;
}

.selected-file--front .selected-file__badge {
  background: #dbeafe;
  color: #1e40af;
}

.selected-file--back .selected-file__badge {
  background: #fef3c7;
  color: #92400e;
}

.selected-file--missing {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem;
  background: #fee2e2;
  border-radius: var(--orb-radius-sm);
  border: 1px dashed #ef4444;
}

.selected-file--missing .selected-file__badge {
  background: #fecaca;
  color: #dc2626;
}

.selected-file__name {
  font-size: 0.75rem;
  color: var(--orb-gray-700);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-warning {
  color: #d97706;
}

/* Image Preview Grid */
.preview-grid {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
}

.preview-grid--single {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.preview-grid--pairs {
  grid-template-columns: 1fr;
}

.preview-card {
  position: relative;
  background: var(--orb-white);
  border: 2px solid var(--orb-gray-200);
  border-radius: var(--orb-radius-md);
  overflow: hidden;
}

.preview-card__remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 18px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-card:hover .preview-card__remove {
  opacity: 1;
}

.preview-card__remove:hover {
  background: #dc2626;
  transform: scale(1.1);
}

.preview-card__image {
  aspect-ratio: 3/4;
  background: var(--orb-gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.preview-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-card__label {
  padding: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  background: var(--orb-gray-50);
  color: var(--orb-gray-700);
}

.preview-card__badge {
  padding: 0.3rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  background: #dbeafe;
  color: #1e40af;
}

.preview-card__badge--back {
  background: #fef3c7;
  color: #92400e;
}

.preview-card__badge--missing {
  background: #fee2e2;
  color: #dc2626;
}

.preview-loading {
  font-size: 0.75rem;
  color: var(--orb-gray-400);
}

.preview-error {
  font-size: 0.75rem;
  color: #dc2626;
}

.preview-missing {
  font-size: 1.5rem;
}

/* Pair Layout */
.preview-pair {
  background: var(--orb-gray-50);
  border: 1px solid var(--orb-gray-200);
  border-radius: var(--orb-radius-md);
  padding: 0.75rem;
}

.preview-pair__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.preview-pair__actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.preview-pair__label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--orb-gray-700);
}

.btn-swap {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  background: var(--orb-gray-100);
  border: 1px solid var(--orb-gray-300);
  border-radius: var(--orb-radius-sm);
  color: var(--orb-gray-600);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-swap:hover {
  background: var(--orb-orange);
  border-color: var(--orb-orange);
  color: white;
}

.btn-swap svg {
  flex-shrink: 0;
}

.btn-remove-pair {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border-radius: var(--orb-radius-sm);
  background: transparent;
  border: 1px solid #fca5a5;
  color: #dc2626;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-remove-pair:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: white;
}

.preview-pair__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.preview-card--front {
  border-color: #93c5fd;
}

.preview-card--back {
  border-color: #fcd34d;
}

.preview-card--missing {
  border-color: #fca5a5;
  border-style: dashed;
  background: #fef2f2;
}

@media (max-width: 480px) {
  .preview-grid--single {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Image Mode Toggle */
.image-mode-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: var(--orb-gray-50);
  border-radius: var(--orb-radius-md);
  border: 1px solid var(--orb-gray-200);
}

.mode-switch {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.mode-switch__label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--orb-gray-500);
  transition: color 0.2s, font-weight 0.2s;
  white-space: nowrap;
}

.mode-switch__label--left {
  text-align: right;
}

/* Highlight active side */
.mode-switch:has(input:not(:checked)) .mode-switch__label--left {
  color: var(--orb-gray-800);
  font-weight: 600;
}

.mode-switch:has(input:checked) .mode-switch__label--right {
  color: var(--orb-gray-800);
  font-weight: 600;
}

.mode-switch__track {
  position: relative;
  width: 50px;
  height: 26px;
  flex-shrink: 0;
}

.mode-switch__track input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.mode-switch__slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--orb-gray-300);
  border-radius: 26px;
  transition: background 0.3s;
  cursor: pointer;
}

.mode-switch__slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

.mode-switch__track input:checked + .mode-switch__slider {
  background: var(--orb-primary);
}

.mode-switch__track input:checked + .mode-switch__slider::before {
  transform: translateX(24px);
}

.mode-switch__track input:focus + .mode-switch__slider {
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

@media (max-width: 400px) {
  .mode-switch {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
  
  .mode-switch__label {
    font-size: 0.8rem;
  }
}

/* Push Progress Indicator */
.push-progress {
  background: var(--orb-white);
  border: 1px solid var(--orb-gray-200);
  border-radius: var(--orb-radius-md);
  padding: 1rem;
  margin-bottom: 1rem;
}

.push-progress__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.push-progress__title {
  font-weight: 600;
  color: var(--orb-gray-700);
}

.push-progress__badge {
  background: #f97316;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.push-progress__status {
  font-size: 0.9rem;
  color: var(--orb-gray-600);
  margin-bottom: 0.5rem;
}

.push-progress__bar {
  height: 8px;
  background: var(--orb-gray-200);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.push-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orb-green) 0%, #22c55e 100%);
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.push-progress__results {
  margin-top: 0.5rem;
}

/* Count Badge */
.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.5rem;
  background: var(--orb-gray-200);
  color: var(--orb-gray-600);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.count-badge--success {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
}

/* Review Section */
.review-section {
  background: var(--orb-white);
  border-radius: var(--orb-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--orb-shadow-sm);
  margin-bottom: 1.5rem;
}

.review-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Review Card */
.review-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--orb-gray-100);
  border-radius: var(--orb-radius-md);
}

.review-card__image {
  flex-shrink: 0;
  width: 120px;
}

.review-card__image img {
  width: 100%;
  border-radius: var(--orb-radius-md);
  box-shadow: var(--orb-shadow-sm);
}

.review-card__content {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.review-card__content .input-field {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.review-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.tag {
  display: inline-flex;
  padding: 0.2rem 0.5rem;
  background: var(--orb-gray-200);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--orb-gray-600);
}

.tag--note {
  background: rgba(242, 107, 58, 0.1);
  color: var(--orb-orange);
}

/* Analysis Details */
.analysis-details {
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: var(--orb-white);
  border-radius: var(--orb-radius-md);
}

.analysis-details summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--orb-gray-700);
}

.analysis-details .analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.analysis-details .analysis-grid > div {
  display: flex;
  flex-direction: column;
}

.analysis-details .analysis-grid span {
  font-size: 0.7rem;
  color: var(--orb-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.analysis-details .analysis-grid strong {
  font-size: 0.9rem;
  color: var(--orb-gray-700);
}

.analysis-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* ========================================
   Catalog Match Card (TCGplayer-style)
   ======================================== */
.catalog-match-card {
  background: var(--orb-white);
  border-radius: var(--orb-radius-lg);
  box-shadow: var(--orb-shadow-md);
  overflow: hidden;
  border: 1px solid var(--orb-gray-200);
  position: relative;
}

/* PROMO Card - Premium gold border */
.catalog-match-card--promo {
  border: 2px solid #f59e0b;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.25), var(--orb-shadow-md);
}

/* PROMO Banner */
.promo-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.promo-banner__icon {
  font-size: 1rem;
}

.promo-banner__text {
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.promo-banner__note {
  font-size: 0.7rem;
  opacity: 0.9;
  font-weight: 500;
}

@media (max-width: 640px) {
  .promo-banner {
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.4rem 0.75rem;
  }
  .promo-banner__note {
    width: 100%;
    text-align: center;
    font-size: 0.65rem;
  }
}

/* Card Selection Checkbox */
.card-select {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
}

.card-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--orb-white);
  border: 2px solid var(--orb-gray-300);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.card-checkbox:hover {
  border-color: var(--orb-orange);
  background: #fff9f6;
}

.card-checkbox input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  margin: 0;
}

.card-checkbox__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.card-checkbox__mark::after {
  content: '';
  display: none;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}

.card-checkbox input:checked ~ .card-checkbox__mark {
  background: var(--orb-orange);
  border-radius: 2px;
}

.card-checkbox input:checked ~ .card-checkbox__mark::after {
  display: block;
}

/* When checked, update the parent label too */
.card-checkbox:has(input:checked) {
  border-color: var(--orb-orange);
  background: var(--orb-orange);
}

/* Adjust header to make room for checkbox */
.catalog-match-card .match-header {
  padding-left: 3rem;
}

/* Select All Toggle */
.select-all-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--orb-gray-600);
  cursor: pointer;
}

.select-all-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--orb-orange);
}

/* Inline Price Edit */
.price-edit-inline {
  display: flex;
  align-items: center;
}

.price-edit-input {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: white;
  padding: 0.25rem 0.5rem;
  border-radius: var(--orb-radius-md);
  border: 2px solid var(--orb-orange);
}

.price-edit-input span {
  color: var(--orb-gray-500);
  font-weight: 600;
}

.price-input {
  width: 80px !important;
  padding: 0.25rem 0.5rem !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
}

.price-badge {
  cursor: pointer;
}

.price-badge:hover {
  opacity: 0.9;
}

/* Wrong Card Button */
.btn-warning {
  background: #f59e0b;
  color: white;
  border-color: #f59e0b;
}

.btn-warning:hover {
  background: #d97706;
  border-color: #d97706;
}

/* Icon-only remove button for tables */
.btn-icon-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: var(--orb-gray-100);
  border: 1px solid var(--orb-gray-300);
  border-radius: 6px;
  color: var(--orb-gray-500);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-icon-remove:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

.btn-danger {
  background: #dc2626;
  color: white;
  border-color: #dc2626;
}

.btn-danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

.match-header {
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, var(--orb-gray-50) 0%, var(--orb-white) 100%);
  border-bottom: 1px solid var(--orb-gray-200);
}

.match-header__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.match-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--orb-gray-800);
  margin: 0;
  flex: 1;
  min-width: 0; /* Allow title to shrink below content size */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Mobile: Stack title and price for long card names */
@media (max-width: 480px) {
  .match-header__top {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }
  
  .match-title {
    font-size: 1rem;
    line-height: 1.3;
  }
  
  .price-block {
    align-items: flex-start;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
  }
  
  .price-block__main {
    order: 1;
  }
  
  .price-block__source {
    order: 2;
    font-size: 0.65rem;
  }
  
  .price-badge--large {
    font-size: 1.1rem;
    padding: 0.4rem 1rem;
  }
  
  /* Compact the detail chips on mobile */
  .match-meta {
    gap: 0.35rem;
  }
  
  .match-meta__item {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
  }
  
  .match-meta__item span {
    font-size: 0.6rem;
  }
}

.match-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.match-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  background: var(--orb-white);
  border: 1px solid var(--orb-gray-200);
  border-radius: var(--orb-radius-md);
  color: var(--orb-gray-700);
}

.match-meta__item span {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--orb-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.match-price {
  padding: 0;
  background: none;
  border: none;
}

.price-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--orb-radius-md);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.price-badge--large {
  font-size: 1.25rem;
  padding: 0.5rem 1.25rem;
}

.price-badge--missing {
  background: linear-gradient(135deg, var(--orb-gray-400) 0%, var(--orb-gray-500) 100%);
  box-shadow: none;
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
}

/* Price Block - Clean pricing display */
.price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.price-block__main {
  cursor: pointer;
}

.price-block__source {
  font-size: 0.7rem;
  color: var(--orb-gray-500);
}

.price-source {
  font-weight: 500;
  letter-spacing: 0.01em;
}

.price-source--stale {
  color: var(--orb-orange);
  font-weight: 600;
}

/* Price missing state - no price for this condition/finish */
.price-source--missing {
  color: #dc2626;
  font-weight: 600;
  font-size: 0.65rem;
  background: #fef2f2;
  padding: 0.2rem 0.5rem;
  border-radius: var(--orb-radius-sm);
  border: 1px solid #fecaca;
}

.price-missing-icon {
  margin-right: 0.15rem;
}

.price-badge--warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
  animation: pulse-warning 2s infinite;
}

@keyframes pulse-warning {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

.price-block--missing .price-badge--large {
  cursor: pointer;
}

/* Price loading state */
.price-block--loading {
  opacity: 0.6;
  pointer-events: none;
}

.price-block--loading .price-badge--large::after {
  content: '...';
  animation: pulse 1s infinite;
}

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

/* Card Details Row - Sleek horizontal layout */
.card-details-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* Detail Chips - Modern pill-style details */
.detail-chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: var(--orb-gray-50);
  border: 1px solid var(--orb-gray-200);
  border-radius: 100px;
  font-size: 0.75rem;
}

.detail-chip__label {
  font-weight: 700;
  font-size: 0.65rem;
  color: var(--orb-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-chip__value {
  font-weight: 600;
  color: var(--orb-gray-800);
}

/* Detail Chip with Select - Seamless dropdown */
.detail-chip--select {
  padding-right: 0.4rem;
}

.detail-chip__select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent;
  border: none;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--orb-gray-800);
  cursor: pointer;
  padding: 0.15rem 1.4rem 0.15rem 0.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.15rem center;
  border-radius: var(--orb-radius-sm);
  transition: background-color 0.15s ease;
}

.detail-chip__select:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.detail-chip__select:focus {
  outline: none;
  background-color: rgba(242, 107, 58, 0.1);
}

/* Style the dropdown options (limited browser support but helps in some) */
.detail-chip__select option {
  padding: 0.5rem 1rem;
  background: var(--orb-white);
  color: var(--orb-gray-800);
  font-weight: 500;
}

.detail-chip__select option:hover,
.detail-chip__select option:focus,
.detail-chip__select option:checked {
  background: linear-gradient(135deg, var(--orb-orange-light) 0%, var(--orb-orange) 100%);
  color: white;
}

.detail-chip--select:hover {
  background: var(--orb-gray-100);
  border-color: var(--orb-orange);
}

.detail-chip--select:focus-within {
  border-color: var(--orb-orange);
  box-shadow: 0 0 0 2px rgba(242, 107, 58, 0.15);
}

/* Locked finish (only one option available) */
.detail-chip--locked {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-color: #f59e0b;
}

.detail-chip--locked .detail-chip__value {
  font-weight: 700;
  color: #92400e;
}

/* Promo chip - premium gold styling */
.detail-chip--promo {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  border: 2px solid #b45309;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: promo-glow 2s ease-in-out infinite;
}

.detail-chip--promo .detail-chip__label,
.detail-chip--promo .detail-chip__value {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  font-weight: 700;
}

@keyframes promo-glow {
  0%, 100% { box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
  50% { box-shadow: 0 2px 16px rgba(245, 158, 11, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
}

.chip-only-badge {
  display: inline-block;
  font-size: 0.5rem;
  font-weight: 700;
  color: #92400e;
  background: #fef3c7;
  padding: 0.05rem 0.25rem;
  border-radius: 3px;
  text-transform: uppercase;
  margin-left: 0.15rem;
  vertical-align: middle;
}

/* Legacy dropdown styles - keep for backward compatibility */
.condition-select,
.finish-select {
  padding: 0.2rem 0.4rem;
  font-size: 0.8rem;
  border: 1px solid var(--orb-gray-300);
  border-radius: var(--orb-radius-sm);
  background: white;
  color: var(--orb-gray-700);
  cursor: pointer;
  min-width: 100px;
}

.condition-select:hover,
.finish-select:hover {
  border-color: var(--orb-orange);
}

.condition-select:focus,
.finish-select:focus {
  outline: none;
  border-color: var(--orb-orange);
  box-shadow: 0 0 0 2px rgba(242, 107, 58, 0.2);
}

/* Responsive: Stack on mobile */
@media (max-width: 600px) {
  .card-details-row {
    gap: 0.4rem;
  }
  
  .detail-chip {
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
  }
  
  .detail-chip__label {
    font-size: 0.6rem;
  }
}

/* Extra small mobile (375px and below) */
@media (max-width: 400px) {
  .match-header {
    padding: 0.75rem;
  }
  
  .card-details-row {
    gap: 0.3rem;
  }
  
  .detail-chip {
    padding: 0.25rem 0.4rem;
    font-size: 0.65rem;
    gap: 0.25rem;
  }
  
  .detail-chip__label {
    font-size: 0.55rem;
  }
  
  .detail-chip__select {
    padding: 0.15rem 0.3rem;
    font-size: 0.7rem;
  }
  
  .chip-only-badge {
    font-size: 0.45rem;
    padding: 0.02rem 0.15rem;
  }
  
  .confidence-ring {
    width: 40px;
    height: 40px;
    border-width: 2px;
  }
  
  .confidence-ring__value {
    font-size: 0.6rem;
  }
  
  .card-image-container {
    padding: 0.75rem;
  }
  
  .card-image-container img {
    max-height: 250px;
    width: auto;
  }
  
  .confidence-badge {
    padding: 0.15rem 0.4rem;
    font-size: 0.65rem;
  }
}

/* Condition and Finish Tags in Table */
.condition-tag {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--orb-gray-100);
  border-radius: var(--orb-radius-sm);
  color: var(--orb-gray-700);
}

.finish-tag {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--orb-gray-100);
  border-radius: var(--orb-radius-sm);
  color: var(--orb-gray-700);
}

.finish-tag--foil {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #fbbf24 100%);
  color: #78350f;
}

.price-cell {
  font-weight: 700;
  color: var(--orb-green);
}

.confidence-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.confidence-badge--good {
  background: #dcfce7;
  color: #166534;
}

.confidence-badge--pending {
  background: #fef3c7;
  color: #92400e;
}

.confidence-badge--warning {
  background: #fee2e2;
  color: #991b1b;
  animation: pulse-warning 1.5s ease-in-out infinite;
}

@keyframes pulse-warning {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Card Image Display */
.card-image-container {
  display: flex;
  justify-content: center;
  padding: 1rem;
  background: var(--orb-gray-50);
  border-bottom: 1px solid var(--orb-gray-200);
}

.card-image {
  width: 100%;
  max-width: 200px;
  border-radius: var(--orb-radius-md);
  overflow: hidden;
  box-shadow: var(--orb-shadow-lg);
  border: 3px solid var(--orb-white);
}

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

.card-image-placeholder {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 5/7;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orb-gray-100);
  border-radius: var(--orb-radius-md);
  border: 2px dashed var(--orb-gray-300);
  color: var(--orb-gray-500);
  font-size: 0.9rem;
}

/* Match Actions */
.match-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--orb-gray-50);
  border-bottom: 1px solid var(--orb-gray-200);
}

/* Edit Details Dropdown */
.edit-details {
  margin: 0;
}

.edit-details summary {
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--orb-gray-600);
  background: var(--orb-gray-50);
  border-bottom: 1px solid var(--orb-gray-200);
  transition: background 0.2s;
}

.edit-details summary:hover {
  background: var(--orb-gray-100);
}

.edit-details[open] summary {
  background: var(--orb-gray-100);
}

.edit-details .review-form {
  padding: 1rem 1.25rem;
  background: var(--orb-white);
  border-bottom: 1px solid var(--orb-gray-200);
}

/* Primary Card Actions */
.card-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(180deg, var(--orb-gray-50) 0%, var(--orb-white) 100%);
}

.btn-success {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  border: none;
}

.btn-success:hover {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 700;
}

/* Responsive: Mobile adjustments */
@media (max-width: 640px) {
  .match-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .card-actions {
    flex-direction: column;
  }
  
  .btn-lg {
    width: 100%;
  }
}

/* Review Form */
.review-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Empty State */
.empty-state {
  padding: 2rem;
  text-align: center;
  color: var(--orb-gray-500);
}

/* Data Table */
.table-container {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--orb-gray-200);
}

.data-table th {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--orb-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.data-table td {
  font-size: 0.9rem;
  color: var(--orb-gray-700);
}

/* Alerts */
.alerts {
  margin-bottom: 1rem;
}

.alert--warning {
  background: rgba(234, 179, 8, 0.1);
  color: #92400e;
}

.alert--success {
  background: rgba(34, 197, 94, 0.1);
  color: #166534;
}

.alert--danger {
  background: rgba(239, 68, 68, 0.1);
  color: #991b1b;
}

/* Button Variants */
.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
}

.btn-danger {
  background: transparent;
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.btn-danger:hover {
  background: rgba(220, 38, 38, 0.1);
}

/* Search Bar */
.search-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.input-field--search {
  flex: 1;
  max-width: none;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--orb-gray-200);
  margin-bottom: 1rem;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--orb-gray-600);
  cursor: pointer;
}

.filter-checkbox input {
  accent-color: var(--orb-orange);
}

/* Label Queue */
.label-queue {
  min-height: 100px;
  max-height: 300px;
  overflow-y: auto;
}

.label-queue:empty::before {
  content: 'Add items from search results';
  display: block;
  padding: 2rem;
  text-align: center;
  color: var(--orb-gray-400);
  font-size: 0.9rem;
}

/* Batches List */
.batches-list {
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.batches-list:empty::before {
  content: 'No saved batches';
  display: block;
  padding: 1rem;
  text-align: center;
  color: var(--orb-gray-400);
  font-size: 0.85rem;
}

.batches-empty {
  padding: 1.5rem;
  text-align: center;
  color: var(--orb-gray-400);
  font-size: 0.85rem;
}

/* Clean Batch Card */
.batch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  background: var(--orb-gray-50);
  border: 1px solid var(--orb-gray-200);
  border-radius: var(--orb-radius-md);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.batch-card:hover {
  border-color: var(--orb-gray-300);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.batch-card__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.batch-card__title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--orb-gray-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.batch-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--orb-gray-500);
}

.batch-card__count {
  font-weight: 500;
}

.batch-card__time {
  opacity: 0.7;
}

.batch-card__time::before {
  content: '·';
  margin-right: 0.5rem;
}

.batch-card__actions {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.btn-icon-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.5rem;
  background: transparent;
  color: var(--orb-gray-400);
  border: 1px solid transparent;
  border-radius: var(--orb-radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-icon-danger:hover {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.2);
}

.btn-icon-danger svg {
  display: block;
}

/* Small button with icon */
.btn-sm svg {
  vertical-align: -2px;
  margin-right: 0.25rem;
}

.btn-sm svg:only-child {
  margin-right: 0;
}

/* Status Hint */
.status-hint {
  font-size: 0.85rem;
  color: var(--orb-gray-500);
  padding: 0.5rem 0;
}

/* Action Bar */
.action-bar {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--orb-gray-200);
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .review-card {
    flex-direction: column;
  }
  
  .review-card__image {
    width: 100%;
    max-width: 200px;
  }
  
  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .search-bar {
    flex-wrap: wrap;
  }
  
  .filter-bar {
    gap: 0.75rem;
  }
}

/* ============================================
   COMPREHENSIVE MOBILE STYLES
   ============================================ */

@media (max-width: 640px) {
  /* Dashboard */
  .dashboard {
    padding: 0 0.75rem 2rem;
  }
  
  /* Upload Hero */
  .upload-hero {
    padding: 1.5rem 0.5rem 1rem;
  }
  
  .upload-hero__title {
    font-size: 1.5rem;
  }
  
  .upload-hero__subtitle {
    font-size: 0.9rem;
  }
  
  /* Upload Tabs */
  .upload-tabs {
    margin-top: 1rem;
  }
  
  .upload-tab {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  
  /* Upload Panel */
  .upload-panel {
    padding: 1rem;
    border-radius: var(--orb-radius-md);
  }
  
  /* Dropzone */
  .upload-dropzone {
    padding: 1.5rem 1rem;
  }
  
  .upload-dropzone__icon {
    width: 36px;
    height: 36px;
  }
  
  .upload-dropzone__text {
    font-size: 0.95rem;
  }
  
  /* Options Bar */
  .upload-options {
    flex-direction: column;
    gap: 1rem;
  }
  
  .option-group {
    width: 100%;
    justify-content: space-between;
  }
  
  /* Upload Button */
  .upload-submit {
    padding: 1rem;
    font-size: 1rem;
  }
  
  /* Quick Access Cards */
  .quick-card {
    padding: 0.875rem 1rem;
  }
  
  .quick-card__icon {
    font-size: 1.25rem;
    width: 2rem;
  }
  
  .quick-card__logo {
    width: 1.75rem;
    height: 1.75rem;
  }
  
  .quick-card__content h3 {
    font-size: 0.95rem;
  }
  
  .quick-card__content p {
    font-size: 0.8rem;
  }
  
  /* Progress Panel */
  .progress-panel {
    padding: 1rem;
  }
  
  .progress-panel__header {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  /* Alerts */
  .alert {
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 400px) {
  /* Extra small screens */
  .dashboard-header {
    padding: 2rem 1rem;
  }
  
  .dashboard-header__logo {
    width: 80px;
    height: 80px;
  }
  
  .dashboard-header__title {
    font-size: 1.5rem;
  }
  
  .upload-hero__title {
    font-size: 1.25rem;
  }
  
  .upload-tab {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }
  
  .toggle-group {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}

/* ========================================
   Search Modal
   ======================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-content {
  background: var(--orb-white);
  border-radius: var(--orb-radius-lg);
  box-shadow: var(--orb-shadow-lg);
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-content--search {
  max-width: 550px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--orb-gray-200);
  background: var(--orb-gray-50);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--orb-gray-800);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--orb-gray-400);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.modal-close:hover {
  color: var(--orb-gray-700);
}

.modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--orb-gray-200);
  background: var(--orb-gray-50);
}

/* Search Form */
.search-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.search-form .input-field {
  flex: 1;
}

/* Search Results */
.search-results {
  min-height: 150px;
}

.search-hint,
.search-loading,
.search-empty,
.search-error {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  color: var(--orb-gray-500);
  font-size: 0.9rem;
  text-align: center;
}

.search-loading {
  color: var(--orb-orange);
}

.search-error {
  color: #dc2626;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.search-result-item {
  padding: 0.75rem 1rem;
  background: var(--orb-gray-50);
  border: 1px solid var(--orb-gray-200);
  border-radius: var(--orb-radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
}

.search-result-item:hover {
  background: var(--orb-orange);
  border-color: var(--orb-orange);
  color: white;
}

.search-result-item:hover .search-result-item__meta,
.search-result-item:hover .search-result-item__number {
  color: rgba(255, 255, 255, 0.8);
}

.search-result-item__main {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.search-result-item__main strong {
  font-size: 0.95rem;
}

.search-result-item__number {
  font-size: 0.8rem;
  color: var(--orb-gray-500);
  font-family: monospace;
}

.search-result-item__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--orb-gray-500);
}

.search-result-item__price {
  font-weight: 600;
  color: var(--orb-green);
}

.search-result-item:hover .search-result-item__price {
  color: white;
}

/* ========================================
   COMPREHENSIVE RESPONSIVE STYLES
   Mobile-first for iPhone/iPad
   ======================================== */

/* ----- BREAKPOINTS -----
   - 480px: Small phones
   - 768px: Large phones / Small tablets (iPad Mini)
   - 1024px: Tablets (iPad) / Small laptops
   ------------------------- */

/* === GLOBAL MOBILE ADJUSTMENTS === */
@media (max-width: 768px) {
  /* Reduce base padding on mobile */
  .page-content {
    padding: 1rem 0.75rem 2rem;
  }
  
  /* Cards need more breathing room */
  .card {
    padding: 1rem;
    border-radius: 12px;
  }
  
  /* Better touch targets */
  .btn {
    min-height: 44px;
    padding: 0.75rem 1.25rem;
  }
  
  /* Larger clickable areas */
  input[type="text"],
  input[type="number"],
  input[type="search"],
  select,
  .input-field {
    min-height: 44px;
    font-size: 16px; /* Prevents iOS zoom on focus */
  }
  
  /* Section headings scale down */
  .section-title {
    font-size: 1.1rem;
  }
}

/* === DASHBOARD PAGE (index.html) === */
@media (max-width: 768px) {
  /* Dashboard header */
  .dashboard-header {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1rem;
    margin: 0.5rem;
    gap: 1rem;
    border-radius: 16px;
  }
  
  .dashboard-header__logo {
    width: 80px;
    height: 80px;
  }
  
  .dashboard-header__title {
    font-size: 1.5rem;
    letter-spacing: 0.1em;
  }
  
  /* Upload tabs */
  .upload-tabs--inline {
    margin-left: 0;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .upload-tab {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  
  /* Upload zone */
  .upload-zone {
    padding: 2rem 1rem;
    margin: 0 0.5rem;
  }
  
  .upload-zone__icon {
    font-size: 2.5rem;
  }
  
  .upload-zone__text {
    font-size: 0.95rem;
  }
  
  /* Type and options row */
  .upload-options {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0.5rem;
  }
  
  .type-toggle,
  .option-row {
    width: 100%;
    justify-content: space-between;
  }
  
  /* Submit button full width on mobile */
  .upload-form .btn-primary,
  .btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
  }
  
  /* Quick links (Riftbound, Label Reprints) */
  .quick-link-card {
    padding: 1rem;
  }
  
  .quick-link-card__icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
  
  .quick-link-card__title {
    font-size: 1rem;
  }
  
  .quick-link-card__subtitle {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .dashboard-header {
    padding: 1.25rem 0.75rem;
    margin: 0.25rem;
  }
  
  .dashboard-header__logo {
    width: 64px;
    height: 64px;
  }
  
  .dashboard-header__title {
    font-size: 1.25rem;
  }
}

/* === RIFTBOUND INTAKE PAGE === */
@media (max-width: 768px) {
  /* Page header */
  .riftbound-header,
  .intake-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem 0.5rem;
  }
  
  /* TCGplayer prices section */
  .price-status {
    padding: 0.75rem;
  }
  
  .price-status__freshness {
    font-size: 0.9rem;
  }
  
  /* File input */
  .file-input-wrapper {
    width: 100%;
  }
  
  .file-input-label {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
  }
  
  /* Upload preview grid */
  .preview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 0.5rem;
  }
  
  .preview-card {
    padding: 0.5rem;
  }
  
  .preview-card__img {
    max-height: 120px;
  }
  
  /* Swap button for card pairs */
  .preview-pair__swap-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
  }
  
  /* Card match result cards */
  .catalog-match-card {
    padding: 1rem;
  }
  
  /* Side-by-side comparison */
  .card-comparison-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .comparison-card {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
  }
  
  .comparison-card__image {
    width: 80px;
    height: auto;
  }
  
  .comparison-divider {
    display: none;
  }
  
  /* Match verification panel */
  .match-verification-panel {
    padding: 0.75rem;
  }
  
  .match-meta {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .match-meta__item {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
  }
  
  /* Condition/Finish dropdowns */
  .match-meta__item--dropdown {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 120px;
  }
  
  .match-meta__item--dropdown select {
    font-size: 0.9rem;
  }
  
  /* Price display */
  .price-display {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .price-badge--large {
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
  }
  
  /* Action buttons */
  .match-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .match-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Approved entries section */
  .approved-card {
    padding: 0.75rem;
  }
  
  .approved-card__info {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  /* Edit details section */
  .edit-details {
    padding: 1rem;
  }
  
  .edit-details .form-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  /* Search modal */
  .search-modal__content {
    width: 95%;
    max-height: 85vh;
    margin: 1rem;
  }
  
  .search-results-grid {
    max-height: 50vh;
  }
  
  .search-result-item {
    padding: 0.75rem;
  }
}

@media (max-width: 480px) {
  /* Smaller preview for phones */
  .preview-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
  }
  
  .preview-card__img {
    max-height: 100px;
  }
  
  /* Stack comparison vertically */
  .comparison-card {
    flex-direction: column;
    text-align: center;
  }
  
  .comparison-card__image {
    width: 100%;
    max-width: 150px;
  }
  
  /* Price is prominent */
  .price-badge--large {
    font-size: 1.75rem;
    width: 100%;
    text-align: center;
  }
  
  /* Full width dropdowns */
  .match-meta__item--dropdown {
    flex: 1 1 100%;
  }
}

/* === LABEL REPRINTS PAGE === */
@media (max-width: 768px) {
  /* Floating scan button */
  .scan-fab {
    bottom: 24px;
    right: 24px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
  
  /* Scanner overlay */
  .scanner-viewfinder {
    width: 85vw;
    height: 85vw;
    max-width: 350px;
    max-height: 350px;
  }
  
  .scanner-status-bar {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  
  /* Queue bar */
  .queue-bar {
    padding: 0.75rem 1rem;
  }
  
  .queue-bar__count {
    font-size: 0.9rem;
  }
  
  /* Queue panel */
  .queue-panel {
    height: 70vh;
    max-height: 70vh;
  }
  
  .queue-panel__header {
    padding: 1rem;
  }
  
  .queue-item {
    padding: 0.75rem;
  }
  
  .queue-item__title {
    font-size: 0.9rem;
  }
  
  /* Search section */
  .search-row {
    flex-direction: column;
  }
  
  .search-row .input-field {
    width: 100%;
  }
  
  .search-row .btn {
    width: 100%;
  }
  
  /* Results */
  .search-results {
    grid-template-columns: 1fr;
  }
  
  .result-card {
    padding: 0.75rem;
  }
  
  .result-card__title {
    font-size: 0.9rem;
  }
  
  /* Saved batches */
  .batch-card {
    padding: 0.75rem;
  }
  
  .batch-card__main {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .batch-card__title {
    font-size: 0.95rem;
  }
  
  .batch-card__actions {
    width: 100%;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--orb-gray-200);
  }
}

@media (max-width: 480px) {
  /* Smaller FAB on phones */
  .scan-fab {
    bottom: 16px;
    right: 16px;
    padding: 0.875rem 1.25rem;
    font-size: 0.9rem;
  }
  
  /* Larger touch targets for queue */
  .queue-item {
    min-height: 60px;
  }
  
  .queue-item__remove {
    min-width: 44px;
    min-height: 44px;
  }
}

/* === BUY HUB PAGE === */
@media (max-width: 768px) {
  .buy-hub-header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .buy-hub-stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
  
  .stat-card {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 100px;
  }
  
  /* Review cards */
  .review-card {
    flex-direction: column;
  }
  
  .review-card__image {
    width: 100%;
    max-width: none;
    height: 200px;
  }
  
  .review-card__content {
    padding: 1rem;
  }
  
  /* Filter bar */
  .filter-bar {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .filter-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* === FORM ELEMENTS (All Pages) === */
@media (max-width: 768px) {
  /* Form groups */
  .form-group {
    margin-bottom: 1rem;
  }
  
  .form-label {
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
  }
  
  /* Two column forms become single column */
  .form-row,
  .form-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  /* Tables become scrollable */
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Better table on mobile */
  .data-table {
    min-width: 600px;
  }
  
  .data-table th,
  .data-table td {
    padding: 0.5rem;
    font-size: 0.85rem;
  }
}

/* === TOUCH OPTIMIZATIONS === */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects that don't work on touch */
  .btn:hover {
    transform: none;
  }
  
  /* Add active states instead */
  .btn:active {
    transform: scale(0.98);
    opacity: 0.9;
  }
  
  /* Larger tap targets */
  .checkbox-wrapper,
  .card-select-checkbox {
    min-width: 44px;
    min-height: 44px;
  }
  
  /* Make sure inputs don't zoom on iOS */
  input,
  select,
  textarea {
    font-size: 16px;
  }
}

/* === TABLET LANDSCAPE (iPad) === */
@media (min-width: 768px) and (max-width: 1024px) {
  .dashboard-header {
    padding: 2rem;
    gap: 1.5rem;
  }
  
  .dashboard-header__logo {
    width: 100px;
    height: 100px;
  }
  
  .dashboard-header__title {
    font-size: 2rem;
  }
  
  /* Two columns for grids */
  .preview-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .search-results {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Side-by-side works better on tablet */
  .card-comparison-grid {
    grid-template-columns: 1fr auto 1fr;
  }
  
  .comparison-divider {
    display: block;
  }
}

/* === SAFE AREAS (iPhone X+ notch) === */
@supports (padding: max(0px)) {
  .scan-fab {
    bottom: max(24px, env(safe-area-inset-bottom));
    right: max(24px, env(safe-area-inset-right));
  }
  
  .queue-panel {
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }
  
  .scanner-overlay {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
  
  .home-fab {
    top: max(1rem, env(safe-area-inset-top));
    left: max(1rem, env(safe-area-inset-left));
  }
}

/* === PRINT STYLES (for completeness) === */
@media print {
  .home-fab,
  .scan-fab,
  .scanner-overlay,
  .queue-panel,
  .toast-container {
    display: none !important;
  }
  
  .page-content {
    padding: 0;
  }
}

/* ========================================
   ADD FROM DATABASE MODAL
   ======================================== */

.modal-content--add-db {
  max-width: 650px;
  max-height: 90vh;
}

/* Batches Modal */
.modal-content--batches {
  max-width: 500px;
  max-height: 80vh;
}

.batches-list {
  max-height: 400px;
  overflow-y: auto;
}

.batches-loading,
.batches-empty,
.batches-error {
  padding: 2rem;
  text-align: center;
  color: #64748b;
}

.batches-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.batches-empty p {
  margin: 0.5rem 0;
}

.batches-error {
  color: #ef4444;
}

.batch-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.batch-card:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.batch-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.batch-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.batch-card__time {
  font-weight: 600;
  color: #1e293b;
}

.batch-card__count {
  font-size: 0.75rem;
  color: #64748b;
}

.batch-card__status {
  display: flex;
  gap: 0.375rem;
}

.status-badge {
  font-size: 0.65rem;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-weight: 500;
}

.status-badge--pending {
  background: #fef3c7;
  color: #92400e;
}

.status-badge--approved {
  background: #dcfce7;
  color: #166534;
}

.status-badge--exported {
  background: #dbeafe;
  color: #1e40af;
}

.status-badge--completed,
.status-badge--empty {
  background: #e2e8f0;
  color: #475569;
}

.status-badge--active {
  background: #fef3c7;
  color: #92400e;
}

.status-badge--partially_exported,
.status-badge--partially_approved {
  background: #fae8ff;
  color: #86198f;
}

/* Batch card status variants */
.batch-card--empty,
.batch-card--completed {
  opacity: 0.75;
  background: #f1f5f9;
}

.batch-card__status-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

/* Batch details view */
.batch-details {
  padding: 0.5rem 0;
}

.batch-details__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.batch-details__count {
  font-size: 0.8rem;
  color: #64748b;
}

.batch-details__meta {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.batch-details__meta--success {
  color: #16a34a;
  font-weight: 500;
}

.batch-details__cards {
  max-height: 300px;
  overflow-y: auto;
  margin-top: 0.75rem;
}

.batch-details__card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  margin-bottom: 0.375rem;
  font-size: 0.8rem;
}

.batch-details__card-name {
  flex: 1;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.batch-details__card-number {
  color: #64748b;
  font-size: 0.75rem;
}

.batch-details__card-status {
  font-size: 0.65rem;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
}

.batch-details__more {
  text-align: center;
  color: #64748b;
  font-size: 0.75rem;
  padding: 0.5rem;
}

.batch-card__preview {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.batch-card__actions {
  display: flex;
  gap: 0.5rem;
}

.batch-card__actions .btn-sm {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
}

/* Batch highlight for cards */
.batch-highlight {
  animation: batch-pulse 2s ease-in-out;
  box-shadow: 0 0 0 3px var(--color-primary, #f97316) !important;
}

@keyframes batch-pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--color-primary, #f97316); }
  50% { box-shadow: 0 0 0 6px rgba(249, 115, 22, 0.3); }
}

/* Button for buy sheet on individual cards */
.btn-buysheet {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
  border: none;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-buysheet:hover {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  transform: translateY(-1px);
}

.btn-buysheet.btn--added {
  background: #22c55e;
  cursor: default;
}

.btn-buysheet.btn--added:hover {
  transform: none;
}

/* Spinner small */
.spinner--sm {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

/* ========================================
   ANALYSIS PROGRESS PANEL
   ======================================== */

.analysis-progress-panel {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 380px;
  max-width: calc(100vw - 2rem);
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  overflow: hidden;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.analysis-progress-panel.minimized {
  width: auto;
  min-width: 200px;
}

.analysis-progress-panel.minimized .analysis-progress__body {
  display: none;
}

.analysis-progress__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 1rem;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: white;
}

.analysis-progress__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.analysis-progress__icon {
  font-size: 1.1rem;
}

.analysis-progress__minimize {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 4px;
  padding: 0.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.analysis-progress__minimize:hover {
  background: rgba(255, 255, 255, 0.3);
}

.analysis-progress__minimize svg {
  width: 16px;
  height: 16px;
  stroke: white;
}

.analysis-progress__body {
  padding: 1rem;
}

.analysis-progress__status {
  margin-bottom: 0.75rem;
}

.analysis-progress__bar-container {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.analysis-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, #f97316, #fb923c);
  border-radius: 4px;
  transition: width 0.3s ease-out;
}

.analysis-progress__bar.progress-bar--indeterminate {
  width: 100% !important;
  background: linear-gradient(90deg, #e2e8f0 25%, #f97316 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: indeterminate 1.5s infinite linear;
}

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

.analysis-progress__text {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #64748b;
}

.analysis-progress__current {
  margin-bottom: 0.75rem;
}

.current-card-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #fef3c7;
  border-radius: 6px;
  font-size: 0.8rem;
  color: #92400e;
}

.current-card-indicator__spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #fbbf24;
  border-top-color: #92400e;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.analysis-progress__completed {
  max-height: 200px;
  overflow-y: auto;
}

.completed-card-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: #f0fdf4;
  border-radius: 6px;
  margin-bottom: 0.375rem;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.completed-card-item__thumb {
  width: 32px;
  height: 44px;
  border-radius: 3px;
  overflow: hidden;
  background: #e2e8f0;
  flex-shrink: 0;
}

.completed-card-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.completed-card-item__info {
  flex: 1;
  min-width: 0;
}

.completed-card-item__name {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.completed-card-item__number {
  display: block;
  font-size: 0.7rem;
  color: #64748b;
}

.completed-card-item__check {
  width: 20px;
  height: 20px;
  background: #22c55e;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.completed-cards-more {
  text-align: center;
  font-size: 0.75rem;
  color: #64748b;
  padding: 0.25rem;
}

.analysis-errors {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: #fef2f2;
  border-radius: 6px;
}

.analysis-error {
  font-size: 0.75rem;
  color: #dc2626;
  margin-bottom: 0.25rem;
}

.analysis-error:last-child {
  margin-bottom: 0;
}

/* Mobile responsive */
@media (max-width: 480px) {
  .analysis-progress-panel {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 12px 12px 0 0;
  }
  
  .analysis-progress-panel.minimized {
    width: 100%;
  }
}

.add-db-step h4 {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--orb-gray-700);
}

.selected-card-preview {
  margin-bottom: 1.25rem;
}

.selected-card-info {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #86efac;
  border-radius: var(--orb-radius-md);
  padding: 1rem;
}

.selected-card-info__header {
  margin-bottom: 0.5rem;
}

.selected-card-info__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--orb-green);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.selected-card-info__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--orb-gray-800);
  margin-bottom: 0.25rem;
}

.selected-card-info__details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--orb-gray-600);
}

.selected-card-info__details .price {
  font-weight: 600;
  color: var(--orb-green);
}

.add-db-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.upload-dropzone--small {
  padding: 1rem;
}

.upload-dropzone__icon--small {
  width: 28px;
  height: 28px;
}

.add-db-image-preview {
  position: relative;
  border-radius: var(--orb-radius-md);
  overflow: hidden;
  max-width: 150px;
}

.add-db-image-preview img {
  width: 100%;
  height: auto;
  border-radius: var(--orb-radius-md);
  box-shadow: var(--orb-shadow-sm);
}

.preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: white;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-remove:hover {
  background: #dc2626;
}

.add-db-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* Three-column intake grid */
.intake-grid--three {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .intake-grid--three {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .intake-grid--three {
    grid-template-columns: repeat(3, 1fr);
  }
}

.intake-card__desc {
  font-size: 0.85rem;
  color: var(--orb-gray-500);
  margin: 0 0 1rem;
  line-height: 1.4;
}

.intake-card__footer {
  margin-top: auto;
}

/* ========================================
   RIFTBOUND BUY SHEET STYLES
   ======================================== */

.buysheet-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .buysheet-layout {
    grid-template-columns: 320px 1fr;
  }
}

.buysheet-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.buysheet-main {
  min-width: 0;
}

/* Offer Settings */
.offer-settings {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.offer-rate-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.offer-rate-label {
  cursor: pointer;
}

.offer-rate-label > input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.offer-rate-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem;
  border: 2px solid var(--orb-gray-200);
  border-radius: var(--orb-radius-md);
  background: white;
  transition: all 0.15s ease;
}

.offer-rate-label input:checked + .offer-rate-card {
  border-color: var(--orb-orange);
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
}

.offer-rate-card--cash .offer-rate-card__icon {
  font-size: 1.5rem;
}

.offer-rate-card--credit .offer-rate-card__icon {
  font-size: 1.5rem;
}

.offer-rate-card__title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--orb-gray-700);
}

.offer-rate-card__rate {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--orb-orange);
}

/* Rate edit container */
.offer-rate-card__rate-edit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-top: 4px;
}

/* Editable rate input */
.rate-input {
  width: 56px;
  height: 36px;
  padding: 4px 8px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #222;
  background: #ffffff;
  border: 2px solid var(--orb-orange);
  border-radius: 8px;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}

.rate-input::-webkit-outer-spin-button,
.rate-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.rate-input:focus {
  outline: none;
  background: white;
  box-shadow: 0 0 0 3px rgba(242, 107, 58, 0.3);
}

.rate-percent {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--orb-orange);
}

.offer-rate-card--credit .rate-input {
  border-color: #059669;
}

.offer-rate-card--credit .rate-percent {
  color: #059669;
}

.offer-rate-card--credit .rate-input:focus {
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.3);
}

/* Mobile responsive rate inputs */
@media (max-width: 480px) {
  .rate-input {
    width: 48px;
    height: 32px;
    padding: 3px 6px;
    font-size: 1.1rem;
  }
  
  .rate-percent {
    font-size: 1rem;
  }
}

.custom-rate-section {
  display: none; /* Hide old custom rate section */
}

.custom-rate-section-old {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.custom-rate-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.custom-rate-input {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.custom-rate-input input {
  width: 60px;
}

/* Buy Sheet Cards Grid */
.buysheet-cards-grid {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.buysheet-card {
  display: grid;
  grid-template-columns: 60px 1fr auto auto;
  gap: 0.75rem;
  align-items: center;
  background: white;
  border: 1px solid var(--orb-gray-200);
  border-radius: var(--orb-radius-md);
  padding: 0.75rem;
  position: relative;
  transition: all 0.15s ease;
}

.buysheet-card:hover {
  border-color: var(--orb-gray-300);
  box-shadow: var(--orb-shadow-sm);
}

.buysheet-card__image {
  width: 60px;
  height: 80px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--orb-gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.buysheet-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.buysheet-card__placeholder {
  font-size: 1.5rem;
  color: var(--orb-gray-400);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.buysheet-card__upload-btn {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--orb-primary);
  background: rgba(248, 115, 74, 0.1);
  border: 1px solid var(--orb-primary);
  border-radius: var(--orb-radius-sm);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.buysheet-card__upload-btn:hover {
  background: var(--orb-primary);
  color: white;
}

.loading-spinner {
  animation: spin 1s linear infinite;
}

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

.buysheet-card__info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.buysheet-card__name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--orb-gray-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.buysheet-card__details {
  display: flex;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--orb-gray-500);
}

.buysheet-card__number {
  font-family: monospace;
}

.buysheet-card__selects {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.buysheet-card__selects select {
  font-size: 0.75rem;
  padding: 0.2rem 0.4rem;
  min-width: 55px;
  border-radius: var(--orb-radius-sm);
}

.buysheet-card__condition select {
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  min-width: 60px;
}

/* Sort Controls */
.sort-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sort-label {
  font-size: 0.85rem;
  color: var(--orb-gray-600);
  font-weight: 500;
}

.sort-controls select {
  font-size: 0.85rem;
  padding: 0.35rem 0.5rem;
  border-radius: var(--orb-radius-md);
  min-width: 130px;
}

.buysheet-card__pricing {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: right;
}

.buysheet-card__market-price,
.buysheet-card__offer-price {
  display: flex;
  flex-direction: column;
}

.buysheet-card__pricing .price-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--orb-gray-500);
}

.buysheet-card__market-price .price-value {
  font-size: 0.85rem;
  color: var(--orb-gray-600);
}

.buysheet-card__offer-price .price-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--orb-green);
}

.buysheet-card__remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--orb-gray-400);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.15s ease;
}

.buysheet-card:hover .buysheet-card__remove {
  opacity: 1;
}

.buysheet-card__remove:hover {
  background: #fef2f2;
  color: #dc2626;
}

/* Buysheet Totals */
.buysheet-totals {
  background: var(--orb-gray-100);
  border-radius: var(--orb-radius-md);
  padding: 1rem 1.25rem;
}

.buysheet-totals__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.buysheet-totals__label {
  font-size: 0.9rem;
  color: var(--orb-gray-600);
}

.buysheet-totals__value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--orb-gray-700);
}

.buysheet-totals__row--highlight {
  border-top: 1px solid var(--orb-gray-300);
  padding-top: 0.75rem;
  margin-top: 0.25rem;
}

.buysheet-totals__row--highlight .buysheet-totals__label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--orb-gray-700);
}

.buysheet-totals__value--large {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--orb-green);
}

/* Buy Sheet Modal */
.modal-content--buysheet {
  max-width: 700px;
  max-height: 90vh;
}

/* Buy Sheet Print Styles */
.buysheet-print {
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.buysheet-print__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--orb-gray-800);
}

.buysheet-print__branding {
  flex-shrink: 0;
}

.buysheet-print__logo-img {
  height: 60px;
  width: auto;
  display: block;
}

.buysheet-print__info {
  flex: 1;
}

.buysheet-print__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.125rem;
}

.buysheet-print__meta {
  font-size: 0.8rem;
  color: var(--orb-gray-500);
}

.buysheet-print__contact {
  text-align: right;
  font-size: 0.75rem;
  color: var(--orb-gray-500);
  line-height: 1.4;
}

.buysheet-print__logo {
  background: linear-gradient(135deg, var(--orb-orange) 0%, #fb923c 100%);
  color: white;
  font-weight: 800;
  font-size: 1.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.buysheet-print__title h2 {
  margin: 0;
  font-size: 1.25rem;
}

.buysheet-print__title p {
  margin: 0.25rem 0 0;
  color: var(--orb-gray-500);
  font-size: 0.9rem;
}

.buysheet-print__table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.buysheet-print__table th,
.buysheet-print__table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--orb-gray-200);
}

.buysheet-print__table th {
  background: var(--orb-gray-100);
  font-weight: 600;
  font-size: 0.85rem;
}

.buysheet-print__table td:last-child,
.buysheet-print__table th:last-child {
  text-align: right;
}

.buysheet-print__table small {
  color: var(--orb-gray-500);
}

.buysheet-print__totals {
  background: var(--orb-gray-100);
  padding: 1rem;
  border-radius: var(--orb-radius-md);
  margin: 1.5rem 0;
}

.buysheet-print__total-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.buysheet-print__total-row--highlight {
  font-size: 1.25rem;
  font-weight: 700;
  border-top: 1px solid var(--orb-gray-300);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.buysheet-print__footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--orb-gray-200);
}

.buysheet-print__footer > p {
  color: var(--orb-gray-500);
  font-size: 0.8rem;
  text-align: center;
  margin-bottom: 2rem;
}

.buysheet-print__signature {
  display: flex;
  gap: 2rem;
}

.buysheet-print__signature .signature-line {
  flex: 1;
}

.buysheet-print__signature .signature-line span {
  display: block;
  padding-top: 2rem;
  border-top: 1px solid var(--orb-gray-800);
  font-size: 0.75rem;
  color: var(--orb-gray-500);
}

/* Mobile responsiveness for buy sheet */
@media (max-width: 768px) {
  .buysheet-card {
    grid-template-columns: 50px 1fr;
    grid-template-rows: auto auto;
  }
  
  .buysheet-card__pricing {
    grid-column: 2;
    flex-direction: row;
    gap: 1rem;
    text-align: left;
    margin-top: 0.5rem;
  }
  
  .buysheet-card__remove {
    opacity: 1;
  }
  
  .offer-rate-group {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   RIFTBOUND LISTING PAGE - STREAMLINED UI
   ========================================== */

.riftbound-listing {
  max-width: 1100px;
}

/* Streamlined Header */
.listing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding: 1rem 0;
  border-bottom: 2px solid var(--orb-orange);
}

.listing-header__main {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.listing-header__title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.listing-header__game {
  color: var(--orb-orange);
}

.listing-header__type {
  color: var(--orb-gray-700);
  font-weight: 400;
}

.listing-header__flow {
  margin: 0;
  font-size: 0.875rem;
  color: var(--orb-gray-500);
  font-weight: 500;
}

.listing-header__actions {
  display: flex;
  gap: 0.75rem;
}

.btn--buy {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn--buy .btn__emoji {
  font-size: 1.1em;
}

/* Prominent Buy Sheet Button */
.btn--buy-prominent {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
  transition: all 0.2s;
}

.btn--buy-prominent:hover {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 6px 16px rgba(251, 191, 36, 0.4);
  transform: translateY(-2px);
  color: white;
}

.btn--buy-prominent .btn__emoji {
  font-size: 1.3em;
}

/* Tools Footer */
.listing-tools-footer {
  margin-top: 2rem;
  padding: 1rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-radius: 0 0 8px 8px;
}

.listing-tools-footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.listing-tools-footer__label {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
}

.listing-tools-footer .btn-sm {
  font-size: 0.8rem;
  padding: 0.375rem 0.75rem;
}

/* Compact Quick Guide */
.quick-guide--compact {
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #fff9f6 0%, #fff 100%);
  border: 1px solid rgba(242, 107, 58, 0.15);
}

.workflow-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 1rem 0;
}

.workflow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  background: white;
  border-radius: var(--orb-radius-md);
  box-shadow: var(--orb-shadow-sm);
  min-width: 80px;
}

.workflow-step--split {
  flex-direction: column;
  gap: 0.5rem;
}

.workflow-step--split > div {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
}

.workflow-step--wide {
  min-width: 140px;
}

.workflow-step--wide .workflow-step__label {
  text-align: center;
  line-height: 1.2;
}

.workflow-step__icon {
  font-size: 1.5rem;
}

.workflow-step__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--orb-gray-600);
  text-align: center;
}

.workflow-arrow {
  color: var(--orb-orange);
  font-size: 1.25rem;
  font-weight: 700;
}

/* Entry Section - Clean 2-Column Layout */
.entry-section {
  margin-bottom: 1.5rem;
}

.entry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .entry-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.entry-panel {
  background: var(--orb-white);
  border-radius: var(--orb-radius-lg);
  padding: 1.25rem;
  box-shadow: var(--orb-shadow-sm);
}

.entry-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--orb-gray-200);
}

.entry-panel__header h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: var(--orb-gray-800);
}

.entry-panel__badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  background: var(--orb-gray-100);
  color: var(--orb-gray-600);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.entry-panel__badge--success {
  background: #d1fae5;
  color: #047857;
}

.entry-panel__badge--warning {
  background: #fef3c7;
  color: #b45309;
}

.entry-panel__desc {
  font-size: 0.85rem;
  color: var(--orb-gray-500);
  margin: 0 0 1rem;
  line-height: 1.4;
}

/* Entry Tabs */
.entry-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.25rem;
  background: var(--orb-gray-100);
  border-radius: var(--orb-radius-md);
}

.entry-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 0.75rem;
  border: none;
  background: transparent;
  border-radius: calc(var(--orb-radius-md) - 2px);
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--orb-gray-600);
}

.entry-tab:hover {
  background: rgba(255, 255, 255, 0.5);
  color: var(--orb-gray-700);
}

.entry-tab--active {
  background: white;
  color: var(--orb-orange);
  box-shadow: var(--orb-shadow-sm);
}

.entry-tab__icon {
  font-size: 1rem;
}

.entry-tab__label {
  white-space: nowrap;
}

.entry-tab-content {
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Compact Upload Dropzone */
.upload-dropzone--compact {
  padding: 1.25rem;
  min-height: auto;
}

.upload-dropzone--compact .upload-dropzone__icon {
  width: 32px;
  height: 32px;
}

.upload-dropzone--compact .upload-dropzone__text {
  font-size: 0.9rem;
}

/* File Summary (compact in panel) */
.file-summary {
  margin-top: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: linear-gradient(135deg, #d1fae5 0%, #ecfdf5 100%);
  border-radius: var(--orb-radius-md);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.file-summary__content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.file-summary__icon {
  font-size: 1rem;
}

.file-summary__text {
  flex: 1;
  font-weight: 600;
  font-size: 0.85rem;
  color: #047857;
}

.file-summary__text--warning {
  color: #b45309;
}

.btn-link {
  background: none;
  border: none;
  color: var(--orb-gray-500);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.btn-link:hover {
  color: var(--orb-gray-700);
}

/* Buy Sheet Button */
.btn-buysheet {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #78350f;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--orb-radius-md);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-buysheet:hover:not(:disabled) {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

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

.btn-buysheet.btn--added,
.btn-buysheet.btn--added:disabled {
  opacity: 1;
  background: #22c55e !important;
  border-color: #22c55e !important;
  color: white !important;
  cursor: default;
}

/* Toast container for this page */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  padding: 0.75rem 1.25rem;
  border-radius: var(--orb-radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--orb-shadow-md);
  animation: toastSlideIn 0.3s ease;
  transition: opacity 0.3s ease;
}

.toast--success {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
}

.toast--warning {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #78350f;
}

.toast--error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

.toast--info {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
}

@keyframes toastSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Full-width File Preview */
.selected-files-fullwidth {
  background: var(--orb-white);
  border-radius: var(--orb-radius-lg);
  padding: 1.25rem;
  box-shadow: var(--orb-shadow-sm);
  margin-bottom: 1.5rem;
}

.selected-files-fullwidth .selected-files__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--orb-gray-200);
}

.selected-files-fullwidth .selected-files__header strong {
  color: #047857;
  font-size: 1rem;
}

.selected-files-fullwidth .preview-grid--pairs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.selected-files-fullwidth .preview-pair {
  background: var(--orb-gray-50);
  border: 1px solid var(--orb-gray-200);
  border-radius: var(--orb-radius-md);
  padding: 0.75rem;
}

.selected-files-fullwidth .preview-pair__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.selected-files-fullwidth .preview-card__image img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  border-radius: 4px;
}

/* Responsive for full-width preview */
@media (min-width: 900px) {
  .selected-files-fullwidth .preview-grid--pairs {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .selected-files-fullwidth .preview-grid--pairs {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .selected-files-fullwidth .preview-grid--pairs {
    grid-template-columns: 1fr;
  }
  
  .selected-files-fullwidth .preview-pair__images {
    gap: 0.5rem;
  }
  
  .selected-files-fullwidth .preview-card__image img {
    max-height: 150px;
  }
}

/* Compact Price Status */
.price-status-compact {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #d1fae5 0%, #ecfdf5 100%);
  border-radius: var(--orb-radius-md);
  margin-bottom: 1rem;
}

.price-status-compact--empty {
  background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
}

.price-status-compact--aging {
  background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
}

.price-status-compact--aging .price-status-compact__info strong {
  color: #b45309;
}

.price-status-compact--stale {
  background: linear-gradient(135deg, #fee2e2 0%, #fff1f2 100%);
}

.price-status-compact--stale .price-status-compact__info strong {
  color: #dc2626;
}

.price-status-compact__icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.price-status-compact__info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

.price-status-compact__info strong {
  font-size: 0.9rem;
  color: #047857;
}

.price-status-compact--empty .price-status-compact__info strong {
  color: #b45309;
}

.price-status-compact__info span {
  font-size: 0.8rem;
  color: var(--orb-gray-600);
}

.price-status-compact__count {
  font-weight: 600;
  color: var(--orb-gray-500) !important;
}

/* Mobile responsive for price status */
@media (max-width: 480px) {
  .price-status-compact {
    padding: 0.6rem 0.75rem;
    gap: 0.5rem;
  }
  
  .price-status-compact__icon {
    font-size: 1.1rem;
    width: 20px;
  }
  
  .price-status-compact__info strong {
    font-size: 0.8rem;
  }
  
  .price-status-compact__info span {
    font-size: 0.7rem;
  }
  
  .price-status-compact--stale .price-status-compact__icon {
    font-size: 1.25rem;
  }
}

/* Stale Price Alert Banner */
.stale-alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  border-radius: 8px;
  margin-top: 0.75rem;
  animation: stale-pulse 1.5s ease-in-out infinite;
}

@keyframes stale-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
}

.stale-alert__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.stale-alert__content {
  flex: 1;
  color: white;
  line-height: 1.3;
  min-width: 0;
}

.stale-alert__content strong {
  display: block;
  font-size: 0.9rem;
}

.stale-alert__content span {
  font-size: 0.75rem;
  opacity: 0.9;
}

.stale-alert__btn {
  padding: 0.5rem 1rem;
  background: white;
  color: #dc2626;
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.stale-alert__btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: #dc2626;
}

/* Mobile responsive for stale alert */
@media (max-width: 480px) {
  .stale-alert {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
  }
  
  .stale-alert__icon {
    font-size: 1.25rem;
  }
  
  .stale-alert__content {
    flex: 1 1 calc(100% - 3rem);
  }
  
  .stale-alert__content strong {
    font-size: 0.85rem;
  }
  
  .stale-alert__content span {
    font-size: 0.7rem;
  }
  
  .stale-alert__btn {
    width: 100%;
    text-align: center;
    padding: 0.6rem;
  }
}

/* Price Help Link - subtle link for TCGplayer export guide */
.price-help-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.5rem;
  font-size: 0.75rem;
  color: var(--orb-gray-500);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
}

.price-help-link:hover {
  color: var(--orb-primary);
}

.price-help-link svg {
  opacity: 0.6;
}

/* Stale price status panel styling */
.price-status-compact--stale {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%) !important;
  border-color: #dc2626 !important;
  animation: status-pulse 2s ease-in-out infinite;
}

.price-status-compact--stale .price-status-compact__icon {
  color: #dc2626;
  font-size: 1.5rem;
}

.price-status-compact--stale .price-status-compact__info strong {
  color: #dc2626;
  font-weight: 700;
}

@keyframes status-pulse {
  0%, 100% { border-color: #dc2626; }
  50% { border-color: #f87171; }
}

/* TCGplayer Export Guide Modal */
.modal-content--guide {
  max-width: 520px;
  border-radius: 16px;
}

.modal-header--tcg {
  background: linear-gradient(135deg, #1e3a5f 0%, #0f2744 100%);
  color: white;
  border-radius: 16px 16px 0 0;
  padding: 1.25rem 1.5rem;
}

.modal-header--tcg h3 {
  color: white;
  margin: 0;
  font-size: 1.1rem;
}

.modal-header--tcg .modal-close {
  color: white;
  opacity: 0.8;
}

.modal-header--tcg .modal-close:hover {
  opacity: 1;
}

.tcg-guide {
  padding: 1.5rem;
}

.tcg-guide__intro {
  margin-bottom: 1.25rem;
  color: var(--orb-gray-600);
  font-size: 0.9rem;
}

.tcg-guide__steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tcg-guide__step {
  display: flex;
  gap: 1rem;
  padding: 0.75rem;
  background: var(--orb-gray-50);
  border-radius: 10px;
  border-left: 3px solid var(--orb-orange);
}

.tcg-guide__step-num {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orb-orange);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.tcg-guide__step-content {
  flex: 1;
}

.tcg-guide__step-content strong {
  display: block;
  color: var(--orb-gray-800);
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.tcg-guide__step-content span {
  font-size: 0.8rem;
  color: var(--orb-gray-500);
}

.tcg-guide__step-content code {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.25rem 0.5rem;
  background: #e8f4fd;
  color: #1e3a5f;
  border-radius: 4px;
  font-size: 0.75rem;
  font-family: inherit;
  font-weight: 600;
}

.tcg-guide__checklist {
  list-style: none;
  padding: 0;
  margin: 0.35rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
}

.tcg-guide__checklist li {
  font-size: 0.8rem;
  color: var(--orb-gray-600);
}

.tcg-guide__checklist--important {
  flex-direction: column;
  gap: 0.35rem;
}

.tcg-guide__checklist--important li {
  background: #fef3c7;
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
}

.tcg-guide__tip {
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-radius: 8px;
  font-size: 0.8rem;
  color: #166534;
}

/* Mobile adjustments for guide */
@media (max-width: 600px) {
  .modal-content--guide {
    max-width: 95%;
    margin: 0.5rem;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .modal-header--tcg {
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1;
  }
  
  .modal-header--tcg h3 {
    font-size: 1rem;
  }
  
  .tcg-guide {
    padding: 1rem;
  }
  
  .tcg-guide__intro {
    margin-bottom: 1rem;
    font-size: 0.85rem;
  }
  
  .tcg-guide__steps {
    gap: 0.5rem;
  }
  
  .tcg-guide__step {
    padding: 0.6rem;
    gap: 0.6rem;
  }
  
  .tcg-guide__step-num {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }
  
  .tcg-guide__step-content strong {
    font-size: 0.85rem;
  }
  
  .tcg-guide__step-content span {
    font-size: 0.75rem;
  }
  
  .tcg-guide__step-content code {
    font-size: 0.7rem;
    word-break: break-word;
  }
  
  .tcg-guide__checklist {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .tcg-guide__checklist li {
    font-size: 0.75rem;
  }
  
  .tcg-guide__checklist--important li {
    padding: 0.3rem 0.4rem;
    font-size: 0.75rem;
  }
  
  .tcg-guide__tip {
    margin-top: 1rem;
    padding: 0.6rem 0.75rem;
    font-size: 0.75rem;
  }
  
  /* Modal footer responsive */
  .modal-content--guide .modal-footer {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    position: sticky;
    bottom: 0;
    background: white;
    border-top: 1px solid var(--orb-gray-200);
  }
  
  .modal-content--guide .modal-footer .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Optional label styling */
.label-optional {
  font-weight: 400;
  color: var(--orb-gray-500);
  font-size: 0.85em;
}

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

/* Responsive adjustments for listing header */
@media (max-width: 640px) {
  .listing-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .listing-header__title {
    font-size: 1.5rem;
  }
  
  .listing-header__actions {
    width: 100%;
  }
  
  .listing-header__actions .btn {
    flex: 1;
    justify-content: center;
  }
  
  .workflow-visual {
    gap: 0.5rem;
  }
  
  .workflow-step {
    padding: 0.35rem 0.5rem;
    min-width: 60px;
  }
  
  .workflow-step__icon {
    font-size: 1.25rem;
  }
  
  .workflow-step__label {
    font-size: 0.65rem;
  }
  
  .workflow-arrow {
    font-size: 1rem;
  }
  
  .entry-tab__label {
    font-size: 0.75rem;
  }
}

/* ==========================================
   SCROLL BOUNCE FIX - Comprehensive iOS/Mobile
   ========================================== */

/* Prevent iOS rubber-band/bounce scrolling on the main page */
html {
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
}

body {
  overscroll-behavior: none;
  overscroll-behavior-y: none;
  overscroll-behavior-x: none;
  -webkit-overflow-scrolling: touch;
}

/* Home page specific - prevent bounce on dashboard */
.page-index {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.page-index .page-content {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  overscroll-behavior-y: contain;
}

/* Dashboard container also needs scroll containment */
.page-index .dashboard {
  min-height: 100%;
  padding-bottom: 3rem;
}

/* Prevent scroll bounce on modals and overlays */
.modal-overlay,
.scanner-fullscreen,
.drawer,
.loading-overlay {
  overscroll-behavior: contain;
}

/* ==========================================
   MOBILE BUTTON RESPONSIVENESS - All Pages
   ========================================== */

/* Section header action buttons - wrap properly on mobile */
@media (max-width: 768px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .section-header__actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .section-header__actions .btn {
    flex: 1 1 auto;
    min-width: calc(50% - 0.25rem);
    justify-content: center;
    white-space: nowrap;
    font-size: 0.8rem;
    padding: 0.6rem 0.75rem;
  }
  
  .section-header__actions .btn-sm {
    padding: 0.5rem 0.6rem;
    font-size: 0.75rem;
  }
  
  /* Sort controls should be full width */
  .section-header__actions .sort-controls {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .section-header__actions .sort-controls .input-field {
    flex: 1;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .section-header__actions .btn {
    min-width: 100%;
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
  }
  
  /* Stack all buttons vertically on very small screens */
  .section-header__actions {
    flex-direction: column;
  }
  
  .section-header__actions .sort-controls {
    order: -1;
  }
}

/* Page header actions - responsive */
@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .page-header__actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .page-header__actions .btn {
    flex: 1 1 auto;
    min-width: calc(50% - 0.25rem);
    justify-content: center;
    text-align: center;
  }
}

/* Card actions - approve/remove buttons */
@media (max-width: 768px) {
  .card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
  }
  
  .card-actions .btn {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: calc(50% - 0.25rem);
    justify-content: center;
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
  }
  
  .card-actions .btn-lg {
    flex: 1 1 100%;
    min-width: 100%;
  }
  
  .card-actions form {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: calc(50% - 0.25rem);
    display: flex;
  }
  
  .card-actions form .btn {
    flex: 1;
    width: 100%;
  }
}

/* Buysheet page - action buttons */
@media (max-width: 768px) {
  .buysheet-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .buysheet-sidebar {
    width: 100%;
  }
  
  .buysheet-main {
    width: 100%;
  }
  
  /* Quick Add button full width */
  .btn--full {
    width: 100%;
    justify-content: center;
  }
  
  /* Buysheet cards grid - responsive */
  .buysheet-cards-grid {
    gap: 0.75rem;
  }
  
  /* Buysheet section header - fix button overlap */
  .page-riftbound-buysheet .section-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  
  .page-riftbound-buysheet .section-header__actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .page-riftbound-buysheet .section-header__actions .sort-controls {
    width: 100%;
    order: -1;
    margin-bottom: 0.25rem;
  }
  
  .page-riftbound-buysheet .section-header__actions .btn {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: calc(50% - 0.25rem);
    justify-content: center;
    font-size: 0.85rem;
    padding: 0.65rem 0.75rem;
  }
  
  .page-riftbound-buysheet .section-header__actions .btn-sm {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: calc(50% - 0.25rem);
  }
}

@media (max-width: 480px) {
  .page-riftbound-buysheet .section-header__actions .btn {
    flex: 1 1 100%;
    min-width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  
  .page-riftbound-buysheet .section-header__actions .btn-sm {
    flex: 1 1 100%;
    min-width: 100%;
  }
}

/* Riftbound intake page - approve/buy sheet buttons */
@media (max-width: 768px) {
  .match-actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
  }
  
  .match-actions .btn {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: calc(50% - 0.25rem);
    justify-content: center;
    font-size: 0.8rem;
    padding: 0.6rem 0.5rem;
  }
  
  /* Riftbound intake section header - fix button layout */
  .page-riftbound .section-header__actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .page-riftbound .section-header__actions .btn {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: calc(50% - 0.25rem);
    justify-content: center;
    font-size: 0.8rem;
    padding: 0.6rem 0.5rem;
  }
  
  .page-riftbound .section-header__actions .select-all-toggle {
    width: 100%;
    order: -1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 0.25rem;
  }
  
  .page-riftbound .section-header__actions form {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: calc(50% - 0.25rem);
    display: flex;
  }
  
  .page-riftbound .section-header__actions form .btn {
    width: 100%;
    flex: 1;
  }
}

@media (max-width: 480px) {
  .match-actions .btn {
    flex: 1 1 100%;
    min-width: 100%;
    font-size: 0.85rem;
    padding: 0.75rem 0.75rem;
  }
  
  .page-riftbound .section-header__actions .btn,
  .page-riftbound .section-header__actions form {
    flex: 1 1 100%;
    min-width: 100%;
  }
}

/* Consignment toggle - responsive */
@media (max-width: 768px) {
  .consignment-toggle {
    width: 100%;
    margin-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
  }
  
  .consignment-toggle .toggle-label {
    flex-shrink: 0;
  }
  
  .consignment-toggle .input-with-prefix {
    flex: 1;
    min-width: 100px;
  }
}

/* Review section header - wrap buttons properly */
@media (max-width: 768px) {
  .review-section .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .review-section .section-header__actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .review-section .section-header__actions .btn {
    width: 100%;
    justify-content: center;
    font-size: 0.8rem;
    padding: 0.6rem 0.5rem;
  }
  
  .review-section .section-header__actions form {
    display: contents;
  }
  
  /* Select all toggle should span full width */
  .review-section .section-header__actions .select-all-toggle {
    grid-column: span 2;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .review-section .section-header__actions {
    grid-template-columns: 1fr;
  }
  
  .review-section .section-header__actions .select-all-toggle {
    grid-column: span 1;
  }
}

/* Intake card - responsive */
@media (max-width: 768px) {
  .intake-card {
    padding: 1rem;
  }
  
  .intake-card__header {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .intake-card__header h2 {
    font-size: 0.95rem;
  }
}

/* Offer rate group - responsive */
@media (max-width: 480px) {
  .offer-rate-group {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .offer-rate-card {
    padding: 0.75rem;
  }
  
  .offer-rate-card__title {
    font-size: 0.9rem;
  }
}

/* Quick card links on home page */
@media (max-width: 768px) {
  .quick-access {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .quick-card {
    width: 100%;
  }
}

/* Modal buttons - responsive */
@media (max-width: 480px) {
  .modal-footer {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .modal-footer .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Form action buttons */
@media (max-width: 768px) {
  .form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
  }
  
  .form-actions .btn {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: calc(50% - 0.25rem);
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .form-actions .btn {
    flex: 1 1 100%;
  }
}

/* Upload panel submit button */
@media (max-width: 768px) {
  .upload-panel .btn-upload,
  .upload-panel .btn-primary,
  .intake-form .btn-primary,
  .intake-form .btn-upload {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
  }
}

/* Price upload form - responsive */
@media (max-width: 768px) {
  .file-upload-modern {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .file-upload-modern .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Action bar - responsive */
@media (max-width: 768px) {
  .action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .action-bar .btn {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: calc(50% - 0.25rem);
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .action-bar {
    flex-direction: column;
  }
  
  .action-bar .btn {
    width: 100%;
  }
}

/* Buy hub header actions */
@media (max-width: 768px) {
  .intake-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .intake-grid .intake-card {
    width: 100%;
  }
}

/* Buylist page - responsive buttons */
@media (max-width: 768px) {
  .page-buy .page-header__actions {
    width: 100%;
    display: flex;
  }
  
  .page-buy .page-header__actions .btn {
    flex: 1;
    justify-content: center;
  }
  
  .page-buy .action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .page-buy .action-bar .btn {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: calc(50% - 0.25rem);
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .page-buy .action-bar .btn {
    flex: 1 1 100%;
    min-width: 100%;
  }
}

/* Label reprints page - responsive buttons */
@media (max-width: 768px) {
  .page-reprint .reprint-header__actions {
    width: auto;
    flex-shrink: 0;
  }
  
  .page-reprint .reprint-header__actions .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
  
  /* Queue panel footer buttons */
  .page-reprint .queue-panel__footer {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .page-reprint .queue-panel__actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .page-reprint .queue-panel__actions .btn {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: calc(50% - 0.25rem);
    justify-content: center;
    padding: 0.65rem 0.75rem;
  }
  
  .page-reprint .queue-panel__actions .btn-primary {
    flex: 1 1 100%;
    order: -1;
    margin-bottom: 0.25rem;
  }
}

@media (max-width: 480px) {
  .page-reprint .queue-panel__actions .btn {
    flex: 1 1 100%;
    min-width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
}

/* Search row button - responsive */
@media (max-width: 768px) {
  .search-row {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .search-row .search-input-wrap {
    width: 100%;
  }
  
  .search-row .btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
  }
  
  .search-row .btn__text {
    display: inline;
    margin-left: 0.35rem;
  }
}

/* Batches drawer buttons */
@media (max-width: 768px) {
  .batches-drawer .save-batch-row {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .batches-drawer .save-batch-row .btn {
    width: 100%;
    justify-content: center;
  }
  
  .batch-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
    justify-content: flex-end;
  }
  
  .batch-card__actions .btn {
    flex: 1 1 auto;
    min-width: 60px;
    justify-content: center;
  }
}