
@media all and (display-mode: standalone) {
    html {
        background-color: #0f3a52 !important;
    }
}
html.qz-standalone {
    background-color: #0f3a52 !important;
}

#qzi-overlay {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 9999999 !important;
    background: #0f3a52 !important;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #ffffff !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: none;
    touch-action: pan-y;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#qzi-overlay.qzi-active {
    display: block !important;
}

#qzi-overlay * {
    box-sizing: border-box;
}

.qzi-container {
    max-width: 540px;
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 0 24px;
    padding-top: env(safe-area-inset-top, 0px);
}

.qzi-topbar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0 20px;
    position: sticky;
    top: 0;
    background: #0f3a52;
    z-index: 10;
}

.qzi-close-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.15s;
    flex-shrink: 0;
}

.qzi-close-btn:active {
    background: rgba(255,255,255,0.1);
}

.qzi-progress-bar {
    flex: 1;
    height: 12px;
    background: rgba(255,255,255,0.08);
    border-radius: 99px;
    overflow: hidden;
}

.qzi-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #e9a820, #f5c44d);
    border-radius: 99px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

.qzi-progress-text {
    font-size: 14px;
    color: #94a3b8 !important;
    font-weight: 600;
    flex-shrink: 0;
    min-width: 40px;
    text-align: right;
}

.qzi-question-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: 120px;
}

.qzi-question-type {
    font-size: 12px;
    font-weight: 700;
    color: #e9a820 !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.qzi-question-text {
    font-family: 'Outfit', -apple-system, sans-serif;
    font-size: 21px;
    font-weight: 600;
    color: #ffffff !important;
    line-height: 1.5;
    margin-bottom: 36px;
}

.qzi-question-text p {
    margin: 0 0 10px;
}

.qzi-question-text p:last-child {
    margin-bottom: 0;
}

