:root {
  color-scheme: dark;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #0b1120;
  color: #e2e8f0;
}

* {
  box-sizing: border-box;
}

.page-auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(99, 102, 241, 0.25), transparent 55%),
    linear-gradient(160deg, #0b1120 40%, #0f172a 100%);
}

.hidden {
  display: none !important;
}

.btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.3rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

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

.btn--primary {
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  color: #f8fafc;
  box-shadow: 0 18px 36px rgba(99, 102, 241, 0.35);
}

.btn--secondary {
  background: rgba(30, 41, 59, 0.8);
  color: #cbd5f5;
  border: 1px solid rgba(99, 102, 241, 0.45);
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 26px 45px rgba(99, 102, 241, 0.4);
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 20px;
  padding: 3rem;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 40px 80px rgba(15, 23, 42, 0.35);
}

.auth-card h1 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: clamp(2.25rem, 4vw, 2.75rem);
}

.auth-card__subtitle {
  margin: 0 0 2rem;
  color: #a5b4fc;
}

.auth-card__hint {
  margin-top: 1.5rem;
  color: rgba(226, 232, 240, 0.7);
  font-size: 0.9rem;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
}

.sidebar {
  background: rgba(15, 23, 42, 0.9);
  border-right: 1px solid rgba(148, 163, 184, 0.25);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.sidebar__toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.45);
  background: rgba(15, 23, 42, 0.7);
  color: #f8fafc;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.sidebar__toggle:hover,
.sidebar__toggle:focus-visible {
  background: rgba(99, 102, 241, 0.25);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
  outline: none;
}

.sidebar__toggle-label {
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sidebar__toggle-icon {
  position: relative;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.sidebar__toggle-icon::before,
.sidebar__toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.sidebar__toggle-icon::before {
  top: -5px;
}

.sidebar__toggle-icon::after {
  top: 5px;
}

.sidebar--nav-open .sidebar__toggle-icon {
  background: transparent;
}

.sidebar--nav-open .sidebar__toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.sidebar--nav-open .sidebar__toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.sidebar__brand {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.sidebar__selector {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sidebar__selector-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(148, 163, 184, 0.8);
}

.sidebar__selector-field {
  appearance: none;
  background: rgba(15, 23, 42, 0.75);
  color: #f9fafb;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  font-size: 0.95rem;
}

.brand__name {
  font-size: 1.35rem;
  font-weight: 700;
}

.brand__tagline {
  font-size: 0.9rem;
  color: rgba(148, 163, 184, 0.8);
}

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

.sidebar__nav-item {
  background: none;
  border: none;
  color: inherit;
  text-decoration: none;
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.sidebar__nav-item.active,
.sidebar__nav-item:hover {
  background: rgba(99, 102, 241, 0.18);
  transform: translateX(4px);
  text-decoration: none;
}

.sidebar__auth {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-status {
  font-size: 0.95rem;
  line-height: 1.4;
}

.token-box {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.75);
}

.token-box__label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.token-display {
  font-family: 'Fira Code', 'Source Code Pro', monospace;
  word-break: break-all;
  max-height: 5rem;
  overflow: auto;
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.sidebar__foot {
  color: rgba(148, 163, 184, 0.6);
  font-size: 0.8rem;
  text-align: center;
}

.content {
  padding: 2.5rem 2.75rem;
  overflow-y: auto;
}

.view {
  display: none;
}

.view:not(.view--hidden) {
  display: block;
}

.view__header {
  margin-bottom: 1.5rem;
}

.view__header h2 {
  margin: 0;
  font-size: 1.75rem;
}

.view__subtitle {
  margin: 0.35rem 0 0;
  color: rgba(148, 163, 184, 0.8);
}

.view.view--compact {
  padding: 1.5rem;
}

.view.view--compact .filters {
  margin-bottom: 1rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.filter-group__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(203, 213, 225, 0.8);
}

.filter-group__field {
  appearance: none;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.45);
  border-radius: 12px;
  padding: 0.55rem 0.9rem;
  color: #f8fafc;
  font-size: 0.95rem;
  min-width: 10rem;
}

.filter-group__field:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.35);
}

.filter-group--asin {
  flex: 1 1 200px;
}

.filter-group--status-row {
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 12px;
  padding: 0.7rem 1rem 0.9rem;
  background: rgba(15, 23, 42, 0.6);
  margin-top: 0.5rem;
  width: 100%;
}

.filter-group--status-row legend {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(203, 213, 225, 0.8);
  padding: 0 0.2rem;
}

.filter-group__options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 0.35rem 0.75rem;
  margin-top: 0.4rem;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.85);
}

.filter-option input[type='checkbox'] {
  width: 1rem;
  height: 1rem;
  accent-color: #6366f1;
}

.status-banner {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: rgba(224, 231, 255, 0.95);
}

.status-banner--error {
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.4);
  color: rgba(254, 226, 226, 0.95);
}

.status-banner--success {
  background: rgba(110, 231, 183, 0.18);
  border-color: rgba(16, 185, 129, 0.4);
  color: rgba(209, 250, 229, 0.95);
}

