.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: var(--s3) var(--s4); }
.opts { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: center; margin: var(--s3) 0; }
.btn-lg { min-height: 48px; padding: .6em 1.6em; font-size: 1.1rem; }
.metrics { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s3) var(--s4); margin-bottom: var(--s3); position: sticky; top: 64px; z-index: 5; }
.metrics > div { display: grid; text-align: center; } .metrics span, .results-grid span { font-size: .8rem; color: var(--muted); } .metrics b { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.metric-actions { margin-left: auto; display: flex; gap: var(--s2); }
.passage-wrap { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s4); cursor: text; }
.passage { font-family: var(--editor-font, var(--font-editor)); font-size: 1.7rem; line-height: 2.1; max-height: 14rem; overflow-y: auto; white-space: pre-wrap; word-break: break-word; }
.passage .ch.ok { color: var(--ok); } .passage .ch.bad { color: var(--err); background: color-mix(in srgb, var(--err) 18%, transparent); border-radius: 3px; }
.passage .ch.todo { color: var(--muted); } .passage .ch.typed { color: var(--text); }
.passage .ch.cur { box-shadow: inset 0 -3px 0 var(--turmeric); background: color-mix(in srgb, var(--turmeric) 22%, transparent); }
.test-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; resize: none; border: 0; cursor: text; }
.results-grid > div { display: grid; text-align: center; padding: var(--s3); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.results-grid b { font-size: 1.8rem; color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s4) 0; }
.lesson-list { list-style: none; padding: 0; display: grid; gap: var(--s2); }
.lesson-list li { display: flex; align-items: center; gap: var(--s3); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .6em .9em; background: var(--surface); }
.lesson-list li.is-done { border-color: var(--ok); }
.badge { display: inline-block; padding: 0 .55em; border-radius: 999px; background: var(--surface-2); font-size: .8rem; }
.board th, .board td { text-align: left; } .board td:first-child { font-weight: 700; width: 3rem; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s3); } .chips a { padding: .3em .8em; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; } .chips a[aria-current="true"] { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.spark { width: 100%; max-width: 32rem; height: 48px; }
