/* Homepage layout and component variants. Reuse frontend-ui.css for common controls and cards. */
.qp-mode-card {
    --qp-mode-accent: var(--qp-ui-accent);
    --qp-mode-tint: var(--qp-ui-tint);
    overflow: hidden;
}

.qp-plan-card {
    --qp-plan-accent: var(--qp-ui-accent);
    --qp-plan-tint: var(--qp-ui-tint);
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.qp-ui .qp-plan-symbol {
    display: flex;
}

.qp-hero {
    background: #fff;
}

.qp-hero-title {
    font-size: clamp(2.125rem, 4vw, 3.625rem);
    line-height: 1.12;
    letter-spacing: -.045em;
    font-weight: 700;
}

.qp-hero-title span {
    color: #5637d8;
}

.qp-pill {
    border-radius: 50rem;
    padding: .45rem .8rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

#qpHeroPreviewCarousel .carousel-indicators button {
    background-color: #cbd5e1;
    opacity: 1;
}

#qpHeroPreviewCarousel .carousel-indicators .active {
    background-color: var(--qp-ui-primary);
}

.qp-category-card {
    transition: transform .15s ease, box-shadow .15s ease;
}

.qp-category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 .75rem 1.5rem rgba(15, 23, 42, .08) !important;
}

.qp-home-categories .qp-category-card,
.qp-home-categories .qp-category-card:hover {
    box-shadow: none !important;
}

.qp-icon-box {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    font-size: 1.75rem;
}

.qp-stat-band {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 55%, #4f46e5 100%);
}

.qp-cta {
    background: linear-gradient(135deg, #4f46e5 0%, #6d5dfc 100%);
}

/* Audience tabs reuse the shared control at a compact homepage width. */
.qp-home .qp-home-audience-tabs {
    width: min(100%, 430px);
}
#qp-student-features.active,
#qp-teacher-features.active {
    animation: qpFeatureFade .22s ease;
}

.our-plans span.h2 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-weight: 800 !important
}

