#flo {
  gap: 12px;
}
.flo-launcher-wrap {
  position: relative;
}
.flo-launcher-wrap[hidden] {
  display: none;
}
#flo .flo-launcher {
  border: 0;
  min-height: 58px;
  padding: 5px 18px 5px 6px;
  gap: 9px;
  color: #fff;
  background: var(--action);
  box-shadow: var(--shadow-primary);
  font-size: 15px;
}
#flo .flo-launcher[aria-expanded="true"] {
  padding: 5px 18px;
}
#flo .flo-launcher .flo-portrait {
  width: 46px;
  height: 46px;
}
.flo-hide {
  position: absolute;
  right: -10px;
  top: -24px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: none;
  color: var(--ink);
  border: 0;
  padding: 0;
}
.flo-hide::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 4px #0003;
}
.flo-hide svg {
  position: relative;
}
html:has(#more-links:not([hidden])) #flo[data-open="false"],
html:has(dialog:modal:not(#flo dialog)) #flo[data-open="false"] {
  visibility: hidden;
}
#flo .flo-panel {
  position: relative;
  inset: auto;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: none;
  height: min(680px, calc(var(--flo-height, 100dvh) - 118px));
  max-height: calc(100dvh - 110px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  color: var(--ink);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 14px 48px #09243e38;
  font: inherit;
  animation: flo-open 0.2s cubic-bezier(0.2, 0.75, 0.3, 1);
}
@keyframes flo-open {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
#flo .flo-header {
  min-height: 76px;
  flex: none;
  position: relative;
  justify-content: center;
  align-items: center;
  gap: 9px;
  padding: 8px 62px 0;
  border: 0;
  color: var(--ink);
  background: var(--surface);
}
#flo .flo-header .flo-portrait {
  height: 44px;
  width: 44px;
}
#flo .flo-header h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
}
#flo .flo-header h2:focus {
  outline: 0;
}
#flo .flo-header .icon-btn {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-control);
  color: var(--ink);
}
.flo-policy-button {
  left: 20px;
}
.flo-policy-button span {
  display: grid;
  place-items: center;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font:
    bold 13px Georgia,
    serif;
}
.flo-close {
  right: 20px;
}
#flo .flo-log {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 18px 18px;
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
#flo .flo-log > * {
  flex-shrink: 0;
}
#flo .flo-welcome {
  display: grid;
  justify-items: center;
  padding: 6px 0 10px;
  margin: 0;
}
#flo .flo-welcome .flo-kicker {
  margin-top: 13px;
  font-weight: 700;
  font-size: 11px;
}
#flo .flo-welcome h3 {
  margin: 6px 0;
  font-size: 25px;
  letter-spacing: -0.035em;
  line-height: 1.25;
}
#flo .flo-welcome p {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 0;
}
#flo .flo-starters,
.flo-followups,
.flo-message-group,
.flo-resources,
.flo-options {
  display: grid;
  gap: 8px;
}
#flo .flo-starters {
  gap: 10px;
}
#flo .flo-starters button,
#flo .flo-chip,
.flo-resource-link,
.flo-picker fieldset label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  width: 100%;
  text-align: left;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-control);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}
