
#lgwRoot{
  --w-brand:#0a7fb5; --w-deep:#06678f; --w-lake:#4DB8D6; --w-pale:#9AD8F0;
  --w-mist:#E6F4FA; --w-ice:#dff3ff; --w-navy:#071A2D; --w-navy2:#0d2843;
  --w-ink:#0b1220; --w-ink2:#39424e; --w-muted:#69737f; --w-faint:#8b95a1;
  --w-line:rgba(10,28,48,.11); --w-line2:rgba(10,28,48,.2);
  --w-surface:#f5f6f7; --w-blue:#f3f8fb;
  --w-ease:cubic-bezier(.22,1,.36,1);
  position:fixed; right:26px; bottom:26px; z-index:99000;
  width:420px; height:min(690px,calc(100vh - 52px));
  display:flex; flex-direction:column;
  opacity:0; transform:translateY(16px) scale(.97); transform-origin:100% 100%;
  pointer-events:none; transition:opacity .3s var(--w-ease),transform .34s var(--w-ease);
  font-family:"PingFang SC","Noto Sans CJK SC","Source Han Sans SC","Microsoft YaHei",Inter,system-ui,sans-serif;
  line-height:1.7;
}
#lgwRoot.lgw-on{opacity:1;transform:none;pointer-events:auto}
#lgwRoot *,#lgwRoot *::before,#lgwRoot *::after{box-sizing:border-box;margin:0;padding:0}
#lgwRoot button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
#lgwRoot ul,#lgwRoot ol{list-style:none}
#lgwRoot .lgw-panel{
  flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden;
  background:#fff;border:1px solid var(--w-line);border-radius:22px;
  box-shadow:0 2px 8px rgba(7,26,45,.08),0 28px 76px rgba(7,26,45,.26);
}
@media (max-width:640px){
  #lgwRoot{right:0;bottom:0;left:0;width:100%;height:100dvh}
  #lgwRoot .lgw-panel{border-radius:0;border:0}
}
/* header */
#lgwRoot .lgw-hd{flex:none;display:flex;align-items:center;gap:12px;padding:15px 16px;color:#fff;
  background:linear-gradient(135deg,var(--w-navy2),var(--w-navy) 62%);position:relative}
#lgwRoot .lgw-hd::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(60% 120% at 88% 0%,rgba(77,184,214,.30),transparent 70%)}
#lgwRoot .lgw-av{flex:none;width:38px;height:38px;border-radius:12px;background:rgba(158,220,255,.14);
  border:1px solid rgba(158,220,255,.26);display:flex;align-items:center;justify-content:center;position:relative;z-index:1}
#lgwRoot .lgw-av svg{width:24px;height:24px;color:var(--w-pale)}
#lgwRoot .lgw-id{flex:1;min-width:0;position:relative;z-index:1}
#lgwRoot .lgw-id b{display:block;font-size:15px;font-weight:650;letter-spacing:-.01em}
#lgwRoot .lgw-id span{display:flex;align-items:center;gap:6px;font-size:11.5px;color:rgba(223,240,255,.72);margin-top:2px}
#lgwRoot .lgw-id span::before{content:"";width:6px;height:6px;border-radius:50%;background:#3ecf8e;
  box-shadow:0 0 0 3px rgba(62,207,142,.22)}
#lgwRoot .lgw-acts{display:flex;gap:4px;position:relative;z-index:1}
#lgwRoot .lgw-acts button{width:32px;height:32px;border-radius:9px;color:rgba(223,240,255,.72);
  display:flex;align-items:center;justify-content:center;transition:.24s}
#lgwRoot .lgw-acts button:hover{background:rgba(255,255,255,.12);color:#fff}
#lgwRoot .lgw-acts svg{width:17px;height:17px}
/* body */
#lgwRoot .lgw-body{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:18px 16px 8px;
  background:var(--w-blue);scroll-behavior:smooth}
#lgwRoot .lgw-body::-webkit-scrollbar{width:8px}
#lgwRoot .lgw-body::-webkit-scrollbar-thumb{background:rgba(10,28,48,.14);border-radius:8px;
  border:2px solid transparent;background-clip:content-box}
