: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;
}

/* Inline save batch row (in queue panel footer) */
.save-batch-row--inline {
  margin-bottom: 0;
  padding: 0.75rem;
  background: var(--orb-gray-100);
  border-radius: var(--orb-radius-md);
  border: 1px dashed var(--orb-gray-300);
}

.save-batch-row--inline .input-field {
  min-height: 40px;
}

.save-batch-row--inline .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

/* Mobile responsive for inline save batch row */
@media (max-width: 480px) {
  .save-batch-row--inline {
    flex-direction: column;
  }

  .save-batch-row--inline .btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }
}

.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,
.member-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: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: linear-gradient(145deg, #fafafa 0%, #f0f0ef 100%);
  border-radius: var(--orb-radius-lg);
  border: 1px solid var(--orb-gray-200);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
}

.comparison-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--orb-white);
  border-radius: var(--orb-radius-md);
  padding: 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  border: 1px solid var(--orb-gray-100);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.comparison-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}

.comparison-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.625rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--orb-gray-100);
}

.comparison-card__label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--orb-gray-600);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

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

.comparison-card--reference .comparison-card__label {
  color: #059669;
}

.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: linear-gradient(145deg, #f8f8f8 0%, #f0f0f0 100%);
  border-radius: var(--orb-radius-md);
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
  border: 1px 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;
  transition: transform 0.3s ease;
}

.comparison-card:hover .comparison-card__image img {
  transform: scale(1.02);
}

.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;
}

/* Mismatch warning for reference images */
.comparison-card__mismatch-badge {
  background: #fef3c7;
  color: #92400e;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  margin-left: 6px;
  cursor: help;
}

.comparison-card__image--mismatch {
  border: 3px solid #f59e0b;
  border-radius: 6px;
  position: relative;
}

.comparison-card__image--mismatch::before {
  content: "VERIFY";
  position: absolute;
  top: 4px;
  right: 4px;
  background: #f59e0b;
  color: white;
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 700;
  z-index: 10;
}

.comparison-card__mismatch-warning {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #92400e;
  font-size: 0.65rem;
  padding: 6px 8px;
  border-radius: 4px;
  margin-top: 6px;
  line-height: 1.3;
}

.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 */
.comparison-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
  gap: 0.5rem;
}

.comparison-indicator::before {
  content: '';
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--orb-gray-300), transparent);
  border-radius: 1px;
}

.comparison-indicator::after {
  content: '';
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--orb-gray-300), transparent);
  border-radius: 1px;
}

.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);
}

/* Cert Panel for Graded Cards - Elegant Light Design */
.comparison-card__cert-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  gap: 1rem;
  min-height: 200px;
  background: linear-gradient(145deg, #fafaf9 0%, #f5f5f4 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--orb-radius-md);
  position: relative;
  overflow: hidden;
}

/* Subtle decorative pattern */
.comparison-card__cert-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(242, 107, 58, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(34, 197, 94, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.cert-panel__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  position: relative;
  z-index: 1;
}

.cert-panel__grader {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orb-orange);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.25rem 0.75rem;
  background: rgba(242, 107, 58, 0.1);
  border-radius: 4px;
}

.cert-panel__grade {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--orb-gray-700);
  line-height: 1;
  letter-spacing: -0.02em;
}

.cert-panel__number {
  font-size: 0.8rem;
  color: var(--orb-gray-500);
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  background: rgba(0, 0, 0, 0.04);
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  position: relative;
  z-index: 1;
}

.cert-panel__verify-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.25);
  position: relative;
  z-index: 1;
}

.cert-panel__verify-btn:hover {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35);
  text-decoration: none;
  color: white;
}

.cert-panel__note {
  font-size: 0.7rem;
  color: var(--orb-gray-400);
  text-align: center;
  max-width: 200px;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

/* Cert Footer for Official Images - Light Design */
.comparison-card__cert-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 1rem;
  background: linear-gradient(145deg, #f8f8f7 0%, #f0efee 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0 0 var(--orb-radius-md) var(--orb-radius-md);
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cert-footer__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  background: var(--orb-orange);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cert-footer__number {
  font-size: 0.75rem;
  color: var(--orb-gray-500);
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  background: rgba(0, 0, 0, 0.04);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.cert-footer__link {
  font-size: 0.75rem;
  color: var(--orb-green);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

/* Compact cert footer for graded card reference */
.comparison-card__cert-footer--compact {
  padding: 0.5rem 0.75rem;
  justify-content: center;
  gap: 1rem;
}

/* Fetch Reference Panel for graded cards without reference images */
.comparison-card__fetch-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
  border: 2px dashed var(--orb-gray-300);
  border-radius: var(--orb-radius-md);
  min-height: 180px;
  gap: 0.625rem;
  position: relative;
  overflow: hidden;
}

.comparison-card__fetch-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    rgba(0,0,0,0.015) 8px,
    rgba(0,0,0,0.015) 16px
  );
  pointer-events: none;
}

.fetch-panel__icon {
  font-size: 2.25rem;
  opacity: 0.4;
  filter: grayscale(40%);
}

.fetch-panel__text {
  font-size: 0.75rem;
  color: var(--orb-gray-500);
  text-align: center;
  font-weight: 500;
}

.fetch-panel__btn {
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  border-radius: var(--orb-radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
  position: relative;
  z-index: 1;
}

.fetch-panel__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.45);
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

.fetch-panel__btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.fetch-panel__cert {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--orb-gray-200);
  width: 100%;
  justify-content: center;
}

.fetch-panel__warning {
  font-size: 0.75rem;
  color: #dc2626;
  font-weight: 600;
  margin-top: 0.5rem;
  padding: 0.25rem 0.5rem;
  background: #fef2f2;
  border-radius: 4px;
}

.fetch-panel__hint {
  font-size: 0.7rem;
  color: #6b7280;
  font-weight: 500;
  margin-top: 0.5rem;
  font-style: italic;
}

.comparison-card__fetch-panel--raw {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  border: 2px dashed #9ca3af;
}

.cert-mini-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  background: var(--orb-gray-200);
  border-radius: 4px;
  color: var(--orb-gray-700);
  text-transform: uppercase;
}

.cert-mini-number {
  font-size: 0.7rem;
  color: var(--orb-gray-500);
  font-family: var(--orb-font-mono);
}

.cert-footer__link:hover {
  color: #16a34a;
  text-decoration: none;
}

/* 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);
  /* Changed from overflow:hidden to visible - prevents clipping graded banner */
  overflow: visible;
  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;
  }
}

/* ============================================
   GRADED CARD STYLES (PSA, BGS, CGC, SGC)
   ============================================ */

.graded-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  /* Extra left padding to accommodate the selection checkbox overlay */
  padding: 0.6rem 1rem 0.6rem 2.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--orb-radius-lg) var(--orb-radius-lg) 0 0;
  /* No negative margins - banner stays within card bounds */
  margin: 0;
}

/* Grader-specific colors */
.graded-banner--psa {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: white;
}

.graded-banner--bgs {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  color: white;
}

.graded-banner--cgc {
  background: linear-gradient(135deg, #166534 0%, #22c55e 100%);
  color: white;
}

.graded-banner--sgc {
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
  color: white;
}

.graded-banner--unknown {
  background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
  color: white;
}

.graded-banner__badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.graded-banner__grade {
  background: rgba(255, 255, 255, 0.25);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 1rem;
}

.graded-banner__cert {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.9;
}

.graded-banner__verify {
  color: white;
  text-decoration: none;
  margin-left: 0.25rem;
  opacity: 0.8;
  transition: opacity 0.15s ease;
}

.graded-banner__verify:hover {
  opacity: 1;
}

.graded-banner__ebay {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

.graded-banner__price {
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.25);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.graded-banner__ebay-info {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

.graded-banner__verify-icon {
  margin-left: 0.25rem;
  font-size: 0.7rem;
}

/* Buysheet graded banner adjustments */
.buysheet-card__info .graded-banner {
  margin: 0.5rem 0;
  border-radius: var(--orb-radius-sm);
  font-size: 0.75rem;
  padding: 0.4rem 0.6rem;
}

.graded-banner__subgrades {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.35rem;
  font-size: 0.65rem;
}

.graded-banner__subgrades .subgrade {
  background: var(--orb-gray-200);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-weight: 600;
  color: var(--orb-gray-700);
}

/* Graded price highlight in buysheet */
.graded-price {
  color: #7c3aed !important;
  font-weight: 700;
}

.graded-price--missing {
  color: #ea580c !important;
  font-weight: 700;
  font-size: 0.75rem !important;
  background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid #fb923c;
}

/* BGS Subgrades */
.graded-subgrades {
  display: flex;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: var(--orb-gray-100);
  margin: -0.75rem -1rem 0.75rem -1rem;
  font-size: 0.7rem;
  justify-content: center;
}

.graded-subgrades .subgrade {
  background: var(--orb-gray-200);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  font-weight: 600;
  color: var(--orb-gray-700);
}

@media (max-width: 640px) {
  .graded-banner {
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.4rem 0.5rem;
    font-size: 0.7rem;
  }

  .graded-banner__ebay {
    margin-left: 0;
  }

  .graded-subgrades {
    gap: 0.25rem;
    font-size: 0.6rem;
  }
}

/* Pricing Confidence Indicators */
.confidence-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.confidence-badge--high {
  background: rgba(34, 197, 94, 0.2);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.confidence-badge--medium {
  background: rgba(234, 179, 8, 0.2);
  color: #ca8a04;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.confidence-badge--low {
  background: rgba(239, 68, 68, 0.2);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.confidence-badge--none {
  background: rgba(107, 114, 128, 0.2);
  color: #6b7280;
  border: 1px solid rgba(107, 114, 128, 0.3);
}

/* Comp Viewer Button */
.comp-viewer-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.65rem;
  font-weight: 500;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  color: inherit;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.comp-viewer-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Comp Viewer Dropdown */
.comp-viewer-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  background: white;
  border-radius: var(--orb-radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 0.75rem;
  margin-top: 0.5rem;
  max-width: 400px;
  display: none;
}

.comp-viewer-dropdown.active {
  display: block;
}

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

.comp-viewer-dropdown__title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--orb-gray-800);
}

.comp-viewer-dropdown__close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--orb-gray-500);
  cursor: pointer;
  line-height: 1;
}

.comp-viewer-dropdown__list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 200px;
  overflow-y: auto;
}

.comp-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--orb-gray-100);
  gap: 0.5rem;
}

.comp-item:last-child {
  border-bottom: none;
}

.comp-item__title {
  flex: 1;
  font-size: 0.7rem;
  color: var(--orb-gray-700);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.comp-item__title a {
  color: inherit;
  text-decoration: none;
}

.comp-item__title a:hover {
  color: var(--orb-primary);
  text-decoration: underline;
}

.comp-item__price {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--orb-success);
  white-space: nowrap;
}

.comp-item__meta {
  display: flex;
  gap: 0.5rem;
  font-size: 0.6rem;
  color: var(--orb-gray-500);
}