@keyframes qpFeatureFade {
    from {
        opacity: .35;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.qp-led-monitor {
    position: relative;
    padding: 12px;
    border-radius: 1.2rem;
    background: linear-gradient(145deg, #303030, #0f0f0f);
    box-shadow:
        inset 0 0 0 2px rgba(255, 255, 255, .08),
        inset 0 0 0 6px rgba(0, 0, 0, .35),
        0 1.25rem 2.5rem rgba(15, 23, 42, .18);
}

.qp-led-screen {
    overflow: hidden;
    border-radius: .65rem;
    background: #ffffff;
    
}

.qp-led-browser-bar {
    height: 34px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.qp-led-dot {
    width: 9px;
    height: 9px;
    display: inline-block;
    border-radius: 50%;
}

.qp-led-address {
    height: 20px;
    max-width: 260px;
    border-radius: 999px;
    background: #e9ecef;
    color: #6c757d;
    font-size: .72rem;
    line-height: 20px;
    padding: 0 .75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qp-led-screen img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: top center;
    background: #fff;
}

.qp-led-neck {
    width: 72px;
    height: 34px;
    margin: 0 auto;
    background: linear-gradient(90deg, #1f1f1f, #343434, #171717);
    border-left: 3px solid rgba(255, 255, 255, .08);
    border-right: 3px solid rgba(0, 0, 0, .35);
}

.qp-led-base {
    width: 190px;
    height: 22px;
    margin: 0 auto;
    border-radius: 50% 50% 18px 18px;
    background: linear-gradient(180deg, #2d2d2d, #111111);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, .12),
        0 .7rem 1.25rem rgba(15, 23, 42, .16);
}

@media (max-width: 575.98px) {
    .qp-led-monitor {
        padding: 8px;
        border-radius: 1rem;
    }

    .qp-led-browser-bar {
        height: 30px;
    }

    .qp-led-address {
        max-width: 170px;
        font-size: .65rem;
    }

    .qp-led-neck {
        width: 58px;
        height: 34px;
    }

    .qp-led-base {
        width: 160px;
        height: 20px;
    }
}

.qp-led-preview {
    position: relative;
    max-width: 620px;
    margin-inline: auto;
    padding-right: 3.4rem;
}

.qp-hero-phone {
    position: absolute;
    right: 0;
    top: 26%;
    width: 24%;
    min-width: 108px;
    max-width: 142px;
    z-index: 5;
    padding: 6px;
    border-radius: 1.15rem;
    background: linear-gradient(145deg, #2b2b2b, #0b0b0b);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .08),
        0 .9rem 1.7rem rgba(15, 23, 42, .24);
}

.qp-hero-phone::before {
    content: "";
    position: absolute;
    top: 11px;
    left: 50%;
    width: 11px;
    height: 11px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, #38bdf8 0 28%, #0f172a 34% 100%);
    box-shadow: 0 0 0 2px #111827;
    z-index: 3;
}

.qp-hero-phone::after {
    content: "";
    position: absolute;
    right: -2px;
    top: 60px;
    width: 2px;
    height: 44px;
    border-radius: 0 999px 999px 0;
    background: #1f2937;
    box-shadow: 0 72px 0 #1f2937;
}

.qp-hero-phone-screen {
    overflow: hidden;
    border-radius: .9rem;
    background: #fff;
    border: 0;
}

.qp-hero-phone-screen img {
    width: 100%;
    aspect-ratio: 9 / 18;
    object-fit: cover;
    object-position: top center;
    background: #fff;
}

@media (max-width: 575.98px) {
    .qp-led-preview {
        padding-right: 0;
    }

    .qp-hero-phone {
        display: none;
    }
}

.qp-mode-card-header {
    padding: 24px 24px 20px;
}

.qp-mode-preview-stage {
    margin: 0 20px;
    padding: 16px 16px 20px;
    border: 1px solid #edf0f5;
    border-radius: 13px;
    background: #f7f9fc;
}

.qp-mode-preview-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.qp-mode-preview-label {
    color: var(--qp-ui-muted);
    font-size: 12px;
    font-weight: 500;
}

.qp-quiz-modes-section .qp-mode-tabs {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 3px;
    padding: 3px;
    margin: 0;
    border: 1px solid #e1e7ef;
    border-radius: 9px;
    background: #fff;
}

.qp-quiz-modes-section .qp-mode-tabs .nav-link {
    min-width: 70px;
    min-height: 36px;
    padding: 7px 12px;
    border: 0;
    border-radius: 6px;
    color: var(--qp-ui-secondary);
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.qp-quiz-modes-section .qp-mode-tabs .nav-link.active {
    color: var(--qp-mode-accent);
    background: var(--qp-mode-tint);
}

.qp-quiz-modes-section .qp-mode-tabs .nav-link:focus-visible {
    outline: 2px solid var(--qp-mode-accent);
    outline-offset: 1px;
}

.qp-quiz-modes-section .qp-led-preview {
    max-width: 480px;
    margin: 0 auto;
    padding-right: 0;
}

.qp-quiz-modes-section .qp-led-monitor {
    padding: 6px;
    border-radius: 11px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .1);
}

.qp-quiz-modes-section .qp-led-screen {
    border-radius: 6px;
}

.qp-quiz-modes-section .qp-led-screen img {
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: contain;
}

.qp-quiz-modes-section .qp-led-browser-bar {
    height: 25px;
}

.qp-quiz-modes-section .qp-led-dot {
    width: 6px;
    height: 6px;
}

.qp-quiz-modes-section .qp-led-address {
    height: 17px;
    line-height: 17px;
    font-size: 10px;
}

.qp-quiz-modes-section .qp-led-neck {
    width: 46px;
    height: 17px;
}

.qp-quiz-modes-section .qp-led-base {
    width: 112px;
    height: 12px;
    box-shadow: 0 5px 10px rgba(15, 23, 42, .1);
}

.qp-mode-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
    padding: 24px;
    margin: 0;
    list-style: none;
}

.qp-mode-features li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-width: 0;
}

.qp-mode-features li > i {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--qp-mode-accent);
    font-size: 15px;
}

.qp-mode-features h4 {
    margin: 0 0 4px;
    color: var(--qp-ui-strong);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.qp-mode-features p {
    margin: 0;
    color: var(--qp-ui-muted);
    font-size: 13px;
    line-height: 1.65;
}

.qp-mode-history-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 20px;
    margin-top: 20px;
    border: 1px solid var(--qp-ui-border);
    border-radius: 12px;
    background: #fff;
    color: var(--qp-ui-secondary);
    font-size: 13px;
    line-height: 1.65;
}

.qp-mode-history-note > i {
    color: var(--qp-ui-primary);
    margin-top: 2px;
}

@media (max-width: 575.98px) {
    .qp-mode-card-header {
        padding: 20px;
    }

    .qp-mode-preview-stage {
        margin: 0 14px;
        padding: 12px 10px 16px;
    }

    .qp-quiz-modes-section .qp-mode-tabs .nav-link {
        min-height: 42px;
        min-width: 60px;
        padding: 8px 10px;
    }

    .qp-mode-features {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 20px;
    }

}

@media (max-width: 991.98px) {
    .qp-mobile-app #quiz-modes {
        scroll-margin-top: calc(88px + env(safe-area-inset-top, 0px));
    }
}

.qp-plan-price-box {
    padding: 18px 20px;
    margin: 22px 0;
    border: 1px solid #edf0f5;
    border-radius: 12px;
    background: #f7f9fc;
}

.qp-plan-price-label {
    display: block;
    margin-bottom: 8px;
    color: var(--qp-plan-accent);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.qp-plan-price-line {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.qp-plan-amount {
    color: var(--qp-ui-heading);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.045em;
    font-variant-numeric: tabular-nums;
}

.qp-plan-duration {
    color: var(--qp-ui-secondary);
    font-size: 13px;
}

.qp-plan-price-note {
    margin: 8px 0 0;
    color: var(--qp-ui-muted);
    font-size: 12px;
    line-height: 1.6;
}

.qp-plan-fallback {
    color: var(--qp-ui-strong);
    font-size: 20px;
    font-weight: 600;
}

.qp-plan-section-title {
    margin: 0 0 14px;
    color: var(--qp-ui-strong);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.qp-plan-feature-list {
    display: grid;
    gap: 14px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.qp-plan-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--qp-ui-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.qp-plan-feature-list i {
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--qp-plan-accent);
}

.qp-plan-feature-list-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
}

.qp-plan-feature-list-compact li {
    font-size: 13px;
}

.qp-plan-guidance {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
    margin-top: 22px;
    border: 1px solid #e7edf5;
    border-radius: 10px;
    background: #f8fafc;
    color: var(--qp-ui-secondary);
    font-size: 13px;
    line-height: 1.65;
}

.qp-plan-guidance i {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--qp-plan-accent);
}

.qp-plan-tier-list {
    margin: 0 0 22px;
}

.qp-plan-tier-list > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 14px;
    padding: 9px 0;
    border-bottom: 1px solid #edf0f5;
}

.qp-plan-tier-list > div:first-child {
    padding-top: 0;
}

.qp-plan-tier-list dt {
    color: var(--qp-ui-strong);
    font-size: 14px;
    font-weight: 500;
}

.qp-plan-tier-list dd {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0;
    color: var(--qp-ui-strong);
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.qp-plan-tier-list dd span {
    color: var(--qp-ui-muted);
    font-size: 12px;
    font-weight: 400;
}

.qp-plan-actions {
    padding-top: 24px;
    margin-top: auto;
}

.qp-home .qp-plan-actions .btn {
    min-height: 44px;
}

.qp-plan-support {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    margin-top: 20px;
    border: 1px solid var(--qp-ui-border);
    border-radius: 12px;
    background: #fff;
}

.qp-plan-support h3 {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 600;
}

.qp-plan-support p {
    margin: 0;
    color: var(--qp-ui-muted);
    font-size: 13px;
    line-height: 1.65;
}

.qp-plan-support .btn {
    flex-shrink: 0;
    min-height: 44px;
}

@media (max-width: 575.98px) {
    .qp-plan-card {
        padding: 20px;
    }

    .qp-plan-price-box {
        padding: 16px;
    }

    .qp-plan-feature-list-compact {
        grid-template-columns: 1fr;
    }

    .qp-plan-feature-list-compact li {
        font-size: 14px;
    }

    .qp-plan-support {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
    }
}

@media (max-width: 991.98px) {
    .qp-mobile-app #home-plans {
        scroll-margin-top: calc(88px + env(safe-area-inset-top, 0px));
    }
}

.qp-home .qp-cta h2 {
    color: inherit;
}

.qp-hero-description {
    max-width: 36rem;
    font-size: 1.0625rem;
    line-height: 1.7;
}

.qp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.qp-home .qp-hero-action {
    min-height: 46px;
    padding: .7rem 1.2rem;
    white-space: nowrap;
}

.qp-home .qp-hero-secondary {
    color: var(--qp-ui-strong);
    background: #fff;
    border-color: #ccd5e2;
}

.qp-home .qp-hero-secondary:hover {
    color: var(--qp-ui-primary);
    background: #f2f7ff;
    border-color: var(--qp-ui-primary);
}

.qp-hero-benefits {
    font-size: .8125rem;
    line-height: 1.5;
}

#how .qp-how-step-icon {
    font-size: 42px;
    line-height: 1.2;
}

@media (max-width: 575.98px) {
    #how .qp-how-step-icon {
        font-size: 38px;
    }
}

@media (max-width: 575.98px) {
    .qp-home .qp-hero {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .qp-hero-description {
        font-size: 1rem;
        line-height: 1.65;
    }

    .qp-hero-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .625rem;
    }

    .qp-home .qp-hero-action {
        padding: .65rem .625rem;
        font-size: .875rem;
    }

}

@media (max-width: 359.98px) {
    .qp-hero-actions {
        grid-template-columns: 1fr;
    }
}

.qp-hero .qp-hero-copy {
    min-width: 0;
}

.qp-hero .qp-hero-title {
    max-width: 36rem;
}

.qp-hero .qp-pill {
    background: var(--qp-ui-primary-soft) !important;
}

.qp-hero .qp-hero-preview-panel {
    border: 1px solid #e3e8ef;
    border-radius: 22px;
    overflow: hidden;
    background: #f6f8fb;
}

.qp-hero .qp-hero-preview-caption {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid #e9edf3;
}

.qp-hero .qp-hero-preview-label {
    margin-bottom: .65rem;
    color: var(--qp-ui-muted);
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.qp-hero .qp-hero-preview-title {
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.qp-hero .qp-hero-preview-badge {
    margin-bottom: .45rem;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

.qp-hero .qp-hero-preview-caption p {
    margin-top: .35rem;
    font-size: .8125rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.qp-hero .qp-hero-preview-count {
    flex-shrink: 0;
    margin-top: .1rem;
    font-size: .75rem;
    font-weight: 500;
    color: var(--qp-ui-muted);
    font-variant-numeric: tabular-nums;
}

.qp-hero .qp-hero-device-stage {
    padding: 1.75rem 1.5rem 1.5rem;
}

.qp-hero .qp-led-preview {
    width: 100%;
    max-width: 640px;
    padding-right: 15%;
}

.qp-hero .qp-led-monitor {
    padding: 9px;
    border-radius: 17px;
    box-shadow: inset 0 0 0 1px #4a4a4a, 0 12px 22px rgba(15, 23, 42, .12);
}

.qp-hero .qp-led-screen {
    border-radius: 9px;
}

.qp-hero #qpHeroPreviewCarousel .qp-led-screen img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    object-position: center;
}

.qp-hero .qp-led-neck {
    width: 13%;
    height: 26px;
}

.qp-hero .qp-led-base {
    width: 34%;
    height: 16px;
    box-shadow: 0 8px 12px rgba(15, 23, 42, .1);
}

.qp-hero .qp-hero-phone {
    display: block;
    top: auto;
    bottom: 0;
    right: 0;
    width: 25%;
    min-width: 0;
    max-width: 150px;
    padding: 5px;
    border-radius: 17px;
    box-shadow: inset 0 0 0 1px #4a4a4a, 0 8px 16px rgba(15, 23, 42, .15);
}

.qp-hero .qp-hero-phone::before {
    top: 8px;
    width: 7px;
    height: 7px;
    box-shadow: 0 0 0 1px #111827;
}

.qp-hero .qp-hero-phone::after {
    top: 24%;
    height: 14%;
    box-shadow: none;
}

.qp-hero .qp-hero-phone-screen {
    border-radius: 12px;
}

.qp-hero .qp-hero-phone-screen img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 2;
    object-fit: contain;
    object-position: center;
}

.qp-hero .qp-hero-preview-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-top: .75rem;
}

.qp-hero #qpHeroPreviewCarousel .carousel-indicators {
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.qp-hero #qpHeroPreviewCarousel .carousel-indicators button {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 28px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.qp-hero #qpHeroPreviewCarousel .carousel-indicators button::after {
    content: '';
    width: 8px;
    height: 4px;
    border-radius: 4px;
    background: #cbd5e1;
}

.qp-hero #qpHeroPreviewCarousel .carousel-indicators .active::after {
    width: 20px;
    background: var(--qp-ui-primary);
}

