/* v26: shared learner experience. Original IST blue and navy are retained. */
#ist-page{--ui-line:#dfe6ef;--ui-soft:#f5f8fc;--ui-ink:#122743;--ui-muted:#536176}
#ist-page :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #0070c9;outline-offset:3px}
#ist-page :is(input,select,textarea){font-size:16px}
#ist-page :is(button,.btn){min-height:42px}
#ist-page :is(h1,h2,h3,p,a,summary){overflow-wrap:anywhere}
#ist-page :is(.student-dashboard-grid,.learning-grid,.grid2)>*{min-width:0}
#ist-page .site-header{border-bottom:1px solid var(--ui-line);box-shadow:0 2px 12px #12274306}
#ist-page .nav{min-height:80px}
#ist-page[data-role="student"]{background:#f7f9fc;color:var(--ui-ink)}
#ist-page[data-role="student"] #main{padding-bottom:48px}
#ist-page[data-role="student"] .workspace-nav{background:#fff;border:1px solid var(--ui-line);border-radius:12px;padding:8px;margin-top:24px;gap:6px}
#ist-page[data-role="student"] .workspace-nav a{border-radius:8px;padding:11px 16px}
#ist-page .student-hero{padding:32px 0 24px;align-items:center}
#ist-page .student-hero h1{font-size:clamp(27px,3.2vw,40px);line-height:1.18;letter-spacing:-1px;margin:10px 0 12px}
#ist-page .student-hero .lead{font-size:15px;max-width:610px;line-height:1.7;color:var(--ui-muted)}
#ist-page .eyebrow{font-size:11px;letter-spacing:1.3px;font-weight:750;color:#0070c9}
#ist-page .student-identity{background:#fff;border-radius:12px;padding:16px;max-width:350px;white-space:normal;flex-shrink:0}
#ist-page .student-identity small{font-size:12px;line-height:1.6}
#ist-page .course-picker{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--ui-line);border-radius:12px;padding:12px 16px;margin:0 0 20px}
#ist-page .course-picker label{margin:0;font-size:13px;flex-shrink:0}
#ist-page .course-picker select{max-width:440px;margin:0;flex:1;min-width:0}
#ist-page .student-stat-grid{gap:16px;margin:0 0 36px;grid-template-columns:repeat(4,minmax(0,1fr))}
#ist-page .student-stat{border:1px solid var(--ui-line);border-radius:14px;box-shadow:none;padding:22px;background:#fff}
#ist-page .student-stat>span{font-size:13px;font-weight:600;color:var(--ui-muted)}
#ist-page .student-stat strong{font-size:32px;letter-spacing:-1px;margin:12px 0 8px;color:var(--ui-ink)}
#ist-page .student-stat small{font-size:12px}
#ist-page .student-dashboard-grid{grid-template-columns:minmax(0,1fr) 320px;gap:28px;margin-bottom:32px}
#ist-page .dashboard-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}
#ist-page .dashboard-section-heading h2{font-size:21px;letter-spacing:-.4px;margin:5px 0 0}
#ist-page .dashboard-section-heading>a{font-size:13px;font-weight:600;white-space:normal}
#ist-page :is(.course-progress-card,.student-attendance-card,.student-payment-card){background:#fff;border:1px solid var(--ui-line);box-shadow:none;border-radius:16px;padding:24px}
#ist-page .course-progress-head{align-items:center}
#ist-page .course-progress-head h3{font-size:19px;line-height:1.4;margin:0}
#ist-page .course-progress-head>strong{font-size:23px;flex-shrink:0}
#ist-page .course-progress-card progress{appearance:none;width:100%;height:7px;border:0;border-radius:20px;background:#eaf0f7;margin:20px 0}
#ist-page progress::-webkit-progress-bar{background:#eaf0f7;border-radius:20px}
#ist-page progress::-webkit-progress-value{background:#0070c9;border-radius:20px}
#ist-page progress::-moz-progress-bar{background:#0070c9;border-radius:20px}
#ist-page .curriculum-module{background:#fff;border:1px solid var(--ui-line);border-radius:10px;margin:10px 0;overflow:hidden}
#ist-page .curriculum-module summary{padding:16px;min-height:64px;cursor:pointer;gap:12px;align-items:center}
#ist-page .curriculum-module summary strong{font-size:14px}
#ist-page .curriculum-module summary small{display:block;font-size:12px;color:var(--ui-muted);margin-top:5px}
#ist-page .curriculum-module[open] summary{background:#f5f8fc;border-bottom:1px solid var(--ui-line)}
#ist-page .accordion-content{padding:8px 16px 16px}
#ist-page .curriculum-level{padding:14px 0;gap:14px;line-height:1.5;min-height:48px}
#ist-page .curriculum-level span:last-child{font-size:12px}
#ist-page .curriculum-level[aria-disabled="true"]{color:#65758b;cursor:default}
#ist-page .compact-list{border-radius:14px;padding:0 18px}
#ist-page .compact-list-row{padding:18px 0}
#ist-page .compact-list-row strong{white-space:normal;line-height:1.5;font-size:13px}
#ist-page .compact-list-row small{white-space:normal;line-height:1.5;font-size:12px}
#ist-page [data-live-notices]{background:#fff;border:1px solid var(--ui-line);border-radius:14px;padding:0 18px}
#ist-page .notification-row{padding:18px 0}
#ist-page .notification-row small{font-size:11px}
#ist-page .notification-row p{font-size:13px;line-height:1.6}
#ist-page .table-wrap{border:1px solid var(--ui-line);border-radius:12px;overflow:auto;background:#fff}
#ist-page table th{background:#f5f8fc;font-size:12px;white-space:nowrap}
#ist-page table td{padding:16px;vertical-align:middle;line-height:1.5}
#ist-page .learning-subnav{display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid var(--ui-line);padding:16px 0;margin-bottom:24px}
#ist-page .learning-subnav a{padding:9px 14px;border-radius:8px;font-size:13px;background:#fff}
#ist-page .learn-scope{--blue:#0070c9;--navy:#122743;--text:#263b57;line-height:1.65}
#ist-page .learn-scope .page-head{margin-bottom:24px;gap:20px;align-items:flex-start}
#ist-page .learn-scope h1{font-size:clamp(26px,3vw,36px);line-height:1.25;letter-spacing:-.7px}
#ist-page .learn-scope h2{font-size:20px;line-height:1.4}
#ist-page .learn-scope :is(.card,.learning-card,.module){border:1px solid var(--ui-line);border-radius:14px;box-shadow:none;background:#fff}
#ist-page .learn-scope :is(.card,.learning-card){padding:24px}
#ist-page .learn-scope .module{margin-bottom:18px;overflow:hidden}
#ist-page .learn-scope .module-head{padding:20px;background:#f8fafd;gap:14px;flex-wrap:wrap}
#ist-page .learn-scope .module-body{padding:20px}
#ist-page .learn-scope .module-num{background:#eaf4ff;color:#0070c9;border-radius:10px}
#ist-page .learn-scope .module-name{min-width:120px;flex:1}
#ist-page .learn-scope .course-head{background:#fff;border:1px solid var(--ui-line);border-radius:16px;padding:30px;margin-bottom:28px}
#ist-page .learn-scope .course-meta{display:flex;gap:12px;flex-wrap:wrap}
#ist-page .learn-scope .course-meta span{background:#f5f8fc;border-radius:6px;padding:6px 10px;font-size:12px}
#ist-page .learn-scope :is(.learning-grid,.grid2){display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:24px;align-items:start}
#ist-page .learn-scope .lesson-nav{padding:0;border-radius:8px;margin:6px 0}
#ist-page .learn-scope .lesson-nav :is(a,span){display:block;padding:12px;font-size:13px}
#ist-page .learn-scope .lesson-nav.selected{background:#eaf4ff;font-weight:700}
#ist-page .learn-scope .html-render-wrap{margin:20px 0;border:1px solid var(--ui-line);border-radius:10px;overflow:hidden}
#ist-page .learn-scope .html-render-bar{padding:12px;gap:8px;flex-wrap:wrap;background:#f5f8fc}
#ist-page .learn-scope .html-render-bar>span{flex:1;min-width:140px;font-size:13px}
#ist-page .learn-scope .html-render-frame{width:100%;max-width:100%;height:70vh;min-height:420px;background:#fff}
#ist-page .learn-scope .is-expanded{border-radius:0}
#ist-page .learn-scope .is-expanded .html-render-frame{height:calc(100dvh - 90px)}
#ist-page .learn-scope .quiz-option{padding:16px;border-radius:10px;min-height:48px;line-height:1.6}
#ist-page .learn-scope .quiz-option:has(input:checked){background:#eaf4ff;border-color:#0070c9}
#ist-page .source-editor{min-width:0}
#ist-page .learn-scope .code-editor{display:block;width:100%;height:360px;min-height:220px;max-height:70vh;resize:vertical;contain:layout paint;font:13px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;tab-size:2;overflow:auto;border:1px solid #cbd6e4;border-radius:10px;padding:16px;background:#f8fafd;color:#122743}
#ist-page .learn-scope .editor-footer{font-size:12px;padding:8px 0}
#ist-page .learn-scope .sticky-save{border:1px solid var(--ui-line);border-radius:12px;background:#fff;box-shadow:0 -4px 20px #12274308;padding:14px 20px;bottom:12px}
#ist-page .learn-scope .danger{background:#fff3f3;color:#a32232;border:1px solid #e7bfc4}
#ist-page .site-footer{border-top:1px solid var(--ui-line);margin-top:32px;padding-top:30px}
@media(min-width:1100px){#ist-page .learn-scope .fit-content{position:sticky;top:105px}}
@media(max-width:1000px){#ist-page .student-dashboard-grid{grid-template-columns:minmax(0,1fr) 280px;gap:20px}#ist-page .learn-scope :is(.learning-grid,.grid2){grid-template-columns:minmax(0,1fr)}#ist-page .student-identity{max-width:260px}}
@media(max-width:760px){#ist-page .nav{min-height:68px}#ist-page .student-hero{padding:24px 0 18px}#ist-page .student-identity{max-width:100%;margin-top:16px}#ist-page .student-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:28px}#ist-page .student-stat{padding:16px}#ist-page .student-stat strong{font-size:28px}#ist-page .student-dashboard-grid{grid-template-columns:minmax(0,1fr);gap:28px}#ist-page :is(.course-progress-card,.student-attendance-card,.student-payment-card){padding:18px}#ist-page .course-picker{flex-wrap:wrap}#ist-page .course-picker label{width:100%}#ist-page .course-picker select{max-width:none}#ist-page .learn-scope :is(.card,.learning-card,.module-body,.course-head){padding:16px}#ist-page .learn-scope .page-head{flex-direction:column}#ist-page .learn-scope .html-render-frame{min-height:380px;height:65vh}#ist-page .learn-scope .actions{flex-wrap:wrap}#ist-page .learn-scope .sticky-save{bottom:6px;padding:12px;gap:12px}#ist-page .learn-scope .code-editor{height:300px}#ist-page .curriculum-level{flex-wrap:wrap}#ist-page .dashboard-section-heading h2{font-size:20px}}
@media(prefers-reduced-motion:reduce){#ist-page *,#ist-page *::before,#ist-page *::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
#ist-page .workspace-nav a[aria-current="page"]{background:#eaf4ff;color:#0070c9;font-weight:700}
#ist-page [data-html-editor]{height:560px;max-height:75vh;overflow:auto;contain:layout paint;resize:vertical;font:13px/1.6 ui-monospace,Consolas,monospace}
#ist-page .learn-scope .html-render-frame.mobile-preview{width:390px;max-width:100%;margin-inline:auto;display:block}
#ist-page .learn-scope .preview-slot[hidden]{display:none}

/* v28: inherit the same typography in native selectors, including option lists. */
#ist-page select,#ist-page select option,#ist-page select optgroup{font-family:inherit;font-size:inherit;font-weight:400;letter-spacing:normal}
#ist-page select{color:var(--ui-ink,#122743);background-color:#fff;line-height:1.5}
#ist-page [data-live-count]{display:inline-block;min-width:1.1em;text-align:center;font-variant-numeric:tabular-nums}
#ist-page [data-live-count]:empty{display:none}
#ist-page select{font-size:16px}
#ist-page select option,#ist-page select optgroup{font-size:1em}
