/* In-page Beacon conversation and shared message primitives. */
.beacon-sec { position: relative; overflow: hidden; }
.beacon-sec__wrap { position: relative; z-index: 2; }
.pr-chat { margin-top: 64px; }
.pr-request-head .h-section { margin: 14px 0 0; font-size: 38px; }
.pr-request-head .p-lead { max-width: 650px; }

.signal-badge { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; padding: 0 17px; height: 34px; border-radius: 999px; font-family: var(--font-display); font-weight: 500; font-size: 14px; white-space: nowrap; }
.signal-badge::before { content: ""; position: absolute; top: 0; left: 14px; right: 14px; height: 5px; border-radius: 3px; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.24) 50%, transparent); }
.signal-badge-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; }
.signal-badge--violet { color: #B49AFF; background: rgba(140,107,240,0.06); border: 1px solid rgba(140,107,240,0.5); box-shadow: 0 0 16px rgba(140,107,240,0.3), inset 0 1px 0 rgba(255,255,255,0.08); }
.signal-badge--violet .signal-badge-dot { background: #8C6BF0; }

.chat-shell { display: grid; grid-template-columns: 0.82fr 1.18fr; grid-template-rows: minmax(0, 1fr); margin-top: 30px; height: min(680px, calc(100vh - 130px)); border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,0.12); background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)), linear-gradient(180deg, rgba(16,14,20,0.66), rgba(11,10,15,0.66)); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%); box-shadow: 0 10px 36px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.22), inset 0 -1px 0 rgba(0,0,0,0.2); }
.chat-context { padding: 34px; border-right: 1px solid var(--border-subtle); display: flex; flex-direction: column; min-height: 0; overflow-y: auto; }
.chat-main { display: flex; flex-direction: column; min-height: 0; background: rgba(0,0,0,0.22); }
.ctx-eyebrow { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-family: var(--font-ui); font-weight: 600; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--violet-400); }
.ctx-eyebrow--steps { margin-top: 30px; }
.ctx-title { font-family: var(--font-display); font-weight: 600; font-size: 28px; letter-spacing: -0.02em; color: var(--fg1); margin: 0; }
.ctx-sub { font-family: var(--font-body); font-size: 15px; line-height: 1.55; color: var(--fg2); margin: 12px 0 0; }
.ctx-note { margin-top: 22px; border-radius: 16px; border: 1px solid rgba(242,100,34,0.4); background: rgba(242,100,34,0.05); padding: 18px 20px; font-family: var(--font-body); font-size: 14px; line-height: 1.6; color: var(--fg2); }
.ctx-steps { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.ctx-steps li { display: flex; align-items: center; gap: 14px; font-family: var(--font-ui); font-weight: 600; font-size: 15px; color: var(--fg1); }
.ctx-num { flex-shrink: 0; width: 27px; height: 27px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--magenta-200); border: 1px solid rgba(242,100,34,0.45); background: rgba(242,100,34,0.08); }

.chat-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 28px; border-bottom: 1px solid var(--border-subtle); background: rgba(255,255,255,0.015); }
.chat-head-id { display: flex; align-items: flex-start; gap: 14px; }
.chat-head-ctl { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.chat-expand { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border-default); cursor: pointer; background: rgba(255,255,255,0.03); color: var(--fg2); font-size: 17px; display: inline-flex; align-items: center; justify-content: center; transition: border-color .15s, background .15s, color .15s; }
.chat-expand:hover { border-color: rgba(140,107,240,0.5); background: rgba(140,107,240,0.12); color: var(--fg1); }
.chat-title { font-family: var(--font-display); font-weight: 600; font-size: 26px; letter-spacing: -0.02em; color: var(--fg1); margin: 9px 0 0; }
.chat-subtitle { font-family: var(--font-body); font-size: 14px; color: var(--fg2); margin: 4px 0 0; }
.chat-state-badge { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-ui); font-weight: 700; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--violet-300); padding: 6px 13px; border-radius: 999px; background: rgba(140,107,240,0.12); border: 1px solid rgba(140,107,240,0.45); }
.chat-state-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--violet-400); }

