/* ════════════════════════════════════════════════════════════════════
   av-outlook.css — AlphaVault Outlook · v1.0
   Identical design language to av-teams.css
   Light Mode Default · Dark Mode · 100% Responsive
════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ─── RESET & BASE ────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

/* ════════════════════════════════════════════════════════════════════
   DESIGN TOKENS — LIGHT MODE
════════════════════════════════════════════════════════════════════ */
:root,
body.avo-theme-light {
    --avo-primary:        #6366f1;
    --avo-primary-soft:   #e0e7ff;
    --avo-primary-hover:  #4f46e5;
    --avo-secondary:      #06b6d4;
    --avo-accent:         #8b5cf6;
    --avo-success:        #10b981;
    --avo-warning:        #f59e0b;
    --avo-danger:         #ef4444;
    --avo-pink:           #ec4899;

    --avo-bg:             #f1f5f9;
    --avo-surface:        #ffffff;
    --avo-surface-2:      #f8fafc;
    --avo-sidebar-bg:     #ffffff;
    --avo-header-bg:      rgba(255,255,255,0.92);
    --avo-card-bg:        #ffffff;
    --avo-input-bg:       #f8fafc;
    --avo-overlay-bg:     rgba(15,23,42,0.45);

    --avo-text:           #0f172a;
    --avo-text-muted:     #64748b;
    --avo-text-light:     #94a3b8;
    --avo-text-inverse:   #ffffff;

    --avo-border:         #e2e8f0;
    --avo-border-soft:    rgba(226,232,240,0.6);
    --avo-border-focus:   #6366f1;

    --avo-shadow-xs:      0 1px 2px rgba(0,0,0,0.04);
    --avo-shadow-sm:      0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --avo-shadow-md:      0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
    --avo-shadow-lg:      0 10px 24px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
    --avo-shadow-xl:      0 20px 48px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.06);
    --avo-shadow-card:    0 1px 3px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.04);
    --avo-shadow-dropdown:0 8px 24px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06);
    --avo-shadow-modal:   0 24px 64px rgba(0,0,0,0.14), 0 8px 24px rgba(0,0,0,0.08);

    --avo-sidebar-width:       240px;
    --avo-sidebar-collapsed:   60px;
    --avo-email-panel-width:   340px;
    --avo-header-height:       58px;

    --avo-radius-sm:    6px;
    --avo-radius-md:    10px;
    --avo-radius-lg:    14px;
    --avo-radius-xl:    20px;
    --avo-radius-full:  9999px;

    --avo-transition:        0.22s cubic-bezier(0.4,0,0.2,1);
    --avo-transition-slow:   0.36s cubic-bezier(0.4,0,0.2,1);
    --avo-transition-spring: 0.5s cubic-bezier(0.34,1.56,0.64,1);
}

/* ════════════════════════════════════════════════════════════════════
   DARK MODE
════════════════════════════════════════════════════════════════════ */
body.avo-theme-dark {
    --avo-bg:             #0d1117;
    --avo-surface:        #161b22;
    --avo-surface-2:      #1c2230;
    --avo-sidebar-bg:     #161b22;
    --avo-header-bg:      rgba(22,27,34,0.95);
    --avo-card-bg:        #1c2230;
    --avo-input-bg:       #0d1117;
    --avo-overlay-bg:     rgba(0,0,0,0.65);

    --avo-text:           #e2e8f0;
    --avo-text-muted:     #8b98a8;
    --avo-text-light:     #4a5568;
    --avo-text-inverse:   #0f172a;

    --avo-border:         rgba(255,255,255,0.08);
    --avo-border-soft:    rgba(255,255,255,0.04);

    --avo-shadow-xs:      0 1px 2px rgba(0,0,0,0.3);
    --avo-shadow-sm:      0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
    --avo-shadow-md:      0 4px 12px rgba(0,0,0,0.4);
    --avo-shadow-lg:      0 10px 30px rgba(0,0,0,0.5);
    --avo-shadow-xl:      0 20px 60px rgba(0,0,0,0.6);
    --avo-shadow-card:    0 1px 3px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.04);
    --avo-shadow-dropdown:0 8px 24px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.4);
    --avo-shadow-modal:   0 24px 80px rgba(0,0,0,0.7), 0 8px 32px rgba(0,0,0,0.5);

    --avo-primary-soft:   rgba(99,102,241,0.15);
}

/* ════════════════════════════════════════════════════════════════════
   BASE BODY
════════════════════════════════════════════════════════════════════ */
body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--avo-bg);
    color: var(--avo-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    min-height: 100vh;
    overflow: hidden;
}

/* ════════════════════════════════════════════════════════════════════
   APP LAYOUT
════════════════════════════════════════════════════════════════════ */
.avo-app {
    display: flex;
    height: 100vh;
    overflow: hidden;
    transition: var(--avo-transition);
}

.avo-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

/* ─── Mobile backdrop ─────────────────────────────────────────────── */
.avo-mobile-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--avo-overlay-bg);
    z-index: 998;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.avo-mobile-backdrop.active {
    display: block;
    opacity: 1;
    pointer-events: all;
}

/* ════════════════════════════════════════════════════════════════════
   SIDEBAR
════════════════════════════════════════════════════════════════════ */
.avo-sidebar {
    width: var(--avo-sidebar-width);
    height: 100vh;
    background: var(--avo-sidebar-bg);
    border-right: 1px solid var(--avo-border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 100;
    transition: width var(--avo-transition);
    overflow: hidden;
    box-shadow: var(--avo-shadow-sm);
    position: relative;
}

.avo-app.avo-sidebar-collapsed .avo-sidebar {
    width: var(--avo-sidebar-collapsed);
}

/* ─── Sidebar Header & Logo ───────────────────────────────────────── */
.avo-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    height: var(--avo-header-height);
    border-bottom: 1px solid var(--avo-border-soft);
    flex-shrink: 0;
    gap: 10px;
}

.avo-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.avo-sidebar-logo-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--avo-radius-md);
    background: linear-gradient(135deg, var(--avo-primary), var(--avo-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99,102,241,0.35);
}

.avo-sidebar-logo-text {
    font-size: 12px;
    font-weight: 700;
    color: var(--avo-text);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    opacity: 1;
    transition: opacity var(--avo-transition);
}

.avo-sidebar-logo-text strong { color: var(--avo-primary); }

.avo-app.avo-sidebar-collapsed .avo-sidebar-logo-text {
    opacity: 0;
    width: 0;
    pointer-events: none;
}

.avo-sidebar-collapse-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--avo-surface-2);
    border: 1px solid var(--avo-border);
    color: var(--avo-text-muted);
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--avo-transition);
    flex-shrink: 0;
}

.avo-sidebar-collapse-btn:hover {
    background: var(--avo-primary);
    border-color: var(--avo-primary);
    color: #fff;
    transform: scale(1.1);
}

/* ─── Compose FAB ─────────────────────────────────────────────────── */
.avo-sidebar-compose {
    padding: 14px 12px 8px;
    flex-shrink: 0;
}

.avo-compose-fab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 10px 14px;
    background: linear-gradient(135deg, var(--avo-primary), #4f46e5);
    color: #fff;
    border: none;
    border-radius: var(--avo-radius-lg);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--avo-transition);
    font-family: inherit;
    box-shadow: 0 4px 14px rgba(99,102,241,0.35);
    white-space: nowrap;
    overflow: hidden;
}

.avo-compose-fab:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99,102,241,0.45);
}

.avo-compose-fab i { font-size: 14px; flex-shrink: 0; }

.avo-compose-fab-text {
    opacity: 1;
    transition: opacity var(--avo-transition);
    white-space: nowrap;
}

.avo-app.avo-sidebar-collapsed .avo-compose-fab-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
}

/* ─── Folder Tree ─────────────────────────────────────────────────── */
.avo-folder-tree {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 6px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--avo-border) transparent;
}

.avo-folder-tree::-webkit-scrollbar { width: 4px; }
.avo-folder-tree::-webkit-scrollbar-thumb {
    background: var(--avo-border);
    border-radius: 4px;
}

.avo-folder-group { padding: 4px 0; }

.avo-folder-section {
    padding: 10px 0 4px;
}

.avo-folder-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 16px;
    font-size: 10px;
    font-weight: 800;
    color: var(--avo-text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    gap: 6px;
}

.avo-folder-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 12px;
    margin: 1px 8px;
    border-radius: var(--avo-radius-md);
    cursor: pointer;
    transition: var(--avo-transition);
    color: var(--avo-text-muted);
    font-size: 13px;
    font-weight: 500;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
}

.avo-folder-item:hover {
    background: var(--avo-surface-2);
    color: var(--avo-text);
}

.avo-folder-item.active {
    background: var(--avo-primary-soft);
    color: var(--avo-primary);
    font-weight: 700;
}

body.avo-theme-dark .avo-folder-item.active {
    background: rgba(99,102,241,0.15);
}

.avo-folder-icon {
    width: 16px;
    text-align: center;
    font-size: 13px;
    flex-shrink: 0;
    color: inherit;
}

.avo-folder-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 1;
    transition: opacity var(--avo-transition);
}

.avo-app.avo-sidebar-collapsed .avo-folder-label {
    opacity: 0;
    width: 0;
    pointer-events: none;
}

