/* ===========================================================================
   Sentinel — Design System
   Inspired by Front of House (Dispatch) + LevelHeads
   =========================================================================== */

:root {
    /* Primary — Espresso Brown */
    --primary: #2c1e10;
    --primary-light: #f5f0eb;
    --primary-dark: #1a1109;

    /* Accent — Golden Amber */
    --accent: #F5B942;
    --accent-muted: rgba(245, 185, 66, 0.12);

    /* Surfaces */
    --bg: #faf8f5;
    --card-bg: #ffffff;
    --sidebar-bg: #2c1e10;
    --sidebar-text: rgba(255,255,255,0.88);
    --sidebar-text-muted: rgba(255,255,255,0.60);
    --sidebar-hover: rgba(255,255,255,0.08);

    /* Semantic */
    --positive: #059669;
    --negative: #dc2626;
    --warning: #f59e0b;
    --neutral: #71717a;

    /* Text */
    --text: #1a1a1a;
    --text-secondary: #5c5145;
    --text-muted: #8a7e72;

    /* Border */
    --border: #e3ddd5;
    --border-light: #f0ece6;
    --border-strong: #3d2b1a;

    /* Shadow — Offset (no blur) */
    --shadow-card: 4px 4px 0 rgba(44, 30, 16, 0.06);
    --shadow-hover: 6px 6px 0 rgba(44, 30, 16, 0.10);

    /* Radius */
    --radius: 6px;
    --radius-sm: 4px;

    /* Motion */
    --transition: 0.2s ease-in-out;
}

/* ===========================================================================
   Reset & Base
   =========================================================================== */

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

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

h1, h2, h3, .hero-value, .brand-name, .login-brand h1 {
    font-family: 'Montserrat', 'Inter', sans-serif;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===========================================================================
   Sidebar
   =========================================================================== */

.sidebar {
    width: 220px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow-y: auto;
    transition: transform 0.25s ease;
}

.sidebar-brand {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-brand .brand-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-brand .brand-name .brand-icon {
    width: 24px;
    height: 24px;
    background: var(--accent);
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 800;
    font-family: 'Montserrat', 'Inter', sans-serif;
}

.sidebar-brand .brand-sub {
    font-size: 0.7rem;
    color: var(--sidebar-text-muted);
    margin-top: 0.15rem;
    letter-spacing: 0.03em;
}

.sidebar-nav {
    flex: 1;
    padding: 0.5rem 0;
}

.sidebar-section-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.40);
    padding: 1rem 1rem 0.35rem;
    font-family: 'Montserrat', 'Inter', sans-serif;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.75rem;
    margin: 1px 8px;
    color: var(--sidebar-text);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
    border: none;
}

.sidebar-link:hover {
    color: rgba(255,255,255,0.95);
    background: var(--sidebar-hover);
    text-decoration: none;
}

.sidebar-link.active {
    color: var(--primary);
    background: var(--accent);
    font-weight: 600;
}

.sidebar-link .nav-icon {
    width: 18px;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
    flex-shrink: 0;
}

.sidebar-link.active .nav-icon {
    opacity: 1;
}

.sidebar-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 0.5rem 0;
}

/* ===========================================================================
   Mobile sidebar
   =========================================================================== */

.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 52px;
    background: var(--sidebar-bg);
    z-index: 99;
    align-items: center;
    padding: 0 1rem;
    gap: 0.75rem;
}

.hamburger {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

.mobile-header .brand-name {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
}

/* ===========================================================================
   Main content area
   =========================================================================== */

.main {
    margin-left: 220px;
    flex: 1;
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* ===========================================================================
   Page header
   =========================================================================== */

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

.page-header h1 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
}

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

/* ===========================================================================
   Cards
   =========================================================================== */

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-card);
}

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

.card-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-family: 'Montserrat', 'Inter', sans-serif;
}

/* ===========================================================================
   Scheduler bar
   =========================================================================== */

.scheduler-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-card);
    font-size: 0.825rem;
    flex-wrap: wrap;
}

.scheduler-bar .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.scheduler-bar .status-dot.active {
    background: var(--positive);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}
.scheduler-bar .status-dot.paused { background: var(--text-muted); }

.scheduler-bar .status-label { font-weight: 600; color: var(--text); }
.scheduler-bar .status-detail { color: var(--text-muted); flex: 1; }
.scheduler-bar .sched-errors { color: var(--negative); }

.scheduler-bar .cycle-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg);
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    border: 1px solid var(--border-light);
}

/* ===========================================================================
   Hero stats
   =========================================================================== */

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.hero-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-card);
    border-top: 3px solid var(--primary);
}