.comp-item__match {
  display: inline-block;
  padding: 0.1rem 0.25rem;
  border-radius: 3px;
  font-size: 0.55rem;
  font-weight: 600;
}

.comp-item__match--high {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
}

.comp-item__match--medium {
  background: rgba(234, 179, 8, 0.15);
  color: #ca8a04;
}

.comp-item__match--low {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
}

/* Pricing Notes (warning message) */
.pricing-notes {
  font-size: 0.65rem;
  color: #ca8a04;
  background: rgba(234, 179, 8, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.pricing-notes__icon {
  font-size: 0.8rem;
}

/* 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;
}

/* Comp Override Input for Graded Cards */
.comp-override {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

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

.comp-override__input {
  width: 70px;
  padding: 0.2rem 0.4rem;
  font-size: 0.75rem;
  border: 1px solid var(--orb-gray-300);
  border-radius: var(--orb-radius-sm);
  background: var(--orb-white);
  color: var(--orb-gray-700);
  text-align: right;
}

.comp-override__input:focus {
  outline: none;
  border-color: var(--orb-primary);
  box-shadow: 0 0 0 2px rgba(var(--orb-primary-rgb), 0.15);
}

.comp-override__input::placeholder {
  color: var(--orb-gray-400);
  font-size: 0.65rem;
}

/* 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;
}

/* Variant selector - for Staff, Prerelease, 1st Edition, etc. */
.detail-chip--variant {
  min-width: 200px;
  background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 100%);
  border: 1px solid rgba(59, 130, 246, 0.5);
}

.detail-chip--variant .detail-chip__label {
  color: #93c5fd;
}

.detail-chip--variant .detail-chip__select {
  min-width: 180px;
  font-size: 0.7rem;
}

/* Alert state for variants that need review */
.detail-chip--alert {
  background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
  border: 1px solid rgba(239, 68, 68, 0.6);
  animation: variant-alert-pulse 2s ease-in-out infinite;
}

.detail-chip--alert .detail-chip__label {
  color: #fca5a5;
}

.chip-alert-badge {
  font-size: 0.7rem;
  margin-left: 0.2rem;
}

@keyframes variant-alert-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0);
  }
}

/* Variant selection confirmation animation */
.variant-select.variant-updated {
  background: rgba(34, 197, 94, 0.3) !important;
  transition: background 0.3s ease;
}

/* Style for high-value variant options */
.variant-select option[data-staff="true"],
.variant-select option[data-prerelease="true"] {
  font-weight: bold;
  background: #fef3c7;
}

/* 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);
}

/* ============================================
   CARD INTAKE UI CLEANUP - Compact Styles
   ============================================ */

/* Section Header Actions - Compact */
.section-header__actions--compact {
  gap: 0.5rem;
}

/* Actions Dropdown (Section Header) */
.actions-dropdown {
  position: relative;
  display: inline-block;
}

.actions-dropdown__toggle .caret {
  font-size: 0.7rem;
  margin-left: 0.25rem;
}

.actions-dropdown__menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 100;
  min-width: 180px;
  margin-top: 4px;
  background: var(--orb-white);
  border: 1px solid var(--orb-gray-200);
  border-radius: var(--orb-radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.actions-dropdown__menu.open {
  display: block;
}

.actions-dropdown__item {
  display: block;
  width: 100%;
  padding: 0.6rem 1rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 0.85rem;
  color: var(--orb-gray-700);
  cursor: pointer;
  transition: background 0.15s ease;
}

.actions-dropdown__item:hover {
  background: var(--orb-gray-50);
}

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

.actions-dropdown__item--danger {
  color: #dc2626;
}

.actions-dropdown__item--danger:hover {
  background: #fef2f2;
}

.actions-dropdown__divider {
  height: 1px;
  margin: 0.25rem 0;
  background: var(--orb-gray-200);
}

/* Card Actions Dropdown (Per-card) */
.card-actions-dropdown {
  position: relative;
  display: inline-block;
}

.card-actions-dropdown__toggle {
  padding: 0.5rem 0.75rem;
  min-width: 32px;
}

.card-actions-dropdown__toggle .caret {
  font-size: 1rem;
  letter-spacing: 2px;
}

.card-actions-dropdown__menu {
  display: none;
  position: absolute;
  bottom: 100%;
  right: 0;
  z-index: 100;
  min-width: 150px;
  margin-bottom: 4px;
  background: var(--orb-white);
  border: 1px solid var(--orb-gray-200);
  border-radius: var(--orb-radius-md);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
}

.card-actions-dropdown__menu.open {
  display: block;
}

.card-actions-dropdown__item {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 0.8rem;
  color: var(--orb-gray-700);
  cursor: pointer;
  transition: background 0.15s ease;
}

.card-actions-dropdown__item:hover {
  background: var(--orb-gray-50);
}

.card-actions-dropdown__item--danger {
  color: #dc2626;
}

.card-actions-dropdown__item--danger:hover {
  background: #fef2f2;
}

/* Compact Approve Button */
.btn-approve {
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Price Badge - Pre-release / No Price */
.price-badge--prerelease {
  background: linear-gradient(135deg, var(--orb-gray-400) 0%, var(--orb-gray-500) 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: var(--orb-radius-md);
  box-shadow: none;
}

/* =====================================================
   GRADED CARD PRICING - Distinct Visual Treatment
   Graded cards use eBay comps, NOT TCGPlayer prices
   ===================================================== */
.price-block__main--graded {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.price-badge--graded {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: var(--orb-radius-md);
  box-shadow: 0 2px 4px rgba(109, 40, 217, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.price-badge--graded::before {
  content: "🏆";
  font-size: 0.9rem;
}

.price-badge--comp-required {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: var(--orb-radius-md);
  box-shadow: 0 2px 4px rgba(234, 88, 12, 0.3);
  animation: pulse-attention 2s infinite;
}

@keyframes pulse-attention {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.02); }
}

.price-source--graded {
  font-size: 0.7rem;
  font-weight: 600;
  color: #7c3aed;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price-source--manual {
  font-size: 0.7rem;
  font-weight: 600;
  color: #16a34a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.graded-info {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  padding: 0.25rem 0.5rem;
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  border: 1px solid #c4b5fd;
  border-radius: var(--orb-radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: #6d28d9;
}

.graded-info .cert-num {
  font-size: 0.65rem;
  font-weight: 500;
  color: #8b5cf6;
  opacity: 0.8;
}

/* Comp Override Input - Enhanced for graded cards */
.comp-override {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.comp-override__label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--orb-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comp-override__input {
  width: 80px;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--orb-gray-300);
  border-radius: var(--orb-radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: right;
  transition: all 0.2s ease;
}

.comp-override__input:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
  outline: none;
}

.comp-override__input::placeholder {
  color: var(--orb-gray-400);
  font-weight: 400;
}

/* Compact Card Details Row */
.card-details-row--compact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--orb-gray-100);
}

.card-meta-inline {
  font-size: 0.8rem;
  color: var(--orb-gray-600);
}

.meta-divider {
  margin: 0 0.35rem;
  color: var(--orb-gray-400);
}

.promo-inline-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.4rem;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  border-radius: 3px;
  text-transform: uppercase;
  vertical-align: middle;
}

/* =====================================================
   VALIDATION BANNERS - AI Hallucination Detection
   ===================================================== */
.validation-banner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--orb-radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
}

.validation-banner--hallucination {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 1px solid #fca5a5;
  color: #b91c1c;
}

.validation-banner--warning {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fcd34d;
  color: #92400e;
}

.validation-banner--review {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #93c5fd;
  color: #1e40af;
}

.validation-icon {
  font-size: 0.9rem;
}

.validation-text {
  flex: 1;
}

.validation-suggestions-btn {
  padding: 0.2rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid currentColor;
  border-radius: var(--orb-radius-sm);
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.15s;
}

.validation-suggestions-btn:hover {
  opacity: 1;
}

.validation-suggestions-panel {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid currentColor;
  border-radius: var(--orb-radius-sm);
}

.suggestions-header {
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  opacity: 0.7;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  font-size: 0.7rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-name {
  flex: 1;
  font-weight: 600;
}

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

.suggestion-score {
  font-size: 0.65rem;
  color: var(--orb-gray-400);
}

.suggestions-empty {
  font-size: 0.7rem;
  color: var(--orb-gray-500);
  font-style: italic;
}

.card-selectors-inline {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.inline-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 0.375rem 1.5rem 0.375rem 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--orb-gray-700);
  background: var(--orb-white);
  border: 1px solid var(--orb-gray-300);
  border-radius: var(--orb-radius-sm);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.4rem center;
  min-height: 36px; /* Touch target baseline */
  transition: all 0.15s ease;
}

.inline-select:hover {
  border-color: var(--orb-orange);
}

.inline-select:focus {
  outline: none;
  border-color: var(--orb-orange);
  box-shadow: 0 0 0 2px rgba(242, 107, 58, 0.15);
}

/* Variant dropdown - most important selector for card pricing */
.inline-select--variant {
  min-width: 180px;
  max-width: 100%;
  background-color: #f0f9ff;
  border-color: #93c5fd;
  font-weight: 600;
  /* Price is first in text, make it stand out */
  color: #1e40af;
}

.inline-select--variant:hover {
  border-color: #3b82f6;
  background-color: #e0f2fe;
}

.inline-select--variant:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.inline-select--alert {
  background-color: #fef2f2;
  border-color: #fca5a5;
}

.finish-locked-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #92400e;
  background: #fef3c7;
  border-radius: var(--orb-radius-sm);
}

/* Status Dot - Minimal indicator */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-left: auto;
}

.status-dot--success {
  background: #22c55e;
}

.status-dot--warning {
  background: #f59e0b;
}

/* Quick Actions Bar - Icon toolbar */
.quick-actions-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  padding: 0.35rem 0.75rem;
  background: var(--orb-gray-50);
  border-bottom: 1px solid var(--orb-gray-100);
}

.quick-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--orb-radius-sm);
  color: var(--orb-gray-500);
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-action:hover {
  background: var(--orb-white);
  border-color: var(--orb-gray-200);
  color: var(--orb-gray-700);
}

.quick-action--warning:hover {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #d97706;
}

.quick-action__icon {
  line-height: 1;
}

/* Minimal empty reference placeholder */
.comparison-card__placeholder--minimal {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  background: var(--orb-gray-50);
  border: 1px dashed var(--orb-gray-200);
  border-radius: var(--orb-radius-md);
}

.placeholder-icon {
  font-size: 1.5rem;
  color: var(--orb-gray-300);
}

