/* PrepMode EduTech — classes.css v1: Timetable, batch schedules, My Sessions, class pages (classes.js, file 146) */
.cs-head { align-items: flex-end; }
.cs-head h1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cs-head h1 .cs-pill { font-size: 12px; letter-spacing: 0; }
.cs-body { display: flex; flex-direction: column; gap: 14px; }
.cs-body > .link-btn { align-self: flex-start; text-decoration: none; font-weight: 600; }

/* tabs */
.cs-tabs { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--rule-2); flex-wrap: wrap; align-self: flex-start; }
.cs-tab { min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; font: 600 14px var(--body); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.cs-tab:hover { background: rgba(255, 255, 255, .6); }
.cs-tab[aria-selected=true] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.cs-tab:focus-visible, .cs-opt:focus-visible, .cs-row:focus-visible, .cs-sw:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* pills and notes */
.cs-pill { display: inline-flex; align-items: center; border-radius: 99px; padding: 2px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; line-height: 1.6; }
.cs-g { background: #D1FADF; color: #054F31; } .cs-y { background: #FEF0C7; color: #93370D; } .cs-o { background: #FFEAD5; color: #9C2A10; }
.cs-rd { background: #FEE4E2; color: #912018; } .cs-gr { background: var(--rule-2); color: #344054; } .cs-t { background: var(--brand-soft); color: var(--brand); }
.cs-bl { background: #D1E9FF; color: #1849A9; margin-left: 8px; }
.cs-warn, .cs-bad, .cs-ok { border-radius: 12px; padding: 10px 14px; font-size: 14px; line-height: 1.5; }
.cs-warn { background: #FFFAEB; border: 1px solid #FEDF89; }
.cs-bad { background: #FEF3F2; border: 1px solid #FECDCA; }
.cs-ok { background: #ECFDF3; border: 1px solid #ABEFC6; }
.cs-bad ul { margin: 6px 0 8px; padding-left: 18px; }
.cs-warnt { color: var(--warn-ink); }
.cs-tzline { margin: 0; font-size: 13px; color: var(--slate); }
.cs-flag { color: #B54708; }

/* the week */
.cs-weeknav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cs-weeknav .grow { flex: 1; }
.cs-weeknav select { width: auto; min-width: 150px; }
.cs-week { display: flex; flex-direction: column; gap: 10px; }
.cs-day { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 12px 16px; }
.cs-day.today { border-color: color-mix(in srgb, var(--brand) 45%, white); box-shadow: 0 0 0 3px var(--brand-soft); }
.cs-day-h { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.cs-day-h .link-btn { margin-left: auto; }
.cs-none { margin: 2px 0 4px; }
.cs-rows { display: flex; flex-direction: column; }
.cs-row { display: flex; align-items: center; gap: 14px; padding: 10px 8px; border-top: 1px solid var(--rule-2); color: inherit; text-decoration: none; border-radius: 10px; min-height: 52px; }
.cs-rows > .cs-row:first-child { border-top: 0; }
.cs-row:hover { background: #F9FAFB; }
.cs-row.off .cs-main b, .cs-row.off .cs-time { text-decoration: line-through; color: var(--slate); }
.cs-time { flex: none; width: 74px; font-weight: 700; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; line-height: 1.2; }
.cs-time small { font-weight: 500; color: var(--slate); font-size: 12px; }
.cs-time .cs-dd { font-weight: 600; color: var(--ink-2); font-size: 12.5px; }
.cs-time.wide { width: 92px; }
.cs-date { flex: none; width: 52px; display: flex; flex-direction: column; align-items: center; line-height: 1.1; padding: 6px 0; border-radius: 10px; background: var(--rule-2); }
.cs-date b { font-size: 20px; } .cs-date small { font-size: 11.5px; color: var(--slate); }
.cs-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cs-main b { display: flex; align-items: center; flex-wrap: wrap; }
.cs-main small { color: var(--slate); font-size: 13px; }
.cs-main .cs-why { color: #912018; }
.cs-main .cs-tzmove { color: #93370D; background: #FFFAEB; border-radius: 8px; padding: 4px 8px; margin-top: 4px; }
.cs-side { flex: none; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.cs-go { color: var(--slate); font-size: 20px; }
.cs-list { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 6px 12px; }
.cs-my { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 6px 12px; }

/* forms */
.cs-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.cs-stack { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.cs-form h2, .cs-stack h2 { font-size: 17px; margin-bottom: 10px; }
.cs-field { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; color: #344054; margin: 10px 0 0; min-width: 0; }
.cs-field > span { font-weight: 600; }
.cs-field small { font-weight: 400; }
.cs-field input, .cs-field select, .cs-field textarea { width: 100%; }
.cs-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cs-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cs-seg { display: flex; gap: 8px; flex-wrap: wrap; }
.cs-opt { border: 1px solid var(--field); background: var(--surface); border-radius: 10px; padding: 8px 14px; font: 600 14px var(--body); color: #344054; min-height: 40px; cursor: pointer; }
.cs-opt.on { border: 2px solid var(--brand); background: var(--brand-soft); color: var(--brand); padding: 7px 13px; }
.cs-slots { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.cs-slot { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) 40px; gap: 10px 12px; align-items: end; padding: 12px; border: 1px solid var(--rule); border-radius: 12px; background: #FCFCFD; }
.cs-slot > .cs-field:nth-child(4) { grid-column: 1 / 3; }
.cs-slot > .cs-roomcell { grid-column: 3 / 4; }
.cs-slot > .cs-del { grid-column: 4; grid-row: 1; }
.cs-slot input[type=time] { min-width: 0; }
.cs-slot .cs-field { margin: 0; }
.cs-del { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; font-size: 22px; color: var(--slate); cursor: pointer; }
.cs-del:hover { background: var(--rule-2); color: var(--danger); }
.cs-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }
.cs-btns { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cs-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--rule-2); font-size: 14px; flex-wrap: wrap; }
.cs-line:first-of-type { border-top: 0; }
.cs-kv { font-size: 14.5px; padding: 4px 0; overflow-wrap: anywhere; }
.cs-kv b { color: #344054; }
.cs-row2 { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.cs-row2 .cs-field { width: 160px; }

/* the public link box */
.cs-link .cs-linkrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 6px 0; }
.cs-link .cs-linkrow input { flex: 1; min-width: 180px; font-family: var(--mono); }
.cs-tog { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; }
.cs-tog span { display: flex; flex-direction: column; font-size: 14px; }
.cs-tog h2 { margin: 0; }
.cs-sw { width: 46px; height: 28px; border-radius: 99px; background: var(--brand); position: relative; border: 0; flex: none; cursor: pointer; }
.cs-sw::after { content: ""; position: absolute; right: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .2); }
.cs-sw.off { background: #D0D5DD; } .cs-sw.off::after { right: auto; left: 3px; }

/* complete the class */
.cs-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.cs-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--brand-soft); color: var(--brand); border-radius: 99px; padding: 4px 6px 4px 12px; font-weight: 600; font-size: 13.5px; }
.cs-chip button { border: 0; background: transparent; color: inherit; font-size: 16px; width: 26px; height: 26px; border-radius: 50%; cursor: pointer; }
.cs-chip button:hover { background: rgba(0, 0, 0, .06); }
.cs-btns input[type=text] { flex: 1; min-width: 200px; }
.cs-mark { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-top: 1px solid var(--rule-2); }
.cs-mark:first-of-type { border-top: 0; }
.cs-mark .cs-opt { min-height: 36px; padding: 6px 11px; font-size: 13px; }
.cs-mark .cs-opt.on { padding: 5px 10px; }
.cs-min { width: 90px; }
.cs-topics { margin: 0; padding-left: 20px; }
.cs-note p { font-size: 15px; margin: 0 0 4px; }
.cs-sum { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0; }
.cs-table td { vertical-align: top; }
.cs-checks { display: flex; flex-direction: column; gap: 0; max-height: 260px; overflow: auto; margin-top: 8px; }
.cs-checks .check { margin: 6px 0; }
.cs-daylist { border: 1px solid var(--rule); border-radius: 12px; padding: 4px 12px; }
.cs-dayrow span { display: flex; flex-direction: column; }
.cs-hours { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.cs-hrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cs-hrow select { width: 150px; } .cs-hrow input { width: 130px; }
.cs-kids { align-self: flex-start; }

/* dialogs */
.cs-shade { position: fixed; inset: 0; background: rgba(16, 24, 40, .45); z-index: 1000; display: grid; place-items: center; padding: 16px; }
.cs-dlg { background: var(--surface); border-radius: 18px; width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(16, 24, 40, .25); }
.cs-dlg.wide { width: min(760px, 100%); }
.cs-dlg-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px 8px; }
.cs-dlg-h h2 { font-size: 19px; }
.cs-x { width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; font-size: 24px; color: var(--slate); cursor: pointer; }
.cs-x:hover { background: var(--rule-2); }
.cs-dlg-b { padding: 0 22px 12px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.cs-dlg-b h3 { font-size: 15px; margin: 8px 0 2px; }
.cs-dlg-b .cs-bad, .cs-dlg-b .cs-ok, .cs-dlg-b .cs-warn { margin-top: 10px; }
.cs-dlg-f { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 22px 18px; border-top: 1px solid var(--rule-2); flex-wrap: wrap; }

@media (max-width: 960px) {
  .cs-cols { grid-template-columns: minmax(0, 1fr); }
  .cs-slot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px; }
  .cs-slot > .cs-field:nth-child(3) { grid-column: 1 / 3; }
  .cs-slot > .cs-field:nth-child(4), .cs-slot > .cs-roomcell { grid-column: 1 / 3; }
  .cs-slot > .cs-del { grid-column: 3; grid-row: 1; }
}
@media (max-width: 600px) {
  .cs-grid3, .cs-grid2 { grid-template-columns: minmax(0, 1fr); }
  .cs-row { flex-wrap: wrap; }
  .cs-side { width: 100%; justify-content: flex-start; padding-left: 66px; }
  .cs-weeknav select { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .cs-tab, .cs-opt { transition: none; } }
.cs-mark .cs-minl { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--slate); font-weight: 500; }
.cs-mark .cs-minl input.cs-min { width: 96px; min-height: 38px; }
.cs-date small:first-child { text-transform: uppercase; letter-spacing: .04em; font-size: 10.5px; font-weight: 700; }
.cs-day:not(:has(.cs-row)) { padding: 8px 16px; display: flex; align-items: baseline; gap: 14px; }
.cs-day:not(:has(.cs-row)) .cs-day-h { margin: 0; }

/* v2: time boxes look like every other box (date, text, dropdowns) */
input[type=time] { width: 100%; min-height: 44px; padding: 10px 14px; font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--field); border-radius: var(--radius-sm); }
.cs-hrow input[type=time] { width: 130px; }

/* v2: classes on the student's "Your week" and the teacher's calendar */
.dh-chip.c-class { background: #E8F1FF; color: #1849A9; border-color: #B2CCFF; }
.dh-chip.c-class.off { text-decoration: line-through; opacity: .7; }
.dh-legend i.c-class { background: #2E6BD9; }
.tc-ev.sched, .tc-mev.sched { background: #E8F1FF; color: #1849A9; border-left: 3px solid #2E6BD9; }
.tc-ev.sched.off, .tc-mev.sched.off { text-decoration: line-through; opacity: .65; }
.tc-lg.sched { background: #2E6BD9; }

/* ---------- Part 2: credits ---------- */
.cr-box { display: flex; flex-direction: column; gap: 10px; }
.cr-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cr-h h3 { margin: 0; }
.cr-pkg { border: 1px solid var(--rule); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; background: var(--surface); }
.cr-pkg.low { border-color: #FEDF89; background: #FFFCF2; }
.cr-pkg.off { opacity: .7; }
.cr-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cr-big { white-space: nowrap; text-align: right; }
.cr-big b { font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.cr-bar { height: 6px; border-radius: 3px; background: var(--rule-2); overflow: hidden; }
.cr-bar i { display: block; height: 100%; background: var(--brand-fill, var(--brand)); border-radius: 3px; }
.cr-pkg.low .cr-bar i { background: #F79009; }
.cr-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.cr-note { color: var(--slate); font-style: italic; }
.cr-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.cr-hist { border-top: 1px solid var(--rule-2); padding-top: 6px; max-height: 320px; overflow: auto; }
.cr-line { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; font-size: 13px; border-bottom: 1px solid var(--rule-2); }
.cr-line:last-child { border-bottom: 0; }
.cr-line .grow { flex: 1; min-width: 0; }
.cr-when { width: 52px; flex: none; color: var(--slate); }
.cr-amt, .cr-left { width: 44px; flex: none; text-align: right; font-variant-numeric: tabular-nums; }
.cr-amt.plus { color: #067647; font-weight: 600; }
.cr-amt.minus { color: var(--ink); font-weight: 600; }
.cr-left { color: var(--slate); }
.cr-staff { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cr-in { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.cr-need { margin: 6px 0 10px; padding-left: 18px; line-height: 1.6; }
.cr-req h3 { font-size: 14px; margin: 12px 0 4px; }
.cr-time { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--rule-2); flex-wrap: wrap; }
.cr-time .grow { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.cr-low b { font-variant-numeric: tabular-nums; }
.cr-mine { display: grid; gap: 10px; }
.ad-card.cr-card .cs-line { padding: 7px 0; }

/* ---------- New batch and the batch page (file 150) ---------- */
.bp-stu { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--rule-2); flex-wrap: wrap; }
.bp-stu:first-of-type { border-top: 0; }
.bp-who { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1 1 320px; }
.bp-who .link-btn { align-self: flex-start; padding: 0; }
.bp-num { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.bp-pick { width: 100%; margin: 8px 0 12px; border: 1px solid var(--rule); border-radius: 10px; padding: 6px; font: inherit; }
.nb-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 10px; }
@media (max-width: 960px) { .nb-cols { grid-template-columns: 1fr; } }
.nb-check { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 6px; }
.nb-check .cs-line b { text-align: right; }
.nb-form .k { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--slate); margin: 16px 0 6px; }
.nb-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.nb-slot { padding: 6px 0; }
.nb-slot .cs-del { margin-bottom: 6px; }
.nb-stu { border: 1px solid var(--rule); border-radius: 12px; padding: 10px 12px; margin: 8px 0; display: flex; flex-direction: column; gap: 8px; }
.nb-hits { display: flex; flex-direction: column; gap: 4px; margin: 6px 0; }
.nb-hit { text-align: left; border: 1px solid var(--rule); background: var(--surface); border-radius: 10px; padding: 8px 12px; font: inherit; cursor: pointer; }
.nb-hit:hover, .nb-hit:focus-visible { border-color: var(--brand); }
.nb-sum { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-top: 1px solid var(--rule-2); font-size: 14px; }
.nb-form input[type=search] { width: 100%; }
.pp-tag .pp-taglink { width: auto; height: auto; border-radius: 0; background: none; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* v5: how each student pays, support hours, support requests (file 155; prefix spt-) */
.spt-pay { display: flex; flex-direction: column; gap: 8px; }
.spt-sup { display: flex; flex-direction: column; gap: 6px; border-top: 1px dashed var(--rule); padding-top: 10px; margin-top: 2px; }
.spt-k { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted, #475467); }
.spt-payl { display: inline-flex; align-items: center; gap: 6px; }
.spt-paysel { min-height: 32px; padding: 2px 8px; font-size: 13px; width: auto; }
.spt-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spt-line .cs-btns { gap: 10px; }
.spt-card { border: 1px solid var(--rule); border-radius: 12px; padding: 12px 14px; margin-top: 12px; display: flex; flex-direction: column; gap: 6px; background: var(--surface); }
.spt-req { border-top: 1px solid var(--rule-2); }
.spt-req:first-of-type { border-top: 0; }
.spt-req .cs-line { border-top: 0; }
.spt-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 0 10px; }
.spt-times { display: flex; flex-wrap: wrap; gap: 6px; }
.spt-rows { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.spt-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.spt-row input[type=date] { width: 160px; } .spt-row input[type=time] { width: 120px; }
