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

html,
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f6fa;
    color: #2d3436;
    min-height: 100vh;
}

body {
    display: flex;
}

button,
select,
input,
textarea {
    font: inherit;
}

button {
    border: none;
}

h1:focus {
    outline: none;
}

.sidebar {
    width: 220px;
    background: #1a1a2e;
    color: white;
    padding: 24px 0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.sidebar-logo {
    padding: 0 24px 32px;
    font-size: 1.4rem;
    font-weight: 700;
}

.sidebar-logo span {
    color: #a78bfa;
}

.sidebar-subtitle {
    padding: 0 24px;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: -24px;
    margin-bottom: 32px;
}

.sidebar nav {
    flex: 1;
}

.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.sidebar nav a:hover {
    background: rgba(255,255,255,0.05);
    color: white;
}

.sidebar nav a.active {
    background: #6c63ff;
    color: white;
    border-radius: 0 8px 8px 0;
    margin-right: 12px;
}

.sidebar-info {
    margin: 16px;
    padding: 16px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    font-size: 0.8rem;
    color: #94a3b8;
}

.sidebar-info h4 {
    color: white;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.main {
    margin-left: 220px;
    flex: 1;
    padding: 32px 40px;
    max-width: 1200px;
    width: 100%;
}

.page-header {
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.page-header p,
.results-subtitle {
    color: #64748b;
    font-size: 0.9rem;
}

.section {
    background: white;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.section-number {
    width: 32px;
    height: 32px;
    background: #6c63ff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.result-step-number {
    background: #10b981;
}

.section-title h2 {
    font-size: 1.1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.form-group label,
.field-inline-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 6px;
}

.form-group select,
.form-group input,
.block-item-editor,
.block-editor {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    color: #2d3436;
    appearance: auto;
}

.form-group select:focus,
.form-group input:focus,
.block-item-editor:focus,
.block-editor:focus {
    outline: none;
    border-color: #6c63ff;
    box-shadow: 0 0 0 3px rgba(108,99,255,0.1);
}

.form-row {
    display: flex;
    align-items: flex-end;
    gap: 32px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.content-type-group {
    display: flex;
    gap: 0;
}

.content-type-group button {
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    background: white;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.content-type-group button:first-child {
    border-radius: 8px 0 0 8px;
}

.content-type-group button:last-child {
    border-radius: 0 8px 8px 0;
}

.content-type-group button.active {
    background: #6c63ff;
    color: white;
    border-color: #6c63ff;
}

.levels-group {
    display: flex;
    gap: 16px;
    align-items: center;
}

.level-check {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}

.level-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #6c63ff;
}

.btn-generate {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    padding: 14px 32px;
    background: #6c63ff;
    color: white;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-generate:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
}

.btn-generate:hover:not(:disabled) {
    background: #5a52d5;
    transform: translateY(-1px);
}

.btn-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}

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

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
}

.results-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.print-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding-left: 8px;
    border-left: 1px solid #e2e8f0;
}

.btn-print-fragile {
    background: #fef2f2;
    border: 1px solid #f87171;
    color: #b91c1c;
}

.btn-print-fragile:hover {
    background: #f87171;
    color: white;
}

.btn-print-standard {
    background: #f5f3ff;
    border: 1px solid #6c63ff;
    color: #4c1d95;
}

.btn-print-standard:hover {
    background: #6c63ff;
    color: white;
}

.btn-print-avance {
    background: #f0fdf4;
    border: 1px solid #10b981;
    color: #065f46;
}

.btn-print-avance:hover {
    background: #10b981;
    color: white;
}

.btn-action {
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-secondary {
    background: white;
    border: 1px solid #e2e8f0;
    color: #2d3436;
}

.btn-secondary:hover {
    border-color: #6c63ff;
    color: #6c63ff;
}

.btn-primary {
    background: #6c63ff;
    border: 1px solid #6c63ff;
    color: white;
}

.btn-primary:hover {
    background: #5a52d5;
}

.edit-hint {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #f5f3ff;
    color: #5b21b6;
    font-size: 0.85rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.result-card {
    background: white;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    overflow: hidden;
}

.result-card.fragile {
    border-color: #f87171;
}

.result-card.standard {
    border-color: #6c63ff;
}

.result-card.avance {
    border-color: #10b981;
}

.card-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    margin: 16px 16px 0;
    border-radius: 4px;
}

.fragile .card-badge {
    background: #f87171;
}

.standard .card-badge {
    background: #6c63ff;
}

.avance .card-badge {
    background: #10b981;
}

.card-content {
    padding: 16px;
    font-size: 0.85rem;
    line-height: 1.7;
    min-height: 250px;
}

.card-content h4 {
    margin: 12px 0 6px;
    font-size: 0.85rem;
}

.word-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 8px 0;
}

.word-item {
    padding: 4px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.85rem;
}

.line-write {
    border-bottom: 1px solid #cbd5e1;
    min-width: 120px;
    display: inline-block;
    vertical-align: middle;
    min-height: 1.3rem;
}

.question-line {
    min-width: 100px;
}

.sentence-line {
    min-width: 280px;
}

.note-text {
    color: #64748b;
    font-style: italic;
    font-size: 0.8rem;
}

.image-link-list {
    margin-top: 8px;
}

.image-link-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 6px 0;
    padding: 4px 8px;
    background: #f8fafc;
    border-radius: 4px;
}

.question-list {
    list-style: none;
    padding: 0;
}

.block-shell {
    margin-bottom: 10px;
}

.block-editor {
    min-height: 84px;
    resize: vertical;
    margin-bottom: 8px;
}

.block-item-editor {
    margin-bottom: 8px;
}

.card-footer {
    padding: 12px 16px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.card-footer button {
    background: none;
    color: #64748b;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 auto;
}

.card-footer button:hover {
    color: #6c63ff;
}

.correction-section {
    margin-top: 24px;
}

.correction-section h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: #64748b;
}

.correction-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.correction-card {
    background: #fefce8;
    border: 1px solid #fde047;
    border-radius: 12px;
    padding: 16px;
    font-size: 0.8rem;
    line-height: 1.7;
}

.correction-card h4 {
    color: #854d0e;
    margin-bottom: 8px;
}

.info-banner {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: #1e40af;
    margin-top: 20px;
}

.app-footer {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    font-size: 0.8rem;
    color: #94a3b8;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

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

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #6c63ff;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

@media (max-width: 1024px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .results-grid,
    .correction-grid {
        grid-template-columns: 1fr;
    }
}

.mobile-menu-button,
.sidebar-close-button,
.sidebar-overlay {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu-button {
        position: fixed;
        top: 16px;
        left: 16px;
        z-index: 1200;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: #1a1a2e;
        color: white;
        border: none;
        border-radius: 10px;
        font-size: 1.4rem;
        cursor: pointer;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    }

    .sidebar {
        display: flex;
        z-index: 1300;
        width: min(85vw, 320px);
        height: 100dvh;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }

        .sidebar.sidebar-open {
            transform: translateX(0);
        }

    .sidebar-close-button {
        position: absolute;
        top: 12px;
        right: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        background: rgba(255, 255, 255, 0.08);
        color: white;
        border: none;
        border-radius: 50%;
        font-size: 1.1rem;
        cursor: pointer;
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 1250;
        display: block;
        width: 100%;
        height: 100%;
        background: rgba(15, 23, 42, 0.55);
        border: none;
        padding: 0;
    }

    .main {
        margin-left: 0;
        padding: 76px 20px 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media print {
    @page {
        size: A4 portrait;
        margin: 12mm 10mm;
    }

    *,
    *::before,
    *::after {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    html, body {
        font-size: 11pt;
        background: white;
        display: block;
    }

    body {
        display: block;
        background: white;
    }

    .sidebar,
    .page-header,
    .app-footer,
    .section:not(.results-section),
    .results-actions,
    .info-banner,
    .card-footer,
    .edit-hint,
    #blazor-error-ui {
        display: none !important;
    }

    .main {
        margin-left: 0 !important;
        padding: 0 !important;
        max-width: none !important;
        width: 100% !important;
    }

    .section {
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        margin-bottom: 0;
        background: white;
    }

    .results-header {
        margin-bottom: 12px;
        flex-wrap: wrap;
    }

    .results-header h2 {
        font-size: 13pt;
    }

    .results-grid {
        display: block;
        margin-bottom: 12px;
    }

    .result-card {
        break-inside: avoid;
        page-break-inside: avoid;
        border-radius: 6px;
        margin-bottom: 14px;
        width: 100%;
    }

    .card-badge {
        font-size: 8pt;
        padding: 3px 10px;
        margin: 12px 12px 0;
    }

    .card-content {
        min-height: auto;
        padding: 12px;
        font-size: 10pt;
        line-height: 1.6;
    }

    .card-content h4 {
        font-size: 10pt;
        margin: 10px 0 4px;
    }

    .word-list {
        gap: 8px;
        margin: 6px 0;
    }

    .word-item {
        font-size: 9.5pt;
        padding: 2px 8px;
    }

    .line-write {
        min-width: 80px;
    }

    .sentence-line {
        min-width: 160px;
    }

    .question-line {
        min-width: 70px;
    }

    .correction-section {
        break-before: page;
        page-break-before: always;
        margin-top: 0;
    }

    .correction-section h3 {
        font-size: 12pt;
        margin-bottom: 10px;
    }

    .correction-grid {
        display: block;
    }

    .correction-card {
        break-inside: avoid;
        page-break-inside: avoid;
        margin-bottom: 12px;
        font-size: 10pt;
        padding: 12px;
    }

    /* ── Impression d'une seule difficulté ── */
    body[data-print-level="fragile"] .result-card:not(.fragile),
    body[data-print-level="standard"] .result-card:not(.standard),
    body[data-print-level="avance"] .result-card:not(.avance) {
        display: none !important;
    }

    body[data-print-level="fragile"] .correction-card:not([data-level="fragile"]),
    body[data-print-level="standard"] .correction-card:not([data-level="standard"]),
    body[data-print-level="avance"] .correction-card:not([data-level="avance"]) {
        display: none !important;
    }

    .section-number {
        background: #6c63ff !important;
        color: white !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .result-step-number {
        background: #10b981 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .card-badge {
        color: white !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .fragile .card-badge {
        background: #f87171 !important;
    }

    .standard .card-badge {
        background: #6c63ff !important;
    }

    .avance .card-badge {
        background: #10b981 !important;
    }

    .fragile {
        border-color: #f87171 !important;
    }

    .standard {
        border-color: #6c63ff !important;
    }

    .avance {
        border-color: #10b981 !important;
    }
}

/* ─── Auth modal ─────────────────────────────────────────────────────────── */

@keyframes authFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes authSlideUp {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

.auth-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 46, 0.65);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: authFadeIn 0.2s ease;
}

.auth-modal {
    background: #fff;
    border-radius: 24px;
    padding: 40px 40px 32px;
    width: 420px;
    max-width: calc(100vw - 32px);
    position: relative;
    box-shadow: 0 32px 80px rgba(108, 99, 255, 0.18), 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: authSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.25rem;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

.auth-modal-close:hover {
    background: #e2e8f0;
    color: #2d3436;
}

.auth-modal-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 12px;
}

.auth-modal-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.auth-logo span {
    color: #6c63ff;
}

.auth-modal-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.auth-modal-header p {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
}

.auth-modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.875rem;
    color: #b91c1c;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.auth-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
}

.auth-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #1a1a2e;
    background: #f8fafc;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.auth-input:focus {
    border-color: #6c63ff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.12);
}

.auth-input-error {
    border-color: #f87171;
    background: #fff;
}

.auth-input-error:focus {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}

.auth-submit {
    width: 100%;
    padding: 12px;
    background: #6c63ff;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    margin-top: 4px;
}

.auth-submit:hover:not(:disabled) {
    background: #5b52e8;
    box-shadow: 0 4px 16px rgba(108, 99, 255, 0.35);
    transform: translateY(-1px);
}

.auth-submit:active:not(:disabled) {
    transform: translateY(0);
}

.auth-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.auth-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
    flex-shrink: 0;
}

.auth-signup {
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

.auth-signup a {
    color: #6c63ff;
    font-weight: 600;
    text-decoration: none;
}

.auth-signup a:hover {
    text-decoration: underline;
}

/* ─── Save button (saved state) ─────────────────────────────────────────── */

.btn-saved {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065f46;
    cursor: default;
}

/* ─── Sidebar user profile ───────────────────────────────────────────────── */

.sidebar-user {
    margin: 8px 12px 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #6c63ff;
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.sidebar-user-email {
    font-size: 0.75rem;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}

.sidebar-logout {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.72rem;
    color: #94a3b8;
    cursor: pointer;
    text-align: left;
    transition: color 0.15s;
}

.sidebar-logout:hover {
    color: #f87171;
}

.sidebar-login-hint {
    margin: 8px 12px 16px;
    padding: 12px;
    background: rgba(108, 99, 255, 0.12);
    border-radius: 12px;
    font-size: 0.78rem;
    color: #a78bfa;
    line-height: 1.5;
}

.sidebar-login-hint p {
    margin: 0;
}

.sidebar-login-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 8px 0;
    background: #6c63ff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.2s;
}

.sidebar-login-btn:hover {
    background: #5b52e0;
}

/* History page */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.history-card {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.history-card-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e293b;
}

.history-card-meta {
    margin-top: 4px;
    font-size: 0.82rem;
    color: #64748b;
}

.history-empty,
.history-error {
    margin-top: 24px;
    font-size: 0.9rem;
    color: #64748b;
}

.history-error {
    color: #ef4444;
}
