/* Softfootball AI assistant (theme colours; the site font is forced by the theme). */
.sfai { --sfai-green: var(--sf-green, #1F6F43); --sfai-accent: var(--sf-search-button, #8BB453); --sfai-ink: var(--sf-ink, #12201A); --sfai-line: var(--sf-card-line, #DDE2D9); --sfai-ground: var(--sf-ground, #F5F6F1); --sfai-lift: 0px; position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + var(--sfai-lift) + env(safe-area-inset-bottom, 0px)); z-index: 99980; }
.sfai-launch { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; background: var(--sfai-accent); color: #FFFFFF; font-size: 16px; font-weight: 700; box-shadow: 0 10px 28px rgba(18, 32, 26, .25); cursor: pointer; }
.sfai-launch:hover { filter: brightness(.96); }
.sfai-launch:focus-visible { outline: 3px solid var(--sfai-green); outline-offset: 3px; }
.sfai.is-open .sfai-launch { display: none; }
.sfai-panel { position: absolute; right: 0; bottom: 0; display: flex; flex-direction: column; width: 380px; max-width: calc(100vw - 32px); height: min(620px, calc(100vh - 120px)); background: #FFFFFF; border: 1px solid var(--sfai-line); border-radius: 18px; box-shadow: 0 18px 50px rgba(18, 32, 26, .22); overflow: hidden; color: var(--sfai-ink); }
.sfai-panel[hidden] { display: none; }
.sfai-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px 16px; border-bottom: 1px solid var(--sfai-line); }
.sfai-head__icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #EEF5E6; color: var(--sfai-green); flex: 0 0 36px; }
.sfai-head__title { flex: 1 1 auto; margin: 0; font-size: 16px; line-height: 1.25; font-weight: 800; text-transform: none !important; letter-spacing: 0 !important; }
.sfai-tag { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: #EEF5E6; color: var(--sfai-green); font-size: 11px; font-weight: 800; vertical-align: 2px; }
.sfai-head__new { white-space: nowrap; border: 0; background: none; color: var(--sfai-green); font-size: 13px; font-weight: 700; cursor: pointer; padding: 6px; }
.sfai-head__close { width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--sfai-ground); color: var(--sfai-ink); font-size: 22px; line-height: 1; cursor: pointer; }
.sfai-msgs { flex: 1 1 auto; overflow-y: auto; padding: 14px 14px 6px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.sfai-msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.5; word-wrap: break-word; }
.sfai-msg p { margin: 0 0 6px; }
.sfai-msg p:last-child { margin-bottom: 0; }
.sfai-msg ul { margin: 4px 0 6px; padding-left: 1.2em; }
.sfai-msg li { margin: 0 0 4px; }
.sfai-msg--bot { align-self: flex-start; background: var(--sfai-ground); border-bottom-left-radius: 6px; }
.sfai-msg--user { align-self: flex-end; background: var(--sfai-accent); color: #FFFFFF; border-bottom-right-radius: 6px; }
.sfai-msg a { color: var(--sfai-green); font-weight: 700; }
.sfai-msg.is-thinking { color: #6B6F69; font-style: italic; }
.sfai-msg.is-thinking::after { content: ''; display: inline-block; width: 1em; animation: sfai-dots 1.2s steps(4) infinite; overflow: hidden; vertical-align: bottom; }
@keyframes sfai-dots { 0% { width: 0; } 100% { width: 1em; } }
.sfai-sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; font-size: 12px; }
.sfai-sources span { color: #6B6F69; font-weight: 700; }
.sfai-sources a { padding: 2px 9px; border: 1px solid var(--sfai-line); border-radius: 999px; background: #FFFFFF; text-decoration: none; font-weight: 600; }
.sfai-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 4px; }
.sfai-form textarea { flex: 1 1 auto; min-height: 46px; max-height: 120px; padding: 12px 16px; border: 1px solid var(--sfai-line); border-radius: 23px; background: var(--sfai-ground); font-size: 15px; line-height: 1.4; resize: none; color: var(--sfai-ink); }
.sfai-form textarea:focus { outline: none; border-color: var(--sfai-accent); box-shadow: 0 0 0 3px rgba(139, 180, 83, .2); background: #FFFFFF; }
.sfai-send { flex: 0 0 46px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--sfai-accent); color: #FFFFFF; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.sfai-note { margin: 0; padding: 4px 14px 10px; font-size: 11.5px; color: #6B6F69; text-align: center; }
/* The Help Center's “Hey, how can I help?” box. */
.sfai-hero { display: flex; align-items: center; gap: 10px; max-width: 760px; margin: 0 0 8px; padding: 8px 8px 8px 18px; background: #FFFFFF; border: 1px solid var(--sf-card-line, #DDE2D9); border-radius: 999px; box-shadow: 0 8px 26px rgba(18, 32, 26, .08); }
.sfai-hero:focus-within { border-color: var(--sf-search-button, #8BB453); box-shadow: 0 0 0 3px rgba(139, 180, 83, .2); }
.sfai-hero__icon { display: inline-flex; color: var(--sf-green, #1F6F43); }
.sfai-hero input { flex: 1 1 auto; min-width: 0; height: 48px; border: 0; background: transparent; font-size: 17px; outline: none; box-shadow: none; color: var(--sf-ink, #12201A); }
.sfai-hero button { flex: 0 0 48px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--sf-search-button, #8BB453); color: #FFFFFF; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.sfai-hero__note { max-width: 760px; margin: 0 0 18px; font-size: 13px; color: var(--sf-muted, #4A5A51); }
@media (max-width: 640px) {
	.sfai { right: 10px; bottom: calc(10px + var(--sfai-lift) + env(safe-area-inset-bottom, 0px)); }
	.sfai-launch { width: 52px; padding: 0; justify-content: center; }
	.sfai-launch span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.sfai-panel { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); width: auto; max-width: none; height: min(75vh, 620px); }
	.sfai-hero input { font-size: 15px; }
}
