/* Week console, scoped to #checklist: spine cards and mono single-line rows */
#checklist .day { background: transparent; border: none;
  border-radius: 0; padding: 0 0 4px; margin-bottom: 6px; }
#checklist .day.today { border-color: transparent; }
#checklist .dayhead { position: sticky; top: 0; z-index: 6;
  padding: 14px 2px 8px; font-family: "JetBrains Mono", ui-monospace,
  monospace; font-size: 11.5px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--dim); gap: 3px 10px;
  background: rgba(12,11,15,.86); -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px); border-radius: 0; }
#checklist .dayhead .date { font-weight: 400; color: var(--faint);
  font-size: 11px; }
#checklist .dayhead .today { background: none; border: none;
  padding: 0; color: var(--green); }
#checklist .dayhead .today::before { content: "● "; font-size: 8px;
  vertical-align: 1px; }
#checklist .group { background: #111014; border: 1px solid
  #17161c; border-left: 2px solid color-mix(in srgb,
  var(--course, var(--border)) 75%, var(--border)); border-radius:
  12px; margin: 0 0 10px; padding: 0 0 4px; overflow: hidden; }
#checklist .group.has-materials { padding-bottom: 4px; }
#checklist .group::before, #checklist .group::after { content: none; }
#checklist .lecture-row { padding: 13px 14px 9px 14px; margin-bottom:
  0; }
#checklist .lecture-row::before { content: none; }
#checklist .lecture-row b { font-size: 15px; }
#checklist .lecture-row .lmeta { font-size: 11.5px; }
#checklist .taskblock { margin: 0; padding: 0; }
#checklist .taskblock > :last-child { margin-bottom: 0; }
/* the reading well: a faint container grouping the week's to-read files */
#checklist .reading-files { margin: 2px 10px 8px; padding: 2px 0; }
/* each reading is a chip with a faint course-tinted fill and outline */
#checklist .reading-files .pill { background: color-mix(in srgb,
  var(--course, var(--accent)) 4%, transparent);
  border: 1px solid color-mix(in srgb, var(--course, var(--accent))
  9%, transparent); border-radius: 10px; }
#checklist .reading-files .pill:last-child { margin-bottom: 2px; }
/* wide desktop: the card splits into session (left) and the week's work
   (right), so a full-width row never strands its checkbox far from its name */
@media (min-width: 1100px) {
  #checklist .group.has-materials { display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    column-gap: 10px; align-items: start; }
  /* a group with no session column (the unsynced course's block) gives
     its work the full width */
  #checklist .group.has-materials > .taskblock:only-child {
    grid-column: 1 / -1; border-left: none; }
  #checklist .lecturezone { padding: 12px 4px 14px 14px; }
  /* the session stacks type, course, time: no dangling separator on wrap */
  #checklist .lecturezone .lecture-row { display: block; padding: 0; }
  #checklist .lecturezone .lecture-row .ls { display: none; }
  #checklist .lecturezone .lecture-row .lstack { display: block;
    margin-top: 2px; }
  #checklist .lecturezone .lecture-row .lmeta { display: block;
    margin-top: 4px; }
  #checklist .taskblock { border-left: 1px solid
    rgba(255,255,255,.05); padding: 8px 0 6px; margin: 8px 0 4px; }
}
/* the row: ▸ glyph · name · hint · pages — one mono line */
#checklist .pill { display: flex; align-items: center; gap: 10px;
  background: none; border: none; border-left: 2px solid transparent;
  border-radius: 0; box-shadow: none; padding: 7px 12px 7px 10px;
  min-height: 40px; margin: 0; font-family: "JetBrains Mono",
  ui-monospace, monospace; font-size: 12.5px; color: var(--dim);
  cursor: pointer; position: relative; }
#checklist .pill::before { content: "▸"; flex-shrink: 0; font-size:
  10px; color: color-mix(in srgb, var(--course, var(--faint)) 65%,
  var(--faint)); transition: color .15s; }
/* the name takes the free space and ellipsizes, so hint, progress, and box
   stay on the row */
