/* ===== VocMoc Design System ===== */

:root {
    --vm-primary: #4f46e5;
    --vm-primary-rgb: 79, 70, 229;
    --vm-primary-light: #818cf8;
    --vm-primary-dark: #3730a3;
    --vm-accent: #06b6d4;
    --vm-accent-rgb: 6, 182, 212;
    --vm-accent-light: #67e8f9;
    --vm-success: #10b981;
    --vm-success-light: #d1fae5;
    --vm-warning: #f59e0b;
    --vm-warning-light: #fef3c7;
    --vm-danger: #ef4444;
    --vm-danger-light: #fee2e2;
    --vm-gray-50: #f8fafc;
    --vm-gray-100: #f1f5f9;
    --vm-gray-200: #e2e8f0;
    --vm-gray-300: #cbd5e1;
    --vm-gray-400: #94a3b8;
    --vm-gray-500: #64748b;
    --vm-gray-600: #475569;
    --vm-gray-700: #334155;
    --vm-gray-800: #1e293b;
    --vm-gray-900: #0f172a;
    --vm-radius-sm: 0.5rem;
    --vm-radius: 0.75rem;
    --vm-radius-lg: 1rem;
    --vm-radius-xl: 1.25rem;
    --vm-shadow-sm: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
    --vm-shadow: 0 4px 6px -1px rgba(15,23,42,.07), 0 2px 4px -2px rgba(15,23,42,.05);
    --vm-shadow-md: 0 10px 15px -3px rgba(15,23,42,.08), 0 4px 6px -4px rgba(15,23,42,.04);
    --vm-shadow-lg: 0 20px 25px -5px rgba(15,23,42,.1), 0 8px 10px -6px rgba(15,23,42,.06);
    --vm-transition: 0.2s cubic-bezier(.4,0,.2,1);
    --vm-gradient: linear-gradient(135deg, var(--vm-primary), var(--vm-accent));
}

/* ===== Base ===== */
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--vm-gray-800);
    background: var(--vm-gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--vm-gray-900); }
h1:focus { outline: none; }

/* ===== Validation ===== */
.valid.modified:not([type=checkbox]) { outline: 1px solid var(--vm-success); }
.invalid { outline: 1px solid var(--vm-danger); }
.validation-message { color: var(--vm-danger); }

.blazor-error-boundary {
    background: var(--vm-danger);
    padding: 1rem 1.5rem;
    color: white;
    border-radius: var(--vm-radius);
}
.blazor-error-boundary::after { content: "Ein Fehler ist aufgetreten."; }

/* ===== Navbar ===== */
.vm-navbar {
    background: white;
    border-bottom: 1px solid var(--vm-gray-200);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: box-shadow var(--vm-transition);
}

.vm-navbar.scrolled { box-shadow: var(--vm-shadow); }

.vm-navbar .navbar-brand {
    font-weight: 800;
    font-size: 1.35rem;
    background: var(--vm-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.vm-navbar .nav-link {
    color: var(--vm-gray-600);
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: var(--vm-radius-sm);
    transition: all var(--vm-transition);
    font-size: 0.925rem;
}

.vm-navbar .nav-link:hover,
.vm-navbar .nav-link.active {
    color: var(--vm-primary);
    background: rgba(79,70,229,.06);
}

/* ===== Cards ===== */
.vm-card {
    background: white;
    border: 1px solid var(--vm-gray-200);
    border-radius: var(--vm-radius-lg);
    box-shadow: var(--vm-shadow-sm);
    transition: all var(--vm-transition);
    overflow: hidden;
}

.vm-card:hover { box-shadow: var(--vm-shadow-md); }

.vm-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--vm-gray-100);
    background: white;
    font-weight: 600;
}

.vm-card-body { padding: 1.25rem; }

.vm-card-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--vm-gray-100);
    background: var(--vm-gray-50);
}

/* ===== Buttons ===== */
.vm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    border: none;
    border-radius: var(--vm-radius-sm);
    padding: 0.6rem 1.25rem;
    font-size: 0.925rem;
    cursor: pointer;
    transition: all var(--vm-transition);
    text-decoration: none;
    line-height: 1.5;
}

.vm-btn:active { transform: scale(0.97); }

.vm-btn-primary {
    background: var(--vm-gradient);
    color: white;
    box-shadow: 0 2px 8px rgba(79,70,229,.3);
}
.vm-btn-primary:hover {
    box-shadow: 0 4px 16px rgba(79,70,229,.4);
    color: white;
    filter: brightness(1.05);
}

