/* Keep the original fox, including its tail, inside the Study header. */
body.study-site .site-header .logo{flex:0 0 72px;width:72px;height:72px;overflow:visible}
body.study-site .site-header .logo img{width:100%;height:100%;object-fit:contain;transform:none}
body.study-site.has-study-message{padding-bottom:80px}
.study-message{position:fixed;right:24px;bottom:max(20px,env(safe-area-inset-bottom));width:360px;max-width:calc(100vw - 32px);z-index:40;color:#292c27;font-family:var(--sans,sans-serif)}
.study-message [hidden]{display:none!important}
.study-message button{border:1px solid #c8c4ba;border-radius:5px;padding:10px 14px;background:#faf8f2;color:inherit;font:inherit;font-size:14px;line-height:1.4;min-height:44px}
.study-message button:disabled{opacity:.55;cursor:default}
.study-message button:focus-visible,.study-message input:focus-visible,.study-message textarea:focus-visible{outline:3px solid #8a7965;outline-offset:3px}
.study-message-toggle{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;min-height:54px!important;text-align:left;box-shadow:0 5px 18px #24282220;background:#eee8dc!important;border-color:#a89b87!important}
.study-message-toggle span:first-child{min-width:0}
.study-message-panel{position:absolute;bottom:calc(100% + 10px);right:0;width:100%;max-height:calc(100vh - 130px);max-height:calc(100dvh - 130px);overflow:auto;overscroll-behavior:contain;padding:18px 20px;background:#faf8f2;border:1px solid #c8c4ba;border-radius:8px;box-shadow:0 8px 28px #24282228;opacity:0;transform:translateY(18px);transition:transform .18s ease,opacity .18s ease}
.study-message.is-open .study-message-panel{opacity:1;transform:translateY(0)}
.study-message-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.study-message-heading h2{margin:0;font:600 19px/1.4 var(--sans,sans-serif);letter-spacing:0}
.study-message-heading button{flex:none;padding:6px 10px;background:transparent;min-width:42px}
.study-message form{display:flex;flex-direction:column;min-width:0}
.study-message form label{font-size:14px;font-weight:600;margin:12px 0 7px}
.study-message input,.study-message textarea{display:block;width:100%;min-width:0;border:1px solid #bfb9ac;border-radius:4px;background:white;color:inherit;padding:10px;font:16px/1.5 var(--sans,sans-serif)}
.study-message textarea{resize:vertical;min-height:104px;max-height:260px}
.study-message input:read-only,.study-message textarea:read-only{background:#f0ede5}
.study-message-help,.study-message-count{font-size:12px;line-height:1.5;color:#65685f;margin:6px 0 0}
.study-message-count{text-align:right}
.study-message-status{font-size:14px;line-height:1.6;overflow-wrap:anywhere;margin:12px 0 0;color:#42543b}
.study-message-status:empty{display:none}
.study-message-status.error{color:#755440}
.study-message-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin-top:16px}
.study-message #study-message-send{background:#665a48;color:#fff;border-color:#665a48;min-width:84px}
.study-message #study-message-another{flex-basis:100%}
@media(max-width:650px){
 .study-message{right:16px;bottom:max(16px,env(safe-area-inset-bottom))}
 .study-message-panel{padding:14px 16px;max-height:calc(100vh - 176px);max-height:calc(100dvh - 176px)}
 .study-message-heading h2{font-size:18px}
}
@media(max-width:820px){
 body.study-site.has-study-tools.has-study-message{padding-bottom:150px}
 body.study-site.has-study-tools .study-message{bottom:calc(max(16px,env(safe-area-inset-bottom)) + 58px)}
 body.study-site.has-study-tools .study-message-panel{max-height:calc(100vh - 180px - env(safe-area-inset-bottom));max-height:calc(100dvh - 180px - env(safe-area-inset-bottom))}
}
@media(prefers-reduced-motion:reduce){.study-message-panel{transition:none;transform:none}}