.avo-folder-badge {
    background: var(--avo-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: var(--avo-radius-full);
    min-width: 18px;
    text-align: center;
    line-height: 1.4;
    flex-shrink: 0;
    opacity: 1;
    transition: opacity var(--avo-transition);
}

.avo-app.avo-sidebar-collapsed .avo-folder-badge {
    opacity: 0;
    width: 0;
    padding: 0;
    pointer-events: none;
}

.avo-label-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

/* ─── Mini Calendar Events in sidebar ────────────────────────────── */
.avo-mini-event {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    margin: 1px 8px;
    border-radius: var(--avo-radius-md);
    cursor: pointer;
    transition: var(--avo-transition);
    font-size: 11px;
    color: var(--avo-text-muted);
    overflow: hidden;
}

.avo-mini-event:hover { background: var(--avo-surface-2); color: var(--avo-text); }

.avo-mini-event-time {
    font-weight: 800;
    color: var(--avo-primary);
    flex-shrink: 0;
    font-size: 10px;
}

.avo-mini-event-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* ─── Sidebar Footer ──────────────────────────────────────────────── */
.avo-sidebar-footer {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 10px 8px;
    border-top: 1px solid var(--avo-border-soft);
    gap: 2px;
    flex-shrink: 0;
}

.avo-sidebar-footer-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--avo-text-muted);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    padding: 7px;
    border-radius: var(--avo-radius-md);
    transition: var(--avo-transition);
    font-family: inherit;
    white-space: nowrap;
    min-width: 40px;
}

.avo-sidebar-footer-btn i { font-size: 15px; }
.avo-sidebar-footer-btn:hover {
    background: var(--avo-surface-2);
    color: var(--avo-primary);
}

.avo-sidebar-footer-label {
    font-size: 9px;
    opacity: 1;
    transition: opacity var(--avo-transition);
}

.avo-app.avo-sidebar-collapsed .avo-sidebar-footer-label { opacity: 0; display: none; }
.avo-app.avo-sidebar-collapsed .avo-sidebar-footer { flex-direction: column; padding: 8px 4px; }

/* ════════════════════════════════════════════════════════════════════
   HEADER
════════════════════════════════════════════════════════════════════ */
.avo-header {
    height: var(--avo-header-height);
    background: var(--avo-header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--avo-border-soft);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: var(--avo-shadow-xs);
    flex-shrink: 0;
}

.avo-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.avo-header-center {
    flex: 1;
    max-width: 580px;
}

.avo-header-right {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
}

.avo-breadcrumb-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 800;
    color: var(--avo-text);
    white-space: nowrap;
}

.avo-breadcrumb-icon { color: var(--avo-primary); font-size: 13px; }

/* ─── Search Bar ──────────────────────────────────────────────────── */
.avo-search-bar {
    position: relative;
    display: flex;
    align-items: center;
}

.avo-search-icon {
    position: absolute;
    left: 12px;
    color: var(--avo-text-muted);
    font-size: 12px;
    pointer-events: none;
    z-index: 1;
}

.avo-search-input {
    width: 100%;
    background: var(--avo-input-bg);
    border: 1.5px solid var(--avo-border);
    border-radius: var(--avo-radius-full);
    color: var(--avo-text);
    font-size: 13px;
    font-family: inherit;
    padding: 8px 80px 8px 36px;
    outline: none;
    transition: var(--avo-transition);
}

.avo-search-input::placeholder { color: var(--avo-text-light); }
.avo-search-input:focus {
    border-color: var(--avo-primary);
    background: var(--avo-surface);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

.avo-search-clear {
    position: absolute;
    right: 42px;
    background: none;
    border: none;
    color: var(--avo-text-muted);
    cursor: pointer;
    font-size: 11px;
    padding: 4px;
    border-radius: 50%;
    transition: var(--avo-transition);
}

.avo-search-clear:hover { color: var(--avo-danger); background: rgba(239,68,68,0.08); }

.avo-search-advanced-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: var(--avo-text-muted);
    cursor: pointer;
    font-size: 12px;
    padding: 5px;
    border-radius: var(--avo-radius-sm);
    transition: var(--avo-transition);
}

.avo-search-advanced-btn:hover { color: var(--avo-primary); }

/* ─── Header Buttons ──────────────────────────────────────────────── */
.avo-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: none;
    border: none;
    color: var(--avo-text-muted);
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--avo-transition);
    position: relative;
    flex-shrink: 0;
}

.avo-icon-btn:hover {
    background: var(--avo-surface-2);
    color: var(--avo-text);
}

.avo-icon-btn-sm {
    width: 28px;
    height: 28px;
    font-size: 12px;
}

.avo-icon-btn-xs {
    width: 24px;
    height: 24px;
    font-size: 11px;
    border-radius: var(--avo-radius-sm);
}

.avo-icon-btn-xs:hover { background: var(--avo-surface-2); color: var(--avo-text); }

.avo-header-action { border-radius: var(--avo-radius-md); }

.avo-ai-btn { color: var(--avo-primary) !important; }
.avo-ai-btn:hover { background: var(--avo-primary-soft) !important; }

.avo-kbd-hint {
    font-size: 9px;
    font-weight: 700;
    background: var(--avo-surface-2);
    border: 1px solid var(--avo-border);
    border-radius: 4px;
    padding: 1px 4px;
    color: var(--avo-text-muted);
    position: absolute;
    bottom: -2px;
    right: -2px;
}

/* ─── Header Avatar & User Menu ───────────────────────────────────── */
.avo-header-avatar-wrap { position: relative; }

.avo-header-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--avo-primary), var(--avo-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    cursor: pointer;
    overflow: hidden;
    border: 2px solid var(--avo-border);
    transition: var(--avo-transition);
    flex-shrink: 0;
}

.avo-header-avatar:hover {
    border-color: var(--avo-primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.2);
    transform: scale(1.05);
}

.avo-header-avatar img { width: 100%; height: 100%; object-fit: cover; }

.avo-avatar-initial-large {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
}

.avo-user-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--avo-surface);
    border: 1px solid var(--avo-border);
    border-radius: var(--avo-radius-lg);
    box-shadow: var(--avo-shadow-dropdown);
    z-index: 999;
    min-width: 200px;
    animation: avoDropIn 0.2s ease;
    overflow: hidden;
}

.avo-user-menu-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--avo-border-soft);
}

.avo-user-menu-name  { font-size: 14px; font-weight: 800; color: var(--avo-text); }
.avo-user-menu-email { font-size: 11px; color: var(--avo-text-muted); margin-top: 2px; word-break: break-all; }

.avo-user-menu-divider { height: 1px; background: var(--avo-border-soft); }

.avo-user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: none;
    border: none;
    color: var(--avo-text);
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--avo-transition);
    font-family: inherit;
    text-align: left;
}

.avo-user-menu-item:hover { background: var(--avo-surface-2); }
.avo-user-menu-item i { width: 14px; color: var(--avo-text-muted); }
.avo-user-menu-item-danger { color: var(--avo-danger) !important; }
.avo-user-menu-item-danger:hover { background: rgba(239,68,68,0.08) !important; }

/* ════════════════════════════════════════════════════════════════════
   CONTENT AREA — 3-COLUMN LAYOUT
════════════════════════════════════════════════════════════════════ */
.avo-content-area {
    flex: 1;
    display: flex;
    overflow: hidden;
    min-height: 0;
}

/* ─── Email Panel (list column) ───────────────────────────────────── */
.avo-email-panel {
    width: var(--avo-email-panel-width);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--avo-border);
    background: var(--avo-surface);
    overflow: hidden;
    transition: width var(--avo-transition);
}

/* When reading pane is off → email panel takes full width */
.avo-app[data-reading-pane="off"] .avo-email-panel {
    width: 100%;
    border-right: none;
}

/* ─── Email Toolbar (filter + sort) ──────────────────────────────── */
.avo-email-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid var(--avo-border-soft);
    gap: 8px;
    flex-shrink: 0;
    background: var(--avo-surface);
}

.avo-email-toolbar-left,
.avo-email-toolbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.avo-filter-tabs {
    display: flex;
    gap: 2px;
    overflow-x: auto;
}

.avo-filter-tab {
    background: none;
    border: none;
    color: var(--avo-text-muted);
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: var(--avo-radius-full);
    cursor: pointer;
    transition: var(--avo-transition);
    font-family: inherit;
    white-space: nowrap;
}

.avo-filter-tab:hover { color: var(--avo-text); background: var(--avo-surface-2); }
.avo-filter-tab.active {
    background: var(--avo-primary-soft);
    color: var(--avo-primary);
    font-weight: 700;
}
body.avo-theme-dark .avo-filter-tab.active { background: rgba(99,102,241,0.15); }

.avo-sort-select {
    background: var(--avo-input-bg);
    border: 1px solid var(--avo-border);
    border-radius: var(--avo-radius-md);
    color: var(--avo-text-muted);
    font-size: 11px;
    font-family: inherit;
    padding: 4px 8px;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

/* ─── Selection Toolbar ───────────────────────────────────────────── */
.avo-selection-toolbar {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: rgba(99,102,241,0.06);
    border-bottom: 1px solid rgba(99,102,241,0.2);
    flex-shrink: 0;
    flex-wrap: wrap;
}

.avo-selection-toolbar.visible { display: flex; }

.avo-selection-count {
    font-size: 12px;
    font-weight: 700;
    color: var(--avo-primary);
    white-space: nowrap;
}

.avo-selection-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

/* ─── Email List ──────────────────────────────────────────────────── */
.avo-email-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--avo-border) transparent;
}