.vm-btn-success {
    background: var(--vm-success);
    color: white;
    box-shadow: 0 2px 8px rgba(16,185,129,.3);
}
.vm-btn-success:hover { box-shadow: 0 4px 16px rgba(16,185,129,.4); color: white; filter: brightness(1.05); }

.vm-btn-danger {
    background: var(--vm-danger);
    color: white;
    box-shadow: 0 2px 8px rgba(239,68,68,.3);
}
.vm-btn-danger:hover { box-shadow: 0 4px 16px rgba(239,68,68,.4); color: white; filter: brightness(1.05); }

.vm-btn-outline {
    background: white;
    color: var(--vm-gray-700);
    border: 1.5px solid var(--vm-gray-300);
}
.vm-btn-outline:hover { border-color: var(--vm-primary); color: var(--vm-primary); background: rgba(79,70,229,.04); }

.vm-btn-ghost {
    background: transparent;
    color: var(--vm-gray-500);
    padding: 0.5rem 0.75rem;
}
.vm-btn-ghost:hover { background: var(--vm-gray-100); color: var(--vm-gray-800); }

.vm-btn-sm { padding: 0.4rem 0.85rem; font-size: 0.85rem; }
.vm-btn-lg { padding: 0.75rem 1.75rem; font-size: 1.05rem; }
.vm-btn-icon { padding: 0.5rem; width: 2.25rem; height: 2.25rem; }
.vm-btn-icon.vm-btn-sm { width: 2rem; height: 2rem; padding: 0.375rem; }

.vm-btn:disabled, .vm-btn.disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== Form Controls ===== */
.vm-input {
    display: block;
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.95rem;
    border: 1.5px solid var(--vm-gray-300);
    border-radius: var(--vm-radius-sm);
    background: white;
    color: var(--vm-gray-800);
    transition: all var(--vm-transition);
}

.vm-input:focus {
    outline: none;
    border-color: var(--vm-primary-light);
    box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}

.vm-input::placeholder { color: var(--vm-gray-400); }

.vm-input-lg {
    padding: 0.8rem 1rem;
    font-size: 1.1rem;
}

/* Code digit inputs (OTP style) */
.vm-code-digits {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.vm-code-digit {
    width: 3rem;
    height: 3.5rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 1.5px solid var(--vm-gray-300);
    border-radius: var(--vm-radius-sm);
    background: white;
    color: var(--vm-gray-800);
    transition: all var(--vm-transition);
    caret-color: var(--vm-primary);
}

.vm-code-digit:focus {
    outline: none;
    border-color: var(--vm-primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}

.vm-code-digit::placeholder {
    color: var(--vm-gray-300);
    font-weight: 400;
}

@media (max-width: 400px) {
    .vm-code-digit {
        width: 2.5rem;
        height: 3rem;
        font-size: 1.25rem;
    }
    .vm-code-digits { gap: 0.35rem; }
}

.vm-label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--vm-gray-700);
    margin-bottom: 0.375rem;
}

.vm-checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.vm-checkbox-wrap input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    accent-color: var(--vm-primary);
    cursor: pointer;
}

/* ===== Badges ===== */
.vm-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    line-height: 1.4;
}

.vm-badge-primary { background: rgba(79,70,229,.1); color: var(--vm-primary); }
.vm-badge-success { background: var(--vm-success-light); color: #065f46; }
.vm-badge-warning { background: var(--vm-warning-light); color: #92400e; }
.vm-badge-danger { background: var(--vm-danger-light); color: #991b1b; }
.vm-badge-gray { background: var(--vm-gray-100); color: var(--vm-gray-600); }
.vm-badge-info { background: rgba(6,182,212,.1); color: #0e7490; }

.vm-badge-lg { font-size: 0.85rem; padding: 0.35rem 0.85rem; }

/* ===== Alerts ===== */
.vm-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: var(--vm-radius);
    font-size: 0.925rem;
    border: 1px solid transparent;
}

.vm-alert-danger { background: var(--vm-danger-light); color: #991b1b; border-color: #fecaca; }
.vm-alert-success { background: var(--vm-success-light); color: #065f46; border-color: #a7f3d0; }
.vm-alert-info { background: rgba(6,182,212,.08); color: #0e7490; border-color: rgba(6,182,212,.2); }

.vm-alert i { font-size: 1.1rem; margin-top: 0.1rem; flex-shrink: 0; }

/* ===== Hero ===== */
.vm-hero {
    background: var(--vm-gradient);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    z-index: -1;
}

.vm-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 0%, rgba(255,255,255,.15) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 100%, rgba(6,182,212,.2) 0%, transparent 50%);
    pointer-events: none;
}

.vm-hero h1 { color: white; }

/* ===== Stat Cards ===== */
.vm-stat {
    text-align: center;
    padding: 1.25rem 1rem;
}

.vm-stat-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
}

.vm-stat-label {
    font-size: 0.8rem;
    color: var(--vm-gray-500);
    font-weight: 500;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ===== Tables ===== */
.vm-table {
    width: 100%;
    font-size: 0.925rem;
}

.vm-table th {
    background: var(--vm-gray-50);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--vm-gray-500);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--vm-gray-200);
}

.vm-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--vm-gray-100);
    vertical-align: middle;
}

