:root {
  --bg: #17181c;
  --bg-raised: #202127;
  --bg-panel: #1b1c21;
  --line: #2c2d34;
  --text: #f2f2f5;
  --text-dim: #9a9ba3;
  --accent: #ffb340;
  --record: #ff5d5d;
  --drums: #5fd47a;
  --bass: #5aa9ff;
  --keys: #b98aff;
  --vocal: #ff7a6e;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background:
    radial-gradient(1200px 500px at 70% -10%, rgba(255, 179, 64, 0.07), transparent),
    radial-gradient(900px 500px at 10% 10%, rgba(255, 122, 110, 0.06), transparent),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
}

.landing {
  max-width: 880px;
  margin: 0 auto;
  padding: 26px 24px 20px;
  display: flex; flex-direction: column; gap: 18px;
}

/* ── Hero ── */
.hero { text-align: center; }
.hero-brand {
  display: flex; align-items: baseline; justify-content: center; gap: 12px;
}
.hero-logo { color: var(--record); font-size: 24px; }
.hero h1 { font-size: 38px; font-weight: 800; letter-spacing: -0.5px; }
.hero-tag {
  margin-top: 5px;
  font-size: 17px; font-weight: 600; color: var(--accent);
}
.hero-sub {
  margin: 9px auto 0; max-width: 620px;
  font-size: 14px; line-height: 1.55; color: var(--text-dim);
}

@media (min-width: 900px) {
  .landing { max-width: 1060px; }
  .hero-collage {
    display: grid; grid-template-columns: 1.05fr 1fr;
    gap: 28px; align-items: center;
  }
  .hero { text-align: left; }
  .hero-brand { justify-content: flex-start; }
  .hero-sub { margin-left: 0; }
  .collage { margin: 0; }
}

