:root{--bg:#f5f6f2;--surface:#fff;--ink:#173f33;--muted:#74857d;--line:#e2e9e2;--soft:#eff4ee;--accent:#7853b3;--purple:#f1ecf9;--shadow:0 12px 40px #21433308;color-scheme:light;font-family:Outfit,system-ui,-apple-system,sans-serif;color:var(--ink);background:#e9ede7}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button,a{touch-action:manipulation}button{border:0}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #9474c2;outline-offset:3px}button:disabled{opacity:.45;cursor:wait}[hidden]{display:none!important}.app{max-width:600px;margin:auto;background:var(--bg);min-height:100dvh;box-shadow:0 0 100px #173f3310}.topbar{height:80px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 22px;background:var(--bg);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20;padding-top:max(10px,env(safe-area-inset-top))}.brand{display:flex;align-items:center;gap:9px;line-height:1.05;font-weight:700;font-size:19px;letter-spacing:-.6px}.brand>span{display:block}.brand-com{color:#5c9078}.brand small{display:block;font-size:8px;letter-spacing:1.65px;margin-top:7px;font-weight:600;color:var(--muted)}.top-actions{display:flex;align-items:center;gap:6px}.icon-button{min-width:48px;min-height:48px;display:inline-flex;align-items:center;justify-content:center;background:transparent;border-radius:50%}.icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}.lang-wrap{display:flex;gap:3px;align-items:center;position:relative;border:1px solid var(--line);border-radius:99px;height:40px;padding:0 8px;background:var(--surface)}.lang-wrap .icon{width:16px;height:16px}.lang-wrap select{appearance:none;border:0;background:none;font-size:12px;font-weight:600;color:var(--ink);width:27px;min-height:48px;cursor:pointer}#screen{padding:25px 20px 106px;outline:none;min-height:calc(100dvh - 80px)}h1,h2,h3,p{margin:0}h1{font-size:39px;line-height:1.13;letter-spacing:-1.3px;font-weight:600}h1 em{font-style:normal;color:#62816c}h2{font-size:21px;letter-spacing:-.5px;font-weight:600}h3{font-size:18px;font-weight:600;line-height:1.25;letter-spacing:-.3px}.lead{font-size:14px;line-height:1.65;color:var(--muted);margin-top:13px}.eyebrow{font-size:9px;letter-spacing:1.6px;font-weight:600;color:var(--muted);display:flex;gap:8px;align-items:center;margin-bottom:12px}.eyebrow:before{content:'';width:16px;height:2px;background:#c69c5a}.mode-switch{display:grid;grid-template-columns:1fr 1fr;background:#e8eee6;padding:4px;border-radius:15px;margin:24px 0 17px;gap:3px}.mode-switch button{min-height:48px;background:none;border-radius:12px;color:var(--muted);font-size:13px;font-weight:500;display:flex;align-items:center;justify-content:center;gap:8px}.mode-switch button[aria-pressed=true]{background:var(--surface);color:var(--ink);box-shadow:0 2px 5px #163d3008}.mode-switch .icon{width:18px;height:18px}.hero-card{position:relative;display:grid;grid-template-columns:1fr 46%;background:var(--surface);border:1px solid var(--line);border-radius:24px;overflow:hidden;box-shadow:var(--shadow);min-height:220px}.hero-copy{padding:25px 0 20px 21px;z-index:1;display:flex;flex-direction:column;align-items:start}.hero-copy .eyebrow{font-size:8px;margin-bottom:13px;letter-spacing:1.25px;white-space:nowrap}.hero-copy h2{font-size:23px;line-height:1.16;font-weight:600;letter-spacing:-.8px;margin-bottom:20px}.hero-image{width:100%;height:100%;object-fit:cover;object-position:65% 50%;min-width:0;align-self:stretch}.hero-card.internal .hero-image{object-position:70% center}.small-cta{background:var(--ink);color:#fff;border-radius:9px;min-height:43px;padding:9px 11px;font-size:11px;font-weight:500;display:flex;gap:9px;align-items:center;margin-top:auto}.small-cta .icon{width:15px;height:15px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:29px 0 14px}.section-heading h2{font-size:19px}.section-heading>span{font-size:11px;color:var(--muted)}.category-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.category-card{display:flex;flex-direction:column;text-align:start;border:1px solid var(--line);border-radius:19px;background:var(--surface);padding:11px 13px 14px;min-width:0;overflow:hidden;transition:transform .18s,border-color .18s;box-shadow:0 3px 10px #173f3303}.category-card:hover{transform:translateY(-2px);border-color:#aec7b5}.category-art{height:88px;margin:-1px -2px 9px;width:calc(100% + 4px);overflow:hidden;background:#fff;border-radius:12px}.category-art img{width:100%;height:100%;object-fit:contain}.category-card h3{font-size:15px}.category-card .meta{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:5px;font-size:10px;color:var(--muted)}.category-card .meta .icon{width:14px;height:14px}.guide-card{background:#ecefe8;border-radius:18px;padding:18px;display:flex;gap:14px;align-items:center;margin-top:20px;border:1px solid var(--line)}.guide-card>.icon{width:26px;height:26px;color:#6b8373}.guide-card h3{font-size:15px}.guide-card p{font-size:12px;line-height:1.55;margin-top:5px;color:var(--muted)}.guide-card>div{flex:1}.guide-card>.icon:last-child{width:18px}.bottom-nav{position:fixed;z-index:25;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,600px);height:calc(77px + env(safe-area-inset-bottom));padding:8px 22px calc(9px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(3,1fr);background:color-mix(in srgb,var(--surface) 96%,transparent);border-top:1px solid var(--line);backdrop-filter:blur(16px)}.bottom-nav a{min-height:54px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:10px;color:var(--muted);position:relative}.bottom-nav a[aria-current=page]{color:var(--ink);font-weight:600}.bottom-nav a[aria-current=page]:before{content:'';position:absolute;top:0;background:var(--ink);width:18px;height:3px;border-radius:9px}.bottom-nav .icon{width:21px;height:21px}.bottom-nav a[aria-current=page] .icon{stroke-width:2}.backrow{display:flex;justify-content:space-between;align-items:center;margin:-10px -7px 14px;gap:8px}.backbutton,.view-button{background:transparent;display:flex;align-items:center;gap:7px;min-height:48px;font-size:13px;padding:5px 8px}.backbutton .icon{width:18px}.view-button{border:1px solid var(--line);background:var(--surface);border-radius:11px;font-size:11px;padding:5px 10px}.view-button .icon{width:15px}.viewer-kicker{font-size:10px;color:var(--muted);letter-spacing:.7px;margin-bottom:8px}.viewer-title{font-size:25px;line-height:1.2;letter-spacing:-.8px}.species-name{font-size:12px;color:var(--muted);line-height:1.5;margin-top:7px}.plate-card{background:#fff;border-radius:22px;border:1px solid var(--line);overflow:hidden;margin-top:19px;box-shadow:var(--shadow);color:#173f33}.active-label{padding:18px 19px 10px;position:relative;z-index:1;min-height:98px;display:flex;justify-content:space-between;align-items:center;gap:8px}.active-label h2{font-size:21px;line-height:1.2}.active-label p{font-size:12px;margin-top:4px;color:#7b8e84}.active-label i{display:block;font-size:12px;color:#8a739e;margin-top:4px;font-family:Georgia,serif}.active-label .label-badge{width:32px;height:32px;border-radius:50%;background:#f4effb;color:#8254b4;display:flex;align-items:center;justify-content:center}.active-label .label-badge .icon{width:17px;height:17px}.diagram-wrap{width:100%;overflow:auto;scrollbar-width:thin;background:white;position:relative;touch-action:pan-y;min-height:240px}.diagram-wrap svg{display:block;width:100%;height:auto}.region-spot{fill:#8753bc23;stroke:#8255ae;stroke-width:2.8}.leader{stroke:#8255ae;stroke-width:2;fill:none}.diagram-hit{fill:transparent;cursor:pointer}.plate-toolbar{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #edf1ed;padding:7px 12px;gap:8px}.plate-toolbar button{background:#f8faf7;border:1px solid #e4ece5;border-radius:9px;min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:6px;color:#244c3b;font-size:11px}.plate-toolbar .regions-button{padding:8px 12px;min-height:48px;background:#eef3ec;font-weight:500}.plate-toolbar .icon{width:17px;height:17px}.zoom-buttons{display:flex;gap:4px}.tap-note{font-size:10px;color:var(--muted);text-align:center;padding:11px 0 2px}.term-stepper{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:15px}.term-stepper button{min-width:48px;min-height:48px;background:var(--surface);border:1px solid var(--line);border-radius:13px;display:flex;align-items:center;justify-content:center}.term-stepper>div{text-align:center;min-width:0}.term-stepper strong{display:block;font-size:12px;font-weight:500}.term-stepper small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.definition{margin-top:24px}.definition>.eyebrow{margin-bottom:10px}.definition>p{font-size:15px;line-height:1.8;color:var(--ink)}.extra{margin-top:18px;border-top:1px solid var(--line)}.extra summary{min-height:52px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;font-size:13px;font-weight:500;list-style:none}.extra summary .icon{width:16px;height:16px}.extra p{font-size:14px;line-height:1.8;padding-bottom:16px;color:var(--muted)}.context-note{font-size:11px;line-height:1.7;color:var(--muted);padding:14px 0}.text-link{display:inline-flex;align-items:center;gap:8px;min-height:48px;font-size:12px;color:var(--accent);background:none;text-align:start}.text-link .icon{width:16px;height:16px}.source-row{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);margin-top:17px}.related-list{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}.related-list button{font-size:11px;border:1px solid var(--line);background:var(--surface);border-radius:10px;min-height:48px;padding:9px 12px}.searchbox{display:flex;align-items:center;gap:10px;border:1px solid var(--line);background:var(--surface);border-radius:15px;margin-top:22px;padding:0 14px}.searchbox .icon{width:19px;height:19px;color:#729080}.searchbox input{width:100%;min-width:0;background:none;border:0;outline:none;min-height:55px;font-size:14px;color:var(--ink)}input::placeholder{color:#91a095}.filter-row{display:flex;gap:7px;margin:15px 0;overflow:auto}.filter-row button{white-space:nowrap;min-height:48px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:9px 13px;font-size:11px}.filter-row button[aria-pressed=true]{background:var(--ink);color:var(--surface)}.results-info{font-size:11px;color:var(--muted);margin:19px 0 12px}.term-row{display:flex;width:100%;text-align:start;align-items:center;justify-content:space-between;gap:15px;min-height:79px;border-bottom:1px solid var(--line);padding:15px 3px;background:none}.term-row strong{display:block;font-weight:500;font-size:15px}.term-row small{display:block;font-size:11px;color:var(--muted);line-height:1.5;margin-top:4px}.term-row .icon{width:17px;color:#839789}.term-row[aria-current=true]{color:var(--accent)}.term-row[aria-current=true] strong:before{content:'• ';color:var(--accent)}.empty{text-align:center;padding:50px 10px;color:var(--muted);font-size:14px;line-height:1.8}.experience-card{display:flex;align-items:center;gap:15px;text-align:start;width:100%;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:17px;margin-top:11px;min-height:100px}.experience-card .experience-icon{width:48px;height:54px;background:#f1edf6;color:#79559c;border-radius:14px;display:flex;align-items:center;justify-content:center;flex:none}.experience-card:nth-child(3n+2) .experience-icon{background:#ecf2eb;color:#6b8c75}.experience-card:nth-child(3n+3) .experience-icon{background:#f6efe2;color:#ad8b48}.experience-card>div:nth-child(2){flex:1}.experience-card h2{font-size:16px;margin-bottom:6px}.experience-card p{font-size:11px;line-height:1.65;color:var(--muted)}.experience-card>.icon{width:17px;color:#9aa89f}.experience-heading{margin:8px 0 23px}.lab-frame{width:100%;border:0;background:none;display:block;min-height:600px}.frame-shell{margin:10px -7px 0}.guide-list .term-row small{font-size:10px}.reader h1{font-size:29px;line-height:1.2}.reader .chapter h3,.reader .chapter .chapter-number{display:none}.reader .chapter p{font-size:15px;line-height:1.9;margin-top:18px}.reader .chapter a{display:inline-flex;margin-top:20px;min-height:48px;align-items:center;color:var(--accent);font-size:12px}.reader .chapter .num{display:none}.reader .question{padding:19px;background:var(--surface);border:1px solid var(--line);border-radius:17px;margin-top:14px}.reader .question h3{font-size:15px;line-height:1.55}.reader .question label{display:flex;gap:10px;align-items:center;min-height:48px;padding:8px 0;font-size:13px;line-height:1.55}.reader .question input{accent-color:var(--accent)}.reader .question button,#reset-quiz{min-height:48px;background:var(--ink);color:var(--surface);padding:11px 15px;border-radius:10px;margin-top:12px;font-size:12px}.reader .question .feedback{font-size:13px;color:var(--accent);line-height:1.7;margin-top:13px}.reader #quiz>h2,.reader #quiz>p{display:none}.reader #quiz .question p{margin:0}.sheet-view-card{display:flex;align-items:center;gap:14px;min-height:100px;width:100%;border:1px solid var(--line);border-radius:15px;padding:9px;margin:8px 0;background:var(--surface);text-align:start}.sheet-view-card img{width:82px;height:70px;object-fit:contain;background:white;border-radius:8px}.sheet-view-card strong{font-size:13px;font-weight:500;line-height:1.5;display:block}.sheet-view-card small{font-size:11px;color:var(--muted);display:block;margin-top:4px}.sheet-view-card[aria-current=true]{border-color:#9e83c0;background:var(--purple)}dialog{border:0;border-radius:26px 26px 0 0;margin:auto auto 0;width:min(100%,600px);max-width:600px;max-height:85dvh;background:var(--bg);color:var(--ink);padding:9px 20px calc(24px + env(safe-area-inset-bottom));box-shadow:0 -20px 90px #152f331c}dialog::backdrop{background:#15352c70;backdrop-filter:blur(5px)}dialog header{display:flex;align-items:center;justify-content:space-between;position:sticky;top:-9px;background:var(--bg);z-index:2;padding-top:8px}dialog header h2{font-size:21px}dialog .sheet-handle{width:34px;height:4px;border-radius:4px;background:#cbd5cd;margin:0 auto 7px}#sheet-body{padding-top:6px}#sheet-body .searchbox{margin-top:5px;position:sticky;top:55px;z-index:1}.sheet-note{color:var(--muted);font-size:12px;line-height:1.7;padding:15px 0}#toast{position:fixed;bottom:110px;left:50%;transform:translateX(-50%);z-index:60;background:#204c3c;color:#fff;padding:10px 16px;border-radius:12px;max-width:85%;font-size:12px;opacity:0;pointer-events:none}.loading{padding:40px 10px;color:var(--muted);line-height:1.8}.plate-respiration{margin:20px 0}.plate-respiration button,.plate-respiration select,.plate-respiration input{min-height:48px}.plate-respiration .plate-resp-controls{display:flex;flex-wrap:wrap;gap:8px}.plate-respiration .plate-resp-heading{font-size:18px}.plate-respiration .plate-resp-tag{font-size:9px}.plate-respiration .plate-resp-science{font-size:12px}.plate-respiration .plate-resp-caption{font-size:11px}.plate-resp-readout{font-size:12px}.plate-breath-texture,.plate-breath-canvas{width:100%;height:100%;display:block}.plate-breath-airway{fill:none;stroke:#007b8570;stroke-width:5}.plate-breath-lungflow{fill:none;stroke:#7a41b5;stroke-width:4}.plate-breath-sac-outline{fill:none;stroke:#2c99af;stroke-width:3}.plate-breath-sac-label text{font-size:14px}.plate-breath-sac-label path{fill:none;stroke-width:1.4}.plate-resp-science summary{min-height:48px}.modal-list{max-height:55dvh;overflow:auto}.source-document{max-width:760px;margin:auto;padding:30px 20px;color:var(--ink);background:var(--bg)}.source-document a{color:var(--accent);overflow-wrap:anywhere}.source-document article,.source-document .source-record{padding:20px 0;border-bottom:1px solid var(--line)}.source-document h2{font-size:19px;line-height:1.5;margin-top:20px}.source-document p{font-size:14px;line-height:1.8}.sources-back{display:inline-flex;min-height:48px;align-items:center;margin-bottom:20px;font-size:13px}
html[data-theme=twilight]{--bg:#17231f;--surface:#22322b;--ink:#e7ede4;--muted:#a1b4a7;--line:#35463c;--soft:#273a2d;--purple:#362b45;--accent:#bd9ce4;color-scheme:dark;background:#121b16}html[data-theme=twilight] h1 em{color:#a0bda6}html[data-theme=twilight] .hero-card{background:#fff;color:#173f33}html[data-theme=twilight] .hero-card .small-cta{background:#173f33;color:white}html[data-theme=twilight] .mode-switch,html[data-theme=twilight] .guide-card{background:#26382d}html[data-theme=twilight] .hero-card .eyebrow{color:#74857d}html[data-theme=twilight] .experience-card .experience-icon{background:#3d314c;color:#ceb0ee}html[data-theme=twilight] .filter-row button[aria-pressed=true]{color:#152a20}html[data-theme=twilight] .small-cta,html[data-theme=twilight] .question button{color:#152a20}html[dir=rtl] .hero-copy{padding:25px 21px 20px 0}html[dir=rtl] h1{letter-spacing:0}html[dir=rtl] .brand{direction:ltr}html[dir=rtl] .backrow .icon,html[dir=rtl] .term-row>.icon{transform:scaleX(-1)}@media(min-width:700px){.app{margin-top:28px;margin-bottom:28px;min-height:calc(100dvh - 56px);border-radius:28px;overflow:clip;border:1px solid #dbe3da}.topbar{border-radius:28px 28px 0 0}.bottom-nav{border-inline:1px solid var(--line)}#screen{padding-inline:27px}.hero-card{min-height:255px}.hero-copy{padding:28px 0 26px 25px}.hero-copy h2{font-size:28px}.category-art{height:112px}}@media(max-width:370px){.brand{font-size:17px}.topbar{padding-inline:15px}#screen{padding-inline:15px}h1{font-size:34px}.hero-copy{padding-left:16px}.hero-copy h2{font-size:21px}.hero-card{grid-template-columns:54% 46%}.small-cta{font-size:10px}.icon-button{min-width:44px}}@media(prefers-reduced-motion:no-preference){#screen>.enter{animation:arrive .25s ease both}dialog[open]{animation:sheetIn .23s ease both}@keyframes arrive{from{opacity:.5;transform:translateY(6px)}to{opacity:1;transform:none}}@keyframes sheetIn{from{transform:translateY(40px);opacity:0}to{transform:none;opacity:1}}}
.hero-image{object-fit:contain;object-position:center}.hero-card.internal .hero-image{object-position:center}#respiration-controls{margin-top:24px}#respiration-controls .plate-resp-heading{display:flex;flex-wrap:wrap;gap:8px}#respiration-controls .plate-resp-heading>div{width:100%;margin-bottom:10px}#respiration-controls .plate-resp-heading>div span{font-size:9px;letter-spacing:1px}#respiration-controls .plate-resp-heading h3{font-size:19px;margin-top:7px}#respiration-controls button{min-height:48px}#respiration-controls .plate-resp-tools{display:block;margin-top:10px}.motion-options{border:1px solid var(--line);border-radius:12px;margin:12px 0;background:var(--surface)}.motion-options summary{font-size:12px;min-height:48px;display:flex;justify-content:space-between;align-items:center;padding:10px 13px;list-style:none;cursor:pointer}.motion-options summary .icon{width:16px;height:16px}.motion-options>div{padding:0 13px 13px;display:flex;flex-wrap:wrap;gap:10px}.motion-options label{min-height:48px;font-size:12px;display:flex;align-items:center;gap:8px}.motion-options .plate-resp-scrub{display:block;width:100%}.motion-options .plate-resp-scrub input{width:100%;min-height:48px}#respiration-controls .plate-resp-heading button{padding:11px 12px;border:1px solid var(--line);font-size:12px}#respiration-controls .plate-resp-phases button{font-size:12px}#respiration-controls .plate-resp-science{font-size:12px;line-height:1.8}#respiration-controls .plate-resp-readout{font-size:12px}#respiration-controls .plate-resp-caption{font-size:11px}
.small-cta{min-height:48px}.brand{min-height:48px}.plate-toolbar button{min-width:48px;min-height:48px}#resp-play-inline{background:#7853b3;color:white;border-color:#7853b3}#respiration-controls{border:1px solid var(--line);border-radius:18px;background:var(--surface);padding:18px 15px}#respiration-controls #plate-breath-play{background:var(--ink);color:var(--surface);font-weight:500}#respiration-controls .plate-resp-phases{display:flex;gap:8px}#respiration-controls .plate-resp-phases button{border-radius:9px;border:1px solid var(--line);background:var(--bg);color:var(--ink);padding:10px}#respiration-controls .plate-resp-phases button[aria-pressed=true]{background:var(--purple);color:var(--accent);border-color:#b6a2cf}html[data-theme=twilight] #respiration-controls .plate-resp-readout,html[data-theme=twilight] #respiration-controls .plate-resp-caption,html[data-theme=twilight] #respiration-controls .plate-resp-science{color:var(--muted)}html[data-theme=twilight] #respiration-controls .plate-resp-readout strong{color:var(--ink)}.reader .chapter .chapter-num{display:none}
#respiration-controls .plate-resp-heading{display:none}#respiration-controls .plate-resp-tools{margin-top:0}#respiration-controls .plate-resp-science a{color:var(--accent)}#respiration-controls .plate-resp-readout{display:flex;flex-direction:column;gap:6px}#respiration-controls .plate-resp-readout #plate-breath-status{font-size:10px;color:var(--muted)}#respiration-controls #plate-breath-reset{background:var(--bg);border:1px solid var(--line);border-radius:10px;color:var(--ink);padding:8px 12px}