.view__body {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 16px;
  padding: 1.25rem;
  min-height: 160px;
  overflow: auto;
}

.view__body h3 {
  margin-top: 1rem;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  color: rgba(226, 232, 240, 0.85);
}

.metrics-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.chart-panel {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
  min-height: 260px;
}

.chart-panel canvas {
  width: 100%;
  max-width: 100%;
}

.chart-panel__summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.summary-metric {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.summary-metric__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(148, 163, 184, 0.8);
}

.summary-metric__value {
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.95);
}

.chart-panel__content {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: flex-start;
}

.chart-panel__chart {
  flex: 1 1 260px;
  min-width: 220px;
  position: relative;
  height: 260px;
}

.chart-panel__table {
  flex: 1 1 360px;
  min-width: 260px;
  max-height: 280px;
  overflow-x: auto;
  overflow-y: auto;
}

.chart-panel__table table {
  width: 100%;
}

.metrics-table--compact th,
.metrics-table--compact td {
  padding: 0.5rem 0.6rem;
  font-size: 0.85rem;
}

.asin-insights {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.asin-insight {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 220px) minmax(0, 1fr);
  gap: 1.25rem;
}

.asin-insight__col h3 {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(226, 232, 240, 0.95);
}

.asin-insight__subheading {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.9);
}

.asin-insight__identity {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.asin-insight__identity-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.asin-insight__image {
  width: 96px;
  height: 96px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 0.35rem;
}

.asin-insight__image-link {
  display: inline-block;
}

.asin-insight__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.asin-insight__details {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.35rem;
}

.asin-insight__detail {
  display: flex;
  gap: 0.5rem;
  font-size: 0.82rem;
  line-height: 1.2;
  flex-wrap: wrap;
}

.asin-insight__detail-label {
  color: rgba(148, 163, 184, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  min-width: 92px;
}

.asin-insight__title {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.3;
  color: rgba(226, 232, 240, 0.9);
}

.asin-insight__detail-value {
  color: rgba(226, 232, 240, 0.95);
  font-weight: 500;
  word-break: break-word;
}

.sku-panel {
  margin: 1.5rem 0 0;
  padding: 1.1rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.6));
  box-shadow: 0 24px 32px -32px rgba(15, 23, 42, 0.9);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sku-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.sku-panel__header h4 {
  margin: 0;
  font-size: 1rem;
  color: rgba(226, 232, 240, 0.95);
}

.sku-panel__controls {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.sku-panel__limit {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.85);
}

.sku-panel__select {
  appearance: none;
  background: rgba(15, 23, 42, 0.65);
  color: rgba(226, 232, 240, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  padding: 0.25rem 0.75rem 0.25rem 0.5rem;
  font-size: 0.82rem;
  line-height: 1.2;
}

.sku-panel__select:focus {
  outline: 2px solid rgba(59, 130, 246, 0.45);
  outline-offset: 2px;
}

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

.sku-panel__status {
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.9);
}

.sku-card {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.6);
  padding: 0.9rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 16px 24px -24px rgba(15, 23, 42, 0.8);
}

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

.sku-card__identity {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sku-card__asin {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.8);
}

.sku-card__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.5rem 0.75rem;
}

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

.sku-card__chart {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 220px;
}

.sku-card__chart-title {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.85);
  text-transform: none;
}

.sku-card__chart canvas {
  width: 100% !important;
  height: 200px !important;
}

.job-overview {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.6));
  backdrop-filter: blur(6px);
}

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

.job-overview__item {
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.job-overview__item--info {
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.12);
}

.job-overview__item--success {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.14);
}

.job-overview__item--danger {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.12);
}

.job-overview__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(148, 163, 184, 0.85);
}

.job-overview__value {
  font-size: 1.45rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.95);
}

.job-overview__hint {
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.85);
}

.job-overview__footer {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.85);
}

.job-overview__summary {
  opacity: 0.85;
}

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

.job-lists {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 960px) {
  .job-lists {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.job-list__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

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

.job-list__count {
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.85);
}

.job-history-limit {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.85);
}

.job-history-limit__label,
.job-history-limit__suffix {
  opacity: 0.85;
}

.job-history-limit__select {
  appearance: none;
  background: rgba(15, 23, 42, 0.65);
  color: rgba(226, 232, 240, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  padding: 0.25rem 0.75rem 0.25rem 0.5rem;
  font-size: 0.82rem;
  line-height: 1.2;
}

.job-history-limit__select:focus {
  outline: 2px solid rgba(59, 130, 246, 0.45);
  outline-offset: 2px;
}

.job-history-limit__select option {
  color: #0f172a;
}

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

.job-card {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  padding: 1.15rem 1.3rem;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.6));
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 24px 32px -32px rgba(15, 23, 42, 0.9);
}

.job-card__header {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.job-card__title {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 200px;
}

.job-card__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.job-card__heading {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.95);
}

.job-card__id {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.75);
}

.job-card__sellers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.job-card__status-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
}

.job-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.job-card__timestamp {
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.82);
  align-self: center;
}

