/* TruckAgent — product UI (workspace) */

@keyframes prod-ambient-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-2%, 1.5%) scale(1.04); }
}

@keyframes prod-lane-flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes prod-pulse-dot {
  0%, 100% { box-shadow: 0 0 4px rgba(0, 255, 157, 0.45); transform: scale(1); }
  50% { box-shadow: 0 0 14px rgba(0, 255, 157, 0.85); transform: scale(1.15); }
}

@keyframes prod-list-in {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: none; }
}

@keyframes prod-detail-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes prod-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes prod-badge-glow {
  0%, 100% { box-shadow: 0 0 6px rgba(0, 212, 255, 0.2); }
  50% { box-shadow: 0 0 14px rgba(0, 212, 255, 0.45); }
}

body.page-workspace {
  --prod-bg: #060910;
  --prod-surface: #0c1219;
  --prod-surface-2: #111a24;
  --prod-surface-hover: #172030;
  --prod-border: rgba(0, 212, 255, 0.08);
  --prod-border-strong: rgba(0, 212, 255, 0.16);
  --prod-text: #f0f6fc;
  --prod-text-secondary: #9eb4cc;
  --prod-text-muted: #6a849e;
  --prod-accent: #00d4ff;
  --prod-accent-2: #00ff9d;
  --prod-accent-soft: rgba(0, 212, 255, 0.14);
  --prod-success: #00ff9d;
  --prod-gold: #f5b942;
  --prod-glow: 0 0 24px rgba(0, 212, 255, 0.18);
  --prod-radius: 12px;
  --prod-radius-sm: 8px;
  --header-h: 52px;
  position: relative;
  background: var(--prod-bg);
  color: var(--prod-text);
  overflow: hidden;
}

body.page-workspace::before {
  content: '';
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 15% 0%, rgba(0, 212, 255, 0.11), transparent 55%),
    radial-gradient(ellipse 45% 40% at 88% 8%, rgba(0, 255, 157, 0.07), transparent 50%),
    radial-gradient(ellipse 40% 35% at 50% 100%, rgba(245, 185, 66, 0.06), transparent 45%);
  animation: prod-ambient-drift 18s ease-in-out infinite alternate;
}

body.page-workspace .topbar {
  position: relative;
  z-index: 200;
  overflow: visible;
}

body.page-workspace .workspace-shell {
  position: relative;
  z-index: 1;
}

body.page-workspace .topbar-inner,
body.page-workspace .topbar-inner-workspace,
body.page-workspace .topbar-workspace-tools,
body.page-workspace .topbar-workspace-actions,
body.page-workspace .workspace-clear {
  overflow: visible;
}

/* ——— Top bar ——— */
body.page-workspace .topbar {
  background: rgba(7, 10, 15, 0.82);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--prod-border);
}

body.page-workspace .topbar-lane {
  height: 3px;
  opacity: 1;
  background: linear-gradient(90deg, var(--prod-gold), var(--prod-accent), var(--prod-accent-2), var(--prod-accent), var(--prod-gold));
  background-size: 200% 100%;
  animation: prod-lane-flow 5s linear infinite;
}

body.page-workspace .brand-mark {
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
  transition: filter 0.25s ease, transform 0.25s ease;
}

body.page-workspace .brand:hover .brand-mark {
  filter: drop-shadow(0 0 16px rgba(0, 212, 255, 0.75));
  transform: scale(1.04);
}

body.page-workspace .brand-a {
  color: var(--prod-gold);
}

body.page-workspace .brand-b {
  color: var(--prod-accent);
}

body.page-workspace .topnav-workspace {
  margin-left: 8px;
  gap: 2px;
  padding: 3px;
  background: var(--prod-surface-2);
  border: 1px solid var(--prod-border);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.page-workspace .topnav-workspace .topnav-link {
  padding: 7px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--prod-text-muted);
  border-radius: 7px;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

body.page-workspace .topnav-workspace .topnav-link:hover {
  color: var(--prod-text);
  background: rgba(0, 212, 255, 0.06);
  transform: translateY(-1px);
}

body.page-workspace .topnav-workspace .topnav-link.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.22), rgba(0, 255, 157, 0.1));
  box-shadow:
    inset 0 0 0 1px rgba(0, 212, 255, 0.35),
    0 0 18px rgba(0, 212, 255, 0.15);
}

