/* Material Design 3 (M3) Dark Slate & Expressive Blue Design System */
:root {
    /* M3 Dark Palette Color Tokens */
    --md-sys-color-primary: #a8c7fa;
    --md-sys-color-on-primary: #062e6f;
    --md-sys-color-primary-container: #004a77;
    --md-sys-color-on-primary-container: #c2e7ff;
    
    --md-sys-color-secondary-container: #334155;
    --md-sys-color-on-secondary-container: #e2e8f0;
    
    --md-sys-color-surface: #0f172a;
    --md-sys-color-surface-container-lowest: #090d16;
    --md-sys-color-surface-container-low: #172033;
    --md-sys-color-surface-container: #1e293b;
    --md-sys-color-surface-container-high: #283447;
    --md-sys-color-surface-container-highest: #334155;
    
    --md-sys-color-on-surface: #f8fafc;
    --md-sys-color-on-surface-variant: #94a3b8;
    --md-sys-color-outline: #475569;
    --md-sys-color-outline-variant: #334155;
    
    --md-sys-color-error: #ffb4ab;
    --md-sys-color-error-container: #93000a;
    --md-sys-color-on-error-container: #ffdad6;
    
    --md-sys-color-success: #6ee7b7;
    --md-sys-color-success-container: #064e3b;
    
    /* M3 Shape Tokens */
    --md-sys-shape-full: 9999px;
    --md-sys-shape-extra-large: 24px;
    --md-sys-shape-large: 16px;
    --md-sys-shape-medium: 12px;
    --md-sys-shape-small: 8px;
    
    /* Typography Tokens */
    --font-sans: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* M3 Elevation Shadow Tokens */
    --md-sys-elevation-1: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
    --md-sys-elevation-2: 0 3px 8px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
    --md-sys-elevation-3: 0 6px 16px rgba(0, 0, 0, 0.5), 0 4px 8px rgba(0, 0, 0, 0.4);
    
    /* Transition Motion Tokens */
    --md-sys-motion-duration-short: 200ms;
    --md-sys-motion-duration-medium: 300ms;
    --md-sys-motion-easing-emphasized: cubic-bezier(0.2, 0.0, 0.0, 1.0);
}

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

body {
    background-color: var(--md-sys-color-surface);
    color: var(--md-sys-color-on-surface);
    font-family: var(--font-sans);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.app-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Material Design 3 Header Bar */
.m3-surface-header {
    background-color: var(--md-sys-color-surface-container-low);
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: var(--md-sys-shape-extra-large);
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--md-sys-elevation-1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 28px;
    color: var(--md-sys-color-primary);
}

.logo-area h1 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.logo-area h1 span {
    color: var(--md-sys-color-primary);
    font-weight: 500;
}

/* M3 Segmented Control Tabs */
.m3-segmented-control {
    display: inline-flex;
    background-color: var(--md-sys-color-surface-container);
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: var(--md-sys-shape-full);
    padding: 4px;
    gap: 4px;
}

.m3-segmented-tab {
    background: transparent;
    border: none;
    color: var(--md-sys-color-on-surface-variant);
    padding: 8px 18px;
    border-radius: var(--md-sys-shape-full);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-emphasized);
}

.m3-segmented-tab:hover {
    color: var(--md-sys-color-on-surface);
    background-color: var(--md-sys-color-surface-container-high);
}

.m3-segmented-tab.active {
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.tab-icon {
    font-size: 18px;
}

/* M3 Status Badge */
.m3-status-badge {
    font-size: 0.82rem;
    background-color: var(--md-sys-color-surface-container);
    padding: 6px 14px;
    border-radius: var(--md-sys-shape-full);
    border: 1px solid var(--md-sys-color-outline-variant);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--md-sys-color-on-surface-variant);
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.green {
    background-color: var(--md-sys-color-success);
    box-shadow: 0 0 8px var(--md-sys-color-success);
}

/* Main Layout & Cards */
.app-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.m3-card {
    background-color: var(--md-sys-color-surface-container);
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: var(--md-sys-shape-extra-large);
    padding: 28px;
    box-shadow: var(--md-sys-elevation-1);
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: transform var(--md-sys-motion-duration-short);
}

.panel-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--md-sys-color-on-surface);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.header-symbol {
    font-size: 24px;
    color: var(--md-sys-color-primary);
}

