.progress-lab-shell {
    display: grid;
    gap: 1.5rem;
}

.progress-lab-intro {
    display: grid;
    gap: 0.9rem;
}

.progress-lab-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.progress-lab-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: linear-gradient(135deg, rgba(240, 249, 255, 0.98), rgba(236, 253, 245, 0.94));
    color: #0f172a;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.progress-lab-chip i {
    color: #0284c7;
}

.progress-lab-grid {
    display: grid;
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.progress-lab-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid #dbe4ee;
    border-radius: 1.1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 24px 60px -42px rgba(15, 23, 42, 0.45);
    padding: 1.35rem;
}

.progress-lab-panel::before {
    content: "";
    position: absolute;
    inset: -25% auto auto 70%;
    width: 11rem;
    height: 11rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.18), rgba(56, 189, 248, 0));
    pointer-events: none;
}

.progress-lab-section-title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    color: #0f172a;
}

.progress-lab-section-copy,
.progress-lab-overall-copy,
.progress-lab-visual-copy p {
    margin: 0.45rem 0 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.7;
}

.progress-lab-dropzone {
    margin-top: 1.15rem;
    min-height: 15rem;
    border: 1.5px dashed rgba(14, 165, 233, 0.48);
    border-radius: 1.1rem;
    background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.2), rgba(34, 211, 238, 0)), linear-gradient(180deg, rgba(240, 249, 255, 0.95), rgba(255, 255, 255, 0.92));
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.progress-lab-dropzone:hover,
.progress-lab-dropzone.au-drag-over {
    transform: translateY(-2px);
    border-color: #0ea5e9;
    box-shadow: 0 18px 40px -34px rgba(2, 132, 199, 0.65);
}

.progress-lab-drop-icon {
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #22d3ee, #38bdf8 48%, #818cf8 100%);
    color: #f8fafc;
    font-size: 1.3rem;
    box-shadow: 0 18px 38px -24px rgba(37, 99, 235, 0.72);
}

.progress-lab-drop-title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    color: #0f172a;
}

.progress-lab-drop-copy,
.progress-lab-help {
    margin: 0;
    color: #64748b;
    font-size: 0.84rem;
    line-height: 1.7;
}

.progress-lab-actions,
.progress-lab-sample-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.progress-lab-button,
.progress-lab-sample,
.progress-lab-preset {
    border: 1px solid #dbe4ee;
    border-radius: 0.95rem;
    background: #fff;
    color: #0f172a;
    font-size: 0.84rem;
    font-weight: 700;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.progress-lab-button {
    padding: 0.78rem 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
}

.progress-lab-button:hover:not(:disabled),
.progress-lab-sample:hover,
.progress-lab-preset:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px -26px rgba(15, 23, 42, 0.42);
}

.progress-lab-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.progress-lab-button.is-primary {
    border-color: transparent;
    background: linear-gradient(135deg, #0891b2, #2563eb 58%, #6366f1 100%);
    color: #fff;
}

.progress-lab-button.is-soft {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.progress-lab-button.is-ghost {
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.94), rgba(255, 255, 255, 0.98));
}

.progress-lab-button-wide {
    grid-column: 1 / -1;
}

.progress-lab-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.15rem;
}

.progress-lab-small-label {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #64748b;
}

.progress-lab-small-value {
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
}

.progress-lab-preset-list,
.progress-lab-slider-stack {
    display: grid;
    gap: 0.8rem;
    margin-top: 0.8rem;
}

.progress-lab-preset-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.progress-lab-preset,
.progress-lab-sample {
    padding: 0.72rem 0.8rem;
}