body.page-workspace .topnav-link.active .topnav-count {
  color: #fff;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.45), rgba(0, 255, 157, 0.22));
  border-color: rgba(0, 212, 255, 0.55);
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.35);
  animation: prod-badge-glow 2.5s ease-in-out infinite;
}

body.page-workspace .topnav-count {
  min-width: 1.25rem;
  padding: 2px 7px;
  font-size: 0.6875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-family: var(--font);
  color: var(--prod-text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body.page-workspace .topnav-count--on {
  color: #e8f9ff;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.32), rgba(0, 255, 157, 0.14));
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.22);
}

body.page-workspace .topnav-count--pulse {
  animation: topnav-count-pulse 0.6s ease 2;
  color: var(--prod-accent);
  background: rgba(56, 189, 248, 0.18);
}

@keyframes topnav-count-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.workspace-list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.workspace-show-rejected {
  margin-left: auto;
  padding: 4px 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--prod-text-muted);
  background: transparent;
  border: 1px solid var(--prod-border);
  border-radius: 999px;
  cursor: pointer;
}

.workspace-show-rejected.is-active,
.workspace-show-rejected:hover {
  color: var(--prod-accent);
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.08);
}

.topbar-source-pills {
  padding: 2px;
  background: var(--prod-surface);
  border: 1px solid var(--prod-border);
  border-radius: var(--prod-radius-sm);
}

.topbar-status-chip strong {
  color: var(--prod-accent);
  font-weight: 600;
}

.topbar-workspace-actions .btn-sm,
.topbar-workspace-actions .workspace-clear-trigger {
  min-height: 32px;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--prod-radius-sm);
}

body.page-workspace .workspace-clear-panel {
  z-index: 300;
  padding: 16px;
  background: rgba(10, 16, 24, 0.98);
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: var(--prod-radius);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.3),
    0 0 24px rgba(0, 212, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.page-workspace .workspace-clear-count {
  color: var(--prod-text-secondary);
}

body.page-workspace .workspace-clear-form {
  flex-wrap: wrap;
}

body.page-workspace .workspace-clear-input {
  min-width: 0;
  flex: 1 1 120px;
}

body.page-workspace .workspace-clear-submit {
  flex: 1 1 auto;
  white-space: nowrap;
}

/* Topbar tools */
.topbar-search {
  min-height: 32px;
  padding: 5px 12px 5px 32px;
  font-size: 0.8125rem;
  border-radius: var(--prod-radius-sm);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' fill='none' stroke='%236b7a8c' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='6.5' cy='6.5' r='4'/%3E%3Cpath d='M10 10l3.5 3.5'/%3E%3C/svg%3E")
    no-repeat 10px center,
    var(--prod-surface);
  border: 1px solid var(--prod-border);
  color: var(--prod-text);
}

.topbar-search::placeholder {
  color: var(--prod-text-muted);
}

.topbar-search:focus {
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12), var(--prod-glow);
}

.topbar-source-pills .source-filter {
  padding: 4px 9px;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--prod-text-muted);
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.topbar-source-pills .source-filter:hover {
  color: var(--prod-text);
  background: rgba(0, 212, 255, 0.08);
}

.topbar-source-pills .source-filter.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.28), rgba(0, 255, 157, 0.12));
  box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.3);
}

.source-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.125rem;
  height: 1.125rem;
  padding: 0 4px;
  margin-left: 5px;
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1;
  color: var(--prod-text-muted);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  vertical-align: middle;
}

.topbar-source-pills .source-filter.active .source-filter-count {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.topbar-tools-divider {
  height: 20px;
  background: var(--prod-border);
}

.topbar-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 0.6875rem;
  color: var(--prod-text-muted);
  background: var(--prod-surface);
  border: 1px solid var(--prod-border);
  border-radius: 999px;
  white-space: nowrap;
}

.topbar-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--prod-success);
  flex-shrink: 0;
  animation: prod-pulse-dot 2s ease-in-out infinite;
}