/* ── Collage ── */
.collage {
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--bg-panel);
  padding: 16px 18px 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.collage-track {
  display: flex; gap: 5px;
  height: 22px; margin-bottom: 5px;
}
.cb {
  display: flex; align-items: center; gap: 6px;
  border-radius: 7px;
  font-size: 11px; font-weight: 700; color: rgba(0, 0, 0, 0.65);
  padding: 0 10px;
  overflow: hidden; white-space: nowrap;
  position: relative;
}
.cb svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cb-green { background: linear-gradient(180deg, var(--drums), #4db868); }
.cb-blue { background: linear-gradient(180deg, var(--bass), #4894e6); }
.cb-purple { background: linear-gradient(180deg, var(--keys), #a675f0); }
.cb-coral { background: linear-gradient(180deg, var(--vocal), #f0685c); }
.cb-gold { background: linear-gradient(180deg, #f2c94c, #dcae2f); }
.collage-caption {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin-top: 11px;
  font-size: 12px; color: var(--text-dim);
}

/* ── Gate ── */
.gate {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 720px) { .gate { grid-template-columns: 1fr; } }

.card {
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--bg-panel);
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.card h2 { font-size: 19px; }
.card-sub { font-size: 13px; line-height: 1.55; color: var(--text-dim); }

input[type=text], input[type=password] {
  background: var(--bg-raised);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 13px;
  color: var(--text); font-size: 15px;
  outline: none;
}
input:focus { border-color: var(--accent); }

.primary {
  background: var(--accent); color: #1a1a1a;
  border: none; border-radius: 10px;
  padding: 11px 18px;
  font-size: 15px; font-weight: 700; cursor: pointer;
}
.primary:active { opacity: 0.85; }
.ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 18px; font-size: 14px; cursor: pointer;
}
.ghost:hover { border-color: #3a3b44; }
.playground {
  background: linear-gradient(135deg, rgba(255, 179, 64, 0.18), rgba(255, 122, 110, 0.18));
  border: 1px solid rgba(255, 179, 64, 0.4);
  color: var(--text);
  border-radius: 10px;
  padding: 12px 18px; font-size: 14px; font-weight: 700; cursor: pointer;
}
.playground:hover { border-color: var(--accent); }
.playground-note { font-size: 12px; line-height: 1.5; color: var(--text-dim); }
.wide { width: 100%; }

.msg { font-size: 13px; color: var(--record); min-height: 18px; }

/* ── Modal ── */
.modal {
  position: fixed; inset: 0; z-index: 30;
  background: rgba(0, 0, 0, 0.6);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-card {
  background: var(--bg-panel); border: 1px solid var(--line);
  border-radius: 16px; padding: 26px;
  width: min(460px, 94vw);
  display: flex; flex-direction: column; gap: 12px;
}
.modal-card h2 { font-size: 19px; }
.warn {
  background: rgba(255, 93, 93, 0.08);
  border: 1px solid rgba(255, 93, 93, 0.35);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px; line-height: 1.6;
}
.warn strong { color: var(--record); }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.landing-foot {
  text-align: center;
  font-size: 12px; color: var(--text-dim);
  padding-top: 8px;
}

/* ── Teacher portal ── */
.portal { max-width: 980px; }
.portal-top {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.portal-title { font-size: 26px; font-weight: 800; }
.portal-actions { display: flex; gap: 10px; }
.portal-main {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px;
  align-items: start;
}
@media (max-width: 760px) { .portal-main { grid-template-columns: 1fr; } }

textarea {
  background: var(--bg-raised);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px;
  color: var(--text); font-size: 15px; font-family: inherit;
  outline: none; resize: vertical;
}
textarea:focus { border-color: var(--accent); }

.class-block {
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg-raised);
  padding: 4px 14px 10px;
  margin-bottom: 10px;
}
.class-block summary {
  cursor: pointer; font-weight: 700; font-size: 14px;
  padding: 10px 0;
}
.cred-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
  margin: 4px 0 10px;
}
.cred-table th {
  text-align: left; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-dim);
  padding: 6px 8px; border-bottom: 1px solid var(--line);
}
.cred-table td { padding: 8px; border-bottom: 1px solid var(--line); }
.cred-table a { color: var(--accent); text-decoration: none; font-weight: 600; }
.cred-table a:hover { text-decoration: underline; }
.pass-cell { font-family: ui-monospace, Menlo, monospace; color: var(--drums); }
.ghost.mini { padding: 4px 10px; font-size: 13px; border-radius: 8px; }

.hidden { display: none !important; }

.demo-link {
  background: transparent; border: none;
  color: var(--accent); font-size: 13px; font-weight: 600;
  cursor: pointer; padding: 2px 0 0; text-align: center;
}
.demo-link:hover { text-decoration: underline; }

/* A student has written to their teacher. There's one conversation each, so a
   count would always read "1" — the point is only that something is waiting. */
.unread-flag {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; margin-left: 8px;
  border-radius: 50%;
  background: var(--accent); color: #1a1a1a;
  font-size: 12px; font-weight: 900; line-height: 1;
  vertical-align: middle;
}
.unread-flag.hidden { display: none; }

/* ── Due dates ── */
.due-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 10px 12px; margin: 8px 0 4px;
  border: 1px solid var(--line); border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}
.due-label { font-size: 13px; color: var(--text-dim); margin-right: auto; }
.due-label.overdue { color: var(--record); font-weight: 700; }

/* ── Date picker ── */
.dp-layer {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(0, 0, 0, 0.45);
}
.dp-card {
  position: fixed; width: 316px;
  background: var(--bg-panel);
  border: 1px solid var(--line); border-radius: 16px;
  padding: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}
.dp-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.dp-title { flex: 1; text-align: center; font-size: 14px; font-weight: 700; }
.dp-nav {
  width: 30px; height: 30px; flex: 0 0 auto;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg-raised); color: var(--text);
  font-size: 16px; line-height: 1; cursor: pointer;
}
.dp-nav:hover { border-color: var(--accent); color: var(--accent); }

.dp-names, .dp-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
}
.dp-names span {
  text-align: center; font-size: 10px; font-weight: 800;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-dim); padding-bottom: 4px;
}
.dp-day {
  aspect-ratio: 1 / 1;
  border: 1px solid transparent; border-radius: 9px;
  background: transparent; color: var(--text);
  font: inherit; font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .12s, color .12s, border-color .12s;
}
.dp-day:hover { background: var(--bg-raised); border-color: var(--line); }
.dp-blank { visibility: hidden; cursor: default; }
.dp-weekend { color: var(--text-dim); }
.dp-today { border-color: var(--line); font-weight: 700; }
.dp-today::after {
  content: ''; position: absolute; margin-top: 20px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent);
}
.dp-on, .dp-on:hover {
  background: var(--accent); color: #1a1a1a; font-weight: 800;
  border-color: var(--accent);
}

.dp-time {
  display: flex; align-items: center; gap: 10px;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
}
.dp-time-label {
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-dim);
}
.dp-time-input {
  flex: 1; background: var(--bg-raised); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 10px; font: inherit; font-size: 14px;
}
.dp-time-input:focus { outline: none; border-color: var(--accent); }

.dp-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.dp-chip {
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg-raised); color: var(--text-dim);
  font: inherit; font-size: 11.5px; padding: 4px 10px; cursor: pointer;
}
.dp-chip:hover { color: var(--accent); border-color: var(--accent); }

.dp-summary {
  margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--text);
}
.dp-summary.dp-past { color: var(--record); }
.dp-zone { margin-top: 3px; font-size: 11.5px; color: var(--text-dim); line-height: 1.4; }

.dp-actions { display: flex; gap: 8px; margin-top: 12px; }
.dp-btn {
  flex: 1; padding: 9px 12px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--bg-raised);
  color: var(--text); font: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer;
}
.dp-btn:hover { border-color: #3a3b44; }
.dp-ok { background: var(--accent); border-color: var(--accent); color: #1a1a1a; }

/* ── Groups ── */
.group-wrap {
  margin: 10px 0 4px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}
.group-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 7px 0; border-top: 1px solid var(--line);
}
.group-name { font-size: 13px; font-weight: 700; }
.group-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-right: auto; }
.group-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 5px 3px 10px; font-size: 12px;
}
.group-chip em { color: var(--text-dim); font-style: normal; font-size: 11px; }
.group-chip button {
  border: none; background: none; color: var(--text-dim);
  cursor: pointer; font-size: 10px; padding: 0 3px; line-height: 1;
}
.group-chip button:hover { color: var(--record); }
.group-loose { margin-top: 8px; font-style: italic; }

