:root { color-scheme: light; --bg:#fff7fb; --card:#fff; --ink:#2f2530; --muted:#756a73; --accent:#d85c91; --soft:#fde6f0; --line:#f0d5e1; --ok:#35a66f; --warn:#f2a23a; }
* { box-sizing: border-box; }
body { margin: 0; font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: linear-gradient(160deg, var(--bg), #fff); color: var(--ink); }
header { padding: 32px 18px 18px; max-width: 1120px; margin: 0 auto; }
h1 { margin: 4px 0 6px; font-size: clamp(28px, 5vw, 48px); letter-spacing: -0.04em; }
h2 { margin: 0 0 14px; font-size: 18px; }
h3 { margin: 28px 0 10px; }
.eyebrow { color: var(--accent); font-weight: 700; margin: 0; }
.sub, .muted { color: var(--muted); }
main { max-width: 1120px; margin: 0 auto; padding: 0 18px 36px; display: grid; grid-template-columns: 330px 1fr; gap: 18px; align-items: start; }
.card { background: rgba(255,255,255,.88); border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: 0 14px 35px rgba(128, 68, 96, .08); }
.list { display: grid; gap: 8px; margin-bottom: 24px; max-height: 360px; overflow: auto; padding-right: 2px; }
.item { border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 10px 12px; cursor: pointer; }
.item:hover, .item.active { border-color: var(--accent); background: var(--soft); }
.item b { display:block; }
.small { font-size: 13px; }
.lesson-title { display:flex; justify-content:space-between; gap: 12px; align-items:flex-start; flex-wrap:wrap; }
.badge { display:inline-flex; align-items:center; border-radius: 999px; padding: 6px 10px; background: var(--soft); color: #a22d63; font-weight: 700; font-size: 13px; }
.vocab { display:grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap:10px; padding:0; list-style:none; }
.vocab li { border:1px solid var(--line); border-radius:14px; padding:12px; background:#fff; }
.reading { line-height:1.9; background:#fffafc; border-left: 4px solid var(--accent); padding:14px 16px; border-radius:12px; white-space: pre-wrap; }
.question { margin: 18px 0; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background:#fff; }
.question-title { font-weight: 800; margin-bottom: 8px; }
textarea { width:100%; border:1px solid var(--line); border-radius:14px; padding:12px; font: inherit; resize: vertical; background:#fffdfd; margin-top: 10px; }
button { appearance:none; border:0; border-radius: 999px; background: var(--accent); color:#fff; font-weight:800; padding: 12px 18px; cursor:pointer; }
button.secondary { background:#fff; color:var(--accent); border:1px solid var(--accent); }
.actions { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-top: 18px; }
.feedback { margin-top: 12px; font-weight:700; color:#217a4b; }
code { background: var(--soft); padding: 2px 5px; border-radius: 6px; }

.checkins { margin-bottom: 24px; }
.month { margin-bottom: 16px; }
.month h3 { margin: 12px 0 8px; font-size: 15px; }
.weekdays, .calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; text-align: center; }
.weekdays span { color: var(--muted); font-size: 12px; font-weight: 700; }
.day { min-width: 0; aspect-ratio: 1 / 1; border-radius: 12px; padding: 0; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 12px; }
.day.empty { border: 0; background: transparent; }
.day:disabled { opacity: .45; cursor: default; }
.day.clickable { color: var(--ink); cursor: pointer; }
.day.lesson-day { border-color: #f2bf64; background: #fff8e8; }
.day.done { border-color: #8ad7b0; background: #eafaf1; color: #176b42; font-weight: 900; }
.day.selected { outline: 2px solid var(--accent); outline-offset: 2px; }
.legend { display:flex; gap:8px; align-items:center; flex-wrap:wrap; color:var(--muted); font-size:12px; }
.dot { width:10px; height:10px; border-radius:999px; display:inline-block; margin-left:4px; }
.dot.done { background: var(--ok); }
.dot.lesson-dot { background: var(--warn); }
.dot.missed { background: #eee; border: 1px solid var(--line); }
.choice-grid { display:grid; gap:10px; margin-top: 12px; }
.choice { display:flex; gap:10px; align-items:flex-start; border:1px solid var(--line); border-radius:14px; padding:12px; background:#fffdfd; cursor:pointer; }
.choice:hover { border-color: var(--accent); background: var(--soft); }
.choice input { margin-top: 4px; accent-color: var(--accent); }
.choice-letter { min-width: 28px; height: 28px; border-radius: 999px; display:inline-grid; place-items:center; background: var(--soft); color:#a22d63; font-weight:900; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--soft); }

@media (max-width: 820px) { main { grid-template-columns: 1fr; } aside { order:2; } .list { max-height: none; } }