.avo-email-list::-webkit-scrollbar { width: 4px; }
.avo-email-list::-webkit-scrollbar-thumb {
    background: var(--avo-border);
    border-radius: 4px;
}

/* ─── Date Group Header ───────────────────────────────────────────── */
.avo-date-group-header {
    padding: 6px 14px 3px;
    font-size: 10px;
    font-weight: 800;
    color: var(--avo-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--avo-surface-2);
    border-bottom: 1px solid var(--avo-border-soft);
    position: sticky;
    top: 0;
    z-index: 5;
}

/* ─── Email Row ───────────────────────────────────────────────────── */
.avo-email-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px 10px 8px;
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid var(--avo-border-soft);
    position: relative;
    border-left: 3px solid transparent;
}

.avo-email-row:hover { background: var(--avo-surface-2); }
.avo-email-row.active {
    background: var(--avo-primary-soft);
    border-left-color: var(--avo-primary);
}
body.avo-theme-dark .avo-email-row.active { background: rgba(99,102,241,0.12); }

.avo-email-row.selected { background: rgba(99,102,241,0.06); }
.avo-email-row.unread { border-left-color: var(--avo-primary); }
.avo-email-row.unread .avo-email-subject { font-weight: 800; color: var(--avo-text); }
.avo-email-row.unread .avo-email-from    { font-weight: 800; color: var(--avo-text); }

/* ─── Checkbox ────────────────────────────────────────────────────── */
.avo-email-check {
    flex-shrink: 0;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avo-checkbox {
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--avo-border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--avo-transition);
    cursor: pointer;
    font-size: 9px;
    color: #fff;
    flex-shrink: 0;
}

.avo-checkbox:hover { border-color: var(--avo-primary); }
.avo-checkbox.checked { background: var(--avo-primary); border-color: var(--avo-primary); }

/* ─── Email Avatar ────────────────────────────────────────────────── */
.avo-email-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.avo-email-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.avo-avatar-initial {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--avo-primary), var(--avo-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
}

/* ─── Email Content ───────────────────────────────────────────────── */
.avo-email-content {
    flex: 1;
    min-width: 0;
}

.avo-email-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 2px;
}

.avo-email-from {
    font-size: 13px;
    font-weight: 600;
    color: var(--avo-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.avo-email-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.avo-attach-icon  { font-size: 10px; color: var(--avo-text-muted); }
.avo-important-icon { font-size: 10px; color: var(--avo-warning); }

.avo-email-date {
    font-size: 11px;
    color: var(--avo-text-muted);
    white-space: nowrap;
}

.avo-email-row.unread .avo-email-date { font-weight: 700; color: var(--avo-primary); }

.avo-email-subject {
    font-size: 12px;
    font-weight: 600;
    color: var(--avo-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.avo-email-preview {
    font-size: 11px;
    color: var(--avo-text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.4;
}

.avo-email-preview[data-lines="2"] {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.avo-email-labels {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 3px;
}

.avo-email-label-tag {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--avo-radius-full);
    letter-spacing: 0.02em;
}

/* ─── Hover Actions on email row ─────────────────────────────────── */
.avo-email-row-actions {
    display: none;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.avo-email-row:hover .avo-email-row-actions { display: flex; }

.avo-row-action-btn {
    width: 28px;
    height: 28px;
    border-radius: var(--avo-radius-md);
    background: none;
    border: none;
    color: var(--avo-text-muted);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--avo-transition);
}

.avo-row-action-btn:hover {
    background: var(--avo-surface);
    color: var(--avo-text);
    box-shadow: var(--avo-shadow-sm);
}

/* ─── Load More ───────────────────────────────────────────────────── */
.avo-load-more {
    display: flex;
    justify-content: center;
    padding: 16px;
    border-top: 1px solid var(--avo-border-soft);
}

/* ─── Loading ─────────────────────────────────────────────────────── */
.avo-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 14px;
    color: var(--avo-text-muted);
    font-size: 13px;
}

.avo-spinner-dots {
    display: flex;
    gap: 6px;
}

.avo-spinner-dots div {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--avo-primary);
    animation: avoDotBounce 1.2s ease-in-out infinite;
}

.avo-spinner-dots div:nth-child(2) { animation-delay: 0.2s; }
.avo-spinner-dots div:nth-child(3) { animation-delay: 0.4s; }

@keyframes avoDotBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40%           { transform: scale(1);   opacity: 1; }
}

/* ─── Empty state ─────────────────────────────────────────────────── */
.avo-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    color: var(--avo-text-muted);
    gap: 8px;
}

/* ════════════════════════════════════════════════════════════════════
   READING PANE
════════════════════════════════════════════════════════════════════ */
.avo-reading-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--avo-bg);
    min-width: 0;
}

.avo-app[data-reading-pane="off"] .avo-reading-pane { display: none; }

/* ─── Empty state ─────────────────────────────────────────────────── */
.avo-reading-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 16px;
    color: var(--avo-text-muted);
    text-align: center;
    padding: 40px;
    animation: avoFadeIn 0.3s ease;
}

.avo-reading-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--avo-primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--avo-primary);
    opacity: 0.5;
}

.avo-reading-empty-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--avo-text);
    opacity: 0.6;
}

.avo-reading-empty-hint {
    font-size: 13px;
    color: var(--avo-text-muted);
}

.avo-reading-empty-hint kbd {
    background: var(--avo-surface);
    border: 1px solid var(--avo-border);
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--avo-primary);
    font-family: inherit;
}

/* ════════════════════════════════════════════════════════════════════
   THREAD VIEWER
════════════════════════════════════════════════════════════════════ */
.avo-thread {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    animation: avoFadeIn 0.25s ease;
}

.avo-thread-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--avo-border-soft);
    flex-shrink: 0;
    background: var(--avo-surface);
}

.avo-thread-header-left {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.avo-thread-subject {
    font-size: 16px;
    font-weight: 800;
    color: var(--avo-text);
    line-height: 1.4;
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.avo-thread-count {
    background: var(--avo-surface-2);
    border: 1px solid var(--avo-border);
    color: var(--avo-text-muted);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--avo-radius-full);
    flex-shrink: 0;
}

.avo-thread-header-actions { display: flex; gap: 4px; flex-shrink: 0; }

.avo-thread-labels {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding: 8px 20px;
    border-bottom: 1px solid var(--avo-border-soft);
    background: var(--avo-surface);
    flex-shrink: 0;
}

.avo-label-pill {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--avo-radius-full);
    letter-spacing: 0.02em;
}

/* ─── AI Summary Card ─────────────────────────────────────────────── */
.avo-ai-summary-card {
    margin: 12px 16px;
    background: linear-gradient(135deg, rgba(99,102,241,0.04), rgba(139,92,246,0.04));
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: var(--avo-radius-lg);
    overflow: hidden;
    flex-shrink: 0;
}

.avo-ai-summary-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(99,102,241,0.1);
    font-size: 12px;
    font-weight: 700;
    color: var(--avo-text);
}

#avoAISummaryContent { padding: 12px 14px; }

/* ─── Thread Messages ─────────────────────────────────────────────── */
.avo-thread-messages {
    flex: 1;
    overflow-y: auto;
    padding: 8px 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--avo-border) transparent;
}

.avo-thread-messages::-webkit-scrollbar { width: 5px; }
.avo-thread-messages::-webkit-scrollbar-thumb {
    background: var(--avo-border);
    border-radius: 5px;
}

/* ─── Thread Message ──────────────────────────────────────────────── */
.avo-thread-msg {
    margin-bottom: 10px;
    border: 1px solid var(--avo-border);
    border-radius: var(--avo-radius-lg);
    overflow: hidden;
    background: var(--avo-surface);
    transition: box-shadow 0.2s ease;
}

.avo-thread-msg:hover { box-shadow: var(--avo-shadow-sm); }
.avo-thread-msg.unread { border-left: 3px solid var(--avo-primary); }

.avo-msg-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.avo-msg-header:hover { background: var(--avo-surface-2); }

.avo-msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
}

.avo-msg-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avo-msg-from-info { flex: 1; min-width: 0; }

.avo-msg-from-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--avo-text);
}

.avo-msg-from-email {
    font-size: 11px;
    color: var(--avo-text-muted);
}

.avo-msg-from-email.hidden { display: none; }

