/* Alpha School — classy light theme */
:root {
  --bg: #faf9f6;
  --surface: #fffdf8;
  --surface2: #f4f1ea;
  --text: #211d19;
  --muted: #6b6259;
  --accent: #3d5a45;
  --accent-d: #2d4433;
  --border: #e9e2d5;
  --radius: 14px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
  font-size: 16px;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.6rem; margin-top: 0; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-d); text-decoration: underline; }

.muted { color: var(--muted); }

/* ---------- Layout ---------- */
.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}
.page.wide { max-width: 1100px; }

section { margin-bottom: 1.75rem; }

/* ---------- Nav ---------- */
#alpha-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: .8rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.nav-brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: .5px;
}
.nav-brand:hover { text-decoration: none; color: var(--accent); }
.nav-links { display: flex; gap: 1.1rem; flex-wrap: wrap; margin-left: auto; }
.nav-links a {
  color: var(--muted);
  font-weight: 600;
  font-size: .95rem;
  padding: .35rem .7rem;
  border-radius: 8px;
}
.nav-links a:hover { color: var(--accent-d); background: var(--surface2); text-decoration: none; }
.nav-links a.active { color: #fff; background: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  margin: 1.5rem 0 2rem;
}
.hero h1 { font-size: 2.8rem; margin-bottom: .5rem; }
.hero .lede { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin: 0 auto 1.5rem; }
.term-banner {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: .4rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(33, 29, 25, .04);
}

/* ---------- Course hero ---------- */
.course-hero { margin: 1rem 0 1.75rem; }
.course-hero h1 { font-size: 2.2rem; }
.crumb { font-size: .9rem; color: var(--muted); margin-bottom: .5rem; }
.lede { font-size: 1.1rem; color: var(--muted); }
.course-meta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .75rem; }
.course-meta span {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .25rem .9rem;
  font-size: .85rem;
  color: var(--muted);
}

/* ---------- Lessons ---------- */
.lesson { border-bottom: 1px solid var(--border); padding: 1.25rem 0; }
.lesson:first-of-type { padding-top: 0; }
.lesson:last-of-type { border-bottom: 0; padding-bottom: 0; }
.example {
  background: #eef3ee;
  border: 1px solid #d7e3d7;
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}
.try {
  background: var(--surface2);
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  font-style: italic;
  color: var(--muted);
}

