/* =========================================================
   "TALK WITH HEIRESS" — MULTI-WORLD COMPANION & CONSULT DRAWER
   ========================================================= */
#heiress-chat-root {
  --hc-dark: #190f15;
  --hc-bordeaux: #311924;
  --hc-lacquer: #472233;
  --hc-cherry: #8c2946;
  --hc-cherry-deep: #6b1d35;
  --hc-blush: #e7c2bf;
  --hc-paper: #f6f1e9;
  --hc-inset: #ece5da;
  --hc-card: #fffdf9;
  --hc-ink: #26181f;
  --hc-muted: #5f4e55;
  --hc-rule: rgb(38 24 31 / .14);
}

/* Floating Companion Pill — glides in once past the Hero so it never covers hero film controls */
.hc-launcher {
  position: fixed;
  right: max(16px, calc(env(safe-area-inset-right, 0px) + clamp(14px, 2.2vw, 28px)));
  bottom: max(16px, calc(env(safe-area-inset-bottom, 0px) + clamp(14px, 2.2vw, 28px)));
  z-index: var(--z-floating, 40);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 7px 18px 7px 8px;
  background: var(--hc-dark);
  color: #fffaf2;
  border: 1px solid rgb(231 194 191 / .36);
  border-radius: 999px;
  box-shadow: 0 18px 42px rgb(15 7 12 / .44);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity .28s ease, transform .28s ease, background .22s ease, border-color .22s ease;
}
.hc-launcher.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.hc-launcher.visible:hover {
  transform: translateY(-3px);
  background: var(--hc-bordeaux);
  border-color: var(--hc-blush);
}
.hc-launcher.visible:active { transform: translateY(-1px) scale(.98); }

.hc-launcher-avatar {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex: none;
}
.hc-launcher-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 28% 36%;
  border: 1.5px solid var(--hc-blush);
}
.hc-launcher-avatar i {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #7ee0a1;
  border: 2px solid var(--hc-dark);
}
.hc-launcher-text { display: grid; text-align: left; gap: 1px; }
.hc-launcher-text strong { font: 600 13px/1.2 var(--sans); color: #fffaf2; }
.hc-launcher-text small { font: 400 11px/1.2 var(--sans); color: var(--hc-blush); }

/* Backdrop & Slide-Over Consultation Drawer */
.hc-backdrop {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-drawer, 60) - 1);
  background: rgb(16 8 13 / .64);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .26s ease;
}
.hc-backdrop.open { opacity: 1; pointer-events: auto; }

.hc-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  height: 100vh;
  height: 100dvh;
  z-index: var(--z-drawer, 60);
  width: min(500px, 100vw);
  background: var(--hc-paper);
  color: var(--hc-ink);
  display: flex;
  flex-direction: column;
  box-shadow: -24px 0 64px rgb(10 5 8 / .45);
  transform: translateX(102%);
  transition: transform .32s cubic-bezier(.22, 1, .36, 1);
}
.hc-drawer.open { transform: translateX(0); }

.hc-drawer :focus-visible {
  outline: 2px solid var(--hc-cherry);
  outline-offset: 2px;
}
.hc-head :focus-visible,
.hc-starter-bar :focus-visible,
.hc-plan-bar :focus-visible,
.hc-world-card :focus-visible {
  outline-color: var(--hc-blush);
}

