:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --accent: #6366f1;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --border: #e5e5e5;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.5;
    padding-bottom: 80px;
}

/* Loading */
#loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ═══════════════════════════════════════════
   WORKSTREAM OVERVIEW (landing page)
   ═══════════════════════════════════════════ */

.ws-overview-header {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
    padding: 24px 20px 20px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2px;
}

.header-brand h1 {
    font-size: 24px;
    font-weight: 700;
}

.header-badge {
    background: rgba(255,255,255,0.2);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.header-sub {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 16px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.stat-card {
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 10px 8px;
    text-align: center;
}

.stat-number {
    font-size: 22px;
    font-weight: 700;
}

.stat-label {
    font-size: 11px;
    opacity: 0.8;
    margin-top: 2px;
}

/* Overview Nav (Calendar button) */
.overview-nav {
    margin-top: 12px;
}

.nav-tab {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s;
}

.nav-tab:hover {
    background: rgba(255,255,255,0.3);
}

/* Workstream Grid */
.ws-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
}

@media (min-width: 640px) {
    .ws-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .ws-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Workstream Card */
.ws-card {
    display: block;
    background: var(--bg-primary);
    border-radius: 14px;
    padding: 18px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
    color: inherit;
    border-left: 5px solid var(--accent);
}

.ws-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.ws-card:active {
    transform: scale(0.99);
}

.ws-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.ws-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 24px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.ws-agent-pill {
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 10px;
    font-weight: 500;
    white-space: nowrap;
}

.ws-card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
}

.ws-card-owner {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.ws-card-progress {
    margin-bottom: 4px;
}

.ws-card-progress .progress-bar {
    margin-bottom: 4px;
}

.ws-card-stats {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════
   WORKSTREAM DETAIL VIEW
   ═══════════════════════════════════════════ */

#ws-header {
    background: var(--bg-primary);
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

#ws-back-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 10px;
}

#ws-back-link:hover {
    text-decoration: underline;
}

#ws-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.ws-number-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 32px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: white;
    background: var(--accent);
    flex-shrink: 0;
}

#ws-title {
    font-size: 20px;
    font-weight: 600;
}

#ws-agent-owner {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ws-owner-text {
    font-size: 13px;
    color: var(--text-secondary);
}

#ws-overall-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

#ws-progress-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    min-width: 90px;
}

/* Toolbar */
.ws-toolbar {
    padding: 10px 20px;
    display: flex;
    gap: 8px;
}

.toolbar-btn {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.toolbar-btn:hover {
    opacity: 0.9;
}

/* ═══════════════════════════════════════════
   SINGLE PROJECT VIEW (legacy)
   ═══════════════════════════════════════════ */

.back-nav {
    margin-bottom: 12px;
}

.back-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

#project-header {
    background: var(--bg-primary);
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

#project-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

#project-objective {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

#overall-progress {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ═══════════════════════════════════════════
   SHARED — Progress, Milestones, Tasks
   ═══════════════════════════════════════════ */

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

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

#overall-progress-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    min-width: 90px;
}

/* Milestones */
#milestones-container,
#ws-milestones-container {
    padding: 16px;
}

.milestone {
    background: var(--bg-primary);
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.milestone-header {
    display: flex;
    align-items: center;
    padding: 16px;
    cursor: pointer;
    user-select: none;
}

.milestone-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    transition: transform 0.2s ease;
    font-size: 12px;
    color: var(--text-secondary);
}

.milestone-toggle.collapsed {
    transform: rotate(-90deg);
}

.milestone-info {
    flex: 1;
}

.milestone-title {
    font-size: 16px;
    font-weight: 600;
}

.milestone-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.milestone-progress .progress-bar {
    width: 100px;
    height: 6px;
}

.milestone-progress-text {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Tasks */
.tasks-container {
    border-top: 1px solid var(--border);
}

.task {
    display: flex;
    align-items: flex-start;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.task:last-child {
    border-bottom: none;
}

.task-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border);
    border-radius: 6px;
    margin-right: 12px;
    margin-top: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.task-checkbox:hover {
    border-color: var(--accent);
}

.task-checkbox.checked {
    background: var(--success);
    border-color: var(--success);
}

.task-checkbox.checked::after {
    content: '\2713';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.task-content {
    flex: 1;
    min-width: 0;
}

.task-title {
    font-size: 15px;
    word-wrap: break-word;
}

.task.completed .task-title {
    text-decoration: line-through;
    color: var(--text-secondary);
}

.task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.task-assignee, .task-due {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.task-due.overdue {
    background: #fef2f2;
    color: var(--danger);
}

.no-tasks {
    padding: 16px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 8px;
}

.empty-sub {
    font-size: 14px;
    opacity: 0.7;
}

/* FAB */
#add-task-fab, .fab-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    border: none;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    transition: transform 0.2s ease;
    z-index: 50;
}

#add-task-fab:active, .fab-btn:active {
    transform: scale(0.95);
}

/* ═══════════════════════════════════════════
   MONTHLY CALENDAR VIEW (Asana / ClickUp style)
   ═══════════════════════════════════════════ */

#calendar-header {
    background: var(--bg-primary);
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.calendar-top-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.calendar-brand {
    font-size: 20px;
    font-weight: 700;
}

.calendar-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.calendar-controls h2 {
    font-size: 16px;
    font-weight: 600;
    min-width: 180px;
    text-align: center;
}

.cal-nav-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-primary);
    transition: background 0.15s;
}

