/* student.css — Student page styles */

/* ── Student page-specific styles ─────────────────────────── */

/* Needs attention list */

.note-capture {
  margin: 4px 0 10px;
}
.note-capture .obsc {
  padding: 8px 10px;
}

/* Note search input */
.note-search-input {
  width: 100%;
  font-family: var(--font-base);
  font-size: var(--text-base);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 10px 6px 28px;
  background: var(--bg)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23999'%3E%3Ccircle cx='5' cy='5' r='4' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3Cline x1='8' y1='8' x2='11' y2='11' stroke='%23999' stroke-width='1.5'/%3E%3C/svg%3E")
    8px center no-repeat;
  color: var(--text);
  margin-bottom: 8px;
  outline: none;
  transition: border-color 0.15s;
}
.note-search-input:focus {
  border-color: var(--active);
}

/* Empty state for notes */
.notes-empty {
  text-align: center;
  padding: 20px 10px;
  color: var(--text-3);
  font-size: var(--text-base);
  line-height: 1.5;
}

/* Observations tab: capture strip, timeline, Seen in Class, notes by month
   (student-evidence.js). Redesign rules: square chips, chips filter; blue
   for selection, orange for attention (gaps, competencies not seen yet),
   observation-type colours on observations only. */
.ev-panel {
  --ev-att-bg: #fff1e6;
  --ev-att-line: #fed7aa;
  --ev-att-text: #9a3412;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-top: 16px;
}
.ev-title {
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.ev-sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  margin-bottom: 8px;
}
.ev-notes-head {
  align-items: center;
}
.ev-h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}
.ev-grow {
  flex: 1 1 auto;
}
.ev-hint {
  font-size: var(--text-sm);
  color: var(--text-2);
}
.ev-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ev-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--border-2);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
}
.ev-chip:hover {
  background: var(--hover-bg, rgba(0, 0, 0, 0.04));
}
.ev-chip:focus-visible,
.ev-link:focus-visible,
.ev-comp-clear:focus-visible,
.obs-card-reveal:focus-visible {
  outline: 2px solid var(--active);
  outline-offset: 1px;
}
.ev-chip-count {
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.ev-chip[aria-pressed='true'] {
  border-color: transparent;
  background: color-mix(in srgb, var(--active) 14%, transparent);
  color: var(--link);
}
.ev-type-chip[data-ev-type='strength'][aria-pressed='true'] {
  background: color-mix(in srgb, var(--score-3) 14%, transparent);
  color: var(--score-3);
}
.ev-type-chip[data-ev-type='concern'][aria-pressed='true'] {
  background: color-mix(in srgb, var(--score-2) 16%, transparent);
  color: var(--score-2);
}
.ev-type-chip[data-ev-type='note'][aria-pressed='true'] {
  background: color-mix(in srgb, var(--obs-note) 24%, transparent);
  color: var(--obs-note-text);
}
.ev-seen-chip {
  font-weight: 400;
  background: var(--bg, var(--surface));
  border-color: var(--border);
}
.ev-seen-chip .ev-chip-count {
  font-weight: 700;
}
/* Not seen yet: an orange dashed outline, quiet enough for a long map. */
.ev-seen-chip.is-none {
  border: 1px dashed var(--ev-att-text);
  background: transparent;
  color: var(--ev-att-text);
}
.ev-seen-chip[aria-pressed='true'] {
  border-color: transparent;
  background: color-mix(in srgb, var(--active) 14%, transparent);
  color: var(--link);
  font-weight: 600;
}
.ev-seen-note {
  margin: 8px 0 0;
  font-size: var(--text-md);
  color: var(--text);
}
.ev-seen[hidden] {
  display: none;
}
.ev-comp-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 2px 2px 9px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--active) 8%, transparent);
  color: var(--link);
  font-size: var(--text-sm);
  font-weight: 600;
}
.ev-comp-clear {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 4px;
  background: none;
  color: var(--link);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.ev-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--link);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.ev-search.note-search-input {
  width: auto;
  flex: 0 1 220px;
  margin-bottom: 0;
}
.ev-list {
  max-height: 640px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  -webkit-overflow-scrolling: touch;
}
.ev-list > .notes-empty {
  padding: 20px 24px;
}
.ev-month-title {
  margin: 0;
  padding: 8px 16px;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-2);
  background: var(--bg, var(--surface));
  border-top: 1px solid var(--border);
}
.ev-month:first-child .ev-month-title {
  border-top: 0;
}
/* Cards sit as rows in the bordered list. */
.ev-list .obs-card {
  cursor: default;
  margin: 0;
  padding: 14px 16px;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
}
.ev-list .ev-month-title + .obs-card {
  border-top: 0;
}
.ev-list .obs-card.ev-card-hit {
  box-shadow: 0 0 0 2px var(--active);
  background: var(--active-light);
}
.obs-card-veiled {
  color: var(--text-2);
}
.obs-card-reveal {
  padding: 0;
  border: 0;
  background: none;
  color: var(--link);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.ev-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-2);
  text-align: center;
}
.ev-foot-lock {
  display: inline-flex;
}

/* Timeline strip */
.ev-timeline {
  position: relative;
}
.ev-tl-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 16px 12px;
}
.ev-tl-range {
  font-size: var(--text-sm);
  color: var(--text-2);
}
.ev-tl-gapline {
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--ev-att-text);
}
.ev-tl-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 8px;
  font-size: var(--text-sm);
  color: var(--text-2);
}
.ev-tl-gapkey {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ev-tl-gapkey::before {
  content: '';
  width: 20px;
  height: 12px;
  border-radius: 3px;
  background: var(--ev-att-bg);
  border-bottom: 2px dashed var(--ev-att-text);
  box-sizing: border-box;
}
.ev-tl-dates {
  margin: 8px 0 0;
  font-size: var(--text-sm);
  color: var(--text-2);
}
.ev-tl-key {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ev-tl-key::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ev-mark, var(--text-3));
}
.ev-tl-key[data-shape='square']::before {
  border-radius: 1px;
  background: transparent;
  border: 1.5px solid var(--text-3);
  box-sizing: border-box;
}
.ev-tl-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.ev-tl-track {
  position: relative;
  min-width: 560px;
  height: 84px;
  margin: 0 10px;
}
.ev-tl-axis {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26px;
  height: 1px;
  background: var(--border-2);
}
.ev-tl-tick {
  position: absolute;
  bottom: 22px;
  width: 1px;
  height: 8px;
  background: var(--border-2);
}
.ev-tl-tick-label {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--text-2xs);
  color: var(--text-3);
  white-space: nowrap;
}
.ev-tl-today {
  position: absolute;
  bottom: 22px;
  height: 58px;
  border-left: 1px dashed var(--active);
}
.ev-tl-today::after {
  content: 'Today';
  position: absolute;
  top: -2px;
  right: 3px;
  font-size: var(--text-2xs);
  color: var(--link);
  white-space: nowrap;
}
.ev-tl-gap {
  position: absolute;
  bottom: 27px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 2px dashed var(--ev-att-text);
  background: var(--ev-att-bg);
  border-radius: 4px 4px 0 0;
  overflow: hidden;
  box-sizing: border-box;
}
.ev-tl-gap-label {
  font-size: var(--text-2xs);
  font-weight: 600;
  color: var(--ev-att-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 4px;
}
.ev-tl-mark {
  position: absolute;
  bottom: calc(19px + var(--stack, 0) * 13px);
  width: 16px;
  height: 16px;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
}
.ev-tl-mark::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ev-mark, var(--text-3));
  box-shadow: 0 0 0 2px var(--surface);
  transition: transform 0.12s;
}
.ev-tl-mark[data-shape='square'] {
  border-radius: 3px;
}
.ev-tl-mark[data-shape='square']::before {
  border-radius: 2px;
}
.ev-tl-mark:hover::before {
  transform: scale(1.3);
}
.ev-tl-mark:focus-visible {
  outline: 2px solid var(--active);
  outline-offset: 1px;
}
.ev-tl-mark[data-type='strength'],
.ev-tl-key[data-type='strength'] {
  --ev-mark: var(--score-3);
}
.ev-tl-mark[data-type='growth'],
.ev-tl-key[data-type='growth'] {
  --ev-mark: var(--active);
}
.ev-tl-mark[data-type='concern'],
.ev-tl-key[data-type='concern'] {
  --ev-mark: var(--score-2);
}
.ev-tl-mark[data-type='note'],
.ev-tl-key[data-type='note'] {
  --ev-mark: var(--obs-note);
}
.ev-tl-key[data-type='note']::before {
  box-shadow: inset 0 0 0 1px var(--obs-note-edge);
}
.ev-tl-mark[data-type='note']::before {
  box-shadow:
    inset 0 0 0 1px var(--obs-note-edge),
    0 0 0 2px var(--surface);
}
.ev-tl-tip {
  position: absolute;
  z-index: var(--z-fab);
  max-width: 280px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: var(--text);
  color: var(--surface);
  font-size: var(--text-xs);
  line-height: 1.4;
  pointer-events: none;
  box-shadow: var(--shadow-md);
}
.ev-tl-tip[hidden] {
  display: none;
}
@media (max-width: 700px) {
  .ev-panel {
    padding: 12px;
  }
  .ev-search.note-search-input {
    flex: 1 1 100%;
  }
}
@media (pointer: coarse) {
  .ev-chip,
  .ev-link,
  .obs-card-reveal {
    min-height: 44px;
  }
  .ev-comp-clear {
    width: 44px;
    height: 44px;
  }
}
@media (prefers-color-scheme: dark) {
  .ev-panel {
    --ev-att-bg: rgba(255, 149, 0, 0.18);
    --ev-att-line: rgba(255, 149, 0, 0.35);
    --ev-att-text: #ffb86b;
  }
}

/* Tag expand chevron */
.dash-tag-chevron {
  font-size: var(--text-2xs);
  color: var(--text-3);
  transition: transform 0.15s;
  width: 10px;
  flex-shrink: 0;
}
.dash-tag-row.open .dash-tag-chevron {
  transform: rotate(90deg);
}

/* Student toolbar — fixed white bar matching other pages */
.student-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--surface);
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.09);
  flex-shrink: 0;
}
.student-scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
}
/* Edit Student is settings, so it is secondary (outline); the page's main
   action is Term Questionnaire (docs/DECISIONS.md, "Buttons"). */
.student-toolbar .tb-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: var(--text-base);
  font-weight: 600;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: pointer;
  letter-spacing: 0.01em;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.1s;
}
.student-toolbar .tb-edit-btn:hover {
  background: var(--overlay-hover);
  border-color: var(--text-3);
}
.student-toolbar .tb-edit-btn:active {
  transform: scale(0.97);
}
/* The note box's Add on this page is secondary too: one solid button per screen. */
#note-capture .obsc-add {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
#note-capture .obsc-add:hover {
  background: var(--overlay-hover);
}

