

.lc {
  --lc-navy: #1a2150; --lc-navy-2: #232c58; --lc-band: #2a3466;
  --lc-flame: #f0b36b; --lc-gold: #f4b942; --lc-green: #2f6f4e; --lc-blue: #2b6cb0;
  --lc-bg: #ffffff; --lc-surface: #f3f5fb; --lc-line: #dfe3f0;
  --lc-ink: #1b2130; --lc-ink-2: #4a5170; --lc-link: #1f4f8a;
  --lc-you-bg: #1a2150; --lc-you-ink: #ffffff;
  --lc-safe-bg: #fff6e6; --lc-safe-line: #e0a24f;
  --lc-chip-bg: #eaf3ee; --lc-chip-ink: #1f5139; --lc-chip-line: #b9d8c6;
  --lc-shadow: 0 24px 60px rgb(10 14 40 / .28), 0 4px 14px rgb(10 14 40 / .16);
  --lc-top: 64px;
  --lc-font: 'Nunito', -apple-system, "Segoe UI", Roboto, sans-serif;
  font-family: var(--lc-font);
}

@media (max-width: 640px) { }
.lc-lock, .lc-lock body { overflow: hidden; }

.lc *, .lc *::before, .lc *::after { box-sizing: border-box; }
.lc-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lc-ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }


.lc-mark { display: block; width: 100%; height: 100%; }
.lc-mark .is0 { fill: currentColor; }
.lc-mark .is1 { fill: var(--lc-flame); }