.progress-lab-preset.is-active {
    border-color: transparent;
    color: #fff;
    background: linear-gradient(135deg, #0f766e, #0ea5e9 56%, #6366f1 100%);
    box-shadow: 0 14px 32px -24px rgba(14, 116, 144, 0.72);
}

.progress-lab-sample-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.progress-lab-range {
    width: 100%;
    appearance: none;
    height: 0.7rem;
    border-radius: 999px;
    outline: none;
    background: linear-gradient(90deg, #dbeafe, #7dd3fc 52%, #38bdf8 100%);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.12);
}

.progress-lab-range::-webkit-slider-thumb {
    appearance: none;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 999px;
    border: 2px solid #fff;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    box-shadow: 0 8px 18px -12px rgba(37, 99, 235, 0.82);
    cursor: pointer;
}

.progress-lab-range::-moz-range-thumb {
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 999px;
    border: 2px solid #fff;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    box-shadow: 0 8px 18px -12px rgba(37, 99, 235, 0.82);
    cursor: pointer;
}

.progress-lab-overall-top,
.progress-lab-file-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.progress-lab-status-pill,
.progress-lab-file-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: #e2e8f0;
    color: #475569;
}

.progress-lab-status-pill.is-queued,
.progress-lab-file-pill.is-pending {
    background: rgba(59, 130, 246, 0.14);
    color: #1d4ed8;
}

.progress-lab-status-pill.is-uploading,
.progress-lab-file-pill.is-uploading {
    background: rgba(14, 165, 233, 0.14);
    color: #0369a1;
}

.progress-lab-status-pill.is-paused,
.progress-lab-file-pill.is-paused {
    background: rgba(251, 191, 36, 0.18);
    color: #a16207;
}

.progress-lab-status-pill.is-error,
.progress-lab-file-pill.is-failed,
.progress-lab-file-pill.is-cancelled {
    background: rgba(248, 113, 113, 0.16);
    color: #b91c1c;
}

.progress-lab-status-pill.is-complete,
.progress-lab-file-pill.is-completed {
    background: rgba(16, 185, 129, 0.16);
    color: #047857;
}

.progress-lab-big-percent {
    min-width: 6rem;
    text-align: right;
    font-size: 2.8rem;
    line-height: 1;
    letter-spacing: -0.06em;
    font-weight: 800;
    color: #0f172a;
}

.progress-lab-overall-bar,
.progress-lab-file-bar {
    position: relative;
    overflow: hidden;
    border-radius: 999px;
    background: linear-gradient(180deg, #e2e8f0, #dbe4ee);
}

.progress-lab-overall-bar {
    margin-top: 1.2rem;
    height: 1.35rem;
}

.progress-lab-file-bar {
    margin-top: 0.9rem;
    height: 0.9rem;
}

.progress-lab-overall-bar::before,
.progress-lab-file-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0, rgba(255, 255, 255, 0.18) 12px, rgba(255, 255, 255, 0) 12px, rgba(255, 255, 255, 0) 24px);
}

.progress-lab-overall-fill,
.progress-lab-file-fill {
    position: relative;
    height: 100%;
    width: 0;
    border-radius: inherit;
    transition: width 0.28s ease;
}

.progress-lab-overall-fill {
    background: linear-gradient(90deg, #0f766e 0%, #14b8a6 36%, #38bdf8 72%, #6366f1 100%);
    box-shadow: 0 18px 34px -20px rgba(56, 189, 248, 0.78);
}

.progress-lab-overall-fill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.45) 46%, rgba(255, 255, 255, 0) 72%);
    transform: translateX(-120%);
    animation: progress-lab-sheen 2s linear infinite;
}

@keyframes progress-lab-sheen {
    from { transform: translateX(-120%); }
    to { transform: translateX(120%); }
}

