/* =====================================================
   CURATION NEWSLETTER - Styles CSS
   SOS Storytelling 2026
   ===================================================== */

/* ==================== MODAL OVERLAY ==================== */
.curation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(6px);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.curation-overlay.active {
    opacity: 1;
    visibility: visible;
}

.curation-modal {
    background: white;
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: curationSlideIn 0.3s ease;
}

@keyframes curationSlideIn {
    from { opacity: 0; transform: scale(0.95) translateY(-20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ==================== HEADER ==================== */
.curation-header {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 24px 30px;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.curation-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.curation-header-left h2 {
    font-size: 1.4em;
    font-weight: 700;
    margin: 0;
}

.curation-header-emoji {
    font-size: 1.6em;
}

.curation-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.2);
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.curation-close:hover {
    background: rgba(255,255,255,0.35);
}

/* ==================== NAVIGATION TABS ==================== */
.curation-tabs {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    background: #fafafa;
    overflow-x: auto;
}

.curation-tab {
    padding: 14px 24px;
    font-size: 0.9em;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: 'Poppins', sans-serif;
}

.curation-tab:hover {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.05);
}

.curation-tab.active {
    color: #6366f1;
    border-bottom-color: #6366f1;
    background: white;
}

/* ==================== BODY ==================== */
.curation-body {
    padding: 24px 30px;
    min-height: 400px;
}

/* ==================== STATS CARDS ==================== */
.curation-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.curation-stat-card {
    background: #f8f9fa;
    border-radius: 14px;
    padding: 18px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.curation-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.curation-stat-card.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

.curation-stat-number {
    font-size: 1.8em;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.curation-stat-label {
    font-size: 0.75em;
    opacity: 0.8;
    font-weight: 500;
}

.curation-stat-card.active .curation-stat-label {
    opacity: 0.9;
}

/* Couleurs par type */
.curation-stat-card[data-type="bonne_pratique"] { border-left: 4px solid #10b981; }
.curation-stat-card[data-type="idee_contenu"] { border-left: 4px solid #f59e0b; }
.curation-stat-card[data-type="tendance"] { border-left: 4px solid #ef4444; }
.curation-stat-card[data-type="veille"] { border-left: 4px solid #3b82f6; }

/* ==================== FILTERS BAR ==================== */
.curation-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.curation-search {
    flex: 1;
    min-width: 180px;
    padding: 10px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.9em;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.2s;
    outline: none;
}

.curation-search:focus {
    border-color: #6366f1;
}

.curation-filter-select {
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.85em;
    font-family: 'Poppins', sans-serif;
    background: white;
    cursor: pointer;
    outline: none;
}

.curation-filter-select:focus {
    border-color: #6366f1;
}

.curation-filter-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.curation-pill {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    border: 2px solid #e5e7eb;
    background: white;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
}

.curation-pill:hover {
    border-color: #6366f1;
    color: #6366f1;
}

.curation-pill.active {
    background: #6366f1;
    border-color: #6366f1;
    color: white;
}

.curation-pill-selections {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.curation-pill-selections:hover {
    border-color: #f59e0b;
    color: #92400e;
}

.curation-pill-selections.active {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-color: #d97706;
    color: white;
}

/* ==================== INSIGHTS LIST ==================== */
.curation-insights-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.curation-insight-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 14px;
    padding: 18px 20px;
    transition: all 0.2s;
    cursor: pointer;
}

.curation-insight-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
}

.curation-insight-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.curation-insight-title {
    font-size: 1em;
    font-weight: 700;
    color: #1f2937;
    flex: 1;
}

.curation-insight-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.curation-insight-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: #f3f4f6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
}

.curation-insight-btn:hover {
    background: #e5e7eb;
}

.curation-insight-btn.starred {
    background: #fef3c7;
    color: #f59e0b;
}

.curation-insight-content {
    font-size: 0.88em;
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 10px;
}

.curation-insight-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.curation-badge {
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.72em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.curation-badge-type {
    color: white;
}

.curation-badge-type[data-type="bonne_pratique"] { background: #10b981; }
.curation-badge-type[data-type="idee_contenu"] { background: #f59e0b; }
.curation-badge-type[data-type="tendance"] { background: #ef4444; }
.curation-badge-type[data-type="veille"] { background: #3b82f6; }

.curation-badge-category {
    background: #f0f0f0;
    color: #666;
}

.curation-insight-source {
    font-size: 0.78em;
    color: #9ca3af;
    margin-left: auto;
}

.curation-tag {
    font-size: 0.72em;
    background: #ede9fe;
    color: #6366f1;
    padding: 2px 8px;
    border-radius: 4px;
}

/* ==================== PASTE FORM ==================== */
.curation-paste-form {
    max-width: 700px;
    margin: 0 auto;
}

.curation-form-group {
    margin-bottom: 18px;
}

.curation-form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9em;
    margin-bottom: 6px;
    color: #374151;
}

.curation-form-group input,
.curation-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.9em;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.2s;
    outline: none;
    box-sizing: border-box;
}

.curation-form-group input:focus,
.curation-form-group textarea:focus {
    border-color: #6366f1;
}

.curation-form-group textarea {
    min-height: 420px;
    resize: vertical;
    line-height: 1.6;
}

.curation-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.curation-analyze-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.curation-analyze-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

.curation-analyze-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ==================== DETAIL VIEW ==================== */
.curation-detail {
    max-width: 700px;
    margin: 0 auto;
}

.curation-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6366f1;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    margin-bottom: 20px;
    border: none;
    background: none;
    font-family: 'Poppins', sans-serif;
}

.curation-detail-back:hover {
    text-decoration: underline;
}

.curation-detail-title {
    font-size: 1.5em;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 10px;
}

.curation-detail-content {
    font-size: 1em;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 20px;
}

.curation-detail-source {
    background: #f9fafb;
    border-left: 4px solid #6366f1;
    padding: 14px 18px;
    border-radius: 0 10px 10px 0;
    margin-bottom: 20px;
}

.curation-detail-source p {
    font-size: 0.85em;
    color: #6b7280;
    margin: 4px 0;
}

.curation-detail-excerpt {
    font-style: italic;
    color: #9ca3af;
    font-size: 0.85em;
    border-left: 3px solid #e5e7eb;
    padding-left: 12px;
    margin-bottom: 20px;
}

.curation-detail-notes {
    margin-top: 20px;
}

.curation-detail-notes label {
    font-weight: 600;
    font-size: 0.9em;
    color: #374151;
    display: block;
    margin-bottom: 6px;
}

.curation-detail-notes textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9em;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
}

.curation-detail-notes textarea:focus {
    border-color: #6366f1;
}

.curation-detail-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.curation-detail-actions button {
    padding: 10px 20px;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.curation-btn-star {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a !important;
}

.curation-btn-star:hover { background: #fde68a; }

.curation-btn-archive {
    background: #f3f4f6;
    color: #6b7280;
    border-color: #e5e7eb !important;
}

.curation-btn-archive:hover { background: #e5e7eb; }

.curation-btn-delete {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca !important;
    margin-left: auto;
}

.curation-btn-delete:hover { background: #fecaca; }

.curation-btn-save-notes {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

.curation-btn-save-notes:hover {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* ==================== EMPTY STATE ==================== */
.curation-empty {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.curation-empty-emoji {
    font-size: 3em;
    margin-bottom: 12px;
}

.curation-empty-text {
    font-size: 1em;
    font-weight: 500;
    margin-bottom: 8px;
    color: #6b7280;
}

.curation-empty-sub {
    font-size: 0.85em;
}

/* ==================== LOADING / SPINNER ==================== */
.curation-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 12px;
    color: #6b7280;
}

.curation-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e5e7eb;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: curationSpin 0.8s linear infinite;
}

@keyframes curationSpin {
    to { transform: rotate(360deg); }
}

/* ==================== EXPORT BAR ==================== */
.curation-export-bar {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 16px;
}

.curation-export-btn {
    padding: 8px 18px;
    border-radius: 8px;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    color: #374151;
    font-size: 0.82em;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.curation-export-btn:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.curation-process-raw-btn {
    padding: 8px 18px;
    border-radius: 8px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    color: white;
    font-size: 0.82em;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.curation-process-raw-btn:hover {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.curation-process-raw-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==================== PAGINATION ==================== */
.curation-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.curation-pagination button {
    padding: 8px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85em;
    font-weight: 600;
    color: #6366f1;
    cursor: pointer;
    transition: all 0.2s;
}

.curation-pagination button:hover:not(:disabled) {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

.curation-pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.curation-pagination span {
    font-size: 0.85em;
    color: #9ca3af;
}

/* ==================== TOAST ==================== */
.curation-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 14px 24px;
    border-radius: 12px;
    background: #1f2937;
    color: white;
    font-size: 0.9em;
    font-weight: 500;
    z-index: 10001;
    animation: curationToastIn 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

@keyframes curationToastIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== ANALYSIS RESULTS ==================== */
.curation-analysis-result {
    margin-top: 24px;
    animation: curationAnalysisFadeIn 0.4s ease both;
}

@keyframes curationAnalysisFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header bandeau */
.curation-analysis-header {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 2px solid #a7f3d0;
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 20px;
}

.curation-analysis-header-icon {
    font-size: 1.8em;
    line-height: 1;
}

.curation-analysis-header-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.curation-analysis-header-text strong {
    font-size: 1.1em;
    color: #065f46;
}

.curation-analysis-header-text span {
    font-size: 0.85em;
    color: #047857;
}

/* Summary mini-cards grid */
.curation-analysis-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.curation-analysis-summary-card {
    border: 2px solid;
    border-radius: 12px;
    padding: 14px 16px;
    text-align: center;
    transition: transform 0.2s;
}

.curation-analysis-summary-card:hover {
    transform: translateY(-2px);
}

.curation-analysis-summary-count {
    font-size: 1.6em;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.curation-analysis-summary-label {
    font-size: 0.75em;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Enriched insight cards list */
.curation-analysis-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.curation-analysis-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 22px 24px;
    transition: border-color 0.2s, box-shadow 0.2s;
    animation: curationCardSlideIn 0.35s ease both;
}

@keyframes curationCardSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.curation-analysis-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.1);
}

.curation-analysis-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.curation-analysis-card-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.curation-analysis-card-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.curation-analysis-card-title {
    font-size: 1.08em;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
    line-height: 1.4;
}

.curation-analysis-card-content {
    font-size: 0.9em;
    color: #4b5563;
    line-height: 1.65;
    margin-bottom: 12px;
}

/* Blockquote excerpt */
.curation-analysis-excerpt {
    position: relative;
    background: #f9fafb;
    border-left: 4px solid #d1d5db;
    border-radius: 0 10px 10px 0;
    padding: 14px 18px 14px 24px;
    margin-bottom: 12px;
    font-size: 0.85em;
    font-style: italic;
    color: #6b7280;
    line-height: 1.6;
}

.curation-analysis-excerpt-icon {
    position: absolute;
    top: 6px;
    left: 6px;
    font-size: 1.4em;
    color: #d1d5db;
    font-style: normal;
    line-height: 1;
}

/* Tags row */
.curation-analysis-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

/* Confidence bar */
.curation-analysis-confidence {
    display: flex;
    align-items: center;
    gap: 10px;
}

.curation-analysis-confidence-label {
    font-size: 0.75em;
    font-weight: 600;
    color: #9ca3af;
    white-space: nowrap;
    min-width: 100px;
}

.curation-analysis-confidence-bar {
    flex: 1;
    height: 6px;
    background: #f3f4f6;
    border-radius: 3px;
    overflow: hidden;
}

.curation-analysis-confidence-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}

/* Copy button */
.curation-analysis-copy-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: #f3f4f6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
}

.curation-analysis-copy-btn:hover {
    background: #e5e7eb;
}

/* Save to favorites button */
.curation-analysis-save-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 14px;
    padding: 10px 16px;
    border: 2px solid #f59e0b;
    border-radius: 10px;
    background: #fffbeb;
    color: #92400e;
    font-size: 0.85em;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}

.curation-analysis-save-btn:hover {
    background: #fef3c7;
    border-color: #d97706;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.curation-analysis-save-btn.saved {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #059669;
    color: white;
    cursor: default;
}

.curation-analysis-save-btn:disabled {
    opacity: 0.85;
    transform: none;
    box-shadow: none;
}

/* Hidden copy zone */
.curation-analysis-card-copy-zone {
    display: none;
}

/* Dashboard button */
.curation-analysis-dashboard-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    border: 2px solid #6366f1;
    border-radius: 12px;
    background: white;
    color: #6366f1;
    font-size: 0.95em;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s;
}

.curation-analysis-dashboard-btn:hover {
    background: #6366f1;
    color: white;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .curation-modal {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }

    .curation-overlay {
        padding: 0;
    }

    .curation-header {
        border-radius: 0;
        padding: 18px 20px;
    }

    .curation-body {
        padding: 18px 16px;
    }

    .curation-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .curation-form-row {
        grid-template-columns: 1fr;
    }

    .curation-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .curation-search {
        min-width: 0;
    }

    .curation-insight-top {
        flex-direction: column;
    }

    .curation-insight-source {
        margin-left: 0;
    }

    .curation-detail-actions {
        flex-direction: column;
    }

    .curation-btn-delete {
        margin-left: 0;
    }

    .curation-tab {
        padding: 12px 16px;
        font-size: 0.82em;
    }

    /* Analysis results responsive */
    .curation-analysis-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .curation-analysis-card {
        padding: 16px 18px;
    }

    .curation-analysis-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .curation-analysis-card-actions {
        align-self: flex-end;
        margin-top: -28px;
    }

    .curation-analysis-confidence {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .curation-analysis-confidence-bar {
        width: 100%;
    }

    .curation-analysis-header {
        padding: 14px 16px;
    }
}

@media (max-width: 400px) {
    .curation-stats {
        grid-template-columns: 1fr 1fr;
    }

    .curation-stat-number {
        font-size: 1.4em;
    }

    .curation-header h2 {
        font-size: 1.1em;
    }
}
