/* One scroll surface, with conversation input and voluntary callback always at hand. */
#tpa-root{font:15px/1.5 system-ui,-apple-system,Segoe UI,sans-serif;color:#153749}
#tpa-root *{box-sizing:border-box}
#tpa-root [hidden]{display:none!important}
#tpa-root button,#tpa-root input,#tpa-root textarea{font:inherit}
#tpa-root button{cursor:pointer;min-height:44px;border:0;border-radius:9px;font-weight:650;white-space:normal}
#tpa-root button:disabled{opacity:.55;cursor:wait}
#tpa-root :is(button,a,textarea,input,summary):focus-visible{outline:3px solid #dba246;outline-offset:2px}
#tpa-root a{color:#08684f;text-decoration:underline;text-underline-offset:2px}
#tpa-launch{position:fixed;right:22px;bottom:96px;background:#153749;color:#fff;padding:12px 20px;box-shadow:0 4px 24px #15374930;z-index:9000}
#tpa-dialog{position:fixed;inset:auto 20px 20px auto;margin:0;width:460px;max-width:calc(100vw - 24px);height:740px;max-height:calc(100dvh - 32px);padding:0;border:1px solid #d8e2e4;border-radius:18px;color:#153749;background:#fff;box-shadow:0 20px 70px #0003;overflow:hidden}
#tpa-dialog[open]{display:flex;flex-direction:column}
#tpa-dialog::backdrop{background:#08192340}
#tpa-root .tpa-head{display:flex;align-items:center;justify-content:space-between;flex:0 0 auto;gap:8px;background:linear-gradient(135deg,#153749,#17674f);color:#fff;padding:14px 18px}
#tpa-root .tpa-head strong{font-size:18px;line-height:1.25}
#tpa-root .tpa-head small{display:block;color:#deece9;font-size:12px;margin-top:3px}
#tpa-close{background:transparent;color:white;font-size:28px!important;min-width:44px;flex:0 0 auto}
#tpa-root #tpa-body{overflow-y:auto;overflow-x:hidden;min-height:0;flex:1 1 auto;overscroll-behavior:contain;scroll-padding:12px;background:#f6f8f7}
#tpa-root .tpa-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 16px 0;font-size:11px;color:#526571}
#tpa-reset{background:transparent;color:#526571;font-size:12px!important;padding:5px 8px}
#tpa-allowance{margin:0 16px 10px;font-size:12px;color:#526571}
#tpa-messages{height:auto;min-height:0;overflow:visible;padding:0 16px}
#tpa-root .tpa-message{max-width:100%;padding:14px;margin:0 0 12px;border:1px solid #dce6e2;border-radius:13px 13px 13px 4px;background:#fff;overflow-wrap:anywhere;scroll-margin-top:12px}
#tpa-root .tpa-message p{margin:0;white-space:pre-wrap}
#tpa-root .tpa-message small{display:block;margin-top:8px;font-size:12px;color:#526571}
#tpa-root .tpa-user{margin-left:24px;background:#153749;color:#fff;border-color:#153749;border-radius:13px 13px 4px 13px}
#tpa-root .tpa-system{background:#fff5e3;border-color:#f0d6ab}
#tpa-root .tpa-message ul{padding-left:18px;margin:5px 0 0;font-size:13px}
#tpa-projects{display:flex;flex-wrap:wrap;gap:4px;padding:0 16px 8px}
#tpa-root #tpa-projects button{font-size:12px;background:transparent;color:#286453;padding:5px 7px;text-decoration:underline;text-underline-offset:3px}
#tpa-free-open{display:none}
#tpa-guide,#tpa-followups{margin:0 16px 12px;padding:12px;border:1px solid #dce6e2;border-radius:10px;background:#eef5f0;font-size:13px}
#tpa-guide fieldset{border:0;padding:0;margin:0;min-width:0}
#tpa-guide-title{font-weight:750;font-size:16px;padding:0;margin-bottom:5px}
#tpa-guide-progress,#tpa-guide-hint,#tpa-followup-title{margin:0 0 8px}
#tpa-guide-progress{color:#536970;font-size:11px}
#tpa-guide-options{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:10px}
#tpa-root .tpa-choice{display:flex;align-items:center;gap:7px;border:1px solid #bccfc4;border-radius:9px;min-height:44px;padding:8px;background:#fff;cursor:pointer;overflow-wrap:anywhere}
#tpa-root .tpa-choice:has(input:checked){background:#dcefe3;border-color:#12694f}
#tpa-root .tpa-choice input{width:17px;height:17px;margin:0;flex:0 0 auto;accent-color:#12694f}
#tpa-guide-free{display:block;width:100%;border:1px solid #bcccd2;border-radius:8px;padding:9px;font-size:16px;margin:5px 0;color:#153749;background:#fff}
#tpa-guide small{display:block;font-size:11px;color:#536970;margin-top:7px}
#tpa-guide-error{color:#8c330e;margin:6px 0}
#tpa-root .tpa-guide-nav{display:flex;flex-wrap:wrap;gap:7px}
#tpa-guide button,#tpa-followups button{background:#e1ebe5;color:#153749;padding:7px 10px;font-size:12px}
#tpa-guide #tpa-guide-next{background:#12694f;color:#fff;flex:1}
#tpa-guide #tpa-guide-close{background:transparent;text-decoration:underline}
#tpa-chat-form{flex:0 0 auto;padding:12px 16px 8px;margin:0;background:#fff;border-top:1px solid #dce6e2}
#tpa-root .tpa-compose{display:flex;align-items:stretch;gap:7px}
#tpa-question{resize:none;flex:1;min-width:0;width:100%;height:64px;min-height:64px;max-height:64px;padding:9px;border:1px solid #acbfba;border-radius:9px;background:#fff;color:#153749;font-size:16px}
#tpa-send{background:#12694f;color:#fff;padding:8px 12px;flex:0 0 auto}
#tpa-root .tpa-check{display:flex;align-items:flex-start;gap:8px;font-size:12px;line-height:1.4;cursor:pointer}
#tpa-root .tpa-check input{margin:2px 0 0;width:18px;height:18px;flex:0 0 auto;accent-color:#12694f}
#tpa-consent-label{margin:8px 0 0;color:#4f626c;font-size:11px!important}
#tpa-privacy{display:inline-block;font-size:11px;margin:1px 0 0 26px}
#tpa-status{font-size:12px;color:#526571;margin:4px 0 0}
#tpa-status:empty{display:none}
#tpa-root .tpa-bottom{flex:0 0 auto;border-top:1px solid #e4e9e9;padding:10px 16px;background:#fff}
#tpa-callback{width:100%;background:#e8f1eb;border:1px solid #a7cbb7!important;color:#105339;padding:9px 12px;font-size:14px!important}
#tpa-root .tpa-bottom p{font-size:11px;color:#526571;margin:5px 0 0;text-align:center}
#tpa-root .tpa-bottom #tpa-quota-status{display:block;margin:0 0 9px;font-size:13px;line-height:1.4;color:#153749;text-align:left}
#tpa-callback-panel{padding:12px 18px 20px}
#tpa-callback-back{background:transparent;color:#286453;padding:4px 0;text-align:left;font-size:13px!important}
#tpa-callback-title{font-size:21px;line-height:1.25;margin:12px 0}
#tpa-callback-panel>p{font-size:13px}
#tpa-callback-form{margin:0}
#tpa-callback-form>label:not(.tpa-check),#tpa-project-summary label{display:block;font-size:13px;font-weight:600;margin:12px 0 5px}
#tpa-callback-form :is(input[type=text],input[type=tel],textarea){display:block;width:100%;padding:10px;border:1px solid #acbfba;border-radius:8px;background:#fff;color:#153749;font-size:16px}
#tpa-callback-form textarea{resize:vertical;min-height:90px}
#tpa-project-summary{font-size:13px;border-block:1px solid #dce6e2;margin:18px 0 12px;padding:4px 0}
#tpa-project-summary summary{cursor:pointer;padding:10px 0;font-weight:650}
#tpa-project-summary p{font-size:12px}
#tpa-project-summary textarea:last-child{margin-bottom:12px}
#tpa-callback-form .tpa-check{margin:12px 0 4px}
#tpa-context-notice{font-size:11px;color:#526571;margin:6px 0 14px}
#tpa-callback-form>a{font-size:12px;display:inline-block;margin:4px 0 12px 26px}
#tpa-callback-submit{display:block;width:100%;background:#12694f;color:#fff;padding:12px}
#tpa-callback-status{padding:10px 0;font-size:14px;overflow-wrap:anywhere}
#tpa-callback-status:empty{display:none}
#tpa-root .tpa-sr,#tpa-root .tpa-honeypot{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:520px){#tpa-dialog{left:8px;right:8px;bottom:8px;width:auto;max-width:none;height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);border-radius:14px}#tpa-launch{right:14px;bottom:96px}#tpa-root .tpa-head{padding:10px 12px}#tpa-root .tpa-head strong{font-size:17px}#tpa-root .tpa-head small{font-size:11px}#tpa-chat-form{padding:10px 12px 7px}#tpa-root .tpa-bottom{padding:8px 12px}#tpa-messages{padding-inline:12px}#tpa-root .tpa-message{padding:12px}#tpa-callback-panel{padding-inline:14px}}
@media(max-width:360px){#tpa-guide-options{grid-template-columns:1fr}#tpa-callback{font-size:13px!important}#tpa-send{padding-inline:9px}#tpa-root .tpa-head small{max-width:210px}}
@media(max-height:520px){#tpa-root .tpa-head{padding-block:6px}#tpa-root .tpa-head small,#tpa-root .tpa-bottom p{display:none}#tpa-chat-form{padding-block:6px}#tpa-question{height:48px;min-height:48px;max-height:48px}#tpa-consent-label{margin-top:5px}#tpa-root .tpa-bottom{padding-block:6px}}
/* On very short viewports, keep every control reachable through the same scroll surface. */
@media(max-height:420px){#tpa-root #tpa-dialog{overflow-y:auto;scroll-padding-top:72px}#tpa-root #tpa-body{overflow:visible;flex:0 0 auto}#tpa-root .tpa-head{position:sticky;top:0;z-index:1}}
@media(prefers-reduced-motion:reduce){#tpa-root *{scroll-behavior:auto!important}}
