/* 🎨 CerebroComercial AI — Apple Premium Design System */

:root {
    --bg-primary: #f5f5f7;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.65);
    --card-border: rgba(0, 0, 0, 0.08);
    --border-color: rgba(0, 0, 0, 0.08);
    --text-main: #1d1d1f;
    --text-grey: #86868b;
    
    /* Apple Harmonies */
    --accent: #007aff;
    --accent-glow: rgba(0, 122, 255, 0.15);
    --accent-purple: #5856d6;
    --accent-green: #34c759;
    --accent-red: #ff3b30;
    
    --glass-blur: blur(20px);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
    --font-stack: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

[data-theme="dark"] {
    --bg-primary: #000000;
    --bg-secondary: #1c1c1e;
    --bg-card: rgba(28, 28, 30, 0.6);
    --card-border: rgba(255, 255, 255, 0.08);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-main: #f5f5f7;
    --text-grey: #86868b;
    
    --accent: #0a84ff;
    --accent-glow: rgba(10, 132, 255, 0.25);
    
    --glass-blur: blur(25px);
    --glass-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

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

html, body {
    width: 100%;
    min-height: 100vh;
    font-family: var(--font-stack);
    background-color: var(--bg-primary);
    color: var(--text-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* --- Scrollbar Customization --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-grey);
}

/* --- macOS Dialog Centered Alert (System Modal) --- */
.macos-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.macos-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.macos-modal-box {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    width: 420px;
    max-width: 90%;
    padding: 30px;
    text-align: center;
    box-shadow: var(--glass-shadow);
    transform: scale(0.92);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.macos-modal-overlay.active .macos-modal-box {
    transform: scale(1);
}
.macos-alert-icon {
    font-size: 2.8rem;
    margin-bottom: 16px;
    color: var(--accent);
    animation: alertPulse 2s infinite alternate;
}
.macos-alert-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}
.macos-alert-desc {
    font-size: 0.92rem;
    color: var(--text-grey);
    line-height: 1.5;
    margin-bottom: 24px;
}
.macos-alert-actions {
    display: flex;
    justify-content: center;
}
.macos-alert-btn {
    padding: 10px 24px;
    border-radius: 12px;
    border: none;
    background: var(--accent);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px var(--accent-glow);
    transition: all 0.2s;
}
.macos-alert-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

@keyframes alertPulse {
    from { transform: scale(1); opacity: 0.9; }
    to { transform: scale(1.05); opacity: 1; }
}

/* --- Apple Header --- */
.apple-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 64px;
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    display: flex;
    align-items: center;
    transition: background 0.4s;
}
.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-logo {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 6px;
}
.logo-bold {
    color: var(--text-main);
}
.logo-light {
    color: var(--text-grey);
    font-weight: 400;
}
.logo-subdomain {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--border-color);
    color: var(--text-grey);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 4px;
}
.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}
.header-nav a {
    text-decoration: none;
    color: var(--text-grey);
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s;
}
.header-nav a:hover {
    color: var(--text-main);
}
.header-nav a.nav-cta {
    background: var(--text-main);
    color: var(--bg-secondary);
    padding: 8px 16px;
    border-radius: 12px;
    transition: opacity 0.2s;
}
.header-nav a.nav-cta:hover {
    opacity: 0.9;
}
.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.15rem;
    padding: 6px;
    border-radius: 50%;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.theme-toggle:hover {
    background: var(--border-color);
}

/* --- Apple Hero Section --- */
.apple-hero {
    position: relative;
    padding: 160px 24px 80px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}
