:root {
    --bg: #0f172a;
    --surface: #1e293b;
    --surface-2: #334155;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --accent: #3b82f6;
    --accent-2: #8b5cf6;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --border: #334155;
    --radius: 10px;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.3);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
}

.container { max-width: 1400px; margin: 0 auto; padding: 20px; }

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

.header-left h1 {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-left .subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 2px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.timestamp {
    color: var(--text-dim);
    font-size: 13px;
}

/* Buttons */
.btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover { background: #2563eb; }

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.btn-ghost:hover { background: var(--surface); }

.btn-success { background: var(--success); color: white; }
.btn-danger { background: var(--danger); color: white; }

/* Alerts Banner */
.alerts-banner { margin-bottom: 20px; }
.alerts-banner.hidden { display: none; }

.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--warning);
}

/* Section Headings */
.section-heading {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    margin: 24px 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Summary Cards */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.summary-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

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

.card-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.card-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.card-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.card-status {
    font-size: 12px;
    margin-top: 8px;
    font-weight: 500;
}

.card-status.ok { color: var(--success); }
.card-status.warn { color: var(--warning); }
.card-status.critical { color: var(--danger); }
.card-status.info { color: var(--accent); }

/* Health Bar */
.health-bar {
    display: grid;
    grid-template-columns: auto 1fr 1fr auto;
    gap: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 24px;
    align-items: center;
}

.health-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.health-wide { flex-direction: column; align-items: stretch; gap: 6px; }

.health-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.health-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.health-bar-visual {
    display: flex;
    align-items: center;
    gap: 10px;
}

.health-bar-track {
    flex: 1;
    height: 8px;
    background: var(--surface-2);
    border-radius: 4px;
    overflow: hidden;
}

.health-bar-fill {
    height: 100%;
    background: var(--success);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.health-bar-fill.warning { background: var(--warning); }
.health-bar-fill.critical { background: var(--danger); }

/* Sections */
.section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
}

.section h2 {
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    transition: background 0.2s;
}

.section h2:hover { background: rgba(255,255,255,0.03); }

.section-toggle {
    font-size: 12px;
    color: var(--text-dim);
}

.section-content {
    padding: 0 20px 20px;
    display: none;
}

.section-expanded .section-content { display: block; }

/* Loading / Empty */
.loading {
    padding: 40px;
    text-align: center;
    color: var(--text-dim);
    font-size: 14px;
}

.empty-state {
    padding: 40px;
    text-align: center;
    color: var(--text-dim);
    font-size: 14px;
    font-style: italic;
}

/* Blog Pipeline */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.blog-site-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
}