.vm-table tbody tr {
    transition: background var(--vm-transition);
}

.vm-table tbody tr:hover { background: var(--vm-gray-50); }
.vm-table tbody tr:last-child td { border-bottom: none; }

.vm-td-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0.25rem;
}

/* Auf schmalen Screens wird jede Zeile zu einer Karte statt zu einer Scroll-Tabelle. */
@media (max-width: 767.98px) {
    .vm-table-cards,
    .vm-table-cards tbody,
    .vm-table-cards tr,
    .vm-table-cards td {
        display: block;
        width: 100%;
    }

    .vm-table-cards thead { display: none; }
    .vm-table-cards td.vm-td-index { display: none; }

    .vm-table-cards tbody { padding: 0.75rem; }

    .vm-table-cards tbody tr {
        border: 1px solid var(--vm-gray-200);
        border-radius: var(--vm-radius);
        padding: 0.6rem 0.85rem;
        background: white;
    }

    .vm-table-cards tbody tr + tr { margin-top: 0.6rem; }
    .vm-table-cards tbody tr:hover { background: white; }

    .vm-table-cards td {
        padding: 0.25rem 0;
        border-bottom: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        min-height: 1.75rem;
        text-align: left;
    }

    .vm-table-cards td::before {
        content: attr(data-label);
        flex: 0 0 auto;
        font-size: 0.7rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--vm-gray-500);
    }

    .vm-table-cards td:not([data-label])::before { content: none; }

    /* Kopfzeile der Karte: laufende Nummer und Name */
    .vm-table-cards td.vm-td-title {
        font-size: 1rem;
        padding-bottom: 0.5rem;
        margin-bottom: 0.35rem;
        border-bottom: 1px solid var(--vm-gray-100);
        gap: 0.4rem;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .vm-table-cards td.vm-td-title::before {
        content: attr(data-index);
        color: var(--vm-gray-400);
        font-size: 0.8rem;
        font-weight: 600;
    }

    /* Aktionen bekommen die volle Breite und duerfen umbrechen */
    .vm-table-cards td.vm-td-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 0.4rem;
        padding-top: 0.5rem;
        margin-top: 0.35rem;
        border-top: 1px solid var(--vm-gray-100);
    }

    .vm-table-cards td.vm-td-title .vm-rename-row { flex: 1 1 100%; }

    .vm-table-cards td.vm-td-title .vm-rename-row .vm-input {
        width: auto !important;
        flex: 1 1 auto;
        min-width: 0;
    }

    .vm-table-cards td .vm-progress { flex: 1 1 auto; }
}

/* ===== Progress Bars ===== */
.vm-progress {
    height: 0.5rem;
    background: var(--vm-gray-200);
    border-radius: 999px;
    overflow: hidden;
}

.vm-progress-bar {
    height: 100%;
    border-radius: 999px;
    transition: width 0.5s cubic-bezier(.4,0,.2,1);
}

.vm-progress-lg { height: 1.25rem; }
.vm-progress-lg .vm-progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
}

/* ===== Join Code Display ===== */
.vm-join-code {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 0.4rem;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    background: var(--vm-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 768px) {
    .vm-join-code { font-size: 3.25rem; }
}

/* ===== QR Code Large (Modal) ===== */
.vm-qr-large svg {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* ===== Timer ===== */
.vm-timer {
    font-size: 1.75rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    color: var(--vm-gray-800);
}

.vm-timer-warning {
    color: var(--vm-danger) !important;
    animation: vm-pulse 1s ease-in-out infinite;
}

.vm-timer-paused {
    color: var(--vm-warning) !important;
    animation: vm-pulse 1.5s ease-in-out infinite;
}

@keyframes vm-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ===== Paused Overlay ===== */
.vm-paused-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(30, 30, 46, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Question Card ===== */
.vm-question {
    background: white;
    border: 1.5px solid var(--vm-gray-200);
    border-radius: var(--vm-radius-lg);
    transition: all var(--vm-transition);
    overflow: hidden;
}

.vm-question:hover {
    border-color: var(--vm-gray-300);
    box-shadow: var(--vm-shadow);
}

.vm-question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--vm-gray-100);
    background: var(--vm-gray-50);
}

.vm-question-body { padding: 1.25rem; }

.vm-question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: var(--vm-radius-sm);
    background: var(--vm-gradient);
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
}