#flo .flo-starters button {
  min-height: 48px;
}
#flo .flo-chip {
  margin: 0;
}
#flo .flo-starters button:hover,
#flo .flo-chip:hover,
#flo .flo-resource-link:hover {
  background: var(--soft);
  border-color: var(--muted);
}
.flo-resource-link {
  justify-content: space-between;
}
#flo .flo-bubble {
  max-width: 100%;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  padding: 14px 16px;
  background: var(--soft);
  border-radius: 20px 20px 20px 5px;
}
#flo .flo-bubble p {
  white-space: pre-wrap;
}
#flo .flo-bubble .flo-resource-link {
  display: flex;
  margin: 0;
}
#flo .flo-bubble.from-user {
  align-self: flex-end;
  max-width: 90%;
  border-radius: 20px 20px 5px 20px;
  background: var(--action);
  color: white;
}
.flo-message-label,
.flo-picker-top p {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.flo-resources {
  margin-top: 10px;
}
.flo-program-card {
  padding: 14px;
  border-radius: 16px;
  box-shadow: var(--shadow-inset);
  background: var(--soft);
}
.flo-program-card h4 {
  font-size: 16px;
  margin: 7px 0 3px;
}
.flo-program-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.flo-program-card .flo-resource-link {
  margin-top: 8px;
}
#flo .flo-composer {
  display: block;
  margin: 0;
  padding: 12px 14px 10px;
  align-items: stretch;
  border-top: 1px solid var(--line);
  flex: none;
}
.flo-composer-field {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 5px 6px 5px 14px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
  box-shadow: var(--shadow-inset);
}
.flo-composer-field:focus-within {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
#flo .flo-composer textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  max-height: 104px;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 9px 0;
  outline: none;
  resize: none;
  font: inherit;
  font-size: 16px;
  line-height: 1.6;
}
#flo .flo-send {
  width: 44px;
  min-height: 44px;
  height: 44px;
  padding: 0;
  font-size: 23px;
  line-height: 1;
}
#flo .flo-send:disabled {
  background: var(--soft);
  color: var(--muted);
  border-color: var(--line);
  box-shadow: none;
  cursor: default;
}
.flo-limit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}
#flo .flo-composer textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
.flo-floating-preference {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 6px;
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
}
.flo-floating-preference input {
  accent-color: var(--action);
}
.flo-info {
  position: fixed;
  left: var(--flo-info-x, 50%);
  top: var(--flo-info-y, 50%);
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  margin: 0;
  width: min(360px, calc(100vw - 24px));
  max-height: calc(var(--flo-height, 100dvh) - 24px);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 16px 40px #08172b38;
  overscroll-behavior: contain;
}
.flo-info::backdrop {
  background: rgb(13 26 43 / 0.42);
}
.flo-info > div:first-child,
.flo-picker-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
#flo .flo-info h2 {
  font-size: 18px;
}
.flo-info p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}
.flo-options {
  grid-template-columns: 1fr 1fr;
}
.flo-picker {
  display: grid;
  gap: 12px;
}
.flo-picker h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}
.flo-picker > p {
  margin: 0;
  font-size: 14px;
}
.flo-picker fieldset {
  display: grid;
  gap: 8px;
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.flo-picker fieldset label {
  justify-content: space-between;
  cursor: pointer;
}
.flo-picker fieldset label:has(:checked) {
  border-color: var(--blue);
  background: var(--soft);
}
.flo-picker input {
  accent-color: var(--action);
  width: 16px;
  height: 16px;
  order: 1;
}
.flo-picker-top p {
  margin: 0;
}
.flo-picker-top button {
  min-height: 40px;
  padding: 3px 8px;
  background: transparent;
  border: 0;
  color: var(--blue);
  text-decoration: underline;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}
.flo-picker-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}
.flo-picker-actions .button {
  flex: 1;
}
#flo .button:disabled {
  opacity: 0.66;
  cursor: default;
}
@media (max-width: 1023px) {
  #flo {
    gap: 8px;
  }
  #flo .flo-panel {
    height: min(660px, calc(var(--flo-height, 100dvh) - 178px));
    max-height: calc(100dvh - 160px);
    border-radius: 24px;
  }
}
#flo[data-phone="true"][data-open="true"] {
  z-index: 100;
  inset: var(--flo-top, 0px) 0 auto;
  height: var(--flo-height, 100dvh);
  width: 100%;
  gap: 0;
}
#flo[data-phone="true"] .flo-panel {
  position: fixed;
  inset: var(--flo-top, 0px) 0 auto;
  width: 100%;
  max-width: 100%;
  height: var(--flo-height, 100dvh);
  max-height: var(--flo-height, 100dvh);
  margin: 0;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
    env(safe-area-inset-bottom) env(safe-area-inset-left);
  border: 0;
  border-radius: 0;
}
#flo[data-phone="true"][data-open="true"] .flo-launcher-wrap {
  display: none;
}
html:has(#flo[data-phone="true"][data-open="true"]) {
  overflow: hidden;
}
#flo[data-phone="true"] .flo-log {
  padding-inline: 14px;
}
#flo[data-phone="true"] .flo-welcome {
  padding: 0;
}
#flo[data-phone="true"] .flo-welcome h3 {
  font-size: 23px;
}
#flo[data-phone="true"] .flo-kicker {
  display: none;
}
@media (max-width: 620px) {
  #flo .flo-launcher {
    min-height: 48px;
    font-size: 13px;
    padding: 4px 13px 4px 5px;
  }
  #flo .flo-launcher .flo-portrait {
    width: 38px;
    height: 38px;
  }
}
@media (max-height: 500px) {
  #flo[data-phone="true"] .flo-header {
    min-height: 54px;
    padding-top: 0;
  }
  #flo[data-phone="true"] .flo-log {
    padding-block: 8px;
  }
  #flo[data-phone="true"] .flo-composer {
    padding-block: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #flo .flo-panel {
    animation: none;
  }
}