.job-card__progress {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.job-progress__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(148, 163, 184, 0.88);
}

.job-progress__status {
  font-weight: 600;
  color: rgba(226, 232, 240, 0.92);
}

.job-progress__value {
  font-variant-numeric: tabular-nums;
}

.job-progress {
  position: relative;
  width: 100%;
  height: 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.6);
  overflow: hidden;
}

.job-progress::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(15, 23, 42, 0.35);
}

.job-progress__bar {
  position: relative;
  height: 100%;
  width: calc(var(--job-progress, 0) * 1%);
  border-radius: inherit;
  transition: width 0.35s ease;
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.job-progress--success .job-progress__bar {
  background: linear-gradient(135deg, #22c55e, #10b981);
}

.job-progress--danger .job-progress__bar {
  background: linear-gradient(135deg, #f87171, #ef4444);
}

.job-progress--muted .job-progress__bar {
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.6), rgba(148, 163, 184, 0.4));
}

.job-progress--neutral .job-progress__bar {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(99, 102, 241, 0.45));
}

.job-progress__note {
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.85);
}

.job-progress--indeterminate .job-progress__bar {
  width: 100%;
  animation: job-progress-indeterminate 1.4s linear infinite;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.45), rgba(59, 130, 246, 0.15));
  background-size: 200% 100%;
}

.job-progress--danger.job-progress--indeterminate .job-progress__bar {
  background: linear-gradient(90deg, rgba(248, 113, 113, 0.15), rgba(248, 113, 113, 0.45), rgba(248, 113, 113, 0.15));
}

@keyframes job-progress-indeterminate {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.job-summary-grid {
  margin: 0;
  display: grid;
  gap: 0.75rem 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.job-summary-grid__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.job-summary-grid__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(148, 163, 184, 0.8);
}

.job-summary-grid__value {
  font-size: 0.96rem;
  font-weight: 500;
  color: rgba(226, 232, 240, 0.95);
  word-break: break-word;
}

.job-summary-grid__hint {
  font-size: 0.74rem;
  color: rgba(148, 163, 184, 0.85);
}

.job-data {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.5);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.job-data--progress {
  border-color: rgba(96, 165, 250, 0.32);
  background: rgba(37, 99, 235, 0.12);
}

.job-data--result {
  border-color: rgba(52, 211, 153, 0.32);
  background: rgba(22, 163, 74, 0.1);
}

.job-data--error {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.12);
}

.job-data--activity {
  border-color: rgba(96, 165, 250, 0.22);
  background: rgba(15, 23, 42, 0.45);
}

.job-data__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.job-data__header h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.92);
}

.job-data__raw {
  margin: 0;
}

.job-data__raw summary {
  cursor: pointer;
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.9);
}

.job-data__raw[open] summary {
  color: rgba(226, 232, 240, 0.92);
}

.job-data__raw--inline {
  margin-top: 0.5rem;
}

.job-data__code {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 10px;
  padding: 0.75rem;
  margin: 0.5rem 0 0;
  font-family: 'Fira Code', 'Source Code Pro', monospace;
  font-size: 0.78rem;
  max-height: 220px;
  overflow: auto;
  color: rgba(226, 232, 240, 0.92);
}

.job-data__code--error {
  border-color: rgba(248, 113, 113, 0.4);
}

.job-summary-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.55);
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.job-summary-card__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.job-summary-card__title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.9);
}

.job-summary-card--info {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.12);
}

.job-summary-card--success {
  border-color: rgba(34, 197, 94, 0.32);
  background: rgba(34, 197, 94, 0.14);
}

.job-summary-card--danger {
  border-color: rgba(248, 113, 113, 0.32);
  background: rgba(248, 113, 113, 0.12);
}

.job-alert {
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  background: rgba(248, 113, 113, 0.08);
  color: rgba(248, 113, 113, 0.9);
  border: 1px solid rgba(248, 113, 113, 0.25);
}

.job-alert strong {
  font-weight: 600;
}

.job-alert--danger {
  background: rgba(248, 113, 113, 0.12);
}

.job-metric-grid {
  margin: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.job-metric-grid__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.job-metric-grid__label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(148, 163, 184, 0.78);
}

.job-metric-grid__value {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(226, 232, 240, 0.92);
  word-break: break-word;
}

.job-metric-grid__hint {
  font-size: 0.7rem;
  color: rgba(148, 163, 184, 0.85);
}

.job-metric-grid--compact {
  gap: 0.6rem;
}

.job-metric-grid--inline {
  margin-top: 0.5rem;
}

.job-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  padding-bottom: 0.25rem;
}

.job-tabs__tab {
  border: none;
  background: transparent;
  color: rgba(148, 163, 184, 0.85);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.55rem;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
}

.job-tabs__tab.is-active {
  color: rgba(226, 232, 240, 0.98);
  background: rgba(37, 99, 235, 0.18);
}

.job-tabs__tab:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.65);
  outline-offset: 2px;
}

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

.job-panel {
  display: none;
  flex-direction: column;
  gap: 0.9rem;
}

