/* The teacher experience (#54): the Teacher Hub, projector, setup and the student's Assigned card (panels/teacher.js). Colours follow
   TeacherReports.swift: green / amber / red for mastery, a dot per kind of activity, Brand.accent for actions. */
.teacher { display: block !important; padding: 0 !important; color: var(--ink); }
.formsheet:has(> .th-hub) > .navbar, .formsheet:has(> .th-projector) > .navbar, .formsheet:has(> .th-setup) > .navbar { display: none; }
.formsheet:has(> .th-hub) { padding-top: env(safe-area-inset-top); }

/* Levels, activity and status tones */
.lv-strong, .tone-done { color: var(--good); }
.lv-fair { color: var(--accent); }
.lv-weak, .tone-overdue { color: var(--stamp); }
.lv-unknown, .tone-open { color: rgba(243,235,216,.6); }
.act-today { color: var(--good); } .act-thisWeek { color: var(--teal); } .act-inactive { color: var(--accent); } .act-never { color: rgba(243,235,216,.55); }
.th-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; border: .5px solid rgba(243,235,216,.25); background: rgba(243,235,216,.35); }
.th-dot.today { background: var(--good); } .th-dot.thisWeek { background: var(--teal); } .th-dot.inactive { background: var(--accent); }
.th-meter { display: block; height: 6px; border-radius: 999px; background: rgba(243,235,216,.12); overflow: hidden; flex: 1; min-width: 40px; }
.th-meter b { display: block; height: 100%; border-radius: 999px; background: var(--teal); }
.th-meter.ok b { background: var(--good); } .th-meter.late b { background: var(--accent); }
.th-meter.lv-strong b { background: var(--good); } .th-meter.lv-fair b { background: var(--accent); } .th-meter.lv-weak b { background: var(--stamp); } .th-meter.lv-unknown b { background: rgba(243,235,216,.35); }
.th-meter { color: inherit; }

/* The hub: a stack on phones, your classes beside the open class on wide screens */
.th-hub { height: 100%; overflow: hidden; position: relative; }
.th-hub.th-wide { display: flex !important; }
.th-side { width: 340px; flex: none; border-right: 1px solid rgba(243,235,216,.18); min-height: 0; display: flex; flex-direction: column; }
.th-main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.th-hub > .th-page, .th-side > .th-page, .th-main > .th-page { flex: 1; min-height: 0; }
.th-page { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.th-page[hidden] { display: none; }
.th-bar { display: flex; align-items: center; gap: 8px; padding: 6px 12px; min-height: 52px; flex: none; }
.th-bar h3 { flex: 1; margin: 0; font-size: 23px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-top: 3px; }
.th-side .th-bar h3, .th-main .th-bar h3 { text-align: left; }
.th-bar .navback { min-width: 0; }
.th-nob { width: 4px; flex: none; }
.th-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.th-done { min-width: 0; font-weight: 600; }
.th-content { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; grid-template-columns: minmax(0, 1fr); padding: 4px 16px calc(24px + env(safe-area-inset-bottom)); display: grid; gap: 12px; align-content: start; }
.th-bspin { position: static; width: 18px; height: 18px; margin: 0; border-width: 2px; }
.th-icobtn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); background: rgba(63,167,160,.0); }
.th-icobtn:hover { background: rgba(255,255,255,.08); }
.th-icobtn.danger { color: var(--stamp); }
.th-codechip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px; font-size: 14px; letter-spacing: .04em; background: rgba(63,167,160,.22); border: 1px solid rgba(63,167,160,.7); color: var(--ink); }
.th-empty { display: grid; justify-items: center; gap: 8px; padding: 60px 20px; text-align: center; color: rgba(243,235,216,.7); }
.th-empty h3 { margin: 0; font-size: 26px; color: var(--ink); }
.th-error { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 10px; background: rgba(255,159,10,.14); color: var(--orange); font-size: 13px; }
.th-error span { flex: 1; }
.th-error button { color: rgba(243,235,216,.7); padding: 4px; }
.th-errslot:empty { display: none; }

