.glb-lc-r1,
.glb-lc-r1 * {
  box-sizing: border-box;
}

.glb-lc-r1 {
  --glb-lc-r1-safe-bottom: 22px;
  position: fixed;
  z-index: 980;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(var(--glb-lc-r1-safe-bottom), env(safe-area-inset-bottom));
  max-width: calc(100vw - 24px);
  color: var(--glb-ink, #211915);
  font-family: var(--glb-sans, Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: 16px;
  line-height: 1.5;
}

.glb-lc-r1__launcher,
.glb-lc-r1 button,
.glb-lc-r1 textarea {
  font: inherit;
}

.glb-lc-r1__launcher {
  display: inline-flex;
  min-width: 190px;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 18px 8px 8px;
  border: 1px solid var(--glb-gold, #c9a13a);
  border-radius: var(--glb-radius-pill, 999px);
  background: var(--glb-gold, #c9a13a);
  box-shadow: var(--glb-elevation-2, 0 22px 54px rgba(67, 42, 34, 0.12));
  color: var(--glb-action-ink, #1d1712);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.035em;
  transition: transform var(--glb-motion-base, 200ms) var(--glb-ease-out, ease), box-shadow var(--glb-motion-base, 200ms) var(--glb-ease-out, ease), background var(--glb-motion-base, 200ms) ease;
}

.glb-lc-r1__launcher:hover {
  transform: translateY(-2px);
  background: var(--glb-action-hover, #b98d22);
  box-shadow: var(--glb-elevation-3, 0 34px 90px rgba(67, 42, 34, 0.15));
}

.glb-lc-r1__launcher:disabled {
  cursor: wait;
  opacity: 0.78;
}

.glb-lc-r1__launcher-mark {
  display: grid;
  width: 36px;
  min-width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(29, 23, 18, 0.3);
  border-radius: 50%;
  font-family: var(--glb-serif, Georgia, "Times New Roman", serif);
  font-size: 0.72rem;
}

.glb-lc-r1__panel {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  width: min(410px, calc(100vw - 24px));
  max-height: min(760px, calc(100dvh - max(var(--glb-lc-r1-safe-bottom), env(safe-area-inset-bottom)) - 88px));
  grid-template-rows: auto auto minmax(0, 1fr) auto auto auto;
  overflow: hidden;
  border: 1px solid var(--glb-line, rgba(67, 48, 40, 0.16));
  border-radius: var(--glb-radius-lg, 32px);
  background: var(--glb-surface-solid, #fffdf9);
  box-shadow: var(--glb-elevation-3, 0 34px 90px rgba(67, 42, 34, 0.15));
  color: var(--glb-ink, #211915);
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transform-origin: right bottom;
  transition: opacity var(--glb-motion-base, 200ms) var(--glb-ease-out, ease), transform var(--glb-motion-base, 200ms) var(--glb-ease-out, ease);
}

.glb-lc-r1__panel[hidden] {
  display: none;
}

.glb-lc-r1.is-open .glb-lc-r1__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.glb-lc-r1.is-open .glb-lc-r1__launcher {
  visibility: hidden;
}

.glb-lc-r1.is-obscured {
  visibility: hidden;
  pointer-events: none;
}

.glb-lc-r1__header {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 18px 16px 22px;
  border-bottom: 1px solid var(--glb-line, rgba(67, 48, 40, 0.16));
  background: linear-gradient(135deg, var(--glb-ivory, #f8f0e8), var(--glb-cream, #fffaf4));
}

.glb-lc-r1__eyebrow,
.glb-lc-r1-disclosure__eyebrow {
  margin: 0 0 3px;
  color: var(--glb-rose-dark, #713b48);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.glb-lc-r1__header h2 {
  margin: 0;
  color: var(--glb-ink, #211915);
  font-family: var(--glb-serif, Georgia, "Times New Roman", serif);
  font-size: clamp(1.55rem, 4vw, 1.9rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.glb-lc-r1__icon-button {
  display: grid;
  width: 44px;
  min-width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--glb-line-strong, rgba(67, 48, 40, 0.25));
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.8);
  color: var(--glb-ink, #211915);
  cursor: pointer;
  font-size: 1.55rem;
  line-height: 1;
}

.glb-lc-r1__toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--glb-line, rgba(67, 48, 40, 0.16));
  background: var(--glb-cream, #fffaf4);
}

.glb-lc-r1__toolbar button {
  min-height: 44px;
  padding: 7px 10px;
  border: 0;
  background: transparent;
  color: var(--glb-rose-dark, #713b48);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--glb-gold, #c9a13a);
  text-underline-offset: 0.25em;
}

.glb-lc-r1__toolbar button:disabled {
  cursor: default;
  opacity: 0.42;
  text-decoration: none;
}

.glb-lc-r1__body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px;
  scrollbar-color: var(--glb-blush, #ecd7d2) transparent;
}

.glb-lc-r1__log {
  display: grid;
  gap: 12px;
}

.glb-lc-r1__message {
  width: fit-content;
  max-width: 92%;
  margin: 0;
  padding: 12px 14px;
  border-radius: 6px var(--glb-radius-md, 22px) var(--glb-radius-md, 22px);
  background: var(--glb-ivory, #f8f0e8);
  color: var(--glb-ink, #211915);
  font-size: 0.88rem;
  line-height: 1.58;
  overflow-wrap: anywhere;
}

.glb-lc-r1__message--user {
  justify-self: end;
  border-radius: var(--glb-radius-md, 22px) 6px var(--glb-radius-md, 22px) var(--glb-radius-md, 22px);
  background: var(--glb-rose-action, #6d3a48);
  color: var(--glb-white, #ffffff);
}

.glb-lc-r1__choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 16px;
}

.glb-lc-r1__choice,
.glb-lc-r1__link {
  display: flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--glb-line-strong, rgba(67, 48, 40, 0.25));
  border-radius: var(--glb-radius-sm, 15px);
  background: rgba(255, 253, 249, 0.92);
  color: var(--glb-ink, #211915);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: left;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: border-color var(--glb-motion-fast, 160ms) ease, background var(--glb-motion-fast, 160ms) ease, transform var(--glb-motion-fast, 160ms) ease;
}

.glb-lc-r1__choice:hover,
.glb-lc-r1__link:hover {
  transform: translateY(-1px);
  border-color: var(--glb-gold, #c9a13a);
  background: var(--glb-cream, #fffaf4);
}

.glb-lc-r1__link::after {
  margin-left: auto;
  padding-left: 8px;
  content: "→";
  color: var(--glb-gold, #c9a13a);
}

.glb-lc-r1__composer {
  padding: 13px 16px 6px;
  border-top: 1px solid var(--glb-line, rgba(67, 48, 40, 0.16));
  background: var(--glb-surface-solid, #fffdf9);
}

.glb-lc-r1__composer > label {
  display: block;
  margin-bottom: 7px;
  color: var(--glb-ink-soft, #625650);
  font-size: 0.72rem;
  font-weight: 800;
}

.glb-lc-r1__input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.glb-lc-r1__input-row textarea {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  max-height: 92px;
  resize: vertical;
  padding: 11px 12px;
  border: 1px solid var(--glb-line-strong, rgba(67, 48, 40, 0.25));
  border-radius: var(--glb-radius-sm, 15px);
  background: var(--glb-white, #ffffff);
  color: var(--glb-ink, #211915);
  font-size: 0.84rem;
  line-height: 1.4;
}

.glb-lc-r1__input-row button {
  min-width: 64px;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--glb-gold, #c9a13a);
  border-radius: var(--glb-radius-pill, 999px);
  background: var(--glb-gold, #c9a13a);
  color: var(--glb-action-ink, #1d1712);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 850;
}

.glb-lc-r1__count {
  margin: 4px 3px 0;
  color: var(--glb-ink-soft, #625650);
  font-size: 0.66rem;
  text-align: right;
}

.glb-lc-r1__privacy {
  margin: 0;
  padding: 10px 16px 12px;
  color: var(--glb-ink-soft, #625650);
  font-size: 0.67rem;
  line-height: 1.45;
}

.glb-lc-r1__status {
  min-height: 22px;
  margin: 0;
  padding: 4px 16px;
  background: var(--glb-dark, #181513);
  color: var(--glb-white, #ffffff);
  font-size: 0.64rem;
}

.glb-lc-r1 :focus-visible {
  outline: 3px solid var(--glb-focus, #684d00);
  outline-offset: 3px;
}

.glb-lc-r1-disclosure {
  margin: var(--glb-space-5, 2rem) 0;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--glb-line, rgba(67, 48, 40, 0.16));
  border-radius: var(--glb-radius-md, 22px);
  background: var(--glb-ivory, #f8f0e8);
  color: var(--glb-ink-soft, #625650);
}

.glb-lc-r1-disclosure h2 {
  margin: 0 0 16px;
  color: var(--glb-ink, #211915);
  font-family: var(--glb-serif, Georgia, "Times New Roman", serif);
  font-size: var(--glb-step-3, clamp(2.05rem, 1.55rem + 1.75vw, 3.35rem));
  font-weight: 400;
}

.glb-lc-r1-disclosure p:last-child {
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .glb-lc-r1 {
    right: 8px;
    bottom: max(var(--glb-lc-r1-safe-bottom), env(safe-area-inset-bottom));
    left: 8px;
    max-width: none;
  }

  .glb-lc-r1__launcher {
    min-width: 182px;
    margin-left: auto;
  }

  .glb-lc-r1__panel {
    position: fixed;
    right: 8px;
    bottom: max(var(--glb-lc-r1-safe-bottom), env(safe-area-inset-bottom));
    left: 8px;
    width: auto;
    max-height: min(760px, calc(100dvh - max(var(--glb-lc-r1-safe-bottom), env(safe-area-inset-bottom)) - 88px));
    border-radius: var(--glb-radius-lg, 32px) var(--glb-radius-lg, 32px) var(--glb-radius-sm, 15px) var(--glb-radius-sm, 15px);
    transform-origin: center bottom;
  }

  .glb-lc-r1__header {
    min-height: 74px;
    padding: 13px 14px 12px 18px;
  }

  .glb-lc-r1__body {
    padding: 15px;
  }

  .glb-lc-r1__choices {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 359px) {
  .glb-lc-r1__launcher {
    min-width: 176px;
    min-height: 48px;
    padding-right: 14px;
  }

  .glb-lc-r1__panel {
    right: 5px;
    left: 5px;
  }

  .glb-lc-r1__header h2 {
    font-size: 1.45rem;
  }

  .glb-lc-r1__input-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .glb-lc-r1__input-row button {
    justify-self: stretch;
  }
}

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