/* ---------- Vocabulary ---------- */
.vocab { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.25rem; margin: 0; }
.vocab dt { font-weight: 700; color: var(--accent-d); }
.vocab dd { margin: 0 0 .75rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: .7rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--sans);
}
.btn:hover { background: var(--accent-d); color: #fff; text-decoration: none; }
.btn.secondary {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn.secondary:hover { background: var(--border); color: var(--text); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Forms ---------- */
label.field { display: block; font-weight: 600; margin: .9rem 0 .3rem; }
input[type="text"], input[type="number"], select, textarea {
  width: 100%;
  max-width: 420px;
  padding: .65rem .8rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: var(--sans);
  background: #fff;
  color: var(--text);
}
input[type="text"]:focus, input[type="number"]:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

/* ---------- Homework rows ---------- */
.hw {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  padding: .9rem 0;
  border-bottom: 1px solid var(--border);
}
.hw:last-child { border-bottom: 0; }
.hw input[type="checkbox"] {
  width: 1.3rem; height: 1.3rem; margin-top: .2rem; accent-color: var(--accent); flex-shrink: 0;
}
.hw.done span { color: var(--muted); text-decoration: line-through; }
.hw .due { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--accent-d); background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; padding: .1rem .5rem; margin-left: .5rem; }
.hw.overdue .due { color: #a33; background: #f9e9e4; border-color: #e8c5bb; }

/* ---------- Quiz ---------- */
.quiz-q { margin-bottom: 1.5rem; }
.quiz-q h4 { font-family: var(--sans); font-size: 1.05rem; margin-bottom: .75rem; }
.quiz-progress { font-size: .85rem; color: var(--muted); margin-bottom: .75rem; font-weight: 600; }
.quiz-bar { height: 8px; background: var(--surface2); border-radius: 999px; overflow: hidden; margin-bottom: 1.25rem; }
.quiz-bar > div { height: 100%; background: var(--accent); border-radius: 999px; transition: width .3s; }
.quiz-opt {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .7rem 1rem;
  margin-bottom: .5rem;
  font-size: 1rem;
  cursor: pointer;
  font-family: var(--sans);
  color: var(--text);
}
button.quiz-opt:hover:not(:disabled) { border-color: var(--accent); background: var(--surface2); }
.quiz-opt:disabled { cursor: default; }
.quiz-opt.correct { background: #e7f0e7; border-color: var(--accent); }
.quiz-opt.wrong { background: #f7e9e4; border-color: #b0563a; }
.quiz-opt.fill-input { cursor: text; }
.quiz-feedback {
  border-radius: 10px;
  padding: .9rem 1.1rem;
  margin: 1rem 0;
  border: 1px solid var(--border);
}
.quiz-feedback.good { background: #e7f0e7; border-color: var(--accent); }
.quiz-feedback.bad { background: #f7e9e4; border-color: #b0563a; }
.quiz-feedback .verdict { font-weight: 700; display: block; margin-bottom: .25rem; }
.quiz-score {
  text-align: center;
  padding: 2rem 1rem;
}
.quiz-score .big { font-family: var(--serif); font-size: 3rem; font-weight: 700; color: var(--accent-d); }
.quiz-score .grade-letter {
  display: inline-block;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  border: 2px solid var(--accent);
  border-radius: 50%;
  width: 3.5rem; height: 3.5rem;
  line-height: 3.2rem;
  margin: .75rem 0;
}

/* ---------- Progress ring ---------- */
.progress-ring { display: inline-flex; align-items: center; gap: .6rem; }
.progress-ring .ring { position: relative; width: 44px; height: 44px; }
.progress-ring svg { transform: rotate(-90deg); }
.progress-ring .ring-bg { stroke: var(--surface2); }
.progress-ring .ring-fg { stroke: var(--accent); stroke-linecap: round; }
.progress-ring .ring-label {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: .65rem; font-weight: 700; color: var(--accent-d);
}

/* ---------- Tables ---------- */
.data-table, .grade-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}
.data-table th, .data-table td, .grade-table th, .grade-table td {
  text-align: left;
  padding: .65rem .8rem;
  border-bottom: 1px solid var(--border);
}
.data-table th, .grade-table th {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  background: var(--surface2);
}
.data-table tr:hover td, .grade-table tr:hover td { background: var(--surface2); }
.grade-pill {
  display: inline-block;
  min-width: 2.6rem;
  text-align: center;
  font-weight: 700;
  border-radius: 8px;
  padding: .15rem .6rem;
  background: var(--surface2);
  border: 1px solid var(--border);
}
.grade-pill.a { background: #e7f0e7; border-color: var(--accent); color: var(--accent-d); }
.grade-pill.b { background: #eef2e4; border-color: #8a9a5b; color: #5a6633; }
.grade-pill.c { background: #f6f0e2; border-color: #c9a959; color: #8a6f2e; }
.grade-pill.f { background: #f7e9e4; border-color: #b0563a; color: #8c3f28; }

/* ---------- Dashboard ---------- */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.stat-card .num { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; color: var(--accent-d); }
.stat-card .label { color: var(--muted); font-size: .9rem; margin-top: .25rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.assign-list { list-style: none; margin: 0; padding: 0; }
.assign-list li {
  display: flex; align-items: center; gap: .75rem;
  padding: .7rem 0; border-bottom: 1px solid var(--border);
}
.assign-list li:last-child { border-bottom: 0; }
.assign-list .check { width: 1.2rem; height: 1.2rem; accent-color: var(--accent); flex-shrink: 0; }
.assign-list .assign-title { flex: 1; }
.assign-list li.done .assign-title { color: var(--muted); text-decoration: line-through; }
.assign-list .due-tag {
  font-size: .78rem; font-weight: 700; white-space: nowrap;
  color: var(--accent-d); background: var(--surface2);
  border: 1px solid var(--border); border-radius: 6px; padding: .15rem .55rem;
}
.assign-list li.overdue .due-tag { color: #a33; background: #f9e9e4; border-color: #e8c5bb; }

/* ---------- Catalog ---------- */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.25rem;
}
.course-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
}
.course-card:hover { border-color: var(--accent); box-shadow: 0 4px 14px rgba(61, 90, 69, .08); }
.course-card h3 { font-size: 1.2rem; margin-bottom: .25rem; }
.course-card h3 a { color: var(--text); }
.course-card h3 a:hover { color: var(--accent-d); text-decoration: none; }
.course-card .tags { display: flex; gap: .5rem; flex-wrap: wrap; margin: .5rem 0; }
.course-card .tag {
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  color: var(--accent-d); background: var(--surface2);
  border: 1px solid var(--border); border-radius: 6px; padding: .15rem .5rem;
}
.course-card p.blurb { font-size: .92rem; color: var(--muted); flex: 1; }
.course-card .foot { margin-top: 1rem; display: flex; align-items: center; justify-content: space-between; }
.filters { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; align-items: flex-end; }
.filters .filter-group { display: flex; flex-direction: column; gap: .3rem; }
.filters label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }

/* ---------- Podcast / audio ---------- */
.podcast-ep { margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.podcast-ep:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.podcast-ep h3 { font-family: var(--sans); font-size: 1.05rem; margin-bottom: .35rem; }
audio { width: 100%; margin: .75rem 0; display: block; }

/* ---------- Sections ---------- */
.section-title { font-size: 1.7rem; margin: 2.5rem 0 1rem; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.25rem; }
.how-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; }
.how-card h3 { font-family: var(--sans); font-size: 1.05rem; color: var(--accent-d); }

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
}
footer.site-footer .foot-brand { font-family: var(--serif); font-weight: 700; color: var(--text); font-size: 1.1rem; }

/* ---------- Report card (print) ---------- */
.report-card { background: #fff; }
.report-header { text-align: center; border-bottom: 3px double var(--accent); padding-bottom: 1rem; margin-bottom: 1.5rem; }
.report-header h1 { font-size: 2rem; }
.report-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; margin-bottom: 1.5rem; }
.report-meta div { font-size: .95rem; }
.report-sign { margin-top: 2.5rem; display: flex; justify-content: space-between; gap: 2rem; }
.report-sign div { border-top: 1px solid var(--text); padding-top: .4rem; font-size: .85rem; color: var(--muted); flex: 1; text-align: center; }

@media print {
  #alpha-nav, .no-print, footer.site-footer, .btn { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .page { max-width: 100%; padding: 0; }
  .card { border: 1px solid #999; box-shadow: none; break-inside: avoid; }
  .report-card { display: block; }
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  h1 { font-size: 1.9rem; }
  .hero { padding: 2rem 1.25rem; }
  .hero h1 { font-size: 2.1rem; }
  .two-col { grid-template-columns: 1fr; }
  .nav-links { margin-left: 0; }
  .vocab { grid-template-columns: 1fr; }
  .vocab dt { margin-top: .5rem; }
  .page { padding: 1.25rem .9rem 3rem; }
  .card { padding: 1.25rem; }
  .data-table, .grade-table { font-size: .85rem; }
  .data-table th, .data-table td, .grade-table th, .grade-table td { padding: .5rem .45rem; }
}

/* ---------- Auth ---------- */
.auth-tabs { display: flex; gap: .5rem; margin: 1rem 0; border-bottom: 1px solid var(--border); }
.auth-tab {
  background: none; border: 0; border-bottom: 3px solid transparent;
  padding: .6rem 1rem; font-size: 1rem; font-weight: 600; cursor: pointer;
  color: var(--muted); font-family: var(--sans);
}
.auth-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.auth-message { padding: .8rem 1rem; border-radius: 10px; margin: 1rem 0; font-weight: 500; }
.auth-message.info { background: var(--surface2); color: var(--text); }
.auth-message.success { background: #e6f2e9; color: #2d4433; }
.auth-message.error { background: #fbe9e7; color: #7a2e2e; }
.consent-box {
  border: 1px solid var(--border); border-radius: 10px;
  padding: .9rem 1rem; margin: 1rem 0 0; background: var(--surface2);
}
.consent-box.consent-required { border-color: var(--accent); background: #eef4ef; }
.consent-label { display: flex; gap: .6rem; align-items: flex-start; font-weight: 600; cursor: pointer; }
.consent-label input { margin-top: .25rem; width: auto; }
.consent-note { margin: .5rem 0 0 1.6rem; font-size: .9rem; }
.auth-privacy { font-size: .9rem; margin-top: 1.25rem; }
.link-btn {
  background: none; border: 0; color: var(--accent); font-weight: 600;
  cursor: pointer; font-size: 1rem; padding: 0; font-family: var(--sans);
}
.link-btn:hover { text-decoration: underline; }
.auth-status-bar { max-width: 1100px; margin: 0 auto; padding: .6rem 1.25rem 0; text-align: right; }
.auth-status { font-size: .9rem; color: var(--muted); }
input[type="email"], input[type="password"] {
  width: 100%; max-width: 420px; padding: .65rem .8rem;
  border: 1px solid var(--border); border-radius: 10px;
  font-size: 1rem; font-family: var(--sans); background: #fff; color: var(--text);
}
input[type="email"]:focus, input[type="password"]:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}

/* ---------- Registration wizard ---------- */
.wizard-progress { margin: 1rem 0 .5rem; }
.wizard-progress-label { font-weight: 700; color: var(--accent-d); margin-bottom: .4rem; }
.wizard-progress-bar { height: 8px; background: var(--surface2); border-radius: 999px; overflow: hidden; }
.wizard-progress-bar > div { height: 100%; background: var(--accent); border-radius: 999px; transition: width .3s; }
.wizard-step { margin-top: .5rem; }
.wizard-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.25rem; align-items: center; }
.field-error { display: none; color: #7a2e2e; font-size: .88rem; margin: .25rem 0 0; font-weight: 500; }
.field-error.visible { display: block; }
.field-invalid { border-color: #b0563a !important; }
.field-note { font-size: .88rem; color: var(--muted); margin: .35rem 0 0; }
.required-mark { color: #7a2e2e; font-weight: 700; }

/* Scrollable consent box (wizard Step 2) */
.consent-scroll-box {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  background: #fff;
  margin: 1rem 0;
}
.consent-scroll-box:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.consent-scroll-box h1 { font-size: 1.5rem; }
.consent-scroll-box h2 { font-size: 1.1rem; margin-top: 1.25rem; }
.consent-accept-btn:disabled { opacity: .55; cursor: not-allowed; }
.consent-scroll-hint { font-size: .88rem; color: var(--muted); }

/* Standalone consent document (consent.html, also embedded in the wizard) */
.consent-doc { max-width: 760px; }
.consent-doc h2 { margin-top: 1.75rem; }
.consent-doc ul { margin: 0 0 1rem 1.25rem; padding: 0; }
.consent-doc li { margin-bottom: .4rem; }
.consent-kicker { font-size: .8rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); margin-bottom: .5rem; }
.consent-signoff { border-top: 1px solid var(--border); padding-top: 1rem; font-style: italic; color: var(--muted); }
.consent-standalone-note { margin-top: 1.5rem; }

/* ---------- OTP ---------- */
.otp-group { margin: 1rem 0; }
.otp-boxes { display: flex; gap: .5rem; flex-wrap: wrap; margin: .5rem 0; }
.otp-box {
  width: 2.75rem; height: 3rem; text-align: center;
  font-size: 1.4rem; font-weight: 700;
  border: 1px solid var(--border); border-radius: 10px;
  background: #fff; color: var(--text); font-family: var(--sans);
  padding: 0;
}
.otp-box:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.otp-status { font-size: .92rem; margin: .5rem 0; min-height: 1.3em; }
.otp-status.success { color: #2d4433; font-weight: 600; }
.otp-status.error { color: #7a2e2e; font-weight: 600; }
.resend-wrap { font-size: .92rem; color: var(--muted); margin-top: .5rem; }
.resend-wrap button:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Google Sign-In / forgot password ---------- */
.auth-divider { display: flex; align-items: center; gap: 1rem; color: var(--muted); font-size: .88rem; margin: 1.25rem 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; border-top: 1px solid var(--border); }
.google-btn {
  display: inline-flex; align-items: center; gap: .6rem;
  background: #fff; color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  padding: .65rem 1.25rem; font-size: 1rem; font-weight: 600;
  cursor: pointer; font-family: var(--sans);
}
.google-btn:hover { border-color: var(--accent); }
.google-btn:disabled { opacity: .6; cursor: not-allowed; }
.google-btn .google-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--accent); color: #fff; font-family: var(--serif);
  font-weight: 700; font-size: .95rem; line-height: 1;
}
.forgot-link { margin-top: .75rem; }
.forgot-panel { border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.25rem; margin-top: 1rem; background: var(--surface2); }
.banner { padding: .8rem 1rem; border-radius: 10px; margin: 1rem 0; font-weight: 500; }
.banner.success { background: #e6f2e9; color: #2d4433; }
.banner.error { background: #fbe9e7; color: #7a2e2e; }

/* Quizzes & Exams (quiz-engine.js bank mode) */
.lesson-complete-ctl { margin: 0 0 .8rem; padding: .5rem .75rem; background: var(--surface2); border-radius: 8px; font-size: .92rem; }
.lesson-complete-ctl label { cursor: pointer; display: flex; align-items: center; gap: .5rem; }
.lesson-complete-ctl input { width: 1.05rem; height: 1.05rem; accent-color: var(--accent); }
.qe-item { border: 1px solid var(--line, #e5e1da); border-radius: 10px; padding: .7rem .9rem; margin: .5rem 0; }
.qe-item.qe-locked { opacity: .85; }
.qe-item-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.qe-badge { font-size: .78rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line, #e5e1da); border-radius: 999px; padding: .1rem .55rem; white-space: nowrap; }
.qe-cert-box { border: 1px solid var(--accent); border-radius: 10px; padding: .9rem 1rem; margin: .8rem 0; background: #f4f8f4; }
.qe-review { border-left: 3px solid var(--line, #e5e1da); padding: .5rem .75rem; margin: .5rem 0; }
.qe-review.good { border-color: var(--accent); }
.qe-review.bad { border-color: #b0563a; }
.report-sent { color: #2f6b33; font-weight: 600; }
.unit-audio { margin: .4rem 0 1rem; padding: .6rem .9rem; background: var(--surface2); border-radius: 8px; }
.unit-audio p { margin: 0 0 .35rem; }
.unit-audio audio { width: 100%; max-width: 560px; }