.panel-header p {
    font-size: 0.9rem;
    color: var(--md-sys-color-on-surface-variant);
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.m3-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* M3 Mode Segmented Buttons */
.m3-segmented-mode {
    display: flex;
    background-color: var(--md-sys-color-surface-container-low);
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: var(--md-sys-shape-full);
    padding: 3px;
}

.m3-mode-btn {
    background: transparent;
    border: none;
    color: var(--md-sys-color-on-surface-variant);
    padding: 6px 14px;
    border-radius: var(--md-sys-shape-full);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--md-sys-motion-duration-short);
}

.m3-mode-btn:hover {
    color: var(--md-sys-color-on-surface);
}

.m3-mode-btn.active {
    background-color: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
    font-weight: 600;
}

/* M3 Icon Buttons */
.m3-icon-button {
    background: transparent;
    border: 1px solid var(--md-sys-color-outline-variant);
    color: var(--md-sys-color-on-surface-variant);
    width: 36px;
    height: 36px;
    border-radius: var(--md-sys-shape-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--md-sys-motion-duration-short);
}

.m3-icon-button:hover {
    background-color: var(--md-sys-color-surface-container-high);
    color: var(--md-sys-color-on-surface);
    border-color: var(--md-sys-color-outline);
}

/* M3 Outlined Text Fields */
.resume-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.m3-text-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.m3-field-label {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--md-sys-color-on-surface-variant);
}

.m3-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.m3-helper-text {
    font-size: 0.78rem;
    color: var(--md-sys-color-on-surface-variant);
}

.required {
    color: var(--md-sys-color-error);
}

.m3-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.m3-input-wrapper .field-icon {
    position: absolute;
    left: 14px;
    font-size: 20px;
    color: var(--md-sys-color-on-surface-variant);
    pointer-events: none;
}

.m3-input-wrapper input {
    width: 100%;
    background-color: var(--md-sys-color-surface-container-lowest);
    border: 1px solid var(--md-sys-color-outline);
    border-radius: var(--md-sys-shape-medium);
    padding: 12px 14px 12px 44px;
    color: var(--md-sys-color-on-surface);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--md-sys-motion-duration-short), box-shadow var(--md-sys-motion-duration-short);
}

.m3-input-wrapper textarea {
    width: 100%;
    background-color: var(--md-sys-color-surface-container-lowest);
    border: 1px solid var(--md-sys-color-outline);
    border-radius: var(--md-sys-shape-medium);
    padding: 14px;
    color: var(--md-sys-color-on-surface);
    font-family: var(--font-mono);
    font-size: 0.88rem;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    transition: border-color var(--md-sys-motion-duration-short), box-shadow var(--md-sys-motion-duration-short);
}

.m3-input-wrapper input:focus,
.m3-input-wrapper textarea:focus {
    border-color: var(--md-sys-color-primary);
    box-shadow: 0 0 0 2px rgba(168, 199, 250, 0.2);
}

/* M3 Buttons */
.m3-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--md-sys-shape-full);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-emphasized);
    text-decoration: none;
}

.m3-button-filled {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
}

.m3-button-filled:hover {
    background-color: #c2e7ff;
    box-shadow: var(--md-sys-elevation-2);
    transform: translateY(-1px);
}

.m3-button-outlined {
    background: transparent;
    border: 1px solid var(--md-sys-color-outline);
    color: var(--md-sys-color-primary);
}

.m3-button-outlined:hover {
    background-color: var(--md-sys-color-surface-container-high);
    border-color: var(--md-sys-color-primary);
}

.btn-icon {
    font-size: 20px;
}

.btn-sm {
    padding: 6px 16px;
    font-size: 0.84rem;
}

/* Action Chips */
.sample-questions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sample-label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--md-sys-color-on-surface-variant);
}

.chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.m3-action-chip {
    background-color: var(--md-sys-color-surface-container-low);
    border: 1px solid var(--md-sys-color-outline-variant);
    color: var(--md-sys-color-on-surface-variant);
    padding: 8px 16px;
    border-radius: var(--md-sys-shape-small);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--md-sys-motion-duration-short);
}

.m3-action-chip:hover {
    background-color: var(--md-sys-color-surface-container-high);
    color: var(--md-sys-color-on-surface);
    border-color: var(--md-sys-color-primary);
    box-shadow: var(--md-sys-elevation-1);
    transform: translateY(-1px);
}

