/* ============================================================================
   grader-student.css — what the student gets. Step 8. Tokens only; guarded.

   PHONE FIRST. Every size here is chosen for a phone held in a lit classroom,
   and the tablet/desktop rendering is the same thing with more room — not a
   different layout. Touch targets are 44px minimum because a fifteen-year-old
   reading this is standing up, one-handed, between classes.

   IT IS LIGHT, NOT DARK. The teacher's grader is a dark instrument for a
   focused task at a desk. This is read on a phone in a bright room, and the
   student side of this product is already light — a dark modal dropped into a
   light app reads as an error state, not as feedback.
   ========================================================================= */

.gs-student {
  /* box-sizing is stated here rather than inherited: a width:100% control with
     padding overflows a 390px phone otherwise, and the whole point of this
     file is that it fits in a hand. */
  box-sizing: border-box; max-width: 560px; margin: 0 auto;
  padding: var(--sp-8) var(--sp-7) var(--sp-10);
  background: var(--lbg); color: var(--ltext);
}
.gs-student *, .gs-student *::before, .gs-student *::after { box-sizing: border-box; }
.gs-student img, .gs-student video { max-width: 100%; }
.gs-scr { display: flex; flex-direction: column; gap: var(--sp-7); }

.gs-kicker { font-family: var(--f-n); font-size: var(--t-mono-xs); letter-spacing: var(--t-mono-xs-ls); color: var(--lk9000); }
.gs-title  { margin: 0; font-family: var(--f-d); font-weight: 700; font-size: var(--t-display-xl); letter-spacing: var(--t-display-xl-ls); color: var(--ltext); }

.gs-back { display: flex; align-items: center; gap: var(--sp-5); }
.gs-back button {
  width: 44px; height: 44px; flex: none; border: 0; border-radius: var(--r-lg);
  background: var(--lcard); box-shadow: var(--l-inset); color: var(--ltext2);
  font-size: var(--t-ui-lg); cursor: pointer;
}
.gs-back span { font-family: var(--f-d); font-weight: 700; font-size: var(--t-display-md); letter-spacing: var(--t-display-md-ls); color: var(--ltext); }

/* ⚠ A NEW STYLESHEET'S FIRST KEY IS EASY TO POISON. Running verify-deploy
   immediately after a push probes the new URL before Cloudflare has the file,
   and the edge caches that miss against the key forever. Wait for the deploy
   to land before verifying a brand-new asset; a poisoned key can only be
   escaped by minting a new hash, which is what this note did. */

/* ── the SAME instrument the teacher scored on ───────────────────────────── */
.gs-score { display: flex; flex-direction: column; gap: var(--sp-5); }
.gs-score-n { font-family: var(--f-d); font-weight: 700; font-size: 40px; letter-spacing: -.03em; color: var(--ltext); font-variant-numeric: tabular-nums; }
.gs-score-n span { margin-left: var(--sp-3); font-size: var(--t-display-md); color: var(--lk9000); }
.gs-instrument { position: relative; height: 38px; border-radius: var(--r-md); background: var(--lcard); box-shadow: var(--l-inset); }
.gs-instrument i { position: absolute; bottom: 12px; width: 1px; height: 6px; background: var(--lk12000); transform: translateX(-.5px); }
.gs-instrument i.is-major { height: 11px; }
.gs-needle { position: absolute; bottom: 9px; width: 3px; height: 20px; border-radius: 1px; background: var(--lk3200-solid); transform: translateX(-1.5px); }
.gs-score-none { font-family: var(--f-u); font-size: var(--t-ui-sm); color: var(--lk9000); }

/* ── the one line ────────────────────────────────────────────────────────── */
.gs-oneline { padding: var(--sp-7); border-radius: var(--r-3xl); background: var(--lk3200-fill); box-shadow: inset 0 0 0 1px var(--lk3200-line); }
.gs-oneline-h { font-family: var(--f-n); font-size: var(--t-mono-xs); letter-spacing: var(--t-mono-xs-ls); color: var(--lk3200); }
.gs-oneline-b { margin-top: var(--sp-4); font-family: var(--f-u); font-size: var(--t-ui-md); line-height: 1.55; color: var(--ltext); }

