/* AeroGyan — Study tools (studytools.js, #/tools) · 2026-11-15 */
.st-wrap { max-width: 1180px; margin: 0 auto; padding: 18px 16px 48px; box-sizing: border-box; }
.st-wrap *, .st-wrap *::before, .st-wrap *::after { box-sizing: border-box; }

/* tabs */
.st-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 10px; margin-bottom: 8px; -webkit-overflow-scrolling: touch; }
.st-tabs::-webkit-scrollbar { display: none; }
.st-tabs button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--border-default); background: var(--bg-surface); color: var(--text-secondary); cursor: pointer; white-space: nowrap; }
.st-tabs button:hover { color: var(--text-primary); border-color: var(--border-strong, var(--border-default)); }
.st-tabs button.on { background: var(--brand-600, #4f46e5); border-color: transparent; color: #fff; }
.st-tabs button i { font-size: 13px; }

/* overview tiles */
.st-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.st-tile { text-align: left; font: inherit; color: var(--text-primary); background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: 16px;
  padding: 16px 18px; cursor: pointer; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "i t" "n n" "s s"; gap: 4px 10px; align-items: center; align-content: start;
  transition: transform .12s, box-shadow .12s, border-color .12s; }
.st-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--brand-400, #818cf8); }
.st-tile > i { grid-area: i; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand-500, #6366f1) 14%, transparent); color: var(--brand-600, #4f46e5); }
.st-tile > b { grid-area: t; font-size: 15px; }
.st-tile .st-big { grid-area: n; font-size: 32px; font-weight: 800; line-height: 1.15; margin-top: 8px; letter-spacing: -.01em; }
.st-tile .st-big i { font-size: 26px; color: var(--text-tertiary); }
.st-tile small { grid-area: s; color: var(--text-secondary); font-size: 13px; line-height: 1.4; }
.st-tile.warn .st-big { color: #dc2626; }
.st-foot { margin-top: 14px; }

/* shared */
.st-field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.st-field input, .st-field select, .st-field textarea, .st-rows input, .st-rows select, .st-exam-row select, .st-exam-row input, .st-att-left input, .st-sem-name {
  font: inherit; font-size: 14px; font-weight: 500; color: var(--text-primary); background: var(--bg-surface-2, var(--bg-surface)); border: 1px solid var(--border-default);
  border-radius: 10px; padding: 8px 10px; min-width: 0; width: 100%; }
.st-field textarea { resize: vertical; }
.st-wrap input:focus, .st-wrap select:focus, .st-wrap textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand-500, #6366f1) 45%, transparent); outline-offset: 1px; border-color: var(--brand-500, #6366f1); }
.st-icon { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 9px; border: 1px solid transparent; background: transparent; color: var(--text-tertiary); cursor: pointer; display: grid; place-items: center; }
.st-icon:hover:not(:disabled) { background: var(--bg-surface-2); color: #dc2626; }
.st-icon:disabled { opacity: .35; cursor: default; }
.st-left { justify-content: flex-start !important; flex-wrap: wrap; }
.st-bar { position: relative; height: 10px; border-radius: 99px; background: var(--bg-surface-3, var(--bg-surface-2)); overflow: visible; }
.st-bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand-500, #6366f1), #06b6d4); }
.st-bar > em { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--text-primary); opacity: .55; border-radius: 2px; }

/* grades */
.st-grid2 { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.st-summary { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 12px; }
.st-stat span { display: block; font-size: 13px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .06em; }
.st-stat b { display: block; font-size: 46px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.st-stat small { color: var(--text-secondary); }
.st-target { margin: 0; }
.st-summary .rv-sub { margin: 0; font-size: 12.5px; }
.st-sem { padding: 14px 16px; }
.st-sem-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.st-sem-name { flex: 1; font-weight: 700 !important; font-size: 16px !important; background: transparent !important; border-color: transparent !important; padding: 6px 8px !important; }
.st-sem-name:hover { border-color: var(--border-default) !important; }
.st-sgpa { text-align: right; font-size: 14px; color: var(--text-secondary); white-space: nowrap; }
.st-sgpa b { color: var(--text-primary); font-size: 20px; }
.st-sgpa small { display: block; font-size: 12px; }
.st-rows { display: flex; flex-direction: column; gap: 6px; }
.st-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 76px 128px 32px; gap: 6px; align-items: center; }
.st-row-h { font-size: 12px; font-weight: 700; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: .05em; padding: 0 4px; }
.st-rows input, .st-rows select { padding: 7px 8px; }
.st-addsem { margin-top: 2px; }

/* attendance */
.st-att-top { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.st-att-top .st-field { width: 220px; }
.st-att-top .rv-sub { flex: 1; min-width: 220px; margin: 0; }
.st-att-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.st-att { display: flex; flex-direction: column; gap: 8px; margin: 0; border-left: 4px solid #16a34a; }
.st-att.near { border-left-color: #f59e0b; } .st-att.low { border-left-color: #dc2626; }
.st-att-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.st-att-pct { font-size: 26px; font-weight: 800; }
.st-att.low .st-att-pct { color: #dc2626; } .st-att.low .st-bar > i { background: #dc2626; } .st-att.near .st-bar > i { background: #f59e0b; }
.st-att-msg { margin: 0; font-size: 15px; line-height: 1.5; }
.st-att-left { border-top: 1px dashed var(--border-default); padding-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.st-att-left label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.st-att-left input { width: 90px; }
.st-att-left p { margin: 0; font-size: 14px; line-height: 1.5; }
.st-sim { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--text-secondary); }
.st-sim input { flex: 1; min-width: 120px; accent-color: var(--brand-600, #4f46e5); }
.st-sim b.bad { color: #dc2626; }

/* revision planner */
.st-plan { display: flex; flex-direction: column; gap: 12px; }
.st-plan-top { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.st-exams { display: flex; gap: 10px; flex-wrap: wrap; }
.st-exam { display: flex; flex-direction: column; padding: 8px 12px; border-radius: 12px; background: var(--bg-surface-2); border: 1px solid var(--border-subtle); min-width: 150px; }
.st-exam span { font-size: 12.5px; color: var(--text-secondary); } .st-exam em { font-style: normal; font-weight: 700; color: var(--brand-600, #4f46e5); font-size: 13px; }
.st-exam.over { opacity: .55; }
.st-progress { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-secondary); }
.st-missed, .st-short { margin: 0; align-items: center; flex-wrap: wrap; }
.st-missed span, .st-short span { flex: 1; min-width: 200px; }
.st-day { background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: 16px; padding: 12px 14px; }
.st-day.today { border: 2px solid var(--brand-500, #6366f1); box-shadow: var(--shadow-sm); }
.st-day.past { opacity: .8; margin-top: 10px; }
.st-day.extra { border-style: dashed; }
.st-day-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.st-day-head b { font-size: 15px; } .st-day-head > span:not(.rv-pill) { color: var(--text-secondary); font-size: 13px; }
.st-day.today .st-day-head b { font-size: 18px; }
.st-items { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.st-items li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--bg-surface-2); }
.st-items li label { flex: 1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; cursor: pointer; min-width: 0; }
.st-items input[type=checkbox] { width: 18px; height: 18px; accent-color: #16a34a; flex: 0 0 auto; }
.st-items li.done .st-it-title { text-decoration: line-through; color: var(--text-tertiary); }
.st-items li.missed { box-shadow: inset 3px 0 0 #f59e0b; }
.st-kind { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: var(--bg-surface); color: var(--text-secondary); flex: 0 0 auto; }
.st-kind.k-paper { color: #b45309; } .st-kind.k-solve { color: #0e7490; } .st-kind.k-revise { color: #7c3aed; } .st-kind.k-watch { color: #be123c; }
.st-it-title { flex: 1 1 220px; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.st-it-meta { font-size: 12.5px; color: var(--text-tertiary); white-space: nowrap; }
.st-more { align-self: flex-start; }
.st-past summary { cursor: pointer; font-weight: 600; color: var(--text-secondary); padding: 6px 2px; }
.st-plan-form { display: flex; flex-direction: column; gap: 12px; }
.st-plan-form h3 { margin: 0; }
.st-plan-form > .rv-sub { margin: 0; line-height: 1.5; }
.st-exam-rows { display: flex; flex-direction: column; gap: 10px; }
.st-exam-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px 170px 32px; gap: 10px; align-items: end; padding: 10px; border-radius: 12px; background: var(--bg-surface-2); }
.st-exam-row > label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.st-exam-row .cpick { margin: 0; }
.st-cp-l { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 4px; }
.st-plan-form > [data-r-add] { align-self: flex-start; }
.st-plan-opts { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-end; }
.st-plan-opts .st-field { width: 200px; }
.st-off { border: 0; padding: 0; margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.st-off legend { font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 5px; padding: 0; }
.st-off label { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 99px; border: 1px solid var(--border-default); font-size: 13px; cursor: pointer; }
.st-off label:has(input:checked) { background: color-mix(in srgb, var(--brand-500, #6366f1) 14%, transparent); border-color: var(--brand-500, #6366f1); }

/* flashcards */
.st-cards { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin: 0 auto; }
.st-subtabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg-surface-2); border-radius: 12px; align-self: flex-start; }
.st-subtabs button { font: inherit; font-size: 14px; font-weight: 600; border: 0; border-radius: 9px; padding: 7px 14px; background: transparent; color: var(--text-secondary); cursor: pointer; }
.st-subtabs button.on { background: var(--bg-surface); color: var(--text-primary); box-shadow: var(--shadow-xs, var(--shadow-sm)); }
.st-card-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.st-card-stats span { padding: 6px 12px; border-radius: 99px; background: var(--bg-surface); border: 1px solid var(--border-subtle); font-size: 13px; color: var(--text-secondary); }
.st-card-stats b { color: var(--text-primary); }
.st-deck { max-width: 420px; }
.st-fc-wrap { display: flex; flex-direction: column; gap: 12px; }
.st-fc-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--text-tertiary); }
.st-fc { min-height: 240px; background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: 20px; padding: 28px 24px; box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 14px; text-align: center; cursor: pointer; }
.st-fc:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand-500, #6366f1) 50%, transparent); }
.st-fc-front { font-size: 21px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; max-width: 100%; }
.st-fc-back { font-size: 18px; line-height: 1.55; overflow-wrap: anywhere; max-width: 100%; white-space: pre-wrap; }
.st-fc hr { width: 60%; border: 0; border-top: 1px dashed var(--border-default); margin: 4px 0; }
.st-fc small { color: var(--text-tertiary); }
.st-fc.flipped { cursor: default; }
.st-show { align-self: center; min-width: 220px; }
.st-rate { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.st-rate button { font: inherit; border-radius: 12px; border: 1px solid var(--border-default); background: var(--bg-surface); color: var(--text-primary); padding: 10px 6px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; align-items: center; }
.st-rate button b { font-size: 15px; } .st-rate button small { font-size: 12px; color: var(--text-secondary); }
.st-rate .st-rate-bad b { color: #dc2626; } .st-rate .st-rate-hard b { color: #d97706; } .st-rate .st-rate-good b { color: #16a34a; } .st-rate .st-rate-easy b { color: #2563eb; }
.st-rate button:hover { border-color: var(--brand-400, #818cf8); box-shadow: var(--shadow-sm); }
.st-keys { text-align: center; margin: 0; }
.st-done { text-align: center; padding: 36px 16px; background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: 20px; }
.st-done > i { font-size: 40px; color: #16a34a; } .st-done h3 { margin: 10px 0 6px; } .st-done p { max-width: 520px; margin: 0 auto; line-height: 1.5; }
.st-newcard { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.st-newcard h3 { margin: 0; } .st-newcard .rv-sub { margin: 0; }
.st-mine { display: flex; flex-direction: column; gap: 8px; }
.st-mine-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--bg-surface); border: 1px solid var(--border-subtle); }
.st-mine-row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.st-mine-row small { color: var(--text-tertiary); font-size: 12px; } .st-mine-row span { color: var(--text-secondary); font-size: 14px; }

/* phones */
@media (max-width: 900px) {
  .st-grid2 { grid-template-columns: 1fr; }
  .st-summary { position: static; }
}
@media (max-width: 640px) {
  .st-wrap { padding: 12px 12px 40px; }
  .st-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .st-tile { padding: 12px; }
  .st-tile .st-big { font-size: 26px; }
  .st-tile small { font-size: 12px; }
  .st-row { grid-template-columns: minmax(0, 1fr) 64px 32px; grid-template-areas: "code cr del" "name name name" "grade grade grade"; padding: 8px; border-radius: 12px; background: var(--bg-surface-2); }
  .st-row-h { display: none; }
  .st-row [data-f=code] { grid-area: code; } .st-row [data-f=name] { grid-area: name; } .st-row [data-f=credits] { grid-area: cr; }
  .st-row [data-f=grade] { grid-area: grade; } .st-row [data-g-del] { grid-area: del; }
  .st-rows input, .st-rows select { background: var(--bg-surface); }
  .st-att-list { grid-template-columns: 1fr; }
  .st-exam-row { grid-template-columns: 1fr 1fr; }
  .st-exam-row .st-cp { grid-column: 1 / -1; }
  .st-exam-row [data-r-del] { grid-column: 2; justify-self: end; }
  .st-rate { grid-template-columns: repeat(2, 1fr); }
  .st-fc { min-height: 200px; padding: 22px 16px; }
  .st-fc-front { font-size: 19px; }
  .st-sem-head { flex-wrap: wrap; }
  .st-sem-name { flex-basis: 100%; }
  .st-sgpa { text-align: left; flex: 1; }
}
@media (max-width: 380px) { .st-tiles { grid-template-columns: 1fr; } }

/* ===== Exam prep (examprep.js) ⭐ 2026-11-16 ===== */
.ep { display: flex; flex-direction: column; gap: 14px; }
.ep-top { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.ep-top .st-cp { flex: 1 1 320px; min-width: 0; }
.ep-count { display: flex; flex-direction: column; align-items: center; padding: 8px 16px; border-radius: 12px; background: var(--bg-surface-2); border: 1px solid var(--border-subtle); }
.ep-count b { font-size: 22px; line-height: 1.1; } .ep-count span { font-size: 12px; color: var(--text-secondary); }
.ep-count.soon { background: color-mix(in srgb, #dc2626 10%, var(--bg-surface)); border-color: color-mix(in srgb, #dc2626 35%, transparent); }
.ep-count.soon b { color: #dc2626; }
.ep-jump { display: flex; gap: 8px; flex-wrap: wrap; }
.ep-jump a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--border-default); background: var(--bg-surface); color: var(--text-secondary); font-size: 13px; font-weight: 600; text-decoration: none; }
.ep-jump a:hover { color: var(--text-primary); border-color: var(--brand-400, #818cf8); }
.ep-badge { min-width: 20px; padding: 1px 6px; border-radius: 99px; background: #dc2626; color: #fff; font-size: 11px; text-align: center; }
.ep-sec { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 80px; min-width: 0; }
.ep-sec > h3 { margin: 0; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.ep-sec > h3 i { color: var(--brand-600, #4f46e5); }
.ep-first { align-items: flex-start; } .ep-first > span { line-height: 1.9; }
.ep-chip { display: inline-flex; align-items: center; gap: 5px; margin: 0 4px 0 0; padding: 2px 9px; border-radius: 99px; background: var(--bg-surface); border: 1px solid var(--border-default); font-size: 13px; font-weight: 600; white-space: nowrap; }
.ep-chip small { color: var(--text-tertiary); font-weight: 700; }
.ep-note { display: flex; gap: 6px; align-items: baseline; }

/* heatmap: scrolls sideways inside its box on a phone, never the page */
.ep-heat-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border-subtle); border-radius: 12px; max-width: 100%; }
.ep-heat { border-collapse: separate; border-spacing: 3px; font-size: 13px; min-width: 100%; }
.ep-heat th, .ep-heat td { padding: 0; }
.ep-heat thead th { position: sticky; top: 0; background: var(--bg-surface); z-index: 1; }
.ep-tcol { position: sticky; left: 0; z-index: 2; background: var(--bg-surface); text-align: left; padding: 6px 10px 6px 8px !important; min-width: 170px; max-width: 260px; }
.ep-heat thead .ep-tcol { z-index: 3; font-size: 12px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: .05em; }
.ep-tname { display: block; font-weight: 700; color: var(--text-primary); line-height: 1.3; }
.ep-tcol small { display: block; color: var(--text-tertiary); font-weight: 500; font-size: 11.5px; }
.ep-alias { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-paper { display: flex; flex-direction: column; align-items: center; width: 46px; padding: 5px 2px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--text-secondary); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.ep-paper small { font-weight: 600; color: var(--text-tertiary); }
.ep-paper:hover { border-color: var(--brand-400, #818cf8); color: var(--text-primary); }
.ep-cell { width: 46px; height: 38px; border-radius: 7px; text-align: center; background: color-mix(in srgb, var(--brand-600, #4f46e5) calc(var(--a) * 100%), var(--bg-surface-2)); }
.ep-cell span { font-weight: 700; font-size: 12.5px; color: var(--text-primary); }
.ep-cell[style*="--a:0.8"] span, .ep-cell[style*="--a:0.9"] span, .ep-cell[style*="--a:1.0"] span, .ep-cell[style*="--a:0.7"] span, .ep-cell[style*="--a:0.6"] span { color: #fff; }
.ep-zero { background: var(--bg-surface-2); } .ep-zero span { color: var(--text-tertiary); font-weight: 400; }
.ep-tot { min-width: 92px; text-align: left; padding: 4px 8px !important; }
.ep-tot b { display: block; font-size: 14px; }
.ep-tot small { color: var(--text-tertiary); font-size: 11.5px; }
.ep-share { display: block; height: 5px; border-radius: 99px; background: var(--bg-surface-3, var(--bg-surface-2)); margin: 3px 0 1px; }
.ep-share i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand-500, #6366f1), #06b6d4); }

/* weak topics */
.ep-verdicts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ep-verdicts li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border-radius: 10px; background: var(--bg-surface-2); font-size: 14px; }
.ep-verdicts li .rv-pill { min-width: 84px; justify-content: center; }
.ep-verdicts li small { margin-left: auto; color: var(--text-tertiary); }

/* mistakes */
.ep-list summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--text-secondary); padding: 4px 0; }
.ep-list ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ep-list li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border-radius: 10px; background: var(--bg-surface-2); font-size: 13.5px; }
.ep-li-t { flex: 1; min-width: 160px; }
.ep-list li small { color: var(--text-tertiary); }
.ep-q { display: flex; flex-direction: column; gap: 12px; position: relative; }
.ep-qtext { font-size: 16px; line-height: 1.6; padding: 14px 16px; border-radius: 12px; background: var(--bg-surface-2); white-space: pre-wrap; overflow-x: auto; }
.ep-opts { display: flex; flex-direction: column; gap: 6px; }
.ep-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border-default); cursor: pointer; font-size: 15px; }
.ep-opt:hover { border-color: var(--brand-400, #818cf8); }
.ep-opt input { margin-top: 4px; accent-color: var(--brand-600, #4f46e5); }
.ep-opt:has(input:checked) { border-color: var(--brand-500, #6366f1); background: color-mix(in srgb, var(--brand-500, #6366f1) 8%, transparent); }
.ep-num { max-width: 260px; }
.ep-matrix { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.ep-sol { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--border-default); font-size: 14.5px; line-height: 1.6; overflow-x: auto; }
.ep-result { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 12px; border: 1px solid; }
.ep-result.ok { border-color: color-mix(in srgb, #16a34a 45%, transparent); background: color-mix(in srgb, #16a34a 8%, var(--bg-surface)); }
.ep-result.bad { border-color: color-mix(in srgb, #dc2626 40%, transparent); background: color-mix(in srgb, #dc2626 7%, var(--bg-surface)); }
.ep-result.ok > b { color: #16a34a; } .ep-result.bad > b { color: #dc2626; }
.ep-stop { align-self: flex-end; }

/* formula sheet */
.ep-sheet { border: 1px solid var(--border-default); border-radius: 14px; padding: 18px 22px; background: var(--bg-surface); font-size: 14px; line-height: 1.55; columns: 2 340px; column-gap: 28px; overflow-x: auto; }
.ep-sheet-h { column-span: all; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-bottom: 2px solid var(--text-primary); padding-bottom: 6px; margin-bottom: 8px; }
.ep-sheet-h span { color: var(--text-tertiary); font-size: 12px; }
.ep-sheet h3 { font-size: 15px; margin: 12px 0 4px; break-after: avoid; color: var(--brand-700, #4338ca); }
.ep-sheet ul { margin: 0 0 6px; padding-left: 18px; }
.ep-sheet li { margin: 2px 0; break-inside: avoid; }
.ep-sheet-bar { align-items: center; }

@media print {
  html.ep-print body * { visibility: hidden !important; }
  html.ep-print .ep-sheet, html.ep-print .ep-sheet * { visibility: visible !important; }
  html.ep-print .ep-sheet { position: absolute; left: 0; top: 0; width: 100%; border: 0; padding: 0; columns: 2; column-gap: 8mm; font-size: 10.5pt; color: #000; background: #fff; overflow: visible; }
  html.ep-print .ep-sheet h3 { color: #000; }
  @page { margin: 10mm; }
}
@media (max-width: 640px) {
  .ep-top { align-items: stretch; }
  .ep-count { flex-direction: row; gap: 8px; justify-content: center; }
  .ep-sheet { padding: 14px; columns: 1; }
  .ep-tcol { min-width: 140px; max-width: 170px; }
  .ep-qtext { font-size: 15px; padding: 12px; }
}

/* ===== Degree planner (degree.js) ⭐ 2026-11-16 ===== */
.dg { display: flex; flex-direction: column; gap: 14px; }
.dg-sum, .dg-sec { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dg-sec > h3 { margin: 0; font-size: 17px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.dg-sec > h3 i { color: var(--brand-600, #4f46e5); } .dg-sec > h3 small { font-size: 12.5px; font-weight: 500; color: var(--text-tertiary); }
.dg-big span { display: block; font-size: 13px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .06em; }
.dg-big b { font-size: 34px; font-weight: 800; letter-spacing: -.01em; } .dg-big b small { font-size: 18px; color: var(--text-tertiary); font-weight: 700; }
.dg-big > small { display: block; color: var(--text-secondary); }
.dg-bar { position: relative; display: flex; height: 10px; border-radius: 99px; background: var(--bg-surface-3, var(--bg-surface-2)); overflow: visible; min-width: 80px; }
.dg-bar i { display: block; height: 100%; } .dg-bar i:first-child { border-radius: 99px 0 0 99px; }
.dg-bar i.e, .dg-legend i.e { background: #16a34a; } .dg-bar i.n, .dg-legend i.n { background: #f59e0b; } .dg-bar i.p, .dg-legend i.p { background: color-mix(in srgb, var(--brand-500, #6366f1) 55%, transparent); }
.dg-bar em, .dg-legend em { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--text-primary); border-radius: 2px; }
.dg-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-tertiary); }
.dg-legend span { display: inline-flex; align-items: center; gap: 5px; position: relative; } .dg-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.dg-legend em { position: static; display: inline-block; height: 12px; }
.dg-ok i { color: #16a34a; } .dg-shortnote i { color: #d97706; }
.dg-row3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; }
.dg-cats { display: flex; flex-direction: column; gap: 8px; }
.dg-cat { display: grid; grid-template-columns: minmax(0, 1.4fr) auto minmax(0, .8fr) minmax(80px, 1fr) 32px; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--bg-surface-2); }
.dg-cat label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-secondary); white-space: nowrap; }
.dg-cat input[type=number] { width: 72px; } .dg-cname { font-weight: 600; }
.dg-cnum { font-size: 13px; color: var(--text-secondary); white-space: nowrap; } .dg-cnum b { color: var(--text-primary); }
.dg-sem { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-top: 1px dashed var(--border-default); }
.dg-sem > b { font-size: 14px; } .dg-sem > b small { font-weight: 500; color: var(--text-tertiary); margin-left: 6px; }
.dg-c { display: grid; grid-template-columns: 96px minmax(0, 1fr) 56px 52px minmax(140px, 220px); gap: 8px; align-items: center; font-size: 13.5px; }
.dg-pl { grid-template-columns: 110px minmax(0, 1fr) 64px 70px minmax(130px, 200px) 32px; padding: 4px; border-radius: 10px; }
.dg-pl.clash { background: color-mix(in srgb, #dc2626 10%, transparent); outline: 1px solid color-mix(in srgb, #dc2626 35%, transparent); }
.dg-code { font-weight: 700; } .dg-cr { color: var(--text-secondary); }
.dg-g { font-weight: 700; text-align: center; padding: 2px 6px; border-radius: 6px; background: var(--bg-surface-2); } .dg-g.f { color: #dc2626; } .dg-g.now { color: #d97706; font-weight: 600; font-size: 12px; }
.dg select, .dg input { min-width: 0; font: inherit; font-size: 14px; color: var(--text-primary); background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: 9px; padding: 6px 9px; }
.dg input::placeholder { color: var(--text-tertiary); }
.dg select:focus, .dg input:focus { outline: 2px solid color-mix(in srgb, var(--brand-500, #6366f1) 45%, transparent); outline-offset: 1px; border-color: var(--brand-500, #6366f1); }
.dg-cname { border-color: transparent !important; background: transparent !important; } .dg-cname:hover, .dg-cname:focus { border-color: var(--border-default) !important; background: var(--bg-surface) !important; }
.dg-newsem { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; } .dg-newsem .st-field { flex: 0 1 260px; }
@media (max-width: 760px) {
  .dg-row3 { grid-template-columns: 1fr 1fr; } .dg-row3 label:first-child { grid-column: 1 / -1; }
  .dg-cat { grid-template-columns: minmax(0, 1fr) auto 32px; row-gap: 6px; } .dg-cat .dg-cname { grid-row: 1; grid-column: 1; } .dg-cat label { grid-row: 1; grid-column: 2; } .dg-cat .st-icon { grid-row: 1; grid-column: 3; }
  .dg-cat .dg-cnum { grid-row: 2; grid-column: 1 / -1; } .dg-cat .dg-bar { grid-row: 3; grid-column: 1 / -1; } .dg-cat input[type=number] { width: 60px; }
  .dg-c { grid-template-columns: 82px minmax(0, 1fr) 50px; } .dg-c .dg-g { grid-column: 3; } .dg-c select { grid-column: 1 / -1; } .dg-c .dg-cr { display: none; }
  .dg-pl { grid-template-columns: 1fr 1fr 56px 32px; padding: 8px; background: var(--bg-surface-2); }
  .dg-pl .dg-name { grid-column: 1 / -1; grid-row: 2; } .dg-pl .dg-crin { grid-column: 3; grid-row: 1; } .dg-pl .dg-slot { grid-column: 1; grid-row: 3; }
  .dg-pl select { grid-column: 2 / -1; grid-row: 3; } .dg-pl .st-icon { grid-column: 4; grid-row: 1; } .dg-pl .dg-code { grid-column: 1 / 3; grid-row: 1; }
}

/* ⭐ 2026-11-16 — inside an AeroGyan app (Flashcards, CGPA & Degree, Exam Prep …): no portal heading */
.st-wrap.st-in-app { padding-top: 14px; }
.st-wrap.st-in-app > .st-tabs { margin-top: 0; }