.avo-msg-to-line {
    font-size: 11px;
    color: var(--avo-text-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.avo-msg-snippet {
    font-size: 12px;
    color: var(--avo-text-muted);
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.avo-msg-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.avo-msg-date {
    font-size: 11px;
    color: var(--avo-text-muted);
    white-space: nowrap;
}

.avo-msg-header-btns { display: flex; gap: 3px; }

/* ─── Collapsed state ─────────────────────────────────────────────── */
.avo-thread-msg.collapsed .avo-msg-body { display: none; }
.avo-thread-msg.expanded  .avo-msg-body { display: block; }

/* ─── Message Body ────────────────────────────────────────────────── */
.avo-msg-body {
    padding: 0 16px 16px;
    border-top: 1px solid var(--avo-border-soft);
}

.avo-email-iframe {
    width: 100%;
    border: none;
    background: transparent;
    min-height: 80px;
    display: block;
    margin-top: 12px;
}

.avo-email-text {
    font-size: 13px;
    color: var(--avo-text);
    line-height: 1.7;
    white-space: pre-wrap;
    margin-top: 12px;
}

/* ─── Attachments ─────────────────────────────────────────────────── */
.avo-msg-attachments {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--avo-border-soft);
}

.avo-attach-header {
    font-size: 11px;
    font-weight: 700;
    color: var(--avo-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.avo-attach-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.avo-attach-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--avo-surface-2);
    border: 1px solid var(--avo-border);
    border-radius: var(--avo-radius-md);
    padding: 8px 12px;
    max-width: 240px;
    transition: var(--avo-transition);
}

.avo-attach-chip:hover {
    border-color: var(--avo-primary);
    box-shadow: var(--avo-shadow-sm);
}

.avo-attach-chip-icon { font-size: 20px; flex-shrink: 0; }
.avo-attach-chip-info { flex: 1; min-width: 0; }
.avo-attach-chip-name { font-size: 12px; font-weight: 700; color: var(--avo-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avo-attach-chip-size { font-size: 10px; color: var(--avo-text-muted); margin-top: 1px; }
.avo-attach-chip-actions { flex-shrink: 0; }

/* ─── Reply Bar ───────────────────────────────────────────────────── */
.avo-thread-reply-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 14px 20px;
    border-top: 1px solid var(--avo-border-soft);
    background: var(--avo-surface);
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* ─── Inline Reply ────────────────────────────────────────────────── */
.avo-inline-reply {
    background: var(--avo-surface);
    border: 1.5px solid var(--avo-primary);
    border-radius: var(--avo-radius-lg);
    overflow: hidden;
    margin: 8px 16px;
    box-shadow: 0 4px 20px rgba(99,102,241,0.15);
}

.avo-inline-reply-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--avo-border-soft);
}

.avo-inline-reply-editor {
    min-height: 80px;
    max-height: 200px;
    padding: 12px 16px;
    font-size: 13px;
    color: var(--avo-text);
    line-height: 1.6;
    outline: none;
    overflow-y: auto;
}

.avo-inline-reply-editor:empty::before {
    content: attr(data-placeholder);
    color: var(--avo-text-light);
}

.avo-inline-reply-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    border-top: 1px solid var(--avo-border-soft);
    background: var(--avo-surface-2);
    flex-wrap: wrap;
    gap: 8px;
}

/* ════════════════════════════════════════════════════════════════════
   COMPOSE WINDOW (floating, Outlook-style)
════════════════════════════════════════════════════════════════════ */
.avo-compose-overlay {
    position: fixed;
    inset: 0;
    z-index: 8000;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0 32px 0 0;
}

.avo-compose-window {
    width: 680px;
    max-width: 96vw;
    height: 580px;
    max-height: 90vh;
    background: var(--avo-surface);
    border: 1px solid var(--avo-border);
    border-radius: var(--avo-radius-xl) var(--avo-radius-xl) 0 0;
    box-shadow: var(--avo-shadow-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    pointer-events: all;
    position: relative;
    animation: avoComposeIn 0.3s var(--avo-transition-spring);
}

@keyframes avoComposeIn {
    from { transform: translateY(40px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.avo-compose-animate-in { animation: avoComposeIn 0.3s var(--avo-transition-spring); }

.avo-compose-minimized {
    height: 46px !important;
    overflow: hidden;
}

.avo-compose-maximized {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    inset: 0 !important;
}

/* ─── Title bar ───────────────────────────────────────────────────── */
.avo-compose-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    height: 46px;
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.05));
    border-bottom: 1px solid var(--avo-border-soft);
    flex-shrink: 0;
    cursor: move;
    user-select: none;
}

.avo-compose-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--avo-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.avo-compose-title-actions { display: flex; gap: 3px; }

/* ─── Fields (To, Cc, Bcc, Subject) ──────────────────────────────── */
.avo-compose-fields {
    flex-shrink: 0;
    border-bottom: 1px solid var(--avo-border-soft);
}

.avo-compose-field-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 14px;
    border-bottom: 1px solid var(--avo-border-soft);
    min-height: 38px;
}

.avo-compose-field-row:last-child { border-bottom: none; }

.avo-compose-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--avo-text-muted);
    padding-top: 5px;
    width: 52px;
    flex-shrink: 0;
    text-align: right;
}

.avo-recip-input-wrap {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    min-width: 0;
    position: relative;
}

.avo-recip-chips { display: flex; flex-wrap: wrap; gap: 4px; }

.avo-recip-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--avo-primary-soft);
    color: var(--avo-primary);
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: var(--avo-radius-full);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px 3px 6px;
    transition: var(--avo-transition);
}

.avo-recip-chip.team {
    background: rgba(16,185,129,0.1);
    color: var(--avo-success);
    border-color: rgba(16,185,129,0.2);
}

body.avo-theme-dark .avo-recip-chip { background: rgba(99,102,241,0.15); }

.avo-recip-input {
    flex: 1;
    min-width: 120px;
    background: none;
    border: none;
    outline: none;
    font-size: 13px;
    color: var(--avo-text);
    font-family: inherit;
    padding: 3px 0;
}

.avo-recip-input::placeholder { color: var(--avo-text-light); }

.avo-suggest-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--avo-surface);
    border: 1px solid var(--avo-border);
    border-radius: var(--avo-radius-lg);
    box-shadow: var(--avo-shadow-dropdown);
    z-index: 9999;
    max-height: 240px;
    overflow-y: auto;
    padding: 4px;
    animation: avoDropIn 0.15s ease;
}

.avo-suggest-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    cursor: pointer;
    border-radius: var(--avo-radius-md);
    transition: var(--avo-transition);
}

.avo-suggest-item:hover { background: var(--avo-surface-2); }

.avo-compose-field-toggles {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.avo-compose-field-toggle {
    background: none;
    border: 1px solid var(--avo-border);
    border-radius: var(--avo-radius-sm);
    color: var(--avo-text-muted);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    cursor: pointer;
    transition: var(--avo-transition);
    font-family: inherit;
}

.avo-compose-field-toggle:hover { border-color: var(--avo-primary); color: var(--avo-primary); }

.avo-compose-subject {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--avo-text);
    font-family: inherit;
    padding: 3px 0;
    min-width: 0;
}

.avo-compose-subject::placeholder { color: var(--avo-text-light); font-weight: 400; }

/* ─── Formatting Toolbar ──────────────────────────────────────────── */
.avo-format-toolbar {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 6px 10px;
    border-bottom: 1px solid var(--avo-border-soft);
    flex-shrink: 0;
    flex-wrap: wrap;
    background: var(--avo-surface-2);
    overflow-x: auto;
}

.avo-format-select {
    background: var(--avo-input-bg);
    border: 1px solid var(--avo-border);
    border-radius: var(--avo-radius-sm);
    color: var(--avo-text-muted);
    font-size: 11px;
    font-family: inherit;
    padding: 3px 6px;
    height: 26px;
    outline: none;
    cursor: pointer;
    max-width: 120px;
}

.avo-fmt-btn {
    width: 26px;
    height: 26px;
    border-radius: var(--avo-radius-sm);
    background: none;
    border: none;
    color: var(--avo-text-muted);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--avo-transition);
    flex-shrink: 0;
}

.avo-fmt-btn:hover { background: var(--avo-surface); color: var(--avo-text); }
.avo-fmt-btn.active { background: var(--avo-primary-soft); color: var(--avo-primary); }
body.avo-theme-dark .avo-fmt-btn.active { background: rgba(99,102,241,0.15); }

.avo-fmt-btn-ai {
    background: rgba(99,102,241,0.08) !important;
    color: var(--avo-primary) !important;
    border: 1px solid rgba(99,102,241,0.2) !important;
    width: auto !important;
    padding: 0 8px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    gap: 4px !important;
    border-radius: var(--avo-radius-md) !important;
}

.avo-fmt-btn-ai:hover {
    background: rgba(99,102,241,0.15) !important;
}

.avo-fmt-divider {
    width: 1px;
    height: 18px;
    background: var(--avo-border);
    margin: 0 2px;
    flex-shrink: 0;
}

.avo-fmt-color-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.avo-color-pick {
    position: absolute;
    opacity: 0;
    width: 26px;
    height: 26px;
    cursor: pointer;
    border: none;
    padding: 0;
}

/* ─── Editor ──────────────────────────────────────────────────────── */
.avo-editor-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    min-height: 0;
}

.avo-editor-wrap.drag-over {
    background: rgba(99,102,241,0.04);
    outline: 2px dashed var(--avo-primary);
    outline-offset: -4px;
}

.avo-editor {
    flex: 1;
    overflow-y: auto;
    padding: 14px 16px;
    font-size: 13px;
    color: var(--avo-text);
    line-height: 1.7;
    outline: none;
    font-family: inherit;
    min-height: 80px;
}