/* ── Edit Student Modal ──────────────────────────────────── */
.edit-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-top);
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.edit-modal {
  background: var(--surface);
  border: 1px solid var(--divider-strong);
  border-radius: 14px;
  padding: 24px 28px;
  width: 520px;
  max-width: 90vw;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.18),
    0 2px 8px rgba(0, 0, 0, 0.08);
}
.edit-modal-title {
  font-family: var(--font-base);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.edit-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
.edit-modal-actions .btn-ghost {
  padding: 7px 16px;
  border-radius: 8px;
  font-size: var(--text-base);
  font-weight: 600;
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background-color 0.12s;
}
.edit-modal-actions .btn-ghost:hover {
  background: var(--overlay-hover);
}
.edit-modal-actions .btn-primary {
  padding: 7px 18px;
  border-radius: 8px;
  font-size: var(--text-base);
  font-weight: 600;
  background: var(--active-fill);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 122, 255, 0.12);
  transition: background-color 0.12s;
}
.edit-modal-actions .btn-primary:hover {
  background: var(--btn-hover-blue);
}

/* Edit Student (layout B): the name, record, contact and language support
   on the left, every designation on the right. Fills, not lines; black
   text; 44 px targets. Unchosen rows use the grader tiles' see-through
   fill so dark mode keeps working. */
.edit-modal.es-modal {
  width: 880px;
  max-width: 94vw;
  max-height: 92vh;
  overflow: hidden;
  box-sizing: border-box;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.es-modal .edit-modal-title {
  margin: 0;
  font-size: 22px;
}
.es-sub {
  margin-top: 4px;
  font-size: var(--text-md);
  color: var(--text);
}
/* On a short screen the fields scroll between the title and the buttons,
   so Save stays in view. */
.es-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  margin: -4px;
  padding: 4px;
}
.es-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.es-sec {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.es-h {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.es-hint {
  margin-top: -8px;
  font-size: 14px;
  color: var(--text);
}
.es-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.es-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.es-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.es-req {
  font-weight: 400;
}
.es-input {
  height: 44px;
  box-sizing: border-box;
  width: 100%;
  padding: 0 12px;
  border: 1px solid rgba(118, 118, 128, 0.6);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
.es-input:focus {
  outline: none;
  border: 2px solid var(--active);
  padding: 0 11px;
}
/* !important to beat the app-wide blue input:focus (styles.css), which the
   field has while it waits for a fix. */
.es-input.es-bad,
.es-input.es-bad:focus {
  border: 2px solid var(--score-1) !important;
  box-shadow: none !important;
  padding: 0 11px;
}
.es-err {
  font-size: 14px;
  font-weight: 600;
  color: var(--score-1);
}
.es-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.es-toggle {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px;
  border: none;
  border-radius: 10px;
  background: rgba(118, 118, 128, 0.08);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.es-toggle:hover {
  background: rgba(118, 118, 128, 0.14);
}
.es-toggle[aria-pressed='true'] {
  background: var(--active-fill);
  color: #fff;
  font-weight: 600;
}
.es-code {
  min-width: 20px;
  flex-shrink: 0;
  font-weight: 700;
}
.es-modal .edit-modal-actions {
  margin-top: 0;
  gap: 12px;
}
.es-modal .edit-modal-actions .btn-primary,
.es-cancel {
  min-height: 44px;
  min-width: 100px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 15px;
}
.es-cancel {
  border: none;
  background: var(--surface-2);
  color: var(--text);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}
.es-cancel:hover {
  background: var(--bg-secondary);
}
@media (max-width: 760px) {
  .es-cols {
    grid-template-columns: minmax(0, 1fr);
  }
}

.desig-check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  max-height: 200px;
  overflow-y: auto;
  padding: 2px;
}
.desig-check-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--text-sm);
  transition: background 0.1s;
}
.desig-check-item:hover {
  background: var(--overlay-hover);
}
.desig-check-code {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--link);
  font-size: var(--text-sm);
}
.desig-check-name {
  font-family: var(--font-base);
  color: var(--text-2);
  font-size: var(--text-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Override focus callout spacing when below insights */

/* ── Override UI ── */
.override-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-3);
  font-size: var(--text-sm);
  line-height: 1;
  border-radius: var(--radius-xs);
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.override-btn:hover {
  color: var(--link);
  background: var(--active-light);
}
.override-btn.active {
  color: var(--link);
}
.override-label {
  font-family: var(--font-base);
  font-size: 0.75rem;
  color: var(--link);
  font-weight: 600;
  font-style: italic;
}
.override-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 8px 0 12px;
  box-shadow: var(--shadow-sm);
  animation: overrideSlideIn 0.2s ease-out;
}
@keyframes overrideSlideIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.override-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.override-panel-title {
  font-family: var(--font-base);
  font-size: var(--text-base);
  color: var(--text-2);
  font-weight: 600;
}
.override-panel-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-3);
  font-size: var(--text-lg);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  line-height: 1;
}
.override-panel-close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text);
}
.override-calculated {
  font-size: var(--text-sm);
  color: var(--text-3);
  margin-bottom: 12px;
}
.override-calculated strong {
  color: var(--text-2);
  font-weight: 600;
}
.override-levels {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 12px;
}
.override-level-btn {
  flex: 1;
  padding: 8px 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-2);
  text-align: center;
  transition:
    background-color 0.12s,
    color 0.12s;
  border-right: 1px solid var(--border);
}
.override-level-btn:last-child {
  border-right: none;
}
.override-level-btn:hover {
  background: rgba(0, 0, 0, 0.03);
}
.override-level-btn.selected {
  color: #fff;
  font-weight: 600;
}
.override-level-btn.selected[data-level='4'] {
  background: var(--score-4);
}
.override-level-btn.selected[data-level='3'] {
  background: var(--score-3);
}
.override-level-btn.selected[data-level='2'] {
  background: var(--score-2);
}
.override-level-btn.selected[data-level='1'] {
  background: var(--score-1);
}
/* Each level with its descriptor beside it; the calculated level on a
   light fill (Nov 2 mockup, batch 2). */
.override-levels.has-wording {
  flex-direction: column;
  gap: 6px;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.override-level-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 6px;
  border-radius: var(--radius-sm);
}
.override-level-row.is-calc {
  background: var(--bg);
}
.override-levels.has-wording .override-level-btn {
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
}
.override-levels.has-wording .override-level-btn:last-child {
  border-right: 1px solid var(--border);
}
.override-level-desc {
  font-size: var(--text-sm);
  line-height: 1.35;
  color: var(--text);
}
.override-level-calc {
  display: block;
  margin-top: 2px;
  font-size: var(--text-2xs);
  font-weight: 600;
  color: var(--text-2);
}
.override-reason {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-base);
  font-size: var(--text-sm);
  resize: vertical;
  min-height: 48px;
  transition: border 0.12s;
  box-sizing: border-box;
}
.override-reason:focus {
  border-color: var(--active);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.15);
}
.override-reason-label {
  font-family: var(--font-base);
  font-size: var(--text-xs);
  color: var(--text-3);
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
}
.override-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
}

/* ── Competency card evidence drawer (teacher/competency-evidence.js) ── */
button.dash-tag-row {
  display: block;
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--overlay-hover);
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  /* The row lays itself out by its own width (narrow cards below). */
  container-type: inline-size;
}
button.dash-tag-row:hover {
  width: calc(100% + 16px);
}
.dash-tag-row:focus-visible {
  outline: 2px solid var(--active);
  outline-offset: 1px;
  border-radius: var(--radius-sm);
}
/* A narrow card puts the count on its own line under the badge and label
   and drops the bar, which repeats the badge. */
.ced-explain {
  padding: 2px 8px 6px;
  font-size: var(--text-xs);
  line-height: 1.45;
  color: var(--text-2);
}
.ced-list {
  list-style: none;
  margin: 0;
  padding: 0;
  /* About ten rows, then the list scrolls inside the card. */
  max-height: 320px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.ced-item {
  border-bottom: 1px solid var(--overlay-hover);
}
.ced-item:last-child {
  border-bottom: none;
}
.ced-item .tag-assess-row {
  border-bottom: none;
}
.ced-empty {
  font-size: var(--text-xs);
  color: var(--text-3);
  padding: 4px 8px;
}
button.ced-obs-row {
  width: 100%;
  border: none;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.ced-obs-row:focus-visible {
  outline: 2px solid var(--active);
  outline-offset: -2px;
}
.ced-obs-mark {
  justify-self: center;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ced-mark, var(--text-3));
}
.ced-obs-row[data-sentiment='strength'] {
  --ced-mark: var(--score-3);
}
.ced-obs-row[data-sentiment='growth'] {
  --ced-mark: var(--active);
}
.ced-obs-row[data-sentiment='concern'] {
  --ced-mark: var(--score-2);
}
.ced-obs-row[data-sentiment='note'] {
  --ced-mark: var(--obs-note);
}
.ced-obs-row[data-sentiment='note'] .ced-obs-mark {
  box-shadow: inset 0 0 0 1px var(--obs-note-edge);
}
.ced-obs-main {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.ced-obs-main .obs-pill {
  flex-shrink: 0;
}
.ced-obs-text {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ced-obs-full {
  display: none;
}
/* Focus shows the whole note. */
.ced-obs-row:focus-visible .ced-obs-main {
  flex-wrap: wrap;
}
.ced-obs-row:focus-visible .ced-obs-text {
  white-space: pre-line;
  flex-basis: 100%;
  order: 2;
}
.ced-obs-row:focus-visible .ced-obs-first {
  display: none;
}
.ced-obs-row:focus-visible .ced-obs-full {
  display: inline;
}
.ced-obs-row:hover .ced-obs-text {
  color: var(--link);
}
.ced-capture:not(:empty) {
  padding: 8px 8px 0;
}
/* The strip's menus float; let them past the card's edge while it is open,
   without the card widening its grid column. */
.dash-section:has(.ced-capture .obsc) {
  overflow: visible;
  min-width: 0;
}
.ced-foot {
  display: flex;
  justify-content: flex-end;
  padding: 6px 8px 0;
}
.ced-add-btn,
.ced-done-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  min-height: 30px;
  font: inherit;
  font-size: var(--text-sm);
  cursor: pointer;
}
.ced-add-btn:hover,
.ced-done-btn:hover {
  color: var(--link);
  border-color: var(--active);
}
.ced-add-btn:focus-visible,
.ced-done-btn:focus-visible {
  outline: 2px solid var(--active);
  outline-offset: 1px;
}
.ced-add-btn[hidden],
.ced-done-btn[hidden] {
  display: none;
}

/* ── Student page tabs (teacher/page-student.js) ─────────────────────────
   One segmented track of five tabs, each with its count for the term,
   above one panel. */
.stu-step {
  display: inline-flex;
  gap: 4px;
}
.stu-step-btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font: inherit;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
}
.stu-step-btn:hover:not(:disabled) {
  background: var(--overlay-hover);
}
.stu-step-btn:disabled {
  color: var(--text-3);
  cursor: default;
  opacity: 0.6;
}
/* Folder tabs (canvas "Student Page Tabs", option 2, Colin 2026-11-11):
   six equal tabs, the chosen one white and joined to the panel below. Each
   names its place, with one figure or a badge under the name. */
.stu-tabs {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin: 12px 0 0;
}
.stu-tab {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 9px 12px 10px;
  border: 0.5px solid transparent;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: var(--seg-track);
  font: inherit;
  color: var(--text);
  white-space: nowrap;
  cursor: pointer;
}
.stu-tab:hover:not(.active) {
  background-image: linear-gradient(var(--overlay-pressed), var(--overlay-pressed));
}
/* One pixel lower than the rest, over the panel's top edge, so the two read
   as one piece. */
.stu-tab.active {
  z-index: 2;
  margin-bottom: -1px;
  padding-bottom: 11px;
  border-color: var(--divider-medium);
  background: var(--surface);
}
.stu-tab:focus-visible {
  outline: 2px solid var(--active);
  outline-offset: -2px;
}
.stu-tab-label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: var(--text-lg);
  line-height: 1.25;
  font-weight: 600;
  color: var(--text);
}
.stu-tab.active .stu-tab-label {
  font-weight: 700;
}
.stu-tab-stat {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: var(--text-sm);
  line-height: 18px;
  font-weight: 500;
  color: var(--text-2);
}
.stu-tab.active .stu-tab-stat {
  font-weight: 600;
  color: var(--link);
}
/* Only for what needs the teacher: orange for missing work, blue (the Work
   wall's To Grade chip) for work to grade or a question to answer. */
