/* Unified clinic front door design study, active only at ?preview=frontdoor. */
body.frontdoor-preview{--fd-navy:#213e60;--fd-blue:#94b6ef;--fd-ink:#263d58;--fd-muted:#71859a;--fd-line:#dfe7ef}
body.frontdoor-preview .hero-brand{justify-content:center;gap:0}
body.frontdoor-preview.frontdoor-light .site-header,body.frontdoor-preview.frontdoor-light .site-header.menu-open{background:#213e60;border-color:#355576;box-shadow:0 12px 35px #14283e24}
body.frontdoor-preview.frontdoor-light .site-header .logo{mix-blend-mode:normal}
body.frontdoor-preview.frontdoor-light .nav-link,body.frontdoor-preview.frontdoor-light .shortlist-trigger,body.frontdoor-preview.frontdoor-light .mobile-menu{color:#f4f2ef}
body.frontdoor-preview.frontdoor-light .nav-link:hover,body.frontdoor-preview.frontdoor-light .nav-link.active{color:#94b6ef}
body.frontdoor-preview.frontdoor-light .nav-count{background:#365878;color:#f4f2ef}
body.frontdoor-preview.frontdoor-light .header-actions .login-button{background:transparent!important;border-color:#9db6d0!important;color:#f4f2ef!important}
body.frontdoor-preview.frontdoor-light .header-actions .login-button:hover{background:#355576!important}
body.frontdoor-preview.frontdoor-light .header-actions .mobile-menu{background:transparent;border:0;color:#f4f2ef}
body.frontdoor-preview .hero{background:linear-gradient(180deg,#f1f4fc 0%,#f8faff 83%,#fff 100%)}
body.frontdoor-preview .hero-content{max-width:1080px;margin:auto;padding:174px 24px 81px;min-height:0}
body.frontdoor-preview .hero-brand{margin-bottom:13px}
body.frontdoor-preview .hero-brand>img{width:218px}
body.frontdoor-preview .hero-stamp{width:76px;height:76px;font-size:19px}
body.frontdoor-preview .hero h1{font-size:clamp(31px,3.5vw,43px);letter-spacing:-1.15px}
.fd-count-card{width:max-content;max-width:100%;min-height:52px;margin:0 auto 20px;padding:10px 22px;display:flex;align-items:center;justify-content:center;gap:9px;flex-wrap:wrap;border:1px solid #cbd9e8;border-radius:16px;background:#ffffffb8;color:#213e60;box-shadow:0 3px 12px #254d7508}
.fd-count-dot{width:9px;height:9px;flex:none;border-radius:50%;background:#16bf76}
.fd-count-card strong{font-size:27px;line-height:1;font-weight:700;font-variant-numeric:tabular-nums}
.fd-count-card>span:not(.fd-count-dot){font-size:13px;font-weight:600}
.fd-count-card.fd-count-unavailable .fd-count-dot{background:#aebccc}
.fd-count-retry{border:0;background:transparent;color:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer;font:inherit;font-size:12px;padding:5px}
.fd-count-retry[hidden]{display:none}
body.frontdoor-preview .hero-description{font-size:15px;margin-top:12px;line-height:1.7}
body.frontdoor-preview .search-bar,body.frontdoor-preview .prompt-examples,body.frontdoor-preview .preview-note{display:none}
body.frontdoor-preview .categories{padding-top:28px}
.fd-composer{width:min(750px,100%);margin:34px auto 0;padding:7px 7px 7px 22px;background:#fff;border:1px solid #e1c8b4;border-radius:16px;box-shadow:0 4px 18px #254d7509;display:flex;align-items:center;gap:12px;text-align:left}
.fd-composer:focus-within{border-color:#d9ad8b;box-shadow:0 4px 18px #254d7510,0 0 0 3px #e68c3a1c}
.fd-composer textarea{display:block;flex:1;min-width:0;height:43px;min-height:43px;max-height:200px;border:0;outline:0;resize:none;background:transparent;color:#213e60;font-size:15px;line-height:1.6;padding:10px 0;overflow:auto}
.fd-composer textarea:placeholder-shown{overflow-y:hidden}
.fd-composer textarea.fd-expanded{height:142px;align-self:stretch}
.fd-composer textarea::placeholder{color:#92a1b2;opacity:1}
.fd-ai-guide,.fd-ai-reassure{display:none}
.fd-ai-toggle{display:inline-flex;align-items:center;flex:none;border:0;background:transparent;color:#415d79;padding:5px 0;font:700 12px Anuphan,system-ui,sans-serif;white-space:nowrap;cursor:pointer}
.fd-ai-toggle[aria-checked="true"]{color:#213e60}
.fd-switch-track{position:relative;display:inline-flex;align-items:center;justify-content:flex-end;width:106px;height:28px;padding:0 7px;border-radius:999px;background:#bbc6d0;transition:background 180ms ease}
.fd-switch-word{color:#213e60;font-size:11px;font-weight:700;line-height:1}
.fd-switch-thumb{position:absolute;top:4px;left:4px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #17324b35;transition:transform 180ms ease}
.fd-ai-toggle[aria-checked="true"] .fd-switch-track{justify-content:flex-start;background:#e68c3a}
.fd-ai-toggle[aria-checked="true"] .fd-switch-thumb{transform:translateX(78px)}
.fd-ai-toggle:focus-visible,.fd-submit:focus-visible{outline:2px solid #4778ad;outline-offset:3px}
.fd-submit{display:inline-flex;align-items:center;justify-content:center;flex:none;border:0;background:#d89153;color:#fff;border-radius:50%;width:43px;height:43px;min-height:43px;padding:0;cursor:pointer}
.fd-submit .icon{width:19px;height:19px;stroke-width:2.4}
.fd-submit .fd-send-icon{display:none}
.fd-composer.fd-ai-mode .fd-submit .fd-search-icon{display:none}
.fd-composer.fd-ai-mode .fd-submit .fd-send-icon{display:block}
.fd-submit:hover{background:#c97f41}
.fd-composer.fd-ai-mode{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 12px;padding:21px 19px 14px}
.fd-composer.fd-ai-mode .fd-ai-guide{display:block;grid-column:1/-1;margin:0;color:#213e60;font-size:16px;font-weight:700;line-height:1.45}
.fd-composer.fd-ai-mode textarea{grid-column:1/-1;width:100%;height:166px;min-height:166px;max-height:260px;padding:9px 0;font-size:14px;line-height:1.65;align-self:auto}
.fd-composer.fd-ai-mode textarea::placeholder{color:#6d8196}
.fd-composer.fd-ai-mode .fd-ai-reassure{display:block;grid-column:1/-1;margin:0;padding:10px 0 2px;border-top:1px solid #dbe3eb;color:#5b728a;font-size:12px;line-height:1.5}
.fd-composer.fd-ai-mode .fd-ai-toggle{grid-column:1;grid-row:4;justify-self:end}
.fd-composer.fd-ai-mode .fd-submit{grid-column:2;grid-row:4;justify-self:end}
.fd-actions{width:min(750px,100%);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px auto 0}
.fd-actions button{min-height:68px;display:flex;align-items:center;justify-content:center;gap:11px;border:1px solid #e1c8b4;background:#fff;color:#213e60;border-radius:16px;padding:15px 20px;box-shadow:0 4px 18px #254d7509;font-size:16px;font-weight:700;transition:background 180ms ease-in-out,border-color 180ms ease-in-out,box-shadow 180ms ease-in-out}
.fd-actions button .icon{width:20px;height:20px;color:#6788a8}
.fd-actions button:hover{border-color:#94b6ef;background:#f7faff;box-shadow:0 6px 18px #213e6014}

body.frontdoor-preview.fd-workspace-mode{overflow:hidden}
.fd-modal-overlay{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(23,44,67,.54)}
.fd-modal-overlay[hidden]{display:none}
.fd-workspace{width:min(1080px,100%);max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);overflow:auto;padding:28px 34px 40px;background:#f8fafd;border:1px solid #dce6ef;border-radius:16px;box-shadow:0 28px 90px #102b4660;text-align:left}
.fd-workspace-top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}
.fd-workspace-tools{display:flex;align-items:center;gap:22px}
.fd-close{width:34px;height:34px;border:1px solid #dce6ee;border-radius:50%;background:#fff;color:#617a94;font-size:21px;line-height:1}
.fd-close:hover{background:#edf3f8;color:#213e60}
.fd-back{display:inline-flex;align-items:center;gap:7px;border:0;background:none;color:#5f7d9a;font-size:13px;font-weight:600;padding:8px 0}
.fd-back:hover{color:#213e60}
.fd-progress{display:flex;align-items:center;gap:9px;font-size:11px;color:#98a9b8}
.fd-progress span{display:inline-flex;align-items:center;justify-content:center;width:23px;height:23px;border:1px solid #c9d5e0;border-radius:50%;font-size:10px;color:#7790a7}
.fd-progress .current{background:#213e60;border-color:#213e60;color:#fff}
.fd-progress i{width:24px;height:1px;background:#cad6e0}
.fd-workspace h1{font-size:34px;line-height:1.3;letter-spacing:-.8px;color:#213e60}
.fd-workspace .fd-lead{color:#70849a;font-size:14px;line-height:1.75;margin-top:8px;max-width:750px}
.fd-review-layout{display:grid;grid-template-columns:minmax(0,.72fr) minmax(0,1fr);gap:24px;margin-top:30px;align-items:start}
.fd-source{border:1px solid #e2e9ef;background:#fff;border-radius:13px;padding:23px;position:sticky;top:110px}
.fd-source-head{display:flex;justify-content:space-between;align-items:center;gap:15px;color:#213e60;font-size:14px;font-weight:700}
.fd-source-head button{background:none;border:0;color:#587ea4;font-size:11px;font-weight:600}
.fd-source pre{white-space:pre-wrap;word-break:break-word;color:#677c92;font:13px/1.8 Anuphan,system-ui,sans-serif;max-height:420px;overflow:auto;margin:19px 0 0}
.fd-source-note{font-size:11px;color:#95a3b0;margin-top:18px;border-top:1px solid #ebeff3;padding-top:13px;line-height:1.65}
.fd-structured{border:1px solid #dce6ee;background:#fff;border-radius:13px;padding:25px;box-shadow:0 8px 28px #254c750a}
.fd-structured-label{font-size:11px;color:#6b8aac;font-weight:700;letter-spacing:.025em}
.fd-structured h2{font-size:22px;margin-top:5px;color:#213e60}
.fd-type-row{display:flex;align-items:center;gap:8px;margin-top:20px;padding:14px 0;border-top:1px solid #e7edf2;border-bottom:1px solid #e7edf2}
.fd-type-row span{font-size:12px;color:#748a9f;margin-right:auto}
.fd-type-row button{border:1px solid #d9e3eb;background:#fff;border-radius:999px;padding:6px 10px;font-size:11px;color:#637c96}
.fd-type-row button.active{background:#213e60;border-color:#213e60;color:#fff}
.fd-facts{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:20px}
.fd-fact{min-width:0}
.fd-fact small{display:block;font-size:11px;color:#8697a6;margin-bottom:4px}
.fd-fact strong{display:block;color:#29435f;font-size:14px;font-weight:600;line-height:1.55}
.fd-fact.full{grid-column:1/-1}
.fd-schedule{margin-top:22px;border-top:1px solid #e7edf2;padding-top:17px}
.fd-schedule>strong{font-size:12px;color:#758aa0}
.fd-schedule-row{display:flex;justify-content:space-between;gap:18px;padding:13px 0;border-bottom:1px solid #edf1f4;font-size:13px;color:#334f6b;line-height:1.6}
.fd-schedule-row:last-child{border-bottom:0}
.fd-schedule-row span:last-child{text-align:right;white-space:nowrap;color:#657e98}
.fd-question{margin-top:20px;background:#fbf6ef;border:1px solid #e8d8c4;border-radius:9px;padding:16px}
.fd-question>strong{display:block;color:#875c35;font-size:13px}
.fd-question p{font-size:12px;color:#876d56;margin-top:5px;line-height:1.65}
.fd-question-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.fd-question-fields label{display:block;font-size:11px;color:#7a6551;font-weight:600}
.fd-question-fields input{width:100%;min-height:43px;margin-top:5px;border:1px solid #decbb4;border-radius:7px;padding:9px 10px;background:#fff;color:#213e60;font-size:13px}
.fd-next{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:24px;padding-top:20px;border-top:1px solid #e8edf1}
.fd-next p{font-size:11px;color:#90a0ae;max-width:320px;line-height:1.5}
.fd-next button,.fd-primary{border:0;border-radius:9px;padding:12px 19px;background:#213e60;color:#fff;font-size:13px;font-weight:700;white-space:nowrap}
.fd-next button:hover,.fd-primary:hover{background:#172f4e}
.fd-error{font-size:12px;color:#ad4e3e;margin-top:9px}
.fd-intake-form{max-width:760px;margin:27px auto 8px;padding:26px;background:#fff;border:1px solid #dce6ee;border-radius:13px;box-shadow:0 8px 28px #254c750a}
.fd-intake-form label{display:block;color:#29435f;font-size:13px;font-weight:700}
.fd-intake-form textarea{display:block;width:100%;min-height:210px;margin-top:12px;border:1px solid #d7e2ed;border-radius:9px;padding:15px;color:#213e60;font:14px/1.7 Anuphan,system-ui,sans-serif;resize:vertical}
.fd-intake-form textarea::placeholder{color:#98a8b7}
.fd-intake-form button{display:block;margin:18px 0 0 auto}

.fd-route-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;margin-top:29px}
.fd-route{border:1px solid #dce6ee;background:#fff;border-radius:13px;text-align:left;min-height:150px;padding:23px;display:flex;flex-direction:column;gap:5px;box-shadow:0 5px 19px #254c7508}
.fd-route:hover{border-color:#94b3d0}
.fd-route[aria-pressed=true]{border-color:#5d86af;box-shadow:0 0 0 3px #94b6ef50}
.fd-route-top{display:flex;align-items:center;justify-content:space-between;width:100%}
.fd-route-icon{width:38px;height:38px;background:#eaf1f8;color:#426b98;display:inline-flex;align-items:center;justify-content:center;border-radius:9px;font-size:20px}
.fd-route-check{width:19px;height:19px;border:1px solid #c1d0dc;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:#fff;font-size:12px}
.fd-route[aria-pressed=true] .fd-route-check{background:#213e60;border-color:#213e60}
.fd-route strong{font-size:20px;color:#213e60;margin-top:12px}
.fd-route small{font-size:12px;color:#71879b;line-height:1.6}
.fd-route-info{font-size:12px;color:#7b8fa2;margin-top:18px}
.fd-route-actions{display:flex;justify-content:flex-end;margin-top:25px}
.fd-summary-strip{margin-top:24px;background:#f1f5f9;border:1px solid #e0e9f0;border-radius:9px;padding:12px 15px;color:#66809a;font-size:12px}
.fd-people-head{display:flex;justify-content:space-between;align-items:end;gap:15px}
.fd-people-note{font-size:12px;color:#7f91a2;margin-top:10px;line-height:1.65}
.fd-person-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-top:24px}
.fd-person{background:#fff;border:1px solid #e0e7ee;border-radius:12px;overflow:hidden}
.fd-person-photo{display:block;width:100%;aspect-ratio:1.35;background-image:none;background-size:400% 200%;background-color:#eaf0f5}
.fd-person-body{padding:15px}
.fd-person-body strong{display:block;color:#213e60;font-size:16px}
.fd-person-body small{display:block;color:#71879d;font-size:11px;margin-top:3px;line-height:1.6}
.fd-person-body p{font-size:11px;color:#8496a6;margin-top:8px;line-height:1.55}
.fd-person-body button{border:1px solid #d5e0e9;background:#fff;border-radius:7px;color:#426d98;font-size:11px;font-weight:700;width:100%;margin-top:12px;padding:9px}
.fd-person-body button[aria-pressed=true]{border-color:#426d98;background:#edf4fa;color:#213e60}
.fd-empty{margin-top:24px;background:#fff;border:1px solid #e0e8ef;border-radius:12px;padding:30px;color:#698199}
.fd-empty strong{display:block;color:#213e60;font-size:17px}
.fd-empty p{font-size:13px;line-height:1.7;margin-top:7px}
.fd-final{max-width:690px;margin:35px auto 0;text-align:center;background:#fff;border:1px solid #e0e8ef;border-radius:14px;padding:35px;box-shadow:0 8px 24px #254c7509}
.fd-final-mark{margin:auto;width:54px;height:54px;border-radius:50%;background:#e8f2ef;color:#427b6b;display:flex;align-items:center;justify-content:center;font-size:25px}
.fd-final h2{font-size:25px;color:#213e60;margin-top:18px}
.fd-final p{font-size:13px;color:#72869b;line-height:1.7;margin-top:10px}
.fd-final button{margin-top:22px}

@media(max-width:900px){.fd-review-layout{display:flex;flex-direction:column}.fd-source{position:static;order:2;width:100%}.fd-structured{order:1;width:100%}.fd-workspace{padding-top:110px}.fd-person-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){body.frontdoor-preview .hero-content{padding:132px 17px 42px}body.frontdoor-preview .hero-brand>img{width:164px}body.frontdoor-preview .hero-stamp{width:62px;height:62px;font-size:16px}body.frontdoor-preview .hero h1{font-size:27px}body.frontdoor-preview .hero-description{font-size:12px;margin-top:11px}body.frontdoor-preview .categories{padding-top:18px}.fd-composer{margin-top:25px;padding:14px 15px 13px;border-radius:13px}.fd-composer-heading{font-size:11px}.fd-composer textarea{min-height:143px;font-size:16px;padding-top:14px}.fd-composer-foot span{font-size:10px;max-width:145px;line-height:1.4}.fd-composer-foot button{font-size:12px;padding:10px 13px}.fd-examples{justify-content:flex-start;gap:6px;margin-top:14px}.fd-examples>span{width:100%;text-align:left}.fd-examples button{font-size:10px;padding:6px 9px}.fd-outcomes{font-size:10px;flex-wrap:wrap;margin-top:14px}.fd-browse-first{font-size:11px}.fd-workspace{width:calc(100% - 32px);padding:103px 0 65px}.fd-workspace-top{margin-bottom:15px}.fd-progress{gap:5px}.fd-progress i{width:10px}.fd-workspace h1{font-size:25px}.fd-workspace .fd-lead{font-size:12px}.fd-review-layout{gap:12px;margin-top:21px}.fd-source,.fd-structured{padding:17px}.fd-source pre{max-height:170px;font-size:12px}.fd-structured h2{font-size:20px}.fd-type-row{flex-wrap:wrap}.fd-type-row span{width:100%}.fd-facts{gap:12px}.fd-fact strong{font-size:12px}.fd-schedule-row{font-size:11px}.fd-question-fields{grid-template-columns:1fr}.fd-next{align-items:stretch;flex-direction:column}.fd-next button{width:100%}.fd-route-list{grid-template-columns:1fr;gap:10px;margin-top:20px}.fd-route{min-height:0;padding:17px}.fd-route strong{font-size:18px;margin-top:8px}.fd-route-actions .fd-primary{width:100%}.fd-person-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.fd-person-body{padding:11px}.fd-person-body strong{font-size:13px}.fd-person-body small,.fd-person-body p{font-size:10px}.fd-final{padding:25px 20px}}
@media(max-width:600px){
  .fd-count-card{min-height:48px;margin-bottom:18px;padding:8px 16px;gap:7px}
  .fd-count-card strong{font-size:23px}
  .fd-count-card>span:not(.fd-count-dot){font-size:11px}
  .fd-composer{padding:6px 6px 6px 15px;border-radius:16px;gap:6px;min-height:56px}
  .fd-composer textarea{height:42px;min-height:42px;font-size:13px;padding:10px 0}
  .fd-composer textarea.fd-expanded{height:150px;min-height:150px;font-size:14px}
  .fd-ai-toggle{font-size:10px}
  .fd-switch-track{width:102px}
  .fd-switch-word{font-size:10px}
  .fd-ai-toggle[aria-checked="true"] .fd-switch-thumb{transform:translateX(74px)}
  .fd-submit{width:43px;height:43px;min-width:43px;min-height:43px;padding:0}
  .fd-composer.fd-ai-mode{padding:17px 15px 12px;gap:8px}
  .fd-composer.fd-ai-mode .fd-ai-guide{font-size:14px}
  .fd-composer.fd-ai-mode textarea{height:205px;min-height:205px;font-size:13px;line-height:1.55}
  .fd-composer.fd-ai-mode .fd-ai-reassure{font-size:11px}
  .fd-actions{gap:8px;margin-top:13px}
  .fd-actions button{min-height:60px;min-width:0;padding:10px 7px;gap:6px;font-size:14px}
  .fd-actions button .icon{width:17px;height:17px;flex:none}
  .fd-modal-overlay{align-items:flex-end;padding:0}
  .fd-workspace{width:100%;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);padding:20px 17px 32px;border-radius:16px 16px 0 0}
  .fd-workspace-top{margin-bottom:17px}
  .fd-workspace-tools{gap:10px}
  .fd-close{flex:none}
  .fd-intake-form{padding:17px;margin-top:20px}
  .fd-intake-form textarea{min-height:190px;font-size:16px}
}
@media(min-width:601px) and (max-width:900px){.fd-workspace{padding-top:28px}}
