:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: rgba(79, 70, 229, 0.08);
    --gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --sidebar-bg: #0f172a;
    --sidebar-hover: rgba(255,255,255,0.07);
    --sidebar-active: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --text: #0f172a;
    --text-muted: #64748b;
    --text-dim: #94a3b8;
    --border: #e2e8f0;
    --success: #16a34a;
    --warning: #d97706;
    --danger: #dc2626;
    --info: #2563eb;
    --radius: 10px;
    --radius-lg: 14px;
    --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.12), 0 4px 10px rgba(15, 23, 42, 0.06);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--gray-50);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

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

/* ─── LAYOUT ─────────────────────────────────────────────── */

.app-layout {
    display: flex;
    min-height: 100vh;
}

/* ─── SIDEBAR (retrátil, estilo ChatGPT) ─────────────────── */

body { --sidebar-w: 240px; }
body.sidebar-collapsed { --sidebar-w: 78px; }

.sidebar {
    width: var(--sidebar-w);
    background: linear-gradient(180deg, #111c33 0%, #0f172a 100%);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    padding: 0;
    border-right: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    transition: width 0.25s ease, transform 0.28s ease;
}

.sidebar-logo-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 16px 14px 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    text-decoration: none !important;
}

.sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: rgba(255,255,255,0.55);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, transform 0.25s ease;
}

.sidebar-toggle:hover { background: rgba(255,255,255,0.1); color: #fff; }
.sidebar-toggle svg { width: 18px; height: 18px; }
body.sidebar-collapsed .sidebar-toggle { transform: rotate(180deg); }

/* Hamburger (só mobile) e overlay do drawer */
.sidebar-hamburger {
    display: none;
    position: fixed;
    top: 10px;
    left: 12px;
    z-index: 130;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    background: #111c33;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.sidebar-hamburger svg { width: 20px; height: 20px; }

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(15,23,42,0.55);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.sidebar-overlay.show { display: block; opacity: 1; }

.sidebar-logo img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 3px;
}

.sidebar-brand {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
    white-space: nowrap;
    max-width: 120px;
    opacity: 1;
    transition: max-width 0.25s ease, opacity 0.2s ease;
    overflow: hidden;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 12px;
    overflow-y: auto;
}

.sidebar-section-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.4);
    margin: 14px 10px 6px;
}

.sidebar-section-label:first-child {
    margin-top: 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: rgba(255,255,255,0.72);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s;
    position: relative;
    text-decoration: none;
}

.sidebar-nav a:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    text-decoration: none;
}

.sidebar-nav a.active {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.45);
    font-weight: 600;
}

.sidebar-nav a svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-nav a > span:not(.notification-badge) {
    white-space: nowrap;
    max-width: 160px;
    opacity: 1;
    overflow: hidden;
    transition: max-width 0.25s ease, opacity 0.2s ease;
}

/* Estado colapsado: rail de ícones (labels desvanecem) */
body.sidebar-collapsed .sidebar-brand,
body.sidebar-collapsed .sidebar-nav a > span:not(.notification-badge) {
    max-width: 0;
    opacity: 0;
}

body.sidebar-collapsed .sidebar-logo-row {
    flex-direction: column;
    padding: 16px 8px 12px;
}

body.sidebar-collapsed .sidebar-logo { padding: 0; }

body.sidebar-collapsed .sidebar-nav a {
    justify-content: center;
    padding: 10px 0;
}

body.sidebar-collapsed .sidebar-nav a .notification-badge {
    position: absolute;
    top: 4px;
    right: 10px;
    margin: 0;
}

body.sidebar-collapsed .sidebar-section-label {
    opacity: 0;
    margin: 8px 0 0;
}

body.sidebar-collapsed .sidebar-user-info {
    max-width: 0;
    opacity: 0;
}

body.sidebar-collapsed .sidebar-logout { display: none; }

body.sidebar-collapsed .sidebar-user { justify-content: center; }

.sidebar-section-label {
    transition: opacity 0.2s ease;
}

.sidebar-user-info {
    transition: max-width 0.25s ease, opacity 0.2s ease;
}

