:root{--red:#e01c15;--ink:#323232;--muted:#646464;--line:#dedede;--paper:#fbfbfb;--soft:#f5f5f5;--radius:5px;--shadow:0 0 4px rgb(0 0 0 / 18%);--sans:"sofia-pro",Arial,sans-serif;--serif:"source-serif-4-small-text",Georgia,serif}
*{box-sizing:border-box}html{font-size:100%;scroll-behavior:smooth;scroll-padding-top:90px}body{margin:0;background:var(--paper);color:var(--ink);font:400 1rem/1.5 var(--sans);-webkit-font-smoothing:antialiased}button,input,select{font:inherit;color:inherit}button,a,input,select,summary,[role=button]{-webkit-tap-highlight-color:transparent}button,summary,[role=button]{cursor:pointer}button{touch-action:manipulation}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--red);outline-offset:4px}p,h1,h2{margin:0}h1{font-size:2rem;line-height:1.15;letter-spacing:-.025em;color:#111}h2{font-size:1.125rem;line-height:1.3;color:#111}a{color:inherit}svg{display:block}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link{position:fixed;top:-100px;left:16px;z-index:100;background:#fff;padding:12px}.skip-link:focus{top:8px}
.app-header{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:76px;padding:12px max(20px,calc((100% - 1160px)/2));padding-top:max(12px,env(safe-area-inset-top));background:#fff;border-bottom:1px solid #ebebeb}.brand{display:flex;align-items:center;gap:20px;min-width:0}.brand img{width:141px;height:40px;object-fit:contain}.brand>span{font-weight:700;padding-left:20px;border-left:1px solid var(--line)}.shell{max-width:1220px;margin:auto;padding:32px 30px max(36px,env(safe-area-inset-bottom))}.intro{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:24px}.eyebrow{font-size:.75rem;letter-spacing:.07em;text-transform:uppercase;margin-bottom:8px;color:var(--muted)}.privacy{font-size:.8125rem;display:flex;align-items:center;gap:7px}.privacy i{width:7px;height:7px;background:#507d28;border-radius:50%;flex-shrink:0}
.text-button{border:0;background:transparent;min-height:44px;padding:8px;font-weight:600;font-size:.875rem;text-decoration:underline;text-underline-offset:4px}.text-button:hover:not(:disabled){color:var(--red)}.outline-button,.primary-btn{min-height:48px;padding:12px 18px;border:1px solid var(--muted);border-radius:var(--radius);background:#fff;font-weight:600;font-size:.9375rem}.primary-btn{background:var(--red);border-color:var(--red);color:#fff}.primary-btn:hover:not(:disabled){background:#bc1913}.outline-button:hover:not(:disabled){border-color:var(--ink);background:var(--soft)}.outline-button span{margin-left:12px}
.offline-card{display:flex;justify-content:space-between;align-items:center;gap:20px;border:1px solid var(--line);border-left:4px solid var(--red);border-radius:var(--radius);padding:16px 20px;background:#fff;margin-bottom:24px}.offline-card strong{font-size:.9375rem}.offline-card p{font-size:.8125rem;color:var(--muted);margin-top:3px}.offline-card button{flex-shrink:0}.offline-card.ready{border-left-color:#507d28}.connection-state:empty{display:none}.prototype-banner{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:0 20px;min-height:28px;padding:3px max(16px,env(safe-area-inset-right)) 3px max(16px,env(safe-area-inset-left));background:#e9e9ef;color:var(--muted);border-bottom:1px solid var(--line);font-size:.75rem}.prototype-version{white-space:nowrap}.prototype-banner:has(.update-notice:not([hidden])){background:#fff4ce;color:var(--ink);border-bottom-color:#ead68c}.update-notice{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:0 8px;font-size:.8125rem}.update-notice .text-button{min-height:44px;padding:4px 8px}.notice{display:none;border-left:4px solid var(--red);padding:16px;margin-bottom:20px;background:#fff0ef}.notice.show{display:block}
.workspace{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,1fr);grid-template-areas:'control results' 'visual results' 'settings results';align-items:start;gap:24px}.card{min-width:0;background:#fff;border-radius:var(--radius);box-shadow:var(--shadow)}.control-card{grid-area:control;padding:20px;border-top:5px solid var(--red)}.mode-switch{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid var(--line)}.mode-btn{min-height:48px;border:0;border-bottom:3px solid transparent;background:transparent;font-weight:500;color:var(--muted);font-size:.9375rem}.mode-btn.active{color:#111;border-bottom-color:var(--red);font-weight:700}.mode-panel{padding-top:24px}.live-action{display:flex;align-items:center;gap:24px;padding:8px 0 12px}.record-button{width:104px;height:104px;flex:0 0 104px;border:7px solid #fce8e7;border-radius:50%;background:var(--red);color:#fff;display:grid;place-items:center;transition:background .2s,transform .2s}.record-button:hover:not(:disabled){transform:scale(1.035)}.record-button.is-live{background:var(--ink);border-color:#e9e9e9}.mic-symbol{width:34px;height:40px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}.stop-symbol{display:none;width:24px;height:24px;border-radius:3px;background:#fff}.record-button.is-live .mic-symbol{display:none}.record-button.is-live .stop-symbol{display:block}.record-copy p{font-size:.875rem;color:var(--muted);margin-top:8px}.status-row{border-top:1px solid #ededed;padding-top:16px;margin-top:20px}.status-pill{display:inline-block;font-size:.75rem;font-weight:700;letter-spacing:.02em}.status-pill.ready{color:#416820}.status-pill.error{color:#be1b15}.status-row p{font-size:.8125rem;color:var(--muted);margin-top:4px;overflow-wrap:anywhere}.progress-track{height:4px;background:var(--soft);margin-top:14px;overflow:hidden;opacity:0}.progress-track.show{opacity:1}.progress-bar{height:100%;width:0;background:var(--red);transition:width .15s}
.dropzone{border:1px dashed #909090;border-radius:5px;text-align:center;padding:16px;background:var(--soft)}.dropzone>span{display:block;color:var(--red);font-size:1.75rem}.dropzone strong{display:block}.dropzone p{font-size:.8125rem;color:var(--muted);margin-top:6px}.dropzone.dragging{border-color:var(--red);background:#fff0ef}.file-chip{display:none;align-items:center;gap:8px;justify-content:space-between;min-width:0}.file-chip.show{display:flex}.file-chip>div{min-width:0}.file-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.9375rem}.file-meta{font-size:.8125rem;color:var(--muted)}audio{width:100%;height:48px;margin:16px 0 0}.mode-panel>.primary-btn,.mode-panel>.outline-button{width:100%;margin-top:16px}
.results-card{grid-area:results;overflow:hidden}.results-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 20px;border-bottom:1px solid #ebebeb}.results-title{display:flex;align-items:center;gap:8px;min-width:0}.count-badge{background:var(--red);color:#fff;border-radius:4px;padding:2px 7px;font-size:.75rem;font-weight:700}.results-actions{display:flex}.detections{max-height:680px;overflow:auto;overscroll-behavior:contain}.detection-empty{padding:42px 20px;text-align:center}.detection-empty svg{width:64px;height:40px;stroke:var(--red);stroke-width:2;fill:none;margin:0 auto 20px}.detection-empty strong{display:block;font-size:1rem}.detection-empty p{font-size:.875rem;color:var(--muted);margin-top:8px}.detection{padding:18px 20px;border-bottom:1px solid #ebebeb}.detection:last-child{border-bottom:0}.detection-top{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}.common-name{font-size:1rem;font-weight:700;overflow-wrap:anywhere;color:#111}.scientific-name{font:italic .875rem/1.4 var(--serif);color:var(--muted);margin-top:3px}.confidence{font-size:1.25rem;font-weight:700;color:var(--red);font-variant-numeric:tabular-nums}.confidence small{font-size:.75rem;margin-left:2px}.detection-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;font-size:.75rem;color:var(--muted)}.class-chip{font-weight:700}.score-line{height:3px;background:#f0f0f0;margin-top:12px}.score-line span{display:block;height:100%;background:var(--red)}
.visual-card{grid-area:visual;overflow:hidden;background:#252b28;color:#fff}.visual-head{display:flex;justify-content:space-between;gap:12px;padding:16px 20px;align-items:center}.visual-head h2{color:#fff;font-size:.9375rem}.visual-head>span{font-size:.75rem;color:#bec7c1}.visual-wrap{height:150px;position:relative;background:#07120e}#spectrogram{display:block;width:100%;height:100%}.visual-empty{position:absolute;inset:0;display:grid;place-items:center;color:#adbbb1;font-size:.8125rem;text-align:center;padding:20px}.visual-empty.hidden{display:none}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid #47514b}.metric{padding:12px;border-right:1px solid #47514b}.metric:last-child{border-right:0}.metric span{display:block;font-size:.75rem;color:#bec7c1}.metric strong{display:block;font-size:1rem;margin-top:4px;font-variant-numeric:tabular-nums}
.settings-card{grid-area:settings;padding:0 20px;background:var(--soft)}summary{display:flex;align-items:center;justify-content:space-between;list-style:none;min-height:60px;font-weight:700;font-size:1rem;gap:16px}summary::-webkit-details-marker{display:none}summary::after{content:'+';font-size:1.5rem;color:var(--red);font-weight:400}details[open]>summary::after{content:'−'}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;padding:12px 0 24px}.setting{min-width:0}.setting-head{display:flex;justify-content:space-between;gap:12px}.setting label{font-size:.875rem;font-weight:600}.setting output{font-size:.875rem;font-variant-numeric:tabular-nums}.setting p{font-size:.75rem;color:var(--muted)}input[type=range]{width:100%;height:44px;accent-color:var(--red);margin:0}select{width:100%;min-height:52px;border:0;border-bottom:2px solid var(--muted);border-radius:5px 5px 0 0;background:#fff;margin-top:8px;padding:10px 12px;font-size:1rem}.toggle-setting{display:flex;align-items:center;justify-content:space-between;gap:16px}.toggle-setting strong{font-size:.875rem}.toggle-setting small{display:block;font-size:.75rem;color:var(--muted);margin-top:4px}.toggle-setting input{width:24px;height:24px;accent-color:var(--red);flex-shrink:0}.advanced-sources{grid-column:1/-1;border-top:1px solid var(--line)}.advanced-sources summary{font-size:.875rem;font-weight:500}.advanced-sources p{font-size:.8125rem;color:var(--muted);margin-bottom:12px}.source-grid{display:grid;gap:16px;grid-template-columns:1fr 1fr}.source-grid label{min-width:0;font-size:.875rem}.source-grid input{display:block;max-width:100%;font-size:.8125rem;margin-top:8px}input::file-selector-button{min-height:44px;border:1px solid var(--line);background:#fff;border-radius:5px;margin-right:8px;padding:8px}footer{display:flex;justify-content:space-between;gap:20px;padding-top:28px;color:var(--muted);font-size:.75rem}footer a{align-self:start;white-space:nowrap}.floating-stop{display:none}dialog{max-width:400px;width:calc(100% - 40px);border:0;border-radius:8px;padding:24px;box-shadow:0 12px 60px #0003}dialog::backdrop{background:#0007}dialog p{margin:16px 0;font-size:.9375rem}dialog button{width:100%}
@media(max-width:1023px){.shell{padding:24px 20px 32px}.workspace{gap:20px;grid-template-columns:minmax(0,1fr) minmax(300px,.9fr)}.intro{display:block}.privacy{margin-top:12px}.brand>span{display:none}.offline-card{padding:14px 16px}}
@media(max-width:767px){h1{font-size:1.65rem}.app-header{min-height:64px;padding-right:max(16px,env(safe-area-inset-right));padding-left:max(16px,env(safe-area-inset-left));padding-bottom:8px}.brand img{width:124px;height:35px}.shell{padding:24px max(16px,env(safe-area-inset-right)) max(28px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}.intro{margin-bottom:20px}.eyebrow{font-size:.75rem}.privacy{font-size:.75rem;margin-top:10px}.offline-card{gap:12px;flex-wrap:wrap;margin-bottom:20px}.offline-card button{width:100%;min-height:44px}.offline-card.ready{padding:12px 16px}.offline-card.ready p{font-size:.75rem}.workspace{grid-template-columns:minmax(0,1fr);grid-template-areas:'control' 'results' 'visual' 'settings';gap:20px}.control-card{padding:16px}.live-action{gap:18px}.record-button{width:88px;height:88px;flex-basis:88px}.record-copy h2{font-size:1.125rem}.record-copy p{font-size:.875rem}.mode-panel{padding-top:20px}.status-row{margin-top:12px}.results-head{padding:10px 16px}.detection{padding:16px}.detections{max-height:60vh}.detection-empty{padding:28px 16px}.visual-head{padding:14px 16px}.visual-wrap{height:120px}.metric{padding:12px 8px}.metric strong{font-size:.9375rem}.settings-card{padding:0 16px}.settings-grid,.source-grid{grid-template-columns:1fr}.advanced-sources{grid-column:auto}footer{display:block}footer a{display:inline-block;min-height:44px;margin-top:12px}.is-listening .floating-stop{position:fixed;display:flex;align-items:center;justify-content:center;gap:10px;z-index:20;bottom:max(12px,env(safe-area-inset-bottom));left:16px;right:16px;min-height:54px;border:1px solid #fff;border-radius:6px;background:#323232;color:#fff;font-weight:700;box-shadow:0 4px 24px #0004}.is-listening .shell{padding-bottom:100px}}
.results-switch{padding:0 16px}.results-switch span{font-size:.8125rem;margin-left:5px}.history-head{flex-wrap:wrap}.history-head .results-actions{flex-wrap:wrap}.observation-hint{font-size:.875rem;color:var(--muted);padding:12px 20px;border-bottom:1px solid var(--line)}.observation-feedback{padding:0 20px}.observation-feedback p:not(:empty){padding:12px 0;font-size:.875rem;color:#416820}.observation-feedback p.error,#delete-observation-error{color:#be1b15}.observation-meta{font-size:.875rem;color:var(--muted);margin-top:8px;overflow-wrap:anywhere}.observation-actions{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:8px}.observation-actions .save-observation{margin-left:auto}.observation-actions .text-button{flex-shrink:0}.dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}#more-observations{width:100%}#observation-empty{font-size:.9375rem;color:var(--muted)}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}
body[data-view]:has(#account-screen:not([hidden])) { padding-bottom: 0; background: #fff; height: auto; min-height: 100svh; }
.account-screen { min-height: calc(100svh - 28px); background: #fff; display: flex; flex-direction: column; flex-shrink: 0; }
.onboarding-header { display: flex; align-items: center; gap: 16px; width: 100%; max-width: 1120px; margin: 0 auto; padding: 28px 40px; }
.onboarding-header img { width: 141px; height: 40px; object-fit: contain; }
.beta-label { margin-left: auto; border: 1px solid #eddeda; border-radius: 100px; padding: 5px 12px; color: #9c413b; background: #fff8f6; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.onboarding-header button { min-height: 44px; }
.account-panel { width: 100%; max-width: 1120px; margin: auto; padding: 44px 40px 64px; overflow-wrap: anywhere; }
.account-loading { padding: 32px 24px; text-align: center; color: var(--muted); }
.account-panel h1[tabindex="-1"]:focus { outline: none; }
.account-panel p { margin-bottom: 16px; }
.account-panel .eyebrow { margin: 0 0 14px; color: #82716d; font-size: .75rem; font-weight: 600; letter-spacing: .13em; }
#account-welcome { display: grid; grid-template-columns: 1fr 1fr; gap: 76px; align-items: center; }
#account-welcome-title { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.04; letter-spacing: -.045em; margin: 0 0 22px; }
#account-welcome-title span { color: var(--red); }
.welcome-lead { max-width: 360px; color: var(--muted); font-size: 1.125rem; line-height: 1.55; }
.welcome-features { list-style: none; padding: 0; margin: 0; display: grid; gap: 26px; }
.welcome-features li { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: start; gap: 18px; }
.welcome-features h3 { font-size: 1.0625rem; line-height: 1.3; margin: 0 0 6px; letter-spacing: -.015em; }
.welcome-features p { font-size: .9375rem; line-height: 1.5; color: var(--muted); margin: 0; }
.feature-icon { width: 52px; height: 56px; color: var(--red); display: grid; place-items: center; }
.account-screen .feature-icon i { display: block; width: auto; height: auto; font-size: 29px; line-height: 1; }
@font-face { font-family: "Bird Welcome List"; font-style: normal; font-weight: 300; font-display: block; src: url('../assets/fontawesome/pro-fa-light-300-0.woff2') format('woff2'); unicode-range: U+F03A; }
@font-face { font-family: "Bird Welcome Wifi"; font-style: normal; font-weight: 300; font-display: block; src: url('../assets/fontawesome/pro-fa-light-300-21.woff2') format('woff2'); unicode-range: U+F6AC; }
@font-face { font-family: "Bird Welcome Shield"; font-style: normal; font-weight: 300; font-display: block; src: url('../assets/fontawesome/pro-fa-light-300-17.woff2') format('woff2'); unicode-range: U+F3ED; }
.feature-icon .fa-list { font-family: "Bird Welcome List"; }
.feature-icon .fa-wifi-slash { font-family: "Bird Welcome Wifi"; }
.feature-icon .fa-shield-halved { font-family: "Bird Welcome Shield"; }
.feature-icon :is(.fa-list,.fa-wifi-slash,.fa-shield-halved) { font-style: normal; font-weight: 300; -webkit-font-smoothing: antialiased; }
.feature-icon .fa-list::before { content: '\f03a'; }
.feature-icon .fa-wifi-slash::before { content: '\f6ac'; }
.feature-icon .fa-shield-halved::before { content: '\f3ed'; }
.welcome-start { margin-top: 32px; padding-top: 26px; border-top: 1px solid #eeece8; }
#beta-request { margin-bottom: 20px; }
#beta-request .account-note { margin: 0; }
#beta-request-status:empty { display: none; }
#beta-request:not([hidden]) ~ #account-start { background: transparent; color: var(--red); border: 1px solid var(--red); }
.account-screen .primary-btn { width: 100%; min-height: 54px; border-radius: 14px; }
#account-details { max-width: 440px; margin: 0 auto; }
.account-form-symbol { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: #fff0ec; color: var(--red); margin: 8px 0 24px; }
#account-details-title { font-size: 2.25rem; letter-spacing: -.035em; line-height: 1.1; margin: 0 0 16px; }
#account-details form { margin-top: 28px; }
.account-screen .account-actions { margin: 24px 0 16px; }
.account-note, #account-welcome-hint, #account-identity, #account-status, #account-summary { color: var(--muted); font-size: .875rem; }
.account-panel .account-error { color: #a51b15; background: #fff1ef; padding: 12px; border-radius: 8px; margin: 0; }
.account-panel button { min-height: 44px; }
#account-back { padding-left: 0; margin-bottom: 12px; }
#account-done { width: 100%; margin-top: 12px; }
.account-settings { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.account-settings h3 { margin: 0 0 4px; font-size: 1rem; }
.account-settings button { flex-shrink: 0; }
.account-panel form { display: grid; gap: .75rem; }
.account-panel label { display: grid; gap: .3rem; }
.account-panel input { width: 100%; min-height: 44px; padding: .6rem; border: 1px solid #bbb; border-radius: 8px; font: inherit; box-sizing: border-box; }
.account-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .75rem; }
.account-panel [hidden] { display: none !important; }
@media(max-width:767px) {
  .onboarding-header { padding: max(16px, env(safe-area-inset-top)) 24px 16px; gap: 10px; flex-wrap: wrap; }
  .onboarding-header img { width: 124px; height: 35px; }
  .onboarding-header button { margin-left: auto; }
  .account-panel { padding: 20px max(24px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); margin: 0 auto; max-width: 520px; }
  #account-welcome { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  #account-welcome-title { font-size: 2.625rem; margin-bottom: 14px; }
  .account-panel .welcome-lead { font-size: 1rem; margin-bottom: 0; }
  .welcome-features { gap: 18px; }
  .welcome-features li { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
  .feature-icon { width: 44px; height: 48px; border-radius: 13px; }
  .account-screen .feature-icon i { font-size: 26px; }
  .welcome-features h3 { font-size: 1rem; }
  .welcome-features p { font-size: .875rem; }
  .welcome-start { margin-top: 22px; padding-top: 18px; }
}

/* iOS-style shell adapted from the read-only Birds of Switzerland prototypes. */
/* Release notes reuse locally bundled Font Awesome Pro Light glyphs. */
@font-face{font-family:"Bird Release Notes";font-style:normal;font-weight:300;font-display:block;src:url('../assets/fontawesome/pro-fa-light-300-0.woff2') format('woff2');unicode-range:U+F004-F005,U+F007,U+F03A,U+F03E,U+F060,U+F0AC}
@font-face{font-family:"Bird Release Notes";font-style:normal;font-weight:300;font-display:block;src:url('../assets/fontawesome/pro-fa-light-300-1.woff2') format('woff2');unicode-range:U+F130,U+F14E,U+F302}
@font-face{font-family:"Bird Release Notes";font-style:normal;font-weight:300;font-display:block;src:url('../assets/fontawesome/pro-fa-light-300-14.woff2') format('woff2');unicode-range:U+F05A}
@font-face{font-family:"Bird Release Notes";font-style:normal;font-weight:300;font-display:block;src:url('../assets/fontawesome/pro-fa-light-300-21.woff2') format('woff2');unicode-range:U+F6AC}
#whats-new-dialog .fa-light,.whats-new-setting .fa-light{font-family:"Bird Release Notes";font-style:normal;font-weight:300;line-height:1;-webkit-font-smoothing:antialiased;color:var(--red)}
:is(#whats-new-dialog,.whats-new-setting) .fa-circle-info::before{content:'\f05a'}
#whats-new-dialog .fa-images::before{content:'\f302'}
#whats-new-dialog .fa-list::before{content:'\f03a'}
#whats-new-dialog .fa-image::before{content:'\f03e'}
#whats-new-dialog .fa-arrow-left::before{content:'\f060'}
#whats-new-dialog .fa-microphone::before{content:'\f130'}
#whats-new-dialog .fa-user::before{content:'\f007'}
#whats-new-dialog .fa-globe::before{content:'\f0ac'}
#whats-new-dialog .fa-star::before{content:'\f005'}
#whats-new-dialog .fa-heart::before{content:'\f004'}
#whats-new-dialog .fa-compass::before{content:'\f14e'}
#whats-new-dialog .fa-wifi-slash::before{content:'\f6ac'}
#whats-new-dialog{padding:0;overflow:hidden}
#whats-new-dialog[open]{display:flex;flex-direction:column;max-height:90dvh}
#whats-new-dialog .sheet-header{position:relative;flex-shrink:0;background:#f2f2f7}
#whats-new-dialog .sheet-header h2{font-size:2rem;font-weight:750;line-height:1.15;letter-spacing:-.035em}
.whats-new-content{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 24px 24px;scrollbar-gutter:stable;overflow-wrap:anywhere}
#whats-new-dialog .whats-new-intro{color:var(--muted);font-size:1rem;margin:0 0 28px}
.whats-new-build+.whats-new-build{border-top:1px solid var(--line);margin-top:28px;padding-top:24px}
.whats-new-build h3{font-size:.875rem;font-weight:650;color:var(--muted);margin:0 0 20px;font-variant-numeric:tabular-nums}
.whats-new-category+.whats-new-category{margin-top:24px}
.whats-new-category h4{font-size:.8125rem;font-weight:650;color:var(--muted);margin:0 0 16px}
.whats-new-category ul{list-style:none;padding:0;margin:0;display:grid;gap:24px}
.whats-new-category li{display:grid;grid-template-columns:36px minmax(0,1fr);gap:16px;align-items:start}
.whats-new-category li>.fa-light{font-size:28px;text-align:center;padding-top:3px}
.whats-new-category h5{font-size:1.0625rem;line-height:1.35;font-weight:650;margin:0}
#whats-new-dialog .whats-new-category p{font-size:1rem;line-height:1.5;color:var(--muted);margin:5px 0 0}
.whats-new-footer{flex-shrink:0;padding:16px 24px max(24px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#f2f2f7}
.whats-new-footer .primary-btn{min-height:52px;width:100%;border-radius:26px;font-size:1.0625rem}
.whats-new-setting{display:flex;align-items:center;gap:14px;width:100%;min-height:56px;padding:16px 18px;margin:4px 0 24px;border:0;border-radius:22px;background:#fff;color:var(--ink);font:inherit;text-align:left}
.whats-new-setting .fa-light{font-size:22px}
.whats-new-setting span:last-child{margin-left:auto;color:var(--muted);font-size:1.5rem;line-height:1}
.whats-new-content:focus-visible{outline:2px solid var(--red);outline-offset:-3px}
@media(forced-colors:active){#whats-new-dialog .fa-light,.whats-new-setting .fa-light{color:CanvasText}.whats-new-footer .primary-btn,.whats-new-setting{border:1px solid ButtonText}}
/* Existing licensed Font Awesome Pro glyph; this font is not Apache-licensed. */
@font-face{font-family:"Bird Sparkles";font-style:normal;font-weight:300;font-display:block;src:url('../assets/fontawesome/pro-fa-light-300-24.woff2') format('woff2');unicode-range:U+F890}
@font-face{font-family:"Bird Header User";font-style:normal;font-weight:300;font-display:block;src:url('../assets/fontawesome/pro-fa-light-300-0.woff2') format('woff2');unicode-range:U+F007}
@font-face{font-family:"Bird Header Gear";font-style:normal;font-weight:300;font-display:block;src:url('../assets/fontawesome/pro-fa-light-300-14.woff2') format('woff2');unicode-range:U+F013}
.header-buttons .fa-user,.header-buttons .fa-gear{display:block;width:22px;height:22px;font-size:22px;line-height:1;font-style:normal;font-weight:300;-webkit-font-smoothing:antialiased}
.header-buttons .fa-user{font-family:"Bird Header User"}.header-buttons .fa-user::before{content:'\f007'}
.header-buttons .fa-gear{font-family:"Bird Header Gear"}.header-buttons .fa-gear::before{content:'\f013'}
.fa-sparkles{font-family:"Bird Sparkles";font-style:normal;font-weight:300;display:block;width:25px;height:25px;font-size:25px;line-height:1;-webkit-font-smoothing:antialiased}.fa-sparkles::before{content:'\f890'}
:root{--red:#e01c15;--ink:#1d1d1f;--muted:#6e6e73;--line:rgba(60,60,67,.14);--paper:#f2f2f7;--soft:#f2f2f7;--radius:20px;--shadow:0 3px 18px #1d1d1f05;--sans:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Helvetica Neue",Arial,sans-serif;--tabbar-height:calc(72px + env(safe-area-inset-bottom))}
html{scroll-padding-top:100px;scroll-padding-bottom:calc(var(--tabbar-height) + 90px)}body{font-family:var(--sans);letter-spacing:-.015em;padding-bottom:var(--tabbar-height)}button,input{font-family:inherit}.app-header{min-height:66px;padding:12px max(20px,calc((100% - 900px)/2));padding-top:max(12px,env(safe-area-inset-top));background:rgba(242,242,247,.56);-webkit-backdrop-filter:blur(8px) saturate(135%);backdrop-filter:blur(8px) saturate(135%);border:0}.brand img{width:130px;height:37px}.header-buttons{display:flex;align-items:center;gap:8px}.header-buttons>.text-button{color:var(--red);text-decoration:none}.round-button{display:grid;place-items:center;border:0;border-radius:50%;width:44px;height:44px;background:#fff;color:var(--red)}.round-button svg{width:22px;height:22px}
.shell{max-width:940px;padding:12px 20px 28px}.page-heading{margin:12px 0 24px}.page-heading h1{font-size:2.125rem;font-weight:750;letter-spacing:-.04em;line-height:1.12}.page-heading .eyebrow{font-size:.8125rem;letter-spacing:0;text-transform:none;font-weight:600;margin-bottom:6px;color:var(--red)}#page-subtitle{font-size:1rem;margin-top:8px;color:var(--muted)}.text-button{text-decoration:none;color:var(--red);font-size:.9375rem}.primary-btn,.outline-button{border-radius:13px}.outline-button{border-color:var(--line)}.update-notice{border-radius:0}.notice{border-radius:14px}.offline-card{padding:12px 16px;gap:12px;margin-bottom:18px;border:0;border-radius:16px;background:#e9e9ef}.offline-card p{font-size:.875rem}.offline-card strong{font-size:.875rem}.offline-card button{padding:8px 12px;min-height:44px;font-size:.875rem;background:#fff}.offline-card.ready{padding:10px 14px;background:transparent;border:0}.offline-card.ready strong{display:flex;align-items:center;gap:8px;color:#416820}.offline-card.ready strong::before{content:'';width:7px;height:7px;border-radius:50%;background:currentColor}.offline-card.ready #offline-detail{display:none}.offline-card.ready p{font-size:.8125rem}
.workspace{grid-template-areas:'control results' 'visual results';gap:20px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.card{border:0;border-radius:20px;box-shadow:var(--shadow)}.control-card{padding:28px 20px 20px}.mode-panel{padding-top:0}.live-action{flex-direction:column;text-align:center;gap:22px;padding:8px 8px 16px}.record-button{width:120px;height:120px;flex-basis:120px;border-width:10px;box-shadow:0 0 0 12px #fff2f1}.record-copy h2{font-size:1.375rem;font-weight:650;letter-spacing:-.025em}.record-copy p{max-width:29ch;font-size:1rem;line-height:1.45;margin:10px auto 0}.status-row{margin-top:16px;padding-top:14px}.status-row p{font-size:.875rem}.status-pill{font-size:.8125rem}.progress-track{border-radius:4px}.results-head{padding:14px 16px;flex-wrap:wrap;border-color:var(--line)}.results-title h2{font-size:1.125rem}.count-badge{background:#f2f2f7;color:var(--muted);border-radius:7px}.detection{padding:18px 16px}.scientific-name{font-family:var(--sans);font-style:italic}.detection-meta{font-size:.8125rem}.confidence{font-size:1.125rem}.score-line{height:3px;border-radius:3px}.score-line span{border-radius:3px}.observation-hint{font-size:.875rem;padding:12px 16px}.observation-actions .text-button{background:var(--soft);border-radius:12px;padding:8px 14px;min-height:44px}.observation-feedback{padding:0}.observation-feedback p:not(:empty){margin-bottom:16px;padding:12px 16px;background:#fff;border-radius:14px;font-size:.9375rem}.visual-card{border-radius:20px;background:#272d2a}.visual-wrap{height:110px}.metrics{border-color:#414a44}.metric{border-color:#414a44}.local-caption{font-size:.8125rem;color:var(--muted);line-height:1.5;margin:18px 4px}.shell footer{font-size:.8125rem;align-items:center;padding:20px 4px 0}.shell footer a{min-height:44px;display:inline-flex;align-items:center;margin:0}
.bottom-bar{position:fixed;inset:auto 0 0;z-index:40;padding:6px max(8px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));background:rgba(249,249,251,.93);-webkit-backdrop-filter:blur(24px) saturate(160%);backdrop-filter:blur(24px) saturate(160%);border-top:1px solid var(--line);min-height:var(--tabbar-height)}.bottom-bar>div{max-width:720px;margin:auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.bottom-tab{min-width:0;min-height:60px;border:0;border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:#77777c;background:transparent;font-size:.75rem;font-weight:500;padding:5px 1px}.bottom-tab.active{color:var(--red);background:rgba(224,28,21,.06);font-weight:650}.tab-icon{display:block;position:relative}.tab-icon>svg{width:25px;height:25px}.nav-count{position:absolute;top:-6px;left:20px;min-width:18px;height:18px;border-radius:10px;padding:0 4px;background:var(--red);color:white;display:grid;place-items:center;font-size:.75rem;line-height:1}.is-listening #nav-identify .tab-icon::after{content:'';position:absolute;width:6px;height:6px;background:var(--red);border-radius:50%;right:-6px;top:0}.is-listening .floating-stop{position:fixed;display:flex;align-items:center;justify-content:center;gap:10px;z-index:35;bottom:calc(var(--tabbar-height) + 12px);left:max(16px,calc((100% - 500px)/2));right:max(16px,calc((100% - 500px)/2));min-height:52px;border:1px solid #fff;border-radius:18px;background:#252526;color:#fff;font-weight:600;box-shadow:0 4px 20px #0002}.is-listening .shell{padding-bottom:95px}
.section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:20px 0 12px}.section-heading h2{font-size:1.25rem;letter-spacing:-.025em}.secondary-text{font-size:.875rem;color:var(--muted)}.species-list{background:#fff;border-radius:18px;overflow:hidden}.species-letter{background:var(--paper);color:var(--muted);padding:12px 16px 6px;font-size:.875rem;font-weight:600}.species-row{width:100%;display:grid;grid-template-columns:48px minmax(0,1fr) 14px;gap:14px;align-items:center;text-align:left;border:0;border-bottom:1px solid var(--line);background:#fff;min-height:78px;padding:12px 16px}.species-row:last-child{border:0}.species-row:hover{background:#fafafa}.species-initial{width:48px;height:48px;display:grid;place-items:center;border-radius:13px;background:var(--soft);color:var(--muted);font-size:1rem;font-weight:600}.species-row img{width:48px;height:48px;border-radius:13px;object-fit:cover}.species-row strong{display:block;font-size:1rem;font-weight:600;overflow-wrap:anywhere}.species-row small{display:block;color:var(--muted);font-size:.875rem;margin-top:3px;font-style:italic}.species-row .chevron{color:#aaa;font-size:1.5rem}.catalogue-status{font-size:.9375rem;color:var(--muted);margin:16px 2px}.catalogue-status:empty{display:none}.more-button{display:block;width:100%;margin-top:8px}.app-search{display:flex;align-items:center;gap:10px;padding:5px 14px;background:#e7e7ed;border-radius:13px;min-height:52px}.app-search>svg{width:21px;height:21px;flex-shrink:0;color:var(--muted)}.app-search input{min-width:0;flex:1;border:0;background:transparent;outline:0;padding:10px 0;font-size:1rem}.app-search:focus-within{outline:2px solid var(--red);outline-offset:3px}.app-search input::-webkit-search-cancel-button{-webkit-appearance:none}.app-search button{width:44px;height:44px;border:0;background:transparent;color:var(--muted);font-size:1.5rem}
.list-summary{display:flex;align-items:center;gap:16px;margin:10px 0 24px}.list-summary-icon{width:58px;height:58px;display:grid;place-items:center;background:var(--red);color:#fff;border-radius:16px;flex-shrink:0}.list-summary-icon svg{width:28px;height:28px}.list-summary p{color:var(--muted);font-size:.9375rem;margin-top:5px}.history-card .detections{max-height:none;overflow:visible}.history-card .observation-hint{border-bottom:1px solid var(--line)}.history-card .history-head .results-title{display:none}.history-head{justify-content:flex-end}
.sheet-dialog{max-width:640px;width:calc(100% - 32px);max-height:88dvh;overflow:auto;border-radius:24px;padding:0;background:#f2f2f7}.sheet-header{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;background:rgba(242,242,247,.94);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border-bottom:1px solid var(--line)}.sheet-header button{width:auto;min-width:60px}.sheet-header h2{font-size:1.0625rem}.sheet-dialog .settings-card{box-shadow:none;border-radius:0;padding:0 20px;background:transparent}.sheet-dialog #settings-details>summary{display:none}.sheet-dialog .settings-grid{padding-top:24px}.sheet-dialog #default-model{width:auto}.sheet-dialog .toggle-setting{min-width:0}.species-detail-copy{padding:22px}.species-detail-copy h3{font-size:1.0625rem;margin:22px 0 8px}.species-detail-copy p{font-size:1rem;line-height:1.55;margin:8px 0}.species-detail-photo{display:block;width:100%;max-height:300px;object-fit:cover}.species-detail-copy .latin{color:var(--muted);font-style:italic;font-size:1.125rem;margin:0 0 18px}.species-facts{margin:16px 0;background:#fff;border-radius:16px;padding:4px 16px}.species-facts>div{padding:12px 0;border-bottom:1px solid var(--line)}.species-facts>div:last-child{border:0}.species-facts dt{color:var(--muted);font-size:.875rem}.species-facts dd{margin:4px 0 0;font-size:1rem}.species-detail-copy .detail-source{font-size:.8125rem;color:var(--muted)}
@media(max-width:767px){.app-header{padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right));min-height:62px}.shell{padding:8px max(20px,env(safe-area-inset-right)) 24px max(20px,env(safe-area-inset-left))}.workspace{grid-template-columns:minmax(0,1fr);grid-template-areas:'control' 'results' 'visual';gap:20px}.offline-card{flex-wrap:wrap}.offline-card button{width:auto}.control-card{padding:26px 20px 18px}.live-action{gap:22px}.record-button{width:116px;height:116px;flex-basis:116px}.record-copy h2{font-size:1.375rem}.record-copy p{font-size:1rem}.results-card .detections{max-height:none;overflow:visible}.shell footer{display:flex;flex-wrap:wrap;gap:4px 16px}.sheet-dialog{width:100%;max-width:none;max-height:90dvh;margin:auto 0 0;border-radius:26px 26px 0 0;padding-bottom:max(20px,env(safe-area-inset-bottom))}.sheet-dialog .settings-grid{grid-template-columns:1fr}}
@media(prefers-reduced-transparency:reduce){.app-header,.bottom-bar,.sheet-header{background:#f2f2f7;backdrop-filter:none;-webkit-backdrop-filter:none}}

.detection-top{grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:12px}
.detection-top>div{min-width:0}
.detection-headshot{position:relative;display:grid;place-items:center;width:48px;height:48px;overflow:hidden;border-radius:50%;background:var(--soft);color:var(--muted);font-size:1rem;font-weight:600}
.detection-headshot img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:var(--soft)}

/* Recognition has a quiet entry state and a signal surface only after starting. */
body[data-view=identify]{overflow-anchor:none;--recognition-height:clamp(174px,25dvh,220px);height:100vh;height:100dvh;display:flex;flex-direction:column;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body[data-view=identify] .app-header,body[data-view=identify] .prototype-banner{flex-shrink:0}
body[data-view=identify] .shell{width:100%;max-width:780px;flex:1;min-height:0;margin:0 auto;display:flex;flex-direction:column;padding-top:0;padding-bottom:4px}
body[data-view=identify] .page-heading{position:absolute;width:1px;height:1px;padding:0;margin:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body[data-view=identify] .page-heading h1{font-size:1.75rem;line-height:1.15;letter-spacing:-.035em}
body[data-view=identify] .notice,body[data-view=identify] .observation-feedback{flex-shrink:0}
#view-identify{display:flex;flex-direction:column;flex:1;min-height:0}
#view-identify .offline-card{flex-shrink:0;margin-bottom:10px;padding:10px 12px}
#view-identify .workspace{display:grid;grid-template-areas:'control';grid-template-columns:minmax(0,1fr);gap:0;flex:1;min-height:0;align-items:stretch}
.recognition-card{padding:0;min-height:0;overflow:visible;display:flex;flex-direction:column;border-radius:0;background:transparent;box-shadow:none}
.recognition-signal{position:relative;isolation:isolate;display:grid;place-items:center;min-height:var(--recognition-height);flex-shrink:0;background:transparent;color:var(--ink);overflow:visible}
.recognition-card .visual-card{position:absolute;inset:0 -20px 34px;grid-area:auto;border-radius:0;background:transparent;box-shadow:none;pointer-events:none}
.recognition-card .visual-wrap{height:100%;background:transparent}
.recognition-card .visual-empty{font-size:.75rem;align-items:end;padding:8px;opacity:.7}
.recognition-card .visual-empty:not(.hidden){visibility:hidden}
.recognition-card #panel-live{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;padding:12px 0;max-width:100%;text-align:center}
.recognition-prompt:empty{display:none}
.recognition-prompt{font-size:1.25rem;font-weight:650;letter-spacing:-.025em;margin-bottom:26px}
.recognition-card .live-action{position:relative;display:grid;place-items:center;padding:0;gap:0;width:180px;height:180px}
.recognition-card .record-button{position:relative;z-index:1;width:148px;height:148px;flex-basis:auto;border:1px solid #ffffffc0;background:var(--red);box-shadow:0 0 0 14px #e01c1509,0 0 0 30px #e01c1504,0 12px 28px #e01c1520;transform:scale(var(--audio-scale,1));transition:transform .15s ease}
.recognition-card .record-button.is-live{background:var(--red);border-color:#ffffffc0}
@media(hover:hover){.recognition-card .record-button:hover:not(:disabled){background:#d51b14}}
.recognition-card .record-button:focus-visible{outline-color:var(--red);outline-offset:6px}
.recognition-card .mic-symbol{display:block;width:44px;height:52px}
.recognition-card .record-button.is-live .mic-symbol{display:none}
.recognition-card .stop-symbol{display:none;width:36px;height:36px}
.recognition-card .record-button.is-live .stop-symbol{display:block}
.recognition-hint{padding:3px 9px;margin:7px 12px 0;font-size:.8125rem;line-height:1.3;color:var(--muted)}
.recognition-card[data-recognition=listening] .live-action::before,.recognition-card[data-recognition=listening] .live-action::after{content:'';position:absolute;inset:4px;border:1px solid #e01c151c;border-radius:50%;background:#e01c1505;animation:listening-ripple 3s ease-out infinite;pointer-events:none}
.recognition-card[data-recognition=listening] .live-action::after{animation-delay:-1.5s}
@keyframes listening-ripple{0%{transform:scale(.78);opacity:.7}100%{transform:scale(1.45);opacity:0}}
.recognition-metrics{display:flex;align-items:center;justify-content:center;gap:12px;flex-shrink:0;padding:4px 16px 12px;color:var(--muted);font-size:.75rem;line-height:1.3;background:transparent;font-variant-numeric:tabular-nums}
.recognition-metrics>span{padding:5px 12px;background:#ffffffa6;border:1px solid #fff;border-radius:24px}
.recognition-metrics strong{color:var(--ink);font-weight:650;margin-right:3px}
.recognition-card .status-row{margin:0;padding:0 16px;border:0;min-height:0;text-align:center;flex-shrink:0}
.recognition-card #status-text:empty{display:none}
.recognition-card #status-text:not(:empty){margin:0;padding:8px 0;font-size:.8125rem}
.recognition-card .progress-track{display:none;margin:0 16px 10px;flex-shrink:0}
.recognition-card .progress-track.show{display:block}
.recognition-card #panel-current{background:#fff;border:1px solid #ffffffcc;border-radius:24px;box-shadow:0 4px 24px #1d1d1f04;overflow:hidden;display:flex;flex-direction:column;min-height:0;flex:1}
.recognition-card .results-head{padding:2px 16px;border:0;min-height:48px;flex-shrink:0}
.recognition-card .detection-empty{padding:18px 16px 24px}
.recognition-card .detection-empty p{margin:0;font-size:.9375rem}
.recognition-card .detection{padding:12px 16px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"bird bird" "meta save" "score score";column-gap:8px}
.recognition-card .detection-top{grid-area:bird}
.recognition-card .detection-meta{grid-area:meta;align-self:center}
.recognition-card .observation-actions{grid-area:save}
.recognition-card .score-line{grid-area:score}
.recognition-card .detection-meta{margin-top:6px;gap:8px}
.recognition-card .detection-meta .class-chip,.recognition-card .detection-meta .class-chip+span{display:none}
.recognition-card .score-line{margin-top:8px}
.recognition-card .observation-actions{margin-top:8px}
.recognition-card .result-scroll{overflow:auto;overscroll-behavior:contain;min-height:0;flex:1;scroll-padding:8px}
.recognition-card .detections{max-height:none;overflow:visible}
.recognition-card .result-scroll:focus-visible{outline-offset:-3px}
.recognition-card:not([data-recognition=idle]) .live-action{width:144px;height:144px}
.recognition-card:not([data-recognition=idle]) .record-button{width:120px;height:120px}
.recognition-card:not([data-recognition=idle]) #panel-live{padding:0}
.recognition-card[data-recognition=idle]{background:transparent;box-shadow:none}
.recognition-card[data-recognition=idle] .recognition-signal{flex:1;height:auto;min-height:240px}
.recognition-card[data-recognition=idle] .recognition-hint{background:transparent;padding:0;color:var(--muted);text-shadow:none;margin-top:26px;font-size:.875rem}
.recognition-card[data-recognition=starting] .record-button{opacity:.75}
body[data-view=identify] .app-footer{display:none}
#view-identify .recognition-footer{display:flex;flex-wrap:wrap;gap:4px 12px;padding:12px 16px;font-size:.6875rem;color:var(--muted)}
#view-identify .recognition-footer .local-caption{flex-basis:100%;font-size:inherit;line-height:1.4;margin:0}
#view-identify .recognition-footer a{display:inline-flex;align-items:center;min-height:32px;margin:0}
.legal-details{border-top:1px solid var(--line);padding:0 0 20px}
.legal-details p{font-size:.9375rem;line-height:1.55;overflow-wrap:anywhere}
.legal-details a{color:var(--red);text-decoration:underline;text-underline-offset:3px}
.account-dialog-content{padding:20px 24px 28px;overflow-wrap:anywhere}
.account-dialog-content #account-summary{margin:0;font-size:1.125rem;font-weight:600;color:var(--ink)}
.account-dialog-content #account-dialog-status{margin:8px 0 20px;font-size:.875rem;color:var(--muted)}
.account-dialog-content .account-actions{display:grid;gap:8px;margin:0}
.account-dialog-content .account-actions button{width:100%;min-height:48px;padding:12px 16px;border-radius:12px;background:#fff;text-align:left;text-decoration:none}
.account-dialog-content .account-actions button:hover:not(:disabled){background:#fff0ef}
@media(max-width:767px){
  body[data-view=identify] .page-heading h1{font-size:clamp(1.375rem,6vw,1.75rem)}
}
@media(max-height:650px){
  body[data-view=identify]{overflow-anchor:none;--recognition-height:140px}
  .recognition-card:not([data-recognition=idle]) .live-action{width:112px;height:112px}
  .recognition-card:not([data-recognition=idle]) .record-button{width:100px;height:100px}
  .recognition-card .live-action{width:136px;height:136px}
  .recognition-card #panel-live{padding:0}
  .recognition-card .record-button{width:128px;height:128px}
  .recognition-hint{margin-top:4px;padding:0;font-size:.75rem}
  .recognition-card[data-recognition=idle] .recognition-prompt{margin-bottom:12px}
  .recognition-card[data-recognition=idle] .recognition-hint{margin-top:12px}
}
/* Long alerts and short landscape screens use normal page flow. */
body[data-view=identify]:has(.offline-card:not([hidden]),.notice.show,#observation-status:not(:empty),#update-notice:not([hidden])){height:auto;min-height:100dvh}
body[data-view=identify]:has(.offline-card:not([hidden]),.notice.show,#observation-status:not(:empty),#update-notice:not([hidden])) :is(.shell,#view-identify,.workspace){display:block}
body[data-view=identify]:has(.offline-card:not([hidden]),.notice.show,#observation-status:not(:empty),#update-notice:not([hidden])) .result-scroll{max-height:40dvh;flex:auto}
@media(max-height:500px) and (orientation:landscape){
  body[data-view=identify]{height:auto;min-height:100dvh}
  body[data-view=identify] :is(.shell,#view-identify,.workspace){display:block}
  .recognition-card .result-scroll{max-height:50dvh;flex:auto}
}
@media(prefers-reduced-motion:reduce){
  .recognition-card[data-recognition=listening] .live-action::before,.recognition-card[data-recognition=listening] .live-action::after{animation:none;transform:none;opacity:.3}
  .recognition-card .record-button{transform:none;transition:none}
}

.location-indicator{display:flex;align-items:center;justify-content:center;gap:5px;font-size:11px;color:var(--muted,#666);margin:4px 0;flex-shrink:0}
.fa-location-arrow{font-family:"Bird Location";font-style:normal;font-weight:300;font-size:14px;line-height:1;width:14px;flex-shrink:0;-webkit-font-smoothing:antialiased}
.fa-location-arrow::before{content:"\f124"}

.location-indicator span{min-width:0;overflow-wrap:anywhere}

@font-face{font-family:"Bird Location";font-style:normal;font-weight:300;font-display:block;src:url("../assets/fontawesome/pro-fa-light-300-15.woff2") format("woff2");unicode-range:U+F124}

@font-face{font-family:"Bird Microphone";font-style:normal;font-weight:300;font-display:block;src:url("../assets/fontawesome/pro-fa-light-300-1.woff2") format("woff2");unicode-range:U+F130}
.fa-microphone{font-family:"Bird Microphone";font-style:normal;font-weight:300;font-size:14px;line-height:1;-webkit-font-smoothing:antialiased}
.fa-microphone::before{content:"\f130"}
.observation-meta-icon{display:flex;align-items:baseline;gap:7px}
.observation-meta-icon .fa-light{width:14px;flex-shrink:0;text-align:center}
.observation-meta-icon span{min-width:0;overflow-wrap:anywhere}

@font-face{font-family:"Bird Geo";font-style:normal;font-weight:300;font-display:block;src:url("../assets/fontawesome/pro-fa-light-300-20.woff2") format("woff2");unicode-range:U+F606,U+F60B}
@font-face{font-family:"Bird Globe";font-style:normal;font-weight:300;font-display:block;src:url("../assets/fontawesome/pro-fa-light-300-0.woff2") format("woff2");unicode-range:U+F0AC}
.fa-location-check,.fa-location-question{font-family:"Bird Geo";font-style:normal;font-weight:300;line-height:1;-webkit-font-smoothing:antialiased}
.fa-location-check::before{content:"\f606"}.fa-location-question::before{content:"\f60b"}
.fa-globe{font-family:"Bird Globe";font-style:normal;font-weight:300;-webkit-font-smoothing:antialiased}.fa-globe::before{content:"\f0ac"}
.geo-plausibility{display:flex;align-items:baseline;gap:7px;font-size:12px;line-height:1.4;margin:8px 0 0}
.geo-plausibility i{flex-shrink:0;width:14px;text-align:center}
.geo-expected{color:#416c50}.geo-unusual{color:#86621f}.geo-unlikely{color:#a12e25}
.geo-unlikely .geo-plausibility{font-weight:650}
.geo-score{font-size:.75rem;color:var(--muted);margin:3px 0 0 21px}
.acoustic-score{text-align:right}.score-label{display:block;font-size:.6875rem;color:var(--muted);font-weight:500;margin-bottom:2px}
.assessment-hint{font-size:.8125rem;line-height:1.45;color:var(--muted);margin:10px 0}
.observation-group{border-bottom:1px solid var(--line)}
.observation-group>.detection{border-bottom:0}
.observation-history>summary{padding:10px 16px 14px;font-size:.8125rem;font-weight:550;color:var(--muted);cursor:pointer;min-height:44px}
.observation-history>summary:focus-visible{outline:2px solid var(--red);outline-offset:-3px}
.observation-history[open]>div{border-top:1px solid var(--line);border-left:3px solid var(--line);margin-left:16px}

/* Light iOS-style grouped sheets; phone sheets fit their content and dock below. */
.sheet-dialog{
  --ink:#1d1d1f;--muted:#6e6e73;--line:rgba(60,60,67,.14);--red:#e01c15;
  color-scheme:light;color:var(--ink);background:#f2f2f7;border:0;
  box-shadow:0 16px 60px #0003;max-height:min(900px,calc(100dvh - 32px));
  scrollbar-color:#aeaeb2 transparent;
  position:fixed;height:fit-content;max-height:90dvh;margin:auto auto 0;border-radius:30px 30px 0 0;
  overscroll-behavior:contain;
}
.sheet-dialog::backdrop{background:rgba(0,0,0,.35);backdrop-filter:blur(3px)}
.sheet-header{padding:30px 24px 16px;background:rgba(242,242,247,.94);border-bottom:0;touch-action:none;user-select:none;cursor:grab}
.sheet-header::before{content:'';position:absolute;top:10px;left:calc(50% - 18px);width:36px;height:5px;border-radius:3px;background:#c7c7cc}
.sheet-header:active{cursor:grabbing}
.sheet-close{touch-action:manipulation}
.sheet-header h2{color:var(--ink);font-size:1.5rem;font-weight:650;letter-spacing:-.025em}
.sheet-header .sheet-close{display:grid;place-items:center;width:44px;min-width:44px;height:44px;padding:0;border:1px solid rgba(60,60,67,.08);border-radius:50%;background:#e5e5ea;color:#636366;font:300 2rem/1 var(--sans)}
.sheet-header .sheet-close span{transform:translateY(-2px)}
.sheet-header .sheet-close:hover{background:#d1d1d6}
.account-dialog-content{padding:8px 24px 24px}
.account-profile{display:flex;align-items:center;gap:16px;min-width:0;padding:20px;border-radius:24px;background:#fff}
.account-avatar{display:grid;place-items:center;flex:none;width:56px;height:56px;border-radius:50%;background:#f2f2f7;color:#6e6e73}
.account-avatar .fa-user{font-family:"Bird Header User";font-style:normal;font-size:24px;line-height:1}
.account-avatar .fa-user::before{content:'\f007'}
.account-profile>div{min-width:0}
.account-profile-label{color:var(--muted);font-size:.8125rem}
.account-dialog-content #account-summary{margin:2px 0 0;color:var(--ink);font-size:1.0625rem;line-height:1.35;overflow-wrap:anywhere}
.account-dialog-content #account-dialog-status{margin:14px 8px 30px;color:var(--muted);font-size:.875rem;line-height:1.4}
.account-dialog-content .account-actions{overflow:hidden;gap:0;border-radius:22px;background:#fff}
.account-dialog-content .account-actions button{min-height:56px;padding:14px 20px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;color:var(--ink);font-size:1rem;font-weight:450}
.account-dialog-content .account-actions button:last-child{border-bottom:0;color:var(--red)}
.account-dialog-content .account-actions button:hover:not(:disabled){background:#e5e5ea;color:var(--ink)}
.account-dialog-content .account-actions button:last-child:hover:not(:disabled){color:var(--red)}
#settings-dialog .settings-card{padding:0 24px 28px;background:transparent}
#settings-dialog .settings-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:0;padding:0 18px;border-radius:22px;background:#fff}
#settings-dialog .settings-grid>.setting,#settings-dialog .settings-grid>.toggle-setting,#settings-dialog .settings-grid>.advanced-sources{padding:16px 2px;border:0;border-bottom:1px solid var(--line)}
#settings-dialog .settings-grid>:last-child{border-bottom:0}
#settings-dialog .settings-grid .setting p,#settings-dialog .toggle-setting small,#settings-dialog .advanced-sources p{color:var(--muted)}
#settings-dialog .settings-grid label,#settings-dialog .toggle-setting strong{color:var(--ink)}
#settings-dialog select,#settings-dialog input[type=file]{background:#f2f2f7;color:var(--ink);border-color:#aeaeb2}
#settings-dialog input::file-selector-button{background:#e5e5ea;color:var(--ink);border-color:#aeaeb2}
#settings-dialog .advanced-sources{grid-column:1}
#settings-dialog .advanced-sources summary{color:var(--ink)}
#settings-dialog .source-grid{grid-template-columns:minmax(0,1fr)}
#settings-dialog .legal-details{margin-top:24px;padding:0 18px 16px;border:0;border-radius:22px;background:#fff}
#settings-dialog .legal-details summary{color:var(--ink)}
#settings-dialog .legal-details p{color:var(--muted)}
#settings-dialog .legal-details a,#species-dialog a{color:var(--red)}
#species-dialog .species-facts{background:#fff}
#species-dialog .species-detail-copy h3{color:var(--ink)}
#delete-observation-dialog{color-scheme:light;color:var(--ink);background:#f2f2f7;border-radius:22px;box-shadow:0 16px 60px #0003}
#delete-observation-dialog::backdrop{background:rgba(0,0,0,.35);backdrop-filter:blur(3px)}
#delete-observation-dialog h2{color:var(--ink)}
#delete-observation-dialog .outline-button{color:var(--ink);background:#fff;border-color:var(--line)}
@media(max-width:767px){
  .sheet-dialog{width:100%;height:fit-content;min-height:0;max-height:90dvh;margin:auto 0 0;border-radius:30px 30px 0 0;padding-bottom:max(20px,env(safe-area-inset-bottom))}
  .sheet-header{padding:30px 24px 16px}
}

/* Detection save choices reuse bundled Font Awesome Light glyphs and sheet gestures. */
@font-face{font-family:"Bird List Choices";font-style:normal;font-weight:300;font-display:block;src:url("../assets/fontawesome/pro-fa-light-300-0.woff2") format("woff2");unicode-range:U+F004-F005,U+F00C,U+F06E}
.save-sheet-content .fa-eye,.save-sheet-content .fa-heart,.save-sheet-content .fa-star,.save-sheet-content .fa-check{font-family:"Bird List Choices";font-style:normal;font-weight:300;line-height:1;-webkit-font-smoothing:antialiased}
.save-sheet-content .fa-eye::before{content:"\f06e"}.save-sheet-content .fa-heart::before{content:"\f004"}.save-sheet-content .fa-star::before{content:"\f005"}.save-sheet-content .fa-check::before{content:"\f00c"}
#save-detection-dialog{padding-bottom:0}
#save-detection-dialog .sheet-header h2{font-size:1.125rem}
.save-sheet-content{padding:0 20px}
.save-species{display:flex;align-items:center;gap:16px;padding:8px 4px 24px}
.save-species>div{min-width:0;overflow-wrap:anywhere}
.save-species .detection-headshot{width:72px;height:72px;flex-shrink:0;border-radius:18px}
.save-species h3{font-size:1.375rem;line-height:1.25;margin:0 0 4px;letter-spacing:-.02em}
.save-match{font-size:.8125rem;color:var(--muted);margin-top:7px}
.save-detected,.save-choice{display:flex;align-items:center;gap:14px;padding:16px;min-height:78px}
.save-detected{padding-top:12px;padding-bottom:20px;color:var(--muted)}
.save-detected>.fa-light,.save-choice>.fa-light{font-size:23px;flex:0 0 26px;text-align:center}
.save-choice-copy{flex:1;min-width:0}
.save-choice-copy strong,.save-choice-copy small{display:block}
.save-choice-copy strong{font-size:1rem;font-weight:600;line-height:1.3}
.save-choice-copy small{font-size:.8125rem;line-height:1.4;color:var(--muted);margin-top:4px}
.save-fixed{display:flex;align-items:center;gap:8px;font-size:.6875rem}
.save-fixed>span{max-width:36px;line-height:1.3}
.save-choices{background:#fff;border-radius:18px;overflow:hidden}
.save-choice{position:relative;cursor:pointer;border-bottom:1px solid var(--line)}
.save-choice:last-child{border-bottom:0}
.save-choice input{position:absolute;opacity:0;width:1px;height:1px}
.save-choice:has(input:focus-visible){outline:3px solid var(--red);outline-offset:-3px}
.save-choice:has(input:disabled){opacity:.6;cursor:wait}
.save-choice.is-selected{background:color-mix(in srgb,var(--red) 5%,white)}
.save-choice.is-selected>.fa-light{color:var(--red)}
.save-check{display:grid;place-items:center;flex:0 0 24px;height:24px;border:1.5px solid #b7b7bd;border-radius:7px;font-size:14px}
.is-selected .save-check{background:var(--red);border-color:var(--red);color:#fff}
.save-sheet-footer{position:sticky;bottom:0;padding:16px 20px max(20px,env(safe-area-inset-bottom));background:#f2f2f7}
.save-sheet-footer .primary-btn{width:100%;min-height:52px;border-radius:14px;font-size:1rem}
.save-error{color:var(--red);font-size:.875rem;margin-bottom:12px}
.save-error:empty{display:none}
.save-toast:empty{display:none}
.save-toast{position:fixed;z-index:30;bottom:calc(88px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 32px);padding:12px 18px;border-radius:16px;background:var(--ink);color:#fff;box-shadow:0 6px 24px #0002;font-size:.9375rem;pointer-events:none}

/* Library navigation and the selected collection share the existing list view. */
.library-layout{display:grid;grid-template-columns:minmax(240px,320px) minmax(0,1fr);gap:28px;align-items:start}
.library-categories{display:flex;flex-direction:column;border-radius:18px;overflow:hidden;background:#fff;border:1px solid var(--line)}
.library-categories button{display:flex;align-items:center;gap:16px;min-height:70px;width:100%;border:0;border-bottom:1px solid var(--line);padding:13px 18px;background:transparent;text-align:left}
.library-categories button:last-child{border-bottom:0}
.library-categories button[aria-pressed=true]{background:#fff0ef;box-shadow:inset 3px 0 var(--red)}
.library-categories button:hover{background:var(--soft)}
.library-categories button:focus-visible{outline-offset:-4px}
.library-categories .fa-light{width:26px;flex:none;font-size:23px;text-align:center;color:var(--red);font-style:normal;font-weight:300;line-height:1}
.library-categories .fa-list{font-family:"Bird Welcome List"}.library-categories .fa-list::before{content:"\f03a"}
.library-categories .fa-eye,.library-categories .fa-heart,.library-categories .fa-star{font-family:"Bird List Choices"}
.library-categories .fa-eye::before{content:"\f06e"}.library-categories .fa-heart::before{content:"\f004"}.library-categories .fa-star::before{content:"\f005"}
.library-category-copy{flex:1;min-width:0}
.library-category-copy strong{display:block;font-weight:500;font-size:1.0625rem;line-height:1.25}
.library-category-copy small{display:block;color:var(--muted);font-size:.8125rem;margin-top:3px}
.library-category-arrow{font-size:26px;color:var(--muted)}
.library-content{border-radius:18px;overflow:hidden;min-width:0}
.library-content .history-head{justify-content:space-between;gap:8px;flex-wrap:wrap}
.library-content .history-head .results-title{display:flex;flex-wrap:wrap}
.library-content .history-head h2{font-size:1.125rem}
.library-hint{padding:12px 20px;font-size:.875rem;color:var(--muted);border-bottom:1px solid var(--line)}
.library-content #observation-hint{font-size:.75rem}
.library-content .species-list{border-radius:0;box-shadow:none}
#library-content-title{scroll-margin-top:100px}
@media(max-width:767px){.library-layout{grid-template-columns:minmax(0,1fr);gap:24px}.library-categories button{min-height:66px}.library-content .history-head{padding:16px}.library-content .history-head .text-button{font-size:.8125rem}}

/* Nearby navigation: original Font Awesome Pro Light compass glyph. */
@font-face{font-family:"Bird Compass";font-style:normal;font-weight:300;font-display:block;src:url("../assets/fontawesome/pro-fa-light-300-1.woff2") format("woff2");unicode-range:U+F14E}
.fa-compass{font-family:"Bird Compass";font-style:normal;font-weight:300;display:block;width:25px;height:25px;font-size:25px;line-height:1;-webkit-font-smoothing:antialiased}
.fa-compass::before{content:"\f14e"}

/* Direct list membership uses the existing local Font Awesome subset. */
.membership-actions{margin:8px 0}
.membership-actions>div{display:flex;flex-wrap:wrap;gap:8px}
.membership-actions .membership-tag{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:white;color:var(--muted);font-size:.8125rem;line-height:1.25}
.membership-actions .membership-fixed{background:var(--soft)}
.membership-actions button[aria-pressed=true]{background:#fff0ef;border-color:var(--red);color:var(--red);box-shadow:inset 0 0 0 1px var(--red)}
.membership-actions button:disabled{opacity:.45;cursor:default}
.membership-actions .fa-light{font-size:17px;font-style:normal;font-weight:300;line-height:1}
.membership-actions .fa-eye,.membership-actions .fa-star,.membership-actions .fa-heart{font-family:"Bird List Choices"}
.membership-actions .fa-eye::before{content:"\f06e"}.membership-actions .fa-star::before{content:"\f005"}.membership-actions .fa-heart::before{content:"\f004"}
.library-species-entry{border-bottom:1px solid var(--line)}
.library-species-entry>.membership-actions{margin:0;padding:0 20px 12px}

/* Catalogue list and horizontal list–detail navigation. */
body[data-view=species]{background:#fff;overflow-x:clip}
body[data-view=species] .app-header{background:rgba(255,255,255,.56)}
body[data-view=species] .page-heading{margin:4px 0 14px}
body[data-view=species] .page-heading h1{font-size:1.875rem}
.page-title-row{display:flex;align-items:baseline;justify-content:space-between;gap:16px}
.page-title-row .secondary-text{flex-shrink:0}
#view-species .app-search{position:sticky;top:74px;z-index:5;border-radius:28px;background:rgba(238,238,242,.94);border:1px solid #e4e4e8;box-shadow:0 2px 8px #00000005;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}
#view-species .catalogue-status{font-size:.8125rem;margin:8px 0 14px}
#view-species .species-list{border-radius:0;background:transparent;margin-top:12px}
#view-species [role=button]:focus-visible{outline-offset:-3px}
.catalogue-pushed{animation:catalogue-push-away .3s cubic-bezier(.22,.7,.25,1) both}
.catalogue-returning{animation:catalogue-push-return .3s cubic-bezier(.22,.7,.25,1) both}
.species-page{--species-hero-color:#626f63;--species-background-color:#39443c;--species-foreground-color:#fff;--ink:var(--species-foreground-color);--muted:var(--species-foreground-color);--line:color-mix(in srgb,var(--species-foreground-color) 20%,transparent);position:fixed;inset:0;z-index:45;overflow-y:auto;overscroll-behavior-y:contain;background:var(--species-background-color);color:var(--species-foreground-color);isolation:isolate;scroll-padding-top:90px;padding-bottom:max(32px,env(safe-area-inset-bottom));box-shadow:-8px 0 30px #00000014}
.species-page.is-entering{animation:species-push-in .3s cubic-bezier(.22,.7,.25,1) both}
.species-page.is-leaving{animation:species-push-out .3s cubic-bezier(.22,.7,.25,1) both;pointer-events:none}
.species-page-toolbar{position:sticky;top:0;z-index:2;height:0;max-width:940px;margin:auto;overflow:visible}
.species-page-toolbar button{position:absolute;left:max(20px,env(safe-area-inset-left));top:max(16px,env(safe-area-inset-top));display:grid;place-items:center;width:48px;height:48px;border:1px solid #ffffff9c;border-radius:50%;background:#ffffffe0;color:#242426;box-shadow:0 2px 12px #00000012;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}
.species-page-toolbar svg{width:26px;height:26px}
.species-hero{position:relative;display:flex;flex-direction:column;justify-content:flex-end;min-height:56vh;min-height:56svh;max-width:940px;margin:auto;padding-top:30vh;padding-top:30svh;background:var(--species-background-color);overflow:hidden}
.species-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 38%}
.species-hero>.parallax-header-image{inset:calc(-1 * var(--header-overscan,0px));width:calc(100% + 2 * var(--header-overscan,0px));height:calc(100% + 2 * var(--header-overscan,0px));transform-origin:top center;transform:translate3d(0,var(--header-offset,0px),0) scale(var(--header-scale,1));filter:blur(var(--header-blur,0px));will-change:transform,filter;pointer-events:none}
@media(prefers-reduced-motion:reduce){.species-hero>.parallax-header-image{transform:none;filter:none;will-change:auto}}
.species-hero::after{content:'';position:absolute;inset:0;background:linear-gradient(to bottom,transparent 54%,color-mix(in srgb,var(--species-hero-color) 30%,transparent) 70%,color-mix(in srgb,var(--species-background-color) 82%,transparent) 86%,var(--species-background-color) 100%);pointer-events:none}
.species-hero-title{ text-shadow:0 1px 3px #0005;position:relative;z-index:1;padding:48px 24px 20px;text-align:center;overflow-wrap:anywhere}
.species-hero-title>p:first-child{font-size:.8125rem;font-weight:600;margin-bottom:8px;color:var(--species-foreground-color)}
.species-hero-title h1{color:inherit;font-size:clamp(2rem,7vw,3.75rem);line-height:1.06;letter-spacing:-.045em;font-weight:750;margin:0}
.species-hero-title .species-latin{font-size:1.125rem;color:var(--species-foreground-color);margin-top:12px;font-style:italic}
.species-hero.without-photo{min-height:280px;padding-top:120px;background:linear-gradient(145deg,var(--species-hero-color),var(--species-background-color))}
.species-hero.with-thumbnail{min-height:0;padding-top:256px;background:linear-gradient(145deg,var(--species-hero-color),var(--species-background-color))}
.species-hero.with-thumbnail>img{inset:80px auto auto 50%;transform:translateX(-50%);width:192px;height:192px;border:5px solid #ffffffb3;border-radius:50%;box-shadow:0 8px 28px #27312214;z-index:1}
.species-hero.with-thumbnail::after{background:linear-gradient(transparent,var(--species-background-color))}
.species-hero.with-thumbnail .species-hero-title{padding-top:40px}
.species-page-content{position:relative;background:var(--species-background-color);max-width:720px;margin:auto;padding:20px max(24px,env(safe-area-inset-right)) 24px max(24px,env(safe-area-inset-left))}
.species-page-content h2{color:inherit;font-size:1.375rem;letter-spacing:-.025em;margin-bottom:16px}
.species-description{margin-bottom:32px}
.species-description p{font-size:1.0625rem;line-height:1.65}
.species-page-facts{margin:0}
.species-page-facts>div{padding:15px 0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:minmax(90px,1fr) minmax(0,2fr);gap:20px}
.species-page-facts dt{color:var(--muted);font-size:.9375rem}
.species-page-facts dd{margin:0;font-size:1rem;line-height:1.45;overflow-wrap:anywhere}
.species-page-content .detail-source{margin-top:28px;font-size:.75rem;line-height:1.5;color:var(--muted)}
/* Photo cards borrow the horizontal video-row layout from IMG_4213.heic. */
.species-gallery{margin:0 -24px 32px}
.species-gallery-heading{display:flex;align-items:center;gap:12px;padding:0 24px 14px}
.species-gallery-heading h2{margin:0;flex:1}
.species-gallery-heading>span{color:var(--muted);font-size:.8125rem}
.gallery-scroll-controls{display:flex;gap:4px}
.gallery-scroll-controls button{color:inherit;display:grid;place-items:center;width:44px;height:44px;padding:10px;border:0;border-radius:50%;background:color-mix(in srgb,var(--species-foreground-color) 15%,var(--species-background-color))}
.gallery-scroll-controls svg,.gallery-viewer-controls svg{width:22px;height:22px}
.species-gallery-track{position:relative;display:flex;gap:14px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding-inline:24px;padding:0 24px 12px;scrollbar-width:thin;scrollbar-color:#b9b9c2 transparent}
.species-gallery-card{flex:0 0 min(84%,360px);min-width:0;margin:0;scroll-snap-align:start}
.gallery-photo{display:block;width:100%;aspect-ratio:4/3;overflow:hidden;border:0;padding:0;border-radius:14px;background:#e3e5e2;box-shadow:inset 0 0 0 1px #00000008}
.gallery-photo img{display:block;width:100%;height:100%;object-fit:cover}
.gallery-photo:focus-visible{outline-offset:-4px}
.species-gallery-card figcaption{display:flex;flex-direction:column;gap:2px;padding:9px 0 0;line-height:1.4;overflow-wrap:anywhere}
.species-gallery-card figcaption strong{font-weight:500;font-size:1rem}
.species-gallery-card figcaption span{font-size:.8125rem;color:var(--muted)}
.gallery-image-error{display:grid;place-items:center;width:100%;height:100%;padding:24px;color:#3d473e;font-size:.875rem}
.gallery-lightbox{position:fixed;inset:0;width:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#171719;color:#fff;overscroll-behavior:contain}
.gallery-lightbox[open]{display:flex;flex-direction:column}
.gallery-lightbox::backdrop{background:#000c}
.gallery-viewer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:max(12px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) 12px max(20px,env(safe-area-inset-left));flex-shrink:0}
.gallery-viewer-toolbar h2{color:inherit;font-size:1.125rem;margin:0}
.gallery-lightbox .glass-surface{display:grid;place-items:center;flex-shrink:0;width:48px;height:48px;padding:0;border-radius:50%;color:#fff;--glass-fill:rgba(70,70,75,.2)}
.gallery-close{font-size:2rem;line-height:1}
.gallery-viewer-figure{display:flex;flex-direction:column;flex:1;min-height:0;margin:0}
.gallery-viewer-image{display:flex;align-items:center;justify-content:center;flex:1;min-height:0;padding:0 max(12px,env(safe-area-inset-left))}
.gallery-viewer-image img{display:block;width:100%;height:100%;object-fit:contain}
.gallery-viewer-figure figcaption{display:flex;flex-direction:column;gap:4px;text-align:center;flex-shrink:0;padding:16px 24px 8px;overflow-wrap:anywhere}
.gallery-viewer-figure figcaption strong{font-weight:600}
.gallery-viewer-figure figcaption span{color:#c6c6ce;font-size:.875rem}
.gallery-viewer-controls{display:flex;justify-content:center;gap:24px;flex-shrink:0;padding:8px 20px max(20px,env(safe-area-inset-bottom))}
.gallery-lightbox .gallery-image-error{color:#c6c6ce}
.gallery-viewer-figure:last-child{padding-bottom:max(20px,env(safe-area-inset-bottom))}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more){.gallery-lightbox .glass-surface{background:#363639}}
@media(forced-colors:active){.gallery-lightbox,.gallery-lightbox .glass-surface{background:Canvas;color:CanvasText}.gallery-lightbox .glass-surface{border:1px solid ButtonText}.gallery-viewer-figure figcaption span{color:CanvasText}}
@keyframes species-push-in{from{transform:translateX(100%)}to{transform:translateX(0)}}
@keyframes species-push-out{from{transform:translateX(0)}to{transform:translateX(100%)}}
@keyframes catalogue-push-away{from{transform:translateX(0)}to{transform:translateX(-25%);opacity:.6}}
@keyframes catalogue-push-return{from{transform:translateX(-25%);opacity:.6}to{transform:translateX(0);opacity:1}}
@media(min-width:768px){.species-hero{border-radius:0 0 32px 32px}.species-hero>img{object-position:center 45%}.species-hero-title{padding-top:64px}}
@media(prefers-reduced-motion:reduce){.species-page,.catalogue-pushed,.catalogue-returning{animation:none!important}}
@media(prefers-reduced-transparency:reduce){.species-page-toolbar button,#view-species .app-search{background:#f2f2f7;-webkit-backdrop-filter:none;backdrop-filter:none}}

/* Shared glass surfaces: floating navigation, grouped actions and photo controls. */
:root{--tabbar-height:calc(96px + env(safe-area-inset-bottom));--glass-fill:rgba(242,242,247,.12);--glass-edge:rgba(255,255,255,.72);--glass-shadow:0 8px 28px rgba(30,32,40,.12),0 1px 4px rgba(30,32,40,.08),inset 0 1px 1px rgba(255,255,255,.8),inset 0 -1px 1px rgba(85,88,100,.1)}
.glass-surface,.species-page-toolbar .glass-surface{background:linear-gradient(145deg,rgba(255,255,255,.12),rgba(255,255,255,0) 48%,rgba(255,255,255,.04)),var(--glass-fill);border:1px solid var(--glass-edge);box-shadow:var(--glass-shadow);-webkit-backdrop-filter:blur(3px) saturate(125%);backdrop-filter:blur(3px) saturate(125%);background-clip:padding-box}
.bottom-bar.glass-surface{inset:auto max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));max-width:720px;margin-inline:auto;min-height:76px;padding:5px;border-radius:999px}
.bottom-bar.glass-surface>div{gap:2px}
.bottom-bar.glass-surface .bottom-tab{min-height:64px;border-radius:999px;color:#55555d;font-size:.6875rem;gap:4px;transition:background-color .18s ease,color .18s ease,box-shadow .18s ease}
.bottom-bar.glass-surface .bottom-tab.active{color:var(--red);background:rgba(255,255,255,.18);box-shadow:inset 0 1px 1px #fff,0 1px 6px #23232d09}
.bottom-bar.glass-surface .bottom-tab:focus-visible{outline-offset:-3px}
.header-buttons.glass-surface{padding:3px;gap:2px;border-radius:999px;--glass-fill:rgba(238,238,244,.1)}
.header-buttons.glass-surface .round-button{background:transparent;color:var(--red);transition:background-color .18s ease}
.header-buttons.glass-surface .round-button:focus-visible{outline-offset:-2px}
.species-page-toolbar .glass-surface{--glass-fill:rgba(0,0,0,.48);color:#fff}
body[data-view=species] #page-subtitle{font-size:.875rem;line-height:1.4;margin-top:5px}
#view-species .app-search{top:calc(76px + env(safe-area-inset-top))}
@media(hover:hover){.header-buttons.glass-surface .round-button:hover{background:rgba(255,255,255,.3)}.bottom-bar.glass-surface .bottom-tab:hover{background:rgba(255,255,255,.25)}.species-page-toolbar .glass-surface:hover{--glass-fill:rgba(250,250,255,.28)}}
@media(min-width:768px){.bottom-bar.glass-surface .bottom-tab{font-size:.75rem}}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.glass-surface,.species-page-toolbar .glass-surface{background:#eeeef3}}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more){.glass-surface,.species-page-toolbar .glass-surface{background:#f2f2f7;border-color:#b4b4bc;-webkit-backdrop-filter:none;backdrop-filter:none}.bottom-bar.glass-surface .bottom-tab.active{background:#fff;box-shadow:inset 0 0 0 1px #8e8e93}}
@media(prefers-reduced-motion:reduce){.bottom-bar.glass-surface .bottom-tab,.header-buttons.glass-surface .round-button{transition:none}}
@media(forced-colors:active){.glass-surface,.species-page-toolbar .glass-surface{background:Canvas;border:1px solid ButtonText;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}.bottom-bar.glass-surface .bottom-tab.active{outline:2px solid Highlight;outline-offset:-3px}}

/* Contacts-style alphabetical catalogue with automatic continuation. */
#view-species .app-search{margin-right:16px}
#view-species .species-list{padding-right:16px}
.catalogue-letter{padding:12px 0 4px;margin:0;color:var(--muted);font-size:.875rem;font-weight:600;line-height:1.2}
.catalogue-letter:focus-visible{outline-offset:0}
.catalogue-sentinel{height:1px}
.species-alphabet{position:fixed;z-index:8;top:calc(158px + env(safe-area-inset-top));bottom:calc(var(--tabbar-height) + 12px);right:max(2px,calc((100vw - 940px)/2 + 2px),env(safe-area-inset-right));width:26px;display:flex;flex-direction:column;align-items:center;justify-content:center;touch-action:none;user-select:none;-webkit-user-select:none}
.species-alphabet button{display:grid;place-items:center;flex:0 1 19px;width:26px;min-height:0;padding:0;border:0;border-radius:10px;background:transparent;color:var(--red);font-size:.6875rem;font-weight:650;line-height:1;touch-action:none}
.species-alphabet button:disabled{color:#b7b7bf;cursor:default}
.species-alphabet button[aria-current]{background:var(--red);color:#fff}
.species-alphabet button:focus-visible{outline-offset:0}
.species-letter-preview{position:fixed;z-index:9;right:max(42px,calc((100vw - 940px)/2 + 42px));top:45%;display:grid;place-items:center;width:64px;height:64px;border-radius:20px;color:var(--red);font-size:2rem;font-weight:650;pointer-events:none}

/* Keep the back control legible when the platform requests opaque controls. */
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more){.species-page-toolbar .glass-surface{background:var(--species-background-color);color:var(--species-foreground-color)}}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.species-page-toolbar .glass-surface{background:var(--species-background-color);color:var(--species-foreground-color)}}
@media(forced-colors:active){.species-page{background:Canvas;color:CanvasText;--muted:CanvasText}.species-hero::after{background:linear-gradient(transparent,Canvas)}.species-page-content{background:Canvas}.species-hero-title,.species-hero-title>p:first-child,.species-hero-title .species-latin{color:CanvasText}.species-page-toolbar .glass-surface{background:ButtonFace;color:ButtonText}}

.species-page .outline-button{background:transparent;color:inherit}

/* Exact source crops: catalogue only; other SpeciesCard uses retain their portraits. */
.framed-thumbnail{position:absolute;inset:0;overflow:hidden;border-radius:50%;pointer-events:none}
.framed-thumbnail img{position:absolute;left:0;top:0;max-width:none;object-fit:fill}
.species-page.has-framing.is-entering{animation:none}
.framed-hero-parallax{position:absolute;inset:0;transform-origin:top center;transform:translate3d(0,var(--header-offset,0px),0) scale(var(--header-scale,1));filter:blur(var(--header-blur,0px));will-change:transform,filter}
.framed-hero-image{position:absolute;left:0;top:0;max-width:none;object-fit:fill;transform-origin:0 0}
.species-framing-overlay{position:fixed;z-index:1;overflow:hidden;pointer-events:none}
.species-framing-overlay img{position:absolute;left:0;top:0;max-width:none;object-fit:fill}
.species-framing-gradient{position:absolute;inset:0;background:linear-gradient(to bottom,transparent 54%,color-mix(in srgb,var(--species-hero-color) 30%,transparent) 70%,color-mix(in srgb,var(--species-background-color) 82%,transparent) 86%,var(--species-background-color) 100%)}
.has-framing .species-hero-title{z-index:2}
.has-framing .species-page-toolbar{z-index:3}
@media(prefers-reduced-motion:reduce){.framed-hero-parallax{transform:none;filter:none;will-change:auto}}
