/* Ustaad — magenta #C026D3 on warm off-white #FDF7F6. Clean, spacious, readable. */
:root {
  --accent: #C026D3;
  --accent-dark: #A21CAF;
  --accent-tint: #FAE8FF;
  --base: #FDF7F6;
  --ink: #2B1E2B;
  --grey: #6E5A6E;
  --line: #EDE3EC;
  --card: #FFFFFF;
  --risk: #DC2626;
  --risk-bg: #FEE2E2;
  --ok: #15803D;
  --ok-bg: #DCFCE7;
  --warn: #B45309;
  --warn-bg: #FEF3C7;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--base); color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
}
.site-head {
  max-width: 860px; margin: 0 auto; padding: 28px 20px 8px;
  display: flex; align-items: center; gap: 16px;
}
.logo {
  width: 56px; height: 56px; border-radius: 16px; background: var(--accent);
  color: #fff; font-size: 32px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.site-head h1 { margin: 0; font-size: 34px; }
.tagline { margin: 0; color: var(--grey); }
.sample-pill {
  margin-left: auto; font-size: 12px; font-weight: 700; letter-spacing: 1px;
  color: var(--accent-dark); background: var(--accent-tint);
  border: 2px solid var(--accent); border-radius: 999px; padding: 6px 12px;
  white-space: nowrap;
}
.tabs {
  max-width: 860px; margin: 12px auto 0; padding: 0 20px;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.tab {
  border: 2px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 9px 16px; font-size: 15px; font-weight: 600; cursor: pointer; color: var(--ink);
}
.tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
main { max-width: 860px; margin: 0 auto; padding: 8px 20px 40px; }
.pane { display: none; }
.pane.active { display: block; }
h2 { font-size: 28px; margin: 20px 0 4px; }
h3 { font-size: 20px; margin: 24px 0 8px; }
.intro { color: var(--grey); margin: 0 0 20px; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.filters label, .field {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 14px; font-weight: 600; color: var(--grey);
}
select, input[type="number"] {
  font-size: 16px; padding: 10px 12px; border: 2px solid var(--line);
  border-radius: 12px; background: #fff; color: var(--ink); min-width: 160px;
}
.field { margin-bottom: 16px; }
.field select, .field input { max-width: 320px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 18px 20px; margin-bottom: 14px;
  box-shadow: 0 6px 18px rgba(43, 30, 43, 0.05);
}
.tutor-top { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 48px; height: 48px; border-radius: 50%; background: var(--accent-tint);
  color: var(--accent-dark); font-size: 22px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.tutor-top strong { display: block; font-size: 18px; }
.muted { display: block; color: var(--grey); font-size: 14px; }
.verified {
  margin-left: auto; font-size: 12px; font-weight: 800; color: var(--ok);
  background: var(--ok-bg); border-radius: 999px; padding: 5px 10px; white-space: nowrap;
}
.tutor-meta {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: var(--grey); font-size: 15px; margin-top: 12px;
}
.tutor-foot {
  display: flex; justify-content: space-between; align-items: center; margin-top: 12px;
}
.btn {
  background: var(--accent); color: #fff; border: none; border-radius: 12px;
  padding: 12px 22px; font-size: 16px; font-weight: 700; cursor: pointer;
}
.btn:hover { background: var(--accent-dark); }
.btn.small { padding: 8px 16px; font-size: 14px; }
.empty { color: var(--grey); }
.note { color: var(--grey); font-size: 14px; }
.slot, .flag {
  display: block; background: var(--card); border: 2px solid var(--line);
  border-radius: 14px; padding: 12px 16px; margin-bottom: 10px; font-size: 16px;
}
.result {
  font-size: 20px; font-weight: 700; background: var(--accent);
  color: #fff; border-radius: 16px; padding: 18px 20px;
}
.examples p { background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 16px; }
.progress-head { display: flex; justify-content: space-between; gap: 12px; }
.progress-head strong { display: block; font-size: 18px; }
.pill {
  background: var(--accent-tint); color: var(--accent-dark); font-weight: 700;
  border-radius: 999px; padding: 6px 12px; font-size: 14px; white-space: nowrap;
  align-self: flex-start;
}
.stat-row { display: flex; gap: 12px; margin: 16px 0; }
.stat {
  flex: 1; background: var(--accent-tint); border-radius: 14px; padding: 12px;
  text-align: center;
}
.stat strong { display: block; font-size: 22px; color: var(--accent-dark); }
.stat span { font-size: 13px; color: var(--grey); }
.topic {
  display: flex; justify-content: space-between; padding: 10px 0;
  border-bottom: 1px solid var(--line); font-size: 16px;
}
.badge { font-size: 13px; font-weight: 700; border-radius: 999px; padding: 4px 10px; }
.badge.done { background: var(--ok-bg); color: var(--ok); }
.badge.in-progress { background: var(--warn-bg); color: var(--warn); }
.badge.upcoming { background: var(--accent-tint); color: var(--accent-dark); }
.summary { color: var(--grey); font-size: 15px; }
.msg { font-weight: 600; min-height: 24px; }
.msg.ok { color: var(--ok); }
.msg.warn { color: var(--warn); }
.verdict { font-weight: 700; border-radius: 14px; padding: 14px 16px; }
.verdict.risk { background: var(--risk-bg); color: var(--risk); }
.verdict.warn { background: var(--warn-bg); color: var(--warn); }
.verdict.ok { background: var(--ok-bg); color: var(--ok); }
.flag-hint { color: var(--grey); }
footer {
  max-width: 860px; margin: 0 auto; padding: 0 20px 40px;
  color: var(--grey); font-size: 14px;
}