.chat-thread { flex: 1 1 auto; min-height: 0; padding: 28px; display: flex; flex-direction: column; gap: 20px; overflow-y: auto; }
.chat-msg { display: flex; gap: 14px; align-items: flex-start; }
.chat-bubble { min-width: 0; }
.chat-sender { display: block; font-family: var(--font-ui); font-weight: 600; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--violet-400); margin-bottom: 8px; }
.chat-bubble p { font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--fg1); margin: 0 0 14px; }
.chat-bubble p:last-child { margin-bottom: 0; }
.beacon-av { flex-shrink: 0; border-radius: 50%; overflow: hidden; position: relative; background: #08080c; box-shadow: 0 0 16px rgba(242,100,34,calc(0.30 * var(--glow-mult))), inset 0 0 0 1px rgba(255,255,255,0.07); }
.beacon-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.beacon-av--head { width: 52px; height: 52px; }
.beacon-av--sm { width: 34px; height: 34px; }
.chat-msg--you { flex-direction: row-reverse; }
.chat-msg--you .chat-you-bubble { max-width: 78%; padding: 12px 16px; border-radius: 16px 16px 4px 16px; background: linear-gradient(150deg, rgba(242,100,34,0.16), rgba(242,100,34,0.10)); border: 1px solid rgba(242,100,34,0.34); font-family: var(--font-body); font-size: 16px; line-height: 1.55; color: var(--fg1); }
.chat-you-av { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-ui); font-weight: 700; font-size: 14px; color: var(--fg2); background: rgba(255,255,255,0.06); border: 1px solid var(--border-subtle); }
.beacon-think .beacon-av--sm { box-shadow: 0 0 18px rgba(242,100,34,calc(0.42 * var(--glow-mult))), inset 0 0 0 1px rgba(255,255,255,0.08); }
.beacon-think-frames { position: absolute; inset: 0; }
.beacon-think-frames img { position: absolute; inset: 0; opacity: 0; transition: opacity .45s var(--ease); }
.beacon-think-frames img.is-on { opacity: 1; }
.beacon-think-body { padding-top: 1px; }
.beacon-think-label { font-family: var(--font-ui); font-weight: 600; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--violet-400); margin-bottom: 11px; }
.beacon-dots { display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--border-subtle); background: rgba(255,255,255,0.025); }
.beacon-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.15); transition: background .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease); }
.beacon-dots span.on { background: #F8A24E; box-shadow: 0 0 10px rgba(242,100,34,0.8); transform: scale(1.12); }
.beacon-dots span.done { background: #8C6BF0; box-shadow: 0 0 10px rgba(140,107,240,0.85); }
.beacon-dots i { font-size: 15px; line-height: 1; color: #8C6BF0; margin-left: -2px; filter: drop-shadow(0 0 7px rgba(140,107,240,0.8)); }

.chat-input { display: flex; align-items: center; gap: 10px; margin: 0 24px 14px; padding: 9px 12px; border-radius: 999px; border: 1px solid var(--border-default); background: rgba(255,255,255,0.03); }
.chat-input:focus-within { border-color: var(--violet-500); box-shadow: 0 0 0 3px rgba(140,107,240,0.18); }
.chat-attach { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; border: none; background: transparent; color: var(--fg2); font-size: 23px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.chat-field { flex: 1 1 auto; background: transparent; border: none; outline: none; color: var(--fg1); font-family: var(--font-body); font-size: 16px; padding: 0 6px; min-width: 0; }
.chat-field::placeholder { color: var(--fg3); }
.chat-send { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 21px; color: #2a1404; background: radial-gradient(circle at 34% 28%, #FFE0B0, #F8A24E 40%, #E8551B 84%); box-shadow: 0 6px 18px -6px rgba(242,100,34,calc(0.42 * var(--glow-mult))); transition: transform .15s var(--ease); }
.chat-send:hover { transform: translateY(-1px) scale(1.04); }
.chat-send:disabled { opacity: 0.5; cursor: default; transform: none; }
.chat-status { font-family: var(--font-ui); font-weight: 500; font-size: 12px; color: var(--fg3); margin: 0 28px 10px; }
.typing-caret { display: inline-block; width: 7px; height: 1.15em; margin-left: 3px; vertical-align: -0.18em; border-radius: 999px; background: rgba(248,162,78,0.9); animation: chat-caret .9s steps(2,start) infinite; }
.stream-in { animation: chat-stream-in .22s var(--ease) both; }
.chat-bubble ul { margin: 0 0 14px 20px; padding: 0; color: var(--fg1); font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
.chat-bubble li { margin: 4px 0; }
.chat-bubble strong, .chat-you-bubble strong { color: var(--fg1); font-weight: 700; }
.chat-quick-actions, .chat-handoff-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-left: 48px; }
.chat-quick-actions button { font-family: var(--font-ui); font-weight: 600; font-size: 13px; color: var(--fg1); padding: 10px 14px; border-radius: 999px; border: 1px solid var(--border-default); background: rgba(255,255,255,0.035); cursor: pointer; }
.chat-booking-card { width: min(100%,640px); align-items: stretch; justify-content: space-between; gap: 18px; margin-top: 2px; padding: 18px; border: 1px solid rgba(242,100,34,0.36); border-radius: 18px; background: radial-gradient(circle at 18% 0%, rgba(242,100,34,0.24), transparent 42%), linear-gradient(135deg, rgba(255,255,255,0.09), rgba(255,255,255,0.035)), rgba(16,14,22,0.82); box-shadow: 0 18px 48px -30px rgba(242,100,34,calc(0.9 * var(--glow-mult))), inset 0 1px 0 rgba(255,255,255,0.08); }
.chat-booking-copy { flex: 1 1 260px; min-width: 0; }
.chat-booking-kicker { display: block; margin-bottom: 7px; font-family: var(--font-ui); font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-400); }
.chat-booking-copy strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(18px,2vw,22px); line-height: 1.15; color: var(--fg1); }
.chat-booking-copy p { margin: 8px 0 0; max-width: 38em; font-family: var(--font-body); font-size: 14px; line-height: 1.5; color: var(--fg2); }
.chat-booking-btn { align-self: center; white-space: nowrap; }
.chat-handoff-actions--docked { padding-left: 0; margin: -2px 28px 18px; }
.bcf-foot .chat-handoff-actions--docked { max-width: 720px; margin: -2px auto 16px; padding: 16px 28px; }
.chat-handoff-actions--docked.chat-booking-card { width: auto; border-radius: 16px; }
.chat-attachment-tray, .message-files { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-attachment-tray { margin: 0 28px 10px; }
.message-files { margin-top: 10px; }
.file-chip { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 7px 10px; border-radius: 999px; border: 1px solid var(--border-subtle); background: rgba(255,255,255,0.045); color: var(--fg2); font-family: var(--font-ui); font-weight: 600; font-size: 12px; line-height: 1.2; }
.file-chip button { width: 18px; height: 18px; border-radius: 50%; border: none; background: rgba(255,255,255,0.08); color: var(--fg3); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
@keyframes chat-caret { 0%,46% { opacity: 1; } 47%,100% { opacity: 0; } }
@keyframes chat-stream-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .chat-shell { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
  .chat-context { border-right: none; border-bottom: 1px solid var(--border-subtle); overflow: visible; }
  .chat-main { min-height: 0; }
  .chat-thread { max-height: 56vh; }
}

@media (max-width: 760px) {
  .chat-booking-card { flex-direction: column; padding-left: 18px; }
  .chat-booking-btn { width: 100%; justify-content: center; }
}
