.ear-panel{margin:2rem 0 3rem;padding:clamp(1rem,3vw,2rem);background:#edf2e4;border:1px solid #d3e1d1;border-radius:16px}.ear-top{display:flex;justify-content:space-between;align-items:start;gap:1rem;flex-wrap:wrap;margin-bottom:1rem}.ear-top h3{margin:.25rem 0 0;font-size:1.2rem}.ear-kicker{font-size:.75rem;font-weight:800;letter-spacing:.1em;color:#557b60}.ear-legend{display:flex;gap:.8rem;flex-wrap:wrap;font-size:.85rem;color:#38534a}.ear-legend span{display:flex;align-items:center;gap:.35rem}.ear-legend i{width:.9rem;height:.9rem;border-radius:50%;display:inline-block}.ear-key-sound{background:#488da6}.ear-key-motion{background:#c87550}.ear-chart-wrap{overflow-x:auto;overscroll-behavior-x:contain;border:1px solid #d5e3d2;border-radius:10px;background:#fff}.ear-chart-wrap svg{display:block;width:100%;min-width:850px;height:auto;font-family:Arial,sans-serif}.ear-zone{font-size:14px;font-weight:800;letter-spacing:1px;fill:#60806c}.ear-label{font-size:16px;font-weight:700;fill:#244c3c}.ear-small{font-size:14px;fill:#587164}.ear-caption{font-size:13px;font-weight:700;fill:#587164}.ear-outer{fill:none;stroke:#c8957d;stroke-width:16;stroke-linecap:round;stroke-linejoin:round}.ear-fold{fill:none;stroke:#daa995;stroke-width:8;stroke-linecap:round}.ear-canal{fill:#fff7e9}.ear-canal-wall{fill:none;stroke:#c8957d;stroke-width:8;stroke-linecap:round}.ear-waves{fill:none;stroke:#488da6;stroke-width:5;stroke-linecap:round}.ear-drum{fill:none;stroke:#dbac9f;stroke-width:11;stroke-linecap:round}.ear-drum.active{stroke:#c87550}.ear-bone{fill:#eadbbc;stroke:#b89d6c;stroke-width:4;stroke-linejoin:round}.ear-bone.active{fill:#e4bd75;stroke:#a77937}.ear-stapes{fill:none;stroke:#b89d6c;stroke-width:7;stroke-linejoin:round;stroke-linecap:round}.ear-stapes.active{stroke:#a77937}.ear-window{fill:none;stroke:#9cbcb5;stroke-width:10;stroke-linecap:round}.ear-window.active{stroke:#c87550}.ear-cochlea{fill:#dcefe8;stroke:#80aa9c;stroke-width:6}.ear-cochlea-spiral{fill:none;stroke:#76aa99;stroke-width:9;stroke-linecap:round}.ear-fluid{fill:none;stroke:#65a89c;stroke-width:5;opacity:.12}.ear-fluid.active{opacity:.75}.ear-callout{fill:none;stroke:#899e8e;stroke-width:2}.ear-chart-wrap svg.playing .ear-waves{animation:ear-waves 1.2s linear infinite}.ear-chart-wrap svg.playing.mechanical #ear-mechanics{animation:ear-mechanical 1.2s ease-in-out infinite}.ear-chart-wrap svg.playing #ear-fluid.active{animation:ear-fluid 1.2s ease-in-out infinite}.ear-controls{display:flex;flex-wrap:wrap;gap:.6rem;margin:1rem 0}.ear-controls button,.ear-options button{font:inherit;cursor:pointer;border:1px solid #afc6b1;background:#fff;color:#254c36;border-radius:8px;padding:.7rem 1rem;font-weight:700}.ear-controls button:hover,.ear-options button:hover{background:#e0f0da}.ear-controls button:focus-visible,.ear-options button:focus-visible{outline:3px solid #367451;outline-offset:2px}.ear-controls button:disabled{opacity:.45;cursor:default}.ear-controls #ear-play{background:#295b3d;color:#fff;border-color:#295b3d}.ear-step{background:#fff;border-radius:10px;padding:1rem 1.2rem}.ear-step h3{margin:0 0 .5rem;font-size:1.15rem}.ear-step p{margin:.4rem 0;line-height:1.55}.ear-step-detail{color:#4b6755}.ear-note,.ear-source{font-size:.9rem;line-height:1.55;color:#52685b}.ear-note{margin:1rem 0 0}.ear-source{margin:2rem 0}.ear-question{margin:1rem 0;padding:1.2rem;border:1px solid #d5e2d1;background:#f8fbf6;border-radius:12px}.ear-question h3{margin:0 0 .9rem;font-size:1.05rem;line-height:1.4}.ear-options{display:grid;gap:.5rem}.ear-options button{text-align:left;font-weight:500;line-height:1.4}.ear-options button[aria-pressed=true]{background:#dcefd6;border-color:#77a681}.ear-feedback:empty{display:none}.ear-feedback{color:#254c36;font-weight:700;line-height:1.5}.ear-hint{margin-top:.8rem;color:#4a6552}.ear-hint summary{cursor:pointer;font-weight:700}.ear-swipe{display:none;font-size:.8rem;color:#56715c;margin:.5rem 0 0}@keyframes ear-waves{from{transform:translateX(-12px)}to{transform:translateX(12px)}}@keyframes ear-mechanical{0%,100%{transform:translateX(0)}25%{transform:translateX(4px)}75%{transform:translateX(-4px)}}@keyframes ear-fluid{0%,100%{opacity:.45;transform:translateX(0)}50%{opacity:.9;transform:translateX(5px)}}@media(max-width:650px){.ear-panel{padding:.85rem}.ear-controls button{flex:1 1 40%}.ear-swipe{display:block}}@media(prefers-reduced-motion:reduce){.ear-chart-wrap svg.playing .ear-waves,.ear-chart-wrap svg.playing.mechanical #ear-mechanics,.ear-chart-wrap svg.playing #ear-fluid.active{animation:none}}