.qzi-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qzi-option {
    background: rgba(255,255,255,0.04);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 15px;
    color: #e2e8f0 !important;
    line-height: 1.55;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.qzi-option:active {
    transform: scale(0.98);
}

.qzi-option.qzi-selected {
    background: rgba(24, 78, 107, 0.35);
    border-color: #3d8ab0;
    color: #ffffff !important;
    font-weight: 500;
    box-shadow: 0 0 0 3px rgba(42, 106, 138, 0.3);
}

.qzi-option.qzi-correct {
    background: rgba(34, 197, 94, 0.12);
    border-color: #22c55e;
    color: #4ade80 !important;
    font-weight: 500;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.qzi-option.qzi-wrong {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #f87171 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.qzi-option.qzi-should {
    background: rgba(34, 197, 94, 0.06);
    border: 2px dashed #22c55e;
    color: #4ade80 !important;
}

.qzi-option.qzi-locked {
    pointer-events: none;
}

.qzi-main-btn-wrap {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 24px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to top, #0f3a52 50%, rgba(15,58,82,0.9) 75%, transparent);
    z-index: 11;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.qzi-back-btn {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.qzi-back-btn:active {
    transform: scale(0.93);
    background: rgba(255,255,255,0.1);
}

.qzi-main-btn {
    flex: 1;
    max-width: 540px;
    width: 100%;
    background: linear-gradient(135deg, #e9a820, #f5c44d);
    border-radius: 14px;
    padding: 18px;
    text-align: center;
    cursor: pointer;
    font-family: 'Outfit', -apple-system, sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #184e6b !important;
    letter-spacing: 0.3px;
    user-select: none;
    transition: transform 0.1s, opacity 0.15s;
    -webkit-tap-highlight-color: transparent;
}

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

.qzi-main-btn.qzi-btn-disabled {
    opacity: 0.35;
    pointer-events: none;
}

.qzi-feedback-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: 120px;
}

.qzi-result-banner {
    padding: 18px 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.qzi-result-banner.qzi-banner-correct {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.qzi-result-banner.qzi-banner-wrong {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.qzi-banner-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qzi-banner-correct .qzi-banner-icon {
    background: rgba(34, 197, 94, 0.15);
}

.qzi-banner-wrong .qzi-banner-icon {
    background: rgba(239, 68, 68, 0.15);
}

.qzi-banner-title {
    font-size: 18px;
    font-weight: 700;
}

.qzi-banner-correct .qzi-banner-title {
    color: #4ade80 !important;
}

.qzi-banner-wrong .qzi-banner-title {
    color: #f87171 !important;
}

.qzi-essential {
    padding: 20px;
    background: rgba(233, 168, 32, 0.08);
    border-left: 4px solid #e9a820;
    border-radius: 0 14px 14px 0;
    margin-bottom: 16px;
    animation: qzi-pulse-essential 0.3s ease-in-out 3;
}

@keyframes qzi-pulse-essential {
    0%, 100% { background: rgba(233, 168, 32, 0.08); }
    50% { background: rgba(233, 168, 32, 0.22); }
}

.qzi-essential-label {
    font-size: 11px;
    font-weight: 700;
    color: #e9a820 !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.qzi-essential-text {
    font-size: 15px;
    color: #e2e8f0 !important;
    line-height: 1.7;
}

.qzi-essential-text p {
    margin: 0 0 10px;
}

.qzi-essential-text p:last-child {
    margin-bottom: 0;
}

.qzi-feedback-body {
    padding: 20px;
    background: rgba(255,255,255,0.03);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 12px;
    font-size: 15px;
    color: #cbd5e1 !important;
    line-height: 1.7;
}

.qzi-feedback-body.qzi-animated {
    opacity: 0;
    transform: translateY(8px);
    animation: qzi-fade-in 0.3s ease forwards;
    animation-delay: 0.3s;
}

@keyframes qzi-fade-in {
    to { opacity: 1; transform: translateY(0); }
}

.qzi-feedback-body p {
    font-size: 15px;
    color: #cbd5e1 !important;
    line-height: 1.7;
    margin: 0 0 12px;
}

.qzi-feedback-body p:last-child {
    margin-bottom: 0;
}

.qzi-feedback-body ul,
.qzi-feedback-body ol,
.qzi-essential-text ul,
.qzi-essential-text ol {
    margin: 10px 0;
    padding-left: 24px;
    list-style-position: outside;
}

.qzi-feedback-body ul,
.qzi-essential-text ul {
    list-style-type: disc;
}

.qzi-feedback-body ol,
.qzi-essential-text ol {
    list-style-type: decimal;
}

.qzi-feedback-body li,
.qzi-essential-text li {
    font-size: 15px;
    color: #cbd5e1 !important;
    line-height: 1.65;
    margin-bottom: 6px;
    padding-left: 4px;
}

.qzi-essential-text li {
    color: #e2e8f0 !important;
}

.qzi-feedback-body .rq-essential,
.qzi-feedback-body .rq-warning,
.qzi-feedback-body .rq-tip,
.qzi-feedback-body .rq-example,
.qzi-feedback-body .rq-quote,
.qzi-essential-text .rq-essential,
.qzi-essential-text .rq-warning,
.qzi-essential-text .rq-tip,
.qzi-essential-text .rq-example,
.qzi-essential-text .rq-quote {
    display: block;
    padding: 14px 16px;
    border-radius: 10px;
    margin: 12px 0;
    font-size: 14px;
    line-height: 1.65;
}

.qzi-feedback-body .rq-essential,
.qzi-essential-text .rq-essential {
    background: rgba(233, 168, 32, 0.08);
    border-left: 3px solid #e9a820;
    color: #e2e8f0 !important;
}

.qzi-feedback-body .rq-warning,
.qzi-essential-text .rq-warning {
    background: rgba(239, 68, 68, 0.08);
    border-left: 3px solid #ef4444;
    color: #fca5a5 !important;
}

.qzi-feedback-body .rq-tip,
.qzi-essential-text .rq-tip {
    background: rgba(59, 130, 246, 0.08);
    border-left: 3px solid #3b82f6;
    color: #93c5fd !important;
}

.qzi-feedback-body .rq-example,
.qzi-essential-text .rq-example {
    background: rgba(233, 168, 32, 0.04);
    border: 1px dashed rgba(233, 168, 32, 0.25);
    border-left: 3px solid rgba(233, 168, 32, 0.5);
    color: #cbd5e1 !important;
    font-style: italic;
    border-radius: 0 10px 10px 0;
}

.qzi-feedback-body .rq-quote,
.qzi-essential-text .rq-quote {
    background: rgba(148, 163, 184, 0.06);
    border-left: 3px solid #64748b;
    color: #94a3b8 !important;
    font-style: italic;
}

.qzi-wrong-detail {
    margin-bottom: 16px;
}

.qzi-wrong-section-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b !important;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.qzi-wrong-detail-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 12px;
}

.qzi-wrong-detail-header {
    padding: 14px 18px;
    background: rgba(239, 68, 68, 0.06);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 14px;
    font-weight: 600;
    color: #f87171 !important;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.qzi-wrong-detail-header span {
    flex-shrink: 0;
}

.qzi-wrong-detail-feedback {
    padding: 16px 18px;
    font-size: 14px;
    color: #cbd5e1 !important;
    line-height: 1.65;
}

.qzi-wrong-detail-feedback p {
    margin: 0 0 8px;
}

.qzi-wrong-detail-feedback p:last-child {
    margin-bottom: 0;
}

.qzi-correct-answer {
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid rgba(34, 197, 94, 0.15);
    border-radius: 14px;
    padding: 16px 18px;
    margin-top: 20px;
}

.qzi-correct-answer-label {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8 !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.qzi-correct-answer-text {
    font-size: 15px;
    font-weight: 500;
    color: #4ade80 !important;
    line-height: 1.5;
}

.qzi-wrong-detail-feedback ul,
.qzi-wrong-detail-feedback ol {
    margin: 8px 0;
    padding-left: 24px;
}

.qzi-wrong-detail-feedback ul { list-style-type: disc; }
.qzi-wrong-detail-feedback ol { list-style-type: decimal; }

.qzi-wrong-detail-feedback li {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 4px;
    padding-left: 4px;
    color: #cbd5e1 !important;
}

.qzi-results-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 0 120px;
    min-height: calc(100vh - 40px);
    min-height: calc(100dvh - 40px);
}

.qzi-score-section {
    margin-bottom: 28px;
}

.qzi-score-section--compact {
    margin-bottom: 8px;
}

.qzi-score-circle {
    position: relative;
    width: 108px;
    height: 108px;
    margin: 0 auto 16px;
}

.qzi-score-circle svg {
    display: block;
}

.qzi-score-pct {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', -apple-system, sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #ffffff !important;
}

.qzi-score-message {
    font-size: 17px;
    font-weight: 600;
    color: #e9a820 !important;
    margin-bottom: 4px;
}

.qzi-score-detail {
    font-size: 14px;
    color: #94a3b8 !important;
}

.qzi-xp-section {
    background: rgba(255,255,255,0.04);
    border-radius: 14px;
    padding: 16px 18px;
    width: 100%;
    margin-bottom: 20px;
}

.qzi-xp-title {
    font-size: 12px;
    font-weight: 700;
    color: #64748b !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.qzi-xp-bar-wrap {
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    height: 12px;
    margin-bottom: 8px;
    overflow: hidden;
}

.qzi-xp-bar {
    height: 100%;
    border-radius: 8px;
    background: linear-gradient(90deg, #e9a820, #f5c44d);
}

.qzi-xp-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #94a3b8 !important;
    margin-bottom: 14px;
}

.qzi-xp-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.qzi-xp-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.qzi-xp-row span:first-child { color: #cbd5e1; }
.qzi-xp-row span:last-child { color: #e9a820; font-weight: 600; }

.qzi-xp-divider {
    border-top: 1px solid rgba(255,255,255,0.06);
    margin: 4px 0;
}

.qzi-xp-total span:first-child { font-weight: 600; color: #ffffff; }
.qzi-xp-total span:last-child { font-size: 15px; font-weight: 700; }

.qzi-sync-status {
    text-align: center;
    font-size: 13px;
    color: #4ade80 !important;
    margin-bottom: 20px;
    min-height: 20px;
}

.qzi-results-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.qzi-results-nav-row {
    display: flex;
    gap: 10px;
}

.qzi-secondary-btn {
    flex: 1;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0 !important;
    transition: background 0.15s;
    user-select: none;
}

.qzi-secondary-btn:active {
    background: rgba(255,255,255,0.12);
}

.qzi-review-btn {
    background: rgba(233, 168, 32, 0.06);
    border: 1px solid rgba(233, 168, 32, 0.15);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #e9a820 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.15s;
    user-select: none;
}

.qzi-review-btn:active {
    background: rgba(233, 168, 32, 0.12);
}

.qzi-review-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 0 120px;
}

.qzi-review-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 18px;
    text-align: left;
}

.qzi-review-num {
    font-size: 12px;
    font-weight: 700;
    color: #64748b !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.qzi-review-question {
    font-size: 15px;
    color: #e2e8f0 !important;
    line-height: 1.6;
    margin-bottom: 12px;
}

.qzi-review-answer-label {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.qzi-review-answer {
    font-size: 14px;
    font-weight: 500;
    color: #4ade80 !important;
    padding: 4px 0;
    line-height: 1.5;
}

.qzi-review-zone {
    font-size: 14px;
    color: #cbd5e1 !important;
    padding: 4px 0;
    line-height: 1.5;
}

.qzi-review-zone strong {
    color: #e9a820 !important;
}

.qzi-review-correction-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(233, 168, 32, 0.06);
    border: 1px solid rgba(233, 168, 32, 0.15);
    font-size: 13px;
    font-weight: 600;
    color: #e9a820 !important;
    cursor: pointer;
    transition: background 0.15s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.qzi-review-correction-btn:active {
    background: rgba(233, 168, 32, 0.12);
}

.qzi-review-option {
    font-size: 14px;
    color: #64748b !important;
    padding: 10px 14px;
    margin-bottom: 6px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 10px;
    line-height: 1.5;
}

.qzi-review-option-correct {
    color: #4ade80 !important;
    font-weight: 500;
    background: rgba(34, 197, 94, 0.04);
    border-color: rgba(34, 197, 94, 0.15);
}

.qzi-dt-text {
    font-size: 16px;
    color: #e2e8f0 !important;
    line-height: 2.2;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.qzi-dt-blank {
    display: inline-block;
    min-width: 80px;
    max-width: 100%;
    border-bottom: 2px dashed rgba(255,255,255,0.2);
    padding: 4px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px 4px 0 0;
    vertical-align: bottom;
    word-break: break-word;
}

.qzi-dt-blank-active {
    border-bottom-color: #e9a820 !important;
    background: rgba(233, 168, 32, 0.08);
}

.qzi-dt-blank-blink {
    animation: qzi-blink-blank 0.8s ease-in-out infinite;
}

@keyframes qzi-blink-blank {
    0%, 100% { background: rgba(233, 168, 32, 0.08); }
    50% { background: rgba(233, 168, 32, 0.25); }
}

.qzi-dt-blank-filled {
    border-bottom-color: #3d8ab0 !important;
    background: rgba(24, 78, 107, 0.2);
}

.qzi-dt-blank-filled .qzi-dt-blank-content {
    color: #ffffff !important;
    font-weight: 500;
}

.qzi-dt-blank-content {
    color: #64748b !important;
    font-size: 15px;
}

.qzi-dt-hint {
    font-size: 13px;
    color: #64748b !important;
    margin-bottom: 12px;
}

.qzi-dt-words {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.qzi-dt-word {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 14px;
    color: #e2e8f0 !important;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.qzi-dt-word:active {
    transform: scale(0.96);
}

.qzi-dt-word-used {
    opacity: 0.3;
    text-decoration: line-through;
    pointer-events: none;
}

.qzi-dq-zones {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.qzi-dq-zone {
    background: rgba(255,255,255,0.03);
    border: 2px dashed rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 16px 18px;
    cursor: pointer;
    transition: all 0.15s;
}

.qzi-dq-zone:active {
    background: rgba(255,255,255,0.06);
}

.qzi-dq-zone-label {
    font-size: 14px;
    font-weight: 600;
    color: #e9a820 !important;
    margin-bottom: 8px;
}

.qzi-dq-zone-items {
    min-height: 44px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.qzi-dq-zone-hint {
    font-size: 13px;
    color: #475569 !important;
    font-style: italic;
}

.qzi-dq-placed-item {
    background: rgba(24, 78, 107, 0.3);
    border: 1px solid #3d8ab0;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 14px;
    color: #ffffff !important;
    font-weight: 500;
    cursor: grab;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: none;
}

.qzi-dq-placed-item:active {
    transform: scale(0.96);
    background: rgba(24, 78, 107, 0.5);
}

.qzi-dq-draggable {
    cursor: grab;
    touch-action: none;
}

.qzi-dq-dragging-src {
    opacity: 0.25 !important;
}

.qzi-drag-ghost {
    position: fixed;
    z-index: 10000000;
    pointer-events: none;
    opacity: 0.95;
    font-size: 14px;
    color: #fff !important;
    font-weight: 600;
    background: rgba(233, 168, 32, 0.9);
    padding: 10px 16px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    transform: scale(1.05);
    white-space: nowrap;
}

.qzi-dq-zone-highlight {
    border-color: rgba(233, 168, 32, 0.4) !important;
    background: rgba(233, 168, 32, 0.04) !important;
}

.qzi-dq-zone-hover {
    border-color: #e9a820 !important;
    background: rgba(233, 168, 32, 0.12) !important;
    box-shadow: 0 0 0 3px rgba(233, 168, 32, 0.2);
}


.qzi-screen-dnd .qzi-question-type {
    margin-bottom: 10px;
}

.qzi-screen-dnd .qzi-question-text {
    font-size: 19px;
    margin-bottom: 20px;
}

.qzi-screen-dnd .qzi-dq-zones {
    gap: 8px;
    margin-bottom: 14px;
}

.qzi-screen-dnd .qzi-dq-zone {
    padding: 12px 14px;
}

.qzi-screen-dnd .qzi-dq-zone-label {
    margin-bottom: 4px;
    font-size: 13px;
}

.qzi-screen-dnd .qzi-dq-zone-items {
    min-height: 36px;
    gap: 6px;
}

.qzi-screen-dnd .qzi-dq-placed-item {
    padding: 8px 12px;
    font-size: 13px;
}

.qzi-screen-dnd .qzi-dt-hint {
    margin-bottom: 8px;
    font-size: 12px;
}

.qzi-screen-dnd .qzi-dt-words {
    gap: 6px;
}

.qzi-screen-dnd .qzi-dt-word {
    padding: 8px 12px;
    font-size: 13px;
}

.qzi-dnd-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qzi-dnd-result-zone {
    border-radius: 14px;
    padding: 16px 18px;
    border: 1px solid rgba(255,255,255,0.06);
}

.qzi-dnd-result-wrong {
    background: rgba(239, 68, 68, 0.04);
    border-color: rgba(239, 68, 68, 0.15);
}

.qzi-dnd-result-ok {
    background: rgba(34, 197, 94, 0.04);
    border-color: rgba(34, 197, 94, 0.15);
}

.qzi-dnd-result-zone-name {
    font-size: 14px;
    font-weight: 700;
    color: #e2e8f0 !important;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.qzi-dnd-result-section {
    margin-bottom: 8px;
}

.qzi-dnd-result-section:last-child {
    margin-bottom: 0;
}

.qzi-dnd-result-label {
    color: #64748b !important;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.qzi-dnd-result-line {
    font-size: 14px;
    padding: 6px 0;
    padding-left: 14px;
    position: relative;
    line-height: 1.5;
}

.qzi-dnd-result-line::before {
    content: '•';
    position: absolute;
    left: 0;
    color: inherit !important;
    opacity: 0.5;
}

.qzi-dnd-line-wrong {
    color: #f87171 !important;
    text-decoration: line-through;
    opacity: 0.7;
}

.qzi-dnd-line-correct {
    color: #4ade80 !important;
    font-weight: 500;
}

.qzi-dnd-line-missing {
    color: #4ade80 !important;
    font-style: italic;
    opacity: 0.7;
}

#qzi-overlay mjx-container,
#qzi-overlay .MathJax {
    color: inherit;
    overflow-x: auto;
    max-width: 100%;
}

#qzi-overlay mjx-container[jax="SVG"]:not([display="true"]) {
    margin: 0 3px;
}

#qzi-overlay mjx-container[jax="SVG"][display="true"] {
    margin: 12px 0;
}

#qzi-overlay mjx-container[jax="SVG"] svg {
    max-width: 100%;
    height: auto;
}

@keyframes qzi-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.qzi-shake { animation: qzi-shake 0.4s ease; }

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

@media (max-width: 480px) {
    .qzi-container {
        padding: 0 20px;
        padding-top: env(safe-area-inset-top, 0px);
    }

    .qzi-question-text {
        font-size: 18px;
        margin-bottom: 28px;
    }

    .qzi-option {
        padding: 16px 18px;
        font-size: 14px;
        border-radius: 12px;
    }

    .qzi-main-btn {
        font-size: 16px;
        padding: 16px;
        border-radius: 12px;
    }

    .qzi-main-btn-wrap {
        padding: 16px 20px;
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }

    .qzi-result-banner {
        padding: 16px 18px;
        border-radius: 14px;
    }

    .qzi-essential {
        padding: 16px 18px;
    }

    .qzi-feedback-body {
        padding: 16px 18px;
    }

    .qzi-wrong-detail-header {
        padding: 12px 16px;
        font-size: 13px;
    }

    .qzi-wrong-detail-feedback {
        padding: 14px 16px;
        font-size: 13px;
    }

    .qzi-correct-answer {
        padding: 14px 16px;
    }

    .qzi-results-xp {
        padding: 16px 20px;
    }
}


.qzi-demo-tease {
    text-align: center;
    padding: 10px 16px;
    margin: 4px 0;
    line-height: 1.4;
}

.qzi-demo-tease__line1 {
    font-size: 15px;
    font-weight: 600;
    color: #e2e8f0 !important;
    margin-bottom: 4px;
}

.qzi-demo-tease__line2 {
    font-size: 13px;
    color: #94a3b8 !important;
}

.qzi-demo-cta-featured {
    position: relative;
    background: linear-gradient(135deg, rgba(233,168,32,0.12), rgba(245,196,77,0.06));
    border: 1.5px solid rgba(233,168,32,0.3);
    border-radius: 16px;
    padding: 20px;
    margin: 12px 0 10px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
    width: 100% !important;
    box-sizing: border-box !important;
}

.qzi-demo-cta-featured:active {
    transform: scale(0.98);
}

.qzi-demo-cta-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #e9a820, #f5c44d);
    color: #184e6b !important;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 99px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.qzi-demo-cta-title {
    font-size: 17px;
    font-weight: 700;
    color: #e2e8f0 !important;
    margin: 6px 0 2px;
}

.qzi-demo-cta-price {
    font-size: 13px;
    color: #e9a820 !important;
    font-weight: 600;
    margin-bottom: 6px;
}

.qzi-demo-cta-desc {
    font-size: 13px;
    color: #94a3b8 !important;
    margin-bottom: 14px;
    line-height: 1.4;
}

.qzi-demo-cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, #e9a820, #f5c44d);
    color: #184e6b !important;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 32px;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.15s;
}

.qzi-demo-cta-btn:active {
    transform: scale(0.97);
}

.qzi-demo-cta-trial {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(74,222,128,0.10), rgba(34,197,94,0.05));
    border: 1.5px solid rgba(74,222,128,0.3);
    border-radius: 14px;
    padding: 16px 18px;
    margin: 8px 0;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    width: 100% !important;
    box-sizing: border-box !important;
}

.qzi-demo-cta-trial:active {
    transform: scale(0.98);
    background: linear-gradient(135deg, rgba(74,222,128,0.15), rgba(34,197,94,0.08));
}

.qzi-demo-cta-trial > div {
    flex: 1;
    text-align: center;
}

.qzi-demo-trial-title {
    font-size: 15px;
    font-weight: 600;
    color: #4ade80 !important;
    margin-bottom: 3px;
}

.qzi-demo-trial-desc {
    font-size: 12px;
    color: #86efac !important;
    line-height: 1.3;
}

.qzi-demo-trial-arrow {
    font-size: 20px;
    color: #4ade80 !important;
    flex-shrink: 0;
    margin-left: 12px;
}

.qzi-demo-other-quiz {
    display: block;
    text-align: center;
    font-size: 14px;
    color: #64748b !important;
    padding: 14px;
    margin-top: 4px;
    cursor: pointer;
    transition: color 0.2s;
    width: 100% !important;
    box-sizing: border-box !important;
}

.qzi-demo-other-quiz:active {
    color: #94a3b8 !important;
}


.qzi-demo-emoji {
    font-size: 40px;
    line-height: 1;
    margin-bottom: 6px;
}

.qzi-demo-progress {
    width: 100%;
    margin: 8px 0 12px;
}

.qzi-demo-progress__bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 6px;
}

.qzi-demo-progress__fill {
    height: 100%;
    border-radius: 8px;
    transition: width 1s ease-out;
}

.qzi-demo-progress__label {
    font-size: 14px;
    font-weight: 600;
    color: #cbd5e1 !important;
    text-align: center;
}

.qzi-demo-subtitle {
    font-size: 14px;
    line-height: 1.6;
    color: #e2e8f0 !important;
    text-align: center;
    padding: 0 8px;
    margin: 0 0 16px;
}

.qzi-demo-cta-card {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.08), rgba(34, 197, 94, 0.04));
    border: 1.5px solid rgba(74, 222, 128, 0.25);
    border-radius: 16px;
    padding: 16px 16px 18px;
    margin: 0 0 8px;
    text-align: center;
    width: 100% !important;
    box-sizing: border-box !important;
}

.qzi-fiche-card {
    width: 100% !important;
    box-sizing: border-box !important;
}

.qzi-demo-cta-card__header {
    font-size: 16px;
    font-weight: 700;
    color: #e2e8f0 !important;
    margin-bottom: 12px;
}

.qzi-demo-cta-card__list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
    text-align: left;
    padding: 0 8px;
}

.qzi-demo-cta-card__item {
    font-size: 13px;
    color: #86efac !important;
    line-height: 1.4;
}

.qzi-demo-cta-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: #052e16 !important;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    margin-bottom: 0;
    box-shadow: 0 2px 12px rgba(74, 222, 128, 0.2);
}