/* ===== Status Badges ===== */
.vm-status-waiting { background: var(--vm-warning-light); color: #92400e; }
.vm-status-active { background: var(--vm-success-light); color: #065f46; }
.vm-status-finished { background: var(--vm-gray-100); color: var(--vm-gray-600); }

/* ===== Quiz Progress (Student) ===== */
.vm-quiz-timer-bar {
    background: white;
    border: 1px solid var(--vm-gray-200);
    border-radius: var(--vm-radius-lg);
    box-shadow: var(--vm-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* ===== Question Navigation ===== */
.vm-question-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    padding: 0.5rem 1.25rem;
    justify-content: center;
    border-top: 1px solid var(--vm-gray-100);
}

.vm-question-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--vm-radius-sm);
    border: 1.5px solid var(--vm-gray-200);
    background: white;
    color: var(--vm-gray-500);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--vm-transition);
}

.vm-question-pill:hover {
    border-color: var(--vm-primary);
    color: var(--vm-primary);
}

.vm-question-pill.active {
    background: var(--vm-gradient);
    color: white;
    border-color: transparent;
}

.vm-question-pill.answered:not(.active) {
    background: var(--vm-success-light);
    border-color: var(--vm-success);
    color: var(--vm-success);
}

.vm-question-pill.skipped {
    background: var(--vm-warning-light);
    border-color: var(--vm-warning);
    color: #92400e;
    animation: vm-pulse-soft 2s ease-in-out infinite;
}

@keyframes vm-pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ===== Navigation Buttons (inside timer bar) ===== */
.vm-quiz-nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1.25rem 0.75rem;
}

/* ===== Question Centering ===== */
.vm-question-center {
    padding-top: 0.25rem;
}

/* ===== Drawing Canvas ===== */
.vm-drawing-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.vm-drawing-container {
    border: 1.5px solid var(--vm-gray-300);
    border-radius: var(--vm-radius-sm);
    overflow: hidden;
    background: white;
    touch-action: none;
}

.vm-drawing-canvas {
    display: block;
    width: 100%;
    cursor: crosshair;
    touch-action: none;
}

.vm-drawing-save-indicator {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--vm-gray-200);
    border-radius: var(--vm-radius-sm);
    padding: 0.3rem 0.65rem;
    font-size: 0.75rem;
    color: var(--vm-gray-500);
    box-shadow: var(--vm-shadow-sm);
    pointer-events: none;
    z-index: 5;
}

/* ===== Score Circle ===== */
.vm-score-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 auto;
    position: relative;
}

.vm-score-excellent { background: var(--vm-success-light); color: #065f46; border: 4px solid var(--vm-success); }
.vm-score-good { background: var(--vm-warning-light); color: #92400e; border: 4px solid var(--vm-warning); }
.vm-score-poor { background: var(--vm-danger-light); color: #991b1b; border: 4px solid var(--vm-danger); }

/* ===== Radio / Choice options ===== */
.vm-choice {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.65rem;
    border: 1.5px solid var(--vm-gray-200);
    border-radius: var(--vm-radius-sm);
    cursor: pointer;
    transition: all var(--vm-transition);
    font-size: 0.875rem;
    line-height: 1.3;
}

.vm-choice:hover { border-color: var(--vm-primary-light); background: rgba(79,70,229,.03); }
.vm-choice.selected { border-color: var(--vm-primary); background: rgba(79,70,229,.06); }

.vm-choice input[type="radio"],
.vm-choice input[type="checkbox"] {
    accent-color: var(--vm-primary);
    width: 1rem;
    height: 1rem;
    margin: 0;
    flex-shrink: 0;
}

.vm-choice i { flex-shrink: 0; }
.vm-choice-title { font-weight: 600; color: var(--vm-gray-800); }
.vm-choice-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--vm-gray-400);
}

/* Die Kacheln stehen nebeneinander, solange sie Platz haben, und brechen erst
   auf schmalen Bildschirmen untereinander. */
.vm-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 0.5rem;
}

/* ===== Compact form sections ===== */
/* Abschnitte trennen sich selbst durch eine feine Linie — ein vm-divider zieht
   mit 2rem Luft einen Dialog auseinander, bis er nicht mehr auf den Schirm
   passt. */