/* The class list */
.th-class { display: grid; gap: 8px; text-align: left; width: 100%; padding: 16px; border-radius: 10px; background: var(--paper); border: 1px solid rgba(243,235,216,.28); }
.th-class.sel { border: 2px solid var(--accent); padding: 15px; }
.th-classhead { display: flex; align-items: baseline; gap: 8px; }
.th-classhead b { font-size: 24px; line-height: 1.1; padding-top: 3px; overflow-wrap: anywhere; }
.th-classhead .th-code { margin-left: auto; color: rgba(243,235,216,.65); font-size: 15px; }
.th-badge { font-size: 12px; color: #000; background: var(--accent); border-radius: 999px; padding: 4px 8px 1px; }
.th-classsub { font-size: 14px; color: rgba(243,235,216,.88); }
.th-quiz { display: flex; align-items: center; gap: 10px; }
.th-quiz small { white-space: nowrap; }
.th-closed { display: flex; align-items: center; gap: 4px; color: var(--accent); }
.th-archived summary { font-size: 18px; color: rgba(243,235,216,.65); cursor: pointer; padding: 6px 0; }
.th-arch { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 8px; padding: 12px; border-radius: 10px; background: rgba(23,62,107,.6); text-align: left; }
.th-arch b { flex: 1; font-size: 15px; }

/* A class: tabs and the four screens */
.th-class-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; }
.th-tabs, .th-seg { display: flex; gap: 2px; padding: 2px; border-radius: 9px; background: linear-gradient(rgba(120,120,128,.28), rgba(120,120,128,.28)), var(--deep); position: sticky; top: 0; z-index: 2; }
.th-seg { position: static; }
.th-tabs button, .th-seg button { flex: 1; padding: 7px 4px; border-radius: 7px; font-size: 14px; font-weight: 600; color: var(--ink); }
.th-tabs button.on, .th-seg button.on { background: rgba(255,255,255,.22); }
.th-archnote { display: flex; align-items: center; gap: 6px; justify-content: center; font-size: 13px; color: rgba(243,235,216,.65); }
.th-archnote:empty { display: none; }
.th-flow { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; align-items: start; max-width: 1100px; margin: 0 auto; width: 100%; }
.th-flow > .full { grid-column: 1 / -1; }
.th-narrow, .th-settings { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 860px; margin: 0 auto; width: 100%; }
.th-settings { max-width: 640px; }
.th-headline { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 10px; background: rgba(242,165,65,.12); border: 1px solid rgba(242,165,65,.5); }
.th-headline .sf { color: var(--accent); margin-top: 2px; }
.th-headline p { font: 600 17px/1.3 var(--round); }
.th-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .th-tiles { grid-template-columns: repeat(4, 1fr); } }
.th-tiles .stattile.tone-good .val, .th-tiles .stattile.tone-strong .val { color: var(--good); }
.th-tiles .stattile.tone-fair .val { color: var(--accent); }
.th-tiles .stattile.tone-weak .val { color: var(--stamp); }
.th-card { align-content: start; }
.th-sub { font-size: 14px; }
.th-bigcode { font-size: 40px; letter-spacing: 6px; color: var(--accent); font-weight: 800; }
.th-pill { display: inline-flex; align-items: center; gap: 5px; justify-self: start; padding: 7px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--accent); background: rgba(242,165,65,.14); border: 1px solid rgba(242,165,65,.6); }
.th-pill.big { padding: 9px 14px; }
.th-pill.danger { color: var(--stamp); background: rgba(232,85,62,.14); border-color: rgba(232,85,62,.6); }
.th-pill:disabled { opacity: .4; }
.th-seeall { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 600; color: var(--accent); }
.th-assigned-all { padding: 16px; display: grid; gap: 20px; }
.th-more { justify-self: start; font-size: 14px; font-weight: 600; color: var(--accent); padding: 4px 0; }
.th-link { display: block; width: 100%; padding: 10px; text-align: center; font-size: 14px; font-weight: 600; color: var(--accent); }
.th-rrow { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 4px 0; }
.th-rrow + .th-rrow { border-top: 1px solid rgba(243,235,216,.12); padding-top: 10px; }
.th-rrow span { display: grid; gap: 2px; min-width: 0; } .th-rrow b { font-size: 15px; } .th-rrow small { font-size: 12px; }
.th-urow { display: grid; gap: 5px; }
.th-uhead { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.th-uhead b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.th-uhead .num { font-size: 16px; }
.th-urow small { font-size: 12px; }
.th-nudge { display: flex; align-items: center; gap: 10px; text-align: left; width: 100%; padding: 8px 0; }
.th-nudge + .th-nudge { border-top: 1px solid rgba(243,235,216,.12); }
.th-nudge span { flex: 1; display: grid; gap: 1px; } .th-nudge b { font-size: 15px; } .th-nudge small { font-size: 12px; }

/* Assignment rows */
.th-assign { display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: left; padding: 6px 0; }
.th-assign.plain { padding: 8px 0; }
.th-aico { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; flex: none; background: rgba(15,42,73,.7); color: var(--accent); }
.th-aico.challenge { color: var(--teal); }
.th-aico.big { width: 44px; height: 44px; }
.th-abody { flex: 1; min-width: 0; display: grid; gap: 5px; }
.th-ahead { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.th-ahead b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.th-ahead small { white-space: nowrap; font-size: 12px; }
.th-adetail { display: flex; gap: 8px; font-size: 12px; }
.th-assign > .sf { margin-top: 12px; color: rgba(243,235,216,.5); }

/* Students */
.th-listhead { display: flex; justify-content: space-between; align-items: center; padding: 0 4px; }
.th-sort { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 600; }
.th-sort select { background: none; border: 0; color: inherit; font: inherit; font-size: 14px; cursor: pointer; max-width: 150px; }
.th-sort select option { color: #000; }
.th-rows .th-srow { display: flex; align-items: center; border-top: 1px solid rgba(243,235,216,.12); }
.th-rows .th-srow:first-child { border-top: 0; }
.th-srowmain { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 12px; text-align: left; padding: 10px 6px 10px 14px; }
.th-srowmain .th-dot { margin-top: 6px; }
.th-srowmain > .sf { margin-top: 8px; color: rgba(243,235,216,.5); }
.th-stxt { flex: 1; min-width: 0; display: grid; gap: 2px; } .th-stxt > b { font-size: 16px; } .th-stxt small { font-size: 12px; }
.th-x { padding: 12px 14px; color: rgba(243,235,216,.45); }
.th-x:hover { color: var(--stamp); }
.th-rows .th-srow .th-assign { padding: 10px 6px 10px 14px; flex: 1; }

/* A student */
.th-shead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.th-shead h2 { margin: 0; font-size: 32px; line-height: 1.1; padding-top: 3px; overflow-wrap: anywhere; }
.th-shead span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.th-meta { display: grid; gap: 3px; font-size: 14px; }
.th-namerow { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 0; border-top: 1px solid rgba(243,235,216,.12); text-align: left; }
.th-namerow b { flex: 1; font-size: 15px; } .th-namerow .sf:last-child { color: rgba(243,235,216,.5); }
.th-nw { font-size: 30px; }
.th-chart { width: 100%; height: auto; max-height: 220px; }
.th-chart text { fill: rgba(243,235,216,.6); font: 10px var(--num); }
.th-chart .grid { stroke: rgba(243,235,216,.12); stroke-width: 1; }
.th-chart .area { fill: rgba(242,165,65,.2); }
.th-chart .ln { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.th-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.th-bchip { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; background: rgba(15,42,73,.55); font-size: 14px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.th-bchip i { font-style: normal; font-size: 18px; }
.th-pub, .th-won { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.th-won { font-size: 14px; }
.th-arow { display: flex; align-items: center; gap: 10px; }
.th-arow > span:nth-child(2) { flex: 1; display: grid; min-width: 0; } .th-arow b { font-size: 15px; } .th-arow small { font-size: 12px; }
.th-arow > b:last-child { font-size: 14px; white-space: nowrap; }
.th-lrow { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.th-lrow b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .th-lrow small { font-size: 12px; white-space: nowrap; }

/* One assignment */
.th-ahero { display: flex; align-items: center; gap: 12px; }
.th-ahero h2 { margin: 0; font-size: 24px; padding-top: 3px; } .th-ahero small { font-size: 12px; }
.th-editrow { display: flex; align-items: baseline; gap: 8px; width: 100%; text-align: left; padding: 6px 0; font-size: 15px; }
.th-editrow b { width: 56px; font-size: 12px; color: rgba(243,235,216,.6); flex: none; }
.th-editrow span { flex: 1; }
.th-editrow .sf { color: rgba(243,235,216,.5); }
.th-h4 { margin: 8px 4px 0; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: rgba(243,235,216,.6); }
.th-statrow { display: flex; justify-content: space-between; gap: 10px; width: 100%; padding: 12px 14px; text-align: left; border-top: 1px solid rgba(243,235,216,.12); }
.th-statrow:first-child { border-top: 0; }
.th-statrow b { font-size: 15px; } .th-statrow span { font-size: 14px; }

/* Settings */
.th-samplenote { display: flex; align-items: center; gap: 8px; padding: 14px; border-radius: 10px; background: rgba(242,165,65,.12); color: var(--accent); font-size: 14px; }
.th-settings .toggle { padding: 4px 0; }
.th-settings .st-lbl { display: grid; gap: 2px; }
.th-coderow { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(243,235,216,.12); padding-top: 10px; }
.th-coderow span { display: grid; }
.th-code2 { font-size: 22px; letter-spacing: 3px; }

/* The assign sheet */
.th-assign-sheet { display: flex !important; flex-direction: column; height: 100%; }
.th-asscroll { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 16px 12px; display: grid; gap: 10px; align-content: start; }
.th-asclasses:empty { display: none; }
.th-chk { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 10px 12px; border-radius: 10px; background: var(--paper); margin-top: 6px; text-align: left; }
.th-chk .sf { color: var(--accent); }
.th-search { font-size: 16px; padding: 9px 12px; }
.th-pick { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; background: var(--paper); margin-top: 6px; }
.th-pick > span { flex: 1; display: grid; gap: 2px; min-width: 0; } .th-pick b { font-size: 15px; } .th-pick small { font-size: 12px; }
.th-pick > .sf:first-child { color: var(--accent); }
.th-pick.on { outline: 2px solid var(--accent); }
.th-pick > .sf:last-child { color: var(--accent); }
.th-found { color: var(--teal); font-weight: 600; }
.th-asbar { flex: none; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); display: grid; gap: 8px; background: rgba(15,42,73,.92); border-top: 1px solid rgba(243,235,216,.18); }
.th-asdue { display: flex; align-items: center; gap: 10px; }
.th-asdue b { flex: 1; font-size: 15px; }
.th-date { background: rgba(0,0,0,.25); color: var(--ink); border: 1px solid rgba(255,255,255,.3); border-radius: 8px; padding: 6px 8px; font: inherit; color-scheme: dark; }
.th-asdue .toggle { padding: 0; }
.th-note { font-size: 15px; padding: 9px 12px; resize: none; }
.th-count { text-align: right; } .th-count:empty { display: none; }

/* The projector */
.th-projector { background: #000; color: #fff; height: 100%; overflow-y: auto; padding: calc(60px + env(safe-area-inset-top)) 24px 32px !important; position: relative; }
.formsheet:has(> .th-projector) { background: #000; }
.th-pdone { position: fixed; top: calc(14px + env(safe-area-inset-top)); right: 20px; padding: 9px 18px; border-radius: 999px; background: rgba(255,255,255,.18); font-size: 17px; font-weight: 600; color: #fff; z-index: 3; }
.th-pmain { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; max-width: 1300px; margin: 0 auto; }
@media (min-width: 900px) { .th-pmain { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; } }
.th-phead { display: grid; gap: 14px; min-width: 0; }
.th-phead h1 { margin: 0; font-size: clamp(32px, 6vw, 44px); color: var(--ink); line-height: 1.05; }
.th-pcode { font-weight: 800; font-size: clamp(40px, 15vw, 140px); letter-spacing: .08em; line-height: 1; color: #fff; white-space: nowrap; }
.th-psteps { font: 600 clamp(17px, 3vw, 22px)/1.3 var(--round); color: rgba(255,255,255,.8); }
.th-pqr { background: #fff; border-radius: 20px; padding: 14px; width: min(50vw, 240px); height: min(50vw, 240px); flex: none; }
@media (min-width: 900px) { .th-pqr { width: min(40vh, 300px); height: min(40vh, 300px); } }
.th-pqr canvas, .th-iqr canvas, .tg-qrbox canvas { width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.th-pcount { margin: 28px auto 14px; max-width: 1300px; font-size: 56px; color: var(--accent); }
.th-pcount.empty { font-size: 34px; color: rgba(255,255,255,.6); }
.th-pchips { display: flex; flex-wrap: wrap; gap: 10px; max-width: 1300px; margin: 0 auto; }
.th-pchips span { padding: 8px 14px; border-radius: 999px; background: var(--paper); border: 1px solid rgba(255,255,255,.15); font: 600 20px var(--round); animation: th-pop .45s cubic-bezier(.3,1.4,.5,1); }
.th-pchips span.more { background: none; border: 0; color: rgba(255,255,255,.6); }
@keyframes th-pop { from { transform: scale(.4); opacity: 0; } }

/* First-run setup */
.th-setup { height: 100%; overflow-y: auto; background: linear-gradient(#171236, #261D4A 60%, #30255C); padding: 0 !important; }
.th-setbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: calc(12px + env(safe-area-inset-top)) 20px 12px; }
.th-steps { grid-column: 2; grid-row: 1; display: flex; gap: 8px; }
.th-steps i { width: 8px; height: 8px; border-radius: 99px; background: rgba(243,235,216,.35); transition: width .3s; }
.th-steps i.on { width: 22px; background: var(--accent); }
.th-sback { grid-column: 1; grid-row: 1; justify-self: start; min-width: 0; font-size: 15px; font-weight: 600; }
.th-sx { grid-column: 3; grid-row: 1; justify-self: end; width: 34px; height: 34px; border-radius: 50%; background: rgba(15,42,73,.7); color: var(--ink); display: grid; place-items: center; }
.th-sbody { max-width: 560px; margin: 0 auto; padding: 8px 24px calc(32px + env(safe-area-inset-bottom)); display: grid; gap: 18px; align-content: start; }
.th-stitle h2 { margin: 0; font-size: 40px; line-height: 1.05; padding-top: 4px; color: var(--ink); }
.th-stitle p { margin-top: 8px; font: 15px/1.35 var(--round); color: rgba(243,235,216,.8); }
.th-stiles { display: grid; gap: 10px; }
.th-stile { display: flex; gap: 14px; padding: 14px; border-radius: 16px; background: rgba(23,62,107,.85); border: 1px solid rgba(255,255,255,.1); }
.th-stile .ico { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgba(15,42,73,.7); color: var(--accent); }
.th-stile > span:last-child { display: grid; gap: 3px; align-content: start; } .th-stile b { font-size: 21px; padding-top: 3px; } .th-stile small { font-size: 14px; color: rgba(243,235,216,.75); }
.th-acct { display: grid; gap: 12px; }
.th-acct .section { margin: 0; }
.th-invite { display: grid; justify-items: center; gap: 14px; padding: 16px; border-radius: 16px; background: rgba(23,62,107,.85); border: 1px solid rgba(255,255,255,.1); }
.th-icode { font-size: clamp(40px, 14vw, 64px); letter-spacing: .12em; font-weight: 800; color: var(--ink); }
.th-iqr { width: 200px; height: 200px; background: #fff; border-radius: 14px; padding: 10px; }
.th-invite .note { text-align: center; }
.th-joined { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: rgba(243,235,216,.75); }
.th-joined.any { color: var(--accent); }

/* The top bar's classes button */
#teacher-btn { color: #fff; }

/* The student's Assigned card (HQ and Learn) */
.hq-slot.hq-ext:empty { display: none; }
.th-assigned:empty { display: none; }
.th-agroup { display: grid; gap: 8px; }
.th-agroup + .th-agroup { margin-top: 6px; }
.th-aheading { font-size: 12px; font-weight: 600; color: rgba(243,235,216,.6); }
.th-arow2 { display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left; padding: 4px 0; }
.th-arow2 .ico { width: 28px; flex: none; color: var(--accent); display: grid; place-items: center; padding-top: 2px; }
.th-arow2 .ico.challenge { color: var(--teal); }
.th-arow2 .tx { flex: 1; display: grid; gap: 2px; min-width: 0; } .th-arow2 .tx b { font-size: 17px; } .th-arow2 .tx small { font-size: 12px; }
.th-arow2 .due { font-size: 12px; font-weight: 600; color: rgba(243,235,216,.6); white-space: nowrap; padding-top: 3px; }
.th-arow2 .due.late { color: var(--stamp); }
.th-arow2 .done { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--good); white-space: nowrap; padding-top: 3px; }
.th-agroup > .done { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--good); margin: 0; }
.ln-assigned.th-assigned { margin-bottom: 4px; }
.th-compact { margin-bottom: 8px; }

/* The Players card's "Your classes" row */
.th-entry { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.08); text-align: left; }
.th-entry .sf:first-child { color: var(--accent); width: 28px; }
.th-entry .tx { flex: 1; display: grid; gap: 1px; } .th-entry .tx b { font-size: 17px; } .th-entry .tx small { font-size: 12px; }
.th-entry .open { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 600; color: var(--accent); }

/* The student's Assignments page (iOS AssignmentsList) */
.th-assigned-all.th-work { align-content: start; gap: 14px; padding: 12px 16px 24px; }
.th-pseg { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border-radius: 22px; background: rgba(15,42,73,.75); }
.th-pseg button { min-height: 38px; border-radius: 19px; font-size: 15px; font-weight: 600; color: var(--ink, #F3EBD8); }
.th-pseg button.on { background: rgba(243,235,216,.25); }
.th-pcard { display: grid; gap: 10px; padding: 16px; border-radius: 16px; background: rgba(15,42,73,.75); }
.th-pcard small { font-size: 13px; }
.th-prog { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.th-prog b, .th-pstats b { font-size: 30px; line-height: 1; }
.th-pbar { display: flex; gap: 4px; }
.th-pbar i { flex: 1; height: 8px; border-radius: 4px; background: rgba(243,235,216,.18); }
.th-pbar i.done { background: var(--good); } .th-pbar i.late { background: var(--stamp); }
.th-eyebrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.th-eyebrow b { font-size: 15px; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.th-eyebrow b.late, .th-pcard b.late { color: var(--stamp); }
.th-pnext { display: grid; gap: 4px; text-align: left; } .th-pnext b { font-size: 21px; } .th-pnext span { font-size: 14px; }
.th-pstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .th-pstats div { display: grid; gap: 2px; }
.th-pgroup { display: grid; gap: 4px; } .th-pgroup p { margin: 0; font-size: 14px; }
.th-pgroup h4 { margin: 0; font-size: 15px; letter-spacing: .05em; text-transform: uppercase; color: rgba(243,235,216,.65); }
.th-prow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 8px 0; text-align: left; border-bottom: 1px solid rgba(243,235,216,.14); }
.th-prow .tx { flex: 1; display: grid; gap: 2px; min-width: 0; } .th-prow .tx b { font-size: 16px; } .th-prow small { font-size: 13px; }
.th-prow .act { font-weight: 600; color: var(--accent); }
.th-prow .due { font-size: 13px; font-weight: 600; white-space: nowrap; color: rgba(243,235,216,.65); }
.th-prow .due.late { color: var(--stamp); } .th-prow .due.soon { color: var(--accent); }
.th-work .score { font-size: 26px; flex: none; min-width: 58px; } .th-work .score.good { color: var(--good); } .th-work .score.low { color: var(--stamp); }
.th-pback { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; justify-self: start; font-size: 15px; font-weight: 600; color: var(--accent); }
.th-phead { display: grid; gap: 4px; } .th-phead h3 { margin: 0; font-size: 34px; line-height: 1.05; } .th-phead p { margin: 0; font-size: 14px; }
.th-pscore { display: flex; align-items: center; gap: 16px; } .th-pscore .score { font-size: 54px; line-height: 1; } .th-pscore span { display: grid; gap: 2px; }
.th-pmiss { display: grid; gap: 6px; padding: 12px; border-radius: 10px; background: rgba(15,42,73,.75); font-size: 14px; } .th-pmiss small { font-size: 13px; }
.th-pmiss .good { font-weight: 600; color: var(--good); }
.th-pfoot { margin: 0; text-align: center; font-size: 13px; }
.th-work > .done { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 15px; font-weight: 600; color: var(--good); }
.th-bk { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.th-give { min-height: 44px; justify-self: stretch; justify-content: center; margin-top: 10px; }

/* learning dashboard: tappable lesson rows, the concept page, the challenge leaderboard */
button.th-urow { width: 100%; text-align: left; padding: 6px 0; }
button.th-urow + button.th-urow { border-top: 1px solid rgba(243,235,216,.12); }
.th-uhead .sf { align-self: center; color: rgba(243,235,216,.5); flex: none; }
.th-uhead b { flex: 1; min-width: 0; }
.th-cstat { display: grid; gap: 6px; } .th-cstat small { font-size: 13px; }
.th-cgroup { display: grid; }
.th-crow { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; width: 100%; padding: 9px 0; text-align: left; }
.th-crow + .th-crow { border-top: 1px solid rgba(243,235,216,.12); }
.th-crow b { font-size: 15px; } .th-crow small { font-size: 12px; white-space: nowrap; }
.th-leadline { font-size: 12px; }
.th-leaders { display: grid; }
.th-leader { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 0; text-align: left; }
.th-leader + .th-leader { border-top: 1px solid rgba(243,235,216,.12); }
.th-leader.dim { opacity: .6; }
.th-rank { width: 1.6em; font-size: 17px; color: var(--accent); }
.th-lname { flex: 1; min-width: 0; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.th-lscore { font-size: 16px; white-space: nowrap; }
.th-wonbadge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; color: var(--good); border: 1px solid var(--good); }