.blog-site-header {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.blog-site-pipeline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-stage {
    text-align: center;
    flex: 1;
}

.blog-stage-count {
    font-size: 20px;
    font-weight: 700;
}

.blog-stage-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.blog-stage-arrow {
    color: var(--text-dim);
    font-size: 14px;
}

.blog-quarantine-badge {
    margin-top: 10px;
    padding: 6px 10px;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* Quarantine */
.quarantine-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quarantine-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
}

.quarantine-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.quarantine-site {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.quarantine-title {
    font-size: 15px;
    font-weight: 500;
}

.quarantine-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 12px;
}

.quarantine-actions {
    display: flex;
    gap: 8px;
}

/* Org Chart */
.org-chart-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.org-group {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.org-group-header {
    padding: 12px 16px;
    border-left: 3px solid;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.org-group-emoji { font-size: 16px; }
.org-group-name { flex: 1; }
.org-group-count {
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 400;
}

.org-group-agents {
    padding: 8px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.org-agent-card {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.org-agent-card.status-active { border-left: 3px solid var(--success); }
.org-agent-card.status-idle { border-left: 3px solid var(--warning); }
.org-agent-card.status-offline { border-left: 3px solid var(--danger); opacity: 0.6; }
.org-agent-card.status-future { border-left: 3px solid var(--text-dim); opacity: 0.5; }

.org-agent-name {
    font-size: 14px;
    font-weight: 500;
}

.org-agent-id {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 2px;
}

.org-agent-status {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ImageGen */
.imagegen-badge {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.badge-shared, .badge-supervisor {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.badge-shared {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent);
}

.badge-supervisor {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-2);
}

.imagegen-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.imagegen-stat-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    text-align: center;
}

.imagegen-stat-value {
    font-size: 24px;
    font-weight: 700;
}

.imagegen-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.imagegen-structure {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.imagegen-sites {
    margin-bottom: 16px;
}

.imagegen-site-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.bar-track {
    flex: 1;
    height: 6px;
    background: var(--surface-2);
    border-radius: 3px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 3px;
}

.imagegen-recent {
    margin-top: 16px;
}

.imagegen-recent h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.imagegen-recent-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
}

.imagegen-recent-item .time {
    margin-left: auto;
    color: var(--text-dim);
    font-size: 12px;
}

/* Disk Usage */
.disk-agents { overflow-x: auto; }

.disk-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.disk-table th {
    text-align: left;
    padding: 10px 12px;
    background: var(--surface-2);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
}

.disk-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
}

.disk-table tr:hover td { background: rgba(255,255,255,0.03); }

/* Logs */
.log-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

.log-tab {
    padding: 6px 14px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
}

.log-tab:hover { background: rgba(255,255,255,0.05); }
.log-tab.active { background: var(--accent); color: white; }

.log-content {
    max-height: 400px;
    overflow-y: auto;
    background: #0b1120;
    border-radius: 8px;
    padding: 12px;
}

.log-line {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    padding: 3px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.log-line.log-error { color: #f87171; }
.log-line.log-warn { color: #fbbf24; }
.log-line.log-success { color: #4ade80; }
.log-line.log-info { color: var(--text-muted); }

/* Detail Panel */
.detail-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    z-index: 1000;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.detail-panel.hidden { display: none; }

.detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 10;
}

.detail-back {
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font-size: 14px;
}

.detail-back:hover { background: var(--surface); }

.detail-content {
    flex: 1;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Detail Tables */
.detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.detail-table th {
    text-align: left;
    padding: 12px 16px;
    background: var(--surface-2);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.detail-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.detail-table tr:hover td { background: rgba(255,255,255,0.03); }

.detail-table pre {
    background: #0b1120;
    padding: 8px;
    border-radius: 4px;
    font-size: 11px;
    overflow-x: auto;
    max-width: 400px;
}

.status-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.status-active {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.status-badge.status-idle {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.status-badge.status-offline {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

/* Detail Grid */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.detail-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
}

.detail-card h4 {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.detail-card p {
    font-size: 18px;
    font-weight: 600;
}

.mini-bar {
    height: 6px;
    background: var(--surface-2);
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.mini-fill {
    height: 100%;
    background: var(--success);
    border-radius: 3px;
}

/* Website Health */
.web-health-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.web-health-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
}

.web-health-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.web-health-name {
    font-size: 15px;
    font-weight: 600;
}

.web-health-grade {
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 8px;
}

.web-health-grade.healthy { background: rgba(34, 197, 94, 0.15); color: var(--success); }
.web-health-grade.warning { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.web-health-grade.critical { background: rgba(239, 68, 68, 0.15); color: var(--danger); }

.web-health-issues {
    font-size: 11px;
    color: var(--danger);
    margin-left: 8px;
}

.web-health-score {
    font-size: 20px;
    font-weight: 700;
}

.web-health-score.healthy { color: var(--success); }
.web-health-score.warning { color: var(--warning); }
.web-health-score.critical { color: var(--danger); }

.web-health-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.web-metric {
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    background: rgba(255,255,255,0.03);
}

.web-metric span {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
}

.web-metric strong {
    display: block;
    font-size: 16px;
    margin-top: 2px;
}

.web-metric.metric-good strong { color: var(--success); }
.web-metric.metric-warn strong { color: var(--warning); }
.web-metric.metric-bad strong { color: var(--danger); }

.web-health-footer {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-dim);
    flex-wrap: wrap;
}

.web-health-status {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.web-health-status.online { background: rgba(34, 197, 94, 0.15); color: var(--success); }
.web-health-status.offline { background: rgba(239, 68, 68, 0.15); color: var(--danger); }

/* Kimi Usage */
.kimi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.kimi-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.kimi-total { border-color: var(--accent); }

.kimi-value {
    font-size: 22px;
    font-weight: 700;
}

.kimi-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.kimi-sublabel {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 4px;
}

.kimi-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.kimi-table th {
    text-align: left;
    padding: 10px 12px;
    background: var(--surface-2);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
}

.kimi-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
}

.kimi-agent-name { font-weight: 500; }
.kimi-tokens { font-weight: 600; color: var(--accent); }

/* Usage Table */
.usage-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.usage-table th {
    text-align: left;
    padding: 10px 12px;
    background: var(--surface-2);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
}

.usage-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
}

.usage-agent-name { font-weight: 500; }
.usage-tokens { font-weight: 600; color: var(--accent); }
.usage-last { color: var(--text-dim); font-size: 12px; }

/* Detail Websites */
.detail-websites {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.detail-website-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
}

.detail-website-card h4 {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    margin-bottom: 12px;
}

.detail-website-card .score {
    font-size: 20px;
    font-weight: 700;
}

.score-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.score-grid div {
    text-align: center;
    padding: 8px;
    background: rgba(255,255,255,0.03);
    border-radius: 4px;
    font-size: 13px;
}

/* ========== Brave Search Usage Styles ========== */

.search-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.search-alert.alert-critical {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.search-alert.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.search-alert.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

.search-alert strong { font-weight: 600; }

.search-alert-action {
    margin-top: 6px;
    font-size: 13px;
    opacity: 0.85;
}

.search-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.search-stat-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}

.search-stat-card.critical {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.05);
}

.search-stat-card.warning {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.05);
}

.search-stat-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.search-stat-card.critical .search-stat-value { color: #f87171; }
.search-stat-card.warning .search-stat-value { color: #fbbf24; }

.search-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

.search-stat-sublabel {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 2px;
}

.search-quota-bar { margin-bottom: 24px; }

.search-quota-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.search-quota-track {
    height: 12px;
    background: var(--surface-2);
    border-radius: 6px;
    overflow: hidden;
}

.search-quota-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success), #16a34a);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.search-quota-fill.warning {
    background: linear-gradient(90deg, var(--warning), #d97706);
}

.search-quota-fill.critical {
    background: linear-gradient(90deg, var(--danger), #dc2626);
}

.search-quota-overflow {
    margin-top: 8px;
    font-size: 13px;
    color: var(--danger);
    font-weight: 500;
}

.search-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 20px;
}

.search-table th {
    text-align: left;
    padding: 10px 12px;
    background: var(--surface-2);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.search-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
}

.search-table tr:hover td { background: rgba(255,255,255,0.03); }

.search-agent-name { font-weight: 600; }

.search-query {
    color: var(--text-dim);
    font-size: 12px;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-time {
    font-size: 12px;
    color: var(--text-dim);
    white-space: nowrap;
}

.search-daily-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 120px;
    padding: 16px 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
}

.search-daily-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 28px;
    flex: 1;
}

.search-daily-fill {
    width: 20px;
    background: linear-gradient(180deg, var(--accent), #2563eb);
    border-radius: 3px 3px 0 0;
    min-height: 4px;
}

.search-daily-label {
    font-size: 10px;
    color: var(--text-dim);
    margin-top: 4px;
    transform: rotate(-45deg);
    transform-origin: left center;
    white-space: nowrap;
}

.search-monthly-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.search-monthly-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.search-monthly-month {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.search-monthly-count {
    font-size: 24px;
    font-weight: 700;
    margin: 4px 0;
}

.search-monthly-label {
    font-size: 12px;
    color: var(--text-dim);
}

.search-last-updated {
    font-size: 12px;
    color: var(--text-dim);
    text-align: right;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* Compact Mode */
body.compact .container { padding: 10px; }
body.compact .header { padding-bottom: 10px; margin-bottom: 10px; }
body.compact .section-heading { margin: 12px 0 8px; }
body.compact .summary-cards { gap: 10px; }
body.compact .summary-card { padding: 12px; }
body.compact .card-value { font-size: 22px; }
body.compact .health-bar { padding: 10px 14px; }
body.compact .section h2 { padding: 10px 14px; }
body.compact .section-content { padding: 0 14px 14px; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* Responsive */
@media (max-width: 768px) {
    .summary-cards { grid-template-columns: repeat(2, 1fr); }
    .health-bar { grid-template-columns: 1fr 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .org-chart-container { grid-template-columns: 1fr; }
    .web-health-grid { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
    .header { flex-direction: column; gap: 10px; align-items: flex-start; }
}
