.bio-page.bio-character-page { height:100dvh; min-height:0; display:flex; flex-direction:column; overflow:hidden; background:#dbe9ed; }
body.bio-character-page::before { background-image:none; background-color:#dbe9ed; }
.bio-character-page > .topbar,.bio-character-page > .bio-session-bar { flex:none; }
.bio-character-page > main.wrap { flex:1; min-height:0; width:100%; max-width:none; box-sizing:border-box; margin:0; padding:8px; overflow:auto; overscroll-behavior:contain; scroll-padding:8px; }
.character-shell { height:100%; min-height:0; display:grid; grid-template-rows:auto minmax(0,1fr) auto; gap:8px; color:#143d4b; }
.character-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:5px 12px; border:2px solid #122c4e; background:rgb(217 236 255 / .87); box-shadow:3px 3px 0 #12344b; }
.character-heading h1 { margin:0; font:900 clamp(1.2rem,3vw,1.6rem)/1.1 var(--sans); }.character-heading .bio-kicker { margin:0 0 2px; font-size:.62rem; }
.character-shell .btn,.character-shell button { border-radius:0; min-height:44px; box-sizing:border-box; }
.character-shell .btn { padding:7px 12px; border:2px solid #173a54; box-shadow:3px 3px 0 #12344b; font-weight:850; }
.character-shell button:active:not(:disabled),.character-shell .btn:active { transform:translate(2px,2px); box-shadow:1px 1px 0 #12344b; }
.character-shell :focus-visible { outline:3px solid #fead2f; outline-offset:3px; }
.character-editor { display:grid; grid-template-columns:minmax(220px,.75fr) minmax(0,1.5fr); gap:12px; min-height:0; }
.character-stage { display:grid; grid-template-rows:minmax(0,1fr) auto; min-height:0; border:3px solid #183651; background:linear-gradient(180deg,rgb(23 66 124 / .20),rgb(186 228 244 / .54)); box-shadow:4px 4px 0 #1d3651; }
.character-stage-art { position:relative; display:grid; place-items:center; min-height:0; background:repeating-linear-gradient(0deg,transparent 0 7px,rgb(255 255 255 / .07) 7px 8px); overflow:hidden; }
.character-stage-art canvas { width:100%; height:100%; max-width:280px; max-height:100%; object-fit:contain; image-rendering:pixelated; position:relative; z-index:2; }
.character-platform { position:absolute; bottom:12%; width:65%; height:12px; border:3px solid #092b46; background:repeating-linear-gradient(90deg,#99ad56 0 12px,#b9cd6d 12px 24px); box-shadow:0 6px 0 #254c39,0 12px 0 #132f46; }
.character-power-tag { padding:10px; background:rgb(237 247 255 / .88); border-top:2px solid #203952; }
.character-power-tag p { margin:4px 0 8px; max-height:3.6em; overflow:auto; overflow-wrap:anywhere; font-size:.88rem; }
.character-picker { min-height:0; display:grid; grid-template-rows:auto auto minmax(0,1fr) 44px; gap:7px; padding:8px; border:2px solid #132f4c; background:rgb(223 238 255 / .88); box-shadow:4px 4px 0 #1d3651; }
.character-categories { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:5px; }
.character-categories button { padding:4px; min-width:0; border:2px solid #294c71; background:#dae8fb; color:#172e50; box-shadow:2px 2px 0 #17334a; font:800 .77rem/1.05 var(--sans); }
.character-categories .is-selected { color:#212f40; background:#ffcc65; box-shadow:inset 2px 2px 0 #fff1a4,2px 2px 0 #17334a; }
.character-category-title { display:flex; justify-content:space-between; align-items:center; gap:5px; }.character-category-title h2 { margin:0; font-size:1.05rem; }.character-category-title span { font-size:.75rem; }
.character-options { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); grid-auto-rows:minmax(0,1fr); gap:6px; min-height:0; }
.bio-character-page .character-options { overflow:auto; overscroll-behavior:contain; scroll-padding:6px; padding:3px; }
.character-option { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:44px; min-width:0; padding:2px; border:2px solid #365476; background:linear-gradient(135deg,#ebf4ff,#c4daee); color:#19324b; box-shadow:2px 2px 0 #294661; font:800 .68rem/1.05 var(--sans); }
.character-option canvas { min-height:0; width:100%; flex:1; max-height:calc(100% - 18px); object-fit:contain; image-rendering:pixelated; }
.character-option span { flex:none; min-height:14px; text-align:center; overflow-wrap:anywhere; }
.character-color-swatch { display:inline-block; width:10px; height:10px; border:1px solid #294661; margin-right:4px; vertical-align:middle; }
.character-power-warning { margin:5px 0; padding:5px 7px; border-left:3px solid #b65a20; background:#fff0c9; color:#693d19; font-size:.78rem; font-weight:750; }
.character-options[data-size="8"] { grid-template-rows:repeat(2,minmax(44px,1fr)); }
.character-options[data-size="6"] { grid-template-columns:repeat(3,minmax(0,1fr)); grid-template-rows:repeat(2,minmax(44px,1fr)); }
.character-option[aria-pressed="true"] { border-color:#88470f; background:#ffe9b1; box-shadow:inset 0 0 0 2px #fff3cf,3px 3px 0 #bc6c22; }
.character-pager { display:flex; align-items:center; justify-content:space-between; gap:8px; }.character-pager .btn { min-width:82px; }.character-pager span { font-size:.82rem; font-weight:800; }
.character-footer { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:0 4px; min-height:44px; }.character-footer p { margin:0; font-size:.8rem; }.character-footer > div { display:flex; gap:8px; flex:none; }
.character-lock-body { grid-row:2/4; display:grid; grid-template-columns:minmax(180px,.6fr) minmax(0,1.4fr); align-items:center; gap:14px; padding:14px; border:2px solid #19374d; background:rgb(224 239 255 / .86); box-shadow:4px 4px 0 #16384a; min-height:0; }
.character-lock-art { position:relative; display:grid; place-items:center; }.character-lock-art canvas { width:100%; max-width:260px; image-rendering:pixelated; opacity:.6; }.character-lock-art > span { position:absolute; padding:5px; background:#d7e8f4; border:3px solid #294656; font-size:2.5rem; }
.character-lock-body h2 { font-size:1.25rem; margin:4px 0 12px; }.character-lock-body [role="status"] { font-size:.8rem; margin:8px 0; }.character-lock-actions { display:flex; flex-wrap:wrap; gap:8px; }
.character-power-form { grid-row:2/4; display:grid; grid-template-columns:minmax(180px,.7fr) minmax(0,1fr); gap:14px; align-items:center; min-height:0; padding:16px; border:2px solid #19374d; background:rgb(220 239 255 / .88); box-shadow:4px 4px 0 #17394f; }
.character-power-art { position:relative; display:grid; place-items:center; }.character-power-art canvas { width:100%; max-width:310px; image-rendering:pixelated; }.character-spark { position:absolute; right:8%; top:8%; color:#ffae36; font-size:3rem; text-shadow:3px 3px #704027; }
.character-power-copy h2 { margin:0 0 14px; font-size:clamp(1.2rem,3.5vw,2rem); line-height:1.12; }.character-power-copy label { display:block; font-weight:850; margin-bottom:5px; }
.character-power-copy textarea { box-sizing:border-box; width:100%; height:108px; max-height:25dvh; padding:10px; resize:none; border:3px solid #365675; border-radius:0; background:#f0f7ff; color:#20344c; box-shadow:inset 3px 3px 0 #c3d6e9; font:inherit; }
.character-power-count { margin:4px 0; text-align:right; font-size:.7rem; }.character-power-copy [role="status"] { font-size:.8rem; margin:6px 0; }.character-power-actions { display:flex; gap:8px; flex-wrap:wrap; }
.character-notice { padding:20px; border:3px solid #193a57; box-shadow:5px 5px 0 #19364e; background:rgb(218 236 255 / .90); }.character-notice h1 { margin:0 0 12px; }.character-notice .btn { margin-right:8px; }
.character-timeline { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; padding:0; margin:8px 0; list-style:none; }
.character-timeline li { min-width:0; }.character-timeline a { display:flex; align-items:center; gap:7px; min-height:52px; padding:5px 7px; box-sizing:border-box; color:#23455c; background:rgb(226 239 250 / .9); border:2px solid #52728d; box-shadow:2px 2px 0 #224961; text-decoration:none; font-size:.83rem; font-weight:800; line-height:1.14; }
.character-timeline small { display:block; font-weight:600; font-size:.65rem; margin-top:3px; }.timeline-marker { display:grid; place-items:center; width:28px; height:28px; flex:none; color:#244761; border:2px solid #7e9cb5; background:#f2f8ff; font-weight:900; }
.character-timeline .is-complete a { background:rgb(209 236 175 / .92); border-color:#4e7b45; }.is-complete .timeline-marker { background:#b6df8b; border-color:#50753e; }
.character-timeline .is-current .timeline-marker { outline:3px solid #e58429; outline-offset:2px; border-radius:50%; }.character-timeline .is-current a { border-color:#b26821; }
.character-reward { display:grid; grid-template-columns:100px minmax(0,1fr); min-height:104px; position:relative; margin-top:10px; border:3px solid #183b54; background:linear-gradient(100deg,rgb(132 192 220 / .75),rgb(241 207 116 / .87)); box-shadow:4px 4px 0 #1c3e56; }
.character-reward-art { display:grid; place-items:center; background:repeating-conic-gradient(rgb(25 71 111 / .1) 0% 25%,transparent 0% 50%) 0/8px 8px; }.character-reward-art canvas { width:92px; height:92px; image-rendering:pixelated; }.character-reward.is-locked canvas { opacity:.62; }
.character-reward-link { position:relative; display:flex; flex-direction:column; justify-content:center; gap:3px; padding:8px 42px 8px 12px; color:#19374e; text-decoration:none; }.character-reward-link strong { font:900 clamp(1.05rem,2.2vw,1.5rem)/1.08 var(--sans); }.character-reward-link small { font-size:.77rem; }.character-reward-badge { font:850 .61rem/1.1 var(--sans); letter-spacing:.12em; }.character-reward-arrow { position:absolute; right:12px; top:35%; font-size:1.5rem; }.character-reward.is-unlocked { border-color:#805020; background:linear-gradient(100deg,rgb(118 194 225 / .85),rgb(255 199 82 / .94)); box-shadow:4px 4px 0 #71401c; }
.bio-student-home .bio-home-hero { display:none; }.bio-student-home .bio-home-my-prep { display:flex; flex-direction:column; flex:1; min-height:0; gap:5px; }.bio-student-home .bio-home-my-prep > h2 { margin:0; font-size:1.3rem; }.bio-student-home .bio-home-my-prep > .bio-kicker { margin:0; }.bio-student-home .bio-home-actions { flex:none; }.bio-student-home .character-home-trail { min-height:0; }.character-home-trail > h3 { margin:3px 0 0; font-size:.88rem; }.character-home-trail > p { margin:2px 0; font-size:.7rem; }.bio-student-home .character-timeline { margin:7px 0; }.bio-student-home .bio-home-save-note { font-size:.7rem; margin:0; }
.teacher-character-result { display:flex; gap:12px; padding:10px; border:2px solid #27536c; background:rgb(224 239 255 / .82); }.teacher-character-sprite { width:96px; height:96px; image-rendering:pixelated; flex:none; }.teacher-character-result h4 { margin:0 0 6px; }.teacher-character-result p { margin:4px 0; white-space:pre-wrap; overflow-wrap:anywhere; }
@media(max-width:600px) and (min-height:521px) {
 .character-editor { grid-template-columns:1fr; grid-template-rows:160px minmax(0,1fr); gap:7px; }.character-stage { grid-template-columns:150px minmax(0,1fr); grid-template-rows:1fr; }.character-stage-art canvas { width:148px; height:148px; }.character-power-tag { border-top:0; border-left:2px solid #203952; padding:7px; font-size:.72rem; }.character-power-tag p { max-height:4.8em; font-size:.72rem; }.character-power-tag .btn { padding:4px 7px; font-size:.73rem; }.character-categories { grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px; }.character-categories button { font-size:.67rem; }.character-options[data-size="9"] { grid-template-columns:repeat(3,minmax(0,1fr)); }.character-option { font-size:.67rem; }.character-footer { align-items:start; }.character-footer p { max-width:40%; font-size:.7rem; }.character-footer > div { gap:5px; }.character-footer .btn { padding:5px 7px; font-size:.75rem; }.character-heading { padding:5px 7px; }.character-heading .btn { font-size:.75rem; }
 .character-power-form { grid-template-columns:1fr; grid-template-rows:minmax(80px,.7fr) minmax(0,1fr); padding:12px; gap:5px; }.character-power-art canvas { width:min(42dvh,220px); }.character-power-copy h2 { font-size:1.4rem; margin-bottom:8px; }.character-power-copy textarea { height:110px; max-height:23dvh; }.character-lock-body { grid-template-columns:1fr; grid-template-rows:130px minmax(0,1fr); align-items:start; padding:10px; gap:5px; }.character-lock-art canvas { width:130px; }.character-lock-body h2 { font-size:1.1rem; }.character-timeline { grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }.character-timeline a { font-size:.75rem; }
 .bio-student-home .bio-home-my-prep { padding:12px!important; gap:3px; }.bio-student-home .bio-home-action { min-height:78px; padding:8px 10px; }.bio-student-home .bio-home-action img,.bio-student-home .bio-home-action-icon { width:48px; height:48px; }.bio-student-home .bio-home-action strong { font-size:.98rem; }.bio-student-home .bio-home-action small { font-size:.7rem; }.bio-student-home .character-reward { min-height:94px; grid-template-columns:85px minmax(0,1fr); }.bio-student-home .character-reward-art canvas { width:80px; height:80px; }
}
@media(max-height:520px) {
 .character-shell { gap:5px; }.character-heading { padding:2px 8px; }.character-heading .bio-kicker { display:none; }.character-heading h1 { font-size:1.15rem; }.character-editor { grid-template-columns:minmax(155px,.55fr) minmax(0,1.6fr); gap:7px; }.character-picker { padding:5px; gap:4px; grid-template-rows:44px 18px minmax(0,1fr) 44px; }.character-categories { gap:4px; }.character-categories button { font-size:.63rem; padding:2px; }.character-category-title h2 { font-size:.82rem; }.character-category-title span { font-size:.65rem; }.character-options { gap:4px; }.character-option span { font-size:.61rem; min-height:12px; }.character-option canvas { max-height:calc(100% - 14px); }.character-stage-art canvas { width:min(100%,170px); height:min(100%,170px); }.character-power-tag { padding:5px; font-size:.7rem; }.character-power-tag p { margin:2px 0 4px; max-height:2.4em; font-size:.67rem; }.character-power-tag .btn { font-size:.68rem; padding:2px 5px; }.character-footer p { font-size:.67rem; }.character-footer .btn { font-size:.72rem; padding:4px 8px; }.character-power-form { padding:8px; gap:10px; grid-template-columns:minmax(150px,.65fr) minmax(0,1fr); }.character-power-art canvas { max-width:210px; }.character-power-copy h2 { font-size:1.25rem; margin-bottom:5px; }.character-power-copy label { font-size:.75rem; }.character-power-copy textarea { height:70px; padding:5px; }.character-power-copy [role="status"] { margin:3px 0; font-size:.7rem; }.character-power-count { margin:1px 0; }.character-power-actions .btn { font-size:.73rem; padding:4px 8px; }.character-lock-body { padding:8px; grid-template-columns:minmax(130px,.5fr) minmax(0,1.5fr); gap:10px; }.character-lock-body h2 { font-size:.95rem; margin:2px 0 5px; }.character-lock-art canvas { max-width:180px; }.character-timeline a { min-height:48px; padding:3px 5px; font-size:.68rem; }.timeline-marker { width:24px; height:24px; }.character-lock-body [role="status"] { margin:4px 0; font-size:.68rem; }.character-lock-actions .btn { font-size:.72rem; padding:4px 8px; }
 .bio-student-home .bio-home-my-prep { padding:8px!important; display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); grid-template-rows:auto minmax(0,1fr); gap:6px 10px; }.bio-student-home .bio-home-my-prep > .bio-kicker { display:none; }.bio-student-home .bio-home-my-prep > h2 { grid-column:1/-1; font-size:1.05rem; }.bio-student-home .bio-home-actions { grid-column:1; grid-row:2; display:grid; grid-template-columns:1fr; gap:6px; min-height:0; }.bio-student-home .bio-home-action { min-height:50px; padding:5px; gap:7px; }.bio-student-home .bio-home-action strong { font-size:.8rem; }.bio-student-home .bio-home-action small { font-size:.62rem; }.bio-student-home .bio-home-action img,.bio-student-home .bio-home-action-icon { width:40px; height:40px; }.bio-student-home .character-home-trail { grid-column:2; grid-row:2; display:grid; grid-template-rows:auto auto minmax(0,1fr) auto; gap:3px; }.bio-student-home .character-home-trail > h3 { font-size:.75rem; }.bio-student-home .character-timeline { gap:5px; margin:3px 0; }.bio-student-home .character-timeline a { min-height:44px; }.bio-student-home .character-reward { min-height:70px; grid-template-columns:64px minmax(0,1fr); margin:3px 0; }.bio-student-home .character-reward-art canvas { width:62px; height:62px; }.bio-student-home .character-reward-link { padding:5px 28px 5px 8px; gap:2px; }.bio-student-home .character-reward-link strong { font-size:1rem; }.bio-student-home .character-reward-link small { font-size:.63rem; }.bio-student-home .character-reward-arrow { right:8px; }.bio-student-home .bio-home-save-note { position:absolute; bottom:3px; font-size:.6rem; }
}
@media(prefers-reduced-motion:reduce) { .character-shell * { transition:none!important; } }
@media(max-height:520px) { .character-stage-art canvas { width:100%; height:100%; max-width:170px; max-height:100%; } }
@media(max-height:520px) { .character-picker { grid-template-rows:auto minmax(44px,1fr) 44px; }.character-category-title { display:none; }.character-options[data-size="4"] { grid-template-rows:minmax(44px,1fr); }.character-categories { grid-template-columns:repeat(6,minmax(0,1fr)); }.character-power-warning { font-size:.66rem; padding:3px 5px; margin:3px 0; } }
.character-stage-art { position:relative; }
.character-stage-art canvas { position:absolute; inset:0; margin:auto; }
.bio-home-game-tile { width:64px; height:64px; flex:none; border:2px solid #17334a; image-rendering:pixelated; box-shadow:3px 3px 0 #244965; }
.bio-student-home .bio-home-action strong { font-family:var(--sans); font-weight:900; }
@media(max-width:600px) { .bio-home-game-tile { width:48px; height:48px; } }
@media(max-height:520px) { .bio-home-game-tile { width:40px; height:40px; } }
.teacher-shell :is(.teacher-heading,.teacher-workspace,.auth-card,.class-choice,.launch-panel,.approval-panel,.name-review-panel,.student-card,.writing-response,.report-columns section,.dashboard-stats > div,.heatmap-section,.concept-chart-section,.heatmap-scroll,.class-plot,.period-tile,.block-tile,.button,.teacher-tabs > button,select,textarea) { border-radius:0; }
.teacher-shell :is(.button,.teacher-tabs > button,.class-choice) { box-shadow:inset 2px 2px 0 #ffffff70,3px 3px 0 #102e4c; }
.teacher-shell :is(.button,.teacher-tabs > button,.class-choice):active:not(:disabled) { transform:translate(2px,2px); box-shadow:inset 1px 1px 0 #ffffff60,1px 1px 0 #102e4c; }
.teacher-shell .teacher-workspace { background:color-mix(in srgb,var(--teacher-soft) 88%,transparent); }
.teacher-shell :is([class*="card"],[class*="panel"],form,fieldset,input,textarea,select,button,.wizard-lesson,.pointer-preview,.upcoming-games li) { border-radius:0!important; }
.bio-page :is(button,.btn,input,select,textarea,details,.card,.sheet,.writing-fit-picker,.writing-banner,.writing-fit-copy,.writing-fit-footer) { border-radius:0!important; }
.bio-page button:not(.character-option) { box-shadow:inset 2px 2px 0 #ffffff65,3px 3px 0 #203e57; }
.bio-page button:active:not(:disabled) { transform:translate(2px,2px); box-shadow:inset 1px 1px 0 #ffffff55,1px 1px 0 #203e57; }

/* Three weekly routes, with view-only activity pages instead of another inbox. */
.weekly-progress { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:4px 0; }
.weekly-meter { min-width:0; }.weekly-meter > div { display:flex; flex-wrap:wrap; justify-content:space-between; gap:2px 8px; font:650 12px/1.2 var(--sans); }
.weekly-meter strong { font-weight:850; overflow-wrap:anywhere; }.weekly-meter span { font-size:11px; }
.weekly-meter progress { display:block; width:100%; height:12px; margin-top:4px; appearance:none; border:2px solid #23445a; background:#d9e5e9; }
.weekly-meter progress::-webkit-progress-bar { background:#d9e5e9; }.weekly-meter progress::-webkit-progress-value { background:#75ae48; }.weekly-meter progress::-moz-progress-bar { background:#75ae48; }
body.bio-student-home .bio-home-my-prep.bio-weekly-home { display:grid; grid-template-columns:1fr; grid-template-rows:44px auto minmax(0,1fr) auto; gap:8px; padding:12px!important; margin:0; min-height:0; height:100%; box-sizing:border-box; }
.bio-weekly-home .weekly-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; min-width:0; }
.bio-weekly-home .weekly-route-title { display:none; }.bio-weekly-home .weekly-title-word { white-space:nowrap; }
body.bio-student-home .bio-weekly-home .weekly-heading h2 { font:700 20px/1.1 'Brainpower Pixel',var(--sans); margin:0; }
.bio-weekly-home button { min-height:44px; min-width:44px; box-sizing:border-box; cursor:pointer; border:2px solid #294961; background:#e8f2ff; color:#193e53; font:800 13px/1.1 var(--sans); padding:6px 10px; }
.bio-weekly-home :is(button,a):focus-visible { outline:3px solid #ed9b29; outline-offset:2px; }
.bio-weekly-home button:disabled { cursor:default; opacity:.55; }
.bio-weekly-home .weekly-body { min-width:0; min-height:0; display:grid; grid-template-rows:minmax(0,1fr) auto; gap:10px; }
body.bio-student-home .bio-weekly-home .weekly-primary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; min-height:0; align-content:center; }
body.bio-student-home .bio-weekly-home .bio-home-action { display:flex; text-align:left; min-height:110px; padding:12px; gap:8px; border-radius:0; }
body.bio-student-home .bio-weekly-home .bio-home-action strong { font:700 20px/1.2 'Brainpower Pixel',var(--sans); overflow-wrap:anywhere; }
body.bio-student-home .bio-weekly-home .bio-home-action small { font:650 12px/1.3 var(--sans); margin-top:6px; }
body.bio-student-home .bio-weekly-home .bio-home-action-icon { width:36px; height:36px; font-size:26px; }
.bio-weekly-home .weekly-reward { min-height:0; }
body.bio-student-home .bio-weekly-home .character-reward { margin:0; min-height:84px; grid-template-columns:76px minmax(0,1fr); }
body.bio-student-home .bio-weekly-home .character-reward-art canvas { width:70px; height:70px; }
body.bio-student-home .bio-weekly-home .character-reward-link strong { font:700 18px/1.2 'Brainpower Pixel',var(--sans); }
body.bio-student-home .bio-weekly-home .character-reward-link small { font-size:12px; line-height:1.25; }
body.bio-student-home .bio-weekly-home .weekly-notice { margin:0; font:650 11px/1.2 var(--sans); overflow-wrap:anywhere; color:#29465a; }
.bio-weekly-home[data-weekly-view="path"] .weekly-body { display:block; }
.bio-weekly-home .weekly-path-panel { display:grid; height:100%; min-height:0; grid-template-rows:auto minmax(0,1fr) 44px; gap:8px; }
.bio-weekly-home .weekly-path-panel h3 { margin:0; font:700 18px/1.15 'Brainpower Pixel',var(--sans); }
.bio-weekly-home .weekly-activities { min-height:0; min-width:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-rows:minmax(0,1fr); gap:6px; }
.bio-weekly-home .weekly-activity { position:relative; min-height:44px; min-width:0; display:flex; flex-direction:column; justify-content:center; gap:4px; padding:8px 34px 8px 10px; box-sizing:border-box; text-decoration:none; color:#193c50; border:2px solid #365b70; background:#ebf6ff; box-shadow:2px 2px 0 #1c405a; }
.bio-weekly-home .weekly-activity strong { font:850 15px/1.15 var(--sans); overflow-wrap:anywhere; }.bio-weekly-home .weekly-activity small { font:600 12px/1.25 var(--sans); overflow-wrap:anywhere; }
.bio-weekly-home .weekly-activity > span { position:absolute; right:10px; top:calc(50% - 12px); font-size:22px; }
.bio-weekly-home .weekly-pager { display:flex; justify-content:space-between; align-items:center; gap:8px; font:750 12px/1.1 var(--sans); }
.character-locked .weekly-progress { gap:8px; padding:3px 0; }.character-locked .weekly-meter > div { font-size:10px; }.character-locked .weekly-meter span { font-size:10px; }
@media(max-width:700px) and (min-height:521px) {
 body.bio-student-home .bio-weekly-home .weekly-primary { grid-template-columns:1fr; gap:8px; }
 body.bio-student-home .bio-weekly-home .bio-home-action { min-height:84px; padding:9px; }
 body.bio-student-home .bio-weekly-home .bio-home-action strong { font-size:18px; }
 .bio-weekly-home .weekly-progress { grid-template-columns:1fr; gap:7px; }
 .bio-weekly-home .weekly-activities { grid-template-columns:1fr; }
}
@media(max-height:520px) {
 body.bio-student-home .bio-home-my-prep.bio-weekly-home { padding:6px!important; gap:5px; grid-template-rows:44px auto minmax(0,1fr) auto; }
 body.bio-student-home .bio-weekly-home .weekly-heading h2 { font-size:16px; }
 .bio-weekly-home .weekly-route-title { display:block; flex:1; min-width:0; text-align:center; font:700 15px/1.1 'Brainpower Pixel',var(--sans); }
 .bio-weekly-home .weekly-progress { padding:0; gap:10px; }.bio-weekly-home .weekly-meter > div { font-size:10px; }.bio-weekly-home .weekly-meter span { font-size:10px; }.bio-weekly-home .weekly-meter progress { height:9px; margin-top:2px; }
 .bio-weekly-home .weekly-body { grid-template-columns:minmax(0,3fr) minmax(130px,1fr); grid-template-rows:minmax(0,1fr); gap:7px; }
 body.bio-student-home .bio-weekly-home .weekly-primary { grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; align-content:stretch; }
 body.bio-student-home .bio-weekly-home .bio-home-action { flex-direction:column; align-items:start; justify-content:center; min-height:44px; padding:7px; gap:4px; }
 body.bio-student-home .bio-weekly-home .bio-home-action strong { font-size:14px; }.bio-weekly-home .bio-home-action > span:last-child { display:none; }
 body.bio-student-home .bio-weekly-home .bio-home-action small { font-size:10px; margin-top:3px; }
 body.bio-student-home .bio-weekly-home .bio-home-action-icon { display:none; }
 body.bio-student-home .bio-weekly-home .character-reward { height:100%; min-height:44px; grid-template-columns:1fr; }
 body.bio-student-home .bio-weekly-home .character-reward-art { display:none; }
 body.bio-student-home .bio-weekly-home .character-reward-link { padding:6px 20px 6px 7px; }
 body.bio-student-home .bio-weekly-home .character-reward-link strong { font-size:14px; }
 body.bio-student-home .bio-weekly-home .character-reward-link small { font-size:10px; }
 .bio-weekly-home .weekly-path-panel { grid-template-rows:minmax(0,1fr) 44px; gap:5px; }
 .bio-weekly-home .weekly-path-panel h3 { display:none; }
 .bio-weekly-home .weekly-activity { padding:5px 25px 5px 7px; gap:2px; }.bio-weekly-home .weekly-activity strong { font-size:13px; }.bio-weekly-home .weekly-activity small { font-size:11px; }
 body.bio-student-home .bio-weekly-home .weekly-notice { font-size:10px; }
 .character-locked .weekly-meter progress { height:8px; }.character-locked .character-timeline { gap:4px; }.character-locked .character-timeline a { min-height:44px; }
}
@media(prefers-reduced-motion:reduce) { .bio-weekly-home * { transition:none!important; animation:none!important; } }

/* Compact square route tiles. Completed work is removed by the saved-work
   model, while archives remain reachable and accepted totals fill each tile. */

.character-heading-actions { display:flex; align-items:center; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.character-heading .character-editor-toggle { background:#bcebdc; color:#193c50; }
.character-heading .character-editor-sparkle { background:#ffd366; color:#4a2d15; border-color:#88501c; position:relative; overflow:hidden; }
.character-editor-sparkle::after { content:'✦'; position:absolute; right:4px; top:0; color:#fff9dc; animation:character-editor-glimmer 2.8s steps(3,end) 4; pointer-events:none; }
@keyframes character-editor-glimmer { 0%,100% { opacity:0; } 40%,60% { opacity:1; } }
.character-picker[data-editor-mode=simple] { grid-template-rows:auto auto minmax(0,1fr); }
.character-picker[data-editor-mode=simple] .character-categories { grid-template-columns:repeat(3,minmax(0,1fr)); }
.character-picker[data-editor-mode=simple] .character-options { overflow:auto; overscroll-behavior:contain; grid-template-columns:repeat(3,minmax(0,1fr)); grid-auto-rows:128px; align-content:start; padding:3px 6px 6px 0; }
.character-picker[data-editor-mode=simple] .character-option canvas { height:94px; min-height:94px; flex:none; max-height:none; }
.character-picker[data-editor-mode=simple] .character-option span { font-size:14px; line-height:1.2; }
.character-editor,.character-lock-body,.character-power-form { overscroll-behavior:contain; }
.character-power-copy { min-height:0; overflow:auto; }
.character-stage-art canvas { aspect-ratio:1; }
@media(max-width:600px) { .character-heading h1 { font-size:20px; }.character-heading-actions { gap:5px; }.character-heading-actions .btn { font-size:13px; padding:5px; }.character-picker[data-editor-mode=simple] .character-options { grid-auto-rows:120px; }.character-picker[data-editor-mode=simple] .character-option canvas { height:84px; min-height:84px; }.character-picker[data-editor-mode=simple] .character-option span { font-size:12px; } }
@media(max-height:520px) { .character-picker[data-editor-mode=simple] { grid-template-rows:auto minmax(0,1fr); }.character-picker[data-editor-mode=simple] .character-options { grid-auto-rows:96px; }.character-picker[data-editor-mode=simple] .character-option canvas { height:62px; min-height:62px; } }
@media(prefers-reduced-motion:reduce) { .character-editor-sparkle::after { animation:none; opacity:1; } }
body.bio-student-home .bio-weekly-home .weekly-body { grid-template-rows:auto auto; align-content:start; }
body.bio-student-home .bio-weekly-home .weekly-primary { grid-template-columns:repeat(3,minmax(0,190px)); justify-content:center; align-content:start; }
body.bio-student-home .bio-weekly-home .weekly-primary .bio-home-action { aspect-ratio:1; min-height:0; flex-direction:column; justify-content:center; align-items:center; text-align:center; padding:12px; background:linear-gradient(to top,#b9e89d var(--task-fill,0%),#e8f2ff var(--task-fill,0%)); }
body.bio-student-home .bio-weekly-home .weekly-primary .bio-home-action > span:last-child { display:none; }
body.bio-student-home .bio-weekly-home .weekly-primary [data-weekly-path="october"] { background:linear-gradient(to top,#b9e89d var(--task-fill,0%),#fff0c0 var(--task-fill,0%)); }
body.bio-student-home .bio-weekly-home .weekly-primary [data-weekly-path="focus"] { background:#dfd6ff; }
body.bio-student-home .bio-weekly-home .weekly-primary [data-task-complete="true"] { border-color:#347331; box-shadow:inset 0 0 0 3px #65aa45,3px 3px 0 #193e53; }
@media(max-width:600px) and (min-height:521px) {
 body.bio-student-home .bio-weekly-home .weekly-primary { grid-template-columns:repeat(2,minmax(0,145px)); }
 body.bio-student-home .bio-weekly-home .weekly-primary .bio-home-action strong { font-size:17px; }
 body.bio-student-home .bio-weekly-home .weekly-primary .bio-home-action small { font-size:11px; }
}
@media(max-height:520px) {
 body.bio-student-home .bio-weekly-home .weekly-body { grid-template-rows:minmax(0,1fr); }
 body.bio-student-home .bio-weekly-home .character-reward { min-height:66px; }
 body.bio-student-home .bio-weekly-home .weekly-primary { grid-column:1; grid-row:1; grid-template-columns:repeat(3,minmax(0,130px)); align-content:center; }
 body.bio-student-home .bio-weekly-home .weekly-reward { grid-column:2; grid-row:1; min-height:66px; }
 body.bio-student-home .bio-weekly-home .weekly-primary .bio-home-action { padding:7px; }
}
/* Character studio: one detailed biological scene, calm choice surfaces. */
.bio-character-page .character-heading { background:#edf6f5; box-shadow:0 3px 0 #17384d; }
.bio-character-page .character-stage { background:#201b39; border-color:#244859; }
.bio-character-page .character-stage-art { isolation:isolate; background:#211a37 url('../img/character/cell-studio-v1.webp') center/cover no-repeat; }
.bio-character-page .character-stage-art::before { content:''; position:absolute; inset:10%; background:radial-gradient(ellipse,#9ac2cf66,transparent 72%); pointer-events:none; }
.bio-character-page .character-stage-art canvas { width:100%; height:100%; max-width:384px; max-height:384px; filter:drop-shadow(0 4px 0 #101b2c66); }
.bio-character-page .character-platform { bottom:8%; width:44%; height:5px; border:0; background:#a2e4d4; box-shadow:0 3px 0 #43898b,0 8px 0 #171c34; opacity:.8; }
.bio-character-page .character-stage-art::after { content:''; position:absolute; width:4px; height:4px; left:17%; top:26%; background:#bfede4; box-shadow:230px 70px #bfe7b9,20px 180px #eac276; animation:character-vesicles 5s steps(10,end) infinite alternate; opacity:.6; pointer-events:none; z-index:1; }
@keyframes character-vesicles { to { transform:translateY(-12px); opacity:.25; } }
.bio-character-page .character-motion-toggle { position:absolute; right:10px; top:10px; z-index:3; min-width:80px; padding:7px 10px; border:2px solid #8ac0be; background:#162a40; color:#f0fcf5; font:750 12px/1 var(--sans); }
.bio-character-page .character-power-tag { background:#edf6f5; border-color:#244859; padding:12px; }
.bio-character-page .character-picker { background:#edf6f5; border-color:#244859; }
.bio-character-page .character-categories button { background:#dbe9ec; color:#173c4b; }
.bio-character-page .character-categories .is-selected { background:#ffda8a; color:#3a321f; }
.bio-character-page .character-option { background:#d9e8eb; border-color:#9cb9c2; box-shadow:0 2px 0 #7798a5; transition:background-color .12s; }
.bio-character-page .character-option:hover { background:#eaf8f4; border-color:#345b6b; }
.bio-character-page .character-option[aria-pressed=true] { background:#ffe7ad; border-color:#86591c; box-shadow:inset 0 0 0 2px #fff5d6,0 3px 0 #86591c; }
.bio-character-page .character-footer { background:#edf6f5; padding:6px 10px; border:2px solid #244859; }
.bio-character-page .character-footer [data-save-character] { background:#c7eb9b; color:#173c2a; }
.bio-character-page .character-category-title { padding:3px; }
.bio-character-page .character-category-title h2 { font-size:16px; }
.bio-character-page .character-options .character-option span { line-height:1.2; }
.bio-character-page .character-options .character-option canvas { width:64px; height:64px; min-height:64px; max-height:64px; flex:none; }
.bio-character-page .character-options[data-size="6"],.bio-character-page .character-options[data-size="8"] { grid-template-rows:repeat(2,minmax(96px,1fr)); }
.bio-character-page .character-options[data-size="4"] { grid-template-rows:minmax(96px,1fr); }
.bio-character-page .character-stage.is-paused::after,
.bio-character-page .character-stage.is-paused .character-stage-art::after { animation-play-state:paused; }
@media(max-width:600px) and (min-height:521px) {
 .bio-character-page .character-editor { grid-template-rows:136px minmax(0,1fr); }
 .bio-character-page .character-stage { grid-template-columns:minmax(0,1fr) minmax(0,1fr); grid-template-rows:1fr; min-height:130px; }
 .bio-character-page .character-stage-art canvas { max-width:176px; max-height:176px; }
 .bio-character-page .character-power-tag { align-self:stretch; display:flex; flex-direction:column; justify-content:center; border-top:0; border-left:2px solid #244859; padding:8px; min-width:0; }
 .bio-character-page .character-motion-toggle { min-width:44px; right:4px; top:4px; font-size:10px; padding:4px; }
 .bio-character-page .character-footer { flex-wrap:wrap; gap:5px; padding:5px; }
 .bio-character-page .character-footer > div { margin-left:auto; }
 .bio-character-page .character-heading { display:grid; grid-template-columns:1fr; padding:6px 8px; gap:5px; }
 .bio-character-page .character-heading h1 { font-size:18px; }
 .bio-character-page .character-heading-actions { justify-content:space-between; flex-wrap:nowrap; }
 .bio-character-page .character-picker[data-editor-mode=advanced] { grid-template-rows:auto minmax(96px,1fr) 44px; }
 .bio-character-page .character-picker[data-editor-mode=advanced] .character-category-title { display:none; }
}
@media(max-height:520px) {
 .bio-character-page .character-shell { min-height:360px; }
 .bio-character-page .character-stage-art canvas { max-width:160px; max-height:160px; }
 .bio-character-page .character-motion-toggle { top:3px; right:3px; min-width:44px; padding:4px; font-size:10px; }
 .bio-character-page .character-power-tag { padding:5px; }
 .bio-character-page .character-footer { padding:4px 6px; }
 .bio-character-page .character-category-title { display:none; }
}
@media(prefers-reduced-motion:reduce) {
 .bio-character-page .character-stage-art::after { animation:none; opacity:.4; }
}
