.flashcard-intro,.flashcard-study{max-width:62rem;margin-inline:auto;color:var(--text-primary)}.flashcard-intro{padding:1.25rem 1.25rem .75rem}.flashcard-intro h1{margin:.2rem 0;font-size:clamp(1.75rem,4vw,2.3rem);font-weight:900;line-height:1.15}.flashcard-intro-title{display:flex;justify-content:space-between;align-items:center;gap:.8rem}.flashcard-intro-title>a{display:inline-flex;align-items:center;min-height:44px;font-size:.75rem;color:var(--text-secondary);text-decoration:underline;text-underline-offset:3px}.flashcard-intro p:not(.dojo-kicker){color:var(--text-secondary);font-size:.875rem;line-height:1.6}.flashcard-intro nav{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.75rem}.flashcard-intro nav a,.flashcard-intro nav span{display:inline-flex;min-height:44px;align-items:center;padding:.45rem .85rem;border:1px solid var(--border-dim);border-radius:.6rem;font-size:.8rem;font-weight:700;text-decoration:none;background:var(--bg-surface)}.flashcard-intro nav span{color:var(--amber);background:var(--amber-glow)}.flashcard-study{padding:0 1.25rem 1.5rem}.flashcard-study button,.flashcard-study select,.flashcard-study textarea{font:inherit}.flashcard-study button{min-height:44px;padding:.55rem .8rem;border:1px solid var(--border-dim);border-radius:.6rem;background:var(--bg-surface);color:var(--text-primary);font-size:.8rem;font-weight:700;cursor:pointer}.flashcard-study button:hover:not(:disabled){background:var(--bg-card-hover)}.flashcard-study button:disabled{opacity:.55;cursor:not-allowed}.flashcard-study .flashcard-primary{background:var(--amber);color:#15120b;border-color:transparent}.flashcard-study .flashcard-primary:hover:not(:disabled){background:var(--amber);filter:brightness(1.08)}.flashcard-intro a:focus-visible,.flashcard-study :is(button,select,textarea,summary,a):focus-visible{outline:2px solid var(--amber);outline-offset:3px}.flashcard-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.6rem}.flashcard-toolbar h2{font-size:1rem;font-weight:800}.flashcard-toolbar button{font-size:.75rem}.flashcard-settings{border:1px solid var(--border-dim);border-radius:.8rem;background:var(--bg-surface)}.flashcard-settings summary{min-height:48px;padding:.7rem 1rem;font-size:.85rem;font-weight:800;cursor:pointer}.flashcard-settings summary span{margin-inline-start:.6rem;color:var(--text-secondary);font-size:.75rem;font-weight:500;overflow-wrap:anywhere}.flashcard-settings form{padding:.25rem 1rem 1rem}.flashcard-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem}.flashcard-fields label{min-width:0;font-size:.75rem;font-weight:700}.flashcard-fields select{display:block;width:100%;min-height:44px;margin-top:.3rem;padding:.55rem;border:1px solid var(--border-dim);border-radius:.5rem;color:var(--text-primary);background:var(--bg-card);font-size:.85rem}.flashcard-settings-action{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.6rem;margin:.8rem 0 .5rem;font-size:.8rem}.flashcard-settings form>p{font-size:.8rem;line-height:1.6}.flashcard-study .flashcard-help{font-size:.75rem;line-height:1.55;color:var(--text-secondary)}.flashcard-help a{text-decoration:underline;text-underline-offset:3px}.flashcard-history{margin:.6rem 0;padding:0 1rem;background:var(--bg-surface);border:1px solid var(--border-dim);border-radius:.8rem}.flashcard-history summary{min-height:44px;padding-block:.55rem;font-size:.8rem;cursor:pointer;line-height:1.7}.flashcard-history summary span{margin-inline-start:.7rem;color:var(--text-secondary)}.flashcard-history summary strong{color:var(--text-primary)}.flashcard-round-progress{margin:.9rem 0;font-size:.8rem}.flashcard-round-progress>div{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.3rem}.flashcard-round-progress p,.flashcard-round-progress span{color:var(--text-secondary)}.flashcard-round-progress progress{appearance:none;display:block;width:100%;height:6px;margin:.5rem 0;border:0;border-radius:4px;overflow:hidden;background:var(--border-dim);accent-color:var(--amber)}.flashcard-round-progress progress::-webkit-progress-bar{background:var(--border-dim)}.flashcard-round-progress progress::-webkit-progress-value{background:var(--amber)}.flashcard-round-progress progress::-moz-progress-bar{background:var(--amber)}.flashcard-card{padding:1.25rem;border:1px solid var(--border-dim);border-radius:1rem;background:var(--bg-card);box-shadow:var(--panel-shadow)}.flashcard-card-context{display:flex;flex-wrap:wrap;gap:.3rem .8rem;justify-content:space-between;align-items:center;font-size:.75rem;font-weight:700}.flashcard-card>.flashcard-help{margin-top:.25rem}.flashcard-workspace{display:grid;gap:1.2rem;margin-top:1.2rem}.flashcard-workspace>*{min-width:0}.flashcard-step{color:var(--amber);font-size:.72rem;font-weight:800;letter-spacing:.04em}.flashcard-workspace h3{margin-top:.6rem;font-size:1.1rem;line-height:1.65;font-weight:700;white-space:pre-line;overflow-wrap:anywhere}.flashcard-recall label{font-size:.85rem;font-weight:800}.flashcard-recall textarea{width:100%;display:block;min-height:6rem;margin:.5rem 0;padding:.75rem;border:1px solid var(--border-dim);border-radius:.6rem;background:var(--bg-deep);color:var(--text-primary);font-size:1rem;resize:vertical}.flashcard-recall textarea::placeholder{color:var(--text-muted)}.flashcard-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.65rem}.flashcard-written-attempt{margin:.6rem 0;padding:.7rem;border-radius:.5rem;background:var(--bg-surface);font-size:.85rem;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}.flashcard-answer{margin-top:1.25rem;padding-top:1.25rem;border-top:1px solid var(--border-dim)}.flashcard-answer h3{margin-top:.5rem;font-size:1rem;font-weight:800;line-height:1.6;white-space:pre-line;overflow-wrap:anywhere}.flashcard-answer>p:not(.flashcard-step){margin-top:.75rem;color:var(--text-secondary);font-size:.875rem;line-height:1.8;white-space:pre-line;overflow-wrap:anywhere}.flashcard-grading,.flashcard-next{margin-top:1rem;padding-top:1rem;border-top:1px solid var(--border-dim);font-size:.85rem}.flashcard-next{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.8rem;align-items:center}.flashcard-next p{max-width:35rem;color:var(--text-secondary);line-height:1.6}.flashcard-study>.flashcard-help{margin-top:1rem}.flashcard-loading,.flashcard-notice{padding:1rem;margin-block:.75rem;background:var(--bg-surface);border:1px solid var(--border-dim);border-radius:.8rem;font-size:.85rem;line-height:1.7}.flashcard-notice button{margin-inline-start:.5rem}@media (min-width:1200px){.flashcard-workspace{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1.5rem}}@media (max-width:700px){.flashcard-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.flashcard-fields select{font-size:1rem}.flashcard-intro{padding:.9rem 1rem .5rem}.flashcard-intro .dojo-kicker{display:none}.flashcard-intro h1{font-size:1.65rem}.flashcard-intro nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.flashcard-intro nav a,.flashcard-intro nav span{justify-content:center;text-align:center;padding:.35rem .2rem;font-size:.7rem;line-height:1.3}.flashcard-study{padding:0 1rem 1.25rem}.flashcard-settings summary span{display:block;margin:.35rem 0 0}.flashcard-card{padding:1rem}.flashcard-toolbar h2{font-size:.9rem}.flashcard-toolbar button{padding-inline:.6rem}.flashcard-history{padding:0 .85rem}.flashcard-history summary span{display:block;margin:.25rem 0 0}.flashcard-workspace h3{font-size:1rem}.flashcard-actions>button{flex:1 1 13rem}}