.vm-form-section + .vm-form-section {
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--vm-gray-100);
}

.vm-field-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 0.75rem;
}

.vm-label-hint { font-weight: 400; font-size: 0.8rem; color: var(--vm-gray-400); }
.vm-label-link {
    float: right;
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--vm-primary);
    text-decoration: none;
}
.vm-label-link:hover { text-decoration: underline; }

/* Ein Feld, das einem Abschnitt folgt (Termin, Box-Auswahl): das Eingabefeld
   bleibt schmal, die Beschriftung darf die volle Breite nutzen. */
.vm-field-narrow .vm-input { max-width: 17rem; }

.vm-form-hint {
    margin: 0.4rem 0 0;
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--vm-gray-400);
}

/* ===== Modal ===== */
.vm-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    padding: 1rem;
}

.vm-modal {
    width: 100%;
    max-width: 28rem;
    /* Ein Dialog, der länger ist als der Bildschirm, ragte oben und unten heraus
       und ließ sich nicht scrollen — die Schaltflächen im Fuß waren dann nicht
       erreichbar. Stattdessen bleibt er auf Bildschirmhöhe und scrollt innen. */
    max-height: 100%;
    display: flex;
}

/* Ein Dialog mit mehreren Abschnitten darf in die Breite gehen, statt in die
   Höhe zu wachsen. */
.vm-modal-wide { max-width: 34rem; }

/* Nur die Karte des Dialogs selbst — Karten im Dialoginhalt (etwa die
   Auswahlkacheln) behalten ihr eigenes Layout. */
.vm-modal > .vm-card {
    box-shadow: var(--vm-shadow-lg);
    width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
}

.vm-modal > .vm-card > .vm-card-header,
.vm-modal > .vm-card > .vm-card-footer {
    flex-shrink: 0;
}

.vm-modal > .vm-card > .vm-card-body {
    overflow-y: auto;
}

/* ===== Empty State ===== */
.vm-empty {
    text-align: center;
    padding: 3rem 1.5rem;
}

.vm-empty-icon {
    font-size: 3rem;
    color: var(--vm-gray-300);
    margin-bottom: 1rem;
}

.vm-empty h4 { color: var(--vm-gray-500); font-weight: 600; }
.vm-empty p { color: var(--vm-gray-400); }

/* ===== Spinner ===== */
.vm-spinner {
    display: inline-block;
    width: 2.5rem;
    height: 2.5rem;
    border: 3px solid var(--vm-gray-200);
    border-top-color: var(--vm-primary);
    border-radius: 50%;
    animation: vm-spin 0.7s linear infinite;
}

.vm-spinner-sm { width: 1rem; height: 1rem; border-width: 2px; }

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

/* ===== Loading State ===== */
.vm-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    gap: 1rem;
    color: var(--vm-gray-400);
}


/* ===== Footer ===== */
.vm-footer {
    background: white;
    border-top: 1px solid var(--vm-gray-200);
    padding: 1.25rem 0;
    color: var(--vm-gray-400);
    font-size: 0.85rem;
}

/* ===== Cookie Banner ===== */
.vm-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 1rem;
    z-index: 1060;
    pointer-events: auto;
}
.vm-cookie-banner .vm-container {
    background: white;
    border: 1px solid var(--vm-gray-200);
    border-radius: var(--vm-radius-lg);
    box-shadow: var(--vm-shadow-lg);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
}


/* ===== Breadcrumb ===== */
.vm-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--vm-gray-400);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.vm-breadcrumb a {
    color: var(--vm-gray-500);
    text-decoration: none;
    transition: color var(--vm-transition);
}

.vm-breadcrumb a:hover { color: var(--vm-primary); }
.vm-breadcrumb .separator { color: var(--vm-gray-300); }
.vm-breadcrumb .current { color: var(--vm-gray-700); font-weight: 500; }

