:root { --bg:#1e2230; --card:#2a2f42; --text:#eef0f6; --muted:#9aa3b8; --accent:#6ea8fe;
        --good:#3fb27f; --mid:#e0a43a; --bad:#e05a5a; }
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--text);
       font: 18px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
#app { max-width: 640px; margin: 0 auto; padding: 16px; min-height: 100vh; }
.hidden { display: none !important; }
button { font: inherit; border: 0; border-radius: 12px; padding: 14px; cursor: pointer; }
.subjects { display: grid; gap: 12px; margin: 24px 0; }
.subject { background: var(--card); color: var(--text); text-align: left; display: grid; gap: 6px; }
.subject .title { font-size: 1.3rem; font-weight: 600; }
.subject .meta { color: var(--muted); font-size: .9rem; }
.bar { height: 8px; background: #3a4058; border-radius: 4px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--good); }
.toggle { color: var(--muted); }
header { display: flex; justify-content: space-between; align-items: center; color: var(--muted); }
header button { background: none; color: var(--text); font-size: 1.4rem; }
#card { background: var(--card); border-radius: 16px; padding: 24px; margin: 16px 0; min-height: 45vh; }
.topic { color: var(--muted); font-size: .85rem; margin: 0 0 8px; }
.question { font-size: 1.3rem; font-weight: 600; }
.note { color: var(--mid); font-size: .85rem; }
.answer { border-top: 1px solid #3a4058; margin-top: 16px; padding-top: 16px; white-space: pre-wrap; }
.primary { width: 100%; background: var(--accent); color: #0b1020; font-weight: 600; }
.rate { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bad { background: var(--bad); color: #fff; } .mid { background: var(--mid); color: #1b1300; }
.good { background: var(--good); color: #fff; }
.link { background: none; color: var(--muted); text-decoration: underline; width: 100%; margin-top: 12px; }