#checklist .pill .pname { flex: 1 1 auto; min-width: 0; }
#checklist .pill:hover { background: color-mix(in srgb,
  var(--hov) 16%, transparent); color: var(--text); }
#checklist .pill:hover::before, #checklist .pill.wcsel::before {
  color: var(--course, var(--hovt)); }
#checklist .pill .ficon { display: none; }
#checklist .pill.hinted { padding-top: 7px; }
#checklist .pill.pproged { padding-top: 7px; }
#checklist .pill .pname { flex: 1 1 auto; min-width: 0; }
/* the file type: a tiny bordered tag between name and locator */
#checklist .pill .ftype { flex-shrink: 0; font-size: 8.5px;
  font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--faint); border: 1px solid var(--border);
  border-radius: 4px; padding: 1.5px 5px 2px; }
#checklist .pill .phint { margin: 0; padding-left: 12px; order: 2;
  font-size: 10.5px; font-style: italic; color: var(--faint);
  white-space: nowrap; flex-shrink: 0; }
#checklist .pill .phint.entire { font-style: italic; }
/* the tick box owns the right edge — no trailing label can push it */
#checklist .pill .box { margin-left: auto; order: 4; width: 18px;
  height: 18px; border-radius: 6px;
  border: 1.5px solid color-mix(in srgb, var(--course, var(--dim)) 40%,
  var(--border)); flex-shrink: 0; position: relative; opacity: .8; }
/* the reading circle: the box's slot, round to read as "mark read", not "done" */
#checklist .pill .rbox { margin-left: auto; order: 4; width: 17px;
  height: 17px; border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--course, var(--dim)) 40%,
  var(--border)); flex-shrink: 0; position: relative; opacity: .8;
  cursor: pointer; transition: background .15s, border-color .15s,
  opacity .15s; }
#checklist .pill:hover .rbox { opacity: 1; }
/* the tick strip: the row's right edge, full height, set off by a faint
   hairline; it tints while pressed */
#checklist .pill .rhit { order: 4; align-self: stretch; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  width: 52px; margin: -7px -12px -7px auto; cursor: pointer;
  box-shadow: inset 1px 0 0 color-mix(in srgb, var(--border) 55%,
  transparent);
  -webkit-tap-highlight-color: transparent; transition: background .15s; }
#checklist .pill .rhit .rbox { margin: 0; }
#checklist .pill .rhit:hover .rbox { opacity: 1; border-color:
  var(--course, var(--accent)); }
#checklist .pill .rhit:active { background: color-mix(in srgb,
  var(--course, var(--accent)) 12%, transparent); }
#checklist .pill .rbox.on { background: var(--course, var(--accent));
  border-color: var(--course, var(--accent)); opacity: 1; }
#checklist .pill .rbox.on::after { content: "✓"; position: absolute;
  inset: 0; color: #0b0c0f; font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; }
#checklist .pill:hover .box { opacity: 1; }
#checklist .pill.done .box { background: var(--course, var(--accent));
  border-color: var(--course, var(--accent)); opacity: 1; }
#checklist .pill.done .box::after { color: #0b0c0f; font-size: 11px; }
#checklist .pill.done { opacity: .6; }
#checklist .pill .newb { background: none; padding: 0; color:
  var(--gold, #d9c08b); font-size: 9px; font-weight: 700;
  letter-spacing: 1px; margin-left: 8px; }
#checklist .pill .newb::before { content: "["; }
#checklist .pill .newb::after { content: "]"; }
#checklist .pill .pprog { margin-left: 8px; order: 3; font-size: 10px;
  color: var(--faint); flex-shrink: 0; }
#checklist .pill .pprogb { left: 12px; bottom: 3px; height: 2px;
  background: var(--course, var(--accent)); }
#checklist .pill.reader { cursor: default; }
#checklist .pill.reader:hover { background: none; color: var(--dim); }
/* deadlines: plain rows with a red spine, a DUE label, and the date */
#checklist .duebox { background: none; border: none; border-radius: 0;
  margin: 0 10px 4px; overflow: hidden; }
#checklist .duebox .pill.due { padding-right: 10px;
  border-left: 2px solid rgba(255, 138, 158, .45); }