.qzi-demo-cta-card__btn:active {
    transform: scale(0.97);
}

.qzi-demo-cta-card__reassure {
    font-size: 12px;
    color: #64748b !important;
    font-weight: 500;
}


.qzi-conseil-quiz {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, rgba(233, 168, 32, 0.12), rgba(245, 196, 77, 0.06));
    border: 2px solid rgba(233, 168, 32, 0.25);
    border-radius: 14px;
    padding: 14px 20px;
    cursor: pointer;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    box-shadow: 0 0 12px rgba(233, 168, 32, 0.10);
    margin-top: 4px;
}

.qzi-conseil-quiz:active {
    border-color: rgba(233, 168, 32, 0.4);
    background: linear-gradient(135deg, rgba(233, 168, 32, 0.18), rgba(245, 196, 77, 0.10));
    box-shadow: 0 0 20px rgba(233, 168, 32, 0.18);
}

.qzi-conseil-quiz__label {
    font-size: 11px;
    color: #e9a820;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.qzi-conseil-quiz__title {
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
    line-height: 1.3;
}

.qzi-conseil-quiz__status {
    font-size: 12px;
    color: #f5c44d;
    font-weight: 600;
}

.qzi-conseil-quiz--mastered {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(74, 222, 128, 0.06));
    border-color: rgba(34, 197, 94, 0.25);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.10);
}