/* Drawer Header */
.hc-head {
  background: var(--hc-bordeaux);
  color: #fffaf2;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(18px, env(safe-area-inset-right, 0px)) 16px max(18px, env(safe-area-inset-left, 0px));
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgb(231 194 191 / .2);
  flex: none;
}
.hc-head-avatar {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex: none;
}
.hc-head-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 28% 36%;
  border: 1.5px solid var(--hc-blush);
}
.hc-head-avatar i {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #7ee0a1;
  border: 2px solid var(--hc-bordeaux);
}
.hc-head-meta { flex: 1; min-width: 0; }
.hc-head-meta h2 {
  margin: 0;
  font: italic 400 27px/1 var(--display);
  letter-spacing: -.02em;
  color: #fffaf2;
}
.hc-head-meta p {
  margin: 4px 0 0;
  font: 500 10px/1.25 var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--hc-blush);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hc-head-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.hc-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--hc-blush);
  border: 1px solid rgb(231 194 191 / .25);
  font-size: 16px;
  transition: background .18s, color .18s;
}
.hc-icon-btn:hover { background: rgb(255 250 242 / .14); color: #fffaf2; }

/* Starter Utility Strip — 3-Tap Chair Plan Launcher */
.hc-starter-bar {
  background: linear-gradient(90deg, #24121b 0%, #2d1622 100%);
  color: #fffaf2;
  padding: 9px max(18px, env(safe-area-inset-right, 0px)) 9px max(18px, env(safe-area-inset-left, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgb(231 194 191 / .18);
  flex: none;
}
.hc-wizard-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--hc-cherry);
  color: #fffaf2;
  border: 1px solid rgb(231 194 191 / .34);
  font: 600 12px/1.15 var(--sans);
  letter-spacing: .01em;
  transition: background .18s ease, border-color .18s ease, transform .15s ease;
}
.hc-wizard-trigger:hover {
  background: #a13052;
  border-color: var(--hc-blush);
}
.hc-wizard-trigger:active { transform: scale(.98); }
.hc-wizard-trigger[aria-expanded="true"] {
  background: var(--hc-blush);
  color: var(--hc-dark);
  border-color: var(--hc-blush);
}
.hc-wizard-trigger-spark {
  font-size: 12px;
  line-height: 1;
}
.hc-wizard-trigger-pill {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgb(255 250 242 / .16);
  font: 600 9.5px/1.1 var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hc-wizard-trigger[aria-expanded="true"] .hc-wizard-trigger-pill {
  background: rgb(25 15 21 / .14);
  color: var(--hc-dark);
}
.hc-starter-hint {
  font: 500 10.5px/1.2 var(--sans);
  color: rgb(231 194 191 / .82);
  letter-spacing: .04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Live Chair Plan Ribbon */
.hc-plan-bar {
  background: #1b0e15;
  color: #fffaf2;
  padding: 10px max(18px, env(safe-area-inset-right, 0px)) 10px max(18px, env(safe-area-inset-left, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgb(231 194 191 / .18);
  font-size: 12px;
  flex: none;
}
.hc-plan-bar span { display: grid; gap: 2px; min-width: 0; }
.hc-plan-bar small {
  font: 600 9px/1.1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--hc-blush);
}
.hc-plan-bar strong {
  font: 600 12.5px/1.25 var(--sans);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hc-plan-bar button {
  padding: 7px 12px;
  background: var(--hc-blush);
  color: var(--hc-dark);
  font: 700 11.5px/1.1 var(--sans);
  white-space: nowrap;
  flex: none;
  transition: background .18s ease;
}
.hc-plan-bar button:hover { background: #fffaf2; }

/* Scrollable Conversation Thread */
.hc-thread {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 18px max(18px, env(safe-area-inset-right, 0px)) 16px max(18px, env(safe-area-inset-left, 0px));
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hc-msg {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 94%;
  scroll-margin-top: 14px;
  animation: hc-fade-up .28s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes hc-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.hc-msg.user { align-self: flex-end; align-items: flex-end; }
.hc-msg.heiress { align-self: flex-start; align-items: flex-start; width: 100%; max-width: 96%; }

.hc-msg-label {
  font: 600 9.5px/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--hc-muted);
}

.hc-bubble {
  padding: 13px 16px;
  font: 400 14px/1.58 var(--sans);
  white-space: pre-line;
  max-width: 100%;
}
.hc-msg.user .hc-bubble {
  background: var(--hc-bordeaux);
  color: #fffaf2;
  border-radius: 14px 14px 2px 14px;
}
.hc-msg.heiress .hc-bubble {
  background: var(--hc-card);
  color: var(--hc-ink);
  border: 1px solid var(--hc-rule);
  border-radius: 2px 14px 14px 14px;
  box-shadow: 0 6px 18px rgb(23 14 20 / .05);
}
.hc-bubble strong { color: var(--hc-cherry); font-weight: 600; }
.hc-bubble a {
  color: var(--hc-cherry);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}
.hc-bubble a:hover { color: var(--hc-bordeaux); }

/* Personalized "Heiress's Chair Verdict" Editorial Bubble */
.hc-msg.heiress .hc-bubble.hc-verdict {
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgb(140 41 70 / .28);
  box-shadow: 0 12px 28px rgb(23 14 20 / .09);
  white-space: normal;
}
.hc-verdict-head {
  background: linear-gradient(135deg, var(--hc-bordeaux) 0%, #431f30 100%);
  color: #fffaf2;
  padding: 13px 16px;
  display: grid;
  gap: 6px;
}
.hc-verdict-kicker {
  font: 600 9.5px/1.1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--hc-blush);
}
.hc-verdict-title {
  margin: 0;
  font: italic 400 23px/1.05 var(--display);
  color: #fffaf2;
}
.hc-verdict-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}
.hc-verdict-pills span {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgb(255 250 242 / .12);
  border: 1px solid rgb(231 194 191 / .24);
  font: 500 10.5px/1.2 var(--sans);
  color: #fffaf2;
}
.hc-verdict-body {
  padding: 14px 16px 15px;
  display: grid;
  gap: 11px;
  font: 400 13.5px/1.56 var(--sans);
}
.hc-verdict-body p { margin: 0; }
.hc-verdict-grid {
  display: grid;
  gap: 8px;
  padding: 11px 12px;
  background: var(--hc-paper);
  border: 1px solid var(--hc-rule);
  border-left: 3px solid var(--hc-cherry);
}
.hc-verdict-row {
  display: grid;
  gap: 2px;
}
.hc-verdict-row small {
  font: 600 9.5px/1.1 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--hc-muted);
}
.hc-verdict-row span {
  font: 500 13px/1.4 var(--sans);
  color: var(--hc-ink);
}

/* =========================================================
   INTERACTIVE 3-TAP "BUILD MY CHAIR PLAN" MINI-WIZARD
   ========================================================= */
.hc-wizard-card {
  width: 100%;
  background: var(--hc-card);
  border: 1px solid rgb(140 41 70 / .28);
  border-radius: 4px 14px 14px 14px;
  box-shadow: 0 12px 30px rgb(23 14 20 / .09);
  overflow: hidden;
  scroll-margin-top: 14px;
  animation: hc-fade-up .26s cubic-bezier(.22, 1, .36, 1) both;
}
.hc-wizard-head {
  background: var(--hc-bordeaux);
  color: #fffaf2;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.hc-wizard-head-copy { display: grid; gap: 3px; }
.hc-wizard-kicker {
  font: 600 9.5px/1.1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--hc-blush);
}
.hc-wizard-head h3 {
  margin: 0;
  font: italic 400 22px/1.05 var(--display);
  color: #fffaf2;
}
.hc-wizard-close {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgb(231 194 191 / .28);
  color: var(--hc-blush);
  font: 600 11px/1.1 var(--sans);
  transition: background .16s, color .16s;
}
.hc-wizard-close:hover { background: rgb(255 250 242 / .14); color: #fffaf2; }

/* 3-Step Progress Bar & Tabs */
.hc-wizard-progress {
  height: 3px;
  background: rgb(140 41 70 / .14);
  overflow: hidden;
}
.hc-wizard-progress-fill {
  height: 100%;
  background: var(--hc-cherry);
  transition: width .24s cubic-bezier(.22, 1, .36, 1);
}
.hc-wizard-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--hc-rule);
  background: var(--hc-paper);
}
.hc-wizard-step-tab {
  padding: 8px 6px;
  font: 600 10px/1.2 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--hc-muted);
  text-align: center;
  border-bottom: 2px solid transparent;
  transition: color .16s, border-color .16s, background .16s;
}
.hc-wizard-step-tab.active {
  color: var(--hc-cherry);
  border-bottom-color: var(--hc-cherry);
  background: var(--hc-card);
}
.hc-wizard-step-tab.done {
  color: var(--hc-ink);
}
.hc-wizard-step-tab:disabled { opacity: .48; cursor: default; }

.hc-wizard-body {
  padding: 14px;
  display: grid;
  gap: 11px;
}
.hc-wizard-selections {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.hc-wizard-sel-pill {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--hc-inset);
  border: 1px solid var(--hc-rule);
  font: 500 11px/1.2 var(--sans);
  color: var(--hc-ink);
}
.hc-wizard-sel-pill strong {
  color: var(--hc-cherry);
  font-weight: 600;
  margin-right: 4px;
}
.hc-wizard-q {
  margin: 0;
  font: 600 14.5px/1.3 var(--sans);
  color: var(--hc-ink);
}
.hc-wizard-options {
  display: grid;
  gap: 7px;
}
.hc-wizard-opt {
  width: 100%;
  padding: 10px 12px;
  background: var(--hc-paper);
  border: 1px solid var(--hc-rule);
  border-radius: 8px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: border-color .16s, background .16s, transform .14s;
}
.hc-wizard-opt:hover {
  border-color: var(--hc-cherry);
  background: #fdf6f5;
}
.hc-wizard-opt.selected {
  border-color: var(--hc-cherry);
  background: #f9ecef;
  box-shadow: inset 3px 0 0 var(--hc-cherry);
}
.hc-wizard-opt-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.hc-wizard-opt-copy strong {
  font: 600 13px/1.25 var(--sans);
  color: var(--hc-ink);
}
.hc-wizard-opt-copy small {
  font: 400 11.5px/1.25 var(--sans);
  color: var(--hc-muted);
}
.hc-wizard-opt-mark {
  flex: none;
  font: 700 13px/1 var(--sans);
  color: var(--hc-cherry);
}

.hc-wizard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 4px;
}
.hc-wizard-back {
  padding: 8px 11px;
  font: 600 12px/1.1 var(--sans);
  color: var(--hc-muted);
  border: 1px solid var(--hc-rule);
  border-radius: 6px;
  background: var(--hc-card);
  transition: color .16s, border-color .16s;
}
.hc-wizard-back:hover { color: var(--hc-ink); border-color: var(--hc-ink); }
.hc-wizard-submit {
  margin-left: auto;
  padding: 10px 15px;
  background: var(--hc-cherry);
  color: #fffaf2;
  font: 600 12.5px/1.15 var(--sans);
  border-radius: 6px;
  transition: background .18s, transform .14s;
}
.hc-wizard-submit:hover { background: var(--hc-bordeaux); }
.hc-wizard-submit:active { transform: scale(.98); }
.hc-wizard-submit:disabled {
  opacity: .42;
  background: var(--hc-muted);
}

/* Inline Visual Look, Service & Multi-World Cards */
.hc-cards {
  display: grid;
  gap: 8px;
  width: 100%;
  animation: hc-fade-up .32s cubic-bezier(.22, 1, .36, 1) .04s both;
}

/* Multi-World Inline Feature Card (Podcast / Classes / Founder Hub) */
.hc-world-card {
  padding: 14px 15px;
  background: linear-gradient(135deg, #211019 0%, #341a27 100%);
  color: #fffaf2;
  border: 1px solid rgb(231 194 191 / .28);
  border-left: 3px solid var(--hc-blush);
  border-radius: 4px 12px 12px 4px;
  display: grid;
  gap: 8px;
  box-shadow: 0 10px 26px rgb(15 7 12 / .2);
}
.hc-world-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.hc-world-eyebrow {
  font: 600 9.5px/1.15 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--hc-blush);
}
.hc-world-domain {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgb(255 250 242 / .1);
  border: 1px solid rgb(231 194 191 / .22);
  font: 500 10px/1.2 var(--mono);
  color: #fffaf2;
  white-space: nowrap;
}
.hc-world-title {
  margin: 0;
  font: italic 400 22px/1.08 var(--display);
  color: #fffaf2;
}
.hc-world-sub {
  margin: -3px 0 0;
  font: 500 11.5px/1.3 var(--sans);
  color: var(--hc-blush);
}
.hc-world-desc {
  margin: 0;
  font: 400 12.5px/1.48 var(--sans);
  color: rgb(255 250 242 / .86);
}
.hc-world-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}
.hc-world-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 13px;
  background: var(--hc-blush);
  color: var(--hc-dark);
  font: 700 12px/1.15 var(--sans);
  transition: background .18s ease, transform .14s ease;
}
.hc-world-cta:hover { background: #fffaf2; transform: translateY(-1px); }
.hc-world-secondary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border: 1px solid rgb(231 194 191 / .34);
  background: rgb(255 250 242 / .06);
  color: #fffaf2;
  font: 600 11.5px/1.15 var(--sans);
  transition: border-color .18s ease, background .18s ease;
}
.hc-world-secondary:hover {
  border-color: var(--hc-blush);
  background: rgb(255 250 242 / .14);
}

.hc-look-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px;
  background: var(--hc-card);
  border: 1px solid var(--hc-rule);
  text-align: left;
  transition: border-color .18s, background .18s;
}
.hc-look-card:hover { border-color: var(--hc-cherry); background: #fdf6f5; }
.hc-look-thumb {
  position: relative;
  width: 52px;
  height: 62px;
  flex: none;
  overflow: hidden;
  background: var(--hc-dark);
}
.hc-look-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hc-look-thumb span {
  position: absolute;
  bottom: 2px;
  right: 2px;
  padding: 1px 4px;
  background: rgb(23 14 20 / .82);
  color: #fffaf2;
  font: 600 7.5px/1 var(--mono);
}
.hc-look-info { flex: 1; min-width: 0; }
.hc-look-info strong {
  display: block;
  font: italic 400 21px/1.05 var(--display);
  color: var(--hc-ink);
}
.hc-look-info small {
  display: block;
  margin-top: 3px;
  font: 500 11px/1.3 var(--sans);
  color: var(--hc-muted);
}
.hc-look-card > em {
  font-style: normal;
  padding-right: 6px;
  color: var(--hc-cherry);
  font-weight: 600;
}

.hc-svc-card {
  padding: 13px 14px;
  background: var(--hc-inset);
  border: 1px solid var(--hc-rule);
  border-left: 3px solid var(--hc-cherry);
  display: grid;
  gap: 8px;
}
.hc-svc-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.hc-svc-head strong { font: 600 14px/1.25 var(--sans); color: var(--hc-ink); }
.hc-svc-head em { font: 700 13px/1 var(--mono); font-style: normal; color: var(--hc-cherry); white-space: nowrap; }
.hc-svc-card p { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--hc-muted); }
.hc-svc-card p strong { color: var(--hc-ink); }
.hc-svc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hc-svc-book {
  padding: 8px 13px;
  background: var(--hc-cherry);
  color: #fffaf2;
  font: 600 12px/1.2 var(--sans);
  transition: background .18s;
}
.hc-svc-book:hover { background: var(--hc-bordeaux); }
.hc-svc-acuity {
  padding: 8px 12px;
  border: 1px solid var(--hc-rule);
  background: var(--hc-card);
  color: var(--hc-ink);
  font: 600 11.5px/1.2 var(--sans);
}
.hc-svc-acuity:hover { border-color: var(--hc-cherry); color: var(--hc-cherry); }