/* ── rubric rows ─────────────────────────────────────────────────────────── */
.gs-rows { display: flex; flex-direction: column; gap: var(--sp-3); }
.gs-row {
  display: flex; align-items: center; gap: var(--sp-5); width: 100%; min-height: 44px;
  padding: var(--sp-5) var(--sp-6); border: 0; border-radius: var(--r-xl);
  background: var(--lcard); box-shadow: var(--l-raise); text-align: left; cursor: pointer;
}
.gs-row-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--lk9000); }
.gs-row-dot[data-level="exceeds"], .gs-row-dot[data-level="strong"], .gs-row-dot[data-level="full"] { background: var(--lpass); }
.gs-row-dot[data-level="meets"] { background: var(--lk3200-solid); }
.gs-row-name { flex: 1; min-width: 0; font-family: var(--f-u); font-size: var(--t-ui-md); color: var(--ltext); }
.gs-row-lv { font-family: var(--f-u); font-size: var(--t-ui-xs); color: var(--ltext3); }
.gs-row-pts { font-family: var(--f-n); font-size: var(--t-mono-sm); color: var(--lk9000); }

/* ── the actions ─────────────────────────────────────────────────────────── */
.gs-primary {
  width: 100%; min-height: 52px; border: 0; border-radius: var(--r-2xl);
  background: var(--lk3200-solid); color: var(--sub);
  font-family: var(--f-d); font-weight: 700; font-size: var(--t-ui-lg); cursor: pointer;
}
.gs-secondary {
  width: 100%; min-height: 48px; border: 0; border-radius: var(--r-2xl);
  background: var(--lcard); box-shadow: var(--l-raise); color: var(--ltext2);
  font-family: var(--f-u); font-size: var(--t-ui-md); cursor: pointer;
}
.gs-fine { text-align: center; font-family: var(--f-n); font-size: var(--t-mono-xxs); letter-spacing: var(--t-mono-xxs-ls); color: var(--lk9000); }
.gs-none { font-family: var(--f-u); font-size: var(--t-ui-sm); color: var(--lk9000); }

/* ── their own photograph, and one tap to see it clean ───────────────────── */
.gs-shot { position: relative; border-radius: var(--r-2xl); overflow: hidden; background: var(--ln-stage); }
.gs-shot img { width: 100%; display: block; }
.gs-pin {
  position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px;
  border-radius: 50%; border: 1.5px solid var(--ln-mark); background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-n); font-size: var(--t-mono-sm); color: var(--n-text); cursor: pointer;
  transition: opacity var(--dur-base) var(--ease-standard);
}
/* ONE TAP and the marks are gone. It is their photograph. */
.gs-shot.is-clean .gs-pin { opacity: 0; pointer-events: none; }
.gs-toggle {
  position: absolute; right: var(--sp-5); bottom: var(--sp-5); min-height: 36px;
  padding: 0 var(--sp-6); border: 0; border-radius: var(--r-lg);
  background: rgba(0,0,0,.55); color: var(--n-text);
  font-family: var(--f-u); font-size: var(--t-ui-xs); cursor: pointer;
}

/* ── the marks themselves ────────────────────────────────────────────────── */
.gs-marks { display: flex; flex-direction: column; gap: var(--sp-4); }
.gs-mark {
  display: block; width: 100%; text-align: left; border: 0;
  padding: var(--sp-6); border-radius: var(--r-2xl);
  background: var(--lcard); box-shadow: var(--l-raise); cursor: pointer;
}
.gs-mark-h { display: flex; align-items: center; gap: var(--sp-4); }
.gs-mark-n {
  width: 22px; height: 22px; flex: none; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--lk3200-solid); color: var(--sub);
  font-family: var(--f-n); font-size: var(--t-mono-sm);
}
.gs-mark-crit { font-family: var(--f-n); font-size: var(--t-mono-xxs); letter-spacing: var(--t-mono-xxs-ls); color: var(--lk3200); }
.gs-mark-t { margin-left: auto; font-family: var(--f-n); font-size: var(--t-mono-xxs); color: var(--lk9000); }
.gs-mark-t.is-code { margin-left: 0; font-size: var(--t-mono-lg); color: var(--lk3200); }
.gs-mark-tag { margin-left: auto; padding: 0 var(--sp-3); border-radius: var(--r-xs); font-family: var(--f-n); font-size: var(--t-mono-xxs); letter-spacing: var(--t-mono-xxs-ls); }
.gs-mark-tag.is-good { background: var(--lpass-fill); color: var(--lpass); }
.gs-mark-tag.is-fix  { background: var(--lfail-fill); color: var(--lfail); }
.gs-mark-b { margin-top: var(--sp-4); font-family: var(--f-u); font-size: var(--t-ui-md); line-height: 1.55; color: var(--ltext2); }

/* ITEM 6 — whether a line is about the crew or about them. Unattributed, a
   crew note reads as personal criticism. */
.gs-scope { padding: 0 var(--sp-3); border-radius: var(--r-xs); font-family: var(--f-n); font-size: var(--t-mono-xxs); letter-spacing: var(--t-mono-xxs-ls); }
/* The light palette has --lk5600 but no -fill pair, so the card surface
   carries it. Cool, because "this was said to the crew" is information. */