.qzi-conseil-quiz--mastered:active {
    border-color: rgba(34, 197, 94, 0.4);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(74, 222, 128, 0.10));
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.18);
}

.qzi-conseil-quiz--mastered .qzi-conseil-quiz__label {
    color: #4ade80;
}

.qzi-conseil-quiz--mastered .qzi-conseil-quiz__status {
    color: #4ade80;
}


.qzi-trial-upgrade {
    text-align: center;
    background: rgba(233, 168, 32, 0.08);
    border: 1px solid rgba(233, 168, 32, 0.2);
    border-radius: 16px;
    padding: 22px 20px;
    margin: 12px 0 8px;
    width: 100%;
    box-sizing: border-box;
}

.qzi-trial-upgrade__icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.qzi-trial-upgrade__title {
    font-size: 17px;
    font-weight: 700;
    color: #e2e8f0 !important;
    margin-bottom: 6px;
}

.qzi-trial-upgrade__text {
    font-size: 13px;
    color: #94a3b8 !important;
    line-height: 1.5;
    margin-bottom: 16px;
}

.qzi-trial-upgrade__btn {
    display: inline-block;
    padding: 12px 28px;
    background: #e9a820;
    color: #0f3a52 !important;
    font-weight: 700;
    font-size: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.15s, background 0.2s;
}