/* Mobile responsive for compact UI */
@media (max-width: 600px) {
  .section-header__actions--compact {
    flex-wrap: wrap;
  }

  .card-details-row--compact {
    gap: 0.35rem;
  }

  .card-meta-inline {
    font-size: 0.75rem;
    flex-basis: 100%;
  }

  /* MOBILE: Increase touch targets, not decrease them! */
  .inline-select {
    font-size: 0.875rem;
    padding: 0.5rem 1.5rem 0.5rem 0.625rem;
    min-height: 44px; /* Apple HIG touch target */
  }

  /* Variant dropdown gets full width on mobile for easy tapping */
  .inline-select--variant {
    width: 100%;
    min-width: auto;
    font-size: 0.9375rem;
  }

  /* Card selectors should stack on mobile */
  .card-selectors-inline {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .quick-actions-bar {
    padding: 0.25rem 0.5rem;
  }

  .quick-action {
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
  }

  .btn-approve {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .card-actions-dropdown__toggle {
    padding: 0.4rem 0.6rem;
  }
}

/* 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;
  }

  /* Preserve compact buttons on mobile (e.g., Save/Load in batches) */
  .btn.btn-sm {
    min-height: 38px;
    padding: 0.45rem 0.9rem;
    font-size: 0.9rem;
    box-shadow: 0 6px 12px rgba(242, 107, 58, 0.2);
  }

  .btn.btn-sm.btn-secondary,
  .btn.btn-sm.btn-neutral {
    box-shadow: none;
  }

  /* 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;
  }
}

/* === CARD INTAKE PAGE === */
@media (max-width: 768px) {

  /* Page header */
  .card-intake-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 - KEEP side-by-side on mobile for comparison */
  .card-comparison-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.5rem;
  }

  .comparison-card {
    flex-direction: column;
    padding: 0.5rem;
  }

  .comparison-card__header {
    margin-bottom: 0.4rem;
    padding-bottom: 0.35rem;
  }

  .comparison-card__label {
    font-size: 0.6rem;
  }

  .comparison-card__image {
    aspect-ratio: 5/7;
    width: 100%;
    height: auto;
  }

  .comparison-indicator {
    display: none;
  }

  /* Fetch panel mobile adjustments */
  .comparison-card__fetch-panel {
    min-height: 140px;
    padding: 1rem 0.5rem;
    gap: 0.5rem;
  }

  .fetch-panel__icon {
    font-size: 1.5rem;
  }

  .fetch-panel__text {
    font-size: 0.65rem;
  }

  .fetch-panel__btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.7rem;
  }

  .fetch-panel__cert {
    font-size: 0.6rem;
  }

  /* 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 - mobile column layout */
  .batch-card {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
  }

  .batch-card__main {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    width: 100%;
  }

  .batch-card__title {
    font-size: 0.9rem;
    white-space: normal;
    word-break: break-word;
  }

  .batch-card__meta {
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .batch-card__actions {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--orb-gray-200);
  }

  .batch-card__actions .btn {
    flex: 1;
    justify-content: center;
    min-height: 40px;
  }
}

@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;
}

/* ========================================
   TCG 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;
}

/* Reference Image Container - Side by Side Layout */
.buysheet-card__images-container {
  display: flex;
  gap: 4px;
  align-items: flex-start;
}

.buysheet-card__image--scanned {
  border: 2px solid var(--orb-gray-300);
}

.buysheet-card__image--reference {
  border: 1px solid var(--orb-gray-200);
  position: relative;
  background: var(--orb-gray-100);
}

.buysheet-card__image--reference img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: white;
}

.buysheet-card__confidence {
  position: absolute;
  bottom: 2px;
  right: 2px;
  padding: 1px 4px;
  font-size: 0.6rem;
  font-weight: 700;
  border-radius: 3px;
  color: white;
}

.confidence-high {
  background: #22c55e;
}

.confidence-medium {
  background: #f59e0b;
}

.confidence-low {
  background: #ef4444;
}

.buysheet-card__placeholder--ref {
  background: var(--orb-gray-50);
}

.ref-missing {
  font-size: 1.2rem;
  opacity: 0.5;
}

.ref-label {
  font-size: 0.55rem;
  color: var(--orb-gray-400);
  text-transform: uppercase;
}

/* Reference image loading state */
.ref-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--orb-gray-50);
}

.loading-dot {
  font-size: 2rem;
  color: var(--orb-primary);
  animation: pulse-dot 1s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Reference image verify link */
.ref-verify-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 1.2rem;
  color: var(--orb-primary);
  text-decoration: none;
  transition: transform 0.15s ease;
}

.ref-verify-link:hover {
  transform: scale(1.2);
}

.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);
}

/* Cash and Credit offer differentiation */
.buysheet-card__offer-price--cash .price-value {
  color: #22c55e; /* Green for cash */
}

.buysheet-card__offer-price--credit .price-value {
  color: #3b82f6; /* Blue for credit */
}

.buysheet-card__offer-price--cash .price-label,
.buysheet-card__offer-price--credit .price-label {
  font-size: 0.6rem;
}

/* Totals section cash/credit styling */
.buysheet-totals__row--cash .buysheet-totals__value--highlight {
  color: #22c55e;
  font-size: 1.2rem;
  font-weight: 700;
}

.buysheet-totals__row--credit .buysheet-totals__value--highlight {
  color: #3b82f6;
  font-size: 1.2rem;
  font-weight: 700;
}

/* Quantity input for buysheet cards */
.buysheet-card__quantity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.buysheet-card__quantity .qty-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--orb-gray-500);
}

.buysheet-qty-input {
  width: 50px !important;
  text-align: center;
  font-weight: 600;
  padding: 0.25rem 0.35rem !important;
  font-size: 0.9rem;
}

.buysheet-qty-input::-webkit-inner-spin-button,
.buysheet-qty-input::-webkit-outer-spin-button {
  opacity: 1;
  height: 20px;
}

/* Game badges for buysheet cards */
.buysheet-card__game-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-right: 0.25rem;
}

.buysheet-card__game-badge--pokemon {
  background: #FFCB05;
  color: #2D5A93;
}

.buysheet-card__game-badge--magic {
  background: #8B4513;
  color: #fff;
}

.buysheet-card__game-badge--yugioh {
  background: #6B1C8A;
  color: #FFD700;
}

.buysheet-card__game-badge--lorcana {
  background: #1E3A5F;
  color: #FFD700;
}

.buysheet-card__game-badge--riftbound {
  background: #0A1F2F;
  color: #00D4AA;
}

/* Shopify synced badge */
.buysheet-card__synced-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: linear-gradient(135deg, #5E8E3E 0%, #96C955 100%);
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: var(--orb-radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  z-index: 5;
}

.buysheet-card--synced {
  opacity: 0.85;
  border-color: #5E8E3E !important;
}

.buysheet-card--synced::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(94, 142, 62, 0.1) 0%, rgba(150, 201, 85, 0.05) 100%);
  pointer-events: none;
  border-radius: inherit;
}

/* Card selection checkbox */
.buysheet-card__checkbox {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10;
  cursor: pointer;
}

.buysheet-card__checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.buysheet-card__checkbox .checkbox-custom {
  display: block;
  width: 22px;
  height: 22px;
  background: white;
  border: 2px solid var(--orb-gray-300);
  border-radius: 4px;
  transition: all 0.15s ease;
}

.buysheet-card__checkbox:hover .checkbox-custom {
  border-color: var(--orb-primary);
}

.buysheet-card__checkbox input:checked + .checkbox-custom {
  background: var(--orb-primary);
  border-color: var(--orb-primary);
}

.buysheet-card__checkbox input:checked + .checkbox-custom::after {
  content: '✓';
  display: block;
  text-align: center;
  line-height: 18px;
  font-size: 14px;
  font-weight: bold;
  color: white;
}

/* Selected card highlight */
.buysheet-card--selected {
  border-color: var(--orb-primary) !important;
  box-shadow: 0 0 0 2px rgba(248, 115, 74, 0.2), var(--orb-shadow-md);
}

/* Buysheet Responsive Styles */
@media (max-width: 768px) {
  .buysheet-card {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
    gap: 0.5rem;
    padding: 0.75rem;
  }

  .buysheet-card__images-container {
    grid-column: 1;
    grid-row: 1 / 3;
    flex-direction: column;
    gap: 2px;
  }

  .buysheet-card__image {
    width: 50px;
    height: 65px;
  }

  .buysheet-card__info {
    grid-column: 2;
    grid-row: 1;
  }

  .buysheet-card__name {
    font-size: 0.9rem;
  }

  .buysheet-card__details {
    font-size: 0.7rem;
  }

  .buysheet-card__quantity {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }

  .buysheet-card__pricing {
    grid-column: 1 / -1;
    grid-row: 3;
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--orb-gray-100);
  }

  .buysheet-card__market-price,
  .buysheet-card__offer-price {
    text-align: center;
    flex: 1;
  }

  .buysheet-card__remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
  }
}

@media (max-width: 480px) {
  .buysheet-card__images-container {
    flex-direction: row;
    gap: 4px;
  }

  .buysheet-card__image {
    width: 45px;
    height: 60px;
  }

  .buysheet-card__name {
    font-size: 0.85rem;
  }

  .buysheet-card__selects {
    flex-wrap: wrap;
  }

  .buysheet-card__selects select {
    font-size: 0.7rem;
    padding: 0.3rem 0.4rem;
  }
}

/* Selection controls in header */
.selection-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.select-all-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--orb-gray-700);
}

.select-all-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--orb-primary);
}

.selection-count {
  font-size: 0.8rem;
  color: var(--orb-primary);
  font-weight: 600;
}

/* Bulk actions container */
.bulk-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(248, 115, 74, 0.1);
  border-radius: var(--orb-radius-md);
  border: 1px solid rgba(248, 115, 74, 0.3);
}

/* Button group for push + labels */
.btn-group {
  display: inline-flex;
  border-radius: var(--orb-radius-md);
  overflow: hidden;
}

.btn-group .btn {
  border-radius: 0;
}

.btn-group .btn:first-child {
  border-radius: var(--orb-radius-md) 0 0 var(--orb-radius-md);
}

.btn-group .btn:last-child {
  border-radius: 0 var(--orb-radius-md) var(--orb-radius-md) 0;
  border-left: 1px solid rgba(255,255,255,0.3);
}

.btn-icon {
  padding: 0.5rem 0.65rem !important;
  min-width: auto !important;
}

/* ============================================
   TCG Buysheet Mobile Responsive Fixes
   ============================================ */

/* Mobile-first: Stack everything on small screens */
@media (max-width: 768px) {
  /* Dashboard container - full width on mobile */
  .dashboard,
  .dashboard--wide {
    max-width: 100%;
    padding: 1rem;
  }

  /* Page header - stack on mobile */
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 0;
  }

  .page-header__title h1 {
    font-size: 1.35rem;
  }

  .page-header__actions {
    width: 100%;
  }

  .page-header__actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Quick guide - single column */
  .quick-guide__steps {
    grid-template-columns: 1fr !important;
    gap: 0.75rem;
  }

  .quick-guide__step {
    flex-direction: row;
    gap: 0.75rem;
  }

  /* Section header - wrap actions */
  .section-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .section-header__actions {
    flex-wrap: wrap;
    margin-left: 0;
    gap: 0.5rem;
  }

  /* Selection and sort controls - full width */
  .selection-controls {
    width: 100%;
    justify-content: space-between;
  }

  .sort-controls {
    width: 100%;
  }

  .sort-controls select {
    flex: 1;
  }

  /* Bulk actions - wrap and fill */
  .bulk-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Action buttons - fill width on mobile */
  .section-header__actions .btn {
    flex: 1 1 auto;
    min-width: 120px;
    justify-content: center;
  }

  .section-header__actions .btn-group {
    flex: 1 1 auto;
  }

  .section-header__actions .btn-group .btn {
    flex: 1;
  }
}

