:root {
  --bg: #f6f8fb;
  --panel: #ffffff;
  --text: #172033;
  --muted: #667085;
  --line: #e4e7ec;
  --primary: #204ecf;
  --primary-dark: #183b9f;
  --success: #137a4a;
  --danger: #b42318;
  --warning: #b54708;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
button, input, textarea, select { font: inherit; }
button:disabled { opacity:.55; cursor:not-allowed; }
.topbar {
  height: 72px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; background: var(--primary); color: white;
  font-weight: 800; font-size: 22px;
}
.brand-title { font-weight: 800; font-size: 18px; }
.brand-sub { color: var(--muted); font-size: 12px; }
nav { display: flex; gap: 8px; }
.user-chip { display:inline-flex; align-items:center; padding:7px 10px; color:var(--muted); font-size:12px; }
.nav-link {
  background: transparent; border: 0; padding: 9px 12px; border-radius: 8px;
  color: #344054; cursor: pointer;
}
.nav-link:hover { background: #f2f4f7; }
main { max-width: 1120px; margin: 0 auto; padding: 38px 24px 64px; min-height: calc(100vh - 130px); }
.hero {
  background: linear-gradient(135deg, #edf3ff 0%, #ffffff 65%);
  border: 1px solid #dbe4ff; border-radius: 20px; padding: 36px;
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: center;
}
.hero h1 { font-size: 42px; line-height: 1.05; margin: 0 0 14px; letter-spacing: -0.03em; }
.hero p { color: var(--muted); font-size: 18px; line-height: 1.6; margin: 0; }
.hero-card { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: 0 12px 28px rgba(23,32,51,.06); }
.metric { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.metric:last-child { border-bottom: 0; }
.section-title { font-size: 24px; margin: 34px 0 14px; }
.gap-top { margin-top:22px; }
.center { text-align:center; margin-top:8px; }
.center-row { justify-content:center; margin-top:22px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: 0 6px 18px rgba(23,32,51,.035); }
.card h3 { margin: 0 0 8px; }
.card p { color: var(--muted); line-height: 1.55; }
.course-card { cursor: pointer; transition: transform .16s ease, box-shadow .16s ease; }
.course-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(23,32,51,.08); }
.badge { display: inline-block; padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #eef4ff; color: #2e5aac; margin-bottom: 10px; }
.progress-track { width: 100%; height: 9px; background: #eaecf0; border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--primary); }
.btn { border: 0; border-radius: 10px; padding: 11px 16px; cursor: pointer; font-weight: 700; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: #f2f4f7; color: #344054; }
.btn-ghost { background: transparent; color: var(--primary); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.course-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 24px; }
.course-head h1, .editor-head h1 { margin:4px 0 8px; }
.module { display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.module + .module { margin-top: 12px; }
.module-list { display:grid; gap:14px; }
.module-list .module h3 { margin:5px 0; }
.module-list .module p { margin:6px 0 12px; }
.module-actions { display:flex; gap:8px; flex-wrap:wrap; }
.learning-grid { display:grid; grid-template-columns:minmax(0,2fr) minmax(260px,.75fr); gap:20px; align-items:start; }
.learning-section { margin-bottom:18px; }
.learning-section h2,.practice-panel h2 { margin:4px 0 10px; }
.section-head { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.video-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:16px; }
.video-placeholder { aspect-ratio:16/10; border:1px dashed #98a2b3; border-radius:12px; background:#f9fafb; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; color:var(--muted); text-align:center; }
.play-mark { width:38px; height:38px; border-radius:50%; background:#eef4ff; color:var(--primary); display:grid; place-items:center; padding-left:3px; }
.resource-form,.learning-section form { display:grid; gap:10px; margin:16px 0; }
.resource-form input,.resource-form textarea,.resource-form select,.learning-section form input,.learning-section form textarea { width:100%; border:1px solid #d0d5dd; border-radius:9px; padding:10px 12px; background:white; }
.resource-item,.discussion-post { padding:14px 0; border-top:1px solid var(--line); }
.resource-item h3 { margin:0 0 6px; }
.resource-item p,.discussion-post p { margin:6px 0 0; color:#475467; }
.discussion-post span { color:var(--muted); font-size:12px; margin-left:8px; }
.empty-state { color:var(--muted); font-style:italic; }
.practice-panel { position:sticky; top:92px; }
.assignment-card { margin-bottom:14px; }
.assignment-card p { margin:6px 0; }
.review-list { display:grid; gap:14px; margin-top:18px; }
.review-list .question-card { padding:20px; }
.btn-wide { width:100%; margin-top:9px; }
.attempt-summary { border-top:1px solid var(--line); margin-top:20px; padding-top:18px; display:grid; gap:3px; }
.attempt-summary strong { font-size:30px; }
.quiz-clock { display:flex; align-items:center; gap:10px; }
.quiz-clock span { color:var(--muted); font-size:12px; }
.quiz-clock strong { font-variant-numeric:tabular-nums; min-width:44px; }
.module .left { flex: 1; }
.meta { color: var(--muted); font-size: 14px; }
.quiz-shell { max-width: 820px; margin: 0 auto; }
.quiz-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.question-card { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.question-card h2 { margin-top: 0; font-size: 25px; }
.choice { border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; margin-top: 10px; display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.choice:hover { background: #fafbfc; }
.choice input { margin-top: 3px; }
.number-input { width: 190px; border: 1px solid #d0d5dd; padding: 12px 13px; border-radius: 10px; margin-top: 10px; }
.graph-question { margin-top:18px; }
.graph-question svg { width:100%; max-height:390px; background:#fbfcfe; border:1px solid var(--line); border-radius:14px; }
.graph-question .axis { stroke:#344054; stroke-width:2; }
.graph-question marker path { fill:#344054; }
.graph-question text { fill:#344054; font-size:15px; font-weight:700; }
.graph-question .curve { fill:none; stroke-width:4; stroke-linecap:round; transition:d .22s ease; }
.graph-question .demand { stroke:#204ecf; }
.graph-question .supply { stroke:#137a4a; }
.graph-question .original { stroke:#98a2b3; stroke-width:3; stroke-dasharray:8 7; }
.graph-question .ppf { stroke:#7f56d9; }
.graph-question .student-point { fill:#b42318; stroke:white; stroke-width:3; }
.point-graph { touch-action:manipulation; }
.graph-question .fixed { opacity:.78; }
.graph-controls { display:flex; justify-content:center; gap:10px; margin-top:14px; flex-wrap:wrap; }
.feedback { margin-top: 18px; padding: 14px 16px; border-radius: 12px; line-height: 1.5; }
.feedback.correct { background: #ecfdf3; color: var(--success); border: 1px solid #abefc6; }
.feedback.incorrect { background: #fef3f2; color: var(--danger); border: 1px solid #fecdca; }
.feedback.info { background: #fff7ed; color: var(--warning); border: 1px solid #fed7aa; }
.quiz-actions { margin-top: 20px; display: flex; justify-content: space-between; gap: 10px; }
.quiz-progress { margin-bottom:18px; }
.score-box { text-align: center; padding: 36px; }
.auth-shell { max-width:460px; margin:45px auto; padding:30px; }
.auth-shell h1 { margin:4px 0 10px; }
.auth-form { display:grid; gap:16px; margin-top:24px; }
.auth-form label { display:grid; gap:7px; font-weight:700; }
.auth-form input { border:1px solid #d0d5dd; border-radius:9px; padding:11px 12px; }
.score-circle { width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; margin: 18px auto; background: #eef4ff; font-size: 34px; font-weight: 800; color: var(--primary); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: white; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
th, td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); }
th { background: #f9fafb; font-size: 13px; color: #475467; }
.small { font-size: 13px; color: var(--muted); }
.large { font-size:32px; font-weight:800; margin-top:6px; }
.table-head,.editor-head { display:flex; align-items:center; justify-content:space-between; gap:18px; }
.clipped { max-width:340px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:4px; }
.nowrap { flex-wrap:nowrap; }
.link-btn,.back-link { border:0; background:transparent; color:var(--primary); cursor:pointer; padding:4px; font-weight:700; }
.back-link { padding:0; }
.danger { color:var(--danger); }
.status { padding:4px 8px; border-radius:999px; background:#ecfdf3; color:var(--success); font-size:12px; font-weight:700; }
.status.draft { background:#f2f4f7; color:#475467; }
.editor-grid { display:grid; grid-template-columns:minmax(0,2fr) minmax(230px,.8fr); gap:20px; align-items:start; margin-top:22px; }
.field { margin-bottom:20px; }
.field label,legend { display:block; font-weight:700; margin-bottom:8px; }
.field input,.field textarea,.field select { width:100%; border:1px solid #d0d5dd; border-radius:9px; padding:11px 12px; background:white; }
.field textarea { resize:vertical; }
.field small { color:var(--muted); display:block; margin-top:5px; }
.two-col { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
fieldset { border:0; padding:0; margin:0 0 20px; }
.option-row { display:grid; grid-template-columns:24px 1fr 34px; gap:8px; align-items:center; margin-bottom:9px; }
.option,.variable-row input { width:100%; border:1px solid #d0d5dd; border-radius:9px; padding:10px; }
.variable-row { display:grid; grid-template-columns:1.1fr 1fr 1fr 1fr 34px; gap:8px; margin-bottom:9px; }
.icon-btn { width:32px; height:32px; border:0; border-radius:8px; background:#f2f4f7; font-size:20px; cursor:pointer; }
.check { display:flex; align-items:center; gap:9px; font-weight:600; }
.form-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:28px; padding-top:20px; border-top:1px solid var(--line); }
.tips { position:sticky; top:92px; }
footer { text-align: center; color: var(--muted); font-size: 13px; padding: 24px; }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .course-head, .module, .editor-head { flex-direction: column; align-items: stretch; }
  .editor-grid { grid-template-columns:1fr; }
  .tips { position:static; }
  .two-col { grid-template-columns:1fr; gap:0; }
  .variable-row { grid-template-columns:1fr 1fr; padding:12px; border:1px solid var(--line); border-radius:10px; }
  .learning-grid { grid-template-columns:1fr; }
  .video-grid { grid-template-columns:1fr; }
  .practice-panel { position:static; }
  .quiz-clock { flex-wrap:wrap; justify-content:flex-end; }
}

/* Polish layer */
:root { --radius: 14px; --shadow-sm: 0 1px 2px rgba(16,24,40,.06); --shadow-md: 0 8px 24px rgba(16,24,40,.08); --primary-soft: #eef3ff; --ring: 0 0 0 3px rgba(32,78,207,.22); }
body { -webkit-font-smoothing: antialiased; line-height: 1.5; }
h1 { letter-spacing: -0.02em; }
.topbar { background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(8px); box-shadow: var(--shadow-sm); }
.brand-mark { background: linear-gradient(135deg, #2f5bea, #183b9f); box-shadow: 0 4px 10px rgba(32,78,207,.3); }
.nav-link { font-weight: 600; transition: background .12s ease, color .12s ease; }
.nav-link:hover { color: var(--primary); background: var(--primary-soft); }
.nav-link[hidden] { display: none; }
.user-chip { background: #f2f4f7; border-radius: 999px; padding: 6px 12px; margin-right: 4px; }
.card { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.btn { transition: background .12s ease, box-shadow .12s ease, transform .06s ease; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn-primary { box-shadow: 0 1px 2px rgba(16,24,40,.12); }
.btn-secondary:hover:not(:disabled) { background: #e4e7ec; }
.btn-ghost:hover { background: var(--primary-soft); }
.btn:focus-visible, .nav-link:focus-visible, .link-btn:focus-visible, .choice:focus-within { outline: none; box-shadow: var(--ring); }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; border-color: var(--primary) !important; box-shadow: var(--ring); }
.badge { letter-spacing: .02em; }
.module { transition: box-shadow .15s ease, border-color .15s ease; }
.module:hover { box-shadow: var(--shadow-md); border-color: #cfd8ee; }
.module .small:first-child { color: var(--primary); font-weight: 700; letter-spacing: .06em; }

/* Assignment cards */
.assignment-card { border-left: 4px solid var(--primary); }
.assignment-card h3 { font-size: 17px; }
.assignment-card .meta-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 12px; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: #f2f4f7; color: #475467; font-size: 12px; font-weight: 600; }
.pill.warn { background: #fff4e5; color: var(--warning); }
.pill.ok { background: #ecfdf3; color: var(--success); }
.pill.bad { background: #fef3f2; color: var(--danger); }

/* Quiz experience */
.quiz-top { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow-sm); position: sticky; top: 84px; z-index: 5; }
.quiz-clock strong { font-size: 20px; padding: 4px 10px; border-radius: 8px; background: var(--primary-soft); color: var(--primary); }
.quiz-clock.low strong { background: #fef3f2; color: var(--danger); animation: pulse 1s ease-in-out infinite; }
.quiz-clock.warn strong { background: #fff4e5; color: var(--warning); }
@keyframes pulse { 50% { opacity: .55; } }
.question-card { box-shadow: var(--shadow-sm); }
.choice { transition: border-color .12s ease, background .12s ease; }
.choice:hover { border-color: #b2c2f0; background: #f7f9ff; }
.choice:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.progress-track { height: 8px; }
.progress-fill { background: linear-gradient(90deg, #2f5bea, #5b82f5); transition: width .25s ease; }
.q-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.q-nav button { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: white; color: #475467; font-weight: 700; cursor: pointer; }
.q-nav button.answered { background: var(--primary-soft); border-color: #b2c2f0; color: var(--primary); }
.q-nav button.current { background: var(--primary); border-color: var(--primary); color: white; }
.review-list .question-card { border-left: 4px solid var(--line); }
.review-list .question-card.right { border-left-color: #12b76a; }
.review-list .question-card.wrong { border-left-color: #f04438; }
.score-circle { background: radial-gradient(circle, #fff 57%, transparent 58%), conic-gradient(var(--primary) calc(var(--pct, 0) * 1%), #eaecf0 0); color: var(--text); }

/* Tables (gradebook) */
th { text-transform: uppercase; letter-spacing: .04em; font-size: 11px; }
tbody tr:hover { background: #fafbff; }
tbody tr:last-child td { border-bottom: 0; }
.score-chip { display: inline-block; min-width: 52px; text-align: center; padding: 3px 9px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.score-chip.high { background: #ecfdf3; color: var(--success); }
.score-chip.mid { background: #fff4e5; color: var(--warning); }
.score-chip.low { background: #fef3f2; color: var(--danger); }

/* Analytics / progress */
.stat-row { display: flex; gap: 16px; margin-bottom: 20px; }
.stat-card { flex: 1; text-align: center; padding: 18px; }
.stat-card strong { display: block; font-size: 28px; margin-top: 6px; color: var(--primary); }
.topic-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.topic-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.topic-list li:last-child { border-bottom: 0; }

/* Economics diagrams */
.graph-question svg { touch-action: manipulation; }
.graph-question .axis-label { font-size: 14px; font-weight: 700; fill: #475467; }
.graph-question .tick-label { font-size: 13px; font-weight: 700; fill: #344054; font-variant-numeric: tabular-nums; }
.graph-question .curve-label { font-size: 15px; font-weight: 800; }
.graph-question .curve-label.demand { fill: #204ecf; }
.graph-question .curve-label.supply { fill: #137a4a; }
.graph-question .curve-label.ppf { fill: #7f56d9; }
.graph-question .curve-label.muted, .graph-question .muted { fill: #98a2b3; }
.graph-question .guide { stroke: #667085; stroke-width: 1.5; stroke-dasharray: 5 5; }
.graph-question .guide.muted { stroke: #d0d5dd; }
.graph-question .eq-point { fill: #172033; stroke: #fff; stroke-width: 2; }
.graph-question .eq-point.muted { fill: #98a2b3; }
.graph-question .eq-label { font-size: 14px; font-weight: 800; fill: #172033; }
.graph-question .shift-arrow { stroke: #b54708; stroke-width: 2.5; }
.graph-question #shiftArrow path { fill: #b54708; }
.graph-question #axisArrow path { fill: #344054; }
.graph-question .gridline { stroke: #eaecf0; stroke-width: 1; }
.graph-controls .btn.active { background: var(--primary-soft); color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); }

/* Dashboards */
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.dash-head h1 { margin: 4px 0 4px; font-size: 30px; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 20px; align-items: start; }
.task-list { display: grid; gap: 10px; }
.task { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.task h3 { margin: 0 0 4px; font-size: 16px; }
.task .small { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.task.overdue { border-left: 4px solid var(--danger); }
.task.done { border-left: 4px solid #12b76a; }
.task.open { border-left: 4px solid var(--primary); }
.module-mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.module-mini .card { padding: 16px; cursor: pointer; transition: border-color .12s ease, box-shadow .12s ease; }
.module-mini .card:hover, .module-mini .card:focus-visible { border-color: #b2c2f0; box-shadow: var(--shadow-md); outline: none; }
.module-mini h3 { font-size: 15px; margin: 4px 0 10px; }
.module-mini .progress-track { height: 6px; }
.shortcut-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.shortcut { text-align: left; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font: inherit; }
.shortcut:hover, .shortcut:focus-visible { border-color: #b2c2f0; box-shadow: var(--shadow-md); outline: none; }
.shortcut strong { display: block; margin-bottom: 4px; }

/* Phones: logo on top, menu as one swipeable row, nothing cut off */
@media (max-width: 820px) {
  .topbar { height: auto; flex-direction: column; align-items: stretch; padding: 10px 14px 0; gap: 6px; }
  .brand-sub { display: none; }
  .brand-mark { width: 34px; height: 34px; font-size: 19px; }
  nav { overflow-x: auto; white-space: nowrap; gap: 2px; padding-bottom: 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  nav::-webkit-scrollbar { display: none; }
  .nav-link { padding: 8px 10px; flex: 0 0 auto; }
  .user-chip { display: none; }
  #authArea { display: contents; }
  main { padding: 22px 14px 48px; }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-head h1 { font-size: 24px; }
  .task { flex-direction: column; align-items: stretch; }
  .question-card { padding: 18px; }
  .question-card h2 { font-size: 20px; }
  .quiz-top { position: static; flex-wrap: wrap; gap: 10px; }
  .quiz-clock span { display: none; }
  .stat-row { flex-wrap: wrap; }
  .stat-card { min-width: 140px; }
}
.task .btn { white-space: nowrap; }
@media (max-width: 820px) { .graph-controls { gap: 6px; } .graph-controls .btn { padding: 10px 12px; } }
/* Halo so labels stay legible where they cross guide lines */
.graph-question .eq-label, .graph-question .curve-label, .graph-question .tick-label { paint-order: stroke; stroke: #fbfcfe; stroke-width: 5px; stroke-linejoin: round; }
/* WCAG contrast on the diagram background (#fbfcfe): text >= 4.5:1, lines and points >= 3:1 */
.graph-question .original { stroke: #8a93a3; }
.graph-question .curve-label.muted, .graph-question .eq-label.muted, .graph-question .tick-label.muted { fill: #6b7585; }
.graph-question .guide.muted { stroke: #8a93a3; stroke-dasharray: 2 5; }
.graph-question .eq-point.muted { fill: #8a93a3; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.coord-entry { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 12px; }
.coord-entry label { font-weight: 700; font-size: 14px; }
.coord-entry input { width: 88px; border: 1px solid #d0d5dd; border-radius: 9px; padding: 9px 10px; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--primary); color: #fff; padding: 10px 14px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
/* Form controls on instructor pages: selects match inputs; checkbox rows stay on one line */
.auth-form select, .resource-item select, #studentList select, #practiceReveal { border: 1px solid #d0d5dd; border-radius: 9px; padding: 10px 12px; background: #fff; font: inherit; max-width: 100%; }
.resource-item select, #studentList select { padding: 6px 10px; font-size: 13px; }
#practiceReveal { display: block; width: 100%; margin-top: 6px; }
.auth-form label.check { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.auth-form label.check input { width: auto; }
