body.fi-page .fi-header:has(#guest-login) { flex-wrap:wrap; gap:8px 16px; }
body.fi-page .fi-header #guest-login { min-height:44px; font-size:16px; padding:8px 12px; margin-left:auto; }
body.fi-page .guest-save-prompt { border-top:1px solid #c9dacf; padding:16px 0; margin:16px 0; }
body.fi-page .guest-save-prompt p { margin:0 0 12px; line-height:1.6; color:#557066; }
body.fi-page #finish { white-space:normal; }
#guest-entry-note { margin:-6px 0 0; }
#guest-entry-note a { display:inline-flex; align-items:center; min-height:44px; color:#145c48; }
:is(#guest-text-trial,#guest-audio-upload) { margin:0; padding:4px 0; border:0; }
:is(#guest-text-trial,#guest-audio-upload) summary { min-height:44px; padding:8px 14px; }
:is(#guest-text-trial,#guest-audio-upload) summary::-webkit-details-marker { display:none; }
:is(#guest-text-trial,#guest-audio-upload) form { padding-top:14px; }
#guest-audio-upload :is(input,select) { display:block; max-width:100%; margin:8px 0 14px; }
#guest-trial-text { display:block; width:100%; box-sizing:border-box; font:inherit; margin:8px 0; padding:12px; border:1px solid #bfd8cb; border-radius:7px; resize:vertical; }
:is(#guest-text-trial,#guest-audio-upload) output { display:block; margin-top:8px; color:#426657; }
body.fi-page:has(:is(#guest-text-trial,#guest-audio-upload)[open]:not([hidden])) :is(.fi-modes,.fi-voice-language,#question,#question-picker,#repeat,#history-panel,#messages,#status,#interview-controls) { display:none; }
body.fi-page:has(:is(#guest-text-trial,#guest-audio-upload)[open]:not([hidden])) .fi-main { padding-bottom:32px; }
body.fi-page:has(#guest-login) .xf-open { position:static; display:block; margin:16px auto; }
body.fi-page:has(#guest-login) #interview-controls:has(#record.recording) :is(#record,#next) { display:none; }
body.fi-page:has(#guest-login) #interview-controls:has(#record.recording) #finish {
  background:#087957; border-color:#087957; color:#fff; min-height:48px; flex:1;
}
body.fi-page:has(#guest-login) #interview-controls:has(#record.recording) #send { min-height:48px; }
@media (max-width:650px) {
  body.fi-page:has(#guest-login) #interview-controls #record { flex:1 0 100%; min-height:48px; }
  body.fi-page:has(#guest-login) #interview-controls #next,
  body.fi-page:has(#guest-login) #interview-controls #finish { flex:1; min-width:0; min-height:48px; }
}
@media (max-width:480px) {
  body.fi-page .fi-header #allowance { order:3; flex-basis:100%; }
  body.fi-page #interview-controls .fi-actions { flex-wrap:wrap; }
}