body.page-workspace .btn-accent {
  background: linear-gradient(135deg, #00d4ff 0%, #00b8e6 100%);
  border-color: transparent;
  color: #041018;
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(0, 212, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

body.page-workspace .btn-accent:hover {
  background: linear-gradient(135deg, #33ddff 0%, #00d4ff 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(0, 212, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  filter: none;
}

body.page-workspace .btn-quiet {
  background: var(--prod-surface);
  border: 1px solid var(--prod-border);
  color: var(--prod-text-secondary);
  transition: transform 0.15s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

body.page-workspace .btn-quiet:hover {
  background: rgba(0, 212, 255, 0.06);
  color: var(--prod-accent);
  border-color: rgba(0, 212, 255, 0.25);
  transform: translateY(-1px);
}

/* ——— List panel ——— */
.workspace-list-panel {
  background: var(--prod-surface);
  border-right: 1px solid var(--prod-border);
}

.workspace-list-head {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px 10px;
  background: linear-gradient(180deg, var(--prod-surface) 70%, transparent);
  border-bottom: 1px solid var(--prod-border);
}

.workspace-list-count {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--prod-accent);
}

.workspace-list-queue {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--prod-gold);
  padding: 3px 10px;
  background: rgba(245, 185, 66, 0.1);
  border: 1px solid rgba(245, 185, 66, 0.22);
  border-radius: 999px;
}

.workspace-chat-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0 0 10px;
  padding: 8px 10px;
  font-size: 0.6875rem;
  color: var(--prod-text-muted);
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.14);
  border-radius: var(--prod-radius-sm);
}

.workspace-chat-metric strong {
  color: var(--prod-accent);
  font-weight: 700;
}

.topbar-engine-chip.is-live .topbar-status-dot {
  background: #00ff9d;
  box-shadow: 0 0 8px rgba(0, 255, 157, 0.55);
}

.topbar-engine-chip.is-practice .topbar-status-dot {
  background: #f5b942;
  box-shadow: 0 0 8px rgba(245, 185, 66, 0.45);
}

.topbar-engine-chip.is-warn .topbar-status-dot {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.45);
}

.topbar-engine-chip {
  cursor: help;
}

.workspace-list-panel.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

.workspace-clear-filters {
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--prod-accent);
  background: transparent;
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 999px;
  cursor: pointer;
}

.workspace-clear-filters.hidden {
  display: none;
}

.workspace-filter-hint {
  margin: 0 12px 8px;
  padding: 8px 10px;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--prod-text-secondary);
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 8px;
}

.workspace-filter-hint.hidden {
  display: none;
}

.workspace-list > li {
  animation: prod-list-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.workspace-list > li:nth-child(1) { animation-delay: 0.02s; }
.workspace-list > li:nth-child(2) { animation-delay: 0.04s; }
.workspace-list > li:nth-child(3) { animation-delay: 0.06s; }
.workspace-list > li:nth-child(4) { animation-delay: 0.08s; }
.workspace-list > li:nth-child(5) { animation-delay: 0.1s; }
.workspace-list > li:nth-child(6) { animation-delay: 0.12s; }
.workspace-list > li:nth-child(7) { animation-delay: 0.14s; }
.workspace-list > li:nth-child(8) { animation-delay: 0.16s; }
.workspace-list > li:nth-child(9) { animation-delay: 0.18s; }
.workspace-list > li:nth-child(10) { animation-delay: 0.2s; }
.workspace-list > li:nth-child(n+11) { animation-delay: 0.22s; }

.workspace-item {
  position: relative;
  gap: 12px;
  padding: 10px 12px 10px 14px;
  background: transparent;
  border: none;
  border-radius: var(--prod-radius-sm);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.workspace-item::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 2px;
  background: transparent;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.workspace-item:hover {
  background: var(--prod-surface-hover);
  transform: translateX(3px);
}

.workspace-item.active {
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.12), rgba(0, 212, 255, 0.04));
  box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.15);
}

.workspace-item.active::before {
  background: var(--prod-accent);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}

.workspace-item-thumb {
  width: 64px;
  height: 48px;
  border-radius: 6px;
  background: var(--prod-surface-2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.workspace-item:hover .workspace-item-thumb,
.workspace-item.active .workspace-item-thumb {
  transform: scale(1.03);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.workspace-item-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--prod-text);
  letter-spacing: -0.01em;
}

.workspace-item-sub {
  font-size: 0.75rem;
  color: var(--prod-text-muted);
}

.workspace-item-meta .source-badge {
  padding: 2px 7px;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: none;
}

.workspace-item-meta .badge {
  font-size: 0.625rem;
  padding: 2px 7px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
}

body.page-workspace .badge-new {
  color: var(--prod-accent);
  background: rgba(0, 212, 255, 0.15);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

body.page-workspace .badge-qualifying {
  color: var(--prod-gold);
  background: rgba(245, 185, 66, 0.14);
}

body.page-workspace .badge-qualified {
  color: var(--prod-success);
  background: rgba(0, 255, 157, 0.12);
  box-shadow: 0 0 8px rgba(0, 255, 157, 0.15);
}

body.page-workspace .source-truckpaper {
  color: var(--prod-gold);
  background: rgba(245, 185, 66, 0.14);
}

body.page-workspace .source-craigslist {
  color: #7dd3fc;
  background: rgba(125, 211, 252, 0.12);
}

body.page-workspace .source-ebay {
  color: #fdba74;
  background: rgba(253, 186, 116, 0.12);
}

.workspace-list-empty {
  padding: 48px 24px;
}

.workspace-list-empty .empty-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--prod-text);
}