#lgwRoot .lgw-msg{display:flex;gap:9px;margin-bottom:14px;animation:lgwIn .42s var(--w-ease) both}
@keyframes lgwIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
#lgwRoot .lgw-msg.lgw-me{flex-direction:row-reverse}
#lgwRoot .lgw-ava{flex:none;width:28px;height:28px;border-radius:9px;margin-top:2px;
  background:linear-gradient(140deg,var(--w-lake),var(--w-brand));display:flex;align-items:center;justify-content:center}
#lgwRoot .lgw-ava svg{width:18px;height:18px;color:#fff}
#lgwRoot .lgw-msg.lgw-me .lgw-ava{background:var(--w-navy)}
#lgwRoot .lgw-msg.lgw-me .lgw-ava i{font-style:normal;font-size:11px;font-weight:700;color:var(--w-ice)}
#lgwRoot .lgw-bub{max-width:calc(100% - 46px);border-radius:14px;padding:11px 14px;font-size:13.8px;
  line-height:1.78;background:#fff;border:1px solid var(--w-line);color:var(--w-ink2);
  box-shadow:0 1px 2px rgba(7,26,45,.04)}
#lgwRoot .lgw-msg.lgw-me .lgw-bub{background:var(--w-brand);border-color:transparent;color:#fff;
  box-shadow:0 2px 8px rgba(10,127,181,.24)}
#lgwRoot .lgw-bub b{color:var(--w-ink);font-weight:650}
#lgwRoot .lgw-msg.lgw-me .lgw-bub b{color:#fff}
#lgwRoot .lgw-bub ul{margin:8px 0 2px;display:flex;flex-direction:column;gap:6px}
#lgwRoot .lgw-bub li{display:flex;gap:8px;font-size:13.2px;line-height:1.7}
#lgwRoot .lgw-bub li::before{content:"";flex:none;width:5px;height:5px;border-radius:50%;
  background:var(--w-pale);margin-top:.62em}
#lgwRoot .lgw-it{display:flex;flex-direction:column;gap:1px;min-width:0}
#lgwRoot .lgw-it b{font-size:13.2px;line-height:1.55}
#lgwRoot .lgw-it i{font-style:normal;font-size:12.5px;line-height:1.62;color:var(--w-muted)}
#lgwRoot .lgw-srcs{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px;padding-top:9px;
  border-top:1px dashed var(--w-line)}
#lgwRoot .lgw-srcs em{font-style:normal;font-size:11px;color:var(--w-faint);align-self:center;margin-right:2px}
#lgwRoot .lgw-src{font-size:11.2px;font-weight:600;color:var(--w-deep);background:var(--w-mist);
  border-radius:7px;padding:3px 8px;transition:.24s}
#lgwRoot .lgw-src:hover{background:var(--w-ice)}
#lgwRoot .lgw-chips{display:flex;flex-wrap:wrap;gap:7px;margin:2px 0 16px 37px}
#lgwRoot .lgw-chip{font-size:12.4px;font-weight:600;color:var(--w-deep);background:#fff;
  border:1px solid rgba(10,127,181,.28);border-radius:999px;padding:7px 13px;transition:.26s var(--w-ease)}
#lgwRoot .lgw-chip:hover{background:var(--w-brand);border-color:var(--w-brand);color:#fff;transform:translateY(-1px)}
#lgwRoot .lgw-typ{display:flex;gap:4px;padding:14px}
#lgwRoot .lgw-typ i{width:6px;height:6px;border-radius:50%;background:var(--w-pale);
  animation:lgwTp 1.25s infinite ease-in-out}
#lgwRoot .lgw-typ i:nth-child(2){animation-delay:.16s}
#lgwRoot .lgw-typ i:nth-child(3){animation-delay:.32s}
@keyframes lgwTp{0%,60%,100%{opacity:.32;transform:translateY(0)}30%{opacity:1;transform:translateY(-4px)}}
/* lead card */
#lgwRoot .lgw-lead{max-width:calc(100% - 46px);border:1px solid rgba(10,127,181,.3);border-radius:16px;
  background:#fff;overflow:hidden;box-shadow:0 2px 10px rgba(7,26,45,.07)}