.hero-card.accent-positive { border-top-color: var(--positive); }
.hero-card.accent-warning { border-top-color: var(--warning); }
.hero-card.accent-gold { border-top-color: var(--accent); }

.hero-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
    font-family: 'Montserrat', 'Inter', sans-serif;
}

.hero-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.hero-delta {
    font-size: 0.8rem;
    color: var(--positive);
    margin-top: 0.25rem;
}
.hero-delta.zero { color: var(--text-muted); }

.sentiment-row {
    display: flex;
    gap: 1.25rem;
    margin-top: 0.5rem;
}

.sentiment-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 1rem;
    font-weight: 600;
}

.sentiment-item .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sentiment-item .dot.pos { background: var(--positive); }
.sentiment-item .dot.neu { background: var(--text-muted); }
.sentiment-item .dot.neg { background: var(--negative); }

.status-lines {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.35rem;
    line-height: 1.6;
}

/* ===========================================================================
   Charts
   =========================================================================== */

.chart-grid {
    display: grid;
    grid-template-columns: 65fr 35fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.chart-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-card);
}

.chart-card .card-title { margin-bottom: 1rem; }

.chart-wrap { position: relative; height: 280px; }

.doughnut-wrap {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-legend { margin-top: 0.75rem; }

.chart-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.2rem 0;
    font-size: 0.8rem;
}

.chart-legend .legend-swatch {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    flex-shrink: 0;
}

.chart-legend .legend-count {
    margin-left: auto;
    font-weight: 600;
    color: var(--text);
}

.chart-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ===========================================================================
   Platform health table
   =========================================================================== */

.health-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.825rem;
}

.health-table th {
    text-align: left;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    padding: 0.5rem 0.75rem;
    border-bottom: 2px solid var(--border);
    font-family: 'Montserrat', 'Inter', sans-serif;
}

.health-table td {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.health-table tr:last-child td { border-bottom: none; }

.health-table .platform-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

.health-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

.health-dot.green { background: var(--positive); }
.health-dot.yellow { background: var(--warning); }
.health-dot.red { background: var(--negative); }
.health-dot.gray { background: #d1cdc5; }

.health-loading { padding: 1.5rem; color: var(--text-muted); text-align: center; }

/* ===========================================================================
   Mention cards
   =========================================================================== */

.mention-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 0.625rem;
    box-shadow: var(--shadow-card);
    border-left: 4px solid var(--neutral);
    transition: transform var(--transition), box-shadow var(--transition);
}

.mention-card:hover {
    transform: translateY(-2px) translateX(-2px);
    box-shadow: var(--shadow-hover);
}

.mention-card.archived {
    opacity: 0.6;
    border-left-color: var(--text-muted);
}

.mention-card.archived:hover { opacity: 0.85; }

.mention-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
}

.mention-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.mention-card-actions {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    flex-shrink: 0;
}

.mention-card .mention-title { margin-bottom: 0.25rem; }

.mention-card .mention-title a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
}

.mention-card .mention-title a:hover {
    color: var(--text-secondary);
    text-decoration: underline;
}

.mention-card .mention-snippet {
    font-size: 0.825rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.4rem;
}

/* Platform pill */
.platform-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #fff;
}

/* Expandable detail */
.mention-detail-toggle {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    transition: all var(--transition);
    font-family: inherit;
}

.mention-detail-toggle:hover {
    background: var(--bg);
    color: var(--text-secondary);
    border-color: var(--text-muted);
}

.mention-details {
    display: none;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.mention-details.expanded { display: block; }

.mention-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.35rem 1.5rem;
}

.detail-item { display: flex; gap: 0.35rem; }
.detail-label { color: var(--text-muted); font-weight: 500; }

.detail-value {
    color: var(--text-secondary);
    font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;
    font-size: 0.7rem;
}

/* ===========================================================================
   Badges
   =========================================================================== */

