/* Progress tab — compact table, sticky summary, toolbar */

body.app-dashboard-home #videosPage .videos-page-inner {
    max-width: min(64rem, 98vw);
    padding: 0.35rem clamp(0.5rem, 2vw, 1rem) 2rem;
}

body.app-dashboard-home .videos-page-header--compact {
    text-align: left;
    margin-bottom: 0.5rem;
}

body.app-dashboard-home .videos-page-header--compact .videos-page-eyebrow {
    display: none;
}

body.app-dashboard-home .videos-page-header--compact .videos-page-title {
    font-size: clamp(1.15rem, 3.5vw, 1.35rem);
    margin-bottom: 0.15rem;
}

body.app-dashboard-home .videos-page-header--compact .videos-page-subtitle {
    font-size: 0.78rem;
    color: #64748b;
}

.progress-feature-grid-wrap {
    position: sticky;
    top: calc(56px + env(safe-area-inset-top, 0px));
    z-index: 90;
    margin: 0 0 0.5rem;
    padding: 0.35rem 0 0.5rem;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.progress-feature-grid {
    min-height: 2rem;
}

.progress-feature-grid-inner {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
    gap: 0.35rem;
}

.progress-feature-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    margin: 0;
    padding: 0.4rem 0.45rem;
    text-align: left;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    color: #e2e8f0;
    cursor: pointer;
    transition: border-color 0.12s ease, background 0.12s ease;
    font: inherit;
    min-height: 4.25rem;
}

.progress-feature-tile:hover {
    border-color: rgba(61, 214, 140, 0.35);
    background: rgba(61, 214, 140, 0.08);
}

.progress-feature-tile:focus-visible {
    outline: 2px solid rgba(61, 214, 140, 0.6);
    outline-offset: 2px;
}

.progress-feature-icon {
    font-size: 1rem;
    line-height: 1;
    opacity: 0.95;
}

.progress-feature-title {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.progress-feature-value {
    font-size: 0.78rem;
    font-weight: 800;
    color: #f1f5f9;
    line-height: 1.25;
    word-break: break-word;
}

.progress-feature-hint {
    font-size: 0.65rem;
    color: #64748b;
    line-height: 1.25;
}

.progress-badges-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.4rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.progress-badge-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
}

.progress-last-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin-top: 0.4rem;
    font-size: 0.72rem;
    color: #64748b;
}