#lgwRoot .lgw-lead .lgw-lh{padding:13px 15px;background:linear-gradient(135deg,var(--w-navy2),var(--w-navy));color:#fff}
#lgwRoot .lgw-lead .lgw-lh b{display:block;font-size:14px;font-weight:650}
#lgwRoot .lgw-lead .lgw-lh span{display:block;font-size:11.5px;color:rgba(223,240,255,.7);margin-top:3px;line-height:1.6}
#lgwRoot .lgw-lead .lgw-lb{padding:14px 15px}
#lgwRoot .lgw-fld{margin-bottom:11px}
#lgwRoot .lgw-fld label{display:block;font-size:11.5px;font-weight:650;color:var(--w-ink2);margin-bottom:5px}
#lgwRoot .lgw-fld label i{font-style:normal;color:#c0453f;margin-left:3px}
#lgwRoot .lgw-fld label em{font-style:normal;font-size:11px;color:var(--w-faint);font-weight:500;margin-left:5px}
#lgwRoot .lgw-fld input,#lgwRoot .lgw-fld textarea{width:100%;font:inherit;font-size:13.2px;color:var(--w-ink);
  border:1px solid var(--w-line2);border-radius:10px;padding:9px 11px;background:#fff;transition:.22s;resize:vertical}
#lgwRoot .lgw-fld input::placeholder,#lgwRoot .lgw-fld textarea::placeholder{color:#a8b1ba}
#lgwRoot .lgw-fld input:focus,#lgwRoot .lgw-fld textarea:focus{outline:0;border-color:var(--w-brand);
  box-shadow:0 0 0 3px rgba(10,127,181,.13)}
#lgwRoot .lgw-fld.lgw-bad input,#lgwRoot .lgw-fld.lgw-bad textarea{border-color:#d9534f;
  box-shadow:0 0 0 3px rgba(217,83,79,.12)}
#lgwRoot .lgw-fld .lgw-err{display:none;font-size:11.2px;color:#c0453f;margin-top:4px}
#lgwRoot .lgw-fld.lgw-bad .lgw-err{display:block}
#lgwRoot .lgw-two{display:grid;grid-template-columns:1fr 1fr;gap:9px}
#lgwRoot .lgw-consent{display:flex;gap:9px;align-items:flex-start;margin:12px 0 4px;
  font-size:11.5px;line-height:1.65;color:var(--w-muted);cursor:pointer}
#lgwRoot .lgw-consent input{flex:none;width:15px;height:15px;margin-top:2px;accent-color:var(--w-brand)}
#lgwRoot .lgw-consent.lgw-bad{color:#c0453f}
#lgwRoot .lgw-lf{display:flex;gap:9px;padding:0 15px 15px}
#lgwRoot .lgw-act{flex:1;font-size:13.4px;font-weight:650;border-radius:11px;padding:11px 14px;
  text-align:center;transition:.26s var(--w-ease);background:var(--w-brand);color:#fff;
  box-shadow:0 2px 10px rgba(10,127,181,.26)}
#lgwRoot .lgw-act:hover{background:var(--w-deep);transform:translateY(-1px)}
#lgwRoot .lgw-act[disabled]{opacity:.6;pointer-events:none}
#lgwRoot .lgw-skip{flex:0 0 auto;background:var(--w-surface);color:var(--w-muted);font-size:13.4px;
  font-weight:650;border-radius:11px;padding:11px 14px;transition:.24s}
#lgwRoot .lgw-skip:hover{background:#e9edf1;color:var(--w-ink)}
/* done */
#lgwRoot .lgw-ok{max-width:calc(100% - 46px);border:1px solid rgba(31,138,95,.3);border-radius:16px;
  background:linear-gradient(180deg,#f2fbf6,#fff);padding:16px}
#lgwRoot .lgw-ok .lgw-okt{display:flex;align-items:center;gap:9px;font-size:14px;font-weight:650;color:#166b4a}
#lgwRoot .lgw-ok .lgw-okt svg{width:19px;height:19px;flex:none}
#lgwRoot .lgw-ok .lgw-tno{margin-top:11px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:13px;font-weight:700;color:var(--w-ink);background:#fff;border:1px dashed rgba(31,138,95,.4);
  border-radius:10px;padding:9px 12px;text-align:center;letter-spacing:.04em}
