.hmna-root{--hmna-green:#07563e;--hmna-dark:#064832;--hmna-lime:#7DB00E;--hmna-yellow:#ffe21b;--hmna-blue:#edf1fb;--hmna-ink:#102f27;--hmna-line:#dbe3ee}
.hmna-root{font-family:Arial,Helvetica,sans-serif;color:var(--hmna-ink);z-index:99999}.hmna-root *{box-sizing:border-box}.hmna-orb{padding:0;overflow:hidden;position:fixed;z-index:99999;right:22px;bottom:22px;border:4px solid var(--hmna-lime);border-radius:50%;width:74px;height:74px;background:#075630;box-shadow:0 5px 20px #0003;cursor:pointer}.hmna-orb img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
.hmna-panel{position:fixed;z-index:99998;right:22px;bottom:108px;width:min(420px,calc(100vw - 24px));height:min(690px,calc(100dvh - 132px));min-height:min(490px,calc(100dvh - 132px));background:#fff;border:1px solid var(--hmna-line);border-radius:18px;overflow:hidden;box-shadow:0 16px 50px #0003;display:none;flex-direction:column}.hmna-panel.is-open{display:flex}.hmna-root.hmna-open .hmna-orb{display:none}.hmna-hero{height:176px;flex:0 0 176px;position:relative;overflow:hidden;background:linear-gradient(0deg,#062d14aa,#08270d11),url('assistant-portrait.webp') center 32%/cover}.hmna-hero>img{display:none}.hmna-close,.hmna-form header button,.hmna-photo-window header button,.hmna-received header button{position:absolute;right:10px;top:10px;background:var(--hmna-dark);color:white;border:0;border-radius:50%;width:34px;height:34px;font-size:23px;line-height:1;cursor:pointer}
.hmna-tabs{display:flex;flex:0 0 58px;padding:7px 12px;border-bottom:1px solid #edf0f4;gap:6px}.hmna-tabs button{flex:1;padding:8px;border:1px solid var(--hmna-line);border-radius:10px;background:#fff;color:var(--hmna-dark);font-size:16px;font-weight:bold;cursor:pointer}.hmna-tabs button span{font-size:19px;margin-right:7px}.hmna-tabs button.active{background:var(--hmna-dark);color:#fff}.hmna-chat-screen{display:flex;flex:1;min-height:100px;flex-direction:column}.hmna-chat-screen[hidden]{display:none}.hmna-messages{flex:1;min-height:0;overflow-y:auto;padding:13px 15px;display:flex;flex-direction:column;gap:9px}.hmna-message-row{display:flex;align-items:flex-start;gap:7px;max-width:100%}.hmna-message-row.assistant{align-self:flex-start}.hmna-message-row.user{align-self:flex-end;justify-content:flex-end}.hmna-msg-avatar,.hmna-user-avatar{width:38px;height:38px;flex:0 0 38px;border-radius:50%;object-fit:cover;background:#075630}.hmna-user-avatar{position:relative;background:#dcf2e7}.hmna-user-avatar:before{content:"";position:absolute;left:14px;top:7px;width:10px;height:10px;border-radius:50%;background:#075630}.hmna-user-avatar:after{content:"";position:absolute;left:9px;bottom:7px;width:20px;height:11px;border-radius:12px 12px 3px 3px;background:#075630}.hmna-msg{max-width:calc(100% - 46px);padding:10px 13px;border-radius:12px;background:var(--hmna-blue);line-height:1.4;font-size:15px;overflow-wrap:anywhere}.hmna-message-row.user .hmna-msg{background:#e2f1e1}.hmna-chat-composer{padding:8px 12px;display:flex;gap:7px;align-items:center}.hmna-chat-composer input{min-width:0;flex:1;border:1px solid var(--hmna-line);border-radius:9px;padding:12px;font-size:16px}.hmna-photo-small{width:38px;height:42px;border:1px solid var(--hmna-line);border-radius:8px;background:#fff;color:var(--hmna-dark);font-size:23px}.hmna-send,.hmna-photo-send{border:0;border-radius:50%;width:46px;height:46px;background:var(--hmna-green);color:white;font-size:24px;cursor:pointer}
.hmna-main{min-height:52px;margin:0 13px 9px;border:0;border-radius:10px;background:var(--hmna-yellow);color:var(--hmna-dark);padding:11px 14px;font-size:17px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:9px;cursor:pointer}.hmna-main-icon{font-size:20px}.hmna-main.is-ending .hmna-main-icon{width:34px;height:34px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#d71920;color:#fff;font-size:15px}.hmna-actions{display:flex;gap:7px;padding:0 12px 9px;flex:0 0 66px}.hmna-actions button,.hmna-actions a{flex:1;min-width:0;background:#fff;border:1px solid var(--hmna-line);border-radius:10px;padding:8px 4px;color:var(--hmna-dark);font-weight:600;cursor:pointer;text-decoration:none;display:flex;align-items:center;justify-content:center;gap:7px}.hmna-actions span{font-size:22px}.hmna-actions small{font-size:12px;line-height:1.15;text-align:left}
.hmna-privacy{flex:0 0 auto;text-align:center;color:#637381;font-size:10px;padding:2px 5px 7px}.hmna-privacy button{border:0;background:none;color:var(--hmna-green);text-decoration:underline;cursor:pointer;font-size:inherit}.hmna-voice-screen{display:none;flex:1;min-height:0;align-items:center;justify-content:center;flex-direction:column;gap:15px;padding:15px}.hmna-voice-screen.is-active{display:flex}.hmna-voice-copy{font-size:16px;font-weight:700;color:var(--hmna-dark)}.hmna-wave{font-size:32px;letter-spacing:4px;color:var(--hmna-green);min-height:42px}.hmna-mic{width:106px;height:106px;border-radius:50%;border:9px solid #dcf8e7;background:var(--hmna-dark);color:white;font-size:38px;cursor:pointer}.hmna-mic.listening{box-shadow:0 0 0 12px #dcf8e7aa;animation:hmna-pulse 1.8s infinite}.hmna-voice-text{width:100%;border:1px solid var(--hmna-line);border-radius:9px;padding:12px;font-size:16px}@keyframes hmna-pulse{50%{box-shadow:0 0 0 20px #dcf8e755}}
.hmna-photo-window,.hmna-form,.hmna-received{position:absolute;z-index:4;inset:0;background:#fff;display:flex;flex-direction:column}.hmna-photo-window[hidden],.hmna-form[hidden],.hmna-received[hidden]{display:none}.hmna-photo-window header,.hmna-form header,.hmna-received header{position:relative;display:flex;align-items:center;justify-content:center;min-height:54px;background:#00683e;color:#fff;padding:10px 48px;font-size:16px}.hmna-photo-window header .hmna-window-avatar{position:absolute;left:12px;top:9px;width:36px;height:36px;border-radius:50%;border:2px solid #b7f500;object-fit:cover;background:#075630}.hmna-photo-window header button,.hmna-form header button,.hmna-received header button{background:transparent;color:#fff;top:9px}.hmna-photo-thread{flex:1;min-height:0;overflow:auto;padding:12px}.hmna-note{background:var(--hmna-blue);padding:10px 12px;border-radius:10px;font-size:15px}.hmna-photo-previews{display:flex;gap:7px;flex-wrap:wrap}.hmna-photo-file{border:1px solid var(--hmna-line);border-radius:8px;overflow:hidden;padding:4px;font-size:12px;max-width:160px}.hmna-photo-file img{display:block;width:148px;height:78px;object-fit:cover}.hmna-disclaimer{text-align:center;color:#697986;font-size:11px}.hmna-upload-button{margin:0 13px 8px;min-height:64px;border:1px dashed var(--hmna-green);background:#eff9f2;border-radius:8px;color:var(--hmna-dark);display:flex;flex-direction:column;align-items:center;justify-content:center;font-weight:bold;cursor:pointer}.hmna-upload-button small{font-weight:normal;color:#657481}.hmna-upload-button input{position:absolute;width:1px;height:1px;opacity:0}.hmna-photo-actions{display:flex;gap:8px;padding:0 12px 12px}.hmna-photo-actions button,.hmna-photo-actions a{flex:1;text-align:center;text-decoration:none;background:var(--hmna-yellow);color:var(--hmna-dark);border:1px solid var(--hmna-green);border-radius:8px;padding:10px;font-weight:700}.hmna-photo-actions a{background:white}
.hmna-fields{padding:12px;overflow-y:auto;display:grid;grid-template-columns:1fr 1fr;gap:9px}.hmna-address-field{min-width:0;display:flex;flex-direction:column;gap:3px;font-size:12px;position:relative}.hmna-address-field>label{font-size:12px}.hmna-address-field>input{width:100%;border:1px solid var(--hmna-line);border-radius:7px;padding:9px;font:inherit;font-size:14px;min-width:0}.hmna-address-note{font-size:10px;line-height:1.3;color:#66746c}.hmna-address-note a{color:var(--hmna-green)}.hmna-address-suggestions{display:flex;flex-direction:column;max-height:155px;overflow:auto;border:1px solid var(--hmna-line);border-radius:7px;background:#fff;box-shadow:0 5px 12px #0002}.hmna-address-suggestions[hidden]{display:none}.hmna-address-suggestions button{width:100%;text-align:left;border:0;border-bottom:1px solid #edf0f4;background:#fff;color:var(--hmna-dark);padding:9px;font:inherit;font-size:12px;cursor:pointer}.hmna-address-suggestions button:hover,.hmna-address-suggestions button:focus{background:#eff9f2;outline:2px solid var(--hmna-green)}.hmna-fields label{font-size:12px;display:flex;flex-direction:column;gap:3px}.hmna-fields input,.hmna-fields select,.hmna-fields textarea{width:100%;border:1px solid var(--hmna-line);border-radius:7px;padding:9px;font:inherit;font-size:14px;min-width:0}.hmna-fields textarea{resize:vertical}.hmna-fields label:nth-of-type(7),.hmna-fields label:nth-of-type(8),.hmna-fields .hmna-submit,.hmna-coverage-note{grid-column:1/-1}.hmna-coverage-note{margin:0;color:#636f77;font-size:11px}.hmna-submit{border:0;border-radius:9px;background:var(--hmna-yellow);color:var(--hmna-dark);padding:13px;font-weight:bold;font-size:16px;cursor:pointer}.hmna-received-inner{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:22px}.hmna-check{width:92px;height:92px;border-radius:50%;background:#064832;color:white;font-size:54px;display:grid;place-items:center;box-shadow:0 0 0 14px #dcf8e7;margin-bottom:22px}.hmna-received-inner h2{color:var(--hmna-dark);margin:0 0 8px}.hmna-received-inner p{line-height:1.45}.hmna-received-estimate{padding:13px;background:var(--hmna-blue);border-radius:10px}.hmna-end{background:var(--hmna-yellow);color:var(--hmna-dark)}
@media(max-width:600px){.hmna-panel{inset:0;width:100%;height:100dvh;min-height:0;border-radius:0}.hmna-hero{height:28dvh;flex-basis:28dvh}.hmna-orb{width:66px;height:66px;right:16px;bottom:16px}.hmna-fields{gap:7px;padding:10px}.hmna-fields input,.hmna-fields select,.hmna-fields textarea{padding:8px;font-size:16px}.hmna-actions{flex-basis:65px}.hmna-msg{font-size:15px}}
@media(max-width:360px){.hmna-tabs{padding-left:7px;padding-right:7px}.hmna-tabs button{font-size:14px}.hmna-fields{grid-template-columns:1fr}.hmna-fields label,.hmna-fields label:nth-of-type(7),.hmna-fields label:nth-of-type(8),.hmna-fields .hmna-submit,.hmna-coverage-note{grid-column:1}.hmna-privacy{font-size:9px}.hmna-wave{font-size:24px;letter-spacing:2px;max-width:100%;overflow:hidden}}

/* Approved four-state reference: preserve portrait, contain theme styles. */
#hmna-root button,#hmna-root input,#hmna-root select,#hmna-root textarea,#hmna-root a{font-family:Arial,Helvetica,sans-serif;text-transform:none;letter-spacing:normal;box-shadow:none}
#hmna-root button{line-height:1.2;min-width:0}
#hmna-root button:focus-visible,#hmna-root a:focus-visible,#hmna-root input:focus-visible,#hmna-root select:focus-visible,#hmna-root textarea:focus-visible{outline:3px solid #318a6b;outline-offset:2px}
#hmna-root button:disabled{opacity:.55;cursor:wait}
#hmna-root .hmna-tabs button,#hmna-root .hmna-actions button,#hmna-root .hmna-actions a{background:#fff;color:var(--hmna-dark)}
#hmna-root .hmna-tabs button.active,#hmna-root .hmna-send,#hmna-root .hmna-photo-send,#hmna-root .hmna-mic{background:var(--hmna-dark);color:#fff}
#hmna-root .hmna-main,#hmna-root .hmna-submit{background:var(--hmna-yellow);color:var(--hmna-dark)}
#hmna-root .hmna-hero{background:#07563e;flex-basis:clamp(110px,25dvh,190px);height:clamp(110px,25dvh,190px)}
#hmna-root .hmna-hero>img{display:block;width:100%;height:100%;object-fit:cover;object-position:center top}
#hmna-root .hmna-close{background:transparent;color:#fff;font-size:32px;text-shadow:0 1px 4px #0007}
#hmna-root .hmna-icon{display:inline-block;width:24px;height:24px;vertical-align:middle;flex:none}
#hmna-root .hmna-mic .hmna-icon{width:44px;height:44px}
#hmna-root .hmna-send,#hmna-root .hmna-photo-send{flex:0 0 46px;padding:10px;display:grid;place-items:center}
#hmna-root .hmna-main{flex-shrink:0}
#hmna-root .hmna-main.is-ending .hmna-main-icon{background:#d71920;color:#fff}
#hmna-root .hmna-voice-screen{position:relative;padding:12px;gap:10px;justify-content:flex-start}
#hmna-root .hmna-voice-text{margin-top:auto;min-height:46px;background:#fff;color:#687991;flex-shrink:0}
#hmna-root .hmna-chat-composer input{height:46px;margin:0;background:#fff;color:var(--hmna-ink)}
#hmna-root .hmna-chat-composer{flex-shrink:0}
#hmna-root .hmna-camera-button{display:block;margin:0 13px 8px;text-align:center;padding:10px;border:1px solid var(--hmna-line);border-radius:8px;cursor:pointer;color:var(--hmna-dark);font-weight:600}
#hmna-root .hmna-camera-button input{display:block;max-width:100%;font-size:12px;margin-top:6px}
#hmna-root .hmna-upload-button input{position:static;opacity:1;width:auto;max-width:100%;height:auto;margin:8px;font-size:12px}
#hmna-root .hmna-form-error{grid-column:1/-1;color:#9f1b24;background:#fff0f0;padding:10px;border-radius:8px;margin:0}
#hmna-root .hmna-fields>label:has(textarea),#hmna-root .hmna-form-upload,#hmna-root .hmna-address-field{grid-column:1/-1}
#hmna-root .hmna-msg{color:#102f66;background:#edf0fa}
@media(max-height:650px){#hmna-root .hmna-hero{height:100px;flex-basis:100px}#hmna-root .hmna-wave{display:none}#hmna-root .hmna-mic{width:72px;height:72px;border-width:5px}#hmna-root .hmna-voice-screen{gap:5px}#hmna-root .hmna-privacy{font-size:9px}}
@media(max-width:600px){#hmna-root .hmna-panel{bottom:0;right:0;padding-bottom:env(safe-area-inset-bottom,0px)}#hmna-root .hmna-orb{bottom:calc(16px + env(safe-area-inset-bottom,0px))}}
@media(prefers-reduced-motion:reduce){#hmna-root .hmna-mic.listening{animation:none}}
/* Keep dark-green controls readable even when the WordPress theme colors children. */
#hmna-root .hmna-tabs button.active,#hmna-root .hmna-tabs button.active *,#hmna-root .hmna-send,#hmna-root .hmna-send *,#hmna-root .hmna-photo-send,#hmna-root .hmna-photo-send *,#hmna-root .hmna-mic,#hmna-root .hmna-mic *{color:#fff!important;-webkit-text-fill-color:#fff}
#hmna-root .hmna-tabs button.active:hover,#hmna-root .hmna-tabs button.active:focus,#hmna-root .hmna-send:hover,#hmna-root .hmna-photo-send:hover,#hmna-root .hmna-mic:hover{background:#064832!important;color:#fff!important}

#hmna-root .hmna-photo-file{position:relative}#hmna-root .hmna-remove-file{position:absolute;right:5px;top:5px;width:28px;height:28px;padding:0;border:1px solid var(--hmna-line);border-radius:50%;background:#fff;color:#064832;font-size:22px}#hmna-root .hmna-actions small{font-size:14px}

/* Home-page welcome uses approved option 4; active conversations retain four-state layout. */
#hmna-root .hmna-welcome-copy{display:none}
#hmna-root.hmna-welcome .hmna-panel{height:min(820px,calc(100dvh - 40px));bottom:20px;min-height:0}
#hmna-root.hmna-welcome .hmna-hero{flex:1;min-height:120px;height:auto}
#hmna-root.hmna-welcome .hmna-hero>img{object-position:center 36%}
#hmna-root.hmna-welcome .hmna-welcome-copy{display:block;text-align:center;padding:8px 12px;color:#102f27}
#hmna-root .hmna-welcome-copy h2{font:700 25px/1.12 Georgia,serif;margin:0 0 8px;color:#102f27}
#hmna-root .hmna-welcome-copy p{font:17px/1.3 Arial,sans-serif;margin:0;color:#102f27}
#hmna-root.hmna-welcome .hmna-messages,#hmna-root.hmna-welcome .hmna-photo-small{display:none}
#hmna-root.hmna-welcome .hmna-chat-screen{flex:0 0 auto;min-height:0}
#hmna-root.hmna-welcome .hmna-tabs [data-mode="chat"],#hmna-root.hmna-welcome .hmna-tabs [data-mode="chat"] *{background:#fff;color:#064832!important;-webkit-text-fill-color:#064832}
#hmna-root.hmna-welcome .hmna-tabs [data-mode="voice"],#hmna-root.hmna-welcome .hmna-tabs [data-mode="voice"] *{background:#064832;color:#fff!important;-webkit-text-fill-color:#fff}
@media(max-width:600px){#hmna-root.hmna-welcome .hmna-panel{inset:0;height:100dvh}}
#hmna-root .hmna-send,#hmna-root .hmna-photo-send{width:46px;height:46px;min-width:46px;min-height:46px;padding:0!important;display:grid!important;place-items:center!important;line-height:1!important;flex:0 0 46px}
#hmna-root .hmna-send svg,#hmna-root .hmna-photo-send svg{display:block;width:24px;height:24px;margin:0;transform:none}
#hmna-root .hmna-photo-actions button{background:#064832!important;color:#fff!important;-webkit-text-fill-color:#fff}

/* Approved Clear button annotation */
.hmna-root .hmna-clear,.hmna-root .hmna-clear:hover,.hmna-root .hmna-clear:focus{color:#fff!important;font-weight:700!important;background:#064832!important;}

.hmna-root .hmna-panel .hmna-tabs button[data-mode=chat]:hover,.hmna-root .hmna-panel .hmna-tabs button[data-mode=chat]:focus-visible{background:#064832!important;color:#fff!important;}
.hmna-root .hmna-panel .hmna-tabs button[data-mode=chat]:hover *,.hmna-root .hmna-panel .hmna-tabs button[data-mode=chat]:focus-visible *{color:#fff!important;}

.hmna-root .hmna-form,.hmna-root .hmna-form .hmna-fields{background:#edf7ef!important;}
.hmna-root .hmna-form>header>strong{font-size:24px!important;font-weight:800!important;line-height:1.2!important;}
/* Mobile portrait launcher has its own space, clear of actions and privacy copy. */
#hmna-root .hmna-mobile-orb-space{display:none}
@media(max-width:600px){
 #hmna-root .hmna-orb{bottom:calc(96px + env(safe-area-inset-bottom,0px))}
 #hmna-root .hmna-mobile-orb-space{display:flex;justify-content:flex-end;flex:0 0 58px;padding:3px 12px}
 #hmna-root .hmna-mobile-orb{display:block;width:52px;height:52px;padding:0;border:3px solid var(--hmna-lime);border-radius:50%;overflow:hidden;background:#075630;cursor:pointer}
 #hmna-root .hmna-mobile-orb img{display:block;width:100%;height:100%;object-fit:cover}
}
#hmna-root .hmna-privacy .hmna-clear{background:#fff!important;color:#064832!important;-webkit-text-fill-color:#064832!important;font-weight:700!important;border:1px solid #dce5df;border-radius:4px}
#hmna-root .hmna-photo-small{display:flex;align-items:center;justify-content:center;flex:0 0 42px;width:42px;height:42px;padding:0!important;line-height:1!important;font-size:26px!important;font-weight:800!important;background:#064832!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
/* Keep visitor and assistant paragraphs readable at narrow widths. */
#hmna-root .hmna-msg{white-space:pre-wrap;word-break:normal;overflow-wrap:anywhere;line-height:1.5;text-align:left;min-width:0}
#hmna-root .hmna-message-row{flex-shrink:0;width:100%;min-width:0}
#hmna-root .hmna-msg-avatar,#hmna-root .hmna-user-avatar{flex-shrink:0}
#hmna-root .hmna-tabs button[data-mode=chat]:hover,#hmna-root .hmna-tabs button[data-mode=chat]:hover *,#hmna-root .hmna-tabs button[data-mode=chat]:focus-visible,#hmna-root .hmna-tabs button[data-mode=chat]:focus-visible *{background:#064832!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
#hmna-root .hmna-desktop-launcher{display:none}

/* Requested dark-green outlines across every assistant popup layout. */
#hmna-root .hmna-tabs button,
#hmna-root .hmna-actions button,
#hmna-root .hmna-actions a,
#hmna-root .hmna-photo-actions button,
#hmna-root .hmna-photo-actions a,
#hmna-root .hmna-privacy .hmna-clear{border:1px solid #064832!important}
#hmna-root .hmna-privacy .hmna-clear{font-weight:800!important;color:#064832!important;background:#fff!important;-webkit-text-fill-color:#064832!important}
#hmna-root .hmna-mic{display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;line-height:1!important;flex-shrink:0}
#hmna-root .hmna-mic .hmna-icon{display:block;margin:0!important;transform:none!important}

#hmna-root .hmna-close,#hmna-root [data-close]{color:#064832!important;-webkit-text-fill-color:#064832!important;font-weight:900!important;text-shadow:none!important}
#hmna-root .hmna-close,#hmna-root header [data-close]{position:absolute;top:8px;right:8px;z-index:5;display:flex;align-items:center;justify-content:center;padding:0;width:34px;height:34px;line-height:1;font-size:28px;background:#fff!important;border:1px solid #064832;border-radius:50%}
@media(min-width:601px){#hmna-root .hmna-welcome-copy{padding-right:48px}}
/* One launcher only; opening any assistant screen hides the portrait orb. */
#hmna-root.hmna-open .hmna-orb,#hmna-root .hmna-mobile-orb-space{display:none!important}
@media(min-width:601px){#hmna-root .hmna-panel{bottom:22px;max-height:calc(100dvh - 80px);height:min(690px,calc(100dvh - 80px));min-height:0}#hmna-root.hmna-welcome .hmna-panel{height:min(820px,calc(100dvh - 80px))}}
#hmna-root:not(.hmna-welcome) .hmna-hero>img{object-position:center center}
#hmna-root .hmna-privacy{line-height:1.5;padding:6px 10px 10px}
@media(max-width:600px){body.admin-bar #hmna-root .hmna-panel,body.admin-bar #hmna-root.hmna-welcome .hmna-panel{inset:46px 0 0;height:calc(100dvh - 46px);max-height:calc(100dvh - 46px)}}

/* Keep voice controls separated at constrained popup heights. */
#hmna-root .hmna-voice-screen.is-active{flex:1 0 auto;min-height:260px;padding-bottom:16px}
#hmna-root .hmna-voice-text{margin-bottom:0}
#hmna-root .hmna-main{margin-top:8px}
/* Compact quote intake without clipping fields or the submit action. */
#hmna-root .hmna-panel:has(.hmna-form:not([hidden])){height:min(760px,calc(100dvh - 80px))}
#hmna-root .hmna-form header{flex:0 0 54px}
#hmna-root .hmna-fields{gap:7px;padding:10px 12px;align-content:start}
#hmna-root .hmna-fields input,#hmna-root .hmna-fields select{height:38px;min-height:38px;padding:7px 9px;margin:0}
#hmna-root .hmna-fields textarea{height:64px;min-height:64px;padding:7px 9px;margin:0}
#hmna-root .hmna-fields label{margin:0;line-height:1.3}
#hmna-root .hmna-fields .hmna-coverage-note{display:none}
#hmna-root .hmna-fields .hmna-submit{min-height:44px;padding:10px;margin:0}
#hmna-root .hmna-fields input[type=file]{height:42px;padding:5px}
@media(max-width:600px){#hmna-root .hmna-panel:has(.hmna-form:not([hidden])){height:100dvh}body.admin-bar #hmna-root .hmna-panel:has(.hmna-form:not([hidden])){height:calc(100dvh - 46px)}}
/* Matching centered photo and camera tiles. */
/* Let the voice screen shrink so all footer actions stay inside the popup. */
#hmna-root .hmna-voice-screen.is-active{flex:1 1 0;min-height:0;gap:6px;padding:10px}
#hmna-root .hmna-panel:has(.hmna-voice-screen.is-active) .hmna-hero{height:clamp(72px,15dvh,120px);flex-basis:clamp(72px,15dvh,120px)}
#hmna-root .hmna-voice-copy{font-size:14px;line-height:1.35;text-align:center;flex-shrink:0}
#hmna-root .hmna-wave{font-size:26px;line-height:1;min-height:28px;flex-shrink:0}
#hmna-root .hmna-mic{width:80px;height:80px;border-width:6px}
#hmna-root .hmna-mic .hmna-icon{width:36px;height:36px}
@media(max-height:700px){#hmna-root .hmna-panel:has(.hmna-voice-screen.is-active) .hmna-hero{height:72px;flex-basis:72px}#hmna-root .hmna-wave{display:none}#hmna-root .hmna-mic{width:64px;height:64px}}
@media(max-height:500px){#hmna-root .hmna-panel:has(.hmna-voice-screen.is-active) .hmna-hero,#hmna-root .hmna-voice-text{display:none}}
#hmna-root .hmna-upload-button,#hmna-root .hmna-camera-button{background:#edf7ef;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;padding:10px;flex-shrink:0}
#hmna-root .hmna-upload-button input,#hmna-root .hmna-camera-button input{position:static;display:block;opacity:1;width:230px;max-width:100%;height:auto;margin:0 auto;font-size:12px}

/* Spoken intake uses the same questions and submit action as the typed flow. */
#hmna-root textarea.hmna-voice-text{resize:none;height:64px;min-height:40px;line-height:1.35;white-space:pre-wrap;overflow:auto}
#hmna-root .hmna-voice-request{background:#fff;color:#064832;border:1px solid #064832;border-radius:8px;min-height:38px;padding:6px 10px;font-size:13px;font-weight:700;flex-shrink:0;cursor:pointer}
#hmna-root .hmna-voice-request:hover{background:#064832;color:#fff}
#hmna-root.hmna-voice-intake .hmna-wave,#hmna-root.hmna-voice-intake .hmna-voice-request{display:none}
#hmna-root.hmna-voice-intake textarea.hmna-voice-text{height:112px;min-height:70px;flex:1 1 auto;margin-top:8px;font-size:14px;color:#064832}

#hmna-root .hmna-review-send{background:#FFDF20;color:#064c39;border:1px solid #064c39;font-weight:700;border-radius:10px;min-height:44px;padding:10px;margin-top:8px;width:100%}#hmna-root .hmna-review-send[hidden]{display:none!important}
