:root {
  --bg: #f6f2ea;
  --text: #1e1b18;
  --muted: #71665b;
  --card: #fffaf2;
  --accent: #9b6a2f;
  --accent-dark: #67431f;
  --line: #e7dccc;
  --success: #2f6b3f;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, Arial, sans-serif; background: var(--bg); color: var(--text); }
.app { display: flex; min-height: 100vh; }
.sidebar { width: 340px; background: #201912; color: white; padding: 24px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; gap: 14px; align-items: center; margin-bottom: 26px; }
.logo { width: 52px; height: 52px; border-radius: 14px; background: var(--accent); display: grid; place-items: center; font-weight: 800; }
.brand h1 { font-size: 18px; margin: 0 0 6px; }
.brand p { color: #cbbda9; margin: 0; font-size: 13px; }
nav button { width: 100%; text-align: left; margin: 6px 0; padding: 12px; border: 1px solid #3a2c20; background: #2b2118; color: white; border-radius: 12px; cursor: pointer; }
nav button.active, nav button:hover { background: var(--accent); }
.progress-box { margin-top: 28px; padding: 18px; background: #2b2118; border-radius: 16px; }
.progress-bar { height: 10px; background: #4d3b2b; border-radius: 999px; overflow: hidden; margin: 10px 0; }
.progress-bar span { display: block; height: 100%; width: 0%; background: #d8af72; }
.content { flex: 1; padding: 28px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: 12px; margin: 0 0 4px; }
h2 { margin: 0; font-size: 34px; }
.hero { background: linear-gradient(135deg, #fffaf2, #ead8bb); padding: 28px; border-radius: 24px; border: 1px solid var(--line); margin-bottom: 22px; }
.hero h3 { font-size: 30px; margin: 0 0 10px; }
.hero p { color: var(--muted); font-size: 18px; max-width: 900px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { background: white; border: 1px solid var(--line); color: var(--accent-dark); padding: 8px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; align-items: start; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; margin-bottom: 18px; box-shadow: 0 8px 24px rgba(46, 34, 20, .06); }
.card.large { grid-row: span 2; }
.card h3 { margin-top: 0; }
#lessonBody p { line-height: 1.6; color: #352c24; }
.quote { border-left: 4px solid var(--accent); padding-left: 14px; font-size: 20px; font-weight: 800; }
textarea { width: 100%; min-height: 130px; border: 1px solid var(--line); border-radius: 14px; padding: 14px; font: inherit; background: white; resize: vertical; }
button { border: 0; background: var(--accent); color: white; padding: 11px 16px; border-radius: 12px; cursor: pointer; font-weight: 800; margin-top: 10px; }
button.secondary { background: white; color: var(--accent-dark); border: 1px solid var(--line); }
.check { display: flex; gap: 8px; align-items: center; font-weight: 700; margin-top: 14px; }
.question { border-top: 1px solid var(--line); padding: 14px 0; }
.question label { display: block; margin: 8px 0; }
#quizResult, #scoreOutput { font-weight: 800; }
.score-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.score { background: white; border: 1px solid var(--line); padding: 14px; border-radius: 14px; text-align: center; }
.score strong { font-size: 24px; display: block; color: var(--accent-dark); }
@media (max-width: 900px) { .app { flex-direction: column; } .sidebar { width: 100%; height: auto; position: relative; } .grid { grid-template-columns: 1fr; } .score-grid { grid-template-columns: 1fr 1fr; } }

.video-center input[type="text"], .video-center input[type="file"], .video-center select, .video-center input[type="number"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  font: inherit;
  background: white;
  margin: 6px 0 14px;
}
.video-center label { font-weight: 800; display: block; color: var(--accent-dark); }
.upload-panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-top: 12px; }
.submission-list { display: grid; gap: 14px; margin-top: 16px; }
.submission-card { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.submission-card video { width: 100%; max-height: 360px; border-radius: 14px; background: #111; margin: 10px 0; }
.submission-meta { color: var(--muted); font-size: 13px; margin: 6px 0; }
.review-grid { display: grid; grid-template-columns: repeat(5, minmax(90px, 1fr)); gap: 10px; margin: 12px 0; }
.review-grid label { font-size: 12px; }
.status-badge { display: inline-block; padding: 6px 10px; border-radius: 999px; background: #ead8bb; color: var(--accent-dark); font-weight: 800; font-size: 12px; }
.danger { background: #8d2f2f; }
@media (max-width: 900px) { .review-grid { grid-template-columns: 1fr 1fr; } }