.qp-hero .qp-hero-preview-arrow {
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    background: #fff;
    border-color: #e1e7ef;
    color: var(--qp-ui-strong);
}

.qp-hero .qp-hero-preview-arrow:hover {
    background: var(--qp-ui-primary-soft);
    border-color: #b7cff9;
    color: var(--qp-ui-primary);
}

@media (max-width: 991.98px) {
    .qp-hero .qp-hero-preview-column {
        max-width: 680px;
        margin-inline: auto;
    }
}

@media (max-width: 575.98px) {
    .qp-hero .qp-hero-preview-panel {
        border-radius: 18px;
    }

    .qp-hero .qp-hero-preview-caption {
        padding: 1rem;
    }

    .qp-hero .qp-hero-preview-title {
        font-size: .9375rem;
    }

    .qp-hero .qp-hero-device-stage {
        padding: 1.25rem 1rem 1rem;
    }

    .qp-hero .qp-led-monitor {
        padding: 6px;
        border-radius: 12px;
    }

    .qp-hero .qp-led-screen {
        border-radius: 6px;
    }

    .qp-hero .qp-led-neck {
        height: 20px;
    }

    .qp-hero .qp-led-base {
        height: 12px;
    }

    .qp-hero .qp-hero-phone {
        padding: 3px;
        border-radius: 11px;
    }

    .qp-hero .qp-hero-phone-screen {
        border-radius: 8px;
    }

    .qp-hero .qp-hero-phone::before {
        top: 5px;
        width: 4px;
        height: 4px;
    }
}

