.education-panel {
    grid-column: 2 / 4;
    padding: 18px 20px 28px;
    overflow-y: auto;
    background: #f7f7fb;
}

.education-top {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.education-top h3 {
    margin: 0;
    font-size: 18px;
}

.education-top p {
    margin: 2px 0 0;
    color: #6b7280;
    font-size: 13px;
}

.education-back {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: white;
    color: var(--purple);
    cursor: pointer;
}

.education-tabs,
.education-subtabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.education-tab,
.education-subtab {
    border: 1px solid var(--border);
    background: white;
    color: #374151;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
}

.education-tab.active,
.education-subtab.active {
    background: var(--purple);
    border-color: var(--purple);
    color: white;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.education-card,
.education-form,
.education-result {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
}

.education-card h4,
.education-form h4,
.education-result h4 {
    margin: 0 0 6px;
    font-size: 15px;
}

.education-card p,
.education-muted {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.45;
}

.education-price {
    margin-top: 8px;
    font-weight: 750;
    color: var(--purple-dark);
}

.education-badge {
    display: inline-block;
    margin-top: 8px;
    background: var(--purple-soft);
    color: var(--purple-dark);
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 700;
}

.education-actions,
.education-practice {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 12px;
}

.education-level {
    border: 0;
    border-radius: 999px;
    padding: 7px 12px;
    background: var(--purple-soft);
    color: var(--purple-dark);
    font-weight: 700;
    cursor: pointer;
}

.education-level.is-on {
    background: var(--purple);
    color: white;
}

.education-actions button,
.education-form button,
.education-primary,
.education-ghost {
    border: 0;
    border-radius: 10px;
    padding: 9px 12px;
    font-weight: 700;
    cursor: pointer;
}

.education-primary,
.education-form button[type="submit"],
.education-actions .education-primary {
    background: var(--purple);
    color: white;
}

.education-ghost {
    background: var(--purple-soft);
    color: var(--purple-dark);
}

.education-form {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.education-form label {
    display: grid;
    gap: 4px;
    font-size: 13px;
    font-weight: 650;
}

.education-form input,
.education-form textarea,
.education-form select,
.education-ask {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    background: white;
}

.education-form label.education-check {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
    font-weight: 550;
}

.education-form .education-check input {
    width: auto;
    margin-top: 3px;
}

.education-note {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: 13px;
}

.education-ok {
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.education-handout {
    white-space: pre-wrap;
    line-height: 1.55;
    font-size: 14px;
}

.education-concept {
    border-top: 1px solid var(--border);
    padding-top: 10px;
    margin-top: 10px;
}

.education-question {
    margin-bottom: 14px;
}

.education-option {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-top: 6px;
    font-size: 14px;
}

.education-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.education-table th,
.education-table td {
    text-align: left;
    padding: 8px 6px;
    border-bottom: 1px solid var(--border);
}

.education-sources {
    margin-top: 10px;
    font-size: 12px;
    color: #6b7280;
}

.education-aim {
    height: 8px;
    border-radius: 8px;
    background: #ede9fe;
    overflow: hidden;
    margin: 10px 0;
}

.education-aim span {
    display: block;
    height: 100%;
    background: #6d28d9;
}

.kchat-thread {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0;
}

.kchat-bubble {
    max-width: 80%;
    padding: 10px 12px;
    border-radius: 14px;
    background: white;
    border: 1px solid var(--border);
}

.kchat-bubble.mine {
    align-self: flex-end;
    background: #6d28d9;
    color: white;
    border-color: transparent;
}

.kchat-bubble strong {
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
    opacity: 0.8;
}

@media (max-width: 780px) {
    .education-panel {
        grid-column: 1 / -1;
    }
}

.kcbt {
    display: grid;
    grid-template-columns: 72px minmax(220px, 300px) minmax(0, 1fr);
    min-height: 70vh;
    margin: -6px -8px 0;
    background: #f8fafc;
    color: #1e293b;
    font-family: Inter, "Plus Jakarta Sans", sans-serif;
}
.kcbt-rail {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    padding: 16px 8px;
    background: #fff;
    border-right: 1px solid #e2e8f0;
}
.kcbt-rail-btn {
    width: 100%;
    border: 0;
    background: transparent;
    color: #94a3b8;
    border-radius: 12px;
    padding: 10px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
}
.kcbt-rail-btn.is-on {
    background: #f5f3ff;
    color: #7c3aed;
}
.kcbt-list {
    background: #fff;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.kcbt-list-head, .kcbt-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
}
.kcbt-list-head h3, .kcbt-head h2, .kcbt-hero h2, .kcbt h3, .kcbt h4 {
    margin: 0;
    color: #0f172a;
}
.kcbt-list-head h3 { font-size: 15px; }
.kcbt-list-head p, .kcbt-head p { margin: 2px 0 0; color: #64748b; font-size: 12px; }
.kcbt-award, .kcbt-test-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #f5f3ff;
    color: #7c3aed;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.kcbt-search { position: relative; padding: 12px 16px 4px; }
.kcbt-search i { position: absolute; left: 28px; top: 22px; color: #94a3b8; font-size: 12px; }
.kcbt-search input {
    width: 100%;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 12px;
    padding: 8px 12px 8px 32px;
    font-size: 12px;
}
.kcbt-scroll { overflow: auto; padding: 8px 12px 16px; }
.kcbt-label {
    display: block;
    margin: 8px 8px 6px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.kcbt-label-split { margin-top: 16px; padding-top: 12px; border-top: 1px solid #f1f5f9; }
.kcbt-test, .kcbt-past {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
    color: #334155;
}
.kcbt-test:hover, .kcbt-past:hover { background: #f8fafc; }
.kcbt-test-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.kcbt-test-copy strong, .kcbt-past span { font-size: 12px; font-weight: 600; }
.kcbt-test-copy small { color: #64748b; font-size: 10px; }
.kcbt-test em, .kcbt-card-top span, .kcbt-review-card em {
    font-style: normal;
    font-size: 10px;
    font-weight: 700;
    border-radius: 999px;
    padding: 2px 8px;
}
.kcbt-test em.is-wait, .is-wait { background: #fef3c7; color: #92400e; }
.kcbt-test em.is-pass, .is-pass { background: #d1fae5; color: #065f46; }
.kcbt-past { justify-content: space-between; }
.kcbt-past strong { color: #059669; font-size: 12px; }
.kcbt-work { min-width: 0; display: flex; flex-direction: column; background: #f8fafc; }
.kcbt-body { padding: 20px; overflow: auto; }
.kcbt-hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 28px;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(90deg, #6d28d9, #4f46e5);
    margin-bottom: 22px;
}
.kcbt-hero h2 { color: #fff; font-size: 22px; }
.kcbt-hero p { color: #ddd6fe; font-size: 12px; max-width: 520px; }
.kcbt-pill {
    display: inline-block;
    margin-bottom: 8px;
    background: rgba(255,255,255,.2);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.kcbt-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; color: #e9d5ff; font-size: 12px; }
.kcbt-start, #kcbtBackHub, .kcbt-paper-actions button[type="submit"], #kcbtNext {
    border: 0;
    background: #fff;
    color: #6d28d9;
    border-radius: 14px;
    padding: 12px 16px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}
#kcbtBackHub, .kcbt-paper-actions button[type="submit"], #kcbtNext {
    background: #7c3aed;
    color: #fff;
}
.kcbt-school {
    background: #f5f3ff;
    color: #6d28d9;
    border: 1px solid #ddd6fe;
    border-radius: 12px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
}
.kcbt-cards, .kcbt-stats, .kcbt-review { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.kcbt-card, .kcbt-stat, .kcbt-review-card, .kcbt-feedback {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
}
.kcbt-card-top, .kcbt-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.kcbt-card-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid #f1f5f9; font-size: 12px; color: #64748b; }
.kcbt-card-foot button, .kcbt-card h4 { font-size: 13px; }
.kcbt-card-foot button { border: 0; background: transparent; color: #7c3aed; font-weight: 700; cursor: pointer; padding: 0; }
.kcbt-stat span, .kcbt-stat p { color: #64748b; font-size: 12px; }
.kcbt-stat strong { display: block; margin: 6px 0; font-size: 28px; color: #0f172a; }
#educationPaper.kcbt-paper { display: flex; flex-direction: column; gap: 0; margin: 0; background: #f8fafc; border: 0; padding: 0; }
.kcbt-paper-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.kcbt-paper-title h2 { font-size: 13px; }
.kcbt-paper-actions { display: flex; align-items: center; gap: 10px; }
.kcbt-timer {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
    border-radius: 12px;
    padding: 6px 10px;
    font-weight: 700;
    font-size: 12px;
}
.kcbt-progress { height: 6px; background: #e2e8f0; }
.kcbt-progress span { display: block; height: 100%; background: #7c3aed; }
.kcbt-sheet { display: grid; grid-template-columns: minmax(0, 1fr) 240px; min-height: 420px; }
.kcbt-question { padding: 24px; display: flex; flex-direction: column; }
.kcbt-q-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.kcbt-q-no { background: #ede9fe; color: #6d28d9; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; }
.kcbt-flag { border: 1px solid #e2e8f0; background: #fff; color: #64748b; border-radius: 12px; padding: 6px 10px; font-size: 12px; font-weight: 600; cursor: pointer; }
.kcbt-flag.is-on { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.kcbt-question h3 { font-size: 16px; line-height: 1.45; }
.kcbt-options { display: grid; gap: 10px; margin-top: 8px; }
#educationPaper .kcbt-option,
.kcbt-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
}
.kcbt-option input { position: absolute; opacity: 0; }
.kcbt-option span {
    width: 24px; height: 24px; border-radius: 999px; border: 1px solid #cbd5e1;
    display: grid; place-items: center; font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.kcbt-option.is-on { border-color: #7c3aed; background: #f5f3ff; font-weight: 600; }
.kcbt-option.is-on span { background: #7c3aed; color: #fff; border-color: #7c3aed; }
.kcbt-nav { display: flex; justify-content: space-between; margin-top: auto; padding-top: 20px; border-top: 1px solid #e2e8f0; }
#kcbtPrev { border: 1px solid #e2e8f0; background: #fff; color: #334155; border-radius: 12px; padding: 10px 14px; font-weight: 600; cursor: pointer; }
#kcbtPrev:disabled { opacity: .4; }
.kcbt-grid { background: #fff; border-left: 1px solid #e2e8f0; padding: 18px; display: flex; flex-direction: column; }
.kcbt-grid h4 { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; }
.kcbt-grid-btns { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.kcbt-jump {
    height: 36px; border: 0; border-radius: 10px; background: #f1f5f9; color: #334155; font-weight: 700; cursor: pointer;
}
.kcbt-jump.is-done { background: #7c3aed; color: #fff; }
.kcbt-jump.is-flag { background: #f59e0b; color: #fff; }
.kcbt-jump.is-current { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #6d28d9; }
.kcbt-legend { margin-top: auto; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 16px; padding: 12px; font-size: 11px; color: #64748b; }
.kcbt-legend p { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.kcbt-legend i { width: 10px; height: 10px; border-radius: 999px; background: #e2e8f0; display: inline-block; }
.kcbt-legend i.is-done { background: #7c3aed; }
.kcbt-legend i.is-flag { background: #f59e0b; }
.kcbt-score-box { display: flex; gap: 16px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 16px; padding: 16px; }
.kcbt-score-box strong { display: block; font-size: 28px; }
.kcbt-score-box span { font-size: 11px; color: #ddd6fe; }
.kcbt-feedback { margin-bottom: 18px; }
.kcbt-feedback-title { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.kcbt-review-card.is-right { border-color: #a7f3d0; background: #f0fdf4; }
.kcbt-review-card.is-wrong { border-color: #fecdd3; background: #fff1f2; }
.kcbt-review-card .is-correct-line { color: #047857; font-weight: 600; }
.kcbt-result { display: block; }
@media (max-width: 900px) {
    .kcbt, .kcbt-sheet { grid-template-columns: 1fr; }
    .kcbt-rail { flex-direction: row; justify-content: flex-start; border-right: 0; border-bottom: 1px solid #e2e8f0; }
    .kcbt-rail-btn { width: auto; flex-direction: row; padding: 8px 12px; }
    .kcbt-grid { border-left: 0; border-top: 1px solid #e2e8f0; }
    .kcbt-hero { flex-direction: column; align-items: flex-start; }
}


/* Lecture and preparation workspace */
.edu-field-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:12px; }
.edu-source-list { border:1px solid #e2e8f0; border-radius:12px; padding:14px; display:grid; gap:10px; }
.edu-source-list label { display:flex!important; align-items:center; gap:9px; flex-direction:row!important; }
.edu-source-list input { width:auto!important; }
.edu-lesson { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.edu-lesson > div { flex:1; min-width:160px; }
.edu-lesson-number { width:36px; height:36px; display:grid; place-items:center; border-radius:10px; color:#6d28d9; background:#ede9fe; font-weight:800; }
.edu-lecture-notes { white-space:pre-wrap; line-height:1.8; margin:18px 0; max-height:none!important; }
.edu-lecture-link { display:inline-block; margin:12px 0; }
.edu-progress-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:14px 0; }
.edu-progress-summary div { padding:14px; border-radius:12px; background:#f5f3ff; display:flex; flex-direction:column; gap:5px; }
.edu-progress-summary strong { font-size:24px; color:#6d28d9; }
.edu-progress-summary span { font-size:12px; color:#64748b; }
.edu-completion { width:100%; accent-color:#7c3aed; height:12px; }
@media(max-width:500px) { .edu-progress-summary { grid-template-columns:1fr; } }

/* KEdu Learning Workspace — Figma MLJJPMoJKZblpHl4YwlDsW. */
#educationPanel { --kedu-background:#f7f7fb; --kedu-surface:#fff; --kedu-ink:#202636; --kedu-muted:#647084; --kedu-border:#e5e7ef; color:var(--kedu-ink); font-family:"Plus Jakarta Sans",Inter,sans-serif; padding:32px 40px; }
#educationPanel .education-top h3 { color:var(--purple); font-size:24px; }
#educationPanel .education-top p, #educationPanel .education-muted { color:var(--kedu-muted); }
#educationPanel .education-tabs { gap:12px; margin:20px 0 28px; }
#educationPanel .education-tab, #educationPanel .education-subtab { border-radius:12px; min-height:42px; }
#educationPanel .education-ghost { border:1px solid #8c8f96; color:var(--kedu-ink); background:white; border-radius:12px; min-height:42px; padding:10px 14px; font-size:14px; }
#educationPanel .education-card { border:0; border-radius:20px; padding:24px; box-shadow:none; }
#educationPanel .education-card h4 { font-size:20px; line-height:1.45; overflow-wrap:anywhere; }
#educationPanel .education-card p { color:var(--kedu-muted); font-size:14px; }
.edu-dashboard-return { margin-left:48px; }
.edu-learning-home { display:grid; gap:24px; }
.edu-learning-home h3 { font-size:24px; line-height:1.45; margin:0; }
.edu-page-intro h2 { font-size:clamp(28px,4vw,34px); line-height:1.45; margin:0 0 12px; }
.edu-page-intro p { color:var(--kedu-muted); font-size:14px; line-height:1.45; margin:0; }
.edu-page-intro .edu-eyebrow { display:block; margin-top:8px; color:var(--kedu-muted); font-size:12px; }
.edu-resume-card { display:grid; justify-items:start; gap:16px; padding:24px; background:var(--purple); color:white; border-radius:20px; }
.edu-resume-card p { margin:0; color:white; font-size:14px; line-height:1.45; }
.edu-resume-card h3 { overflow-wrap:anywhere; }
.edu-eyebrow { font-size:13px; font-weight:600; }
.edu-home-actions { gap:16px; margin:0; }
.edu-section-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; }
.edu-course-card { display:grid; justify-items:start; gap:16px; }
.edu-course-card progress { width:100%; height:6px; accent-color:var(--purple); }
.edu-learning-home .education-grid { gap:16px; grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr)); }
.edu-more-tools { margin-top:24px; }
.edu-more-tools summary { cursor:pointer; font-weight:600; }
.edu-teaching-steps { line-height:2; padding-left:22px; color:var(--kedu-muted); }
.edu-course-tools { border-bottom:1px solid var(--kedu-border); padding-bottom:16px; }
.edu-lecture-workspace { display:grid; grid-template-columns:minmax(240px,320px) minmax(0,1fr); gap:16px; align-items:start; }
.edu-lecture-sidebar { background:white; border-radius:20px; padding:24px; }
.edu-lecture-sidebar h4 { font-size:20px; margin:0 0 16px; }
#educationPanel .edu-lecture-sidebar .edu-lesson { padding:12px 0; border-radius:0; display:flex; flex-wrap:wrap; gap:8px; border-bottom:1px solid var(--kedu-border); }
#educationPanel .edu-lecture-sidebar .edu-lesson h4 { font-size:14px; margin:0; }
.edu-lecture-sidebar .edu-lesson p { font-size:12px; }
.edu-lecture-content { min-width:0; }
.edu-lecture-content > .education-ghost { margin-bottom:12px; }
@media(max-width:680px) {
 #educationPanel { padding:24px 20px; }
 #educationPanel .education-tabs { flex-wrap:nowrap; overflow-x:auto; padding-bottom:8px; }
 #educationPanel .education-tab { flex:0 0 auto; }
 .edu-lecture-workspace { grid-template-columns:1fr; }
 .edu-lecture-sidebar { max-height:320px; overflow-y:auto; }
 .edu-home-actions { padding:24px; background:white; border-radius:20px; flex-direction:column; align-items:flex-start; }
 .edu-dashboard-return { margin-left:0; }
}

/* Personal study workspace, adapted from the supplied KEdu UI. */
.kedu-workspace{font-family:'Plus Jakarta Sans',sans-serif;color:#1f2937;max-width:1200px;margin:auto}.kedu-study-hero{background:linear-gradient(110deg,#6d28d9,#4f46e5);color:white;padding:28px;border-radius:24px;margin-bottom:20px}.kedu-study-hero h2{margin:10px 0;font-size:clamp(22px,3vw,32px)}.kedu-study-hero p{color:#ede9fe;line-height:1.7}.kedu-steps{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0 24px}.kedu-steps span{padding:10px 14px;background:#ede9fe;border-radius:14px;font-size:13px}.kedu-steps [aria-current]{background:#7c3aed;color:white;font-weight:700}.kedu-study-grid{display:grid;grid-template-columns:240px minmax(0,1fr);gap:20px;align-items:start}.kedu-workspace .education-card{border:1px solid #ddd6fe;border-radius:24px;padding:24px;background:white;min-width:0}.kedu-workspace button,.kedu-workspace select{min-height:44px}.kedu-outline{padding:0;list-style:none;display:grid;gap:8px;max-height:380px;overflow:auto}.kedu-outline button{width:100%;text-align:left;background:#f5f3ff;color:#4c1d95;border:1px solid #ddd6fe;border-radius:12px;padding:12px;white-space:normal}.kedu-outline button span,.kedu-outline button strong{display:block}.kedu-outline button span{font-size:12px;margin-bottom:4px}.kedu-outline [aria-current]{border-color:#7c3aed;background:#ede9fe}.kedu-source,.kedu-lesson p{white-space:pre-wrap;line-height:1.85;overflow-wrap:anywhere}.kedu-source{max-height:280px;overflow:auto;padding:16px;background:#f5f3ff;border-radius:14px;margin-top:12px}.kedu-audio{display:flex;gap:8px;flex-wrap:wrap;align-items:center;background:#f5f3ff;border:1px solid #ddd6fe;border-radius:16px;padding:12px;margin:20px 0}.kedu-audio span{font-size:12px;width:100%}.kedu-check{border-left:4px solid #7c3aed;padding:16px;background:#f5f3ff;border-radius:8px}.kedu-coverage{display:grid;gap:10px;max-height:300px;overflow:auto;background:#f5f3ff;padding:16px;border-radius:16px}.kedu-coverage label{display:flex!important;flex-direction:row!important;align-items:center;gap:10px;font-size:13px}.kedu-coverage input{width:20px!important;min-width:20px}.kedu-workspace progress{width:100%;accent-color:#7c3aed}.kedu-workspace button:focus-visible,.kedu-workspace input:focus-visible,.kedu-workspace select:focus-visible{outline:3px solid #a78bfa;outline-offset:3px}@media(max-width:700px){.kedu-study-grid{grid-template-columns:1fr}.kedu-study-grid aside .kedu-outline{max-height:150px}.kedu-workspace .education-card{padding:18px}.kedu-study-hero{padding:22px}.kedu-steps{gap:6px}.kedu-steps span{font-size:11px;padding:9px}.kedu-workspace .education-actions button{flex:1;white-space:normal}}

.kedu-audio select{width:90px!important;min-width:90px;padding:8px;color:#1f2937;background:white;border:1px solid #ddd6fe;border-radius:10px}.kedu-lesson.is-reading{background:#ede9fe;border-radius:14px;padding:12px}

/* In-page CBT review dialog: the exam clock keeps running while reviewing. */
.kcbt-submit-dialog{box-sizing:border-box;width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;margin:auto;padding:32px;border:1px solid #ede9fe;border-radius:28px;background:#fff;color:#1f2937;font-family:'Plus Jakarta Sans',sans-serif;box-shadow:0 28px 90px #23104538}.kcbt-submit-dialog::backdrop{background:#17102a80;backdrop-filter:blur(5px)}.kcbt-dialog-close{position:absolute;right:16px;top:12px;width:40px;height:40px;border:0;border-radius:50%;background:#f5f3ff;color:#6d28d9;font-size:26px;cursor:pointer}.kcbt-dialog-icon{display:grid;place-items:center;width:58px;height:58px;border-radius:18px;background:#ede9fe;color:#7c3aed;font-size:25px;margin-bottom:20px}.kcbt-dialog-eyebrow{font-size:11px;letter-spacing:1.5px;font-weight:800;color:#7c3aed}.kcbt-submit-dialog h2{margin:8px 0 12px;font-size:27px;line-height:1.3;color:#1f2937}.kcbt-submit-dialog p{font-size:14px;line-height:1.7;color:#64748b;margin:0 0 20px}.kcbt-submit-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:22px 0}.kcbt-submit-stats>div{padding:16px 8px;background:#f5f3ff;border:1px solid #ede9fe;border-radius:16px;text-align:center}.kcbt-submit-stats strong{display:block;font-size:25px;color:#4c1d95}.kcbt-submit-stats small{font-size:12px;font-weight:500;color:#64748b}.kcbt-submit-stats span{display:block;margin-top:6px;font-size:11px;font-weight:600}.kcbt-submit-stats .needs-review{background:#fffbeb;border-color:#fde68a}.kcbt-submit-stats .needs-review strong{color:#92400e}.kcbt-review-time{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:14px 0;border-top:1px solid #ede9fe;border-bottom:1px solid #ede9fe;font-size:13px;margin-bottom:16px}.kcbt-review-time strong{font-size:17px;font-variant-numeric:tabular-nums;color:#6d28d9}.kcbt-submit-dialog .kcbt-review-warning{padding:12px 14px;background:#fffbeb;border-radius:12px;color:#92400e;font-size:12px}.kcbt-submit-dialog .kcbt-review-complete{font-size:12px;color:#166534}.kcbt-dialog-actions{display:flex;gap:10px;margin-top:24px}.kcbt-dialog-actions button{flex:1;min-height:48px;padding:12px;border:1px solid #ddd6fe;border-radius:14px;font:700 13px 'Plus Jakarta Sans',sans-serif;cursor:pointer;background:#fff;color:#6d28d9}.kcbt-dialog-actions #kcbtReviewConfirm{background:#7c3aed;border-color:#7c3aed;color:#fff}.kcbt-submit-dialog button:focus-visible{outline:3px solid #c4b5fd;outline-offset:3px}@media(max-width:400px){.kcbt-submit-dialog{padding:24px 18px;border-radius:22px}.kcbt-submit-dialog h2{font-size:24px}.kcbt-submit-stats{gap:6px}.kcbt-dialog-actions{flex-direction:column-reverse}}

.edu-persistent-toolbar{display:flex;gap:10px;flex-wrap:wrap;position:sticky;top:0;z-index:25;background:#f5f3ff;padding:12px 4px;border-bottom:1px solid #ddd6fe}.edu-persistent-toolbar button{min-height:44px}.edu-action-dialog .kcbt-dialog-actions #eduDialogAccept{background:#7c3aed;color:white;border-color:#7c3aed}.edu-action-dialog textarea{box-sizing:border-box;width:100%;min-height:110px;border:1px solid #ddd6fe;border-radius:12px;padding:12px;font:inherit}.edu-action-dialog h2{padding-right:24px}


/* Learning companion: bounded cards and clearly outlined form controls. */
#eduSuccess{min-width:0}#eduSuccess input:not([type=checkbox]),#eduSuccess select,#eduSuccess textarea{box-sizing:border-box;width:100%;max-width:100%;padding:12px;border:1px solid #c7cbd8;border-radius:10px;background:var(--ke-card,#fff);color:inherit;font:inherit;margin:6px 0 12px}#eduSuccess progress{width:100%;accent-color:#7c3aed}#eduSuccess blockquote{border-left:3px solid #a78bfa;padding:12px;margin:12px 0;white-space:pre-wrap;overflow-wrap:anywhere}#eduSuccess .education-card{min-width:0;overflow-wrap:anywhere}#eduSuccess nav{display:flex;flex-wrap:wrap;gap:8px}#eduSuccess [aria-current=page]{background:#ede9fe;color:#6d28d9;border-color:#a78bfa}#eduSuccess details summary{cursor:pointer;padding:10px 0}#eduSuccess .education-actions{display:flex;flex-wrap:wrap;gap:8px}#eduSuccess input:focus-visible,#eduSuccess select:focus-visible,#eduSuccess textarea:focus-visible{outline:3px solid #c4b5fd;outline-offset:2px}

/* Focused personal study: scoped to preserve the rest of KEdu. */
.kedu-modern-study{--study-surface:var(--ke-card,#fff);--study-text:var(--ke-text,#202333);--study-soft:var(--ke-bg,#f8f7fc);color:var(--study-text);max-width:1200px;margin:auto;padding-bottom:24px}
.kedu-modern-study .kedu-study-header{display:flex;align-items:start;justify-content:space-between;gap:20px;padding:24px 8px}
.kedu-modern-study .kedu-study-header>div{flex:1;min-width:0;max-width:600px}
.kedu-modern-study .kedu-study-header h2{font-size:clamp(22px,4vw,30px);letter-spacing:-.5px;line-height:1.3;margin:8px 0;overflow-wrap:anywhere}
.kedu-modern-study .kedu-study-header p{font-size:13px;margin:12px 0 8px}
.kedu-modern-study progress{height:6px;border-radius:12px;overflow:hidden}
.kedu-modern-study .kedu-steps{display:flex;gap:8px;margin-bottom:20px;flex-wrap:wrap}
.kedu-modern-study .kedu-steps button{border:1px solid #d7d3e3;border-radius:14px;min-height:44px;padding:10px 18px;font:inherit;background:var(--study-surface);color:inherit;cursor:pointer}
.kedu-modern-study .kedu-steps [aria-current]{background:#ede9fe;color:#5b21b6;border-color:#b9a6ef;font-weight:700}
.kedu-modern-study .education-card{border:1px solid #e4e0ed;border-radius:24px;box-shadow:none;background:var(--study-surface);color:inherit;min-width:0}
.kedu-modern-study .kedu-study-grid{grid-template-columns:minmax(180px,250px) minmax(0,1fr);align-items:start;gap:20px}
.kedu-modern-study .kedu-study-grid article{max-width:820px}
.kedu-modern-study .kedu-outline-drawer summary{font-weight:700;font-size:17px;cursor:pointer;padding:8px 0}
.kedu-modern-study .kedu-tutor-turn{padding:20px 0;border-bottom:1px solid #e4e0ed;line-height:1.8;overflow-wrap:anywhere}
.kedu-modern-study .kedu-question{margin:20px 0 0 auto;max-width:85%;border:0;border-radius:18px 18px 4px 18px;background:#ede9fe;color:#342653}
.kedu-modern-study .kedu-question-composer{position:sticky;bottom:0;z-index:5;display:flex;align-items:end;gap:10px;padding:14px 0 max(14px,env(safe-area-inset-bottom));background:var(--study-surface);border-top:1px solid #e4e0ed;margin:20px 0}
.kedu-modern-study .kedu-question-composer label{flex:1;min-width:0}
.kedu-modern-study .kedu-question-composer button{min-height:48px;border-radius:14px;white-space:normal;max-width:110px}
.kedu-modern-study input:not([type=checkbox]),.kedu-modern-study select,.kedu-modern-study textarea{box-sizing:border-box;border:1px solid #bcb4ce;border-radius:14px;background:var(--study-surface);color:inherit;max-width:100%;font:inherit;padding:12px}
.kedu-modern-study textarea{width:100%;resize:vertical;min-height:56px;max-height:180px}
.kedu-modern-study .kedu-audio{background:var(--study-soft);border-color:#e4e0ed;border-radius:18px}
.kedu-modern-study .kedu-lesson{font-size:16px;line-height:1.8}
@media(max-width:700px){.kedu-modern-study .kedu-study-grid{grid-template-columns:minmax(0,1fr)}.kedu-modern-study .kedu-study-header{gap:10px;padding:16px 4px}.kedu-modern-study .kedu-study-header>button{max-width:112px;white-space:normal;min-height:44px}.kedu-modern-study .kedu-study-grid aside .kedu-outline{max-height:220px;overflow:auto}.kedu-modern-study .education-card{padding:16px}.kedu-modern-study .kedu-steps button{padding:10px 12px;font-size:13px}.kedu-modern-study .kedu-question-composer{gap:8px}.kedu-modern-study .kedu-question-composer button{max-width:85px;font-size:12px}}

.kedu-teaching-diagram{margin:18px 0;padding:16px;border:1px solid var(--edu-line,#d8cce9);border-radius:16px;background:var(--edu-surface,#fff);color:var(--edu-text,#302340)}
.kedu-diagram-scroll{overflow:auto;max-width:100%;margin:12px 0}.kedu-diagram-scroll svg{display:block;color:#8450b2;max-width:none}.kedu-diagram-scroll rect{fill:#f6f0ff;stroke:#a37bc6;stroke-width:1.5}.kedu-diagram-scroll text{fill:#302340;font:17px system-ui,sans-serif}.kedu-comprehension{border:1px solid #ab8ec8;border-radius:14px;margin:18px 0;padding:16px;display:grid;gap:10px}.kedu-comprehension button{white-space:normal;text-align:left;min-height:44px}.kedu-topic-lesson{white-space:normal;margin:16px 0}#keduTopicTutor input,#keduTopicTutor textarea{border:1px solid #a88cc6;border-radius:12px;padding:12px;max-width:100%}#keduTopicTutor [data-topic-history]{min-width:0}#keduTopicTutor button{margin:4px}

.kedu-tutor-turn>p,.kedu-source{white-space:pre-wrap;overflow-wrap:anywhere}.kedu-comprehension legend{font-weight:700}

/* Ask AI: chat with attachments */
.kedu-ask-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:16px;align-items:start}
.kedu-ask-chats{display:grid;gap:6px;max-height:70vh;overflow:auto}.kedu-ask-chats [data-ask-list]{display:grid;gap:4px}
.kedu-ask-chats [data-ask-room]{text-align:left;border:1px solid #e3d7f1;background:#fff;border-radius:10px;padding:9px 11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.kedu-ask-chats [aria-current="true"]{background:#f3ebfc;border-color:#a37bc6;font-weight:600}
.kedu-ask-main{min-width:0;display:grid;gap:10px}.kedu-ask-thread{min-height:200px}
.kedu-ask-empty{border:1px dashed #c7b2de;border-radius:16px;padding:28px;text-align:center;color:#5b4a6e}
.kedu-ask-composer{position:sticky;bottom:0;background:#fff;border:1px solid #c7b2de;border-radius:18px;padding:10px;box-shadow:0 6px 24px rgba(80,40,120,.08)}
.kedu-ask-composer.dragging{border-style:dashed;background:#faf6ff}
.kedu-ask-row{display:flex;gap:8px;align-items:flex-end}.kedu-ask-row textarea{flex:1;min-width:0;border:0;resize:vertical;font:inherit;padding:10px;outline:none;max-height:240px}
.kedu-ask-attach{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;border:1px solid #d8c8ea;cursor:pointer;color:#6b3fa0;flex:none}
.kedu-ask-attach input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.kedu-ask-attach:focus-within{outline:2px solid #8450b2}
.kedu-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.kedu-ask-pending,.kedu-ask-files{display:flex;flex-wrap:wrap;gap:6px}.kedu-ask-pending:empty{display:none}
.kedu-ask-chip{display:inline-flex;align-items:center;gap:6px;background:#f3ebfc;border:1px solid #dccaf0;border-radius:999px;padding:4px 10px;font-size:.85rem;max-width:100%;overflow-wrap:anywhere}
.kedu-ask-chip button{border:0;background:none;cursor:pointer;font-size:1rem;line-height:1;padding:0 2px}
.kedu-ask-status{margin:6px 4px 0;font-size:.85rem;color:#5b4a6e}
@media (max-width:760px){.kedu-ask-layout{grid-template-columns:1fr}.kedu-ask-chats{max-height:none;grid-auto-flow:column;grid-auto-columns:max-content;overflow-x:auto}.kedu-ask-chats [data-ask-list]{grid-auto-flow:column}}

.edu-persistent-toolbar{align-items:center}.edu-persistent-toolbar>*{white-space:nowrap}
.edu-toolbar-label{font-size:.75rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#6d28d9;padding:0 2px 0 10px;border-left:1px solid #ddd6fe}
.edu-persistent-toolbar{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;gap:8px}.edu-persistent-toolbar>*{flex:none}
.edu-persistent-toolbar>a,.edu-persistent-toolbar>button{padding:8px 12px;font-size:.85rem;min-height:40px;border-radius:12px}
.edu-persistent-toolbar .education-tabs{display:contents}
.edu-persistent-toolbar .education-tab{flex:none;white-space:nowrap;padding:8px 12px;font-size:.85rem;min-height:40px;border-radius:12px}
.edu-persistent-toolbar{gap:6px}.edu-persistent-toolbar>a,.edu-persistent-toolbar>button,.edu-persistent-toolbar .education-tab{padding:8px 10px}

/* Workspace sections first; learning actions and account tools below. */
#educationPanel .edu-persistent-toolbar{display:grid;gap:0;min-width:0;max-width:100%;padding:0;margin-bottom:24px;border:1px solid var(--kedu-border,#e5e7ef);border-radius:18px;background:var(--kedu-surface,#fff);box-shadow:0 4px 18px #34234b05;overflow:visible}
#educationPanel .edu-workspace-navigation{display:flex;align-items:center;gap:16px;min-width:0;padding:10px 14px;border-bottom:1px solid var(--kedu-border,#e5e7ef)}
#educationPanel .edu-persistent-toolbar .education-tabs{display:flex;flex:1;flex-wrap:nowrap;align-items:center;gap:4px;min-width:0;margin:0;padding:4px;overflow-x:auto;scrollbar-width:thin;scroll-padding:4px}
#educationPanel .edu-persistent-toolbar .education-tab{flex:none;min-height:44px;padding:10px 14px;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--kedu-muted,#647084);font:600 13px 'Plus Jakarta Sans',sans-serif;white-space:nowrap;transition:background .15s,color .15s}
#educationPanel .edu-persistent-toolbar .education-tab:hover{background:#f5f3ff;color:#5b21b6}
#educationPanel .edu-persistent-toolbar .education-tab.active{background:#ede9fe;border-color:#ddd6fe;color:#5b21b6;font-weight:750}
#educationPanel .edu-workspace-link{flex:none;padding:10px 4px;color:#6d28d9;font-size:12px;font-weight:650;text-decoration:none}
#educationPanel .edu-workspace-link:hover{text-decoration:underline}
#educationPanel .edu-workspace-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:14px 18px;min-width:0;white-space:normal}
#educationPanel .edu-workspace-start,#educationPanel .edu-workspace-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0}
#educationPanel .edu-workspace-tools{padding-left:12px;border-left:1px solid var(--kedu-border,#e5e7ef)}
#educationPanel .edu-workspace-actions button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;max-width:100%;margin:0;padding:10px 14px;border:1px solid #e1ddea;border-radius:10px;background:var(--kedu-surface,#fff);color:var(--kedu-ink,#202636);font:600 13px 'Plus Jakarta Sans',sans-serif;white-space:normal;line-height:1.4;text-align:center}
#educationPanel .edu-workspace-actions [data-kedu-ask-open]{background:var(--purple,#7c3aed);border-color:var(--purple,#7c3aed);color:#fff;box-shadow:0 3px 8px #7c3aed20}
#educationPanel .edu-workspace-actions [data-topic-tutor-open]{background:#f8f5ff;border-color:#ddd6fe;color:#5b21b6}
#educationPanel .edu-workspace-actions [data-education-plans]{margin-left:auto;color:var(--kedu-muted,#647084);border-color:transparent}
#educationPanel .edu-workspace-actions button:hover{border-color:#a78bfa;background:#f5f3ff;color:#5b21b6}
#educationPanel .edu-workspace-actions [data-kedu-ask-open]:hover{background:#6d28d9;color:#fff}
#educationPanel .edu-persistent-toolbar :is(button,a):focus-visible{outline:3px solid #a78bfa;outline-offset:2px}
@media(max-width:1100px){#educationPanel .edu-workspace-navigation{flex-wrap:wrap;gap:4px}#educationPanel .edu-workspace-link{margin-left:4px}#educationPanel .edu-persistent-toolbar .education-tabs{flex-basis:100%}#educationPanel .edu-workspace-actions{gap:10px;padding:12px}#educationPanel .edu-workspace-tools{padding-left:0;border-left:0}}
@media(max-width:540px){#educationPanel .edu-persistent-toolbar{position:static}#educationPanel .edu-workspace-navigation{padding:6px}#educationPanel .edu-persistent-toolbar .education-tab{padding:10px 12px}#educationPanel .edu-workspace-actions{display:grid;grid-template-columns:minmax(0,1fr)}#educationPanel .edu-workspace-start,#educationPanel .edu-workspace-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:stretch}#educationPanel .edu-workspace-start [data-topic-tutor-open]{grid-column:1 / -1;grid-row:2}#educationPanel .edu-workspace-actions [data-education-plans]{margin:0;justify-self:stretch;border-top:1px solid var(--kedu-border,#e5e7ef);border-radius:0;padding-top:14px}}


/* Reference-matched Ask AI shell; scoped to this screen only. */
#chatPage:has(#educationPanel:not([style*="display: none"]):not([style*="display:none"]) #keduAsk){padding:0;background:#f7f8fa}
#chatPreviewApp:has(#educationPanel:not([style*="display: none"]):not([style*="display:none"]) #keduAsk){display:block;grid-template-columns:minmax(0,1fr);width:100%;max-width:none;height:100dvh;max-height:none;margin:0;padding:16px;background:#f7f8fa;border:0;border-radius:0;overflow:hidden}
#chatPreviewApp:has(#educationPanel:not([style*="display: none"]):not([style*="display:none"]) #keduAsk)>.chat-app-sidebar{display:none}
#educationPanel:has(#keduAsk){grid-column:1 / -1;padding:0;background:transparent;overflow:visible;height:100%;min-width:0}
#educationPanel:has(#keduAsk)>.education-top,#educationPanel:has(#keduAsk)>.edu-persistent-toolbar{display:none}
#educationPanel:has(#keduAsk)>#educationBody{height:100%;margin:0;min-width:0}
#keduAsk{--chat-line:#ececf1;--chat-muted:#777787;--chat-purple:#7c3aed;position:relative;display:grid;grid-template-columns:220px minmax(0,1fr);width:100%;max-width:1440px;height:calc(100dvh - 32px);min-height:480px;margin:0 auto;border:1px solid #e7e7ed;border-radius:22px;background:#fff;color:#171923;font-family:Arial,Helvetica,sans-serif;box-shadow:0 2px 14px #27213e05;overflow:hidden}
#keduAsk *{box-sizing:border-box}#keduAsk .kedu-ui-icon{display:inline-block;flex:none;width:18px;height:18px;vertical-align:middle}#keduAsk button{font-family:inherit;cursor:pointer}#keduAsk button:disabled{opacity:.5;cursor:wait}#keduAsk :is(button,summary,textarea):focus-visible{outline:2px solid #a78bfa;outline-offset:3px}
#keduAsk .kedu-ask-chats{display:flex;flex-direction:column;gap:0;position:static;width:auto;min-width:0;max-height:none;padding:20px 14px;background:#f8f9fb;border:0;border-right:1px solid var(--chat-line);border-radius:0;overflow:hidden}
#keduAsk .kedu-chat-brand{display:flex;align-items:center;gap:10px;white-space:nowrap}#keduAsk .kedu-chat-logo{display:grid;place-items:center;width:36px;height:36px;flex:none;border-radius:9px;background:linear-gradient(140deg,#9a4dff,#6d28d9);color:white;font-size:25px;font-weight:700;box-shadow:0 2px 6px #7c3aed12}#keduAsk .kedu-chat-brand>span:last-child{display:grid;gap:2px}#keduAsk .kedu-chat-brand strong{font-size:20px;line-height:1.1;color:#11131a}#keduAsk .kedu-chat-brand small{font-size:10px;color:#737987;font-weight:400}#keduAsk .kedu-sidebar-brand{display:flex;align-items:center;justify-content:space-between;padding:0 4px;margin-bottom:24px}#keduAsk [data-ask-close]{display:none}
#keduAsk [data-ask-new]{display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;min-height:42px;margin-bottom:26px;padding:11px 14px;background:var(--chat-purple);border:1px solid #7c3aed;border-radius:9px;color:white;font-size:13px;font-weight:500;box-shadow:none}#keduAsk [data-ask-new]:hover{background:#6d28d9}
#keduAsk [data-ask-history]{min-height:0;overflow:auto;scrollbar-width:thin}#keduAsk [data-ask-history]>summary{list-style:none;margin:0 4px 14px;padding:0;color:#383e4a;font-size:12px;font-weight:600;cursor:pointer}#keduAsk [data-ask-history]>summary::-webkit-details-marker{display:none}#keduAsk [data-ask-list]{display:flex;flex-direction:column;gap:6px;margin:0;padding:0;max-height:none;overflow:visible}#keduAsk [data-ask-room]{display:flex;align-items:flex-start;gap:11px;width:100%;min-height:50px;padding:10px 12px;border:1px solid transparent;border-radius:9px;background:transparent;color:#272b36;text-align:left;font-size:12px;font-weight:400;white-space:normal;overflow:hidden}#keduAsk [data-ask-room]>.kedu-ui-icon{width:17px;height:17px;margin-top:1px;color:#4a5060}#keduAsk [data-ask-room]>span{display:grid;gap:4px;min-width:0}#keduAsk [data-ask-room]>span>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#keduAsk [data-ask-room] small{font-size:10px;color:#8a8d98}#keduAsk [data-ask-room]:hover,#keduAsk [data-ask-room][aria-current=true]{background:#f0edf7;border-color:transparent;font-weight:400}
#keduAsk .kedu-chat-return{display:flex;align-items:center;gap:12px;min-height:44px;margin-top:auto;padding:12px 4px 0;background:transparent;border:0;border-radius:0;color:#27303d;font-size:12px;font-weight:400;text-align:left}#keduAsk .kedu-chat-return:hover{color:#7c3aed}
#keduAsk .kedu-chat-canvas{display:flex;flex-direction:column;min-width:0;min-height:0;padding:0 20px;background:#fff}#keduAsk .kedu-chat-mobile-brand{display:none}#keduAsk .kedu-chat-header{display:flex;align-items:center;justify-content:space-between;flex:none;gap:12px;min-height:78px;margin:0;padding:16px 4px;border-bottom:1px solid #f0f0f4}#keduAsk .kedu-chat-header h2{margin:0 0 4px;color:#11131b;font-size:25px;line-height:1.2;font-weight:700;letter-spacing:-.5px}#keduAsk .kedu-chat-header p{margin:0;color:#5b6170;font-size:13px;line-height:1.4}#keduAsk .kedu-chat-profile{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#f0e8ff;color:#7b56b2;font-size:13px}
#keduAsk .kedu-ask-layout{display:flex;align-items:stretch;flex:1;min-height:0;min-width:0;margin:0;gap:0}#keduAsk .kedu-ask-main{display:flex;flex-direction:column;height:100%;gap:0;flex:1;min-height:0;min-width:0;max-width:none;width:100%;margin:0}#keduAsk .kedu-ask-thread{display:flex;flex-direction:column;flex:1;min-height:0;gap:20px;margin:0;padding:14px 4px 20px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scroll-padding:14px}
#keduAsk .kedu-chat-message{min-width:0;max-width:100%;overflow-wrap:anywhere}#keduAsk .kedu-chat-user{display:flex;flex-direction:column;align-self:flex-end;align-items:flex-end;width:fit-content;max-width:72%;gap:4px;margin:0}#keduAsk .kedu-chat-bubble{max-width:100%;min-width:0;padding:13px 15px 7px;border:0;border-radius:12px;background:#e9ddfb;color:#222032;font-size:13px;line-height:1.5}#keduAsk .kedu-chat-bubble>p{margin:0;white-space:pre-wrap;line-height:1.55}#keduAsk .kedu-chat-bubble time{display:block;margin:5px 0 0;text-align:right;font-size:10px;color:#9b8ab5;line-height:1.4}#keduAsk .kedu-chat-user>small{font-size:10px;color:#877797}#keduAsk .kedu-chat-user[data-delivery=sent]>small{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}#keduAsk .kedu-chat-bubble .kedu-ask-files{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0 0}#keduAsk .kedu-chat-bubble .kedu-ask-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border:0;border-radius:6px;background:#fff;font-size:11px;line-height:1.3;font-weight:400;max-width:100%;white-space:normal;overflow-wrap:anywhere}
#keduAsk .kedu-chat-speaker{display:flex;align-items:center;gap:10px;min-height:30px;margin:0 0 -1px;color:#242632;font-size:12px}#keduAsk .kedu-chat-speaker strong{font-weight:700}#keduAsk .kedu-chat-avatar{display:inline-grid;place-items:center;width:31px;height:31px;flex:none;border-radius:50%;background:var(--chat-purple);color:#fff;font-size:20px;font-weight:500}#keduAsk .kedu-chat-speaker time{color:#a3a4ad;font-size:10px;margin-left:0}#keduAsk .kedu-chat-answer{padding-left:43px;color:#272b35;font-size:14px;line-height:1.6;min-width:0}#keduAsk .kedu-chat-answer h3{margin:0 0 12px;color:#11131c;font-size:25px;line-height:1.25;letter-spacing:-.6px;font-weight:700}#keduAsk .kedu-chat-answer h4{margin:22px 0 8px;color:#141821;font-size:16px;font-weight:700;line-height:1.4}#keduAsk .kedu-chat-answer p{margin:8px 0;line-height:1.6}#keduAsk .kedu-chat-answer ul,#keduAsk .kedu-chat-answer ol{padding-left:20px}#keduAsk .kedu-chat-answer li{margin:6px 0}#keduAsk .kedu-chat-teaching{margin-top:18px}#keduAsk .kedu-chat-teaching>h4:first-child{margin-top:0}#keduAsk .kedu-chat-answer pre{white-space:pre;max-width:100%;overflow:auto;padding:14px;border:1px solid #e7e3ed;border-radius:10px;background:#f8f7fb;font-size:12px}#keduAsk .kedu-chat-answer code{font-family:ui-monospace,monospace;background:#f4f1f9;border-radius:4px;padding:1px 3px}#keduAsk .kedu-chat-answer pre code{padding:0;background:none}
#keduAsk .kedu-chat-objectives{display:flex;align-items:flex-start;gap:10px;padding:11px 12px;border:0;border-radius:8px;background:#f5efff;color:#2a2735;font-size:12px;line-height:1.5;margin:0 0 20px}#keduAsk .kedu-chat-objectives>.kedu-ui-icon{color:#7c3aed;width:20px;height:20px}#keduAsk .kedu-chat-objectives strong{font-weight:700}
#keduAsk .kedu-chat-revision{margin:18px 0 12px;border:1px solid #e9e9ee;border-radius:9px;background:#fff}#keduAsk .kedu-chat-revision>summary{display:flex;align-items:center;gap:10px;list-style:none;min-height:42px;padding:10px 12px;font-size:12px;color:#343946;cursor:pointer}#keduAsk .kedu-chat-revision>summary::-webkit-details-marker{display:none}#keduAsk .kedu-chat-revision>summary>span{margin-left:auto;font-size:19px;line-height:1;transition:transform .15s}#keduAsk .kedu-chat-revision[open]>summary>span{transform:rotate(180deg)}#keduAsk .kedu-chat-revision>div{padding:0 14px 12px;border-top:1px solid #f0edf5}
#keduAsk .kedu-comprehension{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:14px 0 0;padding:12px;border:1px solid #e9e7f0;border-radius:10px;background:#f8f6fd;min-width:0}#keduAsk .kedu-comprehension legend{float:left;display:flex;align-items:center;gap:8px;width:100%;grid-column:1 / -1;margin:0 0 2px;padding:0;color:#6929dc;font-size:12px;font-weight:600;line-height:1.5}#keduAsk .kedu-comprehension legend:before{content:'?';display:grid;place-items:center;width:21px;height:21px;flex:none;border-radius:50%;background:#7c3aed;color:#fff;font-size:13px;font-weight:700}#keduAsk .kedu-comprehension>p{grid-column:1 / -1;margin:0 0 2px;color:#1b2030;font-size:13px;font-weight:600;line-height:1.45}#keduAsk .kedu-comprehension button{display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;min-width:0;min-height:36px;margin:0;padding:8px 10px;background:#fff;border:1px solid #eceaf1;border-radius:7px;color:#303643;font-size:12px;font-weight:400;line-height:1.4;text-align:left;white-space:normal}#keduAsk .kedu-comprehension button:before{content:'';display:block;width:14px;height:14px;flex:none;border:1px solid #a5a6b1;border-radius:50%;background:#fff}#keduAsk .kedu-comprehension button[aria-pressed=true]:before{background:#7c3aed;border-color:#7c3aed;box-shadow:inset 0 0 0 3px white}#keduAsk .kedu-comprehension button:hover{border-color:#c9b8e4}#keduAsk .kedu-comprehension [data-check-feedback]{font-size:12px;font-weight:400;color:#635179}#keduAsk .kedu-comprehension [data-check-feedback]:empty{display:none}
#keduAsk .kedu-chat-reply-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0 0}#keduAsk .kedu-chat-reply-actions button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:32px;padding:6px 10px;border:1px solid #e6e6ec;border-radius:7px;background:#fff;color:#38404d;font-size:11px;font-weight:400;line-height:1.3}#keduAsk .kedu-chat-reply-actions button>.kedu-ui-icon{width:16px;height:16px}#keduAsk .kedu-chat-reply-actions .kedu-chat-pdf{color:#fff;border-color:#7c3aed;background:#7c3aed;padding:7px 12px}#keduAsk .kedu-chat-reply-actions .kedu-chat-pdf:hover{background:#6d28d9}#keduAsk .kedu-chat-answer .kedu-chat-pdf-note{margin:4px 0 0 190px;color:#8b8c99;font-size:10px;line-height:1.4}#keduAsk .kedu-chat-sources{margin-top:12px;font-size:12px;color:#6d617c}#keduAsk .kedu-chat-sources summary{cursor:pointer}
#keduAsk .kedu-chat-bottom{flex:none;padding:0 0 8px;background:#fff;min-width:0}#keduAsk .kedu-ask-composer{position:static;bottom:auto;z-index:auto;margin:0;padding:8px 10px;background:#fff;border:1px solid #e7e5ed;border-radius:12px;box-shadow:0 0 4px #33234403}#keduAsk .kedu-ask-row{display:flex;align-items:center;gap:9px}#keduAsk .kedu-ask-row textarea{flex:1;min-width:0;width:auto;min-height:30px;max-height:120px;margin:0;padding:5px 4px;border:1px solid transparent;border-radius:5px;background:transparent;color:#303643;outline:none;resize:vertical;font:400 13px/1.5 Arial,Helvetica,sans-serif}#keduAsk .kedu-ask-row textarea:focus-visible{outline:1px solid #d7c9ed;border-color:transparent}#keduAsk .kedu-ask-row textarea::placeholder{color:#9895a3}#keduAsk .kedu-ask-attach{display:inline-flex;align-items:center;justify-content:center;width:24px;height:30px;flex:none;border:0;border-radius:0;background:transparent;color:#566070}#keduAsk .kedu-ask-attach>.kedu-ui-icon{width:19px;height:19px}#keduAsk .kedu-ask-attach input{position:absolute;width:1px;height:1px;opacity:0}#keduAsk .kedu-ask-row>button{display:grid;place-items:center;flex:none;min-width:32px;min-height:32px;width:32px;height:32px;margin:0;padding:7px;border:0;border-radius:50%;background:#7c3aed;color:#fff;box-shadow:none}#keduAsk .kedu-ask-row>button>.kedu-ui-icon{width:20px;height:20px}#keduAsk .kedu-ask-status{margin:4px 3px 0;font-size:11px;line-height:1.5;color:#776389}#keduAsk .kedu-ask-status:empty{display:none}#keduAsk .kedu-chat-composer-help{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:7px 4px 0;padding:0;border:0;font-size:10px;line-height:1.3;color:#8e8b99}#keduAsk .kedu-chat-usage{display:inline-block;margin:4px;font-size:10px;color:#8b8596;line-height:1.4}#keduAsk .kedu-chat-usage>summary{cursor:pointer}#keduAsk .kedu-chat-usage p{margin:5px 0;max-width:520px}#keduAsk .kedu-chat-export{display:block;margin:0 3px 4px;text-align:right;font-size:10px;color:#8b8596}#keduAsk .kedu-chat-export>details{display:inline-block;max-width:100%}#keduAsk .kedu-chat-export summary{cursor:pointer}#keduAsk .kedu-chat-export button{min-height:32px;max-width:100%;font-size:11px;margin:6px 0}
#keduAsk .kedu-ask-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;min-height:200px;margin:0;padding:30px 16px;border:0;background:transparent;text-align:center;color:#686173}#keduAsk .kedu-ask-empty>.kedu-chat-avatar{width:42px;height:42px;margin-bottom:16px}#keduAsk .kedu-ask-empty h3{font-size:22px;margin:0 0 12px;color:#282432}#keduAsk .kedu-ask-empty p{max-width:440px;font-size:14px;line-height:1.6}#keduAsk .kedu-ask-empty button{min-height:38px;margin:4px;font-size:12px}#keduAsk .kedu-ask-pending{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 6px}#keduAsk .kedu-ask-pending:empty{display:none}#keduAsk .kedu-ask-chip{max-width:100%;overflow-wrap:anywhere;white-space:normal;font-size:11px}#keduAsk .kedu-ask-chip button{min-width:28px;min-height:28px}#keduAsk .kedu-chat-thinking{margin:8px 0 0 43px;font-size:13px;color:#8a7b9b}#keduAsk .kedu-chat-thinking:before{content:'';display:inline-block;width:7px;height:7px;margin-right:8px;border-radius:50%;background:#8b5cf6;animation:kedu-chat-pulse 1.4s infinite}#keduAsk .kedu-chat-error{margin:8px 0 0 43px;padding:12px;border:1px solid #e9dbc5;border-radius:9px;background:#fffbf5;font-size:12px;line-height:1.6}#keduAsk .kedu-chat-error button{margin:6px 6px 0 0;min-height:36px;font-size:12px}#keduAsk .kedu-chat-shade{display:none}
@keyframes kedu-chat-pulse{50%{opacity:.35}}@media(prefers-reduced-motion:reduce){#keduAsk .kedu-chat-thinking:before{animation:none}#keduAsk *{scroll-behavior:auto;transition:none}}
@media(max-width:1000px) and (min-width:761px){#keduAsk{grid-template-columns:190px minmax(0,1fr)}#keduAsk .kedu-chat-canvas{padding:0 16px}#keduAsk .kedu-chat-answer{padding-left:39px}#keduAsk .kedu-chat-answer h3{font-size:23px}#keduAsk .kedu-chat-user{max-width:85%}#keduAsk .kedu-chat-answer .kedu-chat-pdf-note{margin-left:0}}
@media(max-width:760px),(max-width:1024px) and (pointer:coarse){#chatPreviewApp:has(#educationPanel:not([style*="display: none"]):not([style*="display:none"]) #keduAsk){padding:0;height:100dvh}#keduAsk{display:block;height:100dvh;min-height:0;border-radius:0;border:0;max-width:none}#keduAsk .kedu-chat-canvas{height:100%;padding:0 14px 0}#keduAsk .kedu-chat-mobile-brand{display:flex;align-items:center;justify-content:center;position:relative;min-height:58px;flex:none}#keduAsk .kedu-chat-mobile-brand>[data-ask-menu]{position:absolute;left:0;top:11px;display:grid;place-items:center;width:36px;height:36px;padding:8px;border:0;border-radius:6px;background:transparent;color:#354052}#keduAsk .kedu-chat-mobile-brand .kedu-chat-logo{width:28px;height:28px;font-size:20px;border-radius:7px}#keduAsk .kedu-chat-mobile-brand .kedu-chat-brand{gap:8px}#keduAsk .kedu-chat-mobile-brand .kedu-chat-brand strong{font-size:17px}#keduAsk .kedu-chat-mobile-brand .kedu-chat-brand small{font-size:9px}#keduAsk .kedu-chat-header{min-height:57px;padding:4px 0 12px;border:0}#keduAsk .kedu-chat-header h2{font-size:21px;margin-bottom:3px;letter-spacing:-.3px}#keduAsk .kedu-chat-header p{font-size:12px}#keduAsk .kedu-chat-profile{display:none}#keduAsk .kedu-ask-layout{height:calc(100% - 115px)}#keduAsk .kedu-ask-thread{gap:18px;padding:8px 0 16px}#keduAsk .kedu-chat-user{max-width:92%}#keduAsk .kedu-chat-bubble{font-size:13px;padding:12px 13px 7px;border-radius:10px}#keduAsk .kedu-chat-bubble time{font-size:9px}#keduAsk .kedu-chat-speaker{gap:8px;min-height:28px;font-size:11px;margin-bottom:0}#keduAsk .kedu-chat-avatar{width:27px;height:27px;font-size:18px}#keduAsk .kedu-chat-speaker time{font-size:9px}#keduAsk .kedu-chat-answer{padding-left:35px;font-size:13px;line-height:1.55}#keduAsk .kedu-chat-answer h3{font-size:19px;letter-spacing:-.4px;line-height:1.3;margin-bottom:12px}#keduAsk .kedu-chat-answer h4{font-size:14px;margin:18px 0 7px}#keduAsk .kedu-chat-answer p{line-height:1.55}#keduAsk .kedu-chat-objectives{font-size:11px;padding:10px;gap:7px;margin-bottom:17px;line-height:1.45}#keduAsk .kedu-chat-objectives>.kedu-ui-icon{width:17px;height:17px}#keduAsk .kedu-chat-teaching{margin-top:16px}#keduAsk .kedu-chat-revision{margin:14px 0 12px}#keduAsk .kedu-chat-revision>summary{font-size:11px;gap:8px;min-height:40px;padding:9px 10px}#keduAsk .kedu-comprehension{grid-template-columns:minmax(0,1fr);padding:10px;gap:6px;margin-top:10px}#keduAsk .kedu-comprehension legend{font-size:11px;gap:6px}#keduAsk .kedu-comprehension legend:before{width:18px;height:18px;font-size:12px}#keduAsk .kedu-comprehension>p{font-size:12px;line-height:1.4}#keduAsk .kedu-comprehension button{font-size:11px;padding:7px 8px;min-height:34px;gap:8px}#keduAsk .kedu-comprehension button:before{width:12px;height:12px}#keduAsk .kedu-chat-reply-actions{gap:6px;margin-top:10px}#keduAsk .kedu-chat-reply-actions button{min-height:30px;padding:5px 8px;font-size:10px}#keduAsk .kedu-chat-reply-actions .kedu-chat-pdf{flex-basis:100%;padding:7px 10px}#keduAsk .kedu-chat-answer .kedu-chat-pdf-note{font-size:9px;margin:5px 0 0;line-height:1.4}#keduAsk .kedu-chat-bottom{padding-bottom:max(8px,env(safe-area-inset-bottom))}#keduAsk .kedu-ask-composer{padding:6px 8px;border-radius:10px}#keduAsk .kedu-ask-row{gap:5px}#keduAsk .kedu-ask-row textarea{font-size:16px;min-height:30px;line-height:1.4;padding:5px 2px;max-height:90px}#keduAsk .kedu-ask-row>button{width:30px;height:30px;min-width:30px;min-height:30px;padding:6px}#keduAsk .kedu-chat-composer-help{font-size:9px;gap:4px;margin-top:7px}#keduAsk .kedu-chat-composer-help>span:last-child{width:100%;text-align:center;margin-top:2px}#keduAsk .kedu-chat-usage,#keduAsk .kedu-chat-export{font-size:9px;margin:3px}#keduAsk .kedu-chat-thinking,#keduAsk .kedu-chat-error{margin-left:35px}#keduAsk .kedu-ask-chats{display:flex;position:absolute;inset:0 auto 0 0;width:min(290px,86%);height:100%;z-index:40;padding:20px 16px;transform:translateX(-105%);visibility:hidden;pointer-events:none;transition:transform .18s ease,visibility .18s;background:#f8f9fb;box-shadow:10px 0 30px #20133110}#keduAsk[data-history-open=true] .kedu-ask-chats{transform:none;visibility:visible;pointer-events:auto}#keduAsk [data-ask-close]{display:grid;place-items:center;width:32px;height:32px;padding:6px;border:0;border-radius:6px;background:transparent;color:#5b6170}#keduAsk[data-history-open=true] .kedu-chat-shade{display:block;position:absolute;inset:0;z-index:35;width:100%;height:100%;padding:0;border:0;border-radius:0;background:#21133235}#keduAsk .kedu-chat-return{padding-bottom:8px}}

#keduAsk .kedu-sidebar-footer{display:flex;align-items:flex-end;gap:4px;margin-top:auto;position:relative}#keduAsk .kedu-sidebar-footer .kedu-chat-return{flex:1;margin-top:0}#keduAsk .kedu-footer-tools>summary{display:grid;place-items:center;width:26px;height:32px;list-style:none;cursor:pointer;color:#727381;font-size:20px}#keduAsk .kedu-footer-tools>summary::-webkit-details-marker{display:none}#keduAsk .kedu-footer-tools>div{position:absolute;left:0;right:0;bottom:42px;padding:12px;border:1px solid #e5e2ed;border-radius:10px;background:#fff;box-shadow:0 4px 22px #34224b14;z-index:45}#keduAsk .kedu-footer-tools .kedu-chat-export{text-align:left;margin:0 0 8px}#keduAsk .kedu-footer-tools .kedu-chat-usage{margin:0}#keduAsk .kedu-chat-bottom{padding-top:10px}


/* Loading and credits remain readable before the tutor request completes. */
#keduAsk.kedu-chat-loading{display:grid;grid-template-columns:1fr;place-items:center;padding:24px}
#keduAsk .kedu-chat-loading-card{width:min(440px,100%);font-size:15px;line-height:1.6;padding:24px}
#keduAsk .kedu-loading-line{display:block;height:14px;margin:16px 0;border-radius:8px;background:#f0eafa;animation:kedu-chat-pulse 1.4s infinite}
#keduAsk .kedu-loading-line:last-child{width:65%}
#keduAsk .kedu-chat-credits{max-width:48%;padding:8px 10px;border:1px solid #e5dbf7;border-radius:20px;background:#f6f0ff;color:#6525bd;font-size:12px;line-height:1.4;text-align:center;white-space:normal;min-height:36px}
#keduAsk .kedu-chat-canvas{min-height:0}
#keduUsage .kedu-usage-events{list-style:none;padding:0}
#keduUsage .kedu-usage-events li{padding:12px 0;border-bottom:1px solid #e9e3f1}
#keduUsage .kedu-usage-events small{display:block;margin-top:4px}
@media(max-width:760px),(max-width:1024px) and (pointer:coarse){#keduAsk .kedu-chat-header{gap:8px}#keduAsk .kedu-chat-credits{font-size:11px}#keduAsk .kedu-chat-loading-card{padding:12px}#keduAsk .kedu-chat-header h2{font-size:20px}}
@media(prefers-reduced-motion:reduce){#keduAsk .kedu-loading-line,#keduAsk .kedu-chat-thinking:before{animation:none}}

/* Result notices survive workspace refreshes and do not interrupt downloads or audio. */
.edu-purchase-notice{position:fixed;z-index:10050;top:max(16px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);display:flex;align-items:flex-start;gap:12px;width:min(460px,calc(100vw - 24px));padding:18px;border:1px solid #c8b5ee;border-radius:14px;background:#fff;box-shadow:0 12px 42px #24113c30;color:#292333;font:14px/1.5 Arial,Helvetica,sans-serif;box-sizing:border-box}
.edu-purchase-notice>div{flex:1;min-width:0}.edu-purchase-notice strong{display:block;font-size:16px}.edu-purchase-notice p{margin:5px 0 0;overflow-wrap:anywhere}.edu-purchase-notice>button{flex:none;display:grid;place-items:center;width:32px;height:32px;border:1px solid #ded6e8;border-radius:8px;background:#fff;color:#53445f;font-size:22px;cursor:pointer}.edu-purchase-notice>button:focus-visible{outline:2px solid #7c3aed;outline-offset:2px}.edu-purchase-result-icon{flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#eee5fc;color:#6524be;font-weight:bold}.edu-purchase-notice[data-outcome=failed]{border-color:#e8b9ba}.edu-purchase-notice[data-outcome=failed] .edu-purchase-result-icon{background:#fff0f0;color:#a62830}.edu-purchase-notice[data-outcome=unconfirmed]{border-color:#e3ce9b}.edu-purchase-notice[data-outcome=unconfirmed] .edu-purchase-result-icon{background:#fff5d9;color:#8a5910}

.kedu-image-tools{margin:18px 0;padding:14px;border:1px solid #e5dcf1;border-radius:12px;background:#fcfaff;min-width:0}.kedu-image-tools>button{margin:5px 5px 5px 0;white-space:normal}.kedu-image-tools>p{font-size:12px;line-height:1.5}.kedu-real-illustration{margin:16px 0;max-width:100%;padding:8px;border:1px solid #e6dfed;border-radius:10px;background:#fff}.kedu-real-illustration img{display:block;width:100%;height:auto;max-height:650px;object-fit:contain;border-radius:6px;min-height:30px}.kedu-real-illustration figcaption{padding:10px 4px;font-size:12px;line-height:1.5;color:#5d526c}.kedu-real-illustration figcaption p{margin:5px 0}#keduAsk .kedu-image-tools h4{margin-top:5px}.edu-action-dialog select{width:100%;padding:10px;border:1px solid #b8b2c9;border-radius:8px;background:#fff;color:#292333}

.kedu-exam-card{margin:16px 0;padding:18px;border:1px solid #d8c7f5;border-radius:16px;background:var(--education-surface,#fff);color:var(--education-text,#172033);overflow-wrap:anywhere}.kedu-exam-card header{display:flex;gap:12px;align-items:center;justify-content:space-between}.kedu-exam-card article{border-top:1px solid #ded8e9;padding:12px 0}.kedu-exam-card textarea,.kedu-exam-dialog input:not([type=checkbox]),.kedu-exam-dialog select{box-sizing:border-box;width:100%;border:1px solid #bdb4ce;border-radius:10px;padding:12px}.kedu-exam-option{display:flex;gap:10px;padding:12px;border:1px solid #d4cde0;border-radius:10px;margin:8px 0}.kedu-exam-dialog{width:min(560px,calc(100vw - 32px));box-sizing:border-box;max-height:90dvh;overflow:auto;border:1px solid #d8c7f5;border-radius:18px;padding:20px}.kedu-exam-dialog::backdrop{background:#17112899}.kedu-exam-dialog [data-exam-open]{display:block;margin:8px 0}.kedu-exam-dialog label{display:block;margin:12px 0}.kedu-exam-card button{white-space:normal;min-height:40px}

/* Approved KEdu Set Exam workspace — desktop and mobile. */
body.exam-workspace-open{overflow:hidden}
dialog.kedu-exam-dialog{box-sizing:border-box;position:fixed;inset:0;display:none;width:min(1240px,calc(100% - 48px));max-width:none;height:min(920px,calc(100dvh - 48px));max-height:none;margin:auto;padding:0;border:1px solid #e8e5f1;border-radius:22px;color:#15172f;background:#fcfbff;font-family:inherit;box-shadow:0 24px 90px #3428672b;overflow:hidden;grid-template-columns:190px minmax(0,1fr)}
dialog.kedu-exam-dialog[open]{display:grid}.kedu-exam-dialog::backdrop{background:#eeeaf8eb;backdrop-filter:blur(5px)}
.kedu-exam-dialog *{box-sizing:border-box}.kedu-exam-dialog [hidden]{display:none!important}.kedu-exam-dialog button{font:inherit;cursor:pointer;min-height:42px}.kedu-exam-dialog button:disabled{cursor:wait;opacity:.6}.kedu-exam-dialog :focus-visible{outline:3px solid #a78bfa;outline-offset:3px}.exam-sidebar{background:#f7f6fc;padding:28px 12px;border-right:1px solid #eeecf5}.exam-brand{display:flex;gap:10px;align-items:center;color:#17152a}.exam-brand>span{display:grid;place-items:center;width:40px;height:40px;flex-shrink:0;background:linear-gradient(135deg,#a348f5,#6335e9);color:white;border-radius:10px;font-size:28px;font-weight:700}.exam-brand strong{font-size:21px;line-height:1.2}.exam-brand small{display:block;color:#6f7287;font-size:10px;margin-top:3px}.exam-sidebar .exam-brand{padding:0 8px}.exam-sidebar nav{display:grid;gap:8px;margin-top:30px}.exam-sidebar nav button{border:0;border-radius:10px;background:transparent;color:#32384f;text-align:left;padding:10px 12px;display:flex;gap:12px;align-items:center}.exam-sidebar nav button.is-active{background:#ece5ff;color:#6028df;font-weight:600}.exam-main{padding:28px;overflow:auto;min-width:0;overscroll-behavior:contain}.exam-topline{display:flex;align-items:center;justify-content:space-between;gap:12px}.exam-topline>button:first-child,.exam-library-heading button{background:none;border:0;color:#464177;padding:0}.exam-credit{border:1px solid #e8e0fb;border-radius:28px;padding:8px 16px;background:#f2edff;color:#6533bd;font-size:13px!important;max-width:58%}.exam-heading{margin:24px 0}.kedu-exam-dialog .exam-heading h2{font-size:34px;line-height:1.15;margin:0 0 10px;font-weight:750;letter-spacing:-.8px}.exam-heading p{color:#64677b;margin:0;font-size:16px}.exam-builder{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:16px}.exam-panel{border:1px solid #e6e3f1;border-radius:16px;background:#fff;padding:20px}.exam-settings fieldset{padding:0;border:0;margin:0 0 24px;min-width:0}.exam-settings legend{font-weight:650;font-size:15px;margin-bottom:12px}.exam-types{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.kedu-exam-dialog label.exam-type{position:relative;display:block;margin:0;min-width:0;cursor:pointer}.exam-type input,.exam-difficulty input{position:absolute;opacity:0;width:1px;height:1px}.exam-type-body{position:relative;display:flex;min-height:132px;flex-direction:column;justify-content:center;align-items:center;text-align:center;border:1px solid #e0ddec;border-radius:10px;padding:15px 5px;gap:8px}.exam-type-icon{font-size:30px;line-height:1;color:#555076}.exam-type strong{font-size:13px}.exam-type small{font-size:11px;color:#666480;line-height:1.4}.exam-type input:checked+.exam-type-body{border-color:#7c3aed;background:#f3eeff;color:#5422c2}.exam-check{position:absolute;right:7px;top:7px;border-radius:50%;width:17px;height:17px;line-height:17px;font-size:11px;background:#7135e8;color:#fff;display:none}.exam-type input:checked+.exam-type-body .exam-check{display:block}.exam-type input:focus-visible+.exam-type-body,.exam-difficulty input:focus-visible+span{outline:3px solid #a78bfa;outline-offset:3px}.kedu-exam-dialog label.exam-field{display:flex;flex-direction:column;gap:10px;font-size:14px;font-weight:600;margin:0 0 24px}.exam-field input,.exam-field select{width:100%;min-width:0;background:#fff;color:#28243f;border:1px solid #dcd7eb;border-radius:9px;padding:12px;font:inherit;font-weight:400;min-height:44px}.exam-difficulty{display:flex;border:1px solid #e4deef;border-radius:9px;padding:3px;background:#faf9fd}.exam-difficulty label{position:relative;flex:1;cursor:pointer;margin:0!important}.exam-difficulty span{display:block;text-align:center;padding:10px 2px;border-radius:7px;font-size:12px;color:#5b5676}.exam-difficulty input:checked+span{background:#eae1ff;color:#5822cb;font-weight:600}.exam-controls{display:grid;grid-template-columns:1fr 1fr;gap:18px}.exam-stepper{display:flex;border:1px solid #dcd7eb;border-radius:9px;align-items:center;padding:3px;min-width:0}.exam-stepper button{background:#f4f1fa;color:#625a80;border:0;border-radius:7px;font-size:22px!important;min-height:34px;width:34px;flex-shrink:0}.exam-stepper input{appearance:textfield;-moz-appearance:textfield;border:0;padding:4px;text-align:center;min-height:34px}.exam-stepper input::-webkit-inner-spin-button{appearance:none}.exam-learn{display:flex;gap:12px;padding:16px;border-radius:12px;background:#f3edff;color:#6025c6}.exam-learn>span{font-size:28px}.exam-learn strong{font-size:14px}.exam-learn p{font-size:12px;line-height:1.6;margin:6px 0 0;color:#72658b}.kedu-exam-dialog h3{margin:0;font-size:18px}.exam-summary ul{list-style:none;padding:12px 0 24px;margin:0;display:grid;gap:22px;color:#514c6c;font-size:14px}.exam-summary li{display:flex;gap:12px}.exam-cost{border-top:1px solid #e7e0f0;padding-top:24px;display:flex;justify-content:space-between;gap:8px;font-size:14px}.exam-summary p{font-size:12px;line-height:1.6;color:#736984;margin:8px 0 22px}.kedu-exam-dialog label.exam-confirm{display:flex;align-items:flex-start;gap:9px;margin:20px 0;font-size:12px;line-height:1.5}.exam-confirm input{accent-color:#7836e8;width:18px;height:18px;margin:0;flex-shrink:0}.exam-confirm [data-exam-confirm-detail]{font-size:11px}.kedu-exam-dialog button.exam-create{width:100%;border:0;border-radius:9px;padding:14px 8px;background:linear-gradient(110deg,#8038ee,#6531e9);color:#fff;font-weight:600;font-size:14px;box-shadow:0 4px 12px #7c3aed16}.exam-summary p.exam-marking-note{margin-top:25px;margin-bottom:0;font-size:11px}.exam-summary [data-exam-error]:empty{display:none}.exam-summary [data-exam-error]{color:#9b3434}.exam-continue{margin-top:16px}.exam-library-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.exam-library-heading button{font-size:12px;color:#6728da}.exam-saved-row{width:100%;display:flex;align-items:center;gap:12px;text-align:left;padding:14px;border:1px solid #ebe5f2;border-radius:11px;background:#fff;color:#29243f;margin-top:10px}.exam-saved-row>span:nth-child(2){min-width:0;flex:1}.exam-saved-row strong{display:block;font-size:13px;overflow-wrap:anywhere}.exam-saved-row small{display:block;color:#777087;font-size:11px;margin-top:5px}.exam-saved-icon{font-size:27px}.exam-saved-action{font-size:12px;background:#f2ecff;color:#6530cb;padding:10px;border-radius:8px}.exam-empty{font-size:13px;color:#787084;line-height:1.6}.exam-service-note{margin-top:16px;font-size:12px;color:#746b84}.exam-service-note p{line-height:1.6}.exam-mobile-brand{display:none}
@media(max-width:1100px){.exam-builder{grid-template-columns:minmax(0,1fr) 235px}.exam-main{padding:22px}.exam-panel{padding:16px}.exam-types{gap:7px}.exam-type small{font-size:10px}}
@media(max-width:850px){dialog.kedu-exam-dialog{width:100%;height:100dvh;border-radius:0;grid-template-columns:1fr;border:0}.exam-sidebar{display:none}.exam-main{padding:20px;position:relative}.exam-mobile-brand{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:24px}.exam-mobile-brand>button{border:0;background:none;color:#514467;font-size:22px}.exam-mobile-brand .exam-brand>span{width:34px;height:34px;font-size:24px}.exam-mobile-brand .exam-brand strong{font-size:18px}.exam-topline{flex-wrap:wrap;margin-bottom:20px}.exam-credit{max-width:100%;font-size:11px!important;min-height:34px!important;padding:6px 12px}.exam-topline>button:first-child{font-size:12px}.kedu-exam-dialog .exam-heading h2{font-size:28px}.exam-heading{margin:0 0 24px}.exam-heading p{font-size:14px}.exam-builder{grid-template-columns:1fr}.exam-types{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.exam-type-body{min-height:116px}.exam-type strong{font-size:14px}.exam-type small{font-size:12px}.exam-settings{padding:16px}.exam-summary ul,.exam-summary h3{display:none}.exam-summary{padding:16px}.exam-cost{border:0;padding-top:0}.exam-summary p.exam-marking-note{margin-top:16px}.exam-controls{gap:12px}.exam-library-heading h3{font-size:16px}.exam-saved-row{flex-wrap:wrap}.exam-saved-action{font-size:11px}.exam-menu-open .exam-sidebar{display:block;position:absolute;top:76px;right:20px;z-index:5;border:1px solid #e7deef;border-radius:14px;box-shadow:0 12px 30px #25164522;width:220px;padding:12px}.exam-menu-open .exam-sidebar>.exam-brand{display:none}.exam-menu-open .exam-sidebar nav{margin:0}}
@media(prefers-reduced-motion:reduce){.kedu-exam-dialog *{scroll-behavior:auto!important}}
.exam-type-icon svg{width:32px;height:32px}.exam-sidebar svg{flex-shrink:0}.exam-learn>span svg{width:26px;height:26px}.exam-summary li svg{flex-shrink:0;width:19px;height:19px}.exam-saved-icon svg{width:28px;height:28px}
.exam-sidebar nav button{white-space:nowrap;font-size:14px}.kedu-exam-dialog .exam-stepper input{border:0;box-shadow:none;background:transparent;border-radius:0}.kedu-exam-dialog .exam-stepper:focus-within{outline:2px solid #a78bfa;outline-offset:2px}
.exam-saved-item{display:flex;gap:10px;align-items:center}.exam-saved-item .exam-saved-row{flex:1;min-width:0}.kedu-exam-dialog button.exam-repeat{border:0;border-radius:9px;background:#f0eaff;color:#632ace;padding:10px;font-size:12px;white-space:nowrap;margin-top:10px}
@media(max-width:450px){.exam-saved-item{flex-wrap:wrap}.exam-saved-item .exam-saved-row{flex-basis:100%}.kedu-exam-dialog button.exam-repeat{margin-top:0}}

/* KEdu approved exam-taking screens */
body.exam-player-open{overflow:hidden}dialog.kedu-exam-player{box-sizing:border-box;position:fixed;inset:0;width:min(1480px,calc(100% - 32px));height:calc(100dvh - 32px);max-width:none;max-height:none;margin:auto;padding:0;border:1px solid #e5e2ef;border-radius:20px;background:#f8f7fd;color:#19182d;font-family:inherit;overflow:hidden;box-shadow:0 24px 90px #35235e28}.kedu-exam-player::backdrop{background:#eae6f5ed;backdrop-filter:blur(5px)}.kedu-exam-player *{box-sizing:border-box}.kedu-exam-player [hidden]{display:none!important}.kedu-exam-player button,.kedu-exam-player input,.kedu-exam-player textarea{font:inherit}.kedu-exam-player button{cursor:pointer;min-height:42px}.kedu-exam-player button:disabled{cursor:default;opacity:.65}.kedu-exam-player :focus-visible{outline:3px solid #ac83ff;outline-offset:3px}.player-header{display:flex;align-items:center;gap:18px;padding:20px 24px;background:#fff;border-bottom:1px solid #e8e3f3;min-height:86px}.player-header .exam-brand{flex-shrink:0}.player-header h2{font-size:18px;margin:0}.player-back{background:none;border:0;color:#534676;font-size:12px!important;white-space:nowrap}.player-tag{display:inline-flex;align-items:center;padding:8px 12px;background:#f1eaff;color:#6231b4;border-radius:8px;font-size:11px;line-height:1.4;overflow-wrap:anywhere}.player-header-timer{color:#7034db;font-size:13px;font-weight:600;margin-left:auto;white-space:nowrap}.player-credit{border:0;background:none;color:#5e5375;font-size:11px!important;max-width:190px}.player-scroll{height:calc(100% - 86px);overflow:auto;overscroll-behavior:contain;padding:24px}.player-mobile-heading{display:flex;justify-content:space-between;gap:12px;margin-bottom:12px;color:#50466c;font-size:13px}.player-mobile-progress{display:none}.player-status{margin:0;color:#963d44;font-size:13px;line-height:1.6}.player-status:not(:empty){padding:14px;border:1px solid #eac7cc;background:#fff5f5;border-radius:10px;margin-bottom:16px}.player-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:18px;align-items:start}.player-layout.is-cbt{grid-template-columns:170px minmax(0,1fr) 245px}.player-layout.is-cbt:not(:has(.player-nav)){grid-template-columns:minmax(0,1fr) 245px}.player-main,.player-aside{min-width:0}.player-aside{display:grid;gap:16px}.player-panel{padding:22px;background:#fff;border:1px solid #e5e0ef;border-radius:14px;min-width:0}.player-panel h2{font-size:23px;line-height:1.4;margin:20px 0 24px;overflow-wrap:anywhere}.player-panel h3{font-size:15px;margin:0 0 14px}.player-panel h4{font-size:13px;margin:16px 0 8px}.player-panel p{font-size:13px;line-height:1.65;color:#5d536e}.player-panel small{font-size:11px;line-height:1.6;color:#80758e}.player-question{padding:26px}.player-numbers{display:grid;gap:10px}.player-numbers button{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 12px;border:1px solid #e8e3f1;border-radius:9px;background:#faf9fd;color:#554d69;font-size:13px}.player-numbers button small{font-size:12px}.player-numbers button.is-current{border-color:#9b6af7;background:#f1e9ff;color:#6d2cda;opacity:1}.player-numbers button.is-correct small{color:#12854d}.player-numbers button.to-revise small{color:#c77a16}.player-nav>small{display:block;margin-top:20px}.player-progress-line{height:7px;background:#eae7f5;border-radius:12px;overflow:hidden;margin:14px 0 20px}.player-progress-line>span{display:block;height:100%;background:linear-gradient(90deg,#a45bff,#6924ea);border-radius:inherit}.player-options{display:grid;gap:12px;margin-bottom:20px}.player-option{position:relative;display:flex;align-items:center;gap:14px;min-height:58px;padding:12px 16px;border:1px solid #e2dced;border-radius:11px;background:#fbfaff;font-size:14px;line-height:1.5;margin:0!important;overflow-wrap:anywhere}.player-option input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%;margin:0}.player-option:focus-within{outline:3px solid #b893f7}.player-option strong{flex:1;font-weight:500}.player-letter{display:grid;place-items:center;width:33px;height:33px;border:1px solid #d8cfeb;border-radius:50%;background:#fff;flex-shrink:0}.player-option small{font-size:10px}.player-option.is-correct{border-color:#a4dabc;background:#edf9f1;color:#125b39}.player-option.is-incorrect{border-color:#f0aeb7;background:#fff0f2;color:#a12c42}.player-feedback{padding:20px;border:1px solid #edd5dc;border-radius:12px;background:#fff4f6}.player-feedback.is-correct{border-color:#b4ddc5;background:#f0faf4}.player-feedback h3{color:#983348;font-size:16px}.player-feedback.is-correct h3{color:#19693b}.player-correct-answer{background:#e5f5eb;padding:12px;color:#185d3a!important;border-radius:8px}.player-explanation{white-space:pre-wrap;font-size:14px;line-height:1.8;overflow-wrap:anywhere}.player-memory{display:flex;gap:12px;margin:20px 0;padding:16px;background:#eee6ff;border-radius:10px;color:#6630bd;font-size:13px}.player-memory svg{flex-shrink:0}.player-memory p{margin:5px 0 0;font-size:12px}.kedu-exam-player button.player-primary{background:linear-gradient(110deg,#8134f1,#6628e8);border:0;border-radius:9px;padding:13px 20px;min-height:46px;color:#fff;font-weight:600;font-size:13px}.kedu-exam-player button.player-secondary{background:#fff;border:1px solid #cfc2e6;border-radius:9px;padding:11px 16px;color:#4d3e66;font-size:12px}.player-feedback>.player-primary{display:block;margin-left:auto}.player-small{font-size:11px!important;line-height:1.6;color:#82758d!important}.player-revision button{border:0;background:#f2ebff;color:#6633b7;display:block;width:100%;text-align:left;font-size:11px;padding:10px;margin:8px 0;border-radius:7px;overflow-wrap:anywhere}.player-answer-form>.player-primary{margin-top:16px;margin-right:10px}.player-answer-form>.player-secondary{margin-top:12px}.player-answer-label{display:block;font-size:13px;font-weight:600;line-height:1.5}.player-answer-label textarea{display:block;width:100%;min-width:0;resize:vertical;padding:17px;border:1px solid #d7cee6;border-radius:9px;outline-offset:2px;background:#fff;color:#231d32;line-height:1.8;font-size:14px;margin-top:10px;min-height:140px}.is-theory .player-answer-label textarea{border-radius:0 0 9px 9px;min-height:380px;margin-top:0}.player-editor-footer{display:flex;justify-content:space-between;gap:10px;font-size:10px;padding:12px 0;color:#7a6d89}.player-toolbar{display:flex;align-items:center;gap:4px;border:1px solid #d7cee6;border-bottom:0;padding:6px;border-radius:9px 9px 0 0;background:#fcfaff}.player-toolbar button{border:0;background:transparent;min-width:32px;color:#58436d;font-size:12px;min-height:34px}.player-toolbar>span{flex:1}.player-viva-turn{margin-bottom:24px}.player-examiner{display:flex;gap:12px;align-items:flex-start;margin-bottom:20px}.player-avatar{display:grid;place-items:center;flex-shrink:0;width:35px;height:35px;border-radius:50%;background:#7b36eb;color:white;font-weight:700}.player-examiner>div{flex:1;min-width:0}.player-examiner p,.player-examiner h3{padding:14px;background:#f1edfa;border-radius:0 12px 12px 12px;font-weight:500;color:#2c2440;margin:8px 0 0;line-height:1.7;font-size:14px;overflow-wrap:anywhere}.player-student{padding:16px;background:#eee4ff;border-radius:12px 0 12px 12px;margin-left:16%;font-size:14px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}.player-student small{display:block;text-align:right;margin-top:8px}.player-viva-feedback{border:1px solid #d8e8dd;border-radius:12px;padding:20px;margin:24px 0}.player-viva-feedback header{display:flex;justify-content:space-between;gap:10px;background:#eff9f2;padding:12px;border-radius:8px}.player-viva-feedback header h3{margin:0;color:#286a43}.player-viva-feedback dl{display:grid;grid-template-columns:110px minmax(0,1fr);gap:14px;font-size:12px;line-height:1.7}.player-viva-feedback dt{font-weight:600;color:#6e4a88}.player-viva-feedback dd{margin:0;overflow-wrap:anywhere}.player-station-strip{margin-bottom:20px}.player-station-strip .player-numbers{display:flex;gap:12px;overflow:auto}.player-station-strip button{min-width:44px;border-radius:50%;width:44px;height:44px;justify-content:center}.player-station-strip small{display:none}.player-station-brief{padding:22px;background:#f2ecff;border-radius:12px;margin:20px 0 24px}.player-station-brief p{font-size:14px;color:#3c3154}.player-station-brief small{display:block;margin:24px 0 10px}.player-clock-panel{text-align:center}.player-clock{--remaining:100%;width:172px;height:172px;margin:auto;border-radius:50%;background:conic-gradient(#813af1 var(--remaining),#e7e2f0 0);display:flex;position:relative;flex-direction:column;align-items:center;justify-content:center;padding:24px;isolation:isolate}.player-clock:before{content:"";position:absolute;inset:10px;background:#fff;border-radius:50%;z-index:-1}.player-clock strong{font-size:32px}.player-clock small{font-size:12px;max-width:120px}.player-help ol,.player-structure ol{padding-left:20px;color:#64458c;font-size:13px;line-height:2.4}.player-help li p{line-height:1.6;font-size:12px;margin:4px 0 18px}.player-structure summary{font-size:14px;font-weight:600;cursor:pointer}.player-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:20px;font-size:11px;color:#82758f;line-height:1.6}.player-footer>span{max-width:70%}.player-review-result{margin:16px 0;padding:16px;background:#faf7ff;border:1px solid #e5dcef;border-radius:10px}.player-review-result summary{font-size:13px;font-weight:600;line-height:1.6;cursor:pointer}.player-ready{min-height:330px}.player-results h2{font-size:30px}
@media(max-width:1180px){.player-header{flex-wrap:wrap;gap:10px;padding:16px}.player-header .player-tag,.player-save-top{display:none}.player-header h2{font-size:16px}.player-scroll{height:calc(100% - 108px);padding:16px}.player-layout.is-cbt{grid-template-columns:130px minmax(0,1fr) 210px}.player-panel{padding:16px}.player-layout{grid-template-columns:minmax(0,1fr) 230px;gap:14px}.player-option{gap:10px;padding:10px;font-size:13px}}
@media(max-width:850px){dialog.kedu-exam-player{width:100%;height:100dvh;border:0;border-radius:0}.player-header{padding:14px 16px;min-height:110px;gap:9px}.player-header .exam-brand{margin-right:auto}.player-header .exam-brand>span{width:32px;height:32px;font-size:24px}.player-header .exam-brand strong{font-size:17px}.player-header .exam-brand small{font-size:9px}.player-credit{order:1;font-size:10px!important;max-width:170px}.player-back{order:2;padding:0}.player-header h2{order:3;margin-left:auto;font-size:14px}.player-header-timer{order:4;flex-basis:100%;text-align:right;font-size:12px}.player-scroll{height:calc(100% - 130px);padding:14px}.player-mobile-heading{font-size:12px}.player-mobile-progress{display:block}.player-layout,.player-layout.is-cbt,.player-layout.is-cbt:not(:has(.player-nav)){display:flex;flex-direction:column;gap:14px}.player-main,.player-aside{width:100%}.player-nav{display:none}.player-aside{grid-template-columns:1fr}.player-question{padding:16px}.player-panel h2{font-size:19px;margin:14px 0 20px}.player-tag{font-size:10px;padding:7px 9px}.player-option{font-size:12px;flex-wrap:wrap}.player-option small{margin-left:auto;font-size:9px}.player-feedback{padding:14px}.player-feedback h3{font-size:14px;line-height:1.6}.player-explanation{font-size:13px;line-height:1.8}.player-memory{padding:12px}.player-primary,.player-answer-form>.player-secondary{width:100%;margin-right:0!important}.player-feedback>.player-primary{margin-top:16px}.player-footer{align-items:flex-start;flex-direction:column}.player-footer>span{max-width:100%}.player-footer button{width:100%}.player-student{margin-left:12%;font-size:13px}.player-viva-feedback{padding:12px}.player-viva-feedback dl{grid-template-columns:90px minmax(0,1fr);gap:10px;font-size:11px}.player-viva-feedback header{font-size:12px}.is-station .player-aside{order:-1;display:contents}.is-station .player-clock-panel{order:-1;display:flex;align-items:center;justify-content:space-around;gap:14px;width:100%}.player-clock{width:90px;height:90px;padding:12px;margin:0;flex-shrink:0}.player-clock:before{inset:6px}.player-clock strong{font-size:20px}.player-clock small{font-size:8px}.player-clock-panel p{font-size:12px}.player-help{width:100%}.player-editor-footer{font-size:9px;flex-wrap:wrap}.player-toolbar{flex-wrap:wrap}.is-theory .player-answer-label textarea{min-height:330px}.player-progress{display:none}.player-revision{font-size:12px}.player-station-strip .player-numbers{gap:8px}.player-station-strip button{width:34px;height:34px;min-width:34px;min-height:34px}.player-structure ol{font-size:12px}.player-answer-label textarea{font-size:16px}.player-status{font-size:12px}}
@media(prefers-reduced-motion:reduce){.kedu-exam-player *{scroll-behavior:auto!important}}
dialog.kedu-exam-player[open]{display:grid;grid-template-rows:auto minmax(0,1fr)}.kedu-exam-player .player-scroll{height:auto;min-height:0}
.kedu-exam-player .player-answer-label textarea{font-weight:400}.player-side-actions{display:grid;gap:10px}.is-theory .player-progress{display:none}
@media(min-width:851px){.is-theory .player-answer-form>.player-primary,.is-theory .player-answer-form>.player-secondary{display:none}}
@media(max-width:850px){.player-side-actions{display:none}}
.kedu-exam-player .player-toolbar button{padding:6px 10px;border-radius:6px}.kedu-exam-player .player-toolbar button:hover{background:#eee5ff}
@media(max-width:850px){.kedu-exam-player .player-header{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"brand credit" "back mode" "timer timer";gap:8px 12px}.player-header .exam-brand{grid-area:brand}.player-header .player-credit{grid-area:credit;max-width:150px}.player-header .player-back{grid-area:back;justify-self:start}.player-header h2{grid-area:mode;text-align:right;margin:0}.player-header .player-header-timer{grid-area:timer;margin:0}}

/* Approved KEdu credits dashboard: desktop table and responsive mobile activity cards. */
body.cu-open{overflow:hidden}
dialog.cu-dashboard[open]{display:grid;grid-template-columns:220px minmax(0,1fr);position:fixed;inset:0;box-sizing:border-box;width:min(1440px,calc(100% - 32px));height:calc(100dvh - 32px);max-width:none;max-height:none;margin:auto;padding:0;border:1px solid #eeebf7;border-radius:23px;background:#fff;color:#11113c;font-family:Arial,Helvetica,sans-serif;overflow:hidden;box-shadow:0 12px 55px #48338212}
.cu-dashboard::backdrop{background:#f1effbe6;backdrop-filter:blur(5px)}
.cu-dashboard *{box-sizing:border-box}.cu-dashboard [hidden]{display:none!important}.cu-dashboard button,.cu-dashboard select{font:inherit}.cu-dashboard button{cursor:pointer}.cu-dashboard button:disabled{opacity:.55;cursor:wait}.cu-dashboard svg{display:inline-block;vertical-align:middle;width:22px;height:22px;flex-shrink:0}.cu-dashboard :focus-visible{outline:3px solid #b697f9;outline-offset:3px}.cu-dashboard .cu-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.cu-sidebar{display:flex;flex-direction:column;gap:32px;background:linear-gradient(130deg,#faf9ff,#f7f6fe);border-right:1px solid #f0edf9;padding:25px 14px;min-height:0;overflow:auto}.cu-brand{display:flex;align-items:center;gap:9px;white-space:nowrap;color:#151080}.cu-sidebar .cu-brand{padding:0 6px}.cu-logo{display:grid;place-items:center;width:39px;height:43px;font-size:43px;line-height:1;font-weight:900;letter-spacing:-5px;padding-right:5px;background:linear-gradient(125deg,#a77bff 10%,#5020ce 45%,#a17cff 64%,#5122b8 80%);background-clip:text;-webkit-text-fill-color:transparent}.cu-brand>span:last-child{display:grid;gap:3px}.cu-brand strong{font-size:24px;letter-spacing:-.5px}.cu-brand small{font-size:11px;color:#78749b}.cu-sidebar nav{display:grid;gap:5px}.cu-sidebar nav button{display:flex;align-items:center;gap:15px;width:100%;min-height:47px;padding:13px 14px;border:0;border-radius:11px;background:transparent;color:#6c6b95;text-align:left;font-size:13px;line-height:1.4}.cu-sidebar nav button svg{width:22px;height:22px}.cu-sidebar nav button:hover{background:#f0ebfd}.cu-sidebar nav button[aria-current=page]{color:#6021eb;background:#ede7ff;font-weight:600}.cu-upgrade{margin:auto 0 0;padding:16px 15px;background:#eee9fe;border:1px solid #ece6fc;border-radius:14px}.cu-crown{display:inline-grid;place-items:center;width:35px;height:35px;flex-shrink:0;background:#f8f3ff;border-radius:50%;color:#e6a020}.cu-upgrade>.cu-crown{background:none;width:24px;height:24px;display:block;margin-bottom:12px}.cu-upgrade>strong{display:block;font-size:14px;line-height:1.45}.cu-upgrade p{color:#777096;font-size:12px;line-height:1.5;margin:6px 0 14px}.cu-dashboard .cu-primary{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:43px;padding:12px 20px;background:linear-gradient(110deg,#7629f8,#5e20e9);border:1px solid #6e2be7;border-radius:10px;color:#fff;font-size:13px;font-weight:600;box-shadow:0 5px 14px #6b31df17}.cu-dashboard .cu-primary svg{width:21px;height:21px}.cu-upgrade>.cu-primary{width:100%;min-height:38px;font-size:12px;padding:10px}.cu-main{min-width:0;overflow:auto;overscroll-behavior:contain;padding:30px 34px 25px;scrollbar-width:thin}.cu-topline{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 14px}.cu-dashboard .cu-back{display:flex;align-items:center;gap:7px;padding:0;border:0;background:none;color:#20177c;font-size:12px;min-height:25px}.cu-back svg{width:15px;height:15px;color:#7a29f5}.cu-mobile-brand{display:none}.cu-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:25px}.cu-heading h2{margin:0;color:#111035;font-size:31px;font-weight:750;line-height:1.2;letter-spacing:-1px}.cu-heading p{color:#7b749c;margin:8px 0 0;font-size:16px;line-height:1.5}.cu-heading .cu-topup{min-width:173px;min-height:44px;margin-top:-8px;white-space:nowrap}.cu-dashboard #keduUsage{padding:0;margin:0;min-width:0;max-width:none;font-size:13px}.cu-balances{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:15px}.cu-dashboard .cu-balance{display:flex;align-items:center;gap:14px;width:100%;min-width:0;min-height:128px;padding:18px 16px;border:1px solid #ece7fb;border-radius:14px;background:linear-gradient(120deg,#fcfbff,#faf8ff);text-align:left;color:#181344}.cu-balance:hover{border-color:#c8b2fc!important}.cu-balance-icon{display:grid;place-items:center;flex-shrink:0;width:57px;height:57px;border-radius:50%;background:#f0e9ff;color:#7126f1}.cu-balance-icon svg{width:28px;height:28px}.cu-balance-copy{display:grid;gap:9px;min-width:0}.cu-balance-copy>strong{font-size:12px;color:#161044}.cu-balance-copy>span{font-size:11px;color:#6d648d;white-space:nowrap}.cu-balance-copy b{font-size:29px;color:#130f3d;line-height:1;font-weight:750;margin-right:5px}.cu-balance-copy>small{font-size:9px;font-style:italic;line-height:1.4;color:#807399;white-space:normal}.cu-mobile-arrow{display:none}.cu-allowances{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:14px;align-items:start;margin-bottom:17px}.cu-free,.cu-documents{min-width:0;border:1px solid #ece6fb;border-radius:14px;background:linear-gradient(125deg,#f8f5ff,#f5f2ff)}.cu-dashboard summary{cursor:pointer}.cu-free>summary{display:flex;align-items:flex-start;gap:12px;padding:19px 16px;list-style:none;min-height:143px}.cu-free>summary::-webkit-details-marker,.cu-documents>summary::-webkit-details-marker{display:none}.cu-allowance-icon{color:#7c35f0;display:grid;place-items:center;flex-shrink:0;width:32px;height:32px;background:#eee7ff;border-radius:50%}.cu-allowance-icon svg{width:25px;height:25px}.cu-free-body{display:block;flex:1;min-width:0}.cu-free-body>strong{font-size:14px;font-weight:600;line-height:1.6}.cu-free-numbers{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:8px 0 9px;font-size:12px;line-height:1.5;color:#3b2b64}.cu-free-numbers>small{display:flex;align-items:center;gap:5px;color:#6d4ab4;font-size:10px;white-space:nowrap}.cu-free-numbers svg{width:13px;height:13px}.cu-progress{display:block;height:10px;overflow:hidden;border-radius:10px;background:#e6def6}.cu-progress>span{display:block;height:100%;background:linear-gradient(90deg,#8f40ff,#5924df);border-radius:inherit}.cu-free-description{display:block;margin-top:15px;color:#807499;font-size:11px;line-height:1.65}.cu-documents>summary{list-style:none;padding:21px 16px;min-height:143px}.cu-documents summary>span{display:flex;align-items:center;gap:9px;color:#11103d}.cu-documents summary strong{font-size:12px;flex:1;line-height:1.5}.cu-documents summary svg{width:20px;height:20px;color:#7031df}.cu-documents summary svg:last-child{width:14px;height:14px;transition:transform .15s}.cu-documents[open] summary svg:last-child{transform:rotate(180deg)}.cu-documents summary>small{display:block;color:#817496;font-size:11px;line-height:1.65;margin:19px 0 0}.cu-detail-body{padding:5px 16px 16px;border-top:1px solid #e9e0f8;line-height:1.8;color:#73628b;font-size:12px;overflow-wrap:anywhere}.cu-detail-body p{margin:12px 0 0}.cu-detail-body strong{color:#302050}.cu-tabs{display:flex;border-bottom:1px solid #e9e3f4;margin-top:6px}.cu-tabs button{min-width:155px;min-height:45px;border:0;border-bottom:2px solid transparent;background:none;color:#827294;font-size:13px;padding:12px 20px}.cu-tabs button[aria-selected=true]{color:#7127ef;border-bottom-color:#7834ef;font-weight:600}.cu-filters{display:flex;gap:18px;margin:14px 0 17px}.cu-filters label{display:grid;gap:7px;width:205px;color:#89769c;font-size:11px}.cu-filters select{box-sizing:border-box;min-width:0;width:100%;height:38px;padding:8px 12px;border:1px solid #e3dcef;border-radius:8px;color:#292044;background:#fff;font-size:12px;outline-offset:2px}.cu-date-select{position:relative;display:block;min-width:0}.cu-date-select>svg{position:absolute;z-index:1;left:12px;top:10px;width:17px;height:17px;color:#817197;pointer-events:none}.cu-date-select select{padding-left:39px}.cu-table-wrap{border:1px solid #ebe4f6;border-radius:13px;overflow:hidden}.cu-dashboard table{width:100%;border-collapse:collapse;table-layout:fixed;color:#26203f;font-size:12px}.cu-dashboard th{padding:14px 17px;text-align:left;font-weight:400;color:#857097;background:#f7f4fd}.cu-dashboard th:first-child{width:42%}.cu-dashboard th:nth-child(2){width:20%}.cu-dashboard th:nth-child(3){width:18%}.cu-dashboard th:last-child{width:20%}.cu-dashboard td{padding:10px 17px;border-top:1px solid #eee8f7;vertical-align:middle}.cu-dashboard td:first-child{display:flex;align-items:center;gap:16px;min-height:46px}.cu-activity-icon{display:inline-flex;color:#7b2ef6;flex-shrink:0}.cu-activity-icon svg{width:21px;height:21px}.cu-activity-title{font-size:12px;line-height:1.5;overflow-wrap:anywhere}.cu-source{display:block;font-size:9px;color:#96869f;margin-top:2px}.cu-dashboard td time{font-size:11px;color:#8c7699;line-height:1.6}.cu-dashboard td:nth-child(3){white-space:nowrap}.cu-units{display:inline-block;min-width:35px;font-size:12px;color:#32234d}.cu-badge{display:inline-block;vertical-align:middle;padding:4px 8px;min-width:39px;text-align:center;border-radius:8px;background:#f5efff;color:#792df0;font-size:10px;line-height:1.4}.cu-status{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:95px;padding:5px 8px;border-radius:12px;background:#eefaf1;color:#3c9759;white-space:nowrap;font-size:10px}.cu-status svg{width:14px;height:14px}.cu-row-meta{display:none}.cu-dashboard td.cu-empty{display:table-cell!important;text-align:center;padding:30px 16px;color:#8c7b9c}.cu-history-note{display:flex;align-items:center;gap:10px;font-size:10px;color:#8e799f;line-height:1.6;margin:15px 0 18px}.cu-history-note svg{width:15px;height:15px}.cu-plans-banner{display:flex;align-items:center;gap:13px;width:100%;padding:16px 18px;background:linear-gradient(110deg,#f7f1ff,#f1ecff);border:1px solid #ece5ff;border-radius:14px;color:#191044;text-align:left}.cu-plans-banner>span:nth-child(2){display:grid;gap:6px;flex:1}.cu-plans-banner strong{font-size:13px}.cu-plans-banner small{color:#91809f;font-size:10px;line-height:1.6}.cu-plans-banner>svg{width:18px;height:18px;color:#752cf3}.cu-plan-details{border-bottom:1px solid #ede7f7;color:#827294;margin-top:14px;font-size:11px}.cu-plan-details>summary{padding:7px 0}.cu-plan-details .cu-detail-body{border:0;padding-left:0}.cu-dashboard .cu-secondary{min-height:38px;padding:9px 14px;border:1px solid #d8c9ee;background:#faf7ff;border-radius:8px;font-size:12px;color:#6631b5}.cu-loading,.cu-error{padding:40px 16px;text-align:center;color:#817093;line-height:1.8}.cu-loading:before{content:"";display:block;width:32px;height:32px;margin:0 auto 14px;border:3px solid #eee6fc;border-top-color:#7c36f1;border-radius:50%;animation:cu-spin .85s linear infinite}.cu-error p{color:#973f58}.cu-dashboard #keduUsage .edu-learning-home{line-height:1.7}.cu-dashboard #keduUsage .education-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:14px}.cu-dashboard #keduUsage .education-card{border:1px solid #e6ddf3;border-radius:13px;padding:18px}.cu-dashboard #keduUsage .education-primary,.cu-dashboard #keduUsage .education-ghost{border:1px solid #d8c9ef;border-radius:9px;padding:10px 16px;color:#6936b3;background:#f7f2ff;min-height:40px}.cu-dashboard #keduUsage .education-primary{background:#7130eb;color:#fff;border-color:#7130eb}.cu-dashboard #keduUsage [data-education-usage]{margin-bottom:12px}
@keyframes cu-spin{to{transform:rotate(360deg)}}
@media(min-width:761px) and (max-width:1100px){dialog.cu-dashboard[open]{grid-template-columns:185px minmax(0,1fr)}.cu-sidebar{padding:23px 10px}.cu-sidebar nav button{padding:12px 9px;gap:10px;font-size:12px}.cu-main{padding:25px 22px}.cu-balances{gap:10px}.cu-dashboard .cu-balance{padding:15px 12px;gap:10px;min-height:120px}.cu-balance-icon{width:39px;height:39px}.cu-balance-icon svg{width:23px;height:23px}.cu-balance-copy b{font-size:25px}.cu-balance-copy>strong{font-size:11px}.cu-balance-copy>span{font-size:10px}.cu-dashboard td,.cu-dashboard th{padding:12px 10px}.cu-dashboard td:first-child{gap:10px}.cu-status{min-width:0}.cu-status>span{font-size:9px}.cu-allowances{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)}.cu-free-numbers{gap:7px;flex-wrap:wrap}.cu-documents>summary{padding:20px 12px}.cu-heading h2{font-size:29px}}
@media(max-width:760px){dialog.cu-dashboard[open]{display:block;inset:0;width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0;box-shadow:none}.cu-sidebar{display:none}.cu-main{height:100%;padding:20px 16px max(22px,env(safe-area-inset-bottom));overflow:auto}.cu-topline{margin-bottom:16px;min-height:30px}.cu-dashboard .cu-back{font-size:12px;color:#7229ed}.cu-mobile-brand{display:flex;gap:5px}.cu-mobile-brand .cu-logo{width:26px;height:30px;font-size:30px;letter-spacing:-4px}.cu-mobile-brand strong{font-size:18px}.cu-mobile-brand small{font-size:8px}.cu-heading{display:block;margin-bottom:10px}.cu-heading h2{font-size:25px;letter-spacing:-.7px;line-height:1.3}.cu-heading p{font-size:13px;margin:5px 0 14px}.cu-heading .cu-topup{display:flex;width:100%;margin:0;min-height:41px;border-radius:8px;font-size:13px}.cu-balances{display:grid;grid-template-columns:1fr;gap:9px;margin-bottom:10px}.cu-dashboard .cu-balance{min-height:80px;padding:12px 15px;gap:13px;border-radius:11px}.cu-balance-icon{width:37px;height:37px;background:none}.cu-balance-icon svg{width:27px;height:27px}.cu-balance-copy{gap:3px;flex:1}.cu-balance-copy>strong{font-size:11px}.cu-balance-copy b{font-size:26px;margin-right:4px}.cu-balance-copy>span{font-size:10px}.cu-balance-copy>small{font-size:8px;line-height:1.4;font-style:normal}.cu-mobile-arrow{display:block;color:#7f41ee}.cu-mobile-arrow svg{width:14px;height:14px}.cu-allowances{grid-template-columns:1fr;gap:10px;margin-bottom:13px}.cu-free>summary{padding:14px 15px;min-height:90px;gap:10px}.cu-allowance-icon{width:28px;height:28px;background:none}.cu-allowance-icon svg{width:24px;height:24px}.cu-free-body>strong{font-size:12px}.cu-free-numbers{font-size:10px;margin:4px 0 8px;gap:8px}.cu-free-numbers>small{font-size:9px}.cu-progress{height:8px}.cu-free-description{display:none}.cu-documents>summary{padding:13px 15px;min-height:83px}.cu-documents summary>span{gap:11px}.cu-documents summary strong{font-size:12px}.cu-documents summary>small{margin:5px 20px 0 31px;font-size:10px;line-height:1.5}.cu-tabs{margin-top:2px}.cu-tabs button{flex:1;min-width:0;min-height:40px;padding:10px 12px;font-size:12px}.cu-filters{gap:10px;margin:11px 0 12px}.cu-filters label{width:50%;gap:5px;font-size:9px}.cu-filters select{height:34px;padding:6px 8px;font-size:10px}.cu-date-select select{padding-left:29px}.cu-date-select>svg{width:14px;height:14px;left:9px;top:10px}.cu-table-wrap{border:0;border-radius:0;overflow:visible}.cu-dashboard table,.cu-dashboard tbody{display:block;width:100%}.cu-dashboard thead{display:none}.cu-dashboard tbody{display:grid;gap:7px}.cu-dashboard tr{display:flex;align-items:center;width:100%;gap:8px;padding:10px 11px;border:1px solid #e8e1f1;border-radius:9px;min-height:55px}.cu-dashboard td{padding:0;border:0}.cu-dashboard td:first-child{flex:1;min-height:0;gap:11px;min-width:0}.cu-dashboard td:nth-child(2),.cu-dashboard td:nth-child(3){display:none}.cu-dashboard td:last-child{display:block;margin-left:auto;flex-shrink:0}.cu-activity-icon svg{width:19px;height:19px}.cu-activity-title{font-size:10px;line-height:1.5}.cu-row-meta{display:block;color:#94819e;font-size:8px;margin-top:2px;line-height:1.5}.cu-row-meta .cu-badge{padding:1px 5px;min-width:0;font-size:8px}.cu-source{font-size:8px;margin-top:1px}.cu-status{min-width:0;width:20px;height:20px;padding:3px;background:#ecf9f0}.cu-status svg{width:13px;height:13px}.cu-status>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.cu-dashboard td.cu-empty{padding:15px 0;flex:1;font-size:11px}.cu-history-note{font-size:9px;gap:7px;margin:12px 0 15px;align-items:flex-start}.cu-history-note svg{margin-top:1px;width:13px;height:13px}.cu-plans-banner{padding:12px 13px;gap:10px;border-radius:11px}.cu-plans-banner .cu-crown{width:25px;height:25px}.cu-plans-banner .cu-crown svg{width:22px;height:22px}.cu-plans-banner strong{font-size:12px;color:#6726ce}.cu-plans-banner small{display:none}.cu-plans-banner>svg{width:13px;height:13px}.cu-plan-details{font-size:10px}.cu-detail-body{font-size:11px}.cu-dashboard .cu-secondary{font-size:11px}.cu-dashboard #keduUsage .education-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.cu-dashboard *{animation:none!important;scroll-behavior:auto!important}}

/* Keep workspace learning actions within their tracks on narrow screens. */
#educationPanel .edu-workspace-actions button{box-sizing:border-box;min-width:0;overflow-wrap:anywhere}
#educationPanel .edu-workspace-start,#educationPanel .edu-workspace-tools{max-width:100%}
@media(max-width:540px){#educationPanel .edu-workspace-start,#educationPanel .edu-workspace-tools{width:100%}#educationPanel .edu-workspace-start [data-kedu-ask-open]{grid-column:1;grid-row:1}#educationPanel .edu-workspace-start [data-education-upload]{grid-column:2;grid-row:1}#educationPanel .edu-workspace-start button,#educationPanel .edu-workspace-tools button{width:100%}}

/* Approved Learn a topic reading layout. */
#keduTopicTutor.klr-open>[data-topic-load-status],#keduTopicTutor.klr-open>[data-topic-retry],#keduTopicTutor.klr-open>details{display:none!important}
.klr{--reader-font:16px;color:#121c33;max-width:1280px;margin:auto;padding:0 8px 20px;font-family:Inter,system-ui,sans-serif}.klr *{box-sizing:border-box}.klr [hidden]{display:none!important}.klr-breadcrumb{display:flex;gap:12px;align-items:center;padding:0 0 22px;font-size:12px;color:#69748b}.klr-breadcrumb button{border:0;background:none;padding:5px;color:#6d28d9;cursor:pointer}.klr-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;margin-bottom:24px}.klr-heading h1{font-size:clamp(25px,2.3vw,34px);font-weight:750;letter-spacing:-.7px;line-height:1.2;margin:0 0 10px;color:#11182d}.klr-heading p{color:#7b849a;font-size:13px;margin:0;line-height:1.6}.klr-heading p span{margin:0 7px}.klr-actions{display:flex;gap:8px;flex-wrap:wrap;flex-shrink:0}.klr button{cursor:pointer}.klr-actions button,.klr-mobile-actions button{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#fff;border:1px solid #e0e3ef;border-radius:8px;color:#1b2240;padding:11px 14px;font:500 12px/1.4 Inter,system-ui,sans-serif;min-height:42px}.klr-grid{display:grid;grid-template-columns:minmax(0,1fr) 225px;gap:28px}.klr-reading{min-width:0;max-width:820px;font-size:var(--reader-font);line-height:1.75}.klr-reading p{margin:0 0 18px}.klr-reading h2,.klr-reading h4{font-size:21px;line-height:1.4;color:#121b33;margin:27px 0 12px;font-weight:750}.klr-reading ul,.klr-reading ol{padding-left:23px;margin:12px 0 20px}.klr-reading li{margin:7px 0}.klr-objectives{background:#f2edff;border-radius:11px;padding:16px 20px;margin:0 0 10px}.klr-objectives h2{display:flex;align-items:center;gap:9px;font-size:15px;color:#7b2ff0;margin:0 0 10px}.klr-objectives ol{list-style:none;counter-reset:objective;padding:0;margin:0}.klr-objectives li{counter-increment:objective;display:flex;gap:12px;align-items:flex-start;font-size:14px;margin:9px 0;line-height:1.5}.klr-objectives li::before{content:counter(objective);display:grid;place-items:center;min-width:24px;height:24px;border-radius:50%;background:#e7dbff;color:#7c3aed;font-weight:700}.klr-tabs{display:flex;gap:30px;border-bottom:1px solid #e1dfea;margin-bottom:22px;overflow-x:auto}.klr-tabs button{white-space:nowrap;flex-shrink:0;background:none;border:0;border-bottom:3px solid transparent;border-radius:0;padding:14px 2px 11px;color:#64667d;font:500 14px Inter,system-ui,sans-serif;min-height:48px}.klr-tabs button[aria-selected=true]{color:#7c2ef4;border-bottom-color:#7c2ef4;font-weight:650}.klr-section-heading{scroll-margin-top:105px;display:flex;align-items:center;gap:14px}.klr-section-heading::before{content:attr(data-number);display:grid;place-items:center;min-width:38px;height:38px;border-radius:50%;background:#eee6ff;color:#7c3aed;font-size:15px;font-weight:650}.klr-table{overflow-x:auto;border:1px solid #dcd9ed;border-radius:9px;margin:18px 0 24px}.klr table{width:100%;border-collapse:collapse;font-size:14px;text-align:left}.klr th{background:#f0edfb;font-weight:650}.klr td,.klr th{padding:10px 14px;border-bottom:1px solid #e2dfed;border-right:1px solid #e2dfed}.klr tr:last-child td{border-bottom:0}.klr-reading code{background:#f2eefb;border-radius:4px;padding:2px 5px}.klr-reading pre{max-width:100%;overflow-x:auto;padding:18px;background:#f5f3fa;border-radius:9px}.klr-clinical,.klr-term,.klr-example{padding:16px 18px;border-radius:10px;margin:20px 0}.klr-clinical{background:#fff5df;border:1px solid #ffe1aa}.klr-term,.klr-example{background:#f3edff}.klr-clinical h2,.klr-term h2,.klr-example h2{margin-top:0;font-size:17px}.klr-clinical h2{color:#c75b00}.klr-clinical li,.klr-term li{font-size:14px}.klr-clinical ul,.klr-term ul{margin-bottom:0}.klr-contents{align-self:start;position:sticky;top:20px;border:1px solid #e5e3f0;border-radius:8px;padding:18px 14px}.klr-contents h2{font-size:14px;margin:0 0 14px}.klr-contents nav,.klr-mobile-contents nav{display:grid;gap:4px}.klr-contents nav button,.klr-mobile-contents nav button{border:0;background:none;color:#4d536a;text-align:left;padding:9px 12px;border-left:2px solid #e7e2f3;font:12px/1.5 Inter,system-ui,sans-serif;white-space:normal}.klr-contents nav button:first-child{color:#7c3aed;background:#f2edff;border-radius:7px}.klr-mobile-contents,.klr-mobile-actions{display:none}.klr-check button,.klr [data-reader-ask-practice]{background:#7c3aed;color:white;border:0;border-radius:8px;padding:12px 18px;font-weight:600}.klr-composer{max-width:820px;margin:20px 253px 0 0!important;padding:0!important;border:0!important;background:none!important}.klr-composer>label{font-size:12px;color:#6a7187}.klr-composer>div{display:flex;align-items:center;gap:10px;border:1px solid #ddd6ed;border-radius:10px;padding:8px 10px;background:white}.klr-composer textarea{flex:1;min-width:0;width:0!important;border:0!important;box-shadow:none!important;resize:vertical;min-height:34px;padding:7px!important;font:14px/1.5 Inter,system-ui,sans-serif;color:#172033;background:none}.klr-composer button{display:grid;place-items:center;border:0;background:#7c3aed;color:white;border-radius:50%;width:34px;height:34px;min-width:34px;padding:0}.klr-pdf-note{font-size:10px;color:#8a8da3;text-align:center;max-width:820px;margin:10px 253px 0 0}.klr [data-topic-image-notice]{font-size:11px;color:#737b8d;max-width:820px;margin:12px 253px 0 0}.klr-history{display:flex;align-items:center;gap:12px;font-size:12px;margin-bottom:16px}.klr-history select{max-width:100%;min-width:0;border:1px solid #ddd7eb;border-radius:7px;padding:8px;background:white}.klr-large{--reader-font:19px}.klr button:focus-visible{outline:3px solid #b894ff;outline-offset:3px}.klr-prose{overflow-wrap:anywhere}
@media(max-width:1150px){.klr-heading{flex-direction:column}.klr-grid{grid-template-columns:minmax(0,1fr) 190px;gap:20px}.klr-composer,.klr-pdf-note,.klr [data-topic-image-notice]{margin-right:210px!important}}
@media(max-width:760px){.klr{padding:0 0 84px;--reader-font:15px}.klr-large{--reader-font:18px}.klr-breadcrumb{padding-bottom:15px;font-size:11px}.klr-heading{gap:14px;margin-bottom:20px}.klr-heading h1{font-size:25px}.klr-heading p{font-size:12px}.klr-heading .klr-actions{display:none}.klr-grid{display:block}.klr-contents{display:none}.klr-objectives{padding:16px}.klr-objectives li{font-size:13px}.klr-tabs{gap:24px;margin-bottom:16px;justify-content:space-between}.klr-tabs button{font-size:13px}.klr-mobile-contents{display:block;border:1px solid #dedcea;border-radius:7px;padding:12px;margin-bottom:20px;font-size:13px}.klr-mobile-contents summary{cursor:pointer;font-weight:600}.klr-reading h2,.klr-reading h4{font-size:19px}.klr-table th,.klr-table td{padding:9px;font-size:12px}.klr-composer,.klr-pdf-note,.klr [data-topic-image-notice]{margin-right:0!important}.klr-mobile-actions{position:sticky;bottom:0;display:flex;gap:8px;background:#ffffffed;padding:10px 0;border-top:1px solid #e5dfed;z-index:5;margin-top:20px}.klr-mobile-actions button{flex:1;min-width:0;padding:10px 6px;font-size:10px;gap:5px}.klr-mobile-actions button:last-child{background:#7c3aed;color:white;border-color:#7c3aed}.klr-mobile-actions svg{width:15px;min-width:15px}.klr-heading .klr-actions [data-reader-size]{display:inline-flex}.klr-history{flex-wrap:wrap}.klr-heading .klr-actions{display:flex}.klr-heading .klr-actions button:not([data-reader-size]){display:none}.klr-heading .klr-actions [data-reader-size]{font-size:11px;padding:7px 12px;min-height:32px}}

.education-panel:has(#keduTopicTutor.klr-open){background:#fff}.education-panel:has(#keduTopicTutor.klr-open)>.edu-persistent-toolbar,.education-panel:has(#keduTopicTutor.klr-open)>.education-top{display:none}.klr-question{font-size:12px;color:#737c90;margin-bottom:14px}.klr-question p{font-size:14px;color:#263249;white-space:pre-wrap}

/* Approved uploaded-document explanation reader. */
.education-panel:has(.kedu-document-reader){background:#fff}.education-panel:has(.kedu-document-reader)>.education-top,.education-panel:has(.kedu-document-reader)>.edu-persistent-toolbar{display:none!important}
.kedu-document-reader{--kdr-font:15px;max-width:1380px;margin:0 auto;padding:0 8px 24px;color:#17203b;font-family:Inter,'Plus Jakarta Sans',system-ui,sans-serif}.kedu-document-reader *{box-sizing:border-box}.kdr-breadcrumb{display:flex;align-items:center;gap:12px;color:#69758b;font-size:12px;margin-bottom:18px;min-width:0}.kdr-breadcrumb>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kdr-breadcrumb button{background:none;border:0;color:#5c657e;padding:3px 0;cursor:pointer;flex-shrink:0;font:inherit}.kdr-header{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;margin-bottom:20px}.kdr-header>div:first-child{min-width:0}.kdr-header h1{font-size:clamp(25px,2.3vw,34px);line-height:1.25;letter-spacing:-.7px;margin:0 0 12px;color:#11192e;font-weight:750;overflow-wrap:anywhere}.kdr-file{display:inline-flex;align-items:center;gap:12px;max-width:100%;border:1px solid #e1dcf3;border-radius:8px;padding:9px 12px;background:#fcfbff}.kdr-file>div{min-width:0}.kdr-file strong{display:block;overflow-wrap:anywhere;font-size:12px;font-weight:600;color:#26304a}.kdr-file small{display:block;font-size:11px;color:#7d84a0;line-height:1.5;margin-top:3px}.kdr-file-icon{font-size:27px;line-height:1;color:#8034f4}.kdr-header-actions{display:flex;align-self:flex-end;gap:8px;flex-wrap:wrap;justify-content:flex-end;flex-shrink:0}.kdr-header-actions button,.kdr-mobile-actions button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;border:1px solid #dfdaee;border-radius:7px;background:#fff;color:#222a43;padding:10px 14px;font:500 12px/1.4 Inter,system-ui,sans-serif;cursor:pointer}.kdr-header-actions .kdr-pdf{color:#7832e9;background:#fcfaff}.kdr-progress{display:flex;gap:18px;align-items:center;color:#78819c;font-size:11px;margin:12px 0 16px}.kdr-progress>span{flex-shrink:0}.kdr-progress progress{appearance:none;width:100%;height:8px;min-width:0;border:0;border-radius:10px;overflow:hidden;background:#e8e5f1}.kdr-progress progress::-webkit-progress-bar{background:#e8e5f1;border-radius:10px}.kdr-progress progress::-webkit-progress-value{background:#7c3aed;border-radius:10px}.kdr-progress progress::-moz-progress-bar{background:#7c3aed;border-radius:10px}.kdr-tabs{display:flex;gap:38px;border-bottom:1px solid #e7e4f0;overflow-x:auto;margin-bottom:22px}.kdr-tabs button{flex-shrink:0;white-space:nowrap;background:none;border:0;border-bottom:3px solid transparent;border-radius:0;padding:13px 8px;color:#68738a;font:500 13px Inter,system-ui,sans-serif;min-height:44px;cursor:pointer}.kdr-tabs button[aria-current]{color:#7931ee;border-bottom-color:#7931ee;font-weight:650}.kdr-grid{display:grid;grid-template-columns:minmax(0,1fr) 235px;gap:30px;align-items:start}.kdr-reading{min-width:0;max-width:920px;font-size:var(--kdr-font);line-height:1.8}.kdr-outline{border:1px solid #e7e1f2;border-radius:10px;padding:18px 15px;position:sticky;top:12px}.kdr-outline h3{font-size:14px;margin:0 0 14px;color:#202a40}.kdr-outline nav,.kdr-mobile-sections nav{display:grid;gap:5px}.kdr-outline nav button,.kdr-mobile-sections nav button{display:flex;align-items:center;gap:12px;text-align:left;border:0;border-left:3px solid transparent;border-radius:5px;padding:13px 10px;background:#fff;color:#5c657e;min-width:0;cursor:pointer;font:12px/1.5 Inter,system-ui,sans-serif;width:100%}.kdr-outline nav button>span:first-child{flex-shrink:0;font-size:11px;color:#8b88a3}.kdr-outline nav button strong,.kdr-mobile-sections nav button strong{font-weight:500;min-width:0;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.kdr-outline nav button[aria-current=true],.kdr-mobile-sections nav button[aria-current=true]{background:#f1ebff;color:#7d31ed;border-left-color:#7d31ed}.kdr-outline>button{margin-top:15px;background:none;border:0;color:#6d31cd;font:12px Inter,system-ui,sans-serif;cursor:pointer}.kdr-mobile-sections,.kdr-mobile-actions{display:none}.kedu-document-reader #keduLesson{font-size:var(--kdr-font);line-height:1.8;max-width:none;max-height:none;overflow:visible;padding:0;border:0;background:none;box-shadow:none}.kdr-turn{border:0;margin:0 0 26px;padding:0}.kdr-turn+.kdr-turn{border-top:1px solid #e5dff0;padding-top:25px}.kdr-turn .kdr-reply-title{font-size:18px;line-height:1.5;color:#252e44;margin:0 0 16px}.kdr-turn:first-child .kdr-reply-title{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.kdr-objectives{padding:17px 20px;border-radius:10px;background:#f2edff;margin:0 0 22px}.kdr-objectives h4{font-size:15px!important;line-height:1.4;color:#7d32ee!important;margin:0 0 8px!important}.kdr-objectives ul{margin:0;padding-left:26px;font-size:13px;color:#414660}.kdr-objectives li{margin:5px 0}.kdr-prose{overflow-wrap:anywhere}.kdr-reading p{margin:0 0 18px}.kdr-reading h4{font-size:21px;line-height:1.45;color:#131d36;margin:25px 0 12px;font-weight:750}.kdr-section-heading{display:flex;align-items:flex-start;gap:16px;scroll-margin-top:100px}.kdr-section-heading>span{font-size:26px;line-height:1.2;color:#7c31ef;flex-shrink:0;font-weight:750}.kdr-reading ul,.kdr-reading ol{padding-left:24px}.kdr-reading li{margin:8px 0}.kdr-table{border:1px solid #ded8ee;border-radius:9px;overflow-x:auto;margin:20px 0 24px}.kdr-table table{width:100%;border-collapse:collapse;font-size:13px;line-height:1.6;text-align:left}.kdr-table th{background:#efebfa;font-weight:650}.kdr-table th,.kdr-table td{border-right:1px solid #e3deef;border-bottom:1px solid #e3deef;padding:10px 14px;min-width:100px}.kdr-table tr:last-child td{border-bottom:0}.kdr-reading pre{max-width:100%;overflow-x:auto;background:#f5f2fa;padding:18px;border-radius:8px}.kdr-reading code{background:#f1edfa;padding:2px 5px;border-radius:4px}.kdr-clinical,.kdr-key,.kdr-example{padding:16px 18px;border-radius:10px;margin:22px 0;background:#f3edff}.kdr-clinical{border:1px solid #ffdfaa;background:#fff4df}.kdr-clinical h4{color:#bd5e00!important}.kdr-key h4,.kdr-example h4,.kdr-clinical h4{font-size:16px;margin:0 0 8px}.kdr-clinical ul,.kdr-key ul{margin-bottom:0}.kdr-source-note,.kdr-pdf-note{font-size:11px;color:#858ba4;line-height:1.5}.kdr-pdf-note{text-align:center;margin:12px 0 8px}.kdr-revision,.kdr-references,.kdr-source,.kdr-audio-options,.kdr-learning-tools{border:1px solid #e0dbee;border-radius:8px;padding:13px 15px;margin:16px 0;color:#39445d;font-size:13px}.kdr-revision summary,.kdr-references summary,.kdr-source summary,.kdr-audio-options summary,.kdr-learning-tools summary{cursor:pointer;font-weight:600}.kdr-revision h4{font-size:16px}.kdr-question{font-size:12px;color:#737c92;margin-bottom:16px}.kdr-question summary{cursor:pointer}.kdr-references blockquote{margin:18px 0;border-left:3px solid #d6c2fa;padding-left:12px}.kdr-references button{border:1px solid #dcd4ec;background:#fcfaff;border-radius:6px;color:#6c3aac;padding:8px;margin-top:10px;cursor:pointer}.kdr-image-consent{display:block;font-size:12px;line-height:1.7;color:#677188;margin:20px 0}.kdr-learning-tools .education-actions{gap:8px;flex-wrap:wrap;padding-top:12px}.kdr-learning-tools button{font-size:12px}.kdr-audio-options .kedu-audio{margin:14px 0 0;display:flex;flex-wrap:wrap;gap:8px;padding:12px;box-sizing:border-box}.kdr-audio-options select{max-width:100%;padding:7px;border:1px solid #dcd5eb;border-radius:6px;background:white}.kdr-audio-options label{min-width:0}.kdr-audio-options button{padding:9px;font-size:12px}.kedu-document-reader #keduStudyAsk{position:static!important;inset:auto!important;display:block!important;background:none!important;box-shadow:none!important;border:0!important;padding:0!important;margin:24px 0 0!important;max-width:100%;width:100%}.kdr-composer>label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.kdr-composer>div{display:flex;align-items:center;gap:10px;border:1px solid #dcd4ed;border-radius:24px;background:white;padding:8px 10px 8px 18px}.kdr-composer textarea{min-width:0;flex:1;width:0!important;background:none!important;border:0!important;box-shadow:none!important;min-height:32px;padding:6px 0!important;font:13px/1.5 Inter,system-ui,sans-serif;color:#2c3850;resize:vertical;max-width:none}.kdr-composer button{border:0;background:#7c3aed!important;color:#fff!important;width:34px;height:34px;min-width:34px;border-radius:50%;font-size:22px;padding:0;cursor:pointer}.kdr-section-actions{display:grid;grid-template-columns:1fr 1.25fr 1fr;gap:12px;margin:14px 0 0}.kdr-section-actions button{min-width:0;border:1px solid #dfd5f2;border-radius:7px;background:white;color:#7c3aed;padding:11px 8px;font:500 12px/1.4 Inter,system-ui,sans-serif;cursor:pointer;white-space:normal}.kdr-section-actions button.education-primary{background:#7c3aed;color:white;border-color:#7c3aed}.kdr-large{--kdr-font:18px}.kedu-document-reader button:focus-visible,.kedu-document-reader summary:focus-visible{outline:3px solid #b594f3;outline-offset:3px}.kedu-document-reader button:disabled{opacity:.55;cursor:wait}.kedu-document-reader #keduStudyStatus{font-size:12px;color:#765d94;line-height:1.5;margin:12px 0}.kdr-empty{border:1px dashed #d8caef;border-radius:12px;padding:24px;background:#fcfaff}.kdr-empty h3{margin-top:0}
@media(max-width:1150px){.kdr-header{flex-direction:column;gap:16px}.kdr-header-actions{align-self:flex-start;justify-content:flex-start}.kdr-grid{grid-template-columns:minmax(0,1fr) 200px;gap:22px}}
@media(max-width:760px){.kedu-document-reader{--kdr-font:14px;padding:0 0 18px}.kdr-large{--kdr-font:17px}.kdr-breadcrumb{font-size:11px;gap:8px;margin-bottom:16px}.kdr-header{margin-bottom:16px;gap:14px}.kdr-header h1{font-size:25px;letter-spacing:-.5px}.kdr-file{width:100%;padding:10px 12px}.kdr-file strong{font-size:12px}.kdr-file small{font-size:10px}.kdr-header-actions{width:100%;display:grid;grid-template-columns:1fr 1fr 1fr;gap:7px}.kdr-header-actions button{min-width:0;padding:9px 5px;font-size:10px;white-space:normal;min-height:38px}.kdr-progress{flex-wrap:wrap;gap:9px;margin-bottom:12px}.kdr-progress>span:first-child{flex:1}.kdr-progress progress{order:3;flex-basis:100%}.kdr-tabs{gap:10px;justify-content:space-between;margin-bottom:16px}.kdr-tabs button{font-size:11px;padding:13px 2px}.kdr-grid{display:block}.kdr-outline{display:none}.kdr-mobile-sections{display:block;border:1px solid #e1d9ef;border-radius:7px;padding:12px;font-size:12px;margin-bottom:20px}.kdr-mobile-sections summary{cursor:pointer;overflow-wrap:anywhere}.kdr-mobile-sections nav{max-height:240px;overflow-y:auto;margin-top:12px}.kdr-objectives{padding:16px;margin-bottom:20px}.kdr-objectives h4{font-size:14px!important}.kdr-objectives ul{font-size:12px}.kdr-reading h4{font-size:19px}.kdr-section-heading{gap:10px}.kdr-section-heading>span{font-size:22px}.kdr-table th,.kdr-table td{padding:8px;font-size:11px;min-width:80px}.kdr-clinical h4,.kdr-key h4,.kdr-example h4{font-size:15px}.kdr-section-actions{grid-template-columns:1fr 1.2fr 1fr;gap:6px}.kdr-section-actions button{font-size:10px;padding:10px 5px}.kdr-mobile-actions{position:sticky;bottom:0;z-index:4;background:#ffffffed;border-top:1px solid #e6e0ee;display:flex;gap:8px;padding:10px 0}.kdr-mobile-actions button{flex:1;min-width:0;padding:10px 5px;font-size:10px}.kdr-mobile-actions .kdr-pdf{color:#7c3aed}.kdr-pdf-note{font-size:9px}.kdr-reading .kdr-prose{line-height:1.85}.kdr-audio-options .kedu-audio{padding:8px;gap:6px}}

.kedu-app .education-panel:has(.kedu-document-reader){background:#fff}.kedu-document-reader .kdr-objectives h4{font-size:15px!important}.kedu-document-reader .kdr-clinical h4,.kedu-document-reader .kdr-example h4{font-size:16px}

/* Exam model selection */
.exam-model-settings {min-width:0;margin:0 0 24px;padding:16px;border:1px solid #e7dff1;border-radius:14px;background:#fcfaff}
.exam-model-settings .exam-learn {margin:12px 0}
.exam-model-settings .exam-field {min-width:0;margin-bottom:12px}
.exam-model-settings input,.exam-model-settings select,.exam-model-settings textarea {box-sizing:border-box;width:100%;min-width:0;max-width:100%}
.exam-model-settings textarea {padding:12px;border:1px solid #d8d0e4;border-radius:9px;font:inherit;resize:vertical;background:#fff;color:#242031}
.exam-model-settings a {color:#7030c3;text-decoration:underline}
.exam-model-settings p {overflow-wrap:anywhere;font-size:13px;line-height:1.6}

.exam-simple-heading{margin-bottom:24px}.exam-simple-heading h3{font-size:22px;line-height:1.3;margin:8px 0}.exam-simple-heading p,.exam-focus-note{font-size:13px;color:#736b80;line-height:1.6}.exam-settings>.exam-field{display:flex;flex-direction:column;gap:8px;margin-bottom:18px}.exam-settings>.exam-field select{width:100%;min-width:0;max-width:100%}

.exam-builder,.exam-settings,.exam-summary{min-width:0}.exam-builder{grid-template-columns:minmax(0,1fr) minmax(240px,300px)}@media(max-width:900px){.exam-builder{grid-template-columns:minmax(0,1fr)}}

/* My Materials */
.kedu-materials { display:grid; gap:20px; }
.kedu-materials-tools { display:flex; align-items:center; gap:12px; padding:14px; background:#fff; border:1px solid #e6e4f2; border-radius:16px; }
.kedu-materials-search { flex:1; min-width:0; }
.kedu-materials-search input { width:100%; box-sizing:border-box; border:1px solid #e4e1f0; border-radius:10px; background:#f8f8fc; padding:12px 14px; font:inherit; }
.kedu-materials-tools button { white-space:nowrap; }
.kedu-materials-title h4 { margin:0; color:#19143b; font-size:18px; }
.kedu-materials .education-grid { margin-top:-8px; }
.kedu-material-card { border:1px solid #e6e4f2; border-radius:14px; background:#fff; padding:16px; }
.kedu-material-card[hidden], .kedu-materials [hidden] { display:none !important; }
.kedu-material-icon { display:grid; place-items:center; width:42px; height:42px; border-radius:12px; background:#f0eaff; color:#6825df; font-size:25px; margin-bottom:12px; }
.kedu-material-card h4 { margin:0 0 6px; overflow-wrap:anywhere; }
.kedu-material-card p { color:#6b7280; }
.kedu-materials #educationStudyForm { background:#fff; border:1px solid #e6e4f2; border-radius:16px; padding:20px; }
.kedu-materials #educationStudyForm h4 { font-size:18px; color:#19143b; margin:0 0 12px; }
.kedu-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media (max-width:600px) { .kedu-materials { gap:14px; } .kedu-materials-tools { flex-direction:column; align-items:stretch; padding:12px; } .kedu-materials-search { width:100%; } .kedu-materials-tools button { width:100%; } .kedu-materials #educationStudyForm { padding:16px; } .kedu-material-card { padding:14px; } }

.kedu-materials-tools select { min-height:44px; max-width:180px; padding:10px 12px; border:1px solid #e4e1f0; border-radius:10px; background:#fff; color:#251c46; font:inherit; }
@media(max-width:600px) { .kedu-materials-tools select { width:100%; max-width:none; } }

.education-form [data-study-panel][hidden] { display:none !important; }
.kedu-material-modes { display:flex; flex-wrap:wrap; gap:4px; padding:4px; border:1px solid #e4e1f0; border-radius:12px; background:#f8f7fc; }
.kedu-material-modes button { flex:1; min-width:120px; padding:10px 12px; border:0; border-radius:8px; background:transparent; color:#493a70; font:inherit; cursor:pointer; }
.kedu-material-modes button[aria-pressed="true"] { background:#ede6ff; color:#5c1dcc; font-weight:700; }
.education-form .kedu-material-upload { border:1px dashed #bcb2df; border-radius:12px; padding:20px; background:#faf9ff; }

.kedu-material-detail .kedu-material-detail-head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; }
.kedu-material-detail .kedu-material-detail-head h3 { margin:4px 0; overflow-wrap:anywhere; }
.kedu-material-detail-actions { display:flex; flex-wrap:wrap; gap:10px; margin:16px 0; }
.kedu-material-detail-content { display:grid; grid-template-columns:minmax(0,2fr) minmax(200px,1fr); gap:20px; align-items:start; }
.kedu-material-next { border-radius:14px; padding:18px; background:#f4efff; color:#31205c; }
.kedu-material-next h4 { margin:0 0 8px; color:#5f27c9; }
@media(max-width:700px) { .kedu-material-detail .kedu-material-detail-head { flex-wrap:wrap; } .kedu-material-detail-content { grid-template-columns:minmax(0,1fr); } .kedu-material-detail-actions { display:grid; grid-template-columns:1fr; } .kedu-material-detail-actions button { width:100%; } }

.kedu-material-empty { display:grid; justify-items:center; text-align:center; padding:32px 18px; border:1px dashed #c7b7e9; border-radius:16px; color:#615b78; background:#faf9ff; }
.kedu-material-empty span { display:grid; place-items:center; width:56px; height:56px; border-radius:16px; background:#eee6ff; color:#6b28dc; font-size:32px; }
.kedu-material-empty h4 { color:#20163c; margin:14px 0 4px; }
.kedu-material-empty p { margin:0 0 16px; }

#keduAsk .kedu-ask-view-bar{display:flex;justify-content:flex-end;flex:none;padding:6px 12px}
#keduAsk [data-ask-full]{min-height:44px;padding:6px 14px;border:1px solid var(--ke-line,#ddd3ed);border-radius:10px;background:var(--ke-card,#fff);color:var(--ke-text,#421c76);font-weight:700}
body:has(#keduAsk.kedu-ask-full){overflow:hidden}
#keduAsk.kedu-ask-full{position:fixed!important;inset:0!important;z-index:2147483000;width:100%!important;max-width:none!important;height:100dvh!important;max-height:none!important;margin:0!important;padding:0!important;display:block!important;background:var(--ke-card,#fff);overflow:hidden;box-sizing:border-box}
#keduAsk.kedu-ask-full :is(.kedu-ask-chats,.kedu-chat-shade,.kedu-chat-mobile-brand,.kedu-chat-header){display:none!important}
#keduAsk.kedu-ask-full .kedu-chat-canvas{display:flex;flex-direction:column;height:100%;width:100%;max-width:none;margin:0;min-height:0}
#keduAsk.kedu-ask-full :is(.kedu-ask-layout,.kedu-ask-main){display:flex;flex-direction:column;flex:1;min-height:0;width:100%;max-width:none;margin:0}
#keduAsk.kedu-ask-full .kedu-ask-thread{flex:1;min-height:0;max-height:none!important;overflow-y:auto;overscroll-behavior:contain}
#keduAsk.kedu-ask-full .kedu-chat-bottom{position:static!important;flex:none;padding-bottom:env(safe-area-inset-bottom)}

#keduAsk .kedu-ask-view-bar{gap:8px}
#keduAsk .kedu-ask-view-bar>[hidden]{display:none!important}
#keduAsk [data-ask-compose]{min-height:44px;padding:6px 14px;border:1px solid var(--ke-line,#ddd3ed);border-radius:10px;background:var(--ke-card,#fff);color:var(--ke-text,#421c76);font-weight:700}
#keduAsk.kedu-ask-full:not(.kedu-ask-compose-visible) .kedu-chat-bottom{display:none!important}
#keduAsk.kedu-ask-full .kedu-ask-thread{box-sizing:border-box;width:100%;max-width:none;padding:clamp(12px,3vw,32px)}
#keduAsk.kedu-ask-full .kedu-chat-message{box-sizing:border-box;width:100%;max-width:84ch;margin-inline:auto}
#keduAsk.kedu-ask-full .kedu-chat-answer{width:100%;max-width:none;font-size:clamp(16px,1.4vw,19px);line-height:1.7;overflow-wrap:anywhere}
#keduAsk.kedu-ask-full .kedu-chat-answer :is(img,figure){max-width:100%;height:auto}
#keduAsk.kedu-ask-full .kedu-chat-answer :is(pre,table){display:block;max-width:100%;overflow-x:auto}

#keduAsk .kedu-ask-chats{background:var(--ke-card,#f7f4ff)}
#keduAsk [data-ask-new]{min-height:46px;width:100%;background:#5415b4;color:#fff}
#keduAsk [data-ask-search]{width:100%;min-height:44px;box-sizing:border-box;padding:8px 12px;border:1px solid var(--ke-line,#dcd3ec);border-radius:10px;background:var(--ke-card,#fff);color:inherit}
#keduAsk [data-ask-history]>h3{margin:18px 0 12px}
#keduAsk .kedu-recent-group+.kedu-recent-group{margin-top:14px;padding-top:12px;border-top:1px solid var(--ke-line,#ded6eb)}
#keduAsk .kedu-recent-group h4{margin:0 0 6px;color:var(--ke-muted,#655582);font-size:.85rem}
#keduAsk .kedu-recent-group button{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:8px;border:0;border-radius:8px;background:transparent;color:inherit;text-align:left}
#keduAsk .kedu-recent-group button[aria-current=true]{background:#eaddff;color:#35106f;font-weight:700}
#keduAsk .kedu-recent-group button span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#keduAsk .kedu-ask-view-bar{align-items:center;border-bottom:1px solid var(--ke-line,#ded6eb)}
#keduAsk [data-ask-title]{margin-inline-end:auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

#keduAsk:not(.kedu-ask-full):not(.kedu-chat-loading){min-height:0;overflow:hidden}
#keduAsk:not(.kedu-ask-full) .kedu-chat-canvas{display:flex;flex-direction:column;min-height:0;min-width:0;overflow:hidden}
#keduAsk:not(.kedu-ask-full) .kedu-ask-view-bar{order:1;padding:10px 16px;background:var(--ke-card,#fff)}
#keduAsk:not(.kedu-ask-full) .kedu-ask-layout{order:2}
#keduAsk:not(.kedu-ask-full) :is(.kedu-ask-layout,.kedu-ask-main){display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;overflow:hidden}
#keduAsk:not(.kedu-ask-full) .kedu-ask-thread{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}
#keduAsk:not(.kedu-ask-full) .kedu-chat-bottom{flex:none;position:relative}
#keduAsk .kedu-ask-chats>[data-ask-history]{display:flex;flex-direction:column;min-height:0;flex:1;overflow:hidden}
#keduAsk .kedu-ask-chats [data-ask-list]{min-height:0;overflow:auto;overscroll-behavior:contain}
#keduAsk .kedu-ask-chats>:not([data-ask-history]),#keduAsk [data-ask-history]>:not([data-ask-list]){flex-shrink:0}
#keduAsk .kedu-recent-group button span{display:block;flex:1}
@media(min-width:1025px),(min-width:761px) and (pointer:fine){#keduAsk .kedu-ask-chats{background:var(--ke-bg,#f7f4ff)}}

#keduAsk.kedu-ask-full .kedu-ask-view-bar{position:relative;z-index:3;order:-1;flex:0 0 auto;min-width:0;padding:max(8px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 8px max(12px,env(safe-area-inset-left));background:var(--ke-card,#fff)}
#keduAsk.kedu-ask-full [data-ask-full]{flex-shrink:0;white-space:nowrap}
body:has(#keduAsk.kedu-ask-full) #eduUsageWarning{display:none!important}

#eduUsageWarning.edu-usage-warning{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:14px 16px}
#eduUsageWarning>span{flex:1 1 24rem;min-width:0;overflow-wrap:anywhere}
#eduUsageWarning>button{margin:0;min-height:44px;max-width:100%;padding:8px 14px;white-space:normal}
#eduUsageWarning>[data-dismiss-usage]{background:transparent}

/* Compact Ask AI layout */
#keduAsk .kedu-ask-options { display:contents; }
#keduAsk .kedu-ask-options > summary,
#keduAsk .kedu-ask-options [data-ask-saved] { display:none; }
#keduAsk .kedu-ask-options > div { display:flex; gap:8px; }
#educationPanel #keduAsk .kedu-chat-pdf {
    display:inline-flex; align-items:center; gap:7px; width:fit-content;
    margin:8px 0 0 42px; min-height:40px; padding:6px 12px;
    color:#6d28d9; border-color:#8b5cf6; background:transparent;
}
#keduAsk .kedu-chat-pdf svg { width:18px; height:18px; }

@media (max-width:760px), (max-width:1024px) and (pointer:coarse) {
    .kedu-app #keduAsk { height:100%; }
    .kedu-app #keduAsk .kedu-chat-mobile-brand { display:none; }
    .kedu-app:has(.ke-bottom [data-kedu-tab="ask"].active) .ke-top-actions button:not(#keBalance),
    .kedu-app:has(.ke-bottom [data-kedu-tab="ask"].active) .ke-brand small,
    .kedu-app:has(.ke-bottom [data-kedu-tab="ask"].active) .ke-bottom button:nth-child(n+7) { display:none; }
    .kedu-app:has(.ke-bottom [data-kedu-tab="ask"].active) .ke-bottom button { min-width:0; padding-inline:0; }
    #keduAsk .kedu-chat-header { flex:none; justify-content:flex-start; min-height:50px; padding:4px 0; }
    #keduAsk .kedu-chat-header h2 { margin:0; font-size:24px; }
    #keduAsk .kedu-chat-header p { display:none; }
    #keduAsk .kedu-chat-credits { margin-left:auto; min-height:36px; font-size:14px; }
    #keduAsk .kedu-ask-options { display:block; position:relative; z-index:2; }
    #keduAsk .kedu-ask-options > summary {
        display:grid; place-items:center; width:32px; min-height:44px; list-style:none;
        cursor:pointer; color:#6d28d9; font-size:25px;
    }
    #keduAsk .kedu-ask-options > summary::-webkit-details-marker { display:none; }
    #keduAsk .kedu-ask-options > div {
        position:absolute; right:0; min-width:190px; padding:8px; border:1px solid #ddd6fe;
        background:var(--ke-card,#fff); border-radius:12px; flex-direction:column;
    }
    #keduAsk .kedu-ask-options:not([open]) > div { display:none; }
    #keduAsk .kedu-ask-options [data-ask-saved] { display:block; }
    #keduAsk [data-ask-full] {
        flex:none; padding:8px 12px; min-height:40px; border:1px solid #d6cce8;
        border-radius:10px; background:transparent; color:inherit; font-weight:650;
    }
    #keduAsk.kedu-chat-full .kedu-chat-header,
    #keduAsk.kedu-chat-full [data-ask-warning] { display:none; }
    #keduAsk .kedu-ask-layout { height:auto; }
    #keduAsk .kedu-chat-assistant { position:relative; }
    #keduAsk .kedu-chat-speaker { position:absolute; left:0; top:0; }
    #keduAsk .kedu-chat-assistant[data-chat-message] .kedu-chat-speaker :is(strong,time),
    #keduAsk .kedu-chat-user[data-delivery="sent"] :is(time,[data-chat-delivery]) { display:none; }
    #keduAsk .kedu-chat-assistant[data-chat-message] .kedu-chat-avatar {
        background:#6d28d9 url('/kedu-logo.png') center/cover; color:transparent;
    }
    #keduAsk .kedu-chat-assistant[data-chat-message] .kedu-chat-answer {
        margin-left:38px; padding:12px; border:1px solid #e5d9f6;
        background:#faf7ff; color:#17152b; border-radius:13px; font-size:14px;
    }
    #educationPanel #keduAsk .kedu-chat-pdf { margin-left:38px; }
    #keduAsk .kedu-chat-bubble { padding:10px 12px; border-radius:12px; }
    #keduAsk .kedu-chat-composer-help { display:none; }
    #keduAsk .kedu-ask-composer { background:#faf7ff; border-color:#c5b0e3; }
    #keduAsk .kedu-ask-row>button { width:40px; height:40px; }
    #keduAsk .edu-usage-warning {
        display:flex; align-items:center; gap:8px; margin:4px 0; padding:4px 8px 4px 12px;
        border:1px solid #f4cf9b; border-radius:12px; background:#fff5e8; color:#8c3816;
    }
    #keduAsk .edu-usage-warning span { flex:1; font-size:12px; overflow-wrap:anywhere; }
    #keduAsk .edu-usage-warning [data-dismiss-usage] { flex:none; min-width:36px; min-height:36px; }
    #keduAsk .edu-usage-warning [data-growth-open="usage"] { display:none; }
}

@media (max-width:760px), (max-width:1024px) and (pointer:coarse) {
    .kedu-app #keduAsk .kedu-chat-credits { font-size:0; }
    .kedu-app #keduAsk .kedu-chat-credits::after { content:"Usage"; font-size:14px; }
    .kedu-app #keduAsk .kedu-chat-bottom > p.education-muted { display:none; }
    .kedu-app #keduAsk .kedu-chat-composer { margin-bottom:4px; }
}

.ke-bottom .ke-ask-short-label { display:none; }

@media (max-width:760px), (max-width:1024px) and (pointer:coarse) {
    .kedu-app:has(.ke-bottom [data-kedu-tab="ask"].active) .ke-bottom {
        overflow-x:hidden;
    }
    .kedu-app:has(.ke-bottom [data-kedu-tab="ask"].active) .ke-bottom
        :is([data-kedu-tab="study"],[data-kedu-tab="ai"]) > span:not(.ke-ask-short-label) { display:none; }
    .kedu-app:has(.ke-bottom [data-kedu-tab="ask"].active) .ke-bottom .ke-ask-short-label { display:block; }
    #keduAsk [data-ask-full] { display:inline-flex; align-items:center; gap:6px; }
    #keduAsk [data-ask-full] svg { width:16px; height:16px; }
    #keduAsk .kedu-chat-bubble { background:#f1e6ff; color:#501390; }
    #keduAsk .kedu-ask-options > div { max-height:55dvh; overflow:auto; }
    #keduAsk .kedu-ask-options [data-ask-saved] {
        min-height:44px; border:1px solid #ded3f0; border-radius:10px;
        background:transparent; color:inherit; font:inherit;
    }
    #keduAsk .kedu-ask-options .kedu-chat-reply-actions {
        padding-top:6px; border-top:1px solid #e9e7ef;
    }
}

@media (max-width:760px), (max-width:1024px) and (pointer:coarse) {
    #keduAsk:not(.kedu-ask-full) .kedu-ask-view-bar { padding:8px 0; }
    #keduAsk [data-ask-warning] { order:0; }
    #keduAsk #eduUsageWarning.edu-usage-warning { flex-wrap:nowrap; gap:8px; padding:4px 8px 4px 12px; }
    #keduAsk.kedu-ask-full .kedu-chat-answer { width:auto; }
}

#keduAsk .kedu-chat-drawer-trigger { display:none; }
@media (max-width:760px), (max-width:1024px) and (pointer:coarse) {
    #keduAsk .kedu-chat-drawer-trigger { display:block; flex:none; }
    #keduAsk .kedu-chat-drawer-trigger > button {
        display:grid; place-items:center; width:44px; height:44px;
        padding:0; border:0; border-radius:10px;
        color:#6d28d9; background:#f1eaff;
    }
}


/* Growing chat text never competes with the Send action for space. */
#keduAsk.kedu-keyboard-open { height:var(--kedu-keyboard-height)!important; }
#keduAsk .kedu-ask-row,
#keduStudyAsk.kdr-composer>div,
[data-topic-ask].klr-composer>div {
 display:grid; grid-template-columns:32px minmax(0,1fr) auto;
 align-items:end; gap:8px; padding:8px; border-radius:16px;
}
#keduAsk .kedu-ask-row textarea,
#keduStudyAsk.kdr-composer textarea,
[data-topic-ask].klr-composer textarea {
 grid-column:1/-1; grid-row:1; box-sizing:border-box;
 width:100%!important; min-width:0; min-height:48px; max-height:none;
 resize:none; font-size:16px; line-height:1.5; overflow-wrap:anywhere;
 padding:8px!important; scroll-margin-block:12px;
}
#keduAsk .kedu-ask-attach { grid-column:1; grid-row:2; min-height:44px; }
#keduAsk .kedu-ask-row>button,
#keduStudyAsk.kdr-composer button,
[data-topic-ask].klr-composer button {
 grid-column:3; grid-row:2; display:inline-flex; align-items:center;
 justify-content:center; gap:6px; flex:none; width:auto; min-width:76px;
 height:44px; min-height:44px; padding:8px 12px; border-radius:12px;
 font-size:15px; font-weight:650; white-space:nowrap; scroll-margin-block:16px;
}
/* Full view and tablet reading focus both preserve the explicit follow-up toggle. */
#keduAsk.kedu-ask-full:not(.kedu-ask-compose-visible) .kedu-chat-bottom,
#keduAsk.kedu-ask-reading-focus:not(.kedu-ask-compose-visible) .kedu-chat-bottom { display:none!important; }
#keduStudyAsk.kdr-composer { position:relative; bottom:auto; margin-bottom:16px; }
@media(max-width:760px),(max-width:1024px) and (pointer:coarse) {
 #keduAsk .kedu-chat-bottom { padding-bottom:max(8px,env(safe-area-inset-bottom)); }
}
@media(max-width:760px),(max-width:1024px) and (pointer:coarse) {
 body.kedu-app:has(#keduAsk textarea:focus) .ke-bottom,
 body.kedu-app:has(#keduStudyAsk textarea:focus) .ke-bottom,
 .kedu-document-reader:has(#keduStudyAsk:focus-within) .kdr-mobile-actions { display:none!important; }
 #keduStudyAsk.kdr-composer button { scroll-margin-bottom:calc(96px + env(safe-area-inset-bottom)); }
}

/* Keep reading tools within the visible workspace on tablets and desktop. */
#educationBody { scroll-margin-top:calc(var(--kedu-site-header, 90px) + 16px); }
#educationPanel, #chatPage { scroll-padding-top:calc(var(--kedu-site-header, 90px) + 16px); }
#educationBody :is(.km-heading,.kdr-header,.kdr-tabs) { scroll-margin-top:calc(var(--kedu-site-header,90px) + 16px); }
#keduAsk:not(.kedu-ask-full):not(.kedu-chat-loading) {
 height:var(--kedu-chat-available,calc(100dvh - 180px)); min-height:0!important; max-height:none;
}
#keduAsk .kedu-chat-header { min-height:54px; padding:8px 4px; gap:10px; flex-wrap:wrap; }
#keduAsk .kedu-chat-header h2 { font-size:23px; }
#keduAsk .kedu-chat-header p { margin:0; }
#keduAsk .kedu-chat-credits { font-size:12px; padding:8px 12px; }
#keduAsk [data-ask-title] {
 white-space:normal; overflow:visible; text-overflow:clip; overflow-wrap:anywhere; line-height:1.4;
}
#keduAsk [data-ask-full] { display:inline-flex; align-items:center; gap:6px; white-space:nowrap; flex-shrink:0; }
#keduAsk .kedu-ask-view-bar { align-items:flex-start; }
#keduAsk .kedu-chat-bottom { max-height:48%; overflow-y:auto; overscroll-behavior:contain; padding-bottom:max(8px,env(safe-area-inset-bottom)); }
#keduAsk .kedu-chat-bottom>label.education-muted { font-size:12px; line-height:1.4; padding:6px 10px!important; }
#keduAsk .kedu-ask-composer { position:relative; padding:4px; margin:0; }
#keduAsk .kedu-ask-row { padding:4px; gap:4px; }
#keduAsk .kedu-chat-composer-help { font-size:10px; padding:4px; }
#keduAsk .kedu-ask-thread { min-height:60px!important; }
#keduAsk .kedu-ask-options { display:block; position:relative; }
#keduAsk .kedu-ask-options>summary { display:grid; place-items:center; min-width:44px; min-height:44px; cursor:pointer; list-style:none; }
#keduAsk .kedu-ask-options:not([open])>div { display:none; }
#keduAsk .kedu-ask-options>div { position:absolute; z-index:10; right:0; top:100%; display:flex; flex-direction:column; min-width:220px; max-height:50dvh; overflow:auto; padding:12px; border:1px solid var(--ke-line,#ddd3ed); border-radius:12px; background:var(--ke-card,#fff); box-shadow:0 8px 24px #23123b20; }
#educationBody :is(.kdr-pdf,.kedu-chat-pdf) { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:10px 14px; min-height:44px; margin:10px 0 16px; border:1px solid #8b5cf6; border-radius:10px; color:#6d28d9; background:var(--ke-card,#fff); font:600 14px/1.4 system-ui,sans-serif; cursor:pointer; }
#educationBody .kdr-header-actions { flex-wrap:wrap; gap:10px; }
#educationBody .kdr-header-actions .kdr-pdf { margin:0; }
#educationBody .kdr-file { max-width:100%; min-width:0; }
#educationBody .kdr-file>div { min-width:0; }
#educationBody .kdr-file strong { overflow-wrap:anywhere; }
#educationBody .kdr-outline nav strong { white-space:normal; display:block; overflow:visible; -webkit-line-clamp:unset; overflow-wrap:anywhere; }
#educationBody .km-detail-file { align-items:flex-start; }
#educationBody .km-detail-file>div { min-width:0; }
#educationBody .km-detail-file strong { overflow-wrap:anywhere; word-break:normal; }
#educationBody .km-detail-outline strong { white-space:normal; overflow:visible; overflow-wrap:anywhere; }
#educationBody .km-detail-outline+button { margin-top:16px; }
#educationBody .km-detail-next { background:var(--ke-card,#faf8ff); }
@media(min-width:761px) and (max-width:1400px) {
 #educationBody .km-detail-grid { grid-template-columns:190px minmax(0,1fr); }
 #educationBody .km-detail-next { grid-column:2; }
 #educationBody .kdr-grid { display:block; }
 #educationBody .kdr-outline { display:none; }
 #educationBody .kdr-mobile-sections { display:block; }
 #educationBody .kdr-mobile-sections nav { max-height:280px; overflow:auto; }
}
@media(max-width:760px) {
 #keduAsk .kedu-chat-header h2 { font-size:20px; }
 #keduAsk .kedu-chat-composer-help { display:none; }
 #educationBody .kdr-header-actions { display:flex; }
 #educationBody .kdr-header-actions button { flex:1 1 120px; font-size:13px; min-height:44px; }
}

#educationBody :is(.kdr-pdf,.kedu-chat-pdf)[hidden]{display:none!important;}

/* The conversation scrolls independently above a fully visible composer. */
#keduAsk:not(.kedu-ask-full) .kedu-chat-canvas { height:100%; min-height:0; }
#keduAsk :is(.kedu-ask-layout,.kedu-ask-main) { height:auto!important; flex:1 1 0%!important; min-height:0; }
#keduAsk .kedu-ask-thread { flex:1 1 0%; min-height:0!important; }
#keduAsk .kedu-chat-bottom { flex:0 0 auto; max-height:none; overflow:visible; }
#keduAsk .kedu-ask-composer { flex-shrink:0; }
#keduAsk .kedu-ask-row>button { position:relative; z-index:1; }
#keduAsk .kedu-ask-empty { min-height:0; padding:16px 12px; }
@media(max-width:760px),(max-width:1024px) and (pointer:coarse) {
 #keduAsk .kedu-ask-empty h3 { font-size:20px; line-height:1.35; margin-bottom:8px; }
 #keduAsk .kedu-ask-empty p { margin:8px 0; font-size:13px; }
 #keduAsk .kedu-ask-empty>.kedu-chat-avatar { margin-bottom:8px; }
 #keduAsk:not(.kedu-ask-full) .kedu-ask-view-bar:has([data-ask-title]:only-of-type) { padding-block:6px; }
 #keduAsk .kedu-ask-view-bar [data-ask-title] { font-size:14px; }
}
.kedu-math-display{display:block;max-width:100%;overflow-x:auto;overflow-y:hidden;margin:.7em 0;padding:.15em 0;white-space:normal;-webkit-overflow-scrolling:touch}.kedu-math-display .katex-display{margin:0}.kedu-math .katex{font-size:1.08em;white-space:nowrap}.kedu-math-plain{font-family:"Cambria Math","STIX Two Math",serif}

/* iPad Ask AI: reading focus stays in the app instead of becoming a clipped
   fixed-position fullscreen layer. Keep saved chats and the KEdu navigation. */
#keduAsk.kedu-ask-reading-focus{position:relative;z-index:auto;overflow:hidden;min-height:0;max-width:1440px}
#keduAsk.kedu-ask-reading-focus .kedu-ask-thread{min-height:0;flex:1 1 0%;overflow-y:auto;overscroll-behavior:contain}
#keduAsk.kedu-ask-reading-focus .kedu-chat-canvas{display:flex;flex-direction:column;min-height:0;overflow:hidden}
#keduAsk.kedu-ask-reading-focus .kedu-ask-view-bar{display:flex}
#keduAsk.kedu-ask-reading-focus .kedu-chat-bottom{flex:0 0 auto}
#keduAsk .kedu-ask-row textarea{max-height:168px!important;overflow-y:auto}
#keduAsk .kedu-chat-bottom{min-height:0;max-width:100%}
#keduAsk .kedu-ask-composer{max-width:100%}
@media (min-width:1025px) and (pointer:coarse){
 #keduAsk.kedu-ask-reading-focus{display:grid;grid-template-columns:clamp(195px,20vw,245px) minmax(0,1fr)}
 #keduAsk.kedu-ask-reading-focus .kedu-ask-chats{display:flex;position:static;min-width:0;max-height:none}
 #keduAsk.kedu-ask-reading-focus .kedu-chat-header{display:flex}
 #keduAsk.kedu-ask-reading-focus .kedu-chat-canvas{height:100%;min-width:0}
}
@media(max-width:1024px) and (pointer:coarse){
 #keduAsk.kedu-ask-reading-focus{height:var(--kedu-chat-available,100%);display:block}
 #keduAsk.kedu-ask-reading-focus .kedu-chat-canvas{height:100%}
}

/* Pending replies keep their identity and status in normal document flow. */
#keduAsk .kedu-chat-assistant[data-chat-pending]{display:flex;flex-direction:column;align-items:stretch;gap:10px;min-height:76px}
#keduAsk .kedu-chat-assistant[data-chat-pending] .kedu-chat-speaker{position:static;inset:auto;margin:0;flex:none;min-height:31px}
#keduAsk .kedu-chat-assistant[data-chat-pending] .kedu-chat-thinking{position:static;margin:0 0 0 43px;line-height:1.6;min-width:0;overflow-wrap:anywhere}

/* Composer owns its action row; only the message and attachment list scroll. */
#keduAsk .kedu-chat-bottom{display:flex;flex-direction:column;gap:6px;flex:0 0 auto;min-width:0;padding-top:8px;background:var(--ke-card,#fff)}
#keduAsk .kedu-ask-composer{display:flex;flex-direction:column;gap:4px;min-width:0;overflow:visible;border-color:#c9b8ed;border-radius:16px;background:var(--ke-card,#fff);box-shadow:0 4px 20px #4c1d9509}
#keduAsk .kedu-ask-composer:focus-within{border-color:#8b5cf6;box-shadow:0 0 0 3px #8b5cf617}
#keduAsk .kedu-ask-composer .kedu-ask-row{display:grid;grid-template-columns:44px minmax(0,1fr) auto;grid-template-rows:minmax(0,auto) 44px;gap:6px;padding:6px;min-width:0;flex:0 0 auto;overflow:visible}
#keduAsk .kedu-ask-composer .kedu-ask-row textarea{grid-column:1/-1;grid-row:1;min-height:40px;max-height:min(168px,22dvh)!important;width:100%!important;resize:none;overflow-y:auto;overscroll-behavior:contain;line-height:1.5;font-size:16px;padding:8px!important;scrollbar-width:thin}
#keduAsk .kedu-ask-composer .kedu-ask-attach{grid-column:1;grid-row:2;width:44px;height:44px;min-height:44px;border-radius:10px;cursor:pointer}
#keduAsk .kedu-ask-composer .kedu-ask-row>button{grid-column:3;grid-row:2;position:static;display:inline-flex;align-items:center;justify-content:center;width:auto;min-width:88px;height:44px;min-height:44px;margin:0;padding:10px 14px;border-radius:11px;background:#7c3aed;color:#fff;font-size:15px;line-height:1;white-space:nowrap;align-self:end}
#keduAsk .kedu-ask-composer .kedu-ask-row>button:hover:not(:disabled){background:#6d28d9}
#keduAsk .kedu-ask-pending{max-height:64px;overflow-y:auto;overscroll-behavior:contain;margin:0;scrollbar-width:thin}
#keduAsk .kedu-ask-status{max-height:44px;overflow-y:auto;overflow-wrap:anywhere;margin:0 8px;font-size:12px}
#keduAsk .kedu-chat-bottom>label.education-muted{max-height:48px;overflow-y:auto;margin:0;line-height:1.4}
#keduAsk .kedu-chat-bottom>p.education-muted{margin:0;padding-block:0!important;font-size:12px;line-height:1.4}
#keduAsk .kedu-chat-composer-help{margin:0;padding:0 6px;line-height:1.4}
#keduAsk.kedu-keyboard-open,#keduAsk.kedu-ask-full{height:var(--kedu-chat-available,100dvh)!important;min-height:0!important}
#keduAsk.kedu-ask-full{top:var(--kedu-viewport-top,0px)!important;bottom:auto!important}
#keduAsk.kedu-chat-short .kedu-chat-bottom{gap:0;padding-top:4px}
#keduAsk.kedu-chat-short .kedu-chat-bottom>:is(label.education-muted,p.education-muted,.kedu-chat-composer-help),
#keduAsk.kedu-chat-short .kedu-chat-header,
#keduAsk.kedu-chat-short.kedu-keyboard-open [data-ask-warning]{display:none!important}
#keduAsk.kedu-chat-short .kedu-ask-view-bar{padding:4px 8px;min-height:40px;gap:4px}
#keduAsk.kedu-chat-short .kedu-ask-pending{max-height:24px}
#keduAsk.kedu-chat-short .kedu-ask-composer .kedu-ask-row{gap:2px;padding:4px}
#keduAsk.kedu-chat-short .kedu-ask-composer .kedu-ask-row textarea{max-height:40px!important}
#keduAsk.kedu-chat-short .kedu-ask-status{max-height:18px;line-height:18px}
@media(max-width:760px){#keduAsk .kedu-chat-canvas{padding-inline:10px}#keduAsk .kedu-chat-bottom{padding-bottom:max(8px,env(safe-area-inset-bottom))}}