.notification-badge {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 9px;
}

/* ─── SIDEBAR FOOTER (perfil) ────────────────────────────── */

.sidebar-footer {
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
}

.sidebar-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.sidebar-user-name {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 10px;
    color: rgba(255,255,255,0.55);
}

.sidebar-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    color: rgba(255,255,255,0.6);
    flex-shrink: 0;
    text-decoration: none;
}

.sidebar-logout svg {
    width: 18px;
    height: 18px;
}

.sidebar-logout:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    text-decoration: none;
}

/* ─── MAIN CONTENT ───────────────────────────────────────── */

.main-content {
    flex: 1;
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    background: var(--gray-50);
    transition: margin-left 0.25s ease;
}

/* ─── TOP HEADER ─────────────────────────────────────────── */

.top-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 0 28px;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.top-header-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.top-header-search {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.top-header-search input {
    width: 100%;
    padding: 6px 12px 6px 32px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 13px;
    background: var(--gray-50);
    color: var(--text);
}

.top-header-search input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
}

.top-header-search svg {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: var(--text-dim);
}

.top-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.top-header-actions .btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-header-actions .btn-icon:hover {
    background: var(--gray-50);
    color: var(--text);
}

/* ─── PAGE CONTENT ───────────────────────────────────────── */

.page-content {
    padding: 24px;
}

/* ─── WELCOME BANNER ─────────────────────────────────────── */

