/* The conversation is the hero's primary action, with one shared composer. */
/* The hero and press strip share the first viewport; longer chats grow naturally. */
/* Keep hero and press content in the browser viewport. Phone display height is
   a separate floor: Safari can paint following content beyond all viewport units. */
.fd-first-screen{--fd-browser-height:100vh;display:flex;flex-direction:column;min-height:var(--fd-browser-height)}
@supports (height:100dvh){.fd-first-screen{--fd-browser-height:100dvh}}
@media(max-width:600px) and (pointer:coarse){
  .fd-first-screen{min-height:max(var(--fd-browser-height),var(--fd-display-height,0px))}
  /* Only the orange tail grows. The chat and press logos retain their positions. */
  .fd-first-screen::after{content:"";flex:none;height:max(0px,calc(var(--fd-display-height,0px) - var(--fd-browser-height)));background:#e68c3a}
}
body.frontdoor-preview .fd-first-screen>.hero{display:flex;align-items:center;flex:1 0 auto}
body.frontdoor-preview .fd-first-screen>.press-section{flex:none}
body.frontdoor-preview .hero-content{width:100%;margin:0 auto;padding:120px 24px 48px;min-height:0}
body.frontdoor-preview:not(.frontdoor-light) .hero-peeks{top:max(0px,calc((100% - 684px)/2))}
body.frontdoor-preview .hero h1{font-size:clamp(30px,3.8vw,46px);letter-spacing:-.025em}
.fd-conversation{position:relative;z-index:3;width:min(736px,100%);margin:32px auto 0;text-align:left}
/* Two compact glass actions stay available without competing with the composer. */
.fd-floating-actions{position:fixed;right:24px;bottom:24px;right:max(24px,env(safe-area-inset-right));bottom:max(24px,env(safe-area-inset-bottom));z-index:35;display:flex;flex-direction:column;gap:10px}
.fd-floating-actions a{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:64px;height:64px;border:1px solid rgba(255,255,255,.82);border-radius:23px;background:#edf2f8;color:#213e60;text-decoration:none;box-shadow:inset 0 1px 1px #fff,inset 0 -2px 5px #94b6ef30,0 8px 24px #07192924;transition:transform 200ms ease,box-shadow 200ms ease}
@supports ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){.fd-floating-actions a{background:linear-gradient(145deg,rgba(255,255,255,.86),rgba(244,248,255,.56) 52%,rgba(219,233,252,.7));-webkit-backdrop-filter:blur(20px) saturate(160%);backdrop-filter:blur(20px) saturate(160%)}}
.fd-floating-actions a::before{content:"";position:absolute;inset:2px;border-radius:20px;border-top:1px solid #fff;border-left:1px solid #ffffff80;pointer-events:none}
.fd-floating-actions a::after{content:"";position:absolute;inset:auto 11px 3px;height:1px;border-radius:50%;background:linear-gradient(90deg,transparent,#94b6ef90,#e68c3a80,transparent);pointer-events:none}
.fd-floating-actions .icon{width:24px;height:24px;stroke-width:1.7}
.fd-action-caption{font:600 11px/1.2 Anuphan,sans-serif}
.fd-action-tooltip{position:absolute;right:calc(100% + 12px);top:50%;transform:translate(4px,-50%);padding:9px 13px;border:1px solid #ffffffa6;border-radius:12px;background:#f5f8fceb;color:#213e60;box-shadow:0 4px 16px #0719291a;font:500 13px/1.5 Anuphan,sans-serif;white-space:nowrap;opacity:0;visibility:hidden;pointer-events:none;transition:opacity 160ms ease,transform 160ms ease}
.fd-floating-actions a:focus-visible{outline:3px solid #94b6ef;outline-offset:4px}
.fd-floating-actions a:focus-visible .fd-action-tooltip{opacity:1;visibility:visible;transform:translate(0,-50%)}
@media(hover:hover){.fd-floating-actions a:hover{transform:translateY(-2px);box-shadow:inset 0 1px 1px #fff,inset 0 -2px 5px #94b6ef30,0 12px 28px #07192930}.fd-floating-actions a:hover .fd-action-tooltip{opacity:1;visibility:visible;transform:translate(0,-50%)}}
body:has(dialog[open]) .fd-floating-actions{visibility:hidden;pointer-events:none}
.fd-conversation :is(button,a):focus-visible{outline:3px solid #94b6ef;outline-offset:4px}
.fd-context-bar{display:flex;align-items:center;gap:24px;min-height:72px;margin:0 16px -30px;padding:5px 8px 35px;border:1px solid #dce2e9;border-radius:22px 22px 0 0;background:#eef1f5;color:#687789;font-size:14px;line-height:20px;color-scheme:light}
.fd-context-service{display:inline-flex;align-items:center;gap:7px;padding:3px 12px;border:1px solid #d8e0e8;border-radius:999px;background:#e0e6ed;white-space:nowrap;color:#213e60}
.fd-context-mascot{display:block;flex:none;width:20px;height:18px;object-fit:contain}
.fd-classifier-note{align-self:center;color:#8190a3;font:400 11px/1.4 Anuphan,sans-serif;white-space:nowrap}
.fd-chat-shell{position:relative;border-radius:32px;background:#fff;border:1px solid #e2e7ee;box-shadow:0 4px 18px #07192914;color:#213e60;color-scheme:light;overflow:hidden;transition:border-color 200ms ease}
.fd-chat-shell:focus-within{border-color:#94b6ef}
body.frontdoor-preview .fd-conversation .fd-composer{position:relative;display:block;width:100%;max-width:none;padding:20px 10px 10px 22px;margin:0;background:transparent;color-scheme:light;border:0;border-radius:0;box-shadow:none}
body.frontdoor-preview .fd-conversation .fd-composer:focus-within{box-shadow:none}
body.frontdoor-preview .fd-conversation .fd-composer textarea{display:block;width:100%;height:42px;min-height:max(42px,var(--fd-example-height,0px));max-height:160px;font:400 18px/1.5 Anuphan,sans-serif;color:#213e60;caret-color:#213e60;padding:0 12px 0 0;background:transparent;resize:none;overflow-y:auto;scrollbar-width:thin}
body.frontdoor-preview .fd-conversation .fd-composer textarea::placeholder{color:#738297;opacity:1}
/* Examples preserve full posts and reserve vertical space above the toolbar. */
body.frontdoor-preview .fd-conversation .fd-show-examples textarea::placeholder{color:transparent}
.fd-prompt-example{position:absolute;inset:20px 22px auto;height:auto;pointer-events:none;white-space:pre-wrap;overflow-wrap:anywhere;color:#738297;font:400 18px/1.5 Anuphan,sans-serif;opacity:1;transition:opacity 160ms ease}
.fd-prompt-example.fd-example-fading{opacity:0}
.fd-prompt-example.fd-example-typing::after{content:"";display:inline-block;vertical-align:-.12em;width:2px;height:1em;margin-left:2px;background:#94b6ef}
.fd-composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:6px}
.fd-composer-tools{display:flex;align-items:center;gap:4px;margin-left:-12px;min-width:0}
.fd-composer-actions{display:flex;align-items:center;gap:6px;flex:none}
.fd-mic{display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:#213e60;cursor:pointer}
.fd-mic:hover{background:#eef1f5}
.fd-composer-bottom .fd-mic .icon{width:23px;height:23px}
.fd-mic .fd-mic-stop{display:none}
.fd-mic[aria-pressed="true"]{background:#fff0e2;color:#a34810}
.fd-mic[aria-pressed="true"] .fd-mic-symbol{display:none}
.fd-mic[aria-pressed="true"] .fd-mic-stop{display:block;fill:currentColor;stroke:none}
.fd-mic:disabled{opacity:.45;cursor:wait}
.fd-dictation-feedback{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 12px 4px 0;padding:10px 12px;border-radius:12px;background:#fff3e7}
.fd-dictation-status{margin:0;font-size:12px;line-height:1.6;color:#73471f}
.fd-dictation-cancel{flex:none;min-height:36px;border:0;background:none;color:#73471f;text-decoration:underline;font:500 12px Anuphan,sans-serif;cursor:pointer}
.fd-attach{display:grid;place-items:center;width:44px;height:44px;flex:none;padding:0;border:0;border-radius:50%;background:transparent;color:#687789;cursor:pointer}
.fd-attach:hover{background:#eef1f5;color:#213e60}
.fd-attach:disabled{opacity:.4;cursor:wait}
.fd-composer-tools .fd-attach .icon{width:26px;height:26px}
.fd-composer-bottom .icon{width:18px;height:18px}
body.frontdoor-preview .fd-conversation .fd-submit{position:static;display:grid;place-items:center;width:44px;height:44px;min-width:44px;padding:0;border:0;border-radius:50%;background:#213e60;color:#fff;cursor:pointer;transition:background 160ms ease}
body.frontdoor-preview .fd-conversation .fd-submit .icon{display:block;width:22px;height:22px}
body.frontdoor-preview .fd-conversation textarea:placeholder-shown~.fd-composer-bottom .fd-submit{background:#e8edf3;color:#687c95}
body.frontdoor-preview .fd-conversation .fd-has-attachments textarea~.fd-composer-bottom .fd-submit{background:#213e60;color:#fff}
body.frontdoor-preview .fd-conversation .fd-submit:hover{background:#2e527c}
.fd-attachments{display:flex;gap:10px;overflow-x:auto;padding:4px 12px 12px 0;margin-bottom:8px}
.fd-attachment{position:relative;flex:0 0 72px;width:72px;height:72px}
.fd-attachment img{width:72px;height:72px;object-fit:cover;border-radius:12px;border:1px solid #dce2e9}
.fd-remove-image{position:absolute;top:-4px;right:-4px;display:grid;place-items:center;width:26px;height:26px;padding:0;border:1px solid #dce2e9;border-radius:50%;background:#fff;color:#213e60;cursor:pointer;box-shadow:0 1px 5px #213e6026}
.fd-remove-image .icon{width:14px;height:14px}
.fd-upload-status{font-size:13px;line-height:1.6;margin:0 12px 12px 0;color:#687789}
.fd-upload-status[data-error="true"]{color:#9f4e18}
.fd-message-images{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 8px}
.fd-message-images img{display:block;width:104px;height:80px;object-fit:cover;border-radius:10px}
.fd-conversation .fd-submit:disabled{opacity:.4;cursor:wait}
.fd-chat-top{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:18px 24px;border-bottom:1px solid #e3e8ee;font-size:15px}
.fd-chat-top>span{display:flex;gap:7px;align-items:center;font-weight:700}
.fd-chat-top i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#94b6ef;margin-right:3px}
.fd-chat-top b{font-weight:400;color:#687c95}
.fd-chat-top>div{display:flex;gap:12px}
.fd-chat-top button{border:0;background:none;color:#687c95;font:inherit;font-size:11px;min-height:32px;padding:4px;cursor:pointer}
#fd-chat-body{max-height:480px;max-height:min(480px,55svh);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
#fd-chat-log{padding:24px 24px 8px}
.fd-message{max-width:88%;margin:0 0 22px;width:fit-content}
.fd-message small{font-size:10px;font-weight:600;display:block;margin-bottom:6px;color:#687c95}
.fd-message p{font-size:15px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere;margin:0;color:#213e60}
.fd-message-user{margin-left:auto;padding:12px 18px;background:#eef3f9;border-radius:16px 16px 4px 16px}
.fd-message-user small{display:none}
.fd-message-assistant{padding-right:8px}
.fd-chat-status{padding:0 24px 16px;color:#687c95;font-size:13px}
.fd-chat-error{margin:0 24px 16px;padding:16px;background:#fff3e9;border-radius:12px;font-size:13px;color:#71553f}
.fd-chat-error p{margin:0}
.fd-chat-error button{border:0;background:none;text-decoration:underline;color:#213e60;padding:8px 0 0;font:inherit;cursor:pointer}
.fd-chat-review{margin:0 24px 24px;padding:24px;border:1px solid #cddcec;border-radius:20px;background:#f2f6fc}
.fd-review-eyebrow{font-size:11px;font-weight:600;color:#627e9f;margin:0 0 6px}
.fd-intent-classification{display:inline-flex;align-items:center;min-height:28px;margin:0 0 10px;padding:5px 10px;border-radius:999px;background:#eaf1fa;color:#58779b;font-size:11px;font-weight:600;line-height:1.4}
.fd-chat-review h2{font-size:21px;line-height:1.5;margin:0;color:#213e60}
.fd-chat-review dl{display:grid;grid-template-columns:1fr 1fr;gap:16px 24px;margin:20px 0}
.fd-chat-review dt{font-size:11px;color:#687c95;margin-bottom:4px}
.fd-chat-review dd{margin:0;font-size:14px;line-height:1.6;color:#213e60;overflow-wrap:anywhere}
.fd-review-note{font-size:11px;color:#687c95;margin:0 0 16px}
.fd-chat-continue{display:flex;justify-content:center;align-items:center;min-height:48px;border-radius:12px;background:#213e60;color:#fff!important;font-size:14px;font-weight:600;text-decoration:none;padding:12px}
.fd-chat-continue:hover{background:#2e527c}
.fd-handoff-note{display:block;text-align:center;color:#687c95;font-size:10px;line-height:1.7;margin-top:10px}
.fd-chat-open .fd-composer{border-top:1px solid #e3e8ee!important}
.fd-conversation [hidden]{display:none!important}
@media(max-width:600px){
  body.frontdoor-preview .hero-content{padding:112px 17px 40px}
  body.frontdoor-preview:not(.frontdoor-light) .hero-peeks{top:max(0px,calc((100% - 552px)/2))}
  .fd-conversation{margin-top:24px}
  .fd-floating-actions{right:12px;bottom:12px;right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));gap:8px}
  .fd-floating-actions a{width:56px;height:56px;border-radius:20px}
  .fd-floating-actions a::before{border-radius:17px}
  .fd-floating-actions .icon{width:22px;height:22px}
  .fd-action-caption{font-size:10px}
  body.frontdoor-preview .contact-footer{padding-bottom:154px}
  body:has(#fd-input:focus) .fd-floating-actions{visibility:hidden}
  .fd-chat-shell{border-radius:28px}
  .fd-context-bar{gap:12px;justify-content:space-between;min-height:66px;margin:0 10px -28px;padding:4px 7px 32px;border-radius:20px 20px 0 0;font-size:13px;line-height:20px}
  .fd-context-service{gap:6px;padding:2px 10px}
  .fd-context-mascot{width:19px;height:17px}
  .fd-classifier-note{font-size:10px}
  .fd-composer-tools{gap:2px;margin-left:-10px}
  .fd-composer-bottom{gap:8px}
  .fd-composer-actions{gap:2px}
  body.frontdoor-preview .fd-conversation .fd-composer{padding:16px 10px 10px 18px}
  body.frontdoor-preview .fd-conversation .fd-composer textarea{height:48px;min-height:max(48px,var(--fd-example-height,0px));font-size:16px}
  .fd-prompt-example{inset:16px 18px auto;font-size:16px}
  .fd-chat-top{padding:12px 16px}
  #fd-chat-body{max-height:370px;max-height:48svh}
  #fd-chat-log{padding:20px 16px 0}
  .fd-message{max-width:94%}
  .fd-message p{font-size:14px}
  .fd-chat-status{padding-left:16px}
  .fd-chat-review{margin:0 12px 16px;padding:18px}
  .fd-chat-review h2{font-size:19px}
  .fd-chat-review dl{gap:12px}
  .fd-chat-review dd{font-size:13px}
  .fd-chat-error{margin:0 16px 16px}
}
@media(max-width:359px){.fd-context-bar{gap:8px;font-size:13px}.fd-context-service{gap:6px}.fd-composer-bottom{flex-wrap:wrap;row-gap:4px}.fd-composer-actions{margin-left:auto}.fd-classifier-note{font-size:9px}}
/* Compact vertical spacing preserves readable controls on shorter phones. */
@media(max-width:600px) and (max-height:740px){
  body.frontdoor-preview .hero-content{padding-top:100px;padding-bottom:24px}
  body.frontdoor-preview .hero-brand{margin-bottom:8px}
  body.frontdoor-preview .hero-brand>img{width:144px}
  body.frontdoor-preview .fd-count-card{min-height:42px;padding:6px 14px;margin-bottom:12px}
  .fd-count-card strong{font-size:24px}
  .fd-count-card>span:not(.fd-count-dot){font-size:11px}
  body.frontdoor-preview .hero h1{font-size:27px}
  .fd-conversation{margin-top:20px}
}
@media(max-width:359px) and (max-height:650px){
  body.frontdoor-preview .hero-content{padding-top:96px;padding-bottom:12px}
  body.frontdoor-preview .hero-brand>img{width:120px}
  body.frontdoor-preview .fd-count-card{min-height:36px;margin-bottom:6px}
  body.frontdoor-preview .hero h1{font-size:24px}
  .fd-conversation{margin-top:12px}
  .hero-peeker{width:88px}
  .hero-peeker--left{left:-30px}
  .hero-peeker--right{right:-30px}
  .hero-peeker--nurse,.hero-peeker--doctor{top:60px}
  .hero-peeker--assistant,.hero-peeker--dentist{top:350px}
  .fd-floating-actions{right:8px;bottom:8px;right:max(8px,env(safe-area-inset-right));bottom:max(8px,env(safe-area-inset-bottom))}
  .fd-floating-actions a{width:44px;height:44px;border-radius:16px}
  .fd-floating-actions a::before{border-radius:13px}
  .fd-floating-actions .icon{width:18px;height:18px}
  .fd-action-caption{font-size:9px}
}
/* Keep the phone's featured strip to one row; Safari's orange backing is separate. */
@media(max-width:600px){
  body.frontdoor-preview .fd-first-screen>.press-section{padding:16px 0;border-radius:32px 32px 0 0}
  .fd-first-screen .press-section>.wrap{display:flex;align-items:center;gap:16px}
  .fd-first-screen .press-section h2{flex:none;margin:0;font-size:10px;letter-spacing:.03em;white-space:nowrap}
  .fd-first-screen .press-marquee{flex:1;min-width:0;margin:0}
  .fd-first-screen .press-logo{min-height:40px}
  .fd-first-screen .press-logos{gap:32px;padding-right:32px}
  .fd-first-screen .press-logos li{width:112px}
  .fd-first-screen .press-logos .press-item-venturespark{width:152px}
  .fd-first-screen .press-logo img{max-width:100%;max-height:26px}
  .fd-first-screen .press-logo-venturespark img{max-height:34px}
  .fd-first-screen .press-beartai-art{--beartai-size:40px}
  .fd-first-screen .press-logo-beartai img{max-width:none;max-height:none}
}
/* Static partner logos remain visible for people who reduce motion. */
@media(max-width:600px) and (prefers-reduced-motion:reduce){
  .fd-first-screen .press-section>.wrap{display:block}
  .fd-first-screen .press-section h2{margin-bottom:8px}
  .fd-first-screen .press-logos{gap:8px 16px;padding:0}
  .fd-first-screen .press-logos li,.fd-first-screen .press-logos .press-item-venturespark{width:auto}
}
@media(prefers-reduced-motion:reduce){.fd-prompt-example,.fd-floating-actions a,.fd-action-tooltip,.fd-chat-shell,body.frontdoor-preview .fd-conversation .fd-submit{transition:none}.fd-floating-actions a:hover{transform:none}}