#lgwRoot .lgw-ok p{font-size:12.6px;line-height:1.75;color:var(--w-muted);margin-top:11px}
#lgwRoot .lgw-ok .lgw-ctc{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
#lgwRoot .lgw-ok .lgw-ctc span{font-size:11.8px;font-weight:600;color:var(--w-deep);background:var(--w-mist);
  border-radius:8px;padding:5px 10px}
/* footer */
#lgwRoot .lgw-ft{flex:none;border-top:1px solid var(--w-line);background:#fff;padding:10px 12px 12px}
#lgwRoot .lgw-input{display:flex;align-items:flex-end;gap:8px;border:1px solid var(--w-line2);
  border-radius:15px;padding:7px 7px 7px 13px;background:#fff;transition:.22s}
#lgwRoot .lgw-input:focus-within{border-color:var(--w-brand);box-shadow:0 0 0 3px rgba(10,127,181,.11)}
#lgwRoot .lgw-input textarea{flex:1;font:inherit;font-size:13.6px;line-height:1.6;color:var(--w-ink);
  border:0;outline:0;resize:none;max-height:96px;padding:5px 0;background:transparent}
#lgwRoot .lgw-send{flex:none;width:34px;height:34px;border-radius:11px;background:var(--w-brand);color:#fff;
  display:flex;align-items:center;justify-content:center;transition:.24s var(--w-ease)}
#lgwRoot .lgw-send svg{width:17px;height:17px}
#lgwRoot .lgw-send:hover{background:var(--w-deep)}
#lgwRoot .lgw-send[disabled]{background:#cfd8e0;pointer-events:none}
#lgwRoot .lgw-legal{font-size:10.8px;color:var(--w-faint);text-align:center;margin-top:8px;line-height:1.55}

#lgwRoot[hidden]{display:none!important}
#lgwRoot .lgw-body > .lgw-msg[hidden],#lgwRoot [hidden]{display:none!important}
#lgwRoot{height:min(760px,calc(100dvh - 52px))}
#lgwRoot .lgw-bub{white-space:pre-wrap;overflow-wrap:anywhere}
#lgwRoot .lgw-form-entry{display:block;margin:0 0 9px auto;font-size:12px;color:#9ad8f0;padding:3px 0}
#lgwRoot .lgw-msg .lgw-bub:has(.lgw-srcs){white-space:normal}
#lgwRoot .lgw-answer-text{white-space:pre-wrap}
#lgwRoot .lgw-answer-text > div + div{margin-top:10px}
#lgwRoot .lgw-table-wrap{overflow-x:auto;max-width:100%;white-space:normal}
#lgwRoot table{border-collapse:collapse;min-width:100%;font-size:12px;line-height:1.65}
#lgwRoot th,#lgwRoot td{border:1px solid rgba(255,255,255,.2);padding:7px;vertical-align:top;min-width:90px}
#lgwRoot th{background:rgba(255,255,255,.08);font-weight:600}
#lgwRoot .lgw-bub:has(.lgw-answer-text){min-width:0}
#lgwRoot .lgw-status{font-size:12px;line-height:1.6;margin:8px 0;color:#ffbcad}
#lgwRoot .lgw-chip:disabled,#lgwRoot button:disabled{cursor:wait;opacity:.55}
#lgwRoot .lgw-pending{color:#9ad8f0!important}
#lgwRoot .lgw-srcs{white-space:normal}
#lgwRoot input:focus-visible,#lgwRoot textarea:focus-visible,#lgwRoot button:focus-visible{outline:2px solid #9ad8f0;outline-offset:3px}
#lgwRoot .lgw-lb fieldset{border:0;min-width:0}
#lgwRoot .lgw-fld input[aria-invalid="true"]{border-color:#f99!important}
#lgwRoot .lgw-body{scroll-behavior:auto}
.contact-submit:disabled{opacity:.6;cursor:wait}
.contact-submit-status{font-size:14px;line-height:1.6;margin-top:12px;color:#b6d8e7}
@media(max-width:640px){#lgwRoot{height:100dvh;bottom:0}.lgw-ft{padding-bottom:max(12px,env(safe-area-inset-bottom))!important}}
@media(prefers-reduced-motion:reduce){#lgwRoot,#lgwRoot *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
