/* AI133: responsive and accessible finishing layer. Data and application routes are unchanged. */
:root{--te133-bg:#f3f7f5;--te133-panel:#fff;--te133-soft:#eaf2ee;--te133-text:#183b34;--te133-muted:#526c64;--te133-border:#cbded5;--te133-accent:#096d5b;--te133-on-accent:#fff;--te133-focus:#096f91;--te133-shadow:0 6px 24px #173e3410;color-scheme:light}
:root[data-theme=dark]{--te133-bg:#0c1b19;--te133-panel:#142c27;--te133-soft:#1d3831;--te133-text:#edf7f2;--te133-muted:#bdd1c7;--te133-border:#3e5c50;--te133-accent:#8be5c4;--te133-on-accent:#092c22;--te133-focus:#9ad8ff;--te133-shadow:0 8px 30px #0003;color-scheme:dark}
html{scroll-padding-top:calc(var(--header101,74px) + 16px);text-size-adjust:100%;-webkit-text-size-adjust:100%}
body{--ink:var(--te133-text);--muted:var(--te133-muted);--paper:var(--te133-bg);--surface:var(--te133-panel);--white:var(--te133-panel);--soft:var(--te133-soft);--line:var(--te133-border);background-color:var(--te133-bg);color:var(--te133-text)}
body :where(.social125,.s125-dialog){--s-ink:var(--te133-text);--s-muted:var(--te133-muted);--s-line:var(--te133-border);--s-paper:var(--te133-panel)}
:where(main,.page,.panel,.bio-grid,.bio-facts,.actions,.social125,.s125-layout,.community100,.community100-grid,.community100-profile-head,.tc98-workspace,.tc98-fields,.d125-lobby,.d125-table,.live132-panel)>*{min-width:0}
:where(main,.page,.panel,.social125,.community100,.live132-panel) :where(h1,h2,h3,h4,p,dd,dt,li,label,summary,figcaption,legend){overflow-wrap:anywhere;word-break:normal}
:where(h1,h2,h3,h4){text-wrap:balance}:where(p,li,dd,figcaption){line-height:1.6}
:where(.panel,.animal-card,.facility-card,.community100-card,.encounter,.live132-panel,.tc98-editor){border-color:var(--te133-border);box-shadow:var(--te133-shadow)}
:where(.panel,.community100-card,.live132-panel,.tc98-editor){background-color:var(--te133-panel);color:var(--te133-text)}
:where(.actions,.community100-counts,.s125-counts,.d125-tools,.people-selected121,.community100-tabs,.community100-toolbar){gap:10px;flex-wrap:wrap}
:where(.actions,.community100-toolbar)>:where(a,button,label){max-width:100%;white-space:normal;overflow-wrap:anywhere}
:where(button,.button,[role=button],summary){touch-action:manipulation}
:where(button,.button){min-height:44px;line-height:1.35}
:where(input,select,textarea){max-width:100%;min-width:0;accent-color:var(--te133-accent)}
:where(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea){background-color:var(--te133-panel);color:var(--te133-text);border-color:var(--te133-border)}
:where(input,textarea)::placeholder{color:var(--te133-muted);opacity:1}
:where(textarea){resize:vertical;min-height:100px}
:where(form,.live132-panel,.tc98-fields) label{line-height:1.5}
:where(form,.live132-panel,.tc98-fields) label>:where(input,select,textarea){width:100%}
:where(form,.live132-panel,.tc98-fields) label>:where(input[type=checkbox],input[type=radio],input[type=color],input[type=range]){width:revert}
:focus-visible{outline:3px solid var(--te133-focus)!important;outline-offset:3px}
:where(.meta,small,.s125-page-head p,.community100-card p){color:var(--te133-muted)}
:where(dialog){max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overscroll-behavior:contain;scrollbar-gutter:stable}
dialog:not(.d132-reveal){background:var(--te133-panel);color:var(--te133-text);border-color:var(--te133-border)}
:where(dialog) :where(input,select,textarea){background:var(--te133-panel);color:var(--te133-text)}
:where(.tabs,.community100-nav,.community100-tabs,.s125-tabs,.explore118-chips){max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding-bottom:8px}
:where(.tabs,.community100-tabs,.s125-tabs)>*{flex-shrink:0}
.community100-profile-head{align-items:flex-start}.community100-profile-head>div{flex:1;min-width:0}.community100-profile-head h1{line-height:1.15;overflow-wrap:anywhere}
.community100-bio{line-height:1.65}.community100-counts{align-items:center}.community100-counts>*{line-height:1.4}
.profile-coins-row106{gap:12px;align-items:start}.profile-coins-row106>a{min-width:0}.profile-coins-row106 small{white-space:normal;line-height:1.4}
.community100-grid,.community100-members{align-items:stretch}.community100-card{display:flex;flex-direction:column}.community100-card>.actions{margin-top:auto}.community100-card h3{line-height:1.4}
.s125-post{min-width:0}.s125-post :where(p,h2,h3){overflow-wrap:anywhere}.s125-post-head>div{min-width:0}.s125-post-head small{white-space:normal}
.social125 :where(button,.button){background:var(--te133-soft);color:var(--te133-text);border-color:var(--te133-border)}
.social125 :where(input,select,textarea){background:var(--te133-panel);color:var(--te133-text);border-color:var(--te133-border)}
.social125 .s125-tabs [aria-current=page]{background:var(--te133-accent);color:var(--te133-on-accent)}
.live132-panel{padding:clamp(16px,2.5vw,26px);margin-block:20px}.live132-panel>h2{font-size:clamp(23px,3vw,30px);line-height:1.2}.live132-panel summary{cursor:pointer;padding-block:10px;line-height:1.5}.live132-panel dd{margin:0;line-height:1.65}.live132-panel dd a{text-decoration:underline;text-underline-offset:3px}.live132-panel article{border-color:var(--te133-border)}
.tc98-workspace{align-items:start}.tc98-fields :where(input,select,textarea){width:100%}.tc98-preview{max-width:100%;min-width:0}.tc98-preview canvas{width:100%;height:auto}.tc98-fields details>summary{padding-block:6px}.tc98-fields .tc98-stat{min-width:0}.tc98-fields small{line-height:1.5}
.te133-table-region{max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;border:1px solid var(--te133-border);border-radius:14px;margin-block:16px;background:var(--te133-panel)}
.te133-table-region table{border-collapse:collapse;margin:0;width:100%;min-width:min(560px,100%)}
.te133-table-region :where(th,td){text-align:start;vertical-align:top;padding:12px 14px;line-height:1.5;overflow-wrap:anywhere;max-width:32rem}
.te133-table-region th{background:var(--te133-soft);color:var(--te133-text)}.te133-table-region tr+tr{border-top:1px solid var(--te133-border)}
:where(.chart,.chart-container,.graph-summary,.timeline,.explorer-timeline,.orca-timeline,.science-table-wrap){max-width:100%;min-width:0}
:where(.chart,.chart-container) svg[viewBox]{display:block;width:100%;height:auto;max-width:100%}
:where(.chart,.chart-container) :where(text,.legend,.chart-label){fill:currentColor;color:var(--te133-text)}
:where(.timeline,.explorer-timeline,.orca-timeline){overflow-wrap:anywhere}
.d125-lobby>*{min-width:0}.d125-score{flex-wrap:wrap;gap:10px}.d125-tools{align-items:center}.d125-card>span{white-space:normal;overflow-wrap:anywhere;line-height:1.35}.d125-card small{color:inherit}.d125-controls button{white-space:normal}.d125-reservoir{max-width:100%;flex-wrap:wrap}.d125-log li{overflow-wrap:anywhere}
.d132-reveal{scrollbar-gutter:auto}.d132-reveal small{color:#d7f3ed}.d132-reveal .s125-eyebrow{color:#a6ffe4}
:root[data-theme=dark] :where(.banner,.audit-card,.stat-card,.metric,.graph-summary,.community100-nav a,.community100-card,.community100-message,.profile-coins-box106,.profile-shortcut102,.people-results121 button,.trip-notes121,.tc122-review){background-color:var(--te133-panel);color:var(--te133-text);border-color:var(--te133-border)}
:root[data-theme=dark] :where(.social125 .s125-aside>*,.s125-empty,.s125-notice,.s125-request,.s125-setting,.s125-people,.s125-report){background:var(--te133-panel);color:var(--te133-text)}
:root[data-theme=dark] .social125 :where(textarea,input,select){background:var(--te133-bg);color:var(--te133-text)}
:root[data-theme=dark] :where(.s125-eyebrow,.eyebrow){color:#96e3ca}
:root[data-theme=dark] :where(.tag,.badge):not(.dark){background:#254a3c;color:#d6f6e4;border-color:#4a725c}
:root[data-theme=dark] :where(table,thead,tbody,tr,td,th){border-color:var(--te133-border)}
:root[data-theme=dark] :where(td,th){color:var(--te133-text);background-color:var(--te133-panel)}
@media(min-width:1000px){#main{min-width:0}.page{max-width:1440px}.community100-profile-head{gap:26px}.live132-panel details[open]{margin-top:8px}.live132-panel details[open]>label{max-width:100%}}
@media(max-width:999px){:where(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){font-size:16px!important}:where(.bio-heading,.s125-page-head,.d125-heading){flex-wrap:wrap;gap:16px}.tc98-workspace{grid-template-columns:minmax(0,1fr)!important}.d125-lobby{grid-template-columns:minmax(0,1fr)}.d125-heading h1{font-size:clamp(32px,7vw,48px)}}
@media(max-width:699px){.page{padding-inline:16px}.panel{padding:18px}.community100-profile-head{gap:14px;align-items:center}.community100-profile-head .community100-avatar{width:78px;height:78px;flex-basis:78px}.community100-profile-head h1{font-size:clamp(24px,7vw,34px)!important;margin-bottom:8px}.community100-counts{gap:8px 14px}.community100-counts>*{font-size:13px}.community100-tabs{display:flex;flex-wrap:nowrap}.community100-tabs button{padding:10px 14px}.community100-grid,.community100-members{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.community100-card{padding:12px}.community100-card h3{font-size:16px}.s125-layout{grid-template-columns:minmax(0,1fr)}.s125-page-head{align-items:flex-start}.social125{padding-inline:0}.live132-panel{border-radius:16px}.tc98-editor{padding:14px}.tc98-preview{position:relative;top:auto;justify-self:center}.fg122-stats{gap:10px}.d125-table{padding:12px}.d125-tools{gap:8px}.d125-tools>*{padding:10px;font-size:13px}.d125-hand>div{gap:10px}.d125-controls{padding:14px}.d132-reveal{padding:18px}.d132-versus{gap:10px}.d132-versus>div{width:44%}.d132-reveal h2{font-size:28px;clear:both;padding-top:12px}.te133-table-region :where(td,th){padding:10px;font-size:14px}.profile-coins-row106{flex-wrap:wrap}.profile-strip{gap:10px}}
@media(max-width:379px){.page{padding-inline:12px}.panel{padding:14px}.community100-profile-head{flex-wrap:wrap}.community100-profile-head>div{flex-basis:100%}.community100-grid,.community100-members{grid-template-columns:minmax(0,1fr)}.actions>.button{flex:1 1 130px;text-align:center}.profile-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.live132-panel{padding:14px}.d125-score{font-size:12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{scroll-behavior:auto!important}.d125-card,.animal-card,.facility-card{transition:none!important;transform:none!important}}
@media(forced-colors:active){:where(button,.button,input,select,textarea,.panel,.te133-table-region){border:1px solid CanvasText}.tag,.badge{forced-color-adjust:auto}}
@media print{body{background:#fff!important;color:#111!important}.te133-table-region{overflow:visible;border-color:#888}dialog{display:none!important}.live132-panel{background:#fff!important;color:#111!important;box-shadow:none}}
.profile-shortcuts102{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));overflow:visible;gap:10px;scroll-snap-type:none}.profile-shortcuts102 a{min-width:0;min-height:86px;align-content:center;padding:10px 6px}.profile-shortcuts102 span{font-size:12px;line-height:1.4;overflow-wrap:anywhere}@media(max-width:999px){.profile-shortcuts102{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:379px){.profile-shortcuts102{grid-template-columns:repeat(3,minmax(0,1fr))}}
html[data-theme] .social125{--s-ink:var(--te133-text);--s-muted:var(--te133-muted);--s-line:var(--te133-border);--s-paper:var(--te133-panel)}
html[data-theme=light] .s125-eyebrow{color:#096d5b}html[data-theme=dark] .person-link{background:var(--te133-soft);color:var(--te133-text)}

:is(.te133-table-region,.compare-table)[data-scroll133=true]::before{content:'Scroll sideways to see all columns →';display:block;position:sticky;left:0;width:100%;padding:9px 12px;font:600 12px/1.5 system-ui,sans-serif;color:var(--te133-muted);background:var(--te133-soft);border-bottom:1px solid var(--te133-border)}
@media(max-width:699px){.community100-bio{font-size:14px;line-height:1.65}}
.profile-coins-row106>a[href="#/wildlife-badges"]{width:auto!important;max-width:100%;flex:1 1 100%;text-align:left;font-size:14px;white-space:normal;overflow-wrap:normal}