/* ── Group picker ── */
.gp-layer {
  position: fixed; inset: 0; z-index: 85;
  background: rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.gp-card {
  background: var(--bg-panel); border: 1px solid var(--line);
  border-radius: 16px; padding: 20px;
  width: min(460px, 94vw); max-height: 88vh; overflow: auto;
}
.gp-name {
  width: 100%; margin: 10px 0 4px;
  background: var(--bg-raised); color: var(--text);
  border: 1px solid var(--line); border-radius: 9px;
  padding: 9px 11px; font: inherit; font-size: 14px;
}
.gp-name:focus { outline: none; border-color: var(--accent); }
.gp-list { margin: 8px 0; }
.gp-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 8px; border-radius: 9px; cursor: pointer;
}
.gp-row:hover { background: var(--bg-raised); }
.gp-row input { width: 17px; height: 17px; accent-color: var(--accent); }
.gp-person { flex: 1; font-size: 14px; }
.gp-note { font-size: 11.5px; color: var(--text-dim); }
/* In another group, but still takeable — dimmed to say "this one is spoken
   for", not disabled, because ticking them is a legitimate thing to mean. */
.gp-elsewhere { opacity: 0.72; }
.gp-elsewhere:hover { opacity: 1; }
.gp-move { color: var(--accent); }

