/* Content Curation Dashboard — UW.AI Dark Theme */
/* Matches unternehmenswissen.ai: pure black, fine lines, no color fills, no radius */

/* ===== Base Theme ===== */
:root {
    --bg-primary: #0e0e0e;
    --bg-card: transparent;
    --bg-elevated: #141414;
    --bg-hover: #1a1a1a;
    --border: #3b3b3b;
    --border-light: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #9c9c9c;
    --text-muted: #69727d;
    --accent: #9c9c9c;
    --accent-hover: #ffffff;
    --score-high: #4ade80;
    --score-mid: #fbbf24;
    --score-low: #f87171;
    --approve-bg: rgba(74, 222, 128, 0.08);
    --approve-border: rgba(74, 222, 128, 0.3);
    --reject-bg: rgba(248, 113, 113, 0.08);
    --reject-border: rgba(248, 113, 113, 0.3);
}

/* ===== Pico CSS Overrides — kill radius + colored backgrounds + blue tints ===== */
*, *::before, *::after {
    border-radius: 0 !important;
}

/* Override Pico's blue-tinted dark theme colors at root */
html[data-theme="dark"], html {
    --pico-background-color: #0e0e0e !important;
    --pico-color: #ffffff !important;
    --pico-text-selection-color: rgba(156, 156, 156, 0.2) !important;
    --pico-muted-color: #69727d !important;
    --pico-muted-border-color: #3b3b3b !important;
    --pico-secondary: #9c9c9c !important;
    --pico-secondary-background: transparent !important;
    --pico-secondary-border: #3b3b3b !important;
    --pico-primary: #9c9c9c !important;
    --pico-primary-background: transparent !important;
    --pico-primary-border: #9c9c9c !important;
    --pico-card-background-color: transparent !important;
    --pico-card-sectioning-background-color: transparent !important;
    --pico-table-border-color: #3b3b3b !important;
    --pico-table-row-stripped-background-color: transparent !important;
    --pico-form-element-background-color: transparent !important;
    --pico-form-element-border-color: #3b3b3b !important;
    --pico-form-element-focus-color: #9c9c9c !important;
    --pico-switch-background-color: #3b3b3b !important;
    --pico-code-background-color: #161616 !important;
    --pico-code-color: #9c9c9c !important;
    background-color: #0e0e0e !important;
    color: #ffffff !important;
}

/* Kill Pico's blue-tinted table cell backgrounds */
table, thead, tbody, tfoot, tr, th, td {
    background-color: transparent !important;
}

/* Kill Pico's card/section backgrounds */
article, section, aside, details, dialog, fieldset, figure {
    background-color: transparent !important;
}

/* Kill Pico's input/select backgrounds */
input, select, textarea, button {
    background-color: transparent !important;
    border-color: var(--border) !important;
    color: var(--text-primary) !important;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--text-secondary) !important;
    box-shadow: none !important;
    outline: none !important;
}

body {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
    font-weight: 300;
    letter-spacing: 0.01em;
}

main.container {
    max-width: 1100px;
    padding-top: 1rem;
}

h1, h2, h3 {
    font-weight: 200 !important;
    letter-spacing: -0.02em;
    color: var(--text-primary) !important;
}

h1 {
    font-size: 2rem !important;
    font-weight: 100 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0;
    border-bottom: none;
}

/* ===== Top Navigation Bar (unified) ===== */
.top-nav {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-primary);
    flex-shrink: 0;
    height: 2.5rem;
}

.nav-brand {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary) !important;
    text-decoration: none !important;
    margin-right: 2rem;
    white-space: nowrap;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.nav-brand:hover {
    color: var(--text-primary) !important;
}

.nav-tabs {
    display: flex;
    gap: 0;
    height: 100%;
    align-items: stretch;
}