/* Tablet breakpoint - 2 column layout adjustments */
@media (max-width: 640px) {
  /* Buysheet card - stack layout for very narrow screens */
  .buysheet-card {
    grid-template-columns: 50px 1fr;
    grid-template-rows: auto auto;
    gap: 0.5rem;
    padding: 0.75rem;
  }

  .buysheet-card__image {
    width: 50px;
    height: 70px;
    grid-row: span 2;
  }

  .buysheet-card__info {
    grid-column: 2;
  }

  .buysheet-card__quantity {
    grid-column: 2;
    justify-self: start;
  }

  .buysheet-card__pricing {
    position: absolute;
    top: 0.5rem;
    right: 2rem;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
  }

  .buysheet-card__name {
    font-size: 0.9rem;
    line-height: 1.2;
  }

  .buysheet-card__details {
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .buysheet-card__selects {
    flex-direction: column;
    gap: 0.35rem;
  }

  .buysheet-card__selects select {
    width: 100%;
  }

  /* Offer settings - smaller cards */
  .offer-rate-card {
    padding: 0.5rem;
  }

  .offer-rate-card__icon {
    font-size: 1.25rem !important;
  }

  .offer-rate-card__title {
    font-size: 0.75rem;
  }
}

/* iPhone SE and very small screens */
@media (max-width: 400px) {
  .dashboard,
  .dashboard--wide {
    padding: 0.75rem;
  }

  .page-header__title h1 {
    font-size: 1.2rem;
  }

  /* Buysheet card - compact mobile layout */
  .buysheet-card {
    grid-template-columns: 45px 1fr;
    padding: 0.5rem;
  }

  .buysheet-card__image {
    width: 45px;
    height: 63px;
  }

  .buysheet-card__name {
    font-size: 0.85rem;
  }

  .buysheet-card__game-badge {
    font-size: 0.55rem;
    padding: 0.15rem 0.35rem;
  }

  .buysheet-card__pricing .price-value {
    font-size: 0.9rem;
  }

  /* Smaller buttons on very small screens */
  .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }

  .btn-sm {
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
  }

  /* Toast notifications - full width on mobile */
  .toast-container {
    left: 0.5rem;
    right: 0.5rem;
    max-width: none;
  }

  /* Totals section - compact */
  .buysheet-totals {
    padding: 0.75rem;
  }

  .buysheet-totals__value--large {
    font-size: 1.25rem;
  }
}

/* Touch-friendly targets */
@media (hover: none) and (pointer: coarse) {
  .buysheet-card__checkbox .checkbox-custom {
    width: 28px;
    height: 28px;
  }

  .buysheet-card__checkbox input:checked + .checkbox-custom::after {
    line-height: 24px;
    font-size: 16px;
  }

  .buysheet-card__remove {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .buysheet-qty-input {
    min-width: 50px;
    height: 36px;
    font-size: 1rem;
  }

  .buysheet-condition-select,
  .buysheet-finish-select {
    min-height: 36px;
    font-size: 0.9rem;
  }
}

/* ============================================
   Toast Notifications
   ============================================ */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 400px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: var(--orb-radius-md);
  background: var(--orb-gray-800);
  color: white;
  box-shadow: var(--orb-shadow-lg);
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: auto;
}

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

.toast__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: bold;
  font-size: 0.875rem;
}

.toast__message {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.4;
}

.toast__close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.15s ease;
}

.toast__close:hover {
  color: white;
}

/* Toast types */
.toast--success {
  background: var(--orb-success);
}

.toast--success .toast__icon {
  background: rgba(255,255,255,0.2);
}

.toast--error {
  background: var(--orb-danger);
}

.toast--error .toast__icon {
  background: rgba(255,255,255,0.2);
}

.toast--warning {
  background: var(--orb-warning);
  color: var(--orb-gray-900);
}

.toast--warning .toast__icon {
  background: rgba(0,0,0,0.1);
}

.toast--warning .toast__close {
  color: rgba(0,0,0,0.5);
}

.toast--warning .toast__close:hover {
  color: var(--orb-gray-900);
}

.toast--info {
  background: var(--orb-primary);
}

.toast--info .toast__icon {
  background: rgba(255,255,255,0.2);
}

/* Mobile toast - full width at bottom */
@media (max-width: 480px) {
  .toast-container {
    top: auto;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    max-width: none;
  }

  .toast {
    transform: translateY(100%);
  }

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

/* Scan dropzone for AI card identification */
.scan-dropzone {
  border: 2px dashed var(--orb-gray-300);
  border-radius: var(--orb-radius-md);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--orb-gray-50);
  margin-bottom: 0.75rem;
}

.scan-dropzone:hover {
  border-color: var(--orb-primary);
  background: rgba(var(--orb-primary-rgb), 0.05);
}

.scan-dropzone--active {
  border-color: var(--orb-primary);
  background: rgba(var(--orb-primary-rgb), 0.1);
  border-style: solid;
}

.scan-dropzone__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.scan-dropzone__icon {
  font-size: 2rem;
}

.scan-dropzone__text {
  font-size: 0.85rem;
  color: var(--orb-gray-600);
  line-height: 1.4;
}

.scan-dropzone__text small {
  color: var(--orb-gray-400);
}

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

.scan-preview__count {
  font-size: 0.85rem;
  color: var(--orb-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Async Upload Progress */
.async-progress {
  padding: 1rem;
  background: var(--orb-gray-50);
  border-radius: var(--orb-radius-md);
  border: 1px solid var(--orb-gray-200);
}

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

.async-progress__title {
  font-weight: 600;
  color: var(--orb-gray-700);
  font-size: 0.9rem;
}

.async-progress__stats {
  font-size: 0.85rem;
  color: var(--orb-primary);
  font-weight: 600;
}

.async-progress__bar {
  width: 100%;
  height: 8px;
  background: var(--orb-gray-200);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.async-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orb-primary), #ff9b6a);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.async-progress__details {
  font-size: 0.8rem;
  color: var(--orb-gray-600);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.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;
  }
}

/* Mobile enhancements for buysheet - improved touch targets */
@media (max-width: 640px) {
  /* Buysheet card - stacked layout for narrow screens */
  .buysheet-card {
    grid-template-columns: 50px 1fr auto;
    grid-template-rows: auto auto;
    padding: 0.65rem;
    gap: 0.5rem;
  }

  .buysheet-card__image {
    width: 50px;
    height: 70px;
    grid-row: span 2;
  }

  .buysheet-card__info {
    grid-column: 2 / -1;
  }

  .buysheet-card__name {
    font-size: 0.9rem;
    line-height: 1.2;
    white-space: normal;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
  }

  .buysheet-card__details {
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.25rem;
  }

  .buysheet-card__quantity {
    grid-column: 2;
    grid-row: 2;
    justify-content: flex-start;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }

  .buysheet-card__pricing {
    grid-column: 3;
    grid-row: 2;
    flex-direction: column;
    gap: 0.15rem;
    text-align: right;
  }

  /* Larger touch targets for inputs */
  .buysheet-qty-input {
    width: 52px;
    height: 44px;
    font-size: 1rem;
    padding: 0.5rem;
    text-align: center;
    border-radius: var(--orb-radius-md);
  }

  .buysheet-card__selects select {
    font-size: 0.8rem;
    padding: 0.4rem 0.5rem;
    min-width: 60px;
    height: 36px;
  }

  /* Game badge - more visible on mobile */
  .buysheet-card__game-badge {
    font-size: 0.6rem;
    padding: 0.15rem 0.35rem;
    letter-spacing: 0.02em;
  }

  /* Synced badge positioning on mobile */
  .buysheet-card__synced-badge {
    top: 0.35rem;
    right: 0.35rem;
    padding: 0.2rem 0.4rem;
    font-size: 0.65rem;
  }

  /* Remove button always visible on mobile */
  .buysheet-card__remove {
    opacity: 1;
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    right: -0.25rem;
    top: -0.25rem;
  }

  /* Pricing text slightly smaller on mobile */
  .buysheet-card__pricing .price-value {
    font-size: 0.9rem;
  }

  .buysheet-card__market-price .price-value {
    font-size: 0.8rem;
  }

  .buysheet-card__offer-price .price-value {
    font-size: 1rem;
    font-weight: 700;
  }

  /* Selection checkbox on mobile */
  .buysheet-card__checkbox {
    top: 0.35rem;
    left: 0.35rem;
  }

  .buysheet-card__checkbox .checkbox-custom {
    width: 28px;
    height: 28px;
  }

  .buysheet-card__checkbox input:checked + .checkbox-custom::after {
    line-height: 24px;
    font-size: 16px;
  }

  /* Selection controls wrap on mobile */
  .selection-controls {
    flex-wrap: wrap;
  }

  .bulk-actions {
    width: 100%;
    justify-content: center;
    order: 10;
  }
}

/* Scan dropzone - enhanced touch feedback */
@media (max-width: 768px) {
  .scan-dropzone {
    padding: 1.5rem 1rem;
    min-height: 120px;
  }

  .scan-dropzone__icon {
    font-size: 2.5rem;
  }

  .scan-dropzone__text {
    font-size: 0.9rem;
  }

  /* Touch feedback states */
  .scan-dropzone:active {
    transform: scale(0.98);
    border-color: var(--orb-primary);
  }

  .scan-dropzone--active {
    background: rgba(248, 115, 74, 0.15);
    border-color: var(--orb-primary);
  }
}

/* Offer rate cards - larger on mobile for easier tapping */
@media (max-width: 640px) {
  .offer-rate-card {
    padding: 1rem;
    min-height: 80px;
  }

  .offer-rate-card__icon {
    font-size: 1.5rem;
  }

  .offer-rate-card__title {
    font-size: 0.95rem;
  }

  .rate-input {
    width: 55px;
    height: 38px;
    font-size: 1.1rem;
    padding: 0.4rem;
    text-align: center;
  }

  .rate-percent {
    font-size: 1rem;
  }
}

/* Totals section - more prominent on mobile */
@media (max-width: 640px) {
  .buysheet-totals {
    padding: 1rem;
    margin-top: 1rem;
  }

  .buysheet-totals__row {
    padding: 0.75rem 0;
  }

  .buysheet-totals__label {
    font-size: 0.9rem;
  }

  .buysheet-totals__value {
    font-size: 1.1rem;
  }

  .buysheet-totals__value--large {
    font-size: 1.5rem;
  }
}

