/* /Components/Layout/MainLayout.razor.rz.scp.css */
*[b-on0qldx6et] {
    box-sizing: border-box;
}

.app-container[b-on0qldx6et] {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: 100vh;
    background-color: #1a1a2e;
    color: #eee;
    overflow: hidden;
}

.app-header[b-on0qldx6et] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: #16213e;
    border-bottom: 1px solid #0f3460;
    position: sticky;
    top: 0;
    z-index: 100;
    flex-shrink: 0;
}

.header-brand h1[b-on0qldx6et] {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #e94560;
}

.header-actions[b-on0qldx6et] {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.token-indicator[b-on0qldx6et] {
    font-size: 0.875rem;
    color: #888;
}

.app-content[b-on0qldx6et] {
    flex: 1;
    display: flex;
    overflow: auto;
    min-height: 0;
}

#blazor-error-ui[b-on0qldx6et] {
    background: #800;
    color: white;
    padding: 0.5rem;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    display: none;
}

#blazor-error-ui .dismiss[b-on0qldx6et] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* === HEADER LEFT GROUP === */
.header-left[b-on0qldx6et] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* === HAMBURGER BUTTON === */
.hamburger-btn[b-on0qldx6et] {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #e94560;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.15s;
}

.hamburger-btn:hover[b-on0qldx6et] {
    background-color: rgba(233, 69, 96, 0.1);
}

.hamburger-btn:active[b-on0qldx6et] {
    background-color: rgba(233, 69, 96, 0.2);
}

.hamburger-icon[b-on0qldx6et] {
    line-height: 1;
}