.qzi-trial-upgrade__btn:active {
    transform: scale(0.97);
}

.qzi-stars-earned {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    margin: 8px 0;
}

.qzi-stars-earned__icon {
    font-size: 28px;
}

.qzi-stars-earned__value {
    font-family: 'Outfit', -apple-system, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #e9a820;
}

.qzi-streak-bonus {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    margin: 0 auto 8px;
    max-width: 300px;
    background: rgba(233, 168, 32, 0.08);
    border: 1px solid rgba(233, 168, 32, 0.20);
    border-radius: 12px;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.qzi-streak-bonus--visible {
    opacity: 1;
    transform: translateY(0);
}

.qzi-streak-bonus__emoji {
    font-size: 20px;
}

.qzi-streak-bonus__label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

.qzi-streak-bonus__stars {
    font-family: 'Outfit', -apple-system, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #f5c44d;
    margin-left: auto;
}


.qzi-antiaban {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 60px 24px 32px;
    text-align: center;
}

.qzi-antiaban__title {
    font-size: 22px;
    line-height: 1.4;
    font-weight: 700;
    color: #e2e8f0;
    max-width: 360px;
    margin-bottom: 18px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.qzi-antiaban__sub {
    font-size: 16px;
    line-height: 1.55;
    font-weight: 600;
    color: #e9a820;
    max-width: 360px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.qzi-antiaban__text {
    font-size: 15px;
    line-height: 1.65;
    color: #94a3b8;
    max-width: 320px;
    margin-bottom: 24px;
}

.qzi-antiaban__cta {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.65;
    color: #e9a820;
    max-width: 320px;
    margin-bottom: 28px;
}


.qzi-end-overline {
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin: 0 0 32px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: 0.02em;
    padding: 0 8px;
}

.qzi-end-pieges-subtitle {
    font-size: 14px;
    line-height: 1.55;
    color: #cbd5e1;
    text-align: center;
    margin: 12px 0 20px;
    padding: 0 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.qzi-end-cta-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: #052e16 !important;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(74, 222, 128, 0.2);
    margin-top: 8px;
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: transform 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
    width: 100%;
    flex: 0 0 auto;
}

.qzi-end-cta-primary:active {
    transform: scale(0.97);
}

.qzi-end-cta-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: transparent;
    border: 1.5px solid rgba(233, 168, 32, 0.5);
    color: #e9a820;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 14px;
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: background 0.2s;
    box-sizing: border-box;
    width: 100%;
    flex: 0 0 auto;
}

.qzi-end-cta-secondary:active {
    background: rgba(233, 168, 32, 0.1);
}

.qzi-end-cta-tertiary {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 12px;
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: background 0.2s;
    box-sizing: border-box;
    width: 100%;
    flex: 0 0 auto;
}

.qzi-end-cta-tertiary:active {
    background: rgba(255, 255, 255, 0.04);
}

.qzi-end-cta__sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin-top: 6px;
    line-height: 1.4;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.qzi-fiche-cta-block {
    display: flex;
    flex-direction: column;
    margin-top: 24px;
    padding: 0 4px;
}

.qzi-email-banner {
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
    padding: 10px 16px;
    margin-bottom: 8px;
    background: rgba(233, 168, 32, 0.06);
    border-radius: 10px;
}


.qzi-fiche-card {
    background: rgba(233, 168, 32, 0.06);
    border: 1.5px solid rgba(233, 168, 32, 0.2);
    border-radius: 16px;
    padding: 14px 16px;
    margin: 0 0 12px;
    text-align: left;
}

.qzi-fiche-card__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.qzi-fiche-card__icon {
    font-size: 18px;
}

.qzi-fiche-card__title {
    font-size: 15px;
    font-weight: 700;
    color: #e2e8f0;
}

.qzi-fiche-card__sub {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 10px;
    line-height: 1.4;
}

.qzi-fiche-card__concepts {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.qzi-fiche-concept {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #e2e8f0;
    line-height: 1.4;
}

.qzi-fiche-concept__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e9a820;
    flex-shrink: 0;
}

.qzi-fiche-concept__label {
    flex: 1;
}

.qzi-fiche-concept__count {
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
}

.qzi-fiche-card__btn {
    display: block;
    text-align: center;
    background: rgba(233, 168, 32, 0.12);
    border: 1px solid rgba(233, 168, 32, 0.3);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #f5c44d;
    cursor: pointer;
    transition: background 0.15s;
}

.qzi-fiche-card__btn:active {
    background: rgba(233, 168, 32, 0.2);
}

.qzi-demo-cta-card__sub {
    font-size: 13px;
    line-height: 1.5;
    color: #94a3b8;
    margin-bottom: 14px;
}


.qzi-fiche-header {
    padding: 16px 16px 12px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 4px;
}

.qzi-fiche-header__class {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.qzi-fiche-header__chapter {
    font-size: 16px;
    font-weight: 700;
    color: #e2e8f0;
    line-height: 1.3;
    margin-bottom: 0;
}

.qzi-fiche-header__subpart {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 16px;
}

.qzi-fiche-content {
    padding: 0 16px 16px;
}

.qzi-fiche-concept-detail {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px 0;
}

.qzi-fiche-concept-detail:first-child {
    border-top: none;
    padding-top: 0;
}

.qzi-fiche-concept-detail__title {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 14px;
    line-height: 1.4;
}

.qzi-fiche-concept-detail__title .qzi-fiche-concept__dot {
    margin-top: 7px;
}

.qzi-fiche-concept-detail__badge {
    font-size: 11px;
    font-weight: 500;
    color: #e9a820;
    background: rgba(233, 168, 32, 0.1);
    border-radius: 6px;
    padding: 2px 8px;
    margin-left: auto;
}

.qzi-fiche-concept__dot--fail {
    background: #e9a820;
}

.qzi-fiche-concept__dot--pass {
    background: #4ade80;
}

.qzi-fiche-fg {
    margin-top: 10px;
}

.qzi-fiche-passed {
    margin-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 12px;
}

.qzi-fiche-passed__toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #4ade80;
    cursor: pointer;
    user-select: none;
}

.qzi-fiche-passed__arrow {
    transition: transform 0.2s;
    font-size: 12px;
}

.qzi-fiche-passed--open .qzi-fiche-passed__arrow {
    transform: rotate(90deg);
}

.qzi-fiche-passed__list {
    display: none;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.qzi-fiche-passed--open .qzi-fiche-passed__list {
    display: flex;
}

.qzi-fiche-passed__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.4;
}


.qzi-fiche-partie {
    padding: 0;
    margin-top: 20px;
}

.qzi-fiche-partie:first-child,
.qzi-fiche-partie--current {
    margin-top: 8px;
}

.qzi-fiche-partie__title {
    font-size: 15px;
    font-weight: 600;
    color: #e2e8f0;
    padding: 10px 16px;
    background: rgba(233, 168, 32, 0.04);
    border: 1px solid rgba(233, 168, 32, 0.3);
    border-radius: 10px;
    margin-bottom: 12px;
}

.qzi-fiche-partie__title .qzi-fiche-partie__num {
    font-family: 'Outfit', -apple-system, sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #f5c44d;
    margin-right: 6px;
}

.qzi-fiche-current-sp {
    margin-bottom: 8px;
}

.qzi-fiche-current-sp__title {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 14px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.qzi-fiche-current-sp__num {
    font-family: 'Outfit', -apple-system, sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #e2e8f0;
    white-space: nowrap;
}

.qzi-fiche-current-sp__label {
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
    line-height: 1.4;
}

.qzi-fiche-locked-sp {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 10px 16px;
    font-size: 13px;
    color: #526a7a;
    line-height: 1.4;
    opacity: 0.7;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.qzi-fiche-locked-sp:last-child {
    border-bottom: none;
}

.qzi-fiche-locked-sp__id {
    font-family: 'Outfit', -apple-system, sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #64748b;
    white-space: nowrap;
    min-width: 28px;
}

.qzi-fiche-locked-sp__label {
    font-style: italic;
    color: #526a7a;
}

.qzi-fiche-retour {
    display: block;
    text-align: center;
    font-size: 14px;
    color: #94a3b8;
    padding: 20px 0 40px;
    cursor: pointer;
}

.qzi-fiche-retour:active {
    color: #e2e8f0;
}

.qzi-demo-cta-card__highlight {
    font-size: 15px;
    font-weight: 600;
    color: #f5c44d;
    line-height: 1.5;
    margin-bottom: 16px;
}



.qzi-prequiz-msg {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 40px 24px;
    text-align: center;
    animation: qzi-prequiz-fade 2.5s ease forwards;
}

@keyframes qzi-prequiz-fade {
    0% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-8px); }
}

.qzi-prequiz-msg__icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.qzi-prequiz-msg__text {
    font-size: 18px;
    font-weight: 600;
    color: #e2e8f0;
    line-height: 1.5;
    max-width: 320px;
}

.qzi-demo-cta-card__steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.qzi-demo-cta-card__step {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #e2e8f0;
    line-height: 1.4;
}

.qzi-demo-cta-card__step span {
    font-size: 16px;
    flex-shrink: 0;
}


.qzi-demo-wall {
    text-align: center;
    padding: 40px 20px;
}

.qzi-demo-wall__emoji {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 16px;
}

.qzi-demo-wall__title {
    font-size: 18px;
    font-weight: 700;
    color: #e2e8f0;
    margin: 0 0 4px;
    line-height: 1.4;
}

.qzi-demo-wall__text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    margin: 16px 0 24px;
    line-height: 1.5;
}

.qzi-demo-wall__btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #e9a820;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 13px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: opacity 0.2s;
    font-family: 'Plus Jakarta Sans', sans-serif;
    flex: 1;
    text-align: center;
}