.lc-launcher {
  position: fixed; right: 20px; bottom: 20px; z-index: 58;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 60px; padding: 6px 22px 6px 6px; border-radius: 999px;
  border: 2px solid rgb(244 185 66 / .7); cursor: pointer;
  background: linear-gradient(135deg, var(--lc-navy) 0%, var(--lc-navy-2) 100%); color: #ffffff;
  font: 800 16px/1.1 var(--lc-font);
  box-shadow: 0 10px 30px rgb(5 8 30 / .45), 0 0 0 4px rgb(240 179 107 / .12);
}
.lc-launcher__mark { display: grid; place-items: center; width: 46px; height: 46px; padding: 7px; border-radius: 50%; background: rgb(255 255 255 / .1); color: #ffffff; }
.lc-launcher:hover { border-color: var(--lc-gold); background: linear-gradient(135deg, var(--lc-navy-2) 0%, #2d3870 100%); }
.lc-launcher:focus-visible { outline: 3px solid #ffffff; outline-offset: 3px; box-shadow: 0 0 0 9px var(--lc-navy); }
.lc--open .lc-launcher__text { display: none; }
.lc--open .lc-launcher { padding-right: 6px; }


.lc-window {
  position: fixed; right: 20px; bottom: 96px; z-index: 57;
  display: flex; flex-direction: column;
  width: 384px; height: min(580px, calc(100vh - var(--lc-top) - 112px));
  min-height: 300px;
  background: var(--lc-bg); color: var(--lc-ink);
  border: 1px solid var(--lc-line); border-radius: 22px; overflow: hidden;
  box-shadow: var(--lc-shadow);
  font-size: 15px; line-height: 1.5;
}
.lc-window[hidden] { display: none; }
@supports (height: 100dvh) { .lc-window { height: min(580px, calc(100dvh - var(--lc-top) - 112px)); } }


.lc-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 14px;
  background: linear-gradient(135deg, var(--lc-navy) 0%, var(--lc-navy-2) 100%); color: #ffffff;
}
.lc-head__text { flex: 1; min-width: 0; }
.lc-head__title { margin: 0; white-space: nowrap; font: 900 17px/1.2 var(--lc-font); color: #ffffff; letter-spacing: 0; }
.lc-head__sub { margin: 2px 0 0; font-size: 14px; color: #d5daf0; }
.lc-head__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; min-height: 44px; padding: 0 10px; border-radius: 12px;
  border: 0; background: transparent; color: #ffffff; cursor: pointer;
  font: 800 14px var(--lc-font);
}
.lc-head__btn:hover { background: rgb(255 255 255 / .12); }
.lc-head__btn:focus-visible { outline: 3px solid var(--lc-gold); outline-offset: -3px; }
.lc-head__btn[hidden] { display: none; }
.lc-restart {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border-radius: 12px;
  border: 1px solid var(--lc-line); background: transparent; color: var(--lc-ink); cursor: pointer; font: 800 14px var(--lc-font);
}
.lc-restart:hover { border-color: var(--lc-ink-2); background: var(--lc-surface); }
.lc-restart:focus-visible { outline: 3px solid var(--lc-blue); outline-offset: 2px; }
.lc-restart[hidden] { display: none; }
.lc-restart .lc-ico { width: 18px; height: 18px; }


.lc-avatar { flex: none; display: grid; place-items: center; width: 34px; height: 34px; padding: 5px; border-radius: 50%; background: var(--lc-navy); color: #ffffff; }
.lc-row .lc-avatar { border: 1.5px solid rgb(240 179 107 / .6); }
.lc-avatar--head { width: 42px; height: 42px; padding: 6px; background: rgb(255 255 255 / .1); border: 1.5px solid rgb(240 179 107 / .55); }


.lc-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; padding: 4px 8px;
  background: var(--lc-band); color: #ffffff; font-weight: 800; border-top: 1px solid rgb(255 255 255 / .1);
}
.lc-strip a { color: #ffffff; border-radius: 10px; }
.lc-strip__call { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.lc-strip__help { margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; background: var(--lc-flame); color: #1b2130 !important; font-size: 14px; text-decoration: none; white-space: nowrap; }
.lc-strip__call:hover { text-decoration-thickness: 2px; }
.lc-strip__help:hover { background: var(--lc-gold); }
.lc-strip a:focus-visible { outline: 3px solid #ffffff; outline-offset: 0; }


.lc-body { position: relative; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 14px 8px; background: var(--lc-surface); }
.lc-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.lc-row { display: flex; align-items: flex-end; gap: 8px; }
.lc-row--you { justify-content: flex-end; }
.lc-row--lantern { align-items: flex-start; }
.lc-bubble { max-width: 86%; padding: 10px 14px; border-radius: 18px; overflow-wrap: anywhere; }
.lc-bubble p { margin: 0; }
.lc-bubble p + p, .lc-bubble p + ul, .lc-bubble ul + p, .lc-bubble h3 + ul { margin-top: 8px; }
.lc-row--you .lc-bubble { background: var(--lc-you-bg); color: var(--lc-you-ink); border-bottom-right-radius: 6px; font-weight: 700; }
.lc-row--lantern .lc-bubble { background: var(--lc-bg); color: var(--lc-ink); border: 1px solid var(--lc-line); border-top-left-radius: 6px; box-shadow: 0 1px 2px rgb(10 14 40 / .06); }
.lc-row--safety .lc-bubble { max-width: 100%; flex: 1; }
.lc-bubble__soft { color: var(--lc-ink-2); }
.lc-wait { color: var(--lc-ink-2); font-style: italic; }
.lc-error { color: var(--lc-ink); font-weight: 700; }


.lc-suggest { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.lc-chip, .lc .al-chips button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 14px; width: auto; max-width: 100%;
  font: 700 14px/1.3 var(--lc-font); text-align: left; cursor: pointer;
  color: var(--lc-chip-ink); background: var(--lc-chip-bg); border: 1px solid var(--lc-chip-line);
}
.lc-chip:hover, .lc .al-chips button:hover { border-color: var(--lc-green); }
.lc-chip:focus-visible, .lc .al-chips button:focus-visible { outline: 3px solid var(--lc-blue); outline-offset: 2px; }


.lc .al-msg__lead { margin: 0; color: var(--lc-ink); font-size: 15px; max-width: none; }
.lc .al-crisis__title, .lc .al-crisis__list, .lc .al-crisis__note { max-width: none; }
.lc .al-msg__lead + .al-msg__lead { margin-top: 8px; }
.lc .al-suggest__label { margin: 12px 0 4px; font: 800 14px/1.3 var(--lc-font); letter-spacing: .04em; text-transform: uppercase; color: var(--lc-ink-2); }
.lc .al-chips, .lc .al-calls { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.lc .al-calls { flex-direction: column; gap: 4px; }
.lc .al-next a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 14px;
  font-weight: 800; font-size: 14px; color: var(--lc-link); background: var(--lc-surface); border: 1px solid var(--lc-line); text-decoration: none;
}
.lc .al-next a:hover { border-color: var(--lc-link); }
.lc .al-calls li { font-size: 14px; color: var(--lc-ink); }
.lc-bubble a { color: var(--lc-link); font-weight: 800; text-underline-offset: 3px; }
.lc-bubble a:focus-visible { outline: 3px solid var(--lc-blue); outline-offset: 2px; border-radius: 4px; }
.lc .al-calls a { display: inline; padding: 11px 0; }
.lc .al-calls li { margin: 4px 0; }
.lc .al-passage { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--lc-surface); border: 1px solid var(--lc-line); }
.lc .al-passage__head { margin: 0 0 4px; font: 800 15px/1.3 var(--lc-font); }
.lc .al-passage p { margin: 0 0 6px; font-size: 14px; }
.lc .al-passage mark { background: rgb(240 179 107 / .35); color: inherit; }
.lc .al-passage__src { color: var(--lc-ink-2); }


.lc .al-crisis {
  margin: 0 0 10px; padding: 12px 14px; border-radius: 14px;
  background: var(--lc-safe-bg); border: 2px solid var(--lc-safe-line); border-top-width: 2px; border-bottom-width: 2px;
}
.lc .al-crisis__title { margin: 0 0 6px; font: 900 16px/1.3 var(--lc-font); color: var(--lc-ink); }
.lc .al-crisis__list { margin: 0; padding-left: 18px; }
.lc .al-crisis__list li { margin: 2px 0; }
.lc .al-crisis__call { display: inline; padding: 11px 0; font-size: 17px; font-weight: 900; }
.lc .al-crisis__list li { line-height: 1.55; margin: 6px 0; }
.lc .al-crisis__note { margin: 6px 0 0; font-size: 14px; color: var(--lc-ink-2); }



.lc-consent {
  margin: 0 0 14px; padding: 14px 16px; border-radius: 16px;
  background: var(--lc-bg); color: var(--lc-ink); border: 2px solid var(--lc-navy); box-shadow: 0 1px 2px rgb(10 14 40 / .06);
}
.lc-consent[hidden] { display: none; }
.lc-consent__title { margin: 0 0 6px; font: 900 16px/1.3 var(--lc-font); color: var(--lc-ink); }
.lc-consent p { margin: 0 0 8px; font-size: 14px; line-height: 1.5; }
.lc-consent p:last-of-type { font-weight: 800; }
.lc-consent__row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.lc-consent__ok, .lc-consent__no {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 14px; cursor: pointer; font: 900 15px var(--lc-font);
}
.lc-consent__ok { border: 0; background: var(--lc-flame); color: #1b2130; }
.lc-consent__ok:hover { background: var(--lc-gold); }
.lc-consent__no { border: 1px solid var(--lc-line); background: transparent; color: var(--lc-link); font-weight: 800; font-size: 14px; }
.lc-consent__no:hover { border-color: var(--lc-link); }
.lc-consent__ok:focus-visible, .lc-consent__no:focus-visible { outline: 3px solid var(--lc-blue); outline-offset: 2px; }


.lc-pinned { padding: 8px 10px 0; background: var(--lc-surface); border-bottom: 1px solid var(--lc-line); }
.lc-pinned[hidden] { display: none; }
.lc-pinned .al-crisis { margin: 0 0 8px; padding: 8px 12px; }
.lc-pinned .al-crisis__title { font-size: 15px; margin-bottom: 2px; }
.lc-pinned .al-crisis__list li { margin: 2px 0; line-height: 1.4; }
.lc-pinned .al-crisis__note { display: none; }


.lc-answer__label { display: flex; align-items: center; gap: 6px; margin: 0 0 6px !important; font: 800 13px/1.2 var(--lc-font); color: var(--lc-ink-2); }
.lc-list { margin: 8px 0 0; padding-left: 20px; list-style: disc; }
.lc-list li { margin: 3px 0; }
.lc-fixed { padding: 10px 12px; border-radius: 12px; background: var(--lc-safe-bg); border: 1px solid var(--lc-safe-line); }
.lc-fixed__title { margin: 0 0 4px; font: 900 15px/1.3 var(--lc-font); color: var(--lc-ink); }
.lc-fixed p { margin: 0 0 6px; }
.lc-fallback { margin: 0 0 8px !important; color: var(--lc-ink-2); font-weight: 700; font-size: 14px; }
.lc-window--live .lc-head__sub { color: #ffffff; }


.lc-form { display: flex; gap: 8px; padding: 10px 12px 6px; background: var(--lc-bg); border-top: 1px solid var(--lc-line); }
.lc-input {
  flex: 1; min-width: 0; min-height: 48px; padding: 10px 14px; border-radius: 14px;
  font: 400 16px var(--lc-font); color: var(--lc-ink); background: var(--lc-surface); border: 1.5px solid var(--lc-line);
}
.lc-input::placeholder { color: var(--lc-ink-2); opacity: 1; }
.lc-input:focus-visible { outline: 3px solid var(--lc-blue); outline-offset: 1px; border-color: var(--lc-blue); }
.lc-send {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 48px; min-width: 48px; padding: 0 16px; border-radius: 14px;
  border: 0; cursor: pointer; background: var(--lc-flame); color: #1b2130; font: 900 15px var(--lc-font);
}
.lc-send .lc-ico { width: 18px; height: 18px; fill: currentColor; stroke-width: 1.5; }
.lc-send:hover { background: var(--lc-gold); }
.lc-send:focus-visible { outline: 3px solid var(--lc-blue); outline-offset: 2px; }
.lc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; padding: 0 12px 6px 14px; background: var(--lc-bg); }
.lc-foot__note { margin: 0; color: var(--lc-ink-2); font-size: 14px; line-height: 1.35; }


@media (prefers-reduced-motion: no-preference) {
  .lc--open .lc-window { animation: lc-rise 180ms cubic-bezier(.2, .8, .2, 1) both; }
  .lc-launcher, .lc-send, .lc-chip { transition: background-color 150ms, border-color 150ms; }
}
@keyframes lc-rise { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.still .lc *, .still .lc { animation: none !important; transition: none !important; }


@media (max-width: 640px) {
  .lc-launcher { right: 10px; bottom: 10px; min-height: 56px; padding: 5px; }
  .lc-launcher__text { display: none; }
  .lc-launcher__mark { width: 44px; height: 44px; }
  .lc--open .lc-launcher { display: none; }
  .lc-window {
    left: 8px; right: 8px; bottom: 62px; top: calc(var(--lc-top) + 6px);
    width: auto; height: auto; min-height: 0; border-radius: 18px;
  }
  .lc-bubble { max-width: 90%; }
  .lc-strip { padding: 4px 6px; gap: 2px; }
  .lc-strip__call { font-size: 14px; padding: 0 5px; }
  .lc-strip__help { padding: 0 10px; }
}
@media (max-width: 340px) {
  .lc-send__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

@media print { .lc { display: none !important; } }
@media (forced-colors: active) {
  .lc-launcher, .lc-window, .lc-bubble, .lc-chip, .lc-send { border: 1px solid CanvasText; }
}


.lc-launcher { background: #f0b36b; border: 2px solid #ffffff; color: #1b2130; min-height: 72px; padding: 8px 26px 8px 8px; gap: 14px; font-size: 20px; font-weight: 900; box-shadow: 0 10px 30px rgb(4 6 24 / .55), 0 0 0 6px rgb(240 179 107 / .28); }
.lc-launcher:hover { background: #f8c98c; border-color: #ffffff; }
.lc-launcher__text { color: #1b2130; }
.lc-launcher__mark { width: 54px; height: 54px; background: #1b2350; }
@media (max-width: 640px) {
  .lc-launcher { min-height: 60px; padding: 5px 18px 5px 5px; font-size: 17px; }
  .lc-launcher__text { display: inline; }
  .lc-launcher__mark { width: 48px; height: 48px; }
  .lc--open .lc-launcher { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .lc-launcher { animation: lc-call 2.8s ease-in-out infinite; }
  .lc--open .lc-launcher { animation: none; }
  @keyframes lc-call { 0%, 100% { box-shadow: 0 10px 30px rgb(4 6 24 / .55), 0 0 0 4px rgb(240 179 107 / .25); } 50% { box-shadow: 0 10px 30px rgb(4 6 24 / .55), 0 0 0 14px rgb(240 179 107 / .08); } }
}


.lc-launcher { min-height: 84px; font-size: 23px; padding: 10px 32px 10px 10px; }
.lc-launcher__mark { width: 62px; height: 62px; }
.lc-launcher::before { content: "Questions? Ask Lantern"; position: absolute; right: 0; bottom: calc(100% + 14px); white-space: nowrap; padding: 10px 16px; border-radius: 14px 14px 4px 14px; background: #ffffff; color: #1b2130; font: 800 16px/1.2 var(--lc-font); box-shadow: 0 8px 22px rgb(4 6 24 / .45); }
.lc--open .lc-launcher::before { display: none; }
@media (max-width: 640px) {
  .lc-launcher { min-height: 66px; font-size: 18px; padding: 6px 20px 6px 6px; }
  .lc-launcher__mark { width: 52px; height: 52px; }
  .lc-launcher::before { font-size: 14px; padding: 8px 12px; bottom: calc(100% + 10px); }
}

@media (max-width: 640px) {
  .lc-launcher { min-height: 76px; font-size: 21px; padding: 8px 26px 8px 8px; right: 12px; bottom: 12px; }
  .lc-launcher__mark { width: 58px; height: 58px; }
  .lc-launcher::before { font-size: 16px; padding: 10px 14px; }
}


@media (min-width: 641px) {
  .lc-window { width: 340px; height: min(480px, calc(100vh - var(--lc-top) - 132px)); bottom: 116px; }
  @supports (height: 100dvh) { .lc-window { height: min(480px, calc(100dvh - var(--lc-top) - 132px)); } }
}

.lc-foot__link { display: inline-block; min-height: 24px; padding: 2px 0; color: var(--lc-link); font-weight: 800; text-underline-offset: 3px; }
.lc-foot__link:focus-visible { outline: 3px solid var(--lc-link); outline-offset: 2px; border-radius: 4px; }



.lc-strip { display: grid; grid-template-columns: auto auto 1fr; gap: 2px; padding: 4px 8px; }
.lc-strip__call { padding: 0 4px; font-size: 14px; }
.lc-strip__help { justify-self: end; margin-left: 0; padding: 0 10px; }

@media (max-width: 640px) { .lc-window { height: auto; bottom: 8px; } }

@media (prefers-reduced-motion: no-preference) {
  .lc-launcher { animation-iteration-count: 3; }
  .lc-launcher:focus, .lc-launcher:focus-visible { animation: none; }
}


.lc--scrolled .lc-launcher::before { display: none; }
@media (max-width: 640px) {
  .lc--scrolled .lc-launcher { min-height: 60px; padding: 2px; gap: 0; }   
  .lc--scrolled .lc-launcher__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .lc--scrolled .lc-launcher__mark { width: 52px; height: 52px; }
}
@media (min-width: 641px) {
  .lc--scrolled .lc-launcher { min-height: 64px; font-size: 18px; padding: 6px 20px 6px 6px; }
  .lc--scrolled .lc-launcher__mark { width: 50px; height: 50px; }
}
@media (prefers-reduced-motion: no-preference) {
  .lc-launcher { transition: background-color 150ms, border-color 150ms, min-height 200ms, padding 200ms, font-size 200ms; }
  .lc-launcher__mark { transition: width 200ms, height 200ms; }
}


.lc .lc-er-alert { margin: 0 0 8px; padding: 12px 14px; border-radius: 14px; background: var(--lc-safe-bg); border: 2px solid var(--lc-safe-line); }
.lc .lc-er-alert__line { margin: 0; font: 900 16px/1.4 var(--lc-font); color: var(--lc-ink); }
.lc .lc-er-plain { margin: 0 0 8px; }