/* ===== Section Headers ===== */
.vm-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.vm-section-header h2 {
    font-size: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== Quiz Card Grid ===== */
.vm-quiz-card {
    background: white;
    border: 1px solid var(--vm-gray-200);
    border-radius: var(--vm-radius-lg);
    box-shadow: var(--vm-shadow-sm);
    transition: all var(--vm-transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.vm-quiz-card:hover {
    box-shadow: var(--vm-shadow-md);
    border-color: var(--vm-gray-300);
    transform: translateY(-2px);
}

.vm-quiz-card-body {
    padding: 1.25rem;
    flex: 1;
}

.vm-quiz-card-footer {
    padding: 0.875rem 1.25rem;
    border-top: 1px solid var(--vm-gray-100);
    background: var(--vm-gray-50);
}

/* ===== Fade-in animation ===== */
.vm-fade-in {
    animation: vm-fadeIn 0.35s ease-out;
}

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

/* ===== Slide-up animation ===== */
.vm-slide-up {
    animation: vm-slideUp 0.4s ease-out;
}

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

/* ===== Divider ===== */
.vm-divider {
    height: 1px;
    background: var(--vm-gray-200);
    margin: 2rem 0;
}

/* ===== Responsive Container ===== */
.vm-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .vm-container { padding: 0 1.5rem; }
}

/* ===== Misc Overrides ===== */
.darker-border-checkbox.form-check-input { border-color: var(--vm-gray-400); }

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ===== Utility ===== */
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }

.text-gradient {
    background: var(--vm-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Setup Wizard ===== */
.vm-setup-shell {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem 1rem 4rem;
    position: relative;
    overflow: hidden;
}

.vm-setup-shell::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 20%, rgba(79,70,229,.25) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 80%, rgba(6,182,212,.18) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.vm-setup-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 680px;
}

.vm-mode-card {
    width: 100%;
    height: 100%;
    text-align: left;
    background: rgba(255,255,255,.04);
    border: 2px solid rgba(255,255,255,.08);
    border-radius: var(--vm-radius-lg);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(.4,0,.2,1);
    color: inherit;
    display: block;
}

.vm-mode-card:hover {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.18);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,.3);
}

.vm-mode-card.is-selected {
    background: rgba(79,70,229,.15);
    border-color: var(--vm-primary);
    box-shadow: 0 0 0 1px var(--vm-primary), 0 8px 32px rgba(79,70,229,.25);
}

.vm-mode-icon {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    display: block;
    line-height: 1;
}

.vm-mode-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.4rem;
}

.vm-mode-desc {
    font-size: 0.82rem;
    color: rgba(255,255,255,.5);
    line-height: 1.5;
}

.vm-setup-card {
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--vm-radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
}

.vm-setup-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    font-weight: 700;
    font-size: 1rem;
    color: rgba(255,255,255,.9);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vm-setup-card-body { padding: 1.5rem; }

.vm-setup-card-footer {
    padding: 1.125rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,.08);
    background: rgba(0,0,0,.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.vm-setup-input {
    display: block;
    width: 100%;
    padding: 0.675rem 0.9rem;
    font-size: 0.95rem;
    background: rgba(255,255,255,.06);
    border: 1.5px solid rgba(255,255,255,.12);
    border-radius: var(--vm-radius-sm);
    color: white;
    transition: all 0.2s;
}

.vm-setup-input::placeholder { color: rgba(255,255,255,.28); }

.vm-setup-input:focus {
    outline: none;
    border-color: var(--vm-primary-light);
    background: rgba(255,255,255,.09);
    box-shadow: 0 0 0 3px rgba(79,70,229,.2);
}

.vm-setup-label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: rgba(255,255,255,.7);
    margin-bottom: 0.375rem;
}

