.chat-launcher{position:fixed;right:24px;bottom:24px;z-index:25;display:flex;align-items:center;gap:10px;padding:13px 19px;border:1px solid #08427f;border-radius:30px;background:var(--blue);color:#fff;box-shadow:0 5px 20px #15314b26;font-weight:700;font-size:15px;min-height:50px}
.chat-launcher:hover{background:var(--navy)}
#chat-dialog{position:fixed;inset:auto 24px 24px auto;margin:0;padding:0;width:430px;max-width:calc(100vw - 32px);height:min(740px,calc(100dvh - 40px));max-height:none;border:1px solid #cfd4da;border-radius:16px;background:#fff;box-shadow:0 15px 70px #14243538;color:var(--ink);overflow:hidden}
#chat-dialog[open]{display:flex;flex-direction:column}
#chat-dialog::backdrop{background:#192b4012;backdrop-filter:none}
.chat-header{padding:19px 20px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:12px;background:#fafafa;flex-shrink:0}
.chat-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#eaf2fb;color:var(--blue)}
.chat-header h2{font-size:20px;letter-spacing:-.02em;margin:0 0 3px}.chat-header p{font-size:13px;margin:0;line-height:1.4}
.chat-close{margin-left:auto;border:0;background:transparent;padding:5px 10px;font-size:28px;color:#59616b;line-height:1;min-height:40px}
.chat-body{overflow:auto;flex:1;padding:22px 20px;overscroll-behavior:contain;min-height:0;scroll-behavior:smooth}
.chat-body p{font-size:15px;line-height:1.6;margin:0 0 14px}.chat-body h3{font-size:22px;margin:0 0 13px;letter-spacing:-.025em}
.chat-kicker{color:var(--blue)!important;font-size:12px!important;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.chat-topics{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.chat-topics button,.chat-secondary{background:#fff;border:1px solid #d0d6de;color:var(--blue);border-radius:6px;padding:9px 12px;font-size:14px;min-height:42px}.chat-topics button:hover,.chat-secondary:hover{background:#f0f5fa}
.chat-verify{border:1px solid #dde1e5;border-radius:10px;padding:16px;background:#f5f6f7;margin:18px 0}.chat-verify p{font-size:14px}
.chat-message{border:1px solid #e2e5e9;background:#f2f4f6;border-radius:12px 12px 12px 2px;padding:12px 14px;margin-bottom:14px;white-space:pre-wrap;overflow-wrap:anywhere;color:#343c47;font-size:15px;line-height:1.55}
.chat-message.user{background:#edf4fd;border-color:#dce8f6;border-radius:12px 12px 2px 12px;margin-left:28px}.chat-message strong{display:block;font-size:12px;font-weight:700;color:#576474;margin-bottom:5px}
.chat-footer{padding:14px 18px 16px;border-top:1px solid var(--line);background:#fafafa;flex-shrink:0}.chat-footer p{font-size:12px;margin:9px 0 0;line-height:1.5}.chat-footer a,.chat-body a{color:var(--blue);text-decoration:underline}
.chat-compose{display:flex;gap:8px;align-items:flex-end}.chat-compose textarea{flex:1;resize:none;min-width:0;height:58px;border:1px solid #bec7d1;border-radius:7px;padding:10px;font:inherit;font-size:16px;background:white;color:var(--ink)}
.chat-primary{border:0;border-radius:6px;background:var(--blue);color:white;font-size:14px;font-weight:700;padding:11px 15px;min-height:44px}.chat-primary:hover{background:var(--navy)}.chat-primary:disabled{opacity:.6;cursor:wait}
.chat-request-link{margin:0 0 12px;border:0;padding:0;background:none;color:var(--blue);font-weight:700;font-size:14px;text-decoration:underline;min-height:30px}
.chat-notice{font-size:13px!important;border-left:3px solid #9b6d20;background:#fff6e5;padding:10px 12px;margin:0 0 15px!important;color:#60471e!important}
.chat-status{padding:0 20px;font-size:14px;color:#8f3232;flex-shrink:0}.chat-status:not(:empty){padding-top:10px;padding-bottom:10px;border-top:1px solid #eadede;max-height:105px;overflow:auto}
.chat-form{display:grid;gap:13px}.chat-form label{display:grid;gap:5px;font-size:14px;font-weight:700}.chat-form input,.chat-form select,.chat-form textarea{width:100%;border:1px solid #bcc5cf;border-radius:6px;padding:10px;font:inherit;font-size:16px;color:var(--ink);background:white;min-height:44px}.chat-form textarea{min-height:90px;resize:vertical}.chat-form select{appearance:none;padding-right:30px;background-image:url("/assets/chat-chevron.svg");background-repeat:no-repeat;background-position:right 12px center}
.chat-review{margin:10px 0 18px}.chat-review dt{font-size:12px;font-weight:700;color:#65707e;text-transform:uppercase;letter-spacing:.06em;margin-top:14px}.chat-review dd{margin:4px 0 0;font-size:15px;white-space:pre-wrap;overflow-wrap:anywhere}
.chat-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:14px}.chat-consent{font-size:13px!important}.chat-check{display:flex;gap:10px;align-items:flex-start;font-size:14px}.chat-check input{width:18px;height:18px;flex-shrink:0;margin-top:4px;accent-color:var(--blue)}
#chat-dialog [hidden]{display:none!important}#chat-dialog :is(input,select,textarea,button,a):focus-visible{outline:3px solid #2d91dc;outline-offset:3px}
@media(max-width:540px){.chat-launcher{right:16px;bottom:16px}#chat-dialog{inset:8px 8px auto;width:calc(100vw - 16px);max-width:none;height:calc(100dvh - 16px);border-radius:12px}.chat-body{padding:18px}.chat-header{padding:15px 18px}.chat-footer{padding:12px 16px}.chat-topics button{font-size:14px}}
@media(prefers-reduced-motion:reduce){.chat-body{scroll-behavior:auto}}

/* Conversation hierarchy and focused intake steps. */
html:has(#chat-dialog[open]){overflow:hidden}
#chat-dialog{width:520px;height:min(820px,calc(100dvh - 40px));border-color:#d0d7df;border-radius:20px;box-shadow:0 18px 65px #25364c26}
.chat-header{padding:20px 24px;background:#fff;gap:14px}.chat-header h2{font-size:22px;color:#263444;letter-spacing:-.025em}.chat-header p{font-size:14px;color:#647181}
.chat-mark{width:46px;height:46px;background:#edf4fb;border:1px solid #d5e5f4}.chat-close{border-radius:8px;color:#536274}.chat-close:hover{background:#edf1f5}
.chat-body{padding:26px 24px;background:#f4f6f8}.chat-body h3{font-size:25px;line-height:1.25;color:#283647;margin:0 0 10px}.chat-body p{font-size:16px;line-height:1.65;color:#536173}.chat-intro{margin-bottom:24px!important}
.chat-notice{border:1px solid #e0d8c5;border-left:3px solid #b69a55;background:#faf7ef;border-radius:6px;font-size:12px!important;padding:8px 11px;color:#6a5933!important;margin-bottom:22px!important}
.chat-turn{margin:0 32px 26px 0}.chat-turn.user{margin:0 0 26px 40px}
.chat-byline{display:flex;align-items:center;gap:9px;margin:0 0 9px;min-height:30px;color:#35465a;font-size:14px}.chat-byline strong{font-weight:700}.chat-role{color:#637184;font-size:12px}
.chat-avatar{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:#e3ecf7;border:1px solid #cadced;color:#124d87;font-size:11px;font-weight:800;letter-spacing:.02em}
.chat-turn.user .chat-byline{justify-content:flex-end}.chat-turn.user .chat-avatar{order:2;background:#e3e8ee;color:#4f5e70;border-color:#d1d9e3;font-size:10px}
.chat-message{background:#fff;border:1px solid #d8dfe7;box-shadow:0 2px 4px #21314804;border-radius:4px 14px 14px 14px;padding:17px 19px;margin:0;white-space:normal;color:#29394c}
.chat-turn.assistant .chat-message{border-left:3px solid #5685b3}.chat-turn.user .chat-message{background:#e7f0fb;border-color:#c5d9ed;border-radius:14px 4px 14px 14px}
.chat-message p{color:#2d3c4f;margin:0;font-size:16px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}.chat-message p+p{margin-top:14px}
.chat-topics{gap:8px;margin:6px 0 0}.chat-topics button{border-radius:22px;background:#fff;font-size:14px;padding:9px 14px}
.chat-footer{background:#fff;padding:16px 22px 18px}.chat-footer p{font-size:12px;color:#687485;line-height:1.6;margin-top:12px}
.chat-request-link{border:1px solid #cbd8e5;border-radius:8px;background:#f4f8fc;text-decoration:none;padding:9px 13px;margin-bottom:14px;font-size:14px;color:#154d83}.chat-request-link:hover{background:#eaf2fa}
.chat-compose{gap:10px}.chat-compose textarea{border-radius:10px;border-color:#b9c6d4;padding:12px;height:64px;color:#2b3b4d;line-height:1.4}
.chat-primary{background:#0b4f9c;border-radius:9px;min-height:46px;font-size:15px;padding:12px 18px}.chat-secondary{border-radius:9px;font-size:15px;padding:10px 16px;color:#43566c;border-color:#c9d2dd}
.chat-verify{background:#fff;border-color:#d4dce6;padding:20px;border-radius:12px}.chat-verify p{font-size:15px}
.chat-contact-card{background:#fff;border:1px solid #d7dfe8;border-radius:12px;padding:20px;margin:18px 0}.chat-contact-card h4{font-size:16px;color:#2b3c50;margin:0 0 8px}.chat-contact-card a{font-size:16px;overflow-wrap:anywhere}
.chat-steps{display:flex;list-style:none;padding:0;margin:0 0 28px;gap:8px;align-items:flex-start}.chat-steps li{flex:1;display:flex;align-items:center;gap:7px;font-size:14px;font-weight:600;line-height:1.4;color:#687687;border-bottom:2px solid #dce2e8;padding:0 0 13px}
.chat-steps li>span{display:grid;place-items:center;flex-shrink:0;width:24px;height:24px;border:1px solid #cbd4df;border-radius:50%;font-size:12px;background:#fff}
.chat-steps li.current{color:#134f8c;border-color:#2366a6}.chat-steps li.current>span{background:#0b4f9c;color:#fff;border-color:#0b4f9c}.chat-steps li.complete{color:#416784}.chat-steps li.complete>span{background:#e8f0f7;color:#285b85;border-color:#c7d8e8}
.chat-form{gap:18px}.chat-fieldset{min-width:0;margin:0;padding:22px;background:#fff;border:1px solid #d5dde6;border-radius:12px;display:grid;gap:20px}.chat-fieldset legend{padding:0 8px;font-size:14px;font-weight:700;color:#52657a}
.chat-field{display:grid;gap:8px}.chat-form label{font-size:14px;font-weight:700;color:#34475b;line-height:1.5}.chat-form input,.chat-form select,.chat-form textarea{border-radius:8px;border-color:#b9c6d4;padding:12px;font-size:16px;line-height:1.5;color:#24374d;min-height:48px}
.chat-form textarea{min-height:112px}.chat-form input::placeholder,.chat-form textarea::placeholder{color:#758396;opacity:1;font-size:14px}.chat-help{font-size:13px!important;color:#647286!important;line-height:1.6!important;margin:0!important}
.chat-actions{gap:10px;margin-top:4px}.chat-form .chat-actions{padding-top:4px}.chat-actions .chat-primary{flex:1}
.chat-tags{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px}.chat-tags span{font-size:12px;font-weight:600;color:#345b81;background:#e7eff7;border:1px solid #cddceb;border-radius:20px;padding:5px 11px}
.chat-review-card{background:#fff;border:1px solid #d5dde6;border-radius:12px;overflow:hidden;margin:0 0 18px}.chat-review-card h4{font-size:15px;font-weight:700;color:#3a4e64;background:#edf1f5;border-bottom:1px solid #dce3eb;padding:13px 18px;margin:0}
.chat-review{margin:0;padding:2px 18px}.chat-review>div{padding:14px 0;border-bottom:1px solid #e5e9ee}.chat-review>div:last-child{border-bottom:0}.chat-review dt{font-size:13px;text-transform:none;letter-spacing:0;color:#617186;margin:0 0 5px}.chat-review dd{font-size:16px;line-height:1.6;color:#293c51;margin:0}
.chat-check{background:#fff;border:1px solid #d5dde6;border-radius:10px;padding:16px;font-size:14px;line-height:1.65;color:#43556a;margin:8px 0 16px}.chat-check input{margin-top:4px}
.chat-privacy{margin:0 0 20px;color:#627184;font-size:13px}.chat-privacy summary{cursor:pointer;font-size:13px;padding:5px 0}.chat-privacy p{font-size:13px;margin:10px 0 0}
.chat-status{background:#fff;color:#8b3636}.chat-status:not(:empty){padding:12px 24px;font-size:14px}
.chat-status[data-state="busy"]{color:#436888;background:#f2f7fc;border-color:#d9e4ee}
#chat-dialog :is(input,select,textarea,button,a,summary):focus-visible{outline:3px solid #438cc9;outline-offset:3px}
@media(max-width:540px){#chat-dialog{inset:8px 8px auto;width:calc(100vw - 16px);height:calc(100dvh - 16px);border-radius:15px}.chat-body{padding:22px 17px}.chat-header{padding:16px 18px}.chat-header h2{font-size:20px}.chat-turn{margin-right:15px}.chat-turn.user{margin-left:23px}.chat-message{padding:14px 16px}.chat-message p{font-size:16px}.chat-footer{padding:14px 16px}.chat-fieldset{padding:18px 16px}.chat-steps{gap:6px}.chat-steps li{font-size:14px;gap:5px;flex-direction:column;align-items:flex-start}.chat-steps li>span{width:21px;height:21px}.chat-primary{padding:12px 15px}}

/* Service choices remain native, keyboard-accessible checkboxes. */
.chat-service-explorer{margin:0 0 4px;border-top:1px solid #d5dde6;padding-top:16px}
.chat-service-explorer>summary{cursor:pointer;color:#234b74;font-weight:700;font-size:16px;padding:8px 0;min-height:40px}
.chat-service-picker{min-width:0;border:0;padding:0;margin:16px 0 18px}
.chat-service-picker legend{font-size:16px;font-weight:700;color:#293e55;padding:0;margin-bottom:6px}
.chat-service-help,.chat-selection-count{font-size:14px!important;line-height:1.5!important;color:#536377!important}
.chat-service-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#chat-dialog .chat-service-option{display:flex;align-items:flex-start;gap:10px;padding:14px 12px;min-width:0;min-height:108px;margin:0;border:1px solid #c8d2de;border-radius:12px;background:#fff;cursor:pointer;text-align:left}
#chat-dialog .chat-service-option:hover{border-color:#6b91b7;background:#f7faff}
#chat-dialog .chat-service-option:has(input:checked){border:2px solid #2464a3;padding:13px 11px;background:#edf5ff;box-shadow:0 2px 5px #153b6510}
#chat-dialog .chat-service-option input{appearance:auto;flex:0 0 18px;width:18px;height:18px;min-height:18px;padding:0;margin:3px 0 0;accent-color:#155a9d}
.chat-service-copy{display:block;min-width:0}.chat-service-copy strong{display:block;font-size:16px;line-height:1.35;color:#263f59;font-weight:700}.chat-service-copy>span{display:block;font-size:14px;font-weight:400;line-height:1.5;color:#526478;margin-top:6px}
.chat-selection-count{margin:12px 0 0!important}.chat-service-explorer>.chat-primary{width:100%;margin-bottom:4px}.chat-primary:disabled{cursor:default}
.chat-selected-list{margin:0;padding:16px 18px 16px 38px;color:#293c51;font-size:16px;line-height:1.65}.chat-selected-list li+li{margin-top:5px}
@media(max-width:390px){.chat-service-grid{grid-template-columns:1fr}#chat-dialog .chat-service-option{min-height:80px}}