.stu-tab-badge {
  font-size: var(--text-xs);
  line-height: 18px;
  font-weight: 600;
  padding: 0 7px;
  border-radius: 9px;
}
.stu-tab-badge.miss {
  background: var(--notice-bg);
  color: var(--notice-text);
  box-shadow: inset 0 0 0 1px var(--notice-edge);
}
.stu-tab-badge.todo {
  background: var(--active-light);
  color: var(--link);
}
/* The panel's top corner under a chosen end tab is square. */
.stu-tabs:has(.stu-tab:first-child.active) + .stu-panel {
  border-top-left-radius: 0;
}
.stu-tabs:has(.stu-tab:last-child.active) + .stu-panel {
  border-top-right-radius: 0;
}
.stu-panel {
  background: var(--surface);
  border: 0.5px solid var(--divider-medium);
  border-radius: var(--radius);
  padding: 4px 20px 20px;
}
.stu-panel .ev-panel {
  border: none;
  padding: 16px 0 0;
  background: none;
}
.stu-sub {
  display: block;
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--text-3);
}
.stu-muted {
  color: var(--text-3);
  font-style: normal;
}
.stu-empty {
  padding: 28px 0;
  text-align: center;
  color: var(--text-3);
}
.stu-level {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: var(--text-sm);
  font-weight: 700;
  white-space: nowrap;
  background: var(--surface-2);
  /* The no-evidence dash: --text-3 on --surface-2 is 3.95:1 in dark mode,
     below the 4.5:1 that 13px text needs; --text-2 is 5.1:1 dark, 4.7:1 light. */
  color: var(--text-2);
}
.stu-level-1 {
  background: var(--score-1-bg);
  color: var(--score-1-text);
}
.stu-level-2 {
  background: var(--score-2-bg);
  color: var(--score-2-text);
}
.stu-level-3 {
  background: var(--score-3-bg);
  color: var(--score-3-text);
}
.stu-level-4 {
  background: var(--score-4-bg);
  color: var(--score-4-text);
}

/* Competencies */
.stu-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 16px 0 6px;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-2);
}
/* A folder that isn't counted as one says so under its name. */
.stu-group-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stu-group-note {
  font-weight: 400;
  color: var(--text-3);
}
.stu-comp {
  border-top: 1px solid var(--divider-subtle);
}
.stu-comp button.dash-tag-row.stu-comp-row,
.stu-comp-row-static {
  display: grid;
  grid-template-columns: minmax(200px, 1.4fr) 140px 130px 160px 200px 12px;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px 16px;
  border: none;
  border-radius: var(--radius-sm);
}
.stu-comp button.dash-tag-row.stu-comp-row:hover {
  width: 100%;
  background: var(--overlay-hover);
}
.stu-comp-name {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  font-size: var(--text-base);
}
.stu-comp-latest {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: var(--text-sm);
}
.stu-comp-latest .dash-tag-evidence {
  width: auto;
  text-align: left;
}
.stu-comp-override {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 0 4px 14px;
}
.stu-comp-row.open ~ .stu-comp-override {
  display: flex;
}
.stu-comp-override .override-btn {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--link);
  font-size: var(--text-sm);
  font-weight: 600;
}

/* Assessments */
.stu-chip {
  min-height: 30px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font: inherit;
  font-size: var(--text-sm);
  color: var(--text);
  cursor: pointer;
}
.stu-chip.active {
  border-color: var(--active);
  background: var(--active-light);
  color: var(--link);
  font-weight: 600;
}
.stu-link {
  margin-left: auto;
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--link);
  cursor: pointer;
}
.stu-goal-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-2);
}

/* Learner Profile */
.stu-profile-group {
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--bg);
}
.stu-profile-group h3,
.stu-core-head h3 {
  margin: 0;
  font-size: var(--text-base);
  font-weight: 700;
}
.stu-profile-group > .stu-sub {
  margin: 2px 0 8px;
}
.stu-core-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 22px 0 10px;
}
.stu-core-table {
  display: flex;
  flex-direction: column;
}
.stu-core-trow {
  display: grid;
  /* Only the steps need a floor; the other columns wrap, so the row never
     runs past its card. */
  grid-template-columns: minmax(0, 1fr) minmax(220px, 1.4fr) minmax(0, 1.1fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 8px 0;
  border-top: 1px solid var(--divider-subtle);
  font-size: var(--text-sm);
}
.stu-core-thead {
  min-height: 0;
  padding-top: 0;
  border-top: none;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-2);
}
.stu-core-cname {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stu-core-self {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stu-core-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  padding: 2px;
  border-radius: 8px;
  background: var(--seg-track);
  font-size: var(--text-xs);
  text-align: center;
}
.stu-core-step {
  padding: 4px 0;
  border-radius: 6px;
  color: var(--text-2);
}
/* The chosen step is a solid block in its level's colour, readable on a
   dim screen. */
.stu-core-step.on {
  background: var(--active-fill);
  color: #fff;
  font-weight: 700;
}
.stu-core-step.on.lv-1 {
  background: var(--score-1);
}
.stu-core-step.on.lv-2 {
  background: var(--score-2);
}
.stu-core-step.on.lv-3 {
  background: var(--score-3);
}
.stu-core-step.on.lv-4 {
  background: var(--score-4);
}
.stu-core-words,
.stu-core-goal {
  line-height: 1.4;
}
.stu-core-from {
  font-size: var(--text-xs);
  color: var(--text-3);
}
.stu-core-work {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--text-2);
}
.stu-core-work.none {
  color: var(--text-3);
}
.stu-core-edit {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg);
}
.stu-core-scale {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: none;
}
.stu-core-scale legend {
  width: 100%;
  margin-bottom: 6px;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-2);
}
.stu-core-pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.stu-core-pick span {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: var(--text-sm);
  cursor: pointer;
}
.stu-core-pick input:checked + span {
  border-color: var(--active);
  background: var(--active-light);
  color: var(--link);
  font-weight: 600;
}
.stu-core-pick input:focus-visible + span {
  outline: 2px solid var(--active);
  outline-offset: 2px;
}
.stu-core-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-2);
}
.stu-core-field textarea,
.stu-core-field input {
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--text);
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.stu-core-field textarea {
  min-height: 60px;
}

@media (max-width: 900px) {
  /* Too narrow for six: the tabs scroll sideways. The pixel of padding keeps
     the chosen tab's overlap inside the scroller. */
  .stu-tabs {
    overflow-x: auto;
    padding-bottom: 1px;
    margin-bottom: -1px;
  }
  .stu-tab {
    flex: 1 0 140px;
  }
  .stu-comp button.dash-tag-row.stu-comp-row,
  .stu-comp-row-static {
    grid-template-columns: minmax(0, 1fr) auto 12px;
    grid-template-areas:
      'name level chev'
      'scale scale chev'
      'trend ev chev';
    row-gap: 8px;
  }
  .stu-comp-name {
    grid-area: name;
  }
  .stu-comp-level {
    grid-area: level;
  }
  .stu-comp-row .stu-cp-scale {
    grid-area: scale;
  }
  .stu-cp-trend {
    grid-area: trend;
  }
  .stu-cp-ev {
    grid-area: ev;
  }
  .stu-cp-colhead {
    display: none !important;
  }
  .stu-comp-row .dash-tag-chevron {
    grid-area: chev;
  }
}
.stu-rt-scroll {
  overflow-x: auto;
}
.stu-rt {
  min-width: 760px;
}
.stu-rt-row {
  display: grid;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  border-top: 1px solid var(--divider-subtle);
}
.stu-rt-head {
  align-items: end;
  min-height: 0;
  padding-bottom: 8px;
  border-top: none;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-2);
}
.stu-rt-assess {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  text-align: center;
}
.stu-rt-assess-title {
  color: var(--text);
  line-height: 1.25;
  /* Names show in full; a long word breaks at a hyphen. */
  hyphens: auto;
}
.stu-rt-assess-date {
  font-weight: 400;
  color: var(--text-2);
}
.stu-rt-crit {
  font-size: var(--text-base);
  font-weight: 600;
}
.stu-rt-center {
  display: flex;
  justify-content: center;
  text-align: center;
}
.stu-rt-right {
  text-align: right;
}
.stu-rt-score {
  min-width: 34px;
  padding: 4px 8px;
  border-radius: 7px;
  text-align: center;
  font-size: var(--text-base);
  font-weight: 700;
}
.stu-rt-none {
  color: var(--text-3);
}
.stu-rt-change {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.stu-rt-up svg {
  color: var(--score-3-text);
}
.stu-rt-down svg {
  color: var(--score-1-text);
}
.stu-rt-flat svg {
  color: var(--text-3);
}
.stu-rt-avg {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

/* Start to Now, Where It Shows, the teacher's note, disposition timeline */
.stu-sn {
  font-weight: 700;
  color: var(--text);
}
.stu-comp-where {
  display: none;
  margin: 0 4px 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg);
}
.stu-comp-now {
  display: none;
  margin: 0 4px 10px;
  padding: 2px 14px 0;
  font-size: var(--text-base);
  line-height: 1.4;
  color: var(--text);
}
.stu-comp-now div + div {
  margin-top: 4px;
}
.stu-comp-now b {
  font-weight: 600;
}
.stu-comp-row.open ~ .stu-comp-now,
.stu-comp-row.open ~ .stu-comp-where,
.stu-comp .dash-tag-row.open ~ .tag-detail {
  display: block;
}
.stu-comp-where-title {
  margin-bottom: 8px;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-2);
}
.stu-comp-where-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 70px;
  align-items: center;
  gap: 12px;
  padding: 3px 0;
  font-size: var(--text-sm);
}
.stu-comp-where-n {
  color: var(--text-3);
}
.stu-comp-where-track {
  position: relative;
  height: 12px;
  border-radius: 6px;
  background: var(--surface-2);
  overflow: hidden;
}
.stu-comp-where-track span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 6px;
}
.stu-comp-where-v {
  text-align: right;
}