.vm-setup-label .req { color: #f87171; margin-left: 2px; }

.vm-setup-hint {
    font-size: 0.78rem;
    color: rgba(255,255,255,.35);
    margin-top: 0.35rem;
    line-height: 1.45;
}

.vm-setup-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: var(--vm-radius);
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.vm-setup-alert-danger  { background: rgba(239,68,68,.12);  border-color: rgba(239,68,68,.25);  color: #fca5a5; }
.vm-setup-alert-success { background: rgba(16,185,129,.12); border-color: rgba(16,185,129,.25); color: #6ee7b7; }
.vm-setup-alert-info    { background: rgba(79,70,229,.1);   border-color: rgba(79,70,229,.2);   color: rgba(255,255,255,.7); }

.vm-setup-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.vm-setup-step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    transition: all 0.25s;
}

.vm-setup-step-dot.active {
    background: var(--vm-primary);
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(79,70,229,.6);
}

.vm-setup-step-dot.done { background: var(--vm-success); }

.vm-setup-success-icon {
    font-size: 4rem;
    color: var(--vm-success);
    filter: drop-shadow(0 0 24px rgba(16,185,129,.5));
    animation: vm-successPop 0.5s cubic-bezier(.17,.67,.3,1.3) both;
}

@keyframes vm-successPop {
    from { transform: scale(0.4); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.vm-setup-btn-back {
    background: rgba(255,255,255,.06);
    border: 1.5px solid rgba(255,255,255,.14);
    color: rgba(255,255,255,.7);
    border-radius: var(--vm-radius-sm);
    padding: 0.575rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s;
}

.vm-setup-btn-back:hover { background: rgba(255,255,255,.1); color: white; }

.test-ok   { color: #6ee7b7; }
.test-fail { color: #fca5a5; }

/* ===== Legal Pages (Impressum / Datenschutz) ===== */
.vm-legal {
    max-width: 780px;
    margin: 0 auto;
    padding: 2.5rem 1rem 4rem;
    font-size: 0.8125rem;
    line-height: 1.7;
    color: var(--vm-gray-600);
}

.vm-legal-head {
    margin-bottom: 1.75rem;
}

.vm-legal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--vm-primary);
    background: rgba(var(--vm-primary-rgb), .08);
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
}

.vm-legal-head h1 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0.7rem 0 0.35rem;
}

.vm-legal-sub {
    font-size: 0.8125rem;
    color: var(--vm-gray-500);
    margin: 0;
}

.vm-legal-card {
    background: white;
    border: 1px solid var(--vm-gray-200);
    border-radius: var(--vm-radius-lg);
    box-shadow: var(--vm-shadow-sm);
    padding: 1.75rem 1.75rem 1.5rem;
}

.vm-legal-toc {
    background: var(--vm-gray-50);
    border: 1px solid var(--vm-gray-200);
    border-radius: var(--vm-radius);
    padding: 1rem 1.15rem;
    margin-bottom: 1.75rem;
}

.vm-legal-toc-title {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--vm-gray-500);
    margin-bottom: 0.6rem;
}

.vm-legal-toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: vm-toc;
    columns: 2;
    column-gap: 1.5rem;
}

.vm-legal-toc li {
    counter-increment: vm-toc;
    break-inside: avoid;
    font-size: 0.75rem;
    line-height: 1.9;
}

.vm-legal-toc li::before {
    content: counter(vm-toc) ".";
    color: var(--vm-gray-400);
    font-variant-numeric: tabular-nums;
    margin-right: 0.4rem;
}

.vm-legal-toc a {
    color: var(--vm-gray-600);
    text-decoration: none;
    transition: color var(--vm-transition);
}

.vm-legal-toc a:hover { color: var(--vm-primary); }

.vm-legal section + section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--vm-gray-100);
}

.vm-legal h2 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--vm-gray-900);
    letter-spacing: -0.01em;
    margin: 0 0 0.6rem;
    scroll-margin-top: 4.5rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.vm-legal h2 .vm-legal-num {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--vm-primary);
    background: rgba(var(--vm-primary-rgb), .08);
    border-radius: var(--vm-radius-sm);
    min-width: 1.5rem;
    padding: 0.1rem 0.35rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
    flex: none;
}

.vm-legal h3 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--vm-gray-500);
    margin: 1.1rem 0 0.5rem;
}

.vm-legal p {
    margin: 0 0 0.75rem;
}

.vm-legal p:last-child { margin-bottom: 0; }

.vm-legal a {
    color: var(--vm-primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(var(--vm-primary-rgb), .25);
    transition: border-color var(--vm-transition);
}

.vm-legal a:hover { border-bottom-color: var(--vm-primary); }

.vm-legal ul {
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0;
}

.vm-legal ul li {
    position: relative;
    padding-left: 1.05rem;
    margin-bottom: 0.2rem;
}

.vm-legal ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--vm-primary-light);
}

.vm-legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
}

.vm-legal-box {
    background: var(--vm-gray-50);
    border: 1px solid var(--vm-gray-200);
    border-radius: var(--vm-radius);
    padding: 0.9rem 1rem;
}

.vm-legal-box h3 { margin-top: 0; }

.vm-legal-box p:last-child { margin-bottom: 0; }

.vm-legal-dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.3rem 1.25rem;
    margin: 0;
    font-size: 0.8125rem;
}

.vm-legal-dl dt {
    color: var(--vm-gray-400);
    font-weight: 500;
}

.vm-legal-dl dd {
    margin: 0;
    color: var(--vm-gray-700);
}

.vm-legal-contact {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: linear-gradient(135deg, rgba(var(--vm-primary-rgb), .05), rgba(var(--vm-accent-rgb), .05));
    border: 1px solid rgba(var(--vm-primary-rgb), .14);
    border-radius: var(--vm-radius);
    padding: 0.9rem 1.1rem;
}

.vm-legal-contact i {
    font-size: 1.15rem;
    color: var(--vm-primary);
}

.vm-legal-note {
    font-size: 0.75rem;
    color: var(--vm-gray-400);
    text-align: center;
    margin-top: 1.25rem;
}