.gs-scope.is-crew { background: var(--lcard); box-shadow: inset 0 0 0 1px var(--lk5600); color: var(--lk5600); }
.gs-scope.is-individual { background: var(--lk3200-fill); color: var(--lk3200); }

/* ── video ───────────────────────────────────────────────────────────────── */
.gs-vid { position: relative; border-radius: var(--r-2xl); overflow: hidden; background: var(--ln-stage); }
.gs-vid video { width: 100%; display: block; }
.gs-vid-rail { position: relative; height: 6px; background: var(--ln-surround); }
.gs-vid-rail i { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--lk3200-solid); }

/* ── the rubric as a teaching artifact ───────────────────────────────────── */
.gs-teach { font-family: var(--f-u); font-size: var(--t-ui-sm); line-height: 1.5; color: var(--ltext3); }
.gs-crit { padding: var(--sp-7); border-radius: var(--r-3xl); background: var(--lcard); box-shadow: var(--l-raise); display: flex; flex-direction: column; gap: var(--sp-4); }
.gs-crit-h { display: flex; align-items: baseline; font-family: var(--f-d); font-weight: 700; font-size: var(--t-display-md); letter-spacing: var(--t-display-md-ls); color: var(--ltext); }
.gs-crit-pts { margin-left: auto; font-family: var(--f-n); font-size: var(--t-mono-md); color: var(--lk9000); }
.gs-crit-desc { font-family: var(--f-u); font-size: var(--t-ui-sm); line-height: 1.5; color: var(--ltext3); }
.gs-level {
  display: flex; align-items: center; gap: var(--sp-4); min-height: 44px;
  padding: var(--sp-4) var(--sp-6); border-radius: var(--r-xl);
  background: var(--lbg); box-shadow: var(--l-inset);
  font-family: var(--f-u); font-size: var(--t-ui-sm); color: var(--ltext3);
}
.gs-level.is-mine { background: var(--lk3200-fill); box-shadow: inset 0 0 0 1px var(--lk3200-line); color: var(--ltext); }
/* The level ABOVE theirs — the teaching artifact is this row. */
.gs-level.is-next { box-shadow: inset 0 0 0 1px var(--lpass); }
.gs-level-l { flex: 1; min-width: 0; }
.gs-level-p { font-family: var(--f-n); font-size: var(--t-mono-sm); color: var(--lk9000); }
.gs-level-tag { padding: 0 var(--sp-3); border-radius: var(--r-xs); background: var(--lk3200-solid); color: var(--sub); font-family: var(--f-n); font-size: var(--t-mono-xxs); letter-spacing: var(--t-mono-xxs-ls); }
.gs-level-tag.is-next { background: var(--lpass); }

/* ── the revision path ───────────────────────────────────────────────────── */
.gs-revbar { display: flex; align-items: center; gap: var(--sp-5); padding: var(--sp-6) var(--sp-7); border-radius: var(--r-2xl); background: var(--lk3200-fill); box-shadow: inset 0 0 0 1px var(--lk3200-line); font-family: var(--f-u); font-size: var(--t-ui-sm); color: var(--ltext); }
.gs-revbar.is-closed { background: var(--lcard); box-shadow: var(--l-inset); color: var(--ltext3); }
.gs-revrule { margin-top: var(--sp-2); font-size: var(--t-ui-xs); color: var(--ltext3); }
.gs-revdue { margin-left: auto; font-family: var(--f-n); font-size: var(--t-mono-xxs); letter-spacing: var(--t-mono-xxs-ls); color: var(--lk3200); }
.gs-sec { font-family: var(--f-n); font-size: var(--t-mono-xs); letter-spacing: var(--t-mono-xs-ls); color: var(--lk9000); }
.gs-flag { display: flex; gap: var(--sp-5); padding: var(--sp-6); border-radius: var(--r-2xl); background: var(--lcard); box-shadow: var(--l-raise); }
.gs-flag-meta { margin-top: var(--sp-3); font-family: var(--f-n); font-size: var(--t-mono-xxs); letter-spacing: var(--t-mono-xxs-ls); color: var(--lk3200); }
.gs-todo {
  display: flex; align-items: center; gap: var(--sp-5); width: 100%; min-height: 52px;
  padding: var(--sp-5) var(--sp-6); border: 0; border-radius: var(--r-xl);
  background: var(--lcard); box-shadow: var(--l-raise); text-align: left; cursor: pointer;
  font-family: var(--f-u); font-size: var(--t-ui-md); color: var(--ltext2);
}
.gs-check { width: 22px; height: 22px; flex: none; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1.5px var(--lk12000); }
.gs-todo.is-done .gs-check { background: var(--lpass); box-shadow: none; }
.gs-todo.is-done { color: var(--lk9000); text-decoration: line-through; }