.avo-editor:empty::before {
    content: attr(data-placeholder);
    color: var(--avo-text-light);
    pointer-events: none;
}

.avo-editor::-webkit-scrollbar { width: 4px; }
.avo-editor::-webkit-scrollbar-thumb { background: var(--avo-border); border-radius: 4px; }

.avo-editor-source {
    flex: 1;
    background: var(--avo-input-bg);
    border: none;
    color: var(--avo-text);
    font-size: 12px;
    font-family: 'Courier New', monospace;
    padding: 14px 16px;
    outline: none;
    resize: none;
    line-height: 1.6;
}

/* ─── Templates Panel (inside composer) ──────────────────────────── */
.avo-templates-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 260px;
    background: var(--avo-surface);
    border-left: 1px solid var(--avo-border);
    display: flex;
    flex-direction: column;
    z-index: 10;
    box-shadow: var(--avo-shadow-md);
    overflow: hidden;
}

.avo-templates-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--avo-border-soft);
    flex-shrink: 0;
    background: var(--avo-surface-2);
}

.avo-template-item {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--avo-border-soft);
    transition: var(--avo-transition);
    position: relative;
}

.avo-template-item:hover { background: var(--avo-surface-2); }
.avo-template-name { font-size: 12px; font-weight: 700; color: var(--avo-text); margin-bottom: 2px; }
.avo-template-preview { font-size: 10px; color: var(--avo-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.avo-template-actions {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    gap: 4px;
}

.avo-template-item:hover .avo-template-actions { display: flex; }

/* ─── Attachments Preview ─────────────────────────────────────────── */
.avo-compose-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 14px;
    border-top: 1px solid var(--avo-border-soft);
    background: var(--avo-surface-2);
    flex-shrink: 0;
    max-height: 100px;
    overflow-y: auto;
}

.avo-attach-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--avo-surface);
    border: 1px solid var(--avo-border);
    border-radius: var(--avo-radius-md);
    padding: 6px 10px;
    font-size: 11px;
    max-width: 200px;
}

.avo-attach-tag-info { flex: 1; min-width: 0; }
.avo-attach-tag-name { font-weight: 700; color: var(--avo-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avo-attach-tag-size { color: var(--avo-text-muted); font-size: 10px; }

.avo-attach-tag-remove {
    background: none;
    border: none;
    color: var(--avo-text-muted);
    cursor: pointer;
    font-size: 13px;
    padding: 0 2px;
    border-radius: 50%;
    transition: var(--avo-transition);
    line-height: 1;
    flex-shrink: 0;
}

.avo-attach-tag-remove:hover { color: var(--avo-danger); background: rgba(239,68,68,0.1); }

/* ─── Status Bar ──────────────────────────────────────────────────── */
.avo-compose-status {
    padding: 5px 14px;
    font-size: 11px;
    color: var(--avo-text-muted);
    border-top: 1px solid var(--avo-border-soft);
    background: var(--avo-surface-2);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.avo-undo-btn {
    background: var(--avo-primary);
    color: #fff;
    border: none;
    border-radius: var(--avo-radius-sm);
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

/* ─── Compose Footer ──────────────────────────────────────────────── */
.avo-compose-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-top: 1px solid var(--avo-border-soft);
    flex-shrink: 0;
    background: var(--avo-surface);
    gap: 10px;
}

.avo-compose-footer-left,
.avo-compose-footer-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.avo-send-btn-group {
    display: flex;
    border-radius: var(--avo-radius-md);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}

.avo-send-main {
    border-radius: var(--avo-radius-md) 0 0 var(--avo-radius-md) !important;
    border-right: 1px solid rgba(255,255,255,0.15);
    flex: 1;
}

.avo-send-arrow {
    border-radius: 0 var(--avo-radius-md) var(--avo-radius-md) 0 !important;
    padding: 8px 10px !important;
    border-left: 1px solid rgba(255,255,255,0.15);
}

/* ─── AI Compose Panel ────────────────────────────────────────────── */
.avo-ai-compose-panel {
    position: absolute;
    bottom: 60px;
    right: 10px;
    width: 320px;
    background: var(--avo-surface);
    border: 1px solid var(--avo-border);
    border-radius: var(--avo-radius-lg);
    box-shadow: var(--avo-shadow-xl);
    z-index: 20;
    overflow: hidden;
    animation: avoDropIn 0.2s ease;
}

.avo-ai-panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--avo-border-soft);
    font-size: 13px;
    font-weight: 700;
    color: var(--avo-text);
    background: linear-gradient(135deg, rgba(99,102,241,0.05), rgba(139,92,246,0.03));
}

.avo-ai-panel-body { padding: 14px; }

/* ════════════════════════════════════════════════════════════════════
   AI PANEL (floating side panel)
════════════════════════════════════════════════════════════════════ */
.avo-ai-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    height: 100vh;
    background: var(--avo-surface);
    border-left: 1px solid var(--avo-border);
    box-shadow: var(--avo-shadow-xl);
    z-index: 7000;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s var(--avo-transition-spring);
    overflow: hidden;
}

.avo-ai-panel.open { transform: translateX(0); }

.avo-ai-panel-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--avo-border-soft);
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(139,92,246,0.04));
}

.avo-ai-panel-orb {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--avo-primary), var(--avo-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #fff;
    box-shadow: 0 4px 14px rgba(99,102,241,0.4);
    animation: avoOrb 3s ease-in-out infinite;
}

@keyframes avoOrb {
    0%, 100% { box-shadow: 0 4px 14px rgba(99,102,241,0.4); }
    50%       { box-shadow: 0 4px 24px rgba(139,92,246,0.6); }
}

/* ─── AI Quick Actions ────────────────────────────────────────────── */
.avo-ai-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--avo-border-soft);
    flex-shrink: 0;
}

.avo-ai-quick-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    background: var(--avo-surface-2);
    border: 1px solid var(--avo-border);
    border-radius: var(--avo-radius-md);
    color: var(--avo-text-muted);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--avo-transition);
    font-family: inherit;
}

.avo-ai-quick-btn:hover {
    background: var(--avo-primary-soft);
    border-color: var(--avo-primary);
    color: var(--avo-primary);
}

body.avo-theme-dark .avo-ai-quick-btn:hover { background: rgba(99,102,241,0.15); }

.avo-ai-quick-btn i { font-size: 13px; flex-shrink: 0; }
.avo-ai-quick-btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ─── AI Messages ─────────────────────────────────────────────────── */
.avo-ai-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
    min-height: 0;
}

.avo-ai-messages::-webkit-scrollbar { width: 4px; }
.avo-ai-messages::-webkit-scrollbar-thumb { background: var(--avo-border); border-radius: 4px; }

.avo-ai-msg {
    display: flex;
    gap: 10px;
    animation: avoFadeIn 0.3s ease;
}

.avo-ai-msg-bot  { flex-direction: row; align-items: flex-start; }
.avo-ai-msg-user { flex-direction: row-reverse; align-items: flex-start; }

.avo-ai-msg-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--avo-primary), var(--avo-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}

.avo-ai-msg-bubble {
    max-width: 80%;
    background: var(--avo-surface-2);
    border: 1px solid var(--avo-border-soft);
    border-radius: 14px 14px 14px 2px;
    padding: 10px 14px;
    font-size: 12px;
    color: var(--avo-text);
    line-height: 1.65;
    word-break: break-word;
}

.avo-ai-msg-user-bubble {
    background: linear-gradient(135deg, var(--avo-primary), var(--avo-accent));
    color: #fff;
    border: none;
    border-radius: 14px 14px 2px 14px;
}

/* ─── AI Typing Dots ──────────────────────────────────────────────── */
.avo-ai-typing-dots {
    display: flex;
    gap: 5px;
    align-items: center;
}

.avo-ai-typing-dots div {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--avo-primary);
    animation: avoDotBounce 1s ease-in-out infinite;
}

.avo-ai-typing-dots div:nth-child(2) { animation-delay: 0.2s; }
.avo-ai-typing-dots div:nth-child(3) { animation-delay: 0.4s; }

/* ─── AI Welcome Screen ───────────────────────────────────────────── */
.avo-ai-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 10px;
    gap: 14px;
    animation: avoFadeIn 0.4s ease;
}

.avo-ai-welcome-orb {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--avo-primary), var(--avo-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    box-shadow: 0 8px 28px rgba(99,102,241,0.4);
    animation: avoOrb 3s ease-in-out infinite;
}

.avo-ai-welcome-text { font-size: 15px; font-weight: 700; color: var(--avo-text); }

.avo-ai-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--avo-surface-2);
    border: 1px solid var(--avo-border);
    border-radius: var(--avo-radius-full);
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--avo-text-muted);
}

.avo-ai-welcome-stats { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

.avo-ai-suggestions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.avo-ai-suggestion-chip {
    background: var(--avo-surface-2);
    border: 1px solid var(--avo-border);
    border-radius: var(--avo-radius-md);
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--avo-text-muted);
    cursor: pointer;
    text-align: left;
    transition: var(--avo-transition);
    font-family: inherit;
}

.avo-ai-suggestion-chip:hover {
    background: var(--avo-primary-soft);
    border-color: var(--avo-primary);
    color: var(--avo-primary);
}

