
:root{--bg:#0c1511;--panel:#101d17;--bubble:#1b2d24;--user:#245a43;--accent:#73a88b;--accent2:#95c3aa;--text:#eef4f0;--muted:#9daca4;--line:rgba(255,255,255,.09)}
*{box-sizing:border-box}html,body{min-height:100%}body{margin:0;color:var(--text);background:radial-gradient(circle at 10% 0%,rgba(67,113,87,.18),transparent 28rem),radial-gradient(circle at 100% 100%,rgba(42,74,58,.22),transparent 32rem),var(--bg);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,textarea{font:inherit}button{cursor:pointer}.app{min-height:100vh;display:grid;grid-template-rows:auto 1fr}.topbar{min-height:82px;padding:9px clamp(16px,4vw,48px);display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid var(--line);background:rgba(12,21,17,.84);backdrop-filter:blur(18px);position:sticky;top:0;z-index:5}.brand-lockup{display:flex;align-items:center;gap:12px}.brand-lockup img{width:68px;height:58px}.brand-title{font-family:Georgia,serif;font-size:21px;font-weight:700}.brand-promise{margin-top:4px;color:var(--muted);font-size:10px}.new-chat{border:1px solid var(--line);border-radius:999px;padding:9px 14px;color:var(--text);background:rgba(255,255,255,.035);font-weight:700}.conversation-shell{width:min(1120px,100%);margin:0 auto;padding:22px 20px 16px;display:flex}.conversation{width:100%;min-height:calc(100vh - 120px);display:grid;grid-template-rows:auto 1fr auto auto auto}.conversation-heading{text-align:center;padding:4px 0 19px}.conversation-heading h1{margin:0;font-family:Georgia,serif;font-size:clamp(27px,4vw,40px);font-weight:600}.conversation-heading p{margin:7px 0 0;color:var(--accent2);font-size:11px}.messages{overflow-y:auto;min-height:280px;max-height:calc(100vh - 285px);padding:12px clamp(0px,2vw,18px) 22px;scroll-behavior:smooth}.message{display:flex;gap:12px;width:100%;margin:0 0 26px}.message.user{justify-content:flex-end}.assistant-mark{width:39px;height:39px;padding:7px;border-radius:50%;background:#173f31;box-shadow:0 8px 20px rgba(0,0,0,.25)}.source-badge{display:inline-flex;margin:0 0 7px 2px;padding:5px 9px;border-radius:999px;font-size:10px;font-weight:700}.source-badge.reviewed{color:#aee0c3;background:rgba(83,150,111,.16);border:1px solid rgba(120,191,148,.35)}.source-badge.general{color:#b8d5f3;background:rgba(79,126,176,.16);border:1px solid rgba(111,164,219,.35)}.bubble{max-width:min(800px,82vw);padding:16px 19px;border-radius:19px;font-size:16px;line-height:1.6;box-shadow:0 10px 28px rgba(0,0,0,.14)}.bubble p{margin:0 0 8px}.bubble p:last-child{margin:0}.assistant-bubble{background:var(--bubble);border:1px solid rgba(255,255,255,.04);border-top-left-radius:7px}.user-bubble{color:#fff;background:linear-gradient(145deg,#2b6b50,var(--user));border-top-right-radius:7px}.sender{margin:6px 4px 0;color:#83918a;font-size:10px}.user .sender{text-align:right}.feedback{display:flex;gap:7px;margin-top:8px}.feedback button{border:1px solid var(--line);border-radius:999px;padding:5px 9px;color:var(--muted);background:transparent;font-size:10px}.feedback button.selected{color:var(--text);background:rgba(149,195,170,.09)}.typing{padding:0 clamp(0px,2vw,18px);margin-bottom:13px}.hidden{display:none}.typing-bubble{height:40px;padding:0 15px;display:flex;align-items:center;gap:5px;border-radius:16px 16px 16px 6px;background:var(--bubble)}.typing-bubble i{width:6px;height:6px;border-radius:50%;background:var(--accent2);animation:bounce 1.2s infinite}.typing-bubble i:nth-child(2){animation-delay:.13s}.typing-bubble i:nth-child(3){animation-delay:.26s}@keyframes bounce{0%,72%,100%{transform:translateY(0);opacity:.4}36%{transform:translateY(-5px);opacity:1}}.composer{margin:0 clamp(0px,2vw,18px);display:grid;grid-template-columns:1fr auto;align-items:end;gap:10px;padding:10px 10px 10px 19px;border:1px solid var(--line);border-radius:25px;background:var(--panel);box-shadow:0 14px 38px rgba(0,0,0,.22)}textarea{width:100%;max-height:140px;padding:8px 0;resize:none;border:0;outline:0;color:var(--text);background:transparent;line-height:1.45;font-size:16px}textarea::placeholder{color:#829088}.composer button{width:46px;height:46px;border:0;border-radius:50%;display:grid;place-items:center;background:#2f7456}.composer button svg{width:24px;fill:#fff}.preview-note{margin:11px 0 0;text-align:center;color:#718078;font-size:10px}@media(max-width:650px){.topbar{min-height:72px;padding:7px 11px}.brand-lockup img{width:53px;height:47px}.brand-title{font-size:16px}.brand-promise{display:none}.new-chat{padding:8px 10px;font-size:11px}.conversation-shell{padding:15px 9px 8px}.conversation-heading h1{font-size:25px}.messages{max-height:calc(100vh - 252px)}.assistant-mark{width:33px;height:33px}.bubble{max-width:84vw;padding:13px 15px;font-size:15px}.composer{margin:0}}
.source-badge.system{color:#d8e0dc;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.12)}
.assistant-bubble p{white-space:pre-wrap}
.answer-note{margin-top:14px!important;padding-top:12px;border-top:1px solid var(--line);color:var(--muted);font-size:.88em;line-height:1.5}
.answer-note strong{color:var(--text)}

/* Firmware 1.5, simple location confirmation flow */
.location-bubble{min-width:min(560px,78vw)}
.location-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:14px}
.location-action{border:1px solid var(--line);border-radius:999px;padding:9px 13px;color:var(--text);background:rgba(255,255,255,.045);font-weight:700;font-size:12px}
.location-action.primary{background:#2f7456;border-color:rgba(149,195,170,.28)}
.location-action:disabled{opacity:.55;cursor:default}
.location-entry{display:grid;grid-template-columns:1fr auto;gap:9px;margin-top:14px;align-items:center}
.location-entry input{width:100%;min-width:0;border:1px solid var(--line);border-radius:12px;padding:10px 12px;color:var(--text);background:rgba(0,0,0,.16);outline:none}
.location-entry input::placeholder{color:#829088}
.location-entry input:focus{border-color:rgba(149,195,170,.42)}
.location-error{margin-top:10px!important;color:#e8c1b8;font-size:.9em}
@media(max-width:650px){.location-bubble{min-width:0}.location-entry{grid-template-columns:1fr}.location-action{width:100%}}


/* Firmware 2.1, verified clickable YouTube video card */
.video-card{margin-top:14px;padding-top:13px;border-top:1px solid var(--line)}
.video-eyebrow{margin-bottom:4px;color:var(--accent2);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.video-title{margin-bottom:9px;color:var(--text);font-size:.95em;font-weight:700;line-height:1.4}
.video-link{display:inline-flex;align-items:center;border:1px solid rgba(149,195,170,.32);border-radius:999px;padding:8px 12px;color:#dff3e7;background:rgba(47,116,86,.22);font-size:12px;font-weight:800;text-decoration:none}
.video-link:hover,.video-link:focus-visible{background:rgba(47,116,86,.36);outline:none}
.assistant-bubble.has-image{max-width:min(1000px,calc(100vw - 120px));display:grid;grid-template-columns:minmax(220px,34%) minmax(300px,1fr);gap:20px;align-items:start}
.assistant-bubble.has-image .answer-copy{grid-column:2;grid-row:1}
.assistant-bubble.has-image .video-card{grid-column:2}
.image-card{margin:0;grid-column:1;grid-row:1 / span 2}
.image-card img{display:block;width:100%;aspect-ratio:3/2;max-height:320px;object-fit:contain;border-radius:12px;background:#07100c}
.image-card figcaption{margin-top:8px;color:var(--muted);font-size:11px;line-height:1.45}
.image-card figcaption a{color:var(--accent2)}
.image-controls{margin-top:9px}.show-more-photos{border:1px solid rgba(149,195,170,.32);border-radius:999px;padding:7px 11px;color:#dff3e7;background:rgba(47,116,86,.22);font-size:11px;font-weight:800}.show-more-photos:hover,.show-more-photos:focus-visible{background:rgba(47,116,86,.36);outline:none}
@media(max-width:760px){.assistant-bubble.has-image{max-width:84vw;display:block}.image-card{margin:0 0 14px}.image-card img{max-height:280px}}

/* V4.0 public reporting */
.report-dialog{width:min(560px,calc(100vw - 28px));border:1px solid var(--line);border-radius:18px;padding:0;color:var(--text);background:var(--panel);box-shadow:0 24px 70px rgba(0,0,0,.5)}
.report-dialog::backdrop{background:rgba(0,0,0,.68)}
.report-dialog form{padding:20px}.report-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.report-heading h2{margin:0;font-family:Georgia,serif;font-size:24px}.report-heading button{border:0;color:var(--muted);background:transparent;font-size:28px;line-height:1}.report-dialog p{color:var(--muted)}
.report-types{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 16px;padding:0;border:0}.report-types label{display:flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:999px;padding:8px 11px}.report-types label:has(input:disabled){opacity:.45}
.report-field{display:grid;gap:7px;margin-top:13px;color:var(--muted);font-size:12px;font-weight:700}.report-field select,.report-field textarea{width:100%;border:1px solid var(--line);border-radius:11px;padding:10px 11px;color:var(--text);background:#0d1813;outline:none}.report-field textarea{resize:vertical}.report-status{min-height:22px;margin-top:12px;color:var(--accent2);font-size:12px}.report-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:10px}.report-actions button{border:1px solid var(--line);border-radius:999px;padding:9px 14px;color:var(--text);background:transparent;font-weight:800}.report-actions button.primary{background:#2f7456}.report-actions button:disabled{opacity:.55}

/* Firmware 2.3, official WKH wildlife emblem branding */
.brand-lockup img{object-fit:contain;object-position:center;filter:none}
.assistant-mark{object-fit:contain;object-position:center;padding:4px;background:#173f31}
@media(max-width:650px){.assistant-mark{padding:3px}}

/* Step 1: guided conversation (buttons, pickers, sighting cards) */
.guide-bubble{min-width:min(560px,78vw)}
.guide-menu{margin-top:14px}
.guide-links{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.guide-link{color:var(--accent2);font-size:12px;font-weight:800;text-decoration:none}
.guide-link:hover,.guide-link:focus-visible{text-decoration:underline;outline:none}
.guide-choices{display:grid;gap:8px;margin-top:12px}
.guide-choice{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;text-align:left;border:1px solid var(--line);border-radius:12px;padding:10px 13px;color:var(--text);background:rgba(255,255,255,.045)}
.guide-choice:hover:not(:disabled),.guide-choice:focus-visible{background:rgba(47,116,86,.3);border-color:rgba(149,195,170,.4);outline:none}
.guide-choice:disabled{opacity:.55;cursor:default}
.guide-choice-name{font-weight:700;font-size:14px;line-height:1.35}
.guide-choice-sub{color:var(--muted);font-size:12px;font-style:italic}
.guide-results-bubble{max-width:min(720px,86vw)}
.guide-card{margin-top:12px;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:rgba(0,0,0,.14)}
.guide-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 13px;border-top:1px solid var(--line)}
.guide-row:first-child{border-top:0}
.guide-row-main{min-width:0}
.guide-row-title{font-weight:700;font-size:14px;line-height:1.35;overflow-wrap:anywhere}
.guide-meta{color:var(--muted);font-size:12px;line-height:1.45}
.guide-mini{flex:none;border:1px solid rgba(149,195,170,.32);border-radius:999px;padding:6px 11px;color:#dff3e7;background:rgba(47,116,86,.22);font-size:11px;font-weight:800}
.guide-mini:hover,.guide-mini:focus-visible{background:rgba(47,116,86,.4);outline:none}
.guide-credit{margin-top:12px!important;color:var(--muted);font-size:11px}
.guide-credit-link{color:var(--accent2)}
@media(max-width:650px){.guide-bubble{min-width:0}.guide-results-bubble{max-width:84vw}}
.guide-row-actions{display:flex;align-items:center;gap:8px;flex:none}
a.guide-mini{text-decoration:none;display:inline-block}

/* ===== Bird Intel look (navy, gold, cream), matching Bird Intel and My Account ===== */
:root{--bg:#edf0f4;--panel:#ffffff;--bubble:#fbfaf6;--user:#1d334f;--accent:#17293f;--accent2:#6b5a33;--text:#1c252f;--muted:#464e58;--line:#c9cfd6;--navy:#17293f;--navy2:#24446c;--gold:#d9bd79}
body{background:var(--bg);color:var(--text)}
.topbar{background:rgba(255,255,255,.94);border-bottom:1px solid var(--line);box-shadow:0 1px 0 rgba(23,41,63,.04)}
.brand-title{color:var(--navy)}
.brand-promise{color:var(--muted)}
.new-chat{color:var(--navy);background:#fff;border:1px solid #7f8894}
.new-chat:hover,.new-chat:focus-visible{background:#edf0f4;outline:none}
.conversation-heading h1{color:var(--navy)}
.conversation-heading p{color:#6b5a33;font-weight:700}
.assistant-mark{background:var(--navy);box-shadow:0 4px 12px rgba(23,41,63,.18)}
.bubble{box-shadow:0 2px 10px rgba(23,41,63,.08)}
.assistant-bubble{background:var(--bubble);border:1px solid var(--line);color:var(--text)}
.user-bubble{background:linear-gradient(145deg,#24446c,#17293f);color:#fff}
.sender{color:#5d6672}
.source-badge.reviewed{color:#1f4d36;background:#e6f1ea;border-color:#a9cdb8}
.source-badge.general{color:#1d3f66;background:#e6eef7;border-color:#a9c2dd}
.source-badge.system{color:#464e58;background:#edf0f4;border-color:#c9cfd6}
.feedback button{color:var(--muted);border-color:#7f8894;background:#fff}
.feedback button.selected{color:#fff;background:var(--navy)}
.typing-bubble{background:var(--bubble);border:1px solid var(--line)}
.typing-bubble i{background:var(--navy2)}
.composer{background:#fff;border:1px solid #7f8894;box-shadow:0 4px 18px rgba(23,41,63,.1)}
textarea::placeholder,.location-entry input::placeholder{color:#6f7782}
.composer button{background:var(--navy)}
.composer button:hover,.composer button:focus-visible{background:var(--navy2);outline:none}
.preview-note{color:#5d6672}
.answer-note strong{color:var(--navy)}
.location-action{color:var(--navy);background:#fff;border:1px solid #7f8894}
.location-action:hover:not(:disabled),.location-action:focus-visible{background:#edf0f4;outline:none}
.location-action.primary{color:#fff;background:var(--navy);border-color:var(--navy)}
.location-action.primary:hover:not(:disabled){background:var(--navy2)}
.location-entry input{color:var(--text);background:#fff;border:1px solid #7f8894}
.location-entry input:focus{border-color:var(--navy2);box-shadow:0 0 0 2px rgba(217,189,121,.55)}
.location-error{color:#a8251d}
.video-eyebrow{color:#6b5a33}
.video-title{color:var(--text)}
.video-link,.show-more-photos{color:var(--navy);background:#fff;border:1px solid #7f8894}
.video-link:hover,.video-link:focus-visible,.show-more-photos:hover,.show-more-photos:focus-visible{background:#edf0f4}
.image-card img{background:#edf0f4}
.image-card figcaption a{color:var(--navy2)}
.report-dialog{background:#fff;color:var(--text);box-shadow:0 24px 70px rgba(23,41,63,.35)}
.report-dialog::backdrop{background:rgba(23,41,63,.55)}
.report-field select,.report-field textarea{background:#fff;color:var(--text);border-color:#7f8894}
.report-status{color:#6b5a33}
.report-actions button{color:var(--navy);border-color:#7f8894}
.report-actions button.primary{color:#fff;background:var(--navy);border-color:var(--navy)}

/* Guided flow */
.guide-link,.guide-credit-link{color:var(--navy2);text-decoration:underline;text-underline-offset:2px}
.guide-links{border-top-color:var(--line)}
.guide-choice{color:var(--text);background:#fff;border:1px solid #7f8894}
.guide-choice:hover:not(:disabled),.guide-choice:focus-visible{background:#edf0f4;border-color:var(--navy);box-shadow:inset 3px 0 0 var(--gold);outline:none}
.guide-choice-sub{color:var(--muted)}
.guide-card{background:#fff;border:1px solid var(--line)}
.guide-row{border-top-color:var(--line)}
.guide-mini{color:var(--navy);background:#fff;border:1px solid #7f8894}
.guide-mini:hover,.guide-mini:focus-visible{background:#edf0f4;outline:none}
.guide-mini.primary-link{color:#fff;background:var(--navy);border-color:var(--navy)}
.guide-mini.primary-link:hover,.guide-mini.primary-link:focus-visible{background:var(--navy2)}
a.guide-name{color:var(--navy);text-decoration:underline;text-decoration-color:var(--gold);text-decoration-thickness:2px;text-underline-offset:3px}
a.guide-name:hover,a.guide-name:focus-visible{color:var(--navy2);background:rgba(217,189,121,.25);outline:none}
.guide-name-hint{color:var(--muted);font-size:11px;margin:8px 0 0}

/* ===== Header band and result cards (navy, gold, cream) ===== */
.hero{background:#17293f;padding:26px clamp(16px,4vw,48px) 22px;text-align:center}
.hero-eyebrow{color:#d9bd79;font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
.hero h1{margin:6px 0 4px;color:#fff;font-family:Georgia,serif;font-size:clamp(26px,4vw,38px);font-weight:600}
.hero p{margin:0 0 14px;color:#d9bd79;font-size:12px;font-weight:600}
.hero-actions{display:flex;flex-wrap:wrap;gap:9px;justify-content:center}
.hero-button{border:1px solid #d9bd79;border-radius:999px;padding:9px 16px;color:#fff;background:transparent;font-weight:700;font-size:13px}
.hero-button:hover,.hero-button:focus-visible{background:rgba(217,189,121,.18);outline:none}
.hero-button.primary{background:#d9bd79;color:#17293f;border-color:#d9bd79}
.hero-button.primary:hover,.hero-button.primary:focus-visible{background:#e6cf96}
.conversation{grid-template-rows:1fr auto auto auto;min-height:calc(100vh - 290px)}
.messages{max-height:calc(100vh - 470px)}
@media(max-width:650px){.hero{padding:16px 12px 14px}.hero p{margin-bottom:10px}.hero-button{padding:8px 12px;font-size:12px}.messages{max-height:calc(100vh - 400px)}}

.guide-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:8px;margin:2px 0 10px}
.guide-tile{background:#fff;border:1px solid var(--line);border-top:3px solid var(--gold);border-radius:10px;padding:8px 11px}
.guide-tile-label{color:#6b5a33;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.guide-tile-value{color:var(--navy);font-family:Georgia,serif;font-size:22px;line-height:1.2}
.guide-card{display:grid;gap:8px;border:0;background:transparent;border-radius:0;overflow:visible}
.guide-row{justify-content:flex-start;background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px 12px}
.guide-row:first-child{border-top:1px solid var(--line)}
.guide-row-main{flex:1}
.guide-row-title{font-family:Georgia,serif;font-size:16px;font-weight:600}
.guide-count{flex:none;width:48px;height:48px;border-radius:10px;background:var(--navy);display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.1}
.guide-count-number{color:var(--gold);font-size:17px;font-weight:700}
.guide-count-label{color:#fff;font-size:9px;letter-spacing:.02em}
.guide-row-actions .guide-mini{background:var(--navy);color:#fff;border-color:var(--navy)}
.guide-row-actions .guide-mini:hover,.guide-row-actions .guide-mini:focus-visible{background:var(--navy2)}
.guide-menu.hidden{display:none}

/* ===== V26: site menu on Ask (same shared menu as every WKH page, /wkh-nav-auth.js) ===== */
.ask-header{position:relative;z-index:20;background:#17293f}
/* Basic look until the shared menu script has loaded; the script then takes over. */
.ask-header .wkh-integrated-nav{display:flex;align-items:center;flex-wrap:wrap;gap:6px 18px;min-height:58px;padding:8px 20px;box-sizing:border-box;border-bottom:1px solid rgba(255,255,255,.22);text-align:left}
.ask-header .wkh-integrated-nav a{color:#fff;text-decoration:none;font-weight:600}
.ask-header .hero{padding-top:20px}
/* "New conversation" now sits at the top of the chat */
.conversation{grid-template-rows:auto 1fr auto auto auto}
.conversation-tools{display:flex;justify-content:flex-end;padding:0 clamp(0px,2vw,18px) 8px}
.messages{max-height:calc(100vh - 490px)}
@media(max-width:650px){
  .conversation-tools{padding:0 0 6px}
  .new-chat{padding:8px 12px;font-size:13px}
  .messages{max-height:calc(100vh - 430px)}
}

/* ===== V27: Ask voice (mic, read aloud) ===== */
.composer.has-mic{grid-template-columns:1fr auto auto}
.mic-button{width:46px;height:46px;border:1.5px solid var(--navy);border-radius:50%;display:grid;place-items:center;background:#fff;color:var(--navy);padding:0}
.mic-button svg{width:22px;fill:currentColor}
.mic-button:hover:not(:disabled),.mic-button:focus-visible{background:#edf0f4;outline:none}
.mic-button:disabled{opacity:.5;cursor:default}
.mic-button.recording{background:#a8432f;border-color:#a8432f;color:#fff;animation:askMicPulse 1.2s ease-in-out infinite}
.mic-button.working{opacity:.7}
@keyframes askMicPulse{50%{transform:scale(.93)}}
.voice-status{margin:8px clamp(0px,2vw,18px) 0;color:var(--navy);font-size:14px;font-weight:650;text-align:center}
.voice-status[hidden]{display:none}
.voice-signup{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:8px}
.voice-signup a{display:inline-flex;align-items:center;min-height:42px;padding:0 14px;border-radius:10px;border:1.5px solid #7f8894;background:#fff;color:var(--navy);font-weight:800;text-decoration:none}
.voice-signup a.voice-signup-primary{background:#F2B544;border-color:#F2B544;color:#1c2333}
.conversation-tools{gap:8px;align-items:center;flex-wrap:wrap}
.read-toggle,.read-stop{border:1px solid #7f8894;border-radius:999px;padding:9px 14px;background:#fff;color:var(--navy);font-weight:700}
.read-toggle:hover,.read-toggle:focus-visible,.read-stop:hover,.read-stop:focus-visible{background:#edf0f4;outline:none}
.read-stop{background:var(--navy);color:#fff;border-color:var(--navy)}
.read-stop[hidden]{display:none}
.feedback .listen-button{font-weight:700;color:var(--navy)}
@media(max-width:650px){
  .read-toggle,.read-stop{padding:8px 11px;font-size:13px}
  .mic-button{width:44px;height:44px}
}

/* ===== V28: phone fixes ===== */
/* iPhones zoom in when a box with text smaller than 16px is tapped, and stay zoomed.
   Every box in Ask now uses 16px text, so that never happens (pinch-zoom still works). */
input,select,textarea,.location-entry input,.report-field select,.report-field textarea{font-size:16px}
/* Nothing in Ask may be wider than the screen. */
html,body{max-width:100%;overflow-x:hidden}
@media(max-width:650px){
  /* Smaller header on phones: the menu bar already shows "Ask Wildlife Knowledge Hub",
     so the big title, the small gold line and the status line are hidden here. */
  .ask-header .hero{padding:10px 10px 12px}
  .hero-eyebrow,.hero h1,.hero #statusText{display:none}
  .hero-actions{gap:7px}
  .hero-button{padding:8px 12px;font-size:14px}
  .conversation-shell{padding-top:10px}
  .conversation{min-height:0}
  .messages{max-height:none;height:calc(100vh - 330px);min-height:260px}
  @supports(height:100dvh){.messages{height:calc(100dvh - 330px)}}
}

/* ===== V29: phones — the conversation scrolls like a normal page ===== */
/* No inner scrolling box on phones (it cut answers off and left a gap when zoomed
   or with large text). The question box stays stuck to the bottom of the screen. */
@media(max-width:650px){
  /* "clip" (not "hidden") so the stuck question box keeps working */
  html,body{overflow-x:clip}
  .conversation{display:block;min-height:0}
  .messages{height:auto;min-height:0;max-height:none;overflow:visible;padding-bottom:8px}
  .composer{position:sticky;bottom:0;z-index:15;margin:0 0 4px}
  /* a band of page colour around the stuck box so text scrolling behind it is hidden */
  .composer{box-shadow:0 0 0 10px var(--bg),0 4px 18px rgba(23,41,63,.1)}
  .voice-status{position:sticky;bottom:78px;z-index:15;background:var(--bg);padding:6px 4px;margin:0}
  .preview-note{padding-bottom:max(8px,env(safe-area-inset-bottom))}
}

/* ===== V30: never wider than the phone screen ===== */
/* The question box's own default width (about 20 letters) forced the whole page to
   ~356px, wider than many phones and anyone using larger text. Everything may now shrink. */
.app{grid-template-columns:minmax(0,1fr)}
.composer,.composer.has-mic{grid-template-columns:minmax(0,1fr) auto auto}
.composer textarea{min-width:0;width:100%}
.conversation,.conversation-shell,.messages,.ask-header,.hero{min-width:0;max-width:100%}
/* Mic while waiting for the microphone or while working: grey, clearly visible (not faded white). */
.mic-button:disabled,.mic-button.working{opacity:1;background:#5d6672;border-color:#5d6672;color:#fff}
.mic-button.working svg{animation:askMicPulse 1.2s ease-in-out infinite}
.composer textarea:disabled{background:transparent;color:var(--text)}
.composer textarea:disabled::placeholder{color:#3d4652}
/* On phones a tapped button keeps its "hover" look, which turned the recording mic pale.
   The recording mic now always stays red with a white microphone, and hover only applies to mice. */
.composer .mic-button.recording,.composer .mic-button.recording:hover,.composer .mic-button.recording:focus-visible{background:#b3261e;border-color:#b3261e;color:#fff;opacity:1}
@media(hover:none){.mic-button:hover:not(:disabled){background:#fff}}
.composer textarea::placeholder{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.source-badge[hidden]{display:none}

/* ===== V33: WKH tool buttons under answers ===== */
.feedback{flex-wrap:wrap}
.feedback .where-button{font-weight:700;color:#fff;background:var(--navy);border-color:var(--navy)}
.feedback .more-button{font-weight:700;color:var(--navy)}

/* ===== V34: voice message inside the question box; friendlier location step ===== */
.composer .voice-status{grid-column:1 / -1;grid-row:1;position:static;bottom:auto;z-index:auto;margin:0 0 2px;padding:4px 2px 0;background:none;color:var(--navy);font-size:15px;font-weight:700;text-align:left;line-height:1.35}
.composer .voice-status .voice-signup{justify-content:flex-start}
.location-note{margin:10px 0 0!important;color:var(--muted);font-size:13px;line-height:1.45}

/* ===== V35: microphone explained first; mic off; place choices ===== */
.voice-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.voice-action{min-height:44px;padding:0 16px;border-radius:999px;border:1.5px solid #7f8894;background:#fff;color:var(--navy);font-weight:800;font-size:15px}
.voice-action.primary{background:var(--navy);border-color:var(--navy);color:#fff}
.composer .mic-button.mic-off:not(.recording){background:#e4e7eb;border-color:#9aa1aa;color:#5d6672}
/* the question box makes its buttons round 46px circles; these are normal buttons */
.composer .voice-action{border:1.5px solid #7f8894;width:auto;height:auto;min-height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:0 16px;background:#fff;color:var(--navy)}
.composer .voice-action.primary,.composer .voice-action.primary:hover{background:var(--navy);color:#fff}
.composer .voice-action:not(.primary):hover{background:#edf0f4}

/* ===== V36: the mic never turns invisible ===== */
/* The question box gives its buttons a navy background, no border and a white icon.
   An older phone "hover" rule turned the tapped mic white, so it became white on white
   (invisible) after a spoken question. The mic now always stays navy with a white icon;
   a mouse hover shows a slightly lighter navy. */
.composer .mic-button{background:var(--navy);border:0;color:#fff}
.composer .mic-button svg{fill:#fff}
.composer .mic-button:hover:not(:disabled),.composer .mic-button:focus-visible{background:var(--navy2);outline:none}
@media(hover:none){.composer .mic-button:hover:not(:disabled):not(.recording):not(.mic-off){background:var(--navy)}}
/* Working / waiting: grey with a white icon. */
.composer .mic-button:disabled,.composer .mic-button.working{background:#5d6672;color:#fff}
/* Recording: red with a white icon (also when tapped). */
.composer .mic-button.recording,.composer .mic-button.recording:hover,.composer .mic-button.recording:focus-visible{background:#b3261e;color:#fff}
/* Microphone off (permission not given): light grey with a dark grey icon. */
.composer .mic-button.mic-off:not(.recording),.composer .mic-button.mic-off:not(.recording):hover{background:#e4e7eb;border:1.5px solid #9aa1aa}
.composer .mic-button.mic-off:not(.recording) svg{fill:#5d6672}

/* ===== V39: search area and time, shown clearly with one-tap changes ===== */
.guide-scope{margin:0 0 12px;padding:10px 12px;border:1px solid var(--line);border-left:4px solid var(--gold);border-radius:12px;background:#fff}
.guide-scope-line{margin:0 0 8px!important;color:var(--navy);font-size:15px;line-height:1.45}
.guide-scope-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:6px}
.guide-scope-label{min-width:44px;color:#6b5a33;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.guide-scope-chip{min-height:38px;padding:0 12px;border:1px solid #7f8894;border-radius:999px;background:#fff;color:var(--navy);font-weight:700;font-size:14px}
.guide-scope-chip:hover:not(:disabled),.guide-scope-chip:focus-visible{background:#edf0f4;outline:none}
.guide-scope-chip.is-current,.guide-scope-chip.is-current:disabled{background:var(--navy);border-color:var(--navy);color:#fff;opacity:1;cursor:default}
.guide-scope-chip:disabled:not(.is-current){opacity:.55}
