* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2a2a2a;
    --bg-tertiary: #3a3a3a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent: #4a9eff;
    --accent-hover: #3a8eef;
    --border: #404040;
    --success: #4caf50;
    --warning: #ff9800;
    --error: #f44336;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

header {
    background: var(--bg-secondary);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.header-stats {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Tabs */
.tabs {
    background: var(--bg-secondary);
    padding: 0 2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 0.5rem;
}

.tab {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.tab:hover {
    color: var(--text-primary);
}

.tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.subtabs {
    padding: 1rem 0;
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.subtab {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.subtab:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.subtab.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 2rem;
}

.tab-content.active {
    display: block;
}

.subtab-content {
    display: none;
}

.subtab-content.active {
    display: block;
}

/* Controls */
.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.filter-group select {
    padding: 0.5rem 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--accent);
}

#search-input {
    flex: 1;
    max-width: 400px;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

#search-input:focus {
    outline: none;
    border-color: var(--accent);
}

.pagination {
    display: flex;
    align-items: center;
    gap: 1rem;
}

button {
    padding: 0.75rem 1.25rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

button:hover:not(:disabled) {
    background: var(--accent);
    border-color: var(--accent);
}

button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.video-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
    cursor: default;
}

.video-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Poster area */
.card-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    background: var(--bg-tertiary);
    overflow: hidden;
}

.card-poster img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-poster-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--text-secondary);
    opacity: 0.4;
}

/* Text area below poster */
.card-body {
    padding: 0.6rem 0.75rem 0.75rem;
}

.card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    /* Clamp to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
}

/* Legacy text-only cards (search results) */
.video-card > h3 {
    font-size: 1rem;
    margin: 1rem 1rem 0.5rem;
    color: var(--text-primary);
}

