/* Student flashcards: question on the front, answer on the back. */
#student-memory .spark-flashcard-review{display:grid;gap:12px;margin-top:18px;min-width:0}
#student-memory .spark-flashcard-progress{font-size:.8rem;font-weight:800;letter-spacing:.03em;color:var(--revision-muted,#b8c9d8)}
#student-memory .spark-flashcard{display:block;width:100%;padding:0;margin:0;border:0;border-radius:20px;background:transparent;color:#f6fbff;text-align:center;cursor:pointer;perspective:1200px;touch-action:manipulation}
#student-memory .spark-flashcard-inner{display:grid;grid-template-columns:minmax(0,1fr);width:100%;min-height:280px;transform-style:preserve-3d;transition:transform .55s ease}
#student-memory .spark-flashcard.is-flipped .spark-flashcard-inner{transform:rotateY(180deg)}
#student-memory .spark-flashcard-face{grid-area:1/1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;min-height:280px;padding:clamp(22px,4vw,40px);border:1px solid #46677e;border-radius:20px;backface-visibility:hidden;-webkit-backface-visibility:hidden;box-shadow:0 14px 35px #030d1860;overflow-wrap:anywhere}
#student-memory .spark-flashcard-front{background:linear-gradient(145deg,#1e3a59,#13253b)}
#student-memory .spark-flashcard-back{background:linear-gradient(145deg,#174841,#102d35);border-color:#4e9d8b;transform:rotateY(180deg)}
#student-memory .spark-flashcard-side-label{font-size:.72rem;font-weight:850;letter-spacing:.16em;color:#a9d6ef}
#student-memory .spark-flashcard-back .spark-flashcard-side-label{color:#abe9d6}
#student-memory .spark-flashcard-copy{display:block;max-width:65ch;color:#f7fbff;font-size:clamp(1.08rem,2.3vw,1.55rem);font-weight:700;line-height:1.55;white-space:pre-wrap}
#student-memory .spark-flashcard-hint{font-size:.78rem;font-weight:600;line-height:1.4;color:#c9ddeb}
#student-memory .spark-flashcard:focus-visible{outline:3px solid var(--revision-accent,#9be6cf);outline-offset:4px}
#student-memory .spark-flashcard-ratings{display:flex;flex-wrap:wrap;gap:9px;margin-top:3px}
#student-memory .spark-flashcard-rate-label{flex-basis:100%;margin:0 0 2px;color:var(--revision-text,#e7f4ff);font-size:.85rem;font-weight:750}
#student-memory .spark-flashcard-ratings .teacher-button{flex:1 1 100px;min-height:44px}
@media(max-width:650px){
 #student-memory .spark-flashcard-inner,#student-memory .spark-flashcard-face{min-height:250px}
 #student-memory .spark-flashcard-face{padding:22px 18px}
 #student-memory .spark-flashcard-ratings .teacher-button{flex:1 1 calc(50% - 9px)}
}
@media(prefers-reduced-motion:reduce){#student-memory .spark-flashcard-inner{transition:none}}

/* Always-visible navigation, independent of recording a review. */
#student-memory .spark-flashcard-navigation{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin-top:3px}
#student-memory .spark-flashcard-navigation .teacher-button{min-width:152px;min-height:46px;font-size:.9rem}
@media(max-width:650px){#student-memory .spark-flashcard-navigation .teacher-button{width:100%;min-width:0}}

/* Visual study deck: subject colour, large prompts and clear progress */
#student-memory .spark-flashcard-review{--deck-accent:#81d4f5;position:relative;gap:13px;padding:16px;border:1px solid #344b61;border-radius:22px;background:linear-gradient(160deg,#122940,#101d30 65%,#132a3a)}
#student-memory .spark-flashcard-review[data-subject="biology"]{--deck-accent:#a5e9ae}
#student-memory .spark-flashcard-review[data-subject="chemistry"]{--deck-accent:#e7bdff}
#student-memory .spark-flashcard-review[data-subject="physics"]{--deck-accent:#a9d6ff}
#student-memory .spark-flashcard-subject{display:flex;align-items:center;gap:8px;font-size:.77rem;font-weight:800;color:var(--deck-accent);text-transform:capitalize;letter-spacing:.03em}
#student-memory .spark-flashcard-progress{color:#d4e3f0;font-size:.77rem}
#student-memory .spark-flashcard-track{height:8px;width:100%;overflow:hidden;background:#294156;border-radius:99px}
#student-memory .spark-flashcard-fill{display:block;height:100%;background:linear-gradient(90deg,var(--deck-accent),#c0f5dc);border-radius:inherit;transition:width .3s ease}
#student-memory .spark-flashcard-face{position:relative;isolation:isolate;overflow:hidden;gap:22px;min-height:315px}
#student-memory .spark-flashcard-front{background:radial-gradient(circle at 90% 7%,#385e8075,transparent 39%),linear-gradient(140deg,#214263,#12283e)}
#student-memory .spark-flashcard-back{background:radial-gradient(circle at 85% 15%,#2e876a65,transparent 41%),linear-gradient(140deg,#155349,#14313a)}
#student-memory .spark-flashcard-face::before{content:'';position:absolute;inset:18px auto auto 18px;width:44px;height:44px;border:2px solid #ffffff35;border-radius:14px;transform:rotate(-13deg);pointer-events:none}
#student-memory .spark-flashcard-face::after{content:'';position:absolute;inset:auto 22px 20px auto;width:75px;height:75px;border:1px solid #ffffff25;border-radius:50%;pointer-events:none}
#student-memory .spark-flashcard-copy{font-size:clamp(1.16rem,2.4vw,1.7rem);line-height:1.5;max-width:56ch;z-index:1}
#student-memory .spark-flashcard-side-label{color:var(--deck-accent);z-index:1}
#student-memory .spark-flashcard-back .spark-flashcard-side-label{color:#baf4db}
#student-memory .spark-flashcard-hint{z-index:1}
#student-memory .spark-flashcard-navigation{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px}
#student-memory .spark-flashcard-save[aria-pressed="true"]{border-color:#5bb59c;color:#acf2da;background:#19423b}
#student-memory .spark-flashcard-notebook-link{display:inline-flex;align-items:center;justify-content:center;color:#c9e6f9;font-size:.8rem;font-weight:750;padding:10px 2px;text-decoration:underline;text-underline-offset:3px}
#student-memory .spark-flashcard-ratings{padding-top:10px;border-top:1px solid #375066}
#student-memory .spark-flashcard-ratings .teacher-button:nth-of-type(1){border-color:#ad6e7a}
#student-memory .spark-flashcard-ratings .teacher-button:nth-of-type(4){border-color:#68ac9b}
#student-memory .spark-flashcard-save,#student-memory .spark-flashcard-navigation>.teacher-button{min-height:46px}
.spark-student-notebook{padding:clamp(17px,3vw,28px)!important}
.spark-notebook-heading{display:flex;align-items:start;justify-content:space-between;gap:20px;flex-wrap:wrap}
.spark-notebook-heading h2{font-size:clamp(1.5rem,3vw,2.1rem);margin:5px 0 8px}
.spark-notebook-heading p{color:#bdd0df;font-size:.9rem;max-width:54ch;line-height:1.5}
.spark-notebook-kicker{font-size:.69rem;font-weight:800;letter-spacing:.13em;color:#8ccae8}
.spark-notebook-count{display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;border:1px solid #4f8378;border-radius:999px;background:#193d3a;color:#baf7db;white-space:nowrap}
.spark-notebook-toolbar{display:flex;flex-wrap:wrap;gap:10px;margin:19px 0 12px}
.spark-notebook-toolbar input,.spark-notebook-toolbar select{min-width:0;background:#0e2234;color:#f2f8ff;border:1px solid #3f6076;border-radius:10px;padding:11px;font:inherit}
.spark-notebook-toolbar input{flex:1 1 220px}.spark-notebook-toolbar select{flex:1 1 150px}.spark-notebook-toolbar button{flex:0 1 auto}
.spark-notebook-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.spark-notebook-item{min-width:0;display:flex;flex-direction:column;gap:15px;padding:20px;background:linear-gradient(150deg,#19334a,#102437);border:1px solid #395970;border-radius:16px;box-shadow:0 8px 18px #0000001a}
.spark-notebook-item-heading{display:flex;flex-wrap:wrap;align-items:center;gap:7px 12px;justify-content:space-between}
.spark-notebook-subject{font-weight:800;color:#a7e2fa;font-size:.8rem;text-transform:capitalize}
.spark-notebook-topic{font-size:.75rem;color:#bbcad8}
.spark-notebook-question{font-size:1.1rem;line-height:1.5;color:#f3f8ff;overflow-wrap:anywhere}
.spark-notebook-answer{margin:0;padding:14px;background:#12433d;border:1px solid #468c80;border-radius:10px;font-size:.91rem;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;color:#e8fff6}
.spark-notebook-item-actions{margin-top:auto;display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.spark-notebook-empty{grid-column:1/-1;padding:28px 15px;text-align:center;border:1px dashed #517084;border-radius:14px;color:#d2e2ed}
.spark-notebook-status{min-height:1em;color:#b4e9db;font-size:.85rem}
@media(max-width:700px){
 #student-memory .spark-flashcard-review{padding:12px;border-radius:16px}
 #student-memory .spark-flashcard-face{min-height:260px}
 #student-memory .spark-flashcard-navigation>*{flex:1 1 45%}
 #student-memory .spark-flashcard-navigation .spark-flashcard-notebook-link{order:3;flex-basis:100%;padding:5px}
 .spark-notebook-grid{grid-template-columns:1fr}
 .spark-notebook-toolbar>*{flex:1 1 100%!important}
}
@media(prefers-reduced-motion:reduce){#student-memory .spark-flashcard-fill{transition:none}}

#student-memory .spark-flashcard-last-rating{margin-left:auto;padding:5px 9px;border:1px solid #597d86;border-radius:999px;color:#d5f7ee;font-size:.7rem;text-transform:capitalize;letter-spacing:normal}
#student-memory .spark-flashcard-subject{flex-wrap:wrap}
#student-memory>button.teacher-button,#student-memory .spark-mastery-controls+button{margin-right:7px;margin-bottom:8px}
#student-memory .spark-flashcard-subject .spark-flashcard-last-rating{font-weight:600}

/* Phase 1: a compact study hub with responsive cards and a fullscreen player. */
#student-memory{min-width:0;--memory-border:#3b586f}
#student-memory [hidden]{display:none!important}
#student-memory .spark-memory-heading{display:grid;gap:7px;margin:0 0 18px}
#student-memory .spark-memory-heading h2{font-size:clamp(1.65rem,3vw,2.2rem);margin:0}
#student-memory .spark-memory-heading p,#student-memory .spark-memory-guide{color:var(--revision-muted,#b8c9d8);margin:0;line-height:1.6}
#student-memory .spark-memory-kicker{color:#a6e7da;font-size:.73rem;font-weight:800;letter-spacing:.12em}
#student-memory .spark-memory-progress-link{justify-self:start;color:#b4e5ff;text-decoration:underline;text-underline-offset:3px}
#student-memory .spark-memory-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:16px}
#student-memory .spark-memory-shortcut{display:grid;text-align:left;gap:7px;min-width:0;min-height:90px;padding:14px;border:1px solid var(--memory-border);border-radius:14px;color:#eef8ff;background:#132b41;cursor:pointer;font:inherit}
#student-memory .spark-memory-shortcut strong{font-size:.94rem;line-height:1.3}
#student-memory .spark-memory-shortcut span{font-size:.76rem;color:#bed0de;line-height:1.45}
#student-memory .spark-memory-shortcut[aria-pressed=true]{border-color:#84d6c0;background:#21423f}
#student-memory .spark-memory-filter-panel{border:1px solid var(--memory-border);border-radius:17px;padding:16px;background:#102338}
#student-memory .spark-memory-filter-panel h3{margin:0 0 12px;font-size:1rem;color:#eef8ff}
#student-memory .spark-memory-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(170px,100%),1fr));gap:12px}
#student-memory .spark-memory-filters label{display:grid;gap:6px;min-width:0;font-size:.82rem}
#student-memory .spark-memory-filters select{width:100%;min-width:0;min-height:44px}
#student-memory .spark-memory-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:14px}
#student-memory .spark-memory-actions button{min-height:44px}
#student-memory .spark-memory-guide,#student-memory .spark-memory-keyboard{font-size:.78rem;margin:10px 0;color:#c0d3e2}
#student-memory .spark-memory-status{min-height:1.3em;margin:12px 0;color:#cce2ef}
#student-memory .spark-memory-player{min-width:0}
#student-memory .spark-flashcard-review{margin:0 auto;max-width:920px;box-shadow:0 12px 30px #0003}
#student-memory .spark-flashcard-face{min-height:clamp(300px,42vh,490px);gap:24px}
#student-memory .spark-flashcard-copy{font-size:clamp(1.12rem,2.8vw,1.9rem);font-weight:650;max-width:58ch}
#student-memory .spark-flashcard-navigation{justify-content:flex-start}
#student-memory .spark-flashcard-navigation>.teacher-button{min-width:0;flex:1 1 130px}
#student-memory .spark-memory-summary{padding:22px;text-align:center;border:1px solid var(--memory-border);border-radius:18px;background:#172e43}
#student-memory .spark-memory-create{margin-top:20px}
#student-memory .spark-memory-shortcut:focus-visible,#student-memory .spark-memory-actions button:focus-visible{outline:3px solid #a6e7da;outline-offset:3px}
#student-memory .spark-memory-player:fullscreen{overflow:auto;background:#0b1726;padding:clamp(16px,4vw,40px);display:grid;align-content:center;box-sizing:border-box}
#student-memory .spark-memory-player:fullscreen .spark-flashcard-review{width:min(100%,1100px);max-width:1100px;box-sizing:border-box}
#student-memory .spark-memory-player:fullscreen .spark-flashcard-copy{font-size:clamp(1.3rem,3vw,2.6rem)}
@media(max-width:760px){#student-memory .spark-memory-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){#student-memory .spark-memory-actions button{flex:1 1 100%}#student-memory .spark-flashcard-face{min-height:285px;padding:25px 16px}#student-memory .spark-memory-keyboard{display:none}}

/* Phase 2: original visual study cards, independent interactive controls and explicit reveals. */
#student-memory .spark-memory-visual{border:1px solid #405c75;border-radius:16px;background:#0c2033;padding:12px;min-width:0}
#student-memory .spark-memory-visual-header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
#student-memory .spark-memory-visual-header button,#student-memory .spark-memory-visual-tools button{min-height:44px}
#student-memory .spark-memory-visual-kicker,#student-memory .spark-memory-visual-tag{font-size:.72rem;letter-spacing:.07em;color:#a6e7da;font-weight:800}
#student-memory .spark-memory-visual-tag{padding:5px 9px;border:1px solid #4d847c;border-radius:999px}
#student-memory .spark-memory-visual-figure{display:grid;place-items:center;background:radial-gradient(ellipse at 50% 35%,#213d58,#10273d 70%);border-radius:12px;padding:8px;margin:10px 0;min-width:0;overflow:hidden}
#student-memory .spark-memory-visual-figure svg{display:block;width:min(100%,620px);height:auto;max-height:350px;font-family:system-ui,sans-serif}
#student-memory .spark-memory-visual-figure:not(.labels-revealed) .memory-visual-labels{visibility:hidden}
#student-memory .spark-memory-visual-tools{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
#student-memory .spark-memory-visual-slider{flex:1 1 220px;display:grid;gap:5px;font-size:.85rem;color:#d7eaf5}
#student-memory .spark-memory-visual-slider input{width:100%;min-width:0;accent-color:#8ce5cf}
#student-memory .spark-memory-visual-output{color:#bdecd9;font-size:.78rem;line-height:1.4}
#student-memory .spark-memory-formula{font-size:clamp(1rem,2vw,1.5rem);font-weight:750;color:#e7f8ff;text-align:center;background:#16384b;border-radius:10px;padding:12px;overflow-wrap:anywhere}
#student-memory .spark-memory-visual-caption{font-size:.85rem;line-height:1.55;color:#c9dce9;margin:10px 0 0}
#student-memory .spark-flashcard-context{white-space:pre-wrap;font-size:clamp(.86rem,1.7vw,1.05rem);line-height:1.5;color:#d0e5f4;text-align:left;background:#152c4080;border-radius:10px;padding:12px;max-width:65ch;z-index:1}
#student-memory .spark-flashcard-review[data-visual=true] .spark-flashcard-face{min-height:clamp(240px,30vh,340px)}
#student-memory .spark-memory-visual-figure.is-playing .memory-particle-flow{animation:memory-diffusion 2.5s ease-in-out infinite}
#student-memory .spark-memory-visual-figure.is-playing .memory-enzyme-flow{animation:memory-binding 2.5s ease-in-out infinite}
@keyframes memory-diffusion{0%,100%{transform:translateX(-36px)}50%{transform:translateX(36px)}}
@keyframes memory-binding{0%,100%{transform:translateY(-9px)}50%{transform:translateY(28px)}}
@media(prefers-reduced-motion:reduce){#student-memory .spark-memory-visual-figure.is-playing g{animation:none!important}}
@media(max-width:480px){#student-memory .spark-memory-visual{padding:9px}#student-memory .spark-memory-visual-tools>*{flex:1 1 100%}#student-memory .spark-memory-visual-figure{padding:2px}}

/* Phase 3: real interaction, not controls nested inside a flip button. */
#student-memory .spark-memory-shortcuts{grid-template-columns:repeat(auto-fit,minmax(min(145px,100%),1fr))}
#student-memory .spark-memory-challenge{display:grid;gap:13px;min-width:0;padding:clamp(13px,3vw,24px);border-radius:17px;background:#142d45;border:1px solid #46687f}
#student-memory .spark-memory-challenge:focus-visible{outline:3px solid #a6e7da;outline-offset:3px}
#student-memory .spark-memory-challenge-type{font-weight:800;letter-spacing:.1em;font-size:.74rem;color:#a6e7da}
#student-memory .spark-memory-challenge-intro{font-size:clamp(1.1rem,2.5vw,1.6rem);font-weight:700;line-height:1.5;margin:0;color:#f4faff;overflow-wrap:anywhere}
#student-memory .spark-memory-challenge-answers{display:grid;gap:10px;min-width:0}
#student-memory .spark-memory-option{display:flex;align-items:center;gap:12px;min-height:44px;padding:11px;border:1px solid #47647c;border-radius:10px;background:#102438;color:#e7f6ff;overflow-wrap:anywhere;cursor:pointer}
#student-memory .spark-memory-option:has(input:checked){border-color:#9ce5d0;background:#1b4647}
#student-memory .spark-memory-option input{accent-color:#8ce5cf;flex:0 0 auto;width:19px;height:19px}
#student-memory .spark-memory-answer-input{font:inherit;width:100%;min-width:0;box-sizing:border-box;min-height:48px;border:1px solid #7897af;border-radius:10px;background:#102234;color:#f4fbff;padding:12px}
#student-memory .spark-memory-chip-bank{display:flex;gap:8px;flex-wrap:wrap;min-width:0;padding:10px;background:#0f2437;border-radius:12px}
#student-memory .spark-memory-chip,#student-memory .spark-memory-drop-slot,#student-memory .spark-memory-slot-clear{font:inherit;min-width:0;min-height:44px;padding:9px 13px;border:1px solid #608299;border-radius:10px;color:#eaf8ff;background:#1d3b53;text-align:left;overflow-wrap:anywhere;cursor:pointer}
#student-memory .spark-memory-chip[aria-pressed=true]{background:#20574f;border-color:#9ce5d0}
#student-memory .spark-memory-drop-row{display:grid;grid-template-columns:minmax(52px,1fr) minmax(0,2fr) auto;align-items:center;gap:8px;min-width:0}
#student-memory .spark-memory-slot-label{font-size:.86rem;overflow-wrap:anywhere;color:#e7f4fe}
#student-memory .spark-memory-drop-slot{border-style:dashed;background:#102438}
#student-memory .spark-memory-slot-clear{font-size:.75rem;padding:6px 9px}
#student-memory .spark-memory-challenge button:focus-visible,#student-memory .spark-memory-challenge input:focus-visible{outline:3px solid #a6e7da;outline-offset:2px}
#student-memory .spark-memory-challenge-actions{display:flex;gap:8px;flex-wrap:wrap}
#student-memory .spark-memory-challenge-actions button{min-height:44px}
#student-memory .spark-memory-challenge-feedback{margin:0;color:#d9e8f6;line-height:1.5}
#student-memory .spark-memory-challenge-feedback[data-result=correct]{color:#b1f2cf}
#student-memory .spark-memory-challenge-feedback[data-result=incorrect]{color:#ffc4ad}
#student-memory .spark-memory-challenge-solution,#student-memory .spark-memory-challenge-hint{background:#163c42;border:1px solid #4b867e;padding:13px;border-radius:12px;line-height:1.55;color:#e7f9f4;overflow-wrap:anywhere}
#student-memory .spark-memory-challenge-solution p{margin:8px 0 0;white-space:pre-wrap}
#student-memory .spark-memory-challenge-note{margin:0;font-size:.78rem;color:#c0d3e2;line-height:1.5}
#student-memory .spark-memory-label-diagram,#student-memory .spark-memory-molecule{background:radial-gradient(ellipse at center,#24445d,#0e2034 70%);display:grid;place-items:center;border-radius:12px;padding:8px;min-width:0}
#student-memory .spark-memory-label-diagram svg,#student-memory .spark-memory-molecule svg{width:min(100%,600px);height:auto;max-height:320px}
#student-memory .spark-memory-label-diagram .memory-visual-labels{visibility:hidden}
#student-memory .spark-memory-molecule-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#student-memory .spark-memory-molecule-controls label{display:grid;gap:5px;font-size:.85rem}
#student-memory .spark-memory-molecule-controls input{width:100%;min-width:0;accent-color:#8ce5cf}
@media(max-width:500px){#student-memory .spark-memory-drop-row{grid-template-columns:minmax(0,1fr) auto}#student-memory .spark-memory-slot-label{grid-column:1/-1}#student-memory .spark-memory-challenge-actions button{flex:1 1 120px}}

/* Numbered diagram drop targets share the figure's exact viewBox proportions. */
#student-memory .spark-memory-hotspot-stage{position:relative;width:min(100%,560px);aspect-ratio:460/260;min-width:0}
#student-memory .spark-memory-hotspot-stage>svg{width:100%;height:100%;max-height:none;display:block}
#student-memory .spark-memory-hotspot{position:absolute;transform:translate(-50%,-50%);display:grid;place-items:center;width:clamp(28px,6vw,44px);height:clamp(28px,6vw,44px);padding:0;border:2px solid #ffe0a0;border-radius:50%;background:#19334c;color:#fff6e1;font-size:.85rem;font-weight:800;cursor:pointer;box-shadow:0 2px 10px #0005}
#student-memory .spark-memory-hotspot.is-filled{background:#285b50;border-color:#a6e7da}
#student-memory .spark-memory-hotspot:focus-visible{outline:3px solid white;outline-offset:3px}

/* Phase 4 – daily review and recall evidence. */
#student-memory .spark-memory-daily{padding:16px;background:#10283d;border:1px solid #3e6379;border-radius:17px;margin:0 0 16px;display:grid;gap:12px;min-width:0}
#student-memory .spark-memory-daily h3{margin:0;color:#e9f8ff;font-size:1rem}
#student-memory .spark-memory-daily-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#student-memory .spark-memory-daily-counts>div{background:#16374b;border:1px solid #426578;border-radius:11px;padding:10px;display:grid;gap:6px}
#student-memory .spark-memory-daily-counts strong{font-size:clamp(1.5rem,3vw,2.1rem);font-variant-numeric:tabular-nums;line-height:1;color:#b5f0da}
#student-memory .spark-memory-daily-counts span{font-size:.75rem;line-height:1.4;color:#cde2ee}
#student-memory .spark-memory-forecast{display:grid;gap:8px;font-size:.78rem;color:#c5dbe8}
#student-memory .spark-memory-forecast-bars{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;text-align:center}
#student-memory .spark-memory-forecast-bars>div{display:grid;gap:4px;justify-items:center;min-width:0}
#student-memory .spark-memory-forecast-bars strong{font-size:.8rem;font-variant-numeric:tabular-nums}
#student-memory .spark-memory-forecast-bars>div>span{height:40px;width:min(100%,30px);display:flex;align-items:end;border-radius:6px;background:#203e54;overflow:hidden}
#student-memory .spark-memory-forecast-bars i{display:block;width:100%;background:#7ed1ba}
#student-memory .spark-memory-forecast-bars small{font-size:clamp(.56rem,1.6vw,.72rem);overflow-wrap:anywhere}
#student-memory .spark-memory-review-reason{font-size:.75rem;color:#c5ead7;padding:5px 8px;border-radius:999px;border:1px solid #497e77;letter-spacing:normal;text-transform:none}
#student-memory .spark-memory-interval{display:block;font-size:.7rem;font-weight:600;color:#c7dde8;margin-top:3px}
#student-memory .spark-memory-plan-info{font-size:.85rem;line-height:1.55;color:#bce6d8}
#student-memory .spark-memory-filters input[type=date]{min-width:0;max-width:100%;min-height:44px;background:#10283d;color:#e5f1ff;border:1px solid #5b7690;border-radius:9px;padding:8px;color-scheme:dark}
#student-memory .spark-memory-summary>.teacher-button{margin:6px}
@media(max-width:450px){#student-memory .spark-memory-daily{padding:10px}#student-memory .spark-memory-daily-counts>div{padding:8px 5px}}

/* Phase 5: timed recall and large board-friendly cards */
#student-memory .spark-memory-timer{margin:0;font-size:1.55rem;font-weight:800;font-variant-numeric:tabular-nums;color:#f4d49a;text-align:center;padding:8px;background:#352f33;border-radius:10px}
#student-memory .spark-memory-self-check{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
#student-memory .spark-memory-self-check button{min-height:44px;flex:1 1 140px}
#student-memory [data-study-style=classroom] .spark-flashcard-copy{font-size:clamp(1.4rem,4vw,3rem)}
#student-memory [data-study-style=classroom] .spark-flashcard-face{min-height:clamp(300px,49vh,600px)}

/* Phase 6: named notebook collections and source links */
.spark-memory-deck-tools{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:12px 0}.spark-memory-deck-tools input,.spark-memory-deck-tools select{flex:1 1 160px;min-width:0;min-height:42px;max-width:100%;padding:8px;color:inherit;background:#10283d;border:1px solid #5b7690;border-radius:8px}.spark-memory-deck-tools button{min-height:42px}.spark-profile-note-card-actions select{max-width:100%;min-width:0}.spark-notebook-item-actions a{font-size:.8rem}

/* Phase 7: recall history and topic coverage */
#student-memory .spark-memory-analytics{border-top:1px solid #426578;padding-top:12px;min-width:0}
#student-memory .spark-memory-analytics summary{cursor:pointer;font-weight:700;padding:7px 0;color:#d8f1fa}
#student-memory .spark-memory-analytics .spark-memory-daily-counts{margin:8px 0}
#student-memory .spark-memory-history{grid-template-columns:repeat(14,minmax(0,1fr));gap:3px}
#student-memory .spark-memory-history strong{font-size:.68rem}
#student-memory .spark-memory-history small{font-size:.65rem}
#student-memory .spark-memory-topic-progress{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;padding:10px 0;border-bottom:1px solid #365369}
#student-memory .spark-memory-topic-progress span{font-size:.78rem;color:#c8dce8}
#student-memory .spark-memory-topic-progress progress{grid-column:1/-1;width:100%;height:10px;accent-color:#7ed1ba}
@media(max-width:460px){#student-memory .spark-memory-topic-progress{grid-template-columns:1fr}#student-memory .spark-memory-history{gap:2px}}