.hero-glow {
    position: absolute;
    top: 10%; left: 50%;
    transform: translate(-50%, -20%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(10, 132, 255, 0.12) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}
.hero-container {
    max-width: 800px;
    z-index: 2;
}
.hero-eyebrow {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 16px;
    display: inline-block;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 24px;
}
.hero-gradient {
    background: linear-gradient(135deg, var(--accent), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-lead {
    font-size: 1.15rem;
    color: var(--text-grey);
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 400;
}
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}
.btn-primary {
    background: var(--accent);
    color: white;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 18px var(--accent-glow);
    transition: all 0.2s;
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px var(--accent-glow);
}
.btn-secondary {
    background: var(--border-color);
    color: var(--text-main);
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s;
}
.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
}
[data-theme="dark"] .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* --- Apple Section System --- */
.apple-section {
    padding: 100px 24px;
    display: flex;
    justify-content: center;
}
.section-container {
    width: 100%;
    max-width: 1100px;
    text-align: center;
}
.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}
.section-lead {
    font-size: 1.05rem;
    color: var(--text-grey);
    max-width: 600px;
    margin: 0 auto 60px;
    line-height: 1.5;
}
.apple-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.grid-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 36px 28px;
    text-align: left;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.grid-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}
.card-icon {
    font-size: 2rem;
    margin-bottom: 24px;
}
.grid-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.grid-card p {
    font-size: 0.9rem;
    color: var(--text-grey);
    line-height: 1.6;
}

/* --- Apple Form Design --- */
.section-bg-alt {
    background-color: var(--bg-secondary);
}
.form-container {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
}
.form-header {
    text-align: center;
    margin-bottom: 40px;
}
.form-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
}
.form-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 8px 0;
}
.form-header p {
    font-size: 0.95rem;
    color: var(--text-grey);
    line-height: 1.5;
}
.apple-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-row {
    display: flex;
    gap: 16px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.form-group label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-grey);
    margin-left: 4px;
}
.form-input {
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-stack);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s;
}
.form-input:focus {
    border-color: var(--accent);
    background: var(--bg-secondary);
    box-shadow: 0 0 0 4px var(--accent-glow);
}
.btn-submit {
    margin-top: 10px;
    padding: 16px;
    border-radius: 16px;
    border: none;
    background: var(--text-main);
    color: var(--bg-secondary);
    font-family: var(--font-stack);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: all 0.2s;
}
.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* --- Apple Footer --- */
.apple-footer {
    padding: 60px 24px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.footer-container p {
    font-size: 0.8rem;
    color: var(--text-grey);
}
.footer-container a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}
.footer-container a:hover {
    text-decoration: underline;
}

/* --- macOS Lock Screen Authentication System --- */
.macos-lock-screen {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(40, 40, 45, 0.75) 0%, #000000 100%);
    backdrop-filter: blur(40px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}
.macos-lock-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: lockCardFloat 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.macos-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.macos-lock-user {
    font-size: 1.35rem;
    font-weight: 700;
    color: white;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}
.macos-password-wrapper {
    position: relative;
    width: 250px;
}
.macos-lock-input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 0.9rem;
    font-family: var(--font-stack);
    outline: none;
    text-align: center;
    transition: border 0.2s, background 0.2s;
}
.macos-lock-input:focus {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
}
.macos-lock-submit {
    position: absolute;
    right: 8px; top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s;
    outline: none;
}
.macos-lock-submit:hover {
    color: white;
}
.macos-lock-error {
    color: var(--accent-red);
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 12px;
    opacity: 0;
    transition: opacity 0.2s;
}
.macos-lock-error.active {
    opacity: 1;
}

@keyframes lockCardFloat {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* --- Dashboard Dashboard Layout --- */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}
.dashboard-sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;
    top: 0; left: 0;
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border-right: 1px solid var(--border-color);
    padding: 30px 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 99;
}
.sidebar-logo {
    padding: 0 12px 10px;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    border-bottom: 1px solid var(--border-color);
}
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    flex: 1;
}
.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: var(--text-main);
    font-family: var(--font-stack);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}
.sidebar-nav-item svg {
    width: 18px;
    height: 18px;
    color: var(--text-grey);
    transition: color 0.2s;
}
.sidebar-nav-item:hover {
    background: var(--border-color);
}
.sidebar-nav-item.active {
    background: var(--accent);
    color: white;
}
.sidebar-nav-item.active svg {
    color: white;
}
.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.dashboard-main {
    flex: 1;
    margin-left: 260px;
    padding: 40px;
}
.dashboard-section {
    display: none;
    animation: sectionFade 0.4s ease;
}
.dashboard-section.active {
    display: block;
}