/* ── Recovery code ── */
/* Big, monospaced and spaced out, because this gets copied onto paper by
   hand and every ambiguous character is a lockout waiting to happen. */
/* The log-mode toggle, with its reasoning attached. The explanation is part of
   the control, not a tooltip: the teacher setting it is often not the Stage 6
   teacher and deserves to know why the question is being asked. */
/* Just created. Loud enough to find in a list of six, gone by next lesson. */
/* ── Log check ──
   A grid of dots, not ticks: a tick implies correct, and this only reports
   what has been written about. Wide, because five columns plus names need it. */
.logcheck-card { width: min(720px, 96vw); }
table.logcheck { width: 100%; border-collapse: collapse; margin: 10px 0; }
table.logcheck th {
  text-align: left; font-size: 10px; font-weight: 700;
  letter-spacing: .03em; text-transform: uppercase; color: var(--text-dim);
  padding: 4px 6px; border-bottom: 1px solid var(--line);
}
table.logcheck th:nth-child(n+3) { text-align: center; }
table.logcheck td { padding: 5px 6px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.lc-name a { color: var(--text); text-decoration: none; font-size: 13px; }
.lc-name a:hover { color: var(--accent); text-decoration: underline; }
.lc-count { font-size: 11.5px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.lc-cell { text-align: center; color: #45464f; font-size: 15px; line-height: 1; }
.lc-cell.on { color: var(--drums); }

/* The student's task picker, and the teacher's task cards. */
.task-pick-class {
  margin: 12px 4px 4px; font-size: 10px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; color: var(--text-dim);
}
.task-pick {
  display: block; width: 100%; text-align: left;
  border: 1px solid var(--line); background: var(--bg-raised); color: var(--text);
  border-radius: 10px; padding: 10px 12px; margin: 5px 0; cursor: pointer;
}
.task-pick:hover { border-color: var(--accent); }
.task-pick.on { border-color: var(--accent); }
.task-pick b { display: block; font-size: 14px; }
.task-pick span { display: block; margin-top: 2px; font-size: 11.5px; color: var(--text-dim); }

.task-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.task-new { padding: 6px 14px; font-size: 13px; }
.task-list { display: flex; flex-direction: column; gap: 8px; }
.task-card {
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px;
  background: var(--bg-raised);
}
.task-card.always { background: transparent; border-style: dashed; }
.task-card.ended { opacity: 0.7; }
.task-card-top { display: flex; align-items: center; gap: 8px; }
.task-card-name { font-size: 14px; font-weight: 700; }
.task-ended {
  background: var(--text-dim); color: var(--bg); border-radius: 20px;
  padding: 1px 8px; font-size: 9.5px; font-weight: 800; letter-spacing: .06em;
}
.task-card-hint { margin: 4px 0 0; font-size: 11.5px; color: var(--text-dim); line-height: 1.45; }
.task-card-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.class-new {
  display: inline-block; margin-left: 8px;
  background: var(--accent); color: #1a1a1a;
  border-radius: 20px; padding: 1px 8px;
  font-size: 9.5px; font-weight: 800; letter-spacing: .07em;
  vertical-align: middle;
}

.logmode-row { margin: 8px 0 4px; }
.logmode-toggle { display: inline-flex; gap: 6px; margin-left: 8px; }
.logmode-opt {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  border: 1px solid var(--line); background: var(--bg-raised); color: var(--text-dim);
  border-radius: 9px; padding: 5px 11px; cursor: pointer; text-align: left;
}
.logmode-opt b { font-size: 12px; color: var(--text); font-weight: 700; }
.logmode-opt span { font-size: 10px; }
.logmode-opt.on { border-color: var(--accent); }
.logmode-opt.on b { color: var(--accent); }
.logmode-why {
  margin: 7px 0 0; font-size: 11.5px; line-height: 1.5;
  color: var(--text-dim); max-width: 62ch;
}

.pw-field { display: block; margin: 12px 0; }
.pw-field span {
  display: block; margin-bottom: 4px;
  font-size: 13px; color: var(--text-dim);
}
.pw-field input {
  width: 100%;
  background: var(--bg-raised); color: var(--text);
  border: 1px solid var(--line); border-radius: 9px;
  padding: 9px 11px; font: inherit; font-size: 14px;
}
.pw-field input:focus { outline: none; border-color: var(--accent); }
.pw-msg:empty { display: none; }
.pw-msg { color: var(--record); }

.recovery-code {
  margin: 14px 0; padding: 16px 12px;
  background: var(--bg); border: 2px dashed var(--accent); border-radius: 12px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 22px; font-weight: 700; letter-spacing: 0.08em;
  text-align: center; color: var(--accent);
  user-select: all;
}
.code-confirm {
  display: flex; align-items: flex-start; gap: 9px;
  margin: 12px 0 4px; font-size: 13px; line-height: 1.4; cursor: pointer;
}
.code-confirm input { width: 17px; height: 17px; accent-color: var(--accent); flex-shrink: 0; }
#code-done:disabled { opacity: 0.45; cursor: not-allowed; }
#rec-code { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.04em; }

/* ── The task ── */
.task-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 8px 0 4px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}
.task-label { font-size: 13px; color: var(--text-dim); margin-right: auto; }
.task-drop {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 8px 16px; cursor: pointer;
  border: 1.5px dashed var(--line); border-radius: 10px;
  transition: border-color .15s, background .15s;
}
.task-drop:hover, .task-drop.over { border-color: var(--accent); background: rgba(255,179,64,0.07); }
.task-drop b { font-size: 12.5px; }
.task-drop span { font-size: 11px; color: var(--text-dim); }
.task-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-right: auto; }
.task-chip {
  display: inline-flex; align-items: center;
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: 999px; overflow: hidden;
}
.task-chip-name {
  border: none; background: none; color: var(--text);
  font: inherit; font-size: 12.5px; padding: 5px 4px 5px 12px; cursor: pointer;
}
.task-chip-name:hover { color: var(--accent); }
.task-chip-x {
  border: none; background: none; color: var(--text-dim);
  font-size: 10px; padding: 5px 9px 5px 4px; cursor: pointer;
}
.task-chip-x:hover { color: var(--record); }

/* ── Jurisdiction ── */
.juris-wrap { margin-top: 12px; }
.juris-select {
  background: var(--bg-raised); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 5px 9px; font: inherit; font-size: 12.5px; margin-left: 4px;
}
.juris-note { display: block; margin-top: 5px; }
.gp-more { margin: 6px 0 2px; }
.gp-more summary {
  cursor: pointer; font-size: 12.5px; color: var(--text-dim);
  padding: 6px 0;
}
.gp-more summary:hover { color: var(--accent); }

/* The side-by-side read. Columns, because the comparison IS the feature. */
.av-layer {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0, 0, 0, 0.6);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.av-card {
  background: var(--bg-panel); border: 1px solid var(--line);
  border-radius: 16px; padding: 20px;
  width: min(1100px, 96vw); max-height: 90vh; overflow: auto;
}
.av-cols {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr);
  gap: 12px; margin: 14px 0; overflow-x: auto;
}
.av-col {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px;
  background: var(--bg-raised); min-width: 240px;
}
.av-who { font-size: 15px; font-weight: 800; }
.av-state {
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-dim); margin: 3px 0 8px;
}
.av-state.in { color: var(--drums); }
.av-text {
  font-size: 13.5px; line-height: 1.55; white-space: pre-wrap;
  padding-top: 8px; border-top: 1px solid var(--line);
}
@media (max-width: 720px) {
  .av-cols { grid-auto-flow: row; }
}