.job-panel.is-active {
  display: flex;
}

.job-panel__section {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.55);
  padding: 1rem;
}

.job-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  font-weight: 600;
  background: rgba(148, 163, 184, 0.18);
  color: rgba(226, 232, 240, 0.85);
}

.job-badge--type {
  background: rgba(96, 165, 250, 0.18);
  color: #dbeafe;
}

.job-badge--info {
  background: rgba(59, 130, 246, 0.2);
  color: #bfdbfe;
}

.job-badge--success {
  background: rgba(34, 197, 94, 0.2);
  color: #bbf7d0;
}

.job-badge--danger {
  background: rgba(248, 113, 113, 0.22);
  color: #fecaca;
}

.job-badge--neutral {
  background: rgba(148, 163, 184, 0.18);
  color: rgba(226, 232, 240, 0.85);
}

.job-badge--muted {
  background: rgba(148, 163, 184, 0.12);
  color: rgba(148, 163, 184, 0.9);
}

.job-badge--level {
  font-size: 0.68rem;
}

.job-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(30, 64, 175, 0.22);
  color: rgba(191, 219, 254, 0.95);
  white-space: nowrap;
}

.job-pill--seller {
  background: rgba(59, 130, 246, 0.22);
  color: #dbeafe;
}

.job-pill--warning {
  background: rgba(251, 191, 36, 0.2);
  color: #fde68a;
}

.job-empty {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(148, 163, 184, 0.9);
}

.job-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.job-timeline__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem 1rem;
  align-items: start;
}

.job-timeline__time {
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.8);
}

.job-timeline__content {
  border-left: 2px solid rgba(148, 163, 184, 0.18);
  padding-left: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.job-timeline__message {
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.92);
}

.job-timeline__item--warn .job-timeline__content {
  border-color: rgba(251, 191, 36, 0.3);
}

.job-timeline__item--error .job-timeline__content {
  border-color: rgba(248, 113, 113, 0.35);
}

.job-section__title {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.1rem;
  color: rgba(226, 232, 240, 0.85);
}

.job-live-indicator,
.job-last-updated {
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.8);
}

.job-live-indicator--active {
  color: #34d399;
}

.job-live-indicator--error {
  color: #fbbf24;
}

.job-last-updated {
  white-space: nowrap;
}

.pagination {
  margin-top: 1rem;
}

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

.pagination__summary {
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.85);
}

.asin-insight__metrics {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.asin-insight__metric {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.asin-insight__metric-label {
  color: rgba(148, 163, 184, 0.85);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.asin-insight__metric-value {
  color: rgba(226, 232, 240, 0.95);
  font-weight: 600;
}

.asin-insight__charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.asin-insight__chart {
  background: rgba(13, 24, 43, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  padding: 0.75rem;
  height: 180px;
  position: relative;
}

.asin-insight__chart-title {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.asin-insight__chart canvas {
  width: 100%;
  max-width: 100%;
  height: 100% !important;
}

@media (max-width: 1024px) {
  .asin-insight {
    grid-template-columns: minmax(0, 1fr);
  }

  .asin-insight__charts {
    grid-template-columns: minmax(0, 1fr);
  }

  .asin-insight__chart {
    height: 200px;
  }

  .asin-insight__identity {
    align-items: flex-start;
  }
}

.metrics-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Fira Code', 'Source Code Pro', monospace;
  font-size: 0.9rem;
}

.metrics-table--daily {
  margin-top: 1.5rem;
}

.metrics-table thead {
  background: rgba(99, 102, 241, 0.2);
}

.metrics-table th,
.metrics-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  text-align: left;
}

.metrics-table tbody tr:hover {
  background: rgba(30, 41, 59, 0.55);
}

.table-input {
  width: 100%;
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.75);
  color: #f8fafc;
  font-size: 0.9rem;
}

.table-input:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

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

.metrics-empty {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(226, 232, 240, 0.75);
}

.no-access-message {
  margin: 4rem auto;
  max-width: 520px;
  text-align: center;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
}

.no-access-message.hidden {
  display: none;
}

.no-access-message h2 {
  margin: 0 0 0.75rem;
  font-size: 1.6rem;
}

.no-access-message p {
  margin: 0;
  font-size: 1rem;
  color: rgba(226, 232, 240, 0.78);
}

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

.progress.hidden {
  display: none;
}

.progress progress {
  width: 220px;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
}

.progress__label {
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.8);
}

@media (max-width: 1024px) {
  .app-shell {
    grid-template-columns: 220px 1fr;
  }

  .filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group__field {
    min-width: unset;
  }
}

@media (max-width: 768px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 0.9rem 1.1rem;
    border-right: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    backdrop-filter: blur(6px);
  }

  .sidebar__brand {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .sidebar__selector {
    width: 100%;
    order: 3;
  }

  .sidebar__toggle {
    display: inline-flex;
    order: 2;
  }

  .sidebar__nav {
    display: none;
    width: 100%;
    margin: 0;
    padding: 0.25rem 0 0;
  }

  .sidebar--nav-open .sidebar__nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.5rem;
  }

  .sidebar__nav-item {
    width: 100%;
    text-align: center;
    padding: 0.55rem 0.75rem;
    font-size: 0.88rem;
  }

  .sidebar__auth {
    display: none;
    margin-top: 0;
    align-items: stretch;
    gap: 0.6rem;
  }

  .sidebar--nav-open .sidebar__auth {
    display: flex;
  }

  .sidebar__auth .btn {
    width: 100%;
  }

  .token-box {
    display: none;
  }

  .content {
    padding: 1.25rem;
  }
}