.nav-tabs .tab {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    text-decoration: none !important;
    color: var(--text-muted) !important;
    font-weight: 300;
    font-size: 0.85rem;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-tabs .tab:hover {
    color: var(--text-primary) !important;
}

.nav-tabs .tab.active {
    color: var(--text-primary) !important;
    border-bottom-color: var(--text-primary);
    font-weight: 400;
}

/* User info in nav */
.nav-user {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    padding-right: 0.5rem;
}

.nav-user .user-name {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.nav-user .nav-logout {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.15rem 0.5rem;
    border: 1px solid var(--border-light);
}

.nav-user .nav-logout:hover {
    color: var(--text-primary);
    border-color: var(--border);
}

/* ===== Page Header (legacy) ===== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.tab-subheader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 2.2rem;
    margin-bottom: 0.75rem;
}

.tab-subheader-title {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tab-subheader-title .check-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
    text-transform: none;
    letter-spacing: normal;
}

.tab-subheader-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sync-form {
    margin: 0;
}

.btn-sync {
    background: transparent;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border);
    padding: 0.4rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-sync:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary) !important;
}

.btn-sync.syncing {
    color: var(--text-muted) !important;
    border-color: var(--border-light);
    cursor: wait;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.btn-sync.syncing {
    animation: pulse 1.5s ease-in-out infinite;
}

a {
    color: var(--text-secondary) !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--text-primary) !important;
}

/* ===== Main Navigation Tabs (legacy, kept for compatibility) ===== */
.main-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}

.main-tabs .tab {
    padding: 0.6rem 1.2rem;
    text-decoration: none !important;
    color: var(--text-muted) !important;
    font-weight: 300;
    font-size: 0.9rem;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
    margin-bottom: -1px;
}

.main-tabs .tab:hover {
    color: var(--text-primary) !important;
}

.main-tabs .tab.active {
    color: var(--text-primary) !important;
    border-bottom-color: var(--text-primary);
    font-weight: 400;
}

/* ===== Status Filter (Row 1) ===== */
.filter-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-label {
    font-size: 0.75rem;
    font-weight: 300;
    color: var(--text-muted);
    margin-right: 0.25rem;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.status-filter,
.score-filter,
.sort-filter {
    display: flex;
    gap: 0.35rem;
    align-items: center;
}

.status-filter a,
.score-filter a,
.sort-filter a {
    padding: 0.3rem 0.7rem;
    text-decoration: none !important;
    font-size: 0.8rem;
    font-weight: 300;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted) !important;
    transition: all 0.2s ease;
}

.status-filter a:hover,
.score-filter a:hover,
.sort-filter a:hover {
    border-color: var(--text-secondary);
    color: var(--text-secondary) !important;
}

.status-filter a.active,
.score-filter a.active,
.sort-filter a.active {
    background: transparent !important;
    color: var(--text-primary) !important;
    border-color: var(--text-primary) !important;
    font-weight: 400;
}

.status-filter a small,
.score-filter a small,
.sort-filter a small {
    opacity: 0.5;
}

/* ===== Project Tabs (Row 2) ===== */
.project-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}

.project-tabs .tab {
    padding: 0.6rem 1.2rem;
    text-decoration: none !important;
    color: var(--text-muted) !important;
    font-weight: 300;
    font-size: 0.9rem;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
    margin-bottom: -1px;
}

.project-tabs .tab:hover {
    color: var(--text-secondary) !important;
}

.project-tabs .tab.active {
    color: var(--text-primary) !important;
    border-bottom-color: var(--text-primary);
    font-weight: 400;
}

.project-tabs .tab small {
    opacity: 0.4;
    font-size: 0.8rem;
}

/* ===== Bulk Toolbar ===== */
.bulk-toolbar {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0.6rem 1rem;
    background: transparent;
    border: 1px solid var(--border);
    margin-bottom: 1.25rem;
}

.bulk-toolbar label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 300;
}

