/* FinChat guest chat — shared by the floating bubble, the homepage hero and /ask/.
   Markup contract lives in static/js/finchat-guest.js. */
.fcg { font-family: 'Inter Tight', system-ui, sans-serif; color: #1e2c27; }
.fcg [hidden] { display: none !important; }

.fcg-messages { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.fcg-row { display: flex; }
.fcg-user { justify-content: flex-end; }
.fcg-bubble { max-width: 88%; padding: 10px 14px; font-size: 14px; line-height: 1.6; border-radius: 16px; overflow-wrap: anywhere; }
.fcg-user .fcg-bubble { background: #0b3d34; color: #fff; border-bottom-right-radius: 4px; }
.fcg-assistant .fcg-bubble { background: #fff; border: 1px solid #e2e9e7; border-top-left-radius: 4px; }
.fcg-error .fcg-bubble { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
.fcg-link { color: #0b3d34; font-weight: 600; text-decoration: underline; text-decoration-color: #86edb9; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.fcg-link:hover { text-decoration-color: #0b3d34; }
.fcg-bubble > * + * { margin-top: 8px; }
.fcg-bubble p { margin: 0; }
.fcg-list { margin: 0; padding-left: 1.3em; }
ol.fcg-list { list-style: decimal; }
ul.fcg-list { list-style: disc; }
.fcg-list li { padding-left: 2px; }
.fcg-list li + li { margin-top: 6px; }
.fcg-list li::marker { color: #0f6b4b; font-weight: 600; }
.fcg-disc { font-size: 12px; line-height: 1.5; color: #647770; }
.fcg-who { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #0f6b4b; }
.fcg-who::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2bc784; }

.fcg-dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.fcg-dots i { width: 6px; height: 6px; border-radius: 50%; background: #93a8a1; animation: fcgDot 1.2s infinite ease-in-out; }
.fcg-dots i:nth-child(2) { animation-delay: .15s; }
.fcg-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes fcgDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.fcg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fcg-chip { border: 1px solid #cfe0da; background: #fff; color: #0b3d34; font-size: 13px; font-weight: 500; line-height: 1.3; padding: 8px 12px; border-radius: 999px; cursor: pointer; text-align: left; transition: background .15s, border-color .15s; font-family: inherit; }
.fcg-chip:hover { background: #ecfdf4; border-color: #0b3d34; }
.fcg-has-messages .fcg-chips { display: none; }
.fcg-busy .fcg-chip { pointer-events: none; opacity: .6; }

.fcg-form { display: flex; gap: 8px; align-items: center; }
.fcg-input { flex: 1; min-width: 0; border: 1px solid #cfe0da; background: #fff; border-radius: 12px; padding: 11px 14px; font-size: 15px; font-family: inherit; color: #0e1915; }
.fcg-input:focus { outline: 2px solid #0b3d34; outline-offset: 1px; border-color: transparent; }
.fcg-send { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; min-width: 44px; padding: 0 16px; border: none; border-radius: 12px; background: #0b3d34; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; }
.fcg-send:hover { background: #0d5341; }
.fcg-send:disabled { opacity: .5; cursor: default; }

.fcg-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 13px; color: #647770; }
.fcg-meta [data-fcg-remaining] { white-space: nowrap; font-weight: 600; color: #0f6b4b; }
.fcg-wall { border: 1px solid #e2e9e7; background: #fff; border-radius: 16px; padding: 16px; text-align: center; }
.fcg-wall p { margin: 0; font-size: 13px; color: #465751; line-height: 1.5; }
.fcg-wall strong { display: block; font-size: 15px; color: #0e1915; margin-bottom: 4px; }
.fcg-wall-ctas { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.fcg-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 10px; font-size: 13px; font-weight: 600; text-decoration: none; }
.fcg-btn-primary { background: #0b3d34; color: #fff; }
.fcg-btn-primary:hover { background: #0d5341; color: #fff; }
.fcg-btn-ghost { border: 1px solid #cfe0da; color: #0b3d34; background: #fff; }

/* Homepage hero variant: white card, header line, chips on one row (scroll on phones). */
.fcg-hero { max-width: 720px; margin: 32px auto 0; background: #fff; border: 1px solid #e2e9e7; border-radius: 22px; padding: 14px 16px 14px; text-align: left; box-shadow: 0 1px 2px rgba(14, 25, 21, .04), 0 18px 40px -24px rgba(11, 61, 52, .35); }
.fcg-hero-head { display: flex; align-items: center; gap: 8px; margin: 0 2px 12px; font-size: 13px; font-weight: 600; color: #0b3d34; }
.fcg-hero-head svg { flex-shrink: 0; }
.fcg-hero-head span { font-weight: 500; color: #647770; }
.fcg-hero .fcg-messages { max-height: 380px; padding-right: 2px; }
.fcg-hero .fcg-assistant .fcg-bubble { background: #f7faf9; border-color: #eef3f1; }
.fcg-hero .fcg-input { background: #f7faf9; }
.fcg-hero .fcg-input:focus { background: #fff; }
.fcg-hero .fcg-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.fcg-hero .fcg-chips::-webkit-scrollbar { display: none; }
.fcg-hero .fcg-chip { flex-shrink: 0; white-space: nowrap; background: #f7faf9; border-color: #e2e9e7; }
.fcg-hero .fcg-messages:not(:empty) { margin-bottom: 12px; }
.fcg-hero .fcg-chips { margin-top: 12px; }
.fcg-hero .fcg-meta { margin-top: 10px; }

/* Floating bubble panel variant */
.fcg-panel .fcg-messages { flex: 1; padding: 16px; min-height: 240px; }
.fcg-panel .fcg-intro { font-size: 13px; color: #465751; line-height: 1.5; margin: 0 0 4px; }
.fcg-panel .fcg-foot { border-top: 1px solid #e2e9e7; padding: 10px 12px; background: #f7faf9; display: flex; flex-direction: column; gap: 8px; }
.fcg-panel .fcg-input { font-size: 14px; padding: 9px 12px; }
.fcg-panel .fcg-send { height: 40px; min-width: 40px; padding: 0 12px; }

/* /ask/ page variant */
.fcg-page .fcg-messages { min-height: 200px; max-height: 60vh; margin-bottom: 16px; }

@media (max-width: 480px) {
  .fcg-hero { padding: 12px; border-radius: 16px; }
  .fcg-chip { font-size: 12.5px; }
}
