/* Vigil — custom overrides for Pico CSS dark theme */
:root {
  --v-bg: #0a0a0b; --v-surface: #111113; --v-border: #222226;
  --v-text: #e2e2e6; --v-muted: #6b6b75; --v-accent: #a78bfa;
  --v-obs: #3b82f6; --v-handoff: #8b5cf6; --v-alert: #ef4444; --v-summary: #22c55e;
  --v-p-high: #ef4444; --v-p-mid: #eab308; --v-p-low: #22c55e; --v-agent: #52525b;
}
body { background: var(--v-bg); font-family: ui-monospace, "SF Mono", "Cascadia Mono", monospace; }

/* Nav / Footer */
.v-header { border-bottom: 1px solid var(--v-border); background: var(--v-surface); padding: 0; }
.v-header nav { padding: 0.6rem 1.5rem; }
.v-brand { font-weight: 700; color: var(--v-accent) !important; text-decoration: none !important; }
.v-nav-active { color: var(--v-text) !important; border-bottom: 2px solid var(--v-accent); }
nav ul { gap: 0.25rem; } nav a { color: var(--v-muted); text-decoration: none; font-size: 0.875rem; padding: 0.25rem 0.5rem; } nav a:hover { color: var(--v-text); }
.v-footer { border-top: 1px solid var(--v-border); padding: 0.75rem 1.5rem; }
.v-footer small, .v-muted { color: var(--v-muted); }

/* Layout */
.v-main { padding: 1.5rem; max-width: 1200px; }
.v-page-header { margin-bottom: 1.5rem; } .v-page-header h2 { margin-bottom: 0.25rem; }
.v-page-header-row { display: flex; align-items: center; justify-content: space-between; }
.v-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.5rem; }
@media (max-width: 768px) { .v-two-col { grid-template-columns: 1fr; } }
.v-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }

/* Stat cards */
.v-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 640px) { .v-stats-row { grid-template-columns: 1fr; } }
.v-stat-card { background: var(--v-surface); border: 1px solid var(--v-border); border-radius: 6px; padding: 1rem 1.25rem; margin: 0; }
.v-stat-label { font-size: 0.75rem; color: var(--v-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.4rem; }
.v-stat-value { font-size: 1.5rem; font-weight: 700; }

/* Sections & cards */
.v-section, .v-card { background: var(--v-surface); border: 1px solid var(--v-border); border-radius: 6px; padding: 1rem 1.25rem; margin: 0; }
.v-section-header, .v-timeline-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.v-section-header h3 { margin: 0; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--v-muted); }
.v-card header { margin-bottom: 0.75rem; } .v-card-active { border-color: var(--v-accent); box-shadow: 0 0 12px color-mix(in srgb, var(--v-accent) 20%, transparent); }