#checklist .duebox .pill.due + .pill.due { border-top: 1px solid
  rgba(255, 255, 255, .05); }
#checklist .pill.due { --course: #f0879b; display: flex;
  align-items: center; column-gap: 9px; }
#checklist .pill.due::before { content: none; }
#checklist .pill.due .pname { min-width: 0; }
/* the due tag groups with the date at the right; name and course stay left */
#checklist .pill.due .duetag { flex-shrink: 0; font-size: 9px;
  font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
  color: #ff9aa8; margin-left: auto; padding-left: 12px; }
#checklist .pill.due .t { color: var(--text); font-weight: 650; }
#checklist .pill.due .t a, #checklist .pill.due .pname a {
  color: var(--accent2); font-style: italic;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(149, 137, 240, .4); }
/* the course label is metadata but a real link: course color, dimmed,
   always underlined; hover brightens both */
#checklist .pill.due .duecourse a { color: color-mix(in srgb,
  var(--course, #97917d) 72%, var(--dim));
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb,
  var(--course, #97917d) 42%, transparent); }
#checklist .pill.due .duecourse a:hover { color: var(--text);
  text-decoration-color: var(--course, var(--text)); }
#checklist .pill.due .pname a:hover { text-decoration-color:
  #ff9aa8; }
#checklist .pill.due .duecourse { flex-shrink: 0; font-size: 10.5px;
  color: var(--faint); padding-left: 8px; white-space: nowrap; }
#checklist .pill.due .duedate { flex-shrink: 0; margin-left: 0;
  font-size: 10.5px; font-weight: 700; color: #ff9aa8;
  letter-spacing: .5px; white-space: nowrap; padding-left: 12px;
  font-variant-numeric: tabular-nums; }
#checklist .pill.due:hover { background: rgba(255, 138, 158, .06); }
#checklist .pill.due.done { opacity: .5; }
/* handed in: the name gets a red strike, the row keeps its look */
#checklist .pill.due.done .pname a,
#checklist .pill.due.done .t { text-decoration: line-through;
  text-decoration-color: rgba(255, 154, 168, .6);
  text-decoration-thickness: 1.5px; }
#checklist .pill.due .phint { display: none; }
/* standalone deadlines lead the schedule in their own faint red frame */
#checklist .duebox.standalone { background: rgba(255, 138, 158, .04);
  border: 1px solid rgba(255, 138, 158, .16); border-radius: 10px;
  margin: 2px 0 16px; padding: 2px 0; }
#checklist .duebox.standalone .pill.due { border-left: none; }
#checklist .duehead { margin: 6px 0 6px; }
/* phones: three lines (name, course link at the same left edge, then due
   tag + date + checkbox) so every tap target is unambiguous */
@media (max-width: 640px) {
  #checklist .duebox .pill.due { flex-wrap: wrap; row-gap: 5px;
    padding: 9px 12px 10px; }
  #checklist .pill.due .pname { order: 1;
    flex: 1 1 calc(100% - 40px); }
  #checklist .pill.due .box { order: 2; }
  #checklist .pill.due .duecourse { order: 3; flex: 1 1 100%;
    padding-left: 0; }
  #checklist .pill.due .duetag { order: 4; margin-left: auto;
    padding-left: 0; }
  #checklist .pill.due .duedate { order: 5; }
}
/* keyboard selection cursor */
#checklist .pill.wcsel { background: color-mix(in srgb,
  var(--accent) 18%, transparent); border-left-color:
  var(--accent); color: var(--text); }
#checklist .pill.wcsel::after { content: "▌"; position: absolute;
  right: 8px; color: var(--accent); font-size: 11px; }
/* section labels are icon-only; the folder is the files fold's own head */
#checklist .wcsec { display: flex; align-items: center; gap: 8px;
  padding: 9px 12px 4px 10px; }
#checklist .wcsec svg { color: var(--course, var(--accent)); }
#checklist .wcsec.due svg { color: #ff9aa8; }
/* drawer dividers: icon + word, tiny and quiet */
#checklist .wcsec.worded { padding: 8px 12px 3px 10px; gap: 7px; }
#checklist .wcsec.worded span { font-size: 9px; font-weight: 700;
  letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--faint); }