/* Locked educator homepage. Reuse frontend-ui.css primitives and homepage plan components. */
.qp-teacher-locked {
    background: #f8fafc;
}

.qp-teacher-locked-hero {
    padding-block: clamp(2rem, 5vw, 4.5rem);
    background:
        radial-gradient(ellipse at 0% 0%, rgba(13, 110, 253, .07), transparent 55%),
        linear-gradient(120deg, #fff 40%, #f0f7f4);
}

.qp-teacher-locked .qp-locked-title {
    max-width: 640px;
    font-size: clamp(2rem, 3.8vw, 3.5rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.045em;
}

.qp-teacher-locked .qp-hero-description {
    --qp-ui-font-body: clamp(1rem, 1.4vw, 1.0625rem);
}

.qp-teacher-locked .qp-locked-card {
    box-shadow: 0 16px 40px rgba(15, 23, 42, .07);
}

.qp-locked-workspace-heading {
    background: var(--qp-ui-primary-soft);
    border-bottom: 1px solid var(--qp-ui-border);
}

.qp-teacher-locked .qp-stat-card {
    border: 1px solid var(--qp-ui-border);
    background: #f8fafc;
    font-variant-numeric: tabular-nums;
}

.qp-teacher-locked .qp-stat-card dd {
    color: var(--qp-ui-heading);
    overflow-wrap: anywhere;
}

.qp-locked-retention {
    color: #805b12;
    background: #fff8e8;
    border: 1px solid #f0e3bd;
}

.qp-teacher-locked .qp-locked-retention h2 {
    color: inherit;
}

.qp-locked-section {
    padding-block: clamp(2rem, 4vw, 3.5rem);
}

.qp-locked-plans {
    background: #fff;
}

@media (max-width: 575.98px) {
    .qp-teacher-locked .container {
        padding-inline: 20px;
    }

    .qp-teacher-locked .qp-locked-card > .p-4 {
        padding: 20px !important;
    }
}

/* Homepage demo shell. Core test/practice and review styles come from style.css. */
.qp-sample-demo [hidden] { display: none !important; }
.qp-sample-demo .modal-content { min-height: 100%; }
.qp-sample-demo .modal-header { flex-shrink: 0; }
.qp-sample-demo.is-practice .modal-body { padding-bottom: 86px !important; }
.qp-sample-demo .qp-sample-image-button {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.qp-sample-demo .qp-sample-image-button:disabled { opacity: .35; cursor: default; }
.qp-sample-demo .qp-sample-image-button:focus-visible,
.qp-sample-demo input:focus-visible + label,
.qp-sample-demo .option:focus-visible { outline: 3px solid #2398e7; outline-offset: 3px; }
/* Option-letter details are inline in the original views; scope demo equivalents here. */
.qp-sample-demo .test-quiz .option-letter {
    border-radius: 50%;
    height: 32px;
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #fff;
    background: #2398e7;
    margin: 0 15px 0 7px;
    font-size: 17px;
    padding: 0;
    color: #fff;
    font-weight: bold;
}
.qp-sample-demo .questions input:checked + label .option-letter { background: #fff; color: #911ae2; }
.qp-sample-demo .practice-quiz .option-letter {
    width: 27px;
    height: 30px;
    margin-right: 20px;
    border: 1px solid rgba(255, 255, 255, .5);
    font-size: 17px;
}
.qp-sample-demo .practice-quiz .option.correct .option-letter {
    background: #068a1c;
    border-color: #068a1c;
}
.qp-sample-demo .practice-quiz .option.incorrect .option-letter {
    background: #b80c0c;
    border-color: #b80c0c;
}
.qp-sample-demo .practice-quiz .option {
    background: transparent;
    color: inherit;
    text-align: left;
    border: 2px solid #fff;
    padding-inline: 15px 50px;
}
.qp-sample-demo .practice-quiz .quiz-box { margin-inline: auto; padding-top: 0; }
.qp-sample-demo .practice-quiz .qp-sample-time-head { text-align: right; padding-block: 1.5rem 0; }
.qp-sample-demo .practice-quiz .timebar { margin-bottom: 1.5rem; }
.qp-sample-demo .practice-quiz #quiz { padding: 0 !important; border: 0; }
.qp-sample-demo .qp-sample-practice-next { background: transparent; color: inherit; }
/* Test-result ring is defined in the original test view; reuse its scoped geometry here. */
.qp-sample-demo.is-test-result .modal-content { background: #edf1ff !important; }
.qp-sample-demo .qp-result-wrap { max-width: 1120px; }
.qp-sample-demo .qp-result-ring {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin-inline: auto;
    --p: 0;
    --qp-ring-color: #0d6efd;
    background: radial-gradient(circle closest-side, #fff 72%, transparent 73%),
        conic-gradient(var(--qp-ring-color) calc(var(--p) * 1%), #e9ecef 0);
}
.qp-sample-demo .qp-ring-value { font-size: 1.55rem; font-weight: 800; color: var(--qp-ring-color); }
@media (max-width: 575.98px) {
    .qp-sample-demo .qp-result-ring { width: 112px; height: 112px; }
    .qp-sample-demo .quiz-footer { gap: 12px; height: auto; flex-wrap: wrap; }
    .qp-sample-demo .qp-sample-practice-next { font-size: 16px; }
}