.workspace-list-empty .empty-text {
  font-size: 0.875rem;
  color: var(--prod-text-muted);
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

/* ——— Detail panel ——— */
.workspace-detail-panel {
  background: transparent;
}

.ws-detail {
  padding-top: 4px;
  animation: prod-detail-in 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ws-detail.ws-animate-in {
  animation: prod-detail-in 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ws-detail-head {
  margin-bottom: 20px;
  padding: 18px 20px;
  background: var(--prod-surface);
  border: 1px solid var(--prod-border);
  border-radius: var(--prod-radius);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  animation: prod-fade-up 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}

.ws-section-listing--split .ws-detail-head {
  margin-bottom: 16px;
}

.ws-detail-body {
  animation: prod-fade-up 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.ws-detail-media-panel {
  padding: 14px 16px;
  background: var(--prod-surface);
  border: 1px solid var(--prod-border);
  border-radius: var(--prod-radius);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  animation: prod-fade-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.ws-detail-head-top {
  margin-bottom: 10px;
}

.ws-detail-head-top .source-badge,
.ws-detail-head-top .badge {
  padding: 3px 8px;
  font-size: 0.625rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
}

.ws-detail-title {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--prod-text);
}

.ws-detail-price {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #00ff9d 0%, #00d4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(0, 255, 157, 0.25));
}

.ws-detail-meta {
  margin-bottom: 16px;
  font-size: 0.8125rem;
  color: var(--prod-text-muted);
}

.ws-seller-contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 16px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

.ws-seller-contact--compact {
  padding: 12px 0;
  margin: 0 0 16px;
  border-top: 1px solid var(--prod-border);
  border-bottom: 1px solid var(--prod-border);
}

.ws-seller-contact-item {
  gap: 2px;
  padding: 0 16px 0 0;
}

.ws-seller-contact-item:not(:last-child) {
  border-right: 1px solid var(--prod-border);
  margin-right: 16px;
  padding-right: 16px;
}

.ws-seller-contact-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--prod-text-muted);
}

.ws-seller-contact-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--prod-text);
}

.ws-seller-contact-link {
  color: var(--prod-accent);
}

.ws-seller-contact-missing {
  font-weight: 500;
  font-style: normal;
  color: var(--prod-text-muted);
}

.ws-detail-actions {
  gap: 8px;
  padding-top: 4px;
}

.ws-detail-actions .btn {
  border-radius: var(--prod-radius-sm);
  font-weight: 500;
}

.ws-review-actions {
  margin-left: auto;
  gap: 6px;
}

body.page-workspace .ws-review-actions .btn-review-reject,
body.page-workspace .ws-review-actions .btn-review-skip {
  background: var(--prod-surface);
  border: 1px solid var(--prod-border);
  color: var(--prod-text-secondary);
}

body.page-workspace .ws-review-actions .btn-review-reject:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  transform: none;
  box-shadow: none;
}

body.page-workspace .ws-review-actions .btn-review-skip:hover {
  background: var(--prod-surface-hover);
  border-color: var(--prod-border);
  color: var(--prod-text);
  transform: none;
  box-shadow: none;
}