.chip-icon {
    font-size: 18px;
    color: var(--md-sys-color-primary);
}

/* Chatbot Messages & Container */
.chat-messages {
    background-color: var(--md-sys-color-surface-container-lowest);
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: var(--md-sys-shape-large);
    padding: 20px;
    height: 480px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message {
    display: flex;
    width: 100%;
}

.message.assistant {
    justify-content: flex-start;
}

.message.user {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 82%;
    padding: 14px 18px;
    border-radius: var(--md-sys-shape-large);
    font-size: 0.92rem;
    line-height: 1.6;
    word-break: break-word;
    position: relative;
}

.message.assistant .message-bubble {
    background-color: var(--md-sys-color-surface-container-high);
    border: 1px solid var(--md-sys-color-outline-variant);
    color: var(--md-sys-color-on-surface);
    border-bottom-left-radius: 4px;
}

.message.user .message-bubble {
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    border-bottom-right-radius: 4px;
}

/* Copy Button for Assistant Message Bubbles */
.message-bubble .copy-msg-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--md-sys-color-surface-container);
    border: 1px solid var(--md-sys-color-outline-variant);
    color: var(--md-sys-color-on-surface-variant);
    width: 28px;
    height: 28px;
    border-radius: var(--md-sys-shape-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity var(--md-sys-motion-duration-short), background var(--md-sys-motion-duration-short);
}

.message-bubble:hover .copy-msg-btn {
    opacity: 1;
}

.message-bubble .copy-msg-btn:hover {
    background-color: var(--md-sys-color-surface-container-highest);
    color: var(--md-sys-color-on-surface);
}

.copy-msg-btn .material-symbols-outlined {
    font-size: 16px;
}

.message-bubble p {
    margin-bottom: 8px;
}

.message-bubble p:last-child {
    margin-bottom: 0;
}

.message-bubble ul, .message-bubble ol {
    margin: 8px 0;
    padding-left: 22px;
}

.message-bubble li {
    margin-bottom: 4px;
}

.message-bubble strong {
    color: #ffffff;
    font-weight: 700;
}

.message-bubble code {
    background: rgba(255, 255, 255, 0.12);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.85em;
}

/* Chat Input Bar */
.m3-chat-input-bar {
    display: flex;
    align-items: center;
    background-color: var(--md-sys-color-surface-container-lowest);
    border: 1px solid var(--md-sys-color-outline);
    border-radius: var(--md-sys-shape-full);
    padding: 6px 8px 6px 20px;
    gap: 12px;
    transition: border-color var(--md-sys-motion-duration-short), box-shadow var(--md-sys-motion-duration-short);
}

.m3-chat-input-bar:focus-within {
    border-color: var(--md-sys-color-primary);
    box-shadow: 0 0 0 2px rgba(168, 199, 250, 0.2);
}

.m3-chat-input-bar input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--md-sys-color-on-surface);
    font-size: 0.95rem;
    font-family: inherit;
}

.m3-fab-btn {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: var(--md-sys-shape-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform var(--md-sys-motion-duration-short), background var(--md-sys-motion-duration-short);
}

.m3-fab-btn:hover {
    background-color: #c2e7ff;
    transform: scale(1.05);
}

.m3-fab-btn .material-symbols-outlined {
    font-size: 20px;
}

/* Preview Drawer */
.m3-preview-drawer {
    background-color: var(--md-sys-color-surface-container);
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: var(--md-sys-shape-extra-large);
    overflow: hidden;
    box-shadow: var(--md-sys-elevation-3);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background-color: var(--md-sys-color-surface-container-low);
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.preview-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-title h3 {
    font-size: 1rem;
    font-weight: 600;
}

.preview-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.preview-body iframe {
    width: 100%;
    height: 650px;
    background: #525659;
}

#edit-view-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: var(--md-sys-color-surface-container-lowest);
}

.editor-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    color: var(--md-sys-color-on-surface-variant);
}

#raw-edit-textarea, #default-raw-textarea {
    width: 100%;
    height: 580px;
    background-color: var(--md-sys-color-surface-container-lowest);
    color: var(--md-sys-color-on-surface);
    border: 1px solid var(--md-sys-color-outline);
    border-radius: var(--md-sys-shape-medium);
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    line-height: 1.6;
    resize: vertical;
}

/* Animations */
.fade-in {
    animation: fadeIn var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-emphasized);
}

.slide-up {
    animation: slideUp var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-emphasized);
}

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

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

