:root {
  color-scheme: light;
  --ink: #122923;
  --muted: #758780;
  --line: #dfe8e5;
  --paper: #fff;
  --surface: #f5f8f7;
  --accent: #08a786;
  --accent-dark: #06725e;
  --accent-soft: #def5ee;
  --navy: #112e28;
  --danger: #b93849;
  font-family: Inter, "SF Pro Display", "Segoe UI", "PingFang SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; }
body { margin: 0; color: var(--ink); background: #f4f7f6; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(8,167,134,.18); outline-offset: 2px; }
[hidden] { display: none !important; }
.host-page { min-height: 100vh; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 70% 15%, rgba(8,167,134,.07),transparent 29rem), linear-gradient(145deg,#f8faf9,#eef3f1); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.support-widget { position: fixed; z-index: 1000; right: 24px; bottom: 24px; font-size: 12px; }
.widget-launcher { position: relative; width: 64px; height: 64px; display: grid; place-items: center; overflow: visible; border: 0; border-radius: 50%; color: #fff; background: linear-gradient(145deg,#0ab992,#07896f); box-shadow: 0 14px 35px rgba(5,112,91,.3); transition: opacity .2s ease, visibility .2s ease, transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .25s; animation: launcher-float 7s ease-in-out infinite, launcher-pulse 2.3s ease-out infinite; }
.widget-launcher:hover { transform: translateY(-3px) scale(1.045); box-shadow: 0 18px 42px rgba(5,112,91,.4); }
.widget-launcher:active { transform: scale(.96); }
.widget-launcher.open { opacity: 0; visibility: hidden; pointer-events: none; transform: scale(.68); animation: none; }
.launcher-ripple { position: absolute; inset: -7px; z-index: -1; border: 1px solid rgba(8,167,134,.28); border-radius: 50%; }
.launcher-logo { position: relative; width: 29px; height: 27px; border: 2px solid currentColor; border-radius: 9px; transition: opacity .2s, transform .3s; }
.launcher-logo::after { content: ""; position: absolute; left: 5px; bottom: -6px; width: 8px; height: 8px; border-left: 2px solid currentColor; transform: skewY(-35deg); }
.launcher-logo i { position: absolute; top: 8px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.launcher-logo i:first-child { left: 6px; }
.launcher-logo i:last-child { right: 6px; }

.widget-panel { position: absolute; right: 0; bottom: 0; width: min(410px, calc(100vw - 32px)); height: min(760px, calc(100vh - 48px)); min-height: 540px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid rgba(197,213,207,.9); border-radius: 22px; background: rgba(255,255,255,.98); box-shadow: 0 28px 80px rgba(15,43,36,.22), 0 4px 16px rgba(15,43,36,.08); transform-origin: calc(100% - 28px) 100%; animation: panel-open .38s cubic-bezier(.2,.85,.22,1) both; backdrop-filter: blur(18px); }
.widget-panel.closing { animation: panel-close .22s ease both; }
.widget-header { position: relative; flex: none; min-height: 112px; overflow: hidden; display: flex; align-items: center; padding: 17px 59px 16px 20px; color: #fff; background: linear-gradient(125deg,#07a985 0%,#08bb8f 58%,#19c79b 100%); }
.widget-header::before { content: ""; position: absolute; width: 210px; height: 210px; right: -58px; top: -118px; border-radius: 50%; background: rgba(255,255,255,.08); }
.widget-header::after { content: ""; position: absolute; width: 100px; height: 100px; right: 42px; bottom: -78px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.header-orb { position: relative; z-index: 1; width: 50px; height: 50px; flex: none; margin-right: 14px; border: 2px solid rgba(255,255,255,.34); border-radius: 16px; background: rgba(255,255,255,.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 8px 22px rgba(2,112,86,.12); }
.header-orb::before, .header-orb::after { content: ""; position: absolute; left: 12px; width: 24px; height: 3px; border-radius: 4px; background: #fff; transform: rotate(-35deg); }
.header-orb::before { top: 16px; }
.header-orb::after { top: 30px; opacity: .72; }
.header-copy { position: relative; z-index: 1; min-width: 0; }
.online-line { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; color: rgba(255,255,255,.82); font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.online-line i { width: 7px; height: 7px; border-radius: 50%; background: #c7ffe9; box-shadow: 0 0 0 4px rgba(199,255,233,.13); animation: online-pulse 2.4s ease-out infinite; }
.header-copy h1 { margin: 0; font-size: 24px; line-height: 1.08; letter-spacing: -.035em; }
.header-copy p { margin: 5px 0 0; color: rgba(255,255,255,.78); font-size: 12px; line-height: 1.3; }
.close-widget { position: absolute; z-index: 2; right: 17px; top: 17px; width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.24); border-radius: 11px; color: #fff; background: rgba(255,255,255,.1); transition: background .2s, transform .32s cubic-bezier(.2,.8,.2,1), box-shadow .2s; }
.close-widget:hover { background: rgba(255,255,255,.18); box-shadow: 0 7px 18px rgba(3,104,81,.15); transform: rotate(90deg) scale(1.04); }
.close-widget:active { transform: rotate(90deg) scale(.92); }
.close-widget span, .close-widget span::before, .close-widget span::after { position: absolute; }
.close-widget span { inset: 0; }
.close-widget span::before, .close-widget span::after { content: ""; left: 10px; top: 17px; width: 15px; height: 1.8px; border-radius: 3px; background: currentColor; }
.close-widget span::before { transform: rotate(45deg); }
.close-widget span::after { transform: rotate(-45deg); }

.widget-content { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #f8faf9; }
.tab-panel { height: 100%; min-height: 0; animation: tab-enter .28s ease both; }
#panel-chatbot { display: flex; flex-direction: column; }
.messages { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 16px 10px; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: #cbdad5 transparent; }
.welcome-block { padding: 5px 18px 19px; text-align: center; }
.assistant-mark { position: relative; width: 43px; height: 36px; margin: 0 auto 15px; border-radius: 11px; background: var(--accent); box-shadow: 0 9px 22px rgba(8,167,134,.18); }
.assistant-mark::before { content: ""; position: absolute; left: 11px; bottom: -7px; border-width: 7px 7px 0 0; border-style: solid; border-color: var(--accent) transparent transparent transparent; }
.assistant-mark::after { content: ""; position: absolute; left: 12px; top: 16px; width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 15px 0 0 #fff; }
.assistant-mark span { position: absolute; left: 20px; top: -8px; width: 3px; height: 9px; border-radius: 4px; background: var(--accent); }
.assistant-mark span::before { content: ""; position: absolute; left: -2px; top: -2px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.welcome-block h2 { margin: 0; font-size: 16px; letter-spacing: -.02em; }
.welcome-block p { max-width: 300px; margin: 7px auto 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.message { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 16px; animation: message-in .28s ease both; }
.message.user { flex-direction: row-reverse; }
.message-avatar { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 12px; color: var(--accent-dark); background: var(--accent-soft); font-size: 12px; font-weight: 850; }
.message.user .message-avatar { color: #fff; background: var(--navy); }
.message > div { max-width: 85%; }
.bubble { padding: 12px 14px; border: 1px solid #e7eeeb; border-radius: 13px 13px 13px 4px; color: #294139; background: #fff; box-shadow: 0 3px 12px rgba(15,43,36,.035); font-size: 14px; line-height: 1.68; white-space: pre-wrap; overflow-wrap: anywhere; }
.message.user .bubble { border-color: var(--navy); border-radius: 12px 12px 4px 12px; color: #fff; background: var(--navy); }
.message time { display: block; margin: 5px 2px 0; color: #7f918a; font-size: 12px; }
.message.user time { text-align: right; }
.sources { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.5; }

.email-gate { margin: 15px 0 5px 39px; animation: message-in .3s ease .08s both; }
.gate-line { display: flex; align-items: flex-start; gap: 9px; margin-left: -39px; }
.gate-card { flex: 1; padding: 10px 12px; border: 1px solid #e7eeeb; border-radius: 12px 12px 12px 4px; background: #fff; }
.gate-card strong { font-size: 13px; }
.gate-card p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.email-form { display: flex; gap: 6px; margin-top: 8px; padding: 4px; border: 1px solid #cbd9d4; border-radius: 10px; background: #fff; transition: border-color .18s, box-shadow .18s; }
.email-form:focus-within { border-color: #7fcdbb; box-shadow: 0 0 0 3px rgba(8,167,134,.07); }
.email-form input { flex: 1; min-width: 0; height: 36px; padding: 0 9px; border: 0; outline: 0; color: var(--ink); font-size: 13px; }
.email-form button { width: 34px; border: 0; border-radius: 8px; color: var(--navy); background: #f0f4f2; font-weight: 800; transition: color .18s, background .18s, transform .18s; }
.email-form button:hover { color: #fff; background: var(--accent); transform: translateX(1px); }
.guest-link { display: block; padding: 6px 0 0; border: 0; color: var(--muted); background: transparent; font-size: 12px; text-decoration: underline; }
.guest-link strong { color: var(--ink); }
.email-gate small { display: block; margin-top: 6px; color: #84958f; font-size: 12px; }
.inline-status { min-height: 0; margin: 5px 0 0; color: var(--accent-dark); font-size: 12px; }
.email-gate.complete { margin-left: 39px; padding: 9px 11px; border-radius: 9px; color: var(--accent-dark); background: var(--accent-soft); font-size: 12px; }

.suggestions { flex: none; display: flex; gap: 6px; overflow-x: auto; padding: 8px 14px; border-top: 1px solid #edf2f0; scrollbar-width: none; }
.suggestions::-webkit-scrollbar { display: none; }
.suggestions button { flex: none; padding: 7px 11px; border: 1px solid #cfe2dc; border-radius: 999px; color: var(--accent-dark); background: #fff; font-size: 12px; font-weight: 650; transition: border-color .18s, background .18s, transform .18s; }
.suggestions button:hover { border-color: #94d2c3; background: var(--accent-soft); transform: translateY(-1px); }
.composer { flex: none; display: flex; align-items: flex-end; gap: 7px; margin: 0 14px 8px; padding: 5px 5px 5px 12px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 4px 16px rgba(15,43,36,.04); transition: border-color .18s, box-shadow .18s; }
.composer:focus-within { border-color: #8dd4c4; box-shadow: 0 0 0 3px rgba(8,167,134,.06); }
.composer textarea { flex: 1; min-width: 0; max-height: 80px; padding: 8px 0; resize: none; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 13px; line-height: 1.5; }
.composer textarea::placeholder { color: #a9b6b2; }
.composer button { width: 37px; height: 37px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; color: #fff; background: linear-gradient(145deg,#28c6a5,#08a786); transition: transform .18s, opacity .18s; }
.composer button:hover { transform: scale(1.05) rotate(-2deg); }
.composer button:disabled, .composer textarea:disabled { opacity: .45; cursor: not-allowed; }
.composer svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.privacy-link { flex: none; align-self: center; margin: 0 0 8px; padding: 0; border: 0; color: #71847d; background: transparent; font-size: 12px; text-decoration: underline; }

#panel-ask, #panel-resources { overflow-y: auto; padding: 24px 20px 28px; scrollbar-width: thin; scrollbar-color: #cbdad5 transparent; }
.panel-intro { margin-bottom: 21px; }
.panel-kicker { color: var(--accent); font-size: 12px; font-weight: 850; letter-spacing: .14em; }
.panel-intro h2 { margin: 6px 0 7px; font-size: 22px; line-height: 1.15; letter-spacing: -.035em; }
.panel-intro p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.lead-form label { display: grid; gap: 5px; margin-top: 12px; color: #385149; font-size: 12px; font-weight: 750; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.lead-form input, .lead-form textarea { width: 100%; padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; outline: 0; color: var(--ink); background: #fff; font-size: 12px; transition: border-color .18s, box-shadow .18s; }
.lead-form input:focus, .lead-form textarea:focus { border-color: #8bd0c1; box-shadow: 0 0 0 3px rgba(8,167,134,.06); }
.lead-form textarea { resize: vertical; line-height: 1.5; }
.lead-form .consent { display: flex; align-items: flex-start; gap: 7px; color: var(--muted); font-weight: 450; line-height: 1.45; }
.consent input { width: auto; margin: 1px 0 0; accent-color: var(--accent); }
.form-status { min-height: 17px; margin: 9px 0 4px; color: var(--accent-dark); font-size: 12px; line-height: 1.4; }
.primary-button { min-height: 41px; border: 0; border-radius: 10px; color: #fff; background: var(--navy); font-size: 12px; font-weight: 800; transition: background .18s, transform .18s, box-shadow .18s; }
.primary-button:hover { background: #183e35; transform: translateY(-1px); box-shadow: 0 8px 19px rgba(17,46,40,.14); }
.primary-button:disabled { opacity: .5; cursor: wait; }
.lead-form > .primary-button { width: 100%; }
.lead-form > .primary-button span { margin-left: 7px; }

.resource-list { display: grid; gap: 9px; }
.resource-card { width: 100%; display: grid; grid-template-columns: 31px 1fr auto; align-items: center; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; text-align: left; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s; }
.resource-card:hover { border-color: #a9d9cd; box-shadow: 0 9px 24px rgba(15,43,36,.07); transform: translateY(-2px); }
.resource-index { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--accent-dark); background: var(--accent-soft); font-size: 12px; font-weight: 850; }
.resource-card strong, .resource-card small { display: block; }
.resource-card strong { font-size: 13px; }
.resource-card small { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.resource-card i { color: var(--accent); font-size: 14px; font-style: normal; transition: transform .2s; }
.resource-card:hover i { transform: translateX(3px); }
.direct-contact { display: grid; gap: 5px; margin-top: 18px; padding: 15px; border-radius: 13px; color: #dcece7; background: var(--navy); }
.direct-contact span { font-size: 12px; }
.direct-contact a { width: max-content; color: #fff; font-size: 12px; font-weight: 800; }
.direct-contact small { color: rgba(255,255,255,.64); font-size: 12px; }

.privacy-sheet { position: absolute; z-index: 8; inset: 0; display: grid; align-items: end; padding: 14px; background: rgba(17,46,40,.34); backdrop-filter: blur(5px); animation: fade-in .2s ease both; }
.privacy-card { padding: 19px; border: 1px solid rgba(255,255,255,.7); border-radius: 17px; background: #fff; box-shadow: 0 20px 50px rgba(15,43,36,.2); animation: sheet-up .3s cubic-bezier(.2,.8,.2,1) both; }
.privacy-card > strong { display: block; margin-top: 6px; font-size: 17px; }
.privacy-card p { margin: 8px 0 15px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.privacy-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.privacy-actions button { min-height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; font-size: 12px; font-weight: 750; }
.privacy-actions .primary-button { border-color: var(--navy); color: #fff; background: var(--navy); }

.widget-tabs { flex: none; height: 86px; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); background: rgba(255,255,255,.98); box-shadow: 0 -5px 18px rgba(15,43,36,.035); }
.tab-button { position: relative; display: grid; place-content: center; justify-items: center; gap: 5px; border: 0; color: #697c75; background: transparent; font-size: 12px; transition: color .24s, transform .24s; }
.tab-button:hover { color: var(--accent-dark); transform: translateY(-1px); }
.tab-button.active { color: var(--accent); font-weight: 800; }
.tab-button.active::after { content: ""; position: absolute; left: 50%; bottom: 7px; width: 22px; height: 2px; border-radius: 2px; background: var(--accent); transform: translateX(-50%); animation: tab-line-in .32s cubic-bezier(.2,.8,.2,1) both; }
.tab-icon { position: relative; width: 31px; height: 31px; display: grid; place-items: center; }
.tab-icon svg { width: 31px; height: 31px; overflow: visible; }
.icon-surface, .icon-detail, .icon-fold { vector-effect: non-scaling-stroke; transition: fill .28s ease, stroke .28s ease, transform .32s cubic-bezier(.2,.8,.2,1); transform-origin: center; }
.icon-surface { fill: transparent; stroke: currentColor; stroke-width: 1.65; stroke-linejoin: round; }
.icon-detail, .icon-fold { fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.tab-button.active .icon-surface { fill: var(--accent); stroke: var(--accent); transform: scale(1.035); }
.tab-button.active .icon-detail, .tab-button.active .icon-fold { stroke: #fff; }
.tab-button.active .tab-icon { animation: tab-icon-pop .42s cubic-bezier(.2,.85,.25,1.2) both; }

@keyframes launcher-pulse { 0% { box-shadow: 0 0 0 0 rgba(8,167,134,.42),0 14px 35px rgba(5,112,91,.3); } 70% { box-shadow: 0 0 0 13px rgba(8,167,134,0),0 14px 35px rgba(5,112,91,.3); } 100% { box-shadow: 0 0 0 0 rgba(8,167,134,0),0 14px 35px rgba(5,112,91,.3); } }
@keyframes launcher-float { 0%,76%,100% { transform:none; } 80% { transform:translateY(-4px) rotate(-5deg); } 84% { transform:translateY(1px) rotate(5deg); } 88% { transform:translateY(-2px) rotate(-3deg); } 92% { transform:none; } }
@keyframes panel-open { from { opacity:0; transform:translateY(18px) scale(.88); } to { opacity:1; transform:none; } }
@keyframes panel-close { to { opacity:0; transform:translateY(12px) scale(.94); } }
@keyframes tab-enter { from { opacity:0; transform:translateX(6px); } to { opacity:1; transform:none; } }
@keyframes message-in { from { opacity:0; transform:translateY(7px); } to { opacity:1; transform:none; } }
@keyframes sheet-up { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:none; } }
@keyframes fade-in { from { opacity:0; } to { opacity:1; } }
@keyframes tab-icon-pop { 0% { transform:scale(.86) rotate(-4deg); } 60% { transform:scale(1.08) rotate(2deg); } 100% { transform:none; } }
@keyframes tab-line-in { from { opacity:0; transform:translateX(-50%) scaleX(.25); } to { opacity:1; transform:translateX(-50%) scaleX(1); } }
@keyframes online-pulse { 0%,100% { box-shadow:0 0 0 3px rgba(199,255,233,.12); } 50% { box-shadow:0 0 0 6px rgba(199,255,233,0); } }

@media (max-width: 560px) {
  .support-widget { right: 10px; bottom: 10px; }
  .widget-launcher { width: 58px; height: 58px; }
  .widget-panel { position: fixed; inset: 8px 8px 10px; width: auto; height: auto; min-height: 0; border-radius: 19px; transform-origin: calc(100% - 25px) 100%; }
  .widget-header { min-height: 108px; padding: 15px 55px 14px 18px; }
  .header-orb { width: 48px; height: 48px; margin-right: 12px; border-radius: 15px; }
  .header-orb::before, .header-orb::after { left: 11px; width: 23px; }
  .header-orb::before { top: 15px; }
  .header-orb::after { top: 29px; }
  .header-copy h1 { font-size: 23px; }
  .header-copy p { font-size: 12px; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-height: 650px) and (min-width: 561px) {
  .widget-panel { height: calc(100vh - 32px); bottom: 0; min-height: 480px; }
  .widget-header { min-height: 96px; padding-top: 12px; padding-bottom: 11px; }
  .header-orb { width: 49px; height: 49px; }
  .widget-tabs { height: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