/* ===== Buttons ===== */
.btn-approve {
    background: transparent;
    color: var(--score-high) !important;
    border: 1px solid rgba(74, 222, 128, 0.3);
    padding: 0.4rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-approve:hover {
    border-color: var(--score-high);
}

.btn-reject {
    background: transparent;
    color: var(--score-low) !important;
    border: 1px solid rgba(248, 113, 113, 0.3);
    padding: 0.4rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-reject:hover {
    border-color: var(--score-low);
}

.btn-skip {
    padding: 0.4rem 1.2rem;
    text-decoration: none !important;
    font-size: 0.8rem;
    border: 1px solid var(--border);
    color: var(--text-muted) !important;
    background: transparent;
    transition: all 0.2s ease;
}

.btn-skip:hover {
    border-color: var(--text-secondary);
    color: var(--text-secondary) !important;
}

/* ===== Item Cards ===== */
article.item-card {
    margin-bottom: 0;
    padding: 1rem 1.25rem;
    background: transparent !important;
    border: 1px solid var(--border);
    border-bottom: none;
}

article.item-card:first-of-type {
    border-top: 1px solid var(--border);
}

article.item-card:last-of-type {
    border-bottom: 1px solid var(--border);
}

article.item-card:hover {
    background: var(--bg-hover) !important;
}

.item-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.item-header a {
    flex: 1;
    min-width: 200px;
}

.item-header a strong {
    font-weight: 400;
    color: var(--text-primary);
}

.source-icon {
    font-size: 1rem;
    opacity: 0.5;
}

.item-summary {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0.5rem 0;
    line-height: 1.6;
    font-weight: 300;
}

.item-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: "SF Mono", "Menlo", monospace;
}

.item-status {
    font-size: 0.65rem;
    padding: 0.1rem 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 400;
    border: 1px solid;
    background: transparent;
}

.status-pending { color: var(--score-mid); border-color: rgba(251, 191, 36, 0.3); }
.status-approved { color: var(--score-high); border-color: rgba(74, 222, 128, 0.3); }
.status-synced { color: var(--text-secondary); border-color: var(--border); }
.status-rejected { color: var(--score-low); border-color: rgba(248, 113, 113, 0.3); }

/* ===== Score Badges ===== */
.score-badge {
    padding: 0.1rem 0.4rem;
    font-size: 0.75rem;
    font-weight: 400;
    font-family: "SF Mono", "Menlo", monospace;
    white-space: nowrap;
    border: 1px solid;
    background: transparent;
}

.score-high { color: var(--score-high); border-color: rgba(74, 222, 128, 0.3); }
.score-mid { color: var(--score-mid); border-color: rgba(251, 191, 36, 0.3); }
.score-low { color: var(--score-low); border-color: rgba(248, 113, 113, 0.3); }

/* ===== Project Tags ===== */
.project-scores {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.project-tag {
    padding: 0.1rem 0.5rem;
    font-size: 0.7rem;
    font-family: "SF Mono", "Menlo", monospace;
    cursor: help;
    border: 1px solid;
    background: transparent;
}

/* ===== Item Detail Page ===== */
.item-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.summary-section {
    background: transparent;
    padding: 1.25rem;
    border: 1px solid var(--border);
    margin-bottom: 1.25rem;
}

.summary-section h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted) !important;
    margin-bottom: 0.75rem;
    font-weight: 300 !important;
}

.summary-section p {
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.6;
}

.snippet {
    font-size: 0.8rem;
    white-space: pre-wrap;
    max-height: 300px;
    overflow-y: auto;
    color: var(--text-secondary);
    background: transparent;
    padding: 1rem;
    border: 1px solid var(--border);
}

details summary {
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 300;
}

/* ===== Project Approval Cards ===== */
.project-approval {
    padding: 1rem 1.25rem;
    margin-bottom: 0;
    border: 1px solid var(--border);
    border-bottom: none;
    background: transparent;
    border-left: 2px solid var(--border);
}

.project-approval:last-of-type {
    border-bottom: 1px solid var(--border);
}

.project-approval.relevant {
    border-left-color: var(--score-high);
}

.project-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.project-row label {
    color: var(--text-primary);
    font-weight: 300;
}

.reason {
    font-size: 0.85rem;
    font-style: italic;
    margin: 0.25rem 0;
    color: var(--text-muted);
}

.takeaways ul {
    font-size: 0.85rem;
    margin: 0.25rem 0;
    color: var(--text-secondary);
}

.takeaways label,
.action-items label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted) !important;
    font-weight: 300;
}

.action-items {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: transparent;
    border: 1px solid var(--border);
}