/* the file fold: folder glyph, plain count, the word "files", and the
   chevron; it reads as a label, not a chip */
#checklist .wcfoldh { display: flex; align-items: center; gap: 7px;
  margin: 5px 10px 1px; padding: 5px 8px; min-height: 30px;
  border-radius: 8px; cursor: pointer;
  background: color-mix(in srgb, var(--course, var(--accent)) 6%,
  transparent);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px; font-weight: 600; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--dim);
  user-select: none; transition: background .15s, color .15s; }
#checklist .wcfoldh:hover { color: var(--text);
  background: color-mix(in srgb, var(--course, var(--hov)) 11%,
  transparent); }
#checklist .wcfold.open .wcfoldh { color: var(--text); }
#checklist .wcfoldh svg { flex-shrink: 0; color: var(--course,
  var(--accent)); fill: color-mix(in srgb, var(--course, var(--accent))
  20%, transparent); transition: fill .15s; }
#checklist .wcfoldh:hover svg, #checklist .wcfold.open .wcfoldh svg {
  fill: color-mix(in srgb, var(--course, var(--accent)) 32%,
  transparent); }
#checklist .wcfoldh .f-open { display: none; }
#checklist .wcfold.open .wcfoldh .f-open { display: block; }
#checklist .wcfold.open .wcfoldh .f-closed { display: none; }
#checklist .wcfoldh .fcount { flex-shrink: 0; font-size: 10px;
  letter-spacing: 0; color: var(--text);
  font-variant-numeric: tabular-nums; }
#checklist .wcfoldh .flabel { color: var(--faint); }
/* the disclosure chevron rotates from right (closed) to down (open) */
#checklist .wcfoldh .chev { margin-left: auto; display: inline-flex;
  color: var(--faint); transition: transform .22s
  cubic-bezier(.34,1.56,.64,1), color .15s; }
#checklist .wcfold.open .wcfoldh .chev { transform: rotate(90deg);
  color: var(--course, var(--accent)); }
#checklist .wcfoldb { display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .28s cubic-bezier(.2,0,0,1); }
#checklist .wcfold.open .wcfoldb { grid-template-rows: 1fr; }
#checklist .wcfoldb > .wcfoldin { overflow: hidden; min-height: 0; }
@media (prefers-reduced-motion: reduce) {
  #checklist .wcfoldb { transition: none; }
}
#checklist .moreb { display: block; width: 100%; background: none;
  border: none; border-top: 1px solid var(--border); color:
  var(--course, var(--accent)); font: 600 12px "JetBrains Mono",
  ui-monospace, monospace; padding: 8px; cursor: pointer; }
#checklist .moreb:hover { background: color-mix(in srgb,
  var(--course, var(--hov)) 8%, transparent); }
#checklist .readingblock { padding: 0 0 2px; }
/* a reading's checklist (pieces): one row per work, its name, a quiet
   line under it; the circle keeps the right
   edge like every other reading row */
#checklist .pill.piece { align-items: flex-start; cursor: default; }
#checklist .pill.piece[role=button] { cursor: pointer; }
#checklist .piece .pbody { flex: 1; min-width: 0; display: flex;
  flex-direction: column; gap: 2px; }
#checklist .piece .ptop { display: flex; align-items: baseline; gap: 4px 8px;
  flex-wrap: wrap; }
#checklist .piece .pn { font: 500 13.5px/1.35 Geist, Inter, sans-serif;
  color: var(--text); overflow-wrap: anywhere; }
#checklist .piece a.pn { color: var(--accent2); text-decoration: none; }
#checklist .piece a.pn:hover { text-decoration: underline; }
#checklist .piece .ptag { font: 500 10px/1 "JetBrains Mono", ui-monospace,
  monospace; color: var(--dim); border: 1px solid var(--border);
  border-radius: 999px; padding: 3px 7px; white-space: nowrap; }
#checklist .piece .psub { font-size: 11.5px; line-height: 1.4;
  color: var(--dim); }
