/* Dedicated approved materials views. The legacy renderer is not shown here. */
.kedu-app #educationPanel:has(.km-page) > .education-top,
.kedu-app #educationPanel:has(.km-page) > .edu-persistent-toolbar,
.kedu-app #educationPanel:has(.kedu-modern-study) > .education-top,
.kedu-app #educationPanel:has(.kedu-modern-study) > .edu-persistent-toolbar { display:none !important; }
.kedu-app #educationPanel:has(#eduSuccess, #eduGrowth, #keduTopicTutor, .kpq) > .education-top,
.kedu-app #educationPanel:has(#eduSuccess, #eduGrowth, #keduTopicTutor, .kpq) > .edu-persistent-toolbar { display:none !important; }
body.kedu-app:has(#chatPage:not([style*="display: none"]):not([style*="display:none"]) #educationPanel:not([style*="display: none"]):not([style*="display:none"]) :is(.km-page,.kedu-modern-study,.kpq)) .ke-bottom { display:none; }
#educationBody .km-page { --km-purple:#7028ed; --km-ink:#181334; --km-muted:#69708a; --km-line:#e4e4f1; color:var(--km-ink); max-width:1280px; margin:0 auto; font-family:Inter,'Plus Jakarta Sans',system-ui,sans-serif; }
.km-page *, .km-checkout * { box-sizing:border-box; }
#educationBody .km-page svg, .km-checkout svg { width:20px; height:20px; flex-shrink:0; vertical-align:middle; }
#educationBody .km-page button, .km-checkout button { font-family:inherit; cursor:pointer; }
#educationBody .km-page [hidden], .km-checkout [hidden] { display:none !important; }
#educationBody .km-page h1, #educationBody .km-page h2, #educationBody .km-page h3 { color:var(--km-ink); line-height:1.3; letter-spacing:-.025em; }
#educationBody .km-heading { display:flex; align-items:flex-start; gap:16px; margin:0 0 24px; }
#educationBody .km-heading h1 { margin:0 0 5px; font-size:29px; font-weight:750; color:var(--km-purple); }
#educationBody .km-heading p { margin:0; color:var(--km-muted); line-height:1.5; font-size:14px; }
#educationBody .km-back, .km-checkout .km-back { display:grid; place-items:center; width:44px; height:44px; flex-shrink:0; padding:0; border:1px solid #e4ddf4; border-radius:12px; background:white; color:#7526ec; }
#educationBody .km-tabs { display:flex; align-items:center; gap:6px; padding:7px 12px; border:1px solid var(--km-line); border-radius:14px; background:white; margin-bottom:16px; overflow:auto; scrollbar-width:thin; }
#educationBody .km-tabs button { display:flex; align-items:center; justify-content:center; gap:6px; flex:1 0 auto; border:0; border-radius:10px; color:#575d78; background:transparent; padding:13px 16px; font-size:13px; white-space:nowrap; }
#educationBody .km-tabs button[aria-current=page] { background:#f0e9ff; color:#6516df; font-weight:700; }
#educationBody .km-tabs button svg { width:17px; height:17px; color:#762cf3; }
#educationBody .km-toolbar { display:flex; gap:9px; align-items:center; flex-wrap:wrap; padding:12px; border:1px solid var(--km-line); border-radius:14px; background:#fff; margin-bottom:24px; }
#educationBody .km-search { position:relative; display:flex; align-items:center; flex:1 1 230px; gap:9px; min-width:0; margin:0; padding:0 12px; color:#737b95; border:1px solid var(--km-line); border-radius:10px; background:#fafaff; }
#educationBody .km-search input { width:100%; min-width:0; padding:12px 0; border:0; background:transparent; box-shadow:none; color:var(--km-ink); font:inherit; font-size:13px; }
#educationBody .km-toolbar > label:not(.km-search) { display:block; margin:0; min-width:0; }
#educationBody .km-toolbar select { width:100%; min-height:44px; max-width:165px; padding:9px 30px 9px 11px; color:#27213d; border:1px solid var(--km-line); border-radius:10px; background-color:white; font:inherit; font-size:12px; }
#educationBody .km-primary, .km-checkout .km-primary { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:44px; padding:11px 17px; border:0; border-radius:10px; background:linear-gradient(110deg,#862df8,#6920ed); color:white; font-weight:650; font-size:13px; text-decoration:none; box-shadow:0 3px 10px #7424ec14; }
#educationBody .km-secondary, .km-checkout .km-secondary { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:11px 17px; border:1px solid #d5c6f6; border-radius:10px; background:white; color:#6521d6; font-size:13px; }
#educationBody .km-primary:disabled, .km-checkout .km-primary:disabled { opacity:.6; cursor:wait; }
#educationBody .km-page button:focus-visible, #educationBody .km-page input:focus-visible, #educationBody .km-page select:focus-visible, #educationBody .km-page textarea:focus-visible, #educationBody .km-page summary:focus-visible, .km-checkout button:focus-visible { outline:3px solid #bba0ff; outline-offset:3px; }
#educationBody .km-section-title { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 14px; }
#educationBody .km-section-title h2 { margin:0; font-size:18px; font-weight:750; }
#educationBody .km-section-title > span { font-size:12px; color:#79768c; }
#educationBody .km-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:24px; }
#educationBody .km-card { min-width:0; display:flex; flex-direction:column; padding:16px; border:1px solid #e2e5f2; border-radius:13px; background:#fff; box-shadow:0 5px 16px #54318503; }
#educationBody .km-card-top { display:flex; justify-content:space-between; align-items:flex-start; gap:8px; margin-bottom:12px; }
.km-file { display:inline-flex; flex-direction:column; align-items:center; justify-content:center; position:relative; width:44px; height:48px; border-radius:11px; background:#eee8ff; color:#782cf0; flex-shrink:0; }
.km-file svg { width:25px !important; height:25px !important; }
.km-file small { font-size:7px; font-weight:800; line-height:1; padding-top:2px; }
.km-file-red { background:#fff0f0; color:#ef3e4a; }
.km-file-blue { background:#edf3ff; color:#2476ec; }
.km-file-orange { background:#fff3e9; color:#e97b28; }
.km-file-green { background:#eaf8f1; color:#23a66f; }
#educationBody .km-card h3 { margin:0 0 4px; font-size:14px; font-weight:700; overflow-wrap:anywhere; }
#educationBody .km-card-subject { margin:0 0 10px; color:#72758f; font-size:12px; line-height:1.4; overflow-wrap:anywhere; }
#educationBody .km-card-meta { display:flex; align-items:center; gap:5px; color:#7a8199; font-size:10px; margin:0 0 13px; line-height:1.4; }
#educationBody .km-card-meta svg { width:13px; height:13px; }
#educationBody .km-study { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; min-height:36px; margin-top:auto; padding:8px 10px; border:0; border-radius:8px; background:#f1eaff; color:#7024e7; font-weight:650; font-size:12px; }
#educationBody .km-study svg { width:16px; height:16px; }
#educationBody .km-card-menu { position:relative; margin-left:auto; color:#67657c; }
#educationBody .km-card-menu summary { display:grid; place-items:center; width:30px; height:30px; list-style:none; cursor:pointer; border-radius:7px; letter-spacing:2px; color:#6d638c; font-size:11px; }
#educationBody .km-card-menu summary::-webkit-details-marker { display:none; }
#educationBody .km-card-menu[open] summary { background:#f1eaff; color:#7024e7; }
#educationBody .km-card-menu > div { position:absolute; right:0; top:34px; z-index:12; min-width:170px; padding:5px; border:1px solid #e5dff2; border-radius:10px; box-shadow:0 10px 30px #24144720; background:white; }
#educationBody .km-card-menu button { display:block; width:100%; padding:10px; min-height:38px; text-align:left; border:0; border-radius:6px; background:transparent; color:#42325d; font-size:12px; }
#educationBody .km-card-menu button:hover { background:#f4effe; }
#educationBody .km-card-menu [data-delete-document] { color:#c6374a; }
#educationBody .km-composer { display:block; margin:0; padding:20px; border:1px solid var(--km-line,#e4e4f1); border-radius:15px; background:#fff; }
#educationBody .km-composer-heading { display:flex; align-items:flex-start; gap:13px; margin-bottom:18px; }
#educationBody .km-heading-icon { display:grid; place-items:center; flex-shrink:0; width:43px; height:43px; color:#792cf1; border-radius:11px; background:#f1eaff; }
#educationBody .km-composer-heading h2 { margin:0 0 4px; font-size:17px; }
#educationBody .km-composer-heading p { margin:0; font-size:12px; color:#727b96; line-height:1.5; }
#educationBody .km-upload-page .km-composer-heading { display:none; }
#educationBody .km-modes { display:flex; gap:5px; padding:4px; margin-bottom:18px; border:1px solid #e1d9f5; border-radius:9px; background:#fff; }
#educationBody .km-modes button { display:flex; align-items:center; justify-content:center; gap:8px; flex:1; min-width:0; min-height:39px; padding:9px 8px; border:0; border-radius:7px; color:#6b6690; background:transparent; font-size:12px; }
#educationBody .km-modes button[aria-pressed=true] { background:#eee6ff; color:#6b20e8; font-weight:650; }
#educationBody .km-modes svg { width:18px; height:18px; }
#educationBody .km-mode-mobile { display:none; }
#educationBody .km-fields { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:0 0 15px; }
#educationBody .km-composer label { display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin:0; font-size:12px; font-weight:550; color:#343047; }
#educationBody .km-composer .km-optional { color:#8a859c; font-size:11px; font-weight:400; }
#educationBody .km-fields input, #educationBody .km-paste textarea { width:100%; min-width:0; margin:0; padding:11px 12px; border:1px solid #e0e2ef; border-radius:9px; background:#fff; color:#2c263c; font:inherit; font-size:13px; box-shadow:none; }
#educationBody .km-fields input::placeholder, #educationBody .km-paste textarea::placeholder { color:#9297ad; font-weight:400; }
#educationBody .km-source-grid { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(200px,1fr); gap:18px; margin-bottom:16px; }
#educationBody .km-dropzone { display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:5px; min-height:180px; border:1px dashed #c8b9e9; border-radius:12px; background:#fbfaff; padding:18px; color:#595472; }
#educationBody .km-dropzone.is-dragging { background:#eee5ff; border-color:#7827f0; }
#educationBody .km-upload-icon { color:#7827f0; margin-bottom:2px; }
#educationBody .km-upload-icon svg { width:28px; height:28px; }
#educationBody .km-dropzone strong { font-size:13px; color:#2d2546; }
#educationBody .km-dropzone p { margin:0; font-size:12px; font-weight:400; }
#educationBody .km-dropzone > small { color:#8385a0; font-size:11px; }
#educationBody .km-composer .km-choose { position:relative; display:flex; justify-content:center; min-height:36px; width:min(100%,230px); border-radius:8px; padding:9px 12px; margin-top:8px; background:#eee6ff; color:#6d21e8; cursor:pointer; overflow:hidden; }
#educationBody .km-choose input { position:absolute; inset:0; opacity:0; width:100%; height:100%; cursor:pointer; }
#educationBody .km-choose:focus-within { outline:3px solid #bba0ff; outline-offset:3px; }
#educationBody .km-selected { overflow-wrap:anywhere; max-width:100%; color:#6c27d4; }
#educationBody .km-paste { display:block; font-size:13px; }
#educationBody .km-paste textarea { display:block; margin:7px 0; min-height:165px; resize:vertical; }
#educationBody .km-paste small { color:#8a859c; font-size:11px; font-weight:400; }
#educationBody .km-next { padding:17px; border-radius:12px; background:#f5f0ff; color:#6b6185; font-size:12px; }
#educationBody .km-next h3 { margin:0 0 12px; color:#6b20df; font-size:14px; }
#educationBody .km-next p { display:flex; gap:8px; align-items:flex-start; margin:10px 0; line-height:1.5; }
#educationBody .km-next svg { width:16px; height:16px; color:#8a3bf5; margin-top:1px; }
#educationBody .km-next small { display:block; font-size:10px; line-height:1.5; color:#83749e; margin-top:15px; }
#educationBody .km-composer .km-consent { display:flex; flex-wrap:nowrap; align-items:flex-start; gap:9px; margin:16px 0; color:#6d6480; font-size:11px; font-weight:400; line-height:1.5; }
#educationBody .km-consent input { width:16px; height:16px; flex-shrink:0; margin:0; accent-color:#7a2cef; }
#educationBody .km-form-footer { display:flex; gap:20px; align-items:center; justify-content:space-between; }
#educationBody .km-form-footer p { display:flex; gap:6px; align-items:center; font-size:10px; color:#8b849c; margin:0; line-height:1.5; }
#educationBody .km-form-footer p svg { width:14px; height:14px; }
#educationBody .km-form-footer .km-primary svg { transform:rotate(180deg); width:17px; height:17px; }
#educationBody .km-empty, #educationBody .km-no-results, #educationBody .km-error { display:flex; flex-direction:column; align-items:center; text-align:center; padding:35px 22px; border:1px dashed #d2c5ed; border-radius:14px; background:#fcfbff; margin-bottom:22px; }
#educationBody .km-empty-art { display:grid; place-items:center; width:100px; height:100px; border-radius:26px; background:#eee5ff; color:#8037f3; margin-bottom:16px; }
#educationBody .km-empty-art svg { width:60px; height:60px; }
#educationBody .km-empty h2 { margin:0 0 9px; font-size:21px; }
#educationBody .km-empty p, #educationBody .km-no-results p, #educationBody .km-error p { margin:0 0 18px; max-width:440px; font-size:13px; line-height:1.6; color:#78728c; }
#educationBody .km-error { border-style:solid; border-color:#f1dce2; background:#fff9fa; }
#educationBody .km-loading { padding:40px; text-align:center; color:#817592; }
.km-sr { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
#educationBody .km-upload-error { margin-top:18px; padding:17px; border:1px solid #f3d5df; border-radius:12px; background:#fff8fa; }
#educationBody .km-upload-error h3 { font-size:15px; color:#b94862; margin:0 0 7px; }
#educationBody .km-upload-error p { color:#a4687b; font-size:12px; line-height:1.6; margin:0 0 7px; }
#educationBody .km-upload-error small { display:block; color:#a08a98; font-size:10px; line-height:1.6; }
#educationBody .km-upload-error > div { display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
.km-checkout { position:fixed; inset:0; margin:auto; width:min(520px,calc(100vw - 32px)); height:fit-content; max-height:calc(100dvh - 32px); padding:24px; border:1px solid #e8e0f5; border-radius:20px; color:#201632; background:#fff; box-shadow:0 24px 90px #24114635; overflow:auto; font-family:Inter,system-ui,sans-serif; }
.km-checkout::backdrop { background:#20113d70; backdrop-filter:blur(4px); }
.km-payment-brand { display:flex; align-items:center; gap:9px; margin:0 0 22px; padding-bottom:17px; border-bottom:1px solid #f0eaf7; color:#7323e9; }
.km-payment-brand img { width:32px; height:32px; border-radius:9px; }
.km-payment-brand strong { font-size:19px; }
.km-checkout > header { display:flex; align-items:flex-start; gap:12px; margin-bottom:24px; }
.km-checkout h2 { color:#7124e8; margin:1px 0 5px; font-size:23px; line-height:1.25; }
.km-checkout header p { color:#7d738e; font-size:12px; margin:0; line-height:1.5; }
.km-payment-material { display:flex; gap:13px; align-items:center; padding:16px; border:1px solid #e6e2ee; border-radius:12px; margin-bottom:14px; }
.km-payment-material > div { min-width:0; overflow-wrap:anywhere; }
.km-payment-material strong { font-size:14px; }
.km-payment-material p { font-size:12px; color:#81718c; margin:5px 0; }
.km-payment-material small { font-size:11px; color:#8d8098; }
.km-payment-fee { padding:17px; border:1px solid #e8e1f5; border-radius:12px; background:#fbf9ff; }
.km-payment-fee > div { display:flex; justify-content:space-between; gap:12px; }
.km-payment-fee strong { font-size:14px; }
.km-payment-fee b { color:#7629e4; font-size:19px; }
.km-payment-fee p, .km-payment-fee small { font-size:12px; line-height:1.6; color:#796c8d; }
.km-payment-fee small { font-size:11px; }
.km-checkout > h3 { font-size:13px; margin:23px 0 10px; }
.km-payment-wallet { display:flex; gap:13px; align-items:center; border:1px solid #e2d7f5; border-radius:11px; padding:15px; color:#7728ea; }
.km-payment-wallet div { flex:1; }
.km-payment-wallet strong { font-size:13px; color:#3b2b57; }
.km-payment-wallet p { font-size:11px; margin:4px 0 0; color:#8c7d9d; }
.km-private { display:flex; gap:6px; align-items:center; justify-content:center; margin:18px 0; font-size:10px; color:#8b8097; }
.km-private svg { width:13px; height:13px; }
.km-checkout footer { display:grid; gap:9px; }
#educationBody .km-detail .km-heading { align-items:flex-start; }
#educationBody .km-detail-upload { margin-left:auto; white-space:nowrap; }
#educationBody .km-detail-actions { display:flex; justify-content:flex-end; gap:10px; margin:-7px 0 20px; }
#educationBody .km-detail-actions button { min-height:42px; padding:10px 18px; border-radius:9px; font-size:13px; }
#educationBody .km-detail-actions .education-primary { border:0; background:linear-gradient(110deg,#862df8,#6920ed); color:#fff; }
#educationBody .km-detail-actions .education-ghost { border:1px solid #d9cff1; background:white; color:#6b24dd; }
#educationBody .km-detail-grid { display:grid; grid-template-columns:minmax(170px,.8fr) minmax(0,1.8fr) minmax(190px,.9fr); gap:14px; align-items:start; }
#educationBody .km-detail-sidebar, #educationBody .km-detail-main, #educationBody .km-detail-next { padding:17px; border:1px solid #e5e3ef; border-radius:13px; background:#fff; min-width:0; }
#educationBody .km-detail-file { display:flex; gap:10px; align-items:center; margin-bottom:16px; }
#educationBody .km-detail-file > div { min-width:0; }
#educationBody .km-detail-file strong { display:block; font-size:12px; line-height:1.5; overflow-wrap:anywhere; }
#educationBody .km-detail-file small { display:block; font-size:10px; color:#8c819b; margin-top:3px; }
#educationBody .km-detail-file .km-file small { font-size:7px; color:inherit; margin-top:0; }
#educationBody .km-detail-sidebar nav { display:grid; gap:5px; }
#educationBody .km-detail-sidebar nav button { width:100%; padding:11px 10px; border:0; border-radius:8px; background:transparent; color:#74638b; text-align:left; font-size:12px; }
#educationBody .km-detail-sidebar nav button[aria-pressed=true] { background:#f1eaff; color:#6d20e7; font-weight:650; }
#educationBody .km-detail-delete { margin:18px 0 0; padding:9px 8px; border:0; background:transparent; color:#b64d64; font-size:11px; }
#educationBody .km-detail-main h2 { font-size:17px; margin:0 0 10px; }
#educationBody .km-detail-note { font-size:12px; line-height:1.65; color:#7b718e; margin:0 0 16px; }
#educationBody .km-detail-metadata { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; margin:18px 0 24px; }
#educationBody .km-detail-metadata > div { padding:10px; border:1px solid #e9e2f5; border-radius:9px; background:#fdfbff; }
#educationBody .km-detail-metadata small { display:block; color:#9a8aa9; font-size:9px; margin-bottom:5px; }
#educationBody .km-detail-metadata strong { display:block; color:#6c5388; font-size:11px; font-weight:550; overflow-wrap:anywhere; }
#educationBody .km-detail-outline { display:grid; gap:7px; margin:0; padding:0; list-style:none; }
#educationBody .km-detail-outline button { display:flex; align-items:center; gap:10px; width:100%; padding:10px 11px; border:1px solid #ebe5f5; border-radius:8px; background:#fff; color:#786586; text-align:left; }
#educationBody .km-detail-outline span { color:#a395b5; font-size:10px; }
#educationBody .km-detail-outline strong { flex:1; font-size:11px; font-weight:550; color:#514264; }
#educationBody .km-detail-outline small { font-size:9px; color:#967ab7; }
#educationBody .km-detail-next { background:#fcfaff; }
#educationBody .km-detail-next h3 { margin:0 0 12px; font-size:15px; color:#6d20e7; }
#educationBody .km-detail-next button { display:block; width:100%; padding:13px; margin-bottom:10px; border:1px solid #ece3fa; border-radius:10px; text-align:left; background:#fff; }
#educationBody .km-detail-next strong { display:block; font-size:12px; color:#7025e2; margin-bottom:5px; }
#educationBody .km-detail-next small { display:block; font-size:10px; color:#9583a8; line-height:1.6; }
#educationBody .km-detail-next > p { font-size:10px; line-height:1.6; color:#a38fae; margin:15px 0 0; }
#educationBody .km-detail-source { white-space:pre-wrap; overflow-wrap:anywhere; word-break:break-word; font:inherit; font-size:13px; line-height:1.8; color:#61566e; }
#educationBody .km-past-page { max-width:1000px; }
#educationBody .km-past-existing { padding:22px; border:1px solid #e7e0f0; border-radius:14px; background:white; }
#educationBody .km-past-existing form > label:first-child { display:grid; gap:10px; font-size:14px; color:#4d3b65; }
#educationBody .km-past-existing select { width:100%; padding:13px; min-height:45px; border:1px solid #e5dcf1; border-radius:10px; color:#705c87; font:inherit; font-size:13px; margin-bottom:18px; }
#educationBody .km-past-existing .km-next { display:block; margin-bottom:20px; }
#educationBody .km-past-existing .km-consent { display:flex; align-items:flex-start; gap:10px; font-size:12px; color:#867394; line-height:1.6; margin-bottom:18px; }
#educationBody .km-past-existing .km-primary { width:100%; }
@media(max-width:1100px) { #educationBody .km-detail-grid { grid-template-columns:180px minmax(0,1fr); } #educationBody .km-detail-next { grid-column:2; } }
@media (max-width:1150px) { #educationBody .km-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } #educationBody .km-toolbar .km-search { flex-basis:100%; } #educationBody .km-toolbar > label:not(.km-search) { flex:1; } #educationBody .km-toolbar select { max-width:none; } }
@media (max-width:800px) { #educationBody .km-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } #educationBody .km-source-grid { grid-template-columns:1fr; } #educationBody .km-next { display:none; } }
@media (max-width:600px) {
  .kedu-app #educationPanel:has(.km-page) { padding:18px 12px 24px; }
  #educationBody .km-heading { gap:10px; margin-bottom:18px; }
  #educationBody .km-heading h1 { font-size:23px; }
  #educationBody .km-heading p { font-size:12px; }
  #educationBody .km-back { width:34px; height:36px; border-radius:10px; }
  #educationBody .km-tabs { display:none; }
  #educationBody .km-toolbar { display:grid; grid-template-columns:1fr 1fr; padding:0; background:transparent; border:0; gap:8px; margin-bottom:20px; }
  #educationBody .km-search { grid-column:1 / -1; width:100%; }
  #educationBody .km-toolbar select { max-width:none; width:100%; font-size:11px; }
  #educationBody .km-toolbar > label:nth-of-type(4) { grid-column:1 / -1; }
  #educationBody .km-toolbar > button { grid-column:1 / -1; width:100%; }
  #educationBody .km-section-title { margin-bottom:11px; }
  #educationBody .km-section-title h2 { font-size:17px; }
  #educationBody .km-grid { grid-template-columns:1fr; gap:9px; margin-bottom:18px; }
  #educationBody .km-card { position:relative; display:grid; grid-template-columns:44px minmax(0,1fr); column-gap:11px; padding:13px; border-radius:11px; }
  #educationBody .km-card-top { grid-column:1; grid-row:1 / 4; margin:0; }
  #educationBody .km-card-top .km-card-menu { position:absolute; right:8px; top:8px; }
  #educationBody .km-card h3 { grid-column:2; padding-right:25px; margin:0 0 3px; font-size:13px; }
  #educationBody .km-card-subject { grid-column:2; font-size:11px; margin:0 0 5px; }
  #educationBody .km-card-meta { grid-column:2; font-size:9px; margin:0 0 9px; }
  #educationBody .km-card .km-study { grid-column:1 / -1; min-height:34px; }
  #educationBody .km-composer { padding:14px; border-radius:12px; }
  #educationBody .km-upload-page .km-composer { display:flex; flex-direction:column; }
  #educationBody .km-upload-page .km-modes { order:1; }
  #educationBody .km-upload-page .km-source-grid { order:2; }
  #educationBody .km-upload-page .km-fields { order:3; }
  #educationBody .km-upload-page .km-consent { order:4; }
  #educationBody .km-upload-page .km-form-footer { order:5; }
  #educationBody .km-upload-page #educationStudyUploadStatus { order:6; }
  #educationBody .km-composer-heading { gap:9px; margin-bottom:14px; }
  #educationBody .km-heading-icon { width:33px; height:35px; border-radius:8px; }
  #educationBody .km-composer-heading h2 { font-size:15px; }
  #educationBody .km-composer-heading p { font-size:10px; }
  #educationBody .km-modes { gap:2px; padding:3px; margin-bottom:15px; }
  #educationBody .km-modes button { font-size:10px; padding:8px 5px; gap:4px; min-height:37px; }
  #educationBody .km-modes button svg { width:14px; height:14px; }
  #educationBody .km-mode-desktop { display:none; }
  #educationBody .km-mode-mobile { display:inline; }
  #educationBody .km-fields { gap:10px; grid-template-columns:1fr; }
  #educationBody .km-fields input { font-size:13px; padding:11px; }
  #educationBody .km-dropzone { min-height:174px; padding:16px 10px; }
  #educationBody .km-composer .km-consent { font-size:10px; line-height:1.6; }
  #educationBody .km-form-footer { flex-direction:column-reverse; gap:12px; align-items:stretch; }
  #educationBody .km-form-footer p { justify-content:center; font-size:9px; }
  #educationBody .km-form-footer button { width:100%; }
  .km-checkout { width:100%; max-width:none; height:100dvh; max-height:100dvh; margin:0; border:0; border-radius:0; padding:22px 18px max(22px,env(safe-area-inset-bottom)); }
  .km-checkout footer { margin-top:22px; }
  #educationBody .km-detail .km-heading { flex-wrap:wrap; }
  #educationBody .km-detail .km-heading > div { flex:1; min-width:0; }
  #educationBody .km-detail .km-heading h1 { font-size:20px; overflow-wrap:anywhere; }
  #educationBody .km-detail-upload { width:100%; margin:6px 0 0; font-size:11px; min-height:36px; }
  #educationBody .km-detail-actions { display:grid; grid-template-columns:1fr; gap:8px; margin:0 0 15px; }
  #educationBody .km-detail-grid { display:flex; flex-direction:column; gap:12px; }
  #educationBody .km-detail-grid > * { width:100%; }
  #educationBody .km-detail-sidebar { padding:13px; }
  #educationBody .km-detail-sidebar nav { display:flex; gap:4px; }
  #educationBody .km-detail-sidebar nav button { text-align:center; font-size:10px; padding:10px 6px; }
  #educationBody .km-detail-delete { margin-top:9px; font-size:10px; }
  #educationBody .km-detail-metadata { gap:5px; margin:15px 0 20px; }
  #educationBody .km-detail-metadata > div { padding:8px; }
  #educationBody .km-detail-outline small { max-width:50px; }
}
@media(max-width:700px) { body.kedu-app:has(#chatPage:not([style*="display: none"]):not([style*="display:none"]) #educationPanel:not([style*="display: none"]):not([style*="display:none"]) :is(.km-page,.kedu-modern-study,.kpq)) #chatPage { bottom:auto !important; height:calc(var(--ks-vv-height,100dvh) - 68px - env(safe-area-inset-bottom,0px)) !important; } }

/* Compact KEdu workspace: replaces the retired multi-row action wall. */
#educationBody .kw-source-icon svg { width:22px; height:22px; }
#educationPanel .edu-workspace-compact { display:flex; align-items:center; gap:12px; position:relative; padding:8px!important; margin:0 0 24px!important; border:1px solid #e6e2f1; border-radius:14px; background:#fff; box-shadow:none; overflow:visible!important; }
#educationPanel .edu-workspace-compact .edu-workspace-navigation { flex:1; min-width:0; width:auto; display:flex; }
#educationPanel .edu-workspace-compact #educationTabs { display:flex!important; flex-wrap:nowrap!important; overflow-x:auto; gap:4px; margin:0; padding:0; border:0; min-width:0; }
#educationPanel .edu-workspace-compact #educationTabs button { flex:0 0 auto; width:auto; min-height:44px; padding:10px 14px!important; font-size:13px; border:0; border-radius:9px; background:transparent; color:#5c6073; white-space:nowrap; box-shadow:none; }
#educationPanel .edu-workspace-compact #educationTabs button.active { color:#6926d7; background:#f1eaff; font-weight:700; }
#educationPanel .edu-workspace-more { position:relative; margin:0; flex:none; }
#educationPanel .edu-workspace-more>summary { list-style:none; cursor:pointer; min-height:44px; padding:12px 14px; border-radius:9px; color:#6926d7; background:#f8f5ff; font-size:13px; font-weight:650; }
#educationPanel .edu-workspace-more>summary::-webkit-details-marker { display:none; }
#educationPanel .edu-workspace-more>summary::after { content:'⌄'; margin-left:10px; }
#educationPanel .edu-workspace-more[open] .edu-workspace-actions { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; position:absolute; right:0; top:calc(100% + 10px); width:min(470px,calc(100vw - 44px)); padding:16px!important; margin:0!important; border:1px solid #e6e2f1; border-radius:14px; box-shadow:0 16px 48px #32245c20; background:#fff; z-index:40; }
#educationPanel .edu-workspace-more:not([open]) .edu-workspace-actions { display:none!important; }
#educationPanel .edu-workspace-more .edu-workspace-start,#educationPanel .edu-workspace-more .edu-workspace-tools { display:contents!important; }
#educationPanel .edu-workspace-more .edu-workspace-actions button { min-height:44px; margin:0!important; width:100%; padding:10px!important; font-size:13px; border:1px solid #e5ddef; background:#faf8ff; color:#6926d7; border-radius:9px; }
body.kedu-app #educationPanel:has(:is(.kw-practice,.kw-catalog,.kw-plans))>.edu-persistent-toolbar,
body.kedu-app #educationPanel:has(:is(.kw-practice,.kw-catalog,.kw-plans))>.education-top { display:none!important; }
#educationBody .kw-intro { margin:0 0 24px; }
#educationBody .kw-intro h1 { margin:6px 0; font-size:clamp(24px,2.5vw,32px); color:#18132c; line-height:1.2; font-weight:750; letter-spacing:-.7px; }
#educationBody .kw-intro p { color:#6d6b7e; margin:8px 0 0; font-size:14px; line-height:1.5; }
#educationBody .kw-eyebrow { font-size:10px; letter-spacing:1.3px; color:#817695; font-weight:700; }
#educationBody .kw-practice,#educationBody .kw-catalog,#educationBody .kw-plans { max-width:1220px; margin:0 auto; color:#211c34; }
#educationBody .kw-practice * { box-sizing:border-box; }
#educationBody .kw-practice-grid { display:grid; grid-template-columns:minmax(0,1fr) 285px; gap:20px; align-items:start; }
#educationBody .kw-practice-main { min-width:0; display:grid; gap:20px; }
#educationBody .kw-card { background:#fff; border:1px solid #e7e2f1; border-radius:14px; padding:22px; min-width:0; box-shadow:0 3px 14px #35235303; }
#educationBody .kw-card h2 { margin:0; font-size:17px; color:#211c34; line-height:1.4; }
#educationBody .kw-section-title { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
#educationBody .kw-section-title h2 { display:flex; align-items:center; gap:10px; }
#educationBody .kw-section-title h2>span { display:grid; place-items:center; flex:none; width:27px; height:27px; border-radius:50%; background:#7529ed; color:#fff; font-size:13px; }
#educationBody [data-source-count] { font-size:12px; white-space:nowrap; color:#746c85; }
#educationBody .kw-muted { color:#777185; font-size:12px; line-height:1.6; margin:10px 0; }
#educationBody .kw-practice input:not([type=checkbox]),#educationBody .kw-practice select,#educationBody .kw-catalog input { width:100%; min-width:0; min-height:44px; border:1px solid #e0daec; border-radius:8px; padding:10px 12px; background:#fff; color:#282035; font:inherit; font-size:14px; outline-offset:3px; }
#educationBody .kw-practice input:focus-visible,#educationBody .kw-practice select:focus-visible,#educationBody .kw-catalog input:focus-visible { outline:2px solid #8b5cf6; }
#educationBody .kw-search { display:block; margin:16px 0 12px; }
#educationBody .kw-sources { border:0; padding:0; margin:0; display:grid; gap:8px; max-height:410px; overflow:auto; scrollbar-width:thin; }
#educationBody .kw-source { display:flex; align-items:center; gap:12px; border:1px solid #e9e4f0; background:#fff; border-radius:9px; padding:12px; cursor:pointer; min-height:66px; }
#educationBody .kw-source[hidden] { display:none; }
#educationBody .kw-source:has(input:checked) { background:#faf7ff; border-color:#b69ae9; }
#educationBody .kw-source:has(input:disabled) { opacity:.6; }
#educationBody .kw-source>span:nth-child(2) { flex:1; min-width:0; }
#educationBody .kw-source strong { display:block; font-weight:600; font-size:13px; overflow-wrap:anywhere; line-height:1.5; }
#educationBody .kw-source small { display:block; color:#81788f; font-size:11px; margin-top:3px; }
#educationBody .kw-source-icon { width:34px; height:38px; display:grid; place-items:center; color:#7c3aed; background:#f0e8fc; border-radius:8px; flex:none; font-size:22px; }
#educationBody .kw-source input[type=checkbox] { width:20px; height:20px; flex:none; accent-color:#7529ed; margin:0; }
#educationBody .kw-settings { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-top:20px; }
#educationBody .kw-settings label { display:flex; flex-direction:column; gap:8px; font-size:12px; color:#42394f; }
#educationBody .kw-settings label>small { color:#898093; font-size:11px; }
#educationBody .kw-settings .kw-exam-title { grid-column:1/-1; }
#educationBody .kw-exam-title span { color:#8c8296; display:inline; }
#educationBody .kw-summary { position:sticky; top:12px; }
#educationBody .kw-summary dl { border-top:1px solid #eee9f5; margin:18px 0; padding-top:6px; }
#educationBody .kw-summary dl>div { display:flex; justify-content:space-between; gap:12px; margin:18px 0; font-size:12px; }
#educationBody .kw-summary dt { color:#81778d; }
#educationBody .kw-summary dd { font-weight:650; margin:0; text-align:right; }
#educationBody .kw-summary button { width:100%; min-height:44px; border-radius:8px; font-size:13px; }
#educationBody .kw-summary [type=submit] { background:#7529ed; color:#fff; border:0; padding:12px; }
#educationBody .kw-summary [type=submit]:disabled { opacity:.5; cursor:not-allowed; }
#educationBody .kw-summary>.kw-muted { text-align:center; font-size:11px; }
#educationBody .kw-summary-links { display:grid; gap:8px; border-top:1px solid #eee9f5; margin-top:20px; padding-top:16px; }
#educationBody .kw-summary-links button { color:#7529ed; background:#faf7ff; border:1px solid #e8def7; }
#educationBody .kw-empty { padding:24px 12px; background:#faf8ff; text-align:center; border:1px dashed #d8ccec; border-radius:10px; margin-top:14px; }
#educationBody .kw-empty p { font-size:13px; color:#80748c; line-height:1.6; }
#educationBody .kw-sr { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
#educationBody .kw-catalog-tools { display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin:20px 0; }
#educationBody .kw-catalog-tools label { flex:1 1 230px; }
#educationBody .kw-catalog-tabs { display:flex; gap:6px; flex-wrap:wrap; }
#educationBody .kw-catalog-tabs button { min-height:44px; padding:10px 16px; border:1px solid #e5ddef; border-radius:9px; background:#fff; color:#7132ca; }
#educationBody .kw-catalog-tabs button[aria-current=page] { background:#f0e8fc; border-color:#cdb7ef; font-weight:650; }
#educationBody .kw-catalog .education-grid,#educationBody .kw-plans .education-grid { gap:16px; }
#educationBody .kw-catalog .education-card,#educationBody .kw-plans .education-card { border:1px solid #e7e2f1; border-radius:14px; padding:22px; box-shadow:none; background:#fff; }
#educationBody .kw-catalog .education-card h4 { font-size:17px; margin:0 0 10px; }
#educationBody .kw-catalog .education-card p,#educationBody .kw-plans p { font-size:13px; line-height:1.65; color:#746b83; overflow-wrap:anywhere; }
#educationBody .kw-catalog .education-card button { min-height:44px; }
#educationBody .kw-plans>.education-card { margin:24px 0; }
#educationBody .kw-plans h3 { color:#30223f; }
#educationBody .kw-plans { display:block; }
#educationBody .kw-plans>.education-card { margin:20px 0; }
#educationBody .kw-plans .education-primary,#educationBody .kw-plans .education-ghost { min-height:44px; }
@media(max-width:1050px) { #educationBody .kw-practice-grid { grid-template-columns:minmax(0,1fr) 250px; gap:16px; } #educationBody .kw-card { padding:18px; } #educationBody .kw-settings { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:1000px) { #educationBody .kw-practice-grid { grid-template-columns:1fr; } #educationBody .kw-summary { position:static; } #educationBody .kw-summary dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 18px; } #educationBody .kw-summary dl>div { display:block; margin:0; } #educationBody .kw-summary dd { text-align:left; margin-top:4px; } }
@media(max-width:760px) { #educationBody .kw-practice-grid { grid-template-columns:1fr; } #educationBody .kw-summary { position:static; } #educationBody .kw-summary dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 18px; } #educationBody .kw-summary dl>div { display:block; margin:0; } #educationBody .kw-summary dd { text-align:left; margin-top:4px; } #educationPanel .edu-workspace-compact { gap:6px; flex-wrap:wrap; } #educationPanel .edu-workspace-compact .edu-workspace-navigation { flex-basis:100%; } #educationPanel .edu-workspace-more { margin-left:auto; } }
@media(max-width:600px) { #educationBody .kw-intro { margin-bottom:18px; } #educationBody .kw-intro h1 { font-size:25px; } #educationBody .kw-eyebrow { font-size:9px; } #educationBody .kw-practice-grid,#educationBody .kw-practice-main { gap:14px; } #educationBody .kw-card { padding:16px; border-radius:12px; } #educationBody .kw-section-title { align-items:flex-start; gap:6px; flex-wrap:wrap; } #educationBody .kw-card h2 { font-size:15px; } #educationBody .kw-sources { max-height:340px; } #educationBody .kw-source { gap:9px; padding:10px; } #educationBody .kw-settings { gap:14px 10px; } #educationBody .kw-practice input:not([type=checkbox]),#educationBody .kw-practice select,#educationBody .kw-catalog input { font-size:16px; } #educationBody .kw-source strong { font-size:13px; } #educationBody .kw-catalog .education-card,#educationBody .kw-plans .education-card { padding:18px; } }


/* Material details must reflow as the Safari Split View window narrows.
   Prevent long uploaded filenames from setting a minimum grid width. */
@media (max-width:1100px){
 #educationBody .km-page,#educationBody .km-detail,#educationBody .km-detail-grid,
 #educationBody .km-detail-sidebar,#educationBody .km-detail-main,
 #educationBody .km-detail-next{min-width:0;max-width:100%;box-sizing:border-box}
 #educationBody .km-detail .km-heading{min-width:0}
 #educationBody .km-detail .km-heading > div{min-width:0;max-width:100%}
 #educationBody .km-detail .km-heading h1{
  max-width:100%;overflow-wrap:anywhere;word-break:break-word;
  font-size:clamp(20px,3.1vw,29px);line-height:1.2
 }
 #educationBody .km-detail-file{min-width:0}
 #educationBody .km-detail-file strong{overflow-wrap:anywhere;word-break:break-word}
 #educationBody .km-detail-meta{min-width:0}
}
@media (max-width:850px){
 #educationBody .km-detail-grid{
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px
 }
 #educationBody .km-detail-grid > *{grid-column:1!important;min-width:0;width:100%}
 #educationBody .km-detail-sidebar nav{display:flex;flex-wrap:wrap;gap:5px}
 #educationBody .km-detail-sidebar nav button{width:auto;flex:1 1 130px}
 #educationBody .km-detail-actions{flex-wrap:wrap;justify-content:flex-start}
 #educationBody .km-detail-actions > *{min-width:0;max-width:100%}
}
@media (max-width:600px){
 #educationBody .km-detail-grid{display:flex!important;flex-direction:column}
 #educationBody .km-detail-grid > *{width:100%}
}

/* Explicit CBT source picker: uploaded files, linked lectures and handouts. */
#educationBody .kw-source-filter{display:grid;gap:7px;margin:12px 0 14px;font-size:13px;font-weight:750;color:#4b3170;max-width:100%;min-width:0}
#educationBody .kw-source-filter select{width:100%;min-height:44px;padding:10px 12px;border-radius:10px;border:1px solid #dcd0ee;background:#fff;color:#33254e}
#educationBody .kw-sources .kw-source[hidden]{display:none!important}
