.academy-hero{background:linear-gradient(120deg,#234569,#406f88);color:#fff;padding:15px;border:2px ridge #8faec6;margin:8px 0}.academy-hero h2{color:#ffe39c!important;margin:4px 0}.academy-hero p{margin:5px 0}.academy-nav{display:flex;gap:5px;flex-wrap:wrap;margin:8px 0}.academy-nav button,.academy-card button,.academy-game button{margin:2px;white-space:normal}.academy-report-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:9px;margin:8px 0}.academy-card,.academy-recommend,.academy-game,.academy-question{padding:12px;background:var(--ap-paper,#f6f9ff);color:var(--ap-ink,#213b53);border:1px solid var(--ap-accent,#9bb3cb);min-width:0;box-sizing:border-box}.academy-recommend{border-left:4px solid #c7a34c}.academy-card h3{margin:0 0 8px}.academy-card p{margin:5px 0}.academy-lesson-row,.academy-skill{display:flex;flex-direction:column;align-items:flex-start;gap:3px;margin:6px 0;padding:5px 0;border-bottom:1px solid #8ea5b45c}.academy-skill progress,.academy-game progress{width:100%;height:12px;accent-color:var(--ap-accent,#438e78)}.academy-skill small,.academy-lesson-row small{font-size:11px}.academy-question{margin:12px 0;background:color-mix(in srgb,var(--ap-paper,#f6f9ff) 92%,#a2c6d8)}.academy-question button{display:block;width:100%;min-height:44px;text-align:left}.academy-report{min-width:0}[data-theme=dark] :is(.academy-card,.academy-recommend,.academy-game,.academy-question){background:var(--ap-paper,#24384c);color:var(--ap-ink,#e4effb)}

.detective-hero{padding:12px;background:linear-gradient(120deg,#162f46,#325668);color:#f2ead6;border:2px ridge #93a6b2}.detective-hero h2{color:#f5d68a!important;margin:5px 0}.detective-hero p{margin:4px 0}.detective-hero small{font:700 10px Tahoma;letter-spacing:.12em;color:#d4bd8b}.detective-case-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:8px;margin-top:9px}.detective-case,.detective-scene,.detective-notebook{min-width:0;border:1px solid #8197a6;background:var(--ap-paper,#e8eef4);color:var(--ap-ink,#20394b);padding:9px;box-sizing:border-box}.detective-case img,.detective-scene>img{width:100%;height:auto;aspect-ratio:560/300;object-fit:contain;image-rendering:pixelated;display:block;border:1px solid #344d5c;box-sizing:border-box}.detective-case h3,.detective-scene h3{margin:7px 0}.detective-case p,.detective-notebook p{margin:5px 0}.detective-status{display:flex;flex-wrap:wrap;gap:6px;justify-content:space-between;background:#243c50;color:#e6d6ac;padding:7px;font:700 10px monospace}.detective-layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(140px,1fr);gap:8px;margin-top:8px}.detective-notebook h3{font-size:14px}.detective-notebook h4{margin:8px 0;color:inherit}.detective-notebook p{font-size:12px;line-height:1.4;overflow-wrap:anywhere}.detective-travel{display:flex;flex-direction:column;gap:4px}.detective-travel button{min-height:42px;white-space:normal;text-align:left}.detective-suspects{display:grid;grid-template-columns:repeat(auto-fit,minmax(105px,1fr));gap:5px}.detective-suspects button{display:flex;flex-direction:column;align-items:center;white-space:normal;padding:5px;gap:3px;margin:0;min-width:0}.detective-suspects img{width:72px;height:auto;image-rendering:pixelated}.detective-suspects small{font-size:10px}.detective-terminal{container-type:inline-size}@container(max-width:510px){.detective-layout{grid-template-columns:minmax(0,1fr)}}[data-theme=dark] :is(.detective-case,.detective-scene,.detective-notebook){background:var(--ap-paper,#233749);color:var(--ap-ink,#e2ecf5)}

.academy-periods{display:flex;flex-wrap:wrap;gap:6px;font-size:12px}.academy-periods span{border:1px solid #b9d4e0;padding:5px 8px}.academy-trend{height:36px;display:flex;align-items:end;gap:3px;width:100%;border-bottom:1px solid #94aab8}.academy-trend span{flex:1 1 0;max-width:22px;background:var(--ap-accent,#458f83);border:1px solid #476a7d;box-sizing:border-box}.academy-print{min-width:0}@media print{body.printing-academy *{visibility:hidden!important}body.printing-academy .academy-print,body.printing-academy .academy-print *{visibility:visible!important}body.printing-academy .academy-print{position:absolute!important;inset:0!important;width:100%!important;color:#111!important;background:#fff!important}body.printing-academy .academy-print button{display:none!important}body.printing-academy .academy-print :is(.academy-card,.academy-hero){background:#fff!important;color:#111!important;border:1px solid #999!important;break-inside:avoid}body.printing-academy .academy-print .academy-hero h2{color:#111!important}body.printing-academy .retro-window:has(.academy-print),body.printing-academy .retro-window-content:has(.academy-print),body.printing-academy #portal-view,body.printing-academy #retro-desktop{position:static!important;width:auto!important;height:auto!important;max-height:none!important;overflow:visible!important;display:block!important}body.printing-academy .academy-report-grid{display:block}body.printing-academy .academy-card{margin-bottom:8px}}
