/* Teacher pages. Colors follow the app (frontend/src/theme.ts). */
:root {
  --bg: #0a0a0a; --surface: #1a1a1a; --surface-2: #2a2a2a; --border: #333;
  --text: #fff; --muted: #a3a3a3; --primary: #ff9f0a; --danger: #ff453a; --ok: #32d74b;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, sans-serif; }
main { max-width: 860px; margin: 0 auto; padding: 16px; }
a { color: var(--primary); }
h1 { font-size: 1.6rem; margin: 0 0 12px; }
h2 { font-size: 1.2rem; margin: 0 0 8px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.brand { color: var(--text); font-weight: 700; text-decoration: none; }
.brand span { color: var(--muted); font-weight: 400; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px; margin: 0 0 16px; }
.narrow { max-width: 440px; margin: 40px auto; }
.center { text-align: center; }
.left { text-align: left; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.list { list-style: none; padding: 0; margin: 0; }
.title { font-weight: 600; color: var(--text); }
label { display: block; margin: 0 0 12px; font-size: 0.875rem; color: var(--muted); }
label.inline { display: inline-block; margin-right: 8px; }
input, select, textarea { display: block; width: 100%; margin-top: 4px; padding: 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; }
textarea { resize: vertical; }
button, .button { display: inline-block; padding: 10px 16px; border-radius: 10px; border: 0; background: var(--primary); color: #000; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
button.secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
button.link { background: none; color: var(--primary); padding: 0 4px; font-weight: 400; }
button.icon { background: var(--surface-2); color: var(--text); padding: 4px 10px; }
.danger, button.link.danger { color: var(--danger); }
button.icon.danger { color: var(--danger); }
form.inline { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.code { font-family: ui-monospace, Menlo, monospace; font-weight: 700; letter-spacing: 0.08em; color: var(--primary); }
.code.big { font-size: 2.2rem; margin: 8px 0; }
.notice { background: rgba(50, 215, 75, 0.12); border: 1px solid var(--ok); padding: 10px 12px; border-radius: 10px; }
.error { background: rgba(255, 69, 58, 0.12); border: 1px solid var(--danger); padding: 10px 12px; border-radius: 10px; }
.error ul { margin: 4px 0 0; }
fieldset.exercise { border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin: 0 0 12px; }
fieldset.exercise legend { float: left; font-weight: 600; padding: 0; }
.row-actions { display: flex; gap: 6px; }
.grid { clear: both; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 12px; margin-top: 8px; }
.grid .wide { grid-column: span 3; }
.grid .full { grid-column: 1 / -1; }
.danger-zone { text-align: right; margin-bottom: 40px; }
.phone { max-width: 420px; }
.exercises { padding-left: 20px; }
.exercises li { margin-bottom: 12px; }
.notes { white-space: pre-wrap; color: var(--muted); margin: 4px 0; }
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .grid .wide { grid-column: span 2; }
}
