@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

/* QuizTheClass design system
   Loaded after style.css so behavior stays intact while the product gets a
   cohesive, calmer interface. */
:root {
    --blue: #3454d1;
    --blue-dark: #263ea4;
    --blue-light: #edf0ff;
    --green: #07866f;
    --green-light: #e5f8f2;
    --red: #d13d4c;
    --red-light: #fff0f1;
    --orange: #d96c21;
    --orange-light: #fff4e8;
    --purple: #7356c7;
    --purple-light: #f2edff;
    --teal: #07866f;
    --teal-light: #e5f8f2;
    --pink: #c5477d;
    --pink-light: #fff0f6;
    --gray-50: #fafaf8;
    --gray-100: #f3f3ef;
    --gray-200: #e6e5df;
    --gray-300: #d3d1c8;
    --gray-400: #9a988f;
    --gray-500: #696860;
    --gray-600: #56554f;
    --gray-700: #3f403d;
    --gray-800: #252a2e;
    --gray-900: #171c20;
    --navy: #15233c;
    --ink: #172033;
    --cream: #f7f6f1;
    --paper: #fffefa;
    --mint: #16a889;
    --mint-dark: #087660;
    --sun: #f5b844;
    --coral: #f06c59;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 2px 10px rgba(23, 32, 51, .055);
    --shadow-lg: 0 16px 42px rgba(23, 32, 51, .11);
    --shadow-xl: 0 28px 80px rgba(23, 32, 51, .16);
}

html { scroll-behavior: smooth; }
body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: var(--cream);
    letter-spacing: -.006em;
}
h1, h2, h3, h4, h5, h6,
.lp-logo, .auth-logo, .code-big {
    font-family: 'Manrope', 'DM Sans', sans-serif;
    letter-spacing: -.035em;
}
a { color: var(--blue); }
button, input, textarea, select { font: inherit; }
button, .btn, a { -webkit-tap-highlight-color: transparent; }

.btn {
    min-height: 42px;
    border-radius: 11px;
    font-weight: 700;
    letter-spacing: -.01em;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 36px; }
.btn-teacher,
.btn-student {
    background: var(--blue);
    border-color: var(--blue);
    box-shadow: 0 5px 14px rgba(52, 84, 209, .2);
}
.btn-teacher:hover,
.btn-student:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    box-shadow: 0 8px 20px rgba(52, 84, 209, .25);
}
.btn-outline {
    background: rgba(255,255,255,.75);
    border-color: var(--gray-300);
    color: var(--ink);
}
.btn-outline:hover {
    background: #fff;
    border-color: var(--gray-400);
}
.btn-danger {
    background: #fff;
    border-color: #f3bcc1;
    color: #b52838;
    box-shadow: none;
}

.form-group label {
    color: var(--gray-700);
    font-weight: 700;
    letter-spacing: -.01em;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select {
    border: 1.5px solid var(--gray-300);
    border-radius: 11px;
    background: #fff;
    color: var(--ink);
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(52, 84, 209, .12);
}

/* Preview marker */
.preview-ribbon {
    position: fixed;
    z-index: 1200;
    right: 18px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    color: #fff;
    background: rgba(21, 35, 60, .9);
    box-shadow: 0 10px 30px rgba(21, 35, 60, .23);
    backdrop-filter: blur(12px);
    font-size: 12px;
    font-weight: 700;
}
.preview-ribbon::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 4px rgba(74,222,128,.18);
}

