
body {
    font-family: 'Default', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f7f8;
    color: #374151;
}

.font-large #pasaAutomationToggle { transform: translateZ(0); }
.high-contrast #pasaAutomationPanel { border-color: #fff; }
.reduce-motion #pasaWebAgentPill { transition: none !important; }

.pai-shimmer {
    padding: 8px 12px;
    font-size: 12px;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    display: inline-block;
    background: linear-gradient(90deg, #ffffff 42%, #5b5d5f 50%, #ffffff 58%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-transform: none;
    letter-spacing: .03em;
    animation: shimmerTextOnly 5s linear infinite;
}
@keyframes shimmerTextOnly {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.chat-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.message {
    margin: 15px 0;
    padding: 15px;
    border-radius: 8px;
    line-height: 1.6;
}

.user-message {
    background-color: #f0f9ff;
    border-left: 4px solid #0ea5e9;
}

.assistant-message {
    background-color: #f9fafb;
    border-left: 4px solid #6b7280;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-radius: 50%;
    border-top-color: #0ea5e9;
    animation: spin 1s ease-in-out infinite;
}

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

.sessions-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 10px;
    margin-bottom: 8px;
}
.sessions-toolbar-left { display: flex; align-items: center; gap: 10px; }
.sessions-count { font-size: 12px; color: var(--text-secondary, #6b7280); }
.sessions-toolbar-actions { display: flex; align-items: center; gap: 8px; }

.btn { 
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; 
    padding: 6px 10px; font-size: 12px; border-radius: 6px; cursor: pointer; 
    border: 1px solid transparent; background: var(--btn, #111827); color: var(--btn-fg, #fff);
}
.btn:disabled { opacity: .6; cursor: default; }
.btn-ghost { background: transparent; border-color: var(--border, #e5e7eb); color: var(--text, #111827); }
.sessions-toolbar .btn-ghost { background: var(--btn-accent, #ffffff) !important; color: var(--btn-accent-fg, #000000) !important; border: none !important; }
.session-card .btn-danger { background: var(--accent, #6366f1) !important; color: #ffffff !important; border: none !important; }
.btn-accent { background: var(--btn-accent, #2563eb); color: var(--btn-accent-fg, #fff); }

.session-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    background: var(--surface, #fff);
}
.session-avatar { width: 32px; height: 32px; border-radius: 8px; background: #f3f4f6; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.session-avatar img { width: 18px; height: 18px; opacity: .9; }
.session-info { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.session-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; color: #ffffff; }
.session-meta { font-size: 12px; color: var(--text-secondary, #6b7280); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.session-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.session-chips { display: flex; align-items: center; gap: 6px; margin: 2px 0; }
.session-card .chip { font-size: 11px; padding: 2px 6px; border-radius: 999px; background: var(--btn-accent, #ffffff) !important; color: var(--btn-accent-fg, #000000) !important; border: none !important; }
.session-card .chip-accent { background: var(--btn-accent, #ffffff) !important; color: var(--btn-accent-fg, #000000) !important; border: none !important; }

.skeleton { opacity: .75; animation: shimmer 1.2s linear infinite; background: linear-gradient(90deg, rgba(0,0,0,0.04) 25%, rgba(0,0,0,0.08) 37%, rgba(0,0,0,0.04) 63%); background-size: 400% 100%; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-box { width: 32px; height: 32px; border-radius: 8px; }
.skeleton-line { height: 10px; width: 180px; border-radius: 6px; background: rgba(0,0,0,0.08); }
.skeleton-line.short { width: 120px; }
.skeleton-btn { width: 80px; height: 26px; border-radius: 6px; background: rgba(0,0,0,0.08); margin-left: auto; }

.modal-header .modal-title {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