.progress-last-k {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.progress-last-btn {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    color: #86efac;
    font: inherit;
    cursor: pointer;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.progress-last-btn:hover {
    color: #bbf7d0;
}

.progress-feature-grid-loading,
.progress-feature-grid-error {
    font-size: 0.82rem;
    color: #94a3b8;
    padding: 0.35rem 0;
}

.progress-section-heading {
    margin: 0.35rem 0 0.25rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748b;
}

.progress-analyst {
    margin: 0.5rem 0 0.75rem;
    padding: 0.55rem 0.5rem 0.65rem;
    border-radius: 10px;
    border: 1px solid rgba(61, 214, 140, 0.2);
    background: linear-gradient(165deg, rgba(61, 214, 140, 0.08) 0%, rgba(0, 0, 0, 0.35) 55%);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.progress-analyst-head {
    margin-bottom: 0.4rem;
}

.progress-analyst-title {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
}

.progress-analyst-quest {
    margin: 0.2rem 0 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #e2e8f0;
    letter-spacing: -0.02em;
}

.progress-analyst-quest-mark {
    color: #4ade80;
    text-shadow: 0 0 20px rgba(74, 222, 128, 0.25);
}

.progress-analyst-lead {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    line-height: 1.55;
    color: #cbd5e1;
}

.progress-analyst-lead strong {
    color: #86efac;
    font-weight: 700;
}

.progress-analyst-tips {
    margin: 0 0 0.45rem;
    padding-left: 1.1rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #94a3b8;
}

.progress-analyst-li {
    margin-bottom: 0.4rem;
    list-style-position: outside;
}

.progress-analyst-tip-text {
    display: inline;
    margin-right: 0.35rem;
}

.progress-analyst-tip-go {
    display: inline-block;
    margin-left: 0.15rem;
    padding: 0.1rem 0.4rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #0c1812;
    background: rgba(61, 214, 140, 0.85);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    vertical-align: baseline;
}

.progress-analyst-tip-go:hover {
    background: #4ade80;
}

.progress-analyst-foot {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.45;
    color: #64748b;
    font-style: italic;
}

.progress-summary-bar {
    position: sticky;
    top: calc(56px + env(safe-area-inset-top, 0px));
    z-index: 90;
    margin: 0 0 0.35rem;
    padding: 0.35rem 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.progress-summary-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.35rem 0.5rem;
}

.progress-sum-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
    line-height: 1.2;
}

.progress-sum-k {
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.progress-sum-v {
    font-weight: 800;
    color: #e2e8f0;
    font-variant-numeric: tabular-nums;
}

.progress-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.65rem;
    margin-bottom: 0.35rem;
    font-size: 0.72rem;
}

.progress-toolbar-label {
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.progress-select {
    appearance: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 0.78rem;
    padding: 0.25rem 1.5rem 0.25rem 0.45rem;
    background-image: linear-gradient(45deg, transparent 50%, #94a3b8 50%),
        linear-gradient(135deg, #94a3b8 50%, transparent 50%);
    background-position: calc(100% - 10px) calc(50% - 2px), calc(100% - 6px) calc(50% - 2px);
    background-size: 4px 4px, 4px 4px;
    background-repeat: no-repeat;
    max-width: 100%;
}

body.app-dashboard-home #videosPage .videos-list {
    margin-top: 0;
}

.progress-table-wrap {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.35);
}

.progress-table {
    min-width: 520px;
    font-size: 0.78rem;
}

.progress-table-head,
.progress-row {
    display: grid;
    grid-template-columns: 2.25rem minmax(5.5rem, 1fr) 2.25rem 2.25rem 2.25rem 1.75rem 1.5rem;
    align-items: center;
    column-gap: 0.35rem;
    padding: 0.28rem 0.45rem;
}

.progress-table-head {
    background: rgba(0, 0, 0, 0.45);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748b;
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.progress-th--expand {
    justify-self: center;
}

.progress-session {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.progress-session:last-child {
    border-bottom: none;
}

.progress-row {
    background: rgba(255, 255, 255, 0.02);
    transition: background 0.12s ease;
}

.progress-session:hover .progress-row {
    background: rgba(61, 214, 140, 0.06);
}

.progress-cell--date {
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.progress-id {
    font-weight: 800;
    color: #f1f5f9;
}

.progress-val {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.progress-val--good {
    color: #4ade80;
}

.progress-val--mid {
    color: #fbbf24;
}

.progress-val--bad {
    color: #f87171;
}

.progress-val--muted {
    color: #475569;
}

.progress-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 4px;
    font-size: 0.85rem;
    line-height: 1;
}

.progress-phone--ok {
    background: rgba(74, 222, 128, 0.12);
    color: #4ade80;
}

.progress-phone--bad {
    background: rgba(248, 113, 113, 0.12);
}

.progress-phone--na {
    color: #475569;
}

.progress-expand-btn {
    width: 1.35rem;
    height: 1.35rem;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    cursor: pointer;
    position: relative;
}

.progress-expand-btn::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 45%;
    width: 0.35rem;
    height: 0.35rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translate(-50%, -50%) rotate(45deg);
    transition: transform 0.15s ease;
}

.progress-session--open .progress-expand-btn::after {
    transform: translate(-50%, -20%) rotate(225deg);
}

.progress-detail {
    padding: 0 0.45rem 0.35rem 0.45rem;
    background: rgba(0, 0, 0, 0.35);
}

.progress-detail-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    padding: 0.35rem 0.4rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.72rem;
    color: #94a3b8;
}

.progress-detail-line {
    white-space: nowrap;
}

.progress-dk {
    color: #64748b;
    font-weight: 600;
    margin-right: 0.25rem;
}

.progress-detail-analysis {
    width: 100%;
    margin: 0.25rem 0 0;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.progress-empty-filter {
    padding: 1rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.82rem;
}

body.app-dashboard-home #videosPage .loading-videos {
    padding: 1.25rem 0.5rem;
    font-size: 0.85rem;
}

body.app-dashboard-home #videosPage .no-videos .empty-state {
    padding: 2rem 1rem;
}

body.app-dashboard-home #videosPage .no-videos .empty-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

body.app-dashboard-home #videosPage .videos-list .error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #fecaca;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.82rem;
}