.qzi-demo-wall__btn:hover {
    opacity: 0.9;
}

.qzi-demo-wall__row {
    display: flex;
    gap: 8px;
    align-items: stretch;
    margin-bottom: 20px;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
}

.qzi-demo-wall__btn-sec {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: transparent;
    border: 1.5px solid rgba(233, 168, 32, 0.5);
    color: #e9a820;
    font-weight: 700;
    font-size: 14px;
    padding: 13px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: background 0.2s;
}

.qzi-demo-wall__btn-sec:active {
    background: rgba(233, 168, 32, 0.1);
}

.qzi-demo-wall__links {
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
}

.qzi-demo-wall__links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.qzi-demo-wall__links a:hover {
    color: rgba(255, 255, 255, 0.7);
}

.qzi-demo-wall__links span {
    color: rgba(255, 255, 255, 0.2);
}

.qzi-demo-other-quiz--classe {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 6px;
}

.qzi-demo-other-quiz,
.qzi-demo-other-quiz--classe {
    font-family: 'Plus Jakarta Sans', sans-serif;
}


.qzi-fiche-compact {
    display: block;
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    font-size: 14px;
    color: #e9a820;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background 0.2s;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.qzi-fiche-compact:active {
    background: rgba(255, 255, 255, 0.08);
}