/* Badges */
.v-badge { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.v-badge-agent { background: var(--v-agent); color: #d4d4d8; }
.v-badge-active { background: color-mix(in srgb, var(--v-accent) 20%, transparent); color: var(--v-accent); }
.v-badge-type-observation { background: color-mix(in srgb, var(--v-obs) 20%, transparent); color: var(--v-obs); }
.v-badge-type-handoff { background: color-mix(in srgb, var(--v-handoff) 20%, transparent); color: var(--v-handoff); }
.v-badge-type-alert { background: color-mix(in srgb, var(--v-alert) 20%, transparent); color: var(--v-alert); }
.v-badge-type-summary { background: color-mix(in srgb, var(--v-summary) 20%, transparent); color: var(--v-summary); }
.v-priority-high { background: color-mix(in srgb, var(--v-p-high) 20%, transparent); color: var(--v-p-high); }
.v-priority-mid { background: color-mix(in srgb, var(--v-p-mid) 20%, transparent); color: var(--v-p-mid); }
.v-priority-low { background: color-mix(in srgb, var(--v-p-low) 20%, transparent); color: var(--v-p-low); }

/* Signals */
.v-signal-list { display: flex; flex-direction: column; gap: 0.5rem; }
.v-signal-row { padding: 0.5rem 0; border-bottom: 1px solid var(--v-border); } .v-signal-row:last-child { border-bottom: none; }
.v-signal-meta { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.25rem; flex-wrap: wrap; }
.v-signal-content { margin: 0; font-size: 0.8rem; white-space: pre-wrap; word-break: break-word; }

/* Focus */
.v-focus-list { display: flex; flex-direction: column; gap: 0.5rem; }
.v-focus-row { display: flex; align-items: flex-start; gap: 0.5rem; padding: 0.35rem 0; border-bottom: 1px solid var(--v-border); } .v-focus-row:last-child { border-bottom: none; }
.v-focus-desc { font-size: 0.82rem; flex: 1; line-height: 1.4; }

/* Table */
.v-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.v-table th { color: var(--v-muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--v-border); text-align: left; }
.v-table td { padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--v-border); } .v-table tr:last-child td { border-bottom: none; }
.v-meta-block { font-size: 0.75rem; display: flex; flex-direction: column; gap: 0.2rem; margin-bottom: 0.75rem; }
.v-label { color: var(--v-muted); margin-right: 0.35rem; }
.v-details-summary { cursor: pointer; font-size: 0.8rem; color: var(--v-muted); padding: 0.25rem 0; } .v-details-summary:hover { color: var(--v-text); }

/* Sessions */
.v-sessions-list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 0.5rem; }
.v-session-row { padding: 0.5rem; background: var(--v-bg); border-radius: 4px; border: 1px solid var(--v-border); }
.v-session-summary { margin: 0 0 0.4rem 0; font-size: 0.8rem; }

/* Timeline */
.v-timeline { display: flex; flex-direction: column; }
.v-timeline-item { display: flex; gap: 1rem; padding-bottom: 1.5rem; position: relative; }
.v-timeline-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--v-border); border: 2px solid var(--v-accent); flex-shrink: 0; margin-top: 0.35rem; }
.v-timeline-item::before { content: ""; position: absolute; left: 4px; top: 16px; bottom: 0; width: 1px; background: var(--v-border); } .v-timeline-item:last-child::before { display: none; }
.v-timeline-body { flex: 1; background: var(--v-surface); border: 1px solid var(--v-border); border-radius: 6px; padding: 0.75rem 1rem; }
.v-handoff-summary { font-size: 0.85rem; margin-bottom: 0.5rem; }
.v-file-list { display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0.5rem 0; }
.v-file-tag { font-size: 0.72rem; padding: 0.15rem 0.4rem; background: var(--v-bg); border: 1px solid var(--v-border); border-radius: 3px; }
.v-detail-list { font-size: 0.82rem; margin: 0.5rem 0 0 1rem; padding: 0; } .v-detail-list li { margin-bottom: 0.25rem; }

/* Frames */
.v-frame-name { font-size: 1rem; font-weight: 700; } .v-frame-desc { font-size: 0.82rem; color: var(--v-muted); margin: 0.5rem 0; }
.v-trigger-list { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }
.v-chip { font-size: 0.72rem; padding: 0.15rem 0.5rem; background: var(--v-bg); border: 1px solid var(--v-border); border-radius: 12px; color: var(--v-muted); }

/* Time selector */
.v-time-selector { display: flex; gap: 0.35rem; }
.v-time-selector a { font-size: 0.8rem; padding: 0.25rem 0.6rem; border: 1px solid var(--v-border); border-radius: 4px; color: var(--v-muted); text-decoration: none; } .v-time-selector a:hover { border-color: var(--v-accent); color: var(--v-text); }
.v-time-active { border-color: var(--v-accent) !important; color: var(--v-accent) !important; background: color-mix(in srgb, var(--v-accent) 10%, transparent) !important; }

/* Awareness & utilities */
.v-awareness-text { font-size: 0.82rem; white-space: pre-wrap; line-height: 1.6; margin: 0 0 0.5rem 0; max-height: 200px; overflow-y: auto; }
.v-mono { font-family: ui-monospace, "SF Mono", "Cascadia Mono", monospace; }
.v-ts { font-size: 0.72rem; color: var(--v-muted); } .v-small { font-size: 0.75rem; }
.v-empty { text-align: center; padding: 3rem 1rem; color: var(--v-muted); } .v-empty p { margin-bottom: 0.75rem; }