/* Landing */
.lp-body {
    background: #fffefa;
    color: var(--ink);
}
.lp-container { max-width: 1180px; }
.lp-nav {
    background: rgba(255, 254, 250, .9);
    border-bottom-color: rgba(23,32,51,.08);
    backdrop-filter: blur(18px);
}
.lp-nav-inner { height: 76px; }
.lp-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--navy);
    font-size: 1.24rem;
}
.lp-logo::before {
    content: 'Q';
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px 12px 12px 4px;
    color: #fff;
    background: var(--blue);
    box-shadow: 0 7px 18px rgba(52,84,209,.23);
    font-size: 18px;
    font-weight: 800;
}
.lp-nav-links { gap: 1.65rem; }
.lp-nav-links a { color: #4f5560; font-weight: 600; }
.lp-student-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: .45rem .75rem;
    border-radius: 9px;
    background: var(--green-light);
    color: var(--mint-dark) !important;
}
.btn-lp-cta {
    padding: .68rem 1.16rem;
    border-radius: 11px;
    background: var(--blue);
    box-shadow: 0 5px 14px rgba(52,84,209,.2);
}
.lp-hero {
    min-height: 720px;
    display: flex;
    align-items: center;
    padding: 9.2rem 0 6rem;
    background:
        radial-gradient(circle at 82% 28%, rgba(85,110,224,.38), transparent 29%),
        radial-gradient(circle at 16% 80%, rgba(22,168,137,.22), transparent 28%),
        linear-gradient(142deg, #14223b 0%, #1a2d4e 52%, #233a62 100%);
}
.lp-orb { display: none; }
.lp-hero-inner {
    grid-template-columns: minmax(0, 1.04fr) minmax(420px, .96fr);
    gap: 5rem;
}
.lp-hero-badge {
    padding: .46rem .8rem;
    border-radius: 9px;
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.14);
    color: #cbd5e1;
    letter-spacing: .02em;
}
.lp-hero h1 {
    max-width: 690px;
    margin-bottom: 1.4rem;
    font-size: clamp(3rem, 5vw, 4.7rem);
    line-height: 1.02;
    letter-spacing: -.065em;
}
.lp-gradient-text {
    background: linear-gradient(100deg, #7dd3fc, #86efac 62%, #fde68a);
    -webkit-background-clip: text;
    background-clip: text;
}
.lp-hero-sub {
    max-width: 610px;
    font-size: 1.14rem;
    line-height: 1.75;
    color: #c7d2e3;
}
.btn-lp-primary {
    border-radius: 12px;
    background: #fff;
    color: var(--navy);
    box-shadow: 0 10px 26px rgba(0,0,0,.2);
}
.btn-lp-ghost {
    border-radius: 12px;
    border-color: rgba(255,255,255,.26);
}
.lp-hero-note { color: #94a3b8; }
.lp-mock {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 22px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 34px 90px rgba(2,8,23,.38);
    transform: rotate(1.2deg);
}
.lp-mock-header { background: #eef0f5; }
.lp-mock-body { padding: 1.6rem; }
.lp-mock-code {
    border: 1px dashed #a9b5d7;
    border-radius: 12px;
    background: var(--blue-light);
    color: var(--blue-dark);
}
.lp-mock-ans { border-radius: 11px; }
.lp-section { padding: 6.5rem 0; }
.lp-section-alt { background: #f3f4ef; }
.lp-section-title {
    color: var(--navy);
    font-size: clamp(2rem, 3.5vw, 3rem);
    letter-spacing: -.055em;
}
.lp-section-sub { color: var(--gray-500); }
.lp-steps { align-items: stretch; }
.lp-step {
    padding: 1.8rem;
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
}
.lp-step-line { opacity: .35; }
.lp-step-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    color: var(--blue);
    background: var(--blue-light);
}
.lp-feature-grid { gap: 1rem; }
.lp-fcard {
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    background: #fff;
    box-shadow: none;
    transition: transform .18s ease, box-shadow .18s ease;
}
.lp-fcard:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.lp-more-features {
    margin-top: 1.25rem;
}
.lp-more-features > summary {
    width: fit-content;
    margin: 0 auto;
    padding: .72rem 1.05rem;
    border: 1px solid var(--gray-300);
    border-radius: 11px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    font-weight: 700;
    list-style-position: inside;
    transition: border-color .16s ease, box-shadow .16s ease;
}
.lp-more-features > summary:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow);
}
.lp-more-features[open] > summary { margin-bottom: 1rem; }
.lp-feature-grid-more { animation: featureReveal .18s ease-out; }
@keyframes featureReveal {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.lp-price-card {
    border-radius: 22px;
    border-color: var(--gray-200);
}
.lp-price-featured {
    border: 2px solid var(--blue);
    box-shadow: 0 20px 55px rgba(52,84,209,.16);
}
.lp-price-popular,
.lp-price-badge { background: var(--blue); }
.lp-cta {
    background:
        radial-gradient(circle at 20% 30%, rgba(22,168,137,.22), transparent 30%),
        linear-gradient(135deg, #15233c, #283f69);
}
.lp-footer { background: #101a2d; }

/* Authentication */
.auth-body {
    background:
        radial-gradient(circle at 12% 18%, rgba(52,84,209,.13), transparent 27%),
        radial-gradient(circle at 84% 78%, rgba(22,168,137,.13), transparent 25%),
        var(--cream);
}
.auth-wrap {
    padding: 3rem 1.5rem;
}
.auth-card {
    max-width: 470px;
    padding: 2.6rem;
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    text-align: left;
}
.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 2rem;
    color: var(--navy);
}
.auth-logo::before {
    content: 'Q';
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 11px 11px 11px 4px;
    color: #fff;
    background: var(--blue);
    font-size: 16px;
}
.auth-card h2 { font-size: 2rem; }
.auth-sub { font-size: .98rem; line-height: 1.55; }
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="text"] {
    padding: .82rem .92rem;
    border-radius: 11px;
}
.auth-footer, .auth-legal-links { text-align: center; }

/* New-teacher activation onboarding */
.onboarding-screen {
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background:
        radial-gradient(circle at 12% 12%, rgba(52,84,209,.12), transparent 26%),
        radial-gradient(circle at 86% 84%, rgba(22,168,137,.13), transparent 25%),
        var(--cream);
}
.onboarding-shell {
    width: min(680px, 100%);
    padding: 2.2rem;
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.onboarding-eyebrow {
    margin-bottom: .45rem;
    color: var(--blue);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.onboarding-shell > h1 {
    margin: 0 0 .6rem;
    color: var(--navy);
    font-size: clamp(2rem, 4vw, 2.8rem);
}
.onboarding-lead {
    max-width: 540px;
    margin: 0 auto 1.35rem;
    color: var(--gray-500);
    line-height: 1.6;
}
.onboarding-sample-card {
    padding: 1.25rem;
    border: 1px solid #cfd6f6;
    border-radius: 18px;
    background: #f7f8ff;
    text-align: left;
}
.onboarding-sample-label {
    color: var(--blue);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.onboarding-sample-card h2 {
    margin: .35rem 0 .9rem;
    color: var(--ink);
    font-size: 1.2rem;
}
.onboarding-sample-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
}
.onboarding-sample-choices span {
    padding: .65rem .75rem;
    border: 1px solid var(--gray-200);
    border-radius: 11px;
    background: #fff;
}
.onboarding-sample-choices b {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    margin-right: .45rem;
    border-radius: 7px;
    color: #fff;
    background: var(--blue);
}
.onboarding-primary {
    width: 100%;
    min-height: 50px;
    margin-top: 1.15rem;
    font-size: 1rem;
}
.onboarding-skip {
    display: block;
    margin: .85rem auto 0;
    padding: .3rem;
    border: 0;
    color: var(--gray-500);
    background: transparent;
    cursor: pointer;
    font-weight: 700;
}
.onboarding-skip:hover { color: var(--blue); }
.onboarding-note {
    margin: .75rem 0 0;
    color: var(--gray-400);
    font-size: .75rem;
}
.onboarding-coach {
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1rem 1.15rem 0;
    padding: 1rem 1.1rem;
    border: 1px solid #bfc9f1;
    border-radius: 16px;
    background: #f3f5ff;
}
.onboarding-coach-copy { min-width: 0; }
.onboarding-coach-badge {
    color: var(--blue);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.onboarding-coach h3 {
    margin: .15rem 0;
    color: var(--ink);
    font-size: 1.05rem;
}
.onboarding-coach p {
    margin: 0;
    color: var(--gray-500);
    font-size: .86rem;
    line-height: 1.45;
}
.onboarding-coach-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}
.onboarding-ready-code {
    display: inline-block;
    margin-top: .45rem;
    color: var(--gray-600);
}
.onboarding-ready-code strong {
    margin-left: .25rem;
    color: var(--blue-dark);
    font-family: 'Manrope', sans-serif;
    font-size: 1.35rem;
    letter-spacing: .12em;
}
body.teacher-onboarding-active .dash-grid {
    grid-template-columns: minmax(0, 1fr) !important;
}
body.teacher-onboarding-active .dash-grid > .panel:last-child {
    order: -1;
}
body.teacher-onboarding-active #testModeBtn,
body.teacher-onboarding-active .header-ask-now,
body.teacher-onboarding-active #testModeIndicator {
    display: none !important;
}

/* Teacher home */
.teacher-body { background: #f5f5f1; }
.teacher-body .screen { min-height: 100vh; }
.start-screen {
    padding: 0;
    background:
        radial-gradient(circle at 90% -5%, rgba(52,84,209,.1), transparent 26%),
        #f5f5f1;
}
.start-container {
    max-width: 1120px;
    padding: 2rem 2.2rem 5rem;
}
.start-top {
    margin-bottom: 1.4rem;
    padding: 1rem 0 1.6rem;
    border-bottom: 1px solid var(--gray-200);
}
.start-top h1 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--navy);
    font-size: 1.25rem;
}
.start-top h1::before {
    content: 'Q';
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px 12px 12px 4px;
    color: #fff;
    background: var(--blue);
    font-size: 17px;
}
.start-greeting { font-size: .9rem; }
.start-top-right .btn-teacher {
    order: -1;
    min-height: 44px;
    padding-inline: 1.15rem;
}
.teacher-welcome {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 2rem;
    align-items: center;
    margin: 1.2rem 0 1.5rem;
    padding: 2rem;
    border-radius: 22px;
    color: #fff;
    background:
        radial-gradient(circle at 90% 20%, rgba(125,211,252,.28), transparent 32%),
        linear-gradient(135deg, var(--navy), #2d4774);
    box-shadow: 0 18px 46px rgba(21,35,60,.18);
}
.teacher-welcome h2 {
    margin: 0 0 .5rem;
    font-size: clamp(1.7rem, 3vw, 2.45rem);
}
.teacher-welcome p {
    max-width: 620px;
    margin: 0;
    color: #d9e2ef;
    font-size: 1rem;
    line-height: 1.6;
}
.teacher-welcome .btn {
    min-height: 50px;
    padding-inline: 1.35rem;
    background: #fff;
    border-color: #fff;
    color: var(--navy);
    box-shadow: 0 8px 22px rgba(0,0,0,.18);
}
.teacher-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
.quick-start-heading {
    margin: 1.5rem 0 .75rem;
}
.quick-start-heading h3 {
    margin: 0;
    color: var(--ink);
    font-size: 1.05rem;
}
.quick-start-heading p {
    margin: .15rem 0 0;
    color: var(--gray-500);
    font-size: .84rem;
}
.teacher-intent-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.teacher-quick-card-primary {
    color: #fff;
    border-color: var(--blue);
    background: var(--blue);
}
.teacher-quick-card-primary:hover {
    color: #fff;
    border-color: var(--blue-dark);
    background: var(--blue-dark);
}
.teacher-quick-card-primary .teacher-quick-icon {
    color: var(--blue-dark);
    background: #fff;
}
.teacher-quick-card-primary span:last-child {
    color: rgba(255,255,255,.78);
}
.getting-started-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1rem 0;
    padding: .9rem 1rem;
    border: 1px solid #cbd3f3;
    border-radius: 15px;
    background: #f4f6ff;
}
.getting-started-card > div {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}
.getting-started-card strong { color: var(--ink); }
.getting-started-card span {
    color: var(--gray-500);
    font-size: .82rem;
}
.getting-started-card-return {
    border-color: #a7f3d0;
    background: #ecfdf5;
}
.getting-started-card-actions {
    display: flex;
    gap: .5rem;
    flex-shrink: 0;
}
.teacher-quick-card {
    display: block;
    padding: 1.15rem;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    background: #fff;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
    text-decoration: none;
}
.teacher-quick-card:hover {
    transform: translateY(-2px);
    border-color: #bac4ef;
    box-shadow: var(--shadow-lg);
}
.teacher-quick-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: .8rem;
    border-radius: 12px;
    background: var(--blue-light);
    color: var(--blue);
    font-weight: 800;
}
.teacher-quick-card:nth-child(2) .teacher-quick-icon {
    color: var(--mint-dark);
    background: var(--green-light);
}
.teacher-quick-card:nth-child(3) .teacher-quick-icon {
    color: #955316;
    background: #fff1d8;
}
.teacher-quick-card strong { display: block; margin-bottom: .2rem; font-size: .95rem; }
.teacher-quick-card span { color: var(--gray-500); font-size: .82rem; line-height: 1.4; }
.upgrade-ad {
    border-radius: 16px;
    border-color: #ced5f5;
    background: #f0f2ff;
}
.past-sessions-section {
    margin-top: 1.2rem;
    padding: 1.35rem;
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}
.past-sessions-section h3 {
    color: var(--ink);
    text-transform: none;
    letter-spacing: -.02em;
    font-size: 1.02rem;
}
.past-session-card,
.saved-q-row {
    border: 1px solid var(--gray-200);
    border-radius: 13px;
    background: #fafaf8;
}

/* Live teacher workspace */
.teacher-body #dashboard { background: #f2f3f0; }
.dash-header {
    position: sticky;
    top: 0;
    z-index: 200;
    padding: .9rem 1.2rem;
    color: #fff;
    background: rgba(21,35,60,.97);
    border-bottom: 0;
    box-shadow: 0 8px 28px rgba(21,35,60,.18);
    backdrop-filter: blur(16px);
}
.header-left h2 { color: #fff; }
.join-code-display { color: #bac5d8; }
.code-big {
    padding: .28rem .65rem;
    border-radius: 9px;
    color: #15233c;
    background: #fff;
    letter-spacing: .12em;
}
.student-count-pill {
    border-color: rgba(255,255,255,.15);
    background: rgba(255,255,255,.09);
    color: #dff8ef;
}
.student-count-pill .student-count-label { color: #bfe4d9; }
.session-title-label { color: #b6c2d4; }
.session-title-input {
    color: #fff !important;
    background: rgba(255,255,255,.08) !important;
    border-color: rgba(255,255,255,.17) !important;
}
.dash-header .btn-outline,
.dash-header .btn-test {
    color: #f6f8fc;
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.18);
}
.dash-header .btn-outline:hover,
.dash-header .btn-test:hover { background: rgba(255,255,255,.16); }
.dash-header .btn-test {
    color: #dbeafe;
    background: rgba(96,165,250,.12);
    border: 1px solid rgba(147,197,253,.3);
}
.dash-header .test-indicator {
    gap: .35rem;
    padding: .25rem .3rem .25rem .55rem;
    border: 1px solid rgba(245,184,68,.55);
    border-radius: 10px;
    color: #fff;
    background: rgba(245,184,68,.12);
    animation: none;
    letter-spacing: 0;
}
.test-indicator-label {
    display: inline-flex;
    align-items: center;
    gap: .38rem;
    color: #fde7a9;
    font-size: .76rem;
    font-weight: 800;
    white-space: nowrap;
}
.test-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sun);
    box-shadow: 0 0 0 4px rgba(245,184,68,.16);
}
.dash-header .test-indicator .test-indicator-view {
    min-height: 30px;
    padding: .3rem .55rem;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 7px;
    color: #fff;
    background: rgba(255,255,255,.1);
}
.dash-header .test-indicator .test-indicator-view:hover {
    color: var(--navy);
    background: #fff;
}
.dash-header .test-indicator .test-indicator-exit {
    min-height: 30px;
    padding: .3rem .55rem;
    border: 1px solid rgba(255,174,181,.3);
    border-radius: 7px;
    color: #ffd9dd;
    background: rgba(209,61,76,.17);
}
.dash-header .test-indicator .test-indicator-exit:hover {
    color: #fff;
    background: #b82d3c;
}
.test-student-panel {
    border-left-color: var(--blue);
    background: #f7f7f3;
}
.test-student-panel-header {
    color: #fff;
    background: var(--navy);
}
.test-student-panel-header .muted {
    padding: 0;
    color: #cbd5e1 !important;
    text-align: left;
}
.test-student-panel-header .btn {
    min-height: 30px;
    color: #fff;
    background: rgba(255,255,255,.09);
    border-color: rgba(255,255,255,.22);
}
.test-student-panel-header .btn:hover { background: rgba(255,255,255,.17); }
.dash-header .btn-student {
    background: var(--mint);
    border-color: var(--mint);
    box-shadow: none;
}
.dash-header .btn-danger {
    color: #ffd7d9;
    background: rgba(209,61,76,.15);
    border-color: rgba(255,170,177,.3);
}
.header-divider { background: rgba(255,255,255,.2); }
.dash-grid {
    grid-template-columns: minmax(460px, .9fr) minmax(520px, 1.1fr);
    gap: 1.15rem;
    padding: 1.15rem;
}
/* The viewport media query cannot see that the fixed student pane has reduced
   the teacher workspace. Always use one flexible column while that pane is open. */
body.teacher-test-mode {
    overflow-x: hidden;
}
body.teacher-test-mode #dashboard,
body.teacher-test-mode .dash-grid,
body.teacher-test-mode .panel {
    min-width: 0;
}
body.teacher-test-mode .dash-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
}
body.teacher-test-mode .dash-grid > .panel:last-child {
    order: -1;
}
body.teacher-test-mode .panel {
    overflow: hidden;
}
body.teacher-test-mode .response-card {
    grid-template-columns: minmax(90px, .55fr) minmax(0, 2fr) minmax(112px, auto);
}
body.teacher-test-mode .response-answer,
body.teacher-test-mode .grade-answer {
    min-width: 0;
    overflow-wrap: anywhere;
}
body.teacher-test-mode .demo-teacher-dock {
    display: none;
}

/* Compact, light live-session toolbar. The old dark header became a tall wall
   of wrapped buttons whenever the student preview reduced the available width. */
.dash-header {
    padding: .75rem 1rem;
    color: var(--ink);
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 5px 18px rgba(23,32,51,.08);
}
.dash-header .header-left {
    gap: .7rem;
}
.dash-header .header-left h2 {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--ink);
    font-size: 1rem;
}
.dash-header .header-left h2::before {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 4px rgba(22,168,137,.12);
}
.dash-header .join-code-display {
    color: var(--gray-500);
    font-size: .82rem;
}
.dash-header .code-big {
    padding: .2rem .55rem;
    color: var(--blue-dark);
    background: var(--blue-light);
    border: 1px solid #d4daf7;
    border-radius: 8px;
    font-size: 1.05rem;
}
.dash-header .student-count-pill {
    color: var(--mint-dark);
    background: var(--green-light);
    border-color: #bdebdc;
}
.dash-header .student-count-pill .student-count-label {
    color: var(--mint-dark);
}
.dash-header .session-title-label {
    color: var(--gray-500);
}
.dash-header .session-title-input {
    color: var(--ink) !important;
    background: #fff !important;
    border-color: var(--gray-300) !important;
}
.dash-header .header-right {
    gap: .45rem;
    color: var(--gray-500);
}
.dash-header .btn-outline,
.dash-header .btn-test {
    color: var(--ink);
    background: #fff;
    border-color: var(--gray-300);
}
.dash-header .btn-outline:hover,
.dash-header .btn-test:hover {
    color: var(--blue-dark);
    background: var(--blue-light);
    border-color: #bac4ef;
}
.dash-header .btn-test {
    color: var(--blue-dark);
    background: var(--blue-light);
    border-color: #c8d0f4;
}
.dash-header .header-divider { background: var(--gray-300); }
.dash-header .btn-danger {
    color: #b52838;
    background: var(--red-light);
    border-color: #efc5c9;
}
.dash-header .test-indicator {
    color: #704510;
    background: #fff8e7;
    border-color: #e9b655;
}
.dash-header .test-indicator .test-indicator-label {
    color: #704510;
}
.dash-header .test-indicator .test-indicator-view {
    color: var(--ink);
    background: #fff;
    border-color: #e3c58d;
}
.dash-header .test-indicator .test-indicator-view:hover {
    color: var(--blue-dark);
    background: var(--blue-light);
}
.dash-header .test-indicator .test-indicator-exit {
    color: #a82d3b;
    background: #fff3f4;
    border-color: #efc5c9;
}
.dash-header .test-indicator .test-indicator-exit:hover {
    color: #fff;
    background: #b82d3c;
}
body.teacher-test-mode .dash-header {
    position: sticky;
    top: 0;
    display: block;
}
body.teacher-test-mode .dash-header .header-left,
body.teacher-test-mode .dash-header .header-right {
    width: 100%;
}
body.teacher-test-mode .dash-header .header-left {
    margin-bottom: .55rem;
}
body.teacher-test-mode .dash-header .header-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
body.teacher-test-mode .dash-header .session-title-row {
    margin-left: auto;
}
body.teacher-test-mode .dash-header .btn {
    min-height: 34px;
    padding: .38rem .62rem;
    font-size: .78rem;
}
.panel {
    padding: 1.1rem;
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    box-shadow: var(--shadow);
}
.ask-card {
    padding: 1.15rem;
    border-radius: 15px;
    box-shadow: none;
}
.quick-ask-btn,
.qtype-tile {
    border-radius: 13px;
    background: #fafaf8;
}
.quick-ask-btn:hover,
.qtype-tile:hover {
    border-color: var(--blue);
    background: var(--blue-light);
    box-shadow: 0 8px 20px rgba(52,84,209,.1);
}
.qtype-icon { color: var(--blue); }
.tabs {
    gap: .25rem;
    padding: 4px;
    border: 0;
    border-radius: 12px;
    background: var(--gray-100);
}
.tab {
    flex: 1;
    margin: 0;
    border: 0;
    border-radius: 9px;
}
.tab.active {
    color: var(--ink);
    border: 0;
    background: #fff;
    box-shadow: var(--shadow);
}
.response-card,
.grade-card,
.all-answers-question {
    border-radius: 13px;
    border-color: var(--gray-200);
}
.all-answers-subtabs {
    display: flex;
    gap: .5rem;
    margin: 0 0 .8rem;
    padding: .25rem .1rem .55rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
}
.all-answers-subtab {
    display: grid;
    grid-template-columns: auto minmax(80px, 1fr) auto;
    align-items: center;
    gap: .45rem;
    flex: 0 0 210px;
    min-height: 48px;
    padding: .5rem .55rem;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    color: var(--gray-600);
    background: #fafaf8;
    cursor: pointer;
    text-align: left;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, transform .15s ease;
}
.all-answers-subtab:hover {
    transform: translateY(-1px);
    border-color: #b8c2ec;
    background: #f7f8ff;
}
.all-answers-subtab.active {
    color: var(--blue-dark);
    border-color: var(--blue);
    background: var(--blue-light);
    box-shadow: 0 0 0 2px rgba(52,84,209,.09);
}
.all-answers-subtab-num {
    display: grid;
    place-items: center;
    min-width: 32px;
    height: 30px;
    padding: 0 .35rem;
    border-radius: 8px;
    color: var(--blue-dark);
    background: #fff;
    font-weight: 800;
    font-size: .78rem;
}
.all-answers-subtab-text {
    overflow: hidden;
    font-size: .77rem;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.all-answers-subtab-count {
    display: grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    padding: 0 .3rem;
    border-radius: 999px;
    color: var(--gray-600);
    background: #fff;
    font-size: .7rem;
    font-weight: 800;
}
.all-answers-selected {
    margin: 0;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow);
}
.all-answers-selected .all-answers-header {
    align-items: flex-start;
    padding: .8rem;
    background: #f5f7ff;
}
.all-answers-selected .all-answers-text {
    font-size: .92rem;
    line-height: 1.45;
}
.all-answers-choices {
    padding: .55rem .75rem .7rem;
}
.all-answers-response-summary {
    padding: .55rem .75rem;
    border-top: 1px solid var(--gray-200);
    color: var(--gray-500);
    font-size: .8rem;
}
.all-answers-response-summary strong {
    color: var(--ink);
    font-size: .95rem;
}
.all-answers-table-wrap {
    width: 100%;
    overflow-x: auto;
}
.all-answers-selected .answers-table {
    margin: 0;
    min-width: 580px;
}
.all-answers-selected .answers-table th {
    background: #fafaf8;
}
.all-answers-student {
    font-weight: 700;
    white-space: nowrap;
}
.all-answers-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .2rem;
    padding: 2rem 1rem;
    border-top: 1px solid var(--gray-200);
    color: var(--gray-500);
    text-align: center;
}
.all-answers-empty strong {
    color: var(--ink);
    font-size: .95rem;
}
.all-answers-empty span { font-size: .82rem; }
.qbuilder-modal { background: rgba(8,14,28,.67); backdrop-filter: blur(4px); }
.qbuilder-modal-inner { border-radius: 20px; }
.qbuilder-modal-header {
    padding: 1rem 1.2rem;
    background: var(--navy);
}
.qbuilder-section {
    border-radius: 14px;
    border-color: var(--gray-200);
}
.qbuilder-modal.dd-workflow-active #qbuilderQuestionSection { display: none; }