#checklist .piece.done .pn { opacity: .55; }
#checklist .readhead { padding: 8px 12px 4px; align-items: center; }
#checklist .rtitle { font-family: Geist, Inter, sans-serif; font-size:
  13.5px; font-weight: 600; color: var(--text); }
#checklist .citebtn { font-family: "JetBrains Mono", ui-monospace,
  monospace; font-size: 10px; }
/* task-readings (no files) render as console rows with the same padding
   and checkbox geometry, so every tick box sits at the same x */
#checklist .card.reading { background: none; border: none;
  border-radius: 0; padding: 0; margin: 0; min-height: 0;
  display: flex; align-items: center; }
#checklist .card.reading .readrow { padding: 7px 12px 7px 10px;
  min-height: 40px; flex: 1; }
#checklist .card.reading .title { font-family: "JetBrains Mono",
  ui-monospace, monospace; font-size: 12.5px; color: var(--dim); }
#checklist .card.reading:hover { border-color: transparent;
  background: color-mix(in srgb, var(--course, var(--hov)) 7%,
  var(--panel2)); }
#checklist .card.reading.done .title { text-decoration: line-through;
  color: var(--faint); }
#checklist .card.reading .box { width: 18px; height: 18px;
  border-radius: 6px; border: 1.5px solid color-mix(in srgb,
  var(--course, var(--dim)) 40%, var(--border)); position: relative;
  flex-shrink: 0; transition: background .18s, border-color .18s; }
#checklist .card.reading.done .box { background:
  var(--course, var(--accent)); border-color:
  var(--course, var(--accent)); }
#checklist .card.reading.done .box::after { color: #0b0c0f;
  font-size: 11px; }
#checklist .sectionhead { font-family: "JetBrains Mono", ui-monospace,
  monospace; font-size: 9.5px; font-weight: 700; letter-spacing: 2px; }
/* ---- palette and filter ---- */
#wcpalette { position: fixed; inset: 0; z-index: 90; display: none;
  align-items: flex-start; justify-content: center; padding-top: 12vh;
  background: rgba(5,6,8,.6); -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px); }
#wcpalette.open { display: flex; }
#wcpalette .pal { width: min(520px, calc(100% - 32px)); background:
  var(--panel); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; box-shadow: 0 24px 64px rgba(0,0,0,.5); }
#wcpalette input { width: 100%; background: none; border: none;
  outline: none; color: var(--text); font: 400 15px "JetBrains Mono",
  ui-monospace, monospace; padding: 14px 16px; border-bottom: 1px
  solid var(--border); }
#wcpalette .hint { padding: 8px 16px 10px; font-family: "JetBrains
  Mono", ui-monospace, monospace; font-size: 10.5px; color:
  var(--faint); display: flex; gap: 14px; }
#wcpalette .hint b { color: var(--dim); font-weight: 600; }
#checklist.wcfilter .pill:not(.wchit) { display: none; }
#checklist.wcfilter .group:not(.has-hit) { display: none; }
#checklist.wcfilter .day:not(.has-hit) { display: none; }
#checklist.wcfilter .readingblock:not(.has-hit) { display: none; }
/* motion is garnish, never information: reduced motion drops entrance
   animations and transitions */
@media (prefers-reduced-motion: reduce) {
  .lq, .lv, .lreveal, .lcleared, .lsecleared, .lmine, .lmine::before,
  .lmodel, .lfoot, .lload,
  .lactions, .lv .vtop.vin > *,
  .learnmain.leaving > *, .examcard
    { animation: none !important; }
  .learninput { transition: none !important; }
  .lsechead .pbar i, .mbar i { transition: none !important; }
  .popnum { animation: none !important; }
}
/* code disables ligatures so == doesn't fuse into one glyph. The font:
   shorthand in every code rule resets ligature settings (CSS Fonts 4),
   so this must come last */
pre, code, .qcode, .qcode code, .qopt code,
.md pre, .md code, .lv .qcode, .lv .md code,
.lq .qcode, .msg code, .msg pre code {
  font-variant-ligatures: none !important;
  -webkit-font-feature-settings: "calt" 0, "liga" 0 !important;
  font-feature-settings: "calt" 0, "liga" 0 !important;
}