.welcome-banner {
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
    border: 1px solid #e0e7ff;
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.welcome-banner h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.welcome-banner p {
    font-size: 14px;
    color: var(--text-muted);
}

.welcome-banner .btn-link {
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ─── CARDS GRID ─────────────────────────────────────────── */

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

.sf-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s, transform 0.2s;
}

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

.sf-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.sf-card-header-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sf-card-header-icon.blue { background: #e8f4f8; color: var(--primary); }
.sf-card-header-icon.orange { background: #fff3e0; color: var(--warning); }
.sf-card-header-icon.purple { background: #f3e5f5; color: #7b1fa2; }
.sf-card-header-icon.green { background: #e8f5e9; color: var(--success); }

.sf-card-header-title {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.sf-card-header-actions {
    display: flex;
    gap: 8px;
}

.sf-card-body {
    padding: 32px 16px;
    text-align: center;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sf-card-illustration {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 48px;
}

.sf-card-illustration.blue { background: #e3f2fd; }
.sf-card-illustration.orange { background: #fff3e0; }
.sf-card-illustration.purple { background: #f3e5f5; }
.sf-card-illustration.green { background: #e8f5e9; }

.sf-card-description {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 260px;
}

.sf-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    font-size: 12px;
}

.sf-card-footer a {
    color: var(--primary);
    font-weight: 600;
}

/* ─── STATS ROW ──────────────────────────────────────────── */

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

.stat-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s, transform 0.2s;
}

.stat-box:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.stat-box-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-box-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-box-trend {
    font-size: 12px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-box-trend.up { color: var(--success); }
.stat-box-trend.down { color: var(--danger); }

/* ─── SECTION HEADER ─────────────────────────────────────── */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

/* ─── BUTTONS ────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}

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

.btn-primary {
    background: var(--gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}
.btn-primary:hover {
    background: var(--gradient);
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--text);
    border-color: var(--border);
}
.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary-light);
}

.btn-sm {
    padding: 4px 12px;
    font-size: 12px;
}

.btn-xs {
    padding: 2px 8px;
    font-size: 11px;
}

.btn-icon {
    padding: 6px;
    border-radius: var(--radius);
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.btn-icon:hover {
    background: var(--gray-50);
    color: var(--text);
}

/* ─── TABLES ─────────────────────────────────────────────── */

.table-container {
    overflow-x: auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 13px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

th {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    background: var(--gray-50);
}

tr:hover td {
    background: var(--gray-50);
}

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

/* ─── FORMS ──────────────────────────────────────────────── */

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 9px 13px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 13px;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

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

.form-select {
    cursor: pointer;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ─── MODAL ──────────────────────────────────────────────── */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--white);
    border-radius: 16px;
    padding: 28px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
    animation: modalIn 0.2s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

/* ─── BADGES ─────────────────────────────────────────────── */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-success { background: rgba(46, 132, 74, 0.1); color: var(--success); }
.badge-warning { background: rgba(221, 122, 1, 0.1); color: var(--warning); }
.badge-info { background: rgba(1, 118, 211, 0.1); color: var(--info); }
.badge-danger { background: rgba(194, 57, 52, 0.1); color: var(--danger); }
.badge-muted { background: var(--gray-50); color: var(--text-muted); }

/* ─── TABS ────────────────────────────────────────────────── */

.tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.tab-btn {
    padding: 10px 20px;
    background: transparent;
    border: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.15s;
}

.tab-btn:hover {
    color: var(--text);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ─── TASK ITEM ───────────────────────────────────────────── */

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

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

.task-check {
    flex-shrink: 0;
    padding-top: 2px;
}

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

.task-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.task-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

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

.task-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

/* ─── EVIDENCE GRID ──────────────────────────────────────── */

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

.evidence-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.evidence-preview {
    width: 100%;
    height: 120px;
    background: var(--gray-50);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.evidence-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.evidence-preview svg {
    width: 32px;
    height: 32px;
    color: var(--text-dim);
}

.evidence-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.evidence-meta {
    font-size: 11px;
    color: var(--text-dim);
}

/* ─── ACTIVITY FEED ──────────────────────────────────────── */

.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.activity-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

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

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    margin-top: 6px;
    flex-shrink: 0;
}

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

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

.activity-time {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 2px;
}

/* ─── NOTIFICATIONS ───────────────────────────────────────── */

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

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

.notification-item.unread {
    background: var(--primary-light);
}

.notification-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon.task_overdue { background: rgba(194, 57, 52, 0.1); color: var(--danger); }
.notification-icon.task_due_soon { background: rgba(221, 122, 1, 0.1); color: var(--warning); }
.notification-icon.task_assigned { background: rgba(1, 118, 211, 0.1); color: var(--info); }
.notification-icon.task_completed { background: rgba(46, 132, 74, 0.1); color: var(--success); }

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

.notification-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.notification-message {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.notification-time {
    font-size: 11px;
    color: var(--text-dim);
}

.notification-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ─── PROGRESS BAR ───────────────────────────────────────── */

.progress-bar {
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

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

.progress-label {
    font-size: 11px;
    color: var(--text-dim);
    text-align: right;
}

/* ─── EMPTY STATE ─────────────────────────────────────────── */

.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.empty-state svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 13px;
}

/* ─── LOGIN PAGE ───────────────────────────────────────────── */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at top left, rgba(124, 58, 237, 0.35), transparent 50%),
                radial-gradient(ellipse at bottom right, rgba(79, 70, 229, 0.35), transparent 50%),
                linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 20px;
}

.login-box {
    background: var(--white);
    padding: 44px 40px;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.35);
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(255,255,255,0.6);
}

.login-logo {
    text-align: center;
    margin-bottom: 24px;
}

.login-logo img {
    height: 64px;
    border-radius: 12px;
}

.login-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.login-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 28px;
}

.login-error {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 16px;
    text-align: center;
}

.login-company {
    text-align: center;
    margin-bottom: 4px;
}

.login-switch {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
}

.login-switch a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.login-switch a:hover {
    text-decoration: underline;
}

/* ─── USER CARD (team grid) ───────────────────────────────── */

.user-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.user-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow);
    transition: box-shadow 0.15s;
    display: block;
    color: inherit;
    text-decoration: none;
}

.user-card:hover {
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

.user-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.user-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.user-card-info {
    flex: 1;
    min-width: 0;
}

.user-card-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.user-card-role {
    font-size: 11px;
    color: var(--text-dim);
}

.user-card-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.user-card-stat {
    text-align: center;
}

.user-card-stat-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.user-card-stat-label {
    font-size: 9px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ─── MEMBER HEADER ───────────────────────────────────────── */

.member-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.member-avatar-lg {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
}

.member-info h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}

.member-role {
    font-size: 12px;
    color: var(--text-muted);
}


.lead-hero {
    background: linear-gradient(135deg, #0f172a 0%, #312e81 65%, #4f46e5 100%);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    color: #fff;
}

.lead-hero-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    flex-shrink: 0;
}

.lead-hero-info { flex: 1; min-width: 220px; }

.lead-hero-name {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #fff;
}

.lead-hero-sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
}

.lead-hero-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.lead-hero-tags .badge {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-weight: 600;
}

.lead-score-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.score-circle {
    --score: 0;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: conic-gradient(#a78bfa calc(var(--score) * 1%), rgba(255, 255, 255, 0.15) 0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.score-circle::before {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: #1e1b4b;
}

.score-circle span {
    position: relative;
    z-index: 1;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.score-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ─── TWO-COLUMN DETAIL LAYOUT ──────────────────────────── */

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    align-items: start;
}

.detail-main, .detail-side { min-width: 0; }

.detail-main .sf-card-body,
.detail-side .sf-card-body {
    text-align: left;
    display: block;
    min-height: 0;
    padding: 20px;
}

.detail-card-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }

.side-sticky { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 16px; }

.side-block {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 18px;
}

.side-block-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.side-block-title svg { width: 16px; height: 16px; color: var(--primary); }

/* ─── KANBAN ────────────────────────────────────────────── */

.kanban-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.kanban-board {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    overflow-x: auto;
    padding-bottom: 16px;
}

.kanban-column {
    flex: 0 0 280px;
    background: var(--gray-100);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 180px);
}

.kanban-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--white);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.kanban-column-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.kanban-column-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.kanban-column-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--gray-100);
    border-radius: 10px;
    padding: 2px 9px;
}

.kanban-cards {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    flex: 1;
}

.kanban-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    box-shadow: var(--shadow);
    cursor: grab;
    transition: box-shadow 0.15s, transform 0.15s, opacity 0.15s;
}

.kanban-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }

.kanban-card.dragging { opacity: 0.5; }

.kanban-card.drag-over { outline: 2px dashed var(--primary); outline-offset: 2px; }

.kanban-card-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
}