@keyframes sectionFade {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.section-header h1 {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

/* --- Metrics Stat Card Grid --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}
.stat-card-glass {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--glass-shadow);
}
.stat-card-glass .stat-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-grey);
    margin-bottom: 6px;
    display: block;
}
.stat-card-glass .stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}
.stat-card-glass .stat-trend {
    font-size: 0.78rem;
    font-weight: 600;
}
.trend-up { color: var(--accent-green); }
.trend-down { color: var(--accent-red); }

/* --- CRM Kanban Board --- */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 20px;
}
.kanban-column {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    padding: 16px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
[data-theme="dark"] .kanban-column {
    background: rgba(255, 255, 255, 0.01);
}
.kanban-column-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-grey);
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
}
.kanban-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px;
    cursor: grab;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    transition: transform 0.2s, box-shadow 0.2s;
}
.kanban-card:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0,0,0,0.04);
}
.kanban-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.kanban-card p {
    font-size: 0.75rem;
    color: var(--text-grey);
}
.kanban-card .card-badge {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 10px;
}

/* --- Brain Chat Section (Cerebro) --- */
.chat-wrapper {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    height: 600px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.chat-bubble {
    max-width: 75%;
    padding: 14px 18px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.5;
}
.chat-bubble.user {
    align-self: flex-end;
    background: var(--accent);
    color: white;
    border-bottom-right-radius: 4px;
}
.chat-bubble.model {
    align-self: flex-start;
    background: var(--bg-primary);
    color: var(--text-main);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border-color);
}
.chat-input-bar {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    display: flex;
    gap: 12px;
}
.chat-input {
    flex: 1;
    padding: 12px 18px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-main);
    outline: none;
    font-family: var(--font-stack);
    font-size: 0.9rem;
}
.chat-input:focus {
    border-color: var(--accent);
}
.chat-btn {
    padding: 0 20px;
    border-radius: 14px;
    border: none;
    background: var(--accent);
    color: white;
    font-weight: 700;
    cursor: pointer;
}

/* --- Spreadsheet Leads Table --- */
.table-wrapper {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
}
.spreadsheet-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
}
.spreadsheet-table th {
    background: rgba(0, 0, 0, 0.02);
    padding: 14px 20px;
    font-weight: 700;
    color: var(--text-grey);
    border-bottom: 1px solid var(--border-color);
}
[data-theme="dark"] .spreadsheet-table th {
    background: rgba(255, 255, 255, 0.02);
}
.spreadsheet-table td {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
}
.spreadsheet-table tr:hover {
    background: rgba(0, 0, 0, 0.01);
}
[data-theme="dark"] .spreadsheet-table tr:hover {
    background: rgba(255, 255, 255, 0.01);
}
.editable-cell {
    outline: none;
    padding: 4px;
    border-radius: 6px;
    transition: background 0.15s;
}
.editable-cell:focus {
    background: var(--bg-secondary);
    box-shadow: 0 0 0 2px var(--accent-glow);
}
.badge-status {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 8px;
    display: inline-block;
}
.status-lead { background: rgba(0, 122, 255, 0.1); color: var(--accent); }
.status-replied { background: rgba(88, 86, 214, 0.1); color: var(--accent-purple); }
.status-booked { background: rgba(52, 199, 89, 0.1); color: var(--accent-green); }

/* --- Email Inbox / Outbox Layout --- */
.email-box-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    height: 550px;
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    overflow: hidden;
    box-shadow: var(--glass-shadow);
}
.email-list {
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.email-list-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: background 0.2s;
}
.email-list-item:hover {
    background: rgba(0, 0, 0, 0.02);
}
.email-list-item.active {
    background: var(--accent-glow);
}
.email-list-item h4 {
    font-size: 0.88rem;
    font-weight: 700;
}
.email-list-item span {
    font-size: 0.72rem;
    color: var(--text-grey);
}
.email-list-item p {
    font-size: 0.78rem;
    color: var(--text-grey);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.email-reader {
    padding: 30px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.email-reader-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.email-reader-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.email-reader-header div {
    font-size: 0.82rem;
    color: var(--text-grey);
}
.email-reader-body {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main);
    flex: 1;
}