.users-sellers {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.users-sellers__header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.users-sellers__header p {
  margin: 0.25rem 0 0;
  color: rgba(226, 232, 240, 0.7);
  font-size: 0.9rem;
}

.users-sellers__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.6rem;
}

.users-sellers__option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
}

.users-sellers__option input[type='checkbox'] {
  accent-color: #6366f1;
}

.users-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
}

.users-actions__summary {
  font-size: 0.95rem;
  color: rgba(226, 232, 240, 0.8);
}

.users-actions__buttons {
  display: flex;
  gap: 0.75rem;
}

.users-table-wrapper {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 16px;
  padding: 1rem;
}

.users-table thead th:first-child,
.users-table tbody td:first-child {
  width: 40px;
  text-align: center;
}

.users-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.users-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(99, 102, 241, 0.45);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.85rem;
}

.users-chip--empty {
  background: transparent;
  border-style: dashed;
  color: rgba(226, 232, 240, 0.6);
}

.users-chip--new {
  border-color: rgba(16, 185, 129, 0.65);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.35);
}

.users-chip__remove {
  appearance: none;
  background: none;
  border: none;
  color: rgba(226, 232, 240, 0.75);
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0;
}

.users-chip__remove:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.users-row--dirty {
  background: rgba(99, 102, 241, 0.08);
}

.users-role-select {
  min-width: 140px;
}

.users-approve-btn {
  padding: 0.4rem 0.8rem;
}