/* Quick add modal - fullscreen on mobile */
@media (max-width: 640px) {
  .modal-content--search {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    border-radius: 0;
    margin: 0;
  }

  .modal-content--search .modal-body {
    flex: 1;
    overflow-y: auto;
  }

  .modal-content--search .search-form {
    flex-direction: column;
    gap: 0.5rem;
  }

  .modal-content--search .search-form input {
    width: 100%;
  }

  .modal-content--search .search-form .btn {
    width: 100%;
    padding: 0.75rem;
  }

  .search-result-item {
    padding: 0.75rem;
    min-height: 60px;
  }

  .search-result-item:active {
    background: var(--orb-primary-50);
  }
}

/* ==========================================
   CARD INTAKE LISTING PAGE - STREAMLINED UI
   ========================================== */

.card-intake-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;
  min-height: 44px; /* Touch target compliance - Apple HIG */
}

/* 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;
  min-height: 44px; /* Touch target compliance - Apple HIG */
  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-tcg-buysheet .section-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .page-tcg-buysheet .section-header__actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .page-tcg-buysheet .section-header__actions .sort-controls {
    width: 100%;
    order: -1;
    margin-bottom: 0.25rem;
  }

  .page-tcg-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-tcg-buysheet .section-header__actions .btn-sm {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: calc(50% - 0.25rem);
  }
}

@media (max-width: 480px) {
  .page-tcg-buysheet .section-header__actions .btn {
    flex: 1 1 100%;
    min-width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .page-tcg-buysheet .section-header__actions .btn-sm {
    flex: 1 1 100%;
    min-width: 100%;
  }
}

/* Card 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;
  }

  /* Card intake section header - fix button layout */
  .page-card-intake .section-header__actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .page-card-intake .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-card-intake .section-header__actions .select-all-toggle {
    width: 100%;
    order: -1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 0.25rem;
  }

  .page-card-intake .section-header__actions form {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: calc(50% - 0.25rem);
    display: flex;
  }

  .page-card-intake .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-card-intake .section-header__actions .btn,
  .page-card-intake .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;
  }
}

/* ==========================================
   VARIANT SELECTION
   ========================================== */

/* Variant Badge on Card */
.variant-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
  margin-left: 4px;
}