body.avo-theme-dark .avo-ai-suggestion-chip:hover { background: rgba(99,102,241,0.15); }

/* ─── AI Meeting / Email Cards ────────────────────────────────────── */
.avo-ai-meeting-card,
.avo-ai-email-card {
    background: rgba(99,102,241,0.04);
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: var(--avo-radius-lg);
    overflow: hidden;
}

.avo-ai-meeting-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(99,102,241,0.1);
    font-size: 11px;
    font-weight: 800;
    color: var(--avo-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.avo-ai-meeting-card-body { padding: 12px 14px; }

.avo-ai-meeting-field {
    font-size: 12px;
    color: var(--avo-text);
    line-height: 1.7;
}

.avo-ai-meeting-card-footer {
    display: flex;
    gap: 8px;
    padding: 10px 14px;
    border-top: 1px solid rgba(99,102,241,0.1);
}

/* ─── AI Input ────────────────────────────────────────────────────── */
.avo-ai-input-wrap {
    display: flex;
    gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid var(--avo-border-soft);
    flex-shrink: 0;
    align-items: flex-end;
}

.avo-ai-input {
    flex: 1;
    background: var(--avo-input-bg);
    border: 1.5px solid var(--avo-border);
    border-radius: var(--avo-radius-lg);
    color: var(--avo-text);
    font-size: 12px;
    font-family: inherit;
    padding: 9px 13px;
    outline: none;
    resize: none;
    line-height: 1.5;
    min-height: 38px;
    max-height: 120px;
    transition: var(--avo-transition);
}

.avo-ai-input::placeholder { color: var(--avo-text-light); }
.avo-ai-input:focus {
    border-color: var(--avo-primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

.avo-ai-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--avo-primary), var(--avo-accent));
    border: none;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--avo-transition);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99,102,241,0.35);
}

.avo-ai-send-btn:hover { transform: scale(1.08); box-shadow: 0 6px 18px rgba(99,102,241,0.5); }

/* ════════════════════════════════════════════════════════════════════
   COMMAND PALETTE
════════════════════════════════════════════════════════════════════ */
.avo-command-palette {
    position: fixed;
    inset: 0;
    background: var(--avo-overlay-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    animation: avoFadeIn 0.2s ease;
}

.avo-command-palette-inner {
    width: 580px;
    max-width: 96vw;
    background: var(--avo-surface);
    border: 1px solid var(--avo-border);
    border-radius: var(--avo-radius-xl);
    box-shadow: var(--avo-shadow-modal);
    overflow: hidden;
    animation: avoModalIn 0.25s var(--avo-transition-spring);
}

.avo-command-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--avo-border-soft);
}

.avo-command-prefix {
    color: var(--avo-primary);
    font-size: 14px;
    flex-shrink: 0;
}

.avo-command-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--avo-text);
    font-family: inherit;
}

.avo-command-input::placeholder { color: var(--avo-text-light); }

.avo-command-esc {
    background: var(--avo-surface-2);
    border: 1px solid var(--avo-border);
    border-radius: var(--avo-radius-sm);
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 700;
    color: var(--avo-text-muted);
    cursor: pointer;
    font-family: inherit;
    flex-shrink: 0;
}

.avo-command-list {
    max-height: 380px;
    overflow-y: auto;
    padding: 6px;
}

.avo-command-list::-webkit-scrollbar { width: 4px; }
.avo-command-list::-webkit-scrollbar-thumb { background: var(--avo-border); border-radius: 4px; }

.avo-cmd-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--avo-radius-md);
    cursor: pointer;
    transition: var(--avo-transition);
}

.avo-cmd-item:hover,
.avo-cmd-item.active {
    background: var(--avo-primary-soft);
    color: var(--avo-primary);
}

body.avo-theme-dark .avo-cmd-item:hover,
body.avo-theme-dark .avo-cmd-item.active { background: rgba(99,102,241,0.15); }

.avo-cmd-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--avo-radius-md);
    background: var(--avo-surface-2);
    border: 1px solid var(--avo-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--avo-text-muted);
    flex-shrink: 0;
}

.avo-cmd-item:hover .avo-cmd-icon,
.avo-cmd-item.active .avo-cmd-icon {
    background: var(--avo-primary-soft);
    border-color: rgba(99,102,241,0.2);
    color: var(--avo-primary);
}

.avo-cmd-label {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: var(--avo-text);
}

.avo-cmd-item:hover .avo-cmd-label,
.avo-cmd-item.active .avo-cmd-label { color: var(--avo-primary); }

.avo-cmd-shortcut {
    background: var(--avo-surface-2);
    border: 1px solid var(--avo-border);
    border-radius: var(--avo-radius-sm);
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 800;
    color: var(--avo-text-muted);
    font-family: inherit;
    flex-shrink: 0;
}

.avo-command-footer {
    display: flex;
    gap: 16px;
    padding: 10px 18px;
    border-top: 1px solid var(--avo-border-soft);
    font-size: 11px;
    color: var(--avo-text-muted);
    background: var(--avo-surface-2);
}

.avo-command-footer kbd {
    background: var(--avo-surface);
    border: 1px solid var(--avo-border);
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 10px;
    font-family: inherit;
    margin-right: 3px;
}

/* ════════════════════════════════════════════════════════════════════
   CONTEXT MENU
════════════════════════════════════════════════════════════════════ */
.avo-context-menu {
    background: var(--avo-surface);
    border: 1px solid var(--avo-border);
    border-radius: var(--avo-radius-lg);
    box-shadow: var(--avo-shadow-dropdown);
    padding: 5px;
    min-width: 200px;
    z-index: 99998;
    animation: avoDropIn 0.15s ease;
}

.avo-ctx-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--avo-radius-md);
    cursor: pointer;
    transition: var(--avo-transition);
    font-size: 13px;
    color: var(--avo-text);
}

.avo-ctx-item:hover { background: var(--avo-surface-2); }
.avo-ctx-item i { width: 14px; color: var(--avo-text-muted); font-size: 12px; }

.avo-ctx-divider { height: 1px; background: var(--avo-border-soft); margin: 4px 0; }

/* ════════════════════════════════════════════════════════════════════
   CALENDAR VIEWS
════════════════════════════════════════════════════════════════════ */
.avo-view-switch {
    display: flex;
    background: var(--avo-surface-2);
    border: 1px solid var(--avo-border);
    border-radius: var(--avo-radius-md);
    padding: 2px;
    gap: 2px;
}

.avo-cal-view-btn {
    background: none;
    border: none;
    color: var(--avo-text-muted);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: var(--avo-radius-sm);
    cursor: pointer;
    transition: var(--avo-transition);
    font-family: inherit;
}

.avo-cal-view-btn:hover { color: var(--avo-text); background: rgba(99,102,241,0.06); }
.avo-cal-view-btn.active {
    background: var(--avo-surface);
    color: var(--avo-primary);
    font-weight: 700;
    box-shadow: var(--avo-shadow-xs);
}

/* ─── Month View ──────────────────────────────────────────────────── */
.avo-cal-month { width: 100%; }

.avo-cal-week-headers {
    display: grid;
    grid-template-columns: repeat(7,1fr);
    padding: 10px 12px 4px;
    gap: 2px;
}