@media (max-width: 600px) {
  .users-actions {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .users-actions__buttons {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .users-actions__buttons .btn {
    flex: 1 1 140px;
  }
}

@media (max-width: 640px) {
  .metrics-table {
    display: block;
    border-spacing: 0;
  }

  .metrics-table thead {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }

  .metrics-table tbody {
    display: block;
    width: 100%;
  }

  .metrics-table tr {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.85rem 1rem;
    margin-bottom: 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.65);
  }

  .metrics-table tr:last-child {
    margin-bottom: 0;
  }

  .metrics-table td {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.25rem 0;
    border-bottom: none;
  }

  .metrics-table td::before {
    content: attr(data-label);
    flex: 0 0 110px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(148, 163, 184, 0.8);
  }

  .metrics-table td:last-child {
    padding-bottom: 0;
  }

  .table-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}


/* Info Banner for Amazon Ads Ingestion */
.info-banner {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.info-banner h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #e2e8f0;
}

.info-banner ul {
  margin: 0;
  padding-left: 1.5rem;
  list-style: disc;
}

.info-banner li {
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.info-banner li:last-child {
  margin-bottom: 0;
}

.info-banner strong {
  color: #e2e8f0;
  font-weight: 600;
}


/* Job Cards */
.job-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.job-card__header {
  margin-bottom: 0.75rem;
}

.job-card__title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.job-card__title {
  color: #e2e8f0;
  font-size: 1rem;
}

.job-card__meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: #94a3b8;
}

.job-card__body {
  margin-bottom: 0.75rem;
}

.job-card__detail {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.job-card__label {
  color: #94a3b8;
  min-width: 100px;
}

.job-card__value {
  color: #cbd5e1;
}

.job-card__error {
  background: rgba(239, 68, 68, 0.1);
  border-left: 3px solid #ef4444;
  padding: 0.5rem;
  margin-top: 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #fecaca;
}

.job-card__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Job Pills */
.job-pill {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.job-pill--queued {
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
}

.job-pill--running {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

.job-pill--success {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

.job-pill--error {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.job-pill--cancelled {
  background: rgba(251, 146, 60, 0.2);
  color: #fdba74;
}

/* Schedule Cards */
.schedule-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

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

.schedule-card__body {
  font-size: 0.9rem;
  color: #cbd5e1;
  margin-bottom: 0.75rem;
}

.schedule-card__body > div {
  margin-bottom: 0.3rem;
}

.schedule-card__actions {
  display: flex;
  gap: 0.5rem;
}

.schedule-pill {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.schedule-pill--active {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

.schedule-pill--paused {
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
}

/* Success Message */
.success-message {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 8px;
  padding: 1rem;
  color: #86efac;
  line-height: 1.6;
}

.success-message strong {
  color: #d1fae5;
}

/* Job Live Indicator */
.job-live-indicator {
  font-size: 0.85rem;
  color: #94a3b8;
}

.job-live-indicator.connected {
  color: #86efac;
}

/* Job Overview */
.job-overview {
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 8px;
}

/* Job Progress Section */
.job-progress-section {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  background: rgba(59, 130, 246, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.job-progress-bar {
  height: 8px;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.job-progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.job-progress-bar__fill--animated {
  width: 100%;
  background: linear-gradient(
    90deg,
    rgba(59, 130, 246, 0.3) 0%,
    rgba(96, 165, 250, 0.8) 50%,
    rgba(59, 130, 246, 0.3) 100%
  );
  background-size: 200% 100%;
  animation: progress-slide 2s linear infinite;
}

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

.job-progress-note {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #93c5fd;
  line-height: 1.4;
}

.job-progress-note::before {
  content: '▸';
  margin-right: 0.5rem;
  color: #60a5fa;
}

/* Job Card adjustments for progress */
.job-card__header + .job-progress-section {
  margin-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* ===== DASHBOARD V2 STYLES ===== */

/* Advanced Filters V2 */
.filters-v2 {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 16px;
  padding: 1.25rem;
}

.filters-v2__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}

/* Hero KPI Grid */
.hero-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.hero-kpi-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.85), rgba(30, 41, 59, 0.75));
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.3);
}

.hero-kpi-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.hero-kpi-card__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(148, 163, 184, 0.9);
  font-weight: 600;
}

.hero-kpi-card__trend {
  font-size: 1.5rem;
  font-weight: 700;
}

.hero-kpi-card__trend.trend-up {
  color: #22C55E;
}

.hero-kpi-card__trend.trend-down {
  color: #EF4444;
}

.hero-kpi-card__value {
  font-size: 2.25rem;
  font-weight: 700;
  color: #E2E8F0;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-kpi-card__subtext {
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.8);
}

/* Chart Section */
.chart-section {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.chart-section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.chart-section__header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: rgba(226, 232, 240, 0.95);
}

.chart-section__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.chart-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.85);
  cursor: pointer;
  user-select: none;
}

.chart-toggle input[type='checkbox'] {
  width: 1rem;
  height: 1rem;
  accent-color: #6366F1;
  cursor: pointer;
}

.chart-section__body {
  position: relative;
  height: 300px;
}

/* ASIN Grid Section */
.asin-grid-section {
  margin-bottom: 2rem;
}

.asin-grid-section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.asin-grid-section__header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: rgba(226, 232, 240, 0.95);
}

.view-toggle {
  display: inline-flex;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 999px;
  padding: 0.25rem;
}

.view-toggle__btn {
  appearance: none;
  background: transparent;
  border: none;
  color: rgba(226, 232, 240, 0.7);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-toggle__btn.active {
  background: linear-gradient(90deg, #6366F1, #8B5CF6);
  color: #F8FAFC;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.view-toggle__btn:not(.active):hover {
  color: rgba(226, 232, 240, 0.95);
  background: rgba(99, 102, 241, 0.15);
}

/* ASIN Card V2 */
.asin-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.asin-card-v2 {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.7));
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 16px;
  padding: 1.25rem;
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.asin-card-v2:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.5);
}

.asin-card-v2__header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.asin-card-v2__image {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: #FFFFFF;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  padding: 0.35rem;
  flex-shrink: 0;
}

.asin-card-v2__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: rgba(148, 163, 184, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(15, 23, 42, 0.5);
}

.asin-card-v2__info {
  flex: 1;
  min-width: 0;
}

.asin-card-v2__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.95);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asin-card-v2__subtitle {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.85);
}

.performance-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.performance-badge--top {
  background: rgba(34, 197, 94, 0.2);
  color: #BBF7D0;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.performance-badge--high-roas {
  background: rgba(59, 130, 246, 0.2);
  color: #BFDBFE;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.performance-badge--ad-heavy {
  background: rgba(251, 191, 36, 0.2);
  color: #FDE68A;
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.asin-card-v2__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.asin-metric {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.asin-metric__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(148, 163, 184, 0.8);
}

.asin-metric__value {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.95);
}

/* Metrics Table V2 */
.metrics-table-section {
  margin-bottom: 2rem;
}

