body{font-family:system-ui,-apple-system,"Segoe UI",sans-serif}.fm,.fx{font-family:ui-monospace,"Consolas",monospace}.fh,.notebook-paper{font-family:"Architects Daughter","Comic Sans MS","Segoe Print",cursive}.notebook-paper{font-size:18px;font-weight:600}.notebook-paper table{font-size:16px;table-layout:fixed}.notebook-paper th,.notebook-paper td{overflow-wrap:anywhere;padding:6px}.notebook-paper .math{font-family:ui-monospace,monospace;font-size:.92em}.math{display:inline;overflow-wrap:anywhere}button,[role=button],summary,input[type=text],input[type=number],select,input[type=range]{min-height:44px}input,select,textarea{min-width:0}button:disabled{opacity:.5;cursor:not-allowed}.oi{display:inline-block;min-width:1em;text-align:center;font-family:system-ui,sans-serif}.gate-label{color:#fbbf24;border:1px dashed #64748b;border-radius:8px;padding:10px;margin-bottom:16px;font-size:14px;font-weight:600}.mc{border:1px solid #0e7490;border-radius:999px;padding:5px 10px;color:#cffafe}.locked{filter:grayscale(.9)}section{scroll-margin-top:180px}.solved>:not(:first-child):not([id$=feedback]){display:none}.solved{box-shadow:0 0 12px #10b98155;border-color:#10b981}#teach-canvas{touch-action:none;border:2px solid #475569}svg{display:block;max-width:100%;height:auto}header svg{width:40px;height:40px}#level-8 .drop-zone{text-align:left;color:#cbd5e1}.drag-card.selected-drag{outline:3px solid #06b6d4;outline-offset:2px}.drop-zone.active-drop{border-color:#06b6d4}#rank-badge{max-width:100%;overflow-wrap:anywhere}h1,h2,h3,p,#sim-equation,#sim-working{overflow-wrap:anywhere}.shake{animation:shake .35s}@keyframes shake{25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}.flip-card{height:410px}.flip-card-face{position:absolute;width:100%;height:100%;backface-visibility:hidden;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:16px}.flip-card-back{overflow-y:auto;justify-content:flex-start}.equation-box{border:3px solid #c2185b;border-radius:8px;background:#fff59d;padding:12px;margin:16px 0}.equation-box p{margin-top:8px}input[type=range]{background:transparent}input[type=range]::-webkit-slider-runnable-track{height:8px;background:linear-gradient(to right,#0e7490,#10b981);border-radius:5px}input[type=range]::-moz-range-track{height:8px;background:linear-gradient(to right,#0e7490,#10b981);border-radius:5px}input[type=range]::-webkit-slider-thumb{margin-top:-9px}#level-3 [id^=readout]{text-align:right;margin-left:8px;overflow-wrap:anywhere}#readout-mode{max-width:65%}input[type=number]{width:100%;background:#0f172a;color:#e2e8f0;border:1px solid #475569;border-radius:8px;padding:8px}#level-3 canvas{border-radius:8px}.notebook-paper figcaption{color:#1a3a8a;font-size:16px;line-height:1.7}.notebook-paper .equation-table td::before{margin-right:.35em}@media(max-width:480px){.notebook-paper{padding-left:54px;background-image:linear-gradient(to right,transparent 44px,#d32f2f 44px,#d32f2f 46px,transparent 46px),repeating-linear-gradient(to bottom,transparent 0,transparent 31px,#6fa8dc 32px)}.notebook-paper h2{font-size:1.5em!important}header .fl{min-width:0}header .whitespace-nowrap{white-space:normal}#rank-badge{font-size:11px}#l6-q3>.fl,#l6-q4>.fl,.notebook-paper .fl{flex-wrap:wrap}#level-3 [id^=readout]{font-size:12px}#teach-draw-panel{padding:8px}#level-7,#level-3{padding-left:12px;padding-right:12px}#practice-panels,#level-3>div:last-child{padding:8px}#c1-panel,#c2-panel,#c3-panel{padding:12px}#practice-panels svg text{font-size:24px}}@media(max-width:640px){.notebook-paper .equation-table,.notebook-paper .equation-table tbody{display:block;width:100%}.notebook-paper .equation-table thead{display:none}.notebook-paper .equation-table tr{display:block;border:2px solid #1a3a8a;margin-bottom:12px}.notebook-paper .equation-table td{display:block;width:100%;border:0;border-bottom:1px solid #6fa8dc;font-size:16px;line-height:1.8;padding:6px 8px}.notebook-paper .equation-table td::before{content:attr(data-label) ":";color:#c2185b;font-weight:bold}.notebook-paper .equation-table td:first-child{background:#fff59d}}@media(min-width:641px){.notebook-paper .equation-table{width:100%;border-collapse:collapse;margin:14px 0}.notebook-paper .equation-table th,.notebook-paper .equation-table td{border:1px solid #1a3a8a;padding:8px}.notebook-paper .equation-table th{background:#fff59d}}@media print{header{position:static!important;background:#fff!important}body{background:white!important;color:#111!important;padding:0!important}body *,body [class]{color:#111!important}.locked{opacity:1;filter:none}.gate-label,button,input,select,textarea,.decorative-emoji{display:none!important}section{break-inside:auto;box-shadow:none!important;margin:8px 0!important;padding:12px!important}#vault-content{display:block!important}.notebook-paper{box-shadow:none;break-inside:auto;break-before:page;padding-left:85px;background-image:linear-gradient(to right,transparent 70px,#d32f2f 70px,#d32f2f 72px,transparent 72px),repeating-linear-gradient(to bottom,transparent 0,transparent 31px,#dbeafe 32px)}.flip-card{height:auto}.flip-card-inner{transform:none!important}.flip-card-face{position:static;backface-visibility:visible}.flip-card-face:not(.flip-card-back){display:none}.flip-card-back{transform:none!important;height:auto;overflow:visible}.solved>*{display:block!important}.solved button{display:none!important}canvas{max-height:200px;width:auto!important}#bar-canvas{max-height:180px}main{max-width:100%!important}main div{background-color:white!important}main [class*=bg-]{background:#fff!important}svg text{fill:#111!important}h2,h3,h4{break-after:avoid}.equation-box,figure,tr,.notebook-paper table,#completion-badge{break-inside:avoid}p{orphans:3;widows:3}svg [stroke="#67e8f9"]{stroke:#155e75}svg [stroke="#fbbf24"]{stroke:#854d0e}svg [stroke="#6ee7b7"]{stroke:#065f46}}@media print{#level-10>div:not(#vault-content){display:none!important}}@page{size:A4;margin:12mm}@media print{.notebook-paper{background:none!important;border-left:2px solid #d32f2f}}@media print{#teach-type-panel,#teach-draw-panel,#feynman-feedback{display:none!important}}.sort-target{min-height:64px}.drop-zone.active-drop{outline:2px solid #67e8f9}#drop-zones .drag-card{width:100%}label[for=gravity-toggle]{min-height:44px;cursor:pointer}