.voc-container { width: min(1608px, calc(100% - 64px)); }
.voc-heading { max-width: 760px; margin: 2px 0 28px; }
.voc-heading h1 { margin-bottom: 12px; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.04em; }
.voc-heading > p:last-child { margin: 0; color: #70727f; line-height: 1.75; }
.voc-kicker { margin: 0 0 7px; color: var(--workspace-purple); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.voc-launch-card { overflow: hidden; border-color: #ded9ff; background: linear-gradient(145deg, #fff 0%, #fff 72%, #f2efff 100%); }
.voc-card-head, .voc-card-head > div, .task-toolbar > div { display: flex; align-items: center; gap: 13px; }
.voc-card-head { justify-content: space-between; margin-bottom: 22px; }
.voc-card-head h2, .task-toolbar h2 { margin: 0; }
.voc-card-head p { margin: 3px 0 0; color: #8c8e99; font-size: 12px; }
.section-index { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; background: #f0edff; color: var(--workspace-purple); font-size: 11px; font-weight: 800; }
.module-badge { padding: 6px 10px; border-radius: 999px; background: #f0edff; color: #654be1; font-size: 11px; font-weight: 800; }
.voc-source-tabs { margin: -5px 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.voc-source-tab-group { display: flex; gap: 8px; }
.voc-source-tab { min-height: 36px; padding: 0 14px; border: 1px solid #d9dae1; border-radius: 9px; background: #fff; color: #666976; font-weight: 800; }
.voc-source-tab.is-active { border-color: #282a35; background: #282a35; color: #fff; }
.model-select { min-width: 248px; min-height: 42px; padding: 0 12px; display: flex; align-items: center; gap: 10px; border: 1px solid #d9dae1; border-radius: 9px; background: #fff; color: #8a8c96; }
.model-select > span { flex: none; font-size: 11px; font-weight: 800; }
.model-select select { min-width: 0; flex: 1; border: 0; background: transparent; color: #292b35; font-size: 12px; font-weight: 800; }
.model-select select:focus { outline: 2px solid #d7d0ff; border-radius: 4px; }
.asin-composer { min-height: 62px; padding: 8px; display: flex; align-items: center; gap: 8px; border: 1px solid #cfd1dc; border-radius: 14px; background: #fff; box-shadow: 0 9px 24px rgba(40,42,58,.055); }
.site-select { min-width: 128px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border-right: 1px solid #e1e2e8; }
.site-select > span { color: #999ba5; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.site-select select { min-width: 0; border: 0; background: #fff; color: #252733; font-weight: 700; }
.site-select select:focus { outline: 2px solid #d7d0ff; border-radius: 4px; }
.asin-chips { display: contents; }
.asin-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 9px; border-radius: 8px; background: #f1f2f6; color: #2d2f3a; font-size: 12px; font-weight: 800; letter-spacing: .035em; }
.asin-chip button { border: 0; background: transparent; color: #8a8c97; padding: 0; font-size: 16px; line-height: 1; }
#asin-input { min-width: 150px; flex: 1 1 210px; border: 0; padding: 10px 6px; text-transform: uppercase; }
#asin-input:focus { outline: 0; }
.asin-count { color: #8c8e99; font-size: 12px; font-variant-numeric: tabular-nums; }
.voc-start-button { min-width: 112px; }
.upload-panel { display: block; }
.upload-panel.hidden { display: none; }
.upload-composer { min-height: 62px; padding: 8px; display: flex; align-items: center; gap: 12px; border: 1px solid #cfd1dc; border-radius: 14px; background: #fff; box-shadow: 0 9px 24px rgba(40,42,58,.055); }
.upload-choose { min-width: 134px; }
.upload-file-copy { min-width: 0; flex: 1; display: grid; gap: 4px; }
.upload-file-copy strong { overflow: hidden; color: #292b36; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.upload-file-copy span { color: #8c8e99; font-size: 11px; }
.upload-errors { margin-top: 10px; padding: 10px 12px; border-radius: 9px; background: #fdecec; color: #9e2020; font-size: 12px; line-height: 1.6; }
.upload-errors.hidden { display: none; }
.upload-help { margin-top: 9px; display: flex; align-items: center; gap: 14px; color: #858792; font-size: 11px; }
.upload-help a { color: #5d45d0; font-weight: 800; }
.voc-task-section { margin-top: 24px; }
.task-toolbar > div { align-items: flex-start; }
.voc-empty { padding: 52px 20px; border: 1px dashed #d5d6dd; border-radius: 12px; text-align: center; color: #8f919b; }
.voc-empty strong { display: block; margin-bottom: 5px; color: #4f515d; }
.voc-task-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 270px)); justify-content: start; gap: 14px; }
.voc-task { min-width: 0; padding: 14px; border: 1px solid #dedfe5; border-radius: 12px; background: #fff; }
.voc-task-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.voc-task h3 { margin: 0; overflow: hidden; color: #22242f; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.voc-task-meta { margin: 6px 0 0; color: #858792; font-size: 11px; line-height: 1.58; }
.voc-status { flex: none; padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.voc-status.queued, .voc-status.fetching_reviews { background: #fff1d8; color: #8c5d00; }
.voc-status.labeling, .voc-status.grouping, .voc-status.journeying, .voc-status.generating_report { background: #eeeaff; color: #5d45d0; }
.voc-status.completed { background: #e5f7ed; color: #147844; }
.voc-status.failed { background: #fde8e8; color: #9e2020; }
.task-progress { margin-top: 11px; }
.task-progress-head { margin-bottom: 6px; display: flex; justify-content: space-between; color: #777986; font-size: 11px; }
.task-progress-track { height: 5px; overflow: hidden; border-radius: 999px; background: #ececf1; }
.task-progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--workspace-purple); transition: width .3s ease; }
.task-foot { min-height: 30px; margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #8a8c97; font-size: 10px; }
.task-time { min-width: 0; display: grid; gap: 2px; }
.task-duration { color: #5d45d0; font-size: 10px; font-weight: 800; }
.task-foot .report-link { min-height: 28px; padding: 0 10px; font-size: 11px; }
.task-failure { margin: 12px 0 0; color: var(--red); font-size: 12px; line-height: 1.55; }
.voc-dialog { width: min(760px, calc(100% - 28px)); max-height: min(820px, calc(100vh - 24px)); padding: 0; border: 0; border-radius: 17px; box-shadow: 0 30px 90px rgba(21,22,31,.28); }
.voc-dialog::backdrop { background: rgba(24,25,34,.52); backdrop-filter: blur(2px); }
.dialog-shell { max-height: inherit; padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.dialog-head { padding: 22px 24px 17px; display: flex; justify-content: space-between; border-bottom: 1px solid #e6e7ec; }
.dialog-head h2 { margin: 0; }
.dialog-subtitle { margin: 5px 0 0; color: #7a7d89; font-size: 12px; }
.dialog-close { align-self: flex-start; border: 0; background: transparent; color: #676a76; font-size: 25px; }
.dialog-toolbar { padding: 12px 24px; display: flex; gap: 16px; border-bottom: 1px solid #ececf0; }
.dialog-toolbar strong { margin-left: auto; font-size: 12px; }
.dialog-asins { min-height: 112px; max-height: 304px; padding: 16px 24px; display: grid; grid-template-columns: 1fr; gap: 10px; overflow: auto; }
.dialog-asin { position: relative; }
.dialog-asin input, .choice-row input, .scope-row input { position: absolute; opacity: 0; pointer-events: none; }
.dialog-asin > span { min-height: 96px; padding: 10px 12px; display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; align-items: center; gap: 13px; border: 1px solid #d9dae1; border-radius: 11px; color: #353743; background: #fff; font-style: normal; }
.dialog-asin input:checked + span { border-color: var(--workspace-purple); background: #f3f0ff; box-shadow: inset 0 0 0 1px var(--workspace-purple); }
.dialog-product-image { width: 88px; height: 88px; display: grid; place-items: center; overflow: hidden; border-radius: 8px; background: #f3f4f7; color: #9a9ca6; font-size: 10px; }
.dialog-product-image img { width: 100%; height: 100%; object-fit: contain; }
.dialog-product-copy { min-width: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 5px; font-style: normal; }
.dialog-product-title { display: -webkit-box; overflow: hidden; color: #292b35; font-size: 13px; font-weight: 700; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dialog-product-asin { color: #777a86; font-size: 11px; letter-spacing: .04em; }
.dialog-product-stats { display: flex; flex-wrap: wrap; gap: 8px; color: #666975; font-size: 11px; }
.dialog-product-stats strong { color: #292b35; font-size: 14px; }
.dialog-product-extra { display: flex; flex-wrap: wrap; gap: 7px 12px; color: #8a8c96; font-size: 10px; }
.dialog-product-extra b { color: #656874; font-weight: 700; }
.dialog-product-check { width: 18px; height: 18px; border: 1px solid #cfd1d9; border-radius: 5px; background: #fff; }
.dialog-asin input:checked + span .dialog-product-check { border-color: var(--workspace-purple); background: var(--workspace-purple); box-shadow: inset 0 0 0 3px #fff; }
.dialog-asin.is-loading span { color: #999ca7; }
.dialog-asin.is-loading .dialog-product-image { background: linear-gradient(100deg, #f0f1f4 30%, #fafafa 50%, #f0f1f4 70%); background-size: 200% 100%; animation: dialog-shimmer 1.2s infinite; }
@keyframes dialog-shimmer { to { background-position: -200% 0; } }
.voc-dialog fieldset { margin: 0; padding: 16px 24px; border: 0; border-top: 1px solid #ececf0; }
.voc-dialog legend { padding-top: 16px; color: #4e505b; font-size: 12px; font-weight: 800; }
.voc-dialog legend em { color: #9a9ca6; font-size: 11px; font-style: normal; font-weight: 500; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-row label span { min-width: 88px; padding: 10px 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid #d9dae1; border-radius: 9px; color: #5b5d68; }
.choice-row small { padding: 2px 4px; border-radius: 4px; background: #e7f6ec; color: var(--green); font-size: 9px; }
.choice-row input:checked + span { border-color: var(--workspace-purple); background: #f3f0ff; color: #4d37bf; }
.scope-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.scope-row label span { min-height: 70px; padding: 13px; display: grid; align-content: center; border: 1px solid #d9dae1; border-radius: 10px; }
.scope-row small { margin-top: 3px; color: #9698a2; font-weight: 500; }
.scope-row input:checked + span { border-color: #282a35; background: #282a35; color: #fff; }
.scope-row input:checked + span small { color: #c7c9d1; }
.dialog-actions { padding: 18px 24px 22px; display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid #ececf0; }
.report-shell-message { min-height: 420px; display: grid; place-items: center; padding: 40px; text-align: center; }
.report-shell-message strong { display: block; margin-bottom: 8px; font-size: 20px; }

@media (max-width: 800px) {
  .voc-source-tabs { align-items: stretch; flex-direction: column; }
  .voc-source-tab-group { width: 100%; }
  .voc-source-tab-group .voc-source-tab { flex: 1; }
  .model-select { width: 100%; }
  .asin-composer { align-items: stretch; flex-wrap: wrap; }
  .upload-composer { align-items: stretch; flex-wrap: wrap; }
  .upload-file-copy { flex-basis: calc(100% - 150px); }
  .upload-composer .voc-start-button { width: 100%; }
  .site-select { min-height: 42px; border-right: 0; border-bottom: 1px solid #e1e2e8; flex: 1 1 100%; }
  .voc-task-grid { grid-template-columns: 1fr; }
  .dialog-asins, .scope-row { grid-template-columns: 1fr; }
  .dialog-asin > span { grid-template-columns: 68px minmax(0, 1fr) auto; gap: 9px; }
  .dialog-product-image { width: 68px; height: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  .task-progress-track span { transition: none; }
}