.avo-cal-week-header {
    text-align: center;
    font-size: 10px;
    font-weight: 800;
    color: var(--avo-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 0;
}

.avo-cal-grid {
    display: grid;
    grid-template-columns: repeat(7,1fr);
    gap: 2px;
    padding: 4px 10px 14px;
}

.avo-cal-cell {
    min-height: 80px;
    border-radius: var(--avo-radius-md);
    border: 1px solid transparent;
    padding: 4px;
    cursor: pointer;
    transition: var(--avo-transition);
}

.avo-cal-cell:hover { background: var(--avo-surface-2); }
.avo-cal-cell.today { background: var(--avo-primary-soft); border-color: rgba(99,102,241,0.2); }
.avo-cal-cell.today .avo-cal-day-num { color: var(--avo-primary); font-weight: 800; }
.avo-cal-cell.selected { background: var(--avo-primary) !important; border-color: var(--avo-primary) !important; }
.avo-cal-cell.selected .avo-cal-day-num { color: #fff !important; }
.avo-cal-cell-empty { pointer-events: none; }

body.avo-theme-dark .avo-cal-cell.today { background: rgba(99,102,241,0.15); }

.avo-cal-day-num { font-size: 12px; font-weight: 600; color: var(--avo-text); margin-bottom: 4px; }
.avo-cal-day-events { display: flex; flex-direction: column; gap: 2px; }

.avo-cal-event-chip {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: var(--avo-transition);
}

.avo-cal-event-chip:hover { opacity: 0.8; }
.avo-cal-more { font-size: 9px; color: var(--avo-text-muted); padding-left: 4px; }

/* ─── Week View ───────────────────────────────────────────────────── */
.avo-cal-week { width: 100%; overflow-x: auto; }

.avo-cal-week-head {
    display: flex;
    border-bottom: 1px solid var(--avo-border-soft);
    position: sticky;
    top: 0;
    background: var(--avo-surface);
    z-index: 5;
}

.avo-cal-time-gutter { width: 52px; flex-shrink: 0; }

.avo-cal-week-day-header {
    flex: 1;
    text-align: center;
    padding: 10px 4px;
    border-left: 1px solid var(--avo-border-soft);
}

.avo-cal-week-day-header.today { background: var(--avo-primary-soft); }
body.avo-theme-dark .avo-cal-week-day-header.today { background: rgba(99,102,241,0.1); }

.avo-cal-week-day-name { font-size: 10px; font-weight: 700; color: var(--avo-text-muted); text-transform: uppercase; }
.avo-cal-week-day-num  { font-size: 18px; font-weight: 800; color: var(--avo-text); line-height: 1.2; }
.avo-cal-week-day-num.today { color: var(--avo-primary); }

.avo-cal-week-body { overflow-y: auto; max-height: 560px; }

.avo-cal-time-row {
    display: flex;
    min-height: 52px;
    border-bottom: 1px solid var(--avo-border-soft);
}

.avo-cal-time-label {
    width: 52px;
    flex-shrink: 0;
    font-size: 10px;
    color: var(--avo-text-muted);
    text-align: right;
    padding: 4px 8px 0 0;
    font-weight: 600;
}

.avo-cal-week-slot {
    flex: 1;
    border-left: 1px solid var(--avo-border-soft);
    padding: 2px;
    cursor: pointer;
    transition: background 0.1s ease;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-height: 52px;
}

.avo-cal-week-slot:hover { background: rgba(99,102,241,0.04); }

.avo-cal-week-event {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.15s;
}

.avo-cal-week-event:hover { opacity: 0.85; }

/* ─── Day View ────────────────────────────────────────────────────── */
.avo-cal-day { max-height: 600px; overflow-y: auto; }

.avo-cal-day-header {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--avo-border-soft);
    font-size: 16px;
    font-weight: 800;
    color: var(--avo-text);
    gap: 10px;
}

.avo-cal-day-header.today { color: var(--avo-primary); }

.avo-cal-day-slot {
    display: flex;
    min-height: 50px;
    border-bottom: 1px solid var(--avo-border-soft);
}

.avo-cal-day-time {
    width: 60px;
    flex-shrink: 0;
    font-size: 10px;
    color: var(--avo-text-muted);
    font-weight: 600;
    padding: 6px 10px 0;
    text-align: right;
}

.avo-cal-day-slot-content {
    flex: 1;
    padding: 4px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.avo-cal-day-event {
    border-radius: var(--avo-radius-md);
    padding: 8px 12px;
    cursor: pointer;
    transition: var(--avo-transition);
}

.avo-cal-day-event:hover { transform: translateX(4px); }

/* ─── Agenda View ─────────────────────────────────────────────────── */
.avo-cal-agenda { padding: 0 4px; }

.avo-agenda-date-header {
    font-size: 12px;
    font-weight: 800;
    color: var(--avo-text-muted);
    padding: 14px 14px 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--avo-border-soft);
}

.avo-agenda-event {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--avo-border-soft);
    cursor: pointer;
    transition: var(--avo-transition);
}

.avo-agenda-event:hover { background: var(--avo-surface-2); }

.avo-agenda-event-time {
    font-size: 12px;
    font-weight: 800;
    min-width: 60px;
    flex-shrink: 0;
    text-align: right;
}

.avo-agenda-event-bar {
    width: 3px;
    height: 40px;
    border-radius: 3px;
    flex-shrink: 0;
}

.avo-agenda-event-info { flex: 1; min-width: 0; }
.avo-agenda-event-title { font-size: 13px; font-weight: 700; color: var(--avo-text); margin-bottom: 3px; }
.avo-agenda-event-meta  { font-size: 11px; color: var(--avo-text-muted); }

/* ════════════════════════════════════════════════════════════════════
   INSIGHTS PANEL
════════════════════════════════════════════════════════════════════ */
.avo-insights-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.avo-insight-card {
    background: var(--avo-surface-2);
    border: 1px solid var(--avo-border);
    border-radius: var(--avo-radius-lg);
    padding: 14px;
    text-align: center;
    transition: var(--avo-transition);
}

.avo-insight-card:hover { box-shadow: var(--avo-shadow-md); transform: translateY(-2px); }

.avo-insight-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--avo-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin: 0 auto 10px;
}

.avo-insight-value {
    font-size: 22px;
    font-weight: 900;
    color: var(--avo-text);
    line-height: 1;
    margin-bottom: 4px;
}

.avo-insight-label {
    font-size: 10px;
    color: var(--avo-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ════════════════════════════════════════════════════════════════════
   SETTINGS (within modal)
════════════════════════════════════════════════════════════════════ */
.avo-settings-nav {
    background: var(--avo-surface-2);
    border-right: 1px solid var(--avo-border-soft);
    padding: 14px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 160px;
}

.avo-settings-nav-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    background: none;
    border: none;
    color: var(--avo-text-muted);
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--avo-radius-md);
    transition: var(--avo-transition);
    font-family: inherit;
    text-align: left;
}

.avo-settings-nav-btn i { width: 14px; font-size: 13px; }
.avo-settings-nav-btn:hover { background: var(--avo-card-bg); color: var(--avo-text); }
.avo-settings-nav-btn.active { background: var(--avo-primary-soft); color: var(--avo-primary); font-weight: 700; }
body.avo-theme-dark .avo-settings-nav-btn.active { background: rgba(99,102,241,0.15); }

.avo-settings-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    min-width: 0;
}

.avo-settings-section-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--avo-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--avo-border-soft);
}

.avo-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--avo-border-soft);
    gap: 12px;
}

.avo-toggle-row:last-child { border-bottom: none; }

.avo-toggle {
    display: inline-flex;
    position: relative;
    width: 36px;
    height: 20px;
    flex-shrink: 0;
    cursor: pointer;
}

.avo-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.avo-toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--avo-border);
    border-radius: var(--avo-radius-full);
    transition: var(--avo-transition);
    cursor: pointer;
}

.avo-toggle-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: var(--avo-transition-spring);
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.avo-toggle input:checked + .avo-toggle-slider { background: var(--avo-primary); }
.avo-toggle input:checked + .avo-toggle-slider::after { transform: translateX(16px); }

.avo-label-hint { font-size: 11px; color: var(--avo-text-muted); margin-top: 2px; }

/* ─── Rule item ───────────────────────────────────────────────────── */
.avo-rule-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--avo-surface-2);
    border: 1px solid var(--avo-border);
    border-radius: var(--avo-radius-md);
    margin-bottom: 8px;
    transition: var(--avo-transition);
}

.avo-rule-item:hover { box-shadow: var(--avo-shadow-sm); }
.avo-rule-item.disabled { opacity: 0.5; }
.avo-rule-toggle { flex-shrink: 0; }
.avo-rule-info   { flex: 1; min-width: 0; }
.avo-rule-name   { font-size: 13px; font-weight: 700; color: var(--avo-text); }
.avo-rule-desc   { font-size: 11px; color: var(--avo-text-muted); margin-top: 3px; }
.avo-rule-actions{ display: flex; gap: 4px; flex-shrink: 0; }

/* ─── Contact row ─────────────────────────────────────────────────── */
.avo-contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: var(--avo-transition);
    border-bottom: 1px solid var(--avo-border-soft);
}

.avo-contact-row:hover { background: var(--avo-surface-2); }
.avo-contact-avatar { flex-shrink: 0; }
.avo-contact-info   { flex: 1; min-width: 0; }
.avo-contact-actions{ display: flex; gap: 4px; flex-shrink: 0; }

/* ════════════════════════════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════════════════════════════ */
.avo-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: var(--avo-radius-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--avo-transition);
    font-family: inherit;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.avo-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

.avo-btn-primary {
    background: linear-gradient(135deg, var(--avo-primary), #4f46e5);
    color: #fff;
    box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}

.avo-btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(99,102,241,0.4);
}

.avo-btn-secondary {
    background: linear-gradient(135deg, var(--avo-secondary), #0891b2);
    color: #fff;
    box-shadow: 0 2px 8px rgba(6,182,212,0.3);
}

.avo-btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(6,182,212,0.4);
}

.avo-btn-ghost {
    background: none;
    color: var(--avo-text-muted);
    border: 1px solid var(--avo-border);
}

.avo-btn-ghost:hover { background: var(--avo-surface-2); color: var(--avo-text); }

.avo-btn-sm  { padding: 5px 11px; font-size: 11px; border-radius: var(--avo-radius-sm); }
.avo-btn-xs  { padding: 3px 8px;  font-size: 10px; border-radius: 5px; }

/* ════════════════════════════════════════════════════════════════════
   FORMS
════════════════════════════════════════════════════════════════════ */
.avo-form-group { display: flex; flex-direction: column; gap: 6px; }
.avo-form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.avo-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--avo-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.avo-input,
.avo-select {
    width: 100%;
    background: var(--avo-input-bg);
    border: 1.5px solid var(--avo-border);
    border-radius: var(--avo-radius-md);
    color: var(--avo-text);
    font-size: 13px;
    font-family: inherit;
    padding: 9px 13px;
    outline: none;
    transition: var(--avo-transition);
    appearance: none;
    -webkit-appearance: none;
}