@media (max-width: 575.98px) {
    .vm-legal { padding: 1.75rem 0.9rem 3rem; }
    .vm-legal-card { padding: 1.25rem 1.1rem; }
    .vm-legal-toc ol { columns: 1; }
    .vm-legal-dl { grid-template-columns: 1fr; gap: 0 0; }
    .vm-legal-dl dt { margin-top: 0.5rem; }
}

/* ===== KI-Erstellung: Ladeanimation ===== */
.vm-ai-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
    padding: 2rem 1rem 1.5rem;
}

.vm-ai-orb {
    position: relative;
    width: 4.5rem;
    height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vm-ai-orb::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--vm-primary), var(--vm-accent), transparent 70%);
    animation: vm-spin 1.1s linear infinite;
}

.vm-ai-orb::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: white;
}

.vm-ai-orb i {
    position: relative;
    z-index: 1;
    font-size: 1.6rem;
    color: var(--vm-primary);
    animation: vm-pulse-soft 1.6s ease-in-out infinite;
}

.vm-ai-loading-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--vm-gray-800);
}

.vm-ai-loading-sub {
    font-size: 0.85rem;
    color: var(--vm-gray-500);
    margin-top: 0.25rem;
}

.vm-ai-loading-hint {
    font-size: 0.8rem;
    color: var(--vm-gray-400);
    margin-top: 0.5rem;
    min-height: 1.2em;
}

.vm-ai-dots span {
    animation: vm-blink 1.4s infinite both;
}

.vm-ai-dots span:nth-child(2) { animation-delay: 0.2s; }
.vm-ai-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes vm-blink {
    0%, 80%, 100% { opacity: 0; }
    40% { opacity: 1; }
}

.vm-skeleton-rows {
    width: 100%;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.vm-skeleton {
    height: 0.9rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--vm-gray-100) 25%, var(--vm-gray-200) 50%, var(--vm-gray-100) 75%);
    background-size: 200% 100%;
    animation: vm-shimmer 1.5s ease-in-out infinite;
}

@keyframes vm-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .vm-ai-orb::before,
    .vm-ai-orb i,
    .vm-ai-dots span,
    .vm-skeleton { animation: none; }
}

/* ===== Prüfungsvorschau (Import und KI-Erstellung) ===== */
.vm-preview-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--vm-gray-200);
    margin-bottom: 1rem;
}

.vm-preview-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--vm-gray-800);
}

.vm-preview-desc {
    font-size: 0.9rem;
    color: var(--vm-gray-500);
    margin-top: 0.15rem;
}

.vm-preview-meta {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.vm-preview-question {
    padding: 0.9rem 1rem;
    border: 1px solid var(--vm-gray-200);
    border-radius: var(--vm-radius);
    background: white;
    margin-bottom: 0.75rem;
}

.vm-preview-question-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.45rem;
}

.vm-preview-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--vm-gray-100);
    color: var(--vm-gray-600);
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.vm-preview-points {
    margin-left: auto;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--vm-gray-500);
    white-space: nowrap;
}

.vm-preview-text {
    font-size: 0.95rem;
    color: var(--vm-gray-800);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.vm-preview-detail {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--vm-gray-600);
    overflow-wrap: anywhere;
}

.vm-preview-detail ol,
.vm-preview-detail ul {
    margin: 0.25rem 0 0;
    padding-left: 1.25rem;
}

.vm-preview-label {
    display: inline-block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    color: var(--vm-gray-400);
    margin-right: 0.4rem;
}

.vm-preview-missing {
    color: #92400e;
    font-style: italic;
}

.vm-preview-gap {
    background: var(--vm-warning-light);
    color: #92400e;
    border-radius: 0.25rem;
    padding: 0 0.3rem;
    font-weight: 600;
}

.vm-preview-chip {
    display: inline-block;
    background: var(--vm-gray-100);
    color: var(--vm-gray-700);
    border-radius: 999px;
    padding: 0.1rem 0.6rem;
    margin: 0.15rem 0.3rem 0.15rem 0;
    font-size: 0.82rem;
}

.vm-preview-chip.correct {
    background: var(--vm-success-light);
    color: #065f46;
}

.vm-preview-chip.muted {
    color: var(--vm-gray-500);
    border: 1px dashed var(--vm-gray-300);
    background: transparent;
}

.vm-preview-options {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.vm-preview-option {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
}

.vm-preview-option i { color: var(--vm-gray-300); margin-top: 0.1rem; }
.vm-preview-option.correct { color: var(--vm-gray-800); font-weight: 600; }
.vm-preview-option.correct i { color: var(--vm-success); }
