/* Student-owned CBT, Viva, Steeplechase and Theory workspace */
.ep-page{font-family:Inter,system-ui,sans-serif;max-width:1100px;margin:0 auto;padding:22px 12px 56px;color:#211635;min-width:0;box-sizing:border-box}
.ep-page *{box-sizing:border-box}
.ep-head{display:flex;gap:14px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:0 0 20px}
.ep-head small{font-size:11px;letter-spacing:.08em;text-transform:uppercase;font-weight:750;color:#7934d3}
.ep-head h1{font-size:clamp(23px,3vw,34px);line-height:1.2;margin:5px 0;color:#251243}
.ep-head p{font-size:13px;color:#766a87;margin:0;line-height:1.5}
.ep-head button{border:1px solid #daceed;border-radius:11px;background:white;color:#6425b5;padding:11px 15px;font-weight:750;cursor:pointer}
.ep-content{display:grid;gap:18px;min-width:0}
.ep-card{background:white;border:1px solid #e8e2f2;border-radius:18px;box-shadow:0 6px 25px #41126e0d;padding:clamp(16px,2.2vw,26px);min-width:0}
.ep-card h2{font-size:19px;color:#29184d;margin:0 0 16px}
.ep-card h3{font-size:17px;line-height:1.5;overflow-wrap:anywhere}
.ep-format-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ep-format-grid button{border:1px solid #ddd0f4;border-radius:14px;background:linear-gradient(150deg,#fbf9ff,#f1eaff);padding:19px;text-align:left;cursor:pointer;min-height:100px;color:#5f219d}
.ep-format-grid strong,.ep-format-grid span{display:block}
.ep-format-grid strong{font-size:15px;line-height:1.4}
.ep-format-grid span{font-size:12px;color:#786d8b;margin-top:7px}
.ep-note,.ep-empty{font-size:12px;color:#796d88;line-height:1.55}
.ep-list{display:grid;gap:8px}.ep-list button{width:100%;display:flex;align-items:center;justify-content:space-between;text-align:left;gap:14px;padding:15px;border:1px solid #ebe6f5;border-radius:12px;background:#fdfcff;cursor:pointer;color:#31194e}
.ep-list strong,.ep-list small{display:block;overflow-wrap:anywhere}.ep-list small{font-size:12px;color:#776f86;margin-top:5px}.ep-list b{font-size:12px;color:#6922bc;white-space:nowrap}
.ep-card label{display:grid;gap:7px;font-weight:700;font-size:13px;color:#4e336b;margin-bottom:15px}
.ep-card input:not([type=radio]),.ep-card select,.ep-card textarea{width:100%;min-width:0;max-width:100%;padding:12px 13px;border:1px solid #ddd3ee;border-radius:11px;background:#fff;color:#231536;font:inherit;font-weight:400;line-height:1.5}
.ep-card textarea{resize:vertical;min-height:145px}
.ep-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}
.ep-primary{border:0;border-radius:11px;padding:13px 21px;min-height:45px;background:#772ae6;color:white;font:750 14px Inter,system-ui,sans-serif;cursor:pointer}
.ep-primary:disabled{opacity:.5;cursor:not-allowed}
.ep-card fieldset{border:0;padding:0;margin:10px 0}.ep-card legend{font-size:13px;font-weight:700;margin-bottom:12px}
.ep-card .ep-choice{display:flex;align-items:center;gap:12px;padding:14px;margin:7px 0;border:1px solid #e3d8f3;border-radius:12px;background:#fdfbff;cursor:pointer;font-weight:500}
.ep-choice input{flex:none;width:18px;height:18px;accent-color:#7426e7}
.ep-question-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:#6632aa;font-size:12px;font-weight:750}
.ep-question-top strong{margin-left:auto;font-size:17px;font-variant-numeric:tabular-nums}
.ep-station{border-left:4px solid #8748da;padding:12px;background:#f7f0ff;color:#4f326e}
.ep-score{font-size:64px;font-weight:800;color:#6c22cc;margin:10px 0}
.ep-review{border:1px solid #e9e0f4;border-radius:12px;padding:13px;margin:9px 0;overflow-wrap:anywhere}
.ep-review summary{cursor:pointer;font-weight:700}
.ep-review p{font-size:13px;line-height:1.6}
.ep-card [data-ep-images] img{display:block;width:auto;max-width:100%;max-height:340px;object-fit:contain;margin:0 auto}
.ep-card [data-ep-images] figure{margin:12px 0;padding:10px;background:#f6f1fc;border-radius:12px;text-align:center}
.ep-card [data-ep-images] figcaption{font-size:11px;color:#7a6d87}
.ep-page [data-ep-status]{font-size:13px;color:#713c9c;line-height:1.5}
.ep-page button:focus-visible,.ep-page input:focus-visible,.ep-page textarea:focus-visible,.ep-page select:focus-visible{outline:3px solid #b399ed;outline-offset:2px}
@media(max-width:700px){.ep-page{padding:14px 2px 70px}.ep-format-grid,.ep-two{grid-template-columns:minmax(0,1fr)}.ep-card{padding:15px}.ep-format-grid button{min-height:78px}.ep-list button{align-items:flex-start}.ep-list b{white-space:normal}}


/* Personal exam source selection, including iPad Split View. */
.ep-source-chooser{display:grid;gap:4px;margin-bottom:16px;padding:15px;border:1px solid #d9c7f6;border-radius:14px;background:#fbf8ff;min-width:0}
.ep-source-chooser label{margin:0 0 6px}
.ep-source-chooser .ep-note{margin:3px 0 6px}
.ep-card [hidden]{display:none!important}
.ep-source-chooser select{max-width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis}
@media(max-width:700px){.ep-source-chooser{padding:12px}}

/* Direct Set Exam web workspace, including narrow iPad Split View. */
:is(#educationBody,#keSetExam) .ep-set-config{max-width:1100px;margin:0 auto}
:is(#educationBody,#keSetExam) .ep-setup-head{padding:4px 0 16px}
:is(#educationBody,#keSetExam) .ep-setup-head small{font-size:11px;font-weight:800;letter-spacing:.1em;color:#782bd9}
:is(#educationBody,#keSetExam) .ep-setup-head h2{font-size:clamp(22px,3vw,31px);line-height:1.24;letter-spacing:-.025em;margin:8px 0 10px;color:#201738;overflow-wrap:anywhere}
:is(#educationBody,#keSetExam) .ep-setup-head p{font-size:14px;line-height:1.5;color:#796f89;margin:0}
:is(#educationBody,#keSetExam) .ep-mode-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0 22px}
:is(#educationBody,#keSetExam) .ep-mode-nav button{border:1px solid #e1d6f2;border-radius:12px;padding:12px 8px;min-width:0;min-height:46px;background:#faf8ff;color:#6947a4;font:750 13px Inter,system-ui,sans-serif;cursor:pointer;white-space:normal;overflow-wrap:anywhere}
:is(#educationBody,#keSetExam) .ep-mode-nav button[aria-pressed="true"]{border-color:#8941ef;background:#eee4ff;color:#6421b8;box-shadow:inset 0 0 0 1px #8941ef}
:is(#educationBody,#keSetExam) .ep-mode-nav button:focus-visible{outline:3px solid #c3a4f3;outline-offset:2px}
:is(#educationBody,#keSetExam) .ep-page:has([data-set-exam-creation]){max-width:1400px}
:is(#educationBody,#keSetExam) .ep-page:has([data-set-exam-creation]) .ep-head{margin-bottom:12px}
:is(#educationBody,#keSetExam) .ep-page:has([data-set-exam-creation]) .kcpg-dashboard{width:100%;max-width:100%;padding:4px 0 26px}
:is(#educationBody,#keSetExam) .ep-page:has([data-set-exam-creation]) .kcpg-columns{min-width:0}
:is(#educationBody,#keSetExam) .ep-page:has([data-set-exam-creation]) .kcpg-main{min-width:0}
@media(max-width:720px){
 :is(#educationBody,#keSetExam) .ep-mode-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 :is(#educationBody,#keSetExam) .ep-set-config{padding:14px}
 :is(#educationBody,#keSetExam) .ep-page:has([data-set-exam-creation]){padding:12px 0 60px}
 :is(#educationBody,#keSetExam) .ep-page:has([data-set-exam-creation]) .kcpg-step-state{max-width:66px}
}


/* Dedicated Set Exam home, scoped away from the existing exam runner. */
:is(#educationBody,#keSetExam) .se-workspace{max-width:1180px;padding:0 8px 48px}
.se-workspace .ep-head{display:flex;gap:8px;flex-wrap:nowrap;align-items:center;background:linear-gradient(110deg,#50247f,#7e35d5);color:#fff;padding:15px 18px;border-radius:14px;margin:0 0 14px}
.se-workspace .ep-head h1{font-size:22px;color:#fff;margin:0}
.se-workspace .ep-head p{color:#eee1ff;font-size:12px}
.se-workspace .ep-head small{color:#e7d5ff;font-size:10px}
.se-workspace .ep-head button{flex-shrink:0;color:#fff;background:#ffffff20;border:1px solid #ffffff40;min-height:44px;padding:8px 12px;font-size:12px}
.se-dashboard{display:grid;gap:12px;min-width:0;color:#231638}
.se-dashboard h2{font-size:18px;line-height:1.3;margin:5px 0 0;color:inherit}
.se-banner{display:flex;justify-content:space-between;align-items:center;gap:10px;background:linear-gradient(115deg,#58238e,#a45cf2);color:#fff;border-radius:15px;padding:20px;overflow:hidden;min-height:122px}
.se-banner h2{color:white;font-size:clamp(22px,3vw,30px);letter-spacing:-.025em;margin:0 0 8px}
.se-banner p{max-width:450px;font-size:13px;line-height:1.5;margin:0;color:#f5edff}
.se-banner-art{position:relative;flex:none;width:100px;height:90px;display:grid;place-items:center}
.se-banner-art i:first-child{font-size:70px;transform:rotate(10deg);color:#efe0ff;filter:drop-shadow(0 7px 9px #36105355)}
.se-banner-art i:last-child{position:absolute;font-size:32px;bottom:2px;left:0;background:#6a24bd;border-radius:10px;padding:7px;color:white;transform:rotate(-7deg)}
.se-quick,.se-tools,.se-types{display:grid;gap:9px;min-width:0}
.se-quick{grid-template-columns:repeat(4,minmax(0,1fr))}
.se-tools{grid-template-columns:repeat(5,minmax(0,1fr))}
.se-types{grid-template-columns:repeat(2,minmax(0,1fr))}
.se-dashboard button{font:inherit;cursor:pointer;min-width:0}
.se-quick button,.se-tools button,.se-types button,.se-recent button,.se-metrics>div{border:1px solid #e5dbf1;border-radius:13px;background:#fff;color:#2c1948;box-shadow:0 2px 5px #47217608;min-height:68px;padding:12px;display:flex;align-items:center;gap:10px;text-align:left;min-width:0}
.se-quick button,.se-tools button,.se-metrics>div{flex-direction:column;text-align:center;justify-content:center;gap:7px;padding:11px 6px}
.se-quick button:first-child{background:#f0e6ff;border-color:#dac1ff}
.se-quick i,.se-tools i{font-size:21px;color:#7130be}
.se-dashboard strong{font-size:13px;line-height:1.35;display:block;overflow-wrap:anywhere}
.se-dashboard small{font-size:11px;color:#766989;display:block;line-height:1.4;overflow-wrap:anywhere}
.se-types button>i,.se-recent button>i{width:38px;height:38px;display:grid;place-items:center;flex:none;background:#f0e6ff;border-radius:11px;font-size:20px;color:#7830c6}
.se-types button>span,.se-recent button>span{flex:1;min-width:0}
.se-types button::after{content:'›';color:#7c32cf;font-size:22px;font-weight:600}
.se-recent{display:grid;gap:7px}
.se-recent button{width:100%;min-height:60px}
.se-state{flex-shrink:0;font-size:10px;border-radius:20px;background:#eee5fb;color:#6828b4;padding:5px 9px;text-transform:capitalize}
.se-state[data-state="active"],.se-state[data-state="completed"]{background:#dcf6e9;color:#126c40}
.se-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.se-section-head button{border:0;background:none;color:#7431be;min-height:44px;font-size:13px;font-weight:700}
.se-dashboard button:hover{border-color:#bd99ed}
.se-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
.se-metrics strong{font-size:24px;color:#7130be}
body.ke-dark .se-dashboard{color:#eee5fa}
body.ke-dark .se-quick button,body.ke-dark .se-tools button,body.ke-dark .se-types button,body.ke-dark .se-recent button,body.ke-dark .se-metrics>div{background:#271e36;border-color:#49395e;color:#f4ebff}
body.ke-dark .se-dashboard small{color:#c5b6db}
@media(max-width:600px){
 :is(#educationBody,#keSetExam) .se-workspace{padding:0 0 70px}
 .se-workspace .ep-head{padding:12px;align-items:center}
 .se-workspace .ep-head h1{font-size:20px}
 .se-workspace .ep-head p{font-size:11px}
 .se-banner{padding:14px;min-height:112px}
 .se-banner-art{width:65px;height:70px}
 .se-banner-art i:first-child{font-size:49px}
 .se-banner-art i:last-child{font-size:22px}
 .se-banner h2{font-size:21px}
 .se-banner p{font-size:12px}
 .se-quick,.se-tools,.se-types{gap:7px}
 .se-quick button,.se-tools button{padding:8px 4px;min-height:64px}
 .se-quick strong,.se-tools strong{font-size:11px}
 .se-tools{grid-template-columns:repeat(3,minmax(0,1fr))}
 .se-types{grid-template-columns:minmax(0,1fr)}
 .se-types button,.se-recent button{padding:9px;gap:9px}
 .se-dashboard h2{font-size:16px}
}

body.kedu-app.ke-set-exam-view #chatPage,body.kedu-app.ke-set-exam-view #walletPage{display:none!important}body.kedu-app #keSetExam[hidden]{display:none!important}body.kedu-app.ke-set-exam-view #keSetExam:not([hidden]){display:block!important;min-width:0}#keduShell #keSetExam .se-dashboard strong{font-size:13px}#keduShell #keSetExam .se-dashboard small{font-size:11px}


/* Compact, always-visible exam preparation shortcuts on the dashboard. */
.se-preparation-section{display:grid;gap:8px;min-width:0}
.se-preparation-section h2{margin:2px 0 0}
.se-preparation{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;min-width:0}
.se-preparation button{display:flex;align-items:center;gap:9px;min-width:0;min-height:52px;padding:9px 11px;border:1px solid #e5dbf1;border-radius:12px;background:#fff;color:#2c1948;text-align:left;box-shadow:0 2px 5px #47217608}
.se-preparation button>i{flex:none;display:grid;place-items:center;width:29px;height:29px;border-radius:8px;background:#f0e6ff;color:#7830c6;font-size:15px}
.se-preparation button>span{min-width:0;flex:1}
.se-preparation button strong{font-size:12px;line-height:1.25}
body.ke-dark .se-preparation button{background:#271e36;border-color:#49395e;color:#f4ebff}
@media(max-width:700px){
 .se-preparation{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .se-preparation button{min-height:46px;padding:7px 8px;gap:7px}
 .se-preparation button>i{width:26px;height:26px;font-size:13px}
 #keduShell #keSetExam .se-preparation strong{font-size:12px}
 .se-workspace .se-banner{min-height:96px;padding:12px}
}

.se-workspace .se-dashboard .se-shared {
 display:flex;
 align-items:center;
 justify-content:flex-start;
 width:100%;
 min-height:46px;
 padding:10px 14px;
 border:1px solid #dac1ff;
 border-radius:12px;
 background:#f0e6ff;
 color:#5f249c;
 text-align:start;
 font-size:13px;
 font-weight:700;
 line-height:1.4;
}
.se-workspace .se-dashboard .se-shared:hover{background:#e9d9ff;border-color:#bd99ed}
body.ke-dark .se-workspace .se-dashboard .se-shared{background:#34234d;border-color:#60477f;color:#f0dfff}
body.ke-dark .se-workspace .se-dashboard .se-shared:hover{background:#442b64}
.se-section-head{margin-top:4px}
.se-state[data-state="active"]{background:#f0e6ff;color:#6828b4}
body.ke-dark .se-section-head button{color:#d7b8ff}

@media(max-width:600px){
 html:has(body.ke-set-exam-view){scroll-padding-block:76px calc(82px + env(safe-area-inset-bottom,0px))}
 .se-workspace .se-tools{grid-template-columns:repeat(6,minmax(0,1fr))}
 .se-workspace .se-tools button{grid-column:span 2;min-height:58px;padding:8px 5px}
 .se-workspace .se-tools button:nth-child(n+4){grid-column:span 3;min-height:44px;flex-direction:row}
 .se-workspace .se-tools i{font-size:17px}
 .se-workspace .se-recent button{min-height:56px}
 .se-workspace .se-recent button>i{width:32px;height:32px;font-size:16px}
 .se-workspace .se-state{padding:4px 7px}
 #keduShell #keSetExam .se-tools strong{font-size:11.5px}
}
