.test-progress-page { max-width: 1720px; }
.test-progress-heading { align-items: center; gap: 16px; flex-wrap: wrap; }
.test-progress-heading h1 { margin: 0; font-size: clamp(24px, 3vw, 32px); }
.test-progress-heading p { color: #626971; margin: 6px 0 0; }
.test-progress-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.test-progress-source { padding: 5px 9px; border-radius: 6px; background: #f0f2ee; color: #43564c; font-size: 12px; }
.test-progress-scroll { overflow-x: auto; border: 1px solid #e4e7e1; border-radius: 10px; }
.test-progress-table { width: 100%; min-width: 1640px; table-layout: fixed; border-collapse: collapse; font-size: 13px; }
.test-progress-table .tp-image { width: 102px; }
.test-progress-table .tp-research { width: 160px; }
.test-progress-table .tp-link { width: 174px; }
.test-progress-table .tp-msku { width: 137px; }
.test-progress-table .tp-total { width: 86px; }
.test-progress-table .tp-chart { width: 162px; }
.test-progress-table .tp-date { width: 139px; }
.test-progress-table .tp-ads { width: 82px; }
.test-progress-table .tp-spend { width: 94px; }
.test-progress-table .tp-rate { width: 86px; }
.test-progress-table .tp-plan { width: 175px; }
.test-progress-table .tp-actions { width: 94px; }
.test-progress-table th, .test-progress-table td { padding: 9px 10px; text-align: left; vertical-align: middle; }
.test-progress-table th { border-bottom: 1px solid #e4e7e1; background: #f4f6f2; color: #2d3b34; line-height: 1.35; }
.test-progress-table th[scope="colgroup"] { border-inline-start: 1px solid #e4e7e1; text-align: center; }
.test-progress-table thead tr:nth-child(2) th { background: #fafbf9; }
.test-progress-table td { border-bottom: 1px solid #edf0eb; overflow-wrap: anywhere; }
.test-progress-table tbody tr:last-child td { border-bottom: 0; }
.test-progress-table td.test-progress-empty { text-align: center; padding: 42px 12px; color: #666f66; }
.test-progress-table a { color: #235a49; font-weight: 600; }
.test-progress-sampling-link { display: inline-block; margin-top: 6px; font-size: 12px; }
.test-progress-table a[aria-disabled="true"] { color: #717a72; text-decoration: none; cursor: default; }
.test-progress-tracking-status { display: block; margin-top: 4px; color: #817047; font-size: 11px; }
.test-progress-table input, .test-progress-table select { width: 100%; min-width: 0; box-sizing: border-box; background: white; color: #202620; border: 1px solid #cfd7ce; border-radius: 6px; font: inherit; padding: 6px; }
.test-progress-number { font-variant-numeric: tabular-nums; }
.test-progress-image { display: grid; place-items: center; width: 78px; min-height: 72px; border-radius: 7px; background: #f7f8f6; font-size: 12px; }
.test-progress-image img { width: 78px; height: 86px; object-fit: contain; border-radius: 7px; }
.test-progress-image-trigger { display: grid; place-items: center; width: 78px; height: 86px; padding: 0; border: 0; border-radius: 7px; background: transparent; cursor: zoom-in; transition: transform 120ms ease-out; }
.test-progress-image-trigger:focus-visible { outline: 2px solid #2f6b53; outline-offset: 3px; }
.test-progress-image-detail { position: fixed; inset: auto; margin: 0; padding: 9px; box-sizing: border-box; border: 1px solid #d6ddd5; border-radius: 12px; box-shadow: 0 14px 40px #12241830; background: white; pointer-events: none; }
.test-progress-image-detail:popover-open { animation: test-progress-image-in 150ms ease-out; }
.test-progress-image-detail img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 6px; background: #f7f8f6; }
@keyframes test-progress-image-in { from { opacity: 0; transform: translateY(2px); } to { opacity: 1; transform: translateY(0); } }
@media (hover: hover) and (pointer: fine) { .test-progress-image-trigger:hover { transform: translateY(-1px); } }
@media (prefers-reduced-motion: reduce) { .test-progress-image-trigger { transition: none; } .test-progress-image-detail:popover-open { animation: none; } }
.test-progress-text-button { display: block; margin-top: 5px; padding: 2px 0; background: none; border: 0; cursor: pointer; color: #235a49; font: inherit; text-decoration: underline; }
.test-progress-delete-button { color: #963c31; }
.test-progress-delete-notice { margin: 8px 0; color: #43564c; font-size: 13px; }
.test-progress-delete-notice .test-progress-text-button { display: inline; margin: 0 0 0 10px; }
.test-progress-row-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.test-progress-row-actions .btn { min-height: 0; padding: 5px 8px; font-size: 12px; }
.test-progress-error { color: #8e2921; background: #fff3f0; border-radius: 7px; padding: 9px 12px; }
.test-progress-chart { width: 100%; display: block; padding: 0; border: 0; border-radius: 5px; background: #f3f7f4; cursor: zoom-in; }
.test-progress-chart svg, .test-progress-chart-detail svg { display: block; width: 100%; height: auto; }
.test-progress-chart circle, .test-progress-chart-detail circle { fill: #2f6b53; }
.test-progress-chart line, .test-progress-chart-detail line { stroke: #b5c5bb; stroke-width: 1; }
.test-progress-chart polyline, .test-progress-chart-detail polyline { fill: none; stroke: #2f6b53; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.test-progress-chart-detail text { fill: #526057; font-size: 11px; }
.test-progress-chart-detail { position: fixed; inset: auto; margin: 0; padding: 10px 12px; box-sizing: border-box; border: 1px solid #cfd8d0; border-radius: 9px; box-shadow: 0 8px 24px #12241824; background: white; color: #20382a; pointer-events: none; }
.test-progress-chart-detail small { color: #57645d; }
.test-progress-metrics-dialog { width: min(720px, calc(100vw - 28px)); max-height: calc(100dvh - 32px); padding: 20px; box-sizing: border-box; border: 1px solid #d8ded5; border-radius: 14px; color: #202620; background: white; box-shadow: 0 18px 60px #16251c36; }
.test-progress-metrics-dialog::backdrop { background: #18281f61; }
.test-progress-metrics-dialog h2, .test-progress-metrics-dialog h3 { margin: 0; }
.test-progress-metrics-dialog h2 { font-size: 21px; }
.test-progress-metrics-dialog h3 { font-size: 15px; }
.test-progress-metrics-dialog p { margin: 5px 0 12px; font-size: 13px; }
.test-progress-metrics-dialog fieldset { margin: 0; padding: 0; min-inline-size: 0; border: 0; }
.test-progress-metrics-heading { display: flex; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; justify-content: space-between; }
.test-progress-metrics-heading span { color: #315e4b; font-size: 13px; font-weight: 650; }
.test-progress-daily-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; margin-bottom: 17px; }
.test-progress-ad-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(56px, .45fr) minmax(0, 1fr); gap: 10px; margin-top: 8px; }
.test-progress-daily-grid label, .test-progress-ad-grid label { display: grid; gap: 4px; min-width: 0; color: #46534a; font-size: 12px; }
.test-progress-daily-field { border-radius: 6px; background: #f4f6f3; padding: 6px; }
.test-progress-daily-field:last-child { background: #e8f2eb; }
.test-progress-metrics-dialog input { width: 100%; min-width: 0; min-height: 32px; box-sizing: border-box; border: 1px solid #ccd5cd; border-radius: 6px; background: white; color: #202620; font: inherit; font-size: 14px; padding: 4px 6px; font-variant-numeric: tabular-nums; }
.test-progress-metrics-actions { position: sticky; bottom: -20px; display: flex; justify-content: flex-end; gap: 8px; padding: 12px 0 4px; background: white; }
@media (max-width: 520px) {
  .test-progress-metrics-dialog { padding: 14px; }
  .test-progress-daily-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .test-progress-metrics-actions { bottom: -14px; }
}