.action-items ul {
    font-size: 0.85rem;
    margin: 0.25rem 0;
    color: var(--text-secondary);
}

.action-items li {
    color: var(--text-secondary);
}

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

.field label {
    color: var(--text-muted);
    font-weight: 300;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.field input[type="text"] {
    margin-top: 0.25rem;
    padding: 0.3rem 0.5rem;
    font-size: 0.85rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-weight: 300;
}

.field input[type="text"]:focus {
    border-color: var(--text-secondary);
    outline: none;
}

/* ===== Detail Page Filters ===== */
.detail-filters {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding: 0.75rem 1rem;
    background: transparent;
    border: 1px solid var(--border);
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.detail-filters .filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.detail-filters label {
    font-weight: 300;
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-filters select {
    margin: 0;
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
    width: auto;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-weight: 300;
}

.detail-filters input[type="range"] {
    margin: 0;
    width: 150px;
    accent-color: var(--text-secondary);
}

#no-filter-results {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-style: italic;
    display: none;
}

/* ===== Action Buttons ===== */
.action-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.pagination a {
    color: var(--text-muted) !important;
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.pagination a:hover {
    border-color: var(--text-secondary);
    color: var(--text-secondary) !important;
}

.pagination span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== Empty State ===== */
.empty {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* ===== Obsidian Deep Links ===== */
.obsidian-link {
    color: var(--text-secondary) !important;
    text-decoration: none !important;
    border-bottom: 1px dotted var(--border);
    transition: all 0.2s ease;
}

.obsidian-link:hover {
    color: var(--text-primary) !important;
    border-bottom-color: var(--text-secondary);
}

/* ===== Task Table ===== */
.task-table {
    table-layout: fixed;
    width: 100%;
}
.task-table th:nth-child(1),
.task-table td:nth-child(1) { width: 18%; }
.task-table th:nth-child(2),
.task-table td:nth-child(2) { width: 36%; }
.task-table th:nth-child(3),
.task-table td:nth-child(3) { width: 16%; }
.task-table th:nth-child(4),
.task-table td:nth-child(4) { width: 18%; }
.task-table th:nth-child(5),
.task-table td:nth-child(5) { width: 12%; }

.task-table .task-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
}

.task-status {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 400;
    white-space: nowrap;
    border: 1px solid;
    background: transparent;
}

.task-status-ok {
    color: var(--score-high);
    border-color: rgba(74, 222, 128, 0.3);
}

.task-status-unknown {
    color: var(--score-mid);
    border-color: rgba(251, 191, 36, 0.3);
}

.task-status-error {
    color: var(--score-low);
    border-color: rgba(248, 113, 113, 0.3);
}

/* ===== Misc ===== */
input.low-score {
    opacity: 0.5;
}

.item-count {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: "SF Mono", "Menlo", monospace;
}

/* Override Pico defaults */
input[type="checkbox"] {
    accent-color: var(--text-secondary);
}

nav a {
    color: var(--text-secondary) !important;
}

nav a:hover {
    color: var(--text-primary) !important;
}

strong.status-pending { color: var(--score-mid); }
strong.status-approved { color: var(--score-high); }
strong.status-synced { color: var(--text-secondary); }
strong.status-rejected { color: var(--score-low); }

/* ===== Pipeline Page ===== */
.pipeline-flow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.pipeline-stage {
    flex: 1;
    text-align: center;
    min-width: 100px;
}

.stage-header {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    font-weight: 300;
}

.stage-count {
    font-size: 2rem;
    font-weight: 200;
    font-family: "SF Mono", "Menlo", monospace;
    color: var(--text-secondary);
}

.stage-count.has-items {
    color: var(--score-mid);
}

.stage-count.approved {
    color: var(--score-high);
}

.stage-count.synced {
    color: var(--text-primary);
}

.stage-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
    font-weight: 300;
}

.stage-note {
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.stage-note.error {
    color: var(--score-low);
}

.pipeline-arrow {
    color: var(--border);
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Pipeline Grid */
.pipeline-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.pipeline-section {
    margin-bottom: 1.25rem;
}

.pipeline-section h3 {
    font-size: 0.8rem !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted) !important;
    margin-bottom: 0.75rem;
    font-weight: 300 !important;
}

/* Pipeline Table */
.pipeline-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.pipeline-table th {
    text-align: left;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border);
    font-weight: 300;
}

.pipeline-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-weight: 300;
}

/* Score Bars */
.score-bars {
    margin-bottom: 1.5rem;
}

.score-bar-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.score-bar-label {
    width: 40px;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: "SF Mono", "Menlo", monospace;
    text-align: right;
}

.score-bar-track {
    flex: 1;
    height: 12px;
    background: transparent;
    border: 1px solid var(--border-light);
}

.score-bar-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.score-bar-fill.high { background: rgba(74, 222, 128, 0.25); }
.score-bar-fill.mid { background: rgba(251, 191, 36, 0.25); }
.score-bar-fill.low { background: rgba(248, 113, 113, 0.2); }
.score-bar-fill.zero { background: var(--bg-hover); }

.score-bar-count {
    width: 30px;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: "SF Mono", "Menlo", monospace;
}

/* Daily Activity */
.daily-activity {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.daily-row {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    font-size: 0.8rem;
    border-bottom: 1px solid var(--border-light);
}

.daily-date {
    color: var(--text-muted);
    font-family: "SF Mono", "Menlo", monospace;
    font-size: 0.7rem;
}

.daily-count {
    color: var(--text-secondary);
    font-family: "SF Mono", "Menlo", monospace;
    font-size: 0.7rem;
}

/* State Cards */
.state-card {
    background: transparent;
    border: 1px solid var(--border);
    padding: 1rem 1.25rem;
}

.state-title {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-family: "SF Mono", "Menlo", monospace;
}

.state-files {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding-left: 1rem;
    margin: 0.25rem 0;
}

.state-files li {
    color: var(--text-muted);
}

/* ===== Content Pipeline ===== */
.content-pipeline .check-time {
    font-size: 0.6rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-left: 0.5rem;
    text-transform: none;
    letter-spacing: 0;
}

.content-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-bottom: 1.25rem;
}

.content-card {
    background: transparent;
    border: 1px solid var(--border);
    padding: 1rem;
    text-align: center;
    margin-left: -1px;
}

.content-card:first-child {
    margin-left: 0;
}

.content-card-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    font-weight: 300;
}