.video-card .meta {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.card-body .meta {
    margin: 0;
}

/* Search result cards still use old inline padding */
.video-card > .meta {
    margin: 0 1rem 0.25rem;
}

.video-card .filename {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.7;
    margin: 0.5rem 1rem 1rem;
    font-family: monospace;
}

/* Ungrouped TV shows - special styling */
.video-card.ungrouped-tv {
    background: var(--bg-tertiary);
    border-color: var(--warning);
}

.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Completeness Dashboard */
.completeness-dashboard {
    max-width: 1400px;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.completeness-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
}

.panel h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.field-list, .missing-list {
    max-height: 500px;
    overflow-y: auto;
}

.field-item {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.field-item:last-child {
    border-bottom: none;
}

.field-info {
    flex: 1;
}

.field-label {
    font-weight: 500;
    color: var(--text-primary);
}

.field-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.field-action {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.missing-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s;
}

.missing-item:hover {
    background: var(--bg-tertiary);
}

.missing-item:last-child {
    border-bottom: none;
}

.missing-field-name {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.missing-count {
    font-size: 0.9rem;
    color: var(--warning);
}

/* Responsive */
@media (max-width: 768px) {
    .completeness-content {
        grid-template-columns: 1fr;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .controls {
        flex-direction: column;
        align-items: stretch;
    }

    #search-input {
        max-width: none;
    }
}

/* Pipeline Dashboard */
.pipeline-dashboard {
    max-width: 1400px;
}

.pipeline-dashboard h2 {
    margin-bottom: 0.5rem;
}

.pipeline-dashboard > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.pipeline-controls {
    margin-bottom: 2rem;
}

.plugin-selection {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.plugin-selection h3 {
    margin-bottom: 1rem;
}

.plugin-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.plugin-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: grab;
    user-select: none;
}

.plugin-item.dragging {
    opacity: 0.4;
}

.plugin-item.drag-over {
    border-color: var(--accent);
    border-top-width: 2px;
}

.drag-handle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1;
    margin-top: 0.1rem;
    cursor: grab;
    flex-shrink: 0;
}

.plugin-item input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.plugin-info {
    flex: 1;
}

.plugin-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.plugin-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.btn-primary {
    padding: 0.75rem 2rem;
    background: var(--accent);
    color: var(--text-primary);
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pipeline-progress {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
}

.pipeline-progress h3 {
    margin-bottom: 1rem;
}

.progress-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.progress-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.progress-header h4 {
    margin: 0;
    color: var(--text-primary);
}

.progress-status {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.progress-status.running {
    background: var(--accent);
    color: var(--text-primary);
}

.progress-status.completed {
    background: var(--success);
    color: var(--text-primary);
}

.progress-status.failed {
    background: var(--error);
    color: var(--text-primary);
}

.progress-bar-container {
    background: var(--bg-primary);
    border-radius: 4px;
    height: 24px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar {
    background: var(--accent);
    height: 100%;
    transition: width 0.3s ease;
    
    
    
    
    
    
}

.progress-details {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.progress-current {
    font-style: italic;
}

.plugin-info h4 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.unprocessed-badge {
    font-size: 0.75rem;
    font-weight: normal;
    padding: 0.25rem 0.75rem;
    background: var(--warning);
    color: var(--text-primary);
    border-radius: 12px;
}

.unprocessed-badge.complete {
    background: var(--success);
}



/* Activity Log */
.activity-log-toggle {
    width: 100%;
    margin-top: 1rem;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}

.activity-log-toggle:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.toggle-icon {
    display: inline-block;
    margin-right: 0.5rem;
    transition: transform 0.2s;
}

.activity-log {
    margin-top: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.75rem;
}

.log-entry {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: var(--bg-secondary);
    border-left: 3px solid var(--border);
    border-radius: 4px;
    font-size: 0.9rem;
}

.log-entry:last-child {
    margin-bottom: 0;
}

.log-entry.success {
    border-left-color: var(--success);
}

.log-entry.error {
    border-left-color: var(--error);
}

.log-entry.processing {
    border-left-color: var(--accent);
}

.log-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.log-icon {
    font-weight: bold;
    font-size: 1.1rem;
}

.log-entry.success .log-icon {
    color: var(--success);
}

.log-entry.error .log-icon {
    color: var(--error);
}

.log-entry.processing .log-icon {
    color: var(--accent);
}

.log-filename {
    flex: 1;
    color: var(--text-primary);
    font-family: monospace;
    font-size: 0.85rem;
}

.log-time {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.log-details {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

.log-error {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(244, 67, 54, 0.1);
    border-radius: 4px;
    color: var(--error);
    font-size: 0.85rem;
}

/* Scrollbar styling for activity log */
.activity-log::-webkit-scrollbar {
    width: 8px;
}

.activity-log::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.activity-log::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.activity-log::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

.btn-secondary {
    padding: 0.75rem 2rem;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.progress-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.progress-bar-wrapper .progress-bar-container {
    flex: 1;
    margin-bottom: 0;
}

.progress-percentage {
    min-width: 45px;
    text-align: right;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* ═══════════════════════════════════════════
   Pipeline Flow Visualization
   ═══════════════════════════════════════════ */

.pipeline-flow-viz {
    margin-bottom: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem 1.5rem 1.5rem;
    overflow-x: auto;
}

.pipeline-flow-viz h3 {
    margin-bottom: 1.25rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.flow-stages {
    display: flex;
    align-items: flex-start;
    gap: 0;
    min-width: max-content;
}

/* ── Stage unit wrapper (queue badge + stage card as one column) ── */

.flow-unit {
    display: flex;
    flex-direction: column;
}

/* ── Queue badge — sits above each stage card ── */

.stage-queue {
    width: 240px;
    height: 36px;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0 0.9rem;
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    background: var(--bg-secondary);
    transition: border-color 0.4s, background 0.4s;
}

.stage-queue.running {
    border-color: var(--accent);
    background: rgba(74, 158, 255, 0.05);
}

.stage-queue.completed {
    border-color: var(--success);
}

.queue-count {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    transition: color 0.3s;
}

.stage-queue.empty .queue-count {
    font-weight: 500;
    color: var(--text-secondary);
}

.stage-queue.completed .queue-count {
    color: var(--success);
}

.queue-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    opacity: 0.7;
}

.stage-queue.empty .queue-label {
    color: var(--text-secondary);
    opacity: 0.5;
}

.stage-queue.completed .queue-label {
    color: var(--success);
    opacity: 0.7;
}

/* ── Done bookend — same height as queue badge ── */

.flow-bookend.done {
    align-self: flex-start;
    height: 36px;
    min-width: 0;
    padding: 0 1rem;
    border-radius: 8px;
    border: 1px solid rgba(76, 175, 80, 0.35);
    background: rgba(76, 175, 80, 0.08);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.bookend-count {
    font-size: 1rem;
    font-weight: 700;
    color: var(--success);
    line-height: 1;
}

.bookend-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--success);
    opacity: 0.8;
}

/* ── Animated connector — at queue-badge height ── */

.flow-connector {
    align-self: flex-start;
    height: 36px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 0 10px;
}

.flow-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0;
    animation: dot-wave 1.8s ease-in-out infinite;
}

.flow-dot:nth-child(1) { animation-delay: 0.00s; }
.flow-dot:nth-child(2) { animation-delay: 0.22s; }
.flow-dot:nth-child(3) { animation-delay: 0.44s; }
.flow-dot:nth-child(4) { animation-delay: 0.66s; }
.flow-dot:nth-child(5) { animation-delay: 0.88s; }

@keyframes dot-wave {
    0%, 100% { opacity: 0.1; transform: scale(0.65); }
    50%       { opacity: 1;   transform: scale(1.15); }
}

.flow-connector.idle .flow-dot {
    background: var(--border);
    animation: none;
    opacity: 0.25;
    transform: scale(0.8);
}

/* ── Stage card ── */

.flow-stage {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 8px 8px;
    width: 240px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: border-color 0.4s, box-shadow 0.4s;
}

.flow-stage.running {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.12);
}

.flow-stage.completed {
    border-color: var(--success);
}

.stage-header {
    padding: 0.65rem 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.stage-name {
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stage-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--border);
    transition: background 0.3s;
}

.stage-status-dot.pending   { background: var(--warning); }
.stage-status-dot.running   { background: var(--accent); animation: dot-blink 1.1s ease-in-out infinite; }
.stage-status-dot.completed { background: var(--success); }
.stage-status-dot.failed    { background: var(--error); }

@keyframes dot-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.25; }
}

/* ── Progress strip ── */

.stage-progress-strip {
    height: 3px;
    background: var(--bg-primary);
}

.stage-progress-fill {
    height: 100%;
    background: var(--accent);
    transition: width 0.7s ease;
}

.flow-stage.completed .stage-progress-fill {
    background: var(--success);
}

/* ── Stats row ── */

.stage-stats {
    padding: 0.4rem 0.9rem;
    font-size: 0.72rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.stage-stat-errors {
    color: var(--error);
}

/* ── Active item slot ── */

.stage-active {
    padding: 0.55rem 0.75rem;
    min-height: 46px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.15);
}

.stage-active-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(74, 158, 255, 0.08);
    border: 1px solid rgba(74, 158, 255, 0.35);
    border-radius: 5px;
    padding: 0.35rem 0.6rem;
    width: 100%;
    animation: active-enter 0.2s ease-out, active-glow 2s ease-in-out 0.2s infinite;
    overflow: hidden;
}

.active-item-name {
    flex: 1;
    font-size: 0.73rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    color: var(--text-primary);
}

@keyframes active-enter {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes active-glow {
    0%, 100% { border-color: rgba(74, 158, 255, 0.35); background: rgba(74, 158, 255, 0.08); }
    50%       { border-color: rgba(74, 158, 255, 0.75); background: rgba(74, 158, 255, 0.16); }
}

/* Spinning loader for active item */
.item-spinner {
    width: 10px;
    height: 10px;
    border: 2px solid rgba(74, 158, 255, 0.25);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: item-spin 0.75s linear infinite;
    flex-shrink: 0;
}

@keyframes item-spin {
    to { transform: rotate(360deg); }
}

.stage-idle-msg {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* ── Item feed (vertical queue) ── */

.stage-feed {
    flex: 1;
    overflow-y: auto;
    max-height: 190px;
    padding: 0.4rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stage-feed::-webkit-scrollbar       { width: 3px; }
.stage-feed::-webkit-scrollbar-track { background: transparent; }
.stage-feed::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.feed-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.22rem 0.45rem;
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    border-left: 2px solid transparent;
    animation: feed-enter 0.18s ease-out;
}

@keyframes feed-enter {
    from { opacity: 0; transform: translateX(-5px); }
    to   { opacity: 1; transform: translateX(0); }
}

.feed-item.success { border-left-color: var(--success); color: rgba(255,255,255,0.7); }
.feed-item.error   { border-left-color: var(--error);   color: rgba(255,255,255,0.7); }

.feed-icon {
    flex-shrink: 0;
    font-size: 0.62rem;
    width: 11px;
    text-align: center;
}

.feed-item.success .feed-icon { color: var(--success); }
.feed-item.error   .feed-icon { color: var(--error); }

.feed-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.feed-empty {
    padding: 0.75rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* ── Progress bar in details section ── */

.progress-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.progress-percentage {
    font-size: 0.85rem;
    min-width: 40px;
    text-align: right;
    color: var(--text-secondary);
}