.metrics-table-v2 {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.metrics-table-v2 thead {
  background: rgba(99, 102, 241, 0.2);
}

.metrics-table-v2 th,
.metrics-table-v2 td {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  text-align: left;
}

.metrics-table-v2 th {
  font-weight: 600;
  color: rgba(226, 232, 240, 0.95);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.metrics-table-v2 tbody tr {
  transition: background 0.15s ease;
}

.metrics-table-v2 tbody tr:hover {
  background: rgba(99, 102, 241, 0.1);
}

/* Ad Performance Section */
.ad-performance-section {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.ad-performance-section h3 {
  margin: 0 0 1.5rem;
  font-size: 1.25rem;
  color: rgba(226, 232, 240, 0.95);
}

.ad-performance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.ad-chart-card {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  padding: 1.25rem;
}

.ad-chart-card h4 {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: rgba(226, 232, 240, 0.9);
}

.ad-chart-card canvas {
  width: 100% !important;
  height: 200px !important;
}

/* Responsive Adjustments for V2 */
@media (max-width: 768px) {
  .hero-kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }

  .hero-kpi-card {
    padding: 1rem;
  }

  .hero-kpi-card__value {
    font-size: 1.75rem;
  }

  .asin-grid-v2 {
    grid-template-columns: 1fr;
  }

  .asin-card-v2__metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .ad-performance-grid {
    grid-template-columns: 1fr;
  }

  .chart-section__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .filters-v2__row {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .metrics-table-v2 {
    display: block;
  }

  .metrics-table-v2 thead {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }

  .metrics-table-v2 tbody {
    display: block;
    width: 100%;
  }

  .metrics-table-v2 tr {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.65);
  }

  .metrics-table-v2 tr:last-child {
    margin-bottom: 0;
  }

  .metrics-table-v2 td {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.25rem 0;
    border-bottom: none;
  }

  .metrics-table-v2 td::before {
    content: attr(data-label);
    flex: 0 0 100px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(148, 163, 184, 0.8);
    font-weight: 600;
  }

  .metrics-table-v2 td:last-child {
    padding-bottom: 0;
  }
}

/* Ad Metrics Table Section */
.ad-metrics-table-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.ad-metrics-table-section h4 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: rgba(226, 232, 240, 0.95);
}

/* Performers Section */
.performers-section {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

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

.performers-card {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  padding: 1.25rem;
}

.performers-card h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: rgba(226, 232, 240, 0.95);
  font-weight: 600;
}

.performers-card table {
  width: 100%;
  font-size: 0.85rem;
}

.performers-card th,
.performers-card td {
  padding: 0.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.performers-card thead {
  background: rgba(99, 102, 241, 0.15);
}

.performers-card th {
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(148, 163, 184, 0.9);
}

.performers-card tbody tr:hover {
  background: rgba(99, 102, 241, 0.08);
}

/* ASIN card expandable charts */
.asin-card-v2--expanded {
  grid-column: 1 / -1;
}

.asin-card-v2__charts-toggle {
  appearance: none;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  color: rgba(226, 232, 240, 0.9);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  width: 100%;
  transition: all 0.2s ease;
}

.asin-card-v2__charts-toggle:hover {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3));
  border-color: rgba(99, 102, 241, 0.6);
}

.asin-card-v2__charts {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.asin-card-v2__charts.show {
  display: grid;
}

.asin-card-v2__chart {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 10px;
  padding: 0.75rem;
  min-height: 180px;
}

.asin-card-v2__chart-title {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.asin-card-v2__chart canvas {
  width: 100% !important;
  height: 140px !important;
}

/* ========================================
   Unified Ingestion Dashboard Styles
   ======================================== */

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

.metric-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

.metric-card__icon {
  font-size: 2rem;
  line-height: 1;
}

.metric-card__content {
  flex: 1;
}

.metric-card__value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-card__label {
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.9);
  margin-top: 0.25rem;
}

.metric-card--active .metric-card__value {
  background: linear-gradient(90deg, #10b981, #14b8a6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-card--failed .metric-card__value {
  background: linear-gradient(90deg, #ef4444, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Quick Actions */
.quick-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.connection-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.9);
}

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #64748b;
  animation: pulse 2s ease-in-out infinite;
}

.status-indicator--connected {
  background: #10b981;
}

.status-indicator--disconnected {
  background: #ef4444;
  animation: none;
}

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

.btn__icon {
  display: inline-block;
  margin-right: 0.35rem;
}

.btn--small {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}

.btn--danger {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.btn--danger:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.3);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
}

/* Filters Panel */
.filters-panel {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 12px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Jobs Container */
.jobs-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.jobs-container--compact {
  gap: 0.75rem;
}

/* Job Card */
.job-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.job-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

.job-card--compact {
  padding: 1rem;
}

.job-card--sp-api {
  border-left: 3px solid #6366f1;
}

.job-card--ads {
  border-left: 3px solid #8b5cf6;
}

.job-card--running {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), transparent);
  border-color: rgba(16, 185, 129, 0.3);
}

.job-card--queued {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.05), transparent);
  border-color: rgba(251, 191, 36, 0.3);
}

.job-card--failed {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.05), transparent);
  border-color: rgba(239, 68, 68, 0.3);
}

.job-card--succeeded {
  border-color: rgba(148, 163, 184, 0.15);
}

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

.job-card__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.job-card__icon {
  font-size: 1.2rem;
  line-height: 1;
}

.job-card__type {
  font-weight: 600;
  font-size: 1rem;
  color: #e2e8f0;
}

.job-card__badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.job-card__badge--progress {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.job-card__badge--queued {
  background: rgba(251, 191, 36, 0.2);
  color: #fcd34d;
}

.job-card__time {
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.9);
}

.job-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.job-card__meta-item {
  color: rgba(203, 213, 225, 0.9);
}

.job-card__meta-item strong {
  color: #e2e8f0;
  font-weight: 600;
}

.job-card__progress {
  margin-bottom: 0.75rem;
}

.progress-bar {
  height: 8px;
  background: rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #14b8a6);
  border-radius: 999px;
  transition: width 0.5s ease;
}