/* === SIDEBAR BACKDROP === */
.sidebar-backdrop[b-on0qldx6et] {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-backdrop.visible[b-on0qldx6et],
:global(body.sidebar-open) .sidebar-backdrop[b-on0qldx6et] {
    opacity: 1;
    visibility: visible;
}

/* === TABLET BREAKPOINT (max-width: 1024px) === */
@media (max-width: 1024px) {
    .hamburger-btn[b-on0qldx6et] {
        display: flex;
    }

    .sidebar-backdrop[b-on0qldx6et] {
        display: block;
    }

    .app-header[b-on0qldx6et] {
        padding: 0.5rem 1rem;
    }

    .header-brand h1[b-on0qldx6et] {
        font-size: 1.1rem;
    }

    .header-actions[b-on0qldx6et] {
        gap: 0.5rem;
    }
}

/* === MOBILE BREAKPOINT (max-width: 640px) === */
@media (max-width: 640px) {
    .app-header[b-on0qldx6et] {
        padding: 0.5rem 0.75rem;
        min-height: 48px;
    }

    .header-left[b-on0qldx6et] {
        flex-shrink: 0;
    }

    .header-brand h1[b-on0qldx6et] {
        font-size: 1rem;
    }

    .hamburger-btn[b-on0qldx6et] {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }

    .header-actions[b-on0qldx6et] {
        gap: 0.375rem;
        flex-shrink: 1;
        min-width: 0;
        overflow: hidden;
    }
}

/* === VERY SMALL MOBILE (max-width: 380px) === */
@media (max-width: 380px) {
    .app-header[b-on0qldx6et] {
        padding: 0.375rem 0.5rem;
    }

    .header-brand h1[b-on0qldx6et] {
        font-size: 0.9rem;
    }

    .hamburger-btn[b-on0qldx6et] {
        width: 32px;
        height: 32px;
        font-size: 1.125rem;
    }

    .header-actions[b-on0qldx6et] {
        gap: 0.25rem;
    }
}
/* /Components/Pages/Admin/Usage.razor.rz.scp.css */
.usage-dashboard[b-pysigh66lm] {
    padding: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    color: var(--text-primary, #e0e0e0);
}

.dashboard-header[b-pysigh66lm] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-header h1[b-pysigh66lm] {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary, #e0e0e0);
}

.date-range-picker[b-pysigh66lm] {
    display: flex;
    gap: 0.5rem;
}

.range-btn[b-pysigh66lm] {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color, #3a3a3a);
    background: var(--bg-secondary, #2a2a2a);
    color: var(--text-secondary, #a0a0a0);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.range-btn:hover[b-pysigh66lm] {
    background: var(--bg-tertiary, #3a3a3a);
    color: var(--text-primary, #e0e0e0);
}

.range-btn.active[b-pysigh66lm] {
    background: var(--accent-color, #6366f1);
    border-color: var(--accent-color, #6366f1);
    color: white;
}

/* Summary Cards */
.summary-cards[b-pysigh66lm] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.summary-card[b-pysigh66lm] {
    background: var(--bg-secondary, #2a2a2a);
    border: 1px solid var(--border-color, #3a3a3a);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-icon[b-pysigh66lm] {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.cost-icon[b-pysigh66lm] {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.requests-icon[b-pysigh66lm] {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
}

.tokens-icon[b-pysigh66lm] {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.latency-icon[b-pysigh66lm] {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    color: white;
    font-size: 0.875rem;
}

.card-content[b-pysigh66lm] {
    display: flex;
    flex-direction: column;
}

.card-value[b-pysigh66lm] {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, #e0e0e0);
    line-height: 1.2;
}

.card-label[b-pysigh66lm] {
    font-size: 0.875rem;
    color: var(--text-secondary, #a0a0a0);
    margin-top: 0.25rem;
}

/* Sections */
.dashboard-section[b-pysigh66lm] {
    margin-bottom: 2rem;
}

.dashboard-section h2[b-pysigh66lm] {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary, #e0e0e0);
}

/* Tables */
.table-container[b-pysigh66lm] {
    background: var(--bg-secondary, #2a2a2a);
    border: 1px solid var(--border-color, #3a3a3a);
    border-radius: 12px;
    overflow: hidden;
}

.data-table[b-pysigh66lm] {
    width: 100%;
    border-collapse: collapse;
}

.data-table th[b-pysigh66lm],
.data-table td[b-pysigh66lm] {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color, #3a3a3a);
}

.data-table th[b-pysigh66lm] {
    background: var(--bg-tertiary, #1a1a1a);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary, #a0a0a0);
}

.data-table tbody tr:last-child td[b-pysigh66lm] {
    border-bottom: none;
}

.data-table tbody tr:hover[b-pysigh66lm] {
    background: var(--bg-tertiary, #333);
}

.provider-name[b-pysigh66lm] {
    font-weight: 600;
}

.cost[b-pysigh66lm] {
    color: #10b981;
    font-weight: 500;
}

.error-count[b-pysigh66lm] {
    color: #ef4444;
    font-weight: 600;
}

.success-high[b-pysigh66lm] {
    color: #10b981;
}

.success-medium[b-pysigh66lm] {
    color: #f59e0b;
}

.success-low[b-pysigh66lm] {
    color: #ef4444;
}

/* Subject Area Styling */
.subject-name[b-pysigh66lm] {
    font-weight: 600;
}

tr.deleted-area[b-pysigh66lm] {
    opacity: 0.65;
}

tr.deleted-area td.subject-name[b-pysigh66lm] {
    color: var(--text-secondary, #a0a0a0);
    font-style: italic;
}

/* Loading and Empty States */
.loading[b-pysigh66lm],
.no-data[b-pysigh66lm] {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary, #a0a0a0);
    background: var(--bg-secondary, #2a2a2a);
    border-radius: 12px;
    border: 1px solid var(--border-color, #3a3a3a);
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    .dashboard-header[b-pysigh66lm] {
        flex-direction: column;
        align-items: flex-start;
    }

    .date-range-picker[b-pysigh66lm] {
        width: 100%;
    }

    .summary-cards[b-pysigh66lm] {
        grid-template-columns: repeat(2, 1fr);
    }

    .table-container[b-pysigh66lm] {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .data-table[b-pysigh66lm] {
        min-width: 600px;
    }
}

/* Responsive - Mobile */
@media (max-width: 640px) {
    .usage-dashboard[b-pysigh66lm] {
        padding: 1rem;
        overflow-x: hidden;
    }

    .dashboard-header[b-pysigh66lm] {
        gap: 0.75rem;
    }

    .dashboard-header h1[b-pysigh66lm] {
        font-size: 1.25rem;
    }

    .date-range-picker[b-pysigh66lm] {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        width: 100%;
    }

    .range-btn[b-pysigh66lm] {
        width: 100%;
        text-align: center;
        padding: 0.625rem 0.5rem;
        font-size: 0.8125rem;
    }

    .summary-cards[b-pysigh66lm] {
        grid-template-columns: 1fr;
    }

    .summary-card[b-pysigh66lm] {
        padding: 1rem;
    }

    .card-icon[b-pysigh66lm] {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .card-value[b-pysigh66lm] {
        font-size: 1.25rem;
    }

    .card-label[b-pysigh66lm] {
        font-size: 0.8125rem;
    }

    .dashboard-section h2[b-pysigh66lm] {
        font-size: 1.125rem;
    }

    .data-table th[b-pysigh66lm],
    .data-table td[b-pysigh66lm] {
        padding: 0.625rem 0.75rem;
        font-size: 0.8125rem;
    }

    .data-table th[b-pysigh66lm] {
        font-size: 0.6875rem;
    }
}

/* Very small mobile */
@media (max-width: 380px) {
    .usage-dashboard[b-pysigh66lm] {
        padding: 0.75rem;
    }

    .dashboard-header h1[b-pysigh66lm] {
        font-size: 1.125rem;
    }

    .range-btn[b-pysigh66lm] {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
    }

    .summary-card[b-pysigh66lm] {
        padding: 0.875rem;
        gap: 0.75rem;
    }

    .card-icon[b-pysigh66lm] {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }

    .card-value[b-pysigh66lm] {
        font-size: 1.125rem;
    }
}
/* /Components/Pages/Home.razor.rz.scp.css */
.main-layout[b-0fn35o7x4d] {
    display: flex;
    flex: 1;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

/* Sidebar */
.sidebar[b-0fn35o7x4d] {
    width: 280px;
    background-color: #16213e;
    border-right: 1px solid #0f3460;
    display: flex;
    flex-direction: column;
}

.sidebar-header[b-0fn35o7x4d] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #0f3460;
}

.sidebar-header h2[b-0fn35o7x4d] {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.shortcut-hint[b-0fn35o7x4d] {
    font-size: 0.625rem;
    font-weight: 500;
    color: #555;
    background-color: #252540;
    border: 1px solid #0f3460;
    border-radius: 4px;
    padding: 0.125rem 0.375rem;
    cursor: pointer;
    transition: all 0.15s;
}

.shortcut-hint:hover[b-0fn35o7x4d] {
    color: #888;
    border-color: #444;
}

.btn-icon[b-0fn35o7x4d] {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 4px;
    background-color: #e94560;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover[b-0fn35o7x4d] {
    background-color: #ff6b6b;
}

.subject-list[b-0fn35o7x4d] {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

.subject-item[b-0fn35o7x4d] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 0.25rem;
    transition: background-color 0.15s;
}

.subject-item:hover[b-0fn35o7x4d] {
    background-color: #1f2b4d;
}

.subject-item.active[b-0fn35o7x4d] {
    background-color: #0f3460;
    color: white;
}

.subject-name[b-0fn35o7x4d] {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.subject-date[b-0fn35o7x4d] {
    font-size: 0.75rem;
    color: #666;
}

.subject-indicators[b-0fn35o7x4d] {
    display: flex;
    gap: 0.25rem;
    margin-left: auto;
    flex-shrink: 0;
    align-items: center;
}

.event-badge[b-0fn35o7x4d] {
    font-size: 0.625rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
}

.event-badge.overdue[b-0fn35o7x4d] {
    background-color: #ff6b6b;
    color: white;
}

.event-badge.due-today[b-0fn35o7x4d] {
    background-color: #ffa500;
    color: white;
}

.loading[b-0fn35o7x4d], .empty-state[b-0fn35o7x4d] {
    padding: 1rem;
    color: #666;
    text-align: center;
    font-size: 0.875rem;
}

/* Chat Area */
.chat-area[b-0fn35o7x4d] {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #1a1a2e;
    min-height: 0;
    overflow: hidden;
}

.welcome-screen[b-0fn35o7x4d] {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #888;
    padding: 2rem;
    text-align: center;
}

.welcome-screen h2[b-0fn35o7x4d] {
    margin-bottom: 0.75rem;
    color: #aaa;
    font-size: 1.5rem;
}

.welcome-screen p[b-0fn35o7x4d] {
    font-size: 1rem;
    max-width: 400px;
    line-height: 1.5;
}

.welcome-screen .menu-hint[b-0fn35o7x4d] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: #e94560;
    color: white;
    border-radius: 4px;
    font-size: 1rem;
    vertical-align: middle;
    margin: 0 0.25rem;
}

.chat-header[b-0fn35o7x4d] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #0f3460;
}

.chat-header-left[b-0fn35o7x4d] {
    flex: 1;
}

.chat-header-right[b-0fn35o7x4d] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-header h2[b-0fn35o7x4d] {
    margin: 0;
    font-size: 1.25rem;
    color: #fff;
}

.subject-description[b-0fn35o7x4d] {
    margin: 0.25rem 0 0 0;
    font-size: 0.875rem;
    color: #666;
}

.context-indicator[b-0fn35o7x4d] {
    font-size: 0.75rem;
    color: #e94560;
    background-color: rgba(233, 69, 96, 0.15);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.btn-summarize[b-0fn35o7x4d] {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: transparent;
    color: #aaa;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-summarize:hover:not(:disabled)[b-0fn35o7x4d] {
    background-color: #252540;
    color: #fff;
    border-color: #e94560;
}

.btn-summarize:disabled[b-0fn35o7x4d] {
    opacity: 0.5;
    cursor: not-allowed;
}

.token-indicator[b-0fn35o7x4d] {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.token-indicator.normal[b-0fn35o7x4d] {
    color: #6495ed;
    background-color: rgba(100, 149, 237, 0.15);
}

.token-indicator.warning[b-0fn35o7x4d] {
    color: #ffa500;
    background-color: rgba(255, 165, 0, 0.15);
}

.token-indicator.high[b-0fn35o7x4d] {
    color: #ff6b6b;
    background-color: rgba(255, 107, 107, 0.15);
}

.token-indicator.critical[b-0fn35o7x4d] {
    color: #ff4444;
    background-color: rgba(255, 68, 68, 0.25);
    animation: pulse-b-0fn35o7x4d 1.5s infinite;
}

@keyframes pulse-b-0fn35o7x4d {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.btn-icon-sm[b-0fn35o7x4d] {
    width: 24px;
    height: 24px;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: transparent;
    color: #888;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-sm:hover[b-0fn35o7x4d] {
    background-color: #252540;
    color: #fff;
}

/* Thread Tabs */
.thread-tabs[b-0fn35o7x4d] {
    display: flex;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    background-color: #16213e;
    border-bottom: 1px solid #0f3460;
    overflow-x: auto;
}

.thread-tab[b-0fn35o7x4d] {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 6px;
    background-color: transparent;
    color: #888;
    font-size: 0.875rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s, color 0.15s;
}

.thread-tab:hover[b-0fn35o7x4d] {
    background-color: #1f2b4d;
    color: #ccc;
}

.thread-tab.active[b-0fn35o7x4d] {
    background-color: #0f3460;
    color: #fff;
}

.thread-icon[b-0fn35o7x4d] {
    color: #e94560;
    font-size: 0.5rem;
}

.thread-title[b-0fn35o7x4d] {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.thread-tab.add-thread[b-0fn35o7x4d] {
    color: #666;
    font-size: 1rem;
    padding: 0.5rem;
    min-width: 32px;
    justify-content: center;
}

.thread-tab.add-thread:hover[b-0fn35o7x4d] {
    color: #e94560;
    background-color: rgba(233, 69, 96, 0.1);
}

/* Chat Content Layout */
.chat-content[b-0fn35o7x4d] {
    flex: 1;
    display: flex;
    overflow: hidden;
    min-height: 0;
}

.messages-area[b-0fn35o7x4d] {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.messages-container[b-0fn35o7x4d] {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 1.5rem;
    min-height: 0;
}

.message[b-0fn35o7x4d] {
    margin-bottom: 1.5rem;
    max-width: 85%;
}

.message.user[b-0fn35o7x4d] {
    margin-left: auto;
}

.message.assistant[b-0fn35o7x4d] {
    margin-right: auto;
}

.message-header[b-0fn35o7x4d] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.message-role[b-0fn35o7x4d] {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.message.user .message-header[b-0fn35o7x4d] {
    flex-direction: row-reverse;
}

.message-actions[b-0fn35o7x4d] {
    display: flex;
    gap: 0.25rem;
}

.message.user .message-actions[b-0fn35o7x4d] {
    flex-direction: row-reverse;
}

.btn-action[b-0fn35o7x4d] {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 4px;
    background-color: transparent;
    color: #555;
    font-size: 0.875rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message:hover .btn-action[b-0fn35o7x4d] {
    opacity: 1;
}

.btn-action:hover[b-0fn35o7x4d] {
    background-color: rgba(255, 255, 255, 0.1);
    color: #aaa;
}

.btn-copy.copied[b-0fn35o7x4d] {
    opacity: 1;
    color: #4caf50;
}

.btn-edit:hover[b-0fn35o7x4d] {
    color: #64b5f6;
}

.btn-regenerate:hover[b-0fn35o7x4d] {
    color: #81c784;
}

.message-content[b-0fn35o7x4d] {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.message.user .message-content[b-0fn35o7x4d] {
    background-color: #0f3460;
    color: #fff;
}

.message.assistant .message-content[b-0fn35o7x4d] {
    background-color: #252540;
    color: #ddd;
}

.message.loading .message-content[b-0fn35o7x4d] {
    color: #888;
    font-style: italic;
}

.message.streaming .message-content[b-0fn35o7x4d] {
    color: #ddd;
}

.message.streaming .message-content[b-0fn35o7x4d]::after {
    content: "▌";
    animation: blink-b-0fn35o7x4d 1s step-end infinite;
    color: #e94560;
}

@keyframes blink-b-0fn35o7x4d {
    50% { opacity: 0; }
}

/* Markdown in chat messages */
.message-content.markdown-body[b-0fn35o7x4d] {
    white-space: normal;
}

.message-content.markdown-body > *:first-child[b-0fn35o7x4d] {
    margin-top: 0;
}

.message-content.markdown-body > *:last-child[b-0fn35o7x4d] {
    margin-bottom: 0;
}

.message-content.markdown-body p:first-child[b-0fn35o7x4d] {
    margin-top: 0;
}

.message-content.markdown-body p:last-child[b-0fn35o7x4d] {
    margin-bottom: 0;
}

/* Context Transparency */
.context-transparency[b-0fn35o7x4d] {
    background-color: #16213e;
    border-top: 1px solid #0f3460;
    font-size: 0.8125rem;
}

.context-transparency-toggle[b-0fn35o7x4d] {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    color: #888;
    cursor: pointer;
    text-align: left;
}

.context-transparency-toggle:hover[b-0fn35o7x4d] {
    color: #aaa;
    background-color: rgba(255, 255, 255, 0.02);
}

.toggle-icon[b-0fn35o7x4d] {
    font-size: 0.625rem;
    width: 1rem;
}

.context-details[b-0fn35o7x4d] {
    padding: 0.5rem 1rem 0.75rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.context-section[b-0fn35o7x4d] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
}

.section-label[b-0fn35o7x4d] {
    color: #666;
    font-size: 0.75rem;
    min-width: 80px;
}

.context-doc-chip[b-0fn35o7x4d] {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.context-doc-chip.pinned[b-0fn35o7x4d] {
    background-color: rgba(233, 69, 96, 0.2);
    color: #e94560;
}

.context-doc-chip.auto[b-0fn35o7x4d] {
    background-color: rgba(100, 149, 237, 0.2);
    color: #6495ed;
}

/* Input Area */
.input-area[b-0fn35o7x4d] {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #0f3460;
    background-color: #16213e;
}

.input-area textarea[b-0fn35o7x4d] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #0f3460;
    border-radius: 8px;
    background-color: #1a1a2e;
    color: #fff;
    font-family: inherit;
    font-size: 0.9375rem;
    resize: none;
}

.input-area textarea:focus[b-0fn35o7x4d] {
    outline: none;
    border-color: #e94560;
}

.input-area textarea:disabled[b-0fn35o7x4d] {
    opacity: 0.6;
}

.btn-send[b-0fn35o7x4d] {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    background-color: #e94560;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s;
}

.btn-send:hover:not(:disabled)[b-0fn35o7x4d] {
    background-color: #ff6b6b;
}

.btn-send:disabled[b-0fn35o7x4d] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Modal */
.modal-overlay[b-0fn35o7x4d] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal[b-0fn35o7x4d] {
    background-color: #16213e;
    border-radius: 12px;
    padding: 1.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal h3[b-0fn35o7x4d] {
    margin: 0 0 1.25rem 0;
    color: #fff;
}

.form-group[b-0fn35o7x4d] {
    margin-bottom: 1rem;
}

.form-group label[b-0fn35o7x4d] {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    color: #aaa;
}

.form-group input[b-0fn35o7x4d],
.form-group textarea[b-0fn35o7x4d] {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #0f3460;
    border-radius: 6px;
    background-color: #1a1a2e;
    color: #fff;
    font-family: inherit;
    font-size: 0.9375rem;
}

.form-group input:focus[b-0fn35o7x4d],
.form-group textarea:focus[b-0fn35o7x4d] {
    outline: none;
    border-color: #e94560;
}

.modal-actions[b-0fn35o7x4d] {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn-primary[b-0fn35o7x4d],
.btn-secondary[b-0fn35o7x4d] {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s;
}

.btn-primary[b-0fn35o7x4d] {
    background-color: #e94560;
    color: white;
}

.btn-primary:hover:not(:disabled)[b-0fn35o7x4d] {
    background-color: #ff6b6b;
}

.btn-primary:disabled[b-0fn35o7x4d] {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary[b-0fn35o7x4d] {
    background-color: transparent;
    border: 1px solid #444;
    color: #aaa;
}

.btn-secondary:hover[b-0fn35o7x4d] {
    background-color: #252540;
}

/* Context Panel */
.context-panel[b-0fn35o7x4d] {
    width: 300px;
    background-color: #16213e;
    border-left: 1px solid #0f3460;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.context-panel-header[b-0fn35o7x4d] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #0f3460;
}

.context-panel-header h3[b-0fn35o7x4d] {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-actions[b-0fn35o7x4d] {
    display: flex;
    gap: 0.375rem;
}

.context-docs-list[b-0fn35o7x4d] {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

.context-doc-item[b-0fn35o7x4d] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 6px;
    margin-bottom: 0.25rem;
    transition: background-color 0.15s;
}

.context-doc-item:hover[b-0fn35o7x4d] {
    background-color: #1f2b4d;
}

.context-doc-item.pinned[b-0fn35o7x4d] {
    background-color: rgba(233, 69, 96, 0.1);
}

.btn-pin[b-0fn35o7x4d] {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 4px;
    background-color: transparent;
    color: #555;
    font-size: 0.875rem;
    cursor: pointer;
    flex-shrink: 0;
}

.btn-pin:hover[b-0fn35o7x4d] {
    color: #e94560;
}

.btn-pin.active[b-0fn35o7x4d] {
    color: #e94560;
}

.doc-info[b-0fn35o7x4d] {
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

.doc-title[b-0fn35o7x4d] {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #ddd;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.doc-preview[b-0fn35o7x4d] {
    display: block;
    font-size: 0.75rem;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 0.125rem;
}

.btn-delete[b-0fn35o7x4d] {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 4px;
    background-color: transparent;
    color: #555;
    font-size: 1rem;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.15s;
}

.context-doc-item:hover .btn-delete[b-0fn35o7x4d] {
    opacity: 1;
}

.btn-delete:hover[b-0fn35o7x4d] {
    color: #ff6b6b;
    background-color: rgba(255, 107, 107, 0.1);
}

/* Large Modal for Document Editor */
.modal-large[b-0fn35o7x4d] {
    max-width: 700px;
}

.doc-editor[b-0fn35o7x4d] {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    resize: vertical;
}

/* Document Editor Tabs */
.doc-tabs[b-0fn35o7x4d] {
    display: flex;
    gap: 0;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #0f3460;
}

.doc-tab[b-0fn35o7x4d] {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #888;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.doc-tab:hover[b-0fn35o7x4d] {
    color: #ccc;
    background-color: rgba(255, 255, 255, 0.03);
}

.doc-tab.active[b-0fn35o7x4d] {
    color: #e94560;
    border-bottom-color: #e94560;
}

/* Modal Preview Container */
.modal-preview-container[b-0fn35o7x4d] {
    margin-top: 1rem;
}

.modal-preview-title[b-0fn35o7x4d] {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #0f3460;
}

/* Modal Markdown Preview Panel */
.modal-preview[b-0fn35o7x4d] {
    min-height: 280px;
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    background-color: #1a1a2e;
    border: 1px solid #0f3460;
    border-radius: 6px;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.modal-preview .preview-empty[b-0fn35o7x4d] {
    color: #666;
    font-style: italic;
}

/* Markdown Body Styles */
.markdown-body[b-0fn35o7x4d] {
    color: #e0e0e0;
}

.markdown-body h1[b-0fn35o7x4d],
.markdown-body h2[b-0fn35o7x4d],
.markdown-body h3[b-0fn35o7x4d],
.markdown-body h4[b-0fn35o7x4d],
.markdown-body h5[b-0fn35o7x4d],
.markdown-body h6[b-0fn35o7x4d] {
    color: #fff;
    margin-top: 1.25em;
    margin-bottom: 0.5em;
    font-weight: 600;
    line-height: 1.3;
}

.markdown-body h1[b-0fn35o7x4d] { font-size: 1.5rem; border-bottom: 1px solid #0f3460; padding-bottom: 0.3em; }
.markdown-body h2[b-0fn35o7x4d] { font-size: 1.3rem; border-bottom: 1px solid #0f3460; padding-bottom: 0.3em; }
.markdown-body h3[b-0fn35o7x4d] { font-size: 1.15rem; }
.markdown-body h4[b-0fn35o7x4d] { font-size: 1rem; }

.markdown-body p[b-0fn35o7x4d] {
    margin: 0.75em 0;
}

.markdown-body ul[b-0fn35o7x4d],
.markdown-body ol[b-0fn35o7x4d] {
    margin: 0.75em 0;
    padding-left: 1.5em;
}

.markdown-body li[b-0fn35o7x4d] {
    margin: 0.25em 0;
}

.markdown-body strong[b-0fn35o7x4d] {
    color: #fff;
    font-weight: 600;
}

.markdown-body em[b-0fn35o7x4d] {
    font-style: italic;
}

.markdown-body code[b-0fn35o7x4d] {
    background-color: rgba(233, 69, 96, 0.15);
    color: #e94560;
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.875em;
}

.markdown-body pre[b-0fn35o7x4d] {
    background-color: #0d1b2a;
    border: 1px solid #0f3460;
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1em 0;
}

.markdown-body pre code[b-0fn35o7x4d] {
    background: none;
    color: #e0e0e0;
    padding: 0;
}

.markdown-body blockquote[b-0fn35o7x4d] {
    border-left: 3px solid #e94560;
    margin: 1em 0;
    padding: 0.5em 1em;
    background-color: rgba(233, 69, 96, 0.05);
    color: #ccc;
}

.markdown-body hr[b-0fn35o7x4d] {
    border: none;
    border-top: 1px solid #0f3460;
    margin: 1.5em 0;
}

.markdown-body a[b-0fn35o7x4d] {
    color: #64b5f6;
    text-decoration: none;
}

.markdown-body a:hover[b-0fn35o7x4d] {
    text-decoration: underline;
}

.markdown-body table[b-0fn35o7x4d] {
    border-collapse: collapse;
    width: 100%;
    margin: 1em 0;
}

.markdown-body th[b-0fn35o7x4d],
.markdown-body td[b-0fn35o7x4d] {
    border: 1px solid #0f3460;
    padding: 0.5em 0.75em;
    text-align: left;
}

.markdown-body th[b-0fn35o7x4d] {
    background-color: #0d1b2a;
    font-weight: 600;
}

.markdown-body tr:nth-child(even)[b-0fn35o7x4d] {
    background-color: rgba(15, 52, 96, 0.3);
}

/* Panel Sections */
.panel-section[b-0fn35o7x4d] {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.panel-section:first-child[b-0fn35o7x4d] {
    flex: 1;
}

.events-section[b-0fn35o7x4d] {
    border-top: 1px solid #0f3460;
    max-height: 40%;
}

/* Events List */
.events-list[b-0fn35o7x4d] {
    overflow-y: auto;
    padding: 0.5rem;
}

.events-group[b-0fn35o7x4d] {
    margin-bottom: 0.75rem;
}

.events-group-label[b-0fn35o7x4d] {
    display: block;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin-bottom: 0.375rem;
    padding-left: 0.25rem;
}

.events-group.overdue .events-group-label[b-0fn35o7x4d] {
    color: #ff6b6b;
}

.event-item[b-0fn35o7x4d] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 6px;
    margin-bottom: 0.25rem;
    cursor: pointer;
    transition: background-color 0.15s;
}

.event-item:hover[b-0fn35o7x4d] {
    background-color: #1f2b4d;
}

.event-item.overdue[b-0fn35o7x4d] {
    background-color: rgba(255, 107, 107, 0.1);
}

.event-status-dot[b-0fn35o7x4d] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.event-status-dot.overdue[b-0fn35o7x4d] {
    background-color: #ff6b6b;
}

.event-status-dot.soon[b-0fn35o7x4d] {
    background-color: #ffa500;
}

.event-status-dot.upcoming[b-0fn35o7x4d] {
    background-color: #6495ed;
}

.event-status-dot.later[b-0fn35o7x4d] {
    background-color: #666;
}

.event-info[b-0fn35o7x4d] {
    flex: 1;
    min-width: 0;
}

.event-title[b-0fn35o7x4d] {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #ddd;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-date[b-0fn35o7x4d] {
    display: block;
    font-size: 0.6875rem;
    color: #666;
    margin-top: 0.125rem;
}

.event-item.overdue .event-date[b-0fn35o7x4d] {
    color: #ff6b6b;
}

.btn-complete[b-0fn35o7x4d] {
    width: 22px;
    height: 22px;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: transparent;
    color: #555;
    font-size: 0.75rem;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 0;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-item:hover .btn-complete[b-0fn35o7x4d] {
    opacity: 1;
}

.btn-complete:hover[b-0fn35o7x4d] {
    color: #4caf50;
    border-color: #4caf50;
    background-color: rgba(76, 175, 80, 0.1);
}

/* Danger button for delete in event dialog */
.btn-danger[b-0fn35o7x4d] {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    background-color: transparent;
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
    margin-right: auto;
    transition: all 0.15s;
}

.btn-danger:hover[b-0fn35o7x4d] {
    background-color: rgba(255, 107, 107, 0.15);
}

/* Form select styling */
.form-group select[b-0fn35o7x4d] {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #0f3460;
    border-radius: 6px;
    background-color: #1a1a2e;
    color: #fff;
    font-family: inherit;
    font-size: 0.9375rem;
    cursor: pointer;
}

.form-group select:focus[b-0fn35o7x4d] {
    outline: none;
    border-color: #e94560;
}

/* Quick Subject Switcher (Ctrl+K) */
.quick-switcher-overlay[b-0fn35o7x4d] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    z-index: 2000;
    animation: fadeIn-b-0fn35o7x4d 0.1s ease-out;
}

@keyframes fadeIn-b-0fn35o7x4d {
    from { opacity: 0; }
    to { opacity: 1; }
}

.quick-switcher[b-0fn35o7x4d] {
    background-color: #16213e;
    border: 1px solid #0f3460;
    border-radius: 12px;
    width: 100%;
    max-width: 550px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: slideDown-b-0fn35o7x4d 0.15s ease-out;
}

@keyframes slideDown-b-0fn35o7x4d {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quick-switcher-input[b-0fn35o7x4d] {
    width: 100%;
    padding: 1rem 1.25rem;
    border: none;
    background-color: #1a1a2e;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    border-bottom: 1px solid #0f3460;
}

.quick-switcher-input:focus[b-0fn35o7x4d] {
    outline: none;
}

.quick-switcher-input[b-0fn35o7x4d]::placeholder {
    color: #555;
}

.quick-switcher-results[b-0fn35o7x4d] {
    max-height: 300px;
    overflow-y: auto;
}

.quick-switcher-item[b-0fn35o7x4d] {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: background-color 0.1s;
}

.quick-switcher-item:hover[b-0fn35o7x4d],
.quick-switcher-item.selected[b-0fn35o7x4d] {
    background-color: #0f3460;
}

.quick-switcher-item .subject-name[b-0fn35o7x4d] {
    flex: 1;
    font-weight: 500;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quick-switcher-item .subject-desc[b-0fn35o7x4d] {
    color: #666;
    font-size: 0.8125rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quick-switcher-item .subject-date[b-0fn35o7x4d] {
    color: #555;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.quick-switcher-empty[b-0fn35o7x4d] {
    padding: 2rem 1.25rem;
    text-align: center;
    color: #666;
    font-size: 0.875rem;
}

.quick-switcher-footer[b-0fn35o7x4d] {
    display: flex;
    gap: 1.5rem;
    padding: 0.625rem 1.25rem;
    border-top: 1px solid #0f3460;
    background-color: #0d1b2a;
    font-size: 0.75rem;
    color: #555;
}

.quick-switcher-footer kbd[b-0fn35o7x4d] {
    display: inline-block;
    padding: 0.15rem 0.4rem;
    background-color: #252540;
    border: 1px solid #0f3460;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.6875rem;
    color: #888;
    margin-right: 0.375rem;
}

/* Global Search Modal (Ctrl+/) */
.search-overlay[b-0fn35o7x4d] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
    z-index: 2000;
    animation: fadeIn-b-0fn35o7x4d 0.1s ease-out;
}

.search-modal[b-0fn35o7x4d] {
    background-color: #16213e;
    border: 1px solid #0f3460;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: slideDown-b-0fn35o7x4d 0.15s ease-out;
}

.search-header[b-0fn35o7x4d] {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #0f3460;
    background-color: #1a1a2e;
}

.search-input[b-0fn35o7x4d] {
    flex: 1;
    padding: 0.625rem 0.875rem;
    border: 1px solid #0f3460;
    border-radius: 6px;
    background-color: #252540;
    color: #fff;
    font-size: 0.9375rem;
    font-family: inherit;
}

.search-input:focus[b-0fn35o7x4d] {
    outline: none;
    border-color: #e94560;
}

.search-input[b-0fn35o7x4d]::placeholder {
    color: #555;
}

.btn-search[b-0fn35o7x4d] {
    padding: 0.625rem 1rem;
    border: none;
    border-radius: 6px;
    background-color: #e94560;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s;
}

.btn-search:hover:not(:disabled)[b-0fn35o7x4d] {
    background-color: #ff6b6b;
}

.btn-search:disabled[b-0fn35o7x4d] {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-close-modal[b-0fn35o7x4d] {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 6px;
    background-color: transparent;
    color: #888;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
}

.btn-close-modal:hover[b-0fn35o7x4d] {
    background-color: #e94560;
    color: white;
}

.search-filters[b-0fn35o7x4d] {
    display: flex;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #0f3460;
}

.filter-btn[b-0fn35o7x4d] {
    padding: 0.375rem 0.75rem;
    border: 1px solid #0f3460;
    border-radius: 4px;
    background-color: transparent;
    color: #888;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.15s;
}

.filter-btn:hover[b-0fn35o7x4d] {
    background-color: #1f2b4d;
    color: #ccc;
}

.filter-btn.active[b-0fn35o7x4d] {
    background-color: #0f3460;
    color: #fff;
    border-color: #e94560;
}

.search-results[b-0fn35o7x4d] {
    max-height: 350px;
    overflow-y: auto;
}

.search-result-item[b-0fn35o7x4d] {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.1s;
    border-bottom: 1px solid rgba(15, 52, 96, 0.5);
}

.search-result-item:hover[b-0fn35o7x4d] {
    background-color: #0f3460;
}

.search-result-item:last-child[b-0fn35o7x4d] {
    border-bottom: none;
}

.result-type[b-0fn35o7x4d] {
    flex-shrink: 0;
    width: 36px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    background-color: rgba(233, 69, 96, 0.2);
    color: #e94560;
}

.result-content[b-0fn35o7x4d] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.result-title[b-0fn35o7x4d] {
    font-weight: 500;
    color: #fff;
    font-size: 0.875rem;
}

.result-highlight[b-0fn35o7x4d] {
    font-size: 0.8125rem;
    color: #888;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.result-date[b-0fn35o7x4d] {
    font-size: 0.6875rem;
    color: #555;
}

.search-empty[b-0fn35o7x4d] {
    padding: 2rem 1rem;
    text-align: center;
    color: #666;
    font-size: 0.875rem;
}

.search-footer[b-0fn35o7x4d] {
    display: flex;
    gap: 1.5rem;
    padding: 0.5rem 1rem;
    border-top: 1px solid #0f3460;
    background-color: #0d1b2a;
    font-size: 0.75rem;
    color: #555;
}

.search-footer kbd[b-0fn35o7x4d] {
    display: inline-block;
    padding: 0.15rem 0.4rem;
    background-color: #252540;
    border: 1px solid #0f3460;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.6875rem;
    color: #888;
    margin-right: 0.375rem;
}

/* Daily Conversation Navigation */
.daily-nav[b-0fn35o7x4d] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #16213e;
    border-bottom: 1px solid #0f3460;
}

.daily-nav-btn[b-0fn35o7x4d] {
    width: 32px;
    height: 32px;
    border: 1px solid #0f3460;
    border-radius: 6px;
    background-color: transparent;
    color: #888;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.daily-nav-btn:hover:not(:disabled)[b-0fn35o7x4d] {
    background-color: #1f2b4d;
    color: #fff;
    border-color: #e94560;
}

.daily-nav-btn:disabled[b-0fn35o7x4d] {
    opacity: 0.4;
    cursor: not-allowed;
}

.daily-nav-date[b-0fn35o7x4d] {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 1px solid #0f3460;
    border-radius: 6px;
    background-color: #1a1a2e;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.daily-nav-date:hover[b-0fn35o7x4d] {
    background-color: #252540;
    border-color: #e94560;
}

.summarizing-indicator[b-0fn35o7x4d] {
    color: #e94560;
    animation: spin-b-0fn35o7x4d 1s linear infinite;
}

@keyframes spin-b-0fn35o7x4d {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.daily-nav-today[b-0fn35o7x4d] {
    padding: 0.5rem 0.75rem;
    border: 1px solid #0f3460;
    border-radius: 6px;
    background-color: transparent;
    color: #888;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.daily-nav-today:hover:not(:disabled)[b-0fn35o7x4d] {
    background-color: #e94560;
    border-color: #e94560;
    color: #fff;
}

.daily-nav-today.active[b-0fn35o7x4d] {
    background-color: #e94560;
    border-color: #e94560;
    color: #fff;
}

.daily-nav-today:disabled[b-0fn35o7x4d] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Date Picker Dropdown */
.date-picker-dropdown[b-0fn35o7x4d] {
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    max-height: 350px;
    overflow-y: auto;
    background-color: #16213e;
    border: 1px solid #0f3460;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    z-index: 100;
    margin-top: 0.25rem;
}

.date-option[b-0fn35o7x4d] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(15, 52, 96, 0.5);
    transition: background-color 0.1s;
}

.date-option:last-child[b-0fn35o7x4d] {
    border-bottom: none;
}

.date-option:hover[b-0fn35o7x4d] {
    background-color: #1f2b4d;
}

.date-option.active[b-0fn35o7x4d] {
    background-color: #0f3460;
}

.date-option .date[b-0fn35o7x4d] {
    font-weight: 600;
    color: #fff;
    font-size: 0.875rem;
    min-width: 60px;
}

.date-option .preview[b-0fn35o7x4d] {
    flex: 1;
    color: #888;
    font-size: 0.8125rem;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-left: 1rem;
}

/* Sub-threads Section */
.sub-threads-section[b-0fn35o7x4d] {
    border-bottom: 1px solid #0f3460;
    background-color: #0d1b2a;
}

.sub-threads-toggle[b-0fn35o7x4d] {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    color: #666;
    font-size: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.sub-threads-toggle:hover[b-0fn35o7x4d] {
    color: #888;
}

.sub-threads-section .thread-tabs[b-0fn35o7x4d] {
    padding: 0.25rem 1rem 0.5rem;
}

/* Subject Area Management Modal */
.modal-manage[b-0fn35o7x4d] {
    max-width: 550px;
}

.manage-subjects-list[b-0fn35o7x4d] {
    max-height: 400px;
    overflow-y: auto;
    margin: 0 -0.5rem;
    padding: 0 0.5rem;
}

.manage-subject-item[b-0fn35o7x4d] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    background-color: #1a1a2e;
    margin-bottom: 0.5rem;
    transition: background-color 0.15s;
}

.manage-subject-item:hover[b-0fn35o7x4d] {
    background-color: #1f2b4d;
}

.manage-subject-item .subject-info[b-0fn35o7x4d] {
    flex: 1;
    min-width: 0;
}

.manage-subject-item .subject-name[b-0fn35o7x4d] {
    display: block;
    font-weight: 500;
    color: #fff;
    font-size: 0.9375rem;
    margin-bottom: 0.125rem;
}

.manage-subject-item .subject-description[b-0fn35o7x4d] {
    display: block;
    font-size: 0.8125rem;
    color: #888;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0;
}

.subject-meta[b-0fn35o7x4d] {
    font-size: 0.6875rem;
    color: #555;
    margin-top: 0.25rem;
}

.subject-actions[b-0fn35o7x4d] {
    display: flex;
    gap: 0.375rem;
    flex-shrink: 0;
}

/* Edit form within manage item */
.subject-edit-form[b-0fn35o7x4d] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.edit-subject-input[b-0fn35o7x4d] {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #0f3460;
    border-radius: 6px;
    background-color: #252540;
    color: #fff;
    font-family: inherit;
    font-size: 0.875rem;
}

.edit-subject-input:focus[b-0fn35o7x4d] {
    outline: none;
    border-color: #e94560;
}

.edit-subject-textarea[b-0fn35o7x4d] {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #0f3460;
    border-radius: 6px;
    background-color: #252540;
    color: #fff;
    font-family: inherit;
    font-size: 0.8125rem;
    resize: vertical;
    min-height: 50px;
}

.edit-subject-textarea:focus[b-0fn35o7x4d] {
    outline: none;
    border-color: #e94560;
}

.subject-edit-actions[b-0fn35o7x4d] {
    display: flex;
    gap: 0.375rem;
    justify-content: flex-end;
}

/* Small buttons for inline actions */
.btn-sm[b-0fn35o7x4d] {
    padding: 0.375rem 0.625rem;
    border: none;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-sm.btn-primary[b-0fn35o7x4d] {
    background-color: #e94560;
    color: white;
}

.btn-sm.btn-primary:hover[b-0fn35o7x4d] {
    background-color: #ff6b6b;
}

.btn-sm.btn-secondary[b-0fn35o7x4d] {
    background-color: transparent;
    border: 1px solid #444;
    color: #aaa;
}

.btn-sm.btn-secondary:hover[b-0fn35o7x4d] {
    background-color: #252540;
}

.btn-edit[b-0fn35o7x4d], .btn-delete-subject[b-0fn35o7x4d] {
    width: 28px;
    height: 28px;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: transparent;
    color: #888;
    font-size: 0.8125rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.btn-edit:hover[b-0fn35o7x4d] {
    background-color: #252540;
    color: #fff;
    border-color: #e94560;
}

.btn-delete-subject:hover[b-0fn35o7x4d] {
    background-color: rgba(255, 107, 107, 0.15);
    color: #ff6b6b;
    border-color: #ff6b6b;
}

/* Delete Confirmation Dialog */
.modal-danger[b-0fn35o7x4d] {
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.modal-danger h3[b-0fn35o7x4d] {
    color: #ff6b6b;
}

.delete-warning[b-0fn35o7x4d] {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background-color: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: 6px;
    margin-bottom: 1rem;
}

.delete-warning .warning-icon[b-0fn35o7x4d] {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.delete-warning p[b-0fn35o7x4d] {
    margin: 0;
    font-size: 0.875rem;
    color: #ccc;
    line-height: 1.4;
}

.delete-details[b-0fn35o7x4d] {
    margin-bottom: 1rem;
}

.delete-details p[b-0fn35o7x4d] {
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    color: #888;
}

.delete-subject-name[b-0fn35o7x4d] {
    font-weight: 600;
    color: #fff;
    background-color: #252540;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.9375rem;
}

.btn-danger-confirm[b-0fn35o7x4d] {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    background-color: #ff6b6b;
    color: white;
    transition: background-color 0.15s;
}

.btn-danger-confirm:hover[b-0fn35o7x4d] {
    background-color: #ff5252;
}

/* Provider Selector */
.provider-selector[b-0fn35o7x4d] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    background-color: #252540;
    border-radius: 6px;
    border: 1px solid #0f3460;
}

.provider-dropdown[b-0fn35o7x4d] {
    background-color: transparent;
    border: none;
    color: #e94560;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    outline: none;
}

.provider-dropdown option[b-0fn35o7x4d] {
    background-color: #1a1a2e;
    color: #e5e5e5;
}

.provider-model[b-0fn35o7x4d] {
    font-size: 0.625rem;
    color: #888;
    padding: 0.125rem 0.375rem;
    background-color: #1a1a2e;
    border-radius: 4px;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* New Day Preparation */
.new-day-preparation[b-0fn35o7x4d] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    color: #888;
}

.preparation-spinner[b-0fn35o7x4d] {
    width: 24px;
    height: 24px;
    border: 3px solid #0f3460;
    border-top-color: #e94560;
    border-radius: 50%;
    animation: spin-b-0fn35o7x4d 1s linear infinite;
}

.preparation-status[b-0fn35o7x4d] {
    font-size: 0.9rem;
}

/* Past Day Confirmation Dialog */
.past-day-warning[b-0fn35o7x4d] {
    margin-bottom: 1rem;
    color: #a0a0a0;
}

.pending-message-preview[b-0fn35o7x4d] {
    background-color: #1a1a2e;
    border: 1px solid #0f3460;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
}

.preview-label[b-0fn35o7x4d] {
    display: block;
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.preview-text[b-0fn35o7x4d] {
    font-style: italic;
    color: #e0e0e0;
}

/* === RESPONSIVE STYLES === */

/* Close button for mobile sidebar */
.btn-close-sidebar[b-0fn35o7x4d],
.btn-close-panel[b-0fn35o7x4d] {
    display: none;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background-color: #252540;
    color: #888;
    font-size: 1rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.btn-close-sidebar:hover[b-0fn35o7x4d],
.btn-close-panel:hover[b-0fn35o7x4d] {
    background-color: #e94560;
    color: white;
}

/* === TABLET BREAKPOINT (max-width: 1024px) === */
@media (max-width: 1024px) {
    /* Sidebar - Fixed overlay */
    .sidebar[b-0fn35o7x4d] {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 100;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    }

    .sidebar.mobile-open[b-0fn35o7x4d],
    :global(body.sidebar-open) .sidebar[b-0fn35o7x4d] {
        transform: translateX(0);
    }

    .btn-close-sidebar[b-0fn35o7x4d] {
        display: flex;
    }

    /* Context Panel - Narrower */
    .context-panel[b-0fn35o7x4d] {
        width: 260px;
    }

    /* Chat Header - Wrap items */
    .chat-header[b-0fn35o7x4d] {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }

    .chat-header-right[b-0fn35o7x4d] {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    /* Provider selector - smaller */
    .provider-selector[b-0fn35o7x4d] {
        padding: 0.125rem 0.375rem;
    }

    .provider-model[b-0fn35o7x4d] {
        max-width: 100px;
    }

    /* Daily nav - smaller buttons */
    .daily-nav[b-0fn35o7x4d] {
        padding: 0.375rem 0.75rem;
    }

    .daily-nav-btn[b-0fn35o7x4d] {
        width: 28px;
        height: 28px;
        font-size: 0.875rem;
    }

    .daily-nav-date[b-0fn35o7x4d] {
        font-size: 0.8125rem;
        padding: 0.375rem 0.75rem;
    }

    /* Messages - wider */
    .message[b-0fn35o7x4d] {
        max-width: 90%;
    }

    /* Input area - smaller padding */
    .input-area[b-0fn35o7x4d] {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }

    /* Modals - slightly smaller */
    .modal[b-0fn35o7x4d] {
        max-width: 90%;
        margin: 0 1rem;
    }

    .modal-large[b-0fn35o7x4d] {
        max-width: 90%;
    }

    /* Quick switcher */
    .quick-switcher[b-0fn35o7x4d] {
        max-width: 90%;
        margin: 0 1rem;
    }

    .search-modal[b-0fn35o7x4d] {
        max-width: 90%;
        margin: 0 1rem;
    }
}

/* === MOBILE BREAKPOINT (max-width: 640px) === */
@media (max-width: 640px) {
    /* Main Layout - Single column */
    .main-layout[b-0fn35o7x4d] {
        flex-direction: column;
    }

    /* Welcome Screen - Mobile optimized */
    .welcome-screen[b-0fn35o7x4d] {
        padding: 1.5rem;
        justify-content: flex-start;
        padding-top: 20vh;
    }

    .welcome-screen h2[b-0fn35o7x4d] {
        font-size: 1.25rem;
    }

    .welcome-screen p[b-0fn35o7x4d] {
        font-size: 0.9375rem;
    }

    /* Sidebar - Full screen overlay */
    .sidebar[b-0fn35o7x4d] {
        width: 85vw;
        max-width: 300px;
    }

    .sidebar-header[b-0fn35o7x4d] {
        padding: 0.75rem;
    }

    .sidebar-header h2[b-0fn35o7x4d] {
        font-size: 0.875rem;
    }

    .shortcut-hint[b-0fn35o7x4d] {
        display: none;
    }

    /* Chat area - full width */
    .chat-area[b-0fn35o7x4d] {
        width: 100%;
    }

    /* Context Panel - Full screen slide-in from right */
    .context-panel[b-0fn35o7x4d] {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        z-index: 100;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .context-panel.mobile-open[b-0fn35o7x4d] {
        transform: translateX(0);
    }

    .btn-close-panel[b-0fn35o7x4d] {
        display: flex;
    }

    /* Chat Header - Stack vertically */
    .chat-header[b-0fn35o7x4d] {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }

    .chat-header-left h2[b-0fn35o7x4d] {
        font-size: 1rem;
    }

    .chat-header-right[b-0fn35o7x4d] {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    /* Push icon buttons to the right on mobile */
    .chat-header-right .btn-icon-sm:first-of-type[b-0fn35o7x4d] {
        margin-left: auto;
    }

    /* Provider selector - compact */
    .provider-selector[b-0fn35o7x4d] {
        padding: 0.125rem 0.25rem;
        gap: 0.25rem;
    }

    .provider-dropdown[b-0fn35o7x4d] {
        padding: 0.125rem 0.25rem;
        font-size: 0.6875rem;
    }

    .provider-model[b-0fn35o7x4d] {
        display: none;
    }

    /* Token indicator - compact */
    .token-indicator[b-0fn35o7x4d] {
        font-size: 0.6875rem;
        padding: 0.125rem 0.375rem;
    }

    /* Hide summarize button on mobile */
    .btn-summarize[b-0fn35o7x4d] {
        display: none;
    }

    /* Daily Navigation - Compact */
    .daily-nav[b-0fn35o7x4d] {
        padding: 0.375rem 0.5rem;
        gap: 0.375rem;
    }

    .daily-nav-btn[b-0fn35o7x4d] {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }

    .daily-nav-date[b-0fn35o7x4d] {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .daily-nav-today[b-0fn35o7x4d] {
        font-size: 0.6875rem;
        padding: 0.25rem 0.5rem;
    }

    /* Messages area */
    .messages-container[b-0fn35o7x4d] {
        padding: 0.75rem 1rem;
    }

    .message[b-0fn35o7x4d] {
        max-width: 95%;
        margin-bottom: 1rem;
    }

    .message-content[b-0fn35o7x4d] {
        padding: 0.625rem 0.75rem;
        font-size: 0.9375rem;
    }

    .message-role[b-0fn35o7x4d] {
        font-size: 0.6875rem;
    }

    /* Action buttons always visible on mobile */
    .btn-action[b-0fn35o7x4d] {
        opacity: 0.7;
    }

    /* Input Area */
    .input-area[b-0fn35o7x4d] {
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }

    .input-area textarea[b-0fn35o7x4d] {
        padding: 0.625rem 0.75rem;
        font-size: 16px; /* Prevent iOS zoom */
        min-height: 44px;
    }

    .btn-send[b-0fn35o7x4d] {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    /* Context transparency section */
    .context-transparency-toggle[b-0fn35o7x4d] {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }

    .context-details[b-0fn35o7x4d] {
        padding: 0.375rem 0.75rem;
    }

    .context-doc-chip[b-0fn35o7x4d] {
        font-size: 0.6875rem;
        max-width: 120px;
    }

    /* === MODAL RESPONSIVENESS === */

    /* All modals - slide up from bottom on mobile */
    .modal-overlay[b-0fn35o7x4d] {
        padding: 0;
        align-items: flex-end;
    }

    .modal[b-0fn35o7x4d] {
        max-width: 100%;
        width: 100%;
        margin: 0;
        border-radius: 16px 16px 0 0;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-large[b-0fn35o7x4d] {
        max-width: 100%;
        max-height: 95vh;
    }

    .modal h3[b-0fn35o7x4d] {
        font-size: 1.125rem;
    }

    .modal-actions[b-0fn35o7x4d] {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .modal-actions button[b-0fn35o7x4d] {
        flex: 1;
        min-width: 100px;
    }

    /* Document modal */
    .doc-tabs[b-0fn35o7x4d] {
        overflow-x: auto;
    }

    .modal-preview[b-0fn35o7x4d] {
        max-height: 300px;
    }

    .doc-editor[b-0fn35o7x4d] {
        font-size: 0.8125rem;
    }

    /* Form inputs - prevent iOS zoom */
    .form-group input[b-0fn35o7x4d],
    .form-group textarea[b-0fn35o7x4d],
    .form-group select[b-0fn35o7x4d] {
        font-size: 16px;
    }

    /* Quick Switcher Modal */
    .quick-switcher-overlay[b-0fn35o7x4d] {
        padding-top: 5vh;
    }

    .quick-switcher[b-0fn35o7x4d] {
        max-width: 95%;
        margin: 0 auto;
        border-radius: 12px;
    }

    .quick-switcher-input[b-0fn35o7x4d] {
        padding: 0.875rem 1rem;
        font-size: 16px;
    }

    .quick-switcher-item[b-0fn35o7x4d] {
        padding: 0.625rem 1rem;
        flex-wrap: wrap;
    }

    .quick-switcher-item .subject-desc[b-0fn35o7x4d] {
        display: none;
    }

    .quick-switcher-results[b-0fn35o7x4d] {
        max-height: 50vh;
    }

    .quick-switcher-footer[b-0fn35o7x4d] {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    /* Search Modal */
    .search-overlay[b-0fn35o7x4d] {
        padding-top: 0;
        align-items: flex-start;
    }

    .search-modal[b-0fn35o7x4d] {
        max-width: 100%;
        border-radius: 0;
        height: 100vh;
        max-height: 100vh;
    }

    .search-header[b-0fn35o7x4d] {
        flex-wrap: wrap;
    }

    .search-input[b-0fn35o7x4d] {
        width: 100%;
        order: 1;
        font-size: 16px;
    }

    .btn-search[b-0fn35o7x4d] {
        flex: 1;
        order: 2;
    }

    .search-filters[b-0fn35o7x4d] {
        overflow-x: auto;
        padding: 0.375rem 0.75rem;
    }

    .filter-btn[b-0fn35o7x4d] {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .search-results[b-0fn35o7x4d] {
        max-height: calc(100vh - 180px);
    }

    /* Date picker dropdown */
    .date-picker-dropdown[b-0fn35o7x4d] {
        left: 0.5rem;
        right: 0.5rem;
    }

    .date-option[b-0fn35o7x4d] {
        padding: 0.625rem 0.75rem;
    }

    /* Manage subjects dialog */
    .manage-subjects-list[b-0fn35o7x4d] {
        max-height: 60vh;
    }

    .manage-subject-item[b-0fn35o7x4d] {
        flex-wrap: wrap;
    }

    .subject-edit-form[b-0fn35o7x4d] {
        width: 100%;
    }

    /* Delete confirmation */
    .delete-warning[b-0fn35o7x4d] {
        flex-direction: column;
    }

    /* Past day confirmation dialog */
    .past-day-modal[b-0fn35o7x4d] {
        padding: 1.25rem;
    }

    .pending-message-preview[b-0fn35o7x4d] {
        padding: 0.625rem 0.75rem;
    }
}

/* === TOUCH DEVICE OPTIMIZATIONS === */
@media (hover: none) {
    /* Make hover effects permanent on touch devices */
    .btn-action[b-0fn35o7x4d] {
        opacity: 0.7;
    }

    .btn-delete[b-0fn35o7x4d] {
        opacity: 1;
    }

    .btn-complete[b-0fn35o7x4d] {
        opacity: 1;
    }

    /* Larger touch targets */
    .btn-icon[b-0fn35o7x4d],
    .btn-icon-sm[b-0fn35o7x4d] {
        min-width: 44px;
        min-height: 44px;
    }
}

/* === LANDSCAPE MOBILE === */
@media (max-height: 500px) and (orientation: landscape) {
    .modal[b-0fn35o7x4d] {
        max-height: 95vh;
    }

    .quick-switcher-results[b-0fn35o7x4d] {
        max-height: 200px;
    }

    .search-results[b-0fn35o7x4d] {
        max-height: calc(100vh - 140px);
    }
}