.badge {
    display: inline-block;
    padding: 0.12rem 0.45rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.badge-positive { background: #d1fae5; color: var(--positive); }
.badge-negative { background: #fee2e2; color: var(--negative); }
.badge-neutral { background: var(--border-light); color: var(--neutral); }

button.badge {
    cursor: pointer;
    border: none;
    font-family: inherit;
    line-height: inherit;
    transition: opacity var(--transition);
}

button.badge:hover { opacity: 0.75; }

.meta-pill {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: var(--accent-muted);
    color: var(--primary);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* ===========================================================================
   Filters
   =========================================================================== */

.filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.filters select, .filters input {
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.825rem;
    background: var(--card-bg);
    color: var(--text);
}

.filters input[type="text"] { min-width: 140px; }

.filters select:focus, .filters input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-muted);
}

/* ===========================================================================
   Buttons
   =========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 0.825rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    line-height: 1.4;
    font-family: inherit;
}

.btn:hover { text-decoration: none; }

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-gold {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
    font-weight: 700;
}
.btn-gold:hover {
    background: #e6a800;
    border-color: #e6a800;
}

.btn-sm { padding: 0.3rem 0.6rem; font-size: 0.75rem; }

.btn-outline {
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}
.btn-outline:hover {
    background: var(--bg);
    border-color: var(--text-muted);
    color: var(--text);
}

.btn-danger {
    background: transparent;
    border: 1px solid var(--negative);
    color: var(--negative);
}
.btn-danger:hover { background: #fee2e2; }

.btn-ghost {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.25rem 0.4rem;
}
.btn-ghost:hover { background: var(--bg); color: var(--text-secondary); }

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

.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    top: 50%;
    left: 50%;
    margin-top: -7px;
    margin-left: -7px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spin 0.6s linear infinite;
}

.btn-gold.loading::after {
    border-color: rgba(44, 30, 16, 0.3);
    border-top-color: var(--primary);
}

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

/* ===========================================================================
   Forms
   =========================================================================== */

.form-section { margin-bottom: 1.5rem; }

.form-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid var(--border);
    font-family: 'Montserrat', 'Inter', sans-serif;
}

.field { margin-bottom: 0.875rem; }

.field label {
    display: block;
    font-size: 0.825rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.field .field-hint {
    font-size: 0.725rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.field input[type="text"],
.field input[type="url"],
.field input[type="date"],
.field textarea,
.field select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    background: var(--card-bg);
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-muted);
}

.field textarea { min-height: 80px; resize: vertical; }

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* ===========================================================================
   Flash messages
   =========================================================================== */

.flash {
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.4s ease, max-height 0.4s ease, margin 0.4s ease, padding 0.4s ease;
    max-height: 100px;
    overflow: hidden;
}

.flash.fade-out {
    opacity: 0;
    max-height: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.flash-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.flash-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* ===========================================================================
   Collection log
   =========================================================================== */

.log-batch { margin-bottom: 1rem; }

.log-batch-header {
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.log-batch-time { color: var(--text-muted); font-weight: 400; }

.log-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.log-table th {
    text-align: left;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    padding: 0.4rem 0.6rem;
    border-bottom: 2px solid var(--border);
    font-family: 'Montserrat', 'Inter', sans-serif;
}

.log-table td {
    padding: 0.4rem 0.6rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.log-table tr:last-child td { border-bottom: none; }

.log-status {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
}

.log-status.success { background: #d1fae5; color: var(--positive); }
.log-status.partial { background: var(--accent-muted); color: #8B6914; }
.log-status.error { background: #fee2e2; color: var(--negative); }
.log-status.skipped { background: var(--border-light); color: var(--text-muted); }

/* ===========================================================================
   Collection results (dashboard inline)
   =========================================================================== */

#collect-results { font-size: 0.825rem; }

.collect-result-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0;
    font-size: 0.825rem;
}

/* ===========================================================================
   Empty state
   =========================================================================== */

.empty {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.empty p { font-size: 0.9rem; }

/* Mention card fade-out on archive */
.mention-card.archiving {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ===========================================================================
   Pagination
   =========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    align-items: center;
}

.pagination .page-info {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===========================================================================
   Utility
   =========================================================================== */

.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.825rem; }
.text-xs { font-size: 0.75rem; }
.text-mono { font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace; }
.font-semibold { font-weight: 600; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.gap-2 { gap: 0.5rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ===========================================================================
   Responsive
   =========================================================================== */

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }

    .sidebar-overlay.open { display: block; }
    .mobile-header { display: flex; }

    .main {
        margin-left: 0;
        padding-top: 52px;
    }

    .hero-stats { grid-template-columns: 1fr; }
    .chart-grid { grid-template-columns: 1fr; }

    .page-header { flex-direction: column; align-items: flex-start; }
    .page-header .actions { width: 100%; }

    .filters { flex-direction: column; align-items: stretch; }
    .filters select, .filters input { width: 100%; }

    .mention-card-header { flex-direction: column; }
    .mention-card-actions { align-self: flex-end; }

    .field-row { grid-template-columns: 1fr; }

    .health-table { font-size: 0.75rem; }
    .health-table th, .health-table td { padding: 0.4rem 0.5rem; }
}
