/* The design system (SPEC D9; Cody 2026-10-18: inspiration from the teacher's books, the teacher loves purple).
   One accent (tenant `app.accent`, default a circus purple), warm paper, dark ink, one secondary teal for links and
   progress. Type: a rounded humanist sans from the system (no third-party font request — privacy; a self-hosted
   Nunito can replace it later). Tap targets ≥ 48 px, body 18 px, readable at arm's length. */
:root {
  --accent: #6A2C91;
  --paper: #FBF8FF;
  --card: #FFFFFF;
  --ink: #26203A;
  --muted: #716A85;
  --line: #E6DFF0;
  --blue: #2A7F86;
  --green: #3A8F5A;
  --radius: 18px;
  --shadow: 0 2px 10px rgba(43, 33, 24, 0.08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.5 "Nunito", "Segoe UI Rounded", "Segoe UI", system-ui, -apple-system, sans-serif; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; background: var(--card); border-bottom: 3px solid var(--accent); }
.brand { font-weight: 800; font-size: 22px; color: var(--accent); text-decoration: none; letter-spacing: .2px; }
.top-right { display: flex; align-items: center; gap: 12px; }
.page { max-width: 720px; margin: 0 auto; padding: 18px 16px 60px; }
.foot { text-align: center; color: var(--muted); font-size: 14px; padding: 24px 16px; }
h1 { font-size: 28px; margin: 10px 0 18px; }
h1.hello { color: var(--accent); }
h2 { font-size: 20px; margin: 0 0 12px; }
h3 { font-size: 16px; color: var(--muted); margin: 18px 0 8px; font-weight: 600; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 18px 16px; margin: 0 0 16px; }
.card.accent { border: 2px solid var(--accent); }
.card.narrow { max-width: 420px; margin: 40px auto; }
.lead { font-size: 18px; margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.note { background: #FFF2EA; border-left: 4px solid var(--accent); padding: 8px 12px; border-radius: 8px; }
.big-line { font-size: 20px; margin: 0; }
.tag { display: inline-block; background: var(--line); color: var(--ink); border-radius: 999px; padding: 2px 10px; font-size: 14px; margin-left: 6px; }
.tag.ok { background: #E3F3E8; color: var(--green); }
.row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 10px; border-radius: 12px; text-decoration: none; color: var(--ink); }
a.row:hover { background: #FFF6EE; }
.row.done { opacity: .7; }
.row .key { font-weight: 800; color: var(--blue); min-width: 48px; }
.row .title { flex: 1; }
.row .go { color: var(--accent); font-weight: 700; }
.hw { padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.hw .meta { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.send { margin-top: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 800; font-size: 18px; cursor: pointer; text-decoration: none; }
.btn.big { width: 100%; min-height: 60px; font-size: 20px; }
.btn.file input { display: none; }
.link { background: none; border: 0; color: var(--blue); font-size: 16px; cursor: pointer; min-height: 44px; }
.chip { display: inline-block; min-height: 40px; line-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--line); color: var(--ink); text-decoration: none; margin-right: 6px; }
.chip.on { background: var(--blue); color: #fff; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 700; }
.form input { font: inherit; min-height: 52px; padding: 8px 12px; border: 2px solid var(--line); border-radius: 12px; }
.form input:focus { outline: none; border-color: var(--accent); }
.error { color: #B3261E; margin: 0; }
.status { margin: 8px 0 0; }
.video { padding: 10px 0; border-bottom: 1px solid var(--line); }
.video .meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; }
.video video, .video audio { width: 100%; border-radius: 12px; margin-top: 6px; background: #000; }
.video .comment { background: #EEF5F9; border-left: 4px solid var(--blue); padding: 8px 12px; border-radius: 8px; }
.progress { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.bar { flex: 1; height: 12px; background: var(--line); border-radius: 999px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--green); border-radius: 999px; }
/* the teacher's pages */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 16px; }
.tab { display: inline-block; min-height: 44px; line-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--card); color: var(--ink); text-decoration: none; font-weight: 700; box-shadow: var(--shadow); }
.tab.on { background: var(--accent); color: #fff; }
.flash { padding: 10px 14px; border-radius: 12px; }
.flash.ok { background: #E3F3E8; color: var(--green); }
.flash.bad { background: #FBE7E7; color: #B3261E; }
table.list { width: 100%; border-collapse: collapse; font-size: 16px; }
table.list th { text-align: left; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 2px solid var(--line); }
table.list td { padding: 10px 8px; border-bottom: 1px solid var(--line); }
.grid2 { grid-template-columns: 1fr 1fr; }
.grid2 .wide, .grid2 button { grid-column: 1 / -1; }
.form select { font: inherit; min-height: 52px; padding: 8px 12px; border: 2px solid var(--line); border-radius: 12px; background: #fff; }
.checks { display: grid; gap: 6px; max-height: 260px; overflow: auto; padding: 6px; border: 2px solid var(--line); border-radius: 12px; font-weight: 400; }
.check { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.day { background: var(--paper); border-radius: 12px; padding: 8px; min-height: 120px; }
.day.today { outline: 2px solid var(--accent); }
.day h3 { margin: 0 0 8px; font-size: 15px; color: var(--ink); }
.lesson { background: var(--card); border-left: 4px solid var(--blue); border-radius: 8px; padding: 6px 8px; margin-bottom: 6px; font-size: 14px; box-shadow: var(--shadow); }
.lesson.moved { border-left-color: var(--accent); }
.lesson.extra { border-left-color: var(--green); }
.lesson-actions .link { font-size: 13px; min-height: 28px; padding: 0 4px; }
.holiday-row { display: grid; grid-template-columns: 1fr 1fr 2fr auto; gap: 8px; grid-column: 1 / -1; }
.link.danger { color: #B3261E; }
@media (max-width: 900px) { .week { grid-template-columns: repeat(2, 1fr); } .grid2 { grid-template-columns: 1fr; } }
@media (max-width: 480px) { body { font-size: 17px; } .page { padding: 12px 12px 48px; } h1 { font-size: 24px; } .week { grid-template-columns: 1fr; } }