.progress-lab-file-fill {
    background: linear-gradient(90deg, #22c55e, #14b8a6 48%, #38bdf8 100%);
}

.progress-lab-file-fill.is-pending {
    background: linear-gradient(90deg, #60a5fa, #38bdf8);
}

.progress-lab-file-fill.is-paused {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.progress-lab-file-fill.is-failed,
.progress-lab-file-fill.is-cancelled {
    background: linear-gradient(90deg, #f87171, #ef4444);
}

.progress-lab-overall-meta,
.progress-lab-file-meta,
.progress-lab-file-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.7rem 1rem;
    color: #64748b;
    font-size: 0.79rem;
}

.progress-lab-overall-meta {
    margin-top: 0.8rem;
    font-size: 0.82rem;
}

.progress-lab-file-meta,
.progress-lab-file-legend {
    margin-top: 0.55rem;
}

.progress-lab-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.progress-lab-stat-card,
.progress-lab-file {
    border: 1px solid #dbe4ee;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.9);
}

.progress-lab-stat-card {
    padding: 0.95rem;
}

.progress-lab-stat-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #64748b;
}

.progress-lab-stat-value {
    margin-top: 0.42rem;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.progress-lab-stat-copy,
.progress-lab-file-error {
    margin-top: 0.28rem;
    font-size: 0.78rem;
    line-height: 1.55;
}

.progress-lab-visual-row {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    margin-top: 1.2rem;
}

.progress-lab-ring {
    position: relative;
    width: 126px;
    height: 126px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: conic-gradient(#38bdf8 0deg, #cbd5e1 0deg);
    box-shadow: 0 24px 46px -34px rgba(37, 99, 235, 0.72);
}

.progress-lab-ring::after {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff, #edf5ff);
    box-shadow: inset 0 1px 2px rgba(148, 163, 184, 0.3);
}

.progress-lab-ring-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.12rem;
    text-align: center;
}

.progress-lab-ring-copy strong {
    font-size: 1.35rem;
    line-height: 1;
    letter-spacing: -0.05em;
    color: #0f172a;
}

.progress-lab-ring-copy span {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #64748b;
}

.progress-lab-pulse,
.progress-lab-segments {
    display: grid;
    gap: 0.28rem;
}

.progress-lab-pulse {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: end;
    height: 2.8rem;
}

.progress-lab-pulse span {
    display: block;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(180deg, rgba(34, 211, 238, 0.96), rgba(37, 99, 235, 0.98));
    opacity: 0.18;
    transition: opacity 0.22s ease;
}

.progress-lab-pulse span.is-active {
    opacity: 0.92;
}

.progress-lab-files {
    display: grid;
    gap: 0.85rem;
}

.progress-lab-hidden {
    display: none !important;
}

.progress-lab-empty {
    padding: 2.8rem 1.4rem;
    border: 1px dashed #cbd5e1;
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.94));
    text-align: center;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.7;
}

.progress-lab-file {
    padding: 1rem;
    box-shadow: 0 14px 28px -26px rgba(15, 23, 42, 0.36);
}

.progress-lab-file-name {
    margin: 0;
    font-size: 0.96rem;
    font-weight: 700;
    color: #0f172a;
    word-break: break-word;
}

.progress-lab-segments {
    grid-template-columns: repeat(14, minmax(0, 1fr));
    margin-top: 0.75rem;
}

.progress-lab-segments span {
    display: block;
    height: 0.42rem;
    border-radius: 999px;
    background: #dbe4ee;
}

.progress-lab-segments span.is-complete {
    background: linear-gradient(90deg, #14b8a6, #38bdf8);
}

.progress-lab-segments span.is-active {
    background: linear-gradient(90deg, #818cf8, #38bdf8);
}

.progress-lab-file-error {
    color: #b91c1c;
}

.progress-lab-hidden-uploader {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 1199px) {
    .progress-lab-grid {
        grid-template-columns: 1fr;
    }

    .progress-lab-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .progress-lab-actions,
    .progress-lab-preset-list,
    .progress-lab-sample-grid,
    .progress-lab-stat-grid {
        grid-template-columns: 1fr;
    }

    .progress-lab-overall-top,
    .progress-lab-file-top,
    .progress-lab-visual-row {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .progress-lab-big-percent {
        text-align: left;
    }
}