/* ── Learner Profile (teacher/learner-profile.js; canvas 9d) ──
   Hierarchy: section 18px bold, group 14px bold, question 13px grey, every
   answer 16px; bubbles only for the student's words. */
.lp-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}
.lp-aside {
  flex: 0 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 12px;
}
.lp-main {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.lp-ic {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--text-2);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lp-static {
  cursor: default;
}
.lp-link {
  color: var(--link);
  font-weight: 600;
  cursor: pointer;
}
.lp-none {
  font-size: var(--text-md);
  color: var(--text-3);
}
.id-card {
  background: var(--surface);
  border: 0.5px solid var(--divider-medium);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}
.id-band {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 16px;
  background: #2e7d32;
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 600;
}
.id-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 16px 16px;
  text-align: center;
}
.id-av {
  width: 88px;
  height: 88px;
  border-radius: 44px;
  background: #2e7d32;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 4px var(--surface),
    0 0 0 5px var(--divider-medium);
  margin-bottom: 4px;
}
.id-say {
  font-size: var(--text-xl);
  color: var(--text);
  overflow-wrap: anywhere;
}
.id-say span {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-2);
  margin-right: 4px;
}
.id-say strong {
  font-weight: 800;
}
.id-pron {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-2);
  background: var(--bg);
  border-radius: 999px;
  padding: 3px 10px;
}
.id-facts {
  margin: 0;
  border-top: 1px solid var(--divider-subtle);
}
.id-facts > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 16px;
  border-top: 1px solid var(--divider-subtle);
}
.id-facts > div:first-child {
  border-top: 0;
}
.id-facts dt {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-2);
}
.id-facts dd {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: var(--text-lg);
}
.id-jump {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--divider-subtle);
}
.id-jump a {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--link);
  text-decoration: none;
  border-top: 1px solid var(--divider-subtle);
}
.id-jump a:first-child {
  border-top: 0;
}
.id-jump a span {
  font-weight: 400;
  color: var(--text-3);
}
.id-private {
  background: #fef9f0;
  border: 1px solid #e8d5a8;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.id-private-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: 700;
  color: #7a5900;
}
.id-private-head .lp-ic {
  stroke: #7a5900;
}
.id-private-text {
  font-size: var(--text-md);
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.id-private-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs);
  color: var(--text-3);
}
.qw-sec {
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-margin-top: 12px;
}
.qw-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: var(--text-xs);
  color: var(--text-3);
}
.qw-head h2 {
  margin: 0;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text);
}
.qw-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.qw-group h3,
.lp-older h3 {
  margin: 0;
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--divider-subtle);
}
.lp-older {
  padding-top: 8px;
}
.qw-pair,
.gl-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.gl-pair {
  padding-top: 10px;
  border-top: 1px solid var(--divider-subtle);
}
.gl-pair > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.qw {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.qw-q {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-2);
  padding-left: 14px;
}
.qw-q-flush {
  padding-left: 0;
}
.qw-again {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--bg);
  border: 0.5px solid var(--divider-medium);
  border-radius: 999px;
  padding: 1px 8px;
  white-space: nowrap;
}
.qw-b {
  position: relative;
  margin: 0 0 0 10px;
  background: var(--surface);
  border: 0.5px solid var(--divider-medium);
  border-radius: 4px 18px 18px 18px;
  padding: 14px 18px;
  font-size: var(--text-lg);
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 68ch;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.qw-b::before {
  content: '';
  position: absolute;
  left: -9px;
  top: -0.5px;
  width: 10px;
  height: 12px;
  background: var(--surface);
  border-left: 0.5px solid var(--divider-medium);
  border-top: 0.5px solid var(--divider-medium);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.gl-card {
  background: var(--surface);
  border: 0.5px solid var(--divider-medium);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.gl-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.gl-title {
  font-size: var(--text-md);
  font-weight: 700;
}
.gl-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  color: var(--text-3);
  font-weight: 400;
}
.gl-check {
  padding-top: 12px;
  border-top: 1px solid var(--divider-subtle);
}
.gl-answer {
  font-size: var(--text-lg);
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 68ch;
}
.gl-none {
  font-size: var(--text-md);
  color: var(--text-3);
  font-style: italic;
  padding-left: 14px;
}
.gl-none-flush {
  padding-left: 0;
}
.gl-rest {
  gap: 0;
}
.gl-rows {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}
.gl-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px 12px;
  padding: 10px 0;
  border-top: 1px solid var(--divider-subtle);
  font-size: var(--text-base);
}
.gl-row strong {
  font-weight: 600;
}
.gl-adds {
  display: flex;
  gap: 6px;
}
/* An open goal or reflection editor takes the row's whole width. */
.gl-row.gl-editing .gl-adds {
  grid-column: 1 / -1;
  align-items: flex-start;
}
.gl-adds > .stu-goal-part.is-editing {
  flex: 1;
  min-width: 0;
}
.stu-goal-remove {
  margin-left: auto;
}
.gl-row .inline-edit-area textarea,
.gl-pair .inline-edit-area textarea {
  min-height: 76px;
}
.sh-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  align-items: start;
}
.src {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  padding: 1px 6px;
  white-space: nowrap;
}
.src-them {
  background: var(--active-light);
  color: var(--link);
}
.src-you {
  background: var(--surface-2);
  color: var(--text-2);
}
.st {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}
.st-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  display: inline-block;
}
@media (max-width: 700px) {
  .lp-aside {
    position: static;
    flex-basis: 100%;
  }
  .qw-pair,
  .gl-pair,
  .sh-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .gl-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .gl-adds {
    grid-column: 1 / -1;
  }
}

/* The student page's toolbar on a phone (Nov 3 sweep): at 375 px ‹ › sat
   on the breadcrumb, which had shrunk to nothing, and the term picker ran
   260 px past the edge, so the page scrolled sideways. Under 600 px the
   breadcrumb takes its own line and the picker takes the room left. */
@media (max-width: 600px) {
  .student-toolbar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .student-toolbar .tb-breadcrumb {
    flex: 1 1 100%;
    min-width: 0;
  }
  .student-toolbar .tb-edit-btn {
    padding: 7px 12px;
  }
}

/* ── Header email: copies on a click (no mailto) ─────────────── */
/* Same 13px grey as the rest of the header's line; a long address ends in an
   ellipsis and shows in full on hover. The icon becomes Copied for 1.5 s. */
.stu-email-copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  min-width: 0;
  padding: 1px 4px;
  margin: 0 -4px;
  border: none;
  border-radius: 6px;
  background: none;
  font: inherit;
  color: inherit;
  cursor: copy;
}
.stu-email-copy:hover {
  background: var(--overlay-hover);
  color: var(--link);
}
.stu-email-copy:focus-visible {
  outline: 2px solid var(--active);
  outline-offset: 1px;
}
.stu-email-text {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stu-email-icon {
  flex-shrink: 0;
  color: var(--text-3);
}
.stu-email-copy:hover .stu-email-icon {
  color: inherit;
}
.stu-email-copied {
  display: none;
  color: var(--score-3-text);
  font-weight: 500;
}
.stu-email-copy.is-copied .stu-email-icon {
  display: none;
}
.stu-email-copy.is-copied .stu-email-copied {
  display: inline;
}

/* ── Overview tab (teacher/page-student.js, "Overview tab") ──
   Read across a desk: what the student reads is 16–20px and plain; the
   teacher's controls are 13px. The student page's design rules
   (docs/plans/teacher-student-page-redesign-plan.md): square 4px chips;
   blue only for actions, links and selection; orange for what needs
   attention (missing work); level colours only on levels; a dashed line
   and a lock for what only the teacher sees; 44pt targets on touch. */
.stu-ov {
  --ov-att: #c2410c;
  --ov-att-bg: #fff1e6;
  --ov-att-text: #9a3412;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 8px 4px;
  background: var(--surface);
}
.stu-ov:fullscreen {
  padding: 32px;
  overflow-y: auto;
}
.stu-ov-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.stu-ov-title {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.15;
}
.stu-ov-btn {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
}
.stu-ov-btn:hover {
  background: var(--overlay-hover);
}
.stu-ov :focus-visible {
  outline: 2px solid var(--active);
  outline-offset: 2px;
}
.stu-ov-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px;
}
.stu-ov-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-2);
}
.stu-ov-sub {
  font-size: 1rem;
  color: var(--text-2);
  margin-top: 8px;
}
.stu-ov-read {
  font-size: 1.1875rem;
  line-height: 1.4;
  margin-top: 4px;
}
.stu-ov-pre {
  white-space: pre-line;
}
.stu-ov-h3 {
  margin: 0 0 8px;
  font-size: 1.375rem;
}

/* The grade and the Missing tile */
.stu-ov-top {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: stretch;
}
.stu-ov-grade {
  flex: 2.4 1 520px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.stu-ov-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.stu-ov-now,
.stu-ov-proj {
  flex: 1 1 220px;
}
.stu-ov-proj {
  padding-left: 24px;
  border-left: 1px solid var(--border);
}
.stu-ov-big {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-top: 4px;
}
.stu-ov-letter {
  font-size: 4.75rem;
  font-weight: 800;
  line-height: 1;
}
.stu-ov-pct {
  font-size: 2.125rem;
  font-weight: 600;
  color: var(--text-2);
}
.stu-ov-proj .stu-ov-label,
.stu-ov-proj .stu-ov-pct,
.stu-ov-proj-note {
  color: var(--text-2);
}
.stu-ov-proj-note strong {
  color: var(--text);
}
.stu-ov-proj-note {
  margin-top: 16px;
  font-size: 1rem;
}
.stu-ov-thin .stu-ov-label {
  color: var(--text-2);
}
.stu-ov-thin-lede {
  margin-top: 8px;
  font-size: 1.1875rem;
  font-weight: 600;
}
.stu-ov-level {
  margin-top: 12px;
}
/* Level colours on levels only (design rule 3): the grade right now, its
   band on the strip, and each marked score. */
.stu-ov-lv-1 .stu-ov-letter,
.stu-ov-lv-1 .stu-ov-pct {
  color: var(--score-1-text);
}
.stu-ov-lv-2 .stu-ov-letter,
.stu-ov-lv-2 .stu-ov-pct {
  color: var(--score-2-text);
}
.stu-ov-lv-3 .stu-ov-letter,
.stu-ov-lv-3 .stu-ov-pct {
  color: var(--score-3-text);
}
.stu-ov-lv-4 .stu-ov-letter,
.stu-ov-lv-4 .stu-ov-pct {
  color: var(--score-4-text);
}
.stu-ov-row-main-score.stu-ov-chip-lv {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
}
.stu-ov-miss {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--ov-att-bg);
  border-color: transparent;
}
.stu-ov-miss .stu-ov-label,
.stu-ov-miss .stu-ov-sub,
.stu-ov-miss-n,
.stu-ov-miss-cost {
  color: var(--ov-att-text);
}
/* Nothing missing is not a warning: the tile drops its orange. */
.stu-ov-miss.none {
  background: var(--surface);
  border-color: var(--border);
}
.stu-ov-miss.none .stu-ov-label,
.stu-ov-miss.none .stu-ov-sub {
  color: var(--text-2);
}
.stu-ov-miss.none .stu-ov-miss-n {
  color: var(--text);
}
.stu-ov-miss-n {
  font-size: 4.75rem;
  font-weight: 800;
  line-height: 1.05;
}
.stu-ov-miss-cost {
  font-size: 1.1875rem;
  font-weight: 700;
}