/* Guided drag-and-drop workflow */
.dd-workflow-overlay {
    padding: 0;
    overflow: hidden;
    align-items: stretch;
    background: rgba(9, 16, 31, .78);
    backdrop-filter: blur(5px);
}
.dd-workflow-overlay .dd-editor-modal {
    width: min(1120px, 100%);
    max-width: 1120px;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    max-height: 100vh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 0;
    background: #f5f5f1;
    box-shadow: 0 0 70px rgba(4, 10, 24, .34);
}
.dd-workflow-overlay .dd-editor-header {
    position: relative;
    flex: 0 0 auto;
    z-index: 30;
    padding: 1rem 1.35rem;
    color: #fff;
    background: var(--navy);
    border: 0;
}
.dd-workflow-overlay .dd-editor-header > div {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}
.dd-workflow-overlay .dd-editor-header span {
    font-family: 'Manrope', sans-serif;
    font-size: 1.15rem;
    letter-spacing: -.025em;
}
.dd-workflow-overlay .dd-editor-header small {
    color: #bdc9db;
    font-size: .82rem;
    font-weight: 500;
}
.dd-workflow-overlay .dd-editor-header button { color: #fff; }
.dd-workflow-overlay .dd-editor-body {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    overflow-y: auto;
    max-width: 1020px;
    margin: 0 auto;
    padding: 1.25rem;
}
.dd-workflow-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .65rem;
    margin-bottom: 1rem;
}
.dd-workflow-steps > span {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem .75rem;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    background: rgba(255,255,255,.72);
    color: var(--gray-600);
    font-size: .82rem;
    font-weight: 700;
}
.dd-workflow-steps strong,
.dd-workflow-number {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 9px 9px 9px 3px;
    color: #fff;
    background: var(--blue);
    font-family: 'Manrope', sans-serif;
    font-size: .82rem;
}
.dd-workflow-card {
    margin-bottom: 1rem;
    padding: 1.1rem;
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}
.dd-workflow-heading {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: .85rem;
}
.dd-workflow-heading h4 {
    margin: .05rem 0 .12rem;
    color: var(--ink);
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    letter-spacing: -.025em;
}
.dd-workflow-heading p {
    margin: 0;
    color: var(--gray-500);
    font-size: .84rem;
    line-height: 1.45;
}
#ddQuestionText {
    width: 100%;
    min-height: 76px;
    padding: .75rem .85rem;
    resize: vertical;
    font-size: 1rem;
}
.dd-workflow-overlay .dd-toolbar {
    gap: .45rem;
    margin: 0 0 .55rem;
    padding: .6rem;
    border-radius: 12px;
    background: #f6f6f3;
}
.dd-workflow-overlay .dd-tool,
.dd-workflow-overlay .dd-tool-action,
.dd-bg-upload {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    min-height: 38px;
    padding: .42rem .7rem;
    border: 1px solid var(--gray-300);
    border-radius: 9px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    font-size: .82rem;
    font-weight: 700;
}
.dd-bg-upload {
    color: #fff;
    background: var(--blue);
    border-color: var(--blue);
}
.dd-bg-upload:hover { background: var(--blue-dark); }
.dd-bg-upload input { display: none; }
.dd-workflow-overlay .dd-tool.active {
    color: #fff;
    background: var(--navy);
    border-color: var(--navy);
}
.dd-use-picture-btn:disabled {
    opacity: .42;
    box-shadow: none;
}
.dd-layer-btn:disabled {
    opacity: .38;
    cursor: not-allowed;
}
.dd-layer-delete-btn {
    color: #b52838 !important;
    border-color: #efc5c9 !important;
    background: #fff3f4 !important;
}
.dd-layer-delete-btn:hover:not(:disabled) {
    color: #fff !important;
    border-color: #b82d3c !important;
    background: #b82d3c !important;
}
.dd-layer-delete-btn:disabled {
    opacity: .38;
    cursor: not-allowed;
}
#ddOverlay .dd-layer-selected {
    box-shadow: 0 0 0 3px rgba(52,84,209,.28), 0 6px 16px rgba(23,32,51,.12);
}
#ddOverlay .dd-zone-box.dd-layer-selected {
    border-style: solid;
    border-color: var(--blue);
}
.dd-text-format-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .55rem;
    margin: -.15rem 0 .6rem;
    padding: .6rem .7rem;
    border: 1px solid #cbd5f4;
    border-radius: 11px;
    color: var(--ink);
    background: #f3f5ff;
}
.dd-text-format-bar > strong {
    margin-right: .15rem;
    color: var(--blue-dark);
    font-size: .82rem;
}
.dd-text-format-bar label {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--gray-600);
    font-size: .76rem;
    font-weight: 700;
}
.dd-text-format-bar select,
.dd-text-format-bar input[type="number"] {
    min-height: 34px;
    padding: .3rem .45rem;
    border-radius: 8px;
    font-size: .8rem;
}
.dd-text-format-bar input[type="number"] { width: 68px; }
.dd-text-format-bar input[type="color"] {
    width: 34px;
    height: 32px;
    padding: 2px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    background: #fff;
}
.dd-text-bold-btn {
    min-height: 34px;
    padding: .35rem .6rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
    cursor: pointer;
}
.dd-text-bold-btn.active {
    color: #fff;
    border-color: var(--blue);
    background: var(--blue);
}
.dd-paste-hint {
    margin: 0 0 .6rem !important;
    padding: .55rem .65rem;
    border-radius: 9px;
    color: #67501d !important;
    background: #fff8e6;
}
.dd-canvas-scroll {
    width: 100%;
    overflow-x: auto;
    padding: .25rem;
    border-radius: 14px;
    background:
        linear-gradient(45deg, #eeeeea 25%, transparent 25%),
        linear-gradient(-45deg, #eeeeea 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #eeeeea 75%),
        linear-gradient(-45deg, transparent 75%, #eeeeea 75%);
    background-size: 22px 22px;
    background-position: 0 0, 0 11px, 11px -11px, -11px 0;
}
.dd-workflow-overlay .dd-canvas-wrap {
    display: block;
    margin: 0 auto;
    border: 2px solid #a9acb0;
    border-radius: 10px;
    box-shadow: 0 9px 25px rgba(23,32,51,.13);
}
.dd-workflow-overlay .dd-modal-answers {
    margin: 0 0 .8rem;
    padding: 0;
    border: 0;
    background: transparent;
}
.dd-workflow-overlay .dd-answers-list-modal {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: .5rem;
    max-height: none;
    margin-bottom: .65rem;
}
.dd-workflow-overlay .dd-answer-row {
    margin: 0;
    padding: .5rem;
    border: 1px solid var(--gray-200);
    border-radius: 11px;
    background: #fafaf8;
}
.dd-workflow-overlay .dd-answer-num {
    border-radius: 8px;
}
.dd-workflow-overlay .dd-answer-text {
    min-width: 0;
    padding: .5rem .6rem;
    background: #fff;
}
.dd-workflow-overlay .dd-zone-controls {
    margin: .75rem 0 0;
    padding-top: .75rem;
    border-top: 1px solid var(--gray-200);
}
.dd-workflow-overlay .dd-zone-controls h4 {
    margin: 0 0 .1rem;
    font-size: .9rem;
}
.dd-workflow-overlay .dd-zone-list {
    gap: .45rem;
    margin-top: .55rem;
}
.dd-workflow-overlay .dd-editor-footer {
    position: relative;
    z-index: 35;
    right: auto;
    bottom: auto;
    left: auto;
    flex: 0 0 auto;
    width: 100%;
    gap: .55rem;
    padding: .8rem 1.25rem;
    border-top: 1px solid var(--gray-200);
    background: rgba(255,255,255,.94);
    box-shadow: 0 -8px 28px rgba(23,32,51,.08);
    backdrop-filter: blur(14px);
}
.dd-editor-footer-spacer { flex: 1; }

/* Streamlined text-question builder */
.qbuilder-modal.text-workflow-active .qbuilder-modal-inner {
    max-width: 720px;
}
.qbuilder-modal.text-workflow-active .qnumber-form-group {
    display: none;
}
.qbuilder-modal.text-workflow-active .qbuilder-modal-body {
    padding: 1rem;
    background: #f5f5f1;
}
.qbuilder-modal.text-workflow-active .qbuilder-section {
    margin-bottom: .8rem;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
}
.qbuilder-modal.text-workflow-active .qbuilder-section-head {
    padding: .8rem 1rem;
    border-bottom: 1px solid var(--gray-200);
    background: transparent;
}
.qbuilder-modal.text-workflow-active .qbuilder-section-num {
    border-radius: 8px 8px 8px 3px;
    background: var(--blue);
}
.qbuilder-modal.text-workflow-active .qbuilder-section-body {
    padding: 1rem;
}
.qbuilder-modal.text-workflow-active #qText {
    min-height: 105px;
    padding: .8rem .9rem;
    font-size: 1.02rem;
}
#correctAnswerGroup {
    margin: 0;
    padding: 0;
}
.text-answer-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .75rem;
}
.text-answer-heading label {
    display: block;
    margin: 0 0 .18rem;
    color: var(--ink);
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
}
.text-answer-heading p {
    max-width: 470px;
    margin: 0;
    color: var(--gray-500);
    font-size: .83rem;
    line-height: 1.45;
}
.text-accepted-answers {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.text-accepted-row {
    display: grid;
    grid-template-columns: 30px minmax(0,1fr) 34px;
    gap: .5rem;
    align-items: center;
}
.text-accepted-number {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    color: var(--blue-dark);
    background: var(--blue-light);
    font-weight: 800;
    font-size: .78rem;
}
.text-accepted-input {
    width: 100%;
    min-height: 44px;
    padding: .65rem .75rem;
    font-size: .95rem;
}
.text-accepted-remove {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #efc5c9;
    border-radius: 9px;
    color: #b52e3e;
    background: #fff6f7;
    cursor: pointer;
    font-size: 1.2rem;
}
.text-accepted-remove:hover {
    border-color: #d13d4c;
    background: var(--red-light);
}
.text-answer-symbols {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .3rem;
    margin-top: .75rem;
    padding: .55rem .65rem;
    border-radius: 10px;
    background: var(--gray-100);
}
.text-answer-symbols > span {
    margin-right: .25rem;
    color: var(--gray-500);
    font-size: .76rem;
    font-weight: 700;
}
.text-answer-symbols button {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
    cursor: pointer;
    font-size: .95rem;
}
.text-answer-symbols button:hover {
    color: var(--blue);
    border-color: var(--blue);
    background: var(--blue-light);
}
.multipart-part-correct {
    width: 100%;
    min-height: 82px;
    padding: .65rem .75rem;
    resize: vertical;
}
.qbuilder-modal.text-workflow-active #showResultAfterSubmitWrap {
    margin-bottom: .75rem;
    padding: .7rem;
    border-radius: 11px;
    background: #f7f8ff;
}