.content-card-value {
    font-size: 1.75rem;
    font-weight: 200;
    font-family: "SF Mono", "Menlo", monospace;
    color: var(--text-secondary);
}

.content-card-value.has-items {
    color: var(--score-mid);
}

.content-card-sub {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
    font-weight: 300;
}

/* Progress Bar */
.content-progress {
    margin-bottom: 1.25rem;
}

.content-progress-bar {
    height: 16px;
    background: transparent;
    border: 1px solid var(--border);
    display: flex;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    transition: width 0.5s ease;
}

.progress-fill.processed {
    background: rgba(156, 156, 156, 0.3);
}

.progress-fill.seen {
    background: rgba(74, 222, 128, 0.25);
}

.content-progress-legend {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 300;
}

.legend-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 0.3rem;
    vertical-align: middle;
    border: 1px solid var(--border);
}

.legend-dot.processed { background: rgba(156, 156, 156, 0.3); }
.legend-dot.seen { background: rgba(74, 222, 128, 0.25); }
.legend-dot.remaining { background: transparent; }

.table-total td {
    border-top: 1px solid var(--border);
}

/* Server Files */
.server-files {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: "SF Mono", "Menlo", monospace;
    padding-left: 1rem;
}

.server-files li {
    color: var(--text-muted);
    padding: 0.15rem 0;
}

/* ===== Vault Page ===== */
.folder-bar-track {
    flex: 1;
    height: 10px;
    background: transparent;
    border: 1px solid var(--border-light);
    max-width: 200px;
}

.folder-bar-fill {
    height: 100%;
    background: rgba(156, 156, 156, 0.2);
}

.folder-pct {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: "SF Mono", "Menlo", monospace;
    width: 40px;
    text-align: right;
}