/* All Your Work */
.stu-ov-all-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 8px;
}
.stu-ov-all-head .stu-ov-h3 {
  margin: 0;
}
.stu-ov-rows {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stu-ov-row + .stu-ov-row {
  border-top: 1px solid var(--border);
}
.stu-ov-row.open {
  box-shadow: inset 3px 0 0 var(--active);
}
.stu-ov-row-btn {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 12px 24px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.stu-ov-row-btn:hover {
  background: var(--overlay-hover);
}
.stu-ov .stu-ov-row-btn:focus-visible {
  outline-offset: -3px;
}
.stu-ov-row-main {
  flex: 1 1 320px;
  min-width: 0;
}
.stu-ov-row-title {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.stu-ov-row-date {
  display: block;
  margin-top: 2px;
  font-size: var(--text-sm);
  color: var(--text-2);
}
.stu-ov-row-score {
  flex: 0 0 auto;
  text-align: right;
}
.stu-ov-row-main-score {
  display: block;
  font-size: 1.1875rem;
  font-weight: 700;
}
.stu-ov-row-score.miss .stu-ov-row-main-score {
  color: var(--ov-att);
}
.stu-ov-row-score.quiet .stu-ov-row-main-score {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-2);
}
.stu-ov-row-sub {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-2);
}
.stu-ov-chev {
  flex: 0 0 auto;
  font-size: 1.25rem;
  color: var(--text-2);
  transition: transform 0.15s;
}
.stu-ov-row.open .stu-ov-chev {
  transform: rotate(90deg);
}
.stu-ov-pill {
  margin-left: 8px;
  font-size: var(--text-sm);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  vertical-align: 1px;
}
.stu-ov-pill.miss {
  background: var(--ov-att-bg);
  color: var(--ov-att-text);
}
.stu-ov-pill.late {
  background: var(--score-2-bg);
  color: var(--score-2-text);
}
.stu-ov-pill.exc {
  background: var(--seg-track);
  color: var(--text-2);
}

/* An open piece: what the student reads beside the facts */
.stu-ov-open {
  padding: 8px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stu-ov-open-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 32px;
  align-items: flex-start;
}
.stu-ov-open-main {
  flex: 1.6 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* The student's pages beside the rubric in an open row (WorkWall.pieceHtml). */
.stu-ov-work {
  flex: 1.6 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* With pages in the row: rubric and facts on the left, the pages on the right. */
@media (min-width: 1100px) {
  .stu-ov-open-cols:has(> .stu-ov-work) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
  }
  .stu-ov-open-cols:has(> .stu-ov-work) > .stu-ov-work {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .stu-ov-open-cols:has(> .stu-ov-work) > .stu-ov-facts {
    grid-column: 1;
    align-self: start;
  }
}
.ovw-page {
  display: block;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  overflow: hidden;
  cursor: zoom-in;
}
.ovw-page:focus-visible {
  outline: 2px solid var(--active);
  outline-offset: 2px;
}
.ovw-img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 120px;
}
.stu-ov-facts {
  flex: 1 1 260px;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stu-ov-fact {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 0 16px;
  padding: 12px 16px;
}
.stu-ov-fact + .stu-ov-fact {
  border-top: 1px solid var(--border);
}
.stu-ov-fact dt {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-2);
  padding-top: 3px;
}
.stu-ov-fact dd {
  margin: 0;
  font-size: 1.1875rem;
  font-weight: 700;
}
.stu-ov-fact dd.proj {
  color: var(--text);
}
.stu-ov-teacher {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  font-size: var(--text-sm);
}
/* What only the teacher sees: a lock and "Only You". */
.stu-ov-only {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--text-2);
}
/* A filter on All Your Work: square chips, a light blue tint when on. */
.stu-ov-chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}
.stu-ov-chip {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
}
.stu-ov-chip:hover {
  background: var(--overlay-hover);
}
.stu-ov-chip[aria-pressed='true'] {
  border-color: transparent;
  background: var(--active-light);
  color: var(--link);
}
@media (pointer: coarse) {
  .stu-ov button {
    min-height: 44px;
  }
}
@media (prefers-color-scheme: dark) {
  .stu-ov {
    --ov-att: #ff9f45;
    --ov-att-bg: rgba(255, 149, 0, 0.18);
    --ov-att-text: #ffb86b;
  }
}
.stu-ov-foot {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-2);
  text-align: center;
}

/* ── Reflect on Feedback on the Learner Profile (S10-F4) ────── */
.lp-card {
  background: var(--surface);
  border: 0.5px solid var(--divider-medium);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lp-card h3 {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text);
}
.lp-card .qw-b {
  font-size: var(--text-md);
  padding: 10px 14px;
}
.lp-card-note {
  font-size: var(--text-xs);
  color: var(--text-2);
  line-height: 1.45;
}
.lp-so-far ul {
  margin: 0;
  padding: 0 0 0 18px;
  font-size: var(--text-sm);
  color: var(--text);
  line-height: 1.6;
}
.lp-so-far-ask {
  font-weight: 700;
}
.rf-filter {
  font-size: var(--text-sm);
}
.rf-card {
  background: var(--surface);
  border: 0.5px solid var(--divider-medium);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.rf-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
}
.rf-title {
  margin: 0;
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--text);
}
.rf-grade {
  font-size: var(--text-sm);
  font-weight: 600;
}
.rf-grade:not(.stu-level) {
  color: var(--text-2);
}
.rf-grade.stu-level {
  border-radius: 4px;
}
.rf-sense {
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 8px;
}
.rf-sense.is-yes {
  background: var(--score-3-bg, var(--bg));
  color: var(--score-3-text, var(--text));
}
.rf-sense.is-unsure {
  background: #fff3c4;
  color: #6b4e00;
}
.rf-day {
  margin-left: auto;
  font-size: var(--text-xs);
  color: var(--text-3);
}
.rf-wait {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding-left: 14px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: #7a5900;
}
.rf-you {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rf-you-text {
  padding-left: 14px;
  font-size: var(--text-md);
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--text);
}
.rf-line {
  padding-left: 14px;
  font-size: var(--text-sm);
  color: var(--text-2);
}

/* Competencies tab (redesign R2): header with Sort, three facts, one 1–4
   scale per competency with a start ring, and an open row with the
   student-facing words on the left and the facts on the right. */
.stu-cp {
  --cp-att-bg: #fff1e6;
  --cp-att-line: #fed7aa;
  --cp-att-text: #9a3412;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 16px;
}
.stu-cp-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
}
.stu-cp-head-text {
  flex: 1 1 320px;
}
.stu-cp-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--text);
}
.stu-cp-sortbox {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stu-cp-sort-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-2);
}
.stu-cp-list {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.stu-cp-list .stu-group-head {
  margin: 0;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.stu-cp-colhead {
  display: grid;
  grid-template-columns: minmax(200px, 1.4fr) 140px 130px 160px 200px 12px;
  gap: 16px;
  align-items: end;
  padding: 10px 16px;
  background: var(--bg);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-2);
}
.stu-cp-colscale {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  text-align: center;
}
.stu-cp-list .stu-comp {
  border-top: 1px solid var(--border);
}
.stu-cp-list .stu-comp.open {
  background: var(--bg);
  box-shadow: inset 3px 0 0 var(--active);
}
.stu-comp-name strong {
  font-size: 1.1875rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.stu-cp-ican {
  font-size: var(--text-md);
  color: var(--text);
}
.stu-cp-scale {
  --cp-gap: 4px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--cp-gap);
  /* The mark's caret stays inside the scale's own width at 4.0. */
  overflow-x: clip;
  overflow-y: visible;
}
.stu-cp-cell {
  display: block;
  height: 12px;
  border-radius: 3px;
  background: var(--seg-track, var(--border));
  overflow: hidden;
}
.stu-cp-cell > span {
  display: block;
  height: 100%;
}
/* Where the first scores started: a small caret over the track and a
   thin tick through it, at the place the fill would end for that level
   (four cells and three gaps: --at is 0 to 1, --k the gaps before it). */
.stu-cp-mark {
  position: absolute;
  top: -7px;
  bottom: 0;
  left: clamp(1px, calc((100% - 3 * var(--cp-gap)) * var(--at) + var(--cp-gap) * var(--k)), calc(100% - 1px));
  width: 0;
  pointer-events: none;
}
.stu-cp-mark::before {
  content: '';
  position: absolute;
  top: 0;
  left: -5px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--text);
}
.stu-cp-mark::after {
  content: '';
  position: absolute;
  top: 7px;
  bottom: 0;
  left: -1px;
  width: 2px;
  border-radius: 1px;
  background: var(--text);
  box-shadow: 0 0 0 1px var(--surface);
}
.stu-comp-level {
  text-align: right;
}
.stu-cp-trend {
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--text);
}
.stu-cp-trend.stu-cp-down {
  color: var(--cp-att-text);
}
.stu-cp-trend.stu-cp-none {
  font-weight: 400;
  color: var(--text-2);
}
.stu-cp-ev {
  font-size: var(--text-sm);
  color: var(--text-2);
}
.stu-comp-facts {
  display: none;
  margin: 0 16px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.stu-comp-row.open ~ .stu-comp-facts {
  display: block;
}
.stu-cp-fact {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 0 16px;
  padding: 12px 16px;
}
.stu-cp-fact + .stu-cp-fact {
  border-top: 1px solid var(--border);
}
.stu-cp-fact dt {
  padding-top: 2px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-2);
}
.stu-cp-fact dd {
  margin: 0;
}
.stu-cp-fact-v {
  display: block;
  font-weight: 700;
  color: var(--text);
}
.stu-cp-fact-v .stu-comp-latest {
  display: inline;
  font-size: inherit;
}
.stu-cp-fact-sub {
  display: block;
  margin-top: 2px;
  font-size: var(--text-sm);
  color: var(--text-2);
}
.stu-cp-foot {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-2);
  text-align: center;
}
/* The open row: words on the left, facts on the right, the teacher's
   override below (design rule 7). */