.variant-badge:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.variant-badge--standard {
  background: var(--orb-gray-200);
  color: var(--orb-gray-600, #4b5563);
}

.variant-badge--staff {
  background: linear-gradient(135deg, #ff6b35, #f7c59f);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4); }
  50% { box-shadow: 0 2px 16px rgba(255, 107, 53, 0.7); }
}

.variant-badge--prerelease {
  background: linear-gradient(135deg, #6366f1, #a5b4fc);
  color: #fff;
}

.variant-badge--1st_edition {
  background: linear-gradient(135deg, #fbbf24, #fef08a);
  color: #78350f;
}

.variant-badge--shadowless {
  background: linear-gradient(135deg, #374151, #6b7280);
  color: #fff;
}

.variant-badge--reverse_holo {
  background: linear-gradient(135deg, #06b6d4, #67e8f9);
  color: #164e63;
}

.variant-badge--promo {
  background: linear-gradient(135deg, #ec4899, #f9a8d4);
  color: #fff;
}

.variant-badge__icon {
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Variant Modal */
.modal-content--variant {
  max-width: 500px;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header--variant {
  background: linear-gradient(135deg, var(--orb-gray-800), var(--orb-gray-700));
  color: #fff;
  flex-shrink: 0;
}

.modal-content--variant .modal-body {
  overflow-y: auto;
  flex: 1;
}

.variant-picker__card-info {
  padding: 0.75rem;
  background: var(--orb-gray-100);
  border-radius: 8px;
  margin-bottom: 1rem;
  text-align: center;
  font-size: 0.95rem;
}

.variant-picker__warning {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: #fef3c7;
  border: 1px solid #fbbf24;
  border-radius: 8px;
  margin-bottom: 1rem;
  color: #92400e;
  font-size: 0.85rem;
}

.variant-picker__warning .warning-icon {
  font-size: 1.2rem;
}

.variant-picker__list {
  max-height: 400px;
  overflow-y: auto;
}

.variant-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 2px solid var(--orb-gray-200);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.15s ease;
  background: #fff;
}

.variant-option:hover {
  border-color: var(--orb-orange);
  background: rgba(242, 107, 58, 0.05);
}

.variant-option--selected {
  border-color: var(--orb-green);
  background: rgba(34, 197, 94, 0.08);
}

.variant-option__main {
  flex: 1;
  min-width: 0;
}

.variant-option__name {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem;
}

.variant-option__meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.variant-type-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}

.variant-type-badge--standard { background: #e5e7eb; color: #374151; }
.variant-type-badge--staff { background: #ff6b35; color: #fff; }
.variant-type-badge--prerelease { background: #6366f1; color: #fff; }
.variant-type-badge--1st_edition { background: #fbbf24; color: #78350f; }
.variant-type-badge--shadowless { background: #374151; color: #fff; }
.variant-type-badge--reverse_holo { background: #06b6d4; color: #164e63; }
.variant-type-badge--promo { background: #ec4899; color: #fff; }

.variant-finish,
.variant-set {
  font-size: 0.7rem;
  color: var(--orb-gray-500);
}

.variant-option__price {
  font-weight: 700;
  font-size: 1rem;
  color: var(--orb-green);
  white-space: nowrap;
  min-width: 60px;
  text-align: right;
}

.variant-option__check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--orb-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

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

.variant-error {
  color: #dc2626;
}

/* Card with variants indicator */
.buysheet-card--has-variants {
  /* Optional: subtle indicator that card has variants */
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .modal-content--variant {
    max-width: 95vw;
    max-height: 90vh;
  }

  .variant-option {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .variant-option__price {
    width: 100%;
    text-align: left;
    margin-top: 0.25rem;
    padding-top: 0.25rem;
    border-top: 1px solid var(--orb-gray-200);
  }

  .variant-badge {
    min-width: 24px;
    height: 22px;
    font-size: 0.65rem;
  }
}


/* ============================================
   UI MODERNIZATION - 2025 REDESIGN
   Clean, professional enterprise-grade styling
   ============================================ */

/* --- Page Header Modernization --- */
.page-header {
  padding: 1rem 1.5rem;
  background: white;
  border-bottom: 1px solid var(--orb-gray-200);
  margin-bottom: 1.5rem;
}

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

.page-header p {
  font-size: 0.85rem;
  color: var(--orb-gray-500);
  margin: 0;
}

/* Back link - subtle but functional */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--orb-gray-500);
  text-decoration: none;
  transition: color 0.15s;
}

.back-link:hover {
  color: var(--orb-primary);
  text-decoration: none;
}

/* --- Sidebar Modernization --- */
.intake-card {
  background: white;
  border: 1px solid var(--orb-gray-200);
  border-radius: var(--orb-radius-md);
  padding: 1.25rem;
  box-shadow: none;
}

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

.intake-card__header h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--orb-gray-700);
  margin: 0;
}

.intake-card__step--icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(248, 115, 74, 0.1);
  border-radius: 8px;
  color: var(--orb-primary);
}

.intake-card__step--icon svg {
  width: 18px;
  height: 18px;
}

.intake-card__desc {
  font-size: 0.8rem;
  color: var(--orb-gray-500);
  margin: 0 0 1rem 0;
  line-height: 1.4;
}

/* --- How It Works - Cleaner Accordion --- */
.how-it-works {
  background: var(--orb-gray-50);
  border: 1px solid var(--orb-gray-200);
  border-radius: var(--orb-radius-md);
  overflow: hidden;
}

.how-it-works summary {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--orb-gray-600);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
}

/* --- Card Rows - Clean Modern Design --- */
.buysheet-card {
  display: grid;
  grid-template-columns: auto 56px 1fr auto auto auto;
  gap: 0.75rem;
  align-items: center;
  background: white;
  border: 1px solid var(--orb-gray-200);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  transition: all 0.15s ease;
}

.buysheet-card:hover {
  border-color: var(--orb-gray-300);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Hide scanned image - show reference only */
.buysheet-card__image--scanned {
  display: none;
}

.buysheet-card__image--reference {
  width: 56px;
  height: 72px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--orb-gray-200);
  background: var(--orb-gray-50);
}

/* Card Info - Better Typography */
.buysheet-card__name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--orb-gray-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem;
}

/* Price Labels - Clean */
.price-label {
  font-size: 0.55rem;
  font-weight: 500;
  color: var(--orb-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.buysheet-card__market-price .price-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--orb-gray-700);
}

.buysheet-card__offer-price--cash .price-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: #059669;
}

.buysheet-card__offer-price--credit .price-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: #2563eb;
}

/* Remove Button - Subtle until hover */
.buysheet-card__remove {
  opacity: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: var(--orb-gray-400);
  cursor: pointer;
  transition: all 0.15s;
  font-size: 0.8rem;
}

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

.buysheet-card__remove:hover {
  background: #fef2f2;
  color: #dc2626;
}

/* Synced Badge - Subtle Success */
.buysheet-card__synced-badge {
  position: absolute;
  top: -1px;
  right: -1px;
  background: #059669;
  color: white;
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 0 10px 0 6px;
}

/* --- Totals Section --- */
.buysheet-totals {
  background: white;
  border: 1px solid var(--orb-gray-200);
  border-radius: 10px;
  padding: 1.25rem;
  margin-top: 1rem;
}

.buysheet-totals__row--cash .buysheet-totals__value--highlight {
  color: #059669;
  font-size: 1.25rem;
  font-weight: 700;
}

.buysheet-totals__row--credit .buysheet-totals__value--highlight {
  color: #2563eb;
  font-size: 1.15rem;
  font-weight: 600;
}

/* --- Dropzone Modernization --- */
.scan-dropzone {
  border: 2px dashed var(--orb-gray-300);
  border-radius: 10px;
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
  background: var(--orb-gray-50);
}

.scan-dropzone:hover {
  border-color: var(--orb-primary);
  background: rgba(248, 115, 74, 0.03);
}

.scan-dropzone--active {
  border-color: var(--orb-primary);
  background: rgba(248, 115, 74, 0.08);
  border-style: solid;
}

/* --- Button Consistency --- */
.btn-success {
  background: #059669;
  color: white;
}

.btn-success:hover {
  background: #047857;
}

/* --- Quick Guide - Subtle Styling --- */
.quick-guide {
  background: var(--orb-gray-50);
  border: 1px solid var(--orb-gray-200);
  margin-bottom: 1rem;
}

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

/* --- Card Name Fix - Prevent Over-Truncation --- */
.buysheet-card__name {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.3;
  max-height: none;
}

.buysheet-card__info {
  min-width: 120px;
  max-width: 250px;
}

/* ============================================
   AGGRESSIVE UI CLEANUP - Button & Card Fixes
   ============================================ */

/* --- CLEAN ACTION BUTTONS --- */
.btn--action {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn--action-primary {
  background: var(--orb-gray-800);
  color: white;
  border-color: var(--orb-gray-800);
}

.btn--action-primary:hover {
  background: var(--orb-gray-700);
  border-color: var(--orb-gray-700);
}

.btn--action-secondary {
  background: white;
  color: var(--orb-gray-700);
  border-color: var(--orb-gray-300);
}

.btn--action-secondary:hover {
  background: var(--orb-gray-50);
  border-color: var(--orb-gray-400);
}

.btn--action-tertiary {
  background: transparent;
  color: var(--orb-gray-500);
  border-color: transparent;
}

.btn--action-tertiary:hover {
  color: #dc2626;
  background: #fef2f2;
}

/* --- FIX EMPTY REFERENCE IMAGE PLACEHOLDERS --- */
.buysheet-card__image--reference {
  background: var(--orb-gray-100) !important;
  border: 1px solid var(--orb-gray-200) !important;
}

.buysheet-card__placeholder--ref {
  background: var(--orb-gray-100) !important;
  border: none !important;
}

.buysheet-card__placeholder--ref .ref-missing {
  color: var(--orb-gray-300);
  font-size: 1rem;
}

.buysheet-card__placeholder--ref .ref-label {
  display: none;
}

/* Hide VERIFY badge - too noisy */
.buysheet-card__confidence {
  display: none;
}

/* --- CLEANER CARD LAYOUT --- */
.buysheet-card {
  grid-template-columns: auto 50px 1fr auto auto auto !important;
  padding: 0.6rem 0.75rem !important;
  gap: 0.6rem !important;
  border-radius: 8px !important;
}

.buysheet-card__image--reference {
  width: 50px !important;
  height: 65px !important;
  border-radius: 4px !important;
}

/* Smaller, cleaner dropdowns */
.buysheet-card__selects {
  margin-top: 0.35rem;
}

.buysheet-card__selects select {
  font-size: 0.65rem !important;
  padding: 0.2rem 0.4rem !important;
  min-width: 60px !important;
  border-radius: 3px !important;
}

/* Game badge - smaller */
.buysheet-card__game-badge {
  font-size: 0.55rem !important;
  padding: 0.1rem 0.35rem !important;
}

/* Quantity - more compact */
.buysheet-card__quantity {
  min-width: 40px;
}

.buysheet-qty-input {
  width: 36px !important;
  height: 26px !important;
  font-size: 0.75rem !important;
}

/* Pricing - tighter */
.buysheet-card__pricing {
  min-width: 65px !important;
  gap: 0.1rem !important;
}

.buysheet-card__market-price .price-value,
.buysheet-card__offer-price .price-value {
  font-size: 0.8rem !important;
}

.price-label {
  font-size: 0.5rem !important;
}

/* --- HIDE LESS IMPORTANT ELEMENTS --- */
/* Hide the checkbox on each card - too cluttered */
.buysheet-card__checkbox {
  display: none;
}

/* Hide Select All since checkboxes are hidden */
.selection-controls label[for="selectAll"],
label:has(input#selectAll) {
  display: none;
}

/* --- HIDE SCANNED IMAGE CONTAINER COMPLETELY --- */
.buysheet-card__image--scanned {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Adjust grid to not include scanned image column */
.buysheet-card {
  grid-template-columns: 56px 1fr auto auto auto !important;
}

/* --- SUBTLE VERIFY PLACEHOLDER --- */
.buysheet-card__placeholder--ref {
  background: var(--orb-gray-50) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.buysheet-card__placeholder--ref a,
.buysheet-card__placeholder--ref .ref-verify-link {
  color: var(--orb-gray-400);
  font-size: 1rem;
  text-decoration: none;
  opacity: 0.6;
}

.buysheet-card__placeholder--ref a:hover {
  color: var(--orb-gray-600);
  opacity: 1;
}

.buysheet-card__placeholder--ref .ref-label {
  font-size: 0.5rem;
  color: var(--orb-gray-400);
  margin-top: 2px;
}

.ref-missing {
  font-size: 0.9rem;
  opacity: 0.5;
}

/* --- CLEANER HEADER ACTIONS --- */
/* Hide emoji-heavy bulk action buttons */
.bulk-actions button[onclick*="pushToShopify"][onclick*="true"],
.bulk-actions button[onclick*="deleteSelectedCards"] {
  display: none;
}

/* Streamline primary actions section */
.buysheet-header__actions {
  gap: 0.5rem !important;
}

/* Selection controls - hide until needed */
.selection-controls {
  display: none !important;
}

/* Sort dropdown - smaller */
.sort-controls {
  gap: 0.25rem;
}

.sort-controls label {
  font-size: 0.7rem;
  color: var(--orb-gray-500);
}

.sort-controls select {
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

/* --- SIMPLIFIED PRICING DISPLAY --- */
/* Hide cash/credit labels, show just the values */
.price-label {
  display: none !important;
}

.buysheet-card__pricing {
  text-align: right;
}

.buysheet-card__market-price {
  margin-bottom: 2px;
}

.buysheet-card__market-price .price-value {
  color: var(--orb-gray-600);
  font-weight: 500;
}

.buysheet-card__offer-price--cash .price-value {
  color: #16a34a;
  font-weight: 600;
}

.buysheet-card__offer-price--credit .price-value {
  color: #2563eb;
  font-weight: 600;
}

/* --- OFFER SETTINGS PANEL - CLEANER --- */
.offer-settings {
  border: 1px solid var(--orb-gray-200) !important;
  background: white !important;
}

.offer-settings__input-group {
  border-color: var(--orb-gray-200) !important;
}

.offer-settings__input-group--active {
  border-color: var(--orb-gray-400) !important;
  background: var(--orb-gray-50) !important;
}

/* Hide emoji labels in offer settings */
.offer-settings__label::before {
  content: none !important;
}

/* --- HEADER BAR CLEANUP --- */
.cards-list-header {
  padding: 0.75rem 1rem !important;
  gap: 0.75rem !important;
  background: var(--orb-gray-50) !important;
  border-bottom: 1px solid var(--orb-gray-200) !important;
}

.cards-list-header h2 {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
}

.cards-list-header .badge {
  font-size: 0.65rem !important;
  padding: 0.15rem 0.4rem !important;
  background: var(--orb-gray-200) !important;
  color: var(--orb-gray-700) !important;
}

/* --- TOTALS SECTION - CLEANER --- */
.buysheet-totals {
  background: var(--orb-gray-50) !important;
  border: 1px solid var(--orb-gray-200) !important;
  border-radius: 8px !important;
  padding: 1rem !important;
  margin-top: 1rem !important;
}

.buysheet-totals__row {
  justify-content: space-between !important;
  padding: 0.35rem 0 !important;
}

.buysheet-totals__label {
  font-size: 0.8rem !important;
  color: var(--orb-gray-600) !important;
}

.buysheet-totals__value {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
}

/* --- Mobile Responsive Updates --- */
@media (max-width: 768px) {
  .buysheet-card {
    grid-template-columns: 48px 1fr auto !important;
    gap: 0.5rem;
    padding: 0.6rem;
  }

  .buysheet-card__image--reference {
    width: 48px;
    height: 64px;
  }

  .buysheet-card__quantity {
    display: none;
  }

  .buysheet-card__remove {
    opacity: 1;
  }

  .buysheet-card__info {
    max-width: 150px;
  }
}

/* =============================================================================
   PRICING STATUS SECTION
============================================================================= */

.intake-card--compact {
  padding: 0.75rem 1rem;
}

.intake-card__header--clickable {
  cursor: pointer;
  transition: opacity 0.15s;
}

.intake-card__header--clickable:hover {
  opacity: 0.8;
}

/* Status Badge */
.pricing-status-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-left: auto;
}

.pricing-status-badge--fresh {
  background: #dcfce7;
  color: #166534;
}

.pricing-status-badge--stale {
  background: #fef3c7;
  color: #92400e;
}

.pricing-status-badge--critical {
  background: #fee2e2;
  color: #dc2626;
}

/* Pricing Details Panel */
.pricing-status-details {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--orb-gray-200);
}

/* Games List */
.pricing-games-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.pricing-game-row {
  display: flex;
  align-items: center;
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  background: var(--orb-gray-50);
}

.pricing-game-row--fresh {
  background: #f0fdf4;
}

.pricing-game-row--stale {
  background: #fffbeb;
}

.pricing-game-row--critical {
  background: #fef2f2;
}

.pricing-game-name {
  font-weight: 500;
  min-width: 80px;
}

.pricing-game-count {
  color: var(--orb-gray-500);
  flex: 1;
  text-align: center;
}

.pricing-game-age {
  font-size: 0.65rem;
  color: var(--orb-gray-600);
  min-width: 80px;
  text-align: right;
}

.pricing-game-row--stale .pricing-game-age {
  color: #92400e;
}

.pricing-game-row--critical .pricing-game-age {
  color: #dc2626;
  font-weight: 600;
}

/* Update Section */
.pricing-update-section {
  margin-top: 0.5rem;
}

.pricing-update-toggle {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--orb-gray-600);
  cursor: pointer;
  padding: 0.35rem 0;
}

.pricing-update-toggle:hover {
  color: var(--orb-gray-800);
}

.pricing-upload-form {
  padding: 0.75rem 0;
}

.pricing-upload-desc {
  font-size: 0.7rem;
  color: var(--orb-gray-500);
  margin-bottom: 0.5rem;
}

.pricing-upload-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.pricing-upload-row select {
  flex: 1;
  min-width: 100px;
}

.pricing-upload-status {
  font-size: 0.7rem;
  margin-top: 0.5rem;
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
}

.pricing-upload-status--loading {
  background: #f3f4f6;
  color: #6b7280;
}

.pricing-upload-status--success {
  background: #dcfce7;
  color: #166534;
}

.pricing-upload-status--error {
  background: #fee2e2;
  color: #dc2626;
}

/* ============================================
   PAGINATION CONTROLS
   ============================================ */

.pagination-info {
  font-size: 0.85rem;
  color: var(--orb-gray-500);
  font-weight: 400;
  margin-left: 0.5rem;
}

.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--orb-gray-200);
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--orb-gray-700);
  background: var(--orb-white);
  border: 1px solid var(--orb-gray-300);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--orb-gray-100);
  border-color: var(--orb-gray-400);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.pagination-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--orb-gray-600);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pagination-page:hover:not(.pagination-page--active) {
  background: var(--orb-gray-100);
  border-color: var(--orb-gray-300);
}

.pagination-page--active {
  color: var(--orb-white);
  background: var(--orb-orange);
  border-color: var(--orb-orange);
  cursor: default;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  font-size: 0.875rem;
  color: var(--orb-gray-400);
}

/* Dark theme pagination */
.theme-dark .pagination-info {
  color: var(--orb-gray-400);
}

.theme-dark .pagination-controls {
  border-top-color: var(--orb-gray-700);
}

.theme-dark .pagination-btn {
  color: var(--orb-gray-300);
  background: var(--orb-gray-800);
  border-color: var(--orb-gray-600);
}

.theme-dark .pagination-btn:hover:not(:disabled) {
  background: var(--orb-gray-700);
  border-color: var(--orb-gray-500);
}

.theme-dark .pagination-page {
  color: var(--orb-gray-400);
}

.theme-dark .pagination-page:hover:not(.pagination-page--active) {
  background: var(--orb-gray-700);
  border-color: var(--orb-gray-600);
}

.theme-dark .pagination-page--active {
  color: var(--orb-white);
  background: var(--orb-orange);
  border-color: var(--orb-orange);
}

.theme-dark .pagination-ellipsis {
  color: var(--orb-gray-500);
}

/* Responsive pagination */
@media (max-width: 640px) {
  .pagination-info {
    font-size: 0.75rem;
  }

  .pagination-controls {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .pagination-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }

  .pagination-page {
    min-width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .pagination-pages {
    gap: 0.15rem;
  }
}

/* =============================================================================
   MODERNIZATION OVERRIDES - Clean, Professional Design System
   Inspired by Stripe, Linear, Shopify Polaris
   ============================================================================= */

/* Hide all emoji elements for a cleaner look */
.btn__emoji,
.entry-tab__icon,
.card-type-btn__icon,
.workflow-step__icon,
.card-type-hint__icon,
.analysis-progress__icon,
.price-status-compact__icon,
.quick-guide__toggle::before {
  display: none !important;
}

/* Clean up game selector emojis in options */
.listing-header__game-select option {
  font-family: var(--orb-font-sans);
}

/* Modern Color Palette Overrides */
:root {
  --modern-primary: #0f172a;
  --modern-primary-hover: #1e293b;
  --modern-accent: #3b82f6;
  --modern-accent-hover: #2563eb;
  --modern-success: #10b981;
  --modern-success-hover: #059669;
  --modern-warning: #f59e0b;
  --modern-danger: #ef4444;
  --modern-surface: #ffffff;
  --modern-surface-elevated: #f8fafc;
  --modern-border: #e2e8f0;
  --modern-border-hover: #cbd5e1;
  --modern-text: #0f172a;
  --modern-text-secondary: #64748b;
  --modern-text-muted: #94a3b8;
  --modern-radius: 8px;
  --modern-radius-lg: 12px;
  --modern-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --modern-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --modern-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Clean Page Background */
body {
  background: #f8fafc;
}

/* Modern Header Styling */
.listing-header {
  background: var(--modern-surface);
  border: 1px solid var(--modern-border);
  border-radius: var(--modern-radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.listing-header__main {
  margin-bottom: 0;
}

.listing-header__title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font-size: 1rem;
}

.listing-header__game-select {
  background: var(--modern-primary, #0f172a);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 2rem 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  min-width: 160px;
}

.listing-header__game-select:hover {
  background-color: var(--modern-primary-hover, #1e293b);
}

/* Game-specific dropdown colors */
.page-tcg-riftbound .listing-header__game-select {
  background: linear-gradient(135deg, #0ac8b9 0%, #764ba2 100%);
}
.page-tcg-pokemon .listing-header__game-select {
  background: linear-gradient(135deg, #ffcb05 0%, #ff5350 100%);
}
.page-tcg-magic .listing-header__game-select {
  background: linear-gradient(135deg, #6b3fa0 0%, #1a1a2e 100%);
}
.page-tcg-yugioh .listing-header__game-select {
  background: linear-gradient(135deg, #2d5a27 0%, #1a1a2e 100%);
}
.page-tcg-lorcana .listing-header__game-select {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d3748 100%);
}
.page-tcg-onepiece .listing-header__game-select {
  background: linear-gradient(135deg, #c41e3a 0%, #1a1a2e 100%);
}
.page-tcg-gundam .listing-header__game-select {
  background: linear-gradient(135deg, #e62b1e 0%, #0033a0 100%);
}
.page-tcg-sports .listing-header__game-select {
  background: linear-gradient(135deg, #2d5016 0%, #8b4513 100%);
}

.listing-header__type {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--modern-text);
}

.listing-header__flow {
  font-size: 0.8rem;
  color: var(--modern-text-secondary);
  margin: 0.25rem 0 0 0;
}

/* Clean Action Buttons in Header */
.listing-header__actions {
  display: flex;
  gap: 0.5rem;
}

.listing-header__actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn--review {
  background: var(--modern-surface);
  color: var(--modern-text);
  border: 1px solid var(--modern-border);
}

.btn--review:hover {
  background: var(--modern-surface-elevated);
  border-color: var(--modern-border-hover);
  color: var(--modern-text);
  text-decoration: none;
}

.btn--buy-prominent {
  background: var(--modern-primary) !important;
  color: white !important;
  border: none;
  box-shadow: none !important;
  transform: none !important;
}

.btn--buy-prominent:hover {
  background: var(--modern-primary-hover) !important;
  color: white !important;
  box-shadow: var(--modern-shadow-md) !important;
  transform: translateY(-1px) !important;
}

/* Modern Quick Guide / How It Works */
.quick-guide--compact {
  background: var(--modern-surface);
  border: 1px solid var(--modern-border);
  border-radius: var(--modern-radius);
  margin-bottom: 1.25rem;
}

.quick-guide__toggle {
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--modern-text-secondary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.quick-guide__toggle::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--modern-text-secondary);
  margin-left: auto;
  transition: transform 0.2s;
}

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

.workflow-visual {
  padding: 1rem;
  gap: 0.5rem;
}

.workflow-step {
  background: var(--modern-surface-elevated);
  border: 1px solid var(--modern-border);
  box-shadow: none;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  color: var(--modern-text-secondary);
}

.workflow-arrow {
  color: var(--modern-text-muted);
  font-size: 0.875rem;
}

/* Modern Entry Panel Cards */
.entry-panel {
  background: var(--modern-surface);
  border: 1px solid var(--modern-border);
  border-radius: var(--modern-radius-lg);
  padding: 1.25rem;
}

.entry-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--modern-border);
}

.entry-panel__header h2 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--modern-text);
  margin: 0;
}

.entry-panel__badge {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--modern-text-secondary);
  background: var(--modern-surface-elevated);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

/* Modern Tab Styling */
.entry-tabs {
  display: flex;
  gap: 0.25rem;
  background: var(--modern-surface-elevated);
  padding: 0.25rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.entry-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--modern-text-secondary);
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.entry-tab:hover {
  color: var(--modern-text);
  background: rgba(0, 0, 0, 0.03);
}

.entry-tab--active {
  color: var(--modern-text);
  background: var(--modern-surface);
  box-shadow: var(--modern-shadow-sm);
}

/* Modern Card Type Toggle - Sleek black/white design */
.card-type-toggle {
  display: flex;
  gap: 0;
  background: #ffffff;
  padding: 4px;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.card-type-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.card-type-btn:hover:not(.card-type-btn--active) {
  color: #0f172a;
  background: #f8fafc;
}

.card-type-btn--active {
  color: white;
  background: #0f172a;
  font-weight: 600;
}

.card-type-slider {
  display: none;
}

.card-type-hint {
  font-size: 0.75rem;
  color: var(--modern-text-secondary);
  padding: 0.5rem 0;
  display: none;
}

.card-type-hint--active {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

/* Modern Upload Dropzone */
.upload-dropzone {
  border: 2px dashed var(--modern-border);
  border-radius: var(--modern-radius);
  padding: 2rem 1rem;
  text-align: center;
  background: var(--modern-surface-elevated);
  transition: all 0.2s;
  cursor: pointer;
}

.upload-dropzone:hover {
  border-color: var(--modern-border-hover);
  background: white;
}

.upload-dropzone--dragover {
  border-color: var(--modern-accent);
  background: rgba(59, 130, 246, 0.05);
}

.upload-dropzone__icon {
  width: 2rem;
  height: 2rem;
  color: var(--modern-text-muted);
  margin-bottom: 0.5rem;
}

.upload-dropzone__text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--modern-text);
  display: block;
}

.upload-dropzone__hint {
  font-size: 0.75rem;
  color: var(--modern-text-secondary);
  margin-top: 0.25rem;
  display: block;
}

/* Modern Primary Buttons */
.btn-primary,
.btn--primary,
.btn-upload {
  background: var(--modern-primary) !important;
  color: white !important;
  border: none !important;
  border-radius: 6px;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: none;
  transition: all 0.15s ease;
}

.btn-primary:hover,
.btn--primary:hover,
.btn-upload:hover {
  background: var(--modern-primary-hover) !important;
  box-shadow: var(--modern-shadow-md);
  transform: translateY(-1px);
}

.btn-primary:disabled,
.btn--primary:disabled,
.btn-upload:disabled {
  background: var(--modern-border) !important;
  color: var(--modern-text-muted) !important;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Modern Secondary/Outline Buttons */
.btn-secondary,
.btn--secondary,
.btn--outline {
  background: var(--modern-surface);
  color: var(--modern-text);
  border: 1px solid var(--modern-border);
  border-radius: 6px;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.btn-secondary:hover,
.btn--secondary:hover,
.btn--outline:hover {
  background: var(--modern-surface-elevated);
  border-color: var(--modern-border-hover);
}

/* Modern Success Buttons */
.btn-success {
  background: var(--modern-success) !important;
  color: white !important;
  border: none !important;
}

.btn-success:hover {
  background: var(--modern-success-hover) !important;
}

/* Pro Catalog Panel */
.entry-panel--pricing .price-status-compact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--modern-surface-elevated);
  border-radius: 6px;
  margin-bottom: 1rem;
}

.price-status-compact__info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.price-status-compact__info strong {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--modern-text);
}

.price-status-compact__info span {
  font-size: 0.75rem;
  color: var(--modern-text-secondary);
}

/* Pro Catalog Games List */
.pro-catalog-games {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1rem;
}

.pro-catalog-game {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: var(--modern-surface-elevated);
  border-radius: 4px;
  font-size: 0.8125rem;
}

.pro-catalog-game__name {
  font-weight: 500;
  color: var(--modern-text);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

/* Hide emoji in game name, show plain text */
.pro-catalog-game__name::before {
  display: none !important;
}

.pro-catalog-game__count {
  font-weight: 600;
  color: var(--modern-accent);
  font-size: 0.75rem;
}

.pro-catalog-game__age {
  font-size: 0.6875rem;
  color: var(--modern-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* Catalog Update Section */
.catalog-update-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.catalog-update-section .btn {
  width: 100%;
  justify-content: center;
}

/* Modern Review Section */
.review-section {
  background: var(--modern-surface);
  border: 1px solid var(--modern-border);
  border-radius: var(--modern-radius-lg);
  padding: 1.25rem;
  margin-top: 1.5rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--modern-border);
}

.section-header h2 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--modern-text);
  margin: 0;
}

.count-badge {
  background: var(--modern-surface-elevated);
  color: var(--modern-text-secondary);
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pagination-info {
  font-size: 0.75rem;
  color: var(--modern-text-muted);
  margin-left: auto;
}

/* Modern Card Review Items */
.card-review-item,
.pending-card {
  background: var(--modern-surface);
  border: 1px solid var(--modern-border);
  border-radius: var(--modern-radius);
  padding: 1rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.card-review-item:hover,
.pending-card:hover {
  border-color: var(--modern-border-hover);
  box-shadow: var(--modern-shadow);
}

/* Promo Card Banner - More Subtle */
.promo-card-banner {
  background: linear-gradient(90deg, #fef3c7, #fde68a) !important;
  border-left: 3px solid var(--modern-warning);
  color: #92400e !important;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

/* Price Badge - Cleaner */
.price-badge,
.card-price {
  background: var(--modern-primary);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
}

/* Variant Dropdown - Cleaner */
.variant-select,
.variant-dropdown {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  color: #92400e;
  width: 100%;
}

/* Card Attributes */
.card-attributes {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--modern-text-secondary);
}

.card-attributes span {
  padding: 0.125rem 0.375rem;
  background: var(--modern-surface-elevated);
  border-radius: 4px;
}

/* Game Badge - Cleaner */
.game-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.game-badge--riftbound {
  background: #d1fae5;
  color: #065f46;
}

.game-badge--pokemon {
  background: #fef3c7;
  color: #92400e;
}

/* Approved Section Table */
.approved-section {
  background: var(--modern-surface);
  border: 1px solid var(--modern-border);
  border-radius: var(--modern-radius-lg);
  padding: 1.25rem;
  margin-top: 1.5rem;
}

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

.approved-table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--modern-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--modern-border);
}

.approved-table td {
  padding: 0.75rem 0.5rem;
  font-size: 0.8125rem;
  color: var(--modern-text);
  border-bottom: 1px solid var(--modern-border);
}

.approved-table tr:hover td {
  background: var(--modern-surface-elevated);
}

/* Shopify Push Button */
.btn-shopify-push {
  background: var(--modern-primary) !important;
  color: white !important;
}

/* Print/PDF Button */
.btn-print {
  background: var(--modern-surface);
  color: var(--modern-text);
  border: 1px solid var(--modern-border);
}

/* Modal Styling */
.modal {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  background: var(--modern-surface);
  border: 1px solid var(--modern-border);
  border-radius: var(--modern-radius-lg);
  box-shadow: var(--modern-shadow-md);
}

.modal-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--modern-border);
}

.modal-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--modern-text);
}

.modal-body {
  padding: 1.25rem;
}

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

/* Buy Sheet Page Modernization */
.buysheet-container {
  max-width: 1200px;
  margin: 0 auto;
}

.buysheet-header {
  background: var(--modern-surface);
  border: 1px solid var(--modern-border);
  border-radius: var(--modern-radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.offer-settings-card {
  background: var(--modern-surface);
  border: 1px solid var(--modern-border);
  border-radius: var(--modern-radius);
  padding: 1rem;
}

.offer-type-selector {
  display: flex;
  gap: 0.5rem;
}

.offer-type-btn {
  flex: 1;
  padding: 0.75rem;
  background: var(--modern-surface-elevated);
  border: 2px solid transparent;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
}

.offer-type-btn--active {
  border-color: var(--modern-primary);
  background: white;
}

.offer-type-btn__label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--modern-text-secondary);
  display: block;
}

.offer-type-btn__value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--modern-text);
}

/* Generate PDF Button */
#generatePdfBtn,
.btn-generate-pdf {
  background: var(--modern-primary) !important;
  color: white !important;
}

/* Clear Button */
.btn-clear {
  background: transparent;
  color: var(--modern-text-secondary);
  border: none;
  font-size: 0.8125rem;
}

.btn-clear:hover {
  color: var(--modern-danger);
}

/* Buy Sheet Card Items */
.buysheet-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--modern-surface);
  border: 1px solid var(--modern-border);
  border-radius: var(--modern-radius);
  margin-bottom: 0.5rem;
}