/* Typing Indicator */
.hc-typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 12px 16px;
  background: var(--hc-card);
  border: 1px solid var(--hc-rule);
  border-radius: 2px 14px 14px 14px;
  align-self: flex-start;
  animation: hc-fade-up .2s ease both;
}
.hc-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hc-cherry);
  opacity: .35;
  animation: hc-bounce 1.1s infinite;
}
.hc-typing span:nth-child(2) { animation-delay: .18s; }
.hc-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes hc-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: .35; }
  40% { transform: translateY(-4px); opacity: 1; }
}

/* Dynamic Quick-Reply Chips */
.hc-chips {
  padding: 9px max(16px, env(safe-area-inset-right, 0px)) 9px max(16px, env(safe-area-inset-left, 0px));
  border-top: 1px solid var(--hc-rule);
  background: var(--hc-paper);
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: none;
}
.hc-chips::-webkit-scrollbar { display: none; }
.hc-chip {
  flex: none;
  padding: 7px 12px;
  border: 1px solid rgb(140 41 70 / .32);
  background: var(--hc-card);
  color: var(--hc-cherry);
  font: 500 12px/1.2 var(--sans);
  border-radius: 999px;
  transition: background .18s, color .18s;
}
.hc-chip:hover { background: var(--hc-cherry); color: #fffaf2; }

/* Input Composer */
.hc-compose {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px max(16px, env(safe-area-inset-right, 0px)) max(15px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: var(--hc-inset);
  border-top: 1px solid var(--hc-rule);
  flex: none;
}
.hc-compose input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid var(--hc-rule);
  background: var(--hc-card);
  color: var(--hc-ink);
  font: 400 15px/1.35 var(--sans);
  border-radius: 2px;
}
.hc-compose input:focus { border-color: var(--hc-cherry); outline: none; }
.hc-compose button {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--hc-cherry);
  color: #fffaf2;
  font-size: 19px;
  transition: background .18s, transform .15s;
}
.hc-compose button:hover { background: var(--hc-bordeaux); }
.hc-compose button:active { transform: scale(.95); }