@media (min-width: 901px) {
  .stu-cp-list .stu-comp.open {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
    grid-template-areas:
      'row row'
      'now facts'
      'drawer facts'
      'drawer where'
      'over over';
    align-items: start;
    column-gap: 16px;
  }
  .stu-comp.open > .stu-comp-row {
    grid-area: row;
  }
  .stu-comp.open > .stu-comp-now {
    grid-area: now;
  }
  .stu-comp.open > .tag-detail {
    grid-area: drawer;
  }
  .stu-comp.open > .stu-comp-facts {
    grid-area: facts;
  }
  .stu-comp.open > .stu-comp-where {
    grid-area: where;
    margin: 0 16px 16px;
  }
  .stu-comp.open > .stu-comp-override {
    grid-area: over;
    border-top: 1px solid var(--border);
    padding: 12px 16px;
  }
}
.stu-comp-now {
  font-size: var(--text-md);
}
@media (pointer: coarse) {
  .stu-cp-sort .seg-btn,
  .stu-comp-override .override-btn {
    min-height: 44px;
  }
}
@media (prefers-color-scheme: dark) {
  .stu-cp {
    --cp-att-bg: rgba(255, 149, 0, 0.18);
    --cp-att-line: rgba(255, 149, 0, 0.35);
    --cp-att-text: #ffb86b;
  }
}
.stu-comp-row .stu-cp-ev.dash-tag-evidence {
  width: auto;
  text-align: left;
  white-space: normal;
}

/* Grades tab (redesign R4, behind the build switch): how the course grade
   is built, Group By, and the Overview's open-in-place rows. */
.stu-gr {
  --gr-att: #c2410c;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 16px;
}
.stu-gr-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
}
.stu-gr-head-text {
  flex: 1 1 320px;
}
.stu-gr-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--text);
}
.stu-gr-open {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--border-2);
  border-radius: 8px;
  color: var(--link);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.stu-gr-course {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 40px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.stu-gr-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-2);
}
.stu-gr-course-v {
  margin-top: 6px;
}
.stu-gr-course-v .stu-level {
  font-size: 22px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 4px;
}
.stu-gr-bar {
  flex: 1 1 480px;
  min-width: 0;
  display: flex;
  gap: 16px;
}
.stu-gr-seg {
  min-width: 0;
}
.stu-gr-track {
  height: 16px;
  border-radius: 4px;
  background: var(--seg-track, var(--border));
  overflow: hidden;
}
.stu-gr-fill {
  height: 100%;
}
.stu-gr-seg-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 8px;
  margin-top: 8px;
  font-size: var(--text-md);
}
.stu-gr-seg-name {
  font-weight: 600;
  color: var(--text);
}
.stu-gr-seg-v {
  font-weight: 700;
  color: var(--text);
}
.stu-gr-seg-w {
  font-size: var(--text-sm);
  color: var(--text-2);
}
.stu-gr-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.stu-gr-count {
  font-weight: 400;
}
.stu-gr-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stu-gr-group {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.stu-gr-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: var(--bg);
}
.stu-gr-group-name {
  margin: 0;
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--text);
}
.stu-gr-group-meta {
  margin-top: 2px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-2);
}
.stu-gr-miss {
  color: var(--gr-att);
}
.stu-gr-group .stu-ov-rows {
  border: 0;
  border-radius: 0;
}
.stu-gr-rubric {
  padding: 16px;
}
.stu-gr-none {
  padding: 16px;
  font-size: var(--text-md);
  color: var(--text-2);
}
@media (pointer: coarse) {
  .stu-gr-open,
  .stu-gr-controls .seg-btn {
    min-height: 44px;
  }
}
@media (prefers-color-scheme: dark) {
  .stu-gr {
    --gr-att: #ff9f45;
  }
}

/* The header's Missing count: attention orange (design rule 3). */
.sh-stat-val.sh-stat-att {
  color: #c2410c;
}
@media (prefers-color-scheme: dark) {
  .sh-stat-val.sh-stat-att {
    color: #ff9f45;
  }
}

/* Learner Profile: how the student sees their learning (redesign R6). One
   1–4 scale: the teacher's level filled in its colour, the student's own
   rating as the outline variant (design rule 5). */
.lp-calib-lede {
  margin: -8px 0 0;
  font-size: var(--text-md);
  color: var(--text-2);
}
.lp-calib {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.lp-calib-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(0, 1.4fr);
  align-items: center;
  gap: 8px 16px;
  padding: 14px 16px;
}
.lp-calib-row + .lp-calib-row {
  border-top: 1px solid var(--border);
}
.lp-calib-head {
  padding: 10px 16px;
  background: var(--bg);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-2);
}
.lp-calib-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}
.lp-scale {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  max-width: 140px;
}
.lp-scale-cell {
  display: block;
  height: 12px;
  border-radius: 3px;
  background: var(--seg-track, var(--border));
  box-sizing: border-box;
}
.lp-scale.own .lp-scale-cell {
  background: var(--surface);
  border: 2px solid var(--border);
}
.lp-scale.own .lp-scale-cell.on {
  background: transparent;
  border-color: var(--text);
}
.lp-calib-word {
  display: block;
  margin-top: 4px;
  font-size: var(--text-sm);
  color: var(--text-2);
}
.lp-calib-note {
  font-size: var(--text-md);
  color: var(--text-2);
}
.lp-calib-note.talk {
  font-weight: 600;
  color: var(--text);
}
@media (max-width: 900px) {
  .lp-calib-head {
    display: none;
  }
  .lp-calib-row {
    grid-template-columns: 1fr 1fr;
  }
  .lp-calib-name,
  .lp-calib-note {
    grid-column: 1 / -1;
  }
}

/* iPad and touch (redesign R7): 44pt targets wherever the redesigned tabs
   take a tap (design rule 11). The capture strip keeps its own file; its
   chips grow here, on the student page only. */
@media (pointer: coarse) {
  .stu-gr button,
  .stu-gr .stu-ov-chip,
  .ev-panel .obsc-chip,
  .ev-panel .note-capture button,
  .lp-layout .stu-chip,
  .lp-layout .id-jump a {
    min-height: 44px;
  }
  .lp-layout .id-jump a {
    display: inline-flex;
    align-items: center;
  }
}
/* Chart marks keep their size; on touch each gets a 44pt tap area. */
@media (pointer: coarse) {
  .ev-tl-mark::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
  }
}

/* Learner Profile (redesign R6, final): their words beside their goals,
   the empty goals folded into one line, the Core Competency term status,
   and the privacy line. */
.lp-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px 32px;
  align-items: start;
}
details.gl-rest > summary {
  list-style: none;
  cursor: pointer;
}
details.gl-rest > summary::-webkit-details-marker {
  display: none;
}
details.gl-rest > summary .gl-title::before {
  content: '▸';
  display: inline-block;
  margin-right: 6px;
  color: var(--text-2);
  transition: transform 0.12s;
}
details.gl-rest[open] > summary .gl-title::before {
  transform: rotate(90deg);
}
details.gl-rest > summary .gl-title {
  color: var(--link);
}
.lp-calib-more > summary {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  color: var(--link);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
}
.lp-calib-unrated {
  border-top: 1px solid var(--border);
}
.lp-calib-unrated .lp-calib-name {
  font-weight: 400;
}
.stu-core-status {
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--text);
}
.stu-core-status.none {
  color: #9a3412;
}
.lp-foot {
  margin: 8px 0 0;
  font-size: var(--text-sm);
  color: var(--text-2);
  text-align: center;
}
@media (prefers-color-scheme: dark) {
  .stu-core-status.none {
    color: #ffb86b;
  }
}
@media (pointer: coarse) {
  details.gl-rest > summary,
  .lp-calib-more > summary {
    min-height: 44px;
  }
}
/* In the half-width Goals column a row wraps: the name, then its level and
   the add buttons. */
.lp-pair .gl-rest .gl-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.lp-pair .gl-rest .gl-row > strong {
  flex: 1 1 100%;
}
.stu-gr-grow {
  flex: 1 1 auto;
}
.stu-gr-classavg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
}
.stu-gr-class {
  margin-left: auto;
  margin-right: 12px;
  font-size: var(--text-md);
  color: var(--text-2);
}
.stu-gr-foot {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-2);
  text-align: center;
}
@media (pointer: coarse) {
  .stu-gr-classavg {
    min-height: 44px;
  }
}

/* ── Learner Profile, as the redesign's board draws it (R6) ── */
.lp2 {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 16px;
  --lp2-att-bg: #fff1e6;
  --lp2-att-text: #9a3412;
}
.lp2-who {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: stretch;
}
.lp2-card {
  flex: 1.4 1 420px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.lp2-av {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: var(--text);
  color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
}
.lp2-name {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--text);
}
.lp2-meta {
  margin-top: 4px;
  font-size: var(--text-md);
  color: var(--text-2);
}
.lp2-sub {
  margin-top: 4px;
  font-size: var(--text-sm);
  color: var(--text-2);
}
.lp2-note {
  flex: 1 1 320px;
  padding: 16px 20px;
  border: 1px dashed var(--border-2);
  border-radius: 12px;
}
.lp2-note-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-2);
}
.lp2-note-head svg {
  width: 12px;
  height: 12px;
}
.lp2-note-text {
  margin-top: 6px;
  font-size: var(--text-md);
  line-height: 1.45;
  color: var(--text);
}
.lp2-quiet {
  color: var(--text-2);
}
.lp2-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
}
.lp2-pair > .lp2-sec {
  flex: 1 1 440px;
  min-width: 0;
}
.lp2-sec {
  display: block;
}
.lp2-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.lp2-h3 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}
.lp2-head .lp2-h3 {
  margin: 0;
}
.lp2-lede {
  margin: 0 0 16px;
  font-size: var(--text-sm);
  color: var(--text-2);
}
.lp2-add {
  min-height: 32px;
}
.lp2-words {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lp2-q {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-2);
}
.lp2-bubble {
  display: inline-block;
  max-width: 560px;
  margin-top: 6px;
  padding: 10px 14px;
  border-radius: 4px 14px 14px 14px;
  background: var(--bg);
  font-size: 1.125rem;
  line-height: 1.45;
  color: var(--text);
  white-space: pre-wrap;
}
.lp2-goals {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.lp2-goals > .lp-none {
  padding: 16px 20px;
}
.lp2-goals > .gl-card,
.lp2-goals > details.gl-rest {
  margin: 0;
  padding: 16px 20px;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.lp2-goals > :first-child {
  border-top: 0;
}
.lp2-goal-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
.lp2-goal-top .src {
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-2);
  background: none;
  color: var(--text);
}
.lp2-goal-comp {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-2);
}
.lp2-goal-text {
  margin-top: 6px;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  overflow-wrap: anywhere;
}
.lp2-goal-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 10px;
}
.lp2-steps {
  display: inline-flex;
  gap: 3px;
}
.lp2-steps > span {
  display: block;
  width: 18px;
  height: 8px;
  border-radius: 2px;
  background: var(--seg-track, var(--border));
}
.lp2-status {
  font-size: var(--text-sm);
  font-weight: 700;
}
.lp2-when {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-2);
}
/* A competency goal keeps its editors; it reads as one row of the list. */
.lp2-compgoal .gl-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
.lp2-compgoal .gl-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-2);
}
.lp2-compgoal .gl-answer {
  margin-top: 6px;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}