.qzi-demo-cta-card__sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 10px;
    line-height: 1.3;
}

.qzi-demo-cta-card__row {
    display: flex;
    gap: 8px;
    align-items: stretch;
    justify-content: center;
}

.qzi-demo-cta-card__btn--half {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.qzi-demo-cta-card__btn-sec {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: transparent;
    border: 1.5px solid rgba(233, 168, 32, 0.5);
    color: #e9a820;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 8px;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: background 0.2s;
}

.qzi-demo-cta-card__btn-sec:active {
    background: rgba(233, 168, 32, 0.1);
}




.qzi-order-list { list-style:none; margin:14px 0 0; padding:0; display:flex; flex-direction:column; gap:12px; }
.qzi-order-item { display:flex; align-items:center; gap:12px; background:rgba(255,255,255,0.04); border:2px solid rgba(255,255,255,0.1); border-radius:14px; padding:14px 16px; color:#e2e8f0; will-change:transform; }
.qzi-order-grip { flex:0 0 auto; color:rgba(255,255,255,0.35); font-size:18px; line-height:1; cursor:grab; user-select:none; touch-action:none; }
.qzi-order-item.qzi-order-dragging { opacity:0.55; border-color:rgba(233,168,32,0.55); box-shadow:0 8px 24px rgba(0,0,0,0.35); cursor:grabbing; }
.qzi-order-item.qzi-order-dragging .qzi-order-grip { cursor:grabbing; }
.qzi-order-num { flex:0 0 auto; width:26px; height:26px; border-radius:50%; background:rgba(233,168,32,0.15); color:#e9a820; font-weight:700; font-size:13px; display:flex; align-items:center; justify-content:center; }
.qzi-order-txt { flex:1 1 auto; font-size:15px; line-height:1.5; }
.qzi-order-btns { flex:0 0 auto; display:flex; flex-direction:column; gap:4px; }
.qzi-ord-btn { width:36px; height:26px; border:1px solid rgba(255,255,255,0.14); background:rgba(255,255,255,0.06); color:#e2e8f0; border-radius:8px; font-size:12px; cursor:pointer; line-height:1; padding:0; }
.qzi-ord-btn:disabled { opacity:0.25; cursor:default; }
.qzi-ord-btn:active:not(:disabled) { transform:scale(0.94); }

.qzi-match-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px 12px; margin-top:14px; align-items:start; }
.qzi-match-col { display:flex; flex-direction:column; gap:10px; }
.qzi-match-col-label { font-size:11px; font-weight:700; color:#94a3b8; letter-spacing:0.5px; text-transform:uppercase; margin-bottom:2px; }
.qzi-match-item { position:relative; display:flex; align-items:center; gap:8px; background:rgba(255,255,255,0.04); border:2px solid rgba(255,255,255,0.1); border-radius:12px; padding:14px; color:#e2e8f0; font-size:14px; line-height:1.4; cursor:pointer; user-select:none; -webkit-tap-highlight-color:transparent; transition:all 0.15s ease; }
.qzi-match-item:active { transform:scale(0.98); }
.qzi-match-item.qzi-match-sel { border-color:#3d8ab0; background:rgba(24,78,107,0.35); box-shadow:0 0 0 3px rgba(42,106,138,0.3); color:#fff; }
.qzi-match-badge { flex:0 0 auto; width:20px; height:20px; border-radius:50%; color:#0f3a52; font-weight:800; font-size:11px; display:flex; align-items:center; justify-content:center; }
.qzi-match-txt { flex:1 1 auto; }

.qzi-short-input { width:100%; box-sizing:border-box; margin-top:16px; background:rgba(255,255,255,0.04); border:2px solid rgba(255,255,255,0.1); border-radius:14px; padding:16px 18px; font-size:16px; color:#fff; outline:none; transition:all 0.15s ease; }
.qzi-short-input::placeholder { color:#64748b; }
.qzi-short-input:focus { border-color:#3d8ab0; background:rgba(24,78,107,0.35); box-shadow:0 0 0 3px rgba(42,106,138,0.3); }
.qzi-fill-text { line-height:2.4; }
.qzi-fill-input { display:inline-block; width:7em; max-width:60vw; background:rgba(255,255,255,0.04); border:none; border-bottom:2px solid #3d8ab0; border-radius:6px 6px 0 0; padding:4px 8px; font-size:15px; color:#fff; outline:none; text-align:center; margin:0 2px; }
.qzi-fill-input:focus { background:rgba(24,78,107,0.35); border-bottom-color:#e9a820; }

#qzi-overlay strong,
#qzi-overlay b {
    font-weight: 700;
}
