.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}