.lp2-compgoal .src {
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-2);
  background: none;
  color: var(--text);
}
/* Core Competencies: the student's step as a dark chip in its column. */
.lp2-core {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow-x: auto;
}
.lp2-core-row {
  display: grid;
  grid-template-columns: minmax(200px, 1.2fr) repeat(4, minmax(84px, 1fr)) minmax(210px, 1fr);
  gap: 0 8px;
  align-items: center;
  min-width: 760px;
}
.lp2-core-thead {
  padding: 10px 24px;
  background: var(--bg);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-2);
}
.lp2-core-item {
  padding: 12px 24px;
  border-top: 1px solid var(--border);
  display: block;
}
.lp2-core-col {
  text-align: center;
}
.lp2-core-chip.stu-core-step.on {
  display: inline-block;
  min-width: 72px;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--text);
  color: var(--surface);
  font-size: var(--text-sm);
  font-weight: 700;
}
.lp2-core-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  vertical-align: middle;
}
.lp2-core-words {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: 8px;
}
.lp2-core-words .lp2-bubble {
  margin-top: 0;
  font-size: var(--text-md);
  border-radius: 4px 12px 12px 12px;
}
.lp2-core-goal {
  font-size: var(--text-md);
  color: var(--text);
}
.lp2-core .stu-core-work {
  text-align: right;
}
/* How they learn: a chip per disposition with its count. */
.lp2-learns {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lp2-learn-group h3 {
  margin: 0 0 8px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-2);
}
.lp2-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lp2-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 4px;
  background: var(--bg);
  font-size: var(--text-sm);
  color: var(--text);
}
.lp2-chip.none {
  background: var(--lp2-att-bg);
  color: var(--lp2-att-text);
}
@media (prefers-color-scheme: dark) {
  .lp2 {
    --lp2-att-bg: rgba(255, 149, 0, 0.18);
    --lp2-att-text: #ffb86b;
  }
}
@media (pointer: coarse) {
  .lp2-add,
  .lp2 .stu-chip {
    min-height: 44px;
  }
}
.stu-core-head .lp2-h3 {
  font-size: 22px;
}
.stu-core-head .lp2-lede {
  margin-bottom: 0;
}
.lp2 .stu-core-head {
  align-items: flex-end;
  margin-bottom: 16px;
}
.lp2-core .stu-core-work .stu-chip {
  white-space: nowrap;
}
.lp2-learn-group.stu-profile-group {
  padding: 0;
  background: none;
  border: 0;
}
.lp2 #lp-calib .qw-head h2 {
  font-size: 22px;
}
/* The board's single column, not the old aside-and-main grid. */
.lp2.lp-layout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  grid-template-columns: none;
}

/* ── Desktop size (Colin, Nov 12: "too big to follow on desktop") ──
   The redesigned tabs are sized to be read across a desk on an iPad. With
   a mouse on a wide screen they take the app's own scale: smaller type,
   tighter spacing. Touch screens, and the Overview in Full Screen (turned
   toward the student), keep the large size. */
@media (pointer: fine) and (min-width: 1025px) {
  /* Page and section headings */
  .stu-ov:not(:fullscreen) .stu-ov-title,
  .stu-cp-title,
  .stu-gr-title,
  .ev-title,
  .lp2-name {
    font-size: 1.375rem;
  }
  .stu-ov:not(:fullscreen) .stu-ov-h3,
  .ev-h3,
  .lp2-h3,
  .stu-core-head .lp2-h3,
  .lp2 #lp-calib .qw-head h2 {
    font-size: 1.0625rem;
  }
  /* Overview: the figures and the reading text */
  .stu-ov:not(:fullscreen) {
    gap: 16px;
  }
  .stu-ov:not(:fullscreen) .stu-ov-card {
    padding: 16px 20px;
  }
  .stu-ov:not(:fullscreen) .stu-ov-letter,
  .stu-ov:not(:fullscreen) .stu-ov-miss-n {
    font-size: 3rem;
  }
  .stu-ov:not(:fullscreen) .stu-ov-pct {
    font-size: 1.375rem;
  }
  .stu-ov:not(:fullscreen) .stu-ov-read,
  .stu-ov:not(:fullscreen) .stu-ov-thin-lede,
  .stu-ov:not(:fullscreen) .stu-ov-miss-cost,
  .stu-ov:not(:fullscreen) .stu-ov-none,
  .stu-ov:not(:fullscreen) .stu-ov-fb-note,
  .stu-ov:not(:fullscreen) .stu-ov-fb-words,
  .stu-ov:not(:fullscreen) .stu-ov-fb-name,
  .stu-ov:not(:fullscreen) .stu-ov-fact dd {
    font-size: var(--text-md);
  }
  .stu-ov:not(:fullscreen) .stu-ov-row-title,
  .stu-gr .stu-ov-row-title {
    font-size: var(--text-md);
  }
  .stu-ov-row-main-score {
    font-size: 1rem;
  }
  .stu-ov-row-btn {
    padding: 8px 16px;
  }
  .stu-ov:not(:fullscreen) .stu-ov-item {
    padding: 12px 16px;
  }
  .stu-ov:not(:fullscreen) .stu-gp-card {
    padding: 16px 20px;
  }
  /* Competencies */
  .stu-cp,
  .stu-gr,
  .ev-panel,
  .lp2 {
    gap: 16px;
  }
  .stu-comp-name strong {
    font-size: var(--text-md);
  }
  .stu-comp button.dash-tag-row.stu-comp-row {
    padding: 10px 16px;
  }
  /* Grades */
  .stu-gr-course {
    padding: 16px;
  }
  .stu-gr-course-v .stu-level {
    font-size: 1.125rem;
  }
  .stu-gr-group-name {
    font-size: 1rem;
  }
  .stu-gr-group-head {
    padding: 8px 16px;
  }
  /* Observations */
  .ev-tl-box {
    padding: 12px 16px 8px;
  }
  /* Learner Profile */
  .lp2-av {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    font-size: 1.125rem;
  }
  .lp2-card {
    padding: 14px 20px;
  }
  .lp2-pair {
    gap: 24px;
  }
  .lp2-bubble,
  .lp2-goal-text,
  .lp2-compgoal .gl-answer,
  .lp-calib-name {
    font-size: var(--text-md);
  }
  .lp2-goals > .gl-card,
  .lp2-goals > details.gl-rest {
    padding: 12px 16px;
  }
  .lp2-core-item {
    padding: 8px 16px;
  }
  .lp-calib-row {
    padding: 10px 16px;
  }
}

/* Competencies: one quiet summary line (the count assessed, the strongest,
   the one to work on next) and a link to where the calculation is set;
   the start ring explained in the column header. */
.stu-cp-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 24px;
  font-size: var(--text-md);
  color: var(--text);
}
.stu-cp-sum-item {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.stu-cp-sum-label {
  color: var(--text-2);
}
.stu-cp-how {
  margin-left: auto;
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--link);
  cursor: pointer;
}
.stu-cp-ringkey {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.stu-cp-ringkey i {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--text);
}

/* Observations: ordinary facts read quietly. The latest gap is a plain
   line, the gap bands a light tint, and a competency not seen yet a grey
   dashed chip (the count says how many). */
.ev-tl-gapline {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--text-2);
}
.ev-tl-gap-label {
  font-weight: 400;
  color: var(--text-2);
}
.ev-seen-chip.is-none {
  border: 1px dashed var(--border-2);
  background: transparent;
  color: var(--text-2);
}

/* A link the teacher attached as the student's work (shared/work-wall.js pieceHtml). */
.stu-ov-link {
  display: block;
  color: var(--link);
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
}

/* ── The picture of the grade (teacher/student-overview.js) ──
   Your Grade Over the Year beside Your Competencies; one under the other
   when the page is narrower. One series, so no legend: the title names it.
   Thin marks, hairline grid, level colours on levels only, 24px targets. */
