/* Tutorial-specific additions; everything else comes from ../widgets/widgets.css */
body.tutorial .chip { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase;
  background: var(--bg-1e3a5f, #1e3a5f); color: var(--fg-bfdbfe, #bfdbfe); border-radius: 999px; padding: 0.15rem 0.6rem; margin-left: 0.5rem; vertical-align: middle; }
body.tutorial .card { margin-bottom: 1.1rem; }
body.tutorial .card p, body.tutorial .card li { line-height: 1.6; }
body.tutorial .story p { margin: 0.6rem 0; }
body.tutorial .try-first { border-left: 4px solid var(--bg-fbbf24, #fbbf24); }
body.tutorial .widget-pointer { border: 1px solid var(--bg-243b5c, #243b5c); border-radius: 10px; padding: 0.8rem 1rem; margin: 0.8rem 0; background: var(--bg-121c2e, #121c2e); }
body.tutorial .param-table { width: 100%; border-collapse: collapse; margin: 0.5rem 0; font-size: 0.92rem; }
body.tutorial .param-table th, body.tutorial .param-table td { border-bottom: 1px solid var(--bg-243b5c, #243b5c); padding: 0.3rem 0.5rem; text-align: left; }
body.tutorial code { background: var(--bg-0f1b2d, #0f1b2d); padding: 0.05rem 0.35rem; border-radius: 5px; font-size: 0.88em; }
body.tutorial code.logline { display: block; padding: 0.6rem 0.8rem; white-space: normal; word-break: break-word; }
body.tutorial .qblock { border-top: 1px solid var(--bg-243b5c, #243b5c); padding: 0.9rem 0 0.6rem; }
body.tutorial .qblock:first-of-type { border-top: none; }
body.tutorial ol.choices { margin: 0.4rem 0 0.6rem 1.3rem; padding: 0; }
body.tutorial ol.choices li { margin: 0.25rem 0; }
body.tutorial details { margin: 0.4rem 0; }
body.tutorial summary { cursor: pointer; color: var(--fg-7dd3fc, #7dd3fc); font-weight: 600; padding: 0.3rem 0; }
body.tutorial .key ul { list-style: none; padding-left: 0; }
body.tutorial .key li { padding: 0.45rem 0.7rem; margin: 0.3rem 0; border-radius: 8px; background: var(--bg-152238, #152238); }
body.tutorial .key li.ok { border-left: 3px solid var(--bg-22c55e, #22c55e); }
body.tutorial .key li.no { border-left: 3px solid var(--bg-f97316, #f97316); }
body.tutorial .lesson-nav { display: flex; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin: 1.2rem 0; }
body.tutorial .sched { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
body.tutorial .sched th, body.tutorial .sched td { border-bottom: 1px solid var(--bg-243b5c, #243b5c); padding: 0.5rem 0.6rem; text-align: left; vertical-align: top; }
body.tutorial .lesson-list { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin: 0.8rem 0 1.2rem; }
body.tutorial .lesson-card { display: block; border: 1px solid var(--bg-243b5c, #243b5c); border-radius: 12px; padding: 0.9rem 1rem; background: var(--bg-152238, #152238); color: var(--fg-e2e8f0, #e2e8f0); text-decoration: none; }
body.tutorial .lesson-card:hover { border-color: var(--bg-38bdf8, #38bdf8); }
body.tutorial .lesson-card .tag { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--fg-93c5fd, #93c5fd); }
body.tutorial .lesson-card .title { font-weight: 650; margin: 0.25rem 0; }
body.tutorial .lesson-card.soon { opacity: 0.6; cursor: default; }
@media (max-width: 640px) { body.tutorial .sched { font-size: 0.86rem; } }
/* Phase 4: expanded answer explanations, plan steps */
body.tutorial .key h4.xh { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--fg-93c5fd, #93c5fd); margin: 0.9rem 0 0.3rem; }
body.tutorial .key .x-how { margin: 0.2rem 0 0.4rem 1.3rem; padding: 0; }
body.tutorial .key .x-how li { background: none; padding: 0.15rem 0; margin: 0.15rem 0; }
body.tutorial .key .x-src { font-size: 0.9rem; color: var(--fg-cbd5e1, #cbd5e1); }
body.tutorial .key .x-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }
body.tutorial ol.plan-steps { margin: 0.4rem 0 0.4rem 1.3rem; padding: 0; }
body.tutorial ol.plan-steps li { margin: 0.45rem 0; line-height: 1.55; }
body.tutorial .sched ol.plan-steps { margin-left: 1.1rem; }
/* Practice sets, notes hint */
body.tutorial .notes-hint { margin: 0.8rem 0 0.2rem; padding: 0.55rem 0.8rem; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 6px; color: var(--text); font-size: 0.95rem; }
body.tutorial .practice-set-card { border-left: 4px solid var(--accent); }
body.tutorial .rule-line { margin: 0.35rem 0 0; }
body.tutorial .lesson-card .ps-count { color: var(--accent); }
body.tutorial .lesson-nav .practice-link { border-color: var(--accent); }

/* My mistake notes (error-log.html) */
.hidden { display: none !important; }
.mn-form .field-grid { display: grid; gap: 0.8rem 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.mn-form .field { display: flex; flex-direction: column; gap: 0.3rem; }
.mn-form .field > span { font-weight: 600; font-size: 0.92rem; }
.mn-form input[type="text"], .mn-form input[type="date"], .mn-form select, .mn-form textarea {
  background: var(--surface2); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 0.55rem 0.7rem; font: inherit; width: 100%; }
.mn-form textarea { resize: vertical; }
.mn-form .mn-wide { margin-top: 0.8rem; }
.mn-trip { border: 1px solid var(--border-soft); border-radius: 10px; margin: 1rem 0 0; padding: 0.6rem 0.9rem 0.8rem; }
.mn-trip legend { font-weight: 600; font-size: 0.92rem; padding: 0 0.3rem; }
.mn-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.mn-chip { display: inline-flex; align-items: center; gap: 0.4rem; border: 1px solid var(--border); border-radius: 999px; padding: 0.35rem 0.8rem; cursor: pointer; background: var(--surface); min-height: 40px; }
.mn-chip:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.mn-prefill { border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); background: var(--accent-soft); border-radius: 10px; padding: 0.7rem 0.9rem; margin-bottom: 1rem; }
.mn-prefill p { margin: 0.25rem 0; }
.mn-pattern { display: grid; grid-template-columns: minmax(10rem, 16rem) 1fr 3rem; align-items: center; gap: 0.6rem; margin: 0.35rem 0; }
.mn-bar { height: 0.8rem; border-radius: 999px; background: var(--surface2); overflow: hidden; }
.mn-bar > span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.mn-callout { padding: 0.6rem 0.8rem; border-left: 3px solid var(--warn); background: var(--warn-dim); border-radius: 6px; margin: 0.6rem 0; }
.mn-note { border: 1px solid var(--border-soft); border-radius: 10px; padding: 0.7rem 0.9rem; margin: 0.6rem 0; background: var(--surface); }
.mn-note .mn-meta { font-size: 0.85rem; color: var(--muted); }
.mn-note .mn-q { margin: 0.3rem 0; }
.mn-note .mn-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.3rem 0; }
.mn-note .mn-tag { font-size: 0.78rem; border-radius: 999px; padding: 0.1rem 0.55rem; background: var(--warn-dim); color: var(--text); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); }
.mn-note .btn-row { margin-top: 0.4rem; gap: 0.4rem; }
.mn-tools { flex-wrap: wrap; }
.mn-import { cursor: pointer; }
@media print {
  /* Printed notes are always black on white, whatever the screen theme. */
  .site-nav, .site-crumbs, .page-toc, #add, #why, .header-badges, .mn-tools, .mn-note .btn-row, #review, .disclaimer, .site-footer { display: none !important; }
  html, body { background: white !important; color: black !important; }
  .card, .mn-note { background: white !important; color: black !important; border-color: gray !important; box-shadow: none !important; break-inside: avoid; }
  .mn-bar > span { background: dimgray !important; }
  .mn-note .mn-tag { background: whitesmoke !important; color: black !important; }
  a { color: black !important; text-decoration: none; }
}
body.tutorial ul.ps-list { columns: 2 18rem; column-gap: 2rem; margin: 0.6rem 0 0 1.2rem; padding: 0; } body.tutorial ul.ps-list li { margin: 0.25rem 0; break-inside: avoid; }