/* ── Teacher guidance ── */
.privacy-card { border-color: var(--drums); }
.privacy-card h2 { color: var(--drums); }
.how-row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 0; border-top: 1px solid var(--line);
}
.how-row:first-of-type { border-top: none; }
.how-icon { font-size: 20px; line-height: 1.2; flex-shrink: 0; }
.how-row strong { font-size: 14px; }
.how-row .card-sub { margin-top: 2px; }
code {
  font-family: ui-monospace, Menlo, monospace; font-size: 0.92em;
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: 4px; padding: 1px 5px;
}

/* A freshly changed password — the old printout is now wrong. */
.pass-changed { color: var(--accent); font-weight: 700; }
.reprint { color: var(--accent); }

/* Destructive actions look destructive, and never sit under the cursor's
   resting place — deleting a class removes every song in it. */
.ghost.danger { color: #ff6b6b; border-color: rgba(255,107,107,.35); }
.ghost.danger:hover { background: rgba(255,107,107,.12); border-color: #ff6b6b; }

/* ── Short courses ── */
.course {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; margin-top: 10px;
  background: rgba(255, 255, 255, 0.02);
}
.course-head { display: flex; gap: 14px; align-items: flex-start; }
.course-num {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #1a1a1a;
  font-size: 15px; font-weight: 900; letter-spacing: -0.02em;
}
.course-head strong { font-size: 15px; }
.course-head .card-sub { margin-top: 3px; }
.course-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.course-files a { text-decoration: none; }
.course-note { margin-top: 10px; font-size: 12px; opacity: 0.85; }

/* Buttons on the teacher pages. The studio's .ghost-btn lives in styles.css,
   which the portal does not load — without this, anchors fell back to raw
   browser blue. */
.ghost-btn,
a.ghost-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--bg-raised);
  color: var(--text);
  border: 1px solid var(--line); border-radius: 9px;
  padding: 9px 14px;
  font-size: 13px; font-family: inherit; font-weight: 600;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.ghost-btn:hover,
a.ghost-btn:hover { border-color: var(--accent); color: var(--accent); }
.ghost-btn:active { background: var(--bg-panel); }

/* The privacy note is the widest thing here and reads as a statement —
   give it the full width of the grid, at the bottom. */
.full-width { grid-column: 1 / -1; }

/* ── Marking access ── */
.share-h3 { margin: 18px 0 4px; font-size: 15px; }
.share-code-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.share-code-shown {
  border: 1px solid var(--accent, #ffb340); border-radius: 8px;
  padding: 10px 12px; margin-bottom: 10px;
}
.share-code-shown strong { font-size: 22px; letter-spacing: .08em; }
.share-person {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 6px 0; border-bottom: 1px solid var(--line, #2a2a2e);
}
.share-join { display: flex; gap: 8px; flex-wrap: wrap; }
.share-join input { flex: 1 1 160px; min-width: 0; }
.shared-class-list { margin: 6px 0 10px; }
.shared-class-row { padding: 5px 0; border-bottom: 1px solid var(--line, #2a2a2e); }
/* A shared class opens to its students. No usernames and no passwords here:
   a co-teacher is never sent them. */
.shared-students { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 4px 4px; }
.shared-student {
  display: inline-block; padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line, #333); text-decoration: none; color: inherit;
  font-size: 13px;
}
.shared-student:hover { border-color: var(--accent, #ffb340); }

/* ── Last worked ──
   Marked, not scored: the two states a teacher does something about are
   "working right now" and "stopped a while ago". Everything between is plain,
   because it needs no action. */
.act-when { white-space: nowrap; color: var(--text-dim, #999); font-size: 12px; }
.act-what { color: var(--text-dim, #999); font-size: 12px; }
.act-when.act-live { color: var(--accent, #ffb340); font-weight: 600; }
.act-when.act-stale { color: #d0796b; }

/* The class list carries the dashboard table now — six columns a teacher reads
   from the front of the room — so it spans the page rather than sharing the
   row with the new-class form. */
.portal-main > .card.wide { grid-column: 1 / -1; }