.stu-gp {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* The grade on the left, its line over the year beside it. */
.stu-ov-grade:has(> .stu-ov-grade-chart) {
  flex: 3.4 1 460px;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px 32px;
}
.stu-ov-grade:has(> .stu-ov-grade-chart) > .stu-ov-pair {
  flex: 0 1 230px;
  flex-direction: column;
  gap: 20px;
}
.stu-ov-grade:has(> .stu-ov-grade-chart) .stu-ov-now,
.stu-ov-grade:has(> .stu-ov-grade-chart) .stu-ov-proj {
  flex: 0 0 auto;
}
.stu-ov-grade:has(> .stu-ov-grade-chart) .stu-ov-proj {
  padding: 20px 0 0;
  border-left: 0;
  border-top: 1px solid var(--border);
}
.stu-ov-grade-chart {
  flex: 1 1 380px;
  min-width: 0;
}
.stu-gp-line-head {
  margin-bottom: 8px;
}
.stu-gp-card {
  min-width: 0;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.stu-gp-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 16px;
}
.stu-gp-head .stu-ov-h3 {
  margin: 0;
}
.stu-gp-now,
.stu-gp-sub {
  font-size: 1rem;
  color: var(--text-2);
}
.stu-gp-now strong {
  font-size: 1.1875rem;
  color: var(--text);
}
.stu-gp-empty {
  margin: 0;
  font-size: 1rem;
  color: var(--text-2);
}
.stu-gp-plot {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: 180px 22px;
  column-gap: 12px;
}
.stu-gp-y,
.stu-gp-x {
  position: relative;
  font-size: 12px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.stu-gp-y {
  min-width: 28px;
}
.stu-gp-y span {
  display: block;
  position: absolute;
  right: 0;
  transform: translateY(-50%);
  white-space: nowrap;
}
/* The widest label sets the column: one copy, unseen, in the flow. */
.stu-gp-y::before {
  content: attr(data-w);
  visibility: hidden;
}
.stu-gp-x span {
  position: absolute;
  top: 6px;
  transform: translateX(-50%);
  white-space: nowrap;
}
.stu-gp-area-box {
  position: relative;
}
.stu-gp-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.stu-gp-grid {
  stroke: var(--divider-medium);
  stroke-width: 1;
}
.stu-gp-area {
  fill: var(--active);
  opacity: 0.08;
}
.stu-gp-path {
  fill: none;
  stroke: var(--active);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
/* Where handing in the missing work would put the grade: dashed, as a forecast. */
.stu-gp-proj {
  stroke: var(--text-2);
  stroke-width: 2;
  stroke-dasharray: 4 4;
}
.stu-gp-projpt {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border: 2px solid var(--text-2);
  border-radius: 50%;
  background: var(--surface);
  box-sizing: border-box;
}
.stu-gp-pt,
.stu-gp-tile {
  font: inherit;
  cursor: pointer;
}
.stu-gp-pt {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  padding: 0;
  border: 0;
  background: transparent;
}
/* The day's hairline, from the top of the plot to its foot. */
.stu-gp-pt::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--at);
  width: 1px;
  background: var(--border-2);
  opacity: 0;
}
.stu-gp-pt:hover::before,
.stu-gp-pt:focus-visible::before,
.stu-gp-pt.tip-on::before {
  opacity: 1;
}
.stu-gp-mark {
  position: absolute;
  left: var(--at);
  width: 0;
  height: 0;
}
.stu-gp-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--score-0);
  box-shadow: 0 0 0 2px var(--surface);
  transition:
    transform 0.15s,
    opacity 0.15s;
}
.stu-gp-pt.end .stu-gp-dot {
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
}
.stu-gp-pt.stu-gp-lv-1 .stu-gp-dot,
.stu-gp-seg-part.stu-gp-lv-1,
.stu-gp-key .stu-gp-lv-1 {
  background: var(--score-1);
}
.stu-gp-pt.stu-gp-lv-2 .stu-gp-dot,
.stu-gp-key .stu-gp-lv-2 {
  background: var(--score-2);
}
.stu-gp-pt.stu-gp-lv-3 .stu-gp-dot,
.stu-gp-key .stu-gp-lv-3 {
  background: var(--score-3);
}
.stu-gp-pt.stu-gp-lv-4 .stu-gp-dot,
.stu-gp-key .stu-gp-lv-4 {
  background: var(--score-4);
}
.stu-gp-key .stu-gp-lv-0 {
  background: var(--seg-track);
}
.stu-gp-pt:hover,
.stu-gp-pt:focus-visible,
.stu-gp-pt.tip-on,
.stu-gp-tile:hover,
.stu-gp-tile:focus-visible,
.stu-gp-tile.tip-on {
  z-index: 3;
}
.stu-gp-pt:hover .stu-gp-dot,
.stu-gp-pt:focus-visible .stu-gp-dot,
.stu-gp-pt.hl .stu-gp-dot {
  transform: scale(1.45);
}
/* Pointing at one card lights what it means on the other. */
.stu-gp.linking .stu-gp-pt:not(.hl) .stu-gp-dot,
.stu-gp.linking .stu-gp-tile:not(.hl) {
  opacity: 0.28;
}
.stu-gp-tip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  z-index: var(--z-fab);
  display: none;
  flex-direction: column;
  gap: 2px;
  width: max-content;
  max-width: 260px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
  color: var(--text);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
  transform: translateX(-50%);
  pointer-events: none;
}
.tip-start .stu-gp-tip {
  left: -4px;
  transform: none;
}
.tip-end .stu-gp-tip {
  left: auto;
  right: -4px;
  transform: none;
}
.stu-gp-pt:hover .stu-gp-tip,
.stu-gp-pt:focus-visible .stu-gp-tip,
.stu-gp-pt.tip-on .stu-gp-tip,
.stu-gp-tile:hover > .stu-gp-tip,
.stu-gp-tile:focus-visible > .stu-gp-tip,
.stu-gp-tile.tip-on > .stu-gp-tip {
  display: flex;
}
.stu-gp-tip strong {
  font-weight: 600;
  color: var(--text-2);
}
.stu-gp-tip-grade {
  font-size: 15px;
  font-weight: 700;
}
.stu-gp-tip-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-2);
}
.stu-gp-tip-row b {
  color: var(--text);
}
.stu-gp-tip-hint {
  margin-top: 4px;
  font-weight: 600;
  color: var(--link);
}

/* Your Competencies (teacher/student-comps.js): how the levels split, then the strongest and the next to work on. */
.stu-gp-seg {
  display: flex;
  gap: 2px;
  height: 28px;
}
.stu-gp-seg-part {
  display: flex;
  align-items: center;
  min-width: 24px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  box-sizing: border-box;
  transition: opacity 0.15s;
}
.stu-gp-seg-part.stu-gp-lv-0,
.stu-gp-tile.stu-gp-lv-0 {
  background: var(--seg-track);
  color: var(--text-2);
}
.stu-gp-seg-part.stu-gp-lv-1,
.stu-gp-tile.stu-gp-lv-1 {
  background: var(--score-1-bg);
  color: var(--score-1-text);
}
.stu-gp-seg-part.stu-gp-lv-2,
.stu-gp-tile.stu-gp-lv-2 {
  background: var(--score-2-bg);
  color: var(--score-2-text);
}
.stu-gp-seg-part.stu-gp-lv-3,
.stu-gp-tile.stu-gp-lv-3 {
  background: var(--score-3-bg);
  color: var(--score-3-text);
}
.stu-gp-seg-part.stu-gp-lv-4,
.stu-gp-tile.stu-gp-lv-4 {
  background: var(--score-4-bg);
  color: var(--score-4-text);
}
.stu-gp.linking .stu-gp-seg-part:not(.hl) {
  opacity: 0.4;
}
.stu-gp-key {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 8px 0 16px;
  font-size: 12px;
  color: var(--text-2);
}
.stu-gp-key i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 2px;
  vertical-align: -1px;
}
.stu-gp-head:last-child {
  margin-bottom: 0;
}
/* See All: the Competencies tab lists every one. */
.stu-gp-all {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--link);
  cursor: pointer;
}
.stu-gp-all:hover {
  text-decoration: underline;
}
/* Strongest beside Next to Work On; one under the other where two won't fit. */
.stu-gp-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px 28px;
}
.stu-gp-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.stu-gp-group > .stu-ov-label {
  margin-bottom: 2px;
}
/* A group with nothing beside it fills both columns. */
.stu-gp-group.wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 6px 28px;
}
.stu-gp-group.wide > .stu-ov-label {
  grid-column: 1 / -1;
}
/* One competency: its name, then its level, big enough for two people to read together. */
.stu-gp-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
  padding: 8px 16px;
  border: 0;
  border-radius: 8px;
  text-align: left;
  transition:
    opacity 0.15s,
    box-shadow 0.15s;
}
.stu-gp-tile:hover {
  box-shadow: 0 0 0 2px var(--border-2);
}
.stu-gp-tile[aria-pressed='true'] {
  box-shadow: 0 0 0 2px var(--active);
}
.stu-gp-tile:disabled {
  cursor: default;
}
.stu-gp-tile:disabled:hover {
  box-shadow: none;
}
.stu-gp-name {
  min-width: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.stu-gp-val {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-size: var(--text-md);
  font-weight: 600;
  white-space: nowrap;
}
.stu-gp-val b {
  font-size: 1.25rem;
  font-weight: 700;
}

/* All Your Work: each piece open to read, its pages beside its feedback. */
.stu-ov-item {
  padding: 16px 24px;
  transition:
    background 0.2s,
    box-shadow 0.2s;
}
.stu-ov-item.quiet {
  padding-top: 12px;
  padding-bottom: 12px;
}
.stu-ov-item.flash {
  background: var(--active-light);
  box-shadow: inset 3px 0 0 var(--active);
}
.stu-ov-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
/* The teacher's link shows when the piece is pointed at or focused. */
.stu-ov-item-open {
  flex: 0 0 auto;
  font-size: var(--text-sm);
  opacity: 0;
  transition: opacity 0.12s;
}
.stu-ov-item:hover .stu-ov-item-open,
.stu-ov-item:focus-within .stu-ov-item-open {
  opacity: 1;
}
@media (hover: none) {
  .stu-ov-item-open {
    opacity: 1;
  }
}
.stu-ov-item-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px 20px;
  margin-top: 12px;
}
.stu-ov-item-body.with-work {
  grid-template-columns: minmax(120px, 184px) minmax(0, 1fr);
}
.stu-ov-item-body .stu-ov-work {
  gap: 6px;
}
.stu-ov-item-body .stu-ov-work > .stu-ov-label {
  display: none;
}
.ovw-pages {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 6px;
}
.stu-ov-item-body .ovw-pages {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.stu-ov-item-body .ovw-pages:has(> .ovw-page:only-child) {
  grid-template-columns: minmax(0, 1fr);
}
.stu-ov-item-body .ovw-img {
  aspect-ratio: 3 / 4;
  min-height: 0;
  object-fit: cover;
  object-position: top;
}
.stu-ov-fb {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  max-width: 980px;
}
.stu-ov-fb-note {
  margin: 0;
  padding-left: 12px;
  border-left: 3px solid var(--border-2);
  font-size: 1.1875rem;
  line-height: 1.45;
  white-space: pre-line;
}
.stu-ov-fb-crits {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.stu-ov-fb-crit {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) 10.5em minmax(0, 2fr);
  gap: 4px 16px;
  align-items: baseline;
  padding: 10px 14px;
}
.stu-ov-fb-crits.no-words .stu-ov-fb-crit {
  grid-template-columns: minmax(0, 18em) auto;
  justify-content: start;
  padding: 8px 14px;
}
.stu-ov-fb-crit + .stu-ov-fb-crit {
  border-top: 1px solid var(--border);
}
.stu-ov-fb-name {
  font-size: 1.0625rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.stu-ov-fb-lv .stu-level {
  white-space: nowrap;
}
.stu-ov-fb-words {
  font-size: 1.0625rem;
  line-height: 1.45;
  white-space: pre-line;
}
.stu-ov-fb-part {
  display: block;
}
.stu-ov-fb-part b {
  margin-right: 4px;
  font-size: var(--text-sm);
}
.stu-ov-fb-part.beyond b {
  color: var(--score-4-text);
}
.stu-ov-fb-part.work b {
  color: var(--ov-att-text, var(--notice-text));
}
/* A narrower piece: the comment under the criterion and its level. */
.stu-ov-fb,
.stu-ov-open-main {
  container-type: inline-size;
}
@container (max-width: 700px) {
  .stu-ov-fb-crit {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .stu-ov-fb-words {
    grid-column: 1 / -1;
  }
}
.stu-ov-task {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-size: 1rem;
  color: var(--text-2);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.stu-ov-gain {
  font-weight: 700;
  color: var(--ov-att-text);
}
/* With work missing, the Missing tile is a button that shows it. */
button.stu-ov-miss {
  font: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
}
button.stu-ov-miss:hover {
  box-shadow: 0 0 0 2px var(--notice-edge);
}
.stu-ov-miss-go {
  margin-top: 12px;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ov-att-text);
  text-decoration: underline;
}
.stu-ov-comp-chip {
  font-weight: 600;
}
/* A day has its whole strip of the plot: focus shows on its dot, not round the strip. */
.stu-ov .stu-gp-pt:focus-visible {
  outline: none;
}
.stu-gp-pt:focus-visible .stu-gp-dot {
  box-shadow:
    0 0 0 2px var(--surface),
    0 0 0 4px var(--active);
}
.stu-gp-mark .stu-gp-tip {
  bottom: 12px;
}