.cal-nav-btn:hover {
    background: var(--border);
}

.cal-today-btn {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 6px 16px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    margin-left: auto;
}

.cal-today-btn:hover {
    opacity: 0.9;
}

.calendar-filters {
    display: flex;
    gap: 12px;
    align-items: center;
}

.calendar-filters select {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    background: var(--bg-primary);
}

.cal-toggle {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

/* Calendar Grid — Monthly */
#calendar-grid {
    padding: 0;
}

.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--bg-primary);
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 5;
}

.cal-weekday {
    padding: 10px 6px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-left: 1px solid var(--border);
}

/* Day Cell */
.cal-day {
    min-height: 110px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 4px;
    background: var(--bg-primary);
    position: relative;
    transition: background 0.15s;
}

.cal-day-empty {
    background: var(--bg-secondary);
    min-height: 110px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.cal-day-today {
    background: rgba(99, 102, 241, 0.04);
}

.cal-day-today .cal-day-num {
    background: var(--accent);
    color: white;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cal-day-num {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 2px 4px;
    margin-bottom: 2px;
    display: inline-block;
}

/* Drag-over state */
.cal-day.drag-over {
    background: rgba(99, 102, 241, 0.10);
    outline: 2px dashed var(--accent);
    outline-offset: -2px;
}

/* Task Chip (inside day cell) */
.cal-chip {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 6px;
    margin-bottom: 3px;
    border-radius: 4px;
    font-size: 11px;
    line-height: 1.3;
    cursor: pointer;
    transition: box-shadow 0.15s, opacity 0.15s;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    border-left: 3px solid transparent;
    background: #f0f0f0;
    user-select: none;
}

.cal-chip:hover {
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    z-index: 2;
    position: relative;
}

.cal-chip.dragging {
    opacity: 0.4;
}

/* Status-based chip colors */
.cal-chip.chip-not-started {
    background: #fef3c7;
    border-left-color: var(--warning);
    color: #92400e;
}

.cal-chip.chip-in-progress {
    background: #e0e7ff;
    border-left-color: var(--accent);
    color: #3730a3;
}

.cal-chip.chip-completed {
    background: #dcfce7;
    border-left-color: var(--success);
    color: #166534;
    opacity: 0.7;
}

.cal-chip.chip-overdue {
    background: #fee2e2;
    border-left-color: var(--danger);
    color: #991b1b;
}

.chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.chip-title {
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    font-weight: 500;
}

.chip-agent {
    font-size: 10px;
    opacity: 0.7;
    flex-shrink: 0;
}

.cal-chip-overflow {
    font-size: 11px;
    color: var(--accent);
    padding: 2px 6px;
    cursor: pointer;
    font-weight: 500;
}

.cal-chip-overflow:hover {
    text-decoration: underline;
}

/* Calendar empty */
.cal-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 15px;
}

/* ═══════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 100;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    max-width: 400px;
}

.modal-content h3 {
    margin-bottom: 16px;
}

.modal-content input,
.modal-content select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 16px;
}

.modal-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    margin-top: 4px;
    display: block;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.modal-actions button {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    background: var(--bg-secondary);
}

.modal-actions button.primary {
    background: var(--accent);
    color: white;
}

/* Other WS toggle in Add Task */
.other-ws-toggle {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 13px;
    cursor: pointer;
    padding: 4px 0;
}

.other-ws-toggle:hover {
    text-decoration: underline;
}

/* Error state */
.error-message {
    color: var(--danger);
    text-align: center;
    padding: 40px 20px;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 600px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .cal-day {
        min-height: 80px;
    }

    .cal-chip {
        font-size: 10px;
        padding: 2px 4px;
    }

    .calendar-controls h2 {
        min-width: 140px;
        font-size: 14px;
    }

    .chip-agent {
        display: none;
    }
}

/* ═══════════════════════════════════════════
   HEALTHCHECK DASHBOARD
   ═══════════════════════════════════════════ */

.hc-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* Header */
.hc-header {
    background: var(--bg-primary);
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.hc-top-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hc-brand {
    font-size: 20px;
    font-weight: 700;
}

.hc-run-btn {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s, background 0.15s;
}

.hc-run-btn:hover {
    opacity: 0.9;
}

.hc-run-btn:disabled {
    cursor: not-allowed;
}

.hc-run-btn-active {
    background: #6b7280;
    animation: hcPulse 1.5s ease-in-out infinite;
}

@keyframes hcPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Empty state */
.hc-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.hc-empty p {
    font-size: 16px;
    margin-bottom: 8px;
}

.hc-empty-sub {
    font-size: 14px;
    opacity: 0.7;
}

/* Summary Banner */
.hc-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    margin: 16px;
    background: var(--bg-primary);
    border-radius: 14px;
    box-shadow: var(--shadow);
    border-left: 6px solid #22c55e;
}

.hc-grade {
    font-size: 40px;
    font-weight: 800;
    color: white;
    width: 72px;
    height: 72px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hc-summary-info {
    flex: 1;
}

.hc-summary-main {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.hc-summary-sub {
    font-size: 14px;
    color: var(--text-secondary);
}

.hc-fail-count {
    color: var(--danger);
    font-weight: 600;
}

.hc-warn-count {
    color: var(--warning);
    font-weight: 600;
}

/* Category Cards Grid */
.hc-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    padding: 0 16px 16px;
}

.hc-card {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 14px 12px;
    text-align: center;
    box-shadow: var(--shadow);
    border-top: 4px solid #22c55e;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.hc-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.hc-card:active {
    transform: scale(0.98);
}

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

.hc-card-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hc-card-stat {
    font-size: 12px;
    font-weight: 700;
}

/* Failures & Warnings Sections */
.hc-section {
    margin: 0 16px 16px;
    border-radius: 12px;
    padding: 16px;
    background: var(--bg-primary);
    box-shadow: var(--shadow);
}

.hc-section-fail {
    border-left: 4px solid var(--danger);
}

.hc-section-warn {
    border-left: 4px solid var(--warning);
}

.hc-section-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
}

.hc-item {
    padding: 8px 12px;
    margin-bottom: 6px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}

.hc-item:last-child {
    margin-bottom: 0;
}

.hc-item-fail {
    background: #fef2f2;
    color: #991b1b;
}

.hc-item-warn {
    background: #fffbeb;
    color: #92400e;
}

.hc-item-cat {
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Collapsible Category Details */
.hc-details-section {
    padding: 0 16px 16px;
}

.hc-details-heading {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.hc-cat-group {
    background: var(--bg-primary);
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hc-cat-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
    gap: 10px;
    transition: background 0.15s;
}

.hc-cat-header:hover {
    background: var(--bg-secondary);
}

.hc-cat-toggle {
    font-size: 11px;
    color: var(--text-secondary);
    width: 16px;
    flex-shrink: 0;
}

.hc-cat-label {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
}

.hc-cat-badge {
    font-size: 11px;
    color: white;
    padding: 2px 10px;
    border-radius: 10px;
    font-weight: 600;
}

.hc-cat-body {
    border-top: 1px solid var(--border);
    padding: 8px 16px;
}

.hc-check-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

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

.hc-check-status {
    flex-shrink: 0;
    font-size: 14px;
    width: 20px;
    text-align: center;
}

.hc-check-detail {
    flex: 1;
    word-break: break-word;
    color: var(--text-primary);
}

/* Proof Section */
.hc-proof {
    margin: 0 16px 24px;
    background: #1a1a2e;
    border-radius: 12px;
    padding: 20px;
    color: #e0e0e0;
}

.hc-proof-title {
    font-size: 14px;
    font-weight: 600;
    color: #a5b4fc;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hc-proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.hc-proof-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hc-proof-wide {
    grid-column: 1 / -1;
}

.hc-proof-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #818cf8;
    font-weight: 600;
}

.hc-proof-value {
    font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', monospace;
    font-size: 13px;
    color: #e0e0e0;
    word-break: break-all;
}

.hc-proof-hash {
    font-size: 11px;
    opacity: 0.8;
}

.hc-proof-pids {
    font-size: 12px;
    line-height: 1.6;
}

/* Healthcheck responsive */
@media (max-width: 600px) {
    .hc-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .hc-card {
        padding: 10px 8px;
    }

    .hc-card-icon {
        font-size: 20px;
    }

    .hc-card-name {
        font-size: 10px;
    }

    .hc-summary {
        margin: 12px;
        padding: 16px;
        gap: 14px;
    }

    .hc-grade {
        width: 56px;
        height: 56px;
        font-size: 32px;
        border-radius: 12px;
    }

    .hc-summary-main {
        font-size: 16px;
    }

    .hc-proof-grid {
        grid-template-columns: 1fr;
    }
}