body.page-workspace .ws-review-actions .btn-review-add {
  background: linear-gradient(135deg, #00ff9d, #00d4aa);
  border: none;
  color: #041018;
  font-weight: 700;
  box-shadow: none;
  transition: background 0.15s ease, filter 0.15s ease;
}

body.page-workspace .ws-review-actions .btn-review-add:hover {
  background: linear-gradient(135deg, #33ffb0, #00e8b8);
  color: #041018;
  border-color: transparent;
  transform: none;
  box-shadow: none;
  filter: none;
}

.ws-spec-table {
  border: 1px solid var(--prod-border);
  border-radius: var(--prod-radius-sm);
  background: linear-gradient(180deg, var(--prod-surface) 0%, rgba(12, 18, 25, 0.6) 100%);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.ws-spec-row {
  padding: 10px 14px;
  border-bottom: 1px solid var(--prod-border);
  transition: background 0.15s ease;
}

.ws-spec-row:hover {
  background: rgba(0, 212, 255, 0.04);
}

.ws-spec-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}

.ws-spec-row dt {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--prod-text-muted);
}

.ws-spec-row dd {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--prod-text);
}

.ws-description p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--prod-text-secondary);
}

.ws-more-specs summary {
  color: var(--prod-accent);
  font-weight: 500;
}

/* Gallery panel */
.ws-panel-label {
  margin: 0 0 12px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--prod-accent);
}

.workspace-list {
  padding: 8px 10px 16px;
  gap: 2px;
}

.listing-gallery-stage {
  border-radius: var(--prod-radius);
  border: 1px solid rgba(0, 212, 255, 0.15);
  background: var(--prod-surface);
  box-shadow:
    0 0 0 1px rgba(0, 212, 255, 0.06),
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(0, 212, 255, 0.06);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.listing-gallery-stage:hover {
  border-color: rgba(0, 212, 255, 0.28);
  box-shadow:
    0 0 0 1px rgba(0, 212, 255, 0.12),
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 50px rgba(0, 212, 255, 0.1);
}

.listing-gallery-thumbs {
  margin-top: 12px;
  padding: 6px;
  gap: 5px;
  max-height: 220px;
  background: var(--prod-surface);
  border: 1px solid var(--prod-border);
  border-radius: var(--prod-radius-sm);
  box-shadow: none;
}

.listing-gallery-thumb {
  border-radius: 5px;
  border-width: 2px;
}

.listing-gallery-thumb.is-active,
.listing-gallery-thumb.active {
  border-color: var(--prod-accent);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.35);
}

.listing-gallery-progress {
  background: linear-gradient(90deg, var(--prod-accent), var(--prod-accent-2));
  box-shadow: 0 0 12px rgba(0, 255, 157, 0.5);
}

.listing-gallery-arrow {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.listing-gallery-stage:hover .listing-gallery-arrow {
  opacity: 1;
}

.listing-gallery-arrow:hover {
  transform: translateY(-50%) scale(1.08);
}

.listing-gallery-counter {
  font-size: 0.6875rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
}

/* ——— Workspace sections (conversation vs listing) ——— */
.ws-section {
  min-width: 0;
}

.ws-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 24px;
  padding: 0 0 10px;
}

.ws-section-title {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--prod-accent);
}

.ws-section-conversation {
  margin-bottom: 0;
  padding: 16px 0 20px;
  background:
    linear-gradient(180deg, rgba(0, 212, 255, 0.04) 0%, rgba(0, 0, 0, 0.12) 100%),
    rgba(0, 0, 0, 0.18);
  border-bottom: 1px solid var(--prod-border);
}

.ws-section-listing--split {
  padding-top: 20px;
  background: transparent;
}

.ws-section-listing--split .ws-section-head {
  margin-bottom: 4px;
}

.ws-section-listing--split .ws-detail-split {
  padding-top: 8px;
}

/* Chat */
.ws-chat-zone {
  margin: 0 24px;
  padding: 0;
  border-top: none;
}

.ws-detail-chat .ws-seller-contact {
  background: var(--prod-surface);
  border: 1px solid var(--prod-border);
  border-radius: var(--prod-radius);
  padding: 14px 16px;
  margin-bottom: 14px;
}

.ws-detail-chat .ws-seller-contact-item {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}

.ws-chat-panel {
  padding: 16px 18px 18px;
  background: var(--prod-surface);
  border: 1px solid var(--prod-border);
  border-radius: var(--prod-radius);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.ws-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--prod-border);
}

.ws-chat-head h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--prod-text);
}

.ws-chat-panel .ws-qualify-hint {
  margin: 0 0 12px;
  padding: 10px 12px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--prod-text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--prod-border);
  border-radius: var(--prod-radius-sm);
}