.buysheet-card__image {
  width: 60px;
  height: 84px;
  object-fit: contain;
  border-radius: 4px;
  background: var(--modern-surface-elevated);
}

.buysheet-card__info {
  flex: 1;
}

.buysheet-card__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--modern-text);
  margin-bottom: 0.25rem;
}

.buysheet-card__details {
  font-size: 0.75rem;
  color: var(--modern-text-secondary);
}

.buysheet-card__prices {
  text-align: right;
}

.buysheet-card__market {
  font-size: 0.75rem;
  color: var(--modern-text-muted);
  text-decoration: line-through;
}

.buysheet-card__cash {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--modern-success);
}

.buysheet-card__credit {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--modern-accent);
}

/* Form Controls - Modern */
input[type="text"],
input[type="number"],
input[type="email"],
textarea,
select {
  background: var(--modern-surface);
  border: 1px solid var(--modern-border);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--modern-text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--modern-accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Toggle Switch - Modern */
.mode-switch__track {
  background: var(--modern-border);
  border-radius: 9999px;
}

.mode-switch__slider {
  background: white;
  box-shadow: var(--modern-shadow);
}

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

/* Footer Tools */
.listing-tools-footer {
  background: var(--modern-surface-elevated);
  border: 1px solid var(--modern-border);
  border-radius: 0 0 var(--modern-radius-lg) var(--modern-radius-lg);
  margin-top: -1px;
}

/* Remove excessive shadows and gradients */
.surface,
.hero,
.entry-panel,
.review-section {
  box-shadow: none;
}

/* Clean up the home FAB */
.home-fab {
  background: var(--modern-surface);
  border: 1px solid var(--modern-border);
  box-shadow: var(--modern-shadow);
}

.home-fab:hover {
  box-shadow: var(--modern-shadow-md);
}

/* Analysis Progress Panel - Cleaner */
.analysis-progress-panel {
  background: var(--modern-surface);
  border: 1px solid var(--modern-border);
  border-radius: var(--modern-radius-lg);
  box-shadow: var(--modern-shadow-md);
}

.analysis-progress__header {
  background: var(--modern-primary);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: var(--modern-radius-lg) var(--modern-radius-lg) 0 0;
}

.analysis-progress__bar {
  background: var(--modern-primary);
  border-radius: 9999px;
}

/* Remove any remaining orange accents, use primary instead */
a {
  color: var(--modern-accent);
}

a:hover {
  color: var(--modern-accent-hover);
}

/* Simplify focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--modern-accent);
  outline-offset: 2px;
}

/* Workflow Step Numbers */
.workflow-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--modern-primary);
  color: white;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 0.5rem;
}