/* Alerts */
.m3-alert {
    padding: 12px 18px;
    border-radius: var(--md-sys-shape-medium);
    font-size: 0.9rem;
}

.m3-alert.success {
    background-color: var(--md-sys-color-success-container);
    border: 1px solid var(--md-sys-color-success);
    color: #a7f3d0;
}

.m3-alert.error {
    background-color: var(--md-sys-color-error-container);
    border: 1px solid var(--md-sys-color-error);
    color: var(--md-sys-color-on-error-container);
}

.hidden {
    display: none !important;
}

/* Progress Stepper & M3 Linear Progress */
.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--md-sys-color-primary);
}

.progress-pct {
    font-weight: 700;
    color: var(--md-sys-color-primary);
    font-size: 1.1rem;
}

.m3-linear-progress {
    width: 100%;
    height: 4px;
    background-color: var(--md-sys-color-surface-container-high);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 24px;
    position: relative;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--md-sys-color-primary), #8ab4f8);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stepper-container {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-left: 12px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    padding-bottom: 20px;
}

/* Stepper vertical connector line */
.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 12px;
    top: 26px;
    bottom: 0;
    width: 2px;
    background-color: var(--md-sys-color-outline-variant);
    transition: background-color var(--md-sys-motion-duration-medium);
}

.step-item.completed:not(:last-child)::after {
    background-color: var(--md-sys-color-primary);
}

.step-icon {
    width: 26px;
    height: 26px;
    border-radius: var(--md-sys-shape-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
    z-index: 1;
    transition: all var(--md-sys-motion-duration-medium);
}

.step-item.pending .step-icon {
    border: 2px solid var(--md-sys-color-outline-variant);
    color: var(--md-sys-color-on-surface-variant);
    background-color: var(--md-sys-color-surface-container-low);
}

.step-item.active .step-icon {
    border: 2px solid var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    background-color: var(--md-sys-color-primary);
    box-shadow: 0 0 0 4px rgba(168, 199, 250, 0.2);
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 4px rgba(168, 199, 250, 0.2); }
    50% { box-shadow: 0 0 0 8px rgba(168, 199, 250, 0.4); }
}

.step-item.completed .step-icon {
    border: 2px solid var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    background-color: var(--md-sys-color-primary);
    animation: scaleIn var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-emphasized);
}

@keyframes scaleIn {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}

.step-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 2px;
}

.step-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.step-label {
    font-size: 0.92rem;
    font-weight: 600;
    transition: color var(--md-sys-motion-duration-medium);
}

.step-item.pending .step-label {
    color: var(--md-sys-color-on-surface-variant);
}

.step-item.active .step-label {
    color: var(--md-sys-color-primary);
}

.step-item.completed .step-label {
    color: var(--md-sys-color-on-surface);
}

.step-detail {
    font-size: 0.82rem;
    color: var(--md-sys-color-on-surface-variant);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all var(--md-sys-motion-duration-medium);
}

.step-item.active .step-detail {
    opacity: 1;
    max-height: 40px;
    margin-top: 2px;
}

.step-elapsed {
    font-size: 0.8rem;
    background-color: var(--md-sys-color-surface-container-high);
    color: var(--md-sys-color-on-surface-variant);
    padding: 2px 8px;
    border-radius: var(--md-sys-shape-small);
    font-weight: 500;
}

.step-item.pending .step-elapsed {
    display: none;
}

/* Chatbot Typing Indicator & streaming styles */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 4px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background-color: var(--md-sys-color-primary);
    border-radius: var(--md-sys-shape-full);
    animation: bounceDots 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounceDots {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.message-streaming::after {
    content: '▋';
    display: inline-block;
    color: var(--md-sys-color-primary);
    animation: blinkCursor 0.8s step-end infinite;
    margin-left: 2px;
}

@keyframes blinkCursor {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

.source-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    animation: fadeIn var(--md-sys-motion-duration-medium);
}

.source-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: var(--md-sys-color-surface-container-low);
    border: 1px solid var(--md-sys-color-outline-variant);
    color: var(--md-sys-color-on-surface-variant);
    padding: 4px 10px;
    border-radius: var(--md-sys-shape-small);
    font-size: 0.78rem;
    font-weight: 600;
}

.source-chip .material-symbols-outlined {
    font-size: 14px;
    color: var(--md-sys-color-primary);
}