.ws-chat-panel .ws-checklist-compact {
  margin-bottom: 14px;
  padding: 10px 12px;
  background: rgba(0, 255, 157, 0.04);
  border: 1px solid rgba(0, 255, 157, 0.14);
  border-radius: var(--prod-radius-sm);
}

.ws-chat-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto;
  min-height: 200px;
  max-height: 420px;
  overflow-y: auto;
  padding: 16px 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--prod-border);
  border-radius: var(--prod-radius);
}

/* Messenger bubbles — scoped so generic .chat-bubble rules do not flatten layout */
.ws-chat-thread .chat-row-outbound {
  justify-content: flex-end;
}

.ws-chat-thread .chat-row-inbound {
  justify-content: flex-start;
}

.ws-chat-thread .chat-bubble {
  max-width: 100%;
  align-self: auto;
}

.ws-chat-thread .chat-outbound {
  align-self: auto;
  background: linear-gradient(145deg, rgba(14, 116, 144, 0.95), rgba(8, 145, 178, 0.88));
  border: 1px solid rgba(59, 158, 255, 0.35);
  border-bottom-right-radius: 4px;
}

.ws-chat-thread .chat-inbound {
  align-self: auto;
  background: var(--prod-surface-2);
  border: 1px solid var(--prod-border);
  border-bottom-left-radius: 4px;
}

.ws-chat-panel .ws-reply-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--prod-border);
}

.ws-section-head .ws-qualify-step {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--prod-accent);
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.28);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

/* Qualification checklist */
.ws-checklist .check-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--prod-border);
}

.ws-checklist .check-dot {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  border: 2px solid var(--prod-border-strong);
}

.check-done .check-dot {
  background: var(--prod-success);
  border-color: var(--prod-success);
}

.check-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--prod-text);
}

.check-answer {
  font-size: 0.8125rem;
  color: var(--prod-text-secondary);
}

/* Empty detail */
.ws-detail-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 48px 24px;
  text-align: center;
}

.ws-detail-empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 14px;
  color: var(--prod-accent);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.15);
  animation: prod-badge-glow 3s ease-in-out infinite;
}

/* Detail cards */
.ws-details-card {
  margin-bottom: 16px;
  padding: 14px 16px;
  background: var(--prod-surface);
  border: 1px solid var(--prod-border);
  border-radius: var(--prod-radius);
}

.ws-details-card h3 {
  margin: 0 0 12px;
  padding-bottom: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--prod-accent);
  border-bottom: 1px solid var(--prod-border);
}

.ws-detail-empty .empty-title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--prod-text);
}

.ws-detail-empty .empty-text {
  font-size: 0.875rem;
  color: var(--prod-text-muted);
  max-width: 320px;
}

/* Layout spacing */
.ws-detail-info {
  padding: 20px 28px 28px;
}

.ws-detail-media {
  padding: 20px 28px 28px;
}

@container ws-detail (min-width: 580px) {
  .ws-detail-split {
    padding-top: 0;
  }

  .ws-detail-info {
    padding: 24px 28px 32px;
  }

  .ws-detail-media {
    padding: 24px 28px 32px 24px;
    border-left: 1px solid var(--prod-border);
  }
}

/* Mobile */
@media (max-width: 900px) {
  body.page-workspace .topnav-workspace {
    margin-left: 0;
  }

  .workspace-list-head {
    padding: 12px 14px 8px;
  }

  .ws-seller-contact--compact {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ws-seller-contact-item:not(:last-child) {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--prod-border);
  }

  .ws-section-head,
  .ws-chat-zone {
    margin-left: 16px;
    margin-right: 16px;
  }

  .ws-section-conversation {
    padding: 12px 0 16px;
  }

  .ws-chat-thread {
    max-width: none;
    max-height: 360px;
  }

  .ws-detail-info,
  .ws-detail-media {
    padding-left: 16px;
    padding-right: 16px;
  }

  .listing-gallery-arrow {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-workspace::before,
  body.page-workspace .topbar-lane,
  .topbar-status-dot,
  .workspace-list > li,
  .ws-detail,
  .ws-detail-head,
  .ws-detail-body,
  .ws-detail-media-panel,
  .ws-detail-empty-icon,
  body.page-workspace .topnav-link.active .topnav-count {
    animation: none !important;
  }

  .workspace-item:hover,
  body.page-workspace .btn-accent:hover,
  body.page-workspace .btn-quiet:hover,
  .btn-review-add:hover {
    transform: none;
  }
}