.progress-bar__label {
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.9);
  margin-top: 0.35rem;
}

.job-card__error {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.job-card__error-icon {
  font-size: 1rem;
  line-height: 1;
}

.job-card__error-text {
  flex: 1;
  font-size: 0.85rem;
  color: #fca5a5;
  line-height: 1.4;
}

.job-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.job-card__actions {
  display: flex;
  gap: 0.5rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: rgba(148, 163, 184, 0.7);
}

.empty-state__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.empty-state__text {
  font-size: 1rem;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 0.5rem;
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* View Header Actions */
.view__header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.history-limit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.9);
}

.history-limit__select {
  appearance: none;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  color: #e2e8f0;
  font-size: 0.85rem;
  cursor: pointer;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal__content {
  position: relative;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 16px;
  max-width: 600px;
  max-height: 90vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease;
}

.modal__content--large {
  max-width: 800px;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal__header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.modal__close {
  appearance: none;
  border: none;
  background: none;
  font-size: 2rem;
  line-height: 1;
  color: rgba(148, 163, 184, 0.7);
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__close:hover {
  color: #e2e8f0;
}

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

.modal__footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.modal-nav {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.modal-step__title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.modal-step__subtitle {
  margin: 0 0 1.5rem;
  color: rgba(148, 163, 184, 0.9);
  font-size: 0.9rem;
}

/* Job Type Selection */
.job-type-section {
  margin-bottom: 2rem;
}

.job-type-section:last-child {
  margin-bottom: 0;
}

.job-type-section__title {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(148, 163, 184, 0.9);
}

.job-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.job-type-card {
  appearance: none;
  border: 2px solid rgba(148, 163, 184, 0.2);
  background: rgba(30, 41, 59, 0.5);
  border-radius: 12px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.job-type-card:hover {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(30, 41, 59, 0.7);
  transform: translateY(-2px);
}

.job-type-card--selected {
  border-color: #6366f1;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), transparent);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
}

.job-type-card__icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.job-type-card__name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #e2e8f0;
  margin-bottom: 0.25rem;
}

.job-type-card__desc {
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.8);
  line-height: 1.3;
}

/* Advanced Options */
.advanced-options {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(30, 41, 59, 0.3);
  border-radius: 8px;
}

.advanced-options summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(203, 213, 225, 0.9);
  user-select: none;
}

.advanced-options summary:hover {
  color: #e2e8f0;
}

.advanced-options .filters {
  margin-top: 1rem;
}

/* Info Banner */
.info-banner {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.info-banner--small {
  padding: 0.75rem;
  font-size: 0.85rem;
}

.info-banner h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.info-banner ul {
  margin: 0;
  padding-left: 1.5rem;
}

.info-banner li {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

/* Review Summary */
.review-summary {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
}

.review-summary__section {
  margin-bottom: 1.5rem;
}

.review-summary__section:last-child {
  margin-bottom: 0;
}

.review-summary__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(148, 163, 184, 0.9);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.review-summary__value {
  font-size: 1rem;
  color: #e2e8f0;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  min-width: 300px;
  max-width: 500px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
  pointer-events: all;
}

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

.toast--success {
  border-left: 3px solid #10b981;
}

.toast--error {
  border-left: 3px solid #ef4444;
}

.toast--warning {
  border-left: 3px solid #f59e0b;
}

.toast--info {
  border-left: 3px solid #6366f1;
}

.toast__icon {
  font-size: 1.25rem;
  line-height: 1;
}

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

.toast__close {
  appearance: none;
  border: none;
  background: none;
  font-size: 1.5rem;
  line-height: 1;
  color: rgba(148, 163, 184, 0.7);
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.toast__close:hover {
  color: #e2e8f0;
}

/* Schedules Container */
.schedules-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Log Entry */
.log-entry {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.8rem;
  border-left: 3px solid rgba(148, 163, 184, 0.3);
}

.log-entry--info {
  border-left-color: #6366f1;
}

.log-entry--warn {
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.05);
}

.log-entry--error {
  border-left-color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}

.log-entry__time {
  color: rgba(148, 163, 184, 0.7);
  white-space: nowrap;
}

.log-entry__level {
  font-weight: 600;
  min-width: 50px;
}

.log-entry__message {
  flex: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .metrics-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

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

  .modal__content {
    max-width: 95vw;
    max-height: 95vh;
  }

  .toast-container {
    left: 1rem;
    right: 1rem;
  }

  .toast {
    min-width: auto;
  }
}

.filter-group__hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.7);
  font-style: italic;
}

/* Progress Details */
.progress-details {
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(30, 41, 59, 0.5);
  border-radius: 6px;
  font-size: 0.85rem;
  color: rgba(203, 213, 225, 0.9);
  line-height: 1.5;
}

/* Queued Info */
.job-card__queued-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.job-card__queued-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.job-card__queued-text {
  flex: 1;
  font-size: 0.9rem;
  color: #fcd34d;
}

.job-card__queued-detail {
  font-size: 0.8rem;
  color: rgba(251, 191, 36, 0.7);
}
