:root {
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  color: #18334b;
  background: #f3f7fb;
  font-size: 15px;
}
* {
  box-sizing: border-box;
}
button {
  background: #1457df;
  color: white;
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  font: inherit;
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
textarea:focus-visible {
  outline: 3px solid #65b9ff;
  outline-offset: 3px;
}
textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid #cad6e4;
  border-radius: 10px;
  padding: 12px;
  font: inherit;
  background: white;
}
p {
  line-height: 1.6;
}
.demo main {
  max-width: 760px;
  margin: 10vh auto;
  padding: 24px;
}
.eyebrow {
  letter-spacing: 0.13em;
  font-size: 12px;
  color: #1457df;
  font-weight: 700;
}
h1 {
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.notice {
  background: #e5efff;
  border: 1px solid #bdd1f7;
  border-radius: 16px;
  padding: 20px;
  margin: 28px 0;
}
.notice p {
  margin-bottom: 0;
}
label {
  display: block;
  margin: 12px 0;
}
.demo textarea {
  margin-bottom: 12px;
}
.vc-assistant-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2147483000;
  box-shadow: 0 8px 30px #16376333;
}
.vc-assistant-frame {
  position: fixed;
  right: 24px;
  bottom: 84px;
  width: 390px;
  height: min(640px, calc(100dvh - 110px));
  max-width: calc(100vw - 32px);
  border: 1px solid #cfdaea;
  border-radius: 20px;
  box-shadow: 0 16px 55px #16376330;
  z-index: 2147483000;
  background: white;
}
.vc-assistant-frame[hidden] {
  display: none;
}
.widget {
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  background: white;
}
.widget header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  background: #eff5fe;
  border-bottom: 1px solid #dce6f3;
}
.widget small {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: #587188;
}
.widget header button {
  background: white;
  color: #1457df;
  font-size: 12px;
  border: 1px solid #cbd9ed;
  padding: 8px;
}
#messages {
  flex: 1;
  overflow: auto;
  padding: 16px;
}
.bubble {
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 14px;
  background: #eff4f9;
  overflow-wrap: anywhere;
}
.bubble p {
  margin: 6px 0;
  white-space: pre-wrap;
}
.bubble.user {
  background: #e2edff;
  margin-left: 32px;
}
.bubble.assistant {
  margin-right: 16px;
}
#status {
  font-size: 12px;
  margin: 0;
  padding: 6px 16px;
  color: #536f87;
  min-height: 30px;
}
.widget form {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  padding: 12px;
  border-top: 1px solid #e0e9f3;
}
.widget form textarea {
  resize: none;
}
.widget form button {
  padding: 13px 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (max-width: 480px) {
  .vc-assistant-frame {
    right: 16px;
    bottom: 80px;
    width: calc(100vw - 32px);
  }
  .vc-assistant-toggle {
    right: 16px;
    bottom: 16px;
  }
}

.package-cards {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}
[hidden] {
  display: none !important;
}

.widget {
  min-height: 0;
}
#messages {
  min-height: 0;
  overscroll-behavior: contain;
}
.composer {
  padding: 10px 12px max(10px, env(safe-area-inset-bottom));
  border-top: 1px solid #e0e9f3;
  background: #fff;
}
.widget .composer form {
  padding: 6px;
  border: 1px solid #cad6e4;
  border-radius: 14px;
  gap: 4px;
  align-items: flex-end;
  background: #fff;
}
.widget .composer form:focus-within {
  border-color: #1457df;
  box-shadow: 0 0 0 2px #1457df15;
}
.widget .composer textarea {
  border: 0;
  outline: none;
  min-height: 40px;
  max-height: 140px;
  padding: 10px 6px;
  resize: none;
  line-height: 1.4;
  box-shadow: none;
}
.widget .composer textarea:focus-visible {
  outline: none;
}
.widget .composer .icon-button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  padding: 0;
  margin: 2px;
  background: transparent;
  color: #587188;
}
.widget .composer .send-button {
  background: #1457df;
  color: white;
}
.widget .composer button:disabled {
  cursor: default;
  opacity: 0.4;
}
.composer-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 5px;
}
.widget .composer-footer small {
  font-size: 10px;
  margin-top: 5px;
  color: #728399;
}
#attachment-status {
  font-size: 12px;
  margin: 7px 4px 0;
  color: #536f87;
  overflow-wrap: anywhere;
  line-height: 1.4;
}
#status:empty {
  min-height: 0;
  padding: 0;
}
#status {
  line-height: 1.4;
}
.widget header {
  padding: 14px 16px;
}
.bubble {
  font-size: 14px;
}
.bubble p {
  line-height: 1.5;
}
@media (pointer: coarse) {
  #composer-hint {
    display: none;
  }
  .widget .composer .icon-button {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }
  .widget .composer textarea {
    font-size: 16px;
  }
}

.package-reference-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 8px 0;
}

/* Shared conversation presentation, including media in the timeline. */
.widget{background:#f8faff}.widget header{background:#fff;padding:16px 18px;border-bottom:1px solid #edf1f6;gap:12px}.widget header strong{font-size:15px}.header-actions{display:flex;gap:8px;align-items:center}.widget header #close{font-size:26px;line-height:1;background:#f3f6fa;border:0;border-radius:50%;width:34px;height:34px;padding:0;color:#50627c}.widget header #new{border-radius:16px;padding:7px 10px}.bubble{background:#fff;border-radius:20px 20px 20px 6px;box-shadow:0 2px 8px #19375306;padding:12px 14px}.bubble.user{background:#e9f1ff;border-radius:20px 20px 6px 20px}.bubble>small:first-child{color:#718297}.widget .composer{background:#fff;border-top:1px solid #edf1f6;padding:12px}.image-message{display:block;padding:0;background:transparent;width:100%;cursor:zoom-in}.package-reference-image{border-radius:16px;margin:8px 0;max-height:280px;object-fit:contain}.attachment-card{display:block;width:100%;text-align:left;background:transparent;color:#18334b;border:1px solid #cfdaea;border-radius:16px;padding:10px;overflow:hidden;cursor:pointer}.retry-image{padding:4px 8px;background:transparent;color:#1457df;font-size:12px}#media-viewer{width:calc(100vw - 24px);max-width:1100px;max-height:95dvh;padding:12px;border:0;border-radius:20px;background:#fff}#media-viewer::backdrop{background:#102741bb}#media-full{display:block;width:100%;max-height:80dvh;object-fit:contain}#media-close{display:block;margin-left:auto;padding:7px 12px;background:#eff4fa;color:#18334b;border-radius:16px}