@media (min-width: 1800px) {
  .hc-drawer { width: 540px; }
}
@media (max-width: 560px) {
  .hc-launcher {
    padding: 5px 12px 5px 5px;
    gap: 8px;
    bottom: max(14px, calc(env(safe-area-inset-bottom, 0px) + 10px));
    right: max(14px, calc(env(safe-area-inset-right, 0px) + 10px));
  }
  .hc-launcher-avatar { width: 34px; height: 34px; }
  .hc-launcher-text strong { font-size: 12px; }
  .hc-launcher-text small { display: none; }
  .hc-drawer { width: 100vw; }
  .hc-head {
    padding-top: max(14px, calc(env(safe-area-inset-top, 0px) + 8px));
    padding-bottom: 13px;
  }
  .hc-starter-hint { display: none; }
  .hc-compose input { font-size: 16px; }
  .hc-compose {
    padding-bottom: max(14px, calc(env(safe-area-inset-bottom, 0px) + 10px));
  }
  .hc-world-top { flex-wrap: wrap; }
}
@media (max-height: 520px) {
  .hc-head {
    padding: max(8px, env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px)) 8px max(14px, env(safe-area-inset-left, 0px));
    gap: 10px;
  }
  .hc-head-avatar { width: 34px; height: 34px; }
  .hc-head-meta h2 { font-size: 20px; }
  .hc-head-meta p { font-size: 9px; margin-top: 2px; }
  .hc-icon-btn { width: 32px; height: 32px; font-size: 14px; }
  .hc-starter-bar { padding: 6px 14px; }
  .hc-wizard-trigger { padding: 5px 11px; font-size: 11.5px; }
  .hc-starter-hint { display: none; }
  .hc-plan-bar { padding: 6px 14px; }
  .hc-thread { padding: 10px 14px; gap: 10px; }
  .hc-bubble { padding: 10px 13px; font-size: 13px; line-height: 1.48; }
  .hc-wizard-head { padding: 9px 12px; }
  .hc-wizard-head h3 { font-size: 19px; }
  .hc-wizard-body { padding: 10px 12px; gap: 8px; }
  .hc-wizard-options { gap: 5px; }
  .hc-wizard-opt { padding: 7px 10px; }
  .hc-wizard-opt-copy small { display: none; }
  .hc-chips { padding: 6px 14px; }
  .hc-chip { padding: 5px 10px; font-size: 11.5px; }
  .hc-compose {
    padding: 7px max(14px, env(safe-area-inset-right, 0px)) max(7px, env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px));
  }
  .hc-compose input { padding: 8px 11px; font-size: 14px; }
  .hc-compose button { width: 36px; height: 36px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .hc-drawer,
  .hc-backdrop,
  .hc-msg,
  .hc-cards,
  .hc-wizard-card,
  .hc-typing,
  .hc-wizard-progress-fill {
    transition: none !important;
    animation: none !important;
  }
}