.kanban-card-name:hover { color: var(--primary); text-decoration: none; }

.kanban-card-company {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.kanban-card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.kanban-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.kanban-card-score {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}

.kanban-card-estado {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 8px;
    color: #fff;
}

.kanban-empty {
    font-size: 12px;
    color: var(--text-dim);
    text-align: center;
    padding: 18px 8px;
    border: 1px dashed var(--border);
    border-radius: 10px;
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */

@media (max-width: 1024px) {
    .detail-layout { grid-template-columns: 1fr; }
    .side-sticky { position: static; }
}

@media (max-width: 768px) {
    /* Mobile: drawer off-canvas com hamburger + overlay (ignora estado colapsado) */
    body { --sidebar-w: 0px; }
    body.sidebar-collapsed { --sidebar-w: 0px; }
    .sidebar {
        width: 262px;
        transform: translateX(-100%);
        box-shadow: none;
    }
    .sidebar.open {
        transform: translateX(0);
        box-shadow: 0 10px 40px rgba(0,0,0,0.45);
    }
    .sidebar-hamburger { display: flex; }
    .sidebar-toggle { display: none; }
    .sidebar-logo-row { flex-direction: row; padding: 16px 14px 14px 16px; }
    .sidebar-brand,
    .sidebar-nav a > span:not(.notification-badge),
    .sidebar-user-info { max-width: 160px; opacity: 1; }
    .sidebar-logo-row,
    .sidebar-nav a { justify-content: flex-start; }
    .sidebar-nav a { padding: 10px 12px; }
    .sidebar-nav a .notification-badge { position: static; margin-left: auto; }
    .sidebar-section-label { opacity: 1; margin: 14px 10px 6px; }
    .sidebar-user { justify-content: flex-start; }
    .sidebar-logout { display: flex; }
    .sidebar-footer { display: block; }
    .main-content { margin-left: 0; }
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Agente (C2): entrada na sidebar e timeline na ficha do lead ───────────── */
.sidebar-agent-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sidebar-agent-icon svg { width: 20px; height: 20px; }
.sidebar-agent:hover .sidebar-agent-icon { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(79, 70, 229, 0.45); }
.sidebar-agent.active .sidebar-agent-icon { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55), 0 4px 14px rgba(79, 70, 229, 0.45); }
body.sidebar-collapsed .sidebar-logo-row { justify-content: center; }
body.sidebar-collapsed .sidebar-agent { padding: 0; justify-content: center; }

.agent-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #f59e0b;
    color: #111c33;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.agent-timeline { list-style: none; margin: 0; padding: 0; }
.agent-timeline li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border, #e2e8f0); font-size: 13px; }
.agent-timeline li:last-child { border-bottom: none; }
.agent-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.agent-dot.completed { background: #10b981; }
.agent-dot.escalated { background: #f59e0b; }
.agent-dot.blocked { background: #64748b; }
.agent-dot.failed { background: #ef4444; }
.agent-dot.executing, .agent-dot.planned { background: #4f46e5; }
.agent-dot.cancelled { background: #cbd5e1; }

/* ── Chat com o Agente (7b): página limpa, só conversa ─────────────────────── */
.chat-page {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 0px);
    max-width: 820px;
    margin: 0 auto;
    position: relative;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border, #e2e8f0);
    background: #fff;
}

.chat-header-left { display: flex; align-items: center; gap: 10px; }
.chat-header-title { font-weight: 700; font-size: 15px; }
.chat-header-actions { display: flex; gap: 6px; }

.chat-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-dim, #64748b);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.chat-icon-btn:hover { background: #f1f5f9; color: #0f172a; }
.chat-icon-btn svg { width: 17px; height: 17px; }

.chat-mensagens {
    flex: 1;
    overflow-y: auto;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-bubble {
    max-width: 78%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.chat-bubble.mine {
    align-self: flex-end;
    background: var(--gradient);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.chat-bubble.theirs {
    align-self: flex-start;
    background: #f1f5f9;
    color: #0f172a;
    border-bottom-left-radius: 4px;
}
.chat-bubble.sad { background: #fef3c7; color: #92400e; }

.chat-input-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 14px 18px 18px;
    border-top: 1px solid var(--border, #e2e8f0);
    background: #fff;
}

.chat-input {
    flex: 1;
    resize: none;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 12px;
    padding: 11px 14px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.5;
    max-height: 140px;
    outline: none;
    transition: border-color 0.15s;
}
.chat-input:focus { border-color: #4f46e5; }

.chat-send {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 12px;
    background: var(--gradient);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.15s, transform 0.15s;
}
.chat-send:hover { transform: translateY(-1px); }
.chat-send:disabled { opacity: 0.5; cursor: default; transform: none; }
.chat-send svg { width: 17px; height: 17px; }

/* Layout conversa + coluna de histórico à direita */
.chat-layout { display: flex; height: calc(100vh); gap: 0; }
.chat-layout .chat-page { flex: 1; min-width: 0; height: 100vh; }

/* Seta do cabeçalho: mostra a direção da ação (coluna à direita). */
.chat-icon-btn .seta-fechar { display: none; }
.chat-icon-btn.lateral-aberta .seta-fechar { display: block; }
.chat-icon-btn.lateral-aberta .seta-abrir { display: none; }

.chat-lateral {
    position: relative;
    width: 0;
    flex-shrink: 0;
    overflow: hidden;
    border-left: 1px solid transparent;
    background: #fafbfc;
    transition: width 0.22s ease;
    display: flex;
    flex-direction: column;
}
.chat-lateral.aberta { width: 250px; border-left-color: var(--border, #e2e8f0); }

.chat-lateral-resizer {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 5px;
    cursor: col-resize;
    z-index: 5;
    background: transparent;
    transition: background 0.15s;
}
.chat-lateral-resizer:hover, .chat-lateral.arrastando .chat-lateral-resizer { background: rgba(79, 70, 229, 0.35); }
body.chat-redimensionar, body.chat-redimensionar * { user-select: none; cursor: col-resize !important; }
.chat-lateral .chat-lateral-resizer { display: none; }
@media (min-width: 769px) {
    .chat-lateral.aberta .chat-lateral-resizer { display: block; }
}

.chat-lateral-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 12px 10px 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--text-dim, #64748b);
    white-space: nowrap;
}

.chat-lateral-lista { overflow-y: auto; padding: 0 8px 12px; }
.chat-lateral-item {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 13px;
    color: #0f172a;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat-lateral-item:hover { background: #eef1f5; }
.chat-lateral-item.ativa { background: #eef2ff; color: #4f46e5; font-weight: 600; }
.chat-lateral-vazia { padding: 12px; font-size: 13px; color: var(--text-dim, #64748b); white-space: nowrap; }

/* "a pensar…" — pontos que pulsam, estilo assistente */
.chat-pensando { display: inline-flex; align-items: center; gap: 8px; color: var(--text-dim, #64748b); }
.chat-pontos { display: inline-flex; gap: 4px; }
.chat-pontos i {
    width: 5px; height: 5px; border-radius: 50%;
    background: #4f46e5; opacity: 0.35;
    animation: chat-pulso 1s ease-in-out infinite;
}
.chat-pontos i:nth-child(2) { animation-delay: 0.18s; }
.chat-pontos i:nth-child(3) { animation-delay: 0.36s; }
@keyframes chat-pulso { 0%, 100% { opacity: 0.25; transform: translateY(0); } 50% { opacity: 0.9; transform: translateY(-3px); } }

@media (max-width: 768px) {
    .chat-layout { flex-direction: column; }
    .chat-layout .chat-page { height: calc(100vh - 58px); padding-top: 58px; }
    .chat-lateral.aberta { position: fixed; top: 58px; right: 0; bottom: 0; width: 240px; z-index: 60; box-shadow: -12px 0 32px rgba(15,23,42,0.10); }
}

/* Cartão de proposta C3 (ação pedida na conversa) e avisos de sistema */
.chat-proposta {
    align-self: flex-start;
    max-width: 78%;
    background: #fff;
    border: 1px solid var(--border, #e2e8f0);
    border-left: 3px solid #4f46e5;
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}
.chat-proposta-head { font-size: 12px; font-weight: 700; color: #4f46e5; letter-spacing: 0.2px; }
.chat-proposta-desc { font-size: 13.5px; color: #0f172a; margin-top: 5px; line-height: 1.45; }
.chat-proposta-nota { font-size: 12.5px; color: var(--text-dim, #64748b); margin-top: 7px; }
.chat-proposta-rodape { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.chat-proposta-ok, .chat-proposta-no {
    border-radius: 8px; padding: 6px 14px; font-size: 13px; font-weight: 600;
    cursor: pointer; border: 1px solid transparent; transition: transform 0.12s, opacity 0.12s;
}
.chat-proposta-ok { background: var(--gradient); color: #fff; }
.chat-proposta-ok:hover { transform: translateY(-1px); }
.chat-proposta-no { background: transparent; color: var(--text-dim, #64748b); border-color: var(--border, #e2e8f0); }
.chat-proposta-no:hover { color: #0f172a; }
.chat-proposta-estado { font-size: 12px; font-weight: 700; color: var(--text-dim, #64748b); }
.chat-proposta-estado.ok { color: #10b981; }
.chat-proposta-estado.no { color: #ef4444; }
.chat-sistema {
    align-self: center;
    font-size: 12px;
    color: var(--text-dim, #64748b);
    background: #f8fafc;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 999px;
    padding: 4px 12px;
}

/* Pílula de atividade 24h no cabeçalho do Agente (C4: motor visível) */
.chat-hoje {
    margin-left: 10px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-dim, #64748b);
    background: #f1f5f9;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 999px;
    padding: 3px 10px;
    white-space: nowrap;
}
.chat-hoje.on { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.chat-hoje.off { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
@media (max-width: 640px) { .chat-hoje { display: none; } }
