.football-ai-page { --football-ai-global-header-height: 56px; --football-ai-workspace-max: 1200px; --football-ai-workspace-gutter: clamp(1rem, 3vw, 2rem); --football-ai-composer-clearance: 6.5rem; padding-bottom: 0; background: #fff; }
.football-ai-page > footer { display: none; }
.football-ai-page > nav.sticky-top { z-index: 1030; background: #fff; }
.football-ai { width: 100%; min-height: calc(100vh - 56px); min-height: calc(100dvh - 56px); }
.football-ai__workspace { width: 100%; max-width: var(--football-ai-workspace-max); min-height: inherit; margin-inline: auto; padding: 0 var(--football-ai-workspace-gutter); background: #fff; }
.football-ai__panel { display: flex; min-height: inherit; flex-direction: column; width: 100%; margin: 0 auto; }
.football-ai__header { position: sticky; top: var(--football-ai-global-header-height); z-index: 1020; flex: 0 0 auto; margin: 0 -.5rem; padding: .8rem .5rem; border-bottom: 1px solid #e4eaec; background: #fff; box-shadow: 0 .25rem .75rem rgba(33, 37, 41, .04); }
.football-ai__title-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.football-ai__brand, .football-ai__name-row { display: flex; align-items: center; gap: .75rem; }
.football-ai__header-actions { display: flex; align-items: center; gap: .5rem; }
.football-ai__header-action { min-height: 44px; padding: .45rem .8rem; border-width: 1px; border-radius: .25rem; font-size: .875rem; line-height: 1.25; }
.football-ai__header-action--primary { border-color: #17a2b8; background: #fff; color: #17a2b8; }
.football-ai__header-action--primary:hover { border-color: #138496; background: #138496; color: #fff; }
.football-ai__header-action--secondary { border-color: #6c757d; background: #fff; color: #6c757d; }
.football-ai__header-action--secondary:hover { border-color: #5a6268; background: #5a6268; color: #fff; }
.football-ai__header-action:focus-visible { outline: 3px solid rgba(23, 162, 184, .3); outline-offset: 2px; box-shadow: none; }
.football-ai__compact-bar { position: sticky; top: 0; z-index: 1030; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 -.5rem; padding: .65rem .5rem; border-bottom: 1px solid #d9e7e9; background: #fff; box-shadow: 0 .25rem .75rem rgba(33, 37, 41, .06); }
.football-ai__compact-bar:not([hidden]) { display: flex; }
.football-ai__compact-brand { display: inline-flex; min-width: 0; align-items: center; gap: .5rem; color: #17a2b8; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.football-ai__compact-brand:hover, .football-ai__compact-brand:focus-visible { color: #138496; }
.football-ai__compact-actions { display: flex; align-items: center; gap: .5rem; }
body.football-ai-focus-mode > nav { display: none; }
body.football-ai-focus-mode .football-ai__header { display: none; }
.football-ai__name-row { gap: .6rem; }
.football-ai__title-row h1 { margin: 0; font-size: 1.85rem; }
.football-ai__mark { position: relative; display: grid; place-items: center; width: 48px; height: 48px; color: #17a2b8; font-size: 2.6rem; line-height: 1; }
.football-ai__mark .bi-chat-dots-fill { position: absolute; right: -1px; bottom: 1px; padding: 2px; border-radius: 50%; background: #fff; color: #176b74; font-size: .9rem; }
.football-ai__powered { padding: .22rem .5rem; border-radius: 999px; background: #e8f7f9; color: #176b74; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.football-ai__beta-badge { display: inline-flex; align-items: center; padding: .16rem .42rem; border: 1px solid #b8dfe5; border-radius: 999px; background: #f4fbfc; color: #4b686c; font-size: .62rem; font-weight: 700; letter-spacing: .08em; line-height: 1.2; white-space: nowrap; }
.football-ai__byline { display: block; margin-top: .1rem; color: #6c757d; font-size: .72rem; letter-spacing: .04em; }
.football-ai__subtitle { margin: .85rem 0 0; color: #5f666d; }
.football-ai__conversation { width: 100%; margin: 1.25rem 0 0; padding: .25rem 0 calc(var(--football-ai-composer-clearance) + env(safe-area-inset-bottom)); overflow-x: clip; }
.football-ai__composer { position: fixed; right: 0; bottom: 0; left: 0; z-index: 1040; display: flex; align-items: center; gap: .65rem; width: calc(100% - (2 * var(--football-ai-workspace-gutter))); max-width: calc(var(--football-ai-workspace-max) - (2 * var(--football-ai-workspace-gutter))); margin-inline: auto; padding: .75rem 0 calc(.75rem + env(safe-area-inset-bottom)); background: transparent; }
.football-ai__composer .form-control { min-width: 0; min-height: 46px; border: 1px solid #cedadd; border-radius: 999px; padding-left: 1rem; background: #fff; box-shadow: 0 .2rem .75rem rgba(33, 37, 41, .08); }
.football-ai__send { display: inline-grid; flex: 0 0 46px; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid #17a2b8; border-radius: 50%; background: #17a2b8; color: #fff; font-size: 1.25rem; transition: background-color .15s ease, border-color .15s ease, transform .15s ease; }
.football-ai__send:hover { border-color: #138496; background: #138496; color: #fff; }
.football-ai__send:focus-visible { outline: 3px solid rgba(23, 162, 184, .3); outline-offset: 2px; }
.football-ai__send:disabled { border-color: #8fcbd4; background: #8fcbd4; cursor: not-allowed; opacity: .75; }
.football-ai__turn + .football-ai__turn { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid #e9ecef; }
.football-ai__turn, .football-ai__turn-response { scroll-margin-top: 9rem; scroll-margin-bottom: var(--football-ai-composer-clearance); }
body.football-ai-focus-mode .football-ai__turn, body.football-ai-focus-mode .football-ai__turn-response { scroll-margin-top: 5rem; }
.football-ai__message { max-width: 85%; margin-bottom: .75rem; padding: .75rem 1rem; border-radius: 1rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.football-ai__message--user { margin-left: auto; background: #d9f4f7; }
.football-ai__message--assistant { background: #f1f3f5; }
.football-ai__examples, .football-ai__refinements { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.football-ai__chip { max-width: 100%; padding: .4rem .75rem; border: 1px solid #b8dfe5; border-radius: 999px; background: #fff; color: #176b74; text-align: left; overflow-wrap: anywhere; }
.football-ai__chip:hover, .football-ai__chip:focus-visible { border-color: #17a2b8; background: #eefbfc; outline: 2px solid transparent; box-shadow: 0 0 0 .2rem rgba(23,162,184,.2); }
.football-ai__community { max-width: 46rem; margin-top: 1.25rem; padding: .9rem 1rem; border-left: 3px solid #8fcbd4; border-radius: 0 .55rem .55rem 0; background: #f8fbfc; color: #495057; }
.football-ai__community h2 { margin: 0; color: #34575c; font-size: .92rem; font-weight: 700; }
.football-ai__community p { margin: .4rem 0 0; font-size: .82rem; line-height: 1.55; overflow-wrap: anywhere; }
.football-ai__community-hint { color: #6c757d; }
.football-ai__community-cta { display: inline-flex; min-height: 44px; align-items: center; margin-top: .65rem; padding: .4rem .75rem; border: 1px solid #17a2b8; border-radius: .35rem; color: #176b74; font-size: .82rem; font-weight: 600; text-decoration: none; }
.football-ai__community-cta:hover, .football-ai__community-cta:focus-visible { background: #eefbfc; color: #0f5961; outline: 3px solid rgba(23, 162, 184, .22); outline-offset: 2px; }
.football-ai__community .football-ai__community-login { margin-top: .45rem; color: #6c757d; font-size: .76rem; }
.football-ai__community-login a { color: #4b686c; text-decoration: underline; text-underline-offset: .14em; }
.football-ai__community-login a:hover, .football-ai__community-login a:focus-visible { color: #0f5961; outline: 2px solid rgba(23, 162, 184, .22); outline-offset: 2px; }
.football-ai__zero-result-context { max-width: 46rem; margin: .25rem 0 .75rem; padding: .75rem .9rem; border-left: 3px solid #8fcbd4; background: #f8fbfc; color: #495057; font-size: .85rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.football-ai__loading { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; color: #17a2b8; }
.football-ai__loading-ball { display: inline-block; font-size: 1.35rem; animation: football-ai-rotate 1.4s linear infinite; }
@keyframes football-ai-rotate { to { transform: rotate(360deg); } }
.football-ai__result { margin-top: .75rem; }
.football-ai__result-body { display: flex; gap: 1rem; }
.football-ai__result-content { flex: 1 1 auto; min-width: 0; }
.football-ai__avatar { width: 56px; height: 56px; flex: 0 0 56px; object-fit: cover; }
.football-ai__preference-summary { font-weight: 600; color: #176b74; }
.football-ai__preference-labels { color: #495057; overflow-wrap: anywhere; }
.football-ai__result-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.football-ai__result-actions > * { margin-block: 0; }
.football-ai__explanation-toggle { display: inline-flex; min-height: 44px; align-items: center; margin: 0; padding: .25rem 0; border: 0; background: transparent; color: #176b74; font-size: .875rem; font-weight: 600; text-decoration: underline; text-underline-offset: .18em; }
.football-ai__explanation-toggle:hover, .football-ai__explanation-toggle:focus-visible { color: #0f5961; outline: 2px solid transparent; box-shadow: 0 0 0 .2rem rgba(23,162,184,.2); }
.football-ai__explanation { max-width: 100%; margin: 0; padding: .8rem; border: 1px solid #d9e7e9; border-radius: .65rem; background: #f8fbfc; overflow-wrap: anywhere; }
.football-ai__explanation-section + .football-ai__explanation-section { margin-top: .9rem; padding-top: .8rem; border-top: 1px solid #d9e7e9; }
.football-ai__explanation-heading { margin: 0 0 .65rem; color: #343a40; font-size: .9rem; }
.football-ai__explanation-structured { margin: 0; padding-left: 1.25rem; color: #343a40; font-size: .82rem; overflow-wrap: anywhere; }
.football-ai__explanation-structured li + li { margin-top: .3rem; }
.football-ai__explanation-row + .football-ai__explanation-row { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid #e1eaec; }
.football-ai__explanation-concept { display: inline; margin: 0; font-size: .9rem; }
.football-ai__explanation-strength { display: inline-block; margin-left: .45rem; padding: .1rem .4rem; border-radius: 999px; background: #e8f1f2; color: #4b5e61; font-size: .68rem; font-weight: 600; }
.football-ai__explanation-status { margin: .35rem 0 0; color: #495057; font-size: .82rem; }
.football-ai__explanation-evidence { margin: .4rem 0 0; padding-left: 1.2rem; color: #343a40; font-size: .8rem; }
.football-ai__explanation-provenance { margin: .75rem 0 0; color: #6c757d; font-size: .72rem; }
.football-ai__error { padding: .75rem 1rem; border-radius: .5rem; background: #f8d7da; color: #842029; }
.football-ai__resume-notice { margin-bottom: .75rem; padding: .65rem .8rem; border: 1px solid #d9e7e9; border-radius: .5rem; background: #f8fbfc; color: #495057; font-size: .82rem; }
.football-ai__resume-notice--warning { border-color: #ead7a4; background: #fff9e8; color: #664d03; }
.football-ai__freshness-notice { margin-bottom: 1rem; padding: .65rem .8rem; border-left: 3px solid #8fcbd4; background: #f8fbfc; color: #495057; font-size: .8rem; }
.football-ai__historical-message + .football-ai__historical-message { margin-top: .35rem; }
.football-ai__historical-results { max-width: 52rem; margin: .25rem 0 1.25rem; padding: .75rem; border: 1px solid #e1eaec; border-radius: .65rem; background: #fbfcfc; }
.football-ai__historical-results-heading { margin: 0 0 .65rem; color: #495057; font-size: .82rem; font-weight: 700; }
.football-ai__historical-results-cards { display: grid; gap: .65rem; }
.football-ai__historical-card { margin: 0; border-color: #e1eaec; box-shadow: none; }
.football-ai__historical-card-body { display: flex; gap: 1rem; padding: .85rem; }
.football-ai__historical-card-content { min-width: 0; flex: 1 1 auto; overflow-wrap: anywhere; }
.football-ai__historical-card-introduction { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.football-ai__historical-card--unavailable { padding: .85rem; border: 1px dashed #cedadd; border-radius: .5rem; background: #fff; color: #6c757d; }
.football-ai__historical-card--unavailable p { margin: 0; font-size: .85rem; }
.football-ai__history-backdrop { position: fixed; inset: 0; z-index: 1050; background: rgba(20, 31, 34, .35); }
.football-ai__history-drawer { position: fixed; top: 0; bottom: 0; left: 0; z-index: 1060; display: flex; width: min(22rem, calc(100vw - 2rem)); flex-direction: column; background: #fff; box-shadow: .4rem 0 1.5rem rgba(20, 31, 34, .18); }
.football-ai__history-drawer[hidden], .football-ai__history-backdrop[hidden] { display: none; }
.football-ai__history-header { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; border-bottom: 1px solid #d9e7e9; }
.football-ai__history-header h2 { margin: 0; color: #343a40; font-size: 1.15rem; }
.football-ai__history-close { display: inline-grid; width: 44px; height: 44px; place-items: center; border: 0; border-radius: .35rem; background: transparent; color: #495057; font-size: 1.1rem; }
.football-ai__history-close:hover, .football-ai__history-close:focus-visible { background: #eef7f8; color: #176b74; outline: 3px solid rgba(23, 162, 184, .25); }
.football-ai__history-content { flex: 1 1 auto; min-height: 0; padding: .75rem; overflow-y: auto; overscroll-behavior: contain; }
.football-ai__history-row { display: flex; flex-direction: column; gap: .2rem; padding: .7rem .75rem; border: 1px solid transparent; border-radius: .5rem; color: #343a40; text-decoration: none; }
.football-ai__history-row + .football-ai__history-row { margin-top: .25rem; }
.football-ai__history-row:hover, .football-ai__history-row:focus-visible { border-color: #b8dfe5; background: #eefbfc; color: #176b74; outline: none; }
.football-ai__history-row--active { border-color: #8fcbd4; background: #e8f7f9; }
.football-ai__history-row-title { font-size: .9rem; font-weight: 600; overflow-wrap: anywhere; }
.football-ai__history-row-time { color: #6c757d; font-size: .74rem; }
.football-ai__history-status { margin: 1rem .25rem; color: #6c757d; font-size: .875rem; }
.football-ai__history-empty { margin: 1rem .25rem; padding: 1rem; border-radius: .5rem; background: #f8fbfc; color: #495057; text-align: center; }
.football-ai__history-empty-title { margin: 0; font-size: .9rem; font-weight: 600; }
.football-ai__history-empty-support { margin: .4rem 0 0; color: #6c757d; font-size: .8rem; }
.football-ai__history-retry, .football-ai__history-load-more { min-height: 44px; border: 1px solid #6c757d; background: #fff; color: #495057; }
.football-ai__history-load-more { width: 100%; margin-top: .75rem; }
.football-ai__history-retry:hover, .football-ai__history-load-more:hover { border-color: #17a2b8; background: #eefbfc; color: #176b74; }
body.football-ai-history-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .football-ai__loading-ball { animation: none; } }
@media (max-width: 575.98px) {
    .football-ai-page { --football-ai-global-header-height: 52px; --football-ai-workspace-gutter: .75rem; --football-ai-composer-clearance: 6rem; }
    .football-ai { min-height: calc(100dvh - 52px); }
    .football-ai__workspace { max-width: none; padding: 0 var(--football-ai-workspace-gutter); }
    .football-ai__panel { width: 100%; }
    .football-ai__header { top: var(--football-ai-global-header-height); margin-inline: -.25rem; padding: .65rem .25rem; }
    .football-ai__title-row { align-items: flex-start; flex-wrap: wrap; }
    .football-ai__brand { gap: .55rem; }
    .football-ai__title-row h1 { font-size: 1.45rem; }
    .football-ai__mark { width: 40px; height: 40px; font-size: 2.2rem; }
    .football-ai__powered { font-size: .6rem; }
    .football-ai__beta-badge { font-size: .58rem; }
    .football-ai__header-actions { width: 100%; justify-content: flex-end; }
    .football-ai__subtitle { font-size: .9rem; }
    .football-ai__conversation { margin-top: .85rem; padding-bottom: calc(var(--football-ai-composer-clearance) + env(safe-area-inset-bottom)); }
    .football-ai__message { max-width: 95%; padding: .65rem .8rem; }
    .football-ai__empty > .football-ai__message--assistant { width: 100%; max-width: 100%; text-align: left; white-space: normal; }
    .football-ai__community, .football-ai__zero-result-context { max-width: 100%; }
    .football-ai__community-cta { max-width: 100%; text-align: center; overflow-wrap: anywhere; }
    .football-ai__composer { flex-direction: row; width: calc(100% - (2 * var(--football-ai-workspace-gutter))); padding: .65rem 0 calc(.6rem + env(safe-area-inset-bottom)); }
    .football-ai__send { flex-basis: 44px; width: 44px; height: 44px; }
    .football-ai__result-body { gap: .75rem; padding: .85rem; }
    .football-ai__historical-results { max-width: 100%; padding: .65rem; }
    .football-ai__historical-card-body { gap: .75rem; padding: .75rem; }
    .football-ai__historical-card-content .btn { max-width: 100%; white-space: normal; }
    .football-ai__avatar { width: 48px; height: 48px; flex-basis: 48px; }
    .football-ai__result-content .btn { white-space: normal; }
    .football-ai__result-actions { gap: .75rem; }
    .football-ai__explanation { padding: .7rem; }
    .football-ai__explanation-strength { margin-left: .3rem; }
    .football-ai__compact-bar { flex-wrap: wrap; margin-inline: -.25rem; padding-inline: .25rem; }
    .football-ai__compact-actions { margin-left: auto; }
    .football-ai__history-drawer { width: min(100vw, 24rem); max-width: 100%; }
}