/* Refresh Spinner Animation */
.refresh-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--modern-border);
  border-top-color: var(--modern-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Clean up promo banner */
.promo-banner {
  background: linear-gradient(90deg, #fef3c7, #fde68a);
  border-left: 3px solid var(--modern-warning);
  color: #92400e;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.8125rem;
}

.promo-banner__text {
  font-weight: 600;
}

.promo-banner__note {
  display: block;
  font-size: 0.75rem;
  opacity: 0.8;
  margin-top: 0.25rem;
}

/* Validation Banner - More Subtle */
.validation-banner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

.validation-banner--hallucination {
  background: #fee2e2;
  color: #991b1b;
  border-left: 3px solid var(--modern-danger);
}

.validation-banner--warning {
  background: #fef3c7;
  color: #92400e;
  border-left: 3px solid var(--modern-warning);
}

.validation-banner--review {
  background: #dbeafe;
  color: #1e40af;
  border-left: 3px solid var(--modern-accent);
}

/* Comparison Card Labels */
.comparison-card__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--modern-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comparison-card__cached-badge,
.comparison-card__mismatch-badge {
  font-size: 0.6875rem;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-weight: 500;
}

.comparison-card__cached-badge {
  background: var(--modern-surface-elevated);
  color: var(--modern-text-muted);
}

.comparison-card__mismatch-badge {
  background: #fee2e2;
  color: #991b1b;
}

/* Fetch Panel */
.fetch-panel__text {
  color: var(--modern-text-secondary);
  font-size: 0.8125rem;
  text-align: center;
  margin-bottom: 0.75rem;
}

.fetch-panel__text--error {
  color: var(--modern-danger);
}

/* Edit Details Summary */
.edit-details summary {
  font-size: 0.8125rem;
  color: var(--modern-accent);
  cursor: pointer;
  padding: 0.5rem 0;
  font-weight: 500;
}

.edit-details summary:hover {
  color: var(--modern-accent-hover);
}

/* TCG Guide Checklist */
.tcg-guide__checklist {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
}

.tcg-guide__checklist li {
  padding: 0.25rem 0;
  color: var(--modern-text-secondary);
}

/* Pro Catalog Game List - Clean Version */
.pro-catalog-game {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--modern-border);
  font-size: 0.8125rem;
}

.pro-catalog-game:last-child {
  border-bottom: none;
}

.pro-catalog-game__icon {
  width: 24px;
  text-align: center;
}

.pro-catalog-game__name {
  font-weight: 500;
  color: var(--modern-text);
}

.pro-catalog-game__products {
  color: var(--modern-text-secondary);
  font-weight: 500;
}

.pro-catalog-game__age {
  font-size: 0.75rem;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
}

.pro-catalog-game__age--fresh {
  background: #d1fae5;
  color: #065f46;
}

.pro-catalog-game__age--ok {
  background: #dbeafe;
  color: #1e40af;
}

.pro-catalog-game__age--stale {
  background: #fee2e2;
  color: #991b1b;
}

.pro-catalog-game__age--pending {
  background: var(--modern-surface-elevated);
  color: var(--modern-text-muted);
}

.pro-catalog-game--empty {
  opacity: 0.6;
}

.pro-catalog-game--loading {
  justify-content: center;
  color: var(--modern-text-muted);
  font-style: italic;
}

/* SVG Placeholder Icons */
.placeholder-icon {
  width: 48px;
  height: 48px;
  color: var(--modern-text-muted);
  opacity: 0.5;
}

.buysheet-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--modern-surface-elevated);
  border: 1px dashed var(--modern-border);
  border-radius: var(--modern-radius);
  min-height: 80px;
}

.empty-state__icon {
  color: var(--modern-text-muted);
  margin-bottom: 1rem;
}

.empty-state__icon svg {
  opacity: 0.5;
}

/* Warning Icon SVG */
.warning-icon {
  flex-shrink: 0;
  color: var(--modern-warning);
}

.variant-picker__warning {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: #fef3c7;
  border-left: 3px solid var(--modern-warning);
  border-radius: 4px;
  margin-bottom: 1rem;
}

.variant-picker__warning .warning-text {
  font-size: 0.8125rem;
  color: #92400e;
}
/* Config health notification banner */
.config-health-banner {
  max-width: min(1100px, calc(100% - 2rem));
  margin: 0.75rem auto 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.config-health-banner__title {
  font-weight: 700;
}

.config-health-banner__list {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
}

.config-health-banner__list li + li {
  margin-top: 0.25rem;
}