.avo-input:focus,
.avo-select:focus {
    border-color: var(--avo-primary);
    background: var(--avo-surface);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

.avo-input::placeholder { color: var(--avo-text-light); }

.avo-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* ─── Info Banner ─────────────────────────────────────────────────── */
.avo-info-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(6,182,212,0.08);
    border: 1px solid rgba(6,182,212,0.2);
    border-radius: var(--avo-radius-md);
    font-size: 12px;
    color: var(--avo-secondary);
    font-weight: 600;
}

/* ─── Preview Box ─────────────────────────────────────────────────── */
.avo-preview-box {
    background: var(--avo-surface-2);
    border: 1px solid var(--avo-border);
    border-radius: var(--avo-radius-md);
    padding: 9px 13px;
    font-size: 13px;
    color: var(--avo-text-muted);
    min-height: 38px;
}

/* ════════════════════════════════════════════════════════════════════
   MODALS
════════════════════════════════════════════════════════════════════ */
.avo-modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--avo-overlay-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.avo-modal-overlay[style*="flex"] {
    display: flex !important;
    animation: avoFadeIn 0.2s ease;
}

.avo-modal {
    background: var(--avo-surface);
    border: 1px solid var(--avo-border);
    border-radius: var(--avo-radius-xl);
    box-shadow: var(--avo-shadow-modal);
    width: 100%;
    max-width: 520px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    animation: avoModalIn 0.3s var(--avo-transition-spring);
    overflow: hidden;
}

.avo-modal-wide { max-width: 700px; }
.avo-modal-full { max-width: 96vw; }

.avo-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--avo-border-soft);
    flex-shrink: 0;
    gap: 12px;
}

.avo-modal-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--avo-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.avo-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--avo-border) transparent;
}

.avo-modal-body::-webkit-scrollbar { width: 5px; }
.avo-modal-body::-webkit-scrollbar-thumb { background: var(--avo-border); border-radius: 5px; }

.avo-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid var(--avo-border-soft);
    flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════════
   TOAST
════════════════════════════════════════════════════════════════════ */
.avo-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--avo-surface);
    color: var(--avo-text);
    padding: 11px 20px;
    border-radius: var(--avo-radius-full);
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--avo-shadow-xl);
    border: 1px solid var(--avo-border);
    z-index: 999999;
    opacity: 0;
    transition: transform 0.3s var(--avo-transition-spring), opacity 0.3s ease;
    white-space: nowrap;
    max-width: 440px;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.avo-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ════════════════════════════════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════════════════════════════════ */
@keyframes avoFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes avoDropIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes avoModalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ════════════════════════════════════════════════════════════════════
   SCROLLBARS
════════════════════════════════════════════════════════════════════ */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--avo-border) transparent;
}

*::-webkit-scrollbar { width: 5px; height: 5px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--avo-border); border-radius: 5px; }
*::-webkit-scrollbar-thumb:hover { background: var(--avo-text-light); }

/* ════════════════════════════════════════════════════════════════════
   UTILITIES
════════════════════════════════════════════════════════════════════ */
.hidden { display: none !important; }

:focus-visible {
    outline: 2px solid var(--avo-primary);
    outline-offset: 2px;
}

::selection {
    background: rgba(99,102,241,0.25);
    color: var(--avo-text);
}

kbd {
    background: var(--avo-surface-2);
    border: 1px solid var(--avo-border);
    border-radius: var(--avo-radius-sm);
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 700;
    color: var(--avo-primary);
    font-family: inherit;
}

/* ════════════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤1024px)
════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    :root { --avo-email-panel-width: 280px; }

    .avo-ai-panel { width: 340px; }

    .avo-insights-grid { grid-template-columns: repeat(3,1fr); }

    .avo-modal-wide { max-width: 90vw; }

    .avo-settings-nav {
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid var(--avo-border-soft);
        overflow-x: auto;
        padding: 8px;
        min-width: unset;
        flex-wrap: nowrap;
    }

    .avo-settings-nav-btn { white-space: nowrap; flex-shrink: 0; }
    .avo-modal-wide .avo-modal-body { display: flex; flex-direction: column; }
}

/* ════════════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤768px)
════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    :root {
        --avo-sidebar-width:      280px;
        --avo-header-height:      54px;
        --avo-email-panel-width:  100%;
    }

    /* Sidebar slide-in */
    .avo-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.3s var(--avo-transition-spring);
        z-index: 999;
        width: 280px !important;
        box-shadow: var(--avo-shadow-xl);
    }

    .avo-sidebar.open { transform: translateX(0); }

    /* Mobile: show logo text */
    .avo-sidebar .avo-sidebar-logo-text { opacity: 1 !important; width: auto !important; }
    .avo-sidebar .avo-folder-label { opacity: 1 !important; width: auto !important; }
    .avo-sidebar .avo-folder-badge { opacity: 1 !important; width: auto !important; padding: 2px 6px !important; }
    .avo-sidebar .avo-compose-fab-text { opacity: 1 !important; width: auto !important; }
    .avo-sidebar .avo-sidebar-footer { flex-direction: row; }
    .avo-sidebar .avo-sidebar-footer-label { display: block; opacity: 1; }

    .avo-sidebar-collapse-btn { display: none; }

    /* Header */
    .avo-header { padding: 0 12px; gap: 8px; }
    .avo-header-center { max-width: 180px; }
    .avo-search-input { padding-right: 36px; }
    .avo-search-advanced-btn { display: none; }

    /* Content area: single column on mobile */
    .avo-content-area { flex-direction: column; }

    /* Reading pane hidden on mobile by default */
    .avo-reading-pane {
        position: fixed;
        top: var(--avo-header-height);
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 500;
        transform: translateX(100%);
        transition: transform 0.3s var(--avo-transition-spring);
        background: var(--avo-bg);
    }

    .avo-reading-pane.active { transform: translateX(0); }

    /* Email panel full width on mobile */
    .avo-email-panel { width: 100%; border-right: none; }

    /* Compose window */
    .avo-compose-overlay { padding: 0; align-items: flex-end; justify-content: center; }
    .avo-compose-window {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 85vh !important;
        border-radius: var(--avo-radius-xl) var(--avo-radius-xl) 0 0;
        max-height: 85vh !important;
    }

    /* AI Panel */
    .avo-ai-panel { width: 100%; }

    /* Command palette */
    .avo-command-palette-inner { width: 96vw; }

    /* Modals */
    .avo-modal-overlay { padding: 12px; align-items: flex-end; }
    .avo-modal {
        max-width: 100%;
        border-radius: var(--avo-radius-xl) var(--avo-radius-xl) 0 0;
        animation: avoModalMobileIn 0.3s var(--avo-transition-spring);
    }

    @keyframes avoModalMobileIn {
        from { transform: translateY(60px); opacity: 0; }
        to   { transform: translateY(0);    opacity: 1; }
    }

    .avo-form-grid-2 { grid-template-columns: 1fr; }
    .avo-insights-grid { grid-template-columns: repeat(2,1fr); }

    /* Format toolbar scroll horizontally */
    .avo-format-toolbar { overflow-x: auto; flex-wrap: nowrap; }

    /* Thread */
    .avo-thread-header { padding: 12px 14px; }
    .avo-thread-subject { font-size: 14px; }
    .avo-thread-messages { padding: 6px 10px; }

    /* Filter tabs */
    .avo-filter-tabs { overflow-x: auto; }
    .avo-filter-tab { flex-shrink: 0; }

    /* Selection toolbar */
    .avo-selection-actions { overflow-x: auto; flex-wrap: nowrap; }

    /* Breadcrumb */
    .avo-breadcrumb-wrap { display: none; }

    /* AI quick actions */
    .avo-ai-quick-actions { grid-template-columns: repeat(3,1fr); }

    /* Calendar */
    .avo-cal-cell { min-height: 52px; }
    .avo-cal-day-num { font-size: 11px; }

    /* Settings */
    .avo-settings-nav {
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid var(--avo-border-soft);
        overflow-x: auto;
        padding: 6px;
        flex-wrap: nowrap;
        min-width: unset;
    }

    .avo-modal-wide .avo-modal-body { display: block; }
}

/* ════════════════════════════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤480px)
════════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    .avo-insights-grid  { grid-template-columns: repeat(2,1fr); }
    .avo-modal-footer   { flex-wrap: wrap; }
    .avo-modal-footer .avo-btn { flex: 1; justify-content: center; }
    .avo-compose-window { height: 92vh !important; }
    .avo-ai-quick-actions { grid-template-columns: 1fr 1fr; }
    .avo-thread-reply-bar { gap: 6px; }
    .avo-thread-reply-bar .avo-btn { padding: 6px 10px; font-size: 11px; }
    .avo-cal-cell { min-height: 42px; }
    .avo-cal-event-chip { display: none; }
}

/* ════════════════════════════════════════════════════════════════════
   PRINT
════════════════════════════════════════════════════════════════════ */
@media print {
    .avo-sidebar,
    .avo-header,
    .avo-email-panel,
    .avo-compose-overlay,
    .avo-ai-panel,
    .avo-command-palette,
    .avo-toast { display: none !important; }

    .avo-reading-pane {
        position: static;
        transform: none !important;
        width: 100%;
    }

    .avo-thread { height: auto; }
    .avo-thread-messages { overflow: visible; }
}