/* Student experience */
.student-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 16% 15%, rgba(52,84,209,.13), transparent 25%),
        radial-gradient(circle at 82% 80%, rgba(22,168,137,.14), transparent 27%),
        #f7f7f3;
}
.student-body .screen {
    position: relative;
    padding: 2rem 1rem;
}
.student-body .screen::before {
    content: 'QuizTheClass';
    position: fixed;
    top: 24px;
    left: 30px;
    color: var(--navy);
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    letter-spacing: -.04em;
}
.student-body .screen::after {
    content: 'Q';
    position: fixed;
    top: 18px;
    left: 0;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-left: 20px;
    transform: translateX(-100%);
    opacity: 0;
}
.student-body .card {
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}
.student-body .center-card {
    max-width: 480px;
    padding: 2.4rem;
}
.student-body .center-card h1 {
    margin-bottom: .4rem;
    color: var(--navy);
    font-size: 2.25rem;
}
.student-join-intro {
    margin: 0 0 1.6rem;
    color: var(--gray-500);
    line-height: 1.55;
}
.input-code {
    height: 64px;
    border: 2px solid #c9cfe7 !important;
    border-radius: 14px !important;
    color: var(--navy);
    background: #f8f9ff !important;
    font-family: 'Manrope', sans-serif;
    font-size: 1.75rem !important;
    letter-spacing: .24em !important;
    text-transform: uppercase;
}
.student-body .btn-student {
    min-height: 50px;
    margin-top: .35rem;
    font-size: 1rem;
    background: var(--blue);
}
.student-trust-row {
    display: flex;
    justify-content: center;
    gap: .9rem;
    margin-top: 1.25rem;
    color: var(--gray-500);
    font-size: .76rem;
}
.student-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}
.student-trust-row span::before {
    content: '✓';
    color: var(--mint-dark);
    font-weight: 800;
}
.question-card {
    max-width: 820px;
    padding: 2rem;
}
.q-header {
    padding-bottom: .85rem;
    border-bottom: 1px solid var(--gray-200);
}
.q-number { color: var(--navy); }
.q-type-badge {
    color: var(--blue-dark);
    background: var(--blue-light);
}
.q-text {
    margin: 1.25rem 0;
    color: var(--ink);
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    font-weight: 700;
}
.choice-btn {
    min-height: 60px;
    border-color: var(--gray-200);
    border-radius: 14px;
    background: #fafaf8;
}
.choice-btn:hover { border-color: #a9b5ee; background: #f5f6ff; }
.choice-btn.selected {
    border-color: var(--blue);
    background: var(--blue-light);
    box-shadow: 0 0 0 3px rgba(52,84,209,.13);
}
.choice-letter {
    border-radius: 10px;
    background: var(--blue);
}
.student-answer-rich-editable {
    min-height: 128px;
    border-radius: 14px;
    background: #fafaf8;
}
.pulse-ring { border-color: var(--blue); }
.submitted-check {
    border-radius: 22px 22px 22px 7px;
    background: var(--mint);
}
.scores-card { max-width: 660px; padding: 2rem; }
.score-ring { background: conic-gradient(var(--mint) calc(var(--pct) * 1%), var(--gray-200) 0); }

/* Account / admin / utility pages */
.acc-wrap { padding: 3rem 1.5rem; }
.acc-card {
    max-width: 800px;
    padding: 2.1rem;
    border: 1px solid var(--gray-200);
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
}
.acc-row { padding: .82rem 0; }
.acc-status { border-radius: 999px; }
.acc-plans-top {
    border-radius: 17px;
    border-color: #cdd5f8;
    background: #f1f3ff;
}
.acc-plan-card {
    border-radius: 16px;
    background: #fff;
}
.acc-plan-featured { border-color: var(--blue); }
.admin-body { background: var(--cream); }
.admin-wrap { max-width: 1280px; }
.admin-stat,
.admin-section {
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    box-shadow: var(--shadow);
}
.admin-stat-num { color: var(--blue); }
.admin-table th { color: var(--gray-500); }
.admin-table tr:hover td { background: #f7f8ff; }
.activation-admin-wrap { max-width: 1380px; }
.activation-hero {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.activation-hero > div {
    padding: 1.35rem;
    border-radius: 18px;
    color: #fff;
    background: var(--navy);
}
.activation-hero > div:last-child { background: var(--blue); }
.activation-hero-label {
    display: block;
    color: rgba(255,255,255,.72);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.activation-hero strong {
    display: block;
    margin-top: .2rem;
    font-family: 'Manrope', sans-serif;
    font-size: 2.4rem;
}
.activation-hero p { margin: 0; color: rgba(255,255,255,.76); }
.activation-funnel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: .65rem;
}
.activation-funnel-step {
    min-width: 0;
    padding: .8rem;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    background: #fafaf8;
}
.activation-funnel-step strong {
    display: block;
    margin: .25rem 0;
    color: var(--blue);
    font-family: 'Manrope', sans-serif;
    font-size: 1.5rem;
}
.activation-funnel-step > span:last-child {
    color: var(--gray-500);
    font-size: .72rem;
}
.activation-funnel-label {
    display: block;
    color: var(--ink);
    font-size: .78rem;
    font-weight: 700;
}
.activation-table-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.activation-table-heading h2,
.activation-table-heading p { margin: 0; }
.activation-table-heading form {
    display: flex;
    align-items: center;
    gap: .5rem;
}
.activation-table-heading label { color: var(--gray-600); font-size: .8rem; font-weight: 700; }
.activation-table-heading select { min-width: 230px; padding: .5rem .7rem; }
.activation-teacher-table small { color: var(--gray-500); }
.activation-sort-link { color: inherit; text-decoration: none; }
.activation-sort-link:hover { color: var(--blue); }
.template-library-wrap {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0 5rem;
}
.template-library-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}
.template-library-header h1 {
    margin: 1rem 0 .25rem;
    color: var(--navy);
    font-size: 2rem;
}
.template-library-header p { margin: 0; color: var(--gray-500); }
.template-library-header label {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    color: var(--gray-600);
    font-size: .78rem;
    font-weight: 700;
}
.template-library-header select { min-width: 230px; padding: .6rem .7rem; }
.template-library-wrap section { margin-bottom: 2rem; }
.template-library-wrap section > h2 {
    margin: 0 0 .8rem;
    color: var(--ink);
    font-size: 1.15rem;
}
.template-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: .9rem;
}
.template-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 1.1rem;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
}
.template-set-card {
    border-color: #c7d0f4;
    background: #f5f7ff;
}
.template-subject {
    color: var(--blue);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.template-card h3 {
    margin: .35rem 0 .25rem;
    color: var(--ink);
    font-size: 1rem;
}
.template-card p {
    margin: 0 0 .9rem;
    color: var(--gray-500);
    font-size: .84rem;
    line-height: 1.5;
}
.template-card .template-question-text {
    color: var(--ink);
    font-weight: 600;
}
.template-meta {
    margin-bottom: .55rem;
    color: var(--gray-500);
    font-size: .75rem;
}
.template-card-actions {
    display: flex;
    gap: .45rem;
    flex-wrap: wrap;
    margin-top: auto;
}
.template-card-actions .btn { font-size: .78rem; }
.template-empty {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding: 2rem;
    border: 1px dashed var(--gray-300);
    border-radius: 15px;
    color: var(--gray-500);
    text-align: center;
}
.template-empty strong { color: var(--ink); }

.review-container {
    max-width: 1100px;
}
.review-header,
.review-tabs,
.review-tab-content {
    border-radius: 16px;
}
.site-owner-footer { color: var(--gray-500); }

/* Projector / class display */
:root {
    --proj-bg: #101a2d;
    --proj-bg2: #203758;
    --proj-card: rgba(28, 46, 75, .94);
    --proj-text: #f8fafc;
    --proj-muted: #b7c4d8;
    --proj-accent: #7dd3fc;
    --proj-accent2: #c4b5fd;
    --proj-good: #5ee0b5;
    --proj-warn: #fb8e82;
}
body.display-body {
    font-family: 'DM Sans', sans-serif;
    background:
        radial-gradient(circle at 88% 8%, rgba(52,84,209,.32), transparent 30%),
        radial-gradient(circle at 8% 90%, rgba(22,168,137,.2), transparent 28%),
        linear-gradient(150deg, #101a2d, #162844 55%, #203758);
}
.display-wrap { padding-top: 1.5rem; }
.display-title {
    font-family: 'Manrope', sans-serif;
    letter-spacing: -.04em;
    background: linear-gradient(90deg, #fff, #a7f3d0);
    -webkit-background-clip: text;
    background-clip: text;
}
.display-code-corner {
    padding: .5rem .9rem;
    border-radius: 12px;
    background: rgba(255,255,255,.07);
}
.proj-qr-panel,
.proj-question-wrap {
    border-color: rgba(255,255,255,.13);
    border-radius: 24px;
    box-shadow: 0 30px 75px rgba(2,8,23,.32);
}
.proj-join-huge {
    font-family: 'Manrope', sans-serif;
    color: #a7f3d0;
    letter-spacing: .2em;
    text-shadow: 0 0 45px rgba(94,224,181,.27);
}
.proj-name-pill {
    border-color: rgba(94,224,181,.32);
    background: rgba(94,224,181,.1);
}
.proj-choice {
    border-color: rgba(255,255,255,.16);
    border-radius: 16px;
    background: rgba(8,17,33,.42);
}
.proj-choice-letter {
    color: #102238;
    background: #a7f3d0;
}
.proj-dock { backdrop-filter: blur(16px); }
.proj-btn { border-radius: 11px; }

/* Responsive */
@media (max-width: 980px) {
    .lp-hero { min-height: 0; }
    .lp-hero-inner { grid-template-columns: 1fr; gap: 3rem; text-align: left; }
    .lp-hero-sub { margin-inline: 0; }
    .lp-hero-actions { justify-content: flex-start; }
    .lp-hero-visual { max-width: 600px; }
    .dash-grid { grid-template-columns: 1fr; }
    .teacher-quick-grid { grid-template-columns: 1fr 1fr; }
    .test-student-panel { border-top-color: var(--blue); }
}
@media (max-width: 900px) {
    :root { --test-panel-height: clamp(280px, 45vh, 520px); }
    .test-student-panel {
        height: var(--test-panel-height);
        max-height: var(--test-panel-height);
    }
    body.teacher-test-mode {
        padding-right: 0 !important;
        padding-bottom: 0 !important;
    }
    body.teacher-test-mode #dashboard {
        min-height: calc(100vh + var(--test-panel-height));
        padding-bottom: calc(var(--test-panel-height) + 2rem) !important;
    }
    body.teacher-test-mode .dash-grid {
        flex: 0 0 auto;
        padding-bottom: 1rem;
    }
    body.teacher-test-mode .response-card {
        grid-template-columns: 1fr;
    }
    body.teacher-test-mode .response-grade {
        min-width: 0;
    }
}
@media (max-width: 768px) {
    .lp-nav-inner { height: 66px; }
    .lp-nav-links { top: 66px; background: #fffefa; }
    .lp-hero { padding: 7.8rem 0 4.5rem; }
    .lp-hero h1 { font-size: 3rem; }
    .lp-section { padding: 4.5rem 0; }
    .lp-step-line { display: none; }
    .lp-steps { gap: .8rem; }
    .teacher-welcome { grid-template-columns: 1fr; padding: 1.5rem; }
    .teacher-welcome .btn { width: 100%; }
    .start-container { padding: 1rem 1rem 4rem; }
    .dash-header { position: relative; }
    .dash-grid { padding: .7rem; }
    .student-body .screen::before { top: 16px; left: 20px; }
    .student-body .screen { padding-top: 4rem; }
    .question-card { padding: 1.25rem; }
    .dd-workflow-steps { grid-template-columns: 1fr; }
    .dd-workflow-overlay .dd-editor-body { padding-inline: .7rem; }
    .dd-workflow-card { padding: .85rem; border-radius: 14px; }
    .dd-workflow-overlay .dd-answers-list-modal { grid-template-columns: 1fr; }
    .dd-workflow-overlay .dd-editor-footer {
        right: 0;
        left: 0;
        flex-wrap: wrap;
    }
    .dd-editor-footer-spacer { display: none; }
    .dd-workflow-overlay .dd-editor-footer .btn { flex: 1 1 calc(50% - .55rem); }
    .text-answer-heading { flex-direction: column; }
    .text-answer-heading .btn { width: 100%; }
    .onboarding-shell { padding: 1.35rem; border-radius: 18px; }
    .onboarding-sample-choices { grid-template-columns: 1fr; }
    .onboarding-coach {
        align-items: stretch;
        flex-direction: column;
        margin: .7rem;
    }
    .onboarding-coach-actions .btn { flex: 1 1 100%; }
    .activation-hero { grid-template-columns: 1fr; }
    .activation-table-heading { align-items: stretch; flex-direction: column; }
    .activation-table-heading form { align-items: stretch; flex-direction: column; }
    .activation-table-heading select { width: 100%; min-width: 0; }
    .template-library-header { align-items: stretch; flex-direction: column; }
    .template-library-header select { width: 100%; min-width: 0; }
}
@media (max-width: 560px) {
    .lp-hero h1 { font-size: 2.55rem; }
    .lp-hero-actions { flex-direction: column; }
    .lp-hero-actions .btn-lp-primary,
    .lp-hero-actions .btn-lp-ghost { justify-content: center; width: 100%; }
    .auth-card { padding: 1.7rem 1.35rem; }
    .teacher-quick-grid { grid-template-columns: 1fr; }
    .getting-started-card { align-items: stretch; flex-direction: column; }
    .getting-started-card .btn { width: 100%; }
    .getting-started-card-actions { flex-direction: column; width: 100%; }
    .getting-started-card-actions .btn { width: 100%; }
    .start-top { align-items: flex-start; }
    .start-top-right { width: 100%; }
    .start-top-right .btn { flex: 1; }
    .student-body .center-card { padding: 1.6rem 1.25rem; }
    .student-trust-row { flex-direction: column; gap: .3rem; align-items: center; }
    .preview-ribbon { right: 10px; bottom: 10px; }
}

/* ── Primary CTA emphasis ── */
.btn-cta-primary {
    min-height: 54px;
    padding-inline: 1.8rem;
    font-size: 1.1rem;
    font-weight: 700;
    background: #fff;
    border-color: #fff;
    color: var(--navy);
    box-shadow: 0 8px 22px rgba(0,0,0,.18);
}
.teacher-welcome .btn-cta-primary:hover {
    background: #e0e7ff;
    border-color: #e0e7ff;
    color: var(--navy);
}
.header-ask-now {
    font-size: .92rem;
    font-weight: 700;
    padding: .5rem 1.15rem;
    box-shadow: 0 2px 8px rgba(37,99,235,.25);
}
.header-btn-group-primary {
    margin-right: .35rem;
}
.btn-secondary-action {
    font-size: .78rem;
    opacity: .85;
}
.btn-secondary-action:hover { opacity: 1; }

/* ═══ CLASSROOM COUNTDOWN TIMER ═══ */
.btn-timer-open {
    gap: .35rem;
}
.timer-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, .88);
    backdrop-filter: blur(6px);
}
body.timer-overlay-open { overflow: hidden; }

.timer-panel {
    position: relative;
    width: 94vw;
    max-width: 720px;
    padding: 2.5rem 2rem 2rem;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 25px 60px rgba(0,0,0,.35);
    text-align: center;
}
.timer-close {
    position: absolute;
    top: .75rem;
    right: .85rem;
    border: none;
    background: none;
    font-size: 1.8rem;
    color: var(--gray-400);
    cursor: pointer;
    line-height: 1;
    padding: .25rem .5rem;
    border-radius: var(--radius);
}
.timer-close:hover { color: var(--red); background: var(--red-light); }

.timer-heading {
    margin: 0 0 1.5rem;
    font-family: 'Manrope', 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--ink, #252a2e);
}

.timer-presets {
    display: flex;
    gap: .75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.timer-preset-btn {
    min-width: 90px;
    padding: .9rem 1.4rem;
    font-size: 1.15rem;
    font-weight: 600;
    border-radius: .75rem;
    background: var(--blue-light, #edf0ff);
    color: var(--blue-dark, #263ea4);
    border: 2px solid transparent;
    cursor: pointer;
    transition: background .15s, border-color .15s, transform .1s;
}
.timer-preset-btn:hover {
    background: #dce3ff;
    border-color: var(--blue, #3454d1);
    transform: translateY(-1px);
}
.timer-preset-btn:active { transform: translateY(0); }

.timer-custom {
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200, #e6e5df);
}
.timer-custom-label {
    display: block;
    margin-bottom: .65rem;
    font-size: .9rem;
    color: var(--gray-500, #696860);
    font-weight: 500;
}
.timer-custom-inputs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    flex-wrap: wrap;
}
.timer-custom-field {
    width: 72px;
    padding: .6rem .5rem;
    font-size: 1.1rem;
    text-align: center;
    border: 1.5px solid var(--gray-300, #d3d1c8);
    border-radius: .5rem;
    font-family: inherit;
    color: var(--ink, #252a2e);
}
.timer-custom-field:focus {
    border-color: var(--blue, #3454d1);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52,84,209,.15);
}
.timer-custom-sep {
    font-size: .9rem;
    color: var(--gray-500, #696860);
    font-weight: 500;
}
.timer-custom-go {
    padding: .6rem 1.3rem;
    font-size: 1rem;
}

/* Running timer display */
.timer-run {
    padding: 1rem 0;
}
.timer-display {
    font-family: 'Manrope', 'DM Sans', monospace;
    font-size: clamp(5rem, 18vw, 14rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--ink, #252a2e);
    letter-spacing: .04em;
    margin-bottom: .5rem;
    user-select: none;
}
.timer-display-done {
    color: var(--red, #d13d4c);
    animation: timer-pulse 1s ease-in-out infinite;
}
@keyframes timer-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .4; }
}

.timer-timesup {
    font-family: 'Manrope', 'DM Sans', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--red, #d13d4c);
    margin-bottom: 1rem;
    letter-spacing: .02em;
}

.timer-controls {
    display: flex;
    gap: .75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}
.timer-ctrl-btn {
    min-width: 110px;
    padding: .85rem 1.6rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: .65rem;
    cursor: pointer;
    touch-action: manipulation;
}

/* Touch-friendly: larger hit targets on touch devices */
@media (pointer: coarse) {
    .timer-ctrl-btn {
        min-width: 130px;
        min-height: 56px;
        font-size: 1.2rem;
    }
    .timer-preset-btn {
        min-width: 110px;
        min-height: 56px;
        font-size: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .timer-display-done { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
